cecomponent 2.0.53 → 2.0.55

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.
@@ -40184,7 +40184,7 @@ const CESkeletonTable = ({ columns: e, rows: t }) => /* @__PURE__ */ jsxRuntimeE
40184
40184
  column: t,
40185
40185
  colId: n
40186
40186
  }) => {
40187
- var p, m, d, g, _, E, S, b, T, C, R, A, O, I, j, D;
40187
+ var p, m, d, g, _, E, S, b, T, C, R, A, O, I, j, D, F;
40188
40188
  const i = (((p = e[n]) == null ? void 0 : p.required) ?? t.required) || !1, o = !!e[n].error, [l, u] = useState(!1), f = t.elementType;
40189
40189
  return useEffect(() => {
40190
40190
  u(!(o || i));
@@ -40265,18 +40265,18 @@ const CESkeletonTable = ({ columns: e, rows: t }) => /* @__PURE__ */ jsxRuntimeE
40265
40265
  fetchSuggestions: (b = e[n]) == null ? void 0 : b.fetchOptions,
40266
40266
  onChange: () => {
40267
40267
  },
40268
- onSelect: (F) => {
40269
- var V, X;
40270
- return (X = (V = e[n]) == null ? void 0 : V.onselect) == null ? void 0 : X.call(V, F);
40268
+ onSelect: (V) => {
40269
+ var X, z;
40270
+ return (z = (X = e[n]) == null ? void 0 : X.onselect) == null ? void 0 : z.call(X, V);
40271
40271
  },
40272
40272
  value: ((T = e[n]) == null ? void 0 : T.selectedOption) || null
40273
40273
  }
40274
40274
  ) : f === "date-picker" ? /* @__PURE__ */ jsxRuntimeExports.jsx(DatePickerCell, { row: e, colId: n }) : f === "text-input" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
40275
40275
  CEInputBox,
40276
40276
  {
40277
- onChange: (F) => {
40278
- var V;
40279
- return (V = e[n]) == null ? void 0 : V.onchange(F);
40277
+ onChange: (V) => {
40278
+ var X;
40279
+ return (X = e[n]) == null ? void 0 : X.onchange(V);
40280
40280
  },
40281
40281
  value: ((C = e[n]) == null ? void 0 : C.value) || "",
40282
40282
  showError: !1,
@@ -40286,28 +40286,29 @@ const CESkeletonTable = ({ columns: e, rows: t }) => /* @__PURE__ */ jsxRuntimeE
40286
40286
  CEInputBox,
40287
40287
  {
40288
40288
  type: "number",
40289
- onChange: (F) => {
40290
- var V;
40291
- return (V = e[n]) == null ? void 0 : V.onchange(F);
40289
+ onChange: (V) => {
40290
+ var X;
40291
+ return (X = e[n]) == null ? void 0 : X.onchange(V);
40292
40292
  },
40293
40293
  value: ((A = e[n]) == null ? void 0 : A.value) || "",
40294
40294
  showError: !1,
40295
- disabled: ((O = e[n]) == null ? void 0 : O.disabled) ?? !1
40295
+ disabled: ((O = e[n]) == null ? void 0 : O.disabled) ?? !1,
40296
+ decimalScale: ((I = e[n]) == null ? void 0 : I.decimalScale) ?? 3
40296
40297
  }
40297
40298
  ) : f === "drop-down-input" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
40298
40299
  CEDynamicSelectField,
40299
40300
  {
40300
40301
  label: "",
40301
- value: ((I = e[n]) == null ? void 0 : I.value) || "",
40302
- onChange: (F) => {
40303
- var V;
40304
- (V = e[n]) == null || V.onchange(F.target.value);
40302
+ value: ((j = e[n]) == null ? void 0 : j.value) || "",
40303
+ onChange: (V) => {
40304
+ var X;
40305
+ (X = e[n]) == null || X.onchange(V.target.value);
40305
40306
  },
40306
- options: ((j = e[n]) == null ? void 0 : j.options) || [],
40307
+ options: ((D = e[n]) == null ? void 0 : D.options) || [],
40307
40308
  showPlaceholder: !0,
40308
40309
  placeholderText: ""
40309
40310
  }
40310
- ) : /* @__PURE__ */ jsxRuntimeExports.jsx(CETruncatedTextWithTooltip, { text: String(((D = e[n]) == null ? void 0 : D.value) ?? "") })) });
40311
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx(CETruncatedTextWithTooltip, { text: String(((F = e[n]) == null ? void 0 : F.value) ?? "") })) });
40311
40312
  }, CEDateRangePicker = ({
40312
40313
  label: e = "Submitted Date",
40313
40314
  tooltip: t,
@@ -40661,10 +40662,7 @@ const CESkeletonTable = ({ columns: e, rows: t }) => /* @__PURE__ */ jsxRuntimeE
40661
40662
  /* @__PURE__ */ new Set()
40662
40663
  ), [ct, it] = useState(null), [ut, ot] = useState(!1), [yt, rt] = useState(""), [At, wt] = useState(null), [Tt, Rt] = useState("contains"), [kt, xt] = useState(""), [Je, ht] = useState({}), [ft, at] = useState(0), [mt, Mt] = useState(
40663
40664
  z ?? 10
40664
- ), [Ge, vt] = useState(/* @__PURE__ */ new Set()), [pt, Ot] = useState(""), [Bt, It] = useState(!1), [lt, _t] = useState(/* @__PURE__ */ new Set()), [bt, Z] = useState([]), ae = useMemo(() => {
40665
- const se = (n ?? []).map((pe) => pe.id).join("|");
40666
- return `ce-grid:${typeof e == "string" ? e : "grid"}:${se}`;
40667
- }, [n, e]), [te, ne] = useState(null), oe = useRef(null), le = useRef(null), ge = useRef(null), we = useRef(null), [ve, _e] = useState(/* @__PURE__ */ new Set()), [me, Oe] = useState([]), [$e, Ve] = useState(!1), [je, Be] = useState(!1), [He, tt] = useState(null), [Qe, dt] = useState(!1), [Dt, Et] = useState(!0), jt = useRef([]), gt = useRef(void 0), $t = useRef(!1);
40665
+ ), [Ge, vt] = useState(/* @__PURE__ */ new Set()), [pt, Ot] = useState(""), [Bt, It] = useState(!1), [lt, _t] = useState(/* @__PURE__ */ new Set()), [bt, Z] = useState([]), ae = useMemo(() => `ce-grid:${typeof e == "string" ? e : "grid"}`, [e]), [te, ne] = useState(null), oe = useRef(null), le = useRef(null), ge = useRef(null), we = useRef(null), [ve, _e] = useState(/* @__PURE__ */ new Set()), [me, Oe] = useState([]), [$e, Ve] = useState(!1), [je, Be] = useState(!1), [He, tt] = useState(null), [Qe, dt] = useState(!1), [Dt, Et] = useState(!0), jt = useRef([]), gt = useRef(void 0), $t = useRef(!1);
40668
40666
  useEffect(() => {
40669
40667
  z != null && z > 0 && (Mt(z), at(0));
40670
40668
  }, [z]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cecomponent",
3
3
  "description": "A React component library for building modern UIs for Cleanearth",
4
- "version": "2.0.53",
4
+ "version": "2.0.55",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/idex.d.ts",
package/dist/App_bak.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare function App(): import("react/jsx-runtime").JSX.Element;
2
- export default App;