szld-libs 0.3.64 → 0.3.66
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/szld-components.es.js +3796 -3794
- package/dist/szld-components.umd.js +34 -34
- package/es/components/DynamicForm/index.d.ts +1 -0
- package/es/components/DynamicForm/useDynamicForm.js +8 -7
- package/es/hooks/useUniversalTable.js +3 -2
- package/lib/components/DynamicForm/index.d.ts +1 -0
- package/lib/components/DynamicForm/useDynamicForm.js +8 -7
- package/lib/hooks/useUniversalTable.js +3 -2
- package/package.json +1 -1
|
@@ -431,7 +431,7 @@ function useDynamicForm(props) {
|
|
|
431
431
|
defaultWidth = 358,
|
|
432
432
|
customWidth = {}
|
|
433
433
|
}) => {
|
|
434
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
434
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
435
435
|
const mode = item.json.input || "text";
|
|
436
436
|
const format = ((_a = item.json) == null ? void 0 : _a.format) || "";
|
|
437
437
|
const attrid = item.attrid;
|
|
@@ -611,7 +611,8 @@ function useDynamicForm(props) {
|
|
|
611
611
|
DatePicker,
|
|
612
612
|
{
|
|
613
613
|
multiple: true,
|
|
614
|
-
|
|
614
|
+
maxTagCount: ((_p = item == null ? void 0 : item.json) == null ? void 0 : _p["max-tag-count"]) || 2,
|
|
615
|
+
disabled: readonly || ((_q = item.json) == null ? void 0 : _q.readonly) || false,
|
|
615
616
|
style: { width, ...itemStyle == null ? void 0 : itemStyle.style, ...customWidth }
|
|
616
617
|
}
|
|
617
618
|
);
|
|
@@ -623,7 +624,7 @@ function useDynamicForm(props) {
|
|
|
623
624
|
commonRequest,
|
|
624
625
|
commonRequestWidthParams,
|
|
625
626
|
item: item.json,
|
|
626
|
-
readonly: readonly || ((
|
|
627
|
+
readonly: readonly || ((_r = item.json) == null ? void 0 : _r.readonly),
|
|
627
628
|
options: params,
|
|
628
629
|
handleUrlOptions,
|
|
629
630
|
value: formatValue,
|
|
@@ -644,7 +645,7 @@ function useDynamicForm(props) {
|
|
|
644
645
|
commonRequest,
|
|
645
646
|
commonRequestWidthParams,
|
|
646
647
|
item: item.json,
|
|
647
|
-
readonly: readonly || ((
|
|
648
|
+
readonly: readonly || ((_s = item.json) == null ? void 0 : _s.readonly),
|
|
648
649
|
options: params,
|
|
649
650
|
value: formatValue,
|
|
650
651
|
handleUrlOptions,
|
|
@@ -669,7 +670,7 @@ function useDynamicForm(props) {
|
|
|
669
670
|
uploadType: mode,
|
|
670
671
|
langId,
|
|
671
672
|
list: formatValue,
|
|
672
|
-
readonly: readonly || ((
|
|
673
|
+
readonly: readonly || ((_t = item.json) == null ? void 0 : _t.readonly),
|
|
673
674
|
relatedid,
|
|
674
675
|
relatedidKey,
|
|
675
676
|
onRemove: (file) => handleOnRemove(file)
|
|
@@ -696,7 +697,7 @@ function useDynamicForm(props) {
|
|
|
696
697
|
RadioCard,
|
|
697
698
|
{
|
|
698
699
|
item: item.json,
|
|
699
|
-
readonly: readonly || ((
|
|
700
|
+
readonly: readonly || ((_u = item.json) == null ? void 0 : _u.readonly),
|
|
700
701
|
onChange: (value) => {
|
|
701
702
|
form.setFieldValue(item.attrid, value);
|
|
702
703
|
},
|
|
@@ -711,7 +712,7 @@ function useDynamicForm(props) {
|
|
|
711
712
|
placeholder: message2 || placeholder,
|
|
712
713
|
...params,
|
|
713
714
|
showCount: true,
|
|
714
|
-
disabled: readonly || ((
|
|
715
|
+
disabled: readonly || ((_v = item.json) == null ? void 0 : _v.readonly),
|
|
715
716
|
style: { width, ...itemStyle == null ? void 0 : itemStyle.style, ...customWidth }
|
|
716
717
|
}
|
|
717
718
|
);
|
|
@@ -241,7 +241,7 @@ function useUniversalTable() {
|
|
|
241
241
|
});
|
|
242
242
|
return /* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: ((_b = newList == null ? void 0 : newList.join(delimiter)) == null ? void 0 : _b.replace(/br/g, "<br>")) || "-" } });
|
|
243
243
|
}
|
|
244
|
-
return /* @__PURE__ */ jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsx("span", { style: { cursor: "pointer" }, children:
|
|
244
|
+
return /* @__PURE__ */ jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsx("span", { style: { cursor: "pointer" }, children: getTitle == null ? void 0 : getTitle(otherLangPageId, text ?? "-") }) });
|
|
245
245
|
}
|
|
246
246
|
return text ?? "-";
|
|
247
247
|
}
|
|
@@ -377,7 +377,8 @@ function useUniversalTable() {
|
|
|
377
377
|
};
|
|
378
378
|
});
|
|
379
379
|
const searchParams = {
|
|
380
|
-
"sel-list": updatedSelList
|
|
380
|
+
"sel-list": updatedSelList,
|
|
381
|
+
...values
|
|
381
382
|
};
|
|
382
383
|
onSearch(searchParams);
|
|
383
384
|
};
|
|
@@ -432,7 +432,7 @@ function useDynamicForm(props) {
|
|
|
432
432
|
defaultWidth = 358,
|
|
433
433
|
customWidth = {}
|
|
434
434
|
}) => {
|
|
435
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
435
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
436
436
|
const mode = item.json.input || "text";
|
|
437
437
|
const format = ((_a = item.json) == null ? void 0 : _a.format) || "";
|
|
438
438
|
const attrid = item.attrid;
|
|
@@ -612,7 +612,8 @@ function useDynamicForm(props) {
|
|
|
612
612
|
antd.DatePicker,
|
|
613
613
|
{
|
|
614
614
|
multiple: true,
|
|
615
|
-
|
|
615
|
+
maxTagCount: ((_p = item == null ? void 0 : item.json) == null ? void 0 : _p["max-tag-count"]) || 2,
|
|
616
|
+
disabled: readonly || ((_q = item.json) == null ? void 0 : _q.readonly) || false,
|
|
616
617
|
style: { width, ...itemStyle == null ? void 0 : itemStyle.style, ...customWidth }
|
|
617
618
|
}
|
|
618
619
|
);
|
|
@@ -624,7 +625,7 @@ function useDynamicForm(props) {
|
|
|
624
625
|
commonRequest,
|
|
625
626
|
commonRequestWidthParams,
|
|
626
627
|
item: item.json,
|
|
627
|
-
readonly: readonly || ((
|
|
628
|
+
readonly: readonly || ((_r = item.json) == null ? void 0 : _r.readonly),
|
|
628
629
|
options: params,
|
|
629
630
|
handleUrlOptions: method.handleUrlOptions,
|
|
630
631
|
value: formatValue,
|
|
@@ -645,7 +646,7 @@ function useDynamicForm(props) {
|
|
|
645
646
|
commonRequest,
|
|
646
647
|
commonRequestWidthParams,
|
|
647
648
|
item: item.json,
|
|
648
|
-
readonly: readonly || ((
|
|
649
|
+
readonly: readonly || ((_s = item.json) == null ? void 0 : _s.readonly),
|
|
649
650
|
options: params,
|
|
650
651
|
value: formatValue,
|
|
651
652
|
handleUrlOptions: method.handleUrlOptions,
|
|
@@ -670,7 +671,7 @@ function useDynamicForm(props) {
|
|
|
670
671
|
uploadType: mode,
|
|
671
672
|
langId,
|
|
672
673
|
list: formatValue,
|
|
673
|
-
readonly: readonly || ((
|
|
674
|
+
readonly: readonly || ((_t = item.json) == null ? void 0 : _t.readonly),
|
|
674
675
|
relatedid,
|
|
675
676
|
relatedidKey,
|
|
676
677
|
onRemove: (file) => handleOnRemove(file)
|
|
@@ -697,7 +698,7 @@ function useDynamicForm(props) {
|
|
|
697
698
|
RadioCard,
|
|
698
699
|
{
|
|
699
700
|
item: item.json,
|
|
700
|
-
readonly: readonly || ((
|
|
701
|
+
readonly: readonly || ((_u = item.json) == null ? void 0 : _u.readonly),
|
|
701
702
|
onChange: (value) => {
|
|
702
703
|
form.setFieldValue(item.attrid, value);
|
|
703
704
|
},
|
|
@@ -712,7 +713,7 @@ function useDynamicForm(props) {
|
|
|
712
713
|
placeholder: message2 || placeholder,
|
|
713
714
|
...params,
|
|
714
715
|
showCount: true,
|
|
715
|
-
disabled: readonly || ((
|
|
716
|
+
disabled: readonly || ((_v = item.json) == null ? void 0 : _v.readonly),
|
|
716
717
|
style: { width, ...itemStyle == null ? void 0 : itemStyle.style, ...customWidth }
|
|
717
718
|
}
|
|
718
719
|
);
|
|
@@ -242,7 +242,7 @@ function useUniversalTable() {
|
|
|
242
242
|
});
|
|
243
243
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { dangerouslySetInnerHTML: { __html: ((_b = newList == null ? void 0 : newList.join(delimiter)) == null ? void 0 : _b.replace(/br/g, "<br>")) || "-" } });
|
|
244
244
|
}
|
|
245
|
-
return /* @__PURE__ */ jsxRuntime.jsx(antd.Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { cursor: "pointer" }, children:
|
|
245
|
+
return /* @__PURE__ */ jsxRuntime.jsx(antd.Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { cursor: "pointer" }, children: getTitle == null ? void 0 : getTitle(otherLangPageId, text ?? "-") }) });
|
|
246
246
|
}
|
|
247
247
|
return text ?? "-";
|
|
248
248
|
}
|
|
@@ -378,7 +378,8 @@ function useUniversalTable() {
|
|
|
378
378
|
};
|
|
379
379
|
});
|
|
380
380
|
const searchParams = {
|
|
381
|
-
"sel-list": updatedSelList
|
|
381
|
+
"sel-list": updatedSelList,
|
|
382
|
+
...values
|
|
382
383
|
};
|
|
383
384
|
onSearch(searchParams);
|
|
384
385
|
};
|