ods-component-lib 1.18.152 → 1.18.154

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 (34) hide show
  1. package/dist/components/antd/form/OdsBasicForm.d.ts +18 -0
  2. package/dist/components/antd/icon/OdsIcon.d.ts +10 -0
  3. package/dist/components/antd/modal/OdsAdvanceModal.d.ts +7 -0
  4. package/dist/components/antd/select/OdsCustomMultiSelect.d.ts +7 -0
  5. package/dist/components/antd/select/OdsMultiSelect.d.ts +9 -0
  6. package/dist/components/custom/OdsLogin.d.ts +8 -0
  7. package/dist/components/devextreme/DxDataPopupForm.d.ts +3 -0
  8. package/dist/components/devextreme/DynamicIcon.d.ts +5 -0
  9. package/dist/components/devextreme/OdsDataGridNew.d.ts +56 -0
  10. package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/ContentHandlers.d.ts +14 -0
  11. package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/EditorPreparedHandlers.d.ts +7 -0
  12. package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/OnExportingHandlers.d.ts +19 -0
  13. package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/OptionHandlers.d.ts +7 -0
  14. package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/SummaryHandlers.d.ts +21 -0
  15. package/dist/components/devextreme/OdsInlineEditDataGrid/partials/ActionCellRender.d.ts +15 -0
  16. package/dist/components/devextreme/OdsInlineEditDataGrid/partials/EditingPartial.d.ts +9 -0
  17. package/dist/components/devextreme/OdsInlineEditDataGrid/partials/PageTitle.d.ts +8 -0
  18. package/dist/components/devextreme/OdsProfDataGrid.d.ts +3 -0
  19. package/dist/components/devextreme/OdsServerSideDatagrid/OdsServerSideDatagrid.Types.d.ts +1 -0
  20. package/dist/components/devextreme/dataGridHandlers/OnToolbarButtonHandler.d.ts +0 -9
  21. package/dist/components/devextreme/treeview/DxTreeView.d.ts +3 -0
  22. package/dist/index.js +90 -68
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.modern.js +90 -68
  25. package/dist/index.modern.js.map +1 -1
  26. package/dist/stories/OdsAdvanceModal/OdsAdvanceModal.stories.d.ts +42 -0
  27. package/dist/stories/OdsAdvanceModal/Samples/BasicOdsAdvanceModal.sample.d.ts +8 -0
  28. package/dist/stories/OdsCustomMultiSelect/OdsCustomMultiSelect.stories.d.ts +9 -0
  29. package/dist/stories/OdsCustomMultiSelect/Samples/Basic.Sample.d.ts +1 -0
  30. package/dist/stories/OdsCustomMultiSelect/Samples/ModeMultiple.Sample.d.ts +1 -0
  31. package/dist/stories/OdsModal/Samples/OdsModal.Sample.d.ts +1 -0
  32. package/dist/stories/OdsTimePicker/Samples/TimeRangePicker.d.ts +2 -0
  33. package/dist/utils/DynamicIcon.d.ts +5 -0
  34. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { FormProps, ButtonProps } from 'antd';
3
+ export interface IFormItemRuleProps {
4
+ required?: boolean;
5
+ message?: string;
6
+ }
7
+ export interface IFormItemProps {
8
+ label?: string;
9
+ name?: string;
10
+ formItemType: string;
11
+ rules?: IFormItemRuleProps[];
12
+ }
13
+ export interface IFormProps extends FormProps {
14
+ formItems: IFormItemProps[];
15
+ formButtons: ButtonProps[];
16
+ }
17
+ declare function OdsBasicForm(props: IFormProps): React.JSX.Element;
18
+ export default OdsBasicForm;
@@ -0,0 +1,10 @@
1
+ import { IconBaseProps } from "@ant-design/icons/lib/components/Icon";
2
+ import React from "react";
3
+ export interface IconProps extends IconBaseProps {
4
+ type: string;
5
+ twoToneColor?: string;
6
+ iconComponent?: string;
7
+ iconSVCName?: string;
8
+ }
9
+ declare function OdsIcon(props: IconProps): React.JSX.Element;
10
+ export default OdsIcon;
@@ -0,0 +1,7 @@
1
+ import { ModalProps } from "antd";
2
+ import React from "react";
3
+ export interface ICustomModalProps extends ModalProps {
4
+ content: React.ReactNode;
5
+ }
6
+ declare const OdsAdvanceModal: React.FC<ICustomModalProps>;
7
+ export default OdsAdvanceModal;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { SelectProps } from "antd";
3
+ export interface ISelectProps extends SelectProps {
4
+ buttonLabel: string;
5
+ }
6
+ declare function OdsCustomMultiSelect(props: ISelectProps): React.JSX.Element;
7
+ export default OdsCustomMultiSelect;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { SelectProps } from "antd";
3
+ import { IOdsSelectOption } from "./OdsSelect.styled";
4
+ export interface OdsMultiSelectProps extends SelectProps {
5
+ selectAllText?: string | undefined;
6
+ dataSource: IOdsSelectOption[];
7
+ }
8
+ declare const OdsMultiSelect: (props: OdsMultiSelectProps) => React.JSX.Element;
9
+ export default OdsMultiSelect;
@@ -0,0 +1,8 @@
1
+ import { FormProps } from "antd";
2
+ import React from "react";
3
+ export interface IFormProps extends FormProps {
4
+ items: any[];
5
+ loading: boolean;
6
+ }
7
+ declare function OdsLogin(props: IFormProps): React.JSX.Element;
8
+ export default OdsLogin;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.MemoExoticComponent<(props: any) => React.JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const DynamicIcon: ({ iconName }: {
3
+ iconName: any;
4
+ }) => React.JSX.Element;
5
+ export default DynamicIcon;
@@ -0,0 +1,56 @@
1
+ import React from "react";
2
+ import { IDataGridOptions, IEditingProps, ISelectionProps, IButtonProps } from 'devextreme-react/data-grid';
3
+ import { ButtonType } from "antd/es/button/buttonHelpers";
4
+ interface IButtonGroup extends IButtonProps {
5
+ type?: ButtonType;
6
+ label?: string;
7
+ onclick?: React.MouseEventHandler<HTMLElement>;
8
+ actionPermission?: boolean;
9
+ }
10
+ interface IEditingoptions extends IEditingProps {
11
+ formItems?: any[];
12
+ title?: string;
13
+ }
14
+ interface ISelectOptions extends ISelectionProps {
15
+ selectEnable: boolean;
16
+ }
17
+ interface IOdsDataGridProps extends IDataGridOptions {
18
+ actionButtonGroup?: IButtonGroup[];
19
+ toolbarButtonGroup?: IButtonGroup[];
20
+ exportFileName?: string;
21
+ summaryTotalColumnName?: string;
22
+ storeState?: boolean;
23
+ summaryTotalDataCount?: number;
24
+ summaryTotalDataDisplayLabel?: string;
25
+ summaryTotalPagesize?: number;
26
+ editHintLabel?: string;
27
+ editButtonClick?: any;
28
+ deleteButtonClick?: any;
29
+ pageTitle?: string;
30
+ pageSize?: number;
31
+ pagingEnable?: boolean;
32
+ searchEnable?: boolean;
33
+ filterEnable?: boolean;
34
+ headerFilterEnable?: boolean;
35
+ columnChooserPositionDisabled?: boolean;
36
+ editEnable?: boolean;
37
+ popupTitle?: string;
38
+ scroll?: any;
39
+ exportEnable?: boolean;
40
+ customPopup?: boolean;
41
+ onExportingCustom?: any;
42
+ filterEnabledShow?: boolean;
43
+ scrolUseNative?: boolean;
44
+ formItems?: any[];
45
+ hintForDeleteButton?: string;
46
+ hintForEditButton?: string;
47
+ exportFormats?: string[];
48
+ actionPermission?: boolean;
49
+ columns: any[];
50
+ actionColumnEnable?: boolean;
51
+ edit?: IEditingoptions;
52
+ selectOptions?: ISelectOptions;
53
+ actionColumnCaption?: string;
54
+ }
55
+ declare function OdsDataGridNew(props: IOdsDataGridProps): React.JSX.Element;
56
+ export default OdsDataGridNew;
@@ -0,0 +1,14 @@
1
+ import { ContentReadyEvent } from "devextreme/ui/data_grid";
2
+ import { IColumnConfig } from "../types";
3
+ /**
4
+ * Custom hook to handle content ready events for the data grid.
5
+ * @param {React.MutableRefObject<any>} lastPageIndexRef - Reference to the last page index.
6
+ * @param {boolean} contentReady - Boolean indicating if the content is ready.
7
+ * @param {Function} setRowCount - Function to set the row count state
8
+ * @param {Function} setContentReady - Function to set the content ready state.
9
+ * @param {Function} setCurrentPage - Function to set the current page state.
10
+ * @param {Function} setCurrentPageSize - Function to set the current page size state.
11
+ * @param {Function} [callback] - Optional callback function.
12
+ * @returns {(e: ContentReadyEvent<any, any>) => void} handleContentReady - Handler for content ready event.
13
+ */
14
+ export declare const useContentHandlers: (lastPageIndexRef: React.MutableRefObject<any>, contentReady: boolean, columns: IColumnConfig[], setRowCount: Function, setContentReady: Function, setCurrentPage: Function, setCurrentPageSize: Function, setHeaderFilterData: Function, callback?: Function) => (e: ContentReadyEvent<any, any>) => void;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Custom hook that returns a callback function to handle the "editorPrepared" event of a DevExtreme component.
3
+ * This callback function is responsible for customizing the editor's behavior based on specific conditions.
4
+ *
5
+ * @returns {Function} The callback function to handle the "editorPrepared" event.
6
+ */
7
+ export declare const useEditorPreparedHandlers: () => (e: any) => void;
@@ -0,0 +1,19 @@
1
+ interface IOnExportingProps {
2
+ gridComponent: any;
3
+ baseFileName?: string;
4
+ selectedText?: string;
5
+ getSummary: () => string;
6
+ selectedRowsOnly: boolean;
7
+ }
8
+ /**
9
+ * Handles the exporting of data from the grid component.
10
+ *
11
+ * @param {IOnExportingProps} params - The parameters for exporting the data.
12
+ * @param {React.RefObject<Grid>} params.gridComponent - The reference to the grid component.
13
+ * @param {string} params.baseFileName - The base file name for the exported file.
14
+ * @param {string} params.selectedText - The text to be displayed for selected rows.
15
+ * @param {Function} params.getSummary - The function to get the summary of the exported data.
16
+ * @param {boolean} params.selectedRowsOnly - Indicates whether to export only selected rows.
17
+ */
18
+ export declare const onExporting: ({ gridComponent, baseFileName, selectedText, getSummary, selectedRowsOnly, }: IOnExportingProps) => void;
19
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Custom hook to handle option change events for the data grid.
3
+ * @param {Object} dataGridRef - The dataGridRef property passed to the hook.
4
+ * @param {Function} setFilterApplied - Function to set the filter applied state.
5
+ * @returns {Function} - Handler function for option changed event.
6
+ */
7
+ export declare const useOptionHandlers: (dataGridRef: any, setFilterApplied: any) => (e: any) => void;
@@ -0,0 +1,21 @@
1
+ import type { ISummaryRowOptions } from "../types";
2
+ interface IUseSummaryHandlersProps {
3
+ customSummary?: ISummaryRowOptions;
4
+ totalRecordCount: number;
5
+ currentPageSize: number;
6
+ currentPage: number;
7
+ filterApplied: boolean;
8
+ rowCount: number;
9
+ filteredRowCount: number;
10
+ isServerSide?: boolean;
11
+ }
12
+ /**
13
+ * Custom hook that provides summary handlers for a data grid.
14
+ *
15
+ * @param {IUseSummaryHandlersProps} props - The props object containing necessary parameters.
16
+ * @returns {Object} - An object containing the renderTotal function.
17
+ */
18
+ export declare const useSummaryHandlers: ({ customSummary, totalRecordCount, currentPageSize, currentPage, filterApplied, rowCount, filteredRowCount, }: IUseSummaryHandlersProps) => {
19
+ renderTotal: () => string | null;
20
+ };
21
+ export {};
@@ -0,0 +1,15 @@
1
+ import { FC } from "react";
2
+ import { IVirtualDataGridProps } from "../types";
3
+ interface ActionCellRenderProps {
4
+ cellData: any;
5
+ actionButtons: IVirtualDataGridProps["actionButtonGroup"];
6
+ edit?: IVirtualDataGridProps["edit"];
7
+ actionButtonGroup?: IVirtualDataGridProps["actionButtonGroup"];
8
+ }
9
+ /**
10
+ * Renders the action buttons for a cell in the OdsInlineEditDataGrid component.
11
+ * @param {ActionCellRenderProps} props - The props for the ActionCellRender component.
12
+ * @returns {ReactNode} - The rendered action buttons.
13
+ */
14
+ declare const ActionCellRender: FC<ActionCellRenderProps>;
15
+ export default ActionCellRender;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { IEditingOptions } from "../types";
3
+ /**
4
+ * Component that handles editing functionalities within the data grid.
5
+ * @param {IEditingOptions} props - The properties passed to the component.
6
+ * @returns {JSX.Element} - The JSX element representing the editing handlers.
7
+ */
8
+ declare const EditingPartial: React.FC<IEditingOptions>;
9
+ export default EditingPartial;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { IToolbarButton } from "../types";
3
+ interface PageTitleAndToolbarProps {
4
+ pageTitle?: string;
5
+ toolbarButtonGroup?: IToolbarButton[];
6
+ }
7
+ declare const MemoizedPageTitleAndToolbar: React.NamedExoticComponent<PageTitleAndToolbarProps>;
8
+ export default MemoizedPageTitleAndToolbar;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare function OdsProfDataGrid(props: any): React.JSX.Element;
3
+ export default OdsProfDataGrid;
@@ -79,5 +79,6 @@ export interface IVirtualDataGridProps extends IDataGridOptions {
79
79
  totalRecordCount: number;
80
80
  columnResizingMode?: 'nextColumn' | 'widget';
81
81
  dataGridRef: any;
82
+ applyCellRenderToHeaderFilter?: boolean;
82
83
  }
83
84
  export {};
@@ -3,14 +3,5 @@ interface IOnToolbarPreparingOptions {
3
3
  toolbarButtonGroup?: any[];
4
4
  callback?: (e: any) => void;
5
5
  }
6
- /**
7
- * Handles the rendering and configuration of the toolbar for ODS DataGrid.
8
- * This hook prepares the toolbar based on the button configuration provided through props,
9
- * rendering primary and secondary buttons directly and additional buttons in a dropdown if necessary.
10
- *
11
- * @param {Object} props - The properties including configuration for toolbar buttons and the page title.
12
- * @returns {Function} A memoized function that configures and populates the toolbar with buttons and title.
13
- * This function is intended to be used as a callback in the toolbar's preparation phase of the DataGrid component.
14
- */
15
6
  export declare const useOnToolbarButtonHandler: ({ pageTitle, toolbarButtonGroup, callback }: IOnToolbarPreparingOptions) => (e: any) => void;
16
7
  export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const DxTreeView: (props: any) => React.JSX.Element;
3
+ export default DxTreeView;
package/dist/index.js CHANGED
@@ -35026,7 +35026,7 @@ var useStyles$2 = antdStyle.createStyles(function (_ref) {
35026
35026
  var css = _ref.css,
35027
35027
  token = _ref.token;
35028
35028
  return {
35029
- toolbarGrid: css(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n & .toolbar-primary-button {\n margin-left: ", "px;\n }\n\n & .toolbar-dropdown-container {\n margin-left: ", "px;\n }\n "])), token.margin, token.marginXXS)
35029
+ toolbarGrid: css(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n & .toolbar-primary-button {\n margin-left: ", "px;\n }\n & .toolbar-dropdown-container {\n margin-left: ", "px;\n }\n & .title-container { \n display: flex;\n margin: 0;\n }\n "])), token.margin, token.marginXXS)
35030
35030
  };
35031
35031
  });
35032
35032
 
@@ -35036,79 +35036,94 @@ var useOnToolbarButtonHandler = function useOnToolbarButtonHandler(_ref) {
35036
35036
  callback = _ref.callback;
35037
35037
  var _useStyles = useStyles$2(),
35038
35038
  styles = _useStyles.styles;
35039
- var onToolbarPreparing = React.useMemo(function () {
35040
- return function (e) {
35041
- if ((toolbarButtonGroup === null || toolbarButtonGroup === void 0 ? void 0 : toolbarButtonGroup.length) > 0) {
35042
- var primaryButtons = toolbarButtonGroup.slice(0, 3);
35043
- var additionalButtons = toolbarButtonGroup.length > 3 ? toolbarButtonGroup.slice(3) : [];
35044
- primaryButtons.forEach(function (button, index) {
35045
- var buttonContainer = document.createElement('div');
35046
- var rootButton = client_1(buttonContainer);
35047
- rootButton.render(React__default.createElement(React__default.Fragment, null, React__default.createElement(OdsButton, Object.assign({
35048
- key: index,
35049
- className: "toolbar-primary-button",
35050
- type: button.type
35051
- }, button.onclick && {
35052
- onClick: button.onclick
35053
- }, {
35054
- disabled: button.disabled
35055
- }), button.label)));
35056
- e.toolbarOptions.items.push({
35057
- location: 'before',
35058
- widget: 'dxTemplate',
35059
- template: function template(_, __, container) {
35060
- container.classList.add(styles.toolbarGrid);
35061
- container.appendChild(buttonContainer);
35062
- }
35063
- });
35039
+ var initialPropsRef = React.useRef({
35040
+ pageTitle: pageTitle,
35041
+ toolbarButtonGroup: toolbarButtonGroup,
35042
+ callback: callback
35043
+ });
35044
+ if (!initialPropsRef.current) {
35045
+ initialPropsRef.current = {
35046
+ pageTitle: pageTitle,
35047
+ toolbarButtonGroup: toolbarButtonGroup,
35048
+ callback: callback
35049
+ };
35050
+ }
35051
+ var onToolbarPreparing = React.useRef(function (e) {
35052
+ var _initialPropsRef$curr = initialPropsRef.current,
35053
+ pageTitle = _initialPropsRef$curr.pageTitle,
35054
+ toolbarButtonGroup = _initialPropsRef$curr.toolbarButtonGroup,
35055
+ callback = _initialPropsRef$curr.callback;
35056
+ if ((toolbarButtonGroup === null || toolbarButtonGroup === void 0 ? void 0 : toolbarButtonGroup.length) > 0) {
35057
+ var primaryButtons = toolbarButtonGroup.slice(0, 3);
35058
+ var additionalButtons = toolbarButtonGroup.length > 3 ? toolbarButtonGroup.slice(3) : [];
35059
+ primaryButtons.forEach(function (button, index) {
35060
+ var buttonContainer = document.createElement('div');
35061
+ var rootButton = client_1(buttonContainer);
35062
+ rootButton.render(React__default.createElement(OdsButton, Object.assign({
35063
+ key: index,
35064
+ className: "toolbar-primary-button",
35065
+ type: button.type
35066
+ }, button.onclick && {
35067
+ onClick: button.onclick
35068
+ }, {
35069
+ disabled: button.disabled
35070
+ }), button.label));
35071
+ e.toolbarOptions.items.push({
35072
+ location: 'before',
35073
+ widget: 'dxTemplate',
35074
+ template: function template(_, __, container) {
35075
+ container.classList.add(styles.toolbarGrid);
35076
+ container.appendChild(buttonContainer);
35077
+ }
35064
35078
  });
35065
- if (additionalButtons.length > 0) {
35066
- var dropdownContainer = document.createElement('div');
35067
- dropdownContainer.classList.add('toolbar-dropdown-container');
35068
- var rootDropdown = client_1(dropdownContainer);
35069
- rootDropdown.render(React__default.createElement(React__default.Fragment, null, React__default.createElement(OdsDropdown, {
35070
- key: "dropdown-custom-toolbar",
35071
- menuItems: additionalButtons.map(function (button) {
35072
- return {
35073
- label: button.label,
35074
- onClick: button.onclick
35075
- };
35076
- })
35077
- }, React__default.createElement(OdsButton, {
35078
- type: "text",
35079
- icon: React__default.createElement(DynamicIcon, {
35080
- iconName: "kebabMenu"
35081
- })
35082
- }))));
35083
- e.toolbarOptions.items.push({
35084
- location: 'before',
35085
- widget: 'dxTemplate',
35086
- template: function template(_, __, container) {
35087
- container.classList.add(styles.toolbarGrid);
35088
- container.appendChild(dropdownContainer);
35089
- }
35090
- });
35091
- }
35092
- }
35093
- if (pageTitle) {
35094
- var titleContainer = document.createElement('div');
35095
- var rootTitle = client_1(titleContainer);
35096
- rootTitle.render(React__default.createElement(React__default.Fragment, null, React__default.createElement(OdsTitle, {
35097
- level: 5
35098
- }, pageTitle)));
35099
- e.toolbarOptions.items.unshift({
35079
+ });
35080
+ if (additionalButtons.length > 0) {
35081
+ var dropdownContainer = document.createElement('div');
35082
+ var rootDropdown = client_1(dropdownContainer);
35083
+ rootDropdown.render(React__default.createElement(OdsDropdown, {
35084
+ key: "dropdown-custom-toolbar",
35085
+ menuItems: additionalButtons.map(function (button) {
35086
+ return {
35087
+ label: button.label,
35088
+ onClick: button.onclick
35089
+ };
35090
+ })
35091
+ }, React__default.createElement(OdsButton, {
35092
+ type: "text",
35093
+ icon: React__default.createElement(DynamicIcon, {
35094
+ iconName: "kebabMenu"
35095
+ })
35096
+ })));
35097
+ e.toolbarOptions.items.push({
35100
35098
  location: 'before',
35101
- cssClass: 'toolbarTitleItem',
35099
+ widget: 'dxTemplate',
35102
35100
  template: function template(_, __, container) {
35103
- container.appendChild(titleContainer);
35101
+ container.classList.add(styles.toolbarGrid);
35102
+ container.appendChild(dropdownContainer);
35104
35103
  }
35105
35104
  });
35106
35105
  }
35107
- if (callback) {
35108
- callback(e);
35109
- }
35110
- };
35111
- }, [pageTitle, toolbarButtonGroup]);
35106
+ }
35107
+ if (pageTitle) {
35108
+ var titleContainer = document.createElement('div');
35109
+ var rootTitle = client_1(titleContainer);
35110
+ rootTitle.render(React__default.createElement(OdsTitle, {
35111
+ level: 5,
35112
+ className: "title-container"
35113
+ }, pageTitle));
35114
+ e.toolbarOptions.items.unshift({
35115
+ location: 'before',
35116
+ widget: 'dxTemplate',
35117
+ template: function template(_, __, container) {
35118
+ container.classList.add(styles.toolbarGrid);
35119
+ container.appendChild(titleContainer);
35120
+ }
35121
+ });
35122
+ }
35123
+ if (callback) {
35124
+ callback(e);
35125
+ }
35126
+ }).current;
35112
35127
  return onToolbarPreparing;
35113
35128
  };
35114
35129
 
@@ -35175,6 +35190,13 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
35175
35190
  props.columns.forEach(function (col) {
35176
35191
  var _item$col$dataField;
35177
35192
  var colValue = (_item$col$dataField = item[col.dataField]) === null || _item$col$dataField === void 0 ? void 0 : _item$col$dataField.toString();
35193
+ if (props.applyCellRenderToHeaderFilter && col.cellRender) {
35194
+ try {
35195
+ colValue = col.cellRender({
35196
+ value: colValue
35197
+ });
35198
+ } catch (error) {}
35199
+ }
35178
35200
  if (colValue && !uniqueValuesByColumn[col.dataField].has(colValue)) {
35179
35201
  uniqueValuesByColumn[col.dataField].add(colValue);
35180
35202
  addItem[col.dataField] = colValue;