@adyen/bento-vue2 1.42.0 → 1.44.0
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/@types/index.d.ts +136 -53
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/button.js +7 -8
- package/dist/button.js.map +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.C1iwQWyj.js → action-bar.Dx12xlEW.js} +16 -16
- package/dist/chunks/action-bar.Dx12xlEW.js.map +1 -0
- package/dist/chunks/{base-modal.DroVbSCn.js → base-modal.BrqNR-ah.js} +2 -2
- package/dist/chunks/{base-modal.DroVbSCn.js.map → base-modal.BrqNR-ah.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.dp6C-PKX.js → button-actions-with-menu.ptKgeQEb.js} +38 -29
- package/dist/chunks/button-actions-with-menu.ptKgeQEb.js.map +1 -0
- package/dist/chunks/button-actions.BIQ3qA8q.js +252 -0
- package/dist/chunks/button-actions.BIQ3qA8q.js.map +1 -0
- package/dist/chunks/{card.BcjxzwZV.js → card.D9g7fZDX.js} +2 -2
- package/dist/chunks/{card.BcjxzwZV.js.map → card.D9g7fZDX.js.map} +1 -1
- package/dist/chunks/{checkbox-group.B1FsPVSl.js → checkbox-group.Bcqac3y8.js} +2 -2
- package/dist/chunks/{checkbox-group.B1FsPVSl.js.map → checkbox-group.Bcqac3y8.js.map} +1 -1
- package/dist/chunks/{checkbox.kd1EnszA.js → checkbox.B1qjI4R_.js} +15 -15
- package/dist/chunks/{checkbox.kd1EnszA.js.map → checkbox.B1qjI4R_.js.map} +1 -1
- package/dist/chunks/{code-snippet.DGMVhQoj.js → code-snippet.rmKiWrIv.js} +4 -4
- package/dist/chunks/{code-snippet.DGMVhQoj.js.map → code-snippet.rmKiWrIv.js.map} +1 -1
- package/dist/chunks/{dashboard-section.D8ey7nzl.js → dashboard-section._KVy37B0.js} +3 -3
- package/dist/chunks/{dashboard-section.D8ey7nzl.js.map → dashboard-section._KVy37B0.js.map} +1 -1
- package/dist/chunks/{dashed-underline.dGO33Q_E.js → dashed-underline.DX5QlK14.js} +2 -2
- package/dist/chunks/{dashed-underline.dGO33Q_E.js.map → dashed-underline.DX5QlK14.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BF7JMfoJ.js → data-grid-template.BgTUIoak.js} +2 -2
- package/dist/chunks/{data-grid-template.BF7JMfoJ.js.map → data-grid-template.BgTUIoak.js.map} +1 -1
- package/dist/chunks/data-grid.sAbzCVND.js +2556 -0
- package/dist/chunks/data-grid.sAbzCVND.js.map +1 -0
- package/dist/chunks/{date-picker.Dfg1_eo6.js → date-picker.DrSWxADA.js} +3 -3
- package/dist/chunks/{date-picker.Dfg1_eo6.js.map → date-picker.DrSWxADA.js.map} +1 -1
- package/dist/chunks/{date-range-picker.BvHFTptS.js → date-range-picker.CFIOD59O.js} +178 -175
- package/dist/chunks/date-range-picker.CFIOD59O.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.DPZmj7xJ.js → dropdown-default-textbox.ZAFh7KqG.js} +111 -103
- package/dist/chunks/{dropdown-default-textbox.DPZmj7xJ.js.map → dropdown-default-textbox.ZAFh7KqG.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DqgJnpjk.js → dropdown-tag.Ntdp7P7W.js} +2 -2
- package/dist/chunks/{dropdown-tag.DqgJnpjk.js.map → dropdown-tag.Ntdp7P7W.js.map} +1 -1
- package/dist/chunks/{dropdown.2tXfuDlU.js → dropdown.DC9un4VJ.js} +240 -234
- package/dist/chunks/{dropdown.2tXfuDlU.js.map → dropdown.DC9un4VJ.js.map} +1 -1
- package/dist/chunks/es6.C-HLzYPA.js +11 -0
- package/dist/chunks/es6.C-HLzYPA.js.map +1 -0
- package/dist/chunks/{file-uploader.CK-Frs_q.js → file-uploader.ItCr8Ezn.js} +228 -227
- package/dist/chunks/file-uploader.ItCr8Ezn.js.map +1 -0
- package/dist/chunks/{filter-bar.DP_nQeeo.js → filter-bar.Dowrph-Z.js} +21 -22
- package/dist/chunks/filter-bar.Dowrph-Z.js.map +1 -0
- package/dist/chunks/{footer-actions.DwnLB4NW.js → footer-actions.B3GJ1wNP.js} +2 -2
- package/dist/chunks/{footer-actions.DwnLB4NW.js.map → footer-actions.B3GJ1wNP.js.map} +1 -1
- package/dist/chunks/{header.CAJtHW1k.js → header.BLjdXtYJ.js} +4 -4
- package/dist/chunks/{header.CAJtHW1k.js.map → header.BLjdXtYJ.js.map} +1 -1
- package/dist/chunks/index.Gcw_BUVh.js +367 -0
- package/dist/chunks/index.Gcw_BUVh.js.map +1 -0
- package/dist/chunks/{input-field-password.ijBN-aVx.js → input-field-password.CgxF9jhq.js} +4 -4
- package/dist/chunks/{input-field-password.ijBN-aVx.js.map → input-field-password.CgxF9jhq.js.map} +1 -1
- package/dist/chunks/{input-field.BoElSWuV.js → input-field.CcjqGkLs.js} +2 -2
- package/dist/chunks/{input-field.BoElSWuV.js.map → input-field.CcjqGkLs.js.map} +1 -1
- package/dist/chunks/{layout-row.6jCBhtd4.js → layout-row.DzS_XyyF.js} +2 -2
- package/dist/chunks/{layout-row.6jCBhtd4.js.map → layout-row.DzS_XyyF.js.map} +1 -1
- package/dist/chunks/{menu.N41WnXc8.js → menu.B78fzH_k.js} +81 -54
- package/dist/chunks/menu.B78fzH_k.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.BbNe6M9T.js → modal-fullscreen.DgftXCJe.js} +2 -2
- package/dist/chunks/{modal-fullscreen.BbNe6M9T.js.map → modal-fullscreen.DgftXCJe.js.map} +1 -1
- package/dist/chunks/{modal.Cb4zg5fN.js → modal.BA745pfv.js} +4 -4
- package/dist/chunks/{modal.Cb4zg5fN.js.map → modal.BA745pfv.js.map} +1 -1
- package/dist/chunks/{pagination.FbkfItkS.js → pagination.CfwtuZ7R.js} +2 -2
- package/dist/chunks/{pagination.FbkfItkS.js.map → pagination.CfwtuZ7R.js.map} +1 -1
- package/dist/chunks/{popover.Uy-vuQq5.js → popover.ZlmaSYms.js} +2 -2
- package/dist/chunks/{popover.Uy-vuQq5.js.map → popover.ZlmaSYms.js.map} +1 -1
- package/dist/chunks/{promo-banner.CGz3MVPw.js → promo-banner.cTUF9seG.js} +2 -2
- package/dist/chunks/{promo-banner.CGz3MVPw.js.map → promo-banner.cTUF9seG.js.map} +1 -1
- package/dist/chunks/{search-bar.DD6eA0jG.js → search-bar.lYuXPzBX.js} +3 -3
- package/dist/chunks/{search-bar.DD6eA0jG.js.map → search-bar.lYuXPzBX.js.map} +1 -1
- package/dist/chunks/{secondary-nav.C56_jw55.js → secondary-nav.CF6WPYn4.js} +4 -4
- package/dist/chunks/{secondary-nav.C56_jw55.js.map → secondary-nav.CF6WPYn4.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DwkH9xJd.js → selection-card-group.CjuBQ2UA.js} +11 -11
- package/dist/chunks/{selection-card-group.DwkH9xJd.js.map → selection-card-group.CjuBQ2UA.js.map} +1 -1
- package/dist/chunks/{sidepanel.CRJN9Acz.js → sidepanel.NUx7L5f1.js} +2 -2
- package/dist/chunks/{sidepanel.CRJN9Acz.js.map → sidepanel.NUx7L5f1.js.map} +1 -1
- package/dist/chunks/{teleport.CQKBJZU5.js → teleport.B5fwsT5y.js} +26 -17
- package/dist/chunks/teleport.B5fwsT5y.js.map +1 -0
- package/dist/chunks/textarea.F-JyRtIw.js +196 -0
- package/dist/chunks/{textarea.Y3yd_3ll.js.map → textarea.F-JyRtIw.js.map} +1 -1
- package/dist/chunks/{timeline-item.CCV4U3Zx.js → timeline-item.BJyB8-Wv.js} +3 -3
- package/dist/chunks/{timeline-item.CCV4U3Zx.js.map → timeline-item.BJyB8-Wv.js.map} +1 -1
- package/dist/chunks/{tutorial.4r7MKNEU.js → tutorial.DFvMZAN5.js} +4 -4
- package/dist/chunks/{tutorial.4r7MKNEU.js.map → tutorial.DFvMZAN5.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.-_Gk6HO_.js → use-cached-selected-values.BiqVX5O7.js} +32 -29
- package/dist/chunks/{use-cached-selected-values.-_Gk6HO_.js.map → use-cached-selected-values.BiqVX5O7.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +88 -89
- package/dist/index.js.map +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/internal.js +28 -24
- package/dist/internal.js.map +1 -1
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/styles/bento-dark.css +3 -0
- package/dist/styles/bento-light.css +3 -0
- package/dist/styles/bento.css +3 -0
- package/dist/styles/legacy.css +3 -0
- package/dist/styles/styleguide.css +3 -0
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +122 -2
- package/package.json +7 -4
- package/dist/assets/loading-button.css +0 -1
- package/dist/chunks/action-bar.C1iwQWyj.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.dp6C-PKX.js.map +0 -1
- package/dist/chunks/button-actions.Cpx4PQp0.js +0 -111
- package/dist/chunks/button-actions.Cpx4PQp0.js.map +0 -1
- package/dist/chunks/data-grid.bti50Fs6.js +0 -2373
- package/dist/chunks/data-grid.bti50Fs6.js.map +0 -1
- package/dist/chunks/date-range-picker.BvHFTptS.js.map +0 -1
- package/dist/chunks/es6.b4enG1py.js +0 -10
- package/dist/chunks/es6.b4enG1py.js.map +0 -1
- package/dist/chunks/file-uploader.CK-Frs_q.js.map +0 -1
- package/dist/chunks/filter-bar.DP_nQeeo.js.map +0 -1
- package/dist/chunks/index.BiaBX5uu.js +0 -345
- package/dist/chunks/index.BiaBX5uu.js.map +0 -1
- package/dist/chunks/loading-button.CiPmvU7F.js +0 -113
- package/dist/chunks/loading-button.CiPmvU7F.js.map +0 -1
- package/dist/chunks/menu.N41WnXc8.js.map +0 -1
- package/dist/chunks/teleport.CQKBJZU5.js.map +0 -1
- package/dist/chunks/textarea.Y3yd_3ll.js +0 -192
- package/dist/chunks/use-click-outside.D6aIgS15.js +0 -14
- package/dist/chunks/use-click-outside.D6aIgS15.js.map +0 -1
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as D, ref as h, onUnmounted as ce, onMounted as ue, computed as u, watch as ee, reactive as A, toRef as de } from "vue";
|
|
2
2
|
import { n as f } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
3
|
-
import { W as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import { i as
|
|
10
|
-
import { C as
|
|
11
|
-
import { C as
|
|
12
|
-
import { R as
|
|
13
|
-
import { B as
|
|
14
|
-
import { B as
|
|
15
|
-
import { B as
|
|
16
|
-
import { E as
|
|
3
|
+
import { W as te } from "./warning-filled.CLKRzGMT.js";
|
|
4
|
+
import { B as pe } from "./alert.D2Z_aiFC.js";
|
|
5
|
+
import { B as se } from "./button.CufUNBkv.js";
|
|
6
|
+
import { B as U } from "./typography.Bu_WAKdf.js";
|
|
7
|
+
import { u as M } from "./i18n.BQkEbtPM.js";
|
|
8
|
+
import { g as Z } from "./generate-uid.D-HFI38h.js";
|
|
9
|
+
import { i as re } from "./index.Cl4_42j5.js";
|
|
10
|
+
import { C as fe } from "./checkmark-circle-fill.Cn7JN_Tk.js";
|
|
11
|
+
import { C as _e } from "./cross.CsUPDmaA.js";
|
|
12
|
+
import { R as me } from "./refresh.BKI9WwKh.js";
|
|
13
|
+
import { B as Ce } from "./link.v-y0fKjn.js";
|
|
14
|
+
import { B as ve } from "./loading-indicator.z8COalOc.js";
|
|
15
|
+
import { B as ge } from "./tooltip.DH8TqpYV.js";
|
|
16
|
+
import { E as he, F as Re } from "./error-message.B7uoqQpq.js";
|
|
17
17
|
import "../assets/file-uploader.css";
|
|
18
|
-
let
|
|
18
|
+
let N = 0;
|
|
19
19
|
const ye = {
|
|
20
20
|
beforeCreate() {
|
|
21
|
-
this.uuid =
|
|
21
|
+
this.uuid = N.toString(), N += 1;
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
var
|
|
24
|
+
var be = function() {
|
|
25
25
|
var e = this, t = e._self._c;
|
|
26
26
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M8.00011 0.939453L12.0608 5.00011L11.0001 6.06077L8.75 3.81066V11.75H7.25V3.81089L5.00011 6.06077L3.93945 5.00011L8.00011 0.939453Z" } }), t("path", { attrs: { fill: "#00112C", d: "M2.75 12.5V10.25H1.25V12.5C1.25 13.0967 1.48705 13.669 1.90901 14.091C2.33097 14.5129 2.90326 14.75 3.5 14.75H12.5C13.0967 14.75 13.669 14.5129 14.091 14.091C14.5129 13.669 14.75 13.0967 14.75 12.5V10.25H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5Z" } })]);
|
|
27
|
-
},
|
|
27
|
+
}, xe = [], Ee = /* @__PURE__ */ f(
|
|
28
28
|
ye,
|
|
29
|
-
xe,
|
|
30
29
|
be,
|
|
30
|
+
xe,
|
|
31
31
|
!1,
|
|
32
32
|
null,
|
|
33
33
|
null
|
|
34
34
|
);
|
|
35
|
-
const
|
|
35
|
+
const $e = Ee.exports, Le = /* @__PURE__ */ D({
|
|
36
36
|
__name: "file-uploader-file-card-animation",
|
|
37
37
|
props: {
|
|
38
38
|
name: null,
|
|
39
39
|
showFileIcon: { type: Boolean }
|
|
40
40
|
},
|
|
41
41
|
setup(r) {
|
|
42
|
-
return { __sfc: !0, isVue2:
|
|
42
|
+
return { __sfc: !0, isVue2: re };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
var
|
|
45
|
+
var Ie = function() {
|
|
46
46
|
var e = this, t = e._self._c, s = e._self._setupProxy;
|
|
47
47
|
return s.isVue2 ? t("Transition", { attrs: { name: e.name, mode: "out-in", css: e.showFileIcon } }, [e._t("default")], 2) : t("TransitionGroup", { attrs: { name: e.name, css: e.showFileIcon } }, [e._t("default")], 2);
|
|
48
|
-
},
|
|
49
|
-
$e,
|
|
48
|
+
}, we = [], Fe = /* @__PURE__ */ f(
|
|
50
49
|
Le,
|
|
51
50
|
Ie,
|
|
51
|
+
we,
|
|
52
52
|
!1,
|
|
53
53
|
null,
|
|
54
54
|
null
|
|
55
55
|
);
|
|
56
|
-
const
|
|
57
|
-
let
|
|
58
|
-
const
|
|
56
|
+
const Ve = Fe.exports;
|
|
57
|
+
let P = 0;
|
|
58
|
+
const Se = {
|
|
59
59
|
beforeCreate() {
|
|
60
|
-
this.uuid =
|
|
60
|
+
this.uuid = P.toString(), P += 1;
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
var
|
|
63
|
+
var He = function() {
|
|
64
64
|
var e = this, t = e._self._c;
|
|
65
65
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M7.25 6.25H5.75V12.75H7.25V6.25Z" } }), t("path", { attrs: { fill: "#00112C", d: "M8.75 6.25H10.25V12.75H8.75V6.25Z" } }), t("path", { attrs: { fill: "#00112C", d: "M14.75 3.24999H12.54L12.05 1.74999C11.9 1.29999 11.61 0.92999 11.22 0.64999C10.83 0.37999 10.34 0.24999 9.92 0.23999H6.09C5.64 0.23999 5.17 0.37999 4.78 0.64999C4.39 0.91999 4.11 1.29999 3.95 1.75999L3.46 3.23999H1.25V4.73999H2.32L3.14 13.7C3.19 14.26 3.45 14.78 3.86 15.16C4.27 15.54 4.81 15.75 5.37 15.75H10.64C11.2 15.75 11.74 15.54 12.15 15.16C12.57 14.78 12.82 14.26 12.87 13.7L13.69 4.73999H14.76V3.23999L14.75 3.24999ZM5.37 2.24999C5.42 2.09999 5.52 1.97999 5.64 1.88999C5.77 1.79999 5.92 1.74999 6.08 1.75999H9.93C10.08 1.75999 10.23 1.80999 10.35 1.88999C10.48 1.97999 10.57 2.09999 10.62 2.23999L10.95 3.25999H5.02L5.35 2.25999L5.37 2.24999ZM11.37 13.58C11.35 13.77 11.27 13.94 11.13 14.06C10.99 14.19 10.81 14.25 10.63 14.25H5.36C5.17 14.25 5 14.18 4.86 14.06C4.72 13.93 4.64 13.76 4.62 13.57L3.81 4.74999H12.17L11.36 13.57L11.37 13.58Z" } })]);
|
|
66
|
-
},
|
|
67
|
-
Ve,
|
|
66
|
+
}, De = [], Me = /* @__PURE__ */ f(
|
|
68
67
|
Se,
|
|
69
68
|
He,
|
|
69
|
+
De,
|
|
70
70
|
!1,
|
|
71
71
|
null,
|
|
72
72
|
null
|
|
73
73
|
);
|
|
74
|
-
const
|
|
75
|
-
function
|
|
76
|
-
const t =
|
|
74
|
+
const Te = Me.exports;
|
|
75
|
+
function Oe(r, e) {
|
|
76
|
+
const t = h(!1);
|
|
77
77
|
let s;
|
|
78
78
|
function n() {
|
|
79
79
|
s && s.disconnect();
|
|
80
80
|
}
|
|
81
|
-
return
|
|
81
|
+
return ce(() => {
|
|
82
82
|
n();
|
|
83
|
-
}),
|
|
83
|
+
}), ue(() => {
|
|
84
84
|
n(), s = new IntersectionObserver(
|
|
85
85
|
(a) => {
|
|
86
86
|
t.value = !a[0].isIntersecting;
|
|
@@ -92,29 +92,29 @@ function Me(r, e) {
|
|
|
92
92
|
), s.observe(r.value.$el);
|
|
93
93
|
}), t;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
95
|
+
const k = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
96
|
+
function ae(r, e) {
|
|
97
97
|
let t = 0, s = e;
|
|
98
|
-
for (; s >= 1e3 && t <
|
|
98
|
+
for (; s >= 1e3 && t < k.length - 1; )
|
|
99
99
|
s /= 1e3, t++;
|
|
100
100
|
return new Intl.NumberFormat(r, {
|
|
101
101
|
style: "unit",
|
|
102
|
-
unit:
|
|
102
|
+
unit: k[t],
|
|
103
103
|
unitDisplay: "short",
|
|
104
104
|
// Displays as "kB" instead of "kilobytes"
|
|
105
105
|
maximumFractionDigits: 2
|
|
106
106
|
// Limits to 2 decimal places
|
|
107
107
|
}).format(s);
|
|
108
108
|
}
|
|
109
|
-
var
|
|
110
|
-
const
|
|
109
|
+
var g = /* @__PURE__ */ ((r) => (r.LOADING = "loading", r.SUCCESS = "success", r.ERROR = "error", r))(g || {}), m = /* @__PURE__ */ ((r) => (r.ERROR_SIZE = "error-size", r.ERROR_LOAD = "error-load", r.ERROR_DIMENSIONS = "error-dimensions", r.ERROR_TYPE = "error-type", r))(m || {}), H = /* @__PURE__ */ ((r) => (r.DISABLED = "disabled", r.DRAG_OVER = "drag-over", r.ERROR = "error", r.READONLY = "readonly", r))(H || {}), l = /* @__PURE__ */ ((r) => (r.TABLE = "table", r.IMAGE = "image", r.VIDEO = "video", r.AUDIO = "audio", r.TEXT = "text", r.PDF = "pdf", r.SLIDES = "slides", r.COMPRESSED = "compressed", r.GENERIC = "generic", r))(l || {});
|
|
110
|
+
const Be = [
|
|
111
111
|
"application/msword",
|
|
112
112
|
// .doc
|
|
113
113
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
114
114
|
// .docx
|
|
115
115
|
"application/rtf"
|
|
116
116
|
// .rtf
|
|
117
|
-
],
|
|
117
|
+
], Ze = [
|
|
118
118
|
"application/vnd.ms-excel",
|
|
119
119
|
// .xls
|
|
120
120
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -127,14 +127,14 @@ const Oe = [
|
|
|
127
127
|
// .numbers
|
|
128
128
|
"text/csv"
|
|
129
129
|
// .csv
|
|
130
|
-
],
|
|
130
|
+
], Ue = [
|
|
131
131
|
"application/vnd.ms-powerpoint",
|
|
132
132
|
// .ppt
|
|
133
133
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
134
134
|
// .pptx
|
|
135
135
|
"application/vnd.oasis.opendocument.presentation"
|
|
136
136
|
// .odp
|
|
137
|
-
],
|
|
137
|
+
], ze = [
|
|
138
138
|
"application/zip",
|
|
139
139
|
// .zip
|
|
140
140
|
"application/vnd.rar",
|
|
@@ -156,10 +156,10 @@ const Oe = [
|
|
|
156
156
|
"application/vnd.ms-cab-compressed"
|
|
157
157
|
// .cab
|
|
158
158
|
];
|
|
159
|
-
function
|
|
160
|
-
return
|
|
159
|
+
function Ae(r) {
|
|
160
|
+
return Ze.includes(r.type) ? l.TABLE : r.type.startsWith("text/") || Be.includes(r.type) ? l.TEXT : r.type.startsWith("image/") ? l.IMAGE : r.type.startsWith("video/") ? l.VIDEO : r.type.startsWith("audio/") ? l.AUDIO : r.type === "application/pdf" ? l.PDF : Ue.includes(r.type) ? l.SLIDES : ze.includes(r.type) ? l.COMPRESSED : l.GENERIC;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Ne(r, e) {
|
|
163
163
|
if (!e)
|
|
164
164
|
return !0;
|
|
165
165
|
const t = e.split(",").map((s) => s.trim());
|
|
@@ -175,17 +175,17 @@ function Ae(r, e) {
|
|
|
175
175
|
return !0;
|
|
176
176
|
return !1;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Pe(r, e, t) {
|
|
179
179
|
const s = new FileReader(), n = r;
|
|
180
|
-
if (!
|
|
181
|
-
n.state =
|
|
180
|
+
if (!Ne(n.data, e)) {
|
|
181
|
+
n.state = g.ERROR, n.errors.push(m.ERROR_TYPE);
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
s.onload = (a) => {
|
|
185
185
|
if (t && n.type === l.IMAGE) {
|
|
186
|
-
const
|
|
186
|
+
const d = new Blob([a.target.result], { type: n.data.type }), C = URL.createObjectURL(d), c = new Image();
|
|
187
187
|
c.onload = function() {
|
|
188
|
-
(c.width > t.width || c.height > t.height) && (n.state =
|
|
188
|
+
(c.width > t.width || c.height > t.height) && (n.state = g.ERROR, n.errors.push(m.ERROR_DIMENSIONS)), URL.revokeObjectURL(C);
|
|
189
189
|
}, c.onerror = function() {
|
|
190
190
|
URL.revokeObjectURL(C);
|
|
191
191
|
}, c.src = C;
|
|
@@ -193,187 +193,187 @@ function Ne(r, e, t) {
|
|
|
193
193
|
}, s.onprogress = (a) => {
|
|
194
194
|
a.lengthComputable && (n.progress = a.loaded / a.total * 100);
|
|
195
195
|
}, s.onloadend = () => {
|
|
196
|
-
n.state !==
|
|
196
|
+
n.state !== g.ERROR && (n.state = g.SUCCESS), n.progress = null;
|
|
197
197
|
}, s.onerror = () => {
|
|
198
|
-
n.state =
|
|
198
|
+
n.state = g.ERROR, n.errors.push(m.ERROR_LOAD), n.progress = null;
|
|
199
199
|
}, s.readAsArrayBuffer(n.data);
|
|
200
200
|
}
|
|
201
|
-
let
|
|
202
|
-
const
|
|
201
|
+
let G = 0;
|
|
202
|
+
const ke = {
|
|
203
203
|
beforeCreate() {
|
|
204
|
-
this.uuid =
|
|
204
|
+
this.uuid = G.toString(), G += 1;
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
var
|
|
207
|
+
var Ge = function() {
|
|
208
208
|
var e = this, t = e._self._c;
|
|
209
209
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("g", { attrs: { "clip-path": "url(#uia-icons-16-attachment__a" + e.uuid + ")" } }, [t("path", { attrs: { fill: "#00112C", d: "M12.866 4.09026C11.5689 2.79315 9.4638 2.79315 8.1667 4.09026L2.7267 9.53026C1.95959 10.2974 1.95959 11.5425 2.7267 12.3096C3.49381 13.0767 4.73893 13.0767 5.50604 12.3096L10.946 6.8696C11.1831 6.63249 11.1831 6.24737 10.946 6.01026C10.7089 5.77316 10.3238 5.77316 10.0867 6.01026L4.75637 11.3406L3.69571 10.2799L9.02604 4.9496C9.84893 4.12671 11.1838 4.12671 12.0067 4.9496C12.8296 5.7725 12.8296 7.10737 12.0067 7.93026L6.5667 13.3703C5.2138 14.7232 3.01893 14.7232 1.66604 13.3703C0.313144 12.0174 0.313144 9.82249 1.66604 8.4696L7.10604 3.0296C8.98893 1.14671 12.0438 1.14671 13.9267 3.0296C15.8096 4.91249 15.8096 7.96737 13.9267 9.85026L11.1564 12.6206L10.0957 11.5599L12.866 8.7896C14.1631 7.49249 14.1631 5.38737 12.866 4.09026Z" } })]), t("defs", [t("clipPath", { attrs: { id: "uia-icons-16-attachment__a" + e.uuid } }, [t("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
210
|
-
}, We = [],
|
|
211
|
-
Pe,
|
|
210
|
+
}, We = [], je = /* @__PURE__ */ f(
|
|
212
211
|
ke,
|
|
212
|
+
Ge,
|
|
213
213
|
We,
|
|
214
214
|
!1,
|
|
215
215
|
null,
|
|
216
216
|
null
|
|
217
217
|
);
|
|
218
|
-
const
|
|
218
|
+
const Ye = je.exports;
|
|
219
219
|
let W = 0;
|
|
220
|
-
const
|
|
220
|
+
const qe = {
|
|
221
221
|
beforeCreate() {
|
|
222
222
|
this.uuid = W.toString(), W += 1;
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
|
-
var
|
|
225
|
+
var Xe = function() {
|
|
226
226
|
var e = this, t = e._self._c;
|
|
227
227
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M13.75 9.58159C14.3412 9.30073 14.75 8.6981 14.75 8V2C14.75 1.0335 13.9665 0.25 13 0.25H3C2.0335 0.25 1.25 1.0335 1.25 2V8C1.25 8.6981 1.65876 9.30073 2.25 9.58159V11C2.25 11.4641 2.43438 11.9092 2.76256 12.2374C2.90555 12.3804 3.07072 12.4961 3.25 12.5811V14C3.25 14.4641 3.43438 14.9092 3.76256 15.2374C4.09075 15.5656 4.53587 15.75 5 15.75H11C11.4641 15.75 11.9092 15.5656 12.2374 15.2374C12.5656 14.9092 12.75 14.4641 12.75 14V12.5811C12.9293 12.4961 13.0945 12.3804 13.2374 12.2374C13.5656 11.9092 13.75 11.4641 13.75 11V9.58159ZM3 1.75H13C13.1381 1.75 13.25 1.86193 13.25 2V8C13.25 8.13807 13.1381 8.25 13 8.25H3C2.86193 8.25 2.75 8.13807 2.75 8V2C2.75 1.86193 2.86193 1.75 3 1.75ZM12.25 9.75V11C12.25 11.0663 12.2237 11.1299 12.1768 11.1768C12.1299 11.2237 12.0663 11.25 12 11.25H4C3.9337 11.25 3.87011 11.2237 3.82322 11.1768C3.77634 11.1299 3.75 11.0663 3.75 11V9.75H12.25ZM11.25 12.75V14C11.25 14.0663 11.2237 14.1299 11.1768 14.1768C11.1299 14.2237 11.0663 14.25 11 14.25H5C4.9337 14.25 4.87011 14.2237 4.82322 14.1768C4.77634 14.1299 4.75 14.0663 4.75 14V12.75H11.25Z" } })]);
|
|
228
|
-
},
|
|
229
|
-
Ye,
|
|
228
|
+
}, Je = [], Ke = /* @__PURE__ */ f(
|
|
230
229
|
qe,
|
|
231
230
|
Xe,
|
|
231
|
+
Je,
|
|
232
232
|
!1,
|
|
233
233
|
null,
|
|
234
234
|
null
|
|
235
235
|
);
|
|
236
|
-
const
|
|
237
|
-
let
|
|
238
|
-
const
|
|
236
|
+
const Qe = Ke.exports;
|
|
237
|
+
let j = 0;
|
|
238
|
+
const et = {
|
|
239
239
|
beforeCreate() {
|
|
240
|
-
this.uuid =
|
|
240
|
+
this.uuid = j.toString(), j += 1;
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
|
-
var
|
|
243
|
+
var tt = function() {
|
|
244
244
|
var e = this, t = e._self._c;
|
|
245
245
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M13.75 13.5C13.75 14.7442 12.7442 15.75 11.5 15.75H4.5C3.25579 15.75 2.25 14.7442 2.25 13.5V2.5C2.25 1.25579 3.25579 0.25 4.5 0.25H9.31055L13.75 4.68728V13.5ZM3.75 2.5V13.5C3.75 13.9158 4.08421 14.25 4.5 14.25H11.5C11.9158 14.25 12.25 13.9158 12.25 13.5V6.75H9.5C8.25736 6.75 7.25 5.74264 7.25 4.5V1.75H4.5C4.08421 1.75 3.75 2.08421 3.75 2.5ZM8.75 1.81052V4.5C8.75 4.91421 9.08579 5.25 9.5 5.25H12.1912L8.75 1.81052Z" } })]);
|
|
246
|
-
},
|
|
247
|
-
Qe,
|
|
246
|
+
}, st = [], rt = /* @__PURE__ */ f(
|
|
248
247
|
et,
|
|
249
248
|
tt,
|
|
249
|
+
st,
|
|
250
250
|
!1,
|
|
251
251
|
null,
|
|
252
252
|
null
|
|
253
253
|
);
|
|
254
|
-
const
|
|
255
|
-
let
|
|
256
|
-
const
|
|
254
|
+
const at = rt.exports;
|
|
255
|
+
let Y = 0;
|
|
256
|
+
const it = {
|
|
257
257
|
beforeCreate() {
|
|
258
|
-
this.uuid =
|
|
258
|
+
this.uuid = Y.toString(), Y += 1;
|
|
259
259
|
}
|
|
260
260
|
};
|
|
261
|
-
var
|
|
261
|
+
var nt = function() {
|
|
262
262
|
var e = this, t = e._self._c;
|
|
263
263
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M10.7461 8.25V9.75H5.24609V8.25H10.7461Z" } }), t("path", { attrs: { fill: "#00112C", d: "M5.24609 11.25H10.7461V12.75H5.24609V11.25Z" } }), t("path", { attrs: { fill: "#00112C", d: "M13.7461 13.5C13.7461 14.7442 12.7403 15.75 11.4961 15.75H4.49609C3.25188 15.75 2.24609 14.7442 2.24609 13.5V2.5C2.24609 1.25579 3.25188 0.25 4.49609 0.25H9.30665L13.7461 4.68728V13.5ZM3.74609 2.5V13.5C3.74609 13.9158 4.08031 14.25 4.49609 14.25H11.4961C11.9119 14.25 12.2461 13.9158 12.2461 13.5V6.75H9.49609C8.25345 6.75 7.24609 5.74264 7.24609 4.5V1.75H4.49609C4.08031 1.75 3.74609 2.08421 3.74609 2.5ZM8.74609 1.81052V4.5C8.74609 4.91421 9.08188 5.25 9.49609 5.25H12.1873L8.74609 1.81052Z" } })]);
|
|
264
|
-
},
|
|
265
|
-
at,
|
|
264
|
+
}, ot = [], lt = /* @__PURE__ */ f(
|
|
266
265
|
it,
|
|
267
266
|
nt,
|
|
267
|
+
ot,
|
|
268
268
|
!1,
|
|
269
269
|
null,
|
|
270
270
|
null
|
|
271
271
|
);
|
|
272
|
-
const
|
|
273
|
-
let
|
|
274
|
-
const
|
|
272
|
+
const ct = lt.exports;
|
|
273
|
+
let q = 0;
|
|
274
|
+
const ut = {
|
|
275
275
|
beforeCreate() {
|
|
276
|
-
this.uuid =
|
|
276
|
+
this.uuid = q.toString(), q += 1;
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
var
|
|
279
|
+
var dt = function() {
|
|
280
280
|
var e = this, t = e._self._c;
|
|
281
281
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M1.24609 4.5C1.24609 3.25579 2.25188 2.25 3.49609 2.25H6.37609C6.97727 2.25 7.54738 2.49062 7.96642 2.90967L10.0864 5.02967C10.2274 5.17062 10.4173 5.25 10.6161 5.25H12.4961C13.7403 5.25 14.7461 6.25579 14.7461 7.5V12.5C14.7461 13.7442 13.7403 14.75 12.4961 14.75H3.49609C2.25188 14.75 1.24609 13.7442 1.24609 12.5V4.5ZM3.49609 3.75C3.08031 3.75 2.74609 4.08421 2.74609 4.5V12.5C2.74609 12.9158 3.08031 13.25 3.49609 13.25H12.4961C12.9119 13.25 13.2461 12.9158 13.2461 12.5V7.5C13.2461 7.08421 12.9119 6.75 12.4961 6.75H10.6161C10.0149 6.75 9.44481 6.50938 9.02576 6.09033L6.90576 3.97033C6.76481 3.82938 6.57492 3.75 6.37609 3.75H3.49609Z" } })]);
|
|
282
|
-
},
|
|
283
|
-
ct,
|
|
282
|
+
}, pt = [], ft = /* @__PURE__ */ f(
|
|
284
283
|
ut,
|
|
285
284
|
dt,
|
|
285
|
+
pt,
|
|
286
286
|
!1,
|
|
287
287
|
null,
|
|
288
288
|
null
|
|
289
289
|
);
|
|
290
|
-
const
|
|
291
|
-
let
|
|
292
|
-
const
|
|
290
|
+
const _t = ft.exports;
|
|
291
|
+
let X = 0;
|
|
292
|
+
const mt = {
|
|
293
293
|
beforeCreate() {
|
|
294
|
-
this.uuid =
|
|
294
|
+
this.uuid = X.toString(), X += 1;
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
|
-
var
|
|
297
|
+
var Ct = function() {
|
|
298
298
|
var e = this, t = e._self._c;
|
|
299
299
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M9.99609 3.24805C8.47731 3.24805 7.24609 4.47926 7.24609 5.99805C7.24609 7.51683 8.47731 8.74805 9.99609 8.74805C11.5149 8.74805 12.7461 7.51683 12.7461 5.99805C12.7461 4.47926 11.5149 3.24805 9.99609 3.24805ZM8.74609 5.99805C8.74609 5.30769 9.30574 4.74805 9.99609 4.74805C10.6865 4.74805 11.2461 5.30769 11.2461 5.99805C11.2461 6.6884 10.6865 7.24805 9.99609 7.24805C9.30574 7.24805 8.74609 6.6884 8.74609 5.99805Z" } }), t("path", { attrs: { fill: "#00112C", d: "M1.24609 3.49805C1.24609 2.25541 2.25345 1.24805 3.49609 1.24805H12.4961C13.7387 1.24805 14.7461 2.25541 14.7461 3.49805V12.498C14.7461 13.7407 13.7387 14.748 12.4961 14.748H3.49609C2.25345 14.748 1.24609 13.7407 1.24609 12.498V3.49805ZM3.49609 2.74805C3.08188 2.74805 2.74609 3.08383 2.74609 3.49805V6.68756L3.99615 5.4375L11.8067 13.248H12.4961C12.9103 13.248 13.2461 12.9123 13.2461 12.498V3.49805C13.2461 3.08383 12.9103 2.74805 12.4961 2.74805H3.49609ZM2.74609 12.498C2.74609 12.9123 3.08188 13.248 3.49609 13.248H9.68538L3.99615 7.55882L2.74609 8.80888V12.498Z" } })]);
|
|
300
|
-
},
|
|
301
|
-
_t,
|
|
300
|
+
}, vt = [], gt = /* @__PURE__ */ f(
|
|
302
301
|
mt,
|
|
303
302
|
Ct,
|
|
303
|
+
vt,
|
|
304
304
|
!1,
|
|
305
305
|
null,
|
|
306
306
|
null
|
|
307
307
|
);
|
|
308
|
-
const
|
|
309
|
-
let
|
|
310
|
-
const
|
|
308
|
+
const ht = gt.exports;
|
|
309
|
+
let J = 0;
|
|
310
|
+
const Rt = {
|
|
311
311
|
beforeCreate() {
|
|
312
|
-
this.uuid =
|
|
312
|
+
this.uuid = J.toString(), J += 1;
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
315
|
var yt = function() {
|
|
316
316
|
var e = this, t = e._self._c;
|
|
317
317
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-play_circle__a" + e.uuid + ")" } }, [t("path", { attrs: { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" } }), t("path", { attrs: { d: "M5.0342 0.839937C6.45033 0.253358 8.0086 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM9.21931 1.8701C8.00693 1.62894 6.75027 1.75271 5.60823 2.22576C4.46619 2.6988 3.49007 3.49988 2.80331 4.52769C2.11656 5.5555 1.75 6.76387 1.75 8C1.75 9.65761 2.40848 11.2473 3.58058 12.4194C4.75268 13.5915 6.3424 14.25 8 14.25C9.23613 14.25 10.4445 13.8834 11.4723 13.1967C12.5001 12.5099 13.3012 11.5338 13.7742 10.3918C14.2473 9.24974 14.3711 7.99307 14.1299 6.78069C13.8887 5.56831 13.2935 4.45466 12.4194 3.58059C11.5453 2.70651 10.4317 2.11125 9.21931 1.8701Z" } })]), t("defs", [t("clipPath", { attrs: { id: "uia-icons-16-play_circle__a" + e.uuid } }, [t("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
318
|
-
},
|
|
319
|
-
|
|
318
|
+
}, bt = [], xt = /* @__PURE__ */ f(
|
|
319
|
+
Rt,
|
|
320
320
|
yt,
|
|
321
|
-
|
|
321
|
+
bt,
|
|
322
322
|
!1,
|
|
323
323
|
null,
|
|
324
324
|
null
|
|
325
325
|
);
|
|
326
|
-
const
|
|
327
|
-
let
|
|
328
|
-
const
|
|
326
|
+
const Et = xt.exports;
|
|
327
|
+
let K = 0;
|
|
328
|
+
const $t = {
|
|
329
329
|
beforeCreate() {
|
|
330
|
-
this.uuid =
|
|
330
|
+
this.uuid = K.toString(), K += 1;
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
|
-
var
|
|
333
|
+
var Lt = function() {
|
|
334
334
|
var e = this, t = e._self._c;
|
|
335
335
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M5.68934 2.25H8.75V13.75H5.68934L2.68934 10.75H0.25V5.25H2.68934L5.68934 2.25ZM6.31066 3.75L3.31066 6.75H1.75V9.25H3.31066L6.31066 12.25H7.25V3.75H6.31066Z" } }), t("path", { attrs: { fill: "#00112C", d: "M13.0111 4.99174C12.2099 4.19982 11.1294 3.75 10 3.75V2.25C11.53 2.25 12.9888 2.85964 14.0675 3.92684L14.0703 3.92966C15.1527 5.01199 15.75 6.47347 15.75 8C15.75 9.52995 15.1404 10.9888 14.0732 12.0675L14.0703 12.0703C12.988 13.1527 11.5265 13.75 10 13.75V12.25C11.1328 12.25 12.2107 11.8079 13.0082 11.0111C13.8002 10.21 14.25 9.1294 14.25 8C14.25 6.8672 13.8079 5.78927 13.0111 4.99174Z" } }), t("path", { attrs: { fill: "#00112C", d: "M10 6.75V5.25C10.7257 5.25 11.4295 5.53694 11.9438 6.06319C12.4593 6.58041 12.75 7.26849 12.75 8C12.75 8.72573 12.4631 9.42951 11.9368 9.94383C11.4196 10.4593 10.7315 10.75 10 10.75V9.25C10.3268 9.25 10.6373 9.12206 10.8797 8.87967L10.8868 8.87265C11.1182 8.64727 11.25 8.33261 11.25 8C11.25 7.67317 11.1221 7.36272 10.8797 7.12033L10.8726 7.11321C10.6473 6.88175 10.3326 6.75 10 6.75Z" } })]);
|
|
336
|
-
},
|
|
337
|
-
Et,
|
|
336
|
+
}, It = [], wt = /* @__PURE__ */ f(
|
|
338
337
|
$t,
|
|
339
338
|
Lt,
|
|
339
|
+
It,
|
|
340
340
|
!1,
|
|
341
341
|
null,
|
|
342
342
|
null
|
|
343
343
|
);
|
|
344
|
-
const
|
|
345
|
-
let
|
|
346
|
-
const
|
|
344
|
+
const Ft = wt.exports;
|
|
345
|
+
let Q = 0;
|
|
346
|
+
const Vt = {
|
|
347
347
|
beforeCreate() {
|
|
348
|
-
this.uuid =
|
|
348
|
+
this.uuid = Q.toString(), Q += 1;
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
|
-
var
|
|
351
|
+
var St = function() {
|
|
352
352
|
var e = this, t = e._self._c;
|
|
353
353
|
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M3.5 1.25L3.49505 1.25002C2.90084 1.25394 2.33208 1.49173 1.91191 1.91191C1.49173 2.33208 1.25392 2.90084 1.25 3.49505V12.5C1.25 13.0967 1.48705 13.669 1.90901 14.091C2.33097 14.5129 2.90326 14.75 3.5 14.75H12.5C13.0967 14.75 13.669 14.5129 14.091 14.091C14.5129 13.669 14.75 13.0967 14.75 12.5V3.5C14.75 2.90326 14.5129 2.33097 14.091 1.90901C13.669 1.48705 13.0967 1.25 12.5 1.25H3.5ZM5.25 2.75V5.25H2.75V3.5029C2.75185 3.30382 2.83175 3.11338 2.97257 2.97257C3.11338 2.83175 3.30382 2.75185 3.5029 2.75H5.25ZM5.25 6.75V9.25H2.75V6.75H5.25ZM6.75 9.25V6.75H13.25V9.25H6.75ZM5.25 10.75V13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5V10.75H5.25ZM6.75 13.25V10.75H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H6.75ZM6.75 5.25V2.75H12.5C12.6989 2.75 12.8897 2.82902 13.0303 2.96967C13.171 3.11032 13.25 3.30109 13.25 3.5V5.25H6.75Z" } })]);
|
|
354
|
-
},
|
|
355
|
-
Ft,
|
|
354
|
+
}, Ht = [], Dt = /* @__PURE__ */ f(
|
|
356
355
|
Vt,
|
|
357
356
|
St,
|
|
357
|
+
Ht,
|
|
358
358
|
!1,
|
|
359
359
|
null,
|
|
360
360
|
null
|
|
361
361
|
);
|
|
362
|
-
const
|
|
363
|
-
[l.AUDIO]:
|
|
364
|
-
[l.COMPRESSED]:
|
|
365
|
-
[l.GENERIC]:
|
|
366
|
-
[l.IMAGE]:
|
|
367
|
-
[l.PDF]:
|
|
368
|
-
[l.SLIDES]:
|
|
369
|
-
[l.TABLE]:
|
|
370
|
-
[l.TEXT]:
|
|
371
|
-
[l.VIDEO]:
|
|
362
|
+
const Mt = Dt.exports, Tt = {
|
|
363
|
+
[l.AUDIO]: Ft,
|
|
364
|
+
[l.COMPRESSED]: _t,
|
|
365
|
+
[l.GENERIC]: Ye,
|
|
366
|
+
[l.IMAGE]: ht,
|
|
367
|
+
[l.PDF]: at,
|
|
368
|
+
[l.SLIDES]: Qe,
|
|
369
|
+
[l.TABLE]: Mt,
|
|
370
|
+
[l.TEXT]: ct,
|
|
371
|
+
[l.VIDEO]: Et
|
|
372
372
|
};
|
|
373
|
-
function Mt(r) {
|
|
374
|
-
return Dt[r.type];
|
|
375
|
-
}
|
|
376
373
|
function Ot(r) {
|
|
374
|
+
return Tt[r.type];
|
|
375
|
+
}
|
|
376
|
+
function Bt(r) {
|
|
377
377
|
switch (r.type) {
|
|
378
378
|
case l.COMPRESSED:
|
|
379
379
|
case l.GENERIC:
|
|
@@ -387,7 +387,7 @@ function Ot(r) {
|
|
|
387
387
|
return "green";
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
const
|
|
390
|
+
const Zt = {
|
|
391
391
|
"en-US": {
|
|
392
392
|
cancel: "Cancel",
|
|
393
393
|
fileExceedsSizeLimit: "File exceeds size limit",
|
|
@@ -406,38 +406,38 @@ const Bt = {
|
|
|
406
406
|
remove: "削除",
|
|
407
407
|
retry: "再試行"
|
|
408
408
|
}
|
|
409
|
-
},
|
|
409
|
+
}, Ut = {
|
|
410
410
|
name: "file-uploader-file-card",
|
|
411
|
-
i18n: { messages:
|
|
412
|
-
},
|
|
413
|
-
...
|
|
411
|
+
i18n: { messages: Zt }
|
|
412
|
+
}, zt = /* @__PURE__ */ D({
|
|
413
|
+
...Ut,
|
|
414
414
|
props: {
|
|
415
415
|
file: null,
|
|
416
416
|
supportedFileTypes: { default: null }
|
|
417
417
|
},
|
|
418
418
|
emits: ["cancel", "remove", "retry"],
|
|
419
419
|
setup(r, { emit: e }) {
|
|
420
|
-
const t = r, s = 1200, { t: n, locale: a } =
|
|
420
|
+
const t = r, s = 1200, { t: n, locale: a } = M(), d = h(t.file.state === g.SUCCESS), C = u(() => URL.createObjectURL(t.file.data)), c = u(() => t.file.state === g.ERROR), _ = u(() => t.file.errors.includes(m.ERROR_LOAD)), v = u(() => t.file.errors.includes(m.ERROR_SIZE)), y = u(() => t.file.errors.includes(m.ERROR_DIMENSIONS)), b = u(() => t.file.errors.includes(m.ERROR_TYPE)), x = u(() => t.file.state === g.LOADING), E = u(() => t.file.progress && `(${t.file.progress.toFixed(0)}%)`), T = u(() => ae(a.value, t.file.data.size)), w = h(), F = h(), V = Oe(w, F), S = u(() => ({
|
|
421
421
|
"b-file-uploader-file-card--error": c.value
|
|
422
|
-
})),
|
|
423
|
-
[`b-file-uploader-file-card__icon--${
|
|
422
|
+
})), O = u(() => ({
|
|
423
|
+
[`b-file-uploader-file-card__icon--${Bt(t.file)}`]: d.value,
|
|
424
424
|
"b-file-uploader-file-card__icon--error": c.value
|
|
425
|
-
})),
|
|
426
|
-
return
|
|
425
|
+
})), $ = u(() => x.value ? ve : c.value ? te : d.value ? Ot(t.file) : fe);
|
|
426
|
+
return ee(
|
|
427
427
|
() => t.file.state,
|
|
428
|
-
(
|
|
429
|
-
if (
|
|
430
|
-
const
|
|
431
|
-
|
|
428
|
+
(L) => {
|
|
429
|
+
if (L === g.SUCCESS && !d.value) {
|
|
430
|
+
const B = setTimeout(() => {
|
|
431
|
+
d.value = !0, clearTimeout(B);
|
|
432
432
|
}, s);
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
), { __sfc: !0, ICON_TIMER: s, props: t, emit: e, t: n, locale: a, showFileIcon:
|
|
435
|
+
), { __sfc: !0, ICON_TIMER: s, props: t, emit: e, t: n, locale: a, showFileIcon: d, downloadUrl: C, hasError: c, hasLoadError: _, hasSizeError: v, hasDimensionsError: y, hasTypeError: b, isLoading: x, progressLabel: E, sizeLabel: T, fileNameRef: w, fileNameContainerRef: F, isFileNameTruncated: V, conditionalClasses: S, conditionalIconClasses: O, fileUploaderIcon: $, isVue2: re, FileUploaderFileCardAnimation: Ve, BinIcon: Te, CrossIcon: _e, RefreshIcon: me, vBentoTooltipDirective: ge, BentoButton: se, BentoLink: Ce, BentoTypography: U };
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
|
-
var
|
|
438
|
+
var At = function() {
|
|
439
439
|
var e = this, t = e._self._c, s = e._self._setupProxy;
|
|
440
|
-
return t("div", { staticClass: "b-file-uploader-file-card", class: s.conditionalClasses }, [t("div", { staticClass: "b-file-uploader-file-card__details" }, [t("div", { staticClass: "b-file-uploader-file-card__info" }, [t(s.FileUploaderFileCardAnimation, { attrs: { name: s.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": s.showFileIcon } }, [t(s.fileUploaderIcon, { key: JSON.stringify(s.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: s.conditionalIconClasses, attrs: { small: "", "data-testid": "file-uploader-item-icon" } })], 1), t("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [t(s.BentoLink, { attrs: { download: e.file.data.name, to: s.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [t(s.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: s.isFileNameTruncated ? e.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [e._v(" " + e._s(e.file.data.name) + " ")])], 1)], 1), e.file.progress ? t(s.BentoTypography, { attrs: { el: "span" } }, [e._v(e._s(s.progressLabel))]) : e.file.data.size ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { el: "span" } }, [e._v(e._s(s.sizeLabel))]) : e._e()], 1), s.hasSizeError ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [e._v(" " + e._s(s.t("fileExceedsSizeLimit")) + " ")]) : s.hasDimensionsError ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [e._v(" " + e._s(s.t("imageDimensionsExceedLimits")) + " ")]) : s.hasTypeError && e.supportedFileTypes ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [e._v(" " + e._s(s.t("fileTypeMustBe", { list: e.supportedFileTypes })) + " ")]) : e._e()], 1), t("div", { staticClass: "b-file-uploader-file-card__actions" }, [s.hasLoadError ? t(s.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(n) {
|
|
440
|
+
return t("div", { staticClass: "b-file-uploader-file-card", class: s.conditionalClasses }, [t("div", { staticClass: "b-file-uploader-file-card__details" }, [t("div", { staticClass: "b-file-uploader-file-card__info" }, [t(s.FileUploaderFileCardAnimation, { attrs: { name: s.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": s.showFileIcon } }, [t(s.fileUploaderIcon, { key: JSON.stringify(s.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: s.conditionalIconClasses, attrs: { small: "", "data-testid": "file-uploader-item-icon" } })], 1), t("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [t(s.BentoLink, { attrs: { download: e.file.data.name, to: s.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [t(s.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: s.isFileNameTruncated ? e.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [e._v(" " + e._s(e.file.data.name) + " ")])], 1)], 1), e.file.progress ? t(s.BentoTypography, { attrs: { el: "span" } }, [e._v(e._s(s.progressLabel))]) : e.file.data.size ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { el: "span" } }, [e._v(e._s(s.sizeLabel))]) : e._e()], 1), s.hasSizeError ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [e._v(" " + e._s(s.t("fileExceedsSizeLimit")) + " ")]) : e._e(), s.hasDimensionsError ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [e._v(" " + e._s(s.t("imageDimensionsExceedLimits")) + " ")]) : e._e(), s.hasTypeError && e.supportedFileTypes ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [e._v(" " + e._s(s.t("fileTypeMustBe", { list: e.supportedFileTypes })) + " ")]) : e._e()], 1), t("div", { staticClass: "b-file-uploader-file-card__actions" }, [s.hasLoadError ? t(s.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(n) {
|
|
441
441
|
return s.emit("retry");
|
|
442
442
|
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
443
443
|
return [t(s.RefreshIcon, { attrs: { "svg-title": s.t("retry") } })];
|
|
@@ -450,15 +450,15 @@ var zt = function() {
|
|
|
450
450
|
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
451
451
|
return [t(s.BinIcon, { attrs: { "svg-title": s.t("remove") } })];
|
|
452
452
|
}, proxy: !0 }]) })], 1)]);
|
|
453
|
-
},
|
|
454
|
-
Ut,
|
|
453
|
+
}, Nt = [], Pt = /* @__PURE__ */ f(
|
|
455
454
|
zt,
|
|
456
455
|
At,
|
|
456
|
+
Nt,
|
|
457
457
|
!1,
|
|
458
458
|
null,
|
|
459
|
-
"
|
|
459
|
+
"56f32ebc"
|
|
460
460
|
);
|
|
461
|
-
const
|
|
461
|
+
const kt = Pt.exports, Gt = {
|
|
462
462
|
"en-US": {
|
|
463
463
|
maxFileSize: "Max file size: {size}",
|
|
464
464
|
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
@@ -468,8 +468,8 @@ const Pt = Nt.exports, kt = {
|
|
|
468
468
|
supportedFileTypes: "Supported file types: {list}"
|
|
469
469
|
}
|
|
470
470
|
}, Wt = {
|
|
471
|
-
i18n: { messages:
|
|
472
|
-
},
|
|
471
|
+
i18n: { messages: Gt }
|
|
472
|
+
}, jt = /* @__PURE__ */ D({
|
|
473
473
|
...Wt,
|
|
474
474
|
__name: "file-uploader-restrictions",
|
|
475
475
|
props: {
|
|
@@ -481,11 +481,11 @@ const Pt = Nt.exports, kt = {
|
|
|
481
481
|
supportedFileTypes: { default: null }
|
|
482
482
|
},
|
|
483
483
|
setup(r) {
|
|
484
|
-
const e = r, { t, tc: s, locale: n } =
|
|
484
|
+
const e = r, { t, tc: s, locale: n } = M(), a = u(() => ({
|
|
485
485
|
"b-file-uploader-restrictions--condensed": e.condensed,
|
|
486
486
|
"b-file-uploader-restrictions--disabled": e.disabled
|
|
487
487
|
}));
|
|
488
|
-
function
|
|
488
|
+
function d(c) {
|
|
489
489
|
return {
|
|
490
490
|
"b-file-uploader-restrictions--error": c
|
|
491
491
|
};
|
|
@@ -498,29 +498,29 @@ const Pt = Nt.exports, kt = {
|
|
|
498
498
|
} = e.maxDimensions;
|
|
499
499
|
return c && _ ? t("maxImageDimensions", { width: c, height: _ }) : c ? t("maxImageWidth", { width: c }) : _ ? t("maxImageHeight", { height: _ }) : null;
|
|
500
500
|
});
|
|
501
|
-
return { __sfc: !0, props: e, t, tc: s, locale: n, conditionalClasses: a, setRestrictionErrorClass:
|
|
501
|
+
return { __sfc: !0, props: e, t, tc: s, locale: n, conditionalClasses: a, setRestrictionErrorClass: d, maxDimensionsLabel: C, BentoTypography: U, formatFileSize: ae };
|
|
502
502
|
}
|
|
503
503
|
});
|
|
504
|
-
var
|
|
504
|
+
var Yt = function() {
|
|
505
505
|
var e = this, t = e._self._c, s = e._self._setupProxy;
|
|
506
506
|
return t("div", { staticClass: "b-file-uploader-restrictions", class: s.conditionalClasses }, [e.supportedFileTypes ? t(s.BentoTypography, { class: s.setRestrictionErrorClass(e.supportedFileTypes.error) }, [e._v(" " + e._s(s.t("supportedFileTypes", { list: e.supportedFileTypes.value })) + " ")]) : e._e(), e.maxSize ? t(s.BentoTypography, { class: s.setRestrictionErrorClass(e.maxSize.error) }, [e._v(" " + e._s(s.t("maxFileSize", { size: s.formatFileSize(s.locale, e.maxSize.value) })) + " ")]) : e._e(), e.maxDimensions ? t(s.BentoTypography, { class: s.setRestrictionErrorClass(e.maxDimensions.error) }, [e._v(" " + e._s(s.maxDimensionsLabel) + " ")]) : e._e(), e.maxCount ? t(s.BentoTypography, { class: s.setRestrictionErrorClass(e.maxCount.error) }, [e._v(" " + e._s(s.tc("maxUpload", e.maxCount.value)) + " ")]) : e._e()], 1);
|
|
507
|
-
},
|
|
508
|
-
Gt,
|
|
507
|
+
}, qt = [], Xt = /* @__PURE__ */ f(
|
|
509
508
|
jt,
|
|
510
509
|
Yt,
|
|
510
|
+
qt,
|
|
511
511
|
!1,
|
|
512
512
|
null,
|
|
513
513
|
"3c1d05d1"
|
|
514
514
|
);
|
|
515
|
-
const
|
|
516
|
-
function
|
|
517
|
-
const { locale: e, t } =
|
|
515
|
+
const Jt = Xt.exports;
|
|
516
|
+
function Kt(r) {
|
|
517
|
+
const { locale: e, t } = M();
|
|
518
518
|
return { supportedFileTypeList: u(() => {
|
|
519
519
|
const n = new Intl.ListFormat(e.value, { style: "short", type: "unit" });
|
|
520
520
|
return r != null && r.value ? n.format(
|
|
521
521
|
r.value.split(",").map((a) => {
|
|
522
|
-
const
|
|
523
|
-
switch (
|
|
522
|
+
const d = a.trim();
|
|
523
|
+
switch (d) {
|
|
524
524
|
case "audio/*":
|
|
525
525
|
return t("audioFiles");
|
|
526
526
|
case "image/*":
|
|
@@ -528,13 +528,13 @@ function Jt(r) {
|
|
|
528
528
|
case "video/*":
|
|
529
529
|
return t("videoFiles");
|
|
530
530
|
default:
|
|
531
|
-
return
|
|
531
|
+
return d.toUpperCase();
|
|
532
532
|
}
|
|
533
533
|
})
|
|
534
534
|
) : null;
|
|
535
535
|
}) };
|
|
536
536
|
}
|
|
537
|
-
const
|
|
537
|
+
const Qt = {
|
|
538
538
|
"en-US": {
|
|
539
539
|
audioFiles: "audio files",
|
|
540
540
|
browseFiles: "Browse files",
|
|
@@ -556,11 +556,11 @@ const Kt = {
|
|
|
556
556
|
upload: "アップロード",
|
|
557
557
|
warning: "警告"
|
|
558
558
|
}
|
|
559
|
-
},
|
|
559
|
+
}, es = {
|
|
560
560
|
model: { prop: "modelValue" },
|
|
561
|
-
i18n: { messages:
|
|
562
|
-
},
|
|
563
|
-
...
|
|
561
|
+
i18n: { messages: Qt }
|
|
562
|
+
}, ts = /* @__PURE__ */ D({
|
|
563
|
+
...es,
|
|
564
564
|
__name: "file-uploader",
|
|
565
565
|
props: {
|
|
566
566
|
accept: { default: null },
|
|
@@ -579,117 +579,118 @@ const Kt = {
|
|
|
579
579
|
},
|
|
580
580
|
emits: ["change", "update:modelValue"],
|
|
581
581
|
setup(r, { emit: e }) {
|
|
582
|
-
const t = r, { t: s, tc: n } =
|
|
582
|
+
const t = r, { t: s, tc: n } = M(), a = Z("input"), d = Z("input-error"), C = h(null), c = h(), _ = A({
|
|
583
583
|
dragging: !1,
|
|
584
584
|
error: !1
|
|
585
|
-
}), v =
|
|
586
|
-
[`b-file-uploader--${
|
|
587
|
-
[`b-file-uploader--${
|
|
588
|
-
[`b-file-uploader--${
|
|
585
|
+
}), v = h(null), { supportedFileTypeList: y } = Kt(de(t, "accept")), b = h(!1), x = u(() => !!t.errorMessage || _.error), E = u(() => t.maxCount > 1), T = u(() => ({
|
|
586
|
+
[`b-file-uploader--${H.DISABLED}`]: t.disabled,
|
|
587
|
+
[`b-file-uploader--${H.DRAG_OVER}`]: _.dragging,
|
|
588
|
+
[`b-file-uploader--${H.ERROR}`]: x.value,
|
|
589
589
|
"b-file-uploader--condensed": t.condensed
|
|
590
|
-
})),
|
|
590
|
+
})), w = u(() => {
|
|
591
591
|
var i;
|
|
592
592
|
return t.maxCount && ((i = v.value) == null ? void 0 : i.length) >= t.maxCount;
|
|
593
|
-
}),
|
|
594
|
-
var i, o,
|
|
593
|
+
}), F = u(() => {
|
|
594
|
+
var i, o, p;
|
|
595
595
|
return {
|
|
596
596
|
condensed: t.condensed,
|
|
597
597
|
disabled: t.disabled,
|
|
598
|
-
maxCount:
|
|
598
|
+
maxCount: E.value ? {
|
|
599
599
|
value: t.maxCount,
|
|
600
|
-
error:
|
|
600
|
+
error: b.value
|
|
601
601
|
} : null,
|
|
602
602
|
maxDimensions: t.maxDimensions ? {
|
|
603
603
|
value: t.maxDimensions,
|
|
604
|
-
error: (i = v.value) == null ? void 0 : i.some((
|
|
604
|
+
error: (i = v.value) == null ? void 0 : i.some((R) => R.errors.includes(m.ERROR_DIMENSIONS))
|
|
605
605
|
} : null,
|
|
606
606
|
maxSize: t.maxSize ? {
|
|
607
607
|
value: t.maxSize,
|
|
608
|
-
error: (o = v.value) == null ? void 0 : o.some((
|
|
608
|
+
error: (o = v.value) == null ? void 0 : o.some((R) => R.errors.includes(m.ERROR_SIZE))
|
|
609
609
|
} : null,
|
|
610
610
|
supportedFileTypes: y.value ? {
|
|
611
611
|
value: y.value,
|
|
612
|
-
error: (
|
|
612
|
+
error: (p = v.value) == null ? void 0 : p.some((R) => R.errors.includes(m.ERROR_TYPE))
|
|
613
613
|
} : null
|
|
614
614
|
};
|
|
615
615
|
});
|
|
616
|
-
function
|
|
616
|
+
function V(i) {
|
|
617
617
|
const o = t.maxCount && i.length <= t.maxCount;
|
|
618
|
-
|
|
618
|
+
b.value = !o;
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function S(i) {
|
|
621
621
|
t.maxSize && i.forEach((o) => {
|
|
622
|
-
const
|
|
623
|
-
|
|
622
|
+
const p = o;
|
|
623
|
+
p.data.size > t.maxSize && (p.state = g.ERROR, p.errors.push(m.ERROR_SIZE));
|
|
624
624
|
});
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function O(i) {
|
|
627
627
|
i.preventDefault(), t.disabled && (i.dataTransfer.dropEffect = "none");
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
const o =
|
|
631
|
-
id:
|
|
629
|
+
function $(i) {
|
|
630
|
+
const o = A({
|
|
631
|
+
id: Z("file"),
|
|
632
632
|
data: i,
|
|
633
|
-
|
|
634
|
-
|
|
633
|
+
errors: [],
|
|
634
|
+
state: g.LOADING,
|
|
635
|
+
type: Ae(i),
|
|
635
636
|
progress: null
|
|
636
637
|
});
|
|
637
|
-
return
|
|
638
|
+
return Pe(o, t.accept, t.maxDimensions), o;
|
|
638
639
|
}
|
|
639
|
-
function
|
|
640
|
-
|
|
640
|
+
function L(i) {
|
|
641
|
+
E.value ? v.value = [...v.value || [], ...Array.from(i).map((o) => $(o))] : v.value = [$(i[0])];
|
|
641
642
|
}
|
|
642
|
-
function
|
|
643
|
+
function B() {
|
|
643
644
|
var i, o;
|
|
644
645
|
if (t.maxCount === 1 && ((i = C.value.files) == null ? void 0 : i.length) > t.maxCount) {
|
|
645
|
-
|
|
646
|
+
I();
|
|
646
647
|
return;
|
|
647
648
|
}
|
|
648
|
-
(o = C.value.files) != null && o.length &&
|
|
649
|
+
(o = C.value.files) != null && o.length && L(C.value.files), C.value.value = "";
|
|
649
650
|
}
|
|
650
|
-
function
|
|
651
|
+
function I() {
|
|
651
652
|
c.value = null, !t.disabled && (_.dragging = !1, _.error = !1);
|
|
652
653
|
}
|
|
653
|
-
function
|
|
654
|
+
function ie(i) {
|
|
654
655
|
var o;
|
|
655
656
|
c.value = i.target, !t.disabled && (_.dragging = !0, (!i.dataTransfer.types.includes("Files") || ((o = i.dataTransfer.items) == null ? void 0 : o.length) > t.maxCount) && (_.error = !0));
|
|
656
657
|
}
|
|
657
|
-
function ie(i) {
|
|
658
|
-
c.value === i.target && L();
|
|
659
|
-
}
|
|
660
658
|
function ne(i) {
|
|
661
|
-
|
|
659
|
+
c.value === i.target && I();
|
|
660
|
+
}
|
|
661
|
+
function oe(i) {
|
|
662
|
+
var o, p;
|
|
662
663
|
if (!t.disabled) {
|
|
663
664
|
if (t.maxCount === 1 && ((o = i.dataTransfer.files) == null ? void 0 : o.length) > t.maxCount) {
|
|
664
|
-
|
|
665
|
+
I();
|
|
665
666
|
return;
|
|
666
667
|
}
|
|
667
|
-
(
|
|
668
|
+
(p = i.dataTransfer.files) != null && p.length && L(i.dataTransfer.files), I();
|
|
668
669
|
}
|
|
669
670
|
}
|
|
670
|
-
function
|
|
671
|
+
function le(i) {
|
|
671
672
|
v.value = v.value.filter(({ id: o }) => o !== i.id);
|
|
672
673
|
}
|
|
673
|
-
function
|
|
674
|
+
function z(i) {
|
|
674
675
|
const o = i.filter(
|
|
675
|
-
({
|
|
676
|
+
({ errors: p }) => !p.includes(m.ERROR_LOAD) && !p.includes(m.ERROR_SIZE)
|
|
676
677
|
);
|
|
677
678
|
if (o.length) {
|
|
678
|
-
const
|
|
679
|
-
return o.forEach(({ data:
|
|
679
|
+
const p = new DataTransfer();
|
|
680
|
+
return o.forEach(({ data: R }) => p.items.add(R)), p.files;
|
|
680
681
|
}
|
|
681
682
|
}
|
|
682
|
-
return
|
|
683
|
+
return ee(v, (i) => {
|
|
683
684
|
if (i) {
|
|
684
|
-
|
|
685
|
-
const o =
|
|
685
|
+
V(i), S(i);
|
|
686
|
+
const o = z(i);
|
|
686
687
|
e("change", o), e("update:modelValue", o);
|
|
687
688
|
} else
|
|
688
689
|
e("change"), e("update:modelValue");
|
|
689
|
-
}), { __sfc: !0, props: t, emit: e, t: s, tc: n, inputFieldId: a, errorId:
|
|
690
|
+
}), { __sfc: !0, props: t, emit: e, t: s, tc: n, inputFieldId: a, errorId: d, input: C, enterTarget: c, dragState: _, files: v, supportedFileTypeList: y, maxFileError: b, hasError: x, isMultiple: E, conditionalClasses: T, hideArea: w, fileUploadRestrictionsProps: F, verifyFileCount: V, verifyFileSize: S, onDragOver: O, processFile: $, onFileInput: L, onInputChange: B, resetDragState: I, onDragEnter: ie, onDragLeave: ne, onDrop: oe, removeFile: le, convertToFileList: z, UploadIcon: $e, WarningFilledIcon: te, BentoAlert: pe, BentoButton: se, BentoTypography: U, ErrorMessage: he, FieldLabel: Re, FileUploaderFileCard: kt, FileUploaderRestrictions: Jt };
|
|
690
691
|
}
|
|
691
692
|
});
|
|
692
|
-
var
|
|
693
|
+
var ss = function() {
|
|
693
694
|
var n;
|
|
694
695
|
var e = this, t = e._self._c, s = e._self._setupProxy;
|
|
695
696
|
return t("div", { staticClass: "b-file-uploader", class: s.conditionalClasses }, [t(s.FieldLabel, { staticClass: "b-file-uploader__label", attrs: { condensed: e.condensed, for: s.inputFieldId, label: e.label, optional: e.optional, required: e.required, "tooltip-text": e.tooltipText } }), t("input", { ref: "input", staticClass: "b-file-uploader__input", attrs: { id: s.inputFieldId, type: "file", tabindex: "-1", "data-testid": "input", accept: e.accept, disabled: e.disabled, multiple: s.isMultiple }, on: { change: s.onInputChange } }), s.hideArea ? e._e() : t("div", { staticClass: "b-file-uploader__area", attrs: { "aria-label": s.t("dropArea"), tabindex: e.disabled ? -1 : 0 }, on: { click: function(a) {
|
|
@@ -707,22 +708,22 @@ var t1 = function() {
|
|
|
707
708
|
}] } }, [t("div", { staticClass: "b-file-uploader__icon" }, [s.hasError ? t(s.WarningFilledIcon, { attrs: { "svg-title": s.t("warning") } }) : t(s.UploadIcon, { attrs: { "svg-title": s.t("upload") } })], 1), e.condensed ? e._e() : [t(s.BentoTypography, { staticClass: "b-file-uploader__title", attrs: { el: "span", strongest: "" } }, [e._v(" " + e._s(s.tc("dropFiles", +!s.isMultiple)) + " ")]), e.description ? t(s.BentoTypography, { staticClass: "b-file-uploader__description", attrs: { el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), t(s.FileUploaderRestrictions, e._b({}, "file-uploader-restrictions", s.fileUploadRestrictionsProps, !1))], t(s.BentoButton, { staticClass: "b-file-uploader__button", attrs: { disabled: e.disabled, variant: e.condensed ? "tertiary" : "secondary", condensed: "", tabindex: "-1" } }, [e._v(" " + e._s(s.t("browseFiles")) + " ")])], 2), s.hasError && e.errorMessage ? t(s.ErrorMessage, { staticClass: "b-file-uploader__error-message", attrs: { id: s.errorId, "error-message": e.errorMessage } }) : e._e(), e.condensed && e.description ? t(s.BentoTypography, { staticClass: "b-file-uploader__description b-file-uploader__description--condensed", attrs: { el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.condensed ? t(s.FileUploaderRestrictions, e._b({}, "file-uploader-restrictions", s.fileUploadRestrictionsProps, !1)) : e._e(), s.maxFileError ? t(s.BentoAlert, { staticClass: "b-file-uploader__alert", attrs: { type: "critical" }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
708
709
|
return [e._v(" " + e._s(s.t("youHaveExceededTheMaximum", { count: s.props.maxCount })) + " ")];
|
|
709
710
|
}, proxy: !0 }], null, !1, 239749076) }, [e._v(" " + e._s(s.t("tooManyFiles")) + " ")]) : e._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: (n = s.files) == null ? void 0 : n.length, expression: "files?.length" }], staticClass: "b-file-uploader__files" }, e._l(s.files, function(a) {
|
|
710
|
-
return t(s.FileUploaderFileCard, { key: a.id, attrs: { file: a, "supported-file-types": s.supportedFileTypeList }, on: { cancel: function(
|
|
711
|
+
return t(s.FileUploaderFileCard, { key: a.id, attrs: { file: a, "supported-file-types": s.supportedFileTypeList }, on: { cancel: function(d) {
|
|
711
712
|
return s.removeFile(a);
|
|
712
|
-
}, remove: function(
|
|
713
|
+
}, remove: function(d) {
|
|
713
714
|
return s.removeFile(a);
|
|
714
715
|
} } });
|
|
715
716
|
}), 1)], 1);
|
|
716
|
-
},
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
717
|
+
}, rs = [], as = /* @__PURE__ */ f(
|
|
718
|
+
ts,
|
|
719
|
+
ss,
|
|
720
|
+
rs,
|
|
720
721
|
!1,
|
|
721
722
|
null,
|
|
722
|
-
"
|
|
723
|
+
"c5ba3553"
|
|
723
724
|
);
|
|
724
|
-
const
|
|
725
|
+
const ys = as.exports;
|
|
725
726
|
export {
|
|
726
|
-
|
|
727
|
+
ys as f
|
|
727
728
|
};
|
|
728
|
-
//# sourceMappingURL=file-uploader.
|
|
729
|
+
//# sourceMappingURL=file-uploader.ItCr8Ezn.js.map
|