@fctc/sme-widget-ui 2.5.1 → 2.5.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
@@ -13127,7 +13127,7 @@ var TableHead = (props) => {
13127
13127
  children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13128
13128
  "div",
13129
13129
  {
13130
- className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${col?.field?.type === "monetary" && "justify-end"}`,
13130
+ className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
13131
13131
  children: [
13132
13132
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
13133
13133
  col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
@@ -17179,6 +17179,11 @@ var typeStyles = {
17179
17179
  backgroundColor: "#EEFEFF",
17180
17180
  color: "#23A9AE",
17181
17181
  border: "1px solid #23A9AE"
17182
+ },
17183
+ browned: {
17184
+ backgroundColor: "#F2E8E1",
17185
+ color: "#8B5C3A",
17186
+ border: "1px solid #8B5C3A"
17182
17187
  }
17183
17188
  };
17184
17189
  var baseStyle = {
@@ -17804,7 +17809,8 @@ var CopyLinkButtonField = (props) => {
17804
17809
  isEditTable,
17805
17810
  isCopied,
17806
17811
  handleCopyToClipboard,
17807
- propValue
17812
+ propValue,
17813
+ maskingValue
17808
17814
  } = props;
17809
17815
  const { t: t3 } = useI18n();
17810
17816
  if (!isForm) {
@@ -17841,7 +17847,7 @@ var CopyLinkButtonField = (props) => {
17841
17847
  /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
17842
17848
  "input",
17843
17849
  {
17844
- value: typeof value === "string" || typeof value === "number" ? String(value) : "",
17850
+ value: readonly ? maskingValue : typeof value === "string" || typeof value === "number" ? String(value) : "",
17845
17851
  onBlur: (e3) => {
17846
17852
  if (readonly) return;
17847
17853
  const newValue = e3.target.value || "";
package/dist/index.mjs CHANGED
@@ -13000,7 +13000,7 @@ var TableHead = (props) => {
13000
13000
  children: /* @__PURE__ */ jsxs29(
13001
13001
  "div",
13002
13002
  {
13003
- className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${col?.field?.type === "monetary" && "justify-end"}`,
13003
+ className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
13004
13004
  children: [
13005
13005
  /* @__PURE__ */ jsx51("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
13006
13006
  col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
@@ -17052,6 +17052,11 @@ var typeStyles = {
17052
17052
  backgroundColor: "#EEFEFF",
17053
17053
  color: "#23A9AE",
17054
17054
  border: "1px solid #23A9AE"
17055
+ },
17056
+ browned: {
17057
+ backgroundColor: "#F2E8E1",
17058
+ color: "#8B5C3A",
17059
+ border: "1px solid #8B5C3A"
17055
17060
  }
17056
17061
  };
17057
17062
  var baseStyle = {
@@ -17677,7 +17682,8 @@ var CopyLinkButtonField = (props) => {
17677
17682
  isEditTable,
17678
17683
  isCopied,
17679
17684
  handleCopyToClipboard,
17680
- propValue
17685
+ propValue,
17686
+ maskingValue
17681
17687
  } = props;
17682
17688
  const { t: t3 } = useI18n();
17683
17689
  if (!isForm) {
@@ -17714,7 +17720,7 @@ var CopyLinkButtonField = (props) => {
17714
17720
  /* @__PURE__ */ jsx84(
17715
17721
  "input",
17716
17722
  {
17717
- value: typeof value === "string" || typeof value === "number" ? String(value) : "",
17723
+ value: readonly ? maskingValue : typeof value === "string" || typeof value === "number" ? String(value) : "",
17718
17724
  onBlur: (e3) => {
17719
17725
  if (readonly) return;
17720
17726
  const newValue = e3.target.value || "";
@@ -230,6 +230,7 @@ interface ICopyLinkButtonProps extends IInputFieldProps {
230
230
  isCopied: any;
231
231
  handleCopyToClipboard: any;
232
232
  propValue: any;
233
+ maskingValue: any;
233
234
  }
234
235
 
235
236
  declare const CopyLinkButtonField: (props: ICopyLinkButtonProps) => JSX.Element;
package/dist/widgets.d.ts CHANGED
@@ -230,6 +230,7 @@ interface ICopyLinkButtonProps extends IInputFieldProps {
230
230
  isCopied: any;
231
231
  handleCopyToClipboard: any;
232
232
  propValue: any;
233
+ maskingValue: any;
233
234
  }
234
235
 
235
236
  declare const CopyLinkButtonField: (props: ICopyLinkButtonProps) => JSX.Element;
package/dist/widgets.js CHANGED
@@ -12119,7 +12119,7 @@ var TableHead = (props) => {
12119
12119
  children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
12120
12120
  "div",
12121
12121
  {
12122
- className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${col?.field?.type === "monetary" && "justify-end"}`,
12122
+ className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
12123
12123
  children: [
12124
12124
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
12125
12125
  col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
@@ -16428,6 +16428,11 @@ var typeStyles = {
16428
16428
  backgroundColor: "#EEFEFF",
16429
16429
  color: "#23A9AE",
16430
16430
  border: "1px solid #23A9AE"
16431
+ },
16432
+ browned: {
16433
+ backgroundColor: "#F2E8E1",
16434
+ color: "#8B5C3A",
16435
+ border: "1px solid #8B5C3A"
16431
16436
  }
16432
16437
  };
16433
16438
  var baseStyle = {
@@ -17053,7 +17058,8 @@ var CopyLinkButtonField = (props) => {
17053
17058
  isEditTable,
17054
17059
  isCopied,
17055
17060
  handleCopyToClipboard,
17056
- propValue
17061
+ propValue,
17062
+ maskingValue
17057
17063
  } = props;
17058
17064
  const { t: t3 } = useI18n();
17059
17065
  if (!isForm) {
@@ -17090,7 +17096,7 @@ var CopyLinkButtonField = (props) => {
17090
17096
  /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
17091
17097
  "input",
17092
17098
  {
17093
- value: typeof value === "string" || typeof value === "number" ? String(value) : "",
17099
+ value: readonly ? maskingValue : typeof value === "string" || typeof value === "number" ? String(value) : "",
17094
17100
  onBlur: (e3) => {
17095
17101
  if (readonly) return;
17096
17102
  const newValue = e3.target.value || "";
package/dist/widgets.mjs CHANGED
@@ -12056,7 +12056,7 @@ var TableHead = (props) => {
12056
12056
  children: /* @__PURE__ */ jsxs29(
12057
12057
  "div",
12058
12058
  {
12059
- className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${col?.field?.type === "monetary" && "justify-end"}`,
12059
+ className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${(col?.field?.type === "monetary" || col?.field?.widget === "monetary") && "justify-end"}`,
12060
12060
  children: [
12061
12061
  /* @__PURE__ */ jsx51("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
12062
12062
  col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
@@ -16365,6 +16365,11 @@ var typeStyles = {
16365
16365
  backgroundColor: "#EEFEFF",
16366
16366
  color: "#23A9AE",
16367
16367
  border: "1px solid #23A9AE"
16368
+ },
16369
+ browned: {
16370
+ backgroundColor: "#F2E8E1",
16371
+ color: "#8B5C3A",
16372
+ border: "1px solid #8B5C3A"
16368
16373
  }
16369
16374
  };
16370
16375
  var baseStyle = {
@@ -16990,7 +16995,8 @@ var CopyLinkButtonField = (props) => {
16990
16995
  isEditTable,
16991
16996
  isCopied,
16992
16997
  handleCopyToClipboard,
16993
- propValue
16998
+ propValue,
16999
+ maskingValue
16994
17000
  } = props;
16995
17001
  const { t: t3 } = useI18n();
16996
17002
  if (!isForm) {
@@ -17027,7 +17033,7 @@ var CopyLinkButtonField = (props) => {
17027
17033
  /* @__PURE__ */ jsx84(
17028
17034
  "input",
17029
17035
  {
17030
- value: typeof value === "string" || typeof value === "number" ? String(value) : "",
17036
+ value: readonly ? maskingValue : typeof value === "string" || typeof value === "number" ? String(value) : "",
17031
17037
  onBlur: (e3) => {
17032
17038
  if (readonly) return;
17033
17039
  const newValue = e3.target.value || "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",