ods-component-lib 1.17.72 → 1.17.76
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 { initReactI18next, 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';
|
|
@@ -17,7 +16,6 @@ import jsPDF from 'jspdf';
|
|
|
17
16
|
import { Workbook } from 'exceljs';
|
|
18
17
|
import { saveAs } from 'file-saver-es';
|
|
19
18
|
import moment from 'moment';
|
|
20
|
-
import i18n from 'i18next';
|
|
21
19
|
import { CheckBox, Lookup, TreeList } from 'devextreme-react';
|
|
22
20
|
import { createStore } from 'devextreme-aspnet-data-nojquery';
|
|
23
21
|
import { TreeView } from 'devextreme-react/tree-view';
|
|
@@ -1184,53 +1182,6 @@ function OdsLogin(props) {
|
|
|
1184
1182
|
}, "Log in"))));
|
|
1185
1183
|
}
|
|
1186
1184
|
|
|
1187
|
-
var resources = {
|
|
1188
|
-
en: {
|
|
1189
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1190
|
-
},
|
|
1191
|
-
tr: {
|
|
1192
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1193
|
-
},
|
|
1194
|
-
pl: {
|
|
1195
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1196
|
-
},
|
|
1197
|
-
ru: {
|
|
1198
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1199
|
-
},
|
|
1200
|
-
es: {
|
|
1201
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1202
|
-
},
|
|
1203
|
-
de: {
|
|
1204
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1205
|
-
},
|
|
1206
|
-
fr: {
|
|
1207
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1208
|
-
},
|
|
1209
|
-
it: {
|
|
1210
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1211
|
-
},
|
|
1212
|
-
ua: {
|
|
1213
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1214
|
-
},
|
|
1215
|
-
et: {
|
|
1216
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1217
|
-
},
|
|
1218
|
-
lv: {
|
|
1219
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1220
|
-
},
|
|
1221
|
-
lt: {
|
|
1222
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1223
|
-
}
|
|
1224
|
-
};
|
|
1225
|
-
i18n.use(initReactI18next).init({
|
|
1226
|
-
resources: resources,
|
|
1227
|
-
lng: "en",
|
|
1228
|
-
keySeparator: false,
|
|
1229
|
-
interpolation: {
|
|
1230
|
-
escapeValue: false
|
|
1231
|
-
}
|
|
1232
|
-
});
|
|
1233
|
-
|
|
1234
1185
|
var exportFormats = ['xlsx'];
|
|
1235
1186
|
var searchEditorOptions = {
|
|
1236
1187
|
placeholder: 'Search column'
|
|
@@ -1244,12 +1195,9 @@ var renderMenuItem = function renderMenuItem() {
|
|
|
1244
1195
|
};
|
|
1245
1196
|
function OdsDataGrid(props) {
|
|
1246
1197
|
var dataGridRef = useRef(null);
|
|
1247
|
-
console.log('deneme12: ', sessionStorage.getItem("locale"));
|
|
1248
1198
|
return grid(props, dataGridRef);
|
|
1249
1199
|
}
|
|
1250
1200
|
function grid(props, dataGridRef) {
|
|
1251
|
-
var _useTranslation = useTranslation(),
|
|
1252
|
-
t = _useTranslation.t;
|
|
1253
1201
|
var headerCellRender = function headerCellRender(colProperties) {
|
|
1254
1202
|
return React.createElement("th", {
|
|
1255
1203
|
className: "dx-datagrid-headers",
|
|
@@ -1437,18 +1385,18 @@ function grid(props, dataGridRef) {
|
|
|
1437
1385
|
if (props.customPopup !== undefined) {
|
|
1438
1386
|
return React.createElement(Column, {
|
|
1439
1387
|
dataField: "Actions",
|
|
1440
|
-
caption:
|
|
1388
|
+
caption: props.ColumnAction,
|
|
1441
1389
|
type: "buttons",
|
|
1442
1390
|
width: 110,
|
|
1443
1391
|
showInColumnChooser: false
|
|
1444
1392
|
}, props.edit.allowUpdating && React.createElement(Button$1, {
|
|
1445
|
-
hint:
|
|
1393
|
+
hint: props.HintEdit,
|
|
1446
1394
|
visible: true,
|
|
1447
1395
|
disabled: false,
|
|
1448
1396
|
icon: "edit",
|
|
1449
1397
|
onClick: props.editButtonClick
|
|
1450
1398
|
}), props.edit.allowDeleting && React.createElement(Button$1, {
|
|
1451
|
-
hint:
|
|
1399
|
+
hint: props.HintDelete,
|
|
1452
1400
|
visible: true,
|
|
1453
1401
|
disabled: false,
|
|
1454
1402
|
icon: "trash",
|
|
@@ -1486,7 +1434,7 @@ function grid(props, dataGridRef) {
|
|
|
1486
1434
|
style: {
|
|
1487
1435
|
marginBottom: "10px"
|
|
1488
1436
|
}
|
|
1489
|
-
},
|
|
1437
|
+
}, props.AddNewButtonName)), React.createElement(Item$1, {
|
|
1490
1438
|
name: "searchPanel"
|
|
1491
1439
|
}), React.createElement(Item$1, {
|
|
1492
1440
|
name: "applyFilterButton"
|