ods-component-lib 1.17.72 → 1.17.73
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,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 {
|
|
10
|
+
import { useTranslation } from 'react-i18next';
|
|
11
11
|
import { locale, loadMessages } from 'devextreme/localization';
|
|
12
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';
|
|
13
13
|
import { Item } from 'devextreme-react/form';
|
|
@@ -17,7 +17,6 @@ import jsPDF from 'jspdf';
|
|
|
17
17
|
import { Workbook } from 'exceljs';
|
|
18
18
|
import { saveAs } from 'file-saver-es';
|
|
19
19
|
import moment from 'moment';
|
|
20
|
-
import i18n from 'i18next';
|
|
21
20
|
import { CheckBox, Lookup, TreeList } from 'devextreme-react';
|
|
22
21
|
import { createStore } from 'devextreme-aspnet-data-nojquery';
|
|
23
22
|
import { TreeView } from 'devextreme-react/tree-view';
|
|
@@ -1184,53 +1183,6 @@ function OdsLogin(props) {
|
|
|
1184
1183
|
}, "Log in"))));
|
|
1185
1184
|
}
|
|
1186
1185
|
|
|
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
1186
|
var exportFormats = ['xlsx'];
|
|
1235
1187
|
var searchEditorOptions = {
|
|
1236
1188
|
placeholder: 'Search column'
|
|
@@ -1244,7 +1196,6 @@ var renderMenuItem = function renderMenuItem() {
|
|
|
1244
1196
|
};
|
|
1245
1197
|
function OdsDataGrid(props) {
|
|
1246
1198
|
var dataGridRef = useRef(null);
|
|
1247
|
-
console.log('deneme12: ', sessionStorage.getItem("locale"));
|
|
1248
1199
|
return grid(props, dataGridRef);
|
|
1249
1200
|
}
|
|
1250
1201
|
function grid(props, dataGridRef) {
|