sccoreui 5.8.6 → 5.8.7

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.
@@ -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;
@@ -170,7 +170,8 @@ function ParentForGrid(props) {
170
170
  rowSelection: "multiple",
171
171
  suppressRowClickSelection: true,
172
172
  rowHeight: 60,
173
- rowModelType: props.rowModelType, // Infinite scroll
173
+ rowModelType: props.rowModelType,
174
+ pinnedTopRowData: props === null || props === void 0 ? void 0 : props.pinnedTopRowData
174
175
  };
175
176
  // Fucntion to call the grid
176
177
  const callGrid = (featureDetails) => {
@@ -191,7 +192,7 @@ function ParentForGrid(props) {
191
192
  unselectedCheckboxData: [],
192
193
  });
193
194
  }, [featureDetails]);
194
- console.log(isLoading, 'is loading state');
195
+ console.log(isLoading, gridOptions, props === null || props === void 0 ? void 0 : props.pinnedTopRowData, 'is loading state');
195
196
  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: style.height, width: style.width } }, { children: (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(MyProvider_1.default, Object.assign({ value: {
196
197
  featureDetails,
197
198
  setFeatureDetails,
@@ -9080,6 +9080,30 @@ exports.iconList = [
9080
9080
  svg: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
9081
9081
  <path d="M3.625 8H12.375" stroke="#132067" stroke-width="2.08332" stroke-linecap="round" stroke-linejoin="round"/>
9082
9082
  </svg>`,
9083
+ },
9084
+ {
9085
+ name: "drag-and-drop",
9086
+ svg: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9087
+ <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"/>
9088
+ <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"/>
9089
+ <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"/>
9090
+ <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"/>
9091
+ <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"/>
9092
+ <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"/>
9093
+ </svg>
9094
+ `,
9095
+ },
9096
+ {
9097
+ name: "laundry",
9098
+ svg: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9099
+ <mask id="mask0_812_195445" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="20" height="20">
9100
+ <rect width="20" height="20" fill="#8190E8" />
9101
+ </mask>
9102
+ <g mask="url(#mask0_812_195445)">
9103
+ <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"/>
9104
+ </g>
9105
+ </svg>
9106
+ `,
9083
9107
  },
9084
9108
  {
9085
9109
  name: "plus-circle-2",
@@ -0,0 +1,2 @@
1
+ declare function CustomDropDown(): import("react/jsx-runtime").JSX.Element;
2
+ export default CustomDropDown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "5.8.6",
3
+ "version": "5.8.7",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",