ods-component-lib 1.18.113 → 1.18.114
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.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -18,8 +18,8 @@ import { saveAs } from 'file-saver-es';
|
|
|
18
18
|
import moment from 'moment';
|
|
19
19
|
import { GridIcon, ChevronDownIcon, UpArrow5Icon, DownArrow5Icon, Loop1Icon, KebabMenuIcon, EditIcon, Trash1Icon, CopyIcon, DiscountIcon, RefreshIcon, LinkBreakIcon, FloppyDiskIcon, Discount2Icon } from 'ods-icon/react/24/outline';
|
|
20
20
|
import { TreeList, Lookup, DataGrid as DataGrid$2, Toolbar as Toolbar$1 } from 'devextreme-react';
|
|
21
|
-
import 'devextreme/dist/css/dx.light.css';
|
|
22
21
|
import { createStyles } from 'antd-style';
|
|
22
|
+
import 'devextreme/dist/css/dx.light.css';
|
|
23
23
|
import saveAs$1 from 'file-saver';
|
|
24
24
|
|
|
25
25
|
function _extends() {
|
|
@@ -33650,6 +33650,14 @@ function OdsDataGrdiRowButton(_ref) {
|
|
|
33650
33650
|
}, React.createElement(StyledButton, Object.assign({}, props), children)));
|
|
33651
33651
|
}
|
|
33652
33652
|
|
|
33653
|
+
var _templateObject$p;
|
|
33654
|
+
var useStyles = createStyles(function (_ref) {
|
|
33655
|
+
var css = _ref.css;
|
|
33656
|
+
return {
|
|
33657
|
+
grid: css(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose(["\n & .grid-cell-selected {\n background-color: lightgreen;\n }\n & .grid-cell-disable-text-selection {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n & .grid-cell-disable-colored {\n background-color: lightgray;\n }\n & .grid-summary-row-label {\n font-weight: 900;\n /* border-bottom: 1px solid lightgray; */\n }\n & .grid-summary-row-data {\n /* border-bottom: 1px solid lightgray; */\n }\n & .grid-toolbar-button-item {\n padding: 0 !important;\n }\n "])))
|
|
33658
|
+
};
|
|
33659
|
+
});
|
|
33660
|
+
|
|
33653
33661
|
var checkCellSelectionConstraints = function checkCellSelectionConstraints(e) {
|
|
33654
33662
|
return e.rowType == "data" && e.columnIndex > -1 && e.rowIndex > -1;
|
|
33655
33663
|
};
|
|
@@ -33809,6 +33817,8 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
|
|
|
33809
33817
|
var _useState13 = useState(0),
|
|
33810
33818
|
rowCount = _useState13[0],
|
|
33811
33819
|
setRowCount = _useState13[1];
|
|
33820
|
+
var _useStyles = useStyles(),
|
|
33821
|
+
gridStyle = _useStyles.styles;
|
|
33812
33822
|
useEffect(function () {
|
|
33813
33823
|
constants.totalPageCount = 1;
|
|
33814
33824
|
constants.loadedPageCount = 1;
|
|
@@ -34648,6 +34658,7 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
|
|
|
34648
34658
|
enabled: true
|
|
34649
34659
|
},
|
|
34650
34660
|
noDataText: props.noDataText,
|
|
34661
|
+
className: gridStyle.grid,
|
|
34651
34662
|
onEditorPreparing: onEditorPreparing,
|
|
34652
34663
|
onExporting: onExporting,
|
|
34653
34664
|
onRowClick: props.onRowClick,
|
|
@@ -35099,11 +35110,11 @@ var OdsTransfer = function OdsTransfer(props) {
|
|
|
35099
35110
|
}));
|
|
35100
35111
|
};
|
|
35101
35112
|
|
|
35102
|
-
var _templateObject$
|
|
35103
|
-
var useStyles = createStyles(function (_ref) {
|
|
35113
|
+
var _templateObject$q, _templateObject2$1;
|
|
35114
|
+
var useStyles$1 = createStyles(function (_ref) {
|
|
35104
35115
|
var css = _ref.css;
|
|
35105
35116
|
return {
|
|
35106
|
-
grid: css(_templateObject$
|
|
35117
|
+
grid: css(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n & .grid-cell-selected {\n background-color: lightgreen;\n }\n & .grid-cell-disable-text-selection {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n & .grid-cell-disable-colored {\n background-color: lightgray;\n }\n & .grid-summary-row-label {\n font-weight: 900;\n }\n\n & .grid-toolbar-button-item {\n padding: 0 !important;\n }\n\n & .dx-datagrid.dx-gridbase-container.dx-datagrid-borders {\n border: none !important;\n border-radius: 16px 16px 0 0;\n }\n & .dx-datagrid-borders > .dx-datagrid-filter-panel,\n & .dx-datagrid-borders > .dx-datagrid-headers {\n border: 0 !important;\n }\n & .dx-datagrid-search-panel {\n margin-left: 0;\n }\n & .dx-toolbar-after .dx-toolbar-item,\n & .dx-toolbar-after .dx-toolbar-item:last-child {\n padding: 0;\n }\n & .dx-toolbar .dx-toolbar-after {\n display: inline-flex;\n flex-flow: row-reverse;\n gap: 5px;\n }\n "]))),
|
|
35107
35118
|
gridCustomSummary: css(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n background-color: rgb(255, 255, 255);\n border-radius: 0px 0px 16px 16px;\n font-size: 13px;\n text-align: unset;\n padding: 17px 16px 3px 15px;\n font-weight: 600;\n border-top: 1px solid #ededed;\n "])))
|
|
35108
35119
|
};
|
|
35109
35120
|
});
|
|
@@ -35212,7 +35223,7 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
35212
35223
|
var filteredRowCount = useRef(0);
|
|
35213
35224
|
var filterOptions = useRef({});
|
|
35214
35225
|
var lastPageIndexRef = useRef(null);
|
|
35215
|
-
var _useStyles = useStyles(),
|
|
35226
|
+
var _useStyles = useStyles$1(),
|
|
35216
35227
|
gridStyle = _useStyles.styles;
|
|
35217
35228
|
var renderTotal = useCallback(function () {
|
|
35218
35229
|
var _props$customSummary, _props$customSummary2, _props$customSummary3, _props$customSummary4;
|