ods-component-lib 1.17.69 → 1.17.71
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,6 +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 { useTranslation } from 'react-i18next';
|
|
10
11
|
import { locale, loadMessages } from 'devextreme/localization';
|
|
11
12
|
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';
|
|
12
13
|
import { Item } from 'devextreme-react/form';
|
|
@@ -16,6 +17,7 @@ import jsPDF from 'jspdf';
|
|
|
16
17
|
import { Workbook } from 'exceljs';
|
|
17
18
|
import { saveAs } from 'file-saver-es';
|
|
18
19
|
import moment from 'moment';
|
|
20
|
+
import 'i18n';
|
|
19
21
|
import { CheckBox, Lookup, TreeList } from 'devextreme-react';
|
|
20
22
|
import { createStore } from 'devextreme-aspnet-data-nojquery';
|
|
21
23
|
import { TreeView } from 'devextreme-react/tree-view';
|
|
@@ -1199,6 +1201,8 @@ function OdsDataGrid(props) {
|
|
|
1199
1201
|
return grid(props, dataGridRef);
|
|
1200
1202
|
}
|
|
1201
1203
|
function grid(props, dataGridRef) {
|
|
1204
|
+
var _useTranslation = useTranslation(),
|
|
1205
|
+
t = _useTranslation.t;
|
|
1202
1206
|
var headerCellRender = function headerCellRender(colProperties) {
|
|
1203
1207
|
return React.createElement("th", {
|
|
1204
1208
|
className: "dx-datagrid-headers",
|
|
@@ -1391,7 +1395,7 @@ function grid(props, dataGridRef) {
|
|
|
1391
1395
|
width: 110,
|
|
1392
1396
|
showInColumnChooser: false
|
|
1393
1397
|
}, props.edit.allowUpdating && React.createElement(Button$1, {
|
|
1394
|
-
hint: "Edit",
|
|
1398
|
+
hint: t("Edit"),
|
|
1395
1399
|
visible: true,
|
|
1396
1400
|
disabled: false,
|
|
1397
1401
|
icon: "edit",
|
|
@@ -1435,7 +1439,7 @@ function grid(props, dataGridRef) {
|
|
|
1435
1439
|
style: {
|
|
1436
1440
|
marginBottom: "10px"
|
|
1437
1441
|
}
|
|
1438
|
-
}, "Add
|
|
1442
|
+
}, "Add New")), React.createElement(Item$1, {
|
|
1439
1443
|
name: "searchPanel"
|
|
1440
1444
|
}), React.createElement(Item$1, {
|
|
1441
1445
|
name: "applyFilterButton"
|