ods-component-lib 1.17.73 → 1.17.77
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.modern.js
CHANGED
|
@@ -7,7 +7,6 @@ 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 { useTranslation } from 'react-i18next';
|
|
11
10
|
import { locale, loadMessages } from 'devextreme/localization';
|
|
12
11
|
import { DataGrid, LoadPanel, Paging, Pager, SearchPanel, FilterRow, FilterPanel, RemoteOperations, 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
12
|
import { Item } from 'devextreme-react/form';
|
|
@@ -1199,8 +1198,6 @@ function OdsDataGrid(props) {
|
|
|
1199
1198
|
return grid(props, dataGridRef);
|
|
1200
1199
|
}
|
|
1201
1200
|
function grid(props, dataGridRef) {
|
|
1202
|
-
var _useTranslation = useTranslation(),
|
|
1203
|
-
t = _useTranslation.t;
|
|
1204
1201
|
var headerCellRender = function headerCellRender(colProperties) {
|
|
1205
1202
|
return React.createElement("th", {
|
|
1206
1203
|
className: "dx-datagrid-headers",
|
|
@@ -1388,18 +1385,18 @@ function grid(props, dataGridRef) {
|
|
|
1388
1385
|
if (props.customPopup !== undefined) {
|
|
1389
1386
|
return React.createElement(Column, {
|
|
1390
1387
|
dataField: "Actions",
|
|
1391
|
-
caption:
|
|
1388
|
+
caption: props.ColumnAction,
|
|
1392
1389
|
type: "buttons",
|
|
1393
1390
|
width: 110,
|
|
1394
1391
|
showInColumnChooser: false
|
|
1395
1392
|
}, props.edit.allowUpdating && React.createElement(Button$1, {
|
|
1396
|
-
hint:
|
|
1393
|
+
hint: props.HintEdit,
|
|
1397
1394
|
visible: true,
|
|
1398
1395
|
disabled: false,
|
|
1399
1396
|
icon: "edit",
|
|
1400
1397
|
onClick: props.editButtonClick
|
|
1401
1398
|
}), props.edit.allowDeleting && React.createElement(Button$1, {
|
|
1402
|
-
hint:
|
|
1399
|
+
hint: props.HintDelete,
|
|
1403
1400
|
visible: true,
|
|
1404
1401
|
disabled: false,
|
|
1405
1402
|
icon: "trash",
|
|
@@ -1437,7 +1434,7 @@ function grid(props, dataGridRef) {
|
|
|
1437
1434
|
style: {
|
|
1438
1435
|
marginBottom: "10px"
|
|
1439
1436
|
}
|
|
1440
|
-
},
|
|
1437
|
+
}, props.AddNewButtonName)), React.createElement(Item$1, {
|
|
1441
1438
|
name: "searchPanel"
|
|
1442
1439
|
}), React.createElement(Item$1, {
|
|
1443
1440
|
name: "applyFilterButton"
|