@fctc/sme-widget-ui 2.3.2 → 2.3.3

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/dist/index.js CHANGED
@@ -32592,7 +32592,8 @@ var MonetaryField = (props) => {
32592
32592
  formValues,
32593
32593
  widget,
32594
32594
  placeholder,
32595
- isEditTable
32595
+ isEditTable,
32596
+ symbol = "VND"
32596
32597
  } = props;
32597
32598
  if (isForm && name2 === "amount_residual") {
32598
32599
  return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
@@ -32600,15 +32601,15 @@ var MonetaryField = (props) => {
32600
32601
  string,
32601
32602
  ":"
32602
32603
  ] }),
32603
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32604
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} ${symbol}` })
32604
32605
  ] });
32605
32606
  }
32606
32607
  if (!isForm) {
32607
- const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32608
+ const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : symbol;
32608
32609
  if (widget === "monetary" && !formValues?.currency_id) {
32609
32610
  return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { children: `${formatNumberOnly(
32610
32611
  parseFloat(String(value ?? defaultValue))
32611
- )} VND` });
32612
+ )} ${symbol}` });
32612
32613
  }
32613
32614
  return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { children: `${formatNumberOnly(
32614
32615
  parseFloat(value ?? defaultValue)
package/dist/index.mjs CHANGED
@@ -32466,7 +32466,8 @@ var MonetaryField = (props) => {
32466
32466
  formValues,
32467
32467
  widget,
32468
32468
  placeholder,
32469
- isEditTable
32469
+ isEditTable,
32470
+ symbol = "VND"
32470
32471
  } = props;
32471
32472
  if (isForm && name2 === "amount_residual") {
32472
32473
  return /* @__PURE__ */ jsxs65("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
@@ -32474,15 +32475,15 @@ var MonetaryField = (props) => {
32474
32475
  string,
32475
32476
  ":"
32476
32477
  ] }),
32477
- /* @__PURE__ */ jsx98("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32478
+ /* @__PURE__ */ jsx98("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} ${symbol}` })
32478
32479
  ] });
32479
32480
  }
32480
32481
  if (!isForm) {
32481
- const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32482
+ const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : symbol;
32482
32483
  if (widget === "monetary" && !formValues?.currency_id) {
32483
32484
  return /* @__PURE__ */ jsx98("span", { children: `${formatNumberOnly(
32484
32485
  parseFloat(String(value ?? defaultValue))
32485
- )} VND` });
32486
+ )} ${symbol}` });
32486
32487
  }
32487
32488
  return /* @__PURE__ */ jsx98("span", { children: `${formatNumberOnly(
32488
32489
  parseFloat(value ?? defaultValue)
@@ -318,6 +318,7 @@ declare const Many2ManyTagField: (props: IMany2ManyTagsProps) => JSX.Element;
318
318
 
319
319
  interface IMonetaryProps extends IInputFieldProps {
320
320
  placeholder?: string;
321
+ symbol?: string;
321
322
  }
322
323
 
323
324
  declare const MonetaryField: (props: IMonetaryProps) => JSX.Element;
package/dist/widgets.d.ts CHANGED
@@ -318,6 +318,7 @@ declare const Many2ManyTagField: (props: IMany2ManyTagsProps) => JSX.Element;
318
318
 
319
319
  interface IMonetaryProps extends IInputFieldProps {
320
320
  placeholder?: string;
321
+ symbol?: string;
321
322
  }
322
323
 
323
324
  declare const MonetaryField: (props: IMonetaryProps) => JSX.Element;
package/dist/widgets.js CHANGED
@@ -31841,7 +31841,8 @@ var MonetaryField = (props) => {
31841
31841
  formValues,
31842
31842
  widget,
31843
31843
  placeholder,
31844
- isEditTable
31844
+ isEditTable,
31845
+ symbol = "VND"
31845
31846
  } = props;
31846
31847
  if (isForm && name2 === "amount_residual") {
31847
31848
  return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
@@ -31849,15 +31850,15 @@ var MonetaryField = (props) => {
31849
31850
  string,
31850
31851
  ":"
31851
31852
  ] }),
31852
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
31853
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} ${symbol}` })
31853
31854
  ] });
31854
31855
  }
31855
31856
  if (!isForm) {
31856
- const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
31857
+ const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : symbol;
31857
31858
  if (widget === "monetary" && !formValues?.currency_id) {
31858
31859
  return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { children: `${formatNumberOnly(
31859
31860
  parseFloat(String(value ?? defaultValue))
31860
- )} VND` });
31861
+ )} ${symbol}` });
31861
31862
  }
31862
31863
  return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { children: `${formatNumberOnly(
31863
31864
  parseFloat(value ?? defaultValue)
package/dist/widgets.mjs CHANGED
@@ -31779,7 +31779,8 @@ var MonetaryField = (props) => {
31779
31779
  formValues,
31780
31780
  widget,
31781
31781
  placeholder,
31782
- isEditTable
31782
+ isEditTable,
31783
+ symbol = "VND"
31783
31784
  } = props;
31784
31785
  if (isForm && name2 === "amount_residual") {
31785
31786
  return /* @__PURE__ */ jsxs65("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
@@ -31787,15 +31788,15 @@ var MonetaryField = (props) => {
31787
31788
  string,
31788
31789
  ":"
31789
31790
  ] }),
31790
- /* @__PURE__ */ jsx98("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
31791
+ /* @__PURE__ */ jsx98("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} ${symbol}` })
31791
31792
  ] });
31792
31793
  }
31793
31794
  if (!isForm) {
31794
- const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
31795
+ const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : symbol;
31795
31796
  if (widget === "monetary" && !formValues?.currency_id) {
31796
31797
  return /* @__PURE__ */ jsx98("span", { children: `${formatNumberOnly(
31797
31798
  parseFloat(String(value ?? defaultValue))
31798
- )} VND` });
31799
+ )} ${symbol}` });
31799
31800
  }
31800
31801
  return /* @__PURE__ */ jsx98("span", { children: `${formatNumberOnly(
31801
31802
  parseFloat(value ?? defaultValue)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",