@fctc/sme-widget-ui 2.5.0 → 2.5.2
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 +5 -3
- package/dist/index.mjs +5 -3
- package/dist/widgets.d.mts +1 -0
- package/dist/widgets.d.ts +1 -0
- package/dist/widgets.js +5 -3
- package/dist/widgets.mjs +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13112,6 +13112,7 @@ var TableHead = (props) => {
|
|
|
13112
13112
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
13113
13113
|
"th",
|
|
13114
13114
|
{
|
|
13115
|
+
style: { maxWidth: "30px" },
|
|
13115
13116
|
className: `column handle whitespace-nowrap text-left p-0 text-sm font-semibold capitalize text-[#060606]`
|
|
13116
13117
|
},
|
|
13117
13118
|
"table-head-" + index4
|
|
@@ -13126,7 +13127,7 @@ var TableHead = (props) => {
|
|
|
13126
13127
|
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
13127
13128
|
"div",
|
|
13128
13129
|
{
|
|
13129
|
-
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"}`,
|
|
13130
13131
|
children: [
|
|
13131
13132
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
|
|
13132
13133
|
col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
@@ -17803,7 +17804,8 @@ var CopyLinkButtonField = (props) => {
|
|
|
17803
17804
|
isEditTable,
|
|
17804
17805
|
isCopied,
|
|
17805
17806
|
handleCopyToClipboard,
|
|
17806
|
-
propValue
|
|
17807
|
+
propValue,
|
|
17808
|
+
maskingValue
|
|
17807
17809
|
} = props;
|
|
17808
17810
|
const { t: t3 } = useI18n();
|
|
17809
17811
|
if (!isForm) {
|
|
@@ -17840,7 +17842,7 @@ var CopyLinkButtonField = (props) => {
|
|
|
17840
17842
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
17841
17843
|
"input",
|
|
17842
17844
|
{
|
|
17843
|
-
value: typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17845
|
+
value: readonly ? maskingValue : typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17844
17846
|
onBlur: (e3) => {
|
|
17845
17847
|
if (readonly) return;
|
|
17846
17848
|
const newValue = e3.target.value || "";
|
package/dist/index.mjs
CHANGED
|
@@ -12985,6 +12985,7 @@ var TableHead = (props) => {
|
|
|
12985
12985
|
return /* @__PURE__ */ jsx51(
|
|
12986
12986
|
"th",
|
|
12987
12987
|
{
|
|
12988
|
+
style: { maxWidth: "30px" },
|
|
12988
12989
|
className: `column handle whitespace-nowrap text-left p-0 text-sm font-semibold capitalize text-[#060606]`
|
|
12989
12990
|
},
|
|
12990
12991
|
"table-head-" + index4
|
|
@@ -12999,7 +13000,7 @@ var TableHead = (props) => {
|
|
|
12999
13000
|
children: /* @__PURE__ */ jsxs29(
|
|
13000
13001
|
"div",
|
|
13001
13002
|
{
|
|
13002
|
-
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"}`,
|
|
13003
13004
|
children: [
|
|
13004
13005
|
/* @__PURE__ */ jsx51("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
|
|
13005
13006
|
col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
|
|
@@ -17676,7 +17677,8 @@ var CopyLinkButtonField = (props) => {
|
|
|
17676
17677
|
isEditTable,
|
|
17677
17678
|
isCopied,
|
|
17678
17679
|
handleCopyToClipboard,
|
|
17679
|
-
propValue
|
|
17680
|
+
propValue,
|
|
17681
|
+
maskingValue
|
|
17680
17682
|
} = props;
|
|
17681
17683
|
const { t: t3 } = useI18n();
|
|
17682
17684
|
if (!isForm) {
|
|
@@ -17713,7 +17715,7 @@ var CopyLinkButtonField = (props) => {
|
|
|
17713
17715
|
/* @__PURE__ */ jsx84(
|
|
17714
17716
|
"input",
|
|
17715
17717
|
{
|
|
17716
|
-
value: typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17718
|
+
value: readonly ? maskingValue : typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17717
17719
|
onBlur: (e3) => {
|
|
17718
17720
|
if (readonly) return;
|
|
17719
17721
|
const newValue = e3.target.value || "";
|
package/dist/widgets.d.mts
CHANGED
package/dist/widgets.d.ts
CHANGED
package/dist/widgets.js
CHANGED
|
@@ -12104,6 +12104,7 @@ var TableHead = (props) => {
|
|
|
12104
12104
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
12105
12105
|
"th",
|
|
12106
12106
|
{
|
|
12107
|
+
style: { maxWidth: "30px" },
|
|
12107
12108
|
className: `column handle whitespace-nowrap text-left p-0 text-sm font-semibold capitalize text-[#060606]`
|
|
12108
12109
|
},
|
|
12109
12110
|
"table-head-" + index4
|
|
@@ -12118,7 +12119,7 @@ var TableHead = (props) => {
|
|
|
12118
12119
|
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
12119
12120
|
"div",
|
|
12120
12121
|
{
|
|
12121
|
-
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"}`,
|
|
12122
12123
|
children: [
|
|
12123
12124
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
|
|
12124
12125
|
col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
@@ -17052,7 +17053,8 @@ var CopyLinkButtonField = (props) => {
|
|
|
17052
17053
|
isEditTable,
|
|
17053
17054
|
isCopied,
|
|
17054
17055
|
handleCopyToClipboard,
|
|
17055
|
-
propValue
|
|
17056
|
+
propValue,
|
|
17057
|
+
maskingValue
|
|
17056
17058
|
} = props;
|
|
17057
17059
|
const { t: t3 } = useI18n();
|
|
17058
17060
|
if (!isForm) {
|
|
@@ -17089,7 +17091,7 @@ var CopyLinkButtonField = (props) => {
|
|
|
17089
17091
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
17090
17092
|
"input",
|
|
17091
17093
|
{
|
|
17092
|
-
value: typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17094
|
+
value: readonly ? maskingValue : typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17093
17095
|
onBlur: (e3) => {
|
|
17094
17096
|
if (readonly) return;
|
|
17095
17097
|
const newValue = e3.target.value || "";
|
package/dist/widgets.mjs
CHANGED
|
@@ -12041,6 +12041,7 @@ var TableHead = (props) => {
|
|
|
12041
12041
|
return /* @__PURE__ */ jsx51(
|
|
12042
12042
|
"th",
|
|
12043
12043
|
{
|
|
12044
|
+
style: { maxWidth: "30px" },
|
|
12044
12045
|
className: `column handle whitespace-nowrap text-left p-0 text-sm font-semibold capitalize text-[#060606]`
|
|
12045
12046
|
},
|
|
12046
12047
|
"table-head-" + index4
|
|
@@ -12055,7 +12056,7 @@ var TableHead = (props) => {
|
|
|
12055
12056
|
children: /* @__PURE__ */ jsxs29(
|
|
12056
12057
|
"div",
|
|
12057
12058
|
{
|
|
12058
|
-
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"}`,
|
|
12059
12060
|
children: [
|
|
12060
12061
|
/* @__PURE__ */ jsx51("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
|
|
12061
12062
|
col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
|
|
@@ -16989,7 +16990,8 @@ var CopyLinkButtonField = (props) => {
|
|
|
16989
16990
|
isEditTable,
|
|
16990
16991
|
isCopied,
|
|
16991
16992
|
handleCopyToClipboard,
|
|
16992
|
-
propValue
|
|
16993
|
+
propValue,
|
|
16994
|
+
maskingValue
|
|
16993
16995
|
} = props;
|
|
16994
16996
|
const { t: t3 } = useI18n();
|
|
16995
16997
|
if (!isForm) {
|
|
@@ -17026,7 +17028,7 @@ var CopyLinkButtonField = (props) => {
|
|
|
17026
17028
|
/* @__PURE__ */ jsx84(
|
|
17027
17029
|
"input",
|
|
17028
17030
|
{
|
|
17029
|
-
value: typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17031
|
+
value: readonly ? maskingValue : typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17030
17032
|
onBlur: (e3) => {
|
|
17031
17033
|
if (readonly) return;
|
|
17032
17034
|
const newValue = e3.target.value || "";
|