sccoreui 6.2.39 → 6.2.41

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 (105) hide show
  1. package/dist/App.js +1 -2
  2. package/dist/components/ag-grid/AgGrid.js +13 -2
  3. package/dist/components/ag-grid/parent-for-grid.js +27 -34
  4. package/dist/components/form/form-fields/form-fields.js +4 -4
  5. package/dist/components/formula-template/FormulaCoponent.js +3 -3
  6. package/dist/components/froala-editor/FroalaEditor.js +2 -2
  7. package/dist/pages/aggrid/AgGrid.js +740 -0
  8. package/dist/pages/aggrid/BulkAction.js +7 -0
  9. package/dist/pages/aggrid/RowGroupTrail.js +114 -0
  10. package/dist/pages/aggrid/fakeServer.js +95 -0
  11. package/dist/pages/aggrid/id-cell.js +9 -0
  12. package/dist/pages/aggrid/interface.js +2 -0
  13. package/dist/pages/avatar/avatar.js +338 -0
  14. package/dist/pages/badges/badge.js +73 -0
  15. package/dist/pages/breadcrumb/breadcrumb.js +14 -0
  16. package/dist/pages/button/button.js +10 -0
  17. package/dist/pages/button-group/button-group.js +10 -0
  18. package/dist/pages/chart/chart.js +257 -0
  19. package/dist/pages/checkbox/checkbox.js +26 -0
  20. package/dist/pages/checkbox-group/checkbox-group-component.js +21 -0
  21. package/dist/pages/color-picker/color-picker.js +13 -0
  22. package/dist/pages/content-dividers/content-dividers.js +11 -0
  23. package/dist/pages/custom-color-picker/custom-color-picker.js +12 -0
  24. package/dist/pages/custom-multiselect/CustomMultiSelect.js +37 -0
  25. package/dist/pages/date-picker/date-picker.js +20 -0
  26. package/dist/pages/dropdown/dropdown-component.js +39 -0
  27. package/dist/pages/file-upload/file-upload.js +34 -0
  28. package/dist/pages/flex.js +15 -0
  29. package/dist/pages/formulaTemplate/formulaTemplate.js +154 -0
  30. package/dist/pages/frolaTextEditor/froala-text-editor.js +12 -0
  31. package/dist/pages/home.js +50 -0
  32. package/dist/pages/input/input-text.js +112 -0
  33. package/dist/pages/list-box-dropdown/listboxdropdown.js +55 -0
  34. package/dist/pages/loader-indicator/loader-indicator.js +10 -0
  35. package/dist/pages/mega-mennu/mega-menu.js +84 -0
  36. package/dist/pages/multi-select-dropdown/multi-select-dropdown.js +51 -0
  37. package/dist/pages/not-found/not-found.js +10 -0
  38. package/dist/pages/paginator/pagination.js +122 -0
  39. package/dist/pages/progress-bar/progress-bar.js +27 -0
  40. package/dist/pages/progress-steps/progress-steps.js +24 -0
  41. package/dist/pages/radio-button/radio-button-component.js +11 -0
  42. package/dist/pages/shadows/shadows.js +7 -0
  43. package/dist/pages/slideout-menus/slideout-menus.js +104 -0
  44. package/dist/pages/sliders/slider.js +39 -0
  45. package/dist/pages/tabels/table-data.js +2193 -0
  46. package/dist/pages/tabels/table.js +98 -0
  47. package/dist/pages/tabs/tabs.js +9 -0
  48. package/dist/pages/tags/tags.js +70 -0
  49. package/dist/pages/testingcomponents/TestComponent.js +82 -0
  50. package/dist/pages/testingcomponents/data.js +30 -0
  51. package/dist/pages/toast/toast.js +47 -0
  52. package/dist/pages/toggle/toggle.js +10 -0
  53. package/dist/pages/tooltip/tooltip.js +13 -0
  54. package/dist/pages/treeDropdownSelect/treedropdowselect.js +34 -0
  55. package/dist/pages/types/type.js +2 -0
  56. package/dist/types/pages/aggrid/AgGrid.d.ts +2 -0
  57. package/dist/types/pages/aggrid/BulkAction.d.ts +2 -0
  58. package/dist/types/pages/aggrid/RowGroupTrail.d.ts +4 -0
  59. package/dist/types/pages/aggrid/fakeServer.d.ts +7 -0
  60. package/dist/types/pages/aggrid/id-cell.d.ts +2 -0
  61. package/dist/types/pages/aggrid/interface.d.ts +12 -0
  62. package/dist/types/pages/avatar/avatar.d.ts +2 -0
  63. package/dist/types/pages/badges/badge.d.ts +3 -0
  64. package/dist/types/pages/breadcrumb/breadcrumb.d.ts +2 -0
  65. package/dist/types/pages/button/button.d.ts +2 -0
  66. package/dist/types/pages/button-group/button-group.d.ts +2 -0
  67. package/dist/types/pages/chart/chart.d.ts +2 -0
  68. package/dist/types/pages/checkbox/checkbox.d.ts +2 -0
  69. package/dist/types/pages/checkbox-group/checkbox-group-component.d.ts +3 -0
  70. package/dist/types/pages/color-picker/color-picker.d.ts +2 -0
  71. package/dist/types/pages/content-dividers/content-dividers.d.ts +2 -0
  72. package/dist/types/pages/custom-color-picker/custom-color-picker.d.ts +2 -0
  73. package/dist/types/pages/custom-multiselect/CustomMultiSelect.d.ts +2 -0
  74. package/dist/types/pages/date-picker/date-picker.d.ts +2 -0
  75. package/dist/types/pages/dropdown/dropdown-component.d.ts +2 -0
  76. package/dist/types/pages/file-upload/file-upload.d.ts +3 -0
  77. package/dist/types/pages/flex.d.ts +2 -0
  78. package/dist/types/pages/formulaTemplate/formulaTemplate.d.ts +2 -0
  79. package/dist/types/pages/frolaTextEditor/froala-text-editor.d.ts +2 -0
  80. package/dist/types/pages/home.d.ts +2 -0
  81. package/dist/types/pages/input/input-text.d.ts +3 -0
  82. package/dist/types/pages/list-box-dropdown/listboxdropdown.d.ts +2 -0
  83. package/dist/types/pages/loader-indicator/loader-indicator.d.ts +3 -0
  84. package/dist/types/pages/mega-mennu/mega-menu.d.ts +2 -0
  85. package/dist/types/pages/multi-select-dropdown/multi-select-dropdown.d.ts +2 -0
  86. package/dist/types/pages/not-found/not-found.d.ts +2 -0
  87. package/dist/types/pages/paginator/pagination.d.ts +2 -0
  88. package/dist/types/pages/progress-bar/progress-bar.d.ts +3 -0
  89. package/dist/types/pages/progress-steps/progress-steps.d.ts +2 -0
  90. package/dist/types/pages/radio-button/radio-button-component.d.ts +2 -0
  91. package/dist/types/pages/shadows/shadows.d.ts +2 -0
  92. package/dist/types/pages/slideout-menus/slideout-menus.d.ts +2 -0
  93. package/dist/types/pages/sliders/slider.d.ts +1 -0
  94. package/dist/types/pages/tabels/table-data.d.ts +3 -0
  95. package/dist/types/pages/tabels/table.d.ts +2 -0
  96. package/dist/types/pages/tabs/tabs.d.ts +3 -0
  97. package/dist/types/pages/tags/tags.d.ts +3 -0
  98. package/dist/types/pages/testingcomponents/TestComponent.d.ts +4 -0
  99. package/dist/types/pages/testingcomponents/data.d.ts +7 -0
  100. package/dist/types/pages/toast/toast.d.ts +2 -0
  101. package/dist/types/pages/toggle/toggle.d.ts +2 -0
  102. package/dist/types/pages/tooltip/tooltip.d.ts +2 -0
  103. package/dist/types/pages/treeDropdownSelect/treedropdowselect.d.ts +2 -0
  104. package/dist/types/pages/types/type.d.ts +64 -0
  105. package/package.json +1 -1
package/dist/App.js CHANGED
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const jsx_runtime_1 = require("react/jsx-runtime");
4
- // import Home from './pages/home';
5
4
  require("./App.scss");
6
5
  // import Home from "./pages/home";
7
6
  const App = () => {
8
- return ((0, jsx_runtime_1.jsx)("div", {}));
7
+ return (0, jsx_runtime_1.jsx)("div", {});
9
8
  };
10
9
  exports.default = App;
@@ -13,10 +13,21 @@ const infinite_row_model_1 = require("@ag-grid-community/infinite-row-model");
13
13
  const server_side_row_model_1 = require("@ag-grid-enterprise/server-side-row-model");
14
14
  const row_grouping_1 = require("@ag-grid-enterprise/row-grouping");
15
15
  const set_filter_1 = require("@ag-grid-enterprise/set-filter");
16
+ const advanced_filter_1 = require("@ag-grid-enterprise/advanced-filter");
16
17
  const LicenceKey_1 = require("./LicenceKey");
17
- core_1.ModuleRegistry.registerModules([client_side_row_model_1.ClientSideRowModelModule, range_selection_1.RangeSelectionModule, infinite_row_model_1.InfiniteRowModelModule, server_side_row_model_1.ServerSideRowModelModule, row_grouping_1.RowGroupingModule, set_filter_1.SetFilterModule]);
18
+ const menu_1 = require("@ag-grid-enterprise/menu");
19
+ core_1.ModuleRegistry.registerModules([
20
+ client_side_row_model_1.ClientSideRowModelModule,
21
+ range_selection_1.RangeSelectionModule,
22
+ infinite_row_model_1.InfiniteRowModelModule,
23
+ server_side_row_model_1.ServerSideRowModelModule,
24
+ row_grouping_1.RowGroupingModule,
25
+ set_filter_1.SetFilterModule,
26
+ advanced_filter_1.AdvancedFilterModule,
27
+ menu_1.MenuModule,
28
+ ]);
18
29
  core_2.LicenseManager.setLicenseKey(LicenceKey_1.LICENSEKEY);
19
30
  const AgGrid = ({ style, gridOptions, onGridReady, gridRef }) => {
20
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "ag-theme-quartz ", style: { height: style === null || style === void 0 ? void 0 : style.height, width: style === null || style === void 0 ? void 0 : style.width } }, { children: (0, jsx_runtime_1.jsx)(react_1.AgGridReact, Object.assign({ ref: gridRef, onGridReady: onGridReady, reactiveCustomComponents: true }, gridOptions)) })) }));
31
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "ag-theme-quartz ", style: { height: style === null || style === void 0 ? void 0 : style.height, width: style === null || style === void 0 ? void 0 : style.width } }, { children: (0, jsx_runtime_1.jsx)(react_1.AgGridReact, Object.assign({ ref: gridRef }, (onGridReady ? { onGridReady: onGridReady } : {}), { reactiveCustomComponents: true }, gridOptions)) })) }));
21
32
  };
22
33
  exports.default = AgGrid;
@@ -243,8 +243,7 @@ function ParentForGrid(props) {
243
243
  // To display checkbox on right
244
244
  return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center justify-content-between" }, { children: [(0, jsx_runtime_1.jsx)(group_checkbox_1.default, { checked: (selectedGroup === null || selectedGroup === void 0 ? void 0 : selectedGroup.includes((_b = params === null || params === void 0 ? void 0 : params.node) === null || _b === void 0 ? void 0 : _b.id)) ||
245
245
  (((_c = featureDetails === null || featureDetails === void 0 ? void 0 : featureDetails.checkBoxSelection) === null || _c === void 0 ? void 0 : _c.allBoxChecked) &&
246
- !((_d = featureDetails === null || featureDetails === void 0 ? void 0 : featureDetails.checkBoxSelection) === null || _d === void 0 ? void 0 : _d.isIndeterminate)), onChange: (e) => onChange(e, params), isIndeterminate: false, shouldRenderOnRight: (_e = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _e === void 0 ? void 0 : _e.displayCheckboxOnRight }), props.rowGroupHeaderComponent ?
247
- (0, jsx_runtime_1.jsx)(HeaderComponent, { params: params }) : (_f = params === null || params === void 0 ? void 0 : params.node) === null || _f === void 0 ? void 0 : _f.field] })));
246
+ !((_d = featureDetails === null || featureDetails === void 0 ? void 0 : featureDetails.checkBoxSelection) === null || _d === void 0 ? void 0 : _d.isIndeterminate)), onChange: (e) => onChange(e, params), isIndeterminate: false, shouldRenderOnRight: (_e = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _e === void 0 ? void 0 : _e.displayCheckboxOnRight }), props.rowGroupHeaderComponent ? ((0, jsx_runtime_1.jsx)(HeaderComponent, { params: params })) : ((_f = params === null || params === void 0 ? void 0 : params.node) === null || _f === void 0 ? void 0 : _f.field)] })));
248
247
  }
249
248
  return (0, jsx_runtime_1.jsx)(Wrapper, {});
250
249
  };
@@ -265,7 +264,7 @@ function ParentForGrid(props) {
265
264
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: ((_b = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _b === void 0 ? void 0 : _b.displayCheckboxOnRight) ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center justify-content-between" }, { children: [props === null || props === void 0 ? void 0 : props.ChildComponentForGroup(params), cellCheckBoxRenderer(params)] }))) : ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center justify-content-between" }, { children: [cellCheckBoxRenderer(params), props === null || props === void 0 ? void 0 : props.ChildComponentForGroup(params)] }))) }));
266
265
  }
267
266
  else {
268
- return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(props === null || props === void 0 ? void 0 : props.ChildComponentForGroup) ? props === null || props === void 0 ? void 0 : props.ChildComponentForGroup(params) : (0, jsx_runtime_1.jsx)("span", { children: params === null || params === void 0 ? void 0 : params.data[(_c = params === null || params === void 0 ? void 0 : params.colDef) === null || _c === void 0 ? void 0 : _c.field] }), " "] });
267
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(props === null || props === void 0 ? void 0 : props.ChildComponentForGroup) ? (props === null || props === void 0 ? void 0 : props.ChildComponentForGroup(params)) : ((0, jsx_runtime_1.jsx)("span", { children: params === null || params === void 0 ? void 0 : params.data[(_c = params === null || params === void 0 ? void 0 : params.colDef) === null || _c === void 0 ? void 0 : _c.field] })), " "] }));
269
268
  }
270
269
  };
271
270
  // Group default values
@@ -277,7 +276,8 @@ function ParentForGrid(props) {
277
276
  GridHeaderComponent, // Header component
278
277
  headerCheckBoxRenderer, //
279
278
  props === null || props === void 0 ? void 0 : props.enableCheckboxForGroupHeader, props.conditionsToDisplay.displayGroupCount, parseInt(props === null || props === void 0 ? void 0 : props.rowGroupColumnWidth), // for grouped column width
280
- cellRendererConditionally, GroupHeaderRenderer);
279
+ cellRendererConditionally, GroupHeaderRenderer // Custom component for group header
280
+ );
281
281
  }
282
282
  else {
283
283
  return (0, helper_1.autoGroupColumnDef)((props === null || props === void 0 ? void 0 : props.enableTree) ? true : false, // If tree enable
@@ -286,7 +286,8 @@ function ParentForGrid(props) {
286
286
  GridHeaderComponent, // Header component
287
287
  headerCheckBoxRenderer, //
288
288
  props === null || props === void 0 ? void 0 : props.enableCheckboxForGroupHeader, props.conditionsToDisplay.displayGroupCount, parseInt(props === null || props === void 0 ? void 0 : props.rowGroupColumnWidth), // for grouped column width
289
- GroupHeaderRenderer);
289
+ GroupHeaderRenderer // Custom component for group header
290
+ );
290
291
  }
291
292
  };
292
293
  (0, react_1.useEffect)(() => {
@@ -299,10 +300,12 @@ function ParentForGrid(props) {
299
300
  }, [intialColumns]);
300
301
  (0, react_1.useEffect)(() => {
301
302
  if (props === null || props === void 0 ? void 0 : props.getGridRef) {
302
- props.getGridRef(gridRef);
303
+ props.getGridRef.current = gridRef.current;
303
304
  }
304
305
  }, [props === null || props === void 0 ? void 0 : props.getGridRef]);
305
- const gridStyle = Object.assign({ width: (_c = props === null || props === void 0 ? void 0 : props.style) === null || _c === void 0 ? void 0 : _c.width }, ((totalRecords > 6 || !((_d = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _d === void 0 ? void 0 : _d.isGridAutoHeight)) ? { height: (_e = props === null || props === void 0 ? void 0 : props.style) === null || _e === void 0 ? void 0 : _e.height } : null));
306
+ const gridStyle = Object.assign({ width: (_c = props === null || props === void 0 ? void 0 : props.style) === null || _c === void 0 ? void 0 : _c.width }, (totalRecords > 6 || !((_d = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _d === void 0 ? void 0 : _d.isGridAutoHeight)
307
+ ? { height: (_e = props === null || props === void 0 ? void 0 : props.style) === null || _e === void 0 ? void 0 : _e.height }
308
+ : null));
306
309
  // Dont show hide overlay component when any row pinned
307
310
  (0, react_1.useEffect)(() => {
308
311
  var _a;
@@ -315,9 +318,12 @@ function ParentForGrid(props) {
315
318
  if (hasPinnedRows || hasRowData) {
316
319
  api.hideOverlay(); // Hide the noRowsOverlayComponent if pinned rows or row data exists
317
320
  }
321
+ else {
322
+ api === null || api === void 0 ? void 0 : api.showNoRowsOverlay(); // Show the noRowsOverlayComponent only if no rows or pinned rows are present
323
+ }
318
324
  }, [gridData.rowData, props === null || props === void 0 ? void 0 : props.pinnedTopRowData]);
319
325
  // Options that grid should have
320
- const gridOptions = Object.assign({ columnDefs: (_f = gridData === null || gridData === void 0 ? void 0 : gridData.columnData) === null || _f === void 0 ? void 0 : _f.map((column) => {
326
+ const gridOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ columnDefs: (_f = gridData === null || gridData === void 0 ? void 0 : gridData.columnData) === null || _f === void 0 ? void 0 : _f.map((column) => {
321
327
  var _a, _b;
322
328
  if ((column === null || column === void 0 ? void 0 : column.enableChildCheckbox) && (column === null || column === void 0 ? void 0 : column.enableHeaderCheckbox)) {
323
329
  return Object.assign(Object.assign({}, column), { headerComponent: (params) => headerCheckBoxRenderer(params === null || params === void 0 ? void 0 : params.displayName, (column === null || column === void 0 ? void 0 : column.headerComponent) && ""), cellRenderer: (params) => (0, utilComponents_1.dataCellRenderer)(params, column, props), cellRendererParams: {
@@ -328,8 +334,15 @@ function ParentForGrid(props) {
328
334
  else {
329
335
  return Object.assign(Object.assign({}, column), { headerName: (_b = column === null || column === void 0 ? void 0 : column.headerName) === null || _b === void 0 ? void 0 : _b.toUpperCase() });
330
336
  }
331
- }), autoGroupColumnDef: manageColumnGrouping(), treeData: (props === null || props === void 0 ? void 0 : props.enableTree) ? props === null || props === void 0 ? void 0 : props.enableTree : false, getDataPath: (props === null || props === void 0 ? void 0 : props.enableTree) ? getDataPath : null, defaultColDef: defaultColDef, suppressMenuHide: false, rowSelection: "multiple", suppressRowClickSelection: true, headerHeight: props === null || props === void 0 ? void 0 : props.columnHeaderHeight, rowHeight: constants_1.ROW_HEIGHT, rowModelType: props.rowModelType, pinnedTopRowData: props === null || props === void 0 ? void 0 : props.pinnedTopRowData, cacheBlockSize: constants_1.BLOCK_SIZE, maxBlocksInCache: constants_1.MAX_BLOCKS, blockLoadDebounceMillis: constants_1.DEBOUNCE_INTERVAL, noRowsOverlayComponent: props === null || props === void 0 ? void 0 : props.noRowsOverlayComponent, loadingOverlayComponent: loading_component_1.default, suppressCellFocus: true, suppressPropertyNamesCheck: true, suppressServerSideFullWidthLoadingRow: true, enableRangeSelection: (_g = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _g === void 0 ? void 0 : _g.enableFillHandle, enableFillHandle: (_h = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _h === void 0 ? void 0 : _h.enableFillHandle, onFillEnd: wrapperToFillOpertation, fillOperation: myOpertaion, serverSideInitialRowCount: (props === null || props === void 0 ? void 0 : props.serverSideInitialRowCount) || 10, getRowId: getRowId, fillHandleDirection: "y" }, ((totalRecords < 6 && ((_j = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _j === void 0 ? void 0 : _j.isGridAutoHeight)) ? { domLayout: 'autoHeight' } : { domLayout: undefined }) // for auto height based on table content and isGridAutoHeight set to true
332
- );
337
+ }), autoGroupColumnDef: (props === null || props === void 0 ? void 0 : props.autoGroupColumnDef)
338
+ ? props === null || props === void 0 ? void 0 : props.autoGroupColumnDef
339
+ : manageColumnGrouping(), treeData: (props === null || props === void 0 ? void 0 : props.enableTree) ? props === null || props === void 0 ? void 0 : props.enableTree : false, getDataPath: (props === null || props === void 0 ? void 0 : props.enableTree) ? getDataPath : null, defaultColDef: defaultColDef, suppressMenuHide: false, rowSelection: "multiple", suppressRowClickSelection: true, headerHeight: props === null || props === void 0 ? void 0 : props.columnHeaderHeight, rowHeight: constants_1.ROW_HEIGHT, rowModelType: props.rowModelType, pinnedTopRowData: props === null || props === void 0 ? void 0 : props.pinnedTopRowData, cacheBlockSize: constants_1.BLOCK_SIZE, maxBlocksInCache: constants_1.MAX_BLOCKS, blockLoadDebounceMillis: constants_1.DEBOUNCE_INTERVAL, noRowsOverlayComponent: props === null || props === void 0 ? void 0 : props.noRowsOverlayComponent, loadingOverlayComponent: loading_component_1.default, suppressCellFocus: true, suppressPropertyNamesCheck: true, suppressServerSideFullWidthLoadingRow: true, enableRangeSelection: (_g = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _g === void 0 ? void 0 : _g.enableFillHandle, enableFillHandle: (_h = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _h === void 0 ? void 0 : _h.enableFillHandle, onFillEnd: wrapperToFillOpertation, fillOperation: myOpertaion, serverSideInitialRowCount: (props === null || props === void 0 ? void 0 : props.serverSideInitialRowCount) || 10, getRowId: getRowId, enableAdvancedFilter: (props === null || props === void 0 ? void 0 : props.enableAdvancedFilter) || false, fillHandleDirection: "y" }, ((props === null || props === void 0 ? void 0 : props.rowData) && { rowData: props === null || props === void 0 ? void 0 : props.rowData })), (totalRecords <= 6 && ((_j = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _j === void 0 ? void 0 : _j.isGridAutoHeight)
340
+ ? { domLayout: "autoHeight" }
341
+ : { domLayout: undefined })), ((props === null || props === void 0 ? void 0 : props.dataTypeDefinitions) && {
342
+ dataTypeDefinitions: props === null || props === void 0 ? void 0 : props.dataTypeDefinitions,
343
+ })), ((props === null || props === void 0 ? void 0 : props.treeData) && { treeData: props === null || props === void 0 ? void 0 : props.treeData })), ((props === null || props === void 0 ? void 0 : props.groupDefaultExpanded) && {
344
+ groupDefaultExpanded: props === null || props === void 0 ? void 0 : props.groupDefaultExpanded, // to enable tree data
345
+ })), ((props === null || props === void 0 ? void 0 : props.getDataPath) && { getDataPath: props === null || props === void 0 ? void 0 : props.getDataPath }));
333
346
  // Fucntion to call the grid
334
347
  const callGrid = (featureDetails) => {
335
348
  onGridReady(gridReadyEvent, featureDetails);
@@ -387,35 +400,15 @@ function ParentForGrid(props) {
387
400
  setFeatureDetails(Object.assign(Object.assign({}, featureDetails), { checkBoxSelection: initialCheckBoxData }));
388
401
  }
389
402
  }, [props === null || props === void 0 ? void 0 : props.emptyCheckboxStatus]);
390
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(error_ui_1.default, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ style: { height: gridStyle === null || gridStyle === void 0 ? void 0 : gridStyle.height, width: gridStyle === null || gridStyle === void 0 ? void 0 : gridStyle.width }, className: "ag-grid-container" }, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(context_provider_1.default, Object.assign({ value: {
391
- featureDetails,
403
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(error_ui_1.default, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ style: { height: gridStyle === null || gridStyle === void 0 ? void 0 : gridStyle.height, width: gridStyle === null || gridStyle === void 0 ? void 0 : gridStyle.width }, className: "ag-grid-container" }, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(context_provider_1.default, Object.assign({ value: Object.assign({ featureDetails,
392
404
  setFeatureDetails,
393
405
  gridData,
394
406
  callGrid,
395
407
  totalRecords,
396
408
  initialFeature,
397
- defaultFilters,
398
- createView: props === null || props === void 0 ? void 0 : props.createView,
399
- enableViewCreate: (_k = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _k === void 0 ? void 0 : _k.enableViewCreate,
400
- filterModelText: (_l = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _l === void 0 ? void 0 : _l.filterModelText,
401
- sortModelText: (_m = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _m === void 0 ? void 0 : _m.sortModelText,
402
- recordDetailModelText: (_o = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _o === void 0 ? void 0 : _o.recordDetailModelText,
403
- sidePanelText: (_p = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _p === void 0 ? void 0 : _p.sidePanelText,
404
- sortOptions: (props === null || props === void 0 ? void 0 : props.sortOptions)
409
+ defaultFilters, createView: props === null || props === void 0 ? void 0 : props.createView, enableViewCreate: (_k = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _k === void 0 ? void 0 : _k.enableViewCreate, filterModelText: (_l = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _l === void 0 ? void 0 : _l.filterModelText, sortModelText: (_m = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _m === void 0 ? void 0 : _m.sortModelText, recordDetailModelText: (_o = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _o === void 0 ? void 0 : _o.recordDetailModelText, sidePanelText: (_p = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _p === void 0 ? void 0 : _p.sidePanelText, sortOptions: (props === null || props === void 0 ? void 0 : props.sortOptions)
405
410
  ? props.sortOptions
406
- : constants_1.COLUMN_SORT_OPTIONS,
407
- filterConditions: props === null || props === void 0 ? void 0 : props.filterConditions,
408
- clearFilters: props === null || props === void 0 ? void 0 : props.clearFilters,
409
- setGridData,
410
- gridApi: gridRef,
411
- updateColumnsForGrid: props === null || props === void 0 ? void 0 : props.updateColumnsForGrid,
412
- enableManageColumnsCallback: props.enableManageColumnsCallback,
413
- columnToRender: gridData.columnData,
414
- selectedGroup: selectedGroup,
415
- setSelectedGroup: setSelectedGroup,
416
- initialCheckBoxData: initialCheckBoxData,
417
- intialColumns,
418
- setIntialColumns
419
- } }, { children: ((_q = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _q === void 0 ? void 0 : _q.displayFeaturesHeader) && ((0, jsx_runtime_1.jsx)(advanced_feature_1.default, { props: props })) })), (0, jsx_runtime_1.jsx)(AgGrid_1.default, { style: gridStyle, gridOptions: gridOptions, onGridReady: onGridReady, gridRef: gridRef })] }) })) }) }));
411
+ : constants_1.COLUMN_SORT_OPTIONS, filterConditions: props === null || props === void 0 ? void 0 : props.filterConditions, clearFilters: props === null || props === void 0 ? void 0 : props.clearFilters, setGridData, gridApi: gridRef, updateColumnsForGrid: props === null || props === void 0 ? void 0 : props.updateColumnsForGrid, enableManageColumnsCallback: props.enableManageColumnsCallback, columnToRender: gridData.columnData, selectedGroup: selectedGroup, setSelectedGroup: setSelectedGroup, initialCheckBoxData: initialCheckBoxData, intialColumns,
412
+ setIntialColumns }, ((props === null || props === void 0 ? void 0 : props.rowData) && { rowData: props === null || props === void 0 ? void 0 : props.rowData })) }, { children: ((_q = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _q === void 0 ? void 0 : _q.displayFeaturesHeader) && ((0, jsx_runtime_1.jsx)(advanced_feature_1.default, { props: props })) })), (0, jsx_runtime_1.jsx)(AgGrid_1.default, { style: gridStyle, gridOptions: gridOptions, onGridReady: (props === null || props === void 0 ? void 0 : props.rowData) ? undefined : onGridReady, gridRef: gridRef })] }) })) }) }));
420
413
  }
421
414
  exports.default = ParentForGrid;
@@ -21,17 +21,17 @@ const InputTextField = (props) => {
21
21
  const InputNumberField = (props) => {
22
22
  const { errors, touched, name, length, label, placeholder, useGrouping = false, optional, setFieldValue, min, max, maxLength, className, validate, disabled, isLoading, inputClassName, icon, iconPos, maxFractionDigits, minFractionDigits } = props;
23
23
  return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex flex-column" }, { children: !isLoading ?
24
- (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [optional && (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "font-medium text-base mb-1 w-full flex justify-content-between", htmlFor: name }, { children: [label, (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-base font-medium font-italic text-gray-600" }, { children: "Optional" }))] })), !optional && (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "font-medium text-base mb-1", htmlFor: name }, { children: label })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, errors: errors, touched: touched, validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: icon ?
25
- (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: `p-input-icon-${iconPos}` }, { children: [(0, jsx_runtime_1.jsx)("i", { className: `pi pi-${icon} text-base` }), (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ useGrouping: useGrouping, maxFractionDigits: maxFractionDigits ? maxFractionDigits : 0, minFractionDigits: minFractionDigits ? minFractionDigits : 0, inputClassName: inputClassName ? inputClassName : '', min: min, max: max, disabled: disabled, pt: { input: { root: { autoComplete: 'off' } } }, maxLength: maxLength, placeholder: placeholder }, field, { onValueChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), className: ` ${errors[name] && touched[name] ? 'p-invalid' : ''} ${length === 'full' ? 'full_form_field' : 'form_field'} ${className}`, id: name }))] }))
24
+ (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [optional && (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "font-medium text-base mb-1 w-full flex justify-content-between", htmlFor: name }, { children: [label, (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-base font-medium font-italic text-gray-600" }, { children: "Optional" }))] })), !optional && (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "font-medium text-base mb-1", htmlFor: name }, { children: label })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, errors: errors, touched: touched, validate: validate }, { children: ({}) => ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: icon ?
25
+ (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: `p-input-icon-${iconPos}` }, { children: [(0, jsx_runtime_1.jsx)("i", { className: `pi pi-${icon} text-base` }), (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, { useGrouping: useGrouping, maxFractionDigits: maxFractionDigits ? maxFractionDigits : 0, minFractionDigits: minFractionDigits ? minFractionDigits : 0, inputClassName: inputClassName ? inputClassName : '', min: min, max: max, disabled: disabled, maxLength: maxLength, placeholder: placeholder, onValueChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), className: ` ${errors[name] && touched[name] ? 'p-invalid' : ''} ${length === 'full' ? 'full_form_field' : 'form_field'} ${className}`, id: name })] }))
26
26
  :
27
- (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ useGrouping: useGrouping, maxFractionDigits: maxFractionDigits ? maxFractionDigits : 0, minFractionDigits: minFractionDigits ? minFractionDigits : 0, inputClassName: inputClassName ? inputClassName : '', min: min, max: max, disabled: disabled, pt: { input: { root: { autoComplete: 'off' } } }, maxLength: maxLength, placeholder: placeholder }, field, { onValueChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), className: ` ${errors[name] && touched[name] ? 'p-invalid' : ''} ${length === 'full' ? 'full_form_field' : 'form_field'} ${className}`, id: name })) })) })), errors[name] && touched[name] ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors[name] }) }))) : (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) }))] })
27
+ (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, { useGrouping: useGrouping, maxFractionDigits: maxFractionDigits ? maxFractionDigits : 0, minFractionDigits: minFractionDigits ? minFractionDigits : 0, inputClassName: inputClassName ? inputClassName : '', min: min, max: max, disabled: disabled, maxLength: maxLength, placeholder: placeholder, onValueChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), className: ` ${errors[name] && touched[name] ? 'p-invalid' : ''} ${length === 'full' ? 'full_form_field' : 'form_field'} ${className}`, id: name }) })) })), errors[name] && touched[name] ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors[name] }) }))) : (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) }))] })
28
28
  :
29
29
  (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "20px", className: "mb-1 w-5rem" }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `${className ? className : 'form_field'} ` }, { children: (0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "40px" }) }))] }) })));
30
30
  };
31
31
  const InputCurrencyField = (props) => {
32
32
  const { errors, spanClassName, touched, name, length, label, placeholder, optional, setFieldValue, min, max, maxLength, className, validate, disabled, isLoading } = props;
33
33
  return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex flex-column" }, { children: !isLoading ?
34
- (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [optional && (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "font-medium text-base mb-1 w-full flex justify-content-between", htmlFor: name }, { children: [label, (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-base font-medium font-italic text-gray-600" }, { children: "Optional" }))] })), !optional && (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "font-medium text-base mb-1", htmlFor: name }, { children: label })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, errors: errors, touched: touched, validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: `${spanClassName} p-input-icon-left form_field` }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "p-input-prefix text-lg text-gray-600 font-normal" }, { children: "$" })), (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ "aria-autocomplete": "none", minFractionDigits: 2, disabled: disabled, min: min, max: max, maxLength: maxLength }, field, { onChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), maxFractionDigits: 2, placeholder: placeholder, className: ` customNumberField ${errors[name] && touched[name] ? 'p-invalid' : ''} ${length === 'full' ? 'full_form_field' : 'form_field'} ${className}`, id: name }))] }))) })), errors[name] && touched[name] ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors[name] }) }))) : (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) }))] })
34
+ (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [optional && (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "font-medium text-base mb-1 w-full flex justify-content-between", htmlFor: name }, { children: [label, (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-base font-medium font-italic text-gray-600" }, { children: "Optional" }))] })), !optional && (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "font-medium text-base mb-1", htmlFor: name }, { children: label })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, errors: errors, touched: touched, validate: validate }, { children: ({}) => ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: `${spanClassName} p-input-icon-left form_field` }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "p-input-prefix text-lg text-gray-600 font-normal" }, { children: "$" })), (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, { "aria-autocomplete": "none", minFractionDigits: 2, disabled: disabled, min: min, max: max, maxLength: maxLength, onValueChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), maxFractionDigits: 2, placeholder: placeholder, className: ` customNumberField ${errors[name] && touched[name] ? 'p-invalid' : ''} ${length === 'full' ? 'full_form_field' : 'form_field'} ${className}`, id: name })] }))) })), errors[name] && touched[name] ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors[name] }) }))) : (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) }))] })
35
35
  :
36
36
  (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "20px", className: "mb-1 w-5rem" }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `${className ? className : 'form_field'} ` }, { children: (0, jsx_runtime_1.jsx)(skeleton_1.Skeleton, { height: "40px" }) }))] }) })));
37
37
  };
@@ -489,14 +489,14 @@ const FormulaComponent = (props) => {
489
489
  switch (optiontype) {
490
490
  case "INCREASE_BY_VALUE":
491
491
  case "DECREASE_BY_VALUE": {
492
- return ((0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ useGrouping: false, min: 0, minFractionDigits: 2, maxFractionDigits: 2, maxLength: props === null || props === void 0 ? void 0 : props.maxLength }, props === null || props === void 0 ? void 0 : props.field, { onValueChange: (e) => (props === null || props === void 0 ? void 0 : props.onChange) && (props === null || props === void 0 ? void 0 : props.onChange(e)), placeholder: "Enter Number", value: props === null || props === void 0 ? void 0 : props.inputValue, className: "border-none w-6", inputClassName: "border-none focus:shadow-none" })));
492
+ return ((0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ useGrouping: false, min: 0, minFractionDigits: 2, maxFractionDigits: 2, maxLength: (props === null || props === void 0 ? void 0 : props.maxLength) || Infinity }, props === null || props === void 0 ? void 0 : props.field, { onValueChange: (e) => (props === null || props === void 0 ? void 0 : props.onChange) && (props === null || props === void 0 ? void 0 : props.onChange(e)), placeholder: "Enter Number", value: props === null || props === void 0 ? void 0 : props.inputValue, className: "border-none w-6", inputClassName: "border-none focus:shadow-none" })));
493
493
  }
494
494
  case "INCREASE_BY_PERCENTAGE":
495
495
  case "DECREASE_BY_PERCENTAGE": {
496
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "w-6 relative" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "absolute left-0 h-full flex align-items-center px-2" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "percent-01", size: 16, color: "#344054" }) })), (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ useGrouping: false, min: 0, max: 99, minFractionDigits: 2, maxFractionDigits: 2 }, props === null || props === void 0 ? void 0 : props.field, { onChange: (e) => (props === null || props === void 0 ? void 0 : props.onChange) && (props === null || props === void 0 ? void 0 : props.onChange(e)), placeholder: "Enter Number", value: props === null || props === void 0 ? void 0 : props.inputValue, className: "border-none w-full", inputClassName: "border-none pl-8 focus:shadow-none" }))] })));
496
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "w-6 relative" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "absolute left-0 h-full flex align-items-center px-2" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "percent-01", size: 16, color: "#344054" }) })), (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ useGrouping: false, min: 0, max: 99, minFractionDigits: 2, maxFractionDigits: 2, maxLength: (props === null || props === void 0 ? void 0 : props.maxLength) || Infinity }, props === null || props === void 0 ? void 0 : props.field, { onValueChange: (e) => (props === null || props === void 0 ? void 0 : props.onChange) && (props === null || props === void 0 ? void 0 : props.onChange(e)), placeholder: "Enter Number", value: props === null || props === void 0 ? void 0 : props.inputValue, className: "border-none w-full", inputClassName: "border-none pl-8 focus:shadow-none" }))] })));
497
497
  }
498
498
  case "MANUAL": {
499
- return ((0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ useGrouping: false, min: 0, minFractionDigits: 2, maxFractionDigits: 2 }, props === null || props === void 0 ? void 0 : props.field, { onChange: (e) => (props === null || props === void 0 ? void 0 : props.onChange) && (props === null || props === void 0 ? void 0 : props.onChange(e)), placeholder: "Enter Number", value: props === null || props === void 0 ? void 0 : props.inputValue, className: "border-none w-6", inputClassName: "border-none focus:shadow-none" })));
499
+ return ((0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ useGrouping: false, min: 0, minFractionDigits: 2, maxFractionDigits: 2, maxLength: (props === null || props === void 0 ? void 0 : props.maxLength) || Infinity }, props === null || props === void 0 ? void 0 : props.field, { onValueChange: (e) => (props === null || props === void 0 ? void 0 : props.onChange) && (props === null || props === void 0 ? void 0 : props.onChange(e)), placeholder: "Enter Number", value: props === null || props === void 0 ? void 0 : props.inputValue, className: "border-none w-6", inputClassName: "border-none focus:shadow-none" })));
500
500
  }
501
501
  case "CALCULATION": {
502
502
  const pattern = /(?:[a-f0-9]{24}|msrp|map|costprice)/g;
@@ -16,8 +16,8 @@ const FroalaTextEditor = ({ onChange, value, placeholderText, id, className }) =
16
16
  // Callback function to handle content changes
17
17
  const handleModelChange = (content) => {
18
18
  setEditorContent(content);
19
- // onChange(content)
20
- onChange(editorRef.current.editor.el.getInnerHTML());
19
+ onChange(content);
20
+ // onChange(editorRef.current.editor.el.getInnerHTML())
21
21
  };
22
22
  (0, react_1.useEffect)(() => {
23
23
  setEditorContent(value);