forked from contributte/datagrid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.x] Bootstrap 5 + PHP 8 + vanilla javascript (contributte#1021)
* Bootstrap 5 * Bootstrap 5 (docs) * Bootstrap 5 * form-control -> form-select * Bump bootstrap-select for Bootstrap 5 support * Removed `input-sm` from Bootstrap 3 See https://getbootstrap.com/docs/4.0/migration/#forms-1 * Bootstrap 5: When selectpicker, replace form-select classes with form-control and refresh it * Hide `underline` also for `dropdown-item`. And merged into one CSS rule. * Update the filterMultiSelect initialization * Text-align: left -> start Co-authored-by: Radim Vaculík <[email protected]> Co-authored-by: Jaroslav Líbal <[email protected]>
- Loading branch information
Showing
19 changed files
with
90 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ DataGrid needs for its precise functionality some third party scripts and styles | |
|
||
**CSS (external)** | ||
|
||
- bootstrap | ||
- bootstrap 5 | ||
- bootstrap datepicker | ||
- bootstrap select | ||
|
||
|
@@ -60,15 +60,15 @@ package.json: | |
{ | ||
"dependencies": { | ||
"bootstrap-datepicker": "^1.9", | ||
"bootstrap-select": "^1.13", | ||
"bootstrap": "^4.4.1", | ||
"bootstrap-select": "^1.14-beta2", | ||
"bootstrap": "^5.0.0", | ||
"happy-inputs": "^2.0", | ||
"jquery": "^3.4.1", | ||
"jquery-ui-sortable": "^1.0", | ||
"nette-forms": "^3.0", | ||
"nette.ajax.js": "^2.3", | ||
"popper.js": "^1.14.7", | ||
"ublaboo-datagrid": "^6.2" | ||
"ublaboo-datagrid": "^6.9" | ||
} | ||
} | ||
``` | ||
|
@@ -79,16 +79,16 @@ package.json: | |
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0/dist/css/bootstrap.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/src/happy.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap-datepicker.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/assets/datagrid.css"> | ||
|
||
<!-- Use this css for ajax spinners --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/assets/datagrid-spinners.css"> | ||
|
||
<!-- Include this css when using FilterMultiSelect (silviomoreto.github.io/bootstrap-select) --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.15/dist/css/bootstrap-select.css"> | ||
<!-- Include this css when using FilterMultiSelect (https://developer.snapappointments.com/bootstrap-select/) --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta2/dist/css/bootstrap-select.css"> | ||
|
||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous"> | ||
</head> | ||
|
@@ -101,21 +101,21 @@ package.json: | |
happy.init(); | ||
</script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0/dist/js/bootstrap.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap-datepicker.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/jquery-ui.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/nette.ajax.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/assets/datagrid.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].4/src/assets/netteForms.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/assets/datagrid.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/assets/netteForms.min.js"></script> | ||
|
||
<!-- It is recommended to include this JS file with just a few bits. It refreshes URL on non ajax request --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/assets/datagrid-instant-url-refresh.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/assets/datagrid-instant-url-refresh.js"></script> | ||
|
||
<!-- Use this little extension for ajax spinners --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/assets/datagrid-spinners.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/assets/datagrid-spinners.js"></script> | ||
|
||
<!-- Include bootstrap-select.js when using FilterMultiSelect (silviomoreto.github.io/bootstrap-select) --> | ||
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.15/dist/js/bootstrap-select.js"></script> | ||
<!-- Include bootstrap-select.js when using FilterMultiSelect (https://developer.snapappointments.com/bootstrap-select/) --> | ||
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta2/dist/js/bootstrap-select.js"></script> | ||
</body> | ||
</html> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.