sccoreui 6.3.95 → 6.3.97
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.js +1 -1
- package/dist/App.scss +18 -8
- package/dist/components/formula-template/FormulaCoponent.js +1 -1
- package/dist/components/formula-template/Tagify.js +22 -11
- package/dist/components/list-box-dropdown/list-box-dropdown.js +1 -4
- package/dist/pages/RowGroupingServerside/DragandDropFeatures.js +49 -0
- package/dist/pages/RowGroupingServerside/RowGroupingServerSide.js +125 -0
- package/dist/pages/RowGroupingServerside/dummyData.js +226 -0
- package/dist/pages/VirtualScrollDropDown/VirtualScrollDropDown.js +9 -0
- package/dist/pages/aggrid/AgGrid.js +837 -0
- package/dist/pages/aggrid/BulkAction.js +9 -0
- package/dist/pages/aggrid/RowGroupTrail.js +125 -0
- package/dist/pages/aggrid/Template.js +11 -0
- package/dist/pages/aggrid/TestingWIthAdminConfig.js +243 -0
- package/dist/pages/aggrid/TestingWithAdminClientSide.js +447 -0
- package/dist/pages/aggrid/fakeServer.js +95 -0
- package/dist/pages/aggrid/id-cell.js +9 -0
- package/dist/pages/aggrid/interface.js +2 -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 +37 -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 +105 -0
- package/dist/pages/frolaTextEditor/froala-text-editor.js +14 -0
- package/dist/pages/home.js +57 -0
- package/dist/pages/input/input-text.js +112 -0
- package/dist/pages/list-box-dropdown/listboxdropdown.js +61 -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/testingcomponents/NormalAgGrid.js +58 -0
- package/dist/pages/testingcomponents/TestComponent.js +69 -0
- package/dist/pages/testingcomponents/data.js +326 -0
- package/dist/pages/testingcomponents/fom-feild-testing/MainformComp.js +16 -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/pages/RowGroupingServerside/DragandDropFeatures.d.ts +4 -0
- package/dist/types/pages/RowGroupingServerside/RowGroupingServerSide.d.ts +4 -0
- package/dist/types/pages/RowGroupingServerside/dummyData.d.ts +9 -0
- package/dist/types/pages/VirtualScrollDropDown/VirtualScrollDropDown.d.ts +2 -0
- 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/RowGroupTrail.d.ts +4 -0
- package/dist/types/pages/aggrid/Template.d.ts +2 -0
- package/dist/types/pages/aggrid/TestingWIthAdminConfig.d.ts +2 -0
- package/dist/types/pages/aggrid/TestingWithAdminClientSide.d.ts +2 -0
- package/dist/types/pages/aggrid/fakeServer.d.ts +7 -0
- package/dist/types/pages/aggrid/id-cell.d.ts +2 -0
- package/dist/types/pages/aggrid/interface.d.ts +12 -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/testingcomponents/NormalAgGrid.d.ts +4 -0
- package/dist/types/pages/testingcomponents/TestComponent.d.ts +4 -0
- package/dist/types/pages/testingcomponents/data.d.ts +1 -0
- package/dist/types/pages/testingcomponents/fom-feild-testing/MainformComp.d.ts +2 -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
package/dist/App.js
CHANGED
|
@@ -6,6 +6,6 @@ require("./App.scss");
|
|
|
6
6
|
// import Home from "./pages/home";
|
|
7
7
|
const App = () => {
|
|
8
8
|
// const [selectedCountries, setSelectedCountries] = useState(null);
|
|
9
|
-
return (
|
|
9
|
+
return (0, jsx_runtime_1.jsx)("div", { className: "m-6" });
|
|
10
10
|
};
|
|
11
11
|
exports.default = App;
|
package/dist/App.scss
CHANGED
|
@@ -1161,14 +1161,7 @@ button[aria-expanded="true"] {
|
|
|
1161
1161
|
padding-inline: 6px 10px !important;
|
|
1162
1162
|
color: var(--primary-400);
|
|
1163
1163
|
background: transparent;
|
|
1164
|
-
|
|
1165
|
-
.p-button-label {
|
|
1166
|
-
max-width: 120px;
|
|
1167
|
-
white-space: nowrap;
|
|
1168
|
-
text-overflow: ellipsis;
|
|
1169
|
-
overflow: hidden;
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1164
|
+
|
|
1172
1165
|
&:not(.section_btn) {
|
|
1173
1166
|
height: 28px;
|
|
1174
1167
|
}
|
|
@@ -1196,6 +1189,23 @@ button[aria-expanded="true"] {
|
|
|
1196
1189
|
}
|
|
1197
1190
|
}
|
|
1198
1191
|
|
|
1192
|
+
.p-button.data_label {
|
|
1193
|
+
color: var(--gray-600);
|
|
1194
|
+
background-color: transparent;
|
|
1195
|
+
display: flex;
|
|
1196
|
+
gap: 4px;
|
|
1197
|
+
svg {
|
|
1198
|
+
path {
|
|
1199
|
+
stroke: var(--gray-700);
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
&:hover {
|
|
1204
|
+
background-color: var(--gray-200);
|
|
1205
|
+
color: var(--gray-700);
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1199
1209
|
.list_box_chips {
|
|
1200
1210
|
display: flex;
|
|
1201
1211
|
flex-wrap: wrap;
|
|
@@ -28,7 +28,7 @@ const FormulaComponent = (props) => {
|
|
|
28
28
|
? props === null || props === void 0 ? void 0 : props.headerLabel
|
|
29
29
|
: "Configure Value" })), (0, jsx_runtime_1.jsx)("span", { children: (props === null || props === void 0 ? void 0 : props.headerDescription)
|
|
30
30
|
? props === null || props === void 0 ? void 0 : props.headerDescription
|
|
31
|
-
: "Select price attribute and perform calculater." })] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "help-circle", size: 16 }) }))] }))), (0, jsx_runtime_1.jsx)(Tagify_1.default, { formulaOperators: props.formulaOperators, fieldOptions: fieldOptions, formulaValue: props === null || props === void 0 ? void 0 : props.formulaValue })] }), "formula__dev"));
|
|
31
|
+
: "Select price attribute and perform calculater." })] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "help-circle", size: 16 }) }))] }))), (0, jsx_runtime_1.jsx)(Tagify_1.default, { formulaOperators: props.formulaOperators, fieldOptions: fieldOptions, formulaValue: props === null || props === void 0 ? void 0 : props.formulaValue, priceConditioRef: priceConditioRef, onChange: (e) => (props === null || props === void 0 ? void 0 : props.onSaveFormula) && (props === null || props === void 0 ? void 0 : props.onSaveFormula(e)) })] }), "formula__dev"));
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
];
|
|
@@ -11,8 +11,9 @@ const TagifyComponent = (props) => {
|
|
|
11
11
|
var _a;
|
|
12
12
|
const tagifyRef = (0, react_1.useRef)(null);
|
|
13
13
|
const saveBtnRef = (0, react_1.useRef)(null);
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
const inputValue = (props === null || props === void 0 ? void 0 : props.formulaValue)
|
|
15
|
+
? props === null || props === void 0 ? void 0 : props.formulaValue.replaceAll("", "")
|
|
16
|
+
: "";
|
|
16
17
|
let tagifyInstance;
|
|
17
18
|
(0, react_1.useEffect)(() => {
|
|
18
19
|
// Initialize tagify with new keyword and options
|
|
@@ -29,7 +30,7 @@ const TagifyComponent = (props) => {
|
|
|
29
30
|
maxItems: 10,
|
|
30
31
|
classname: "tags-look",
|
|
31
32
|
enabled: 1,
|
|
32
|
-
closeOnSelect:
|
|
33
|
+
closeOnSelect: true,
|
|
33
34
|
searchKeys: ["value"],
|
|
34
35
|
highlightFirst: true,
|
|
35
36
|
position: "text",
|
|
@@ -87,15 +88,19 @@ const TagifyComponent = (props) => {
|
|
|
87
88
|
}, true);
|
|
88
89
|
tagifyInstance.on("change input", onInput);
|
|
89
90
|
tagifyInstance.on("change", onChange);
|
|
90
|
-
function onChange() {
|
|
91
|
+
function onChange(e) {
|
|
91
92
|
setTimeout(() => {
|
|
92
93
|
onCalculateSum();
|
|
93
94
|
}, 500);
|
|
95
|
+
e.preventDefault();
|
|
96
|
+
e.stopPropagation();
|
|
94
97
|
}
|
|
95
|
-
function onInput() {
|
|
98
|
+
function onInput(e) {
|
|
96
99
|
setTimeout(() => {
|
|
97
100
|
onCalculateSum();
|
|
98
101
|
}, 500);
|
|
102
|
+
e.preventDefault();
|
|
103
|
+
e.stopPropagation();
|
|
99
104
|
}
|
|
100
105
|
onCalculateSum();
|
|
101
106
|
// Clean up the event listener and custom style on unmount
|
|
@@ -243,7 +248,7 @@ const TagifyComponent = (props) => {
|
|
|
243
248
|
}
|
|
244
249
|
catch (error) {
|
|
245
250
|
// Handle evaluation errors
|
|
246
|
-
console.error("Formula evaluation error:", error);
|
|
251
|
+
// console.error("Formula evaluation error:", error);
|
|
247
252
|
if (saveBtnRef.current) {
|
|
248
253
|
saveBtnRef.current.disabled = true;
|
|
249
254
|
}
|
|
@@ -251,7 +256,7 @@ const TagifyComponent = (props) => {
|
|
|
251
256
|
}
|
|
252
257
|
};
|
|
253
258
|
// Function to get the cursor position and add operator symbol
|
|
254
|
-
const
|
|
259
|
+
const addOperatorAtCursor = (operator) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
255
260
|
var _b;
|
|
256
261
|
if (tagifyRef.current) {
|
|
257
262
|
tagifyRef.current.value = ((_b = tagifyRef === null || tagifyRef === void 0 ? void 0 : tagifyRef.current) === null || _b === void 0 ? void 0 : _b.value) + operators[operator];
|
|
@@ -262,10 +267,16 @@ const TagifyComponent = (props) => {
|
|
|
262
267
|
}, 1000);
|
|
263
268
|
});
|
|
264
269
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "condition_section border-top-1 border-bottom-1 border-gray-200" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "h-2rem px-4 border-bottom-1 flex column-gap-2 align-items-center border-gray-200" }, { children: props.formulaOperators.map((operator, index) => {
|
|
265
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "condition_operator flex align-items-center justify-content-center text-lg w-2 sc_icon_hover cursor-pointer hover:bg-primary-50 border-round-sm", onClick: () =>
|
|
266
|
-
}) })), (0, jsx_runtime_1.jsx)("input", { ref: tagifyRef, type: "text", placeholder: "Enter text or tags...", value: inputValue })] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `condition_footer_section flex align-items-center p-2 gap-2 ${props === null || props === void 0 ? void 0 : props.footerTemplateClassName}` }, { children: (props === null || props === void 0 ? void 0 : props.footerTemplate) ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: props === null || props === void 0 ? void 0 : props.footerTemplate })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "w-6 px-4 py-2 hover:bg-primary-50 cursor-pointer sc_icon_hover border-round-md", onClick: () => {
|
|
270
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "condition_operator flex align-items-center justify-content-center text-lg w-2 sc_icon_hover cursor-pointer hover:bg-primary-50 border-round-sm", onClick: () => addOperatorAtCursor(operator) }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "text-lg font-bold" }, { children: operators[operator] })) }), "formula__operator_" + index), (0, jsx_runtime_1.jsx)("span", { className: "operator_divider" }, "operator_divider_" + index)] }));
|
|
271
|
+
}) })), (0, jsx_runtime_1.jsx)("input", { ref: tagifyRef, type: "text", placeholder: "Enter text or tags...", onChange: () => { }, value: inputValue })] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `condition_footer_section flex align-items-center p-2 gap-2 ${props === null || props === void 0 ? void 0 : props.footerTemplateClassName}` }, { children: (props === null || props === void 0 ? void 0 : props.footerTemplate) ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: props === null || props === void 0 ? void 0 : props.footerTemplate })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "w-6 px-4 py-2 hover:bg-primary-50 cursor-pointer sc_icon_hover border-round-md", onClick: (e) => {
|
|
272
|
+
var _a, _b;
|
|
267
273
|
// setContent(props?.formulaValue);
|
|
268
|
-
|
|
269
|
-
} }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close", size: 20 }) })), (0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ ref: saveBtnRef,
|
|
274
|
+
(_b = (_a = props === null || props === void 0 ? void 0 : props.priceConditioRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.hide(e);
|
|
275
|
+
} }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close", size: 20 }) })), (0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ ref: saveBtnRef, onClick: (e) => {
|
|
276
|
+
var _a, _b;
|
|
277
|
+
saveBtnRef.current.disabled = true;
|
|
278
|
+
(props === null || props === void 0 ? void 0 : props.onChange) && (props === null || props === void 0 ? void 0 : props.onChange(tagifyRef === null || tagifyRef === void 0 ? void 0 : tagifyRef.current));
|
|
279
|
+
(_b = (_a = props === null || props === void 0 ? void 0 : props.priceConditioRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.hide(e);
|
|
280
|
+
}, disabled: (_a = saveBtnRef === null || saveBtnRef === void 0 ? void 0 : saveBtnRef.current) === null || _a === void 0 ? void 0 : _a.disabled, className: "w-6 px-4 py-2 bg-primary-50 cursor-pointer sc_icon_hover border-round-md flex justify-content-center align-items-center" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check", size: 20 }) }))] })) }))] }));
|
|
270
281
|
};
|
|
271
282
|
exports.default = TagifyComponent;
|
|
@@ -136,10 +136,7 @@ const ListBoxDropdown = (props) => {
|
|
|
136
136
|
? emptyFilterMessage
|
|
137
137
|
: "No Results Found", emptyMessage: emptyMessage ? emptyMessage : "No Data Found" }), footeTemplate && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: footeTemplate() })] }))),
|
|
138
138
|
},
|
|
139
|
-
] }), !showChips ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !dataLabel ? ((0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", className: `list_box_btn ${type === "sectionHeader" ? "section_btn" : ""}`, link: link ? true : false, icon: labelIcon ? labelIcon : "", size: labelIconSize ? labelIconSize : "", iconPos: labelIconPos ? labelIconPos : "", label: label, onClick: (event) => optionsMenuRef.current.toggle(event), title: label })) : ((0, jsx_runtime_1.jsx)("
|
|
140
|
-
// className={`list_box_button focus:shadow-none p-0 h-max h-auto mx-2`}
|
|
141
|
-
// link={link ? true : false}
|
|
142
|
-
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, ref: buttonRef, className: `list_box_btn ${type === "sectionHeader" ? "section_btn" : ""}`, title: label }), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: `list_box_chips ${chipsParentClassName}` }, { children: selectedItems &&
|
|
139
|
+
] }), !showChips ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !dataLabel ? ((0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", className: `list_box_btn ${type === "sectionHeader" ? "section_btn" : ""}`, link: link ? true : false, icon: labelIcon ? labelIcon : "", size: labelIconSize ? labelIconSize : "", iconPos: labelIconPos ? labelIconPos : "", label: label, onClick: (event) => optionsMenuRef.current.toggle(event), title: label })) : ((0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", 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, ref: buttonRef, className: "data_label", title: dataLabel })) })) : ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-wrap gap-2" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { className: `list_box_btn ${type === "sectionHeader" ? "section_btn" : ""}`, 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, ref: buttonRef, title: label }), (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: `list_box_chips ${chipsParentClassName}` }, { children: selectedItems &&
|
|
143
140
|
(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.map((item, index) => {
|
|
144
141
|
var _a, _b, _c, _d;
|
|
145
142
|
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: `select-none ${chipClassName ? chipClassName : "list_box_chip"} ${showRemoveIcon ? "relative text-gray-700" : ""}` }, { children: chipTemplate ? (chipTemplate(item)) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-truncate max-w-10rem inline-block", title: typeof item === "object"
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
require("@ag-grid-community/styles/ag-grid.css");
|
|
7
|
+
require("@ag-grid-community/styles/ag-theme-quartz.css");
|
|
8
|
+
const parent_for_grid_1 = tslib_1.__importDefault(require("../../components/ag-grid/parent-for-grid"));
|
|
9
|
+
const constants_1 = require("../../components/ag-grid/constants");
|
|
10
|
+
const type_1 = require("../../components/types/type");
|
|
11
|
+
const dummyData_1 = require("./dummyData");
|
|
12
|
+
const DragAndDropFeatureTesting = () => {
|
|
13
|
+
const containerStyle = (0, react_1.useMemo)(() => ({ width: "100%", height: "500px" }), []);
|
|
14
|
+
const gridStyle = (0, react_1.useMemo)(() => ({ height: "500px", width: "100%" }), []);
|
|
15
|
+
const [columnDefs] = (0, react_1.useState)([
|
|
16
|
+
{ field: "employeeId", rowDrag: true, suppressFillHandle: true },
|
|
17
|
+
{ field: "employeeName", },
|
|
18
|
+
{ field: "jobTitle" },
|
|
19
|
+
{ field: "employmentType" },
|
|
20
|
+
]);
|
|
21
|
+
const defaultColDef = (0, react_1.useMemo)(() => {
|
|
22
|
+
return {
|
|
23
|
+
width: 240,
|
|
24
|
+
flex: 1,
|
|
25
|
+
sortable: false,
|
|
26
|
+
};
|
|
27
|
+
}, []);
|
|
28
|
+
const getRowData = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
29
|
+
debugger;
|
|
30
|
+
var allRows = yield (0, dummyData_1.getNormalData)();
|
|
31
|
+
const result = { rowData: allRows };
|
|
32
|
+
return result;
|
|
33
|
+
});
|
|
34
|
+
const initialConditions = {
|
|
35
|
+
displayAdvancedFilter: false,
|
|
36
|
+
displaySort: true,
|
|
37
|
+
displayFeaturesHeader: true,
|
|
38
|
+
displaySearch: type_1.VisibilityState.ENABLE,
|
|
39
|
+
displayFilter: type_1.VisibilityState.ENABLE
|
|
40
|
+
};
|
|
41
|
+
const gridApi = (0, react_1.useRef)(null);
|
|
42
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ style: containerStyle }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ style: gridStyle, className: "ag-theme-quartz" }, { children: (0, jsx_runtime_1.jsx)(parent_for_grid_1.default, { getGridRef: gridApi, columnData: columnDefs, style: { height: "500px" },
|
|
43
|
+
// rowData={dummyData}
|
|
44
|
+
getRowData: getRowData, conditionsToDisplay: initialConditions, rowModelType: constants_1.ROWMODELTYPE.CLIENT_SIDE, shouldRefetch: false, filterConditions: [
|
|
45
|
+
{ id: 1, label: "AND" },
|
|
46
|
+
{ id: 2, label: "OR" },
|
|
47
|
+
], columnDefs: columnDefs, defaultColDef: defaultColDef, rowDragManaged: true }) })) })));
|
|
48
|
+
};
|
|
49
|
+
exports.default = DragAndDropFeatureTesting;
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
require("@ag-grid-community/styles/ag-grid.css");
|
|
7
|
+
require("@ag-grid-community/styles/ag-theme-quartz.css");
|
|
8
|
+
const core_1 = require("@ag-grid-community/core");
|
|
9
|
+
const column_tool_panel_1 = require("@ag-grid-enterprise/column-tool-panel");
|
|
10
|
+
const menu_1 = require("@ag-grid-enterprise/menu");
|
|
11
|
+
const row_grouping_1 = require("@ag-grid-enterprise/row-grouping");
|
|
12
|
+
const server_side_row_model_1 = require("@ag-grid-enterprise/server-side-row-model");
|
|
13
|
+
const dummyData_1 = require("./dummyData");
|
|
14
|
+
const parent_for_grid_1 = tslib_1.__importDefault(require("../../components/ag-grid/parent-for-grid"));
|
|
15
|
+
const constants_1 = require("../../components/ag-grid/constants");
|
|
16
|
+
const type_1 = require("../../components/types/type");
|
|
17
|
+
core_1.ModuleRegistry.registerModules([
|
|
18
|
+
column_tool_panel_1.ColumnsToolPanelModule,
|
|
19
|
+
menu_1.MenuModule,
|
|
20
|
+
row_grouping_1.RowGroupingModule,
|
|
21
|
+
server_side_row_model_1.ServerSideRowModelModule,
|
|
22
|
+
]);
|
|
23
|
+
const GridRowGroupingSSRM = () => {
|
|
24
|
+
const containerStyle = (0, react_1.useMemo)(() => ({ width: "100%", height: "500px" }), []);
|
|
25
|
+
const gridStyle = (0, react_1.useMemo)(() => ({ height: "500px", width: "100%" }), []);
|
|
26
|
+
const [text, setText] = (0, react_1.useState)("");
|
|
27
|
+
const [columnDefs] = (0, react_1.useState)([
|
|
28
|
+
{ field: "employeeId", },
|
|
29
|
+
{ field: "employeeName", },
|
|
30
|
+
{ field: "jobTitle" },
|
|
31
|
+
{ field: "employmentType" },
|
|
32
|
+
]);
|
|
33
|
+
const defaultColDef = (0, react_1.useMemo)(() => {
|
|
34
|
+
return {
|
|
35
|
+
width: 240,
|
|
36
|
+
flex: 1,
|
|
37
|
+
sortable: false,
|
|
38
|
+
};
|
|
39
|
+
}, []);
|
|
40
|
+
const autoGroupColumnDef = (0, react_1.useMemo)(() => {
|
|
41
|
+
return {
|
|
42
|
+
field: "employeeName",
|
|
43
|
+
headerName: `Search Results`,
|
|
44
|
+
headerCheckboxSelection: true,
|
|
45
|
+
cellRendererParams: {
|
|
46
|
+
innerRenderer: () => {
|
|
47
|
+
// Add custom styling or content to the group label
|
|
48
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: "kjasdnfkjasdf" }));
|
|
49
|
+
},
|
|
50
|
+
checkbox: true,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
54
|
+
const isServerSideGroupOpenByDefault = (0, react_1.useCallback)((params) => {
|
|
55
|
+
// open first two levels by default
|
|
56
|
+
if (text === "") {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
return params.rowNode.level < 2;
|
|
60
|
+
}, [text]);
|
|
61
|
+
const isServerSideGroup = (0, react_1.useCallback)((dataItem) => {
|
|
62
|
+
// indicate if node is a group
|
|
63
|
+
return dataItem.group;
|
|
64
|
+
}, []);
|
|
65
|
+
const getServerSideGroupKey = (0, react_1.useCallback)((dataItem) => {
|
|
66
|
+
// specify which group key to use
|
|
67
|
+
return dataItem.id;
|
|
68
|
+
}, []);
|
|
69
|
+
const getRowData = (a, b, c, d) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
70
|
+
console.log(a, b);
|
|
71
|
+
console.log(c, d, "params");
|
|
72
|
+
setText(c.searchedText);
|
|
73
|
+
var allRows = yield (0, dummyData_1.getAllData)(c.searchedText);
|
|
74
|
+
const result = { rowData: allRows };
|
|
75
|
+
return result;
|
|
76
|
+
// setTimeout(() => {
|
|
77
|
+
// params.success(result);
|
|
78
|
+
// }, 200);
|
|
79
|
+
});
|
|
80
|
+
// const onGridReady = useCallback((params: GridReadyEvent) => {
|
|
81
|
+
// params.api!.setGridOption("serverSideDatasource", { getRows: getData });
|
|
82
|
+
// }, []);
|
|
83
|
+
const initialConditions = {
|
|
84
|
+
displayAdvancedFilter: false,
|
|
85
|
+
displaySort: true,
|
|
86
|
+
displayFeaturesHeader: true,
|
|
87
|
+
displaySearch: type_1.VisibilityState.ENABLE,
|
|
88
|
+
displayFilter: type_1.VisibilityState.ENABLE
|
|
89
|
+
};
|
|
90
|
+
const rowSelection = (0, react_1.useMemo)(() => {
|
|
91
|
+
return {
|
|
92
|
+
mode: "multiRow",
|
|
93
|
+
};
|
|
94
|
+
}, []);
|
|
95
|
+
const gridApi = (0, react_1.useRef)(null);
|
|
96
|
+
const onSelectionChanged = (0, react_1.useCallback)(() => {
|
|
97
|
+
const selectedRows = gridApi.current.api.getServerSideSelectionState(); // Get selected rows
|
|
98
|
+
// const allRowsSelected = gridApi.current.api.getSelectedRows().length === gridApi.current.api.getDisplayedRowCount();
|
|
99
|
+
console.log("Selected rows: ", selectedRows);
|
|
100
|
+
console.log("Selected----- ");
|
|
101
|
+
// If all rows are selected, you can perform your custom logic
|
|
102
|
+
}, [gridApi]);
|
|
103
|
+
// const onFilterTextBoxChanged = useCallback(() => {
|
|
104
|
+
// const cahed = gridApi.current.api.getCacheBlockState(); // See loaded blocks
|
|
105
|
+
// gridApi.current.api.forEachNode((node) => console.log(node.data, cahed, "cache")); // Access cached rows
|
|
106
|
+
// // gridApi.current!.api.setGridOption(
|
|
107
|
+
// // "quickFilterText",
|
|
108
|
+
// // (document.getElementById("filter-text-box") as HTMLInputElement).value,
|
|
109
|
+
// // );
|
|
110
|
+
// }, []);
|
|
111
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ style: containerStyle }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ style: gridStyle, className: "ag-theme-quartz" }, { children: (0, jsx_runtime_1.jsx)(parent_for_grid_1.default, { getGridRef: gridApi, columnData: columnDefs, style: { height: "500px" }, getRowData: getRowData, conditionsToDisplay: initialConditions, rowModelType: constants_1.ROWMODELTYPE.SERVER_SIDE, shouldRefetch: false, filterConditions: [
|
|
112
|
+
{ id: 1, label: "AND" },
|
|
113
|
+
{ id: 2, label: "OR" },
|
|
114
|
+
],
|
|
115
|
+
// GroupHeaderComponent={GroupHeaderComponent}
|
|
116
|
+
enableCheckboxForGroupHeader: true,
|
|
117
|
+
// AdvancedFilter={AdvancedFilter}
|
|
118
|
+
serverSideInitialRowCount: 3, treeData: true, gridProps: {
|
|
119
|
+
isServerSideGroupOpenByDefault,
|
|
120
|
+
isServerSideGroup,
|
|
121
|
+
getServerSideGroupKey,
|
|
122
|
+
rowSelection: "multiple"
|
|
123
|
+
}, columnDefs: columnDefs, defaultColDef: defaultColDef, autoGroupColumnDef: autoGroupColumnDef, rowSelection: rowSelection, onSelectionChanged: onSelectionChanged }) })) })));
|
|
124
|
+
};
|
|
125
|
+
exports.default = GridRowGroupingSSRM;
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// const allDummyData = [
|
|
3
|
+
// {
|
|
4
|
+
// "employeeId": 101,
|
|
5
|
+
// "employeeName": "Erica Rogers",
|
|
6
|
+
// "jobTitle": "CEO",
|
|
7
|
+
// "employmentType": "Permanent",
|
|
8
|
+
// "children": [
|
|
9
|
+
// {
|
|
10
|
+
// "employeeId": 102,
|
|
11
|
+
// "employeeName": "Malcolm Barrett",
|
|
12
|
+
// "jobTitle": "Exec. Vice President",
|
|
13
|
+
// "employmentType": "Permanent",
|
|
14
|
+
// "children": [
|
|
15
|
+
// {
|
|
16
|
+
// "employeeId": 103,
|
|
17
|
+
// "employeeName": "Esther Baker",
|
|
18
|
+
// "jobTitle": "Director of Operations",
|
|
19
|
+
// "employmentType": "Permanent",
|
|
20
|
+
// "children": [
|
|
21
|
+
// {
|
|
22
|
+
// "employeeId": 104,
|
|
23
|
+
// "employeeName": "Brittany Hanson",
|
|
24
|
+
// "jobTitle": "Fleet Coordinator",
|
|
25
|
+
// "employmentType": "Permanent",
|
|
26
|
+
// "children": [
|
|
27
|
+
// {
|
|
28
|
+
// "employeeId": 105,
|
|
29
|
+
// "employeeName": "Leah Flowers",
|
|
30
|
+
// "jobTitle": "Parts Technician",
|
|
31
|
+
// "employmentType": "Contract"
|
|
32
|
+
// },
|
|
33
|
+
// {
|
|
34
|
+
// "employeeId": 106,
|
|
35
|
+
// "employeeName": "Tammy Sutton",
|
|
36
|
+
// "jobTitle": "Service Technician",
|
|
37
|
+
// "employmentType": "Contract"
|
|
38
|
+
// }
|
|
39
|
+
// ]
|
|
40
|
+
// },
|
|
41
|
+
// {
|
|
42
|
+
// "employeeId": 107,
|
|
43
|
+
// "employeeName": "Derek Paul",
|
|
44
|
+
// "jobTitle": "Inventory Control",
|
|
45
|
+
// "employmentType": "Permanent"
|
|
46
|
+
// }
|
|
47
|
+
// ]
|
|
48
|
+
// },
|
|
49
|
+
// {
|
|
50
|
+
// "employeeId": 108,
|
|
51
|
+
// "employeeName": "Francis Strickland",
|
|
52
|
+
// "jobTitle": "VP Sales",
|
|
53
|
+
// "employmentType": "Permanent",
|
|
54
|
+
// "children": [
|
|
55
|
+
// {
|
|
56
|
+
// "employeeId": 109,
|
|
57
|
+
// "employeeName": "Morris Hanson",
|
|
58
|
+
// "jobTitle": "Sales Manager",
|
|
59
|
+
// "employmentType": "Permanent"
|
|
60
|
+
// },
|
|
61
|
+
// {
|
|
62
|
+
// "employeeId": 110,
|
|
63
|
+
// "employeeName": "Todd Tyler",
|
|
64
|
+
// "jobTitle": "Sales Executive",
|
|
65
|
+
// "employmentType": "Contract"
|
|
66
|
+
// },
|
|
67
|
+
// {
|
|
68
|
+
// "employeeId": 111,
|
|
69
|
+
// "employeeName": "Bennie Wise",
|
|
70
|
+
// "jobTitle": "Sales Executive",
|
|
71
|
+
// "employmentType": "Contract"
|
|
72
|
+
// },
|
|
73
|
+
// {
|
|
74
|
+
// "employeeId": 112,
|
|
75
|
+
// "employeeName": "Joel Cooper",
|
|
76
|
+
// "jobTitle": "Sales Executive",
|
|
77
|
+
// "employmentType": "Permanent"
|
|
78
|
+
// }
|
|
79
|
+
// ]
|
|
80
|
+
// }
|
|
81
|
+
// ]
|
|
82
|
+
// },
|
|
83
|
+
// {
|
|
84
|
+
// "employeeId": 113,
|
|
85
|
+
// "employeeName": "Luke McBride",
|
|
86
|
+
// "jobTitle": "Exec. Vice President",
|
|
87
|
+
// "employmentType": "Permanent",
|
|
88
|
+
// "children": [
|
|
89
|
+
// {
|
|
90
|
+
// "employeeId": 114,
|
|
91
|
+
// "employeeName": "Sarah Baker",
|
|
92
|
+
// "jobTitle": "Director of Operations",
|
|
93
|
+
// "employmentType": "Permanent",
|
|
94
|
+
// "children": [
|
|
95
|
+
// {
|
|
96
|
+
// "employeeId": 115,
|
|
97
|
+
// "employeeName": "Mason Hanson",
|
|
98
|
+
// "jobTitle": "Fleet Coordinator",
|
|
99
|
+
// "employmentType": "Permanent",
|
|
100
|
+
// "children": [
|
|
101
|
+
// {
|
|
102
|
+
// "employeeId": 116,
|
|
103
|
+
// "employeeName": "Hannah Flowers",
|
|
104
|
+
// "jobTitle": "Parts Technician",
|
|
105
|
+
// "employmentType": "Contract"
|
|
106
|
+
// },
|
|
107
|
+
// {
|
|
108
|
+
// "employeeId": 117,
|
|
109
|
+
// "employeeName": "Rob Sutton",
|
|
110
|
+
// "jobTitle": "Service Technician",
|
|
111
|
+
// "employmentType": "Contract"
|
|
112
|
+
// }
|
|
113
|
+
// ]
|
|
114
|
+
// },
|
|
115
|
+
// {
|
|
116
|
+
// "employeeId": 118,
|
|
117
|
+
// "employeeName": "Paul Smith",
|
|
118
|
+
// "jobTitle": "Inventory Control",
|
|
119
|
+
// "employmentType": "Permanent"
|
|
120
|
+
// }
|
|
121
|
+
// ]
|
|
122
|
+
// },
|
|
123
|
+
// {
|
|
124
|
+
// "employeeId": 119,
|
|
125
|
+
// "employeeName": "Adam Newman",
|
|
126
|
+
// "jobTitle": "VP Sales",
|
|
127
|
+
// "employmentType": "Permanent",
|
|
128
|
+
// "children": [
|
|
129
|
+
// {
|
|
130
|
+
// "employeeId": 120,
|
|
131
|
+
// "employeeName": "John Smith",
|
|
132
|
+
// "jobTitle": "Sales Manager",
|
|
133
|
+
// "employmentType": "Permanent"
|
|
134
|
+
// },
|
|
135
|
+
// {
|
|
136
|
+
// "employeeId": 121,
|
|
137
|
+
// "employeeName": "Alice Grant",
|
|
138
|
+
// "jobTitle": "Sales Executive",
|
|
139
|
+
// "employmentType": "Contract"
|
|
140
|
+
// },
|
|
141
|
+
// {
|
|
142
|
+
// "employeeId": 122,
|
|
143
|
+
// "employeeName": "Ben Hill",
|
|
144
|
+
// "jobTitle": "Sales Executive",
|
|
145
|
+
// "employmentType": "Contract"
|
|
146
|
+
// },
|
|
147
|
+
// {
|
|
148
|
+
// "employeeId": 123,
|
|
149
|
+
// "employeeName": "Joe Cooper",
|
|
150
|
+
// "jobTitle": "Sales Executive",
|
|
151
|
+
// "employmentType": "Permanent"
|
|
152
|
+
// }
|
|
153
|
+
// ]
|
|
154
|
+
// }
|
|
155
|
+
// ]
|
|
156
|
+
// }
|
|
157
|
+
// ]
|
|
158
|
+
// }
|
|
159
|
+
// ]
|
|
160
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
161
|
+
exports.dummyData = exports.getNormalData = exports.getAllData = void 0;
|
|
162
|
+
const tslib_1 = require("tslib");
|
|
163
|
+
// const allDummyDataMoreChildren = [
|
|
164
|
+
// {
|
|
165
|
+
// employeeId: generateUniqueId(),
|
|
166
|
+
// employeeName: "Parent 1",
|
|
167
|
+
// jobTitle: "CEO",
|
|
168
|
+
// employmentType: "Permanent",
|
|
169
|
+
// group: true,
|
|
170
|
+
// },
|
|
171
|
+
// // Repeat the structure for Parent 3 through Parent 10
|
|
172
|
+
// ];
|
|
173
|
+
function generateUniqueId() {
|
|
174
|
+
const timestamp = Date.now().toString().slice(-4); // Last 4 digits of timestamp
|
|
175
|
+
const randomPart = Math.floor(100000 + Math.random() * 900000).toString(); // 6 random digits
|
|
176
|
+
return timestamp + randomPart; // 10-digit unique ID
|
|
177
|
+
}
|
|
178
|
+
let k = 1;
|
|
179
|
+
function delayWithValue(ms, value) {
|
|
180
|
+
return new Promise((resolve) => {
|
|
181
|
+
setTimeout(() => {
|
|
182
|
+
resolve(value); // Return the value after the delay
|
|
183
|
+
}, ms);
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
const getAllData = (text) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
187
|
+
console.log(k, "called", text);
|
|
188
|
+
k = k + 1;
|
|
189
|
+
const data = yield delayWithValue(500, [
|
|
190
|
+
{
|
|
191
|
+
id: generateUniqueId(),
|
|
192
|
+
employeeName: "Parent 1",
|
|
193
|
+
jobTitle: "CEO" + generateUniqueId(),
|
|
194
|
+
employmentType: "Permanent",
|
|
195
|
+
group: true,
|
|
196
|
+
},
|
|
197
|
+
// Repeat the structure for Parent 3 through Parent 10
|
|
198
|
+
]);
|
|
199
|
+
return data;
|
|
200
|
+
});
|
|
201
|
+
exports.getAllData = getAllData;
|
|
202
|
+
const getNormalData = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
203
|
+
const data = yield delayWithValue(500, [{
|
|
204
|
+
id: 1,
|
|
205
|
+
employeeName: "Parent 1",
|
|
206
|
+
jobTitle: "CEO",
|
|
207
|
+
employmentType: "Permanent",
|
|
208
|
+
group: true,
|
|
209
|
+
}]);
|
|
210
|
+
return data;
|
|
211
|
+
});
|
|
212
|
+
exports.getNormalData = getNormalData;
|
|
213
|
+
exports.dummyData = [{
|
|
214
|
+
id: 1,
|
|
215
|
+
employeeName: "Parent 1",
|
|
216
|
+
jobTitle: "CEO",
|
|
217
|
+
employmentType: "Permanent",
|
|
218
|
+
group: true,
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
id: 3,
|
|
222
|
+
employeeName: "Parent 3",
|
|
223
|
+
jobTitle: "CEO",
|
|
224
|
+
employmentType: "Permanent",
|
|
225
|
+
group: true,
|
|
226
|
+
}];
|
|
@@ -0,0 +1,9 @@
|
|
|
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 VirtualScrollDropDown_1 = tslib_1.__importDefault(require("../../components/virtual-scroll-drop-down/VirtualScrollDropDown"));
|
|
6
|
+
const VirtualScrollDropDownzPage = () => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(VirtualScrollDropDown_1.default, {}));
|
|
8
|
+
};
|
|
9
|
+
exports.default = VirtualScrollDropDownzPage;
|