ods-component-lib 1.17.183 → 1.17.185
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
|
@@ -9,7 +9,7 @@ import PhoneInput from 'react-phone-input-2';
|
|
|
9
9
|
import message from 'antd/es/message';
|
|
10
10
|
import Parser from 'html-react-parser';
|
|
11
11
|
import { locale, loadMessages } from 'devextreme/localization';
|
|
12
|
-
import { DataGrid, LoadPanel, Paging, Pager, SearchPanel, FilterRow, FilterPanel, HeaderFilter, ColumnChooser, Position, ColumnChooserSearch, ColumnChooserSelection, Selection, Editing, Popup, Form as Form$1, Scrolling, Export, Column, RequiredRule, Toolbar, Item as Item$1, Summary, TotalItem, StateStoring
|
|
12
|
+
import { DataGrid, LoadPanel, Paging, Pager, SearchPanel, FilterRow, FilterPanel, 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';
|
|
14
14
|
import { exportDataGrid as exportDataGrid$1 } from 'devextreme/pdf_exporter';
|
|
15
15
|
import { exportDataGrid } from 'devextreme/excel_exporter';
|
|
@@ -17,7 +17,7 @@ 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 {
|
|
20
|
+
import { CheckBox, Lookup, TreeList } from 'devextreme-react';
|
|
21
21
|
import { createStore } from 'devextreme-aspnet-data-nojquery';
|
|
22
22
|
import { TreeView } from 'devextreme-react/tree-view';
|
|
23
23
|
|
|
@@ -1261,62 +1261,6 @@ function OdsLogin(props) {
|
|
|
1261
1261
|
}, "Log in"))));
|
|
1262
1262
|
}
|
|
1263
1263
|
|
|
1264
|
-
var EditSvg = function EditSvg() {
|
|
1265
|
-
return React.createElement("svg", {
|
|
1266
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1267
|
-
width: "18",
|
|
1268
|
-
height: "17",
|
|
1269
|
-
viewBox: "0 0 18 17",
|
|
1270
|
-
fill: "none"
|
|
1271
|
-
}, React.createElement("path", {
|
|
1272
|
-
d: "M4.83333 13.1667L1.5 14.0001L2.33333 10.6667L12.3333 0.666748L14.8333 3.16675L4.83333 13.1667Z",
|
|
1273
|
-
stroke: "#535353",
|
|
1274
|
-
"stroke-linejoin": "round"
|
|
1275
|
-
}), React.createElement("path", {
|
|
1276
|
-
d: "M0.666748 16.5H17.3334",
|
|
1277
|
-
stroke: "#535353",
|
|
1278
|
-
"stroke-linejoin": "round"
|
|
1279
|
-
}));
|
|
1280
|
-
};
|
|
1281
|
-
|
|
1282
|
-
var DeleteSvg = function DeleteSvg() {
|
|
1283
|
-
return React.createElement("svg", {
|
|
1284
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1285
|
-
width: "18",
|
|
1286
|
-
height: "18",
|
|
1287
|
-
viewBox: "0 0 18 18",
|
|
1288
|
-
fill: "none"
|
|
1289
|
-
}, React.createElement("path", {
|
|
1290
|
-
d: "M3.16675 5.25H14.8334L14.0001 17.3333H4.00008L3.16675 5.25Z",
|
|
1291
|
-
stroke: "#535353",
|
|
1292
|
-
"stroke-linejoin": "round"
|
|
1293
|
-
}), React.createElement("path", {
|
|
1294
|
-
d: "M9 7.3335V14.8335",
|
|
1295
|
-
stroke: "#535353",
|
|
1296
|
-
"stroke-linejoin": "round"
|
|
1297
|
-
}), React.createElement("path", {
|
|
1298
|
-
d: "M6.0835 7.3335L6.50016 14.8335",
|
|
1299
|
-
stroke: "#535353",
|
|
1300
|
-
"stroke-linejoin": "round"
|
|
1301
|
-
}), React.createElement("path", {
|
|
1302
|
-
d: "M11.9167 7.3335L11.5001 14.8335",
|
|
1303
|
-
stroke: "#535353",
|
|
1304
|
-
"stroke-linejoin": "round"
|
|
1305
|
-
}), React.createElement("path", {
|
|
1306
|
-
d: "M3.16675 4.75C3.16675 3.64543 4.06218 2.75 5.16675 2.75H12.8334C13.938 2.75 14.8334 3.64543 14.8334 4.75V5.25H3.16675V4.75Z",
|
|
1307
|
-
stroke: "#535353",
|
|
1308
|
-
"stroke-linejoin": "round"
|
|
1309
|
-
}), React.createElement("path", {
|
|
1310
|
-
d: "M7.3335 2.75008V2.33342C7.3335 1.41294 8.07969 0.666748 9.00016 0.666748V0.666748C9.92064 0.666748 10.6668 1.41294 10.6668 2.33342V2.75008",
|
|
1311
|
-
stroke: "#535353",
|
|
1312
|
-
"stroke-linejoin": "round"
|
|
1313
|
-
}), React.createElement("path", {
|
|
1314
|
-
d: "M0.666748 5.25H17.3334",
|
|
1315
|
-
stroke: "#535353",
|
|
1316
|
-
"stroke-linejoin": "round"
|
|
1317
|
-
}));
|
|
1318
|
-
};
|
|
1319
|
-
|
|
1320
1264
|
var exportFormats = ['xlsx'];
|
|
1321
1265
|
var renderMenuItem = function renderMenuItem() {
|
|
1322
1266
|
return React.createElement(Export, {
|
|
@@ -1523,35 +1467,35 @@ function grid(props, dataGridRef) {
|
|
|
1523
1467
|
dataField: "Actions",
|
|
1524
1468
|
fixed: true,
|
|
1525
1469
|
allowSorting: false,
|
|
1526
|
-
buttons: ['edit', 'delete'],
|
|
1527
1470
|
caption: props.ColumnAction,
|
|
1528
1471
|
type: "buttons",
|
|
1529
1472
|
showInColumnChooser: false
|
|
1530
|
-
}, props.edit.allowUpdating && React.createElement(
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
}, React.createElement(
|
|
1537
|
-
|
|
1538
|
-
|
|
1473
|
+
}, props.edit.allowUpdating && React.createElement(Button$1, {
|
|
1474
|
+
hint: props.HintEdit,
|
|
1475
|
+
visible: true,
|
|
1476
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1477
|
+
icon: "edit",
|
|
1478
|
+
onClick: props.editButtonClick
|
|
1479
|
+
}), props.edit.allowDeleting && React.createElement(Button$1, {
|
|
1480
|
+
hint: props.HintDelete,
|
|
1481
|
+
visible: true,
|
|
1482
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1483
|
+
icon: "trash",
|
|
1484
|
+
onClick: props.deleteButtonClick
|
|
1485
|
+
}));
|
|
1539
1486
|
} else {
|
|
1540
1487
|
return React.createElement(Column, {
|
|
1541
1488
|
dataField: "Actions",
|
|
1542
1489
|
caption: "Actions",
|
|
1543
1490
|
type: "buttons",
|
|
1544
|
-
showInColumnChooser: false
|
|
1545
|
-
|
|
1546
|
-
|
|
1491
|
+
showInColumnChooser: false
|
|
1492
|
+
}, React.createElement(React.Fragment, null, props.edit.allowUpdating && React.createElement(Button$1, {
|
|
1493
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1547
1494
|
name: "edit"
|
|
1548
|
-
}, React.createElement(
|
|
1549
|
-
|
|
1550
|
-
}, React.createElement(EditSvg, null))), props.edit.allowDeleting && React.createElement(Template, {
|
|
1495
|
+
}), props.edit.allowDeleting && React.createElement(Button$1, {
|
|
1496
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1551
1497
|
name: "delete"
|
|
1552
|
-
}
|
|
1553
|
-
className: "custom-icon"
|
|
1554
|
-
}, React.createElement(DeleteSvg, null)))));
|
|
1498
|
+
})));
|
|
1555
1499
|
}
|
|
1556
1500
|
}(), React.createElement(Toolbar, null, props.pageTitle && React.createElement(Item$1, {
|
|
1557
1501
|
location: "before"
|
|
@@ -1560,14 +1504,12 @@ function grid(props, dataGridRef) {
|
|
|
1560
1504
|
className: "dx-header-title"
|
|
1561
1505
|
}, props.pageTitle)), React.createElement(Item$1, {
|
|
1562
1506
|
location: "before"
|
|
1563
|
-
}, React.createElement("div", {
|
|
1564
|
-
className: "dx-header-action"
|
|
1565
1507
|
}, React.createElement(OdsButton, {
|
|
1566
1508
|
className: "dx-add-new",
|
|
1567
1509
|
type: "primary",
|
|
1568
1510
|
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1569
1511
|
onClick: props.onAddButton
|
|
1570
|
-
}, props.AddNewButtonName))
|
|
1512
|
+
}, props.AddNewButtonName)), React.createElement(Item$1, {
|
|
1571
1513
|
name: "searchPanel"
|
|
1572
1514
|
}), React.createElement(Item$1, {
|
|
1573
1515
|
name: "applyFilterButton"
|