ods-component-lib 1.17.147 → 1.17.148
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 +16 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9,7 +9,7 @@ import PhoneInput from 'react-phone-input-2';
|
|
|
9
9
|
import message from 'antd/es/message';
|
|
10
10
|
import Parser from 'html-react-parser';
|
|
11
11
|
import { locale, loadMessages } from 'devextreme/localization';
|
|
12
|
-
import { DataGrid, LoadPanel, Paging, Pager, SearchPanel, FilterRow, FilterPanel, HeaderFilter, ColumnChooser, Position, ColumnChooserSearch, ColumnChooserSelection, Selection, Editing, Popup, Form as Form$1, Scrolling, Export, Column, Button as Button$1, Toolbar, Item as Item$1, Summary, TotalItem, StateStoring
|
|
12
|
+
import { DataGrid, LoadPanel, Paging, Pager, SearchPanel, FilterRow, FilterPanel, 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, StateStoring } from 'devextreme-react/data-grid';
|
|
13
13
|
import { Item } from 'devextreme-react/form';
|
|
14
14
|
import { exportDataGrid as exportDataGrid$1 } from 'devextreme/pdf_exporter';
|
|
15
15
|
import { exportDataGrid } from 'devextreme/excel_exporter';
|
|
@@ -1429,11 +1429,22 @@ function grid(props, dataGridRef) {
|
|
|
1429
1429
|
allowExportSelectedData: true,
|
|
1430
1430
|
formats: exportFormats
|
|
1431
1431
|
}), props.columns.map(function (col) {
|
|
1432
|
-
return React.createElement(Column, {
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
})
|
|
1432
|
+
return React.createElement(Column, Object.assign({
|
|
1433
|
+
key: col.dataField
|
|
1434
|
+
}, col), col.required && React.createElement(RequiredRule, {
|
|
1435
|
+
message: col.requiredMessage
|
|
1436
|
+
}), col.dataField === 'IsActive' && React.createElement(HeaderFilter, {
|
|
1437
|
+
dataSource: [{
|
|
1438
|
+
text: 'All',
|
|
1439
|
+
value: null
|
|
1440
|
+
}, {
|
|
1441
|
+
text: 'Active',
|
|
1442
|
+
value: true
|
|
1443
|
+
}, {
|
|
1444
|
+
text: 'Passive',
|
|
1445
|
+
value: false
|
|
1446
|
+
}]
|
|
1447
|
+
}));
|
|
1437
1448
|
}), function () {
|
|
1438
1449
|
if (props.customPopup !== undefined) {
|
|
1439
1450
|
return React.createElement(Column, {
|