sccoreui 5.8.6 → 5.8.8
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/App.scss +30 -0
- package/dist/assets/images/drag.svg +8 -0
- package/dist/assets/svg/drag.svg +8 -0
- package/dist/components/ag-grid/AgGrid.js +1 -1
- package/dist/components/ag-grid/CustomDropDown.js +17 -0
- package/dist/components/ag-grid/ParentForGrid.js +10 -5
- package/dist/components/ag-grid/advancedFeature/advanced-feature.js +3 -1
- package/dist/components/ag-grid/advancedFeature/custom-sort.js +8 -5
- package/dist/components/ag-grid/advancedFeature/filter/filter.js +21 -9
- package/dist/components/ag-grid/advancedFeature/filter/querty.js +2 -1
- package/dist/components/ag-grid/advancedFeature/global-search.js +8 -4
- package/dist/components/ag-grid/advancedFeature/grouping.js +36 -0
- package/dist/components/ag-grid/advancedFeature/hide-column.js +44 -0
- package/dist/components/ag-grid/advancedFeature/refresh-grid.js +4 -1
- package/dist/components/ag-grid/constants.js +5 -1
- package/dist/components/ag-grid/grid-checkbox.js +2 -2
- package/dist/directives/svg-icons.js +36 -0
- package/dist/types/components/ag-grid/CustomDropDown.d.ts +2 -0
- package/dist/types/components/ag-grid/ParentForGrid.d.ts +1 -0
- package/dist/types/components/ag-grid/advancedFeature/grouping.d.ts +2 -0
- package/dist/types/components/ag-grid/advancedFeature/hide-column.d.ts +2 -0
- package/dist/types/components/ag-grid/constants.d.ts +4 -0
- package/dist/types/components/ag-grid/grid-checkbox.d.ts +2 -2
- package/package.json +1 -1
package/dist/App.scss
CHANGED
|
@@ -48,6 +48,11 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
|
|
51
|
+
// height and width utility classes
|
|
52
|
+
|
|
53
|
+
.h-40 {
|
|
54
|
+
height: 40px;
|
|
55
|
+
}
|
|
51
56
|
|
|
52
57
|
// @font-face {
|
|
53
58
|
// font-family: "Lato";
|
|
@@ -197,6 +202,31 @@ code {
|
|
|
197
202
|
}
|
|
198
203
|
}
|
|
199
204
|
|
|
205
|
+
.bulk-action-feature {
|
|
206
|
+
.p-overlaypanel-content {
|
|
207
|
+
padding: 0 !important;
|
|
208
|
+
border-radius: 6px !important
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.column_group_overlay {
|
|
213
|
+
overflow: hidden;
|
|
214
|
+
.p-overlaypanel-content {
|
|
215
|
+
padding: 0px !important;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.list-items {
|
|
220
|
+
padding: 4px;
|
|
221
|
+
border: 0;
|
|
222
|
+
.p-treenode-content {
|
|
223
|
+
padding: 2px !important;
|
|
224
|
+
}
|
|
225
|
+
.p-treenode-droppoint {
|
|
226
|
+
height: 2px;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
200
230
|
.sc_custom_multiselect {
|
|
201
231
|
|
|
202
232
|
width: max-content;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 2.5C7.39782 2.5 7.77936 2.65804 8.06066 2.93934C8.34196 3.22064 8.5 3.60218 8.5 4C8.5 4.39782 8.34196 4.77936 8.06066 5.06066C7.77936 5.34196 7.39782 5.5 7 5.5C6.60218 5.5 6.22064 5.34196 5.93934 5.06066C5.65804 4.77936 5.5 4.39782 5.5 4C5.5 3.60218 5.65804 3.22064 5.93934 2.93934C6.22064 2.65804 6.60218 2.5 7 2.5Z" fill="#667085"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 2.5C13.3978 2.5 13.7794 2.65804 14.0607 2.93934C14.342 3.22064 14.5 3.60218 14.5 4C14.5 4.39782 14.342 4.77936 14.0607 5.06066C13.7794 5.34196 13.3978 5.5 13 5.5C12.6022 5.5 12.2206 5.34196 11.9393 5.06066C11.658 4.77936 11.5 4.39782 11.5 4C11.5 3.60218 11.658 3.22064 11.9393 2.93934C12.2206 2.65804 12.6022 2.5 13 2.5Z" fill="#667085"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 8.5C7.39782 8.5 7.77936 8.65804 8.06066 8.93934C8.34196 9.22064 8.5 9.60218 8.5 10C8.5 10.3978 8.34196 10.7794 8.06066 11.0607C7.77936 11.342 7.39782 11.5 7 11.5C6.60218 11.5 6.22064 11.342 5.93934 11.0607C5.65804 10.7794 5.5 10.3978 5.5 10C5.5 9.60218 5.65804 9.22064 5.93934 8.93934C6.22064 8.65804 6.60218 8.5 7 8.5Z" fill="#667085"/>
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 8.5C13.3978 8.5 13.7794 8.65804 14.0607 8.93934C14.342 9.22064 14.5 9.60218 14.5 10C14.5 10.3978 14.342 10.7794 14.0607 11.0607C13.7794 11.342 13.3978 11.5 13 11.5C12.6022 11.5 12.2206 11.342 11.9393 11.0607C11.658 10.7794 11.5 10.3978 11.5 10C11.5 9.60218 11.658 9.22064 11.9393 8.93934C12.2206 8.65804 12.6022 8.5 13 8.5Z" fill="#667085"/>
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 14.5C7.39782 14.5 7.77936 14.658 8.06066 14.9393C8.34196 15.2206 8.5 15.6022 8.5 16C8.5 16.3978 8.34196 16.7794 8.06066 17.0607C7.77936 17.342 7.39782 17.5 7 17.5C6.60218 17.5 6.22064 17.342 5.93934 17.0607C5.65804 16.7794 5.5 16.3978 5.5 16C5.5 15.6022 5.65804 15.2206 5.93934 14.9393C6.22064 14.658 6.60218 14.5 7 14.5Z" fill="#667085"/>
|
|
7
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 14.5C13.3978 14.5 13.7794 14.658 14.0607 14.9393C14.342 15.2206 14.5 15.6022 14.5 16C14.5 16.3978 14.342 16.7794 14.0607 17.0607C13.7794 17.342 13.3978 17.5 13 17.5C12.6022 17.5 12.2206 17.342 11.9393 17.0607C11.658 16.7794 11.5 16.3978 11.5 16C11.5 15.6022 11.658 15.2206 11.9393 14.9393C12.2206 14.658 12.6022 14.5 13 14.5Z" fill="#667085"/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 2.5C7.39782 2.5 7.77936 2.65804 8.06066 2.93934C8.34196 3.22064 8.5 3.60218 8.5 4C8.5 4.39782 8.34196 4.77936 8.06066 5.06066C7.77936 5.34196 7.39782 5.5 7 5.5C6.60218 5.5 6.22064 5.34196 5.93934 5.06066C5.65804 4.77936 5.5 4.39782 5.5 4C5.5 3.60218 5.65804 3.22064 5.93934 2.93934C6.22064 2.65804 6.60218 2.5 7 2.5Z" fill="#667085"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 2.5C13.3978 2.5 13.7794 2.65804 14.0607 2.93934C14.342 3.22064 14.5 3.60218 14.5 4C14.5 4.39782 14.342 4.77936 14.0607 5.06066C13.7794 5.34196 13.3978 5.5 13 5.5C12.6022 5.5 12.2206 5.34196 11.9393 5.06066C11.658 4.77936 11.5 4.39782 11.5 4C11.5 3.60218 11.658 3.22064 11.9393 2.93934C12.2206 2.65804 12.6022 2.5 13 2.5Z" fill="#667085"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 8.5C7.39782 8.5 7.77936 8.65804 8.06066 8.93934C8.34196 9.22064 8.5 9.60218 8.5 10C8.5 10.3978 8.34196 10.7794 8.06066 11.0607C7.77936 11.342 7.39782 11.5 7 11.5C6.60218 11.5 6.22064 11.342 5.93934 11.0607C5.65804 10.7794 5.5 10.3978 5.5 10C5.5 9.60218 5.65804 9.22064 5.93934 8.93934C6.22064 8.65804 6.60218 8.5 7 8.5Z" fill="#667085"/>
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 8.5C13.3978 8.5 13.7794 8.65804 14.0607 8.93934C14.342 9.22064 14.5 9.60218 14.5 10C14.5 10.3978 14.342 10.7794 14.0607 11.0607C13.7794 11.342 13.3978 11.5 13 11.5C12.6022 11.5 12.2206 11.342 11.9393 11.0607C11.658 10.7794 11.5 10.3978 11.5 10C11.5 9.60218 11.658 9.22064 11.9393 8.93934C12.2206 8.65804 12.6022 8.5 13 8.5Z" fill="#667085"/>
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 14.5C7.39782 14.5 7.77936 14.658 8.06066 14.9393C8.34196 15.2206 8.5 15.6022 8.5 16C8.5 16.3978 8.34196 16.7794 8.06066 17.0607C7.77936 17.342 7.39782 17.5 7 17.5C6.60218 17.5 6.22064 17.342 5.93934 17.0607C5.65804 16.7794 5.5 16.3978 5.5 16C5.5 15.6022 5.65804 15.2206 5.93934 14.9393C6.22064 14.658 6.60218 14.5 7 14.5Z" fill="#667085"/>
|
|
7
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 14.5C13.3978 14.5 13.7794 14.658 14.0607 14.9393C14.342 15.2206 14.5 15.6022 14.5 16C14.5 16.3978 14.342 16.7794 14.0607 17.0607C13.7794 17.342 13.3978 17.5 13 17.5C12.6022 17.5 12.2206 17.342 11.9393 17.0607C11.658 16.7794 11.5 16.3978 11.5 16C11.5 15.6022 11.658 15.2206 11.9393 14.9393C12.2206 14.658 12.6022 14.5 13 14.5Z" fill="#667085"/>
|
|
8
|
+
</svg>
|
|
@@ -13,6 +13,6 @@ const LicenceKey_1 = require("./LicenceKey");
|
|
|
13
13
|
core_1.ModuleRegistry.registerModules([client_side_row_model_1.ClientSideRowModelModule, range_selection_1.RangeSelectionModule, infinite_row_model_1.InfiniteRowModelModule]);
|
|
14
14
|
core_2.LicenseManager.setLicenseKey(LicenceKey_1.LICENSEKEY);
|
|
15
15
|
const AgGrid = ({ style, gridOptions, onGridReady }) => {
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div",
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "ag-theme-quartz ", style: { height: style.height, width: style.width } }, { children: (0, jsx_runtime_1.jsx)(react_1.AgGridReact, Object.assign({ onGridReady: onGridReady, reactiveCustomComponents: true }, gridOptions)) })) }));
|
|
17
17
|
};
|
|
18
18
|
exports.default = AgGrid;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const dropdown_1 = require("primereact/dropdown");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
function CustomDropDown() {
|
|
7
|
+
const [selectedCity, setSelectedCity] = (0, react_1.useState)(null);
|
|
8
|
+
const cities = [
|
|
9
|
+
{ name: "New York", code: "NY" },
|
|
10
|
+
{ name: "Rome", code: "RM" },
|
|
11
|
+
{ name: "London", code: "LDN" },
|
|
12
|
+
{ name: "Istanbul", code: "IST" },
|
|
13
|
+
{ name: "Paris", code: "PRS" },
|
|
14
|
+
];
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "card flex justify-content-center" }, { children: (0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { value: selectedCity, onChange: (e) => setSelectedCity(e.value), options: cities, optionLabel: "name", placeholder: "Select a City", className: "w-full md:w-14rem" }) })));
|
|
16
|
+
}
|
|
17
|
+
exports.default = CustomDropDown;
|
|
@@ -9,6 +9,7 @@ const grid_checkbox_1 = tslib_1.__importDefault(require("./grid-checkbox"));
|
|
|
9
9
|
const MyProvider_1 = tslib_1.__importDefault(require("./MyProvider"));
|
|
10
10
|
const error_ui_1 = tslib_1.__importDefault(require("./error-ui"));
|
|
11
11
|
const constants_1 = require("./constants");
|
|
12
|
+
require("./ag-grid.scss");
|
|
12
13
|
function ParentForGrid(props) {
|
|
13
14
|
const [gridData, setGridData] = (0, react_1.useState)({
|
|
14
15
|
rowData: [],
|
|
@@ -42,7 +43,7 @@ function ParentForGrid(props) {
|
|
|
42
43
|
const defaultColDef = (0, react_1.useMemo)(() => {
|
|
43
44
|
return {
|
|
44
45
|
flex: 1,
|
|
45
|
-
minWidth:
|
|
46
|
+
minWidth: 40,
|
|
46
47
|
editable: false,
|
|
47
48
|
filter: false,
|
|
48
49
|
sortable: false,
|
|
@@ -169,8 +170,12 @@ function ParentForGrid(props) {
|
|
|
169
170
|
onCellValueChanged: getEditedColumn,
|
|
170
171
|
rowSelection: "multiple",
|
|
171
172
|
suppressRowClickSelection: true,
|
|
172
|
-
rowHeight:
|
|
173
|
-
rowModelType: props.rowModelType,
|
|
173
|
+
rowHeight: constants_1.ROW_HEIGHT,
|
|
174
|
+
rowModelType: props.rowModelType,
|
|
175
|
+
pinnedTopRowData: props === null || props === void 0 ? void 0 : props.pinnedTopRowData,
|
|
176
|
+
cacheBlockSize: constants_1.BLOCK_SIZE,
|
|
177
|
+
maxBlocksInCache: constants_1.MAX_BLOCKS,
|
|
178
|
+
blockLoadDebounceMillis: constants_1.DEBOUNCE_INTERVAL, // Debounce for scroll
|
|
174
179
|
};
|
|
175
180
|
// Fucntion to call the grid
|
|
176
181
|
const callGrid = (featureDetails) => {
|
|
@@ -191,8 +196,8 @@ function ParentForGrid(props) {
|
|
|
191
196
|
unselectedCheckboxData: [],
|
|
192
197
|
});
|
|
193
198
|
}, [featureDetails]);
|
|
194
|
-
console.log(isLoading, 'is loading state');
|
|
195
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(error_ui_1.default, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ style: { height:
|
|
199
|
+
console.log(isLoading, gridOptions, props === null || props === void 0 ? void 0 : props.pinnedTopRowData, 'is loading state');
|
|
200
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(error_ui_1.default, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ style: { height: "100%", width: style.width }, className: "ag-grid-container border-1 border-gray-200 border-round" }, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(MyProvider_1.default, Object.assign({ value: {
|
|
196
201
|
featureDetails,
|
|
197
202
|
setFeatureDetails,
|
|
198
203
|
gridData,
|
|
@@ -7,10 +7,12 @@ const custom_sort_1 = tslib_1.__importDefault(require("./custom-sort"));
|
|
|
7
7
|
const record_detail_1 = tslib_1.__importDefault(require("./record-detail"));
|
|
8
8
|
const filter_1 = tslib_1.__importDefault(require("./filter/filter"));
|
|
9
9
|
const refresh_grid_1 = tslib_1.__importDefault(require("./refresh-grid"));
|
|
10
|
+
// import HideColumn from "./hide-column"
|
|
11
|
+
// import Grouping from "./grouping"
|
|
10
12
|
// import { ConditionsToDisplay } from "../Types"
|
|
11
13
|
function AdvancedFeatures({ props }) {
|
|
12
14
|
const conditionsToDisplay = props === null || props === void 0 ? void 0 : props.conditionsToDisplay;
|
|
13
15
|
// const {displayFilter,displaySearch,displayRefresh,displaySort} = conditionsToDisplay
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex justify-content-between" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex" }, { children: [(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 }), (conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayFilter) && (0, jsx_runtime_1.jsx)(filter_1.default, { callBackForSelect: props === null || props === void 0 ? void 0 : props.myInputData })] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex " }, { children: [(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayRefresh) && (0, jsx_runtime_1.jsx)(refresh_grid_1.default, {}), (conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displaySort) && (0, jsx_runtime_1.jsx)(custom_sort_1.default, {}), (0, jsx_runtime_1.jsx)(record_detail_1.default, {})] }))] })));
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center justify-content-between py-3 px-4" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [(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 }), (conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayFilter) && (0, jsx_runtime_1.jsx)(filter_1.default, { callBackForSelect: props === null || props === void 0 ? void 0 : props.myInputData })] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [(conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displayRefresh) && (0, jsx_runtime_1.jsx)(refresh_grid_1.default, {}), (conditionsToDisplay === null || conditionsToDisplay === void 0 ? void 0 : conditionsToDisplay.displaySort) && (0, jsx_runtime_1.jsx)(custom_sort_1.default, {}), (0, jsx_runtime_1.jsx)(record_detail_1.default, {})] }))] })));
|
|
15
17
|
}
|
|
16
18
|
exports.default = AdvancedFeatures;
|
|
@@ -64,20 +64,23 @@ function Sort() {
|
|
|
64
64
|
// Trigger action to clear
|
|
65
65
|
const clearSort = (e) => {
|
|
66
66
|
onClickSort(e);
|
|
67
|
-
setSortBy(
|
|
68
|
-
setSortValue(
|
|
67
|
+
setSortBy({});
|
|
68
|
+
setSortValue({});
|
|
69
69
|
const sortDetails = {
|
|
70
70
|
isSortable: false,
|
|
71
71
|
columnToSort: "",
|
|
72
72
|
orderToSort: "",
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
const currentFeatureDetails = Object.assign({}, featureDetails);
|
|
75
|
+
currentFeatureDetails.sort = sortDetails;
|
|
76
|
+
setFeatureDetails(currentFeatureDetails);
|
|
77
|
+
callGrid(currentFeatureDetails);
|
|
75
78
|
};
|
|
76
79
|
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `cursor-pointer p-1 sc_icon_hover flex align-items-center border-round-lg ${isOverlayOpened || featureDetails.sort.isSortable
|
|
77
80
|
? "bg-primary-50"
|
|
78
|
-
: ""}` }, { children: [featureDetails.sort.isSortable && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: "flex align-items-center text-primary-400 px-1" }, { children: ` Selected` }))), (0, jsx_runtime_1.jsx)(
|
|
81
|
+
: ""}` }, { children: [featureDetails.sort.isSortable && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: "flex align-items-center text-primary-400 px-1" }, { children: ` Selected` }))), (0, jsx_runtime_1.jsx)(button_1.Button, { text: true, onClick: (event) => onClickSort(event), icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "switch-vertical-02", size: 20, color: isOverlayOpened || featureDetails.sort.isSortable
|
|
79
82
|
? "#243DC6"
|
|
80
|
-
: "#667085" }) })
|
|
83
|
+
: "#667085" }) })] })), (0, jsx_runtime_1.jsxs)(overlaypanel_1.OverlayPanel, Object.assign({ ref: showShort, onShow: () => setIsOverlayOpened(true), onHide: () => setIsOverlayOpened(false), className: "w-18rem mt-2" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "p-4 text-lg font-semibold line-height-3 text-gray-900" }, { children: "Column Sorting" })), (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: "m-0" }), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: "pl-0 m-1 h-10rem overflow-auto" }, { children: columnData === null || columnData === void 0 ? void 0 : columnData.map((eachColumn, index) => {
|
|
81
84
|
if (eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.isSortable) {
|
|
82
85
|
const isSelected = eachColumn.field === (sortValue === null || sortValue === void 0 ? void 0 : sortValue.field);
|
|
83
86
|
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: `${isSelected && "text-primary-400 font-semibold"}` }, { children: eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.headerName }))] }), index));
|
|
@@ -8,10 +8,20 @@ const react_1 = require("react");
|
|
|
8
8
|
const overlaypanel_1 = require("primereact/overlaypanel");
|
|
9
9
|
const querty_1 = tslib_1.__importDefault(require("./querty"));
|
|
10
10
|
const MyProvider_1 = require("../../MyProvider");
|
|
11
|
+
const columns = [{ hederName: "title" }, { hederName: "gender" }];
|
|
12
|
+
const data2 = columns.map((col, idx) => {
|
|
13
|
+
let object = {
|
|
14
|
+
key: idx,
|
|
15
|
+
label: col.hederName,
|
|
16
|
+
};
|
|
17
|
+
return object;
|
|
18
|
+
});
|
|
19
|
+
console.log(data2, "data for tree");
|
|
11
20
|
function FilterParent({ callBackForSelect }) {
|
|
12
|
-
var _a;
|
|
21
|
+
var _a, _b;
|
|
13
22
|
const filterRef = (0, react_1.useRef)(null);
|
|
14
|
-
const { columnData, featureDetails, setFeatureDetails, callGrid, queries, setQueries } = (0, react_1.useContext)(MyProvider_1.FeatureContext);
|
|
23
|
+
const { columnData, featureDetails, setFeatureDetails, callGrid, queries, setQueries, } = (0, react_1.useContext)(MyProvider_1.FeatureContext);
|
|
24
|
+
console.log(data2, "data in reee");
|
|
15
25
|
// Filter header
|
|
16
26
|
const BulkActionHeader = (props) => {
|
|
17
27
|
const { header: { label, description }, } = props;
|
|
@@ -24,10 +34,14 @@ function FilterParent({ callBackForSelect }) {
|
|
|
24
34
|
};
|
|
25
35
|
// Reset saved filters
|
|
26
36
|
const resettingFilters = () => {
|
|
37
|
+
alert("resetting");
|
|
27
38
|
filterRef.current.toggle(false);
|
|
28
39
|
// setQueryCount(1)
|
|
29
40
|
setQueries([0]);
|
|
30
|
-
|
|
41
|
+
const currentFeatureDetails = Object.assign({}, featureDetails);
|
|
42
|
+
currentFeatureDetails.filterQueries = [];
|
|
43
|
+
setFeatureDetails(currentFeatureDetails);
|
|
44
|
+
callGrid(currentFeatureDetails);
|
|
31
45
|
};
|
|
32
46
|
// Toggle the pop display
|
|
33
47
|
const togglePopup = (e) => {
|
|
@@ -35,10 +49,6 @@ function FilterParent({ callBackForSelect }) {
|
|
|
35
49
|
(_a = filterRef.current) === null || _a === void 0 ? void 0 : _a.toggle(e);
|
|
36
50
|
// setQueryCount(1)
|
|
37
51
|
};
|
|
38
|
-
// Empty filterQuries
|
|
39
|
-
const emptyFilterQuries = () => {
|
|
40
|
-
setFeatureDetails(Object.assign(Object.assign({}, featureDetails), { filterQueries: [] }));
|
|
41
|
-
};
|
|
42
52
|
// OnClick to +
|
|
43
53
|
const actionOnPlus = () => {
|
|
44
54
|
// setQueryCount((prevCount) => prevCount + 1);
|
|
@@ -47,7 +57,7 @@ function FilterParent({ callBackForSelect }) {
|
|
|
47
57
|
updatedQureis.push(addLength);
|
|
48
58
|
setQueries(updatedQureis);
|
|
49
59
|
};
|
|
50
|
-
// OnClick to -
|
|
60
|
+
// OnClick to -
|
|
51
61
|
const actionOnMinus = (index) => {
|
|
52
62
|
var _a;
|
|
53
63
|
const filterQuries = (_a = featureDetails.filterQueries) === null || _a === void 0 ? void 0 : _a.filter((query) => query.idx !== index);
|
|
@@ -82,7 +92,9 @@ function FilterParent({ callBackForSelect }) {
|
|
|
82
92
|
callGrid(featureDetails);
|
|
83
93
|
filterRef.current.toggle(false);
|
|
84
94
|
};
|
|
85
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.
|
|
95
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [((_a = featureDetails === null || featureDetails === void 0 ? void 0 : featureDetails.filterQueries) === null || _a === void 0 ? void 0 : _a.length) > 0 ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "bg-primary-50 border-round flex align-items-center mx-2" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ text: true, className: `${true && "font-semibold"} bg-transparent pr-0`, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "filter-lines" }) }, { children: ((_b = featureDetails === null || featureDetails === void 0 ? void 0 : featureDetails.filterQueries) === null || _b === void 0 ? void 0 : _b.length) + " Selected" })), (0, jsx_runtime_1.jsx)(button_1.Button, { text: true, onClick: resettingFilters, className: "h-40 text-primary-400 bg-transparent", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close" }) })] }))) : ((0, jsx_runtime_1.jsx)(button_1.Button, { text: true, className: "hover:bg-primary-25 ml-2", onClick: (e) => {
|
|
96
|
+
togglePopup(e);
|
|
97
|
+
}, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "filter-lines" }) })), (0, jsx_runtime_1.jsxs)(overlaypanel_1.OverlayPanel, Object.assign({ ref: filterRef, className: "w-45rem bulk-action-feature" }, { children: [(0, jsx_runtime_1.jsx)(BulkActionHeader, { header: {
|
|
86
98
|
label: "Filters",
|
|
87
99
|
description: "Streamline your search with filter",
|
|
88
100
|
} }), RenderQuery(), (0, jsx_runtime_1.jsx)(BulkActionFooter, { footer: {
|
|
@@ -11,6 +11,7 @@ const Types_1 = require("../../Types");
|
|
|
11
11
|
const inputnumber_1 = require("primereact/inputnumber");
|
|
12
12
|
const calendar_1 = require("primereact/calendar");
|
|
13
13
|
const multiselect_1 = require("primereact/multiselect");
|
|
14
|
+
const inputtext_1 = require("primereact/inputtext");
|
|
14
15
|
function Querty({ currentIndex, queryIndex, columnData, featureDetails, setFeatureDetails, callBackForSelect, actionOnMinus, actionOnPlus, defaultFilterValue, }) {
|
|
15
16
|
var _a, _b, _c;
|
|
16
17
|
const [filterOperations, setFilterOperations] = (0, react_1.useState)([]);
|
|
@@ -55,7 +56,7 @@ function Querty({ currentIndex, queryIndex, columnData, featureDetails, setFeatu
|
|
|
55
56
|
const renderUIElement = (type, value, onChange, options) => {
|
|
56
57
|
switch (type) {
|
|
57
58
|
case Types_1.ATTRIBUTEDATATYPES.STRING:
|
|
58
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
59
|
+
return ((0, jsx_runtime_1.jsx)(inputtext_1.InputText, { value: value, className: "border-noround", onChange: (e) => onChange(e.target.value) }));
|
|
59
60
|
case Types_1.ATTRIBUTEDATATYPES.DATE:
|
|
60
61
|
return ((0, jsx_runtime_1.jsx)(calendar_1.Calendar, { value: value, onChange: (e) => onChange(e.value), showIcon: true }));
|
|
61
62
|
case Types_1.ATTRIBUTEDATATYPES.INTEGER:
|
|
@@ -6,14 +6,18 @@ const inputtext_1 = require("primereact/inputtext");
|
|
|
6
6
|
const svg_component_1 = tslib_1.__importDefault(require("../../../directives/svg-component"));
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const MyProvider_1 = require("../MyProvider");
|
|
9
|
+
const hooks_1 = require("primereact/hooks");
|
|
9
10
|
// import { useState } from "react";
|
|
10
11
|
function Search({ searchPlaceHolder }) {
|
|
11
12
|
const { featureDetails, setFeatureDetails } = (0, react_1.useContext)(MyProvider_1.FeatureContext);
|
|
13
|
+
const [inputValue, deboucedValue, setInputValue] = (0, hooks_1.useDebounce)("", 500);
|
|
14
|
+
(0, react_1.useEffect)(() => {
|
|
15
|
+
setFeatureDetails(Object.assign(Object.assign({}, featureDetails), { searchedText: deboucedValue }));
|
|
16
|
+
}, [deboucedValue]);
|
|
12
17
|
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: `p-input-icon-left ${featureDetails.searchedText.length > 0 && "p-input-icon-right"}` }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "p-input-prefix" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { color: "#667085", icon: "search-lg", size: 18 }) })), featureDetails.searchedText.length > 0 && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: "p-input-suffix cursor-pointer", onClick: () => {
|
|
13
18
|
setFeatureDetails(Object.assign(Object.assign({}, featureDetails), { searchedText: "" }));
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}, className: "w-21rem", placeholder: searchPlaceHolder || "search by name or code" })] })) }));
|
|
19
|
+
}, title: "Clear" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close", size: 18 }) }))), (0, jsx_runtime_1.jsx)(inputtext_1.InputText, { value: inputValue, onChange: (e) => setInputValue(e.target.value),
|
|
20
|
+
// onChange={(e) => updateSearchText(e.target.value)}
|
|
21
|
+
className: "w-21rem", placeholder: searchPlaceHolder || "search by name or code" })] })) }));
|
|
18
22
|
}
|
|
19
23
|
exports.default = Search;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 inputtext_1 = require("primereact/inputtext");
|
|
6
|
+
const tree_1 = require("primereact/tree");
|
|
7
|
+
const button_1 = require("primereact/button");
|
|
8
|
+
const svg_component_1 = tslib_1.__importDefault(require("../../../directives/svg-component"));
|
|
9
|
+
const react_1 = require("react");
|
|
10
|
+
const overlaypanel_1 = require("primereact/overlaypanel");
|
|
11
|
+
const checkbox_1 = require("primereact/checkbox");
|
|
12
|
+
function Grouping() {
|
|
13
|
+
const columns = [{ hederName: "title" }, { hederName: "gender" }];
|
|
14
|
+
const data2 = columns.map((col, idx) => {
|
|
15
|
+
let object = {
|
|
16
|
+
key: idx,
|
|
17
|
+
label: col.hederName,
|
|
18
|
+
};
|
|
19
|
+
return object;
|
|
20
|
+
});
|
|
21
|
+
const columnGroupRef = (0, react_1.useRef)(null);
|
|
22
|
+
const [nodes, setNodes] = (0, react_1.useState)(data2 || []);
|
|
23
|
+
const [checked, setChecked] = (0, react_1.useState)(false);
|
|
24
|
+
const togglerTemplate = (node) => {
|
|
25
|
+
if (!node) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center mr-3" }, { children: (0, jsx_runtime_1.jsx)(button_1.Button, { text: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "drag-and-drop" }) }) })));
|
|
29
|
+
};
|
|
30
|
+
// column group functions
|
|
31
|
+
const nodeTemplate = (node) => {
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex align-items-center w-full border-round block w-full p-3 text-primary-400 font-semibold ${checked && "bg-primary-25"}` }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { onChange: (e) => setChecked(e.checked), checked: checked }), (0, jsx_runtime_1.jsx)("span", { children: node.label })] })));
|
|
33
|
+
};
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { text: true, className: "h-40 text-primary-400", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "grid-01" }), onClick: (e) => columnGroupRef.current.toggle(e) }), (0, jsx_runtime_1.jsxs)(overlaypanel_1.OverlayPanel, Object.assign({ ref: columnGroupRef, className: "column_group_overlay w-20rem" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-4" }, { children: [(0, jsx_runtime_1.jsx)("h3", Object.assign({ className: "my-0" }, { children: "Grouping" })), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "my-0" }, { children: "Select any 2 grouping options only" }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "p-4 border-bottom-1 border-top-1 border-gray-200 bg-gray-50" }, { children: (0, jsx_runtime_1.jsx)(inputtext_1.InputText, { placeholder: "Search by column or attribute name", className: "w-full" }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "w-full" }, { children: (0, jsx_runtime_1.jsx)(tree_1.Tree, { value: nodes, nodeTemplate: nodeTemplate, dragdropScope: "demo", onDragDrop: (e) => setNodes(e.value), togglerTemplate: togglerTemplate, className: "list-items" }) })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-4 border-top-1 border-gray-200 flex justify-content-between" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { text: true, label: "Remove Grouping" }), (0, jsx_runtime_1.jsx)(button_1.Button, { label: "Save Grouping", disabled: true })] }))] }))] }));
|
|
35
|
+
}
|
|
36
|
+
exports.default = Grouping;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 button_1 = require("primereact/button");
|
|
6
|
+
const svg_component_1 = tslib_1.__importDefault(require("../../../directives/svg-component"));
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const sidebar_1 = require("primereact/sidebar");
|
|
9
|
+
const inputswitch_1 = require("primereact/inputswitch");
|
|
10
|
+
const inputtext_1 = require("primereact/inputtext");
|
|
11
|
+
const tree_1 = require("primereact/tree");
|
|
12
|
+
const columns = [{ hederName: "Media" }, { hederName: "Product Name" }, { hederName: "Product Code" }, { hederName: "Product Description" }, { hederName: "Price" }, { hederName: "Brand" }];
|
|
13
|
+
const data2 = columns.map((col, idx) => {
|
|
14
|
+
let object = {
|
|
15
|
+
key: idx,
|
|
16
|
+
label: col.hederName,
|
|
17
|
+
};
|
|
18
|
+
return object;
|
|
19
|
+
});
|
|
20
|
+
function HideColumn() {
|
|
21
|
+
const [visibleRight, setVisibleRight] = (0, react_1.useState)(false);
|
|
22
|
+
const [checked, setChecked] = (0, react_1.useState)(false);
|
|
23
|
+
const [inpValue, setInpValue] = (0, react_1.useState)("");
|
|
24
|
+
const [checkedStates, setCheckedStates] = (0, react_1.useState)({});
|
|
25
|
+
const [nodes, setNodes] = (0, react_1.useState)(data2 || []);
|
|
26
|
+
const handleSwitchChange = (id, value) => {
|
|
27
|
+
setCheckedStates((prevState) => (Object.assign(Object.assign({}, prevState), { [id]: value })));
|
|
28
|
+
};
|
|
29
|
+
// column group functions
|
|
30
|
+
const nodeTemplate = (node) => {
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center w-full border-round block w-full p-3 pr-0 text-primary-400 font-semibold justify-content-between" }, { children: [(0, jsx_runtime_1.jsx)("span", { children: node.label }), (0, jsx_runtime_1.jsx)(inputswitch_1.InputSwitch, { checked: checkedStates[node.id] || false, onChange: (e) => handleSwitchChange(node.id, e.value) })] })));
|
|
32
|
+
};
|
|
33
|
+
const togglerTemplate = (node) => {
|
|
34
|
+
if (!node) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center" }, { children: (0, jsx_runtime_1.jsx)(button_1.Button, { text: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "drag-and-drop" }) }) })));
|
|
38
|
+
};
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { onClick: () => setVisibleRight(true), className: "mr-3", text: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "columns-02" }) }), (0, jsx_runtime_1.jsxs)(sidebar_1.Sidebar, Object.assign({ className: "md:w-6 lg:w-3", visible: visibleRight, position: "right", onHide: () => setVisibleRight(false) }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center justify-content-between px-4 py-2 border-bottom-1 border-gray-200" }, { children: [(0, jsx_runtime_1.jsx)("h3", { children: "Configure Columns" }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center gap-3" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { text: true, label: "Discard" }), (0, jsx_runtime_1.jsx)(button_1.Button, { label: "Update", disabled: true })] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-4" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "px-3 py-2" }, { children: [(0, jsx_runtime_1.jsxs)("h3", Object.assign({ className: "flex align-items-center justify-content-between my-0" }, { children: ["Apply to all views", (0, jsx_runtime_1.jsx)(inputswitch_1.InputSwitch, { checked: checked, onChange: (e) => setChecked(e.value) })] })), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "my-0 text-sm" }, { children: "Apply the chosen column selection to all available views" }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "py-2" }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-input-icon-left p-input-icon-right w-full" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "p-input-prefix" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "search-md" }) })), (0, jsx_runtime_1.jsx)(inputtext_1.InputText, { id: "email", value: inpValue, onChange: (e) => {
|
|
40
|
+
setInpValue(e.target.value);
|
|
41
|
+
}, disabled: false, placeholder: "Search by column name", className: "text-lg font-normal text-gray-500 hover:text-gray-900 w-full" })] })) })), (0, jsx_runtime_1.jsxs)("p", Object.assign({ className: "py-2 my-0 text-gray-900 text-lg font-medium border-bottom-1 border-gray-200" }, { children: ["Selected Attributes", " ", (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-500 text-sm" }, { children: "(10/15)" }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "w-full" }, { children: (0, jsx_runtime_1.jsx)(tree_1.Tree, { value: nodes, nodeTemplate: nodeTemplate, dragdropScope: "demo", onDragDrop: (e) => setNodes(e.value), togglerTemplate: togglerTemplate, className: "list-items" }) })), (0, jsx_runtime_1.jsx)("h3", Object.assign({ className: "mt-6 mb-0 pb-2 border-bottom-1 border-gray-200" }, { children: "Unselected Attributes" })), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: "list-none p-0 px-3" }, { children: (nodes === null || nodes === void 0 ? void 0 : nodes.length) > 0 &&
|
|
42
|
+
nodes.map((listItem) => ((0, jsx_runtime_1.jsxs)("li", Object.assign({ className: "flex align-items-center justify-content-between py-3" }, { children: [(0, jsx_runtime_1.jsx)("span", { children: listItem.label }), (0, jsx_runtime_1.jsx)(inputswitch_1.InputSwitch, { checked: checkedStates[listItem.id] || false, onChange: (e) => handleSwitchChange(listItem.id, e.value) })] }), listItem.id))) }))] }))] }))] }));
|
|
43
|
+
}
|
|
44
|
+
exports.default = HideColumn;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
3
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
5
|
const react_1 = require("react");
|
|
5
6
|
const MyProvider_1 = require("../MyProvider");
|
|
7
|
+
const svg_component_1 = tslib_1.__importDefault(require("../../../directives/svg-component"));
|
|
8
|
+
const button_1 = require("primereact/button");
|
|
6
9
|
function RefreshGrid() {
|
|
7
10
|
const { removeFeaturesAndRefresh } = (0, react_1.useContext)(MyProvider_1.FeatureContext);
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(button_1.Button, { text: true, onClick: removeFeaturesAndRefresh, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "refresh-ccw-01" }) }) }));
|
|
9
12
|
}
|
|
10
13
|
exports.default = RefreshGrid;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ROWMODELTYPE = exports.conditionsList = exports.COLUMN_SORT_OPTIONS = void 0;
|
|
3
|
+
exports.ROW_HEIGHT = exports.DEBOUNCE_INTERVAL = exports.MAX_BLOCKS = exports.BLOCK_SIZE = exports.ROWMODELTYPE = exports.conditionsList = exports.COLUMN_SORT_OPTIONS = void 0;
|
|
4
4
|
const Types_1 = require("./Types");
|
|
5
5
|
exports.COLUMN_SORT_OPTIONS = [
|
|
6
6
|
{ id: 1, label: "Low - High", sortId: 1, dataType: Types_1.ATTRIBUTEDATATYPES.INTEGER },
|
|
@@ -42,3 +42,7 @@ exports.ROWMODELTYPE = {
|
|
|
42
42
|
SERVER_SIDE: "serverSide",
|
|
43
43
|
CLIENT_SIDE: "clientSide",
|
|
44
44
|
};
|
|
45
|
+
exports.BLOCK_SIZE = 100;
|
|
46
|
+
exports.MAX_BLOCKS = 2;
|
|
47
|
+
exports.DEBOUNCE_INTERVAL = 200;
|
|
48
|
+
exports.ROW_HEIGHT = 60;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const
|
|
4
|
+
const GridCheckBOx = ({ checked, onChange, isInterminate }) => {
|
|
5
5
|
console.log(isInterminate, 'is interminat status in checkbox');
|
|
6
6
|
return ((0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: checked, onChange: onChange }));
|
|
7
7
|
};
|
|
8
|
-
exports.default =
|
|
8
|
+
exports.default = GridCheckBOx;
|
|
@@ -9074,12 +9074,48 @@ exports.iconList = [
|
|
|
9074
9074
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none">
|
|
9075
9075
|
<path d="M11.1654 3.375L5.4362 9.10417L2.83203 6.5" stroke="white" stroke-width="2.08333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9076
9076
|
</svg>`,
|
|
9077
|
+
},
|
|
9078
|
+
{
|
|
9079
|
+
name: "drag-and-drop",
|
|
9080
|
+
svg: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9081
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 2.5C7.39782 2.5 7.77936 2.65804 8.06066 2.93934C8.34196 3.22064 8.5 3.60218 8.5 4C8.5 4.39782 8.34196 4.77936 8.06066 5.06066C7.77936 5.34196 7.39782 5.5 7 5.5C6.60218 5.5 6.22064 5.34196 5.93934 5.06066C5.65804 4.77936 5.5 4.39782 5.5 4C5.5 3.60218 5.65804 3.22064 5.93934 2.93934C6.22064 2.65804 6.60218 2.5 7 2.5Z" fill="#667085"/>
|
|
9082
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 2.5C13.3978 2.5 13.7794 2.65804 14.0607 2.93934C14.342 3.22064 14.5 3.60218 14.5 4C14.5 4.39782 14.342 4.77936 14.0607 5.06066C13.7794 5.34196 13.3978 5.5 13 5.5C12.6022 5.5 12.2206 5.34196 11.9393 5.06066C11.658 4.77936 11.5 4.39782 11.5 4C11.5 3.60218 11.658 3.22064 11.9393 2.93934C12.2206 2.65804 12.6022 2.5 13 2.5Z" fill="#667085"/>
|
|
9083
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 8.5C7.39782 8.5 7.77936 8.65804 8.06066 8.93934C8.34196 9.22064 8.5 9.60218 8.5 10C8.5 10.3978 8.34196 10.7794 8.06066 11.0607C7.77936 11.342 7.39782 11.5 7 11.5C6.60218 11.5 6.22064 11.342 5.93934 11.0607C5.65804 10.7794 5.5 10.3978 5.5 10C5.5 9.60218 5.65804 9.22064 5.93934 8.93934C6.22064 8.65804 6.60218 8.5 7 8.5Z" fill="#667085"/>
|
|
9084
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 8.5C13.3978 8.5 13.7794 8.65804 14.0607 8.93934C14.342 9.22064 14.5 9.60218 14.5 10C14.5 10.3978 14.342 10.7794 14.0607 11.0607C13.7794 11.342 13.3978 11.5 13 11.5C12.6022 11.5 12.2206 11.342 11.9393 11.0607C11.658 10.7794 11.5 10.3978 11.5 10C11.5 9.60218 11.658 9.22064 11.9393 8.93934C12.2206 8.65804 12.6022 8.5 13 8.5Z" fill="#667085"/>
|
|
9085
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 14.5C7.39782 14.5 7.77936 14.658 8.06066 14.9393C8.34196 15.2206 8.5 15.6022 8.5 16C8.5 16.3978 8.34196 16.7794 8.06066 17.0607C7.77936 17.342 7.39782 17.5 7 17.5C6.60218 17.5 6.22064 17.342 5.93934 17.0607C5.65804 16.7794 5.5 16.3978 5.5 16C5.5 15.6022 5.65804 15.2206 5.93934 14.9393C6.22064 14.658 6.60218 14.5 7 14.5Z" fill="#667085"/>
|
|
9086
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 14.5C13.3978 14.5 13.7794 14.658 14.0607 14.9393C14.342 15.2206 14.5 15.6022 14.5 16C14.5 16.3978 14.342 16.7794 14.0607 17.0607C13.7794 17.342 13.3978 17.5 13 17.5C12.6022 17.5 12.2206 17.342 11.9393 17.0607C11.658 16.7794 11.5 16.3978 11.5 16C11.5 15.6022 11.658 15.2206 11.9393 14.9393C12.2206 14.658 12.6022 14.5 13 14.5Z" fill="#667085"/>
|
|
9087
|
+
</svg>
|
|
9088
|
+
`,
|
|
9077
9089
|
},
|
|
9078
9090
|
{
|
|
9079
9091
|
name: "check-circle-remove",
|
|
9080
9092
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
9081
9093
|
<path d="M3.625 8H12.375" stroke="#132067" stroke-width="2.08332" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9082
9094
|
</svg>`,
|
|
9095
|
+
},
|
|
9096
|
+
{
|
|
9097
|
+
name: "drag-and-drop",
|
|
9098
|
+
svg: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9099
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 2.5C7.39782 2.5 7.77936 2.65804 8.06066 2.93934C8.34196 3.22064 8.5 3.60218 8.5 4C8.5 4.39782 8.34196 4.77936 8.06066 5.06066C7.77936 5.34196 7.39782 5.5 7 5.5C6.60218 5.5 6.22064 5.34196 5.93934 5.06066C5.65804 4.77936 5.5 4.39782 5.5 4C5.5 3.60218 5.65804 3.22064 5.93934 2.93934C6.22064 2.65804 6.60218 2.5 7 2.5Z" fill="#667085"/>
|
|
9100
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 2.5C13.3978 2.5 13.7794 2.65804 14.0607 2.93934C14.342 3.22064 14.5 3.60218 14.5 4C14.5 4.39782 14.342 4.77936 14.0607 5.06066C13.7794 5.34196 13.3978 5.5 13 5.5C12.6022 5.5 12.2206 5.34196 11.9393 5.06066C11.658 4.77936 11.5 4.39782 11.5 4C11.5 3.60218 11.658 3.22064 11.9393 2.93934C12.2206 2.65804 12.6022 2.5 13 2.5Z" fill="#667085"/>
|
|
9101
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 8.5C7.39782 8.5 7.77936 8.65804 8.06066 8.93934C8.34196 9.22064 8.5 9.60218 8.5 10C8.5 10.3978 8.34196 10.7794 8.06066 11.0607C7.77936 11.342 7.39782 11.5 7 11.5C6.60218 11.5 6.22064 11.342 5.93934 11.0607C5.65804 10.7794 5.5 10.3978 5.5 10C5.5 9.60218 5.65804 9.22064 5.93934 8.93934C6.22064 8.65804 6.60218 8.5 7 8.5Z" fill="#667085"/>
|
|
9102
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 8.5C13.3978 8.5 13.7794 8.65804 14.0607 8.93934C14.342 9.22064 14.5 9.60218 14.5 10C14.5 10.3978 14.342 10.7794 14.0607 11.0607C13.7794 11.342 13.3978 11.5 13 11.5C12.6022 11.5 12.2206 11.342 11.9393 11.0607C11.658 10.7794 11.5 10.3978 11.5 10C11.5 9.60218 11.658 9.22064 11.9393 8.93934C12.2206 8.65804 12.6022 8.5 13 8.5Z" fill="#667085"/>
|
|
9103
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 14.5C7.39782 14.5 7.77936 14.658 8.06066 14.9393C8.34196 15.2206 8.5 15.6022 8.5 16C8.5 16.3978 8.34196 16.7794 8.06066 17.0607C7.77936 17.342 7.39782 17.5 7 17.5C6.60218 17.5 6.22064 17.342 5.93934 17.0607C5.65804 16.7794 5.5 16.3978 5.5 16C5.5 15.6022 5.65804 15.2206 5.93934 14.9393C6.22064 14.658 6.60218 14.5 7 14.5Z" fill="#667085"/>
|
|
9104
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 14.5C13.3978 14.5 13.7794 14.658 14.0607 14.9393C14.342 15.2206 14.5 15.6022 14.5 16C14.5 16.3978 14.342 16.7794 14.0607 17.0607C13.7794 17.342 13.3978 17.5 13 17.5C12.6022 17.5 12.2206 17.342 11.9393 17.0607C11.658 16.7794 11.5 16.3978 11.5 16C11.5 15.6022 11.658 15.2206 11.9393 14.9393C12.2206 14.658 12.6022 14.5 13 14.5Z" fill="#667085"/>
|
|
9105
|
+
</svg>
|
|
9106
|
+
`,
|
|
9107
|
+
},
|
|
9108
|
+
{
|
|
9109
|
+
name: "laundry",
|
|
9110
|
+
svg: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9111
|
+
<mask id="mask0_812_195445" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="20" height="20">
|
|
9112
|
+
<rect width="20" height="20" fill="#8190E8" />
|
|
9113
|
+
</mask>
|
|
9114
|
+
<g mask="url(#mask0_812_195445)">
|
|
9115
|
+
<path d="M4.06207 7.75L6.66624 6.3125V11.25C6.37457 11.2778 6.08985 11.3229 5.81207 11.3854C5.53429 11.4479 5.26346 11.5347 4.99957 11.6458V9.14583L4.1454 9.60417C3.95096 9.71528 3.74263 9.73958 3.5204 9.67708C3.29818 9.61458 3.13151 9.48611 3.0204 9.29167L1.35374 6.39583C1.24263 6.20139 1.21832 5.98958 1.28082 5.76042C1.34332 5.53125 1.47179 5.36111 1.66624 5.25L5.81207 2.85417C5.97874 2.75694 6.15235 2.67361 6.3329 2.60417C6.51346 2.53472 6.70096 2.5 6.8954 2.5C7.08985 2.5 7.25652 2.55903 7.3954 2.67708C7.53429 2.79514 7.63846 2.94444 7.7079 3.125C7.90235 3.65278 8.15582 4.09722 8.46832 4.45833C8.78082 4.81944 9.29124 5 9.99957 5C10.7079 5 11.2183 4.81944 11.5308 4.45833C11.8433 4.09722 12.0968 3.65278 12.2912 3.125C12.3607 2.94444 12.4683 2.79514 12.6142 2.67708C12.76 2.55903 12.9301 2.5 13.1246 2.5C13.319 2.5 13.503 2.53472 13.6767 2.60417C13.8503 2.67361 14.0204 2.75694 14.1871 2.85417L18.3329 5.25C18.5273 5.375 18.6523 5.54861 18.7079 5.77083C18.7635 5.99306 18.7357 6.20139 18.6246 6.39583L16.9787 9.29167C16.8676 9.48611 16.701 9.61458 16.4787 9.67708C16.2565 9.73958 16.0482 9.71528 15.8537 9.60417L14.9996 9.14583V13.1458L13.6871 14.2917C13.6454 14.3194 13.5898 14.3542 13.5204 14.3958C13.451 14.4375 13.3885 14.4722 13.3329 14.5V6.3125L15.9371 7.75L16.7704 6.29167L13.5829 4.4375C13.2496 5.11806 12.76 5.65972 12.1142 6.0625C11.4683 6.46528 10.7635 6.66667 9.99957 6.66667C9.23568 6.66667 8.53082 6.46528 7.88499 6.0625C7.23915 5.65972 6.74957 5.11806 6.41624 4.4375L3.2079 6.29167L4.06207 7.75ZM6.97874 14.1667C6.74263 14.1667 6.50999 14.2049 6.28082 14.2812C6.05165 14.3576 5.85374 14.4653 5.68707 14.6042L4.49957 15.6042C4.31901 15.7569 4.11763 15.8264 3.8954 15.8125C3.67318 15.7986 3.48568 15.7014 3.3329 15.5208C3.18013 15.3403 3.11415 15.1354 3.13499 14.9062C3.15582 14.6771 3.25651 14.4861 3.43707 14.3333L4.60374 13.3333C4.92318 13.0556 5.28776 12.8437 5.69749 12.6979C6.10721 12.5521 6.53429 12.4792 6.97874 12.4792C7.42318 12.4792 7.84679 12.5521 8.24957 12.6979C8.65235 12.8437 9.01346 13.0556 9.3329 13.3333L11.7496 15.3958C11.9162 15.5347 12.1142 15.6424 12.3433 15.7187C12.5725 15.7951 12.8051 15.8333 13.0412 15.8333C13.2912 15.8333 13.5239 15.7986 13.7392 15.7292C13.9544 15.6597 14.1454 15.5486 14.3121 15.3958L15.4787 14.3958C15.6593 14.2431 15.8642 14.1736 16.0933 14.1875C16.3225 14.2014 16.5135 14.2986 16.6662 14.4792C16.819 14.6597 16.885 14.8646 16.8642 15.0937C16.8433 15.3229 16.7426 15.5139 16.5621 15.6667L15.3954 16.6667C15.076 16.9444 14.7148 17.1528 14.3121 17.2917C13.9093 17.4306 13.4857 17.5 13.0412 17.5C12.5968 17.5 12.1697 17.4306 11.76 17.2917C11.3503 17.1528 10.9857 16.9444 10.6662 16.6667L8.24957 14.6042C8.0829 14.4653 7.89193 14.3576 7.67665 14.2812C7.46138 14.2049 7.22874 14.1667 6.97874 14.1667Z" fill="#8190E8"/>
|
|
9116
|
+
</g>
|
|
9117
|
+
</svg>
|
|
9118
|
+
`,
|
|
9083
9119
|
},
|
|
9084
9120
|
{
|
|
9085
9121
|
name: "plus-circle-2",
|