sccoreui 5.9.49 → 5.9.51

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.
@@ -47,7 +47,7 @@ const Condtions = (props) => {
47
47
  };
48
48
  const renderDynamicField = (selectedColumn) => {
49
49
  var _a;
50
- const dataType = (selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.type) ? selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.type : selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.dataType;
50
+ const dataType = (selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.columnType) ? selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.columnType : selectedColumn === null || selectedColumn === void 0 ? void 0 : selectedColumn.dataType;
51
51
  switch (dataType === null || dataType === void 0 ? void 0 : dataType.toLowerCase()) {
52
52
  case "string": {
53
53
  return ((0, jsx_runtime_1.jsx)(inputtext_1.InputText, { disabled: !condition, className: "border-noround-left w-12rem focus:shadow-none lh-44 h-44", value: value, placeholder: "Enter", onChange: (event) => handleDynamicFieldState(event.target.value) }));
@@ -26,6 +26,8 @@ const TableFilter = () => {
26
26
  name: eachColumn[columnName],
27
27
  code: eachColumn[columnId],
28
28
  dataType: eachColumn.dataType,
29
+ columnType: eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.columnType,
30
+ options: eachColumn === null || eachColumn === void 0 ? void 0 : eachColumn.options
29
31
  }));
30
32
  const defaultCondtion = {
31
33
  columnName: "",
@@ -12,6 +12,7 @@ const constants_1 = require("./constants");
12
12
  const loading_component_1 = tslib_1.__importDefault(require("./loading-component"));
13
13
  const helper_1 = require("./helper");
14
14
  function ParentForGrid(props) {
15
+ var _a;
15
16
  const [gridData, setGridData] = (0, react_1.useState)({
16
17
  rowData: [],
17
18
  columnData: props === null || props === void 0 ? void 0 : props.columnData,
@@ -172,11 +173,11 @@ function ParentForGrid(props) {
172
173
  else if (props.rowModelType === constants_1.ROWMODELTYPE.INFINITE) {
173
174
  const dataSource = {
174
175
  getRows: (params) => tslib_1.__awaiter(this, void 0, void 0, function* () {
175
- var _a;
176
+ var _b;
176
177
  const startRow = params.startRow;
177
178
  const endRow = params.endRow;
178
179
  const result = yield getData(startRow, endRow, currentFeatures);
179
- if (((_a = result === null || result === void 0 ? void 0 : result.rowData) === null || _a === void 0 ? void 0 : _a.length) > 0) {
180
+ if (((_b = result === null || result === void 0 ? void 0 : result.rowData) === null || _b === void 0 ? void 0 : _b.length) > 0) {
180
181
  gridRef.current.api.hideOverlay();
181
182
  params.successCallback(result === null || result === void 0 ? void 0 : result.rowData, result === null || result === void 0 ? void 0 : result.actualEndRow);
182
183
  }
@@ -266,7 +267,7 @@ function ParentForGrid(props) {
266
267
  initialFeature,
267
268
  defaultFilters,
268
269
  createView: props === null || props === void 0 ? void 0 : props.createView,
269
- enableViewCreate: props === null || props === void 0 ? void 0 : props.enableViewCreate
270
+ enableViewCreate: (_a = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _a === void 0 ? void 0 : _a.enableViewCreate
270
271
  } }, { children: (0, jsx_runtime_1.jsx)(advanced_feature_1.default, { props: props }) })), (0, jsx_runtime_1.jsx)(AgGrid_1.default, { style: style, gridOptions: gridOptions, onGridReady: onGridReady, gridRef: gridRef })] }) })) }) }));
271
272
  }
272
273
  exports.default = ParentForGrid;
@@ -11,6 +11,7 @@ export interface ColumnDef extends ColDef {
11
11
  enableChildCheckbox?: boolean;
12
12
  options?: any[];
13
13
  selectionType?: string;
14
+ columnType?: string;
14
15
  }
15
16
  export interface Style {
16
17
  height: number | string;
@@ -83,6 +84,7 @@ export interface ConditionsToDisplay {
83
84
  displayGrouping?: boolean;
84
85
  displayColumnHide?: boolean;
85
86
  displayBulkAction?: boolean;
87
+ enableViewCreate?: boolean;
86
88
  }
87
89
  export interface PropsFromProduct {
88
90
  columnData: ColumnDef[];
@@ -95,6 +97,7 @@ export interface PropsFromProduct {
95
97
  getCheckedRows?: () => void;
96
98
  shouldRefetch?: boolean;
97
99
  noRowsOverlayComponent?: React.FC;
100
+ createView?: () => void;
98
101
  }
99
102
  export interface ResoponseFromCallback {
100
103
  totalRecords: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "5.9.49",
3
+ "version": "5.9.51",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",