sccoreui 5.7.12 → 5.7.14

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.
@@ -5,7 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const AgGrid_1 = tslib_1.__importDefault(require("./AgGrid"));
7
7
  const advanced_feature_1 = tslib_1.__importDefault(require("./advancedFeature/advanced-feature"));
8
- const error_ui_1 = tslib_1.__importDefault(require("./error-ui"));
9
8
  function ParentForGrid(props) {
10
9
  const [gridData] = (0, react_1.useState)({
11
10
  rowData: props === null || props === void 0 ? void 0 : props.rowData,
@@ -97,6 +96,6 @@ function ParentForGrid(props) {
97
96
  }, [featureDetails.searchedText]);
98
97
  console.log(gridData, 'grid data');
99
98
  console.log(featureDetails, 'feature details');
100
- return ((0, jsx_runtime_1.jsx)(error_ui_1.default, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ style: { height: style.height, width: style.width } }, { children: [(0, jsx_runtime_1.jsx)(advanced_feature_1.default, { featureDetails: featureDetails, setFeatureDetails: setFeatureDetails, columnData: gridData.columnData, props: props, callGrid: callGrid }), (0, jsx_runtime_1.jsx)(AgGrid_1.default, { style: style, gridOptions: gridOptions, onGridReady: onGridReady })] })) }));
99
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: { height: style.height, width: style.width } }, { children: [(0, jsx_runtime_1.jsx)(advanced_feature_1.default, { featureDetails: featureDetails, setFeatureDetails: setFeatureDetails, columnData: gridData.columnData, props: props, callGrid: callGrid }), (0, jsx_runtime_1.jsx)(AgGrid_1.default, { style: style, gridOptions: gridOptions, onGridReady: onGridReady })] })));
101
100
  }
102
101
  exports.default = ParentForGrid;
@@ -414,19 +414,18 @@ const FormulaComponent = (props) => {
414
414
  }
415
415
  case "CALCULATION": {
416
416
  const pattern = /[a-f0-9]{24}/g;
417
- if (props === null || props === void 0 ? void 0 : props.formulaValue) {
418
- const ids = props === null || props === void 0 ? void 0 : props.formulaValue.match(pattern);
419
- let text = props === null || props === void 0 ? void 0 : props.formulaValue;
420
- for (let i = 0; i < (ids === null || ids === void 0 ? void 0 : ids.length); i++) {
421
- let id = ids[i];
422
- let name = (_b = fieldOptions.find((item) => item.id === id)) === null || _b === void 0 ? void 0 : _b.name;
423
- text = text.replaceAll(id, name);
424
- }
425
- return (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "w-8 h-auto cursor-pointer flex align-items-center px-4", onClick: (e) => { var _a; return (_a = priceConditioRef.current) === null || _a === void 0 ? void 0 : _a.toggle(e); } }, { children: (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'text-gray-700 overflow-hidden text-overflow-ellipsis white-space-nowrap w-full', title: text ? text : '' }, { children: (props === null || props === void 0 ? void 0 : props.formulaValue) ? text : 'Select' })) }));
426
- }
427
- else {
428
- return 'Select';
417
+ // if(props?.formulaValue){
418
+ const ids = props === null || props === void 0 ? void 0 : props.formulaValue.match(pattern);
419
+ let text = props === null || props === void 0 ? void 0 : props.formulaValue;
420
+ for (let i = 0; i < (ids === null || ids === void 0 ? void 0 : ids.length); i++) {
421
+ let id = ids[i];
422
+ let name = (_b = fieldOptions.find((item) => item.id === id)) === null || _b === void 0 ? void 0 : _b.name;
423
+ text = text.replaceAll(id, name);
429
424
  }
425
+ return (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "w-8 h-auto cursor-pointer flex align-items-center px-4", onClick: (e) => { var _a; return (_a = priceConditioRef.current) === null || _a === void 0 ? void 0 : _a.toggle(e); } }, { children: (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'text-gray-700 overflow-hidden text-overflow-ellipsis white-space-nowrap w-full', title: text ? text : '' }, { children: (props === null || props === void 0 ? void 0 : props.formulaValue) ? text : 'Select' })) }));
426
+ // }else{
427
+ // return 'Select'
428
+ // }
430
429
  }
431
430
  default: {
432
431
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "5.7.12",
3
+ "version": "5.7.14",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",