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