sccoreui 6.1.58 → 6.1.60

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 CHANGED
@@ -47,8 +47,6 @@
47
47
  --box-shadow-none: none;
48
48
  }
49
49
 
50
-
51
-
52
50
  // height and width utility classes
53
51
 
54
52
  .h-40 {
@@ -59,7 +57,6 @@
59
57
  height: 44px !important;
60
58
  }
61
59
 
62
-
63
60
  // @font-face {
64
61
  // font-family: "Lato";
65
62
  // }
@@ -471,7 +468,12 @@ div:has(ul.date_filter) .p-datepicker-group-container {
471
468
  border-left: 1px solid #dee2e6;
472
469
  }
473
470
 
474
- div:has(ul.date_filter) .p-datepicker-group-container .p-datepicker table td>span {
471
+ div:has(ul.date_filter)
472
+ .p-datepicker-group-container
473
+ .p-datepicker
474
+ table
475
+ td
476
+ > span {
475
477
  width: 40px;
476
478
  height: 40px;
477
479
  }
@@ -661,7 +663,13 @@ button#formatOLOptions-1.fr-active::before {
661
663
  padding: 12px !important;
662
664
  }
663
665
 
664
- .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active {
666
+ .fr-command.fr-btn
667
+ + .fr-dropdown-menu
668
+ .fr-dropdown-wrapper
669
+ .fr-dropdown-content
670
+ ul.fr-dropdown-list
671
+ li
672
+ a.fr-active {
665
673
  background: #f9fafb !important;
666
674
  }
667
675
 
@@ -786,7 +794,6 @@ button[aria-expanded="true"] {
786
794
  border-top: 1px solid var(--gray-200);
787
795
  }
788
796
 
789
-
790
797
  ul.p-listbox-list {
791
798
  padding: 6px;
792
799
 
@@ -882,7 +889,6 @@ button[aria-expanded="true"] {
882
889
  }
883
890
  }
884
891
 
885
-
886
892
  .hide-focus {
887
893
  &:not(.p-disabled) {
888
894
  &.p-focus {
@@ -895,13 +901,10 @@ button[aria-expanded="true"] {
895
901
  &:focus {
896
902
  box-shadow: var(--box-shadow-none);
897
903
  border: 1px solid var(--gray-300);
898
-
899
904
  }
900
905
  }
901
906
  }
902
907
 
903
-
904
-
905
908
  .sc_multiSelect_panel {
906
909
  .p-multiselect-items {
907
910
  padding: 4px !important;
@@ -965,10 +968,8 @@ button[aria-expanded="true"] {
965
968
  display: flex;
966
969
  align-items: center;
967
970
  justify-content: center;
968
-
969
971
  }
970
972
 
971
-
972
973
  .formulaSpanElm {
973
974
  font-size: 16px;
974
975
  margin: 2px 0;
@@ -1469,7 +1470,12 @@ div:has(ul.date_filter) .p-datepicker-group-container {
1469
1470
  border-left: 1px solid #dee2e6;
1470
1471
  }
1471
1472
 
1472
- div:has(ul.date_filter) .p-datepicker-group-container .p-datepicker table td>span {
1473
+ div:has(ul.date_filter)
1474
+ .p-datepicker-group-container
1475
+ .p-datepicker
1476
+ table
1477
+ td
1478
+ > span {
1473
1479
  width: 40px;
1474
1480
  height: 40px;
1475
1481
  }
@@ -1657,7 +1663,13 @@ button#formatOLOptions-1.fr-active::before {
1657
1663
  padding: 12px !important;
1658
1664
  }
1659
1665
 
1660
- .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active {
1666
+ .fr-command.fr-btn
1667
+ + .fr-dropdown-menu
1668
+ .fr-dropdown-wrapper
1669
+ .fr-dropdown-content
1670
+ ul.fr-dropdown-list
1671
+ li
1672
+ a.fr-active {
1661
1673
  background: #f9fafb !important;
1662
1674
  }
1663
1675
 
@@ -1824,7 +1836,6 @@ button[aria-expanded="true"] {
1824
1836
  }
1825
1837
  }
1826
1838
 
1827
-
1828
1839
  .list_box_chips {
1829
1840
  display: inline-block;
1830
1841
  align-items: center;
@@ -1971,8 +1982,6 @@ button[aria-expanded="true"] {
1971
1982
  border-color: initial;
1972
1983
  }
1973
1984
 
1974
-
1975
-
1976
1985
  .ag-ltr .ag-cell {
1977
1986
  display: flex;
1978
1987
  align-items: center;
@@ -2080,12 +2089,12 @@ button[aria-expanded="true"] {
2080
2089
  }
2081
2090
  }
2082
2091
 
2083
- .operator-type{
2084
- height: 44px !important;
2085
- display: flex;
2086
- justify-content: center;
2087
- align-items: center;
2088
- }
2092
+ .operator-type {
2093
+ height: 44px !important;
2094
+ display: flex;
2095
+ justify-content: center;
2096
+ align-items: center;
2097
+ }
2089
2098
 
2090
2099
  .condition-type {
2091
2100
  // width: 120px;
@@ -2115,7 +2124,7 @@ button[aria-expanded="true"] {
2115
2124
  border-top-left-radius: 0 !important;
2116
2125
  border-bottom-left-radius: 0 !important;
2117
2126
  }
2118
- .p-inputwrapper-filled{
2127
+ .p-inputwrapper-filled {
2119
2128
  background: #ffffff !important;
2120
2129
  }
2121
2130
  }
@@ -2149,15 +2158,12 @@ button[aria-expanded="true"] {
2149
2158
  }
2150
2159
  }
2151
2160
 
2152
-
2153
-
2154
-
2155
2161
  .filter-btn-grid {
2156
2162
  padding: 10px;
2157
2163
  }
2158
2164
 
2159
2165
  .table-filter-overlay {
2160
- width: 51rem !important;
2166
+ width: 51rem !important;
2161
2167
  &:after,
2162
2168
  &:before {
2163
2169
  margin-left: -12px !important;
@@ -2167,11 +2173,9 @@ width: 51rem !important;
2167
2173
 
2168
2174
  .p-overlaypanel-content {
2169
2175
  padding: 0;
2170
-
2171
2176
  }
2172
2177
  }
2173
2178
 
2174
-
2175
2179
  .icon-24x24 {
2176
2180
  width: 24px;
2177
2181
  height: 24px;
@@ -2182,7 +2186,6 @@ width: 51rem !important;
2182
2186
  height: 32px;
2183
2187
  }
2184
2188
 
2185
-
2186
2189
  // loader styles
2187
2190
  .loader-wrapper {
2188
2191
  width: 60px;
@@ -2199,17 +2202,19 @@ width: 51rem !important;
2199
2202
  justify-content: center;
2200
2203
  align-items: center;
2201
2204
 
2202
-
2203
2205
  /* HTML: <div class="loader"></div> */
2204
2206
  .loader-jobs {
2205
2207
  width: 35px;
2206
2208
  aspect-ratio: 1;
2207
2209
  border-radius: 50%;
2208
- background: radial-gradient(farthest-side, var(--primary-500) 94%, #0000) top/5px 5px no-repeat,
2210
+ background: radial-gradient(farthest-side, var(--primary-500) 94%, #0000)
2211
+ top/5px 5px no-repeat,
2209
2212
  conic-gradient(#0000 5%, var(--primary-500));
2210
- -webkit-mask: radial-gradient(farthest-side,
2211
- #0000 calc(100% - 5px),
2212
- #000 0);
2213
+ -webkit-mask: radial-gradient(
2214
+ farthest-side,
2215
+ #0000 calc(100% - 5px),
2216
+ #000 0
2217
+ );
2213
2218
  animation: l13 1s infinite linear;
2214
2219
  }
2215
2220
 
@@ -2232,7 +2237,6 @@ width: 51rem !important;
2232
2237
  background-position: 70% 100%;
2233
2238
  }
2234
2239
  }
2235
-
2236
2240
  }
2237
2241
 
2238
2242
  .loader-main {
@@ -2253,37 +2257,118 @@ width: 51rem !important;
2253
2257
  animation: prixClipFix 2s linear infinite;
2254
2258
  }
2255
2259
 
2260
+ .custom_grid_checkbox {
2261
+ &.custom_grid_indeterminate {
2262
+ .p-checkbox-box {
2263
+ width: 20px;
2264
+ height: 20px;
2265
+ border-radius: 50%;
2266
+ cursor: pointer;
2267
+ position: absolute;
2268
+ top: 0;
2269
+ left: 0;
2270
+ background: url("./assets/png/checkbox_minus_icon.png");
2271
+ transition: background 0.3s;
2272
+ border: 0;
2273
+
2274
+ &.p-highlight {
2275
+ background: url("./assets/png/checkbox_minus_icon.png");
2276
+
2277
+ &:hover {
2278
+ background: url("./assets/png/checkbox_minus_icon.png") transparent !important;
2279
+ }
2280
+
2281
+ svg {
2282
+ width: 0 !important;
2283
+ height: 0 !important;
2284
+ }
2285
+ }
2286
+ }
2287
+ }
2288
+ position: relative;
2289
+ margin-right: 5px;
2290
+
2291
+ .p-checkbox-box {
2292
+ width: 20px;
2293
+ height: 20px;
2294
+ border-radius: 50%;
2295
+ cursor: pointer;
2296
+ position: absolute;
2297
+ top: 0;
2298
+ left: 0;
2299
+ background: url("./assets/png/checkbox_outline_icon.png");
2300
+ transition: background 0.3s;
2301
+ border: 0;
2302
+
2303
+ &:hover {
2304
+ background: url("./assets/png/checkbox_outline_icon.png") transparent !important;
2305
+ border: 0 !important;
2306
+ }
2307
+
2308
+ &.p-highlight {
2309
+ background: url("./assets/png/checkbox_fill_icon.png");
2310
+
2311
+ &:hover {
2312
+ background: url("./assets/png/checkbox_fill_icon.png") transparent !important;
2313
+ }
2314
+
2315
+ svg {
2316
+ width: 0 !important;
2317
+ height: 0 !important;
2318
+ }
2319
+ }
2320
+ }
2321
+ }
2322
+
2323
+ // .ag-grid-container {
2324
+ // .ag-cell-wrapper {
2325
+ // width: 100% !important;
2326
+ // .ag-group-value {
2327
+ // width: 100% !important;
2328
+ // }
2329
+ // }
2330
+ // }
2331
+
2332
+ .ag-grid-container:has(.custom_class_name) {
2333
+ .ag-cell-wrapper {
2334
+ width: 100% !important;
2335
+ .ag-group-value {
2336
+ width: 100% !important;
2337
+ }
2338
+ }
2339
+ }
2340
+
2256
2341
  @keyframes rotate {
2257
2342
  100% {
2258
- transform: rotate(360deg)
2343
+ transform: rotate(360deg);
2259
2344
  }
2260
2345
  }
2261
2346
 
2262
2347
  @keyframes prixClipFix {
2263
2348
  0% {
2264
- clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
2349
+ clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
2265
2350
  }
2266
2351
 
2267
2352
  25% {
2268
- clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
2353
+ clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
2269
2354
  }
2270
2355
 
2271
2356
  50% {
2272
- clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
2357
+ clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
2273
2358
  }
2274
2359
 
2275
2360
  75% {
2276
- clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%)
2361
+ clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
2277
2362
  }
2278
2363
 
2279
2364
  100% {
2280
- clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0)
2365
+ clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
2281
2366
  }
2282
2367
  }
2283
2368
 
2284
2369
  .edited-record {
2285
- background-color:var(--primary-50);
2370
+ background-color: var(--primary-50);
2286
2371
  }
2287
2372
  .non-editable {
2288
2373
  background-color: var(--gray-100);
2289
- }
2374
+ }
@@ -14,7 +14,7 @@ function HideColumn() {
14
14
  const { columnToRender, gridData, gridApi, updateColumnsForGrid, enableManageColumnsCallback, sidePanelText } = (0, react_1.useContext)(context_provider_1.FeatureContext);
15
15
  const [visibleRight, setVisibleRight] = (0, react_1.useState)(false);
16
16
  const [enableManageColumnsCallbackAPI, setEnableManageColumnsCallbackAPI] = (0, react_1.useState)(false);
17
- const [inpValue, setInpValue] = (0, react_1.useState)("");
17
+ const [inpValue, setInputValue] = (0, react_1.useState)("");
18
18
  const [storeNodes, setStoreNodes] = (0, react_1.useState)();
19
19
  const [nodes, setNodes] = (0, react_1.useState)();
20
20
  const [hidePanelNodes, setHidePanelNodes] = (0, react_1.useState)([]);
@@ -53,7 +53,7 @@ function HideColumn() {
53
53
  };
54
54
  // Display search columns
55
55
  const searchHandler = (text) => {
56
- setInpValue(text);
56
+ setInputValue(text);
57
57
  const searchedColumns = [];
58
58
  storeNodes.filter((column) => {
59
59
  var _a;
@@ -67,7 +67,7 @@ function HideColumn() {
67
67
  };
68
68
  const clearSearch = () => {
69
69
  setNodes(storeNodes);
70
- setInpValue("");
70
+ setInputValue("");
71
71
  };
72
72
  // When radio button is switched
73
73
  const handleSwitchChange = (selectedColumn, value) => {
@@ -160,7 +160,11 @@ function HideColumn() {
160
160
  setStoreNodes(fixNodes);
161
161
  }
162
162
  }, [visibleRight]);
163
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { onClick: () => setVisibleRight(true), text: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "columns-02", size: 20 }) }), (0, jsx_runtime_1.jsxs)(sidebar_1.Sidebar, Object.assign({ className: "md:w-6 lg:w-4 overflow-hidden p-4 h-full", visible: visibleRight, position: "right", onHide: () => setVisibleRight(false) }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "sticky top-0 z-5 bg-white" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex justify-content-between align-items-center py-2" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "text-gray-900 text-lg font-semibold line-height-3" }, { children: (sidePanelText === null || sidePanelText === void 0 ? void 0 : sidePanelText.header) || "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: (sidePanelText === null || sidePanelText === void 0 ? void 0 : sidePanelText.disacrd_button) || "Discard", onClick: () => setVisibleRight(false) }), (0, jsx_runtime_1.jsx)(button_1.Button, { label: (sidePanelText === null || sidePanelText === void 0 ? void 0 : sidePanelText.update_button) || "Update", onClick: () => updateColumns() })] }))] })), enableManageColumnsCallback &&
163
+ const hidePanel = () => {
164
+ setVisibleRight(false);
165
+ setInputValue("");
166
+ };
167
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { onClick: () => setVisibleRight(true), text: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "columns-02", size: 20 }) }), (0, jsx_runtime_1.jsxs)(sidebar_1.Sidebar, Object.assign({ className: "md:w-6 lg:w-4 overflow-hidden p-4 h-full", visible: visibleRight, position: "right", onHide: () => hidePanel() }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "sticky top-0 z-5 bg-white" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex justify-content-between align-items-center py-2" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "text-gray-900 text-lg font-semibold line-height-3" }, { children: (sidePanelText === null || sidePanelText === void 0 ? void 0 : sidePanelText.header) || "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: (sidePanelText === null || sidePanelText === void 0 ? void 0 : sidePanelText.disacrd_button) || "Discard", onClick: () => hidePanel() }), (0, jsx_runtime_1.jsx)(button_1.Button, { label: (sidePanelText === null || sidePanelText === void 0 ? void 0 : sidePanelText.update_button) || "Update", onClick: () => updateColumns() })] }))] })), enableManageColumnsCallback &&
164
168
  (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: " p-2 my-2 border-round border-1 border-gray-300" }, { children: [(0, jsx_runtime_1.jsxs)("h3", Object.assign({ className: "flex align-items-center justify-content-between my-0" }, { children: [(sidePanelText === null || sidePanelText === void 0 ? void 0 : sidePanelText.apply_to_all_views) || "Apply to all views", (0, jsx_runtime_1.jsx)(inputswitch_1.InputSwitch, { checked: enableManageColumnsCallbackAPI, onChange: (e) => setEnableManageColumnsCallbackAPI(e.value) })] })), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "my-0 text-sm" }, { children: (sidePanelText === null || sidePanelText === void 0 ? void 0 : sidePanelText.apply_subHeading) || "Apply the chosen column selection to all available views" }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "" }, { 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" }) })), (inpValue === null || inpValue === void 0 ? void 0 : inpValue.length) > 0 && (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "p-input-suffix cursor-pointer sc_icon_hover", onClick: clearSearch }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close", size: 18 }) })), (0, jsx_runtime_1.jsx)(inputtext_1.InputText, { id: "email", value: inpValue, onChange: (e) => {
165
169
  searchHandler(e.target.value);
166
170
  }, disabled: false, placeholder: (sidePanelText === null || sidePanelText === void 0 ? void 0 : sidePanelText.search_placeHolder) || "Search by column name", className: "text-lg font-normal text-gray-500 hover:text-gray-900 w-full my-2" })] })) }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "py-2 my-0 text-gray-900 text-lg font-semibold border-bottom-1 border-gray-200" }, { children: [(sidePanelText === null || sidePanelText === void 0 ? void 0 : sidePanelText.selected_attributes) || "Selected Attributes", " ", (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "text-gray-500 text-sm" }, { children: [nodes === null || nodes === void 0 ? void 0 : nodes.filter((node) => node.selected).length, "/", nodes === null || nodes === void 0 ? void 0 : nodes.filter((node) => node.unSelected || node.selected).length] }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "w-full" }, { children: (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 ?
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const checkbox_1 = require("primereact/checkbox");
6
6
  const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-component"));
7
- const GridCheckBOx = ({ checked, onChange, isIndeterminate }) => {
8
- return ((0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { icon: isIndeterminate && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "minus", color: "#111c5b" }), onChange: onChange, checked: checked, className: "" }));
7
+ const GridCheckBOx = ({ checked, onChange, isIndeterminate, shouldRenderOnRight }) => {
8
+ return ((0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { icon: isIndeterminate && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "minus", color: "#111c5b" }), onChange: onChange, checked: checked, className: `${shouldRenderOnRight ? "custom_grid_checkbox" : ""} ${isIndeterminate ? "custom_grid_indeterminate" : ""}` }));
9
9
  };
10
10
  exports.default = GridCheckBOx;
@@ -79,14 +79,14 @@ const updateCells = (updatedRowData, setUpdateRowData, api) => {
79
79
  };
80
80
  exports.updateCells = updateCells;
81
81
  // Fill data in grid through drag
82
- const fillOperation = (params, api, parentNode, editedRecords, setEditedRecords) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
83
- var _a, _b, _c, _d;
82
+ const fillOperation = (params, api, editedRecords, setEditedRecords) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
83
+ var _a, _b, _c, _d, _e, _f, _g;
84
84
  const { finalRange } = params;
85
85
  const { startRow, endRow, columns,
86
86
  // startColumn
87
87
  } = finalRange;
88
88
  const columnDetails = columns[0].colDef;
89
- const parentRowData = parentNode === null || parentNode === void 0 ? void 0 : parentNode.data;
89
+ const parentRowData = (_c = api.getDisplayedRowAtIndex((_b = (_a = params === null || params === void 0 ? void 0 : params.initialRange) === null || _a === void 0 ? void 0 : _a.startRow) === null || _b === void 0 ? void 0 : _b.rowIndex)) === null || _c === void 0 ? void 0 : _c.data;
90
90
  // Get current updated rows
91
91
  const currentUpdatedRows = [];
92
92
  // Collect all selected rows
@@ -97,12 +97,12 @@ const fillOperation = (params, api, parentNode, editedRecords, setEditedRecords)
97
97
  continue; // Skip if rowNode is undefined
98
98
  const rowData = rowNode === null || rowNode === void 0 ? void 0 : rowNode.data;
99
99
  // Check if rowData exists and update the field
100
- if (rowData && (rowNode.id != parentRowData.id)) {
100
+ if (rowData && (rowNode.id != (parentRowData === null || parentRowData === void 0 ? void 0 : parentRowData.id))) {
101
101
  // Skip edit for same values
102
102
  if ((rowData === null || rowData === void 0 ? void 0 : rowData[columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.field]) === (parentRowData === null || parentRowData === void 0 ? void 0 : parentRowData[columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.field]))
103
103
  continue;
104
104
  // If Dragged cell is grouped only group headers should edit vice versa to child cells
105
- if (((_a = rowData === null || rowData === void 0 ? void 0 : rowData.orgHierarchy) === null || _a === void 0 ? void 0 : _a.length) !== ((_b = parentRowData === null || parentRowData === void 0 ? void 0 : parentRowData.orgHierarchy) === null || _b === void 0 ? void 0 : _b.length))
105
+ if (((_d = rowData === null || rowData === void 0 ? void 0 : rowData.orgHierarchy) === null || _d === void 0 ? void 0 : _d.length) !== ((_e = parentRowData === null || parentRowData === void 0 ? void 0 : parentRowData.orgHierarchy) === null || _e === void 0 ? void 0 : _e.length))
106
106
  continue;
107
107
  // if( rowData?.[columnDetails?.field] == EMPTY_RECORD || rowData?.type !== parentRowData?.type || !rowData?.[columnDetails?.field] ){
108
108
  // continue
@@ -120,8 +120,8 @@ const fillOperation = (params, api, parentNode, editedRecords, setEditedRecords)
120
120
  field: [],
121
121
  isCustomAttribute: columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.isCustomAttribute
122
122
  };
123
- if (!((_c = schemaForEdit === null || schemaForEdit === void 0 ? void 0 : schemaForEdit.field) === null || _c === void 0 ? void 0 : _c.includes(columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.field))) {
124
- (_d = schemaForEdit === null || schemaForEdit === void 0 ? void 0 : schemaForEdit.field) === null || _d === void 0 ? void 0 : _d.push(columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.field);
123
+ if (!((_f = schemaForEdit === null || schemaForEdit === void 0 ? void 0 : schemaForEdit.field) === null || _f === void 0 ? void 0 : _f.includes(columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.field))) {
124
+ (_g = schemaForEdit === null || schemaForEdit === void 0 ? void 0 : schemaForEdit.field) === null || _g === void 0 ? void 0 : _g.push(columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.field);
125
125
  }
126
126
  currentUpdatedRows.push(schemaForEdit);
127
127
  // Update the row
@@ -22,7 +22,6 @@ function ParentForGrid(props) {
22
22
  const [api, setApi] = (0, react_1.useState)(null);
23
23
  const [totalRecords, setTotalRecords] = (0, react_1.useState)(0);
24
24
  const [gridReadyEvent, setGridReadyEvent] = (0, react_1.useState)();
25
- const [initalDragRowData, setInitialDragRowData] = (0, react_1.useState)();
26
25
  const [defaultFilters, setDefaultFilters] = (0, react_1.useState)((props === null || props === void 0 ? void 0 : props.defaultFilters) || []);
27
26
  const [emptyResponse] = (0, react_1.useState)({
28
27
  totalRecords: 0,
@@ -106,20 +105,22 @@ function ParentForGrid(props) {
106
105
  };
107
106
  // JSX for rendering checkbox in header
108
107
  const headerCheckBoxRenderer = (headerDisplayName, HeaderComponent) => {
109
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center " }, { children: [(0, jsx_runtime_1.jsx)(grid_checkbox_1.default, { checked: featureDetails.checkBoxSelection.allBoxChecked, onChange: handleHeaderCheckbox, isIndeterminate: featureDetails.checkBoxSelection.isIndeterminate }), HeaderComponent ? (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "px-3" }, { children: [" ", (0, jsx_runtime_1.jsx)(HeaderComponent, {}), " "] })) : (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "px-3" }, { children: headerDisplayName }))] })));
108
+ var _a, _b, _c, _d;
109
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: `flex align-items-center justify-content-between ${((_a = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _a === void 0 ? void 0 : _a.displayCheckboxOnRight) ? "w-full" : ""}` }, { children: ((_b = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _b === void 0 ? void 0 : _b.displayCheckboxOnRight) ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex align-items-center justify-content-between w-full ` }, { children: [HeaderComponent ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: " mr-auto" }, { children: [" ", (0, jsx_runtime_1.jsx)(HeaderComponent, {}), " "] }))) : ((0, jsx_runtime_1.jsx)("span", { children: headerDisplayName })), (0, jsx_runtime_1.jsx)(grid_checkbox_1.default, { checked: featureDetails.checkBoxSelection.allBoxChecked, onChange: handleHeaderCheckbox, isIndeterminate: featureDetails.checkBoxSelection.isIndeterminate, shouldRenderOnRight: (_c = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _c === void 0 ? void 0 : _c.displayCheckboxOnRight })] }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(grid_checkbox_1.default, { checked: featureDetails.checkBoxSelection.allBoxChecked, onChange: handleHeaderCheckbox, isIndeterminate: featureDetails.checkBoxSelection.isIndeterminate, shouldRenderOnRight: (_d = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _d === void 0 ? void 0 : _d.displayCheckboxOnRight }), HeaderComponent ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "px-3" }, { children: [" ", (0, jsx_runtime_1.jsx)(HeaderComponent, {}), " "] }))) : ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: "px-3" }, { children: headerDisplayName })))] })) })));
110
110
  };
111
111
  // JSX for rendering checkbox in cells
112
112
  const cellCheckBoxRenderer = (params) => {
113
+ var _a;
113
114
  const { data } = params;
114
115
  // const { allBoxChecked, excludedRecords, includedRecords } = featureDetails.checkBoxSelection;
115
116
  const isChecked = (0, helper_1.getCheckedStatus)(data, featureDetails, constants_1.GRID_CHECKBOX_STATUS, setFeatureDetails);
116
- return ((0, jsx_runtime_1.jsx)(grid_checkbox_1.default, { checked: isChecked, onChange: () => handleCheckboxClick(data), isIndeterminate: false }));
117
+ return ((0, jsx_runtime_1.jsx)(grid_checkbox_1.default, { checked: isChecked, onChange: () => handleCheckboxClick(data), isIndeterminate: false, shouldRenderOnRight: (_a = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _a === void 0 ? void 0 : _a.displayCheckboxOnRight }));
117
118
  };
118
119
  // Render checkbox as well as initial component/data from props
119
120
  const dataCellRenderer = (cellRendererParams, column) => {
120
- var _a;
121
+ var _a, _b, _c;
121
122
  const { initialRenderer, cellCheckBoxRenderer } = cellRendererParams;
122
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "pr-3 flex align-items-center" }, { children: cellCheckBoxRenderer(cellRendererParams) })), typeof initialRenderer === "function" ? (initialRenderer(cellRendererParams)) : ((0, jsx_runtime_1.jsx)("div", { children: (_a = cellRendererParams === null || cellRendererParams === void 0 ? void 0 : cellRendererParams.data) === null || _a === void 0 ? void 0 : _a[column === null || column === void 0 ? void 0 : column.field] }))] })));
123
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex w-full" }, { children: ((_a = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _a === void 0 ? void 0 : _a.displayCheckboxOnRight) ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "custom_class_name flex w-full justify-content-between" }, { children: [typeof initialRenderer === "function" ? (initialRenderer(cellRendererParams)) : ((0, jsx_runtime_1.jsx)("div", { children: (_b = cellRendererParams === null || cellRendererParams === void 0 ? void 0 : cellRendererParams.data) === null || _b === void 0 ? void 0 : _b[column === null || column === void 0 ? void 0 : column.field] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center" }, { children: cellCheckBoxRenderer(cellRendererParams) }))] }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center " }, { children: cellCheckBoxRenderer(cellRendererParams) })), typeof initialRenderer === "function" ? (initialRenderer(cellRendererParams)) : ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "px-3" }, { children: (_c = cellRendererParams === null || cellRendererParams === void 0 ? void 0 : cellRendererParams.data) === null || _c === void 0 ? void 0 : _c[column === null || column === void 0 ? void 0 : column.field] })))] })) })));
123
124
  };
124
125
  // Callback to products for getting data
125
126
  const getData = (startRow, endRow, currentFeatures, params) => tslib_1.__awaiter(this, void 0, void 0, function* () {
@@ -206,15 +207,9 @@ function ParentForGrid(props) {
206
207
  });
207
208
  // Specify unique id for every row for grid
208
209
  const getRowId = (prams) => prams.data.id;
209
- // Get the direction of selected range
210
- const onCellMouseDown = (event) => {
211
- if (event.colDef.suppressFillHandle)
212
- return;
213
- setInitialDragRowData(event.node);
214
- };
215
210
  // Update cell from front end and give a call back to products
216
211
  const wrapperToFillOpertation = (params) => {
217
- (0, helper_1.fillOperation)(params, api, initalDragRowData, props === null || props === void 0 ? void 0 : props.editedRecords, props === null || props === void 0 ? void 0 : props.setEditedRecords);
212
+ (0, helper_1.fillOperation)(params, api, props === null || props === void 0 ? void 0 : props.editedRecords, props === null || props === void 0 ? void 0 : props.setEditedRecords);
218
213
  };
219
214
  // Operation on fill handle
220
215
  const myOpertaion = (fillOperationParams) => {
@@ -224,7 +219,6 @@ function ParentForGrid(props) {
224
219
  const getDataPath = (0, react_1.useCallback)((data) => {
225
220
  return data.orgHierarchy;
226
221
  }, []);
227
- console.log(onCellMouseDown, wrapperToFillOpertation, myOpertaion);
228
222
  // Options that grid should have
229
223
  const gridOptions = {
230
224
  columnDefs: gridData.columnData.map((column) => {
@@ -246,6 +240,7 @@ function ParentForGrid(props) {
246
240
  suppressMenuHide: false,
247
241
  rowSelection: "multiple",
248
242
  suppressRowClickSelection: true,
243
+ headerHeight: props === null || props === void 0 ? void 0 : props.columnHeaderHeight,
249
244
  rowHeight: constants_1.ROW_HEIGHT,
250
245
  rowModelType: props.rowModelType,
251
246
  pinnedTopRowData: props === null || props === void 0 ? void 0 : props.pinnedTopRowData,
@@ -261,7 +256,6 @@ function ParentForGrid(props) {
261
256
  enableFillHandle: (_b = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _b === void 0 ? void 0 : _b.enableFillHandle,
262
257
  onFillEnd: wrapperToFillOpertation,
263
258
  fillOperation: myOpertaion,
264
- onCellMouseDown: onCellMouseDown,
265
259
  getRowId: getRowId,
266
260
  fillHandleDirection: 'y'
267
261
  };
@@ -94,6 +94,7 @@ export interface ConditionsToDisplay {
94
94
  displaySaveEditButton?: boolean;
95
95
  displayEditHeading?: boolean;
96
96
  displayFeaturesHeader?: boolean;
97
+ displayCheckboxOnRight?: boolean;
97
98
  }
98
99
  export interface PropsFromProduct {
99
100
  columnData: ColumnDef[];
@@ -130,6 +131,7 @@ export interface PropsFromProduct {
130
131
  GroupHeaderComponent?: React.FC;
131
132
  enableCheckboxForGroupHeader?: boolean;
132
133
  ChildComponentForGroup?: React.FC;
134
+ columnHeaderHeight?: number;
133
135
  }
134
136
  export interface ResoponseFromCallback {
135
137
  totalRecords: number;
@@ -3,6 +3,7 @@ interface CheckboxProps {
3
3
  checked: boolean;
4
4
  onChange: () => void;
5
5
  isIndeterminate: boolean;
6
+ shouldRenderOnRight: boolean;
6
7
  }
7
8
  declare const GridCheckBOx: React.FC<CheckboxProps>;
8
9
  export default GridCheckBOx;
@@ -3,7 +3,7 @@ export declare const parseIfNeeded: (value: any) => any;
3
3
  export declare const sortColumns: (columns: any) => any;
4
4
  export declare const getCheckedStatus: (row: any, featureDetails: any, GRID_CHECKBOX_STATUS: any, setFeatureDetails: any) => any;
5
5
  export declare const updateCells: (updatedRowData: any, setUpdateRowData: any, api: any) => void;
6
- export declare const fillOperation: (params: any, api: any, parentNode: any, editedRecords: any, setEditedRecords: any) => Promise<void>;
6
+ export declare const fillOperation: (params: any, api: any, editedRecords: any, setEditedRecords: any) => Promise<void>;
7
7
  export declare const autoGroupColumnDef: (isTreeEnable: any, headerName: any, groupField: any, GroupHeaderComponent: any, headerCheckboxRenderer: any, enableCheckboxForGroupHeader: any, ChildRendererForGroup: any) => {
8
8
  headerName: any;
9
9
  minWidth: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.1.58",
3
+ "version": "6.1.60",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",