@opencitylabs/formio-custom-components 0.8.1 → 0.8.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.iife.js +2 -2
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -756,7 +756,7 @@ var je = {
|
|
|
756
756
|
matchPatterns: {
|
|
757
757
|
narrow: /^[jfmasond]/i,
|
|
758
758
|
abbreviated: /^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,
|
|
759
|
-
wide: /^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i
|
|
759
|
+
wide: /^(jänner|januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i
|
|
760
760
|
},
|
|
761
761
|
defaultMatchWidth: "wide",
|
|
762
762
|
parsePatterns: {
|
|
@@ -6688,20 +6688,20 @@ var Yn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6688
6688
|
}, 1e3));
|
|
6689
6689
|
}, []);
|
|
6690
6690
|
async function w(r) {
|
|
6691
|
-
let i, a = R() +
|
|
6691
|
+
let i, a = o?.language || "it", s = R() + `/${a}/upload`, c = {
|
|
6692
6692
|
mime_type: r.type,
|
|
6693
6693
|
name: r.name,
|
|
6694
6694
|
original_filename: r.name,
|
|
6695
6695
|
protocol_required: e.protocol_required,
|
|
6696
6696
|
size: r.size
|
|
6697
6697
|
};
|
|
6698
|
-
return await D.post(
|
|
6698
|
+
return await D.post(s, c, {
|
|
6699
6699
|
maxContentLength: Infinity,
|
|
6700
6700
|
maxBodyLength: Infinity
|
|
6701
|
-
}).then(async (
|
|
6702
|
-
...
|
|
6703
|
-
baseUrl: R() +
|
|
6704
|
-
}, te(i, r), await D.put(
|
|
6701
|
+
}).then(async (s) => (i = s.data.id, r.url = R() + `/${a}/allegati/` + i, r.storage = "url", r.mime_type = r.type, r.protocol_required = e.protocol_required, r.data = {
|
|
6702
|
+
...s.data,
|
|
6703
|
+
baseUrl: R() + `/${a}/allegati/` + i
|
|
6704
|
+
}, te(i, r), await D.put(s.data.uri, r, {
|
|
6705
6705
|
onUploadProgress: (e) => {
|
|
6706
6706
|
let t = Math.round(e.loaded * 100 / e.total);
|
|
6707
6707
|
f((e) => {
|
|
@@ -6712,10 +6712,10 @@ var Yn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6712
6712
|
maxContentLength: Infinity,
|
|
6713
6713
|
maxBodyLength: Infinity,
|
|
6714
6714
|
headers: { "Content-Type": "multipart/form-data" }
|
|
6715
|
-
}).then(async (
|
|
6716
|
-
let
|
|
6717
|
-
return await D.put(R() +
|
|
6718
|
-
file_hash:
|
|
6715
|
+
}).then(async (s) => {
|
|
6716
|
+
let c = s.headers.etag.replace(/\\|"/gi, "") || null;
|
|
6717
|
+
return await D.put(R() + `/${a}/upload/` + i, {
|
|
6718
|
+
file_hash: c,
|
|
6719
6719
|
check_signature: e.check_signature
|
|
6720
6720
|
}).then(async (a) => {
|
|
6721
6721
|
f((e) => {
|
|
@@ -6801,7 +6801,7 @@ var Yn = ({ component: e, current: t, onChange: n, i18next: o }) => {
|
|
|
6801
6801
|
"ZB",
|
|
6802
6802
|
"YB"
|
|
6803
6803
|
], a = Math.floor(Math.log(e) / Math.log(n));
|
|
6804
|
-
return `${parseFloat((e / n **
|
|
6804
|
+
return `${parseFloat((e / n ** a).toFixed(r))} ${i[a]}`;
|
|
6805
6805
|
}
|
|
6806
6806
|
return t.conditionallyHidden() || t.visible === !1 ? null : /* @__PURE__ */ i(r, { children: p ? /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ a("label", {
|
|
6807
6807
|
className: "col-form-label floating-label",
|