@adyen/bento-vue3 1.83.0 → 1.84.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 +12481 -12319
- 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/ai-button.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/avatar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/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/code-snippet.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/country.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/dashboard-section.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/date.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/field-label.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/fixed-scroller.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/index.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.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -1
- package/dist/assets/link.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/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/summary-grid.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.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
- package/dist/chunks/accordion-item.yRlQj4VF.js.map +1 -1
- package/dist/chunks/{action-bar.D5y9JWnT.js → action-bar.CriH15oF.js} +11 -9
- package/dist/chunks/{action-bar.D5y9JWnT.js.map → action-bar.CriH15oF.js.map} +1 -1
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
- package/dist/chunks/{alert.CYaIUaUn.js → alert.BYcw-u3b.js} +48 -40
- package/dist/chunks/{alert.CYaIUaUn.js.map → alert.BYcw-u3b.js.map} +1 -1
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
- package/dist/chunks/avatar.CNGMjwg3.js.map +1 -1
- package/dist/chunks/base-button.CUd03aA2.js.map +1 -1
- package/dist/chunks/{base-modal.B8HZItVN.js → base-modal.D3GyeCFT.js} +44 -42
- package/dist/chunks/{base-modal.B8HZItVN.js.map → base-modal.D3GyeCFT.js.map} +1 -1
- package/dist/chunks/bin.DuHlEQBO.js.map +1 -1
- package/dist/chunks/{button-actions-with-menu.LlNWeD3B.js → button-actions-with-menu.B8xFgt-p.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.LlNWeD3B.js.map → button-actions-with-menu.B8xFgt-p.js.map} +1 -1
- package/dist/chunks/{button-actions.O0cnu1_g.js → button-actions.Crj4QFAd.js} +445 -413
- package/dist/chunks/button-actions.Crj4QFAd.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/button.CSp48LJt.js.map +1 -1
- package/dist/chunks/calendar.DKPx_cQU.js +1237 -0
- package/dist/chunks/calendar.DKPx_cQU.js.map +1 -0
- package/dist/chunks/{card.Dqt_BOMI.js → card.C_03IYJe.js} +2 -2
- package/dist/chunks/{card.Dqt_BOMI.js.map → card.C_03IYJe.js.map} +1 -1
- package/dist/chunks/{checkbox-group.S0FqSg9s.js → checkbox-group.DZrhxIHp.js} +4 -4
- package/dist/chunks/{checkbox-group.S0FqSg9s.js.map → checkbox-group.DZrhxIHp.js.map} +1 -1
- package/dist/chunks/{checkbox-input.BXNGT9U0.js → checkbox-input.Dk9iFQQe.js} +62 -57
- package/dist/chunks/checkbox-input.Dk9iFQQe.js.map +1 -0
- package/dist/chunks/{checkbox.B_WaHSop.js → checkbox.BWgWtiLJ.js} +10 -10
- package/dist/chunks/{checkbox.B_WaHSop.js.map → checkbox.BWgWtiLJ.js.map} +1 -1
- package/dist/chunks/checkmark-circle-fill._6-d40ru.js.map +1 -1
- package/dist/chunks/checkmark-small.x-gmK2Dt.js.map +1 -1
- package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -1
- package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -1
- package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -1
- package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -1
- package/dist/chunks/{code-snippet.Bfq5pgmE.js → code-snippet.4HtbNUDE.js} +78 -76
- package/dist/chunks/code-snippet.4HtbNUDE.js.map +1 -0
- package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -1
- package/dist/chunks/constructNow.DuaJst0D.js +8 -0
- package/dist/chunks/{constructNow.BhymNmy5.js.map → constructNow.DuaJst0D.js.map} +1 -1
- package/dist/chunks/{controls-group.CdnMYv1j.js → controls-group.DpFv8c4E.js} +2 -2
- package/dist/chunks/{controls-group.CdnMYv1j.js.map → controls-group.DpFv8c4E.js.map} +1 -1
- package/dist/chunks/{copy.Cg-VyVQ4.js → copy.xg9ElNxd.js} +35 -33
- package/dist/chunks/{copy.Cg-VyVQ4.js.map → copy.xg9ElNxd.js.map} +1 -1
- package/dist/chunks/country.types.DaVCMxk-.js +773 -0
- package/dist/chunks/{country.types.C0Q_hhgJ.js.map → country.types.DaVCMxk-.js.map} +1 -1
- package/dist/chunks/{country.CPGT2RsT.js → country.vSfTQW51.js} +2 -2
- package/dist/chunks/{country.CPGT2RsT.js.map → country.vSfTQW51.js.map} +1 -1
- package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js.map +1 -1
- package/dist/chunks/cross-circle-fill.CYLL7jfC.js.map +1 -1
- package/dist/chunks/cross-small.n1UO5wNB.js.map +1 -1
- package/dist/chunks/cross.B92GxFTY.js.map +1 -1
- package/dist/chunks/currency.DijmAkAB.js.map +1 -1
- package/dist/chunks/{dashboard-section.CGS38Swm.js → dashboard-section.D_k3_Z2T.js} +3 -3
- package/dist/chunks/{dashboard-section.CGS38Swm.js.map → dashboard-section.D_k3_Z2T.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DV3p60Ne.js → dashed-underline.B0z2ZZh7.js} +2 -2
- package/dist/chunks/{dashed-underline.DV3p60Ne.js.map → dashed-underline.B0z2ZZh7.js.map} +1 -1
- package/dist/chunks/{data-grid-template.D2g9KHSZ.js → data-grid-template.DdIrvOXp.js} +4 -4
- package/dist/chunks/{data-grid-template.D2g9KHSZ.js.map → data-grid-template.DdIrvOXp.js.map} +1 -1
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
- package/dist/chunks/{data-grid.ChGEI-jV.js → data-grid.BBkF9ojy.js} +1289 -1207
- package/dist/chunks/{data-grid.ChGEI-jV.js.map → data-grid.BBkF9ojy.js.map} +1 -1
- package/dist/chunks/date-input.BbZqj10S.js +15 -0
- package/dist/chunks/date-input.BbZqj10S.js.map +1 -0
- package/dist/chunks/date-picker.dyp0YK9_.js +249 -0
- package/dist/chunks/date-picker.dyp0YK9_.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date-range-picker.TsUvRvGy.js +1896 -0
- package/dist/chunks/date-range-picker.TsUvRvGy.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date.CL55prL0.js.map +1 -1
- package/dist/chunks/de.DvtL0g75.js +478 -0
- package/dist/chunks/de.DvtL0g75.js.map +1 -0
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
- package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
- package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
- package/dist/chunks/{dialog-page.CTEyyZ_R.js → dialog-page.DaZSlMzY.js} +23 -17
- package/dist/chunks/{dialog-page.CTEyyZ_R.js.map → dialog-page.DaZSlMzY.js.map} +1 -1
- package/dist/chunks/differenceInMonths.DcFDl4eH.js +43 -0
- package/dist/chunks/differenceInMonths.DcFDl4eH.js.map +1 -0
- package/dist/chunks/directive.Cbdox5VL.js.map +1 -1
- package/dist/chunks/divider.Dho4_hQ7.js.map +1 -1
- package/dist/chunks/dot.ob6N-5Um.js.map +1 -1
- package/dist/chunks/dropdown-default-textbox.DFtFMu5G.js.map +1 -1
- package/dist/chunks/{dropdown-tag.BWnAPzEN.js → dropdown-tag.DtpDzWl4.js} +4 -4
- package/dist/chunks/{dropdown-tag.BWnAPzEN.js.map → dropdown-tag.DtpDzWl4.js.map} +1 -1
- package/dist/chunks/{dropdown.CtP9keJ4.js → dropdown.D0_8f9Mz.js} +114 -110
- package/dist/chunks/{dropdown.CtP9keJ4.js.map → dropdown.D0_8f9Mz.js.map} +1 -1
- package/dist/chunks/empty-state.D_ifpeU-.js.map +1 -1
- package/dist/chunks/en-GB.DCGuCmAv.js +46 -0
- package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -0
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.B7sxiukN.js → en-US.BZii9jNW.js} +160 -196
- package/dist/chunks/en-US.BZii9jNW.js.map +1 -0
- package/dist/chunks/es.bz0mzkMq.js +374 -0
- package/dist/chunks/es.bz0mzkMq.js.map +1 -0
- package/dist/chunks/es6.C1DXQV6f.js +12 -0
- package/dist/chunks/es6.C1DXQV6f.js.map +1 -0
- package/dist/chunks/events.BQOQSSb7.js.map +1 -1
- package/dist/chunks/expand.C9IAqYYL.js.map +1 -1
- package/dist/chunks/{field-label.CfizwLcQ.js → field-label.D7vU2Icm.js} +8 -8
- package/dist/chunks/{field-label.CfizwLcQ.js.map → field-label.D7vU2Icm.js.map} +1 -1
- package/dist/chunks/{file-uploader.C9qXXyin.js → file-uploader.BmBKLzIx.js} +253 -207
- package/dist/chunks/{file-uploader.C9qXXyin.js.map → file-uploader.BmBKLzIx.js.map} +1 -1
- package/dist/chunks/filter-bar.D0BEt7ia.js +3363 -0
- package/dist/chunks/filter-bar.D0BEt7ia.js.map +1 -0
- package/dist/chunks/{fixed-scroller.DCjtCzKy.js → fixed-scroller.e56yJp7Q.js} +52 -44
- package/dist/chunks/{fixed-scroller.DCjtCzKy.js.map → fixed-scroller.e56yJp7Q.js.map} +1 -1
- package/dist/chunks/focus-trap.BaHvK7aT.js.map +1 -1
- package/dist/chunks/{footer-actions.CTCV-SW-.js → footer-actions.BqNvwVk7.js} +2 -2
- package/dist/chunks/{footer-actions.CTCV-SW-.js.map → footer-actions.BqNvwVk7.js.map} +1 -1
- package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
- package/dist/chunks/{form-layout-title.Dvlo-2z_.js → form-layout-title.CPsEzRzS.js} +2 -2
- package/dist/chunks/{form-layout-title.Dvlo-2z_.js.map → form-layout-title.CPsEzRzS.js.map} +1 -1
- package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
- package/dist/chunks/fr-CA.B1aPU8fp.js +48 -0
- package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -0
- package/dist/chunks/fr.Dj7wEToe.js +47 -0
- package/dist/chunks/fr.Dj7wEToe.js.map +1 -0
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
- package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js +51 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map +1 -0
- package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -1
- package/dist/chunks/header-meta.PysBmkSU.js +263 -0
- package/dist/chunks/header-meta.PysBmkSU.js.map +1 -0
- package/dist/chunks/{header-with-views.CHObq1kM.js → header-with-views.BGIZadqh.js} +844 -780
- package/dist/chunks/{header-with-views.CHObq1kM.js.map → header-with-views.BGIZadqh.js.map} +1 -1
- package/dist/chunks/{header.BMTf9s8L.js → header.yMTOq8MR.js} +3 -3
- package/dist/chunks/{header.BMTf9s8L.js.map → header.yMTOq8MR.js.map} +1 -1
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
- package/dist/chunks/index.E60QniEu.js.map +1 -1
- package/dist/chunks/index.pdBj0KQU.js.map +1 -1
- package/dist/chunks/info.BKwey1HA.js.map +1 -1
- package/dist/chunks/{input-field-password.CTdUPz2y.js → input-field-password.DN3ltmAg.js} +101 -95
- package/dist/chunks/{input-field-password.CTdUPz2y.js.map → input-field-password.DN3ltmAg.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.Bp57oBMS.js → input-field-phone-number.CouE9QiR.js} +180 -174
- package/dist/chunks/{input-field-phone-number.Bp57oBMS.js.map → input-field-phone-number.CouE9QiR.js.map} +1 -1
- package/dist/chunks/{input-field.DzNDGqBP.js → input-field.C2SQq0V1.js} +67 -59
- package/dist/chunks/{input-field.DzNDGqBP.js.map → input-field.C2SQq0V1.js.map} +1 -1
- package/dist/chunks/{inspector.p4ukEAWH.js → inspector.Dox76eqN.js} +41 -35
- package/dist/chunks/{inspector.p4ukEAWH.js.map → inspector.Dox76eqN.js.map} +1 -1
- package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
- package/dist/chunks/isSameWeek.CUD7czUN.js +14 -0
- package/dist/chunks/isSameWeek.CUD7czUN.js.map +1 -0
- package/dist/chunks/it.Oaj6BklL.js +392 -0
- package/dist/chunks/it.Oaj6BklL.js.map +1 -0
- package/dist/chunks/ja.Cm9tJMi2.js +367 -0
- package/dist/chunks/ja.Cm9tJMi2.js.map +1 -0
- package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
- package/dist/chunks/ko.Ceaof6EP.js +348 -0
- package/dist/chunks/ko.Ceaof6EP.js.map +1 -0
- package/dist/chunks/layout-row.CX8kV_w0.js.map +1 -1
- package/dist/chunks/link.BLCQlEZU.js.map +1 -1
- package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -1
- package/dist/chunks/match.CMBZxEs9.js +302 -0
- package/dist/chunks/match.CMBZxEs9.js.map +1 -0
- package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.DYDW-zC0.js → modal-fullscreen.BXjxVsAq.js} +3 -3
- package/dist/chunks/{modal-fullscreen.DYDW-zC0.js.map → modal-fullscreen.BXjxVsAq.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js → modal.vue_vue_type_script_setup_true_lang.CRovU08l.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js.map → modal.vue_vue_type_script_setup_true_lang.CRovU08l.js.map} +1 -1
- package/dist/chunks/nl.B6vCf2B9.js +327 -0
- package/dist/chunks/nl.B6vCf2B9.js.map +1 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
- package/dist/chunks/{pagination.0cHVUbmR.js → pagination.Biy7xN75.js} +5 -5
- package/dist/chunks/{pagination.0cHVUbmR.js.map → pagination.Biy7xN75.js.map} +1 -1
- package/dist/chunks/payment-method.BGEBaa4w.js.map +1 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
- package/dist/chunks/popover.types.DgfeurkF.js.map +1 -1
- package/dist/chunks/popper-container.I9gzp1NR.js.map +1 -1
- package/dist/chunks/promo-banner.BIRH5sVX.js.map +1 -1
- package/dist/chunks/pt-BR.CiGdfP45.js +380 -0
- package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -0
- package/dist/chunks/{radio-group.B2JLD8_2.js → radio-group.BqsQRDjs.js} +3 -3
- package/dist/chunks/{radio-group.B2JLD8_2.js.map → radio-group.BqsQRDjs.js.map} +1 -1
- package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -1
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
- package/dist/chunks/refresh.BB4ouvz_.js.map +1 -1
- package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
- package/dist/chunks/{rich-text-editor.Dw01KOhU.js → rich-text-editor.Bafyvjc3.js} +4 -4
- package/dist/chunks/{rich-text-editor.Dw01KOhU.js.map → rich-text-editor.Bafyvjc3.js.map} +1 -1
- package/dist/chunks/{search-bar.fCnPv83a.js → search-bar.BF8M5OSY.js} +3 -3
- package/dist/chunks/{search-bar.fCnPv83a.js.map → search-bar.BF8M5OSY.js.map} +1 -1
- package/dist/chunks/search.PczW-onY.js.map +1 -1
- package/dist/chunks/secondary-nav.D2lBMjqY.js +144 -0
- package/dist/chunks/{secondary-nav.D1y_GiqG.js.map → secondary-nav.D2lBMjqY.js.map} +1 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.DYklb2t2.js → selection-card-group.DNPlEqEq.js} +17 -17
- package/dist/chunks/{selection-card-group.DYklb2t2.js.map → selection-card-group.DNPlEqEq.js.map} +1 -1
- package/dist/chunks/show.CT4Augxb.js.map +1 -1
- package/dist/chunks/{sidepanel.1WPpJp8O.js → sidepanel.RJihFo_R.js} +4 -4
- package/dist/chunks/{sidepanel.1WPpJp8O.js.map → sidepanel.RJihFo_R.js.map} +1 -1
- package/dist/chunks/startOfWeek.Dxw2MhGp.js +10 -0
- package/dist/chunks/startOfWeek.Dxw2MhGp.js.map +1 -0
- package/dist/chunks/status.types.ChOI6XGU.js.map +1 -1
- package/dist/chunks/step.DpgnDx29.js +271 -0
- package/dist/chunks/step.DpgnDx29.js.map +1 -0
- package/dist/chunks/{structured-list-item.C4Fnc7sX.js → structured-list-item.B-hdp7rW.js} +2 -2
- package/dist/chunks/{structured-list-item.C4Fnc7sX.js.map → structured-list-item.B-hdp7rW.js.map} +1 -1
- package/dist/chunks/success.DhioLvPD.js.map +1 -1
- package/dist/chunks/success.nNwxJRBS.js.map +1 -1
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
- package/dist/chunks/{summary-grid.types.CbROj1cf.js → summary-grid.types.BVLRSBAF.js} +3 -3
- package/dist/chunks/{summary-grid.types.CbROj1cf.js.map → summary-grid.types.BVLRSBAF.js.map} +1 -1
- package/dist/chunks/sv.f8EfZjMZ.js +377 -0
- package/dist/chunks/sv.f8EfZjMZ.js.map +1 -0
- package/dist/chunks/{tab.C-kmkQiE.js → tab.JPngc9oS.js} +2 -2
- package/dist/chunks/{tab.C-kmkQiE.js.map → tab.JPngc9oS.js.map} +1 -1
- package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
- package/dist/chunks/tag.DFJIvNLs.js.map +1 -1
- package/dist/chunks/{textarea.C0tLoH2I.js → textarea.CEDkF8BB.js} +45 -45
- package/dist/chunks/textarea.CEDkF8BB.js.map +1 -0
- package/dist/chunks/{timeline-item.-IGN2sbj.js → timeline-item.BxGaSGLf.js} +14 -13
- package/dist/chunks/{timeline-item.-IGN2sbj.js.map → timeline-item.BxGaSGLf.js.map} +1 -1
- package/dist/chunks/toggle.vl0ZwLhN.js.map +1 -1
- package/dist/chunks/tooltip.Nn3o8_vO.js.map +1 -1
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BeW7xfHC.js → tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js} +26 -26
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BeW7xfHC.js.map → tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js.map} +1 -1
- package/dist/chunks/typography.6Oo5TOMP.js.map +1 -1
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
- package/dist/chunks/use-bento-toast-controller.V61h7XzI.js.map +1 -1
- package/dist/chunks/{use-cached-selected-values.u6wcYuin.js → use-cached-selected-values.BZIa5TRx.js} +97 -88
- package/dist/chunks/{use-cached-selected-values.u6wcYuin.js.map → use-cached-selected-values.BZIa5TRx.js.map} +1 -1
- package/dist/chunks/{use-country-items.Dzbl2UsO.js → use-country-items.JZCYNoW7.js} +2 -2
- package/dist/chunks/{use-country-items.Dzbl2UsO.js.map → use-country-items.JZCYNoW7.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
- package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
- package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
- package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -1
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
- package/dist/chunks/zh-CN.BzH0fIXr.js +389 -0
- package/dist/chunks/zh-CN.BzH0fIXr.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- 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/dropdown.js +3 -3
- 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 +248 -249
- package/dist/index.js.map +1 -1
- 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 +10 -10
- 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/radio-group.js +1 -1
- package/dist/rich-text-editor.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 +0 -1829
- package/dist/styles/bento-light.css +0 -1829
- package/dist/styles/bento.css +0 -1829
- package/dist/styles/legacy.css +0 -1829
- package/dist/styles/styleguide.css +0 -1829
- 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/tutorial.js +1 -1
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +8 -8
- package/dist/chunks/button-actions.O0cnu1_g.js.map +0 -1
- package/dist/chunks/calendar.NVmCgJrJ.js +0 -1962
- package/dist/chunks/calendar.NVmCgJrJ.js.map +0 -1
- package/dist/chunks/checkbox-input.BXNGT9U0.js.map +0 -1
- package/dist/chunks/code-snippet.Bfq5pgmE.js.map +0 -1
- package/dist/chunks/constructNow.BhymNmy5.js +0 -8
- package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
- package/dist/chunks/date-format.B8RU7D42.js +0 -17
- package/dist/chunks/date-format.B8RU7D42.js.map +0 -1
- package/dist/chunks/date-picker.BIdfeL7b.js +0 -245
- package/dist/chunks/date-picker.BIdfeL7b.js.map +0 -1
- package/dist/chunks/date-range-picker.BT3I5M44.js +0 -1109
- package/dist/chunks/date-range-picker.BT3I5M44.js.map +0 -1
- package/dist/chunks/differenceInMonths.Cab3nOsb.js +0 -1590
- package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +0 -1
- package/dist/chunks/es6.MoTTyETW.js +0 -12
- package/dist/chunks/es6.MoTTyETW.js.map +0 -1
- package/dist/chunks/filter-bar.DnfdHnSL.js +0 -3211
- package/dist/chunks/filter-bar.DnfdHnSL.js.map +0 -1
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +0 -1
- package/dist/chunks/header-meta.C2W1eMZc.js +0 -221
- package/dist/chunks/header-meta.C2W1eMZc.js.map +0 -1
- package/dist/chunks/secondary-nav.D1y_GiqG.js +0 -138
- package/dist/chunks/step._8f9kwI5.js +0 -267
- package/dist/chunks/step._8f9kwI5.js.map +0 -1
- package/dist/chunks/textarea.C0tLoH2I.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { createElementBlock as g, openBlock as s, mergeProps as
|
|
1
|
+
import { createElementBlock as g, openBlock as s, mergeProps as D, createCommentVNode as f, createElementVNode as m, toDisplayString as x, defineComponent as da, createBlock as w, unref as t, Transition as ci, withCtx as h, renderSlot as _a, TransitionGroup as di, ref as I, onUnmounted as ri, onMounted as Ha, computed as b, watch as ba, normalizeClass as B, createVNode as O, resolveDynamicComponent as mi, withDirectives as Ba, createTextVNode as $, reactive as wa, toRef as ga, withKeys as za, withModifiers as ia, Fragment as ja, renderList as ui, vShow as vi, nextTick as fi } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { _ as
|
|
4
|
-
import { W as
|
|
5
|
-
import { B as xi } from "./alert.
|
|
6
|
-
import { B as
|
|
3
|
+
import { _ as F } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
|
+
import { W as Aa } from "./warning-filled.BMGD0G-_.js";
|
|
5
|
+
import { B as xi } from "./alert.BYcw-u3b.js";
|
|
6
|
+
import { B as j, d as gi } from "./typography.6Oo5TOMP.js";
|
|
7
7
|
import { u as ra } from "./index.pdBj0KQU.js";
|
|
8
|
-
import { g as
|
|
8
|
+
import { g as T } from "./generate-uid.NJ8tVoha.js";
|
|
9
9
|
import { u as hi } from "./form-field.D_2g7vaP.js";
|
|
10
|
-
import { i as
|
|
10
|
+
import { i as Ua } from "./index.CWuzEfiV.js";
|
|
11
11
|
import { B as bi } from "./bin.DuHlEQBO.js";
|
|
12
12
|
import { C as wi } from "./checkmark-circle-fill._6-d40ru.js";
|
|
13
13
|
import { C as yi } from "./cross.B92GxFTY.js";
|
|
@@ -16,23 +16,23 @@ import { b as Ci } from "./tooltip.Nn3o8_vO.js";
|
|
|
16
16
|
import { B as ha } from "./button.CSp48LJt.js";
|
|
17
17
|
import { B as $i } from "./link.BLCQlEZU.js";
|
|
18
18
|
import { B as _i } from "./loading-indicator.Db794TT5.js";
|
|
19
|
-
import { F as
|
|
19
|
+
import { F as zi, E as ji } from "./field-label.D7vU2Icm.js";
|
|
20
20
|
import "../assets/file-uploader.css";
|
|
21
|
-
let
|
|
22
|
-
const
|
|
21
|
+
let Ea = 0;
|
|
22
|
+
const Ei = {
|
|
23
23
|
beforeCreate() {
|
|
24
|
-
this.uuid =
|
|
24
|
+
this.uuid = Ea.toString(), Ea += 1;
|
|
25
25
|
}
|
|
26
|
-
},
|
|
26
|
+
}, Ri = { key: 0 };
|
|
27
27
|
function Ii(a, i, o, p, n, d) {
|
|
28
|
-
return s(), g("svg",
|
|
28
|
+
return s(), g("svg", D({ 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(), g("title",
|
|
35
|
+
a.$attrs["svg-title"] ? (s(), g("title", Ri, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
36
36
|
i[0] || (i[0] = m("path", {
|
|
37
37
|
fill: "#001222",
|
|
38
38
|
d: "M2.75 12C2.75 12.6904 3.30964 13.25 4 13.25H12C12.6904 13.25 13.25 12.6904 13.25 12V10.25H14.75V12C14.75 13.5188 13.5188 14.75 12 14.75H4C2.48122 14.75 1.25 13.5188 1.25 12V10.25H2.75V12Z"
|
|
@@ -43,14 +43,14 @@ function Ii(a, i, o, p, n, d) {
|
|
|
43
43
|
}, null, -1))
|
|
44
44
|
], 16);
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const Fi = /* @__PURE__ */ F(Ei, [["render", Ii]]), Li = /* @__PURE__ */ da({
|
|
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, o) => t(
|
|
53
|
+
return (i, o) => t(Ua) ? (s(), w(ci, {
|
|
54
54
|
key: 0,
|
|
55
55
|
name: i.name,
|
|
56
56
|
mode: "out-in",
|
|
@@ -80,7 +80,7 @@ function Mi(a, i) {
|
|
|
80
80
|
}
|
|
81
81
|
return ri(() => {
|
|
82
82
|
n();
|
|
83
|
-
}),
|
|
83
|
+
}), Ha(() => {
|
|
84
84
|
n(), p = new IntersectionObserver(
|
|
85
85
|
(d) => {
|
|
86
86
|
o.value = !d[0].isIntersecting;
|
|
@@ -92,16 +92,16 @@ function Mi(a, i) {
|
|
|
92
92
|
), p.observe(a.value.$el);
|
|
93
93
|
}), o;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
97
|
-
const o = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)),
|
|
95
|
+
const Ra = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
96
|
+
function Za(a, i) {
|
|
97
|
+
const o = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), Ra.length - 1));
|
|
98
98
|
return Intl.NumberFormat(a, {
|
|
99
99
|
style: "unit",
|
|
100
|
-
unit:
|
|
100
|
+
unit: Ra[o]
|
|
101
101
|
}).format(i / 1024 ** o);
|
|
102
102
|
}
|
|
103
|
-
var S = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(S || {}),
|
|
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 || {}), ca = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(ca || {}), y = /* @__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))(y || {});
|
|
104
|
+
const Ti = [
|
|
105
105
|
"application/msword",
|
|
106
106
|
// .doc
|
|
107
107
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
@@ -121,14 +121,14 @@ const Fi = [
|
|
|
121
121
|
// .numbers
|
|
122
122
|
"text/csv"
|
|
123
123
|
// .csv
|
|
124
|
-
],
|
|
124
|
+
], Di = [
|
|
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
|
+
], Vi = [
|
|
132
132
|
"application/zip",
|
|
133
133
|
// .zip
|
|
134
134
|
"application/vnd.rar",
|
|
@@ -151,9 +151,9 @@ const Fi = [
|
|
|
151
151
|
// .cab
|
|
152
152
|
];
|
|
153
153
|
function Oi(a) {
|
|
154
|
-
return Si.includes(a.type) ? y.TABLE : a.type.startsWith("text/") ||
|
|
154
|
+
return Si.includes(a.type) ? y.TABLE : a.type.startsWith("text/") || Ti.includes(a.type) ? y.TEXT : a.type.startsWith("image/") ? y.IMAGE : a.type.startsWith("video/") ? y.VIDEO : a.type.startsWith("audio/") ? y.AUDIO : a.type === "application/pdf" ? y.PDF : Di.includes(a.type) ? y.SLIDES : Vi.includes(a.type) ? y.COMPRESSED : y.GENERIC;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function qi(a, i) {
|
|
157
157
|
if (!i)
|
|
158
158
|
return !0;
|
|
159
159
|
const o = i.split(",").map((p) => p.trim());
|
|
@@ -169,17 +169,17 @@ function Hi(a, i) {
|
|
|
169
169
|
return !0;
|
|
170
170
|
return !1;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Hi(a, i, o) {
|
|
173
173
|
const p = new FileReader(), n = a;
|
|
174
|
-
if (!
|
|
175
|
-
n.state = S.ERROR, n.errors.push(
|
|
174
|
+
if (!qi(n.data, i)) {
|
|
175
|
+
n.state = S.ERROR, n.errors.push(R.ERROR_TYPE);
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
178
|
p.onload = (d) => {
|
|
179
179
|
if (o && n.type === y.IMAGE) {
|
|
180
180
|
const l = new Blob([d.target.result], { type: n.data.type }), u = URL.createObjectURL(l), k = new Image();
|
|
181
181
|
k.onload = function() {
|
|
182
|
-
(k.width > o.width || k.height > o.height) && (n.state = S.ERROR, n.errors.push(
|
|
182
|
+
(k.width > o.width || k.height > o.height) && (n.state = S.ERROR, n.errors.push(R.ERROR_DIMENSIONS)), URL.revokeObjectURL(u);
|
|
183
183
|
}, k.onerror = function() {
|
|
184
184
|
URL.revokeObjectURL(u);
|
|
185
185
|
}, k.src = u;
|
|
@@ -189,7 +189,7 @@ function qi(a, i, o) {
|
|
|
189
189
|
}, p.onloadend = () => {
|
|
190
190
|
n.state !== S.ERROR && (n.state = S.SUCCESS), n.progress = null;
|
|
191
191
|
}, p.onerror = () => {
|
|
192
|
-
n.state = S.ERROR, n.errors.push(
|
|
192
|
+
n.state = S.ERROR, n.errors.push(R.ERROR_LOAD), n.progress = null;
|
|
193
193
|
}, p.readAsArrayBuffer(n.data);
|
|
194
194
|
}
|
|
195
195
|
let Ia = 0;
|
|
@@ -197,16 +197,16 @@ const Bi = {
|
|
|
197
197
|
beforeCreate() {
|
|
198
198
|
this.uuid = Ia.toString(), Ia += 1;
|
|
199
199
|
}
|
|
200
|
-
},
|
|
200
|
+
}, Ai = { key: 0 }, Ui = ["clip-path"], Zi = ["id"];
|
|
201
201
|
function Ni(a, i, o, p, n, d) {
|
|
202
|
-
return s(), g("svg",
|
|
202
|
+
return s(), g("svg", D({ 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(), g("title",
|
|
209
|
+
a.$attrs["svg-title"] ? (s(), g("title", Ai, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
210
210
|
m("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 Ni(a, i, o, p, n, d) {
|
|
|
214
214
|
fill: "#001222",
|
|
215
215
|
d: "M7.10655 3.02949C8.98948 1.14706 12.0441 1.14675 13.9269 3.02949C15.8095 4.91225 15.8093 7.96692 13.9269 9.84981L11.1564 12.6203L10.0958 11.5598L12.8663 8.78926C14.1629 7.49216 14.1631 5.38701 12.8663 4.09004C11.5694 2.79309 9.46424 2.79339 8.1671 4.09004L2.72667 9.53047C1.95976 10.2976 1.95963 11.5427 2.72667 12.3098C3.49372 13.0766 4.7389 13.0766 5.50597 12.3098L10.9464 6.86934C11.183 6.63224 11.1832 6.24693 10.9464 6.00996C10.7094 5.77301 10.3242 5.77331 10.087 6.00996L4.4962 11.6008L3.43565 10.5402L9.02647 4.94942C9.8494 4.12698 11.1842 4.12668 12.0069 4.94942C12.8296 5.77217 12.8293 7.107 12.0069 7.92989L6.56651 13.3703C5.21366 14.723 3.01896 14.723 1.66612 13.3703C0.313294 12.0175 0.313425 9.82283 1.66612 8.46992L7.10655 3.02949Z"
|
|
216
216
|
}, null, -1)
|
|
217
|
-
]), 8,
|
|
217
|
+
]), 8, Ui),
|
|
218
218
|
m("defs", null, [
|
|
219
219
|
m("clipPath", {
|
|
220
220
|
id: "uia-ui-assets/icons-16-attachment__a" + a.uuid
|
|
@@ -224,26 +224,26 @@ function Ni(a, i, o, p, n, d) {
|
|
|
224
224
|
height: "16",
|
|
225
225
|
fill: "#fff"
|
|
226
226
|
}, null, -1)
|
|
227
|
-
]), 8,
|
|
227
|
+
]), 8, Zi)
|
|
228
228
|
])
|
|
229
229
|
], 16);
|
|
230
230
|
}
|
|
231
|
-
const Pi = /* @__PURE__ */
|
|
232
|
-
let
|
|
233
|
-
const
|
|
231
|
+
const Pi = /* @__PURE__ */ F(Bi, [["render", Ni]]);
|
|
232
|
+
let Fa = 0;
|
|
233
|
+
const Wi = {
|
|
234
234
|
beforeCreate() {
|
|
235
|
-
this.uuid =
|
|
235
|
+
this.uuid = Fa.toString(), Fa += 1;
|
|
236
236
|
}
|
|
237
|
-
},
|
|
237
|
+
}, Gi = { key: 0 };
|
|
238
238
|
function Yi(a, i, o, p, n, d) {
|
|
239
|
-
return s(), g("svg",
|
|
239
|
+
return s(), g("svg", D({ 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(), g("title",
|
|
246
|
+
a.$attrs["svg-title"] ? (s(), g("title", Gi, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
247
247
|
i[0] || (i[0] = m("path", {
|
|
248
248
|
fill: "#001222",
|
|
249
249
|
"fill-rule": "evenodd",
|
|
@@ -252,15 +252,15 @@ function Yi(a, i, o, p, n, d) {
|
|
|
252
252
|
}, null, -1))
|
|
253
253
|
], 16);
|
|
254
254
|
}
|
|
255
|
-
const
|
|
256
|
-
let
|
|
257
|
-
const
|
|
255
|
+
const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]);
|
|
256
|
+
let La = 0;
|
|
257
|
+
const Xi = {
|
|
258
258
|
beforeCreate() {
|
|
259
|
-
this.uuid =
|
|
259
|
+
this.uuid = La.toString(), La += 1;
|
|
260
260
|
}
|
|
261
261
|
}, Ki = { key: 0 };
|
|
262
262
|
function Qi(a, i, o, p, n, d) {
|
|
263
|
-
return s(), g("svg",
|
|
263
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
264
264
|
class: "ui-assets-icons-16",
|
|
265
265
|
xmlns: "http://www.w3.org/2000/svg",
|
|
266
266
|
width: "16",
|
|
@@ -274,7 +274,7 @@ function Qi(a, i, o, p, n, d) {
|
|
|
274
274
|
}, null, -1))
|
|
275
275
|
], 16);
|
|
276
276
|
}
|
|
277
|
-
const ae = /* @__PURE__ */
|
|
277
|
+
const ae = /* @__PURE__ */ F(Xi, [["render", Qi]]);
|
|
278
278
|
let Ma = 0;
|
|
279
279
|
const ie = {
|
|
280
280
|
beforeCreate() {
|
|
@@ -282,7 +282,7 @@ const ie = {
|
|
|
282
282
|
}
|
|
283
283
|
}, ee = { key: 0 };
|
|
284
284
|
function te(a, i, o, p, n, d) {
|
|
285
|
-
return s(), g("svg",
|
|
285
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
286
286
|
class: "ui-assets-icons-16",
|
|
287
287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
288
288
|
width: "16",
|
|
@@ -304,15 +304,15 @@ function te(a, i, o, p, n, d) {
|
|
|
304
304
|
}, null, -1))
|
|
305
305
|
], 16);
|
|
306
306
|
}
|
|
307
|
-
const ne = /* @__PURE__ */
|
|
308
|
-
let
|
|
307
|
+
const ne = /* @__PURE__ */ F(ie, [["render", te]]);
|
|
308
|
+
let Ta = 0;
|
|
309
309
|
const oe = {
|
|
310
310
|
beforeCreate() {
|
|
311
|
-
this.uuid =
|
|
311
|
+
this.uuid = Ta.toString(), Ta += 1;
|
|
312
312
|
}
|
|
313
313
|
}, pe = { key: 0 };
|
|
314
314
|
function le(a, i, o, p, n, d) {
|
|
315
|
-
return s(), g("svg",
|
|
315
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
316
316
|
class: "ui-assets-icons-16",
|
|
317
317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
318
318
|
width: "16",
|
|
@@ -326,7 +326,7 @@ function le(a, i, o, p, n, d) {
|
|
|
326
326
|
}, null, -1))
|
|
327
327
|
], 16);
|
|
328
328
|
}
|
|
329
|
-
const se = /* @__PURE__ */
|
|
329
|
+
const se = /* @__PURE__ */ F(oe, [["render", le]]);
|
|
330
330
|
let Sa = 0;
|
|
331
331
|
const ce = {
|
|
332
332
|
beforeCreate() {
|
|
@@ -334,7 +334,7 @@ const ce = {
|
|
|
334
334
|
}
|
|
335
335
|
}, de = { key: 0 };
|
|
336
336
|
function re(a, i, o, p, n, d) {
|
|
337
|
-
return s(), g("svg",
|
|
337
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
338
338
|
class: "ui-assets-icons-16",
|
|
339
339
|
xmlns: "http://www.w3.org/2000/svg",
|
|
340
340
|
width: "16",
|
|
@@ -352,15 +352,15 @@ function re(a, i, o, p, n, d) {
|
|
|
352
352
|
}, null, -1))
|
|
353
353
|
], 16);
|
|
354
354
|
}
|
|
355
|
-
const me = /* @__PURE__ */
|
|
356
|
-
let
|
|
355
|
+
const me = /* @__PURE__ */ F(ce, [["render", re]]);
|
|
356
|
+
let Da = 0;
|
|
357
357
|
const ue = {
|
|
358
358
|
beforeCreate() {
|
|
359
|
-
this.uuid =
|
|
359
|
+
this.uuid = Da.toString(), Da += 1;
|
|
360
360
|
}
|
|
361
361
|
}, ve = { key: 0 }, fe = ["clip-path"], xe = ["id"];
|
|
362
362
|
function ge(a, i, o, p, n, d) {
|
|
363
|
-
return s(), g("svg",
|
|
363
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
364
364
|
class: "ui-assets-icons-16",
|
|
365
365
|
xmlns: "http://www.w3.org/2000/svg",
|
|
366
366
|
width: "16",
|
|
@@ -388,15 +388,15 @@ function ge(a, i, o, p, n, d) {
|
|
|
388
388
|
])
|
|
389
389
|
], 16);
|
|
390
390
|
}
|
|
391
|
-
const he = /* @__PURE__ */
|
|
392
|
-
let
|
|
391
|
+
const he = /* @__PURE__ */ F(ue, [["render", ge]]);
|
|
392
|
+
let Va = 0;
|
|
393
393
|
const be = {
|
|
394
394
|
beforeCreate() {
|
|
395
|
-
this.uuid =
|
|
395
|
+
this.uuid = Va.toString(), Va += 1;
|
|
396
396
|
}
|
|
397
397
|
}, we = { key: 0 };
|
|
398
398
|
function ye(a, i, o, p, n, d) {
|
|
399
|
-
return s(), g("svg",
|
|
399
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
400
400
|
class: "ui-assets-icons-16",
|
|
401
401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
402
402
|
width: "16",
|
|
@@ -418,7 +418,7 @@ function ye(a, i, o, p, n, d) {
|
|
|
418
418
|
}, null, -1))
|
|
419
419
|
], 16);
|
|
420
420
|
}
|
|
421
|
-
const ke = /* @__PURE__ */
|
|
421
|
+
const ke = /* @__PURE__ */ F(be, [["render", ye]]);
|
|
422
422
|
let Oa = 0;
|
|
423
423
|
const Ce = {
|
|
424
424
|
beforeCreate() {
|
|
@@ -426,7 +426,7 @@ const Ce = {
|
|
|
426
426
|
}
|
|
427
427
|
}, $e = { key: 0 };
|
|
428
428
|
function _e(a, i, o, p, n, d) {
|
|
429
|
-
return s(), g("svg",
|
|
429
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
430
430
|
class: "ui-assets-icons-16",
|
|
431
431
|
xmlns: "http://www.w3.org/2000/svg",
|
|
432
432
|
width: "16",
|
|
@@ -440,21 +440,21 @@ function _e(a, i, o, p, n, d) {
|
|
|
440
440
|
}, null, -1))
|
|
441
441
|
], 16);
|
|
442
442
|
}
|
|
443
|
-
const
|
|
443
|
+
const ze = /* @__PURE__ */ F(Ce, [["render", _e]]), je = {
|
|
444
444
|
[y.AUDIO]: ke,
|
|
445
445
|
[y.COMPRESSED]: se,
|
|
446
446
|
[y.GENERIC]: Pi,
|
|
447
447
|
[y.IMAGE]: me,
|
|
448
448
|
[y.PDF]: ae,
|
|
449
|
-
[y.SLIDES]:
|
|
450
|
-
[y.TABLE]:
|
|
449
|
+
[y.SLIDES]: Ji,
|
|
450
|
+
[y.TABLE]: ze,
|
|
451
451
|
[y.TEXT]: ne,
|
|
452
452
|
[y.VIDEO]: he
|
|
453
453
|
};
|
|
454
|
-
function Re(a) {
|
|
455
|
-
return ze[a.type];
|
|
456
|
-
}
|
|
457
454
|
function Ee(a) {
|
|
455
|
+
return je[a.type];
|
|
456
|
+
}
|
|
457
|
+
function Re(a) {
|
|
458
458
|
switch (a.type) {
|
|
459
459
|
case y.COMPRESSED:
|
|
460
460
|
case y.GENERIC:
|
|
@@ -479,22 +479,28 @@ const Na = {
|
|
|
479
479
|
},
|
|
480
480
|
"ja-JP": {
|
|
481
481
|
cancel: "キャンセル",
|
|
482
|
+
fileExceedsSizeLimit: "ファイルがサイズ制限を超えています",
|
|
483
|
+
fileTypeMustBe: "ファイル形式は{list}でなければなりません",
|
|
484
|
+
imageDimensionsExceedLimits: "画像のサイズが制限を超えています",
|
|
482
485
|
remove: "削除",
|
|
483
486
|
retry: "再試行"
|
|
484
487
|
},
|
|
485
488
|
"pt-BR": {
|
|
486
489
|
cancel: "Cancelar",
|
|
490
|
+
fileExceedsSizeLimit: "O arquivo excede o limite de tamanho",
|
|
491
|
+
fileTypeMustBe: "O tipo de arquivo deve ser {list}",
|
|
492
|
+
imageDimensionsExceedLimits: "As dimensões da imagem excedem os limites",
|
|
487
493
|
remove: "Remover",
|
|
488
494
|
retry: "Tentar novamente"
|
|
489
495
|
}
|
|
490
|
-
}, Ie = { class: "b-file-uploader-file-card__details" },
|
|
496
|
+
}, Ie = { class: "b-file-uploader-file-card__details" }, Fe = { class: "b-file-uploader-file-card__info" }, Le = ["id"], Me = {
|
|
491
497
|
key: 0,
|
|
492
498
|
class: "b-file-uploader-file-card__actions"
|
|
493
|
-
},
|
|
499
|
+
}, Te = {
|
|
494
500
|
name: "file-uploader-file-card",
|
|
495
501
|
i18n: { messages: Na }
|
|
496
502
|
}, Se = /* @__PURE__ */ da({
|
|
497
|
-
...
|
|
503
|
+
...Te,
|
|
498
504
|
props: {
|
|
499
505
|
file: {},
|
|
500
506
|
supportedFileTypes: { default: null },
|
|
@@ -502,25 +508,25 @@ const Na = {
|
|
|
502
508
|
},
|
|
503
509
|
emits: ["cancel", "remove", "retry"],
|
|
504
510
|
setup(a, { expose: i, emit: o }) {
|
|
505
|
-
const n = a, d = o, { t: l, locale: u } = ra({ messages: Na }), k = I(null), r = I(null),
|
|
506
|
-
"b-file-uploader-file-card--error":
|
|
511
|
+
const n = a, d = o, { t: l, locale: u } = ra({ messages: Na }), k = I(null), r = I(null), E = I(null), q = T("file-errors-section"), G = T("cancel-file-button"), A = T("remove-file-button"), Z = T("retry-file-button"), v = I(n.file.state === S.SUCCESS), ta = b(() => URL.createObjectURL(n.file.data)), L = b(() => n.file.state === S.ERROR), na = b(() => n.file.errors.includes(R.ERROR_LOAD)), Y = b(() => n.file.errors.includes(R.ERROR_SIZE)), oa = b(() => n.file.errors.includes(R.ERROR_DIMENSIONS)), pa = b(() => n.file.errors.includes(R.ERROR_TYPE)), J = b(() => n.file.state === S.LOADING), N = b(() => n.file.progress && `(${n.file.progress.toFixed(0)}%)`), X = b(() => Za(u.value, n.file.data.size)), la = I(), K = I(), Q = Mi(la, K), ma = b(() => ({
|
|
512
|
+
"b-file-uploader-file-card--error": L.value
|
|
507
513
|
})), aa = b(() => ({
|
|
508
|
-
[`b-file-uploader-file-card__icon--${
|
|
509
|
-
"b-file-uploader-file-card__icon--error":
|
|
510
|
-
})), sa = b(() =>
|
|
514
|
+
[`b-file-uploader-file-card__icon--${Re(n.file)}`]: v.value,
|
|
515
|
+
"b-file-uploader-file-card__icon--error": L.value
|
|
516
|
+
})), sa = b(() => J.value ? _i : L.value ? Aa : v.value ? Ee(n.file) : wi);
|
|
511
517
|
ba(
|
|
512
518
|
() => n.file.state,
|
|
513
519
|
(_) => {
|
|
514
520
|
if (_ === S.SUCCESS && !v.value) {
|
|
515
|
-
const
|
|
516
|
-
v.value = !0, clearTimeout(
|
|
521
|
+
const V = setTimeout(() => {
|
|
522
|
+
v.value = !0, clearTimeout(V);
|
|
517
523
|
}, 1200);
|
|
518
524
|
}
|
|
519
525
|
}
|
|
520
526
|
);
|
|
521
527
|
function ua() {
|
|
522
|
-
if (
|
|
523
|
-
|
|
528
|
+
if (E.value) {
|
|
529
|
+
E.value.$el.focus();
|
|
524
530
|
return;
|
|
525
531
|
}
|
|
526
532
|
if (k.value) {
|
|
@@ -534,13 +540,13 @@ const Na = {
|
|
|
534
540
|
}
|
|
535
541
|
return i({
|
|
536
542
|
focus: ua
|
|
537
|
-
}), (_,
|
|
543
|
+
}), (_, V) => (s(), g("div", {
|
|
538
544
|
class: B(["b-file-uploader-file-card", ma.value])
|
|
539
545
|
}, [
|
|
540
546
|
m("div", Ie, [
|
|
541
|
-
m("div",
|
|
542
|
-
O(t(
|
|
543
|
-
name: t(
|
|
547
|
+
m("div", Fe, [
|
|
548
|
+
O(t(Li), {
|
|
549
|
+
name: t(Ua) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
|
|
544
550
|
"show-file-icon": v.value
|
|
545
551
|
}, {
|
|
546
552
|
default: h(() => [
|
|
@@ -569,7 +575,7 @@ const Na = {
|
|
|
569
575
|
variant: "quiet"
|
|
570
576
|
}, {
|
|
571
577
|
default: h(() => [
|
|
572
|
-
Ba((s(), w(t(
|
|
578
|
+
Ba((s(), w(t(j), {
|
|
573
579
|
ref_key: "fileNameRef",
|
|
574
580
|
ref: la,
|
|
575
581
|
stronger: "",
|
|
@@ -586,7 +592,7 @@ const Na = {
|
|
|
586
592
|
_: 1
|
|
587
593
|
}, 8, ["download", "to"])
|
|
588
594
|
], 512),
|
|
589
|
-
_.file.progress ? (s(), w(t(
|
|
595
|
+
_.file.progress ? (s(), w(t(j), {
|
|
590
596
|
key: 0,
|
|
591
597
|
el: "span"
|
|
592
598
|
}, {
|
|
@@ -594,24 +600,24 @@ const Na = {
|
|
|
594
600
|
$(x(N.value), 1)
|
|
595
601
|
]),
|
|
596
602
|
_: 1
|
|
597
|
-
})) : _.file.data.size ? (s(), w(t(
|
|
603
|
+
})) : _.file.data.size ? (s(), w(t(j), {
|
|
598
604
|
key: 1,
|
|
599
605
|
class: "b-file-uploader-file-card__file-size",
|
|
600
606
|
"aria-hidden": "true",
|
|
601
607
|
el: "span"
|
|
602
608
|
}, {
|
|
603
609
|
default: h(() => [
|
|
604
|
-
$(x(
|
|
610
|
+
$(x(X.value), 1)
|
|
605
611
|
]),
|
|
606
612
|
_: 1
|
|
607
613
|
})) : f("", !0)
|
|
608
614
|
]),
|
|
609
615
|
Y.value || oa.value || pa.value && _.supportedFileTypes ? (s(), g("div", {
|
|
610
616
|
key: 0,
|
|
611
|
-
id: t(
|
|
617
|
+
id: t(q),
|
|
612
618
|
role: "alert"
|
|
613
619
|
}, [
|
|
614
|
-
Y.value ? (s(), w(t(
|
|
620
|
+
Y.value ? (s(), w(t(j), {
|
|
615
621
|
key: 0,
|
|
616
622
|
class: "b-file-uploader-file-card__error-message"
|
|
617
623
|
}, {
|
|
@@ -620,7 +626,7 @@ const Na = {
|
|
|
620
626
|
]),
|
|
621
627
|
_: 1
|
|
622
628
|
})) : f("", !0),
|
|
623
|
-
oa.value ? (s(), w(t(
|
|
629
|
+
oa.value ? (s(), w(t(j), {
|
|
624
630
|
key: 1,
|
|
625
631
|
class: "b-file-uploader-file-card__error-message"
|
|
626
632
|
}, {
|
|
@@ -629,7 +635,7 @@ const Na = {
|
|
|
629
635
|
]),
|
|
630
636
|
_: 1
|
|
631
637
|
})) : f("", !0),
|
|
632
|
-
pa.value && _.supportedFileTypes ? (s(), w(t(
|
|
638
|
+
pa.value && _.supportedFileTypes ? (s(), w(t(j), {
|
|
633
639
|
key: 2,
|
|
634
640
|
class: "b-file-uploader-file-card__error-message"
|
|
635
641
|
}, {
|
|
@@ -638,20 +644,20 @@ const Na = {
|
|
|
638
644
|
]),
|
|
639
645
|
_: 1
|
|
640
646
|
})) : f("", !0)
|
|
641
|
-
], 8,
|
|
647
|
+
], 8, Le)) : f("", !0)
|
|
642
648
|
]),
|
|
643
649
|
_.readonly ? f("", !0) : (s(), g("div", Me, [
|
|
644
650
|
na.value ? (s(), w(t(ha), {
|
|
645
651
|
key: 0,
|
|
646
652
|
ref_key: "retryFileButtonRef",
|
|
647
|
-
ref:
|
|
648
|
-
"aria-labelledby": `${t(
|
|
653
|
+
ref: E,
|
|
654
|
+
"aria-labelledby": `${t(q)} ${t(Z)}`,
|
|
649
655
|
variant: "tertiary",
|
|
650
|
-
onClick:
|
|
656
|
+
onClick: V[0] || (V[0] = (P) => d("retry"))
|
|
651
657
|
}, {
|
|
652
658
|
iconLeft: h(() => [
|
|
653
659
|
O(t(ki), {
|
|
654
|
-
id: t(
|
|
660
|
+
id: t(Z),
|
|
655
661
|
"svg-title": `${t(l)("retry")} - ${_.file.data.name} `
|
|
656
662
|
}, null, 8, ["id", "svg-title"])
|
|
657
663
|
]),
|
|
@@ -660,17 +666,17 @@ const Na = {
|
|
|
660
666
|
]),
|
|
661
667
|
_: 1
|
|
662
668
|
}, 8, ["aria-labelledby"])) : f("", !0),
|
|
663
|
-
|
|
669
|
+
J.value || L.value ? (s(), w(t(ha), {
|
|
664
670
|
key: 1,
|
|
665
671
|
ref_key: "cancelFileButtonRef",
|
|
666
672
|
ref: r,
|
|
667
|
-
"aria-labelledby": `${t(
|
|
673
|
+
"aria-labelledby": `${t(q)} ${t(G)}`,
|
|
668
674
|
variant: "tertiary",
|
|
669
|
-
onClick:
|
|
675
|
+
onClick: V[1] || (V[1] = (P) => d("cancel"))
|
|
670
676
|
}, {
|
|
671
677
|
iconLeft: h(() => [
|
|
672
678
|
O(t(yi), {
|
|
673
|
-
id: t(
|
|
679
|
+
id: t(G),
|
|
674
680
|
"svg-title": `${t(l)("cancel")} - ${_.file.data.name}`
|
|
675
681
|
}, null, 8, ["id", "svg-title"])
|
|
676
682
|
]),
|
|
@@ -679,13 +685,13 @@ const Na = {
|
|
|
679
685
|
key: 2,
|
|
680
686
|
ref_key: "removeFileButtonRef",
|
|
681
687
|
ref: k,
|
|
682
|
-
"aria-labelledby": `${t(
|
|
688
|
+
"aria-labelledby": `${t(q)} ${t(A)}`,
|
|
683
689
|
variant: "tertiary",
|
|
684
|
-
onClick:
|
|
690
|
+
onClick: V[2] || (V[2] = (P) => d("remove"))
|
|
685
691
|
}, {
|
|
686
692
|
iconLeft: h(() => [
|
|
687
693
|
O(t(bi), {
|
|
688
|
-
id: t(
|
|
694
|
+
id: t(A),
|
|
689
695
|
"svg-title": `${t(l)("remove")} - ${_.file.data.name}`
|
|
690
696
|
}, null, 8, ["id", "svg-title"])
|
|
691
697
|
]),
|
|
@@ -694,7 +700,7 @@ const Na = {
|
|
|
694
700
|
]))
|
|
695
701
|
], 2));
|
|
696
702
|
}
|
|
697
|
-
}),
|
|
703
|
+
}), De = /* @__PURE__ */ F(Se, [["__scopeId", "data-v-7357113e"]]), Pa = {
|
|
698
704
|
"en-US": {
|
|
699
705
|
maxFileSize: "Max file size: {size}",
|
|
700
706
|
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
@@ -702,11 +708,27 @@ const Na = {
|
|
|
702
708
|
maxImageWidth: "Max image width: {width}px",
|
|
703
709
|
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
704
710
|
supportedFileTypes: "Supported file types: {list}"
|
|
711
|
+
},
|
|
712
|
+
"ja-JP": {
|
|
713
|
+
maxFileSize: "最大ファイルサイズ:{size}",
|
|
714
|
+
maxImageDimensions: "最大画像サイズ: {width} × {height}px",
|
|
715
|
+
maxImageHeight: "最大画像高さ: {height}px",
|
|
716
|
+
maxImageWidth: "最大画像幅: {width}px",
|
|
717
|
+
maxUpload: "最大アップロード: {count}件のファイル |最大アップロード: {count}件のファイル",
|
|
718
|
+
supportedFileTypes: "対応ファイル形式: {list}"
|
|
719
|
+
},
|
|
720
|
+
"pt-BR": {
|
|
721
|
+
maxFileSize: "Tamanho máx. do arquivo: {size}",
|
|
722
|
+
maxImageDimensions: "Dimensões máximas da imagem: {width} × {height}px",
|
|
723
|
+
maxImageHeight: "Altura máx. da imagem: {height}px",
|
|
724
|
+
maxImageWidth: "Largura máxima da imagem: {width}px",
|
|
725
|
+
maxUpload: "Máximo de upload: {count} arquivo | Máximo de upload: {count} arquivos",
|
|
726
|
+
supportedFileTypes: "Tipos de arquivo aceitos: {list}"
|
|
705
727
|
}
|
|
706
|
-
},
|
|
728
|
+
}, Ve = {
|
|
707
729
|
i18n: { messages: Pa }
|
|
708
730
|
}, Oe = /* @__PURE__ */ da({
|
|
709
|
-
...
|
|
731
|
+
...Ve,
|
|
710
732
|
__name: "file-uploader-restrictions",
|
|
711
733
|
props: {
|
|
712
734
|
condensed: { type: Boolean, default: null },
|
|
@@ -730,14 +752,14 @@ const Na = {
|
|
|
730
752
|
if (!i.maxDimensions)
|
|
731
753
|
return null;
|
|
732
754
|
const {
|
|
733
|
-
value: { width: r, height:
|
|
755
|
+
value: { width: r, height: E }
|
|
734
756
|
} = i.maxDimensions;
|
|
735
|
-
return r &&
|
|
757
|
+
return r && E ? o("maxImageDimensions", { width: n(r), height: n(E) }) : r ? o("maxImageWidth", { width: n(r) }) : E ? o("maxImageHeight", { height: n(E) }) : null;
|
|
736
758
|
});
|
|
737
|
-
return (r,
|
|
759
|
+
return (r, E) => (s(), g("div", {
|
|
738
760
|
class: B(["b-file-uploader-restrictions", l.value])
|
|
739
761
|
}, [
|
|
740
|
-
r.supportedFileTypes ? (s(), w(t(
|
|
762
|
+
r.supportedFileTypes ? (s(), w(t(j), {
|
|
741
763
|
key: 0,
|
|
742
764
|
class: B(u(r.supportedFileTypes.error))
|
|
743
765
|
}, {
|
|
@@ -746,16 +768,16 @@ const Na = {
|
|
|
746
768
|
]),
|
|
747
769
|
_: 1
|
|
748
770
|
}, 8, ["class"])) : f("", !0),
|
|
749
|
-
r.maxSize ? (s(), w(t(
|
|
771
|
+
r.maxSize ? (s(), w(t(j), {
|
|
750
772
|
key: 1,
|
|
751
773
|
class: B(u(r.maxSize.error))
|
|
752
774
|
}, {
|
|
753
775
|
default: h(() => [
|
|
754
|
-
$(x(t(o)("maxFileSize", { size: t(
|
|
776
|
+
$(x(t(o)("maxFileSize", { size: t(Za)(t(d), r.maxSize.value) })), 1)
|
|
755
777
|
]),
|
|
756
778
|
_: 1
|
|
757
779
|
}, 8, ["class"])) : f("", !0),
|
|
758
|
-
r.maxDimensions ? (s(), w(t(
|
|
780
|
+
r.maxDimensions ? (s(), w(t(j), {
|
|
759
781
|
key: 2,
|
|
760
782
|
class: B(u(r.maxDimensions.error))
|
|
761
783
|
}, {
|
|
@@ -764,7 +786,7 @@ const Na = {
|
|
|
764
786
|
]),
|
|
765
787
|
_: 1
|
|
766
788
|
}, 8, ["class"])) : f("", !0),
|
|
767
|
-
r.maxCount ? (s(), w(t(
|
|
789
|
+
r.maxCount ? (s(), w(t(j), {
|
|
768
790
|
key: 3,
|
|
769
791
|
class: B(u(r.maxCount.error))
|
|
770
792
|
}, {
|
|
@@ -775,7 +797,7 @@ const Na = {
|
|
|
775
797
|
}, 8, ["class"])) : f("", !0)
|
|
776
798
|
], 2));
|
|
777
799
|
}
|
|
778
|
-
}),
|
|
800
|
+
}), qa = /* @__PURE__ */ F(Oe, [["__scopeId", "data-v-6ad327db"]]), Wa = {
|
|
779
801
|
"application/prs.cww": ["cww"],
|
|
780
802
|
"application/prs.xsf+xml": ["xsf"],
|
|
781
803
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1474,8 +1496,8 @@ const Na = {
|
|
|
1474
1496
|
"video/x-smv": ["smv"],
|
|
1475
1497
|
"x-conference/x-cooltalk": ["ice"]
|
|
1476
1498
|
};
|
|
1477
|
-
Object.freeze(
|
|
1478
|
-
const
|
|
1499
|
+
Object.freeze(Wa);
|
|
1500
|
+
const Ga = {
|
|
1479
1501
|
"application/andrew-inset": ["ez"],
|
|
1480
1502
|
"application/appinstaller": ["appinstaller"],
|
|
1481
1503
|
"application/applixware": ["aw"],
|
|
@@ -1827,31 +1849,31 @@ const Wa = {
|
|
|
1827
1849
|
"video/quicktime": ["qt", "mov"],
|
|
1828
1850
|
"video/webm": ["webm"]
|
|
1829
1851
|
};
|
|
1830
|
-
Object.freeze(
|
|
1852
|
+
Object.freeze(Ga);
|
|
1831
1853
|
var M = function(a, i, o, p) {
|
|
1832
1854
|
if (o === "a" && !p) throw new TypeError("Private accessor was defined without a getter");
|
|
1833
1855
|
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");
|
|
1834
1856
|
return o === "m" ? p : o === "a" ? p.call(a) : p ? p.value : i.get(a);
|
|
1835
|
-
},
|
|
1836
|
-
class
|
|
1857
|
+
}, W, ea, U;
|
|
1858
|
+
class qe {
|
|
1837
1859
|
constructor(...i) {
|
|
1838
|
-
|
|
1860
|
+
W.set(this, /* @__PURE__ */ new Map()), ea.set(this, /* @__PURE__ */ new Map()), U.set(this, /* @__PURE__ */ new Map());
|
|
1839
1861
|
for (const o of i)
|
|
1840
1862
|
this.define(o);
|
|
1841
1863
|
}
|
|
1842
1864
|
define(i, o = !1) {
|
|
1843
1865
|
for (let [p, n] of Object.entries(i)) {
|
|
1844
|
-
p = p.toLowerCase(), n = n.map((u) => u.toLowerCase()), M(this,
|
|
1845
|
-
const d = M(this,
|
|
1866
|
+
p = p.toLowerCase(), n = n.map((u) => u.toLowerCase()), M(this, U, "f").has(p) || M(this, U, "f").set(p, /* @__PURE__ */ new Set());
|
|
1867
|
+
const d = M(this, U, "f").get(p);
|
|
1846
1868
|
let l = !0;
|
|
1847
1869
|
for (let u of n) {
|
|
1848
1870
|
const k = u.startsWith("*");
|
|
1849
1871
|
if (u = k ? u.slice(1) : u, d == null || d.add(u), l && M(this, ea, "f").set(p, u), l = !1, k)
|
|
1850
1872
|
continue;
|
|
1851
|
-
const r = M(this,
|
|
1873
|
+
const r = M(this, W, "f").get(u);
|
|
1852
1874
|
if (r && r != p && !o)
|
|
1853
1875
|
throw new Error(`"${p} -> ${u}" conflicts with "${r} -> ${u}". Pass \`force=true\` to override this definition.`);
|
|
1854
|
-
M(this,
|
|
1876
|
+
M(this, W, "f").set(u, p);
|
|
1855
1877
|
}
|
|
1856
1878
|
}
|
|
1857
1879
|
return this;
|
|
@@ -1860,32 +1882,32 @@ class He {
|
|
|
1860
1882
|
if (typeof i != "string")
|
|
1861
1883
|
return null;
|
|
1862
1884
|
const o = i.replace(/^.*[/\\]/, "").toLowerCase(), p = o.replace(/^.*\./, "").toLowerCase(), n = o.length < i.length;
|
|
1863
|
-
return !(p.length < o.length - 1) && n ? null : M(this,
|
|
1885
|
+
return !(p.length < o.length - 1) && n ? null : M(this, W, "f").get(p) ?? null;
|
|
1864
1886
|
}
|
|
1865
1887
|
getExtension(i) {
|
|
1866
1888
|
var o;
|
|
1867
1889
|
return typeof i != "string" ? null : (i = (o = i == null ? void 0 : i.split) == null ? void 0 : o.call(i, ";")[0], (i && M(this, ea, "f").get(i.trim().toLowerCase())) ?? null);
|
|
1868
1890
|
}
|
|
1869
1891
|
getAllExtensions(i) {
|
|
1870
|
-
return typeof i != "string" ? null : M(this,
|
|
1892
|
+
return typeof i != "string" ? null : M(this, U, "f").get(i.toLowerCase()) ?? null;
|
|
1871
1893
|
}
|
|
1872
1894
|
_freeze() {
|
|
1873
1895
|
this.define = () => {
|
|
1874
1896
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
1875
1897
|
}, Object.freeze(this);
|
|
1876
|
-
for (const i of M(this,
|
|
1898
|
+
for (const i of M(this, U, "f").values())
|
|
1877
1899
|
Object.freeze(i);
|
|
1878
1900
|
return this;
|
|
1879
1901
|
}
|
|
1880
1902
|
_getTestState() {
|
|
1881
1903
|
return {
|
|
1882
|
-
types: M(this,
|
|
1904
|
+
types: M(this, W, "f"),
|
|
1883
1905
|
extensions: M(this, ea, "f")
|
|
1884
1906
|
};
|
|
1885
1907
|
}
|
|
1886
1908
|
}
|
|
1887
|
-
|
|
1888
|
-
const Ya = new
|
|
1909
|
+
W = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap();
|
|
1910
|
+
const Ya = new qe(Ga, Wa)._freeze(), ya = {
|
|
1889
1911
|
"en-US": {
|
|
1890
1912
|
audioFiles: "audio files",
|
|
1891
1913
|
browseFiles: "Browse files",
|
|
@@ -1897,9 +1919,33 @@ const Ya = new He(Wa, Ga)._freeze(), ya = {
|
|
|
1897
1919
|
tooManyFiles: "Too many files",
|
|
1898
1920
|
videoFiles: "video files",
|
|
1899
1921
|
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
1922
|
+
},
|
|
1923
|
+
"ja-JP": {
|
|
1924
|
+
audioFiles: "オーディオファイル",
|
|
1925
|
+
browseFiles: "ファイルを参照",
|
|
1926
|
+
dropArea: "ドロップエリア",
|
|
1927
|
+
dropFiles: "ファイルをドロップしてアップロード | ファイルをドロップしてアップロード",
|
|
1928
|
+
fileExceedsSizeLimit: "ファイルがサイズ制限を超えています",
|
|
1929
|
+
imageFiles: "画像ファイル",
|
|
1930
|
+
noFilesUploaded: "ファイルはアップロードされていません",
|
|
1931
|
+
tooManyFiles: "ファイルが多すぎます",
|
|
1932
|
+
videoFiles: "ビデオファイル",
|
|
1933
|
+
youHaveExceededTheMaximum: "ファイル{count}件の最大制限を超えました。続行する前にいくつかのファイルを削除してください。"
|
|
1934
|
+
},
|
|
1935
|
+
"pt-BR": {
|
|
1936
|
+
audioFiles: "arquivos de áudio",
|
|
1937
|
+
browseFiles: "Procurar arquivos",
|
|
1938
|
+
dropArea: "Área de soltar",
|
|
1939
|
+
dropFiles: "Soltar arquivo para upload | Soltar arquivos para upload",
|
|
1940
|
+
fileExceedsSizeLimit: "O arquivo excede o limite de tamanho",
|
|
1941
|
+
imageFiles: "arquivos de imagem",
|
|
1942
|
+
noFilesUploaded: "Nenhum arquivo carregado",
|
|
1943
|
+
tooManyFiles: "Muitos arquivos",
|
|
1944
|
+
videoFiles: "arquivos de vídeo",
|
|
1945
|
+
youHaveExceededTheMaximum: "Você excedeu o limite máximo de {count} arquivos. Retire alguns arquivos antes de prosseguir."
|
|
1900
1946
|
}
|
|
1901
1947
|
};
|
|
1902
|
-
function
|
|
1948
|
+
function He(a) {
|
|
1903
1949
|
return a.includes("/") ? `.${Ya.getExtension(a).toUpperCase()}` : a.toUpperCase();
|
|
1904
1950
|
}
|
|
1905
1951
|
function Be(a) {
|
|
@@ -1916,16 +1962,16 @@ function Be(a) {
|
|
|
1916
1962
|
case "video/*":
|
|
1917
1963
|
return o("videoFiles");
|
|
1918
1964
|
default:
|
|
1919
|
-
return
|
|
1965
|
+
return He(d);
|
|
1920
1966
|
}
|
|
1921
1967
|
})
|
|
1922
1968
|
) : null;
|
|
1923
1969
|
}) };
|
|
1924
1970
|
}
|
|
1925
|
-
function
|
|
1971
|
+
function Ae(a) {
|
|
1926
1972
|
return Ya.getType(a) ?? a;
|
|
1927
1973
|
}
|
|
1928
|
-
function
|
|
1974
|
+
function Ue({ maxCount: a, accept: i }) {
|
|
1929
1975
|
const o = wa({
|
|
1930
1976
|
invalidTypes: !1,
|
|
1931
1977
|
partiallyInvalidTypes: !1,
|
|
@@ -1933,7 +1979,7 @@ function Ae({ maxCount: a, accept: i }) {
|
|
|
1933
1979
|
}), p = wa({
|
|
1934
1980
|
dragging: !1,
|
|
1935
1981
|
error: !1
|
|
1936
|
-
}), n = b(() => i.value ? i.value.split(",").map((k) =>
|
|
1982
|
+
}), n = b(() => i.value ? i.value.split(",").map((k) => Ae(k.trim().toLocaleLowerCase())) : void 0);
|
|
1937
1983
|
function d() {
|
|
1938
1984
|
p.dragging = !1, p.error = !1, o.invalidTypes = !1, o.partiallyInvalidTypes = !1, o.maxCountOverflow = !1;
|
|
1939
1985
|
}
|
|
@@ -1941,8 +1987,8 @@ function Ae({ maxCount: a, accept: i }) {
|
|
|
1941
1987
|
if (p.dragging = !0, (!k.dataTransfer.types.includes("Files") || u > a.value) && (o.maxCountOverflow = !0, p.error = !0), !n.value)
|
|
1942
1988
|
return;
|
|
1943
1989
|
let r = 0;
|
|
1944
|
-
for (const
|
|
1945
|
-
n.value.includes(
|
|
1990
|
+
for (const E of k.dataTransfer.items)
|
|
1991
|
+
n.value.includes(E.type) && r++;
|
|
1946
1992
|
if (r === 0) {
|
|
1947
1993
|
p.error = !0, o.invalidTypes = !0;
|
|
1948
1994
|
return;
|
|
@@ -1956,13 +2002,13 @@ function Ae({ maxCount: a, accept: i }) {
|
|
|
1956
2002
|
onDragEnterValidations: l
|
|
1957
2003
|
};
|
|
1958
2004
|
}
|
|
1959
|
-
const
|
|
2005
|
+
const Ze = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-labelledby", "tabindex"], We = {
|
|
1960
2006
|
class: "b-file-uploader__icon",
|
|
1961
2007
|
"aria-hidden": "true"
|
|
1962
|
-
},
|
|
2008
|
+
}, Ge = { class: "b-file-uploader__files" }, Ye = {
|
|
1963
2009
|
model: { prop: "modelValue" },
|
|
1964
2010
|
i18n: { messages: ya }
|
|
1965
|
-
},
|
|
2011
|
+
}, Je = /* @__PURE__ */ da({
|
|
1966
2012
|
...Ye,
|
|
1967
2013
|
__name: "file-uploader",
|
|
1968
2014
|
props: {
|
|
@@ -1988,17 +2034,17 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
1988
2034
|
function k(e) {
|
|
1989
2035
|
return !!e && typeof e.length == "number" && typeof e.item == "function";
|
|
1990
2036
|
}
|
|
1991
|
-
|
|
2037
|
+
Ha(() => {
|
|
1992
2038
|
k(l.modelValue) || gi(
|
|
1993
2039
|
"BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
|
|
1994
2040
|
"Use FileList instead.",
|
|
1995
2041
|
"2.0.0"
|
|
1996
2042
|
);
|
|
1997
2043
|
});
|
|
1998
|
-
const { supportedFileTypeList: r } = Be(ga(l, "accept")),
|
|
1999
|
-
const e = l.condensed ? "" : `${
|
|
2000
|
-
return `${e} ${c} ${C} ${
|
|
2001
|
-
}), { dragState:
|
|
2044
|
+
const { supportedFileTypeList: r } = Be(ga(l, "accept")), E = T("browse-button"), q = T("custom-text"), G = T("drop-files-text"), A = T("comma-text"), Z = T("file-uploader-restrictions"), v = I(null), ta = I([]), L = I(null), na = I(null), Y = T("input"), oa = T("input-error"), pa = b(() => {
|
|
2045
|
+
const e = l.condensed ? "" : `${G} ${A}`, c = l.description ? `${q} ${A}` : "", C = `${Z} ${A}`;
|
|
2046
|
+
return `${e} ${c} ${C} ${E}`;
|
|
2047
|
+
}), { dragState: J, dragErrors: N, resetDragState: X, onDragEnterValidations: la } = Ue({
|
|
2002
2048
|
accept: ga(l, "accept"),
|
|
2003
2049
|
maxCount: ga(l, "maxCount")
|
|
2004
2050
|
}), K = b(() => {
|
|
@@ -2012,20 +2058,20 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2012
2058
|
} : null,
|
|
2013
2059
|
maxDimensions: l.maxDimensions ? {
|
|
2014
2060
|
value: l.maxDimensions,
|
|
2015
|
-
error: (e = v.value) == null ? void 0 : e.some((
|
|
2061
|
+
error: (e = v.value) == null ? void 0 : e.some((z) => z.errors.includes(R.ERROR_DIMENSIONS))
|
|
2016
2062
|
} : null,
|
|
2017
2063
|
maxSize: l.maxSize ? {
|
|
2018
2064
|
value: l.maxSize,
|
|
2019
|
-
error: (c = v.value) == null ? void 0 : c.some((
|
|
2065
|
+
error: (c = v.value) == null ? void 0 : c.some((z) => z.errors.includes(R.ERROR_SIZE))
|
|
2020
2066
|
} : null,
|
|
2021
2067
|
supportedFileTypes: r.value ? {
|
|
2022
2068
|
value: r.value,
|
|
2023
|
-
error: N.invalidTypes || N.partiallyInvalidTypes || ((C = v.value) == null ? void 0 : C.some((
|
|
2069
|
+
error: N.invalidTypes || N.partiallyInvalidTypes || ((C = v.value) == null ? void 0 : C.some((z) => z.errors.includes(R.ERROR_TYPE)))
|
|
2024
2070
|
} : null
|
|
2025
2071
|
};
|
|
2026
2072
|
}), Q = I(), ma = b(() => ({
|
|
2027
2073
|
[`b-file-uploader--${ca.DISABLED}`]: l.disabled,
|
|
2028
|
-
[`b-file-uploader--${ca.DRAG_OVER}`]:
|
|
2074
|
+
[`b-file-uploader--${ca.DRAG_OVER}`]: J.dragging,
|
|
2029
2075
|
[`b-file-uploader--${ca.ERROR}`]: P.value,
|
|
2030
2076
|
"b-file-uploader--condensed": l.condensed
|
|
2031
2077
|
})), aa = b(() => l.maxCount > 1), sa = b(() => {
|
|
@@ -2037,7 +2083,7 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2037
2083
|
}), _ = (e) => (c) => {
|
|
2038
2084
|
ta.value[e] = c;
|
|
2039
2085
|
};
|
|
2040
|
-
function
|
|
2086
|
+
function V(e) {
|
|
2041
2087
|
if (e) {
|
|
2042
2088
|
ni(e), oi(e);
|
|
2043
2089
|
const c = pi(e);
|
|
@@ -2045,14 +2091,14 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2045
2091
|
} else
|
|
2046
2092
|
d("change", void 0), u(void 0);
|
|
2047
2093
|
}
|
|
2048
|
-
const P = b(() => !!l.errorMessage ||
|
|
2094
|
+
const P = b(() => !!l.errorMessage || J.error), ka = b(() => {
|
|
2049
2095
|
var e;
|
|
2050
2096
|
return ((e = v.value) == null ? void 0 : e.length) > l.maxCount;
|
|
2051
|
-
}),
|
|
2097
|
+
}), Ja = I(!1), Xa = b(() => {
|
|
2052
2098
|
var e;
|
|
2053
2099
|
return (e = v.value) == null ? void 0 : e.some((c) => c.state === "error");
|
|
2054
2100
|
});
|
|
2055
|
-
ba(
|
|
2101
|
+
ba(Xa, (e) => {
|
|
2056
2102
|
ua.value || d("error:upload", e);
|
|
2057
2103
|
});
|
|
2058
2104
|
async function va() {
|
|
@@ -2064,18 +2110,18 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2064
2110
|
na.value.focus();
|
|
2065
2111
|
}
|
|
2066
2112
|
async function Ca(e) {
|
|
2067
|
-
v.value = v.value.filter(({ id: c }) => c !== e.id), await va(),
|
|
2113
|
+
v.value = v.value.filter(({ id: c }) => c !== e.id), await va(), V(v.value);
|
|
2068
2114
|
}
|
|
2069
2115
|
function fa(e) {
|
|
2070
2116
|
const c = wa({
|
|
2071
|
-
id:
|
|
2117
|
+
id: T("file"),
|
|
2072
2118
|
data: e,
|
|
2073
2119
|
errors: [],
|
|
2074
2120
|
progress: null,
|
|
2075
2121
|
state: S.LOADING,
|
|
2076
2122
|
type: Oi(e)
|
|
2077
2123
|
});
|
|
2078
|
-
return
|
|
2124
|
+
return Hi(c, l.accept, l.maxDimensions), c;
|
|
2079
2125
|
}
|
|
2080
2126
|
function Ka(e) {
|
|
2081
2127
|
var c;
|
|
@@ -2083,73 +2129,73 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2083
2129
|
}
|
|
2084
2130
|
async function $a(e) {
|
|
2085
2131
|
if (l.maxCount === 1 && e.length > l.maxCount) {
|
|
2086
|
-
xa(),
|
|
2132
|
+
xa(), X();
|
|
2087
2133
|
return;
|
|
2088
2134
|
}
|
|
2089
|
-
aa.value ? v.value = [...v.value || [], ...Array.from(e).map((c) => fa(c))] : (v.value = [fa(e[0])], await va()),
|
|
2135
|
+
aa.value ? v.value = [...v.value || [], ...Array.from(e).map((c) => fa(c))] : (v.value = [fa(e[0])], await va()), V(v.value);
|
|
2090
2136
|
}
|
|
2091
2137
|
function Qa(e) {
|
|
2092
|
-
var C,
|
|
2138
|
+
var C, z;
|
|
2093
2139
|
if (l.disabled)
|
|
2094
2140
|
return;
|
|
2095
2141
|
Q.value = e.target;
|
|
2096
|
-
const c = (((C = e.dataTransfer.items) == null ? void 0 : C.length) ?? 0) + (((
|
|
2142
|
+
const c = (((C = e.dataTransfer.items) == null ? void 0 : C.length) ?? 0) + (((z = v.value) == null ? void 0 : z.length) ?? 0);
|
|
2097
2143
|
la(c, e);
|
|
2098
2144
|
}
|
|
2099
2145
|
function xa() {
|
|
2100
2146
|
Q.value = null;
|
|
2101
2147
|
}
|
|
2102
2148
|
function ai(e) {
|
|
2103
|
-
Q.value === e.target && (xa(),
|
|
2149
|
+
Q.value === e.target && (xa(), X());
|
|
2104
2150
|
}
|
|
2105
2151
|
function ii(e) {
|
|
2106
2152
|
e.preventDefault(), l.disabled && (e.dataTransfer.dropEffect = "none");
|
|
2107
2153
|
}
|
|
2108
2154
|
async function ei(e) {
|
|
2109
2155
|
var c;
|
|
2110
|
-
l.disabled || (!N.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) && $a(e.dataTransfer.files), xa(),
|
|
2156
|
+
l.disabled || (!N.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) && $a(e.dataTransfer.files), xa(), X());
|
|
2111
2157
|
}
|
|
2112
2158
|
async function ti() {
|
|
2113
2159
|
var e;
|
|
2114
|
-
(e =
|
|
2160
|
+
(e = L.value.files) != null && e.length && $a(L.value.files), L.value.value = "", await va();
|
|
2115
2161
|
}
|
|
2116
2162
|
ba(
|
|
2117
2163
|
() => l.modelValue,
|
|
2118
2164
|
(e) => {
|
|
2119
2165
|
if (e && k(e)) {
|
|
2120
2166
|
const C = Array.from(e);
|
|
2121
|
-
v.value = C.map((
|
|
2167
|
+
v.value = C.map((z) => fa(z));
|
|
2122
2168
|
} else !e && v.value && (v.value = null);
|
|
2123
2169
|
},
|
|
2124
2170
|
{ immediate: !0 }
|
|
2125
2171
|
);
|
|
2126
2172
|
function ni(e) {
|
|
2127
2173
|
const c = l.maxCount && e.length <= l.maxCount;
|
|
2128
|
-
|
|
2174
|
+
Ja.value = !c;
|
|
2129
2175
|
}
|
|
2130
2176
|
function oi(e) {
|
|
2131
2177
|
l.maxSize && e.forEach((c) => {
|
|
2132
2178
|
const C = c;
|
|
2133
|
-
C.data.size > l.maxSize && (C.state = S.ERROR, C.errors.push(
|
|
2179
|
+
C.data.size > l.maxSize && (C.state = S.ERROR, C.errors.push(R.ERROR_SIZE));
|
|
2134
2180
|
});
|
|
2135
2181
|
}
|
|
2136
2182
|
function pi(e) {
|
|
2137
2183
|
const c = e.filter(
|
|
2138
|
-
({ errors: C }) => !C.includes(
|
|
2184
|
+
({ errors: C }) => !C.includes(R.ERROR_LOAD) && !C.includes(R.ERROR_SIZE)
|
|
2139
2185
|
);
|
|
2140
2186
|
if (c.length) {
|
|
2141
2187
|
const C = new DataTransfer();
|
|
2142
|
-
return c.forEach(({ data:
|
|
2143
|
-
C.items.add(
|
|
2188
|
+
return c.forEach(({ data: z, id: H }) => {
|
|
2189
|
+
C.items.add(z);
|
|
2144
2190
|
}), C.files;
|
|
2145
2191
|
}
|
|
2146
2192
|
}
|
|
2147
2193
|
return (e, c) => {
|
|
2148
|
-
var C,
|
|
2194
|
+
var C, z;
|
|
2149
2195
|
return s(), g("div", {
|
|
2150
2196
|
class: B(["b-file-uploader", ma.value])
|
|
2151
2197
|
}, [
|
|
2152
|
-
O(t(
|
|
2198
|
+
O(t(zi), {
|
|
2153
2199
|
class: "b-file-uploader__label",
|
|
2154
2200
|
for: t(Y),
|
|
2155
2201
|
label: e.label,
|
|
@@ -2160,7 +2206,7 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2160
2206
|
m("input", {
|
|
2161
2207
|
id: t(Y),
|
|
2162
2208
|
ref_key: "inputRef",
|
|
2163
|
-
ref:
|
|
2209
|
+
ref: L,
|
|
2164
2210
|
"aria-hidden": "true",
|
|
2165
2211
|
type: "file",
|
|
2166
2212
|
tabindex: "-1",
|
|
@@ -2171,9 +2217,9 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2171
2217
|
multiple: aa.value,
|
|
2172
2218
|
onChange: ti,
|
|
2173
2219
|
onClick: Ka
|
|
2174
|
-
}, null, 40,
|
|
2220
|
+
}, null, 40, Ze),
|
|
2175
2221
|
m("span", {
|
|
2176
|
-
id: t(
|
|
2222
|
+
id: t(A),
|
|
2177
2223
|
"aria-hidden": "true",
|
|
2178
2224
|
class: "b-file-uploader__invisible-comma"
|
|
2179
2225
|
}, " , ", 8, Ne),
|
|
@@ -2185,22 +2231,22 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2185
2231
|
class: "b-file-uploader__area",
|
|
2186
2232
|
role: "button",
|
|
2187
2233
|
tabindex: e.disabled ? -1 : 0,
|
|
2188
|
-
onClick: c[0] || (c[0] = (
|
|
2234
|
+
onClick: c[0] || (c[0] = (H) => L.value.click()),
|
|
2189
2235
|
onDragenter: ia(Qa, ["stop", "prevent"]),
|
|
2190
2236
|
onDragleave: ia(ai, ["stop", "prevent"]),
|
|
2191
2237
|
onDrop: ia(ei, ["stop", "prevent"]),
|
|
2192
2238
|
onDragover: ii,
|
|
2193
2239
|
onKeydownCapture: [
|
|
2194
|
-
c[1] || (c[1] =
|
|
2195
|
-
c[2] || (c[2] =
|
|
2240
|
+
c[1] || (c[1] = za(ia((H) => L.value.click(), ["prevent"]), ["enter"])),
|
|
2241
|
+
c[2] || (c[2] = za(ia((H) => L.value.click(), ["prevent"]), ["space"]))
|
|
2196
2242
|
]
|
|
2197
2243
|
}, [
|
|
2198
|
-
m("div",
|
|
2199
|
-
P.value ? (s(), w(t(
|
|
2244
|
+
m("div", We, [
|
|
2245
|
+
P.value ? (s(), w(t(Aa), { key: 0 })) : (s(), w(t(Fi), { key: 1 }))
|
|
2200
2246
|
]),
|
|
2201
|
-
e.condensed ? f("", !0) : (s(), g(
|
|
2202
|
-
O(t(
|
|
2203
|
-
id: t(
|
|
2247
|
+
e.condensed ? f("", !0) : (s(), g(ja, { key: 0 }, [
|
|
2248
|
+
O(t(j), {
|
|
2249
|
+
id: t(G),
|
|
2204
2250
|
el: "span",
|
|
2205
2251
|
strongest: "",
|
|
2206
2252
|
class: "b-file-uploader__title"
|
|
@@ -2210,9 +2256,9 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2210
2256
|
]),
|
|
2211
2257
|
_: 1
|
|
2212
2258
|
}, 8, ["id"]),
|
|
2213
|
-
e.description ? (s(), w(t(
|
|
2259
|
+
e.description ? (s(), w(t(j), {
|
|
2214
2260
|
key: 0,
|
|
2215
|
-
id: t(
|
|
2261
|
+
id: t(q),
|
|
2216
2262
|
el: "span",
|
|
2217
2263
|
class: "b-file-uploader__description"
|
|
2218
2264
|
}, {
|
|
@@ -2221,10 +2267,10 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2221
2267
|
]),
|
|
2222
2268
|
_: 1
|
|
2223
2269
|
}, 8, ["id"])) : f("", !0),
|
|
2224
|
-
O(t(
|
|
2270
|
+
O(t(qa), D(K.value, { id: t(Z) }), null, 16, ["id"])
|
|
2225
2271
|
], 64)),
|
|
2226
|
-
O(t(
|
|
2227
|
-
id: t(
|
|
2272
|
+
O(t(j), {
|
|
2273
|
+
id: t(E),
|
|
2228
2274
|
stronger: "",
|
|
2229
2275
|
class: "b-file-uploader__button"
|
|
2230
2276
|
}, {
|
|
@@ -2234,15 +2280,15 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2234
2280
|
_: 1
|
|
2235
2281
|
}, 8, ["id"])
|
|
2236
2282
|
], 40, Pe)),
|
|
2237
|
-
P.value && e.errorMessage ? (s(), w(t(
|
|
2283
|
+
P.value && e.errorMessage ? (s(), w(t(ji), {
|
|
2238
2284
|
key: 1,
|
|
2239
2285
|
id: t(oa),
|
|
2240
2286
|
"error-message": e.errorMessage,
|
|
2241
2287
|
class: "b-file-uploader__error-message"
|
|
2242
2288
|
}, null, 8, ["id", "error-message"])) : f("", !0),
|
|
2243
|
-
e.condensed && e.description ? (s(), w(t(
|
|
2289
|
+
e.condensed && e.description ? (s(), w(t(j), {
|
|
2244
2290
|
key: 2,
|
|
2245
|
-
id: t(
|
|
2291
|
+
id: t(q),
|
|
2246
2292
|
"aria-hidden": "true",
|
|
2247
2293
|
el: "span",
|
|
2248
2294
|
class: "b-file-uploader__description b-file-uploader__description--condensed"
|
|
@@ -2252,7 +2298,7 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2252
2298
|
]),
|
|
2253
2299
|
_: 1
|
|
2254
2300
|
}, 8, ["id"])) : f("", !0),
|
|
2255
|
-
e.condensed ? (s(), w(t(
|
|
2301
|
+
e.condensed ? (s(), w(t(qa), D({ key: 3 }, K.value, { id: t(Z) }), null, 16, ["id"])) : f("", !0),
|
|
2256
2302
|
ka.value ? (s(), w(t(xi), {
|
|
2257
2303
|
key: 4,
|
|
2258
2304
|
type: "critical"
|
|
@@ -2265,21 +2311,21 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2265
2311
|
]),
|
|
2266
2312
|
_: 1
|
|
2267
2313
|
})) : f("", !0),
|
|
2268
|
-
Ba(m("div",
|
|
2269
|
-
(s(!0), g(
|
|
2314
|
+
Ba(m("div", Ge, [
|
|
2315
|
+
(s(!0), g(ja, null, ui(v.value, (H, li) => (s(), w(t(De), {
|
|
2270
2316
|
ref_for: !0,
|
|
2271
2317
|
ref: _(li),
|
|
2272
|
-
key:
|
|
2273
|
-
file:
|
|
2318
|
+
key: H.id,
|
|
2319
|
+
file: H,
|
|
2274
2320
|
"supported-file-types": t(r),
|
|
2275
2321
|
readonly: e.readonly,
|
|
2276
|
-
onCancel: (si) => Ca(
|
|
2277
|
-
onRemove: (si) => Ca(
|
|
2322
|
+
onCancel: (si) => Ca(H),
|
|
2323
|
+
onRemove: (si) => Ca(H)
|
|
2278
2324
|
}, null, 8, ["file", "supported-file-types", "readonly", "onCancel", "onRemove"]))), 128))
|
|
2279
2325
|
], 512), [
|
|
2280
2326
|
[vi, (C = v.value) == null ? void 0 : C.length]
|
|
2281
2327
|
]),
|
|
2282
|
-
!((
|
|
2328
|
+
!((z = v.value) != null && z.length) && e.readonly ? (s(), w(t(j), {
|
|
2283
2329
|
key: 5,
|
|
2284
2330
|
class: "b-file-uploader__no-files",
|
|
2285
2331
|
wide: ""
|
|
@@ -2292,8 +2338,8 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2292
2338
|
], 2);
|
|
2293
2339
|
};
|
|
2294
2340
|
}
|
|
2295
|
-
}), xt = /* @__PURE__ */
|
|
2341
|
+
}), xt = /* @__PURE__ */ F(Je, [["__scopeId", "data-v-327fb867"]]);
|
|
2296
2342
|
export {
|
|
2297
2343
|
xt as f
|
|
2298
2344
|
};
|
|
2299
|
-
//# sourceMappingURL=file-uploader.
|
|
2345
|
+
//# sourceMappingURL=file-uploader.BmBKLzIx.js.map
|