ods-component-lib 1.18.115 → 1.18.117

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.
Files changed (25) hide show
  1. package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.Style.d.ts +1 -0
  2. package/dist/index.js +18 -72
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.modern.js +18 -72
  5. package/dist/index.modern.js.map +1 -1
  6. package/package.json +1 -1
  7. package/dist/components/antd/form/OdsBasicForm.d.ts +0 -18
  8. package/dist/components/antd/icon/OdsIcon.d.ts +0 -10
  9. package/dist/components/antd/modal/OdsAdvanceModal.d.ts +0 -7
  10. package/dist/components/antd/select/OdsCustomMultiSelect.d.ts +0 -7
  11. package/dist/components/antd/select/OdsMultiSelect.d.ts +0 -9
  12. package/dist/components/custom/OdsLogin.d.ts +0 -8
  13. package/dist/components/devextreme/DxDataPopupForm.d.ts +0 -3
  14. package/dist/components/devextreme/DynamicIcon.d.ts +0 -5
  15. package/dist/components/devextreme/OdsDataGridNew.d.ts +0 -56
  16. package/dist/components/devextreme/OdsProfDataGrid.d.ts +0 -3
  17. package/dist/components/devextreme/treeview/DxTreeView.d.ts +0 -3
  18. package/dist/stories/OdsAdvanceModal/OdsAdvanceModal.stories.d.ts +0 -42
  19. package/dist/stories/OdsAdvanceModal/Samples/BasicOdsAdvanceModal.sample.d.ts +0 -8
  20. package/dist/stories/OdsCustomMultiSelect/OdsCustomMultiSelect.stories.d.ts +0 -9
  21. package/dist/stories/OdsCustomMultiSelect/Samples/Basic.Sample.d.ts +0 -1
  22. package/dist/stories/OdsCustomMultiSelect/Samples/ModeMultiple.Sample.d.ts +0 -1
  23. package/dist/stories/OdsLink/OdsLink.stories.d.ts +0 -59
  24. package/dist/stories/OdsTimePicker/Samples/TimeRangePicker.d.ts +0 -2
  25. /package/dist/components/antd/datepicker/{OdsDateRangePicker.d.ts → OdsDateRangepicker.d.ts} +0 -0
@@ -1,3 +1,4 @@
1
1
  export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
2
  grid: import("antd-style").SerializedStyles;
3
+ gridCustomSummary: import("antd-style").SerializedStyles;
3
4
  }>;
package/dist/index.js CHANGED
@@ -33655,11 +33655,12 @@ function OdsDataGrdiRowButton(_ref) {
33655
33655
  }, React__default.createElement(StyledButton, Object.assign({}, props), children)));
33656
33656
  }
33657
33657
 
33658
- var _templateObject$p;
33658
+ var _templateObject$p, _templateObject2$1;
33659
33659
  var useStyles = antdStyle.createStyles(function (_ref) {
33660
33660
  var css = _ref.css;
33661
33661
  return {
33662
- 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 "])))
33662
+ 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 "]))),
33663
+ 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"])))
33663
33664
  };
33664
33665
  });
33665
33666
 
@@ -33685,57 +33686,6 @@ var concatFilteredLabel = function concatFilteredLabel(result, totalloaded, filt
33685
33686
  }
33686
33687
  return result;
33687
33688
  };
33688
- var showSummaryItems = function showSummaryItems(props) {
33689
- var _props$customSummary, _props$customSummary2, _props$customSummary3, _props$customSummary4, _props$customSummary5;
33690
- return ((_props$customSummary = props.customSummary) === null || _props$customSummary === void 0 ? void 0 : _props$customSummary.showAvgInSummary) || ((_props$customSummary2 = props.customSummary) === null || _props$customSummary2 === void 0 ? void 0 : _props$customSummary2.showCountInSummary) || ((_props$customSummary3 = props.customSummary) === null || _props$customSummary3 === void 0 ? void 0 : _props$customSummary3.showMaxInSummary) || ((_props$customSummary4 = props.customSummary) === null || _props$customSummary4 === void 0 ? void 0 : _props$customSummary4.showMinInSummary) || ((_props$customSummary5 = props.customSummary) === null || _props$customSummary5 === void 0 ? void 0 : _props$customSummary5.showSumInSummary);
33691
- };
33692
- var getSummaryItems = function getSummaryItems(props, columns, grid, isMultiLevelColumn) {
33693
- if (isMultiLevelColumn === void 0) {
33694
- isMultiLevelColumn = false;
33695
- }
33696
- var totalItems = [];
33697
- columns.map(function (col, _index) {
33698
- if (col.multiLevelColumns && col.multiLevelColumns.length > 0) {
33699
- totalItems = [].concat(totalItems, getSummaryItems(props, col.multiLevelColumns, grid, true));
33700
- } else {
33701
- var _props$customSummary6, _props$customSummary7, _props$customSummary8, _props$customSummary9, _props$customSummary10, _props$customSummary11, _props$customSummary12, _props$customSummary13, _props$customSummary14, _props$customSummary15;
33702
- var colOption = grid.columnOption(col.dataField);
33703
- if (!colOption) {
33704
- return col;
33705
- }
33706
- ((_props$customSummary6 = props.customSummary) === null || _props$customSummary6 === void 0 ? void 0 : _props$customSummary6.showAvgInSummary) && totalItems.push(getSummaryItem(col, colOption.visibleIndex, "avg", isMultiLevelColumn, (_props$customSummary7 = props.customSummary) === null || _props$customSummary7 === void 0 ? void 0 : _props$customSummary7.summaryAvgLabel));
33707
- ((_props$customSummary8 = props.customSummary) === null || _props$customSummary8 === void 0 ? void 0 : _props$customSummary8.showCountInSummary) && totalItems.push(getSummaryItem(col, colOption.visibleIndex, "count", isMultiLevelColumn, (_props$customSummary9 = props.customSummary) === null || _props$customSummary9 === void 0 ? void 0 : _props$customSummary9.summaryCountLabel));
33708
- ((_props$customSummary10 = props.customSummary) === null || _props$customSummary10 === void 0 ? void 0 : _props$customSummary10.showMaxInSummary) && totalItems.push(getSummaryItem(col, colOption.visibleIndex, "max", isMultiLevelColumn, (_props$customSummary11 = props.customSummary) === null || _props$customSummary11 === void 0 ? void 0 : _props$customSummary11.summaryMaxLabel));
33709
- ((_props$customSummary12 = props.customSummary) === null || _props$customSummary12 === void 0 ? void 0 : _props$customSummary12.showMinInSummary) && totalItems.push(getSummaryItem(col, colOption.visibleIndex, "min", isMultiLevelColumn, (_props$customSummary13 = props.customSummary) === null || _props$customSummary13 === void 0 ? void 0 : _props$customSummary13.summaryMinLabel));
33710
- ((_props$customSummary14 = props.customSummary) === null || _props$customSummary14 === void 0 ? void 0 : _props$customSummary14.showSumInSummary) && totalItems.push(getSummaryItem(col, colOption.visibleIndex, "sum", isMultiLevelColumn, (_props$customSummary15 = props.customSummary) === null || _props$customSummary15 === void 0 ? void 0 : _props$customSummary15.summarySumLabel));
33711
- }
33712
- return col;
33713
- });
33714
- return totalItems;
33715
- };
33716
- var getSummaryItem = function getSummaryItem(col, visibleIndex, summaryType, isMultiLevelColumn, label) {
33717
- if (!isMultiLevelColumn && visibleIndex == 0) {
33718
- return React__default.createElement(DataGrid.TotalItem, {
33719
- column: col.dataField,
33720
- summaryType: "custom",
33721
- cssClass: "grid-summary-row-label",
33722
- customizeText: function customizeText(_itemInfo) {
33723
- return label;
33724
- }
33725
- });
33726
- }
33727
- if (col.dataType != "number") {
33728
- return React__default.createElement("div", null);
33729
- }
33730
- return React__default.createElement(DataGrid.TotalItem, {
33731
- column: col.dataField,
33732
- summaryType: summaryType,
33733
- cssClass: "grid-summary-row-data",
33734
- customizeText: function customizeText(itemInfo) {
33735
- return Number(itemInfo.value).toFixed(2);
33736
- }
33737
- });
33738
- };
33739
33689
  var getMultiLevelColumns = function getMultiLevelColumns(col) {
33740
33690
  return col.multiLevelColumns && col.multiLevelColumns.map(function (colItem) {
33741
33691
  return React__default.createElement(DataGrid.Column, Object.assign({
@@ -34803,18 +34753,14 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
34803
34753
  }), hasFastUpdate && React__default.createElement(DataGrid.Item, null, React__default.createElement(OdsButton, {
34804
34754
  key: "odsbutton-fastupdate",
34805
34755
  onClick: onCustomFastUpdateButtonClick
34806
- }, fastUpdateButtonText != null ? fastUpdateButtonText : "Fast Update"))), React__default.createElement(DataGrid.Summary, null, React__default.createElement(DataGrid.TotalItem, {
34807
- column: gridColumns[0].dataField,
34808
- summaryType: "custom",
34809
- displayFormat: renderTotal()
34810
- }), gridRef.current && showSummaryItems(props) && getSummaryItems(props, gridColumns, gridRef.current.instance).map(function (item, _index) {
34811
- return item;
34812
- })), React__default.createElement(DataGrid.StateStoring, {
34756
+ }, fastUpdateButtonText != null ? fastUpdateButtonText : "Fast Update"))), React__default.createElement(DataGrid.StateStoring, {
34813
34757
  enabled: true,
34814
34758
  type: "custom",
34815
34759
  customLoad: customLoad,
34816
34760
  customSave: customSave
34817
- })));
34761
+ })), renderTotal() && React__default.createElement("div", {
34762
+ className: gridStyle.gridCustomSummary
34763
+ }, React__default.createElement("p", null, renderTotal())));
34818
34764
  };
34819
34765
 
34820
34766
  var NoListItems = function NoListItems(_ref) {
@@ -35115,12 +35061,12 @@ var OdsTransfer = function OdsTransfer(props) {
35115
35061
  }));
35116
35062
  };
35117
35063
 
35118
- var _templateObject$q, _templateObject2$1;
35064
+ var _templateObject$q, _templateObject2$2;
35119
35065
  var useStyles$1 = antdStyle.createStyles(function (_ref) {
35120
35066
  var css = _ref.css;
35121
35067
  return {
35122
35068
  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 "]))),
35123
- 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 "])))
35069
+ gridCustomSummary: css(_templateObject2$2 || (_templateObject2$2 = _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 "])))
35124
35070
  };
35125
35071
  });
35126
35072
 
@@ -35546,11 +35492,11 @@ var concatFilteredLabel$1 = function concatFilteredLabel(result, totalloaded, fi
35546
35492
  }
35547
35493
  return result;
35548
35494
  };
35549
- var showSummaryItems$1 = function showSummaryItems(props) {
35495
+ var showSummaryItems = function showSummaryItems(props) {
35550
35496
  var _props$customSummary, _props$customSummary2, _props$customSummary3, _props$customSummary4, _props$customSummary5;
35551
35497
  return ((_props$customSummary = props.customSummary) === null || _props$customSummary === void 0 ? void 0 : _props$customSummary.showAvgInSummary) || ((_props$customSummary2 = props.customSummary) === null || _props$customSummary2 === void 0 ? void 0 : _props$customSummary2.showCountInSummary) || ((_props$customSummary3 = props.customSummary) === null || _props$customSummary3 === void 0 ? void 0 : _props$customSummary3.showMaxInSummary) || ((_props$customSummary4 = props.customSummary) === null || _props$customSummary4 === void 0 ? void 0 : _props$customSummary4.showMinInSummary) || ((_props$customSummary5 = props.customSummary) === null || _props$customSummary5 === void 0 ? void 0 : _props$customSummary5.showSumInSummary);
35552
35498
  };
35553
- var getSummaryItems$1 = function getSummaryItems(props, columns, grid, isMultiLevelColumn) {
35499
+ var getSummaryItems = function getSummaryItems(props, columns, grid, isMultiLevelColumn) {
35554
35500
  if (isMultiLevelColumn === void 0) {
35555
35501
  isMultiLevelColumn = false;
35556
35502
  }
@@ -35564,17 +35510,17 @@ var getSummaryItems$1 = function getSummaryItems(props, columns, grid, isMultiLe
35564
35510
  if (!colOption) {
35565
35511
  return col;
35566
35512
  }
35567
- ((_props$customSummary6 = props.customSummary) === null || _props$customSummary6 === void 0 ? void 0 : _props$customSummary6.showAvgInSummary) && totalItems.push(getSummaryItem$1(col, colOption.visibleIndex, "avg", isMultiLevelColumn, (_props$customSummary7 = props.customSummary) === null || _props$customSummary7 === void 0 ? void 0 : _props$customSummary7.summaryAvgLabel));
35568
- ((_props$customSummary8 = props.customSummary) === null || _props$customSummary8 === void 0 ? void 0 : _props$customSummary8.showCountInSummary) && totalItems.push(getSummaryItem$1(col, colOption.visibleIndex, "count", isMultiLevelColumn, (_props$customSummary9 = props.customSummary) === null || _props$customSummary9 === void 0 ? void 0 : _props$customSummary9.summaryCountLabel));
35569
- ((_props$customSummary10 = props.customSummary) === null || _props$customSummary10 === void 0 ? void 0 : _props$customSummary10.showMaxInSummary) && totalItems.push(getSummaryItem$1(col, colOption.visibleIndex, "max", isMultiLevelColumn, (_props$customSummary11 = props.customSummary) === null || _props$customSummary11 === void 0 ? void 0 : _props$customSummary11.summaryMaxLabel));
35570
- ((_props$customSummary12 = props.customSummary) === null || _props$customSummary12 === void 0 ? void 0 : _props$customSummary12.showMinInSummary) && totalItems.push(getSummaryItem$1(col, colOption.visibleIndex, "min", isMultiLevelColumn, (_props$customSummary13 = props.customSummary) === null || _props$customSummary13 === void 0 ? void 0 : _props$customSummary13.summaryMinLabel));
35571
- ((_props$customSummary14 = props.customSummary) === null || _props$customSummary14 === void 0 ? void 0 : _props$customSummary14.showSumInSummary) && totalItems.push(getSummaryItem$1(col, colOption.visibleIndex, "sum", isMultiLevelColumn, (_props$customSummary15 = props.customSummary) === null || _props$customSummary15 === void 0 ? void 0 : _props$customSummary15.summarySumLabel));
35513
+ ((_props$customSummary6 = props.customSummary) === null || _props$customSummary6 === void 0 ? void 0 : _props$customSummary6.showAvgInSummary) && totalItems.push(getSummaryItem(col, colOption.visibleIndex, "avg", isMultiLevelColumn, (_props$customSummary7 = props.customSummary) === null || _props$customSummary7 === void 0 ? void 0 : _props$customSummary7.summaryAvgLabel));
35514
+ ((_props$customSummary8 = props.customSummary) === null || _props$customSummary8 === void 0 ? void 0 : _props$customSummary8.showCountInSummary) && totalItems.push(getSummaryItem(col, colOption.visibleIndex, "count", isMultiLevelColumn, (_props$customSummary9 = props.customSummary) === null || _props$customSummary9 === void 0 ? void 0 : _props$customSummary9.summaryCountLabel));
35515
+ ((_props$customSummary10 = props.customSummary) === null || _props$customSummary10 === void 0 ? void 0 : _props$customSummary10.showMaxInSummary) && totalItems.push(getSummaryItem(col, colOption.visibleIndex, "max", isMultiLevelColumn, (_props$customSummary11 = props.customSummary) === null || _props$customSummary11 === void 0 ? void 0 : _props$customSummary11.summaryMaxLabel));
35516
+ ((_props$customSummary12 = props.customSummary) === null || _props$customSummary12 === void 0 ? void 0 : _props$customSummary12.showMinInSummary) && totalItems.push(getSummaryItem(col, colOption.visibleIndex, "min", isMultiLevelColumn, (_props$customSummary13 = props.customSummary) === null || _props$customSummary13 === void 0 ? void 0 : _props$customSummary13.summaryMinLabel));
35517
+ ((_props$customSummary14 = props.customSummary) === null || _props$customSummary14 === void 0 ? void 0 : _props$customSummary14.showSumInSummary) && totalItems.push(getSummaryItem(col, colOption.visibleIndex, "sum", isMultiLevelColumn, (_props$customSummary15 = props.customSummary) === null || _props$customSummary15 === void 0 ? void 0 : _props$customSummary15.summarySumLabel));
35572
35518
  }
35573
35519
  return col;
35574
35520
  });
35575
35521
  return totalItems;
35576
35522
  };
35577
- var getSummaryItem$1 = function getSummaryItem(col, visibleIndex, summaryType, isMultiLevelColumn, label) {
35523
+ var getSummaryItem = function getSummaryItem(col, visibleIndex, summaryType, isMultiLevelColumn, label) {
35578
35524
  if (!isMultiLevelColumn && visibleIndex == 0) {
35579
35525
  return React__default.createElement(DataGrid.TotalItem, {
35580
35526
  column: col.dataField,
@@ -36647,7 +36593,7 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
36647
36593
  column: gridColumns[0].dataField,
36648
36594
  summaryType: "custom",
36649
36595
  displayFormat: renderTotal()
36650
- }), gridRef.current && showSummaryItems$1(props) && getSummaryItems$1(props, gridColumns, gridRef.current.instance).map(function (item, _index) {
36596
+ }), gridRef.current && showSummaryItems(props) && getSummaryItems(props, gridColumns, gridRef.current.instance).map(function (item, _index) {
36651
36597
  return item;
36652
36598
  })), React__default.createElement(DataGrid.StateStoring, {
36653
36599
  enabled: true,