sccoreui 6.5.22 → 6.5.24

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.
@@ -31,7 +31,7 @@ function AdvancedFeatures({ props }) {
31
31
  };
32
32
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (props === null || props === void 0 ? void 0 : props.editMode) ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex align-items-center justify-content-between py-3 px-4 bg-white grid-header` }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center gap-3" }, { children: isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayEditHeading) &&
33
33
  (props === null || props === void 0 ? void 0 : props.EditHeadingDetails) && (0, jsx_runtime_1.jsx)(EditDetails, {}) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center gap-3" }, { children: isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displaySearch) && ((0, jsx_runtime_1.jsx)(gridS_search_1.default, {})) })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center gap-3" }, { children: [isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displaySidePanel) && ((0, jsx_runtime_1.jsx)(hide_column_1.default, {})), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayBulkEdit) &&
34
- (props === null || props === void 0 ? void 0 : props.BulkEditComponent) && (0, jsx_runtime_1.jsx)(BulkEdit, {}), (props === null || props === void 0 ? void 0 : props.editMode) && (0, jsx_runtime_1.jsx)(bulk_edit_action_1.default, { props: props })] }))] }))) : ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex align-items-center justify-content-between py-3 px-4 bg-white grid-header` }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center gap-3 grid-global-search" }, { children: [isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displaySearch) && ((0, jsx_runtime_1.jsx)(global_search_1.default, { searchPlaceHolder: props === null || props === void 0 ? void 0 : props.placeholder })), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayFilter) && ((0, jsx_runtime_1.jsx)(table_filter_1.default, {})), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayAdvancedFilter) && ((0, jsx_runtime_1.jsx)(AdvanceFilterWrapper, {})), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayRowGroupingElement) && (0, jsx_runtime_1.jsx)(column_group_1.default, { dataFromProps: props })] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center gap-3" }, { children: [isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displaySidePanel) && ((0, jsx_runtime_1.jsx)(hide_column_1.default, {})), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayGridViewListView) && (0, jsx_runtime_1.jsx)(grid_view_list_view_1.default, {}), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayRemoveItems) && ((0, jsx_runtime_1.jsx)(remove_items_1.default, { removeCallBack: props.removeCallBack })), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayBulkEdit) &&
34
+ (props === null || props === void 0 ? void 0 : props.BulkEditComponent) && (0, jsx_runtime_1.jsx)(BulkEdit, {}), (props === null || props === void 0 ? void 0 : props.editMode) && (0, jsx_runtime_1.jsx)(bulk_edit_action_1.default, { props: props })] }))] }))) : ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex align-items-center justify-content-between py-3 px-4 bg-white grid-header` }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center gap-3 grid-global-search" }, { children: [isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displaySearch) && ((0, jsx_runtime_1.jsx)(global_search_1.default, { searchPlaceHolder: props === null || props === void 0 ? void 0 : props.placeholder })), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayFilter) && ((0, jsx_runtime_1.jsx)(table_filter_1.default, {})), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayAdvancedFilter) && ((0, jsx_runtime_1.jsx)(AdvanceFilterWrapper, {})), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayRowGroupingElement) && (0, jsx_runtime_1.jsx)(column_group_1.default, { dataFromProps: props })] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center gap-3" }, { children: [isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displaySidePanel) && ((0, jsx_runtime_1.jsx)(hide_column_1.default, {})), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayGridViewListView) && (0, jsx_runtime_1.jsx)(grid_view_list_view_1.default, {}), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayRemoveItems) && ((0, jsx_runtime_1.jsx)(remove_items_1.default, { bulkRemoveComponent: props === null || props === void 0 ? void 0 : props.bulkRemoveComponent, removeCallBack: props.removeCallBack })), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayBulkEdit) &&
35
35
  (props === null || props === void 0 ? void 0 : props.BulkEditComponent) && (0, jsx_runtime_1.jsx)(BulkEdit, {}), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayBulkAction) &&
36
36
  (props === null || props === void 0 ? void 0 : props.bulkActionComponent) && ((0, jsx_runtime_1.jsx)(BulkAction, { checkBoxSelection: featureDetails.checkBoxSelection })), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayRefresh) && ((0, jsx_runtime_1.jsx)(refresh_grid_1.default, {})), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displaySort) && (0, jsx_runtime_1.jsx)(custom_sort_1.default, {}), isComponentVisible(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayRecords) && ((0, jsx_runtime_1.jsx)(record_detail_1.default, {}))] }))] }))) }));
37
37
  }
@@ -13,6 +13,7 @@ const skeleton_1 = require("primereact/skeleton");
13
13
  function Search({ searchPlaceHolder }) {
14
14
  const { featureDetails, setFeatureDetails, rowModelType, gridApi, quickSearch, conditionsToDisplay, setGridViewData, gridView, inputValue, deboucedValue, setInputValue } = (0, react_1.useContext)(context_provider_1.FeatureContext);
15
15
  const isDisabled = (0, helper_1.isComponentDisable)(conditionsToDisplay.displaySearch);
16
+ console.log(deboucedValue, inputValue, "input-data-values");
16
17
  (0, react_1.useEffect)(() => {
17
18
  var _a, _b, _c;
18
19
  if (rowModelType === constants_1.ROWMODELTYPE.CLIENT_SIDE && quickSearch) {
@@ -28,7 +28,7 @@ const form_1 = tslib_1.__importDefault(require("../../../form/form"));
28
28
  */
29
29
  const TableFilter = () => {
30
30
  // Context values for filter state management
31
- const { featureDetails, columnData, conditionType, conditionTypes, globalFilters, setConditionType, setGlobalFilters, setFeatureDetails, callGrid, setViewName, viewName, createView, enableViewCreate, filterModelText, enableAdvancedFilter, gridApi, conditionsToDisplay, renderSelectField, renderMultiSelectField, } = (0, react_1.useContext)(context_provider_1.FeatureContext);
31
+ const { featureDetails, columnData, conditionType, conditionTypes, globalFilters, setConditionType, setGlobalFilters, setFeatureDetails, callGrid, setViewName, viewName, createView, enableViewCreate, filterModelText, enableAdvancedFilter, gridApi, conditionsToDisplay, renderSelectField, renderMultiSelectField, onFiltersCleared, } = (0, react_1.useContext)(context_provider_1.FeatureContext);
32
32
  // Form reference for validation
33
33
  const formRef = (0, react_1.useRef)(null);
34
34
  // Column mapping keys
@@ -292,6 +292,7 @@ const TableFilter = () => {
292
292
  setViewName("");
293
293
  formSetter === null || formSetter === void 0 ? void 0 : formSetter("conditions", [newDefault]);
294
294
  formSetter === null || formSetter === void 0 ? void 0 : formSetter("viewName", "");
295
+ onFiltersCleared === null || onFiltersCleared === void 0 ? void 0 : onFiltersCleared();
295
296
  };
296
297
  /**
297
298
  * Create a saved view from current filter configuration
@@ -11,7 +11,7 @@ const FeatureSkeleton_1 = tslib_1.__importDefault(require("../../skeletons/Featu
11
11
  function RemoveItems(props) {
12
12
  var _a;
13
13
  const { featureDetails, conditionsToDisplay, serverSideSelectRow, gridApi } = (0, react_1.useContext)(context_provider_1.FeatureContext);
14
- const { removeCallBack } = props;
14
+ const { removeCallBack, bulkRemoveComponent } = props;
15
15
  const isDisabled = (0, helper_1.isComponentDisable)(conditionsToDisplay.displayRemoveItems);
16
16
  const removeItemsCallBack = () => {
17
17
  if (!isDisabled && removeCallBack) {
@@ -41,6 +41,9 @@ function RemoveItems(props) {
41
41
  return (((_d = featureDetails === null || featureDetails === void 0 ? void 0 : featureDetails.checkBoxSelection) === null || _d === void 0 ? void 0 : _d.allBoxChecked) ||
42
42
  featureDetails.checkBoxSelection.includedRecords.length > 1 || selectedNodes.length > 1);
43
43
  }, [serverSideSelectRow, featureDetails === null || featureDetails === void 0 ? void 0 : featureDetails.checkBoxSelection]);
44
+ if (bulkRemoveComponent) {
45
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: bulkRemoveComponent() });
46
+ }
44
47
  return (0, utilComponents_1.skeletonLoding)() ? ((0, jsx_runtime_1.jsx)(FeatureSkeleton_1.default, {})) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (serverSideSelectRow ? checkShowRemoveIcon : (((_a = featureDetails === null || featureDetails === void 0 ? void 0 : featureDetails.checkBoxSelection) === null || _a === void 0 ? void 0 : _a.allBoxChecked) || featureDetails.checkBoxSelection.includedRecords.length > 1)) ? (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `rounded_btn sc_icon_hover icon-40x40 ${isDisabled && "disabled"}`, onClick: removeItemsCallBack, title: "Remove" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "minus-circle", color: "text-red-800", size: 18 }) })) : "" }));
45
48
  }
46
49
  exports.default = RemoveItems;
@@ -9,7 +9,7 @@ const hooks_1 = require("primereact/hooks");
9
9
  const constants_1 = tslib_1.__importDefault(require("./constants"));
10
10
  exports.FeatureContext = (0, react_1.createContext)(null);
11
11
  function MyProvider({ children, value }) {
12
- const { featureDetails, setFeatureDetails, gridData, callGrid, totalRecords, initialFeature, defaultFilters, defaultSearchText, defaultSort, createView, enableViewCreate, filterModelText, sortModelText, recordDetailModelText, sidePanelText, sortOptions, filterConditions, clearFilters, setGridData, gridApi, updateColumnsForGrid, enableManageColumnsCallback, columnToRender, selectedGroup, setSelectedGroup, initialCheckBoxData, intialColumns, setIntialColumns, rowModelType, quickSearch, enableAdvancedFilter, conditionsToDisplay, gridViewFun, gridViewData, setGridViewData, gridView, serverSideSelectRow, defaultViewName, isDataLoading,
12
+ const { featureDetails, setFeatureDetails, gridData, callGrid, totalRecords, initialFeature, defaultFilters, defaultSearchText, defaultSort, createView, enableViewCreate, filterModelText, sortModelText, recordDetailModelText, sidePanelText, sortOptions, filterConditions, clearFilters, onFiltersCleared, setGridData, gridApi, updateColumnsForGrid, enableManageColumnsCallback, columnToRender, selectedGroup, setSelectedGroup, initialCheckBoxData, intialColumns, setIntialColumns, rowModelType, quickSearch, enableAdvancedFilter, conditionsToDisplay, gridViewFun, gridViewData, setGridViewData, gridView, serverSideSelectRow, defaultViewName, isDataLoading,
13
13
  // dynamicText
14
14
  renderSelectField, renderMultiSelectField, } = value;
15
15
  // States for sort
@@ -185,6 +185,7 @@ function MyProvider({ children, value }) {
185
185
  gridView,
186
186
  inputValue, deboucedValue, setInputValue, serverSideSelectRow, isDataLoading,
187
187
  renderSelectField, renderMultiSelectField,
188
+ onFiltersCleared,
188
189
  } }, { children: children })));
189
190
  }
190
191
  exports.default = MyProvider;
@@ -122,7 +122,12 @@ function ParentForGrid(props) {
122
122
  node.data.isSelected = currentStatus;
123
123
  updatedRows.push(Object.assign({}, node.data));
124
124
  });
125
- gridRef.current.api.applyTransaction({ update: updatedRows });
125
+ if (props.rowModelType === constants_1.ROWMODELTYPE.CLIENT_SIDE) {
126
+ gridRef.current.api.applyTransaction({ update: updatedRows });
127
+ }
128
+ else {
129
+ gridRef.current.api.refreshCells({ force: true });
130
+ }
126
131
  if (currentStatus) {
127
132
  // stroring all first and secodn group ids
128
133
  setSelectedGroup([...firstGroupIds, ...secondGroupIds]);
@@ -403,7 +408,6 @@ function ParentForGrid(props) {
403
408
  })), ((props === null || props === void 0 ? void 0 : props.onRowClicked) ? { onRowClicked: props === null || props === void 0 ? void 0 : props.onRowClicked } : {})), ((props === null || props === void 0 ? void 0 : props.quickSearch) ? { quickSearch: props.quickSearch } : {})), {
404
409
  // ...(props?.getDataPath && { getDataPath: props?.getDataPath }), // for clint side tree data enable fetuare
405
410
  onGridPreDestroyed: onGridPreDestroyed }), ((props === null || props === void 0 ? void 0 : props.rowDragManaged) ? { rowDragManaged: props === null || props === void 0 ? void 0 : props.rowDragManaged } : {})), gridProps);
406
- console.log("grid-props", props.serverSideSelectRow);
407
411
  // Fucntion to call the grid
408
412
  const callGrid = (featureDetails) => {
409
413
  // Reset checkbox selection on search/filter/sort changes for server-side selection
@@ -441,7 +445,7 @@ function ParentForGrid(props) {
441
445
  const newFilterQueries = ((_a = props === null || props === void 0 ? void 0 : props.defaultFilters) === null || _a === void 0 ? void 0 : _a.length)
442
446
  ? (0, helper_1.applyDefaultFilters)(props.defaultFilters)
443
447
  : [];
444
- const newSearchText = (props === null || props === void 0 ? void 0 : props.defaultSearchText) || "";
448
+ const newSearchText = (props === null || props === void 0 ? void 0 : props.defaultSearchText) || featureDetails.searchedText || "";
445
449
  const currentFeature = Object.assign(Object.assign({}, featureDetails), { filterQueries: newFilterQueries, searchedText: newSearchText });
446
450
  setDefaultFilters((props === null || props === void 0 ? void 0 : props.defaultFilters) || []);
447
451
  setDefaultSearchText(newSearchText);
@@ -524,7 +528,7 @@ function ParentForGrid(props) {
524
528
  initialFeature,
525
529
  defaultFilters,
526
530
  defaultSearchText,
527
- defaultSort, createView: props === null || props === void 0 ? void 0 : props.createView, enableViewCreate: (_a = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _a === void 0 ? void 0 : _a.enableViewCreate, filterModelText: (_b = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _b === void 0 ? void 0 : _b.filterModelText, sortModelText: (_c = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _c === void 0 ? void 0 : _c.sortModelText, recordDetailModelText: (_d = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _d === void 0 ? void 0 : _d.recordDetailModelText, sidePanelText: (_e = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _e === void 0 ? void 0 : _e.sidePanelText, sortOptions: (props === null || props === void 0 ? void 0 : props.sortOptions) ? props.sortOptions : 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,
531
+ defaultSort, createView: props === null || props === void 0 ? void 0 : props.createView, enableViewCreate: (_a = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _a === void 0 ? void 0 : _a.enableViewCreate, filterModelText: (_b = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _b === void 0 ? void 0 : _b.filterModelText, sortModelText: (_c = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _c === void 0 ? void 0 : _c.sortModelText, recordDetailModelText: (_d = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _d === void 0 ? void 0 : _d.recordDetailModelText, sidePanelText: (_e = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _e === void 0 ? void 0 : _e.sidePanelText, sortOptions: (props === null || props === void 0 ? void 0 : props.sortOptions) ? props.sortOptions : 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, onFiltersCleared: props === null || props === void 0 ? void 0 : props.onFiltersCleared, 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,
528
532
  setIntialColumns,
529
533
  gridViewFun,
530
534
  gridViewData,
@@ -542,6 +546,7 @@ function ParentForGrid(props) {
542
546
  props === null || props === void 0 ? void 0 : props.sortOptions,
543
547
  props === null || props === void 0 ? void 0 : props.filterConditions,
544
548
  props === null || props === void 0 ? void 0 : props.clearFilters,
549
+ props === null || props === void 0 ? void 0 : props.onFiltersCleared,
545
550
  props === null || props === void 0 ? void 0 : props.updateColumnsForGrid,
546
551
  props.enableManageColumnsCallback, selectedGroup, initialCheckBoxData,
547
552
  intialColumns, gridViewFun, gridViewData, gridView,
@@ -9,7 +9,7 @@ const context_provider_1 = require("./context-provider");
9
9
  const dataCellRenderer = (cellRendererParams, column, props) => {
10
10
  var _a, _b, _c;
11
11
  const { initialRenderer, cellCheckBoxRenderer } = cellRendererParams;
12
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "inline-flex w-full h-full" }, { children: ((_a = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _a === void 0 ? void 0 : _a.displayCheckboxOnRight) ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "custom_class_name flex w-full justify-content-between" }, { children: [typeof initialRenderer === "function" ? (initialRenderer(cellRendererParams)) : ((0, jsx_runtime_1.jsx)("div", { children: (_b = cellRendererParams === null || cellRendererParams === void 0 ? void 0 : cellRendererParams.data) === null || _b === void 0 ? void 0 : _b[column === null || column === void 0 ? void 0 : column.field] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center" }, { children: cellCheckBoxRenderer(cellRendererParams) }))] }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center " }, { children: cellCheckBoxRenderer(cellRendererParams) })), typeof initialRenderer === "function" ? (initialRenderer(cellRendererParams)) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "px-3" }, { children: (_c = cellRendererParams === null || cellRendererParams === void 0 ? void 0 : cellRendererParams.data) === null || _c === void 0 ? void 0 : _c[column === null || column === void 0 ? void 0 : column.field] })))] })) })));
12
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "inline-flex w-full h-full" }, { children: ((_a = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _a === void 0 ? void 0 : _a.displayCheckboxOnRight) ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "custom_class_name flex w-full justify-content-between" }, { children: [typeof initialRenderer === "function" ? (initialRenderer(cellRendererParams)) : ((0, jsx_runtime_1.jsx)("div", { children: (_b = cellRendererParams === null || cellRendererParams === void 0 ? void 0 : cellRendererParams.data) === null || _b === void 0 ? void 0 : _b[column === null || column === void 0 ? void 0 : column.field] })), cellCheckBoxRenderer(cellRendererParams) && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center" }, { children: cellCheckBoxRenderer(cellRendererParams) })))] }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [cellCheckBoxRenderer(cellRendererParams) && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center" }, { children: cellCheckBoxRenderer(cellRendererParams) }))), typeof initialRenderer === "function" ? (initialRenderer(cellRendererParams)) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "px-3" }, { children: (_c = cellRendererParams === null || cellRendererParams === void 0 ? void 0 : cellRendererParams.data) === null || _c === void 0 ? void 0 : _c[column === null || column === void 0 ? void 0 : column.field] })))] })) })));
13
13
  };
14
14
  exports.dataCellRenderer = dataCellRenderer;
15
15
  //Get this compnent from products
@@ -303,8 +303,13 @@ const TagifyComponent = (props) => {
303
303
  if (allowedKeys.includes(e.key)) {
304
304
  return;
305
305
  }
306
- // Allow Ctrl/Cmd combinations (copy, paste, etc.)
306
+ // Allow Ctrl/Cmd combinations (copy, select all, etc.) but NOT paste (handled by paste event)
307
307
  if (e.ctrlKey || e.metaKey) {
308
+ if (e.key === "v" || e.key === "V") {
309
+ // Paste is handled by the paste event handler
310
+ e.preventDefault();
311
+ return;
312
+ }
308
313
  return;
309
314
  }
310
315
  // Get current value to determine context
@@ -415,6 +420,17 @@ const TagifyComponent = (props) => {
415
420
  // Block everything else (alphabets, special chars, etc.)
416
421
  e.preventDefault();
417
422
  };
423
+ // Handle paste events - strip out special characters, allow only valid formula characters
424
+ const handlePaste = (e) => {
425
+ var _a;
426
+ e.preventDefault();
427
+ const pastedText = ((_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData("text/plain")) || "";
428
+ // Only allow digits, decimal point, operators, parentheses, spaces, and @
429
+ const sanitized = pastedText.replace(/[^0-9.+\-*/%()@ ]/g, "");
430
+ if (sanitized) {
431
+ document.execCommand("insertText", false, sanitized);
432
+ }
433
+ };
418
434
  // Use requestAnimationFrame to ensure DOM is ready after Menu transition
419
435
  const initTimeoutId = requestAnimationFrame(() => {
420
436
  var _a;
@@ -475,6 +491,7 @@ const TagifyComponent = (props) => {
475
491
  tagifyInput = ((_a = inputElement.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector(".tagify__input")) || null;
476
492
  if (tagifyInput) {
477
493
  tagifyInput.addEventListener("keydown", handleKeyDown);
494
+ tagifyInput.addEventListener("paste", handlePaste);
478
495
  }
479
496
  // On input change, just clear error display (no validation during typing)
480
497
  tagifyInstance.on("input", () => {
@@ -496,6 +513,7 @@ const TagifyComponent = (props) => {
496
513
  }
497
514
  if (tagifyInput) {
498
515
  tagifyInput.removeEventListener("keydown", handleKeyDown);
516
+ tagifyInput.removeEventListener("paste", handlePaste);
499
517
  }
500
518
  if (styleRef.current) {
501
519
  document.head.removeChild(styleRef.current);
@@ -11151,6 +11151,56 @@ exports.iconList = [
11151
11151
  </clipPath>
11152
11152
  </defs>
11153
11153
  </svg>
11154
+ `,
11155
+ },
11156
+ {
11157
+ name: "no-data-found-02",
11158
+ svg: `<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg">
11159
+ <g clip-path="url(#clip0_4286_6224)">
11160
+ <line opacity="0.33" x1="72.3144" y1="56.4029" x2="60.5019" y2="49.6529" stroke="url(#paint0_linear_4286_6224)"/>
11161
+ <line opacity="0.33" x1="11.2787" y1="21.5253" x2="-0.252593" y2="14.7753" stroke="url(#paint1_linear_4286_6224)"/>
11162
+ <line opacity="0.33" x1="-0.798326" y1="56.9341" x2="11.2954" y2="50.4654" stroke="url(#paint2_linear_4286_6224)"/>
11163
+ <line opacity="0.33" x1="61.0553" y1="22.0713" x2="72.3053" y2="15.3213" stroke="url(#paint3_linear_4286_6224)"/>
11164
+ <line opacity="0.33" y1="-0.5" x2="7.875" y2="-0.5" transform="matrix(-4.37114e-08 1 1 4.37114e-08 36.8438 64.125)" stroke="url(#paint4_linear_4286_6224)"/>
11165
+ <line opacity="0.33" x1="36.3438" y1="7.3125" x2="36.3438" y2="-2.18557e-08" stroke="url(#paint5_linear_4286_6224)"/>
11166
+ <path d="M36.3197 6.8799C36.2378 6.83258 36.1968 6.80892 36.1532 6.79966C36.1147 6.79146 36.0748 6.79146 36.0363 6.79966C35.9927 6.80892 35.9517 6.83258 35.8697 6.8799L11.4756 20.9638C11.3937 21.0112 11.3527 21.0348 11.3229 21.0679C11.2965 21.0972 11.2766 21.1317 11.2644 21.1692C11.2506 21.2116 11.2506 21.2589 11.2506 21.3536V49.5214C11.2506 49.6161 11.2506 49.6634 11.2644 49.7058C11.2766 49.7433 11.2965 49.7778 11.3229 49.8071C11.3527 49.8402 11.3937 49.8638 11.4756 49.9112L35.8697 63.9951C35.9517 64.0424 35.9927 64.0661 36.0363 64.0753C36.0748 64.0835 36.1147 64.0835 36.1532 64.0753C36.1968 64.0661 36.2378 64.0424 36.3197 63.9951L60.7138 49.9112C60.7958 49.8638 60.8368 49.8402 60.8666 49.8071C60.893 49.7778 60.9129 49.7433 60.9251 49.7058C60.9388 49.6634 60.9388 49.6161 60.9388 49.5214V21.3536C60.9388 21.2589 60.9388 21.2116 60.9251 21.1692C60.9129 21.1317 60.893 21.0972 60.8666 21.0679C60.8368 21.0348 60.7958 21.0112 60.7138 20.9638L36.3197 6.8799Z" stroke="#D0D5DD" stroke-linecap="round" stroke-linejoin="round"/>
11167
+ <path d="M37.7062 30.5489C36.8774 31.2242 35.8513 31.6115 34.783 31.6524C33.7147 31.6934 32.6621 31.3857 31.784 30.7758C31.487 30.5853 31.1311 30.5089 30.7821 30.5606C30.4331 30.6123 30.1146 30.7886 29.8856 31.057L26.5199 34.8436C25.8333 35.6159 25.454 36.6133 25.454 37.6467V42.9061C25.454 43.2791 25.6022 43.6367 25.8659 43.9005C26.1296 44.1642 26.4873 44.3124 26.8603 44.3124C27.2332 44.3124 27.5909 44.1642 27.8546 43.9005C28.1183 43.6367 28.2665 43.2791 28.2665 42.9061V37.6467C28.2657 37.3012 28.3922 36.9675 28.6218 36.7092L31.0555 33.9725C31.1358 33.8822 31.1759 33.8371 31.2232 33.813C31.2664 33.791 31.3097 33.7812 31.3581 33.7825C31.4112 33.7839 31.4699 33.8086 31.5875 33.8581C32.8267 34.3803 34.1825 34.5718 35.5215 34.4109C36.9722 34.2365 38.3442 33.6556 39.479 32.7352" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
11168
+ <path d="M46.5469 25.075C46.5469 24.9175 46.5469 24.8387 46.5162 24.7786C46.4893 24.7256 46.4462 24.6826 46.3933 24.6557C46.3331 24.625 46.2544 24.625 46.0969 24.625H44.1844C44.0269 24.625 43.9481 24.625 43.8879 24.6557C43.835 24.6826 43.792 24.7256 43.765 24.7786C43.7344 24.8387 43.7344 24.9175 43.7344 25.075V29.8C43.7344 29.9575 43.7344 30.0363 43.765 30.0964C43.792 30.1494 43.835 30.1924 43.8879 30.2193C43.9481 30.25 44.0269 30.25 44.1844 30.25H46.0969C46.2544 30.25 46.3331 30.25 46.3933 30.2193C46.4462 30.1924 46.4893 30.1494 46.5162 30.0964C46.5469 30.0363 46.5469 29.9575 46.5469 29.8V25.075Z" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
11169
+ <path d="M38.8125 27.8012C38.8125 27.9229 38.8125 27.9837 38.8334 28.0348C38.8518 28.0799 38.8816 28.1195 38.92 28.1496C38.9634 28.1837 39.0219 28.2004 39.1389 28.2339L43.1607 29.383C43.3555 29.4386 43.4529 29.4664 43.5299 29.4446C43.5974 29.4254 43.6553 29.3818 43.6922 29.3222C43.7344 29.2541 43.7344 29.1528 43.7344 28.9503V25.9247C43.7344 25.7222 43.7344 25.6209 43.6922 25.5528C43.6553 25.4932 43.5974 25.4496 43.5299 25.4304C43.4529 25.4086 43.3555 25.4364 43.1608 25.492L39.1389 26.6411C39.0219 26.6746 38.9634 26.6913 38.92 26.7254C38.8816 26.7555 38.8518 26.7951 38.8334 26.8402C38.8125 26.8913 38.8125 26.9521 38.8125 27.0738V27.8012Z" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
11170
+ <path d="M42.3281 29.1451V40.6109C42.3281 40.6797 42.3281 40.7141 42.3359 40.7465C42.3428 40.7752 42.3541 40.8026 42.3696 40.8278C42.387 40.8562 42.4113 40.8805 42.4599 40.9291L45.8438 44.313" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
11171
+ <path d="M42.3281 44.3125V41.8833C42.3281 41.5425 42.3281 41.3721 42.2607 41.2932C42.2023 41.2248 42.1146 41.1884 42.0248 41.1955C41.9214 41.2036 41.8009 41.3241 41.5599 41.5651L38.8125 44.3125" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
11172
+ <path d="M36.7031 26.3828C36.7031 27.0355 36.4438 27.6614 35.9823 28.123C35.5208 28.5845 34.8949 28.8438 34.2422 28.8438C33.5895 28.8438 32.9636 28.5845 32.502 28.123C32.0405 27.6614 31.7812 27.0355 31.7812 26.3828C31.7812 25.7301 32.0405 25.1042 32.502 24.6427C32.9636 24.1812 33.5895 23.9219 34.2422 23.9219C34.8949 23.9219 35.5208 24.1812 35.9823 24.6427C36.4438 25.1042 36.7031 25.7301 36.7031 26.3828Z" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
11173
+ </g>
11174
+ <defs>
11175
+ <linearGradient id="paint0_linear_4286_6224" x1="72.8106" y1="55.5346" x2="60.9981" y2="48.7846" gradientUnits="userSpaceOnUse">
11176
+ <stop stop-color="#635B99" stop-opacity="0"/>
11177
+ <stop offset="1" stop-color="#D0D5DD"/>
11178
+ </linearGradient>
11179
+ <linearGradient id="paint1_linear_4286_6224" x1="11.7838" y1="20.6622" x2="0.252586" y2="13.9122" gradientUnits="userSpaceOnUse">
11180
+ <stop stop-color="#D0D5DD"/>
11181
+ <stop offset="1" stop-color="#635B99" stop-opacity="0"/>
11182
+ </linearGradient>
11183
+ <linearGradient id="paint2_linear_4286_6224" x1="-0.326674" y1="57.8159" x2="11.7671" y2="51.3471" gradientUnits="userSpaceOnUse">
11184
+ <stop stop-color="#635B99" stop-opacity="0"/>
11185
+ <stop offset="1" stop-color="#D0D5DD"/>
11186
+ </linearGradient>
11187
+ <linearGradient id="paint3_linear_4286_6224" x1="61.5697" y1="22.9287" x2="72.8198" y2="16.1787" gradientUnits="userSpaceOnUse">
11188
+ <stop stop-color="#D0D5DD"/>
11189
+ <stop offset="1" stop-color="#635B99" stop-opacity="0"/>
11190
+ </linearGradient>
11191
+ <linearGradient id="paint4_linear_4286_6224" x1="0" y1="0.5" x2="7.875" y2="0.5" gradientUnits="userSpaceOnUse">
11192
+ <stop stop-color="#D0D5DD"/>
11193
+ <stop offset="1" stop-color="#635B99" stop-opacity="0"/>
11194
+ </linearGradient>
11195
+ <linearGradient id="paint5_linear_4286_6224" x1="37.3438" y1="7.3125" x2="37.3438" y2="2.18557e-08" gradientUnits="userSpaceOnUse">
11196
+ <stop stop-color="#D0D5DD"/>
11197
+ <stop offset="1" stop-color="#635B99" stop-opacity="0"/>
11198
+ </linearGradient>
11199
+ <clipPath id="clip0_4286_6224">
11200
+ <rect width="72" height="72" rx="6.75" fill="white"/>
11201
+ </clipPath>
11202
+ </defs>
11203
+ </svg>
11154
11204
  `,
11155
11205
  },
11156
11206
  {
@@ -21,6 +21,7 @@ interface MyProviderProps {
21
21
  sortOptions: any[];
22
22
  filterConditions: FilterCondition[];
23
23
  clearFilters: Boolean;
24
+ onFiltersCleared?: () => void;
24
25
  setGridData: (GridData: any) => void;
25
26
  gridApi: any;
26
27
  updateColumnsForGrid: (columns: ColumnDef) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.5.22",
3
+ "version": "6.5.24",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",