@adyen/bento-vue3 1.55.1 → 1.56.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 +844 -289
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.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.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field-password.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/sidepanel.css +1 -1
- package/dist/assets/summary-grid.css +1 -1
- package/dist/assets/tabs.css +1 -1
- package/dist/assets/teleport.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.DLyCF015.js → accordion-item.CihL7JaZ.js} +2 -2
- package/dist/chunks/{accordion-item.DLyCF015.js.map → accordion-item.CihL7JaZ.js.map} +1 -1
- package/dist/chunks/{action-bar.CDOaDenE.js → action-bar.CD5FQjE9.js} +6 -6
- package/dist/chunks/{action-bar.CDOaDenE.js.map → action-bar.CD5FQjE9.js.map} +1 -1
- package/dist/chunks/{alert.4SefwHLO.js → alert.CFb4Sejw.js} +3 -3
- package/dist/chunks/{alert.4SefwHLO.js.map → alert.CFb4Sejw.js.map} +1 -1
- package/dist/chunks/{base-modal.DZy1WuJs.js → base-modal.qhldLovE.js} +5 -5
- package/dist/chunks/{base-modal.DZy1WuJs.js.map → base-modal.qhldLovE.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DQRTu42W.js → button-actions-with-menu.CxB1fVvx.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.DQRTu42W.js.map → button-actions-with-menu.CxB1fVvx.js.map} +1 -1
- package/dist/chunks/{button-actions.N99QthUv.js → button-actions.ODJKaCW7.js} +3 -3
- package/dist/chunks/{button-actions.N99QthUv.js.map → button-actions.ODJKaCW7.js.map} +1 -1
- package/dist/chunks/{button.DEVuqLVT.js → button.BHZgsGkp.js} +43 -41
- package/dist/chunks/button.BHZgsGkp.js.map +1 -0
- package/dist/chunks/{calendar.CNt90BvO.js → calendar.Dymq4e0Y.js} +4 -4
- package/dist/chunks/{calendar.CNt90BvO.js.map → calendar.Dymq4e0Y.js.map} +1 -1
- package/dist/chunks/{card.E2xhS_6Z.js → card.DQ6g6hqK.js} +3 -3
- package/dist/chunks/{card.E2xhS_6Z.js.map → card.DQ6g6hqK.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BMzsgOeI.js → checkbox-group.DFmUrvgx.js} +4 -4
- package/dist/chunks/{checkbox-group.BMzsgOeI.js.map → checkbox-group.DFmUrvgx.js.map} +1 -1
- package/dist/chunks/{checkbox.BIaD03Bg.js → checkbox.Bti_jnp2.js} +17 -17
- package/dist/chunks/{checkbox.BIaD03Bg.js.map → checkbox.Bti_jnp2.js.map} +1 -1
- package/dist/chunks/{chip.3T0x6FuI.js → chip.DbhxDQiT.js} +2 -2
- package/dist/chunks/{chip.3T0x6FuI.js.map → chip.DbhxDQiT.js.map} +1 -1
- package/dist/chunks/code-snippet.Df5XwyWD.js +334 -0
- package/dist/chunks/code-snippet.Df5XwyWD.js.map +1 -0
- package/dist/chunks/{controls-group.DJqvAWte.js → controls-group.DgrzEh4C.js} +2 -2
- package/dist/chunks/{controls-group.DJqvAWte.js.map → controls-group.DgrzEh4C.js.map} +1 -1
- package/dist/chunks/{copy.MId-I684.js → copy.CfFh4b_c.js} +3 -3
- package/dist/chunks/{copy.MId-I684.js.map → copy.CfFh4b_c.js.map} +1 -1
- package/dist/chunks/{country.D0WFfaql.js → country.BhAcCmRx.js} +2 -2
- package/dist/chunks/{country.D0WFfaql.js.map → country.BhAcCmRx.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CrbSjoA8.js → dashboard-section.tza4iYcv.js} +3 -3
- package/dist/chunks/{dashboard-section.CrbSjoA8.js.map → dashboard-section.tza4iYcv.js.map} +1 -1
- package/dist/chunks/dashed-underline.B2cIJkg_.js +98 -0
- package/dist/chunks/dashed-underline.B2cIJkg_.js.map +1 -0
- package/dist/chunks/data-grid-template.PGPytWvk.js +111 -0
- package/dist/chunks/data-grid-template.PGPytWvk.js.map +1 -0
- package/dist/chunks/{data-grid.CsyayKK3.js → data-grid.DsZQ-F9m.js} +1328 -1299
- package/dist/chunks/data-grid.DsZQ-F9m.js.map +1 -0
- package/dist/chunks/{date-picker.CjwoOQ3B.js → date-picker.8jgg3MJm.js} +7 -7
- package/dist/chunks/{date-picker.CjwoOQ3B.js.map → date-picker.8jgg3MJm.js.map} +1 -1
- package/dist/chunks/{date-range-picker.DGY91Rwc.js → date-range-picker.uGwtO7SA.js} +10 -10
- package/dist/chunks/{date-range-picker.DGY91Rwc.js.map → date-range-picker.uGwtO7SA.js.map} +1 -1
- package/dist/chunks/{date.DoJuTLhO.js → date.CKXySBQv.js} +2 -2
- package/dist/chunks/{date.DoJuTLhO.js.map → date.CKXySBQv.js.map} +1 -1
- package/dist/chunks/{dialog-page.BRlAYf5w.js → dialog-page.MLFdqTcL.js} +3 -3
- package/dist/chunks/{dialog-page.BRlAYf5w.js.map → dialog-page.MLFdqTcL.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.CTyt2klK.js → dropdown-default-textbox.BNhy-QDH.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.CTyt2klK.js.map → dropdown-default-textbox.BNhy-QDH.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CJtSH5cZ.js → dropdown-tag.DEAOevYN.js} +3 -3
- package/dist/chunks/{dropdown-tag.CJtSH5cZ.js.map → dropdown-tag.DEAOevYN.js.map} +1 -1
- package/dist/chunks/{dropdown.CQvyjn6d.js → dropdown.CVa4_qCe.js} +6 -6
- package/dist/chunks/{dropdown.CQvyjn6d.js.map → dropdown.CVa4_qCe.js.map} +1 -1
- package/dist/chunks/{empty-state.m0U14LVw.js → empty-state.DiXLZmQJ.js} +2 -2
- package/dist/chunks/{empty-state.m0U14LVw.js.map → empty-state.DiXLZmQJ.js.map} +1 -1
- package/dist/chunks/{error-message.CMgsMDny.js → error-message.CPw3y44N.js} +2 -2
- package/dist/chunks/{error-message.CMgsMDny.js.map → error-message.CPw3y44N.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.D3KUe-MO.js → file-uploader.Dv4sh1IO.js} +477 -452
- package/dist/chunks/file-uploader.Dv4sh1IO.js.map +1 -0
- package/dist/chunks/filter-bar.DfIcZ5dX.js +2886 -0
- package/dist/chunks/filter-bar.DfIcZ5dX.js.map +1 -0
- package/dist/chunks/{fixed-scroller.BNP4SR5J.js → fixed-scroller.DsTyshyt.js} +3 -3
- package/dist/chunks/{fixed-scroller.BNP4SR5J.js.map → fixed-scroller.DsTyshyt.js.map} +1 -1
- package/dist/chunks/{footer-actions.DmGDpPBW.js → footer-actions.C00o4tuW.js} +3 -3
- package/dist/chunks/{footer-actions.DmGDpPBW.js.map → footer-actions.C00o4tuW.js.map} +1 -1
- package/dist/chunks/{form-layout-title.P5ajTo4C.js → form-layout-title.dcT8eXwc.js} +2 -2
- package/dist/chunks/{form-layout-title.P5ajTo4C.js.map → form-layout-title.dcT8eXwc.js.map} +1 -1
- package/dist/chunks/{header-with-views.BJIQZVAq.js → header-with-views.DEn9HFkT.js} +14 -14
- package/dist/chunks/{header-with-views.BJIQZVAq.js.map → header-with-views.DEn9HFkT.js.map} +1 -1
- package/dist/chunks/{header.vHSsdURt.js → header.hDkWwQuQ.js} +5 -5
- package/dist/chunks/{header.vHSsdURt.js.map → header.hDkWwQuQ.js.map} +1 -1
- package/dist/chunks/{i18n.D9azDLPe.js → i18n.B6g5VX0q.js} +1050 -1020
- package/dist/chunks/i18n.B6g5VX0q.js.map +1 -0
- package/dist/chunks/{info-icon-with-popover.CXaaxjeT.js → info-icon-with-popover.COJrCw_o.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.CXaaxjeT.js.map → info-icon-with-popover.COJrCw_o.js.map} +1 -1
- package/dist/chunks/{input-field-password.CWr26esx.js → input-field-password._CliYJ7N.js} +86 -81
- package/dist/chunks/{input-field-password.CWr26esx.js.map → input-field-password._CliYJ7N.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.zf8WxBCn.js → input-field-phone-number.WPcQbE3z.js} +4 -4
- package/dist/chunks/{input-field-phone-number.zf8WxBCn.js.map → input-field-phone-number.WPcQbE3z.js.map} +1 -1
- package/dist/chunks/{input-field.CR262X1w.js → input-field.Cr1r2STY.js} +4 -4
- package/dist/chunks/{input-field.CR262X1w.js.map → input-field.Cr1r2STY.js.map} +1 -1
- package/dist/chunks/{inspector.types.YK45k4D_.js → inspector.types.D5QBC3-G.js} +3 -3
- package/dist/chunks/{inspector.types.YK45k4D_.js.map → inspector.types.D5QBC3-G.js.map} +1 -1
- package/dist/chunks/{menu.CVMSGvtb.js → menu.B0q9q97N.js} +17 -16
- package/dist/chunks/{menu.CVMSGvtb.js.map → menu.B0q9q97N.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Cqlf6PWo.js → modal-fullscreen.BgqNc9jE.js} +5 -5
- package/dist/chunks/{modal-fullscreen.Cqlf6PWo.js.map → modal-fullscreen.BgqNc9jE.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.dXxru4S9.js → modal.vue_vue_type_script_setup_true_lang.Dr847POU.js} +6 -6
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.dXxru4S9.js.map → modal.vue_vue_type_script_setup_true_lang.Dr847POU.js.map} +1 -1
- package/dist/chunks/{pagination.C65tc-nX.js → pagination.Bi5BwIWq.js} +4 -4
- package/dist/chunks/{pagination.C65tc-nX.js.map → pagination.Bi5BwIWq.js.map} +1 -1
- package/dist/chunks/{popover.DjbACET6.js → popover.R5OM_tFu.js} +3 -3
- package/dist/chunks/{popover.DjbACET6.js.map → popover.R5OM_tFu.js.map} +1 -1
- package/dist/chunks/{promo-banner.ZCfJQh-S.js → promo-banner.DFt2dVxk.js} +3 -3
- package/dist/chunks/{promo-banner.ZCfJQh-S.js.map → promo-banner.DFt2dVxk.js.map} +1 -1
- package/dist/chunks/{radio-group.Tgf3BF5X.js → radio-group.muZVaVEm.js} +3 -3
- package/dist/chunks/{radio-group.Tgf3BF5X.js.map → radio-group.muZVaVEm.js.map} +1 -1
- package/dist/chunks/{search-bar.CTn5DIQZ.js → search-bar.DlVK3bBQ.js} +4 -4
- package/dist/chunks/{search-bar.CTn5DIQZ.js.map → search-bar.DlVK3bBQ.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CnE-aV2P.js → secondary-nav.CIEVFTYS.js} +3 -3
- package/dist/chunks/{secondary-nav.CnE-aV2P.js.map → secondary-nav.CIEVFTYS.js.map} +1 -1
- package/dist/chunks/{selection-card-group.C2OFZgKd.js → selection-card-group.BgANSy3b.js} +11 -11
- package/dist/chunks/{selection-card-group.C2OFZgKd.js.map → selection-card-group.BgANSy3b.js.map} +1 -1
- package/dist/chunks/{sidepanel.Drn-lKR3.js → sidepanel.BjR0Ab22.js} +5 -5
- package/dist/chunks/{sidepanel.Drn-lKR3.js.map → sidepanel.BjR0Ab22.js.map} +1 -1
- package/dist/chunks/{step.BGFaHGFO.js → step.7l-t-eN9.js} +2 -2
- package/dist/chunks/{step.BGFaHGFO.js.map → step.7l-t-eN9.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CWiwoP5F.js → structured-list-item.BMsATRrU.js} +4 -4
- package/dist/chunks/{structured-list-item.CWiwoP5F.js.map → structured-list-item.BMsATRrU.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.DOYW579A.js → summary-grid.types.lGX16F4w.js} +126 -114
- package/dist/chunks/summary-grid.types.lGX16F4w.js.map +1 -0
- package/dist/chunks/{tabs.DZk78MLK.js → tabs.BVuOvNxx.js} +17 -17
- package/dist/chunks/{tabs.DZk78MLK.js.map → tabs.BVuOvNxx.js.map} +1 -1
- package/dist/chunks/{teleport.zSiKZmRE.js → teleport.CfGWjxe2.js} +17 -26
- package/dist/chunks/teleport.CfGWjxe2.js.map +1 -0
- package/dist/chunks/{textarea.CR7su54i.js → textarea.CAc_VYFm.js} +4 -4
- package/dist/chunks/{textarea.CR7su54i.js.map → textarea.CAc_VYFm.js.map} +1 -1
- package/dist/chunks/timeline-item.BQ4qiBii.js +567 -0
- package/dist/chunks/timeline-item.BQ4qiBii.js.map +1 -0
- package/dist/chunks/{toast.DxVfamh-.js → toast.BOpWHAfu.js} +3 -3
- package/dist/chunks/{toast.DxVfamh-.js.map → toast.BOpWHAfu.js.map} +1 -1
- package/dist/chunks/{toggle-button.D-9TFTy8.js → toggle-button.E0VQtyEX.js} +2 -2
- package/dist/chunks/{toggle-button.D-9TFTy8.js.map → toggle-button.E0VQtyEX.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.ENhKvQLv.js → tutorial.vue_vue_type_script_setup_true_lang.CTx9Z9xB.js} +5 -5
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.ENhKvQLv.js.map → tutorial.vue_vue_type_script_setup_true_lang.CTx9Z9xB.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.CQKeFUJd.js → use-cached-selected-values.DHUa2Emx.js} +6 -6
- package/dist/chunks/{use-cached-selected-values.CQKeFUJd.js.map → use-cached-selected-values.DHUa2Emx.js.map} +1 -1
- package/dist/chunks/use-click-outside.BnhTgpSt.js +14 -0
- package/dist/chunks/use-click-outside.BnhTgpSt.js.map +1 -0
- package/dist/chunks/{use-country-items.BMhCqIWd.js → use-country-items.4kZgVg_l.js} +2 -2
- package/dist/chunks/{use-country-items.BMhCqIWd.js.map → use-country-items.4kZgVg_l.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.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 +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +55 -55
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- 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/radio-group.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/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +13 -2
- package/dist/styles/bento-light.css +13 -2
- package/dist/styles/bento.css +13 -2
- package/dist/styles/legacy.css +14 -4
- package/dist/styles/styleguide.css +13 -2
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/chunks/button.DEVuqLVT.js.map +0 -1
- package/dist/chunks/code-snippet.DJgiqDzZ.js +0 -422
- package/dist/chunks/code-snippet.DJgiqDzZ.js.map +0 -1
- package/dist/chunks/dashed-underline.DWhGZIhS.js +0 -80
- package/dist/chunks/dashed-underline.DWhGZIhS.js.map +0 -1
- package/dist/chunks/data-grid-template.LlK-7o84.js +0 -93
- package/dist/chunks/data-grid-template.LlK-7o84.js.map +0 -1
- package/dist/chunks/data-grid.CsyayKK3.js.map +0 -1
- package/dist/chunks/file-uploader.D3KUe-MO.js.map +0 -1
- package/dist/chunks/filter-bar.cRJmUX-v.js +0 -2771
- package/dist/chunks/filter-bar.cRJmUX-v.js.map +0 -1
- package/dist/chunks/i18n.D9azDLPe.js.map +0 -1
- package/dist/chunks/summary-grid.types.DOYW579A.js.map +0 -1
- package/dist/chunks/teleport.zSiKZmRE.js.map +0 -1
- package/dist/chunks/timeline-item.BhQp0ICP.js +0 -560
- package/dist/chunks/timeline-item.BhQp0ICP.js.map +0 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
1
|
+
import { createElementBlock as f, openBlock as s, mergeProps as V, createCommentVNode as u, createElementVNode as r, toDisplayString as v, defineComponent as la, createBlock as b, unref as t, Transition as pi, withCtx as h, renderSlot as Ca, TransitionGroup as li, ref as I, onUnmounted as si, onMounted as Oa, computed as x, watch as ha, normalizeClass as q, createVNode as O, resolveDynamicComponent as ci, withDirectives as Ha, createTextVNode as j, reactive as ba, toRef as xa, withKeys as $a, withModifiers as J, Fragment as _a, renderList as di, vShow as ri, nextTick as mi } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { _ as
|
|
4
|
-
import { W as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as z } from "./typography.DN5eC5ch.js";
|
|
7
|
-
import { u as sa } from "./i18n.
|
|
8
|
-
import { g as
|
|
9
|
-
import { i as
|
|
10
|
-
import { B as
|
|
11
|
-
import { C as
|
|
12
|
-
import { C as
|
|
13
|
-
import { R as
|
|
3
|
+
import { _ as L } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
|
+
import { W as qa } from "./warning-filled.DmHh0nYG.js";
|
|
5
|
+
import { B as ui } from "./alert.CFb4Sejw.js";
|
|
6
|
+
import { B as z, d as vi } from "./typography.DN5eC5ch.js";
|
|
7
|
+
import { u as sa } from "./i18n.B6g5VX0q.js";
|
|
8
|
+
import { g as M } from "./generate-uid.NJ8tVoha.js";
|
|
9
|
+
import { i as Ba } from "./index.CWuzEfiV.js";
|
|
10
|
+
import { B as fi } from "./bin.CA6UQCNZ.js";
|
|
11
|
+
import { C as xi } from "./checkmark-circle-fill.jicbqe7k.js";
|
|
12
|
+
import { C as gi } from "./cross.CbLEjiVy.js";
|
|
13
|
+
import { R as hi } from "./refresh.C20ROVDS.js";
|
|
14
14
|
import "./events.FNmSWp_P.js";
|
|
15
|
-
import { B as
|
|
16
|
-
import { B as
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { F as
|
|
15
|
+
import { B as bi } from "./tooltip.BkBDReK0.js";
|
|
16
|
+
import { B as ga } from "./button.BHZgsGkp.js";
|
|
17
|
+
import { B as wi } from "./link.D3Fq5tt_.js";
|
|
18
|
+
import { B as yi } from "./loading-indicator.DEepb9Wl.js";
|
|
19
|
+
import { F as ki, E as Ci } from "./error-message.CPw3y44N.js";
|
|
20
20
|
import "../assets/file-uploader.css";
|
|
21
|
-
let
|
|
22
|
-
const
|
|
21
|
+
let ja = 0;
|
|
22
|
+
const $i = {
|
|
23
23
|
beforeCreate() {
|
|
24
|
-
this.uuid =
|
|
24
|
+
this.uuid = ja.toString(), ja += 1;
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
function
|
|
28
|
-
return s(),
|
|
26
|
+
}, _i = { key: 0 };
|
|
27
|
+
function ji(a, i, p, l, o, n) {
|
|
28
|
+
return s(), f("svg", V({ role: "img" }, a.$attrs, {
|
|
29
29
|
class: "ui-assets-icons-16",
|
|
30
30
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31
31
|
width: "16",
|
|
32
32
|
height: "16",
|
|
33
33
|
fill: "none"
|
|
34
34
|
}), [
|
|
35
|
-
a.$attrs["svg-title"] ? (s(),
|
|
35
|
+
a.$attrs["svg-title"] ? (s(), f("title", _i, v(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
36
36
|
i[0] || (i[0] = r("path", {
|
|
37
37
|
fill: "#00112C",
|
|
38
38
|
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"
|
|
@@ -43,44 +43,44 @@ function Ci(a, i, p, l, o, n) {
|
|
|
43
43
|
}, null, -1))
|
|
44
44
|
], 16);
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const zi = /* @__PURE__ */ L($i, [["render", ji]]), Ri = /* @__PURE__ */ la({
|
|
47
47
|
__name: "file-uploader-file-card-animation",
|
|
48
48
|
props: {
|
|
49
49
|
name: {},
|
|
50
50
|
showFileIcon: { type: Boolean }
|
|
51
51
|
},
|
|
52
52
|
setup(a) {
|
|
53
|
-
return (i, p) => t(
|
|
53
|
+
return (i, p) => t(Ba) ? (s(), b(pi, {
|
|
54
54
|
key: 0,
|
|
55
55
|
name: i.name,
|
|
56
56
|
mode: "out-in",
|
|
57
57
|
css: i.showFileIcon
|
|
58
58
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
|
|
59
|
+
default: h(() => [
|
|
60
|
+
Ca(i.$slots, "default")
|
|
61
61
|
]),
|
|
62
62
|
_: 3
|
|
63
|
-
}, 8, ["name", "css"])) : (s(),
|
|
63
|
+
}, 8, ["name", "css"])) : (s(), b(li, {
|
|
64
64
|
key: 1,
|
|
65
65
|
name: i.name,
|
|
66
66
|
css: i.showFileIcon
|
|
67
67
|
}, {
|
|
68
|
-
default:
|
|
69
|
-
|
|
68
|
+
default: h(() => [
|
|
69
|
+
Ca(i.$slots, "default")
|
|
70
70
|
]),
|
|
71
71
|
_: 3
|
|
72
72
|
}, 8, ["name", "css"]));
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
-
function
|
|
76
|
-
const p =
|
|
75
|
+
function Ei(a, i) {
|
|
76
|
+
const p = I(!1);
|
|
77
77
|
let l;
|
|
78
78
|
function o() {
|
|
79
79
|
l && l.disconnect();
|
|
80
80
|
}
|
|
81
|
-
return
|
|
81
|
+
return si(() => {
|
|
82
82
|
o();
|
|
83
|
-
}),
|
|
83
|
+
}), Oa(() => {
|
|
84
84
|
o(), l = new IntersectionObserver(
|
|
85
85
|
(n) => {
|
|
86
86
|
p.value = !n[0].isIntersecting;
|
|
@@ -92,23 +92,23 @@ function ji(a, i) {
|
|
|
92
92
|
), l.observe(a.value.$el);
|
|
93
93
|
}), p;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
97
|
-
const p = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)),
|
|
95
|
+
const za = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
96
|
+
function Za(a, i) {
|
|
97
|
+
const p = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), za.length - 1));
|
|
98
98
|
return Intl.NumberFormat(a, {
|
|
99
99
|
style: "unit",
|
|
100
|
-
unit:
|
|
100
|
+
unit: za[p]
|
|
101
101
|
}).format(i / 1024 ** p);
|
|
102
102
|
}
|
|
103
|
-
var
|
|
104
|
-
const
|
|
103
|
+
var S = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(S || {}), R = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(R || {}), pa = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(pa || {}), g = /* @__PURE__ */ ((a) => (a.TABLE = "table", a.IMAGE = "image", a.VIDEO = "video", a.AUDIO = "audio", a.TEXT = "text", a.PDF = "pdf", a.SLIDES = "slides", a.COMPRESSED = "compressed", a.GENERIC = "generic", a))(g || {});
|
|
104
|
+
const Ii = [
|
|
105
105
|
"application/msword",
|
|
106
106
|
// .doc
|
|
107
107
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
108
108
|
// .docx
|
|
109
109
|
"application/rtf"
|
|
110
110
|
// .rtf
|
|
111
|
-
],
|
|
111
|
+
], Li = [
|
|
112
112
|
"application/vnd.ms-excel",
|
|
113
113
|
// .xls
|
|
114
114
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -121,14 +121,14 @@ const zi = [
|
|
|
121
121
|
// .numbers
|
|
122
122
|
"text/csv"
|
|
123
123
|
// .csv
|
|
124
|
-
],
|
|
124
|
+
], Ti = [
|
|
125
125
|
"application/vnd.ms-powerpoint",
|
|
126
126
|
// .ppt
|
|
127
127
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
128
128
|
// .pptx
|
|
129
129
|
"application/vnd.oasis.opendocument.presentation"
|
|
130
130
|
// .odp
|
|
131
|
-
],
|
|
131
|
+
], Mi = [
|
|
132
132
|
"application/zip",
|
|
133
133
|
// .zip
|
|
134
134
|
"application/vnd.rar",
|
|
@@ -150,10 +150,10 @@ const zi = [
|
|
|
150
150
|
"application/vnd.ms-cab-compressed"
|
|
151
151
|
// .cab
|
|
152
152
|
];
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Si(a) {
|
|
154
|
+
return Li.includes(a.type) ? g.TABLE : a.type.startsWith("text/") || Ii.includes(a.type) ? g.TEXT : a.type.startsWith("image/") ? g.IMAGE : a.type.startsWith("video/") ? g.VIDEO : a.type.startsWith("audio/") ? g.AUDIO : a.type === "application/pdf" ? g.PDF : Ti.includes(a.type) ? g.SLIDES : Mi.includes(a.type) ? g.COMPRESSED : g.GENERIC;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Vi(a, i) {
|
|
157
157
|
if (!i)
|
|
158
158
|
return !0;
|
|
159
159
|
const p = i.split(",").map((l) => l.trim());
|
|
@@ -169,44 +169,44 @@ function Ti(a, i) {
|
|
|
169
169
|
return !0;
|
|
170
170
|
return !1;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Fi(a, i, p) {
|
|
173
173
|
const l = new FileReader(), o = a;
|
|
174
|
-
if (!
|
|
175
|
-
o.state =
|
|
174
|
+
if (!Vi(o.data, i)) {
|
|
175
|
+
o.state = S.ERROR, o.errors.push(R.ERROR_TYPE);
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
178
|
l.onload = (n) => {
|
|
179
179
|
if (p && o.type === g.IMAGE) {
|
|
180
|
-
const
|
|
180
|
+
const w = new Blob([n.target.result], { type: o.data.type }), m = URL.createObjectURL(w), d = new Image();
|
|
181
181
|
d.onload = function() {
|
|
182
|
-
(d.width > p.width || d.height > p.height) && (o.state =
|
|
182
|
+
(d.width > p.width || d.height > p.height) && (o.state = S.ERROR, o.errors.push(R.ERROR_DIMENSIONS)), URL.revokeObjectURL(m);
|
|
183
183
|
}, d.onerror = function() {
|
|
184
|
-
URL.revokeObjectURL(
|
|
185
|
-
}, d.src =
|
|
184
|
+
URL.revokeObjectURL(m);
|
|
185
|
+
}, d.src = m;
|
|
186
186
|
}
|
|
187
187
|
}, l.onprogress = (n) => {
|
|
188
188
|
n.lengthComputable && (o.progress = n.loaded / n.total * 100);
|
|
189
189
|
}, l.onloadend = () => {
|
|
190
|
-
o.state !==
|
|
190
|
+
o.state !== S.ERROR && (o.state = S.SUCCESS), o.progress = null;
|
|
191
191
|
}, l.onerror = () => {
|
|
192
|
-
o.state =
|
|
192
|
+
o.state = S.ERROR, o.errors.push(R.ERROR_LOAD), o.progress = null;
|
|
193
193
|
}, l.readAsArrayBuffer(o.data);
|
|
194
194
|
}
|
|
195
|
-
let
|
|
196
|
-
const
|
|
195
|
+
let Ra = 0;
|
|
196
|
+
const Di = {
|
|
197
197
|
beforeCreate() {
|
|
198
|
-
this.uuid =
|
|
198
|
+
this.uuid = Ra.toString(), Ra += 1;
|
|
199
199
|
}
|
|
200
|
-
},
|
|
201
|
-
function
|
|
202
|
-
return s(),
|
|
200
|
+
}, Oi = { key: 0 }, Hi = ["clip-path"], qi = ["id"];
|
|
201
|
+
function Bi(a, i, p, l, o, n) {
|
|
202
|
+
return s(), f("svg", V({ role: "img" }, a.$attrs, {
|
|
203
203
|
class: "ui-assets-icons-16",
|
|
204
204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
205
205
|
width: "16",
|
|
206
206
|
height: "16",
|
|
207
207
|
fill: "none"
|
|
208
208
|
}), [
|
|
209
|
-
a.$attrs["svg-title"] ? (s(),
|
|
209
|
+
a.$attrs["svg-title"] ? (s(), f("title", Oi, v(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
210
210
|
r("g", {
|
|
211
211
|
"clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.uuid + ")"
|
|
212
212
|
}, i[0] || (i[0] = [
|
|
@@ -214,7 +214,7 @@ function Oi(a, i, p, l, o, n) {
|
|
|
214
214
|
fill: "#00112C",
|
|
215
215
|
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"
|
|
216
216
|
}, null, -1)
|
|
217
|
-
]), 8,
|
|
217
|
+
]), 8, Hi),
|
|
218
218
|
r("defs", null, [
|
|
219
219
|
r("clipPath", {
|
|
220
220
|
id: "uia-ui-assets/icons-16-attachment__a" + a.uuid
|
|
@@ -224,70 +224,70 @@ function Oi(a, i, p, l, o, n) {
|
|
|
224
224
|
height: "16",
|
|
225
225
|
fill: "#fff"
|
|
226
226
|
}, null, -1)
|
|
227
|
-
]), 8,
|
|
227
|
+
]), 8, qi)
|
|
228
228
|
])
|
|
229
229
|
], 16);
|
|
230
230
|
}
|
|
231
|
-
const
|
|
232
|
-
let
|
|
233
|
-
const
|
|
231
|
+
const Zi = /* @__PURE__ */ L(Di, [["render", Bi]]);
|
|
232
|
+
let Ea = 0;
|
|
233
|
+
const Ai = {
|
|
234
234
|
beforeCreate() {
|
|
235
|
-
this.uuid =
|
|
235
|
+
this.uuid = Ea.toString(), Ea += 1;
|
|
236
236
|
}
|
|
237
|
-
},
|
|
238
|
-
function
|
|
239
|
-
return s(),
|
|
237
|
+
}, Ui = { key: 0 };
|
|
238
|
+
function Ni(a, i, p, l, o, n) {
|
|
239
|
+
return s(), f("svg", V({ role: "img" }, a.$attrs, {
|
|
240
240
|
class: "ui-assets-icons-16",
|
|
241
241
|
xmlns: "http://www.w3.org/2000/svg",
|
|
242
242
|
width: "16",
|
|
243
243
|
height: "16",
|
|
244
244
|
fill: "none"
|
|
245
245
|
}), [
|
|
246
|
-
a.$attrs["svg-title"] ? (s(),
|
|
246
|
+
a.$attrs["svg-title"] ? (s(), f("title", Ui, v(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
247
247
|
i[0] || (i[0] = r("path", {
|
|
248
248
|
fill: "#00112C",
|
|
249
249
|
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"
|
|
250
250
|
}, null, -1))
|
|
251
251
|
], 16);
|
|
252
252
|
}
|
|
253
|
-
const
|
|
254
|
-
let
|
|
255
|
-
const
|
|
253
|
+
const Pi = /* @__PURE__ */ L(Ai, [["render", Ni]]);
|
|
254
|
+
let Ia = 0;
|
|
255
|
+
const Gi = {
|
|
256
256
|
beforeCreate() {
|
|
257
|
-
this.uuid =
|
|
257
|
+
this.uuid = Ia.toString(), Ia += 1;
|
|
258
258
|
}
|
|
259
|
-
},
|
|
260
|
-
function
|
|
261
|
-
return s(),
|
|
259
|
+
}, Wi = { key: 0 };
|
|
260
|
+
function Yi(a, i, p, l, o, n) {
|
|
261
|
+
return s(), f("svg", V({ role: "img" }, a.$attrs, {
|
|
262
262
|
class: "ui-assets-icons-16",
|
|
263
263
|
xmlns: "http://www.w3.org/2000/svg",
|
|
264
264
|
width: "16",
|
|
265
265
|
height: "16",
|
|
266
266
|
fill: "none"
|
|
267
267
|
}), [
|
|
268
|
-
a.$attrs["svg-title"] ? (s(),
|
|
268
|
+
a.$attrs["svg-title"] ? (s(), f("title", Wi, v(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
269
269
|
i[0] || (i[0] = r("path", {
|
|
270
270
|
fill: "#00112C",
|
|
271
271
|
d: "M2.25 0.25V15.75H13.75V4.68934L9.31066 0.25H2.25ZM7.25 1.75V6.75H12.25V14.25H3.75V1.75H7.25ZM12.1893 5.25H8.75V1.81066L12.1893 5.25Z"
|
|
272
272
|
}, null, -1))
|
|
273
273
|
], 16);
|
|
274
274
|
}
|
|
275
|
-
const
|
|
276
|
-
let
|
|
277
|
-
const
|
|
275
|
+
const Xi = /* @__PURE__ */ L(Gi, [["render", Yi]]);
|
|
276
|
+
let La = 0;
|
|
277
|
+
const Ji = {
|
|
278
278
|
beforeCreate() {
|
|
279
|
-
this.uuid =
|
|
279
|
+
this.uuid = La.toString(), La += 1;
|
|
280
280
|
}
|
|
281
|
-
},
|
|
282
|
-
function
|
|
283
|
-
return s(),
|
|
281
|
+
}, Ki = { key: 0 };
|
|
282
|
+
function Qi(a, i, p, l, o, n) {
|
|
283
|
+
return s(), f("svg", V({ role: "img" }, a.$attrs, {
|
|
284
284
|
class: "ui-assets-icons-16",
|
|
285
285
|
xmlns: "http://www.w3.org/2000/svg",
|
|
286
286
|
width: "16",
|
|
287
287
|
height: "16",
|
|
288
288
|
fill: "none"
|
|
289
289
|
}), [
|
|
290
|
-
a.$attrs["svg-title"] ? (s(),
|
|
290
|
+
a.$attrs["svg-title"] ? (s(), f("title", Ki, v(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
291
291
|
i[0] || (i[0] = r("path", {
|
|
292
292
|
fill: "#00112C",
|
|
293
293
|
d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z"
|
|
@@ -302,44 +302,44 @@ function Xi(a, i, p, l, o, n) {
|
|
|
302
302
|
}, null, -1))
|
|
303
303
|
], 16);
|
|
304
304
|
}
|
|
305
|
-
const
|
|
306
|
-
let
|
|
307
|
-
const
|
|
305
|
+
const ae = /* @__PURE__ */ L(Ji, [["render", Qi]]);
|
|
306
|
+
let Ta = 0;
|
|
307
|
+
const ie = {
|
|
308
308
|
beforeCreate() {
|
|
309
|
-
this.uuid =
|
|
309
|
+
this.uuid = Ta.toString(), Ta += 1;
|
|
310
310
|
}
|
|
311
|
-
},
|
|
312
|
-
function
|
|
313
|
-
return s(),
|
|
311
|
+
}, ee = { key: 0 };
|
|
312
|
+
function te(a, i, p, l, o, n) {
|
|
313
|
+
return s(), f("svg", V({ role: "img" }, a.$attrs, {
|
|
314
314
|
class: "ui-assets-icons-16",
|
|
315
315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
316
316
|
width: "16",
|
|
317
317
|
height: "16",
|
|
318
318
|
fill: "none"
|
|
319
319
|
}), [
|
|
320
|
-
a.$attrs["svg-title"] ? (s(),
|
|
320
|
+
a.$attrs["svg-title"] ? (s(), f("title", ee, v(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
321
321
|
i[0] || (i[0] = r("path", {
|
|
322
322
|
fill: "#00112C",
|
|
323
323
|
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"
|
|
324
324
|
}, null, -1))
|
|
325
325
|
], 16);
|
|
326
326
|
}
|
|
327
|
-
const
|
|
328
|
-
let
|
|
329
|
-
const
|
|
327
|
+
const ne = /* @__PURE__ */ L(ie, [["render", te]]);
|
|
328
|
+
let Ma = 0;
|
|
329
|
+
const oe = {
|
|
330
330
|
beforeCreate() {
|
|
331
|
-
this.uuid =
|
|
331
|
+
this.uuid = Ma.toString(), Ma += 1;
|
|
332
332
|
}
|
|
333
|
-
},
|
|
334
|
-
function
|
|
335
|
-
return s(),
|
|
333
|
+
}, pe = { key: 0 };
|
|
334
|
+
function le(a, i, p, l, o, n) {
|
|
335
|
+
return s(), f("svg", V({ role: "img" }, a.$attrs, {
|
|
336
336
|
class: "ui-assets-icons-16",
|
|
337
337
|
xmlns: "http://www.w3.org/2000/svg",
|
|
338
338
|
width: "16",
|
|
339
339
|
height: "16",
|
|
340
340
|
fill: "none"
|
|
341
341
|
}), [
|
|
342
|
-
a.$attrs["svg-title"] ? (s(),
|
|
342
|
+
a.$attrs["svg-title"] ? (s(), f("title", pe, v(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
343
343
|
i[0] || (i[0] = r("path", {
|
|
344
344
|
fill: "#00112C",
|
|
345
345
|
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"
|
|
@@ -350,29 +350,29 @@ function ne(a, i, p, l, o, n) {
|
|
|
350
350
|
}, null, -1))
|
|
351
351
|
], 16);
|
|
352
352
|
}
|
|
353
|
-
const
|
|
354
|
-
let
|
|
355
|
-
const
|
|
353
|
+
const se = /* @__PURE__ */ L(oe, [["render", le]]);
|
|
354
|
+
let Sa = 0;
|
|
355
|
+
const ce = {
|
|
356
356
|
beforeCreate() {
|
|
357
|
-
this.uuid =
|
|
357
|
+
this.uuid = Sa.toString(), Sa += 1;
|
|
358
358
|
}
|
|
359
|
-
},
|
|
360
|
-
function
|
|
361
|
-
return s(),
|
|
359
|
+
}, de = { key: 0 }, re = ["clip-path"], me = ["id"];
|
|
360
|
+
function ue(a, i, p, l, o, n) {
|
|
361
|
+
return s(), f("svg", V({ role: "img" }, a.$attrs, {
|
|
362
362
|
class: "ui-assets-icons-16",
|
|
363
363
|
xmlns: "http://www.w3.org/2000/svg",
|
|
364
364
|
width: "16",
|
|
365
365
|
height: "16",
|
|
366
366
|
fill: "none"
|
|
367
367
|
}), [
|
|
368
|
-
a.$attrs["svg-title"] ? (s(),
|
|
368
|
+
a.$attrs["svg-title"] ? (s(), f("title", de, v(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
369
369
|
r("g", {
|
|
370
370
|
fill: "#00112C",
|
|
371
371
|
"clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.uuid + ")"
|
|
372
372
|
}, i[0] || (i[0] = [
|
|
373
373
|
r("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
|
|
374
374
|
r("path", { 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" }, null, -1)
|
|
375
|
-
]), 8,
|
|
375
|
+
]), 8, re),
|
|
376
376
|
r("defs", null, [
|
|
377
377
|
r("clipPath", {
|
|
378
378
|
id: "uia-ui-assets/icons-16-play_circle__a" + a.uuid
|
|
@@ -382,26 +382,26 @@ function de(a, i, p, l, o, n) {
|
|
|
382
382
|
height: "16",
|
|
383
383
|
fill: "#fff"
|
|
384
384
|
}, null, -1)
|
|
385
|
-
]), 8,
|
|
385
|
+
]), 8, me)
|
|
386
386
|
])
|
|
387
387
|
], 16);
|
|
388
388
|
}
|
|
389
|
-
const
|
|
390
|
-
let
|
|
391
|
-
const
|
|
389
|
+
const ve = /* @__PURE__ */ L(ce, [["render", ue]]);
|
|
390
|
+
let Va = 0;
|
|
391
|
+
const fe = {
|
|
392
392
|
beforeCreate() {
|
|
393
|
-
this.uuid =
|
|
393
|
+
this.uuid = Va.toString(), Va += 1;
|
|
394
394
|
}
|
|
395
|
-
},
|
|
396
|
-
function
|
|
397
|
-
return s(),
|
|
395
|
+
}, xe = { key: 0 };
|
|
396
|
+
function ge(a, i, p, l, o, n) {
|
|
397
|
+
return s(), f("svg", V({ role: "img" }, a.$attrs, {
|
|
398
398
|
class: "ui-assets-icons-16",
|
|
399
399
|
xmlns: "http://www.w3.org/2000/svg",
|
|
400
400
|
width: "16",
|
|
401
401
|
height: "16",
|
|
402
402
|
fill: "none"
|
|
403
403
|
}), [
|
|
404
|
-
a.$attrs["svg-title"] ? (s(),
|
|
404
|
+
a.$attrs["svg-title"] ? (s(), f("title", xe, v(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
405
405
|
i[0] || (i[0] = r("path", {
|
|
406
406
|
fill: "#00112C",
|
|
407
407
|
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"
|
|
@@ -416,43 +416,43 @@ function ve(a, i, p, l, o, n) {
|
|
|
416
416
|
}, null, -1))
|
|
417
417
|
], 16);
|
|
418
418
|
}
|
|
419
|
-
const
|
|
420
|
-
let
|
|
421
|
-
const
|
|
419
|
+
const he = /* @__PURE__ */ L(fe, [["render", ge]]);
|
|
420
|
+
let Fa = 0;
|
|
421
|
+
const be = {
|
|
422
422
|
beforeCreate() {
|
|
423
|
-
this.uuid =
|
|
423
|
+
this.uuid = Fa.toString(), Fa += 1;
|
|
424
424
|
}
|
|
425
|
-
},
|
|
426
|
-
function
|
|
427
|
-
return s(),
|
|
425
|
+
}, we = { key: 0 };
|
|
426
|
+
function ye(a, i, p, l, o, n) {
|
|
427
|
+
return s(), f("svg", V({ role: "img" }, a.$attrs, {
|
|
428
428
|
class: "ui-assets-icons-16",
|
|
429
429
|
xmlns: "http://www.w3.org/2000/svg",
|
|
430
430
|
width: "16",
|
|
431
431
|
height: "16",
|
|
432
432
|
fill: "none"
|
|
433
433
|
}), [
|
|
434
|
-
a.$attrs["svg-title"] ? (s(),
|
|
434
|
+
a.$attrs["svg-title"] ? (s(), f("title", we, v(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
435
435
|
i[0] || (i[0] = r("path", {
|
|
436
436
|
fill: "#00112C",
|
|
437
437
|
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"
|
|
438
438
|
}, null, -1))
|
|
439
439
|
], 16);
|
|
440
440
|
}
|
|
441
|
-
const
|
|
442
|
-
[g.AUDIO]:
|
|
443
|
-
[g.COMPRESSED]:
|
|
444
|
-
[g.GENERIC]:
|
|
445
|
-
[g.IMAGE]:
|
|
446
|
-
[g.PDF]:
|
|
447
|
-
[g.SLIDES]:
|
|
448
|
-
[g.TABLE]:
|
|
449
|
-
[g.TEXT]:
|
|
450
|
-
[g.VIDEO]:
|
|
441
|
+
const ke = /* @__PURE__ */ L(be, [["render", ye]]), Ce = {
|
|
442
|
+
[g.AUDIO]: he,
|
|
443
|
+
[g.COMPRESSED]: ne,
|
|
444
|
+
[g.GENERIC]: Zi,
|
|
445
|
+
[g.IMAGE]: se,
|
|
446
|
+
[g.PDF]: Xi,
|
|
447
|
+
[g.SLIDES]: Pi,
|
|
448
|
+
[g.TABLE]: ke,
|
|
449
|
+
[g.TEXT]: ae,
|
|
450
|
+
[g.VIDEO]: ve
|
|
451
451
|
};
|
|
452
|
-
function
|
|
453
|
-
return
|
|
452
|
+
function $e(a) {
|
|
453
|
+
return Ce[a.type];
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function _e(a) {
|
|
456
456
|
switch (a.type) {
|
|
457
457
|
case g.COMPRESSED:
|
|
458
458
|
case g.GENERIC:
|
|
@@ -466,7 +466,7 @@ function ke(a) {
|
|
|
466
466
|
return "green";
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
const
|
|
469
|
+
const Aa = {
|
|
470
470
|
"en-US": {
|
|
471
471
|
cancel: "Cancel",
|
|
472
472
|
fileExceedsSizeLimit: "File exceeds size limit",
|
|
@@ -485,64 +485,64 @@ const qa = {
|
|
|
485
485
|
remove: "Remover",
|
|
486
486
|
retry: "Tentar novamente"
|
|
487
487
|
}
|
|
488
|
-
},
|
|
488
|
+
}, je = { class: "b-file-uploader-file-card__details" }, ze = { class: "b-file-uploader-file-card__info" }, Re = ["id"], Ee = { class: "b-file-uploader-file-card__actions" }, Ie = {
|
|
489
489
|
name: "file-uploader-file-card",
|
|
490
|
-
i18n: { messages:
|
|
491
|
-
},
|
|
492
|
-
...
|
|
490
|
+
i18n: { messages: Aa }
|
|
491
|
+
}, Le = /* @__PURE__ */ la({
|
|
492
|
+
...Ie,
|
|
493
493
|
props: {
|
|
494
494
|
file: {},
|
|
495
495
|
supportedFileTypes: { default: null }
|
|
496
496
|
},
|
|
497
497
|
emits: ["cancel", "remove", "retry"],
|
|
498
498
|
setup(a, { expose: i, emit: p }) {
|
|
499
|
-
const o = a, n = p, { t:
|
|
500
|
-
"b-file-uploader-file-card--error":
|
|
499
|
+
const o = a, n = p, { t: w, locale: m } = sa({ messages: Aa }), d = I(null), C = I(null), H = I(null), D = M("file-errors-section"), U = M("cancel-file-button"), y = M("remove-file-button"), W = M("retry-file-button"), E = I(o.file.state === S.SUCCESS), Q = x(() => URL.createObjectURL(o.file.data)), B = x(() => o.file.state === S.ERROR), ca = x(() => o.file.errors.includes(R.ERROR_LOAD)), aa = x(() => o.file.errors.includes(R.ERROR_SIZE)), Y = x(() => o.file.errors.includes(R.ERROR_DIMENSIONS)), Z = x(() => o.file.errors.includes(R.ERROR_TYPE)), N = x(() => o.file.state === S.LOADING), da = x(() => o.file.progress && `(${o.file.progress.toFixed(0)}%)`), ia = x(() => Za(m.value, o.file.data.size)), P = I(), ea = I(), X = Ei(P, ea), ra = x(() => ({
|
|
500
|
+
"b-file-uploader-file-card--error": B.value
|
|
501
501
|
})), ma = x(() => ({
|
|
502
|
-
[`b-file-uploader-file-card__icon--${
|
|
503
|
-
"b-file-uploader-file-card__icon--error":
|
|
504
|
-
})),
|
|
505
|
-
|
|
502
|
+
[`b-file-uploader-file-card__icon--${_e(o.file)}`]: E.value,
|
|
503
|
+
"b-file-uploader-file-card__icon--error": B.value
|
|
504
|
+
})), ta = x(() => N.value ? yi : B.value ? qa : E.value ? $e(o.file) : xi);
|
|
505
|
+
ha(
|
|
506
506
|
() => o.file.state,
|
|
507
|
-
(
|
|
508
|
-
if (
|
|
507
|
+
(_) => {
|
|
508
|
+
if (_ === S.SUCCESS && !E.value) {
|
|
509
509
|
const F = setTimeout(() => {
|
|
510
|
-
|
|
510
|
+
E.value = !0, clearTimeout(F);
|
|
511
511
|
}, 1200);
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
);
|
|
515
|
-
function
|
|
516
|
-
if (
|
|
517
|
-
|
|
515
|
+
function na() {
|
|
516
|
+
if (H.value) {
|
|
517
|
+
H.value.$el.focus();
|
|
518
518
|
return;
|
|
519
519
|
}
|
|
520
520
|
if (d.value) {
|
|
521
521
|
d.value.$el.focus();
|
|
522
522
|
return;
|
|
523
523
|
}
|
|
524
|
-
if (
|
|
525
|
-
|
|
524
|
+
if (C.value) {
|
|
525
|
+
C.value.$el.focus();
|
|
526
526
|
return;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
return i({
|
|
530
|
-
focus:
|
|
531
|
-
}), (
|
|
532
|
-
class:
|
|
530
|
+
focus: na
|
|
531
|
+
}), (_, F) => (s(), f("div", {
|
|
532
|
+
class: q(["b-file-uploader-file-card", ra.value])
|
|
533
533
|
}, [
|
|
534
|
-
r("div",
|
|
535
|
-
r("div",
|
|
536
|
-
O(t(
|
|
537
|
-
name: t(
|
|
538
|
-
"show-file-icon":
|
|
534
|
+
r("div", je, [
|
|
535
|
+
r("div", ze, [
|
|
536
|
+
O(t(Ri), {
|
|
537
|
+
name: t(Ba) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
|
|
538
|
+
"show-file-icon": E.value
|
|
539
539
|
}, {
|
|
540
|
-
default:
|
|
541
|
-
(s(),
|
|
542
|
-
key: JSON.stringify(
|
|
540
|
+
default: h(() => [
|
|
541
|
+
(s(), b(ci(ta.value), {
|
|
542
|
+
key: JSON.stringify(ta.value),
|
|
543
543
|
small: "",
|
|
544
544
|
"aria-hidden": "true",
|
|
545
|
-
class:
|
|
545
|
+
class: q(["b-file-uploader-file-card__icon", ma.value]),
|
|
546
546
|
"data-testid": "file-uploader-item-icon"
|
|
547
547
|
}, null, 8, ["class"]))
|
|
548
548
|
]),
|
|
@@ -550,137 +550,137 @@ const qa = {
|
|
|
550
550
|
}, 8, ["name", "show-file-icon"]),
|
|
551
551
|
r("div", {
|
|
552
552
|
ref_key: "fileNameContainerRef",
|
|
553
|
-
ref:
|
|
553
|
+
ref: ea,
|
|
554
554
|
class: "b-file-uploader-file-card__file-name"
|
|
555
555
|
}, [
|
|
556
|
-
O(t(
|
|
556
|
+
O(t(wi), {
|
|
557
557
|
"aria-hidden": "true",
|
|
558
558
|
tabindex: "-1",
|
|
559
|
-
download:
|
|
560
|
-
to:
|
|
559
|
+
download: _.file.data.name,
|
|
560
|
+
to: Q.value,
|
|
561
561
|
"disable-typography": "",
|
|
562
562
|
"is-not-routing": "",
|
|
563
563
|
variant: "quiet"
|
|
564
564
|
}, {
|
|
565
|
-
default:
|
|
566
|
-
|
|
565
|
+
default: h(() => [
|
|
566
|
+
Ha((s(), b(t(z), {
|
|
567
567
|
ref_key: "fileNameRef",
|
|
568
|
-
ref:
|
|
568
|
+
ref: P,
|
|
569
569
|
stronger: "",
|
|
570
570
|
el: "span"
|
|
571
571
|
}, {
|
|
572
|
-
default:
|
|
573
|
-
|
|
572
|
+
default: h(() => [
|
|
573
|
+
j(v(_.file.data.name), 1)
|
|
574
574
|
]),
|
|
575
575
|
_: 1
|
|
576
576
|
})), [
|
|
577
|
-
[t(
|
|
577
|
+
[t(bi), t(X) ? _.file.data.name : null]
|
|
578
578
|
])
|
|
579
579
|
]),
|
|
580
580
|
_: 1
|
|
581
581
|
}, 8, ["download", "to"])
|
|
582
582
|
], 512),
|
|
583
|
-
|
|
583
|
+
_.file.progress ? (s(), b(t(z), {
|
|
584
584
|
key: 0,
|
|
585
585
|
el: "span"
|
|
586
586
|
}, {
|
|
587
|
-
default:
|
|
588
|
-
|
|
587
|
+
default: h(() => [
|
|
588
|
+
j(v(da.value), 1)
|
|
589
589
|
]),
|
|
590
590
|
_: 1
|
|
591
|
-
})) :
|
|
591
|
+
})) : _.file.data.size ? (s(), b(t(z), {
|
|
592
592
|
key: 1,
|
|
593
593
|
class: "b-file-uploader-file-card__file-size",
|
|
594
594
|
"aria-hidden": "true",
|
|
595
595
|
el: "span"
|
|
596
596
|
}, {
|
|
597
|
-
default:
|
|
598
|
-
|
|
597
|
+
default: h(() => [
|
|
598
|
+
j(v(ia.value), 1)
|
|
599
599
|
]),
|
|
600
600
|
_: 1
|
|
601
|
-
})) :
|
|
601
|
+
})) : u("", !0)
|
|
602
602
|
]),
|
|
603
|
-
|
|
603
|
+
aa.value || Y.value || Z.value && _.supportedFileTypes ? (s(), f("div", {
|
|
604
604
|
key: 0,
|
|
605
|
-
id: t(
|
|
605
|
+
id: t(D),
|
|
606
606
|
role: "alert"
|
|
607
607
|
}, [
|
|
608
|
-
|
|
608
|
+
aa.value ? (s(), b(t(z), {
|
|
609
609
|
key: 0,
|
|
610
610
|
class: "b-file-uploader-file-card__error-message"
|
|
611
611
|
}, {
|
|
612
|
-
default:
|
|
613
|
-
|
|
612
|
+
default: h(() => [
|
|
613
|
+
j(v(t(w)("fileExceedsSizeLimit")), 1)
|
|
614
614
|
]),
|
|
615
615
|
_: 1
|
|
616
|
-
})) :
|
|
617
|
-
|
|
616
|
+
})) : u("", !0),
|
|
617
|
+
Y.value ? (s(), b(t(z), {
|
|
618
618
|
key: 1,
|
|
619
619
|
class: "b-file-uploader-file-card__error-message"
|
|
620
620
|
}, {
|
|
621
|
-
default:
|
|
622
|
-
|
|
621
|
+
default: h(() => [
|
|
622
|
+
j(v(t(w)("imageDimensionsExceedLimits")), 1)
|
|
623
623
|
]),
|
|
624
624
|
_: 1
|
|
625
|
-
})) :
|
|
626
|
-
|
|
625
|
+
})) : u("", !0),
|
|
626
|
+
Z.value && _.supportedFileTypes ? (s(), b(t(z), {
|
|
627
627
|
key: 2,
|
|
628
628
|
class: "b-file-uploader-file-card__error-message"
|
|
629
629
|
}, {
|
|
630
|
-
default:
|
|
631
|
-
|
|
630
|
+
default: h(() => [
|
|
631
|
+
j(v(t(w)("fileTypeMustBe", { list: _.supportedFileTypes })), 1)
|
|
632
632
|
]),
|
|
633
633
|
_: 1
|
|
634
|
-
})) :
|
|
635
|
-
], 8,
|
|
634
|
+
})) : u("", !0)
|
|
635
|
+
], 8, Re)) : u("", !0)
|
|
636
636
|
]),
|
|
637
|
-
r("div",
|
|
638
|
-
ca.value ? (s(),
|
|
637
|
+
r("div", Ee, [
|
|
638
|
+
ca.value ? (s(), b(t(ga), {
|
|
639
639
|
key: 0,
|
|
640
640
|
ref_key: "retryFileButtonRef",
|
|
641
|
-
ref:
|
|
642
|
-
"aria-labelledby": `${t(
|
|
641
|
+
ref: H,
|
|
642
|
+
"aria-labelledby": `${t(D)} ${t(W)}`,
|
|
643
643
|
variant: "tertiary",
|
|
644
|
-
onClick: F[0] || (F[0] = (
|
|
644
|
+
onClick: F[0] || (F[0] = (oa) => n("retry"))
|
|
645
645
|
}, {
|
|
646
|
-
iconLeft:
|
|
647
|
-
O(t(
|
|
648
|
-
id: t(
|
|
649
|
-
"svg-title": `${t(
|
|
646
|
+
iconLeft: h(() => [
|
|
647
|
+
O(t(hi), {
|
|
648
|
+
id: t(W),
|
|
649
|
+
"svg-title": `${t(w)("retry")} - ${_.file.data.name} `
|
|
650
650
|
}, null, 8, ["id", "svg-title"])
|
|
651
651
|
]),
|
|
652
|
-
default:
|
|
653
|
-
|
|
652
|
+
default: h(() => [
|
|
653
|
+
j(" " + v(t(w)("retry")), 1)
|
|
654
654
|
]),
|
|
655
655
|
_: 1
|
|
656
|
-
}, 8, ["aria-labelledby"])) :
|
|
657
|
-
|
|
656
|
+
}, 8, ["aria-labelledby"])) : u("", !0),
|
|
657
|
+
N.value || B.value ? (s(), b(t(ga), {
|
|
658
658
|
key: 1,
|
|
659
659
|
ref_key: "cancelFileButtonRef",
|
|
660
|
-
ref:
|
|
661
|
-
"aria-labelledby": `${t(
|
|
660
|
+
ref: C,
|
|
661
|
+
"aria-labelledby": `${t(D)} ${t(U)}`,
|
|
662
662
|
variant: "tertiary",
|
|
663
|
-
onClick: F[1] || (F[1] = (
|
|
663
|
+
onClick: F[1] || (F[1] = (oa) => n("cancel"))
|
|
664
664
|
}, {
|
|
665
|
-
iconLeft:
|
|
666
|
-
O(t(
|
|
667
|
-
id: t(
|
|
668
|
-
"svg-title": `${t(
|
|
665
|
+
iconLeft: h(() => [
|
|
666
|
+
O(t(gi), {
|
|
667
|
+
id: t(U),
|
|
668
|
+
"svg-title": `${t(w)("cancel")} - ${_.file.data.name}`
|
|
669
669
|
}, null, 8, ["id", "svg-title"])
|
|
670
670
|
]),
|
|
671
671
|
_: 1
|
|
672
|
-
}, 8, ["aria-labelledby"])) : (s(),
|
|
672
|
+
}, 8, ["aria-labelledby"])) : (s(), b(t(ga), {
|
|
673
673
|
key: 2,
|
|
674
674
|
ref_key: "removeFileButtonRef",
|
|
675
675
|
ref: d,
|
|
676
|
-
"aria-labelledby": `${t(
|
|
676
|
+
"aria-labelledby": `${t(D)} ${t(y)}`,
|
|
677
677
|
variant: "tertiary",
|
|
678
|
-
onClick: F[2] || (F[2] = (
|
|
678
|
+
onClick: F[2] || (F[2] = (oa) => n("remove"))
|
|
679
679
|
}, {
|
|
680
|
-
iconLeft:
|
|
681
|
-
O(t(
|
|
682
|
-
id: t(
|
|
683
|
-
"svg-title": `${t(
|
|
680
|
+
iconLeft: h(() => [
|
|
681
|
+
O(t(fi), {
|
|
682
|
+
id: t(y),
|
|
683
|
+
"svg-title": `${t(w)("remove")} - ${_.file.data.name}`
|
|
684
684
|
}, null, 8, ["id", "svg-title"])
|
|
685
685
|
]),
|
|
686
686
|
_: 1
|
|
@@ -688,7 +688,7 @@ const qa = {
|
|
|
688
688
|
])
|
|
689
689
|
], 2));
|
|
690
690
|
}
|
|
691
|
-
}),
|
|
691
|
+
}), Te = /* @__PURE__ */ L(Le, [["__scopeId", "data-v-389ff9bd"]]), Ua = {
|
|
692
692
|
"en-US": {
|
|
693
693
|
maxFileSize: "Max file size: {size}",
|
|
694
694
|
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
@@ -697,10 +697,10 @@ const qa = {
|
|
|
697
697
|
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
698
698
|
supportedFileTypes: "Supported file types: {list}"
|
|
699
699
|
}
|
|
700
|
-
},
|
|
701
|
-
i18n: { messages:
|
|
702
|
-
},
|
|
703
|
-
...
|
|
700
|
+
}, Me = {
|
|
701
|
+
i18n: { messages: Ua }
|
|
702
|
+
}, Se = /* @__PURE__ */ la({
|
|
703
|
+
...Me,
|
|
704
704
|
__name: "file-uploader-restrictions",
|
|
705
705
|
props: {
|
|
706
706
|
condensed: { type: Boolean, default: null },
|
|
@@ -711,65 +711,65 @@ const qa = {
|
|
|
711
711
|
supportedFileTypes: { default: null }
|
|
712
712
|
},
|
|
713
713
|
setup(a) {
|
|
714
|
-
const i = a, { t: p, tc: l, locale: o } = sa({ messages:
|
|
714
|
+
const i = a, { t: p, tc: l, locale: o } = sa({ messages: Ua }), n = x(() => ({
|
|
715
715
|
"b-file-uploader-restrictions--condensed": i.condensed,
|
|
716
716
|
"b-file-uploader-restrictions--disabled": i.disabled
|
|
717
717
|
}));
|
|
718
|
-
function
|
|
718
|
+
function w(d) {
|
|
719
719
|
return {
|
|
720
720
|
"b-file-uploader-restrictions--error": d
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
|
-
const
|
|
723
|
+
const m = x(() => {
|
|
724
724
|
if (!i.maxDimensions)
|
|
725
725
|
return null;
|
|
726
726
|
const {
|
|
727
|
-
value: { width: d, height:
|
|
727
|
+
value: { width: d, height: C }
|
|
728
728
|
} = i.maxDimensions;
|
|
729
|
-
return d &&
|
|
729
|
+
return d && C ? p("maxImageDimensions", { width: d, height: C }) : d ? p("maxImageWidth", { width: d }) : C ? p("maxImageHeight", { height: C }) : null;
|
|
730
730
|
});
|
|
731
|
-
return (d,
|
|
732
|
-
class:
|
|
731
|
+
return (d, C) => (s(), f("div", {
|
|
732
|
+
class: q(["b-file-uploader-restrictions", n.value])
|
|
733
733
|
}, [
|
|
734
|
-
d.supportedFileTypes ? (s(),
|
|
734
|
+
d.supportedFileTypes ? (s(), b(t(z), {
|
|
735
735
|
key: 0,
|
|
736
|
-
class:
|
|
736
|
+
class: q(w(d.supportedFileTypes.error))
|
|
737
737
|
}, {
|
|
738
|
-
default:
|
|
739
|
-
|
|
738
|
+
default: h(() => [
|
|
739
|
+
j(v(t(p)("supportedFileTypes", { list: d.supportedFileTypes.value })), 1)
|
|
740
740
|
]),
|
|
741
741
|
_: 1
|
|
742
|
-
}, 8, ["class"])) :
|
|
743
|
-
d.maxSize ? (s(),
|
|
742
|
+
}, 8, ["class"])) : u("", !0),
|
|
743
|
+
d.maxSize ? (s(), b(t(z), {
|
|
744
744
|
key: 1,
|
|
745
|
-
class:
|
|
745
|
+
class: q(w(d.maxSize.error))
|
|
746
746
|
}, {
|
|
747
|
-
default:
|
|
748
|
-
|
|
747
|
+
default: h(() => [
|
|
748
|
+
j(v(t(p)("maxFileSize", { size: t(Za)(t(o), d.maxSize.value) })), 1)
|
|
749
749
|
]),
|
|
750
750
|
_: 1
|
|
751
|
-
}, 8, ["class"])) :
|
|
752
|
-
d.maxDimensions ? (s(),
|
|
751
|
+
}, 8, ["class"])) : u("", !0),
|
|
752
|
+
d.maxDimensions ? (s(), b(t(z), {
|
|
753
753
|
key: 2,
|
|
754
|
-
class:
|
|
754
|
+
class: q(w(d.maxDimensions.error))
|
|
755
755
|
}, {
|
|
756
|
-
default:
|
|
757
|
-
|
|
756
|
+
default: h(() => [
|
|
757
|
+
j(v(m.value), 1)
|
|
758
758
|
]),
|
|
759
759
|
_: 1
|
|
760
|
-
}, 8, ["class"])) :
|
|
761
|
-
d.maxCount ? (s(),
|
|
760
|
+
}, 8, ["class"])) : u("", !0),
|
|
761
|
+
d.maxCount ? (s(), b(t(z), {
|
|
762
762
|
key: 3,
|
|
763
|
-
class:
|
|
763
|
+
class: q(w(d.maxCount.error))
|
|
764
764
|
}, {
|
|
765
|
-
default:
|
|
766
|
-
|
|
765
|
+
default: h(() => [
|
|
766
|
+
j(v(t(l)("maxUpload", d.maxCount.value)), 1)
|
|
767
767
|
]),
|
|
768
768
|
_: 1
|
|
769
|
-
}, 8, ["class"])) :
|
|
769
|
+
}, 8, ["class"])) : u("", !0)
|
|
770
770
|
], 2));
|
|
771
771
|
}
|
|
772
|
-
}),
|
|
772
|
+
}), Da = /* @__PURE__ */ L(Se, [["__scopeId", "data-v-d7c2e9cd"]]), Na = {
|
|
773
773
|
"application/prs.cww": ["cww"],
|
|
774
774
|
"application/prs.xsf+xml": ["xsf"],
|
|
775
775
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1468,8 +1468,8 @@ const qa = {
|
|
|
1468
1468
|
"video/x-smv": ["smv"],
|
|
1469
1469
|
"x-conference/x-cooltalk": ["ice"]
|
|
1470
1470
|
};
|
|
1471
|
-
Object.freeze(
|
|
1472
|
-
const
|
|
1471
|
+
Object.freeze(Na);
|
|
1472
|
+
const Pa = {
|
|
1473
1473
|
"application/andrew-inset": ["ez"],
|
|
1474
1474
|
"application/appinstaller": ["appinstaller"],
|
|
1475
1475
|
"application/applixware": ["aw"],
|
|
@@ -1821,31 +1821,31 @@ const Aa = {
|
|
|
1821
1821
|
"video/quicktime": ["qt", "mov"],
|
|
1822
1822
|
"video/webm": ["webm"]
|
|
1823
1823
|
};
|
|
1824
|
-
Object.freeze(
|
|
1825
|
-
var
|
|
1824
|
+
Object.freeze(Pa);
|
|
1825
|
+
var T = function(a, i, p, l) {
|
|
1826
1826
|
if (p === "a" && !l) throw new TypeError("Private accessor was defined without a getter");
|
|
1827
1827
|
if (typeof i == "function" ? a !== i || !l : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1828
1828
|
return p === "m" ? l : p === "a" ? l.call(a) : l ? l.value : i.get(a);
|
|
1829
|
-
},
|
|
1830
|
-
class
|
|
1829
|
+
}, G, K, A;
|
|
1830
|
+
class Ve {
|
|
1831
1831
|
constructor(...i) {
|
|
1832
|
-
|
|
1832
|
+
G.set(this, /* @__PURE__ */ new Map()), K.set(this, /* @__PURE__ */ new Map()), A.set(this, /* @__PURE__ */ new Map());
|
|
1833
1833
|
for (const p of i)
|
|
1834
1834
|
this.define(p);
|
|
1835
1835
|
}
|
|
1836
1836
|
define(i, p = !1) {
|
|
1837
1837
|
for (let [l, o] of Object.entries(i)) {
|
|
1838
|
-
l = l.toLowerCase(), o = o.map((
|
|
1839
|
-
const n =
|
|
1840
|
-
let
|
|
1841
|
-
for (let
|
|
1842
|
-
const d =
|
|
1843
|
-
if (
|
|
1838
|
+
l = l.toLowerCase(), o = o.map((m) => m.toLowerCase()), T(this, A, "f").has(l) || T(this, A, "f").set(l, /* @__PURE__ */ new Set());
|
|
1839
|
+
const n = T(this, A, "f").get(l);
|
|
1840
|
+
let w = !0;
|
|
1841
|
+
for (let m of o) {
|
|
1842
|
+
const d = m.startsWith("*");
|
|
1843
|
+
if (m = d ? m.slice(1) : m, n == null || n.add(m), w && T(this, K, "f").set(l, m), w = !1, d)
|
|
1844
1844
|
continue;
|
|
1845
|
-
const
|
|
1846
|
-
if (
|
|
1847
|
-
throw new Error(`"${l} -> ${
|
|
1848
|
-
|
|
1845
|
+
const C = T(this, G, "f").get(m);
|
|
1846
|
+
if (C && C != l && !p)
|
|
1847
|
+
throw new Error(`"${l} -> ${m}" conflicts with "${C} -> ${m}". Pass \`force=true\` to override this definition.`);
|
|
1848
|
+
T(this, G, "f").set(m, l);
|
|
1849
1849
|
}
|
|
1850
1850
|
}
|
|
1851
1851
|
return this;
|
|
@@ -1854,36 +1854,36 @@ class Te {
|
|
|
1854
1854
|
if (typeof i != "string")
|
|
1855
1855
|
return null;
|
|
1856
1856
|
const p = i.replace(/^.*[/\\]/, "").toLowerCase(), l = p.replace(/^.*\./, "").toLowerCase(), o = p.length < i.length;
|
|
1857
|
-
return !(l.length < p.length - 1) && o ? null :
|
|
1857
|
+
return !(l.length < p.length - 1) && o ? null : T(this, G, "f").get(l) ?? null;
|
|
1858
1858
|
}
|
|
1859
1859
|
getExtension(i) {
|
|
1860
1860
|
var p;
|
|
1861
|
-
return typeof i != "string" ? null : (i = (p = i == null ? void 0 : i.split) == null ? void 0 : p.call(i, ";")[0], (i &&
|
|
1861
|
+
return typeof i != "string" ? null : (i = (p = i == null ? void 0 : i.split) == null ? void 0 : p.call(i, ";")[0], (i && T(this, K, "f").get(i.trim().toLowerCase())) ?? null);
|
|
1862
1862
|
}
|
|
1863
1863
|
getAllExtensions(i) {
|
|
1864
|
-
return typeof i != "string" ? null :
|
|
1864
|
+
return typeof i != "string" ? null : T(this, A, "f").get(i.toLowerCase()) ?? null;
|
|
1865
1865
|
}
|
|
1866
1866
|
_freeze() {
|
|
1867
1867
|
this.define = () => {
|
|
1868
1868
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
1869
1869
|
}, Object.freeze(this);
|
|
1870
|
-
for (const i of
|
|
1870
|
+
for (const i of T(this, A, "f").values())
|
|
1871
1871
|
Object.freeze(i);
|
|
1872
1872
|
return this;
|
|
1873
1873
|
}
|
|
1874
1874
|
_getTestState() {
|
|
1875
1875
|
return {
|
|
1876
|
-
types:
|
|
1877
|
-
extensions:
|
|
1876
|
+
types: T(this, G, "f"),
|
|
1877
|
+
extensions: T(this, K, "f")
|
|
1878
1878
|
};
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
|
-
|
|
1882
|
-
const
|
|
1883
|
-
function
|
|
1884
|
-
return a.includes("/") ? `.${
|
|
1881
|
+
G = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap();
|
|
1882
|
+
const Ga = new Ve(Pa, Na)._freeze();
|
|
1883
|
+
function Fe(a) {
|
|
1884
|
+
return a.includes("/") ? `.${Ga.getExtension(a).toUpperCase()}` : a.toUpperCase();
|
|
1885
1885
|
}
|
|
1886
|
-
function
|
|
1886
|
+
function De(a) {
|
|
1887
1887
|
const { locale: i, t: p } = sa();
|
|
1888
1888
|
return { supportedFileTypeList: x(() => {
|
|
1889
1889
|
const o = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
|
|
@@ -1897,13 +1897,13 @@ function Se(a) {
|
|
|
1897
1897
|
case "video/*":
|
|
1898
1898
|
return p("videoFiles");
|
|
1899
1899
|
default:
|
|
1900
|
-
return
|
|
1900
|
+
return Fe(n);
|
|
1901
1901
|
}
|
|
1902
1902
|
})
|
|
1903
1903
|
) : null;
|
|
1904
1904
|
}) };
|
|
1905
1905
|
}
|
|
1906
|
-
const
|
|
1906
|
+
const Wa = {
|
|
1907
1907
|
"en-US": {
|
|
1908
1908
|
audioFiles: "audio files",
|
|
1909
1909
|
browseFiles: "Browse files",
|
|
@@ -1916,48 +1916,48 @@ const Ua = {
|
|
|
1916
1916
|
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
1917
1917
|
}
|
|
1918
1918
|
};
|
|
1919
|
-
function
|
|
1920
|
-
return
|
|
1919
|
+
function Oe(a) {
|
|
1920
|
+
return Ga.getType(a) ?? a;
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1923
|
-
const p =
|
|
1922
|
+
function He({ maxCount: a, accept: i }) {
|
|
1923
|
+
const p = ba({
|
|
1924
1924
|
invalidTypes: !1,
|
|
1925
1925
|
partiallyInvalidTypes: !1,
|
|
1926
1926
|
maxCountOverflow: !1
|
|
1927
|
-
}), l =
|
|
1927
|
+
}), l = ba({
|
|
1928
1928
|
dragging: !1,
|
|
1929
1929
|
error: !1
|
|
1930
|
-
}), o = x(() => i.value ? i.value.split(",").map((d) =>
|
|
1930
|
+
}), o = x(() => i.value ? i.value.split(",").map((d) => Oe(d.trim().toLocaleLowerCase())) : void 0);
|
|
1931
1931
|
function n() {
|
|
1932
1932
|
l.dragging = !1, l.error = !1, p.invalidTypes = !1, p.partiallyInvalidTypes = !1, p.maxCountOverflow = !1;
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1935
|
-
if (l.dragging = !0, (!d.dataTransfer.types.includes("Files") ||
|
|
1934
|
+
function w(m, d) {
|
|
1935
|
+
if (l.dragging = !0, (!d.dataTransfer.types.includes("Files") || m > a.value) && (p.maxCountOverflow = !0, l.error = !0), !o.value)
|
|
1936
1936
|
return;
|
|
1937
|
-
let
|
|
1938
|
-
for (const
|
|
1939
|
-
o.value.includes(
|
|
1940
|
-
if (
|
|
1937
|
+
let C = 0;
|
|
1938
|
+
for (const H of d.dataTransfer.items)
|
|
1939
|
+
o.value.includes(H.type) && C++;
|
|
1940
|
+
if (C === 0) {
|
|
1941
1941
|
l.error = !0, p.invalidTypes = !0;
|
|
1942
1942
|
return;
|
|
1943
1943
|
}
|
|
1944
|
-
!p.invalidTypes &&
|
|
1944
|
+
!p.invalidTypes && C !== d.dataTransfer.items.length && (l.error = !0, p.partiallyInvalidTypes = !0);
|
|
1945
1945
|
}
|
|
1946
1946
|
return {
|
|
1947
1947
|
dragState: l,
|
|
1948
1948
|
dragErrors: p,
|
|
1949
1949
|
resetDragState: n,
|
|
1950
|
-
onDragEnterValidations:
|
|
1950
|
+
onDragEnterValidations: w
|
|
1951
1951
|
};
|
|
1952
1952
|
}
|
|
1953
|
-
const
|
|
1953
|
+
const qe = ["id", "accept", "disabled", "multiple"], Be = ["id"], Ze = ["aria-labelledby", "tabindex"], Ae = {
|
|
1954
1954
|
class: "b-file-uploader__icon",
|
|
1955
1955
|
"aria-hidden": "true"
|
|
1956
|
-
},
|
|
1956
|
+
}, Ue = { class: "b-file-uploader__files" }, Ne = {
|
|
1957
1957
|
model: { prop: "modelValue" },
|
|
1958
|
-
i18n: { messages:
|
|
1959
|
-
},
|
|
1960
|
-
...
|
|
1958
|
+
i18n: { messages: Wa }
|
|
1959
|
+
}, Pe = /* @__PURE__ */ la({
|
|
1960
|
+
...Ne,
|
|
1961
1961
|
__name: "file-uploader",
|
|
1962
1962
|
props: {
|
|
1963
1963
|
accept: { default: null },
|
|
@@ -1974,22 +1974,33 @@ const Fe = ["id", "accept", "disabled", "multiple"], Oe = ["id"], He = ["aria-la
|
|
|
1974
1974
|
required: { type: Boolean },
|
|
1975
1975
|
tooltipText: { default: null }
|
|
1976
1976
|
},
|
|
1977
|
-
emits: ["change", "update:modelValue", "error:upload"],
|
|
1977
|
+
emits: ["change", "input", "update:modelValue", "error:upload"],
|
|
1978
1978
|
setup(a, { emit: i }) {
|
|
1979
|
-
const { t: p, tc: l } = sa({ messages:
|
|
1980
|
-
|
|
1981
|
-
return
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1979
|
+
const { t: p, tc: l } = sa({ messages: Wa }), o = i, n = a;
|
|
1980
|
+
function w(e) {
|
|
1981
|
+
return !!e && typeof e.length == "number" && typeof e.item == "function";
|
|
1982
|
+
}
|
|
1983
|
+
Oa(() => {
|
|
1984
|
+
w(n.modelValue) || vi(
|
|
1985
|
+
"BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
|
|
1986
|
+
"Use FileList instead.",
|
|
1987
|
+
"2.0.0"
|
|
1988
|
+
);
|
|
1989
|
+
});
|
|
1990
|
+
const { supportedFileTypeList: m } = De(xa(n, "accept")), d = M("browse-button"), C = M("custom-text"), H = M("drop-files-text"), D = M("comma-text"), U = M("file-uploader-restrictions"), y = I(null), W = I([]), E = I(null), Q = I(null), B = M("input"), ca = M("input-error"), aa = x(() => {
|
|
1991
|
+
const e = n.condensed ? "" : `${H} ${D}`, c = n.description ? `${C} ${D}` : "", k = `${U} ${D}`;
|
|
1992
|
+
return `${e} ${c} ${k} ${d}`;
|
|
1993
|
+
}), { dragState: Y, dragErrors: Z, resetDragState: N, onDragEnterValidations: da } = He({
|
|
1994
|
+
accept: xa(n, "accept"),
|
|
1995
|
+
maxCount: xa(n, "maxCount")
|
|
1996
|
+
}), ia = x(() => {
|
|
1997
|
+
var e, c, k;
|
|
1987
1998
|
return {
|
|
1988
1999
|
condensed: n.condensed,
|
|
1989
2000
|
disabled: n.disabled,
|
|
1990
|
-
maxCount:
|
|
2001
|
+
maxCount: X.value ? {
|
|
1991
2002
|
value: n.maxCount,
|
|
1992
|
-
error: Z.maxCountOverflow ||
|
|
2003
|
+
error: Z.maxCountOverflow || F.value
|
|
1993
2004
|
} : null,
|
|
1994
2005
|
maxDimensions: n.maxDimensions ? {
|
|
1995
2006
|
value: n.maxDimensions,
|
|
@@ -1999,135 +2010,149 @@ const Fe = ["id", "accept", "disabled", "multiple"], Oe = ["id"], He = ["aria-la
|
|
|
1999
2010
|
value: n.maxSize,
|
|
2000
2011
|
error: (c = y.value) == null ? void 0 : c.some(($) => $.errors.includes(R.ERROR_SIZE))
|
|
2001
2012
|
} : null,
|
|
2002
|
-
supportedFileTypes:
|
|
2003
|
-
value:
|
|
2004
|
-
error: Z.invalidTypes || Z.partiallyInvalidTypes || ((
|
|
2013
|
+
supportedFileTypes: m.value ? {
|
|
2014
|
+
value: m.value,
|
|
2015
|
+
error: Z.invalidTypes || Z.partiallyInvalidTypes || ((k = y.value) == null ? void 0 : k.some(($) => $.errors.includes(R.ERROR_TYPE)))
|
|
2005
2016
|
} : null
|
|
2006
2017
|
};
|
|
2007
|
-
}),
|
|
2018
|
+
}), P = I(), ea = x(() => ({
|
|
2008
2019
|
[`b-file-uploader--${pa.DISABLED}`]: n.disabled,
|
|
2009
|
-
[`b-file-uploader--${pa.DRAG_OVER}`]:
|
|
2010
|
-
[`b-file-uploader--${pa.ERROR}`]:
|
|
2020
|
+
[`b-file-uploader--${pa.DRAG_OVER}`]: Y.dragging,
|
|
2021
|
+
[`b-file-uploader--${pa.ERROR}`]: _.value,
|
|
2011
2022
|
"b-file-uploader--condensed": n.condensed
|
|
2012
|
-
})),
|
|
2023
|
+
})), X = x(() => n.maxCount > 1), ra = x(() => {
|
|
2013
2024
|
var e;
|
|
2014
2025
|
return n.maxCount && ((e = y.value) == null ? void 0 : e.length) >= n.maxCount;
|
|
2015
|
-
}),
|
|
2026
|
+
}), ma = x(() => {
|
|
2016
2027
|
var e;
|
|
2017
2028
|
return (e = y.value) == null ? void 0 : e.some((c) => c.state === "loading");
|
|
2018
|
-
}),
|
|
2019
|
-
|
|
2020
|
-
}
|
|
2029
|
+
}), ta = (e) => (c) => {
|
|
2030
|
+
W.value[e] = c;
|
|
2031
|
+
};
|
|
2032
|
+
function na(e) {
|
|
2033
|
+
if (e) {
|
|
2034
|
+
ei(e), ti(e);
|
|
2035
|
+
const c = ni(e);
|
|
2036
|
+
o("change", c), o("update:modelValue", c), o("input", c);
|
|
2037
|
+
} else
|
|
2038
|
+
o("change"), o("update:modelValue"), o("input");
|
|
2039
|
+
}
|
|
2040
|
+
const _ = x(() => !!n.errorMessage || Y.error), F = x(() => {
|
|
2021
2041
|
var e;
|
|
2022
2042
|
return ((e = y.value) == null ? void 0 : e.length) > n.maxCount;
|
|
2023
|
-
}),
|
|
2043
|
+
}), oa = I(!1), Ya = x(() => {
|
|
2024
2044
|
var e;
|
|
2025
2045
|
return (e = y.value) == null ? void 0 : e.some((c) => c.state === "error");
|
|
2026
2046
|
});
|
|
2027
|
-
|
|
2028
|
-
|
|
2047
|
+
ha(Ya, (e) => {
|
|
2048
|
+
ma.value || o("error:upload", e);
|
|
2029
2049
|
});
|
|
2030
|
-
async function
|
|
2050
|
+
async function ua() {
|
|
2031
2051
|
var e;
|
|
2032
|
-
if (await
|
|
2033
|
-
(e =
|
|
2052
|
+
if (await mi(), y.value.length === n.maxCount) {
|
|
2053
|
+
(e = W.value[0]) == null || e.focus();
|
|
2034
2054
|
return;
|
|
2035
2055
|
}
|
|
2036
|
-
|
|
2056
|
+
Q.value.focus();
|
|
2037
2057
|
}
|
|
2038
|
-
async function
|
|
2039
|
-
y.value = y.value.filter(({ id: c }) => c !== e.id), await
|
|
2058
|
+
async function wa(e) {
|
|
2059
|
+
y.value = y.value.filter(({ id: c }) => c !== e.id), await ua(), na(y.value);
|
|
2040
2060
|
}
|
|
2041
|
-
function
|
|
2042
|
-
const c =
|
|
2043
|
-
id:
|
|
2061
|
+
function va(e) {
|
|
2062
|
+
const c = ba({
|
|
2063
|
+
id: M("file"),
|
|
2044
2064
|
data: e,
|
|
2045
2065
|
errors: [],
|
|
2046
2066
|
progress: null,
|
|
2047
|
-
state:
|
|
2048
|
-
type:
|
|
2067
|
+
state: S.LOADING,
|
|
2068
|
+
type: Si(e)
|
|
2049
2069
|
});
|
|
2050
|
-
return
|
|
2070
|
+
return Fi(c, n.accept, n.maxDimensions), c;
|
|
2051
2071
|
}
|
|
2052
|
-
function
|
|
2072
|
+
function Xa(e) {
|
|
2053
2073
|
var c;
|
|
2054
2074
|
((c = y.value) == null ? void 0 : c.length) === n.maxCount && e.preventDefault();
|
|
2055
2075
|
}
|
|
2056
|
-
async function
|
|
2076
|
+
async function ya(e) {
|
|
2057
2077
|
if (n.maxCount === 1 && e.length > n.maxCount) {
|
|
2058
|
-
|
|
2078
|
+
fa(), N();
|
|
2059
2079
|
return;
|
|
2060
2080
|
}
|
|
2061
|
-
|
|
2081
|
+
X.value ? y.value = [...y.value || [], ...Array.from(e).map((c) => va(c))] : (y.value = [va(e[0])], await ua()), na(y.value);
|
|
2062
2082
|
}
|
|
2063
|
-
function
|
|
2064
|
-
var
|
|
2083
|
+
function Ja(e) {
|
|
2084
|
+
var k, $;
|
|
2065
2085
|
if (n.disabled)
|
|
2066
2086
|
return;
|
|
2067
|
-
|
|
2068
|
-
const c = (((
|
|
2069
|
-
|
|
2087
|
+
P.value = e.target;
|
|
2088
|
+
const c = (((k = e.dataTransfer.items) == null ? void 0 : k.length) ?? 0) + ((($ = y.value) == null ? void 0 : $.length) ?? 0);
|
|
2089
|
+
da(c, e);
|
|
2070
2090
|
}
|
|
2071
|
-
function
|
|
2072
|
-
|
|
2091
|
+
function fa() {
|
|
2092
|
+
P.value = null;
|
|
2073
2093
|
}
|
|
2074
|
-
function
|
|
2075
|
-
|
|
2094
|
+
function Ka(e) {
|
|
2095
|
+
P.value === e.target && (fa(), N());
|
|
2076
2096
|
}
|
|
2077
|
-
function
|
|
2097
|
+
function Qa(e) {
|
|
2078
2098
|
e.preventDefault(), n.disabled && (e.dataTransfer.dropEffect = "none");
|
|
2079
2099
|
}
|
|
2080
|
-
async function
|
|
2100
|
+
async function ai(e) {
|
|
2081
2101
|
var c;
|
|
2082
|
-
n.disabled || (!Z.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) &&
|
|
2102
|
+
n.disabled || (!Z.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) && ya(e.dataTransfer.files), fa(), N());
|
|
2083
2103
|
}
|
|
2084
|
-
async function
|
|
2104
|
+
async function ii() {
|
|
2085
2105
|
var e;
|
|
2086
|
-
(e =
|
|
2106
|
+
(e = E.value.files) != null && e.length && ya(E.value.files), E.value.value = "", await ua();
|
|
2087
2107
|
}
|
|
2088
|
-
|
|
2108
|
+
ha(
|
|
2109
|
+
() => n.modelValue,
|
|
2110
|
+
(e) => {
|
|
2111
|
+
if (e && w(e)) {
|
|
2112
|
+
const c = e, k = Array.from(c);
|
|
2113
|
+
y.value = k.map(($) => va($));
|
|
2114
|
+
}
|
|
2115
|
+
},
|
|
2116
|
+
{ immediate: !0 }
|
|
2117
|
+
);
|
|
2118
|
+
function ei(e) {
|
|
2089
2119
|
const c = n.maxCount && e.length <= n.maxCount;
|
|
2090
|
-
|
|
2120
|
+
oa.value = !c;
|
|
2091
2121
|
}
|
|
2092
|
-
function
|
|
2122
|
+
function ti(e) {
|
|
2093
2123
|
n.maxSize && e.forEach((c) => {
|
|
2094
|
-
const
|
|
2095
|
-
|
|
2124
|
+
const k = c;
|
|
2125
|
+
k.data.size > n.maxSize && (k.state = S.ERROR, k.errors.push(R.ERROR_SIZE));
|
|
2096
2126
|
});
|
|
2097
2127
|
}
|
|
2098
|
-
function
|
|
2128
|
+
function ni(e) {
|
|
2099
2129
|
const c = e.filter(
|
|
2100
|
-
({ errors:
|
|
2130
|
+
({ errors: k }) => !k.includes(R.ERROR_LOAD) && !k.includes(R.ERROR_SIZE)
|
|
2101
2131
|
);
|
|
2102
2132
|
if (c.length) {
|
|
2103
|
-
const
|
|
2104
|
-
return c.forEach(({ data:
|
|
2133
|
+
const k = new DataTransfer();
|
|
2134
|
+
return c.forEach(({ data: $, id: ka }) => {
|
|
2135
|
+
k.items.add($);
|
|
2136
|
+
}), k.files;
|
|
2105
2137
|
}
|
|
2106
2138
|
}
|
|
2107
|
-
return
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
o("change", c), o("update:modelValue", c);
|
|
2112
|
-
} else
|
|
2113
|
-
o("change"), o("update:modelValue");
|
|
2114
|
-
}), (e, c) => {
|
|
2115
|
-
var C;
|
|
2116
|
-
return s(), v("div", {
|
|
2117
|
-
class: B(["b-file-uploader", na.value])
|
|
2139
|
+
return (e, c) => {
|
|
2140
|
+
var k;
|
|
2141
|
+
return s(), f("div", {
|
|
2142
|
+
class: q(["b-file-uploader", ea.value])
|
|
2118
2143
|
}, [
|
|
2119
|
-
O(t(
|
|
2144
|
+
O(t(ki), {
|
|
2120
2145
|
class: "b-file-uploader__label",
|
|
2121
|
-
for: t(
|
|
2146
|
+
for: t(B),
|
|
2122
2147
|
label: e.label,
|
|
2123
2148
|
optional: e.optional,
|
|
2124
2149
|
required: e.required,
|
|
2125
2150
|
"tooltip-text": e.tooltipText
|
|
2126
2151
|
}, null, 8, ["for", "label", "optional", "required", "tooltip-text"]),
|
|
2127
2152
|
r("input", {
|
|
2128
|
-
id: t(
|
|
2153
|
+
id: t(B),
|
|
2129
2154
|
ref_key: "inputRef",
|
|
2130
|
-
ref:
|
|
2155
|
+
ref: E,
|
|
2131
2156
|
"aria-hidden": "true",
|
|
2132
2157
|
type: "file",
|
|
2133
2158
|
tabindex: "-1",
|
|
@@ -2135,121 +2160,121 @@ const Fe = ["id", "accept", "disabled", "multiple"], Oe = ["id"], He = ["aria-la
|
|
|
2135
2160
|
class: "b-file-uploader__input",
|
|
2136
2161
|
accept: e.accept,
|
|
2137
2162
|
disabled: e.disabled,
|
|
2138
|
-
multiple:
|
|
2139
|
-
onChange:
|
|
2140
|
-
onClick:
|
|
2141
|
-
}, null, 40,
|
|
2163
|
+
multiple: X.value,
|
|
2164
|
+
onChange: ii,
|
|
2165
|
+
onClick: Xa
|
|
2166
|
+
}, null, 40, qe),
|
|
2142
2167
|
r("span", {
|
|
2143
|
-
id: t(
|
|
2168
|
+
id: t(D),
|
|
2144
2169
|
"aria-hidden": "true",
|
|
2145
2170
|
class: "b-file-uploader__invisible-comma"
|
|
2146
|
-
}, " , ", 8,
|
|
2147
|
-
|
|
2171
|
+
}, " , ", 8, Be),
|
|
2172
|
+
ra.value ? u("", !0) : (s(), f("div", {
|
|
2148
2173
|
key: 0,
|
|
2149
2174
|
ref_key: "dropAreaRef",
|
|
2150
|
-
ref:
|
|
2151
|
-
"aria-labelledby":
|
|
2175
|
+
ref: Q,
|
|
2176
|
+
"aria-labelledby": aa.value,
|
|
2152
2177
|
class: "b-file-uploader__area",
|
|
2153
2178
|
role: "button",
|
|
2154
2179
|
tabindex: e.disabled ? -1 : 0,
|
|
2155
|
-
onClick: c[0] || (c[0] = ($) =>
|
|
2156
|
-
onDragenter:
|
|
2157
|
-
onDragleave:
|
|
2158
|
-
onDrop:
|
|
2159
|
-
onDragover:
|
|
2180
|
+
onClick: c[0] || (c[0] = ($) => E.value.click()),
|
|
2181
|
+
onDragenter: J(Ja, ["stop", "prevent"]),
|
|
2182
|
+
onDragleave: J(Ka, ["stop", "prevent"]),
|
|
2183
|
+
onDrop: J(ai, ["stop", "prevent"]),
|
|
2184
|
+
onDragover: Qa,
|
|
2160
2185
|
onKeydownCapture: [
|
|
2161
|
-
c[1] || (c[1] =
|
|
2162
|
-
c[2] || (c[2] =
|
|
2186
|
+
c[1] || (c[1] = $a(J(($) => E.value.click(), ["prevent"]), ["enter"])),
|
|
2187
|
+
c[2] || (c[2] = $a(J(($) => E.value.click(), ["prevent"]), ["space"]))
|
|
2163
2188
|
]
|
|
2164
2189
|
}, [
|
|
2165
|
-
r("div",
|
|
2166
|
-
|
|
2190
|
+
r("div", Ae, [
|
|
2191
|
+
_.value ? (s(), b(t(qa), { key: 0 })) : (s(), b(t(zi), { key: 1 }))
|
|
2167
2192
|
]),
|
|
2168
|
-
e.condensed ?
|
|
2193
|
+
e.condensed ? u("", !0) : (s(), f(_a, { key: 0 }, [
|
|
2169
2194
|
O(t(z), {
|
|
2170
|
-
id: t(
|
|
2195
|
+
id: t(H),
|
|
2171
2196
|
el: "span",
|
|
2172
2197
|
strongest: "",
|
|
2173
2198
|
class: "b-file-uploader__title"
|
|
2174
2199
|
}, {
|
|
2175
|
-
default:
|
|
2176
|
-
|
|
2200
|
+
default: h(() => [
|
|
2201
|
+
j(v(t(l)("dropFiles", e.maxCount)), 1)
|
|
2177
2202
|
]),
|
|
2178
2203
|
_: 1
|
|
2179
2204
|
}, 8, ["id"]),
|
|
2180
|
-
e.description ? (s(),
|
|
2205
|
+
e.description ? (s(), b(t(z), {
|
|
2181
2206
|
key: 0,
|
|
2182
|
-
id: t(
|
|
2207
|
+
id: t(C),
|
|
2183
2208
|
el: "span",
|
|
2184
2209
|
class: "b-file-uploader__description"
|
|
2185
2210
|
}, {
|
|
2186
|
-
default:
|
|
2187
|
-
|
|
2211
|
+
default: h(() => [
|
|
2212
|
+
j(v(e.description), 1)
|
|
2188
2213
|
]),
|
|
2189
2214
|
_: 1
|
|
2190
|
-
}, 8, ["id"])) :
|
|
2191
|
-
O(t(
|
|
2215
|
+
}, 8, ["id"])) : u("", !0),
|
|
2216
|
+
O(t(Da), V(ia.value, { id: t(U) }), null, 16, ["id"])
|
|
2192
2217
|
], 64)),
|
|
2193
2218
|
O(t(z), {
|
|
2194
|
-
id: t(
|
|
2219
|
+
id: t(d),
|
|
2195
2220
|
stronger: "",
|
|
2196
2221
|
class: "b-file-uploader__button"
|
|
2197
2222
|
}, {
|
|
2198
|
-
default:
|
|
2199
|
-
|
|
2223
|
+
default: h(() => [
|
|
2224
|
+
j(v(t(p)("browseFiles")), 1)
|
|
2200
2225
|
]),
|
|
2201
2226
|
_: 1
|
|
2202
2227
|
}, 8, ["id"])
|
|
2203
|
-
], 40,
|
|
2204
|
-
|
|
2228
|
+
], 40, Ze)),
|
|
2229
|
+
_.value && e.errorMessage ? (s(), b(t(Ci), {
|
|
2205
2230
|
key: 1,
|
|
2206
|
-
id: t(
|
|
2231
|
+
id: t(ca),
|
|
2207
2232
|
"error-message": e.errorMessage,
|
|
2208
2233
|
class: "b-file-uploader__error-message"
|
|
2209
|
-
}, null, 8, ["id", "error-message"])) :
|
|
2210
|
-
e.condensed && e.description ? (s(),
|
|
2234
|
+
}, null, 8, ["id", "error-message"])) : u("", !0),
|
|
2235
|
+
e.condensed && e.description ? (s(), b(t(z), {
|
|
2211
2236
|
key: 2,
|
|
2212
|
-
id: t(
|
|
2237
|
+
id: t(C),
|
|
2213
2238
|
"aria-hidden": "true",
|
|
2214
2239
|
el: "span",
|
|
2215
2240
|
class: "b-file-uploader__description b-file-uploader__description--condensed"
|
|
2216
2241
|
}, {
|
|
2217
|
-
default:
|
|
2218
|
-
|
|
2242
|
+
default: h(() => [
|
|
2243
|
+
j(v(e.description), 1)
|
|
2219
2244
|
]),
|
|
2220
2245
|
_: 1
|
|
2221
|
-
}, 8, ["id"])) :
|
|
2222
|
-
e.condensed ? (s(),
|
|
2223
|
-
|
|
2246
|
+
}, 8, ["id"])) : u("", !0),
|
|
2247
|
+
e.condensed ? (s(), b(t(Da), V({ key: 3 }, ia.value, { id: t(U) }), null, 16, ["id"])) : u("", !0),
|
|
2248
|
+
F.value ? (s(), b(t(ui), {
|
|
2224
2249
|
key: 4,
|
|
2225
2250
|
type: "critical"
|
|
2226
2251
|
}, {
|
|
2227
|
-
description:
|
|
2228
|
-
|
|
2252
|
+
description: h(() => [
|
|
2253
|
+
j(v(t(p)("youHaveExceededTheMaximum", { count: n.maxCount })), 1)
|
|
2229
2254
|
]),
|
|
2230
|
-
default:
|
|
2231
|
-
|
|
2255
|
+
default: h(() => [
|
|
2256
|
+
j(v(t(p)("tooManyFiles")) + " ", 1)
|
|
2232
2257
|
]),
|
|
2233
2258
|
_: 1
|
|
2234
|
-
})) :
|
|
2235
|
-
|
|
2236
|
-
(s(!0),
|
|
2259
|
+
})) : u("", !0),
|
|
2260
|
+
Ha(r("div", Ue, [
|
|
2261
|
+
(s(!0), f(_a, null, di(y.value, ($, ka) => (s(), b(t(Te), {
|
|
2237
2262
|
ref_for: !0,
|
|
2238
|
-
ref:
|
|
2263
|
+
ref: ta(ka),
|
|
2239
2264
|
key: $.id,
|
|
2240
2265
|
file: $,
|
|
2241
|
-
"supported-file-types": t(
|
|
2242
|
-
onCancel: (
|
|
2243
|
-
onRemove: (
|
|
2266
|
+
"supported-file-types": t(m),
|
|
2267
|
+
onCancel: (oi) => wa($),
|
|
2268
|
+
onRemove: (oi) => wa($)
|
|
2244
2269
|
}, null, 8, ["file", "supported-file-types", "onCancel", "onRemove"]))), 128))
|
|
2245
2270
|
], 512), [
|
|
2246
|
-
[
|
|
2271
|
+
[ri, (k = y.value) == null ? void 0 : k.length]
|
|
2247
2272
|
])
|
|
2248
2273
|
], 2);
|
|
2249
2274
|
};
|
|
2250
2275
|
}
|
|
2251
|
-
}),
|
|
2276
|
+
}), mt = /* @__PURE__ */ L(Pe, [["__scopeId", "data-v-8a59b0a4"]]);
|
|
2252
2277
|
export {
|
|
2253
|
-
|
|
2278
|
+
mt as f
|
|
2254
2279
|
};
|
|
2255
|
-
//# sourceMappingURL=file-uploader.
|
|
2280
|
+
//# sourceMappingURL=file-uploader.Dv4sh1IO.js.map
|