ods-component-lib 1.16.1 → 1.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +23 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +24 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7,7 +7,7 @@ import 'react-phone-input-2/lib/style.css';
|
|
|
7
7
|
import PhoneInput from 'react-phone-input-2';
|
|
8
8
|
import message from 'antd/es/message';
|
|
9
9
|
import Parser from 'html-react-parser';
|
|
10
|
-
import { DataGrid, Paging, Pager, SearchPanel, FilterRow, HeaderFilter, ColumnChooser, Position, ColumnChooserSearch, ColumnChooserSelection, Selection, Editing, Popup, Form as Form$1, Scrolling, Export, Column, RequiredRule, Button as Button$1, Toolbar, Item as Item$1, LoadPanel } from 'devextreme-react/data-grid';
|
|
10
|
+
import { DataGrid, Paging, Pager, SearchPanel, FilterRow, HeaderFilter, ColumnChooser, Position, ColumnChooserSearch, ColumnChooserSelection, Selection, Editing, Popup, Form as Form$1, Scrolling, Export, Column, RequiredRule, Button as Button$1, Toolbar, Item as Item$1, Summary, TotalItem, LoadPanel } from 'devextreme-react/data-grid';
|
|
11
11
|
import { Item } from 'devextreme-react/form';
|
|
12
12
|
import jsPDF from 'jspdf';
|
|
13
13
|
import { exportDataGrid as exportDataGrid$1 } from 'devextreme/pdf_exporter';
|
|
@@ -1391,6 +1391,17 @@ function grid(props) {
|
|
|
1391
1391
|
name: "exportButton"
|
|
1392
1392
|
}), React.createElement(Item$1, {
|
|
1393
1393
|
menuItemRender: renderMenuItem
|
|
1394
|
+
})), React.createElement(Summary, null, React.createElement(TotalItem, {
|
|
1395
|
+
column: "Id",
|
|
1396
|
+
summaryType: "count",
|
|
1397
|
+
displayFormat: "{0} Total Data"
|
|
1398
|
+
}), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
|
|
1399
|
+
return React.createElement(TotalItem, {
|
|
1400
|
+
column: item.columnName,
|
|
1401
|
+
summaryType: item.aggregateFn,
|
|
1402
|
+
valueFormat: item.valueFormat ? item.valueFormat : "",
|
|
1403
|
+
displayFormat: "Total: {0}"
|
|
1404
|
+
});
|
|
1394
1405
|
})))));
|
|
1395
1406
|
}
|
|
1396
1407
|
|
|
@@ -1490,7 +1501,18 @@ function grid$1(props) {
|
|
|
1490
1501
|
}, col, {
|
|
1491
1502
|
headerCellRender: headerCellRender
|
|
1492
1503
|
}), " ");
|
|
1493
|
-
})
|
|
1504
|
+
}), React.createElement(Summary, null, React.createElement(TotalItem, {
|
|
1505
|
+
column: "Id",
|
|
1506
|
+
summaryType: "count",
|
|
1507
|
+
displayFormat: "{0} Total Data"
|
|
1508
|
+
}), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
|
|
1509
|
+
return React.createElement(TotalItem, {
|
|
1510
|
+
column: item.columnName,
|
|
1511
|
+
summaryType: item.aggregateFn,
|
|
1512
|
+
valueFormat: item.valueFormat ? item.valueFormat : "",
|
|
1513
|
+
displayFormat: "Total: {0}"
|
|
1514
|
+
});
|
|
1515
|
+
}))));
|
|
1494
1516
|
}
|
|
1495
1517
|
|
|
1496
1518
|
var exportFormats$2 = ['xlsx', 'pdf'];
|