@adyen/bento-vue3 1.68.2 → 1.69.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/components.d.ts +1 -0
- package/dist/@types/index.d.ts +752 -1177
- 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-button.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.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chip.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/country.css +1 -1
- package/dist/assets/currency.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/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/divider.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/empty-state.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/focus-trap.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/info-icon.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/loading-indicator.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/promo-banner.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/status.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toast.css +1 -1
- package/dist/assets/toggle-button.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +9 -9
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.DOnW0OnU.js → accordion-item.H062lKz1.js} +3 -3
- package/dist/chunks/accordion-item.H062lKz1.js.map +1 -0
- package/dist/chunks/{action-bar.CflF49oL.js → action-bar.CbO7oNER.js} +7 -8
- package/dist/chunks/action-bar.CbO7oNER.js.map +1 -0
- package/dist/chunks/{alert.DvleqX0i.js → alert.DFSdD4jX.js} +3 -3
- package/dist/chunks/{alert.DvleqX0i.js.map → alert.DFSdD4jX.js.map} +1 -1
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
- package/dist/chunks/{avatar.B0-9jC6H.js → avatar.BtxoYBvq.js} +2 -2
- package/dist/chunks/avatar.BtxoYBvq.js.map +1 -0
- package/dist/chunks/{base-button.DdNFlbgH.js → base-button.Bcwm87OM.js} +19 -19
- package/dist/chunks/base-button.Bcwm87OM.js.map +1 -0
- package/dist/chunks/{base-modal.C3_r3rmc.js → base-modal.7vdoT8zp.js} +21 -21
- package/dist/chunks/base-modal.7vdoT8zp.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.zdsGh7un.js +93 -0
- package/dist/chunks/button-actions-with-menu.zdsGh7un.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
- package/dist/chunks/{button.AB0SOQMn.js → button.wMNce6wZ.js} +4 -4
- package/dist/chunks/button.wMNce6wZ.js.map +1 -0
- package/dist/chunks/{calendar._oPk_A1C.js → calendar.CYrrR8wd.js} +10 -11
- package/dist/chunks/calendar.CYrrR8wd.js.map +1 -0
- package/dist/chunks/{card.CS34Mi_G.js → card.CNYYIpQW.js} +6 -5
- package/dist/chunks/card.CNYYIpQW.js.map +1 -0
- package/dist/chunks/{checkbox-group.JRo6xNpe.js → checkbox-group.fX5_d3XZ.js} +6 -6
- package/dist/chunks/checkbox-group.fX5_d3XZ.js.map +1 -0
- package/dist/chunks/{checkbox-input.DFkwZ4GM.js → checkbox-input.B1hV3DU-.js} +2 -2
- package/dist/chunks/checkbox-input.B1hV3DU-.js.map +1 -0
- package/dist/chunks/{checkbox.DGrG3GN1.js → checkbox.C62ek8A8.js} +27 -27
- package/dist/chunks/checkbox.C62ek8A8.js.map +1 -0
- package/dist/chunks/{chip.CneNX2_j.js → chip.CoBGGkn7.js} +11 -11
- package/dist/chunks/chip.CoBGGkn7.js.map +1 -0
- package/dist/chunks/{code-snippet.D5M76Qy6.js → code-snippet.CrKl93Wq.js} +8 -8
- package/dist/chunks/code-snippet.CrKl93Wq.js.map +1 -0
- package/dist/chunks/{controls-group.CrzkSu0U.js → controls-group.2xftPPd7.js} +3 -3
- package/dist/chunks/{controls-group.CrzkSu0U.js.map → controls-group.2xftPPd7.js.map} +1 -1
- package/dist/chunks/{copy.RUoQOydT.js → copy.-8xjj6Hr.js} +17 -18
- package/dist/chunks/copy.-8xjj6Hr.js.map +1 -0
- package/dist/chunks/{country.Q95voxeL.js → country.BdqTkF7A.js} +8 -8
- package/dist/chunks/country.BdqTkF7A.js.map +1 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
- package/dist/chunks/{currency.CZVdyZUH.js → currency.XiEfa4LT.js} +3 -3
- package/dist/chunks/currency.XiEfa4LT.js.map +1 -0
- package/dist/chunks/{dashboard-section.Bhd5Lsy2.js → dashboard-section.Di16gWGI.js} +4 -4
- package/dist/chunks/{dashboard-section.Bhd5Lsy2.js.map → dashboard-section.Di16gWGI.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DkzQkpaf.js → dashed-underline.CyZEW1LZ.js} +30 -32
- package/dist/chunks/dashed-underline.CyZEW1LZ.js.map +1 -0
- package/dist/chunks/{data-grid-template.DSwj7e1E.js → data-grid-template.CnYNEhPR.js} +5 -5
- package/dist/chunks/data-grid-template.CnYNEhPR.js.map +1 -0
- package/dist/chunks/{data-grid.BEdELRNZ.js → data-grid.aEQt05d9.js} +1626 -1554
- package/dist/chunks/data-grid.aEQt05d9.js.map +1 -0
- package/dist/chunks/{date-picker.CAoXTiZR.js → date-picker.Bk0A3rha.js} +25 -26
- package/dist/chunks/date-picker.Bk0A3rha.js.map +1 -0
- package/dist/chunks/date-range-picker.l-CSmXBk.js +1168 -0
- package/dist/chunks/date-range-picker.l-CSmXBk.js.map +1 -0
- package/dist/chunks/{date.DSjCnSgL.js → date.BZENjOb6.js} +2 -2
- package/dist/chunks/{date.DSjCnSgL.js.map → date.BZENjOb6.js.map} +1 -1
- package/dist/chunks/{dialog-page.C80HOigq.js → dialog-page.BJaRwRhF.js} +15 -15
- package/dist/chunks/dialog-page.BJaRwRhF.js.map +1 -0
- package/dist/chunks/{divider.qUOSAbU6.js → divider.DnKNNyWB.js} +2 -2
- package/dist/chunks/divider.DnKNNyWB.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.Ce5D3ipi.js → dropdown-default-textbox.DWgL31p1.js} +111 -109
- package/dist/chunks/dropdown-default-textbox.DWgL31p1.js.map +1 -0
- package/dist/chunks/dropdown-tag.CnqIUH1X.js +263 -0
- package/dist/chunks/dropdown-tag.CnqIUH1X.js.map +1 -0
- package/dist/chunks/{dropdown.CMOYmQLB.js → dropdown.Co86azLK.js} +71 -71
- package/dist/chunks/dropdown.Co86azLK.js.map +1 -0
- package/dist/chunks/{empty-state.D7llINgF.js → empty-state.YNNEDsnK.js} +4 -4
- package/dist/chunks/empty-state.YNNEDsnK.js.map +1 -0
- package/dist/chunks/{error-message.DHMHq9bR.js → error-message.Cu4cIfdg.js} +3 -3
- package/dist/chunks/{error-message.DHMHq9bR.js.map → error-message.Cu4cIfdg.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js +12 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -0
- package/dist/chunks/events.CMzGybJJ.js +47 -0
- package/dist/chunks/events.CMzGybJJ.js.map +1 -0
- package/dist/chunks/{file-uploader.B_EI2fAc.js → file-uploader.09149Fx8.js} +153 -154
- package/dist/chunks/file-uploader.09149Fx8.js.map +1 -0
- package/dist/chunks/{filter-bar.DoHMLZ4O.js → filter-bar.D6n7Srr5.js} +215 -219
- package/dist/chunks/filter-bar.D6n7Srr5.js.map +1 -0
- package/dist/chunks/{fixed-scroller.D5nAPPbo.js → fixed-scroller.QlDKOD7y.js} +2 -2
- package/dist/chunks/{fixed-scroller.D5nAPPbo.js.map → fixed-scroller.QlDKOD7y.js.map} +1 -1
- package/dist/chunks/{focus-trap.CljZgv9i.js → focus-trap.rjp24a37.js} +2 -2
- package/dist/chunks/focus-trap.rjp24a37.js.map +1 -0
- package/dist/chunks/{footer-actions.Bje-DDqw.js → footer-actions.0cBTJ1kw.js} +5 -5
- package/dist/chunks/footer-actions.0cBTJ1kw.js.map +1 -0
- package/dist/chunks/{form-layout-title.rpIO-I9A.js → form-layout-title.Cq_xVPUq.js} +5 -5
- package/dist/chunks/form-layout-title.Cq_xVPUq.js.map +1 -0
- package/dist/chunks/{grid-layout.BTLE3rac.js → grid-layout.DDaRNz4-.js} +2 -2
- package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -0
- package/dist/chunks/{header-meta.Yt43-cUI.js → header-meta.BJGF0E3r.js} +26 -27
- package/dist/chunks/{header-meta.Yt43-cUI.js.map → header-meta.BJGF0E3r.js.map} +1 -1
- package/dist/chunks/{header-with-views.BUed3ocZ.js → header-with-views.Drzq84zs.js} +99 -103
- package/dist/chunks/header-with-views.Drzq84zs.js.map +1 -0
- package/dist/chunks/{header.CwKjDgKv.js → header.B6DzOioR.js} +32 -32
- package/dist/chunks/header.B6DzOioR.js.map +1 -0
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
- package/dist/chunks/{info-icon.DprUQ9fj.js → info-icon.DKnzFXy1.js} +8 -9
- package/dist/chunks/info-icon.DKnzFXy1.js.map +1 -0
- package/dist/chunks/{input-field-password.DN0Jro1V.js → input-field-password.DC8lJFsr.js} +8 -8
- package/dist/chunks/input-field-password.DC8lJFsr.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.BhPsrafR.js → input-field-phone-number.BbMEzDiR.js} +42 -41
- package/dist/chunks/{input-field-phone-number.BhPsrafR.js.map → input-field-phone-number.BbMEzDiR.js.map} +1 -1
- package/dist/chunks/{input-field.su5Cq8Dt.js → input-field.6bH4yGb2.js} +5 -5
- package/dist/chunks/input-field.6bH4yGb2.js.map +1 -0
- package/dist/chunks/{inspector.CoZCPfHC.js → inspector.Bsv68G-e.js} +13 -13
- package/dist/chunks/inspector.Bsv68G-e.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.CqgGzfZQ.js → keyboard-navigation.pB8weElW.js} +2 -2
- package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -0
- package/dist/chunks/{layout-row.CZNtHaXd.js → layout-row.CIg1pwOd.js} +9 -9
- package/dist/chunks/layout-row.CIg1pwOd.js.map +1 -0
- package/dist/chunks/{link.BBpxiclu.js → link.Di0rtpOj.js} +2 -2
- package/dist/chunks/{link.BBpxiclu.js.map → link.Di0rtpOj.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.0BK6jWO9.js → listbox-option-tag.C6WHiASI.js} +7 -7
- package/dist/chunks/listbox-option-tag.C6WHiASI.js.map +1 -0
- package/dist/chunks/{loading-indicator.DEepb9Wl.js → loading-indicator.BmAQqPP2.js} +3 -3
- package/dist/chunks/loading-indicator.BmAQqPP2.js.map +1 -0
- package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.DBTnoSX9.js → modal-fullscreen.BHzyS4y7.js} +18 -19
- package/dist/chunks/modal-fullscreen.BHzyS4y7.js.map +1 -0
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js → modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js} +6 -6
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js.map +1 -0
- package/dist/chunks/{pagination.fYQak4C8.js → pagination.BuYH2_62.js} +5 -5
- package/dist/chunks/pagination.BuYH2_62.js.map +1 -0
- package/dist/chunks/{payment-method.eazefwm6.js → payment-method.4cnK2M5b.js} +3 -3
- package/dist/chunks/payment-method.4cnK2M5b.js.map +1 -0
- package/dist/chunks/popover.types.BQILgzhs.js +6 -0
- package/dist/chunks/popover.types.BQILgzhs.js.map +1 -0
- package/dist/chunks/{popper-container.b5h4zYgT.js → popper-container.idDrquM6.js} +285 -281
- package/dist/chunks/popper-container.idDrquM6.js.map +1 -0
- package/dist/chunks/{promo-banner.CQp3z2CP.js → promo-banner.il4_mdEk.js} +4 -4
- package/dist/chunks/promo-banner.il4_mdEk.js.map +1 -0
- package/dist/chunks/{radio-group.H9A5QcNu.js → radio-group.BG8W9epW.js} +8 -8
- package/dist/chunks/radio-group.BG8W9epW.js.map +1 -0
- package/dist/chunks/{radio-input.DKfQGxtp.js → radio-input.DvPjlvPm.js} +2 -2
- package/dist/chunks/radio-input.DvPjlvPm.js.map +1 -0
- package/dist/chunks/{rich-text-editor.Dx78coVL.js → rich-text-editor.vqti0Ls0.js} +8 -8
- package/dist/chunks/rich-text-editor.vqti0Ls0.js.map +1 -0
- package/dist/chunks/{search-bar.CUrcP_wf.js → search-bar.RGL70u_Y.js} +46 -44
- package/dist/chunks/search-bar.RGL70u_Y.js.map +1 -0
- package/dist/chunks/{secondary-nav.j3ddtYoZ.js → secondary-nav.Dtw_Dm_X.js} +28 -28
- package/dist/chunks/secondary-nav.Dtw_Dm_X.js.map +1 -0
- package/dist/chunks/{segmented-control.5-vlm8Gt.js → segmented-control.C6QyN2jS.js} +6 -7
- package/dist/chunks/segmented-control.C6QyN2jS.js.map +1 -0
- package/dist/chunks/{selection-card-group.B4xpnd-z.js → selection-card-group.DpogJSo0.js} +16 -16
- package/dist/chunks/selection-card-group.DpogJSo0.js.map +1 -0
- package/dist/chunks/{sidepanel.DPN__L3Q.js → sidepanel.BqRWoCd3.js} +14 -14
- package/dist/chunks/sidepanel.BqRWoCd3.js.map +1 -0
- package/dist/chunks/{status.types.Bdv2zuuh.js → status.types.B7vJ-_oJ.js} +9 -9
- package/dist/chunks/status.types.B7vJ-_oJ.js.map +1 -0
- package/dist/chunks/{step.BtNhPZAf.js → step.BdZrreHU.js} +8 -9
- package/dist/chunks/step.BdZrreHU.js.map +1 -0
- package/dist/chunks/{structured-list-item.BQbEDKhg.js → structured-list-item.DIwkcIMT.js} +18 -19
- package/dist/chunks/structured-list-item.DIwkcIMT.js.map +1 -0
- package/dist/chunks/{summary-grid.types.CjbbSZBJ.js → summary-grid.types.DHUnTXI-.js} +7 -7
- package/dist/chunks/{summary-grid.types.CjbbSZBJ.js.map → summary-grid.types.DHUnTXI-.js.map} +1 -1
- package/dist/chunks/{tab.CAt51ksU.js → tab.jIG8-7-Q.js} +5 -5
- package/dist/chunks/tab.jIG8-7-Q.js.map +1 -0
- package/dist/chunks/{tag.D3in0-Bp.js → tag.BP8fBCx-.js} +9 -10
- package/dist/chunks/tag.BP8fBCx-.js.map +1 -0
- package/dist/chunks/textarea.CtfRoIUw.js +295 -0
- package/dist/chunks/textarea.CtfRoIUw.js.map +1 -0
- package/dist/chunks/{timeline-item.CuCII37W.js → timeline-item.DthjD14m.js} +11 -11
- package/dist/chunks/timeline-item.DthjD14m.js.map +1 -0
- package/dist/chunks/{toast.CSoCPteL.js → toast.w_FD0zQA.js} +18 -18
- package/dist/chunks/toast.w_FD0zQA.js.map +1 -0
- package/dist/chunks/toggle-button.ByyLw0Yf.js +1347 -0
- package/dist/chunks/toggle-button.ByyLw0Yf.js.map +1 -0
- package/dist/chunks/{toggle.BuKXexA6.js → toggle.CjEL1ko8.js} +3 -3
- package/dist/chunks/toggle.CjEL1ko8.js.map +1 -0
- package/dist/chunks/{tooltip.VYPUHERk.js → tooltip.Dww8NiUR.js} +70 -64
- package/dist/chunks/tooltip.Dww8NiUR.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js → tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js} +48 -51
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js.map +1 -0
- package/dist/chunks/{typography.DN5eC5ch.js → typography.CFHvBR7L.js} +25 -25
- package/dist/chunks/typography.CFHvBR7L.js.map +1 -0
- package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js → use-bento-toast-controller.BzKbXZPO.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js.map → use-bento-toast-controller.BzKbXZPO.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.Dyoz6cUK.js → use-cached-selected-values.BcNRo4mZ.js} +16 -17
- package/dist/chunks/use-cached-selected-values.BcNRo4mZ.js.map +1 -0
- package/dist/chunks/use-country-items.Duh4bMqW.js.map +1 -1
- package/dist/chunks/use-country-phon-code.BOaJ9PDl.js.map +1 -1
- package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.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/divider.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/focus-trap.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 +204 -207
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +3 -2
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +33 -32
- package/dist/internal.js.map +1 -1
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/loading-indicator.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/payment-method.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +4 -5
- package/dist/popper-container.js.map +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +17 -4
- package/dist/styles/bento-light.css +17 -4
- package/dist/styles/bento.css +17 -4
- package/dist/styles/legacy.css +17 -4
- package/dist/styles/styleguide.css +17 -4
- package/dist/styles/utility.css +3 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/menu.css +0 -1
- package/dist/assets/popover.css +0 -1
- package/dist/assets/teleport.css +0 -1
- package/dist/chunks/accordion-item.DOnW0OnU.js.map +0 -1
- package/dist/chunks/action-bar.CflF49oL.js.map +0 -1
- package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
- package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
- package/dist/chunks/base-modal.C3_r3rmc.js.map +0 -1
- package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
- package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js +0 -91
- package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js.map +0 -1
- package/dist/chunks/button-actions.CZdO9YOk.js +0 -264
- package/dist/chunks/button-actions.CZdO9YOk.js.map +0 -1
- package/dist/chunks/button.AB0SOQMn.js.map +0 -1
- package/dist/chunks/calendar._oPk_A1C.js.map +0 -1
- package/dist/chunks/card.CS34Mi_G.js.map +0 -1
- package/dist/chunks/checkbox-group.JRo6xNpe.js.map +0 -1
- package/dist/chunks/checkbox-input.DFkwZ4GM.js.map +0 -1
- package/dist/chunks/checkbox.DGrG3GN1.js.map +0 -1
- package/dist/chunks/chip.CneNX2_j.js.map +0 -1
- package/dist/chunks/code-snippet.D5M76Qy6.js.map +0 -1
- package/dist/chunks/copy.RUoQOydT.js.map +0 -1
- package/dist/chunks/country.Q95voxeL.js.map +0 -1
- package/dist/chunks/currency.CZVdyZUH.js.map +0 -1
- package/dist/chunks/dashed-underline.DkzQkpaf.js.map +0 -1
- package/dist/chunks/data-grid-template.DSwj7e1E.js.map +0 -1
- package/dist/chunks/data-grid.BEdELRNZ.js.map +0 -1
- package/dist/chunks/date-picker.CAoXTiZR.js.map +0 -1
- package/dist/chunks/date-range-picker.DtV4L3L6.js +0 -1225
- package/dist/chunks/date-range-picker.DtV4L3L6.js.map +0 -1
- package/dist/chunks/dialog-page.C80HOigq.js.map +0 -1
- package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +0 -1
- package/dist/chunks/dropdown-tag.B3fptORX.js +0 -230
- package/dist/chunks/dropdown-tag.B3fptORX.js.map +0 -1
- package/dist/chunks/dropdown.CMOYmQLB.js.map +0 -1
- package/dist/chunks/empty-state.D7llINgF.js.map +0 -1
- package/dist/chunks/es6.n1ewaW31.js +0 -11
- package/dist/chunks/es6.n1ewaW31.js.map +0 -1
- package/dist/chunks/events.FNmSWp_P.js +0 -52
- package/dist/chunks/events.FNmSWp_P.js.map +0 -1
- package/dist/chunks/file-uploader.B_EI2fAc.js.map +0 -1
- package/dist/chunks/filter-bar.DoHMLZ4O.js.map +0 -1
- package/dist/chunks/focus-trap.CljZgv9i.js.map +0 -1
- package/dist/chunks/footer-actions.Bje-DDqw.js.map +0 -1
- package/dist/chunks/form-layout-title.rpIO-I9A.js.map +0 -1
- package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
- package/dist/chunks/header-with-views.BUed3ocZ.js.map +0 -1
- package/dist/chunks/header.CwKjDgKv.js.map +0 -1
- package/dist/chunks/info-icon.DprUQ9fj.js.map +0 -1
- package/dist/chunks/input-field-password.DN0Jro1V.js.map +0 -1
- package/dist/chunks/input-field.su5Cq8Dt.js.map +0 -1
- package/dist/chunks/inspector.CoZCPfHC.js.map +0 -1
- package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
- package/dist/chunks/layout-row.CZNtHaXd.js.map +0 -1
- package/dist/chunks/listbox-option-tag.0BK6jWO9.js.map +0 -1
- package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
- package/dist/chunks/menu.EtjeOPXX.js +0 -680
- package/dist/chunks/menu.EtjeOPXX.js.map +0 -1
- package/dist/chunks/modal-fullscreen.DBTnoSX9.js.map +0 -1
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js.map +0 -1
- package/dist/chunks/pagination.fYQak4C8.js.map +0 -1
- package/dist/chunks/payment-method.eazefwm6.js.map +0 -1
- package/dist/chunks/popover.DYgCCUCJ.js +0 -200
- package/dist/chunks/popover.DYgCCUCJ.js.map +0 -1
- package/dist/chunks/popover.types.V8old-GW.js +0 -6
- package/dist/chunks/popover.types.V8old-GW.js.map +0 -1
- package/dist/chunks/popper-container.b5h4zYgT.js.map +0 -1
- package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
- package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
- package/dist/chunks/promo-banner.CQp3z2CP.js.map +0 -1
- package/dist/chunks/radio-group.H9A5QcNu.js.map +0 -1
- package/dist/chunks/radio-input.DKfQGxtp.js.map +0 -1
- package/dist/chunks/rich-text-editor.Dx78coVL.js.map +0 -1
- package/dist/chunks/search-bar.CUrcP_wf.js.map +0 -1
- package/dist/chunks/secondary-nav.j3ddtYoZ.js.map +0 -1
- package/dist/chunks/segmented-control.5-vlm8Gt.js.map +0 -1
- package/dist/chunks/selection-card-group.B4xpnd-z.js.map +0 -1
- package/dist/chunks/sidepanel.DPN__L3Q.js.map +0 -1
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
- package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
- package/dist/chunks/step.BtNhPZAf.js.map +0 -1
- package/dist/chunks/structured-list-item.BQbEDKhg.js.map +0 -1
- package/dist/chunks/tab.CAt51ksU.js.map +0 -1
- package/dist/chunks/tag.D3in0-Bp.js.map +0 -1
- package/dist/chunks/teleport.CfGWjxe2.js +0 -129
- package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
- package/dist/chunks/textarea.BBhN67-I.js +0 -282
- package/dist/chunks/textarea.BBhN67-I.js.map +0 -1
- package/dist/chunks/timeline-item.CuCII37W.js.map +0 -1
- package/dist/chunks/toast.CSoCPteL.js.map +0 -1
- package/dist/chunks/toggle-button.NQwrfSr1.js +0 -80
- package/dist/chunks/toggle-button.NQwrfSr1.js.map +0 -1
- package/dist/chunks/toggle.BuKXexA6.js.map +0 -1
- package/dist/chunks/tooltip.VYPUHERk.js.map +0 -1
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js.map +0 -1
- package/dist/chunks/typography.DN5eC5ch.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.Dyoz6cUK.js.map +0 -1
- package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
- package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createElementBlock as x, openBlock as s, mergeProps as
|
|
1
|
+
import { createElementBlock as x, openBlock as s, mergeProps as V, createCommentVNode as v, createElementVNode as m, toDisplayString as f, defineComponent as la, createBlock as k, unref as t, Transition as li, withCtx as y, renderSlot as Ca, TransitionGroup as si, ref as I, onUnmounted as ci, onMounted as Oa, computed as h, watch as ha, normalizeClass as q, createVNode as O, resolveDynamicComponent as di, withDirectives as Ha, createTextVNode as _, reactive as ba, toRef as xa, withKeys as $a, withModifiers as aa, Fragment as _a, renderList as ri, vShow as mi, nextTick as ui } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { _ as L } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
4
|
import { W as qa } from "./warning-filled.AiUbXzzg.js";
|
|
5
|
-
import { B as vi } from "./alert.
|
|
6
|
-
import { B as R, d as fi } from "./typography.
|
|
5
|
+
import { B as vi } from "./alert.DFSdD4jX.js";
|
|
6
|
+
import { B as R, d as fi } from "./typography.CFHvBR7L.js";
|
|
7
7
|
import { u as sa } from "./i18n.B6g5VX0q.js";
|
|
8
8
|
import { g as S } from "./generate-uid.NJ8tVoha.js";
|
|
9
9
|
import { i as Ba } from "./index.CWuzEfiV.js";
|
|
@@ -11,12 +11,11 @@ import { B as xi } from "./bin.CiGG2V4b.js";
|
|
|
11
11
|
import { C as gi } from "./checkmark-circle-fill._6-d40ru.js";
|
|
12
12
|
import { C as hi } from "./cross.B92GxFTY.js";
|
|
13
13
|
import { R as bi } from "./refresh.BB4ouvz_.js";
|
|
14
|
-
import "./
|
|
15
|
-
import { B as
|
|
16
|
-
import { B as
|
|
17
|
-
import { B as
|
|
18
|
-
import {
|
|
19
|
-
import { F as Ci, E as $i } from "./error-message.DHMHq9bR.js";
|
|
14
|
+
import { b as wi } from "./tooltip.Dww8NiUR.js";
|
|
15
|
+
import { B as ga } from "./button.wMNce6wZ.js";
|
|
16
|
+
import { B as yi } from "./link.Di0rtpOj.js";
|
|
17
|
+
import { B as ki } from "./loading-indicator.BmAQqPP2.js";
|
|
18
|
+
import { F as Ci, E as $i } from "./error-message.Cu4cIfdg.js";
|
|
20
19
|
import "../assets/file-uploader.css";
|
|
21
20
|
let ja = 0;
|
|
22
21
|
const _i = {
|
|
@@ -25,7 +24,7 @@ const _i = {
|
|
|
25
24
|
}
|
|
26
25
|
}, ji = { key: 0 };
|
|
27
26
|
function zi(a, i, o, p, n, d) {
|
|
28
|
-
return s(), x("svg",
|
|
27
|
+
return s(), x("svg", V({ role: "img" }, a.$attrs, {
|
|
29
28
|
class: "ui-assets-icons-16",
|
|
30
29
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31
30
|
width: "16",
|
|
@@ -50,22 +49,22 @@ const Ri = /* @__PURE__ */ L(_i, [["render", zi]]), Ei = /* @__PURE__ */ la({
|
|
|
50
49
|
showFileIcon: { type: Boolean }
|
|
51
50
|
},
|
|
52
51
|
setup(a) {
|
|
53
|
-
return (i, o) => t(Ba) ? (s(),
|
|
52
|
+
return (i, o) => t(Ba) ? (s(), k(li, {
|
|
54
53
|
key: 0,
|
|
55
54
|
name: i.name,
|
|
56
55
|
mode: "out-in",
|
|
57
56
|
css: i.showFileIcon
|
|
58
57
|
}, {
|
|
59
|
-
default:
|
|
58
|
+
default: y(() => [
|
|
60
59
|
Ca(i.$slots, "default")
|
|
61
60
|
]),
|
|
62
61
|
_: 3
|
|
63
|
-
}, 8, ["name", "css"])) : (s(),
|
|
62
|
+
}, 8, ["name", "css"])) : (s(), k(si, {
|
|
64
63
|
key: 1,
|
|
65
64
|
name: i.name,
|
|
66
65
|
css: i.showFileIcon
|
|
67
66
|
}, {
|
|
68
|
-
default:
|
|
67
|
+
default: y(() => [
|
|
69
68
|
Ca(i.$slots, "default")
|
|
70
69
|
]),
|
|
71
70
|
_: 3
|
|
@@ -100,7 +99,7 @@ function Za(a, i) {
|
|
|
100
99
|
unit: za[o]
|
|
101
100
|
}).format(i / 1024 ** o);
|
|
102
101
|
}
|
|
103
|
-
var
|
|
102
|
+
var F = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(F || {}), E = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(E || {}), pa = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(pa || {}), b = /* @__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))(b || {});
|
|
104
103
|
const Li = [
|
|
105
104
|
"application/msword",
|
|
106
105
|
// .doc
|
|
@@ -150,10 +149,10 @@ const Li = [
|
|
|
150
149
|
"application/vnd.ms-cab-compressed"
|
|
151
150
|
// .cab
|
|
152
151
|
];
|
|
153
|
-
function
|
|
154
|
-
return Ti.includes(a.type) ?
|
|
152
|
+
function Fi(a) {
|
|
153
|
+
return Ti.includes(a.type) ? b.TABLE : a.type.startsWith("text/") || Li.includes(a.type) ? b.TEXT : a.type.startsWith("image/") ? b.IMAGE : a.type.startsWith("video/") ? b.VIDEO : a.type.startsWith("audio/") ? b.AUDIO : a.type === "application/pdf" ? b.PDF : Mi.includes(a.type) ? b.SLIDES : Si.includes(a.type) ? b.COMPRESSED : b.GENERIC;
|
|
155
154
|
}
|
|
156
|
-
function
|
|
155
|
+
function Vi(a, i) {
|
|
157
156
|
if (!i)
|
|
158
157
|
return !0;
|
|
159
158
|
const o = i.split(",").map((p) => p.trim());
|
|
@@ -171,25 +170,25 @@ function Fi(a, i) {
|
|
|
171
170
|
}
|
|
172
171
|
function Di(a, i, o) {
|
|
173
172
|
const p = new FileReader(), n = a;
|
|
174
|
-
if (!
|
|
175
|
-
n.state =
|
|
173
|
+
if (!Vi(n.data, i)) {
|
|
174
|
+
n.state = F.ERROR, n.errors.push(E.ERROR_TYPE);
|
|
176
175
|
return;
|
|
177
176
|
}
|
|
178
177
|
p.onload = (d) => {
|
|
179
|
-
if (o && n.type ===
|
|
180
|
-
const l = new Blob([d.target.result], { type: n.data.type }), u = URL.createObjectURL(l),
|
|
181
|
-
|
|
182
|
-
(
|
|
183
|
-
},
|
|
178
|
+
if (o && n.type === b.IMAGE) {
|
|
179
|
+
const l = new Blob([d.target.result], { type: n.data.type }), u = URL.createObjectURL(l), w = new Image();
|
|
180
|
+
w.onload = function() {
|
|
181
|
+
(w.width > o.width || w.height > o.height) && (n.state = F.ERROR, n.errors.push(E.ERROR_DIMENSIONS)), URL.revokeObjectURL(u);
|
|
182
|
+
}, w.onerror = function() {
|
|
184
183
|
URL.revokeObjectURL(u);
|
|
185
|
-
},
|
|
184
|
+
}, w.src = u;
|
|
186
185
|
}
|
|
187
186
|
}, p.onprogress = (d) => {
|
|
188
187
|
d.lengthComputable && (n.progress = d.loaded / d.total * 100);
|
|
189
188
|
}, p.onloadend = () => {
|
|
190
|
-
n.state !==
|
|
189
|
+
n.state !== F.ERROR && (n.state = F.SUCCESS), n.progress = null;
|
|
191
190
|
}, p.onerror = () => {
|
|
192
|
-
n.state =
|
|
191
|
+
n.state = F.ERROR, n.errors.push(E.ERROR_LOAD), n.progress = null;
|
|
193
192
|
}, p.readAsArrayBuffer(n.data);
|
|
194
193
|
}
|
|
195
194
|
let Ra = 0;
|
|
@@ -199,7 +198,7 @@ const Oi = {
|
|
|
199
198
|
}
|
|
200
199
|
}, Hi = { key: 0 }, qi = ["clip-path"], Bi = ["id"];
|
|
201
200
|
function Zi(a, i, o, p, n, d) {
|
|
202
|
-
return s(), x("svg",
|
|
201
|
+
return s(), x("svg", V({ role: "img" }, a.$attrs, {
|
|
203
202
|
class: "ui-assets-icons-16",
|
|
204
203
|
xmlns: "http://www.w3.org/2000/svg",
|
|
205
204
|
width: "16",
|
|
@@ -236,7 +235,7 @@ const Ui = {
|
|
|
236
235
|
}
|
|
237
236
|
}, Ni = { key: 0 };
|
|
238
237
|
function Pi(a, i, o, p, n, d) {
|
|
239
|
-
return s(), x("svg",
|
|
238
|
+
return s(), x("svg", V({ role: "img" }, a.$attrs, {
|
|
240
239
|
class: "ui-assets-icons-16",
|
|
241
240
|
xmlns: "http://www.w3.org/2000/svg",
|
|
242
241
|
width: "16",
|
|
@@ -258,7 +257,7 @@ const Wi = {
|
|
|
258
257
|
}
|
|
259
258
|
}, Yi = { key: 0 };
|
|
260
259
|
function Xi(a, i, o, p, n, d) {
|
|
261
|
-
return s(), x("svg",
|
|
260
|
+
return s(), x("svg", V({ role: "img" }, a.$attrs, {
|
|
262
261
|
class: "ui-assets-icons-16",
|
|
263
262
|
xmlns: "http://www.w3.org/2000/svg",
|
|
264
263
|
width: "16",
|
|
@@ -280,7 +279,7 @@ const Ki = {
|
|
|
280
279
|
}
|
|
281
280
|
}, Qi = { key: 0 };
|
|
282
281
|
function ae(a, i, o, p, n, d) {
|
|
283
|
-
return s(), x("svg",
|
|
282
|
+
return s(), x("svg", V({ role: "img" }, a.$attrs, {
|
|
284
283
|
class: "ui-assets-icons-16",
|
|
285
284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
286
285
|
width: "16",
|
|
@@ -310,7 +309,7 @@ const ee = {
|
|
|
310
309
|
}
|
|
311
310
|
}, te = { key: 0 };
|
|
312
311
|
function ne(a, i, o, p, n, d) {
|
|
313
|
-
return s(), x("svg",
|
|
312
|
+
return s(), x("svg", V({ role: "img" }, a.$attrs, {
|
|
314
313
|
class: "ui-assets-icons-16",
|
|
315
314
|
xmlns: "http://www.w3.org/2000/svg",
|
|
316
315
|
width: "16",
|
|
@@ -332,7 +331,7 @@ const pe = {
|
|
|
332
331
|
}
|
|
333
332
|
}, le = { key: 0 };
|
|
334
333
|
function se(a, i, o, p, n, d) {
|
|
335
|
-
return s(), x("svg",
|
|
334
|
+
return s(), x("svg", V({ role: "img" }, a.$attrs, {
|
|
336
335
|
class: "ui-assets-icons-16",
|
|
337
336
|
xmlns: "http://www.w3.org/2000/svg",
|
|
338
337
|
width: "16",
|
|
@@ -358,7 +357,7 @@ const de = {
|
|
|
358
357
|
}
|
|
359
358
|
}, re = { key: 0 }, me = ["clip-path"], ue = ["id"];
|
|
360
359
|
function ve(a, i, o, p, n, d) {
|
|
361
|
-
return s(), x("svg",
|
|
360
|
+
return s(), x("svg", V({ role: "img" }, a.$attrs, {
|
|
362
361
|
class: "ui-assets-icons-16",
|
|
363
362
|
xmlns: "http://www.w3.org/2000/svg",
|
|
364
363
|
width: "16",
|
|
@@ -387,14 +386,14 @@ function ve(a, i, o, p, n, d) {
|
|
|
387
386
|
], 16);
|
|
388
387
|
}
|
|
389
388
|
const fe = /* @__PURE__ */ L(de, [["render", ve]]);
|
|
390
|
-
let
|
|
389
|
+
let Fa = 0;
|
|
391
390
|
const xe = {
|
|
392
391
|
beforeCreate() {
|
|
393
|
-
this.uuid =
|
|
392
|
+
this.uuid = Fa.toString(), Fa += 1;
|
|
394
393
|
}
|
|
395
394
|
}, ge = { key: 0 };
|
|
396
395
|
function he(a, i, o, p, n, d) {
|
|
397
|
-
return s(), x("svg",
|
|
396
|
+
return s(), x("svg", V({ role: "img" }, a.$attrs, {
|
|
398
397
|
class: "ui-assets-icons-16",
|
|
399
398
|
xmlns: "http://www.w3.org/2000/svg",
|
|
400
399
|
width: "16",
|
|
@@ -417,14 +416,14 @@ function he(a, i, o, p, n, d) {
|
|
|
417
416
|
], 16);
|
|
418
417
|
}
|
|
419
418
|
const be = /* @__PURE__ */ L(xe, [["render", he]]);
|
|
420
|
-
let
|
|
419
|
+
let Va = 0;
|
|
421
420
|
const we = {
|
|
422
421
|
beforeCreate() {
|
|
423
|
-
this.uuid =
|
|
422
|
+
this.uuid = Va.toString(), Va += 1;
|
|
424
423
|
}
|
|
425
424
|
}, ye = { key: 0 };
|
|
426
425
|
function ke(a, i, o, p, n, d) {
|
|
427
|
-
return s(), x("svg",
|
|
426
|
+
return s(), x("svg", V({ role: "img" }, a.$attrs, {
|
|
428
427
|
class: "ui-assets-icons-16",
|
|
429
428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
430
429
|
width: "16",
|
|
@@ -439,28 +438,28 @@ function ke(a, i, o, p, n, d) {
|
|
|
439
438
|
], 16);
|
|
440
439
|
}
|
|
441
440
|
const Ce = /* @__PURE__ */ L(we, [["render", ke]]), $e = {
|
|
442
|
-
[
|
|
443
|
-
[
|
|
444
|
-
[
|
|
445
|
-
[
|
|
446
|
-
[
|
|
447
|
-
[
|
|
448
|
-
[
|
|
449
|
-
[
|
|
450
|
-
[
|
|
441
|
+
[b.AUDIO]: be,
|
|
442
|
+
[b.COMPRESSED]: oe,
|
|
443
|
+
[b.GENERIC]: Ai,
|
|
444
|
+
[b.IMAGE]: ce,
|
|
445
|
+
[b.PDF]: Ji,
|
|
446
|
+
[b.SLIDES]: Gi,
|
|
447
|
+
[b.TABLE]: Ce,
|
|
448
|
+
[b.TEXT]: ie,
|
|
449
|
+
[b.VIDEO]: fe
|
|
451
450
|
};
|
|
452
451
|
function _e(a) {
|
|
453
452
|
return $e[a.type];
|
|
454
453
|
}
|
|
455
454
|
function je(a) {
|
|
456
455
|
switch (a.type) {
|
|
457
|
-
case
|
|
458
|
-
case
|
|
456
|
+
case b.COMPRESSED:
|
|
457
|
+
case b.GENERIC:
|
|
459
458
|
return "grey";
|
|
460
|
-
case
|
|
461
|
-
case
|
|
459
|
+
case b.PDF:
|
|
460
|
+
case b.SLIDES:
|
|
462
461
|
return "orange";
|
|
463
|
-
case
|
|
462
|
+
case b.TEXT:
|
|
464
463
|
return "blue";
|
|
465
464
|
default:
|
|
466
465
|
return "green";
|
|
@@ -496,16 +495,16 @@ const Aa = {
|
|
|
496
495
|
},
|
|
497
496
|
emits: ["cancel", "remove", "retry"],
|
|
498
497
|
setup(a, { expose: i, emit: o }) {
|
|
499
|
-
const n = a, d = o, { t: l, locale: u } = sa({ messages: Aa }),
|
|
498
|
+
const n = a, d = o, { t: l, locale: u } = sa({ messages: Aa }), w = I(null), r = I(null), z = I(null), B = S("file-errors-section"), Z = S("cancel-file-button"), P = S("remove-file-button"), g = S("retry-file-button"), H = I(n.file.state === F.SUCCESS), D = h(() => URL.createObjectURL(n.file.data)), A = h(() => n.file.state === F.ERROR), ea = h(() => n.file.errors.includes(E.ERROR_LOAD)), ta = h(() => n.file.errors.includes(E.ERROR_SIZE)), na = h(() => n.file.errors.includes(E.ERROR_DIMENSIONS)), Y = h(() => n.file.errors.includes(E.ERROR_TYPE)), U = h(() => n.file.state === F.LOADING), X = h(() => n.file.progress && `(${n.file.progress.toFixed(0)}%)`), ca = h(() => Za(u.value, n.file.data.size)), J = I(), G = I(), da = Ii(J, G), K = h(() => ({
|
|
500
499
|
"b-file-uploader-file-card--error": A.value
|
|
501
|
-
})), ra =
|
|
500
|
+
})), ra = h(() => ({
|
|
502
501
|
[`b-file-uploader-file-card__icon--${je(n.file)}`]: H.value,
|
|
503
502
|
"b-file-uploader-file-card__icon--error": A.value
|
|
504
|
-
})), oa =
|
|
503
|
+
})), oa = h(() => U.value ? ki : A.value ? qa : H.value ? _e(n.file) : gi);
|
|
505
504
|
ha(
|
|
506
505
|
() => n.file.state,
|
|
507
506
|
(j) => {
|
|
508
|
-
if (j ===
|
|
507
|
+
if (j === F.SUCCESS && !H.value) {
|
|
509
508
|
const T = setTimeout(() => {
|
|
510
509
|
H.value = !0, clearTimeout(T);
|
|
511
510
|
}, 1200);
|
|
@@ -517,8 +516,8 @@ const Aa = {
|
|
|
517
516
|
z.value.$el.focus();
|
|
518
517
|
return;
|
|
519
518
|
}
|
|
520
|
-
if (
|
|
521
|
-
|
|
519
|
+
if (w.value) {
|
|
520
|
+
w.value.$el.focus();
|
|
522
521
|
return;
|
|
523
522
|
}
|
|
524
523
|
if (r.value) {
|
|
@@ -537,8 +536,8 @@ const Aa = {
|
|
|
537
536
|
name: t(Ba) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
|
|
538
537
|
"show-file-icon": H.value
|
|
539
538
|
}, {
|
|
540
|
-
default:
|
|
541
|
-
(s(),
|
|
539
|
+
default: y(() => [
|
|
540
|
+
(s(), k(di(oa.value), {
|
|
542
541
|
key: JSON.stringify(oa.value),
|
|
543
542
|
small: "",
|
|
544
543
|
"aria-hidden": "true",
|
|
@@ -562,14 +561,14 @@ const Aa = {
|
|
|
562
561
|
"is-not-routing": "",
|
|
563
562
|
variant: "quiet"
|
|
564
563
|
}, {
|
|
565
|
-
default:
|
|
566
|
-
Ha((s(),
|
|
564
|
+
default: y(() => [
|
|
565
|
+
Ha((s(), k(t(R), {
|
|
567
566
|
ref_key: "fileNameRef",
|
|
568
567
|
ref: J,
|
|
569
568
|
stronger: "",
|
|
570
569
|
el: "span"
|
|
571
570
|
}, {
|
|
572
|
-
default:
|
|
571
|
+
default: y(() => [
|
|
573
572
|
_(f(j.file.data.name), 1)
|
|
574
573
|
]),
|
|
575
574
|
_: 1
|
|
@@ -580,21 +579,21 @@ const Aa = {
|
|
|
580
579
|
_: 1
|
|
581
580
|
}, 8, ["download", "to"])
|
|
582
581
|
], 512),
|
|
583
|
-
j.file.progress ? (s(),
|
|
582
|
+
j.file.progress ? (s(), k(t(R), {
|
|
584
583
|
key: 0,
|
|
585
584
|
el: "span"
|
|
586
585
|
}, {
|
|
587
|
-
default:
|
|
586
|
+
default: y(() => [
|
|
588
587
|
_(f(X.value), 1)
|
|
589
588
|
]),
|
|
590
589
|
_: 1
|
|
591
|
-
})) : j.file.data.size ? (s(),
|
|
590
|
+
})) : j.file.data.size ? (s(), k(t(R), {
|
|
592
591
|
key: 1,
|
|
593
592
|
class: "b-file-uploader-file-card__file-size",
|
|
594
593
|
"aria-hidden": "true",
|
|
595
594
|
el: "span"
|
|
596
595
|
}, {
|
|
597
|
-
default:
|
|
596
|
+
default: y(() => [
|
|
598
597
|
_(f(ca.value), 1)
|
|
599
598
|
]),
|
|
600
599
|
_: 1
|
|
@@ -605,29 +604,29 @@ const Aa = {
|
|
|
605
604
|
id: t(B),
|
|
606
605
|
role: "alert"
|
|
607
606
|
}, [
|
|
608
|
-
ta.value ? (s(),
|
|
607
|
+
ta.value ? (s(), k(t(R), {
|
|
609
608
|
key: 0,
|
|
610
609
|
class: "b-file-uploader-file-card__error-message"
|
|
611
610
|
}, {
|
|
612
|
-
default:
|
|
611
|
+
default: y(() => [
|
|
613
612
|
_(f(t(l)("fileExceedsSizeLimit")), 1)
|
|
614
613
|
]),
|
|
615
614
|
_: 1
|
|
616
615
|
})) : v("", !0),
|
|
617
|
-
na.value ? (s(),
|
|
616
|
+
na.value ? (s(), k(t(R), {
|
|
618
617
|
key: 1,
|
|
619
618
|
class: "b-file-uploader-file-card__error-message"
|
|
620
619
|
}, {
|
|
621
|
-
default:
|
|
620
|
+
default: y(() => [
|
|
622
621
|
_(f(t(l)("imageDimensionsExceedLimits")), 1)
|
|
623
622
|
]),
|
|
624
623
|
_: 1
|
|
625
624
|
})) : v("", !0),
|
|
626
|
-
Y.value && j.supportedFileTypes ? (s(),
|
|
625
|
+
Y.value && j.supportedFileTypes ? (s(), k(t(R), {
|
|
627
626
|
key: 2,
|
|
628
627
|
class: "b-file-uploader-file-card__error-message"
|
|
629
628
|
}, {
|
|
630
|
-
default:
|
|
629
|
+
default: y(() => [
|
|
631
630
|
_(f(t(l)("fileTypeMustBe", { list: j.supportedFileTypes })), 1)
|
|
632
631
|
]),
|
|
633
632
|
_: 1
|
|
@@ -635,26 +634,26 @@ const Aa = {
|
|
|
635
634
|
], 8, Ee)) : v("", !0)
|
|
636
635
|
]),
|
|
637
636
|
m("div", Ie, [
|
|
638
|
-
ea.value ? (s(),
|
|
637
|
+
ea.value ? (s(), k(t(ga), {
|
|
639
638
|
key: 0,
|
|
640
639
|
ref_key: "retryFileButtonRef",
|
|
641
640
|
ref: z,
|
|
642
|
-
"aria-labelledby": `${t(B)} ${t(
|
|
641
|
+
"aria-labelledby": `${t(B)} ${t(g)}`,
|
|
643
642
|
variant: "tertiary",
|
|
644
643
|
onClick: T[0] || (T[0] = (Q) => d("retry"))
|
|
645
644
|
}, {
|
|
646
|
-
iconLeft:
|
|
645
|
+
iconLeft: y(() => [
|
|
647
646
|
O(t(bi), {
|
|
648
|
-
id: t(
|
|
647
|
+
id: t(g),
|
|
649
648
|
"svg-title": `${t(l)("retry")} - ${j.file.data.name} `
|
|
650
649
|
}, null, 8, ["id", "svg-title"])
|
|
651
650
|
]),
|
|
652
|
-
default:
|
|
651
|
+
default: y(() => [
|
|
653
652
|
_(" " + f(t(l)("retry")), 1)
|
|
654
653
|
]),
|
|
655
654
|
_: 1
|
|
656
655
|
}, 8, ["aria-labelledby"])) : v("", !0),
|
|
657
|
-
U.value || A.value ? (s(),
|
|
656
|
+
U.value || A.value ? (s(), k(t(ga), {
|
|
658
657
|
key: 1,
|
|
659
658
|
ref_key: "cancelFileButtonRef",
|
|
660
659
|
ref: r,
|
|
@@ -662,22 +661,22 @@ const Aa = {
|
|
|
662
661
|
variant: "tertiary",
|
|
663
662
|
onClick: T[1] || (T[1] = (Q) => d("cancel"))
|
|
664
663
|
}, {
|
|
665
|
-
iconLeft:
|
|
664
|
+
iconLeft: y(() => [
|
|
666
665
|
O(t(hi), {
|
|
667
666
|
id: t(Z),
|
|
668
667
|
"svg-title": `${t(l)("cancel")} - ${j.file.data.name}`
|
|
669
668
|
}, null, 8, ["id", "svg-title"])
|
|
670
669
|
]),
|
|
671
670
|
_: 1
|
|
672
|
-
}, 8, ["aria-labelledby"])) : (s(),
|
|
671
|
+
}, 8, ["aria-labelledby"])) : (s(), k(t(ga), {
|
|
673
672
|
key: 2,
|
|
674
673
|
ref_key: "removeFileButtonRef",
|
|
675
|
-
ref:
|
|
674
|
+
ref: w,
|
|
676
675
|
"aria-labelledby": `${t(B)} ${t(P)}`,
|
|
677
676
|
variant: "tertiary",
|
|
678
677
|
onClick: T[2] || (T[2] = (Q) => d("remove"))
|
|
679
678
|
}, {
|
|
680
|
-
iconLeft:
|
|
679
|
+
iconLeft: y(() => [
|
|
681
680
|
O(t(xi), {
|
|
682
681
|
id: t(P),
|
|
683
682
|
"svg-title": `${t(l)("remove")} - ${j.file.data.name}`
|
|
@@ -699,7 +698,7 @@ const Aa = {
|
|
|
699
698
|
}
|
|
700
699
|
}, Se = {
|
|
701
700
|
i18n: { messages: Ua }
|
|
702
|
-
},
|
|
701
|
+
}, Fe = /* @__PURE__ */ la({
|
|
703
702
|
...Se,
|
|
704
703
|
__name: "file-uploader-restrictions",
|
|
705
704
|
props: {
|
|
@@ -711,7 +710,7 @@ const Aa = {
|
|
|
711
710
|
supportedFileTypes: { default: null }
|
|
712
711
|
},
|
|
713
712
|
setup(a) {
|
|
714
|
-
const i = a, { t: o, tc: p, n, locale: d } = sa({ messages: Ua }), l =
|
|
713
|
+
const i = a, { t: o, tc: p, n, locale: d } = sa({ messages: Ua }), l = h(() => ({
|
|
715
714
|
"b-file-uploader-restrictions--condensed": i.condensed,
|
|
716
715
|
"b-file-uploader-restrictions--disabled": i.disabled
|
|
717
716
|
}));
|
|
@@ -720,7 +719,7 @@ const Aa = {
|
|
|
720
719
|
"b-file-uploader-restrictions--error": r
|
|
721
720
|
};
|
|
722
721
|
}
|
|
723
|
-
const
|
|
722
|
+
const w = h(() => {
|
|
724
723
|
if (!i.maxDimensions)
|
|
725
724
|
return null;
|
|
726
725
|
const {
|
|
@@ -731,45 +730,45 @@ const Aa = {
|
|
|
731
730
|
return (r, z) => (s(), x("div", {
|
|
732
731
|
class: q(["b-file-uploader-restrictions", l.value])
|
|
733
732
|
}, [
|
|
734
|
-
r.supportedFileTypes ? (s(),
|
|
733
|
+
r.supportedFileTypes ? (s(), k(t(R), {
|
|
735
734
|
key: 0,
|
|
736
735
|
class: q(u(r.supportedFileTypes.error))
|
|
737
736
|
}, {
|
|
738
|
-
default:
|
|
737
|
+
default: y(() => [
|
|
739
738
|
_(f(t(o)("supportedFileTypes", { list: r.supportedFileTypes.value })), 1)
|
|
740
739
|
]),
|
|
741
740
|
_: 1
|
|
742
741
|
}, 8, ["class"])) : v("", !0),
|
|
743
|
-
r.maxSize ? (s(),
|
|
742
|
+
r.maxSize ? (s(), k(t(R), {
|
|
744
743
|
key: 1,
|
|
745
744
|
class: q(u(r.maxSize.error))
|
|
746
745
|
}, {
|
|
747
|
-
default:
|
|
746
|
+
default: y(() => [
|
|
748
747
|
_(f(t(o)("maxFileSize", { size: t(Za)(t(d), r.maxSize.value) })), 1)
|
|
749
748
|
]),
|
|
750
749
|
_: 1
|
|
751
750
|
}, 8, ["class"])) : v("", !0),
|
|
752
|
-
r.maxDimensions ? (s(),
|
|
751
|
+
r.maxDimensions ? (s(), k(t(R), {
|
|
753
752
|
key: 2,
|
|
754
753
|
class: q(u(r.maxDimensions.error))
|
|
755
754
|
}, {
|
|
756
|
-
default:
|
|
757
|
-
_(f(
|
|
755
|
+
default: y(() => [
|
|
756
|
+
_(f(w.value), 1)
|
|
758
757
|
]),
|
|
759
758
|
_: 1
|
|
760
759
|
}, 8, ["class"])) : v("", !0),
|
|
761
|
-
r.maxCount ? (s(),
|
|
760
|
+
r.maxCount ? (s(), k(t(R), {
|
|
762
761
|
key: 3,
|
|
763
762
|
class: q(u(r.maxCount.error))
|
|
764
763
|
}, {
|
|
765
|
-
default:
|
|
764
|
+
default: y(() => [
|
|
766
765
|
_(f(t(p)("maxUpload", r.maxCount.value, { count: t(n)(r.maxCount.value) })), 1)
|
|
767
766
|
]),
|
|
768
767
|
_: 1
|
|
769
768
|
}, 8, ["class"])) : v("", !0)
|
|
770
769
|
], 2));
|
|
771
770
|
}
|
|
772
|
-
}), Da = /* @__PURE__ */ L(
|
|
771
|
+
}), Da = /* @__PURE__ */ L(Fe, [["__scopeId", "data-v-6ad327db"]]), Na = {
|
|
773
772
|
"application/prs.cww": ["cww"],
|
|
774
773
|
"application/prs.xsf+xml": ["xsf"],
|
|
775
774
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1827,7 +1826,7 @@ var M = function(a, i, o, p) {
|
|
|
1827
1826
|
if (typeof i == "function" ? a !== i || !p : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1828
1827
|
return o === "m" ? p : o === "a" ? p.call(a) : p ? p.value : i.get(a);
|
|
1829
1828
|
}, W, ia, N;
|
|
1830
|
-
class
|
|
1829
|
+
class Ve {
|
|
1831
1830
|
constructor(...i) {
|
|
1832
1831
|
W.set(this, /* @__PURE__ */ new Map()), ia.set(this, /* @__PURE__ */ new Map()), N.set(this, /* @__PURE__ */ new Map());
|
|
1833
1832
|
for (const o of i)
|
|
@@ -1839,8 +1838,8 @@ class Fe {
|
|
|
1839
1838
|
const d = M(this, N, "f").get(p);
|
|
1840
1839
|
let l = !0;
|
|
1841
1840
|
for (let u of n) {
|
|
1842
|
-
const
|
|
1843
|
-
if (u =
|
|
1841
|
+
const w = u.startsWith("*");
|
|
1842
|
+
if (u = w ? u.slice(1) : u, d == null || d.add(u), l && M(this, ia, "f").set(p, u), l = !1, w)
|
|
1844
1843
|
continue;
|
|
1845
1844
|
const r = M(this, W, "f").get(u);
|
|
1846
1845
|
if (r && r != p && !o)
|
|
@@ -1879,13 +1878,13 @@ class Fe {
|
|
|
1879
1878
|
}
|
|
1880
1879
|
}
|
|
1881
1880
|
W = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
|
|
1882
|
-
const Ga = new
|
|
1881
|
+
const Ga = new Ve(Pa, Na)._freeze();
|
|
1883
1882
|
function De(a) {
|
|
1884
1883
|
return a.includes("/") ? `.${Ga.getExtension(a).toUpperCase()}` : a.toUpperCase();
|
|
1885
1884
|
}
|
|
1886
1885
|
function Oe(a) {
|
|
1887
1886
|
const { locale: i, t: o } = sa();
|
|
1888
|
-
return { supportedFileTypeList:
|
|
1887
|
+
return { supportedFileTypeList: h(() => {
|
|
1889
1888
|
const n = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
|
|
1890
1889
|
return a != null && a.value ? n.format(
|
|
1891
1890
|
a.value.split(",").map((d) => {
|
|
@@ -1927,21 +1926,21 @@ function qe({ maxCount: a, accept: i }) {
|
|
|
1927
1926
|
}), p = ba({
|
|
1928
1927
|
dragging: !1,
|
|
1929
1928
|
error: !1
|
|
1930
|
-
}), n =
|
|
1929
|
+
}), n = h(() => i.value ? i.value.split(",").map((w) => He(w.trim().toLocaleLowerCase())) : void 0);
|
|
1931
1930
|
function d() {
|
|
1932
1931
|
p.dragging = !1, p.error = !1, o.invalidTypes = !1, o.partiallyInvalidTypes = !1, o.maxCountOverflow = !1;
|
|
1933
1932
|
}
|
|
1934
|
-
function l(u,
|
|
1935
|
-
if (p.dragging = !0, (!
|
|
1933
|
+
function l(u, w) {
|
|
1934
|
+
if (p.dragging = !0, (!w.dataTransfer.types.includes("Files") || u > a.value) && (o.maxCountOverflow = !0, p.error = !0), !n.value)
|
|
1936
1935
|
return;
|
|
1937
1936
|
let r = 0;
|
|
1938
|
-
for (const z of
|
|
1937
|
+
for (const z of w.dataTransfer.items)
|
|
1939
1938
|
n.value.includes(z.type) && r++;
|
|
1940
1939
|
if (r === 0) {
|
|
1941
1940
|
p.error = !0, o.invalidTypes = !0;
|
|
1942
1941
|
return;
|
|
1943
1942
|
}
|
|
1944
|
-
!o.invalidTypes && r !==
|
|
1943
|
+
!o.invalidTypes && r !== w.dataTransfer.items.length && (p.error = !0, o.partiallyInvalidTypes = !0);
|
|
1945
1944
|
}
|
|
1946
1945
|
return {
|
|
1947
1946
|
dragState: p,
|
|
@@ -1987,13 +1986,13 @@ const Be = ["id", "accept", "disabled", "multiple"], Ze = ["id"], Ae = ["aria-la
|
|
|
1987
1986
|
"2.0.0"
|
|
1988
1987
|
);
|
|
1989
1988
|
});
|
|
1990
|
-
const { supportedFileTypeList:
|
|
1989
|
+
const { supportedFileTypeList: w } = Oe(xa(l, "accept")), r = S("browse-button"), z = S("custom-text"), B = S("drop-files-text"), Z = S("comma-text"), P = S("file-uploader-restrictions"), g = I(null), H = I([]), D = I(null), A = I(null), ea = S("input"), ta = S("input-error"), na = h(() => {
|
|
1991
1990
|
const e = l.condensed ? "" : `${B} ${Z}`, c = l.description ? `${z} ${Z}` : "", C = `${P} ${Z}`;
|
|
1992
1991
|
return `${e} ${c} ${C} ${r}`;
|
|
1993
1992
|
}), { dragState: Y, dragErrors: U, resetDragState: X, onDragEnterValidations: ca } = qe({
|
|
1994
1993
|
accept: xa(l, "accept"),
|
|
1995
1994
|
maxCount: xa(l, "maxCount")
|
|
1996
|
-
}), J =
|
|
1995
|
+
}), J = h(() => {
|
|
1997
1996
|
var e, c, C;
|
|
1998
1997
|
return {
|
|
1999
1998
|
condensed: l.condensed,
|
|
@@ -2004,28 +2003,28 @@ const Be = ["id", "accept", "disabled", "multiple"], Ze = ["id"], Ae = ["aria-la
|
|
|
2004
2003
|
} : null,
|
|
2005
2004
|
maxDimensions: l.maxDimensions ? {
|
|
2006
2005
|
value: l.maxDimensions,
|
|
2007
|
-
error: (e =
|
|
2006
|
+
error: (e = g.value) == null ? void 0 : e.some(($) => $.errors.includes(E.ERROR_DIMENSIONS))
|
|
2008
2007
|
} : null,
|
|
2009
2008
|
maxSize: l.maxSize ? {
|
|
2010
2009
|
value: l.maxSize,
|
|
2011
|
-
error: (c =
|
|
2010
|
+
error: (c = g.value) == null ? void 0 : c.some(($) => $.errors.includes(E.ERROR_SIZE))
|
|
2012
2011
|
} : null,
|
|
2013
|
-
supportedFileTypes:
|
|
2014
|
-
value:
|
|
2015
|
-
error: U.invalidTypes || U.partiallyInvalidTypes || ((C =
|
|
2012
|
+
supportedFileTypes: w.value ? {
|
|
2013
|
+
value: w.value,
|
|
2014
|
+
error: U.invalidTypes || U.partiallyInvalidTypes || ((C = g.value) == null ? void 0 : C.some(($) => $.errors.includes(E.ERROR_TYPE)))
|
|
2016
2015
|
} : null
|
|
2017
2016
|
};
|
|
2018
|
-
}), G = I(), da =
|
|
2017
|
+
}), G = I(), da = h(() => ({
|
|
2019
2018
|
[`b-file-uploader--${pa.DISABLED}`]: l.disabled,
|
|
2020
2019
|
[`b-file-uploader--${pa.DRAG_OVER}`]: Y.dragging,
|
|
2021
2020
|
[`b-file-uploader--${pa.ERROR}`]: T.value,
|
|
2022
2021
|
"b-file-uploader--condensed": l.condensed
|
|
2023
|
-
})), K =
|
|
2022
|
+
})), K = h(() => l.maxCount > 1), ra = h(() => {
|
|
2024
2023
|
var e;
|
|
2025
|
-
return l.maxCount && ((e =
|
|
2026
|
-
}), oa =
|
|
2024
|
+
return l.maxCount && ((e = g.value) == null ? void 0 : e.length) >= l.maxCount;
|
|
2025
|
+
}), oa = h(() => {
|
|
2027
2026
|
var e;
|
|
2028
|
-
return (e =
|
|
2027
|
+
return (e = g.value) == null ? void 0 : e.some((c) => c.state === "loading");
|
|
2029
2028
|
}), ma = (e) => (c) => {
|
|
2030
2029
|
H.value[e] = c;
|
|
2031
2030
|
};
|
|
@@ -2037,26 +2036,26 @@ const Be = ["id", "accept", "disabled", "multiple"], Ze = ["id"], Ae = ["aria-la
|
|
|
2037
2036
|
} else
|
|
2038
2037
|
d("change"), d("update:modelValue"), d("input");
|
|
2039
2038
|
}
|
|
2040
|
-
const T =
|
|
2039
|
+
const T = h(() => !!l.errorMessage || Y.error), Q = h(() => {
|
|
2041
2040
|
var e;
|
|
2042
|
-
return ((e =
|
|
2043
|
-
}), Ya = I(!1), Xa =
|
|
2041
|
+
return ((e = g.value) == null ? void 0 : e.length) > l.maxCount;
|
|
2042
|
+
}), Ya = I(!1), Xa = h(() => {
|
|
2044
2043
|
var e;
|
|
2045
|
-
return (e =
|
|
2044
|
+
return (e = g.value) == null ? void 0 : e.some((c) => c.state === "error");
|
|
2046
2045
|
});
|
|
2047
2046
|
ha(Xa, (e) => {
|
|
2048
2047
|
oa.value || d("error:upload", e);
|
|
2049
2048
|
});
|
|
2050
2049
|
async function ua() {
|
|
2051
2050
|
var e;
|
|
2052
|
-
if (await ui(),
|
|
2051
|
+
if (await ui(), g.value.length === l.maxCount) {
|
|
2053
2052
|
(e = H.value[0]) == null || e.focus();
|
|
2054
2053
|
return;
|
|
2055
2054
|
}
|
|
2056
2055
|
A.value.focus();
|
|
2057
2056
|
}
|
|
2058
2057
|
async function wa(e) {
|
|
2059
|
-
|
|
2058
|
+
g.value = g.value.filter(({ id: c }) => c !== e.id), await ua(), j(g.value);
|
|
2060
2059
|
}
|
|
2061
2060
|
function va(e) {
|
|
2062
2061
|
const c = ba({
|
|
@@ -2064,28 +2063,28 @@ const Be = ["id", "accept", "disabled", "multiple"], Ze = ["id"], Ae = ["aria-la
|
|
|
2064
2063
|
data: e,
|
|
2065
2064
|
errors: [],
|
|
2066
2065
|
progress: null,
|
|
2067
|
-
state:
|
|
2068
|
-
type:
|
|
2066
|
+
state: F.LOADING,
|
|
2067
|
+
type: Fi(e)
|
|
2069
2068
|
});
|
|
2070
2069
|
return Di(c, l.accept, l.maxDimensions), c;
|
|
2071
2070
|
}
|
|
2072
2071
|
function Ja(e) {
|
|
2073
2072
|
var c;
|
|
2074
|
-
((c =
|
|
2073
|
+
((c = g.value) == null ? void 0 : c.length) === l.maxCount && e.preventDefault();
|
|
2075
2074
|
}
|
|
2076
2075
|
async function ya(e) {
|
|
2077
2076
|
if (l.maxCount === 1 && e.length > l.maxCount) {
|
|
2078
2077
|
fa(), X();
|
|
2079
2078
|
return;
|
|
2080
2079
|
}
|
|
2081
|
-
K.value ?
|
|
2080
|
+
K.value ? g.value = [...g.value || [], ...Array.from(e).map((c) => va(c))] : (g.value = [va(e[0])], await ua()), j(g.value);
|
|
2082
2081
|
}
|
|
2083
2082
|
function Ka(e) {
|
|
2084
2083
|
var C, $;
|
|
2085
2084
|
if (l.disabled)
|
|
2086
2085
|
return;
|
|
2087
2086
|
G.value = e.target;
|
|
2088
|
-
const c = (((C = e.dataTransfer.items) == null ? void 0 : C.length) ?? 0) + ((($ =
|
|
2087
|
+
const c = (((C = e.dataTransfer.items) == null ? void 0 : C.length) ?? 0) + ((($ = g.value) == null ? void 0 : $.length) ?? 0);
|
|
2089
2088
|
ca(c, e);
|
|
2090
2089
|
}
|
|
2091
2090
|
function fa() {
|
|
@@ -2110,8 +2109,8 @@ const Be = ["id", "accept", "disabled", "multiple"], Ze = ["id"], Ae = ["aria-la
|
|
|
2110
2109
|
(e) => {
|
|
2111
2110
|
if (e && u(e)) {
|
|
2112
2111
|
const c = e, C = Array.from(c);
|
|
2113
|
-
|
|
2114
|
-
}
|
|
2112
|
+
g.value = C.map(($) => va($));
|
|
2113
|
+
} else !e && g.value && (g.value = null);
|
|
2115
2114
|
},
|
|
2116
2115
|
{ immediate: !0 }
|
|
2117
2116
|
);
|
|
@@ -2122,7 +2121,7 @@ const Be = ["id", "accept", "disabled", "multiple"], Ze = ["id"], Ae = ["aria-la
|
|
|
2122
2121
|
function ni(e) {
|
|
2123
2122
|
l.maxSize && e.forEach((c) => {
|
|
2124
2123
|
const C = c;
|
|
2125
|
-
C.data.size > l.maxSize && (C.state =
|
|
2124
|
+
C.data.size > l.maxSize && (C.state = F.ERROR, C.errors.push(E.ERROR_SIZE));
|
|
2126
2125
|
});
|
|
2127
2126
|
}
|
|
2128
2127
|
function oi(e) {
|
|
@@ -2188,7 +2187,7 @@ const Be = ["id", "accept", "disabled", "multiple"], Ze = ["id"], Ae = ["aria-la
|
|
|
2188
2187
|
]
|
|
2189
2188
|
}, [
|
|
2190
2189
|
m("div", Ue, [
|
|
2191
|
-
T.value ? (s(),
|
|
2190
|
+
T.value ? (s(), k(t(qa), { key: 0 })) : (s(), k(t(Ri), { key: 1 }))
|
|
2192
2191
|
]),
|
|
2193
2192
|
e.condensed ? v("", !0) : (s(), x(_a, { key: 0 }, [
|
|
2194
2193
|
O(t(R), {
|
|
@@ -2197,84 +2196,84 @@ const Be = ["id", "accept", "disabled", "multiple"], Ze = ["id"], Ae = ["aria-la
|
|
|
2197
2196
|
strongest: "",
|
|
2198
2197
|
class: "b-file-uploader__title"
|
|
2199
2198
|
}, {
|
|
2200
|
-
default:
|
|
2199
|
+
default: y(() => [
|
|
2201
2200
|
_(f(t(p)("dropFiles", e.maxCount)), 1)
|
|
2202
2201
|
]),
|
|
2203
2202
|
_: 1
|
|
2204
2203
|
}, 8, ["id"]),
|
|
2205
|
-
e.description ? (s(),
|
|
2204
|
+
e.description ? (s(), k(t(R), {
|
|
2206
2205
|
key: 0,
|
|
2207
2206
|
id: t(z),
|
|
2208
2207
|
el: "span",
|
|
2209
2208
|
class: "b-file-uploader__description"
|
|
2210
2209
|
}, {
|
|
2211
|
-
default:
|
|
2210
|
+
default: y(() => [
|
|
2212
2211
|
_(f(e.description), 1)
|
|
2213
2212
|
]),
|
|
2214
2213
|
_: 1
|
|
2215
2214
|
}, 8, ["id"])) : v("", !0),
|
|
2216
|
-
O(t(Da),
|
|
2215
|
+
O(t(Da), V(J.value, { id: t(P) }), null, 16, ["id"])
|
|
2217
2216
|
], 64)),
|
|
2218
2217
|
O(t(R), {
|
|
2219
2218
|
id: t(r),
|
|
2220
2219
|
stronger: "",
|
|
2221
2220
|
class: "b-file-uploader__button"
|
|
2222
2221
|
}, {
|
|
2223
|
-
default:
|
|
2222
|
+
default: y(() => [
|
|
2224
2223
|
_(f(t(o)("browseFiles")), 1)
|
|
2225
2224
|
]),
|
|
2226
2225
|
_: 1
|
|
2227
2226
|
}, 8, ["id"])
|
|
2228
2227
|
], 40, Ae)),
|
|
2229
|
-
T.value && e.errorMessage ? (s(),
|
|
2228
|
+
T.value && e.errorMessage ? (s(), k(t($i), {
|
|
2230
2229
|
key: 1,
|
|
2231
2230
|
id: t(ta),
|
|
2232
2231
|
"error-message": e.errorMessage,
|
|
2233
2232
|
class: "b-file-uploader__error-message"
|
|
2234
2233
|
}, null, 8, ["id", "error-message"])) : v("", !0),
|
|
2235
|
-
e.condensed && e.description ? (s(),
|
|
2234
|
+
e.condensed && e.description ? (s(), k(t(R), {
|
|
2236
2235
|
key: 2,
|
|
2237
2236
|
id: t(z),
|
|
2238
2237
|
"aria-hidden": "true",
|
|
2239
2238
|
el: "span",
|
|
2240
2239
|
class: "b-file-uploader__description b-file-uploader__description--condensed"
|
|
2241
2240
|
}, {
|
|
2242
|
-
default:
|
|
2241
|
+
default: y(() => [
|
|
2243
2242
|
_(f(e.description), 1)
|
|
2244
2243
|
]),
|
|
2245
2244
|
_: 1
|
|
2246
2245
|
}, 8, ["id"])) : v("", !0),
|
|
2247
|
-
e.condensed ? (s(),
|
|
2248
|
-
Q.value ? (s(),
|
|
2246
|
+
e.condensed ? (s(), k(t(Da), V({ key: 3 }, J.value, { id: t(P) }), null, 16, ["id"])) : v("", !0),
|
|
2247
|
+
Q.value ? (s(), k(t(vi), {
|
|
2249
2248
|
key: 4,
|
|
2250
2249
|
type: "critical"
|
|
2251
2250
|
}, {
|
|
2252
|
-
description:
|
|
2251
|
+
description: y(() => [
|
|
2253
2252
|
_(f(t(o)("youHaveExceededTheMaximum", { count: t(n)(l.maxCount) })), 1)
|
|
2254
2253
|
]),
|
|
2255
|
-
default:
|
|
2254
|
+
default: y(() => [
|
|
2256
2255
|
_(f(t(o)("tooManyFiles")) + " ", 1)
|
|
2257
2256
|
]),
|
|
2258
2257
|
_: 1
|
|
2259
2258
|
})) : v("", !0),
|
|
2260
2259
|
Ha(m("div", Ne, [
|
|
2261
|
-
(s(!0), x(_a, null, ri(
|
|
2260
|
+
(s(!0), x(_a, null, ri(g.value, ($, ka) => (s(), k(t(Me), {
|
|
2262
2261
|
ref_for: !0,
|
|
2263
2262
|
ref: ma(ka),
|
|
2264
2263
|
key: $.id,
|
|
2265
2264
|
file: $,
|
|
2266
|
-
"supported-file-types": t(
|
|
2265
|
+
"supported-file-types": t(w),
|
|
2267
2266
|
onCancel: (pi) => wa($),
|
|
2268
2267
|
onRemove: (pi) => wa($)
|
|
2269
2268
|
}, null, 8, ["file", "supported-file-types", "onCancel", "onRemove"]))), 128))
|
|
2270
2269
|
], 512), [
|
|
2271
|
-
[mi, (C =
|
|
2270
|
+
[mi, (C = g.value) == null ? void 0 : C.length]
|
|
2272
2271
|
])
|
|
2273
2272
|
], 2);
|
|
2274
2273
|
};
|
|
2275
2274
|
}
|
|
2276
|
-
}),
|
|
2275
|
+
}), mt = /* @__PURE__ */ L(Ge, [["__scopeId", "data-v-e9e9f3d9"]]);
|
|
2277
2276
|
export {
|
|
2278
|
-
|
|
2277
|
+
mt as f
|
|
2279
2278
|
};
|
|
2280
|
-
//# sourceMappingURL=file-uploader.
|
|
2279
|
+
//# sourceMappingURL=file-uploader.09149Fx8.js.map
|