ods-component-lib 1.17.69 → 1.17.70

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.
@@ -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';
@@ -1199,6 +1200,8 @@ function OdsDataGrid(props) {
1199
1200
  return grid(props, dataGridRef);
1200
1201
  }
1201
1202
  function grid(props, dataGridRef) {
1203
+ var _useTranslation = useTranslation(),
1204
+ t = _useTranslation.t;
1202
1205
  var headerCellRender = function headerCellRender(colProperties) {
1203
1206
  return React.createElement("th", {
1204
1207
  className: "dx-datagrid-headers",
@@ -1391,7 +1394,7 @@ function grid(props, dataGridRef) {
1391
1394
  width: 110,
1392
1395
  showInColumnChooser: false
1393
1396
  }, props.edit.allowUpdating && React.createElement(Button$1, {
1394
- hint: "Edit",
1397
+ hint: t("Edit"),
1395
1398
  visible: true,
1396
1399
  disabled: false,
1397
1400
  icon: "edit",
@@ -1435,7 +1438,7 @@ function grid(props, dataGridRef) {
1435
1438
  style: {
1436
1439
  marginBottom: "10px"
1437
1440
  }
1438
- }, "Add New1")), React.createElement(Item$1, {
1441
+ }, "Add New")), React.createElement(Item$1, {
1439
1442
  name: "searchPanel"
1440
1443
  }), React.createElement(Item$1, {
1441
1444
  name: "applyFilterButton"