3h1-ui 3.0.0-next.253 → 3.0.0-next.254

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.
package/es/index.js CHANGED
@@ -25778,15 +25778,17 @@ const ShyForm = /* @__PURE__ */ defineComponent({
25778
25778
  _c_props = componentProps;
25779
25779
  }
25780
25780
  return {
25781
- ..._c_props,
25782
- schemas: treeExpandField(cloneDeep(_c_props.schemas))
25781
+ schemas: treeExpandField(cloneDeep(_c_props.schemas)),
25782
+ ..._c_props
25783
25783
  };
25784
25784
  }
25785
25785
  };
25786
25786
  }
25787
+ /* @__PURE__ */ console.log("[ schema ] >", schema);
25787
25788
  return schema;
25788
25789
  });
25789
25790
  };
25791
+ /* @__PURE__ */ console.log("[ unref(schemaRef) ] >", unref(schemaRef));
25790
25792
  const schemas = treeExpandField(unref(schemaRef) || unref(getProps).schemas);
25791
25793
  if (unref(getProps).showAdvancedButton) {
25792
25794
  return cloneDeep(schemas.filter((schema) => schema.component !== "Divider"));
@@ -25854,6 +25856,7 @@ const ShyForm = /* @__PURE__ */ defineComponent({
25854
25856
  immediate: true
25855
25857
  });
25856
25858
  watch(() => unref(getProps).schemas, (schemas) => {
25859
+ /* @__PURE__ */ console.log("[ schemas ] >", schemas);
25857
25860
  resetSchema(schemas ?? []);
25858
25861
  });
25859
25862
  watch(() => getSchema.value, (schema) => {
@@ -25906,7 +25909,9 @@ const ShyForm = /* @__PURE__ */ defineComponent({
25906
25909
  deep: true
25907
25910
  });
25908
25911
  async function setProps(formProps2) {
25912
+ /* @__PURE__ */ console.log("[ 1 ] >", 1);
25909
25913
  propsRef.value = merge$2(unref(propsRef) || {}, formProps2);
25914
+ /* @__PURE__ */ console.log("[ propsRef.value ] >", propsRef.value);
25910
25915
  }
25911
25916
  function setFormModel(key2, value) {
25912
25917
  var _a2, _b;
@@ -27846,6 +27851,8 @@ function useRowSelection(propsRef, tableData, emit) {
27846
27851
  };
27847
27852
  }
27848
27853
  function formatNumberWithThousandSeparator$1(val) {
27854
+ if (val === null || val === void 0 || val === "")
27855
+ return "";
27849
27856
  const [intPart, decimalPart] = String(val).split(".");
27850
27857
  const formattedInt = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
27851
27858
  return decimalPart !== void 0 ? `${formattedInt}.${decimalPart}` : formattedInt;
@@ -30140,13 +30147,11 @@ const ShyTag = /* @__PURE__ */ defineComponent({
30140
30147
  }
30141
30148
  });
30142
30149
  function formatNumberWithThousandSeparator(val) {
30150
+ if (val === null || val === void 0 || val === "")
30151
+ return "";
30143
30152
  const [intPart, decimalPart] = String(val).split(".");
30144
30153
  const formattedInt = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
30145
- if (decimalPart !== void 0) {
30146
- const trimmedDecimal = decimalPart.replace(/0+$/, "");
30147
- return trimmedDecimal ? `${formattedInt}.${trimmedDecimal}` : formattedInt;
30148
- }
30149
- return formattedInt;
30154
+ return decimalPart !== void 0 ? `${formattedInt}.${decimalPart}` : formattedInt;
30150
30155
  }
30151
30156
  const handleItem = (item, ellipsis) => {
30152
30157
  const {
package/lib/index.js CHANGED
@@ -25802,15 +25802,17 @@ const ShyForm = /* @__PURE__ */ vue.defineComponent({
25802
25802
  _c_props = componentProps;
25803
25803
  }
25804
25804
  return {
25805
- ..._c_props,
25806
- schemas: treeExpandField(cloneDeep(_c_props.schemas))
25805
+ schemas: treeExpandField(cloneDeep(_c_props.schemas)),
25806
+ ..._c_props
25807
25807
  };
25808
25808
  }
25809
25809
  };
25810
25810
  }
25811
+ /* @__PURE__ */ console.log("[ schema ] >", schema);
25811
25812
  return schema;
25812
25813
  });
25813
25814
  };
25815
+ /* @__PURE__ */ console.log("[ unref(schemaRef) ] >", vue.unref(schemaRef));
25814
25816
  const schemas = treeExpandField(vue.unref(schemaRef) || vue.unref(getProps).schemas);
25815
25817
  if (vue.unref(getProps).showAdvancedButton) {
25816
25818
  return cloneDeep(schemas.filter((schema) => schema.component !== "Divider"));
@@ -25878,6 +25880,7 @@ const ShyForm = /* @__PURE__ */ vue.defineComponent({
25878
25880
  immediate: true
25879
25881
  });
25880
25882
  vue.watch(() => vue.unref(getProps).schemas, (schemas) => {
25883
+ /* @__PURE__ */ console.log("[ schemas ] >", schemas);
25881
25884
  resetSchema(schemas ?? []);
25882
25885
  });
25883
25886
  vue.watch(() => getSchema.value, (schema) => {
@@ -25930,7 +25933,9 @@ const ShyForm = /* @__PURE__ */ vue.defineComponent({
25930
25933
  deep: true
25931
25934
  });
25932
25935
  async function setProps(formProps2) {
25936
+ /* @__PURE__ */ console.log("[ 1 ] >", 1);
25933
25937
  propsRef.value = merge$2(vue.unref(propsRef) || {}, formProps2);
25938
+ /* @__PURE__ */ console.log("[ propsRef.value ] >", propsRef.value);
25934
25939
  }
25935
25940
  function setFormModel(key2, value) {
25936
25941
  var _a2, _b;
@@ -27870,6 +27875,8 @@ function useRowSelection(propsRef, tableData, emit) {
27870
27875
  };
27871
27876
  }
27872
27877
  function formatNumberWithThousandSeparator$1(val) {
27878
+ if (val === null || val === void 0 || val === "")
27879
+ return "";
27873
27880
  const [intPart, decimalPart] = String(val).split(".");
27874
27881
  const formattedInt = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
27875
27882
  return decimalPart !== void 0 ? `${formattedInt}.${decimalPart}` : formattedInt;
@@ -30164,13 +30171,11 @@ const ShyTag = /* @__PURE__ */ vue.defineComponent({
30164
30171
  }
30165
30172
  });
30166
30173
  function formatNumberWithThousandSeparator(val) {
30174
+ if (val === null || val === void 0 || val === "")
30175
+ return "";
30167
30176
  const [intPart, decimalPart] = String(val).split(".");
30168
30177
  const formattedInt = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
30169
- if (decimalPart !== void 0) {
30170
- const trimmedDecimal = decimalPart.replace(/0+$/, "");
30171
- return trimmedDecimal ? `${formattedInt}.${trimmedDecimal}` : formattedInt;
30172
- }
30173
- return formattedInt;
30178
+ return decimalPart !== void 0 ? `${formattedInt}.${decimalPart}` : formattedInt;
30174
30179
  }
30175
30180
  const handleItem = (item, ellipsis) => {
30176
30181
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "3.0.0-next.253",
3
+ "version": "3.0.0-next.254",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",