@fctc/sme-widget-ui 2.4.0 → 2.4.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 +270 -89
- package/dist/index.mjs +270 -89
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/dist/widgets.js +270 -89
- package/dist/widgets.mjs +270 -89
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9984,7 +9984,7 @@ var vi_default = {
|
|
|
9984
9984
|
invalid_number: "\u0110\u1ECBnh d\u1EA1ng s\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7",
|
|
9985
9985
|
upload_file_placeholder: "T\u1EA3i t\u1EC7p c\u1EE7a b\u1EA1n",
|
|
9986
9986
|
"no-available": "Kh\xF4ng c\xF3 l\u1EF1a ch\u1ECDn n\xE0o",
|
|
9987
|
-
paid_amount: "S\u1ED1 ti\u1EC1n \u0111\xE3 \
|
|
9987
|
+
paid_amount: "S\u1ED1 ti\u1EC1n \u0111\xE3 tr\u1EA3",
|
|
9988
9988
|
remanining_amount: "S\u1ED1 ti\u1EC1n c\xF2n l\u1EA1i",
|
|
9989
9989
|
only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh",
|
|
9990
9990
|
"text-only": "Ch\u1EC9 \u0111\u01B0\u1EE3c nh\u1EADp ch\u1EEF (kh\xF4ng ch\u1EE9a s\u1ED1 v\xE0 k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t)",
|
|
@@ -13114,64 +13114,70 @@ var TableHead = (props) => {
|
|
|
13114
13114
|
"data-type-co": col?.field?.type_co,
|
|
13115
13115
|
"data-rtc-resizable": col?.name,
|
|
13116
13116
|
className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
|
|
13117
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
13118
|
-
|
|
13119
|
-
|
|
13120
|
-
|
|
13121
|
-
|
|
13122
|
-
|
|
13123
|
-
|
|
13124
|
-
|
|
13125
|
-
|
|
13126
|
-
|
|
13127
|
-
|
|
13128
|
-
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
|
|
13137
|
-
|
|
13138
|
-
|
|
13139
|
-
|
|
13140
|
-
|
|
13141
|
-
|
|
13142
|
-
|
|
13143
|
-
|
|
13144
|
-
|
|
13145
|
-
|
|
13146
|
-
|
|
13147
|
-
minWidth: "12px",
|
|
13148
|
-
maxHeight: "12px",
|
|
13149
|
-
fontSize: "8px"
|
|
13150
|
-
},
|
|
13151
|
-
"data-tooltip-id": `field-help-${col?.field?.name}`,
|
|
13152
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
13153
|
-
"svg",
|
|
13117
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
13118
|
+
"div",
|
|
13119
|
+
{
|
|
13120
|
+
className: `cursor-pointer flex items-center gap-[4px] w-full group relative ${col?.field?.type === "monetary" && "justify-end"}`,
|
|
13121
|
+
children: [
|
|
13122
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
|
|
13123
|
+
col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
13124
|
+
(0, import_react_dom.createPortal)(
|
|
13125
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
13126
|
+
M,
|
|
13127
|
+
{
|
|
13128
|
+
style: {
|
|
13129
|
+
padding: "6px 12px",
|
|
13130
|
+
fontSize: "12px",
|
|
13131
|
+
borderRadius: "4px",
|
|
13132
|
+
maxWidth: "200px",
|
|
13133
|
+
whiteSpace: "wrap",
|
|
13134
|
+
fontWeight: 400,
|
|
13135
|
+
textTransform: "none",
|
|
13136
|
+
zIndex: "9999"
|
|
13137
|
+
},
|
|
13138
|
+
id: `field-help-${col?.field?.name}`,
|
|
13139
|
+
content: col?.field?.help,
|
|
13140
|
+
place: "top"
|
|
13141
|
+
}
|
|
13142
|
+
),
|
|
13143
|
+
document.body
|
|
13144
|
+
),
|
|
13145
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
13146
|
+
"span",
|
|
13154
13147
|
{
|
|
13155
|
-
|
|
13156
|
-
|
|
13157
|
-
|
|
13158
|
-
|
|
13159
|
-
|
|
13148
|
+
style: {
|
|
13149
|
+
width: "12px",
|
|
13150
|
+
height: "12px",
|
|
13151
|
+
minWidth: "12px",
|
|
13152
|
+
maxHeight: "12px",
|
|
13153
|
+
fontSize: "8px"
|
|
13154
|
+
},
|
|
13155
|
+
"data-tooltip-id": `field-help-${col?.field?.name}`,
|
|
13160
13156
|
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
13161
|
-
"
|
|
13157
|
+
"svg",
|
|
13162
13158
|
{
|
|
13163
|
-
|
|
13164
|
-
|
|
13165
|
-
|
|
13166
|
-
|
|
13159
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13160
|
+
width: "13",
|
|
13161
|
+
height: "13",
|
|
13162
|
+
viewBox: "0 0 13 13",
|
|
13163
|
+
fill: "none",
|
|
13164
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
13165
|
+
"path",
|
|
13166
|
+
{
|
|
13167
|
+
fillRule: "evenodd",
|
|
13168
|
+
clipRule: "evenodd",
|
|
13169
|
+
d: "M6.25 12.5C9.70178 12.5 12.5 9.70178 12.5 6.25C12.5 2.79822 9.70178 0 6.25 0C2.79822 0 0 2.79822 0 6.25C0 9.70178 2.79822 12.5 6.25 12.5ZM7.36584 9.45858L7.46565 9.0506C7.41399 9.07486 7.3307 9.10258 7.21649 9.13414C7.10197 9.1657 6.9989 9.18177 6.90831 9.18177C6.71536 9.18177 6.57952 9.15014 6.50065 9.08657C6.42236 9.023 6.38331 8.90342 6.38331 8.72827C6.38331 8.65887 6.39509 8.55542 6.41973 8.42003C6.44361 8.28373 6.47108 8.16261 6.50161 8.05666L6.87419 6.73759C6.91068 6.61653 6.93571 6.48344 6.94916 6.33818C6.96292 6.19325 6.96932 6.09185 6.96932 6.03429C6.96932 5.75614 6.87182 5.53041 6.67676 5.35629C6.4817 5.18229 6.20393 5.09529 5.84396 5.09529C5.64365 5.09529 5.43188 5.13088 5.20776 5.202C4.98363 5.27294 4.74933 5.3584 4.50421 5.4582L4.40415 5.8665C4.47719 5.83949 4.56419 5.81043 4.66598 5.78034C4.76732 5.75038 4.86674 5.73489 4.96347 5.73489C5.16096 5.73489 5.29399 5.76856 5.3637 5.83488C5.43342 5.90139 5.46844 6.0197 5.46844 6.18883C5.46844 6.28236 5.45736 6.38626 5.43438 6.49919C5.41172 6.61282 5.38342 6.73298 5.35013 6.8598L4.97595 8.18419C4.94266 8.32336 4.91834 8.44787 4.90304 8.55843C4.88786 8.66886 4.88057 8.77724 4.88057 8.88262C4.88057 9.15482 4.98114 9.3792 5.18222 9.55627C5.38329 9.73264 5.66523 9.82143 6.02769 9.82143C6.26372 9.82143 6.47088 9.79057 6.64917 9.72854C6.82727 9.6667 7.06644 9.57675 7.36584 9.45858ZM7.29946 4.1002C7.47352 3.93882 7.56014 3.74254 7.56014 3.51272C7.56014 3.28341 7.47365 3.08675 7.29946 2.92331C7.12584 2.76032 6.91657 2.67857 6.6719 2.67857C6.42646 2.67857 6.21635 2.76013 6.04107 2.92331C5.86579 3.08675 5.77796 3.28334 5.77796 3.51272C5.77796 3.74254 5.86579 3.93875 6.04107 4.1002C6.21667 4.26217 6.42639 4.34321 6.6719 4.34321C6.91664 4.34321 7.12584 4.26217 7.29946 4.1002Z",
|
|
13170
|
+
fill: "#C3C3C3"
|
|
13171
|
+
}
|
|
13172
|
+
)
|
|
13167
13173
|
}
|
|
13168
13174
|
)
|
|
13169
13175
|
}
|
|
13170
13176
|
)
|
|
13171
|
-
}
|
|
13172
|
-
|
|
13173
|
-
|
|
13174
|
-
|
|
13177
|
+
] })
|
|
13178
|
+
]
|
|
13179
|
+
}
|
|
13180
|
+
)
|
|
13175
13181
|
},
|
|
13176
13182
|
"table-head-" + index4
|
|
13177
13183
|
);
|
|
@@ -31997,54 +32003,229 @@ var FeeField = (props) => {
|
|
|
31997
32003
|
) + " VND";
|
|
31998
32004
|
const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
|
|
31999
32005
|
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
|
|
32000
|
-
value?.subtotals?.map((sub) => {
|
|
32006
|
+
value?.subtotals?.map((sub, idx) => {
|
|
32001
32007
|
if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
|
|
32002
|
-
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32003
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32004
|
-
|
|
32005
|
-
|
|
32006
|
-
|
|
32007
|
-
|
|
32008
|
-
|
|
32009
|
-
|
|
32008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { children: [
|
|
32009
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32010
|
+
"div",
|
|
32011
|
+
{
|
|
32012
|
+
style: {
|
|
32013
|
+
display: "grid",
|
|
32014
|
+
gridTemplateColumns: "1fr 1fr",
|
|
32015
|
+
gap: "8px 16px",
|
|
32016
|
+
minWidth: "300px",
|
|
32017
|
+
maxWidth: "fit-content",
|
|
32018
|
+
marginLeft: "auto"
|
|
32019
|
+
},
|
|
32020
|
+
children: [
|
|
32021
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32022
|
+
"div",
|
|
32023
|
+
{
|
|
32024
|
+
style: {
|
|
32025
|
+
fontSize: "14px",
|
|
32026
|
+
lineHeight: "21px",
|
|
32027
|
+
textAlign: "right"
|
|
32028
|
+
},
|
|
32029
|
+
children: [
|
|
32030
|
+
sub?.name,
|
|
32031
|
+
":"
|
|
32032
|
+
]
|
|
32033
|
+
}
|
|
32034
|
+
),
|
|
32035
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
32036
|
+
"div",
|
|
32037
|
+
{
|
|
32038
|
+
style: {
|
|
32039
|
+
fontSize: "14px",
|
|
32040
|
+
lineHeight: "21px",
|
|
32041
|
+
textAlign: "right",
|
|
32042
|
+
color: "rgb(73,80,87)",
|
|
32043
|
+
fontWeight: 600
|
|
32044
|
+
},
|
|
32045
|
+
children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND"
|
|
32046
|
+
}
|
|
32047
|
+
)
|
|
32048
|
+
]
|
|
32049
|
+
}
|
|
32050
|
+
),
|
|
32010
32051
|
sub?.tax_groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32011
32052
|
"div",
|
|
32012
32053
|
{
|
|
32013
|
-
|
|
32054
|
+
style: {
|
|
32055
|
+
display: "grid",
|
|
32056
|
+
gridTemplateColumns: "1fr 1fr",
|
|
32057
|
+
gap: "8px 16px",
|
|
32058
|
+
minWidth: "300px",
|
|
32059
|
+
maxWidth: "fit-content",
|
|
32060
|
+
marginLeft: "auto",
|
|
32061
|
+
marginTop: "8px"
|
|
32062
|
+
},
|
|
32014
32063
|
children: [
|
|
32015
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32016
|
-
|
|
32017
|
-
|
|
32018
|
-
|
|
32019
|
-
|
|
32064
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32065
|
+
"div",
|
|
32066
|
+
{
|
|
32067
|
+
style: {
|
|
32068
|
+
fontSize: "14px",
|
|
32069
|
+
lineHeight: "21px",
|
|
32070
|
+
textAlign: "right"
|
|
32071
|
+
},
|
|
32072
|
+
children: [
|
|
32073
|
+
group?.group_name,
|
|
32074
|
+
":"
|
|
32075
|
+
]
|
|
32076
|
+
}
|
|
32077
|
+
),
|
|
32078
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
32079
|
+
"div",
|
|
32080
|
+
{
|
|
32081
|
+
style: {
|
|
32082
|
+
fontSize: "14px",
|
|
32083
|
+
lineHeight: "21px",
|
|
32084
|
+
textAlign: "right",
|
|
32085
|
+
color: "rgb(73,80,87)"
|
|
32086
|
+
},
|
|
32087
|
+
children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND"
|
|
32088
|
+
}
|
|
32089
|
+
)
|
|
32020
32090
|
]
|
|
32021
32091
|
},
|
|
32022
32092
|
`tax_groups_${group?.id}`
|
|
32023
32093
|
))
|
|
32024
|
-
] });
|
|
32094
|
+
] }, `subtotal_${idx}`);
|
|
32025
32095
|
}
|
|
32026
32096
|
}),
|
|
32027
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32028
|
-
|
|
32029
|
-
|
|
32030
|
-
|
|
32031
|
-
|
|
32032
|
-
|
|
32033
|
-
|
|
32034
|
-
|
|
32035
|
-
|
|
32036
|
-
|
|
32037
|
-
|
|
32038
|
-
|
|
32039
|
-
|
|
32040
|
-
|
|
32041
|
-
|
|
32042
|
-
|
|
32043
|
-
|
|
32044
|
-
|
|
32045
|
-
|
|
32046
|
-
|
|
32047
|
-
|
|
32097
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32098
|
+
"div",
|
|
32099
|
+
{
|
|
32100
|
+
style: {
|
|
32101
|
+
display: "grid",
|
|
32102
|
+
gridTemplateColumns: "1fr 1fr",
|
|
32103
|
+
gap: "8px 16px",
|
|
32104
|
+
minWidth: "300px",
|
|
32105
|
+
maxWidth: "fit-content",
|
|
32106
|
+
marginLeft: "auto",
|
|
32107
|
+
marginTop: "8px",
|
|
32108
|
+
paddingTop: "8px"
|
|
32109
|
+
},
|
|
32110
|
+
children: [
|
|
32111
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32112
|
+
"div",
|
|
32113
|
+
{
|
|
32114
|
+
style: {
|
|
32115
|
+
fontSize: "14px",
|
|
32116
|
+
lineHeight: "21px",
|
|
32117
|
+
textAlign: "right"
|
|
32118
|
+
},
|
|
32119
|
+
children: [
|
|
32120
|
+
t3("total"),
|
|
32121
|
+
":"
|
|
32122
|
+
]
|
|
32123
|
+
}
|
|
32124
|
+
),
|
|
32125
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
32126
|
+
"div",
|
|
32127
|
+
{
|
|
32128
|
+
style: {
|
|
32129
|
+
fontSize: "20px",
|
|
32130
|
+
lineHeight: "21px",
|
|
32131
|
+
fontWeight: "bold",
|
|
32132
|
+
color: "rgb(73,80,87)",
|
|
32133
|
+
textAlign: "right"
|
|
32134
|
+
},
|
|
32135
|
+
children: totalAmount
|
|
32136
|
+
}
|
|
32137
|
+
)
|
|
32138
|
+
]
|
|
32139
|
+
}
|
|
32140
|
+
),
|
|
32141
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32142
|
+
"div",
|
|
32143
|
+
{
|
|
32144
|
+
style: {
|
|
32145
|
+
display: "grid",
|
|
32146
|
+
gridTemplateColumns: "1fr 1fr",
|
|
32147
|
+
gap: "8px 16px",
|
|
32148
|
+
minWidth: "300px",
|
|
32149
|
+
maxWidth: "fit-content",
|
|
32150
|
+
marginLeft: "auto",
|
|
32151
|
+
marginTop: "8px",
|
|
32152
|
+
paddingTop: "8px",
|
|
32153
|
+
borderTop: "1px solid #c4c4c4ee"
|
|
32154
|
+
},
|
|
32155
|
+
children: [
|
|
32156
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32157
|
+
"div",
|
|
32158
|
+
{
|
|
32159
|
+
style: {
|
|
32160
|
+
fontSize: "14px",
|
|
32161
|
+
lineHeight: "21px",
|
|
32162
|
+
textAlign: "right"
|
|
32163
|
+
},
|
|
32164
|
+
children: [
|
|
32165
|
+
t3("paid_amount"),
|
|
32166
|
+
":"
|
|
32167
|
+
]
|
|
32168
|
+
}
|
|
32169
|
+
),
|
|
32170
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
32171
|
+
"div",
|
|
32172
|
+
{
|
|
32173
|
+
style: {
|
|
32174
|
+
fontSize: "18px",
|
|
32175
|
+
lineHeight: "21px",
|
|
32176
|
+
fontWeight: 600,
|
|
32177
|
+
color: "rgb(73,80,87)",
|
|
32178
|
+
textAlign: "right"
|
|
32179
|
+
},
|
|
32180
|
+
children: paid_amount
|
|
32181
|
+
}
|
|
32182
|
+
)
|
|
32183
|
+
]
|
|
32184
|
+
}
|
|
32185
|
+
),
|
|
32186
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32187
|
+
"div",
|
|
32188
|
+
{
|
|
32189
|
+
style: {
|
|
32190
|
+
display: "grid",
|
|
32191
|
+
gridTemplateColumns: "1fr 1fr",
|
|
32192
|
+
gap: "8px 16px",
|
|
32193
|
+
minWidth: "300px",
|
|
32194
|
+
maxWidth: "fit-content",
|
|
32195
|
+
marginLeft: "auto",
|
|
32196
|
+
marginTop: "8px"
|
|
32197
|
+
},
|
|
32198
|
+
children: [
|
|
32199
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
32200
|
+
"div",
|
|
32201
|
+
{
|
|
32202
|
+
style: {
|
|
32203
|
+
fontSize: "14px",
|
|
32204
|
+
lineHeight: "21px",
|
|
32205
|
+
textAlign: "right"
|
|
32206
|
+
},
|
|
32207
|
+
children: [
|
|
32208
|
+
t3("remanining_amount"),
|
|
32209
|
+
":"
|
|
32210
|
+
]
|
|
32211
|
+
}
|
|
32212
|
+
),
|
|
32213
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
32214
|
+
"div",
|
|
32215
|
+
{
|
|
32216
|
+
style: {
|
|
32217
|
+
fontSize: "18px",
|
|
32218
|
+
lineHeight: "21px",
|
|
32219
|
+
fontWeight: 600,
|
|
32220
|
+
color: "rgb(73,80,87)",
|
|
32221
|
+
textAlign: "right"
|
|
32222
|
+
},
|
|
32223
|
+
children: remaining_amount
|
|
32224
|
+
}
|
|
32225
|
+
)
|
|
32226
|
+
]
|
|
32227
|
+
}
|
|
32228
|
+
)
|
|
32048
32229
|
] });
|
|
32049
32230
|
};
|
|
32050
32231
|
|