sccoreui 5.9.62 → 5.9.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ag-grid/advancedFeature/custom-sort.js +5 -6
- package/dist/components/ag-grid/advancedFeature/new-filter/conditions/Conditions.js +13 -12
- package/dist/components/ag-grid/advancedFeature/new-filter/table-filter.js +5 -5
- package/dist/components/ag-grid/advancedFeature/record-detail.js +2 -2
- package/dist/components/ag-grid/context-provider.js +7 -3
- package/dist/components/ag-grid/parent-for-grid.js +9 -4
- package/dist/components/list-box-dropdown/list-box-dropdown.js +25 -8
- package/dist/pages/aggrid/AgGrid.js +257 -0
- package/dist/pages/aggrid/BulkAction.js +7 -0
- package/dist/pages/aggrid/id-cell.js +9 -0
- package/dist/pages/avatar/avatar.js +338 -0
- package/dist/pages/badges/badge.js +73 -0
- package/dist/pages/breadcrumb/breadcrumb.js +14 -0
- package/dist/pages/button/button.js +10 -0
- package/dist/pages/button-group/button-group.js +10 -0
- package/dist/pages/chart/chart.js +257 -0
- package/dist/pages/checkbox/checkbox.js +26 -0
- package/dist/pages/checkbox-group/checkbox-group-component.js +21 -0
- package/dist/pages/color-picker/color-picker.js +13 -0
- package/dist/pages/content-dividers/content-dividers.js +11 -0
- package/dist/pages/custom-color-picker/custom-color-picker.js +12 -0
- package/dist/pages/custom-multiselect/CustomMultiSelect.js +33 -0
- package/dist/pages/date-picker/date-picker.js +20 -0
- package/dist/pages/dropdown/dropdown-component.js +39 -0
- package/dist/pages/file-upload/file-upload.js +34 -0
- package/dist/pages/flex.js +15 -0
- package/dist/pages/formulaTemplate/formulaTemplate.js +154 -0
- package/dist/pages/frolaTextEditor/froala-text-editor.js +12 -0
- package/dist/pages/home.js +48 -0
- package/dist/pages/input/input-text.js +112 -0
- package/dist/pages/list-box-dropdown/listboxdropdown.js +55 -0
- package/dist/pages/loader-indicator/loader-indicator.js +10 -0
- package/dist/pages/mega-mennu/mega-menu.js +84 -0
- package/dist/pages/multi-select-dropdown/multi-select-dropdown.js +51 -0
- package/dist/pages/not-found/not-found.js +10 -0
- package/dist/pages/paginator/pagination.js +122 -0
- package/dist/pages/progress-bar/progress-bar.js +27 -0
- package/dist/pages/progress-steps/progress-steps.js +24 -0
- package/dist/pages/radio-button/radio-button-component.js +11 -0
- package/dist/pages/shadows/shadows.js +7 -0
- package/dist/pages/slideout-menus/slideout-menus.js +104 -0
- package/dist/pages/sliders/slider.js +39 -0
- package/dist/pages/tabels/table-data.js +2193 -0
- package/dist/pages/tabels/table.js +98 -0
- package/dist/pages/tabs/tabs.js +9 -0
- package/dist/pages/tags/tags.js +70 -0
- package/dist/pages/toast/toast.js +47 -0
- package/dist/pages/toggle/toggle.js +10 -0
- package/dist/pages/tooltip/tooltip.js +13 -0
- package/dist/pages/treeDropdownSelect/treedropdowselect.js +34 -0
- package/dist/pages/types/type.js +2 -0
- package/dist/types/components/ag-grid/Types.d.ts +38 -0
- package/dist/types/components/ag-grid/context-provider.d.ts +6 -1
- package/dist/types/components/list-box-dropdown/list-box-dropdown.d.ts +1 -1
- package/dist/types/pages/aggrid/AgGrid.d.ts +2 -0
- package/dist/types/pages/aggrid/BulkAction.d.ts +2 -0
- package/dist/types/pages/aggrid/id-cell.d.ts +2 -0
- package/dist/types/pages/avatar/avatar.d.ts +2 -0
- package/dist/types/pages/badges/badge.d.ts +3 -0
- package/dist/types/pages/breadcrumb/breadcrumb.d.ts +2 -0
- package/dist/types/pages/button/button.d.ts +2 -0
- package/dist/types/pages/button-group/button-group.d.ts +2 -0
- package/dist/types/pages/chart/chart.d.ts +2 -0
- package/dist/types/pages/checkbox/checkbox.d.ts +2 -0
- package/dist/types/pages/checkbox-group/checkbox-group-component.d.ts +3 -0
- package/dist/types/pages/color-picker/color-picker.d.ts +2 -0
- package/dist/types/pages/content-dividers/content-dividers.d.ts +2 -0
- package/dist/types/pages/custom-color-picker/custom-color-picker.d.ts +2 -0
- package/dist/types/pages/custom-multiselect/CustomMultiSelect.d.ts +2 -0
- package/dist/types/pages/date-picker/date-picker.d.ts +2 -0
- package/dist/types/pages/dropdown/dropdown-component.d.ts +2 -0
- package/dist/types/pages/file-upload/file-upload.d.ts +3 -0
- package/dist/types/pages/flex.d.ts +2 -0
- package/dist/types/pages/formulaTemplate/formulaTemplate.d.ts +2 -0
- package/dist/types/pages/frolaTextEditor/froala-text-editor.d.ts +2 -0
- package/dist/types/pages/home.d.ts +2 -0
- package/dist/types/pages/input/input-text.d.ts +3 -0
- package/dist/types/pages/list-box-dropdown/listboxdropdown.d.ts +2 -0
- package/dist/types/pages/loader-indicator/loader-indicator.d.ts +3 -0
- package/dist/types/pages/mega-mennu/mega-menu.d.ts +2 -0
- package/dist/types/pages/multi-select-dropdown/multi-select-dropdown.d.ts +2 -0
- package/dist/types/pages/not-found/not-found.d.ts +2 -0
- package/dist/types/pages/paginator/pagination.d.ts +2 -0
- package/dist/types/pages/progress-bar/progress-bar.d.ts +3 -0
- package/dist/types/pages/progress-steps/progress-steps.d.ts +2 -0
- package/dist/types/pages/radio-button/radio-button-component.d.ts +2 -0
- package/dist/types/pages/shadows/shadows.d.ts +2 -0
- package/dist/types/pages/slideout-menus/slideout-menus.d.ts +2 -0
- package/dist/types/pages/sliders/slider.d.ts +1 -0
- package/dist/types/pages/tabels/table-data.d.ts +3 -0
- package/dist/types/pages/tabels/table.d.ts +2 -0
- package/dist/types/pages/tabs/tabs.d.ts +3 -0
- package/dist/types/pages/tags/tags.d.ts +3 -0
- package/dist/types/pages/toast/toast.d.ts +2 -0
- package/dist/types/pages/toggle/toggle.d.ts +2 -0
- package/dist/types/pages/tooltip/tooltip.d.ts +2 -0
- package/dist/types/pages/treeDropdownSelect/treedropdowselect.d.ts +2 -0
- package/dist/types/pages/types/type.d.ts +64 -0
- package/package.json +1 -1
|
@@ -8,11 +8,10 @@ const overlaypanel_1 = require("primereact/overlaypanel");
|
|
|
8
8
|
const radiobutton_1 = require("primereact/radiobutton");
|
|
9
9
|
const button_1 = require("primereact/button");
|
|
10
10
|
const svg_component_1 = tslib_1.__importDefault(require("../../../directives/svg-component"));
|
|
11
|
-
const constants_1 = require("../constants");
|
|
12
11
|
const context_provider_1 = require("../context-provider");
|
|
13
12
|
function Sort() {
|
|
14
13
|
var _a;
|
|
15
|
-
const { sortValue, setSortValue, sortBy, setSortBy, isOverlayOpened, setIsOverlayOpened, featureDetails, callGrid, columnData, } = (0, react_1.useContext)(context_provider_1.FeatureContext);
|
|
14
|
+
const { sortValue, setSortValue, sortBy, setSortBy, isOverlayOpened, setIsOverlayOpened, featureDetails, callGrid, columnData, sortModelText, sortOptions } = (0, react_1.useContext)(context_provider_1.FeatureContext);
|
|
16
15
|
const showShort = (0, react_1.useRef)(null);
|
|
17
16
|
const [sortInfo, setSortInfo] = (0, react_1.useState)();
|
|
18
17
|
const sortType = sortValue === null || sortValue === void 0 ? void 0 : sortValue.dataType;
|
|
@@ -89,9 +88,9 @@ function Sort() {
|
|
|
89
88
|
}, [sortValue, sortBy]);
|
|
90
89
|
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `cursor-pointer sc_icon_hover flex align-items-center border-round ${isOverlayOpened || featureDetails.sort.isSortable
|
|
91
90
|
? "bg-primary-50"
|
|
92
|
-
: ""}` }, { children: [featureDetails.sort.isSortable && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: "flex align-items-center text-primary-400 ml-3" }, { children: `Selected` }))), (0, jsx_runtime_1.jsx)(button_1.Button, { className: "icon-32x32 hover:bg-primary-50", text: true, onClick: (event) => onClickSort(event), icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "switch-vertical-02", size: 16, color: isOverlayOpened || featureDetails.sort.isSortable
|
|
91
|
+
: ""}` }, { children: [featureDetails.sort.isSortable && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: "flex align-items-center text-primary-400 ml-3" }, { children: (sortModelText === null || sortModelText === void 0 ? void 0 : sortModelText.onSelectedSort) ? sortModelText.onSelectedSort : `Selected` }))), (0, jsx_runtime_1.jsx)(button_1.Button, { className: "icon-32x32 hover:bg-primary-50", text: true, onClick: (event) => onClickSort(event), icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "switch-vertical-02", size: 16, color: isOverlayOpened || featureDetails.sort.isSortable
|
|
93
92
|
? "text-gray-700"
|
|
94
|
-
: "text-gray-700" }) })] })), (0, jsx_runtime_1.jsxs)(overlaypanel_1.OverlayPanel, Object.assign({ ref: showShort, onShow: () => setIsOverlayOpened(true), onHide: () => setIsOverlayOpened(false), className: "w-18rem mt-2 overlay_list_options" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "p-4 text-lg font-semibold line-height-3 text-gray-900 border-bottom-1 border-gray-200" }, { children: "Column Sorting" })), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: "pl-0 m-1 max-h-10rem overflow-auto" }, { children: columnData === null || columnData === void 0 ? void 0 : columnData.map((eachColumn, index) => {
|
|
93
|
+
: "text-gray-700" }) })] })), (0, jsx_runtime_1.jsxs)(overlaypanel_1.OverlayPanel, Object.assign({ ref: showShort, onShow: () => setIsOverlayOpened(true), onHide: () => setIsOverlayOpened(false), className: "w-18rem mt-2 overlay_list_options" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "p-4 text-lg font-semibold line-height-3 text-gray-900 border-bottom-1 border-gray-200" }, { children: (sortModelText === null || sortModelText === void 0 ? void 0 : sortModelText.header) ? sortModelText.header : "Column Sorting" })), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: "pl-0 m-1 max-h-10rem overflow-auto" }, { children: columnData === null || columnData === void 0 ? void 0 : columnData.map((eachColumn, index) => {
|
|
95
94
|
if (eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.isSortable) {
|
|
96
95
|
const isSelected = eachColumn.field === (sortValue === null || sortValue === void 0 ? void 0 : sortValue.field);
|
|
97
96
|
return ((0, jsx_runtime_1.jsxs)("li", Object.assign({ className: `${isSelected && "bg-primary-25"} cursor-pointer border-round-md flex align-items-center gap-2 px-3 py-2 text-base line-height-2 text-gray-700`, style: { listStyleType: "none" }, onClick: () => onSelectSortValue(eachColumn) }, { children: [(0, jsx_runtime_1.jsx)(radiobutton_1.RadioButton, { id: "tableSort", checked: isSelected, type: "circle", value: sortValue }), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: `cursor-pointer ${isSelected && "text-primary-400 font-semibold"}` }, { children: eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.headerName }))] }), index));
|
|
@@ -99,12 +98,12 @@ function Sort() {
|
|
|
99
98
|
else {
|
|
100
99
|
return null;
|
|
101
100
|
}
|
|
102
|
-
}) })), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: `p-1 my-0 ${showBorder ? "border-top-1 border-gray-200" : ""}` }, { children: (_a =
|
|
101
|
+
}) })), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: `p-1 my-0 ${showBorder ? "border-top-1 border-gray-200" : ""}` }, { children: (_a = sortOptions.filter((each) => each.dataType === sortType)) === null || _a === void 0 ? void 0 : _a.map((eachOption, index) => {
|
|
103
102
|
const seletedSort = eachOption.label === (sortBy === null || sortBy === void 0 ? void 0 : sortBy.label);
|
|
104
103
|
return ((0, jsx_runtime_1.jsxs)("li", Object.assign({ className: `cursor-pointer ${seletedSort && "bg-primary-25"} cursor-pointer border-round-md pl-0 px-3 py-2 flex align-items-center gap-2`, onClick: () => {
|
|
105
104
|
onSelectSortType(eachOption);
|
|
106
105
|
// setSortBy(eachOption);
|
|
107
106
|
} }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: index === 0 ? "arrow-down" : "arrow-up", size: 20 }), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: `${seletedSort && "text-primary-400 font-semibold"} text-gray-700 font-medium text-base` }, { children: eachOption.label }))] }), index));
|
|
108
|
-
}) })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex justify-content-between px-3 py-2 border-top-1 border-gray-200" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ disabled: false, id: "column_sort_dropdown", outlined: true, onClick: (e) => clearSort(e) }, { children: "Clear" })), (0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ disabled: isApplyDisable, id: "column_sort_dropdown", onClick: (e) => applyTableSort(e) }, { children: "Apply" }))] }))] }))] })));
|
|
107
|
+
}) })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex justify-content-between px-3 py-2 border-top-1 border-gray-200" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ disabled: false, id: "column_sort_dropdown", outlined: true, onClick: (e) => clearSort(e) }, { children: (sortModelText === null || sortModelText === void 0 ? void 0 : sortModelText.clearAction) ? sortModelText.clearAction : "Clear" })), (0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ disabled: isApplyDisable, id: "column_sort_dropdown", onClick: (e) => applyTableSort(e) }, { children: (sortModelText === null || sortModelText === void 0 ? void 0 : sortModelText.applyAction) ? sortModelText.applyAction : "Apply" }))] }))] }))] })));
|
|
109
108
|
}
|
|
110
109
|
exports.default = Sort;
|
|
@@ -11,7 +11,7 @@ const inputnumber_1 = require("primereact/inputnumber");
|
|
|
11
11
|
const calendar_1 = require("primereact/calendar");
|
|
12
12
|
const multi_select_dropdown_1 = tslib_1.__importDefault(require("../../../../multi-select-dropdown/multi-select-dropdown"));
|
|
13
13
|
const Condtions = (props) => {
|
|
14
|
-
const { columnName, condition, value, columnsArray, conditionsArray, index, id, setEnbleApply, updateconditionsArray, removeConditionFromArray, addEmptyCondition, condtionslenght, conditionType, conditionTypes, handleConditionType } = props;
|
|
14
|
+
const { columnName, condition, value, columnsArray, conditionsArray, index, id, setEnbleApply, updateconditionsArray, removeConditionFromArray, addEmptyCondition, condtionslenght, conditionType, conditionTypes, handleConditionType, filterModelText } = props;
|
|
15
15
|
const onAddCondtion = (index) => {
|
|
16
16
|
addEmptyCondition(index);
|
|
17
17
|
};
|
|
@@ -50,7 +50,7 @@ const Condtions = (props) => {
|
|
|
50
50
|
const dataType = (selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.columnType) ? selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.columnType : selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.dataType;
|
|
51
51
|
switch (dataType === null || dataType === void 0 ? void 0 : dataType.toLowerCase()) {
|
|
52
52
|
case "string": {
|
|
53
|
-
return ((0, jsx_runtime_1.jsx)(inputtext_1.InputText, { disabled: !condition, className: "border-noround-left w-12rem focus:shadow-none lh-44 h-44", value: value, placeholder: "Enter", onChange: (event) => handleDynamicFieldState(event.target.value) }));
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)(inputtext_1.InputText, { disabled: !condition, className: "border-noround-left w-12rem focus:shadow-none lh-44 h-44", value: value, placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementThreePlaceHolder_Input) ? filterModelText.elementThreePlaceHolder_Input : "Enter", onChange: (event) => handleDynamicFieldState(event.target.value) }));
|
|
54
54
|
}
|
|
55
55
|
case "integer": {
|
|
56
56
|
const handleOnchangeEvent = (eventValue) => {
|
|
@@ -81,7 +81,7 @@ const Condtions = (props) => {
|
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
if (condition === "9" || condition === "20") {
|
|
84
|
-
return ((0, jsx_runtime_1.jsx)(inputtext_1.InputText, { disabled: !condition, className: "border-noround-left lh-44 h-44 w-12rem dropdown-focus-none", value: value.includes(",") ? value.replace(",", "-") : value, placeholder: "Enter", onChange: (event) => handleOnchangeEvent(event.target.value) })
|
|
84
|
+
return ((0, jsx_runtime_1.jsx)(inputtext_1.InputText, { disabled: !condition, className: "border-noround-left lh-44 h-44 w-12rem dropdown-focus-none", value: value.includes(",") ? value.replace(",", "-") : value, placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementThreePlaceHolder_Input) ? filterModelText.elementThreePlaceHolder_Input : "Enter", onChange: (event) => handleOnchangeEvent(event.target.value) })
|
|
85
85
|
// <div className="flex">
|
|
86
86
|
// <InputNumber
|
|
87
87
|
// disabled={!condition}
|
|
@@ -100,7 +100,7 @@ const Condtions = (props) => {
|
|
|
100
100
|
// </div>
|
|
101
101
|
);
|
|
102
102
|
}
|
|
103
|
-
return ((0, jsx_runtime_1.jsx)(inputtext_1.InputText, { disabled: !condition, className: "border-noround-left w-12rem lh-44 h-44 remove-focus", value: value, type: "number", placeholder: "Enter", onChange: (event) => { var _a; return handleDynamicFieldState((_a = event.target.value) === null || _a === void 0 ? void 0 : _a.replace("-", '')); } }));
|
|
103
|
+
return ((0, jsx_runtime_1.jsx)(inputtext_1.InputText, { disabled: !condition, className: "border-noround-left w-12rem lh-44 h-44 remove-focus", value: value, type: "number", placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementThreePlaceHolder_Input_Number) ? filterModelText.elementThreePlaceHolder_Input_Number : "Enter", onChange: (event) => { var _a; return handleDynamicFieldState((_a = event.target.value) === null || _a === void 0 ? void 0 : _a.replace("-", '')); } }));
|
|
104
104
|
}
|
|
105
105
|
case "single": {
|
|
106
106
|
// let optionValue = selectedColumn?.options.find((each: any) => each[selectedColumn['key']] === value)
|
|
@@ -109,7 +109,7 @@ const Condtions = (props) => {
|
|
|
109
109
|
handleDynamicFieldState(`${value}`);
|
|
110
110
|
// }
|
|
111
111
|
};
|
|
112
|
-
return ((0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { className: "condtion-dropdown border-noround-left dropdown-focus-none", value: parseInt(value), options: selectedColumn.options, optionLabel: "label", placeholder: "Select", disabled: !condition, onChange: (event) => handleOnchangeEvent(event.value) }));
|
|
112
|
+
return ((0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { className: "condtion-dropdown border-noround-left dropdown-focus-none", value: parseInt(value), options: selectedColumn.options, optionLabel: "label", placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementThreePlaceHolder_DropDown) ? filterModelText.elementThreePlaceHolder_DropDown : "Select", disabled: !condition, onChange: (event) => handleOnchangeEvent(event.value) }));
|
|
113
113
|
}
|
|
114
114
|
case "date": {
|
|
115
115
|
const convertDateToISO = (date) => {
|
|
@@ -126,23 +126,24 @@ const Condtions = (props) => {
|
|
|
126
126
|
handleDynamicFieldState(valueString);
|
|
127
127
|
};
|
|
128
128
|
if (condition === "9" || condition === "20") {
|
|
129
|
-
return ((0, jsx_runtime_1.jsx)(calendar_1.Calendar, { readOnlyInput: true, showTime: true, disabled: !condition, selectionMode: "range", placeholder: "Select", className: "condtion-dropdown border-noround-left filter-calendar", value: (value === null || value === void 0 ? void 0 : value.includes(",")) ? (_a = value === null || value === void 0 ? void 0 : value.split(",")) === null || _a === void 0 ? void 0 : _a.map((date) => date ? new Date(date) : null) : null, onChange: (event) => handleOnchangeEvent(event.value) }));
|
|
129
|
+
return ((0, jsx_runtime_1.jsx)(calendar_1.Calendar, { readOnlyInput: true, showTime: true, disabled: !condition, selectionMode: "range", placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementThreePlaceHolder_Calender) ? filterModelText.elementThreePlaceHolder_Calender : "Select", className: "condtion-dropdown border-noround-left filter-calendar", value: (value === null || value === void 0 ? void 0 : value.includes(",")) ? (_a = value === null || value === void 0 ? void 0 : value.split(",")) === null || _a === void 0 ? void 0 : _a.map((date) => date ? new Date(date) : null) : null, onChange: (event) => handleOnchangeEvent(event.value) }));
|
|
130
130
|
}
|
|
131
|
-
return ((0, jsx_runtime_1.jsx)(calendar_1.Calendar, { readOnlyInput: true, showTime: false, disabled: !condition, selectionMode: "single", placeholder: "Select", className: "condtion-dropdown border-noround-left filter-calendar", value: value, onChange: (event) => handleDynamicFieldState(event.value) }));
|
|
131
|
+
return ((0, jsx_runtime_1.jsx)(calendar_1.Calendar, { readOnlyInput: true, showTime: false, disabled: !condition, selectionMode: "single", placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementThreePlaceHolder_Calender) ? filterModelText.elementThreePlaceHolder_Calender : "Select", className: "condtion-dropdown border-noround-left filter-calendar", value: value, onChange: (event) => handleDynamicFieldState(event.value) }));
|
|
132
132
|
}
|
|
133
133
|
case "multi": {
|
|
134
|
-
return ((0, jsx_runtime_1.jsx)(multi_select_dropdown_1.default, { className: "filter-multi-dropdown w-12rem ", value: value, hidePanelHeader: true, maxSelectedLabels: 1, onChange: (event) => handleDynamicFieldState(event.value), placeholder: "Select", options: selectedColumn.options, dropdownType: "default", optionLabel: "name" }));
|
|
134
|
+
return ((0, jsx_runtime_1.jsx)(multi_select_dropdown_1.default, { className: "filter-multi-dropdown w-12rem ", value: value, hidePanelHeader: true, maxSelectedLabels: 1, onChange: (event) => handleDynamicFieldState(event.value), placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementThreePlaceHolder_MultiSelect) ? filterModelText.elementThreePlaceHolder_MultiSelect : "Select", options: selectedColumn.options, dropdownType: "default", optionLabel: "name" }));
|
|
135
135
|
}
|
|
136
136
|
case "decimal": {
|
|
137
|
-
return ((0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, { className: "border-noround-left w-12rem filter-input-decimal", value: value, placeholder: "Enter", onChange: (event) => handleDynamicFieldState(event.target.value), maxFractionDigits: 2 }));
|
|
137
|
+
return ((0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, { className: "border-noround-left w-12rem filter-input-decimal", value: value, placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementThreePlaceHolder_Input_Number) ? filterModelText.elementThreePlaceHolder_Input_Number : "Enter", onChange: (event) => handleDynamicFieldState(event.target.value), maxFractionDigits: 2 }));
|
|
138
138
|
}
|
|
139
139
|
case "percent": {
|
|
140
|
-
return ((0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { className: "condtion-dropdown border-noround-left w-12rem dropdown-focus-none", value: value, options: [], optionLabel: "name", placeholder: "Select", onChange: (event) => handleDynamicFieldState(event.value) }));
|
|
140
|
+
return ((0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { className: "condtion-dropdown border-noround-left w-12rem dropdown-focus-none", value: value, options: [], optionLabel: "name", placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementThreePlaceHolder_DropDown) ? filterModelText.elementThreePlaceHolder_DropDown : "Select", onChange: (event) => handleDynamicFieldState(event.value) }));
|
|
141
141
|
}
|
|
142
142
|
default:
|
|
143
|
-
return ((0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { className: "condtion-dropdown border-noround-left w-12rem dropdown-focus-none", options: [], value: value, optionLabel: "name", placeholder: "Select", disabled: true }));
|
|
143
|
+
return ((0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { className: "condtion-dropdown border-noround-left w-12rem dropdown-focus-none", options: [], value: value, optionLabel: "name", placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementThreePlaceHolder_DropDown) ? filterModelText.elementThreePlaceHolder_DropDown : "Select", disabled: true }));
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
|
-
|
|
146
|
+
console.log(filterModelText);
|
|
147
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex filter-dropdowns align-items-center" }, { children: [index !== 0 ? (0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { className: "condtion-dropdown w-6rem mr-2 remove-focus", options: conditionTypes, optionLabel: "label", placeholder: "Select", value: conditionType, disabled: index !== 1, onChange: (event) => handleConditionType(event.target.value) }) : "", (0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { className: `condtion-dropdown dropdown-focus-none border-noround-right w-12rem`, options: columnsArray, optionLabel: "name", placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementOnePlaceHolder) ? filterModelText.elementOnePlaceHolder : "Select", value: columnsArray.find((item) => item.code === columnName.code), onChange: (event) => onUpdateColumnName(event.value) }), (0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { className: "condition-type hide-focus border-noround remove-focus border-x-none w-12rem", options: conditionsArray.filter((each) => each.datatypes.includes(columnName === null || columnName === void 0 ? void 0 : columnName.dataType)).map((option) => { return Object.assign(Object.assign({}, option), { name: option.name.toLowerCase().split(' ').map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(' ') }); }), value: condition, disabled: columnName === '', optionLabel: "name", placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.elementTwoPlaceHolder) ? filterModelText.elementTwoPlaceHolder : "Select", onChange: (event) => onUpdateCondition(event.value), panelClassName: "w-15rem" }), renderDynamicField(columnName), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center ml-4 gap-3 mr-1" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ text: true, className: "focus:shadow-none sc_icon_hover h-auto p-0", onClick: () => onAddCondtion(index), disabled: false }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "plus-circle", size: 20, color: "text-gray-500" }) })), (0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ text: true, disabled: condtionslenght === 1, className: "focus:shadow-none sc_icon_hover h-auto p-0", onClick: () => onRemoveCondtion(id) }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "minus-circle", size: 20, color: "text-gray-500" }) }))] }))] })));
|
|
147
148
|
};
|
|
148
149
|
exports.default = Condtions;
|
|
@@ -13,7 +13,7 @@ const Conditions_1 = tslib_1.__importDefault(require("./conditions/Conditions"))
|
|
|
13
13
|
const context_provider_1 = require("../../context-provider");
|
|
14
14
|
const inputtext_1 = require("primereact/inputtext");
|
|
15
15
|
const TableFilter = () => {
|
|
16
|
-
const { featureDetails, columnData, conditionType, conditionTypes, globalFilters, setConditionType, setGlobalFilters, setFeatureDetails, callGrid, setViewName, viewName, createView, enableViewCreate } = (0, react_1.useContext)(context_provider_1.FeatureContext);
|
|
16
|
+
const { featureDetails, columnData, conditionType, conditionTypes, globalFilters, setConditionType, setGlobalFilters, setFeatureDetails, callGrid, setViewName, viewName, createView, enableViewCreate, filterModelText } = (0, react_1.useContext)(context_provider_1.FeatureContext);
|
|
17
17
|
const columnId = "field";
|
|
18
18
|
const columnName = "headerName";
|
|
19
19
|
const showFilter = (0, react_1.useRef)(null);
|
|
@@ -97,7 +97,7 @@ const TableFilter = () => {
|
|
|
97
97
|
};
|
|
98
98
|
const renderCondtion = (conditions, key) => {
|
|
99
99
|
const { columnName, condition, value, id } = conditions;
|
|
100
|
-
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center justify-content-end" }, { children: (0, jsx_runtime_1.jsx)(Conditions_1.default, { index: key, setEnbleApply: (value) => setEnbleApply(value), id: id, columnName: columnName, condition: condition, conditionType: conditionType, conditionTypes: conditionTypes, value: value, columnsArray: tableColumns, conditionsArray: constants_1.default.conditionsList, handleConditionType: handleConditionType, updateconditionsArray: updateconditionsArray, addEmptyCondition: addEmptyCondition, removeConditionFromArray: removeConditionFromArray, condtionslenght: conditionsArray.length }, key) })));
|
|
100
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center justify-content-end" }, { children: (0, jsx_runtime_1.jsx)(Conditions_1.default, { index: key, setEnbleApply: (value) => setEnbleApply(value), id: id, columnName: columnName, condition: condition, conditionType: conditionType, conditionTypes: conditionTypes, value: value, columnsArray: tableColumns, conditionsArray: constants_1.default.conditionsList, handleConditionType: handleConditionType, updateconditionsArray: updateconditionsArray, addEmptyCondition: addEmptyCondition, removeConditionFromArray: removeConditionFromArray, condtionslenght: conditionsArray.length, filterModelText: filterModelText }, key) })));
|
|
101
101
|
};
|
|
102
102
|
const createViewFromFilters = () => {
|
|
103
103
|
const newFilters = conditionsArray.map((condition) => {
|
|
@@ -143,12 +143,12 @@ const TableFilter = () => {
|
|
|
143
143
|
: "bg-white"}` }, { children: (0, jsx_runtime_1.jsxs)("span", Object.assign({ onClick: (e) => onClickFilter(e), className: "flex" }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "filter-lines", size: 18, color: isOverlayOpened ||
|
|
144
144
|
(globalFilters === null || globalFilters === void 0 ? void 0 : globalFilters.filter((each) => each.isActive).length) >= 1
|
|
145
145
|
? "#243DC6"
|
|
146
|
-
: "#667085" }), (globalFilters === null || globalFilters === void 0 ? void 0 : globalFilters.filter((each) => each.isActive).length) >= 1 && ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex gap-2 align-items-center text-primary-400 pl-2" }, { children: [`${globalFilters === null || globalFilters === void 0 ? void 0 : globalFilters.filter((each) => each.isActive).length} Selected`, (0, jsx_runtime_1.jsx)("span", Object.assign({ onClick: (e) => {
|
|
146
|
+
: "#667085" }), (globalFilters === null || globalFilters === void 0 ? void 0 : globalFilters.filter((each) => each.isActive).length) >= 1 && ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex gap-2 align-items-center text-primary-400 pl-2" }, { children: [`${globalFilters === null || globalFilters === void 0 ? void 0 : globalFilters.filter((each) => each.isActive).length} ${(filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.onSelectedFilter) ? filterModelText.onSelectedFilter : "Selected"}`, (0, jsx_runtime_1.jsx)("span", Object.assign({ onClick: (e) => {
|
|
147
147
|
e.preventDefault();
|
|
148
148
|
e.stopPropagation();
|
|
149
149
|
onresetFilter();
|
|
150
|
-
} }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close", size: 18, color: "#243DC6" }) }))] })))] })) })), (0, jsx_runtime_1.jsx)(overlaypanel_1.OverlayPanel, Object.assign({ ref: showFilter, onShow: () => setIsOverlayOpened(true), onHide: filterLogoToggle, className: "table-filter-overlay" }, { children: (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-4" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "text-lg font-semibold line-height-3 text-gray-900" }, { children: "
|
|
150
|
+
} }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close", size: 18, color: "#243DC6" }) }))] })))] })) })), (0, jsx_runtime_1.jsx)(overlaypanel_1.OverlayPanel, Object.assign({ ref: showFilter, onShow: () => setIsOverlayOpened(true), onHide: filterLogoToggle, className: "table-filter-overlay" }, { children: (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-4" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "text-lg font-semibold line-height-3 text-gray-900" }, { children: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.header) ? filterModelText.header : "Filter" })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "text-sm text-gray-600" }, { children: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.subHeader) ? filterModelText.subHeader : "Streamline Your Search With Filters" }))] })), (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: "w-full p-0 m-0" }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "p-4 pr-2" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "max-h-14rem\toverflow-auto flex flex-column gap-1" }, { children: conditionsArray.map((eachCondition, index) => {
|
|
151
151
|
return ((0, jsx_runtime_1.jsx)("div", { children: renderCondtion(eachCondition, index) }, index));
|
|
152
|
-
}) })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: "w-full p-0 m-0" }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-4 flex justify-content-between" }, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(button_1.Button, { text: true, className: "focus:shadow-none font-semibold", label: "Reset Filter", onClick: onresetFilter }) }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [!displayInput && enableViewCreate && ((0, jsx_runtime_1.jsx)(button_1.Button, { className: "text-base px-2 font-semibold text-primary-400 flex gap-2 p-1 focus:shadow-none mr-3", label: "Create
|
|
152
|
+
}) })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: "w-full p-0 m-0" }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-4 flex justify-content-between" }, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(button_1.Button, { text: true, className: "focus:shadow-none font-semibold", label: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.resetFilterAction) ? filterModelText.resetFilterAction : "Reset Filter", onClick: onresetFilter }) }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [!displayInput && enableViewCreate && ((0, jsx_runtime_1.jsx)(button_1.Button, { className: "text-base px-2 font-semibold text-primary-400 flex gap-2 p-1 focus:shadow-none mr-3", label: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.createViewAction) ? filterModelText.createViewAction : "Create view", onClick: () => setDisplayInput(true), disabled: !allFieldsFilled, text: true, iconPos: "left", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "plus", color: "text-primary-400 mr-2" }) })), displayInput && ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-input-icon-left p-input-icon-right w-full" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `p-input-suffix` }, { children: [displayInput && ((0, jsx_runtime_1.jsx)(button_1.Button, { onClick: createViewFromFilters, disabled: !viewName.length, className: "p-0 h-auto", text: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check" }) })), (0, jsx_runtime_1.jsx)(button_1.Button, { onClick: () => setViewName(""), className: "p-0 h-auto", disabled: !viewName.length, text: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close" }) })] })), (0, jsx_runtime_1.jsx)(inputtext_1.InputText, { placeholder: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.createViewInputPlaceHolder) ? filterModelText.createViewInputPlaceHolder : "Enter", value: viewName, onChange: (e) => setViewName(e.target.value), className: "text-lg font-normal text-gray-500 hover:text-gray-900 w-full px-3 mr-3" })] }))), (0, jsx_runtime_1.jsx)(button_1.Button, { className: "text-base font-semibold text-gray-600 p-1 focus:shadow-none text-white w-4rem", label: (filterModelText === null || filterModelText === void 0 ? void 0 : filterModelText.applyAction) ? filterModelText.applyAction : "Apply", onClick: onApplyFilter, disabled: !allFieldsFilled })] }))] }))] }) }))] }));
|
|
153
153
|
};
|
|
154
154
|
exports.default = TableFilter;
|
|
@@ -4,7 +4,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const context_provider_1 = require("../context-provider");
|
|
6
6
|
function RecordDetail() {
|
|
7
|
-
const { totalRecords } = (0, react_1.useContext)(context_provider_1.FeatureContext);
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "ml-2" }, { children: `Total ${totalRecords} records` })));
|
|
7
|
+
const { totalRecords, recordDetailModelText } = (0, react_1.useContext)(context_provider_1.FeatureContext);
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "ml-2" }, { children: (recordDetailModelText === null || recordDetailModelText === void 0 ? void 0 : recordDetailModelText.totalRecordHeader) ? `${recordDetailModelText.totalRecordHeader} ${totalRecords} ` : `Total ${totalRecords} records` })));
|
|
9
9
|
}
|
|
10
10
|
exports.default = RecordDetail;
|
|
@@ -6,7 +6,7 @@ const react_1 = require("react");
|
|
|
6
6
|
const helper_1 = require("./helper");
|
|
7
7
|
exports.FeatureContext = (0, react_1.createContext)(null);
|
|
8
8
|
function MyProvider({ children, value }) {
|
|
9
|
-
const { featureDetails, setFeatureDetails, gridData, callGrid, totalRecords, initialFeature, defaultFilters, createView, enableViewCreate } = value;
|
|
9
|
+
const { featureDetails, setFeatureDetails, gridData, callGrid, totalRecords, initialFeature, defaultFilters, createView, enableViewCreate, filterModelText, sortModelText, recordDetailModelText, sortOptions, filterConditions } = value;
|
|
10
10
|
// States for sort
|
|
11
11
|
const [columnData] = (0, react_1.useState)(gridData === null || gridData === void 0 ? void 0 : gridData.columnData);
|
|
12
12
|
const [sortValue, setSortValue] = (0, react_1.useState)({});
|
|
@@ -20,7 +20,7 @@ function MyProvider({ children, value }) {
|
|
|
20
20
|
// Returns based on length of filterQueries present
|
|
21
21
|
return length === 0 ? [0] : Array.from({ length }, (_, index) => index);
|
|
22
22
|
});
|
|
23
|
-
const conditionTypes = [{ id: 1, label: "AND" }, { id: 2, label: "OR" }];
|
|
23
|
+
const conditionTypes = filterConditions ? filterConditions : [{ id: 1, label: "AND" }, { id: 2, label: "OR" }];
|
|
24
24
|
const [conditionType, setConditionType] = (0, react_1.useState)((defaultFilters === null || defaultFilters === void 0 ? void 0 : defaultFilters.logicalOperator) ? conditionTypes.find((item) => item.id === (defaultFilters === null || defaultFilters === void 0 ? void 0 : defaultFilters.logicalOperator)) :
|
|
25
25
|
conditionTypes[0]);
|
|
26
26
|
const [globalFilters, setGlobalFilters] = (0, react_1.useState)([]);
|
|
@@ -71,7 +71,11 @@ function MyProvider({ children, value }) {
|
|
|
71
71
|
setViewName,
|
|
72
72
|
viewName,
|
|
73
73
|
createView,
|
|
74
|
-
enableViewCreate
|
|
74
|
+
enableViewCreate,
|
|
75
|
+
filterModelText,
|
|
76
|
+
sortModelText,
|
|
77
|
+
recordDetailModelText,
|
|
78
|
+
sortOptions
|
|
75
79
|
} }, { children: children })));
|
|
76
80
|
}
|
|
77
81
|
exports.default = MyProvider;
|
|
@@ -12,7 +12,7 @@ const constants_1 = require("./constants");
|
|
|
12
12
|
const loading_component_1 = tslib_1.__importDefault(require("./loading-component"));
|
|
13
13
|
const helper_1 = require("./helper");
|
|
14
14
|
function ParentForGrid(props) {
|
|
15
|
-
var _a;
|
|
15
|
+
var _a, _b, _c, _d;
|
|
16
16
|
const [gridData, setGridData] = (0, react_1.useState)({
|
|
17
17
|
rowData: [],
|
|
18
18
|
columnData: props === null || props === void 0 ? void 0 : props.columnData,
|
|
@@ -173,11 +173,11 @@ function ParentForGrid(props) {
|
|
|
173
173
|
else if (props.rowModelType === constants_1.ROWMODELTYPE.INFINITE) {
|
|
174
174
|
const dataSource = {
|
|
175
175
|
getRows: (params) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
176
|
-
var
|
|
176
|
+
var _e;
|
|
177
177
|
const startRow = params.startRow;
|
|
178
178
|
const endRow = params.endRow;
|
|
179
179
|
const result = yield getData(startRow, endRow, currentFeatures);
|
|
180
|
-
if (((
|
|
180
|
+
if (((_e = result === null || result === void 0 ? void 0 : result.rowData) === null || _e === void 0 ? void 0 : _e.length) > 0) {
|
|
181
181
|
gridRef.current.api.hideOverlay();
|
|
182
182
|
params.successCallback(result === null || result === void 0 ? void 0 : result.rowData, result === null || result === void 0 ? void 0 : result.actualEndRow);
|
|
183
183
|
}
|
|
@@ -267,7 +267,12 @@ function ParentForGrid(props) {
|
|
|
267
267
|
initialFeature,
|
|
268
268
|
defaultFilters,
|
|
269
269
|
createView: props === null || props === void 0 ? void 0 : props.createView,
|
|
270
|
-
enableViewCreate: (_a = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _a === void 0 ? void 0 : _a.enableViewCreate
|
|
270
|
+
enableViewCreate: (_a = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _a === void 0 ? void 0 : _a.enableViewCreate,
|
|
271
|
+
filterModelText: (_b = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _b === void 0 ? void 0 : _b.filterModelText,
|
|
272
|
+
sortModelText: (_c = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _c === void 0 ? void 0 : _c.sortModelText,
|
|
273
|
+
recordDetailModelText: (_d = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _d === void 0 ? void 0 : _d.recordDetailModelText,
|
|
274
|
+
sortOptions: (props === null || props === void 0 ? void 0 : props.sortOptions) ? props.sortOptions : constants_1.COLUMN_SORT_OPTIONS,
|
|
275
|
+
filterConditions: props === null || props === void 0 ? void 0 : props.filterConditions
|
|
271
276
|
} }, { children: (0, jsx_runtime_1.jsx)(advanced_feature_1.default, { props: props }) })), (0, jsx_runtime_1.jsx)(AgGrid_1.default, { style: style, gridOptions: gridOptions, onGridReady: onGridReady, gridRef: gridRef })] }) })) }) }));
|
|
272
277
|
}
|
|
273
278
|
exports.default = ParentForGrid;
|
|
@@ -9,12 +9,17 @@ const button_1 = require("primereact/button");
|
|
|
9
9
|
const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-component"));
|
|
10
10
|
// import { InputText } from "primereact/inputtext";
|
|
11
11
|
const checkbox_1 = require("primereact/checkbox");
|
|
12
|
-
const ListBoxDropdown = ({ selectAll, onSelectAll, onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className, scrollElementId, buttonClassName, showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable, onDranghandle,
|
|
12
|
+
const ListBoxDropdown = ({ selectAll, onSelectAll, onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className, scrollElementId, buttonClassName, showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable, onDranghandle,
|
|
13
|
+
// onShow,
|
|
14
|
+
// onHide,
|
|
15
|
+
// onFocus,
|
|
16
|
+
}) => {
|
|
13
17
|
const [selectedItems, setSelectedItems] = (0, react_1.useState)([]);
|
|
14
18
|
// const [inpValue, setInpValue] = useState<any>();
|
|
15
19
|
const optionsMenuRef = (0, react_1.useRef)();
|
|
16
20
|
const [checked, setChecked] = (0, react_1.useState)(false);
|
|
17
21
|
const onSelectOption = (e) => {
|
|
22
|
+
setChecked(e.value.length === listItems.length);
|
|
18
23
|
setSelectedItems(e.value);
|
|
19
24
|
onChange(e);
|
|
20
25
|
};
|
|
@@ -59,25 +64,37 @@ const ListBoxDropdown = ({ selectAll, onSelectAll, onChange, footeTemplate, head
|
|
|
59
64
|
// e.preventDefault()
|
|
60
65
|
// }
|
|
61
66
|
const onSelectAllItem = (e) => {
|
|
62
|
-
|
|
67
|
+
e.stopPropagation();
|
|
68
|
+
setChecked(!checked);
|
|
63
69
|
if (onSelectAll)
|
|
64
|
-
onSelectAll(
|
|
65
|
-
e.preventDefault();
|
|
70
|
+
onSelectAll(!checked);
|
|
66
71
|
};
|
|
67
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: className }, { children: [(0, jsx_runtime_1.jsx)(menu_1.Menu
|
|
72
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: className }, { children: [(0, jsx_runtime_1.jsx)(menu_1.Menu
|
|
73
|
+
// onShow={(e: any) => onShow && onShow(e)}
|
|
74
|
+
// onHide={(e: any) => onHide && onHide(e)}
|
|
75
|
+
// onFocus={(e: any) => onFocus && onFocus(e)}
|
|
76
|
+
// popup
|
|
77
|
+
, {
|
|
78
|
+
// onShow={(e: any) => onShow && onShow(e)}
|
|
79
|
+
// onHide={(e: any) => onHide && onHide(e)}
|
|
80
|
+
// onFocus={(e: any) => onFocus && onFocus(e)}
|
|
81
|
+
// popup
|
|
82
|
+
popup: true, ref: optionsMenuRef, id: "popup_menu_bottom", className: menuClassName ? menuClassName : "",
|
|
83
|
+
// ref={optionsMenuRef}
|
|
84
|
+
model: [
|
|
68
85
|
{
|
|
69
86
|
template: () => ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: listBoxParentClassName
|
|
70
87
|
? listBoxParentClassName +
|
|
71
88
|
" list_box_dropdown border-round-lg border-1 overflow-hidden border-gray-200"
|
|
72
|
-
: "list_box_dropdown" }, { children: [headerTemplate && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: headerTemplate() }),
|
|
89
|
+
: "list_box_dropdown" }, { children: [headerTemplate && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: headerTemplate() }), (0, jsx_runtime_1.jsxs)(button_1.Button, Object.assign({ type: "button", onClick: (e) => onSelectAllItem(e),
|
|
73
90
|
// onClick={() => {
|
|
74
91
|
// if (onSelectAll) onSelectAll();
|
|
75
92
|
// }}
|
|
76
|
-
className: "text-primary-400 bg-white pt-0 px-2 flex gap-2 align-items-center w-full font-semibold absolute z-4 text-left focus:shadow-none", style: { top: "10em" }, link: true }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: checked
|
|
93
|
+
className: "text-primary-400 bg-white pt-0 px-2 flex gap-2 align-items-center w-full font-semibold absolute z-4 text-left focus:shadow-none", style: { top: "10em" }, link: true }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: checked }), " ", (0, jsx_runtime_1.jsx)("span", { children: checked ? "Select All" : "Unselect All" })] })), (0, jsx_runtime_1.jsx)(listbox_1.ListBox, { itemTemplate: (option) => ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: optionTemplate ? (optionTemplate(option)) : ((0, jsx_runtime_1.jsx)("span", { children: option[`${optionLabel}`] })) })), listClassName: `${listClassName ? listClassName : " h-18rem overflow-auto "} ${selectAll && " mt-8 pt-2"}`, filter: filter ? true : false, multiple: multiple ? true : false, value: selectedItems, onChange: (e) => onSelectOption(e), options: listItems, optionLabel: optionLabel, className: `${listBoxclassName
|
|
77
94
|
? listBoxclassName
|
|
78
95
|
: "w-16rem border-none "} `, filterPlaceholder: filterPlaceholder ? filterPlaceholder : "" }), footeTemplate && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: footeTemplate() })] }))),
|
|
79
96
|
},
|
|
80
|
-
] }), !showChips ? ((0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", className: `list_box_button focus:shadow-none p-0 h-max h-auto p-0 mx-2 ${buttonClassName}`, link: link ? true : false, icon: labelIcon ? labelIcon : "", size: labelIconSize ? labelIconSize : "", iconPos: labelIconPos ? labelIconPos : "", label: label, onClick: (event) => optionsMenuRef.current.toggle(event) })) : ((0, jsx_runtime_1.jsxs)("ul", Object.assign({ className: `pl-0 grid row-gap-2 list_box_chips ${chipsParentClassName}` }, { children: [(0, jsx_runtime_1.jsx)("li", Object.assign({ className: `cursor-pointer min-w-max mx-2 max-w-max ${buttonClassName}` }, { children: (0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", className: `list_box_button focus:shadow-none p-0 h-max h-auto mx-2`, link: link ? true : false, icon: labelIcon ? labelIcon : "", size: labelIconSize ? labelIconSize : "", iconPos: labelIconPos ? labelIconPos : "", label: label, onClick: (event) => optionsMenuRef.current.toggle(event) }) })), selectedItems &&
|
|
97
|
+
] }), !showChips ? ((0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", className: `list_box_button focus:shadow-none p-0 h-max h-auto p-0 mx-2 ${buttonClassName}`, link: link ? true : false, icon: labelIcon ? labelIcon : "", size: labelIconSize ? labelIconSize : "", iconPos: labelIconPos ? labelIconPos : "", label: label, onClick: (event) => optionsMenuRef.current.toggle(event) })) : ((0, jsx_runtime_1.jsxs)("ul", Object.assign({ className: `pl-0 grid row-gap-2 list_box_chips ${chipsParentClassName}` }, { children: [(0, jsx_runtime_1.jsx)("li", Object.assign({ className: `cursor-pointer min-w-max mx-2 max-w-max ${buttonClassName}` }, { children: (0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", className: `list_box_button focus:shadow-none p-0 h-max h-auto mx-2`, link: link ? true : false, icon: labelIcon ? labelIcon : "", size: labelIconSize ? labelIconSize : "", iconPos: labelIconPos ? labelIconPos : "", label: label, onClick: (event) => optionsMenuRef.current.toggle(event), "aria-controls": "popup_menu_right", "aria-haspopup": true }) })), selectedItems &&
|
|
81
98
|
(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.map((item, index) => {
|
|
82
99
|
var _a, _b;
|
|
83
100
|
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isDraggable !== undefined ? ((0, jsx_runtime_1.jsx)("li", Object.assign({ draggable: isDraggable, onDragStart: (e) => handleDragStart(e, index), onDragOver: (e) => handleDragOver(e), onDrop: (e) => handleDrop(e, index), className: `${chipClassName
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const parent_for_grid_1 = tslib_1.__importDefault(require("../../components/ag-grid/parent-for-grid"));
|
|
7
|
+
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
8
|
+
const Types_1 = require("../../components/ag-grid/Types");
|
|
9
|
+
// import IdCell from "./id-cell";
|
|
10
|
+
const constants_1 = require("../../components/ag-grid/constants");
|
|
11
|
+
// import { Dropdown } from "primereact/dropdown";
|
|
12
|
+
const custom_dropdown_1 = tslib_1.__importDefault(require("../../components/ag-grid/custom-dropdown"));
|
|
13
|
+
const BulkAction_1 = tslib_1.__importDefault(require("./BulkAction"));
|
|
14
|
+
// import { ATTRIBUTEDATATYPES } from "../../components/ag-grid/constants";
|
|
15
|
+
const AgGridPage = () => {
|
|
16
|
+
const [rowData, setRowData] = (0, react_1.useState)([]);
|
|
17
|
+
const [shouldRefetch, setShouldRefetch] = (0, react_1.useState)(false);
|
|
18
|
+
const [defaultFilters, setDefaultFilters] = (0, react_1.useState)([]);
|
|
19
|
+
const deleteComponent = () => {
|
|
20
|
+
return (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("button", Object.assign({ className: "bg-white", onClick: () => setShouldRefetch(true) }, { children: "Delete" })) });
|
|
21
|
+
};
|
|
22
|
+
const noRowsOverlayComponent = () => {
|
|
23
|
+
return (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("p", { children: "No Rows, message from products" }) });
|
|
24
|
+
};
|
|
25
|
+
const [columnDefs] = (0, react_1.useState)([
|
|
26
|
+
{
|
|
27
|
+
pinned: "left",
|
|
28
|
+
lockPosition: "left",
|
|
29
|
+
cellClass: "lock-pinned",
|
|
30
|
+
suppressMovable: true,
|
|
31
|
+
enableHeaderCheckbox: true,
|
|
32
|
+
enableChildCheckbox: true,
|
|
33
|
+
id: "101",
|
|
34
|
+
headerName: "ID",
|
|
35
|
+
field: "id",
|
|
36
|
+
isSortable: false,
|
|
37
|
+
code: 1,
|
|
38
|
+
dataType: Types_1.ATTRIBUTEDATATYPES.STRING,
|
|
39
|
+
editable: true,
|
|
40
|
+
isFilterable: false,
|
|
41
|
+
cellStyle: { borderRight: "1px solid #ccc" },
|
|
42
|
+
cellRendererSelector: (params) => {
|
|
43
|
+
if (params.node.rowPinned) {
|
|
44
|
+
return {
|
|
45
|
+
component: custom_dropdown_1.default,
|
|
46
|
+
params: {
|
|
47
|
+
style: { color: "#5577CC" },
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
lockPinned: true,
|
|
58
|
+
id: "102",
|
|
59
|
+
headerName: "Title",
|
|
60
|
+
cellRendererSelector: (params) => {
|
|
61
|
+
if (params.node.rowPinned) {
|
|
62
|
+
return {
|
|
63
|
+
component: custom_dropdown_1.default,
|
|
64
|
+
params: {
|
|
65
|
+
style: { color: "#5577CC" },
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
return undefined;
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
field: "name",
|
|
74
|
+
isSortable: true,
|
|
75
|
+
code: 1,
|
|
76
|
+
dataType: Types_1.ATTRIBUTEDATATYPES.STRING,
|
|
77
|
+
editable: false,
|
|
78
|
+
isFilterable: false,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
lockPinned: true,
|
|
82
|
+
id: "103",
|
|
83
|
+
headerName: "Body",
|
|
84
|
+
field: "body",
|
|
85
|
+
isSortable: true,
|
|
86
|
+
code: 1,
|
|
87
|
+
dataType: Types_1.ATTRIBUTEDATATYPES.STRING,
|
|
88
|
+
editable: false,
|
|
89
|
+
isFilterable: true,
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
lockPinned: true,
|
|
93
|
+
id: "103",
|
|
94
|
+
headerName: "Status",
|
|
95
|
+
field: "status",
|
|
96
|
+
isSortable: true,
|
|
97
|
+
columnType: "single",
|
|
98
|
+
options: [
|
|
99
|
+
{ id: constants_1.STATUSLIST.DRAFT, label: "Draft", value: constants_1.STATUSLIST.DRAFT },
|
|
100
|
+
{ id: constants_1.STATUSLIST.ACTIVE, label: "Active", value: constants_1.STATUSLIST.ACTIVE },
|
|
101
|
+
{
|
|
102
|
+
id: constants_1.STATUSLIST.INACTIVE,
|
|
103
|
+
label: "Inactive",
|
|
104
|
+
value: constants_1.STATUSLIST.INACTIVE,
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
code: 1,
|
|
108
|
+
dataType: Types_1.ATTRIBUTEDATATYPES.BOOLEAN,
|
|
109
|
+
editable: false,
|
|
110
|
+
isFilterable: true,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
pinned: "right",
|
|
114
|
+
lockPosition: "rigth",
|
|
115
|
+
cellClass: "lock-pinned",
|
|
116
|
+
cellRendererSelector: (params) => {
|
|
117
|
+
if (params.node.rowPinned) {
|
|
118
|
+
return () => null;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
return { component: deleteComponent };
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
]);
|
|
126
|
+
// const [selectedCity, setSelectedCity] = useState(null);
|
|
127
|
+
const pinnedTopRowData = (0, react_1.useMemo)(() => {
|
|
128
|
+
return [
|
|
129
|
+
{ id: "1",
|
|
130
|
+
name: "nitesh",
|
|
131
|
+
body: "working out"
|
|
132
|
+
}
|
|
133
|
+
];
|
|
134
|
+
}, []);
|
|
135
|
+
// Remove items from - button
|
|
136
|
+
const removeItem = (checkboxSelectionDetails) => {
|
|
137
|
+
const unSelectedData = checkboxSelectionDetails === null || checkboxSelectionDetails === void 0 ? void 0 : checkboxSelectionDetails.excludedRecords;
|
|
138
|
+
const selectedData = checkboxSelectionDetails === null || checkboxSelectionDetails === void 0 ? void 0 : checkboxSelectionDetails.includedRecords;
|
|
139
|
+
const isIternminite = checkboxSelectionDetails === null || checkboxSelectionDetails === void 0 ? void 0 : checkboxSelectionDetails.isIndeterminate;
|
|
140
|
+
console.log(checkboxSelectionDetails, 'coming in remove item products');
|
|
141
|
+
let updatedRowData = [];
|
|
142
|
+
if (isIternminite) {
|
|
143
|
+
updatedRowData = unSelectedData;
|
|
144
|
+
}
|
|
145
|
+
else if ((selectedData === null || selectedData === void 0 ? void 0 : selectedData.length) && !(isIternminite)) {
|
|
146
|
+
const childIds = new Set(selectedData === null || selectedData === void 0 ? void 0 : selectedData.map(child => child.id));
|
|
147
|
+
updatedRowData = rowData.filter(parent => !childIds.has(parent.id));
|
|
148
|
+
}
|
|
149
|
+
console.log(updatedRowData, 'result data from remove items in products');
|
|
150
|
+
return updatedRowData;
|
|
151
|
+
};
|
|
152
|
+
const getCheckedRows = (checkedRows) => {
|
|
153
|
+
console.log(checkedRows, 'checked rows in products');
|
|
154
|
+
};
|
|
155
|
+
const getRowData = (startRow, endRow, featureDetails) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
156
|
+
console.log(featureDetails, 'feature details in page for filter queries');
|
|
157
|
+
const features = featureDetails;
|
|
158
|
+
// const conditionToRemoveItem = features.checkBoxSelection.allBoxChecked || features.checkBoxSelection.isIndeterminate || features.checkBoxSelection.includedRecords.length || features.checkBoxSelection.excludedRecords.length
|
|
159
|
+
if (featureDetails.isRemoveClicked) {
|
|
160
|
+
const result = removeItem(features.checkBoxSelection);
|
|
161
|
+
const output = {
|
|
162
|
+
totalRecords: result.length,
|
|
163
|
+
rowData: result
|
|
164
|
+
};
|
|
165
|
+
return yield output;
|
|
166
|
+
}
|
|
167
|
+
let totalRecords = 500;
|
|
168
|
+
const serverSideUrl = `https://jsonplaceholder.typicode.com/comments?_start=${startRow}&_end=${endRow}`;
|
|
169
|
+
const clientSideUrl = "https://jsonplaceholder.typicode.com/comments?_limit=20";
|
|
170
|
+
console.log(serverSideUrl, clientSideUrl);
|
|
171
|
+
const result = yield axios_1.default.get(serverSideUrl);
|
|
172
|
+
result.data[2].isSelected = true;
|
|
173
|
+
const outputData = result === null || result === void 0 ? void 0 : result.data.map((item) => {
|
|
174
|
+
item.status = "Active";
|
|
175
|
+
return item;
|
|
176
|
+
});
|
|
177
|
+
let output = {
|
|
178
|
+
totalRecords: totalRecords,
|
|
179
|
+
rowData: outputData
|
|
180
|
+
};
|
|
181
|
+
if (featureDetails.searchedText === "data") {
|
|
182
|
+
output = {
|
|
183
|
+
totalRecords: 0,
|
|
184
|
+
rowData: []
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
setRowData(result.data);
|
|
188
|
+
setShouldRefetch(false);
|
|
189
|
+
return output;
|
|
190
|
+
});
|
|
191
|
+
const style = {
|
|
192
|
+
height: "100vh",
|
|
193
|
+
width: "100%"
|
|
194
|
+
};
|
|
195
|
+
const conditionsToDisplay = {
|
|
196
|
+
displayFilter: true,
|
|
197
|
+
displaySort: true,
|
|
198
|
+
displaySearch: true,
|
|
199
|
+
displayRefresh: true,
|
|
200
|
+
displayRemoveItems: true,
|
|
201
|
+
displayBulkAction: true,
|
|
202
|
+
enableViewCreate: true
|
|
203
|
+
};
|
|
204
|
+
console.log(pinnedTopRowData, defaultFilters);
|
|
205
|
+
const createView = (viewDetails) => {
|
|
206
|
+
console.log(viewDetails, 'parsed value for create view');
|
|
207
|
+
};
|
|
208
|
+
const selectFilter = () => {
|
|
209
|
+
const defaultFilters = [
|
|
210
|
+
{
|
|
211
|
+
columnName: {
|
|
212
|
+
name: "Body",
|
|
213
|
+
code: "body",
|
|
214
|
+
dataType: "string",
|
|
215
|
+
},
|
|
216
|
+
condition: 5,
|
|
217
|
+
value: "data",
|
|
218
|
+
id: "0.028544677566825438",
|
|
219
|
+
isActive: true,
|
|
220
|
+
logicalOperator: 1, // number
|
|
221
|
+
},
|
|
222
|
+
];
|
|
223
|
+
setShouldRefetch(true);
|
|
224
|
+
setDefaultFilters(defaultFilters);
|
|
225
|
+
};
|
|
226
|
+
const dynamicText = {
|
|
227
|
+
filterModelText: {
|
|
228
|
+
header: "Filter",
|
|
229
|
+
subHeader: "Streamline Your Search With Filters",
|
|
230
|
+
resetFilterAction: "Reset Filter",
|
|
231
|
+
createViewInputPlaceHolder: "Enter",
|
|
232
|
+
createViewAction: "Create View",
|
|
233
|
+
applyAction: "Apply",
|
|
234
|
+
elementOnePlaceHolder: "Select",
|
|
235
|
+
elementTwoPlaceHolder: "Select",
|
|
236
|
+
elementThreePlaceHolder_Input: "Enter Text",
|
|
237
|
+
elementThreePlaceHolder_Input_Number: "Enter Number",
|
|
238
|
+
elementThreePlaceHolder_DropDown: "Select",
|
|
239
|
+
elementThreePlaceHolder_MultiSelect: "Select",
|
|
240
|
+
elementThreePlaceHolder_Calender: "Select Date",
|
|
241
|
+
onSelectedFilter: "Selected"
|
|
242
|
+
},
|
|
243
|
+
sortModelText: {
|
|
244
|
+
header: "Column Sorting",
|
|
245
|
+
clearAction: "Clear",
|
|
246
|
+
applyAction: "Apply",
|
|
247
|
+
onSelectedSort: "Selected"
|
|
248
|
+
},
|
|
249
|
+
recordDetailModelText: {
|
|
250
|
+
totalRecordHeader: "Total Records"
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("button", Object.assign({ onClick: selectFilter }, { children: "Select Filter" })), (0, jsx_runtime_1.jsx)(parent_for_grid_1.default, { columnData: columnDefs, style: style, getRowData: getRowData, conditionsToDisplay: conditionsToDisplay, rowModelType: constants_1.ROWMODELTYPE.INFINITE,
|
|
254
|
+
// pinnedTopRowData={pinnedTopRowData}
|
|
255
|
+
bulkActionComponent: BulkAction_1.default, getCheckedRows: getCheckedRows, shouldRefetch: shouldRefetch, noRowsOverlayComponent: noRowsOverlayComponent, defaultFilters: defaultFilters, createView: createView, dynamicText: dynamicText, sortOptions: constants_1.COLUMN_SORT_OPTIONS, filterConditions: [{ id: 1, label: "AND" }, { id: 2, label: "OR" }] })] }));
|
|
256
|
+
};
|
|
257
|
+
exports.default = AgGridPage;
|