@opencitylabs/formio-custom-components 0.3.2 → 0.3.3
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +47 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8204,45 +8204,58 @@ const tm = ({ component: l, current: s, onChange: u, i18next: i }) => {
|
|
|
8204
8204
|
const V = 1024, A = M < 0 ? 0 : M, E = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], z = Math.floor(Math.log(w) / Math.log(V));
|
|
8205
8205
|
return `${parseFloat((w / Math.pow(V, z)).toFixed(A))} ${E[z]}`;
|
|
8206
8206
|
}
|
|
8207
|
-
return s.conditionallyHidden() || s.visible === !1 ? null : /* @__PURE__ */ m.jsx(m.Fragment, { children: y ? /* @__PURE__ */ m.
|
|
8208
|
-
|
|
8209
|
-
"
|
|
8207
|
+
return s.conditionallyHidden() || s.visible === !1 ? null : /* @__PURE__ */ m.jsx(m.Fragment, { children: y ? /* @__PURE__ */ m.jsxs("div", { children: [
|
|
8208
|
+
/* @__PURE__ */ m.jsxs(
|
|
8209
|
+
"label",
|
|
8210
8210
|
{
|
|
8211
|
-
className: "
|
|
8211
|
+
className: "col-form-label floating-label",
|
|
8212
|
+
htmlFor: `${l.id}-${l.key}`,
|
|
8212
8213
|
children: [
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
{
|
|
8216
|
-
"aria-hidden": "true",
|
|
8217
|
-
color: "primary",
|
|
8218
|
-
icon: "it-file",
|
|
8219
|
-
title: "Icona file",
|
|
8220
|
-
size: "sm"
|
|
8221
|
-
}
|
|
8222
|
-
),
|
|
8223
|
-
/* @__PURE__ */ m.jsxs("p", { children: [
|
|
8224
|
-
/* @__PURE__ */ m.jsx("span", { className: "visually-hidden", children: i.t("File caricato:") }),
|
|
8225
|
-
w.name,
|
|
8226
|
-
/* @__PURE__ */ m.jsx("span", { className: "upload-file-weight", children: T(w.size) })
|
|
8227
|
-
] })
|
|
8214
|
+
l.label,
|
|
8215
|
+
l.validate.required && /* @__PURE__ */ m.jsx("span", { className: "text-danger" })
|
|
8228
8216
|
]
|
|
8229
|
-
}
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
Xe,
|
|
8217
|
+
}
|
|
8218
|
+
),
|
|
8219
|
+
/* @__PURE__ */ m.jsxs("ul", { className: "upload-file-list", children: [
|
|
8220
|
+
x.map((w, M) => /* @__PURE__ */ m.jsxs(
|
|
8221
|
+
"li",
|
|
8235
8222
|
{
|
|
8236
|
-
"
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8223
|
+
className: "upload-file success mw-100",
|
|
8224
|
+
children: [
|
|
8225
|
+
/* @__PURE__ */ m.jsx(
|
|
8226
|
+
Xe,
|
|
8227
|
+
{
|
|
8228
|
+
"aria-hidden": "true",
|
|
8229
|
+
color: "primary",
|
|
8230
|
+
icon: "it-file",
|
|
8231
|
+
title: "Icona file",
|
|
8232
|
+
size: "sm"
|
|
8233
|
+
}
|
|
8234
|
+
),
|
|
8235
|
+
/* @__PURE__ */ m.jsxs("p", { children: [
|
|
8236
|
+
/* @__PURE__ */ m.jsx("span", { className: "visually-hidden", children: i.t("File caricato:") }),
|
|
8237
|
+
w.name,
|
|
8238
|
+
/* @__PURE__ */ m.jsx("span", { className: "upload-file-weight", children: T(w.size) })
|
|
8239
|
+
] })
|
|
8240
|
+
]
|
|
8241
|
+
},
|
|
8242
|
+
w.size + M
|
|
8243
|
+
)),
|
|
8244
|
+
x.length < 1 && /* @__PURE__ */ m.jsxs("li", { className: "upload-file text-secondary mw-100", children: [
|
|
8245
|
+
/* @__PURE__ */ m.jsx(
|
|
8246
|
+
Xe,
|
|
8247
|
+
{
|
|
8248
|
+
"aria-hidden": "true",
|
|
8249
|
+
color: "light",
|
|
8250
|
+
icon: "it-files",
|
|
8251
|
+
title: "Icona file",
|
|
8252
|
+
size: "sm"
|
|
8253
|
+
}
|
|
8254
|
+
),
|
|
8255
|
+
/* @__PURE__ */ m.jsx("p", { children: i.t("Nessun elemento") })
|
|
8256
|
+
] })
|
|
8244
8257
|
] })
|
|
8245
|
-
] })
|
|
8258
|
+
] }) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
8246
8259
|
l.hideLabel || l.hidden ? "" : /* @__PURE__ */ m.jsxs(
|
|
8247
8260
|
"label",
|
|
8248
8261
|
{
|