@fctc/sme-widget-ui 2.5.1 → 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 +4 -3
- package/dist/index.mjs +4 -3
- package/dist/widgets.d.mts +1 -0
- package/dist/widgets.d.ts +1 -0
- package/dist/widgets.js +4 -3
- package/dist/widgets.mjs +4 -3
- package/package.json +1 -1
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: [
|
|
@@ -17804,7 +17804,8 @@ var CopyLinkButtonField = (props) => {
|
|
|
17804
17804
|
isEditTable,
|
|
17805
17805
|
isCopied,
|
|
17806
17806
|
handleCopyToClipboard,
|
|
17807
|
-
propValue
|
|
17807
|
+
propValue,
|
|
17808
|
+
maskingValue
|
|
17808
17809
|
} = props;
|
|
17809
17810
|
const { t: t3 } = useI18n();
|
|
17810
17811
|
if (!isForm) {
|
|
@@ -17841,7 +17842,7 @@ var CopyLinkButtonField = (props) => {
|
|
|
17841
17842
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
17842
17843
|
"input",
|
|
17843
17844
|
{
|
|
17844
|
-
value: typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17845
|
+
value: readonly ? maskingValue : typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17845
17846
|
onBlur: (e3) => {
|
|
17846
17847
|
if (readonly) return;
|
|
17847
17848
|
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: [
|
|
@@ -17677,7 +17677,8 @@ var CopyLinkButtonField = (props) => {
|
|
|
17677
17677
|
isEditTable,
|
|
17678
17678
|
isCopied,
|
|
17679
17679
|
handleCopyToClipboard,
|
|
17680
|
-
propValue
|
|
17680
|
+
propValue,
|
|
17681
|
+
maskingValue
|
|
17681
17682
|
} = props;
|
|
17682
17683
|
const { t: t3 } = useI18n();
|
|
17683
17684
|
if (!isForm) {
|
|
@@ -17714,7 +17715,7 @@ var CopyLinkButtonField = (props) => {
|
|
|
17714
17715
|
/* @__PURE__ */ jsx84(
|
|
17715
17716
|
"input",
|
|
17716
17717
|
{
|
|
17717
|
-
value: typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17718
|
+
value: readonly ? maskingValue : typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17718
17719
|
onBlur: (e3) => {
|
|
17719
17720
|
if (readonly) return;
|
|
17720
17721
|
const newValue = e3.target.value || "";
|
package/dist/widgets.d.mts
CHANGED
package/dist/widgets.d.ts
CHANGED
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: [
|
|
@@ -17053,7 +17053,8 @@ var CopyLinkButtonField = (props) => {
|
|
|
17053
17053
|
isEditTable,
|
|
17054
17054
|
isCopied,
|
|
17055
17055
|
handleCopyToClipboard,
|
|
17056
|
-
propValue
|
|
17056
|
+
propValue,
|
|
17057
|
+
maskingValue
|
|
17057
17058
|
} = props;
|
|
17058
17059
|
const { t: t3 } = useI18n();
|
|
17059
17060
|
if (!isForm) {
|
|
@@ -17090,7 +17091,7 @@ var CopyLinkButtonField = (props) => {
|
|
|
17090
17091
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
17091
17092
|
"input",
|
|
17092
17093
|
{
|
|
17093
|
-
value: typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17094
|
+
value: readonly ? maskingValue : typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17094
17095
|
onBlur: (e3) => {
|
|
17095
17096
|
if (readonly) return;
|
|
17096
17097
|
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: [
|
|
@@ -16990,7 +16990,8 @@ var CopyLinkButtonField = (props) => {
|
|
|
16990
16990
|
isEditTable,
|
|
16991
16991
|
isCopied,
|
|
16992
16992
|
handleCopyToClipboard,
|
|
16993
|
-
propValue
|
|
16993
|
+
propValue,
|
|
16994
|
+
maskingValue
|
|
16994
16995
|
} = props;
|
|
16995
16996
|
const { t: t3 } = useI18n();
|
|
16996
16997
|
if (!isForm) {
|
|
@@ -17027,7 +17028,7 @@ var CopyLinkButtonField = (props) => {
|
|
|
17027
17028
|
/* @__PURE__ */ jsx84(
|
|
17028
17029
|
"input",
|
|
17029
17030
|
{
|
|
17030
|
-
value: typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17031
|
+
value: readonly ? maskingValue : typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
17031
17032
|
onBlur: (e3) => {
|
|
17032
17033
|
if (readonly) return;
|
|
17033
17034
|
const newValue = e3.target.value || "";
|