@fctc/sme-widget-ui 1.0.7 → 1.0.8
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/.babelrc +7 -0
- package/dist/.editorconfig +10 -0
- package/dist/.eslintignore +6 -0
- package/dist/.eslintrc.cjs +66 -0
- package/dist/.gitattributes +4 -0
- package/dist/.prettierrc +4 -0
- package/dist/icons.js +8 -17
- package/dist/icons.mjs +39 -48
- package/dist/index.js +24 -30
- package/dist/index.mjs +236 -242
- package/dist/widgets.d.mts +2 -1
- package/dist/widgets.d.ts +2 -1
- package/dist/widgets.js +24 -30
- package/dist/widgets.mjs +231 -237
- package/package.json +1 -1
package/dist/widgets.d.mts
CHANGED
|
@@ -39,6 +39,7 @@ interface TableBodyProps {
|
|
|
39
39
|
typeCo?: any;
|
|
40
40
|
setSelectedRowKeys?: any;
|
|
41
41
|
selectedRowKeys?: any;
|
|
42
|
+
isEditTable?: boolean;
|
|
42
43
|
}
|
|
43
44
|
declare const TableBody: (props: TableBodyProps) => JSX.Element;
|
|
44
45
|
|
|
@@ -276,7 +277,7 @@ interface ISelectDropdownProps extends IInputFieldProps {
|
|
|
276
277
|
selection?: [string | number, string][] | any;
|
|
277
278
|
}
|
|
278
279
|
|
|
279
|
-
declare const SelectDropdownField: (props: ISelectDropdownProps) =>
|
|
280
|
+
declare const SelectDropdownField: (props: ISelectDropdownProps) => any;
|
|
280
281
|
|
|
281
282
|
declare const TextAreaField: (props: IInputFieldProps) => JSX.Element;
|
|
282
283
|
|
package/dist/widgets.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ interface TableBodyProps {
|
|
|
39
39
|
typeCo?: any;
|
|
40
40
|
setSelectedRowKeys?: any;
|
|
41
41
|
selectedRowKeys?: any;
|
|
42
|
+
isEditTable?: boolean;
|
|
42
43
|
}
|
|
43
44
|
declare const TableBody: (props: TableBodyProps) => JSX.Element;
|
|
44
45
|
|
|
@@ -276,7 +277,7 @@ interface ISelectDropdownProps extends IInputFieldProps {
|
|
|
276
277
|
selection?: [string | number, string][] | any;
|
|
277
278
|
}
|
|
278
279
|
|
|
279
|
-
declare const SelectDropdownField: (props: ISelectDropdownProps) =>
|
|
280
|
+
declare const SelectDropdownField: (props: ISelectDropdownProps) => any;
|
|
280
281
|
|
|
281
282
|
declare const TextAreaField: (props: IInputFieldProps) => JSX.Element;
|
|
282
283
|
|
package/dist/widgets.js
CHANGED
|
@@ -6771,7 +6771,7 @@ var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
|
6771
6771
|
// src/icons/search-icon.tsx
|
|
6772
6772
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
6773
6773
|
var SearchIcon = () => {
|
|
6774
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.
|
|
6774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
6775
6775
|
"svg",
|
|
6776
6776
|
{
|
|
6777
6777
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6779,22 +6779,13 @@ var SearchIcon = () => {
|
|
|
6779
6779
|
height: "20",
|
|
6780
6780
|
viewBox: "0 0 20 20",
|
|
6781
6781
|
fill: "none",
|
|
6782
|
-
children:
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
),
|
|
6790
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
6791
|
-
"path",
|
|
6792
|
-
{
|
|
6793
|
-
d: "M18.3333 18.9585C18.175 18.9585 18.0167 18.9002 17.8917 18.7752L16.225 17.1085C15.9833 16.8669 15.9833 16.4669 16.225 16.2252C16.4667 15.9835 16.8667 15.9835 17.1083 16.2252L18.775 17.8919C19.0167 18.1335 19.0167 18.5335 18.775 18.7752C18.65 18.9002 18.4917 18.9585 18.3333 18.9585Z",
|
|
6794
|
-
fill: "#525252"
|
|
6795
|
-
}
|
|
6796
|
-
)
|
|
6797
|
-
]
|
|
6782
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
6783
|
+
"path",
|
|
6784
|
+
{
|
|
6785
|
+
d: "M14.5232 13.4627L17.7355 16.6742L16.6742 17.7355L13.4627 14.5232C12.2678 15.4812 10.7815 16.0022 9.25 16C5.524 16 2.5 12.976 2.5 9.25C2.5 5.524 5.524 2.5 9.25 2.5C12.976 2.5 16 5.524 16 9.25C16.0022 10.7815 15.4812 12.2678 14.5232 13.4627ZM13.0187 12.9062C13.9706 11.9274 14.5021 10.6153 14.5 9.25C14.5 6.349 12.1502 4 9.25 4C6.349 4 4 6.349 4 9.25C4 12.1502 6.349 14.5 9.25 14.5C10.6153 14.5021 11.9274 13.9706 12.9062 13.0187L13.0187 12.9062Z",
|
|
6786
|
+
fill: "#AEAEAE"
|
|
6787
|
+
}
|
|
6788
|
+
)
|
|
6798
6789
|
}
|
|
6799
6790
|
);
|
|
6800
6791
|
};
|
|
@@ -12018,7 +12009,8 @@ var TableBodyRow = (props) => {
|
|
|
12018
12009
|
checked,
|
|
12019
12010
|
isForm,
|
|
12020
12011
|
typeCo,
|
|
12021
|
-
selectedRowKeys
|
|
12012
|
+
selectedRowKeys,
|
|
12013
|
+
isEditTable
|
|
12022
12014
|
} = props;
|
|
12023
12015
|
const [isAutoSelect, setIsAutoSelect] = (0, import_react11.useState)(false);
|
|
12024
12016
|
const rootStyle = getComputedStyle(document.documentElement);
|
|
@@ -12063,16 +12055,16 @@ var TableBodyRow = (props) => {
|
|
|
12063
12055
|
checkedAll,
|
|
12064
12056
|
setIsAutoSelect,
|
|
12065
12057
|
isAutoSelect,
|
|
12066
|
-
s: true,
|
|
12067
12058
|
selectedRowKeysRef,
|
|
12068
|
-
setSelectedRowKeys
|
|
12059
|
+
setSelectedRowKeys,
|
|
12060
|
+
isEditTable
|
|
12069
12061
|
},
|
|
12070
12062
|
`record-${index4}`
|
|
12071
12063
|
);
|
|
12072
12064
|
}) : !isForm && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("td", { className: "w-full", colSpan: columns?.length + 2, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
12073
12065
|
"div",
|
|
12074
12066
|
{
|
|
12075
|
-
className: `flex flex-col items-center justify-center gap-3 ${typeCo === "form" ? "my-6" : "my-
|
|
12067
|
+
className: `flex flex-col items-center justify-center gap-3 ${typeCo === "form" ? "my-6" : "my-2"}`,
|
|
12076
12068
|
children: [
|
|
12077
12069
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(EmptyData, { className: colorPrimary }),
|
|
12078
12070
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "text-xl font-extrabold", children: i18n_default.t("empty_data") })
|
|
@@ -12081,7 +12073,7 @@ var TableBodyRow = (props) => {
|
|
|
12081
12073
|
) }) });
|
|
12082
12074
|
};
|
|
12083
12075
|
var TableBody = (props) => {
|
|
12084
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TableBodyRow, { ...props }) });
|
|
12076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("tbody", { className: "overflow-hidden z-0", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TableBodyRow, { ...props }) });
|
|
12085
12077
|
};
|
|
12086
12078
|
|
|
12087
12079
|
// src/widgets/advanced/table/table-filter.tsx
|
|
@@ -12331,11 +12323,11 @@ var TableHead = (props) => {
|
|
|
12331
12323
|
onRemoveRow,
|
|
12332
12324
|
onToggleColumnOptional
|
|
12333
12325
|
} = props;
|
|
12334
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("thead", { className: "relative z-
|
|
12326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("thead", { className: "relative z-10", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
12335
12327
|
"tr",
|
|
12336
12328
|
{
|
|
12337
12329
|
style: { userSelect: "none", WebkitUserSelect: "none" },
|
|
12338
|
-
className: "border-b-[1.5px] border-[
|
|
12330
|
+
className: "border-b-[1.5px] border-[rgba(66,66,66,0.12)] sticky top-0 bg-white z-[1]",
|
|
12339
12331
|
children: [
|
|
12340
12332
|
isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
12341
12333
|
"th",
|
|
@@ -33222,7 +33214,14 @@ var SelectDropdownField = (props) => {
|
|
|
33222
33214
|
label: val[1]
|
|
33223
33215
|
})) : [];
|
|
33224
33216
|
if (!isForm) {
|
|
33225
|
-
|
|
33217
|
+
const value2 = options2?.find((item) => item?.value === value2)?.label;
|
|
33218
|
+
return value2 && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
33219
|
+
"span",
|
|
33220
|
+
{
|
|
33221
|
+
className: `${props.className} px-2 py-1 rounded border text-xs font-medium leading-[16px]`,
|
|
33222
|
+
children: value2
|
|
33223
|
+
}
|
|
33224
|
+
);
|
|
33226
33225
|
} else {
|
|
33227
33226
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
33228
33227
|
Controller,
|
|
@@ -33840,15 +33839,10 @@ var Many2OneField = (props) => {
|
|
|
33840
33839
|
string,
|
|
33841
33840
|
//return
|
|
33842
33841
|
menuList,
|
|
33843
|
-
handleChooseRecord,
|
|
33844
|
-
handleClose,
|
|
33845
|
-
selectedRowKeys,
|
|
33846
33842
|
allowShowDetail,
|
|
33847
33843
|
index: index4,
|
|
33848
33844
|
contextObject,
|
|
33849
33845
|
renderDetail,
|
|
33850
|
-
isShowModalMany2Many,
|
|
33851
|
-
initValue,
|
|
33852
33846
|
tempSelectedOption,
|
|
33853
33847
|
options: options2,
|
|
33854
33848
|
fetchMoreOptions,
|