sccoreui 5.8.4 → 5.8.5

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,
@@ -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.4",
3
+ "version": "5.8.5",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",