bootstrap-table

- Updated dependency
- Added XLSX format to export formats.
This commit is contained in:
objecttothis
2023-12-07 20:43:48 +04:00
committed by jekkos
parent ac3a11c6a3
commit f662f45bf7
7 changed files with 681 additions and 578 deletions

View File

@@ -25,7 +25,7 @@
<div id="report_summary">
<?php
foreach($summary_data as $name => $value)
{
{
if($name == "total_quantity")
{
?>
@@ -59,7 +59,7 @@
sortable: true,
showExport: true,
exportDataType: 'all',
exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel', 'pdf'],
exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel', 'xlsx', 'pdf'],
pagination: true,
showColumns: true,
data: <?= json_encode(esc($data, 'js')) ?>,

View File

@@ -71,7 +71,7 @@
uniqueId: 'id',
showExport: true,
exportDataType: 'all',
exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel', 'pdf'],
exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel', 'xlsx', 'pdf'],
data: <?= json_encode(esc($summary_data, 'js')) ?>,
iconSize: 'sm',
paginationVAlign: 'bottom',

View File

@@ -38,7 +38,7 @@ Write-Output "bootstrap-select"
npm i bootstrap-select@1.13.18
Write-Output "bootstrap-table"
npm i bootstrap-table@1.18.1
npm i bootstrap-table@1.22.1
Write-Output "bootstrap-tagsinput"
npm i bootstrap-tagsinput@0.7.1

1241
composer.lock generated
View File

File diff suppressed because it is too large Load Diff

6
package-lock.json generated
View File

@@ -14,7 +14,7 @@
"bootstrap-datetime-picker": "github:smalot/bootstrap-datetimepicker#master",
"bootstrap-notify": "^3.1.3",
"bootstrap-select": "^1.13.18",
"bootstrap-table": "^1.18.1",
"bootstrap-table": "^1.22.1",
"bootstrap-tagsinput": "^0.7.1",
"bootstrap-toggle": "^2.2.2",
"bootstrap3-dialog": "github:nakupanda/bootstrap3-dialog#master",
@@ -1330,8 +1330,8 @@
}
},
"node_modules/bootstrap-table": {
"version": "1.18.1",
"resolved": "https://registry.npmjs.org/bootstrap-table/-/bootstrap-table-1.18.1.tgz",
"version": "1.22.1",
"resolved": "https://registry.npmjs.org/bootstrap-table/-/bootstrap-table-1.22.1.tgz",
"integrity": "sha512-1dkPJSakL4A2Dv0SzAI9CFM5609iDvYoydAUE5PhuAiKvzFE3jfzQDlakEmlZ4TcleOihbWcW6sVB1Sh7UksDw==",
"peerDependencies": {
"jquery": "1.9.1 - 3"

View File

@@ -28,7 +28,7 @@
"bootstrap-datetime-picker": "github:smalot/bootstrap-datetimepicker#master",
"bootstrap-notify": "^3.1.3",
"bootstrap-select": "^1.13.18",
"bootstrap-table": "^1.18.1",
"bootstrap-table": "^1.22.1",
"bootstrap-tagsinput": "^0.7.1",
"bootstrap-toggle": "^2.2.2",
"bootstrap3-dialog": "github:nakupanda/bootstrap3-dialog#master",

View File

@@ -226,7 +226,7 @@
clickToSelect: true,
showExport: true,
exportDataType: 'basic',
exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel', 'pdf'],
exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel', 'xlsx', 'pdf'],
exportOptions: {
fileName: options.resource.replace(/.*\/(.*?)$/g, '$1')
},