@adyen/bento-vue2 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/README.md +5 -5
- package/dist/@types/index.d.ts +1299 -1235
- 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 +3 -3
- 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.DeV8s0oW.js.map +1 -1
- package/dist/chunks/{action-bar.C2GnRugW.js → action-bar.y4tcdk7R.js} +8 -6
- package/dist/chunks/{action-bar.C2GnRugW.js.map → action-bar.y4tcdk7R.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/{ai-button.C9Uc6vBY.js → ai-button.BEy4Gly-.js} +2 -2
- package/dist/chunks/{ai-button.C9Uc6vBY.js.map → ai-button.BEy4Gly-.js.map} +1 -1
- package/dist/chunks/{alert.BlJBrD8c.js → alert.B3Pdp02a.js} +29 -21
- package/dist/chunks/{alert.BlJBrD8c.js.map → alert.B3Pdp02a.js.map} +1 -1
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
- package/dist/chunks/avatar.CUCH3CTc.js.map +1 -1
- package/dist/chunks/base-button.IN4bpcds.js.map +1 -1
- package/dist/chunks/{base-modal.L39wmqVD.js → base-modal.KYkLKswF.js} +20 -18
- package/dist/chunks/{base-modal.L39wmqVD.js.map → base-modal.KYkLKswF.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.CQlsQa_f.js → button-actions-with-menu.B5mKwc-F.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.CQlsQa_f.js.map → button-actions-with-menu.B5mKwc-F.js.map} +1 -1
- package/dist/chunks/{button-actions.BWVq6OZQ.js → button-actions.D9n7MxWe.js} +270 -239
- package/dist/chunks/{button-actions.BWVq6OZQ.js.map → button-actions.D9n7MxWe.js.map} +1 -1
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/{button.C5GvPqe5.js → button.DIU6m9wD.js} +2 -2
- package/dist/chunks/{button.C5GvPqe5.js.map → button.DIU6m9wD.js.map} +1 -1
- package/dist/chunks/calendar.C8DpZ4Sr.js +1101 -0
- package/dist/chunks/calendar.C8DpZ4Sr.js.map +1 -0
- package/dist/chunks/{card.CktheSva.js → card.CLX0RGG6.js} +2 -2
- package/dist/chunks/{card.CktheSva.js.map → card.CLX0RGG6.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DKkaWwMI.js → checkbox-group.BCnhjQie.js} +4 -4
- package/dist/chunks/{checkbox-group.DKkaWwMI.js.map → checkbox-group.BCnhjQie.js.map} +1 -1
- package/dist/chunks/{checkbox-input.B0NsfSNR.js → checkbox-input.08E9BNeF.js} +45 -40
- package/dist/chunks/checkbox-input.08E9BNeF.js.map +1 -0
- package/dist/chunks/{checkbox.B_W1TGP2.js → checkbox.CU5ierOq.js} +16 -16
- package/dist/chunks/{checkbox.B_W1TGP2.js.map → checkbox.CU5ierOq.js.map} +1 -1
- package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -1
- package/dist/chunks/{code-snippet.1_edHDaZ.js → code-snippet.9MwDHp50.js} +62 -60
- package/dist/chunks/code-snippet.9MwDHp50.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.BqPxnEl3.js → controls-group.D4eW9DtP.js} +2 -2
- package/dist/chunks/{controls-group.BqPxnEl3.js.map → controls-group.D4eW9DtP.js.map} +1 -1
- package/dist/chunks/{copy.I2GvwCvt.js → copy.C0q7xgXs.js} +19 -17
- package/dist/chunks/{copy.I2GvwCvt.js.map → copy.C0q7xgXs.js.map} +1 -1
- package/dist/chunks/{country.BPrh4fXO.js → country.DyrDj95W.js} +2 -2
- package/dist/chunks/{country.BPrh4fXO.js.map → country.DyrDj95W.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/currency.DYZr_RDk.js.map +1 -1
- package/dist/chunks/{dashboard-section.B4bHrFIl.js → dashboard-section.B83FdC0Z.js} +3 -3
- package/dist/chunks/{dashboard-section.B4bHrFIl.js.map → dashboard-section.B83FdC0Z.js.map} +1 -1
- package/dist/chunks/{dashed-underline.ByK3QxFJ.js → dashed-underline.DQGVy5T2.js} +2 -2
- package/dist/chunks/{dashed-underline.ByK3QxFJ.js.map → dashed-underline.DQGVy5T2.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CvZbOkih.js → data-grid-template.BTEFoEwf.js} +4 -4
- package/dist/chunks/{data-grid-template.CvZbOkih.js.map → data-grid-template.BTEFoEwf.js.map} +1 -1
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
- package/dist/chunks/{data-grid.CVjZ1tKw.js → data-grid.BPG1GPIl.js} +922 -838
- package/dist/chunks/{data-grid.CVjZ1tKw.js.map → data-grid.BPG1GPIl.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.-a_TXwjx.js → date-picker.CnsC_UMG.js} +78 -74
- package/dist/chunks/date-picker.CnsC_UMG.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date-range-picker.B6GSRjjK.js +1693 -0
- package/dist/chunks/date-range-picker.B6GSRjjK.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date.DBWzp0So.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.Dn-WbcxU.js → dialog-page.QpRiNPyx.js} +29 -23
- package/dist/chunks/{dialog-page.Dn-WbcxU.js.map → dialog-page.QpRiNPyx.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.DX5gwN7p.js.map +1 -1
- package/dist/chunks/dropdown-default-textbox.Cq68tN9F.js.map +1 -1
- package/dist/chunks/{dropdown-tag.AYIB0ec5.js → dropdown-tag.HBM0wrEV.js} +4 -4
- package/dist/chunks/{dropdown-tag.AYIB0ec5.js.map → dropdown-tag.HBM0wrEV.js.map} +1 -1
- package/dist/chunks/{dropdown.Dt0_ZUBn.js → dropdown.C2pXf8Li.js} +85 -81
- package/dist/chunks/{dropdown.Dt0_ZUBn.js.map → dropdown.C2pXf8Li.js.map} +1 -1
- package/dist/chunks/{empty-state.jVTWhJW7.js → empty-state.DpBnqAxu.js} +2 -2
- package/dist/chunks/{empty-state.jVTWhJW7.js.map → empty-state.DpBnqAxu.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/{field-label.BpeaR4Qc.js → field-label.CEkJnsiL.js} +5 -5
- package/dist/chunks/{field-label.BpeaR4Qc.js.map → field-label.CEkJnsiL.js.map} +1 -1
- package/dist/chunks/{file-uploader.G6mr6RuA.js → file-uploader.CnOqfuI-.js} +299 -253
- package/dist/chunks/{file-uploader.G6mr6RuA.js.map → file-uploader.CnOqfuI-.js.map} +1 -1
- package/dist/chunks/filter-bar.CnJAxz9B.js +2559 -0
- package/dist/chunks/filter-bar.CnJAxz9B.js.map +1 -0
- package/dist/chunks/fixed-scroller.Bp4-iO80.js +114 -0
- package/dist/chunks/{fixed-scroller.Ca1ujamx.js.map → fixed-scroller.Bp4-iO80.js.map} +1 -1
- package/dist/chunks/focus-trap.CNIU5jOz.js.map +1 -1
- package/dist/chunks/{footer-actions.3JdT8b0p.js → footer-actions.BOiN47Xd.js} +3 -3
- package/dist/chunks/{footer-actions.3JdT8b0p.js.map → footer-actions.BOiN47Xd.js.map} +1 -1
- package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
- package/dist/chunks/{form-layout-title.D9GJQfF9.js → form-layout-title.CdC1T4gs.js} +2 -2
- package/dist/chunks/{form-layout-title.D9GJQfF9.js.map → form-layout-title.CdC1T4gs.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.1aIiz2N_.js.map +1 -1
- package/dist/chunks/header-meta.D_oAu2S9.js +212 -0
- package/dist/chunks/header-meta.D_oAu2S9.js.map +1 -0
- package/dist/chunks/{header-with-views.3fF_V6F9.js → header-with-views.Dc9LUYNY.js} +379 -315
- package/dist/chunks/{header-with-views.3fF_V6F9.js.map → header-with-views.Dc9LUYNY.js.map} +1 -1
- package/dist/chunks/{header.D76MKCdS.js → header.BmtlQmPs.js} +3 -3
- package/dist/chunks/{header.D76MKCdS.js.map → header.BmtlQmPs.js.map} +1 -1
- package/dist/chunks/image.C2D2hKat.js.map +1 -1
- package/dist/chunks/index.B6WW_F-J.js.map +1 -1
- package/dist/chunks/index.BDK4hwK_.js.map +1 -1
- package/dist/chunks/{input-field-password.C7zjyp7f.js → input-field-password.D23H_RvO.js} +48 -42
- package/dist/chunks/{input-field-password.C7zjyp7f.js.map → input-field-password.D23H_RvO.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.DwuTziSU.js → input-field-phone-number.Bvk2Pvec.js} +9 -3
- package/dist/chunks/{input-field-phone-number.DwuTziSU.js.map → input-field-phone-number.Bvk2Pvec.js.map} +1 -1
- package/dist/chunks/{input-field.DsT4AWXC.js → input-field.hf0_ALq0.js} +37 -29
- package/dist/chunks/{input-field.DsT4AWXC.js.map → input-field.hf0_ALq0.js.map} +1 -1
- package/dist/chunks/{inspector.2A5vWUou.js → inspector.C0iAxxoz.js} +40 -34
- package/dist/chunks/{inspector.2A5vWUou.js.map → inspector.C0iAxxoz.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.BPX00mio.js.map +1 -1
- package/dist/chunks/{link.BoDUCYmM.js → link.PsTSQjK3.js} +27 -21
- package/dist/chunks/{link.BoDUCYmM.js.map → link.PsTSQjK3.js.map} +1 -1
- package/dist/chunks/loading-indicator.PxbRzshH.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.DJacLGTw.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.CcvZBUoF.js → modal-fullscreen.B1gltlxA.js} +5 -5
- package/dist/chunks/{modal-fullscreen.CcvZBUoF.js.map → modal-fullscreen.B1gltlxA.js.map} +1 -1
- package/dist/chunks/{modal.6hFEbnZM.js → modal.e3EQ6Kex.js} +5 -5
- package/dist/chunks/{modal.6hFEbnZM.js.map → modal.e3EQ6Kex.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.BSyshRGH.js → pagination.BcFt2FqK.js} +6 -6
- package/dist/chunks/{pagination.BSyshRGH.js.map → pagination.BcFt2FqK.js.map} +1 -1
- package/dist/chunks/payment-method.BKXLPDC9.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.WDh5ggr3.js.map +1 -1
- package/dist/chunks/popper-container.Cdokz_NE.js.map +1 -1
- package/dist/chunks/{promo-banner.D3aG5wnp.js → promo-banner.yfBorKj7.js} +2 -2
- package/dist/chunks/{promo-banner.D3aG5wnp.js.map → promo-banner.yfBorKj7.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.DTZwsfwW.js → radio-group.CtTnfkYg.js} +3 -3
- package/dist/chunks/{radio-group.DTZwsfwW.js.map → radio-group.CtTnfkYg.js.map} +1 -1
- package/dist/chunks/radio-input.kzb4gxLW.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/resize.Bqks3WUm.js.map +1 -1
- package/dist/chunks/{rich-text-editor.BbvfrqHl.js → rich-text-editor.Dq2CFGOu.js} +5 -5
- package/dist/chunks/{rich-text-editor.BbvfrqHl.js.map → rich-text-editor.Dq2CFGOu.js.map} +1 -1
- package/dist/chunks/{search-bar.Bpk-PuYT.js → search-bar.B0SdQBnY.js} +3 -3
- package/dist/chunks/{search-bar.Bpk-PuYT.js.map → search-bar.B0SdQBnY.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BGOYJrsB.js → secondary-nav.BPGpxd0p.js} +35 -29
- package/dist/chunks/{secondary-nav.BGOYJrsB.js.map → secondary-nav.BPGpxd0p.js.map} +1 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.BWLjFcea.js → selection-card-group.BryV14qP.js} +13 -13
- package/dist/chunks/{selection-card-group.BWLjFcea.js.map → selection-card-group.BryV14qP.js.map} +1 -1
- package/dist/chunks/{sidepanel.C5SvJNMR.js → sidepanel.NFyZGE57.js} +5 -5
- package/dist/chunks/{sidepanel.C5SvJNMR.js.map → sidepanel.NFyZGE57.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.Cv5XN4zL.js.map +1 -1
- package/dist/chunks/step.BLFXvHL6.js +223 -0
- package/dist/chunks/step.BLFXvHL6.js.map +1 -0
- package/dist/chunks/{structured-list-item.CbXDKwsF.js → structured-list-item.CptOCpHP.js} +3 -3
- package/dist/chunks/{structured-list-item.CbXDKwsF.js.map → structured-list-item.CptOCpHP.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.haWi7oaf.js → summary-grid.types.B1T8_k1m.js} +3 -3
- package/dist/chunks/{summary-grid.types.haWi7oaf.js.map → summary-grid.types.B1T8_k1m.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.ZQfGp_FP.js → tab.FUMpPsBP.js} +2 -2
- package/dist/chunks/{tab.ZQfGp_FP.js.map → tab.FUMpPsBP.js.map} +1 -1
- package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
- package/dist/chunks/tag.B1Ywhgvc.js.map +1 -1
- package/dist/chunks/{textarea.DfR2o1lz.js → textarea.riUt0BiI.js} +31 -31
- package/dist/chunks/textarea.riUt0BiI.js.map +1 -0
- package/dist/chunks/{timeline-item.rLqeBsyz.js → timeline-item.CFfW1DoD.js} +16 -15
- package/dist/chunks/{timeline-item.rLqeBsyz.js.map → timeline-item.CFfW1DoD.js.map} +1 -1
- package/dist/chunks/{toast.C7lu_NsX.js → toast.Csv6tMyT.js} +2 -2
- package/dist/chunks/{toast.C7lu_NsX.js.map → toast.Csv6tMyT.js.map} +1 -1
- package/dist/chunks/toggle.227XgEc7.js.map +1 -1
- package/dist/chunks/tooltip.C6YCavPw.js.map +1 -1
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
- package/dist/chunks/{tutorial.DdRGxTC5.js → tutorial.D18LwXVy.js} +5 -5
- package/dist/chunks/{tutorial.DdRGxTC5.js.map → tutorial.D18LwXVy.js.map} +1 -1
- package/dist/chunks/typography.Bq-EGj9y.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.MmyZXtME.js.map +1 -1
- package/dist/chunks/{use-cached-selected-values.DIKJ8yNE.js → use-cached-selected-values.gDWGi5Nk.js} +240 -231
- package/dist/chunks/{use-cached-selected-values.DIKJ8yNE.js.map → use-cached-selected-values.gDWGi5Nk.js.map} +1 -1
- package/dist/chunks/{use-country-items.B3Cd3Tdo.js → use-country-items.ClS_So5N.js} +2 -2
- package/dist/chunks/{use-country-items.B3Cd3Tdo.js.map → use-country-items.ClS_So5N.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.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/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/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +250 -251
- 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/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/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/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js.map +1 -1
- package/package.json +15 -26
- package/dist/@types/components.d.ts +0 -196
- package/dist/@types/use-form-v4.d.ts +0 -86
- package/dist/chunks/calendar.DCLyThOl.js +0 -1832
- package/dist/chunks/calendar.DCLyThOl.js.map +0 -1
- package/dist/chunks/checkbox-input.B0NsfSNR.js.map +0 -1
- package/dist/chunks/code-snippet.1_edHDaZ.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.-a_TXwjx.js.map +0 -1
- package/dist/chunks/date-range-picker.Bw1yPTu-.js +0 -906
- package/dist/chunks/date-range-picker.Bw1yPTu-.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.CgJA4tIt.js +0 -2472
- package/dist/chunks/filter-bar.CgJA4tIt.js.map +0 -1
- package/dist/chunks/fixed-scroller.Ca1ujamx.js +0 -106
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +0 -1
- package/dist/chunks/header-meta.C8_W0j_p.js +0 -170
- package/dist/chunks/header-meta.C8_W0j_p.js.map +0 -1
- package/dist/chunks/step.mqn8E6dm.js +0 -217
- package/dist/chunks/step.mqn8E6dm.js.map +0 -1
- package/dist/chunks/textarea.DfR2o1lz.js.map +0 -1
- package/dist/web-types.json +0 -17280
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as N, ref as h, onUnmounted as Va, onMounted as Ca, computed as m, watch as
|
|
1
|
+
import { defineComponent as N, ref as h, onUnmounted as Va, onMounted as Ca, computed as m, watch as ea, reactive as ta, toRef as ia, nextTick as Ba } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { n as g } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
4
4
|
import { W as ka } from "./warning-filled.CbJ1pcB2.js";
|
|
5
|
-
import { B as Oa } from "./alert.
|
|
6
|
-
import { B as na, d as
|
|
5
|
+
import { B as Oa } from "./alert.B3Pdp02a.js";
|
|
6
|
+
import { B as na, d as qa } from "./typography.Bq-EGj9y.js";
|
|
7
7
|
import { u as W } from "./index.B6WW_F-J.js";
|
|
8
8
|
import { g as w } from "./generate-uid.NJ8tVoha.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as Ha } from "./form-field.D_2g7vaP.js";
|
|
10
10
|
import { i as Ra } from "./index.Cl4_42j5.js";
|
|
11
11
|
import { B as Ua } from "./bin.Ddb69cr1.js";
|
|
12
12
|
import { C as Aa } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
13
13
|
import { C as Za } from "./cross.CC_B-vG-.js";
|
|
14
14
|
import { R as Pa } from "./refresh.arF7jP-l.js";
|
|
15
|
-
import { B as Na } from "./button.
|
|
16
|
-
import { B as Wa } from "./link.
|
|
15
|
+
import { B as Na } from "./button.DIU6m9wD.js";
|
|
16
|
+
import { B as Wa } from "./link.PsTSQjK3.js";
|
|
17
17
|
import { B as Ga } from "./loading-indicator.PxbRzshH.js";
|
|
18
18
|
import { b as Ya } from "./tooltip.C6YCavPw.js";
|
|
19
|
-
import { F as
|
|
19
|
+
import { F as Ja, E as Xa } from "./field-label.CEkJnsiL.js";
|
|
20
20
|
import "../assets/file-uploader.css";
|
|
21
21
|
let ma = 0;
|
|
22
22
|
const Ka = {
|
|
@@ -25,8 +25,8 @@ const Ka = {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
var Qa = function() {
|
|
28
|
-
var a = this,
|
|
29
|
-
return
|
|
28
|
+
var a = this, e = a._self._c;
|
|
29
|
+
return e("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? e("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), e("path", { attrs: { fill: "#001222", 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" } }), e("path", { attrs: { fill: "#001222", d: "M12.0605 5L11 6.06055L8.75 3.81055V11.75H7.25V3.81055L5 6.06055L3.93945 5L8 0.939453L12.0605 5Z" } })]);
|
|
30
30
|
}, ai = [], ii = /* @__PURE__ */ g(
|
|
31
31
|
Ka,
|
|
32
32
|
Qa,
|
|
@@ -35,21 +35,21 @@ var Qa = function() {
|
|
|
35
35
|
null,
|
|
36
36
|
null
|
|
37
37
|
);
|
|
38
|
-
const
|
|
38
|
+
const ei = ii.exports, ti = /* @__PURE__ */ N({
|
|
39
39
|
__name: "file-uploader-file-card-animation",
|
|
40
40
|
props: {
|
|
41
41
|
name: null,
|
|
42
42
|
showFileIcon: { type: Boolean }
|
|
43
43
|
},
|
|
44
|
-
setup(
|
|
44
|
+
setup(t) {
|
|
45
45
|
return { __sfc: !0, isVue2: Ra };
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
var ni = function() {
|
|
49
|
-
var a = this,
|
|
50
|
-
return i.isVue2 ?
|
|
49
|
+
var a = this, e = a._self._c, i = a._self._setupProxy;
|
|
50
|
+
return i.isVue2 ? e("Transition", { attrs: { name: a.name, mode: "out-in", css: a.showFileIcon } }, [a._t("default")], 2) : e("TransitionGroup", { attrs: { name: a.name, css: a.showFileIcon } }, [a._t("default")], 2);
|
|
51
51
|
}, oi = [], pi = /* @__PURE__ */ g(
|
|
52
|
-
|
|
52
|
+
ti,
|
|
53
53
|
ni,
|
|
54
54
|
oi,
|
|
55
55
|
!1,
|
|
@@ -57,8 +57,8 @@ var ni = function() {
|
|
|
57
57
|
null
|
|
58
58
|
);
|
|
59
59
|
const li = pi.exports;
|
|
60
|
-
function si(
|
|
61
|
-
const
|
|
60
|
+
function si(t, a) {
|
|
61
|
+
const e = h(!1);
|
|
62
62
|
let i;
|
|
63
63
|
function o() {
|
|
64
64
|
i && i.disconnect();
|
|
@@ -67,33 +67,33 @@ function si(e, a) {
|
|
|
67
67
|
o();
|
|
68
68
|
}), Ca(() => {
|
|
69
69
|
o(), i = new IntersectionObserver(
|
|
70
|
-
(
|
|
71
|
-
|
|
70
|
+
(c) => {
|
|
71
|
+
e.value = !c[0].isIntersecting;
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
root: a.value,
|
|
75
75
|
threshold: 1
|
|
76
76
|
}
|
|
77
|
-
), i.observe(
|
|
78
|
-
}),
|
|
77
|
+
), i.observe(t.value.$el);
|
|
78
|
+
}), e;
|
|
79
79
|
}
|
|
80
80
|
const ua = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
81
|
-
function Ea(
|
|
82
|
-
const
|
|
83
|
-
return Intl.NumberFormat(
|
|
81
|
+
function Ea(t, a) {
|
|
82
|
+
const e = Math.max(0, Math.min(Math.floor(Math.log(a) / Math.log(1024)), ua.length - 1));
|
|
83
|
+
return Intl.NumberFormat(t, {
|
|
84
84
|
style: "unit",
|
|
85
|
-
unit: ua[
|
|
86
|
-
}).format(a / 1024 **
|
|
85
|
+
unit: ua[e]
|
|
86
|
+
}).format(a / 1024 ** e);
|
|
87
87
|
}
|
|
88
|
-
var y = /* @__PURE__ */ ((
|
|
89
|
-
const
|
|
88
|
+
var y = /* @__PURE__ */ ((t) => (t.LOADING = "loading", t.SUCCESS = "success", t.ERROR = "error", t))(y || {}), x = /* @__PURE__ */ ((t) => (t.ERROR_SIZE = "error-size", t.ERROR_LOAD = "error-load", t.ERROR_DIMENSIONS = "error-dimensions", t.ERROR_TYPE = "error-type", t))(x || {}), P = /* @__PURE__ */ ((t) => (t.DISABLED = "disabled", t.DRAG_OVER = "drag-over", t.ERROR = "error", t.READONLY = "readonly", t))(P || {}), u = /* @__PURE__ */ ((t) => (t.TABLE = "table", t.IMAGE = "image", t.VIDEO = "video", t.AUDIO = "audio", t.TEXT = "text", t.PDF = "pdf", t.SLIDES = "slides", t.COMPRESSED = "compressed", t.GENERIC = "generic", t))(u || {});
|
|
89
|
+
const ri = [
|
|
90
90
|
"application/msword",
|
|
91
91
|
// .doc
|
|
92
92
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
93
93
|
// .docx
|
|
94
94
|
"application/rtf"
|
|
95
95
|
// .rtf
|
|
96
|
-
],
|
|
96
|
+
], ci = [
|
|
97
97
|
"application/vnd.ms-excel",
|
|
98
98
|
// .xls
|
|
99
99
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -135,42 +135,42 @@ const ci = [
|
|
|
135
135
|
"application/vnd.ms-cab-compressed"
|
|
136
136
|
// .cab
|
|
137
137
|
];
|
|
138
|
-
function ui(
|
|
139
|
-
return
|
|
138
|
+
function ui(t) {
|
|
139
|
+
return ci.includes(t.type) ? u.TABLE : t.type.startsWith("text/") || ri.includes(t.type) ? u.TEXT : t.type.startsWith("image/") ? u.IMAGE : t.type.startsWith("video/") ? u.VIDEO : t.type.startsWith("audio/") ? u.AUDIO : t.type === "application/pdf" ? u.PDF : di.includes(t.type) ? u.SLIDES : mi.includes(t.type) ? u.COMPRESSED : u.GENERIC;
|
|
140
140
|
}
|
|
141
|
-
function vi(
|
|
141
|
+
function vi(t, a) {
|
|
142
142
|
if (!a)
|
|
143
143
|
return !0;
|
|
144
|
-
const
|
|
145
|
-
for (const i of
|
|
144
|
+
const e = a.split(",").map((i) => i.trim());
|
|
145
|
+
for (const i of e)
|
|
146
146
|
if (i.startsWith(".")) {
|
|
147
|
-
if (
|
|
147
|
+
if (t.name.endsWith(i))
|
|
148
148
|
return !0;
|
|
149
149
|
} else if (i.endsWith("/*")) {
|
|
150
150
|
const o = i.split("/")[0];
|
|
151
|
-
if (
|
|
151
|
+
if (t.type.startsWith(o))
|
|
152
152
|
return !0;
|
|
153
|
-
} else if (
|
|
153
|
+
} else if (t.type === i)
|
|
154
154
|
return !0;
|
|
155
155
|
return !1;
|
|
156
156
|
}
|
|
157
|
-
function fi(
|
|
158
|
-
const i = new FileReader(), o =
|
|
157
|
+
function fi(t, a, e) {
|
|
158
|
+
const i = new FileReader(), o = t;
|
|
159
159
|
if (!vi(o.data, a)) {
|
|
160
160
|
o.state = y.ERROR, o.errors.push(x.ERROR_TYPE);
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
|
-
i.onload = (
|
|
164
|
-
if (
|
|
165
|
-
const p = new Blob([
|
|
163
|
+
i.onload = (c) => {
|
|
164
|
+
if (e && o.type === u.IMAGE) {
|
|
165
|
+
const p = new Blob([c.target.result], { type: o.data.type }), s = URL.createObjectURL(p), d = new Image();
|
|
166
166
|
d.onload = function() {
|
|
167
|
-
(d.width >
|
|
167
|
+
(d.width > e.width || d.height > e.height) && (o.state = y.ERROR, o.errors.push(x.ERROR_DIMENSIONS)), URL.revokeObjectURL(s);
|
|
168
168
|
}, d.onerror = function() {
|
|
169
169
|
URL.revokeObjectURL(s);
|
|
170
170
|
}, d.src = s;
|
|
171
171
|
}
|
|
172
|
-
}, i.onprogress = (
|
|
173
|
-
|
|
172
|
+
}, i.onprogress = (c) => {
|
|
173
|
+
c.lengthComputable && (o.progress = c.loaded / c.total * 100);
|
|
174
174
|
}, i.onloadend = () => {
|
|
175
175
|
o.state !== y.ERROR && (o.state = y.SUCCESS), o.progress = null;
|
|
176
176
|
}, i.onerror = () => {
|
|
@@ -184,8 +184,8 @@ const xi = {
|
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
var gi = function() {
|
|
187
|
-
var a = this,
|
|
188
|
-
return
|
|
187
|
+
var a = this, e = a._self._c;
|
|
188
|
+
return e("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? e("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), e("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.uuid + ")" } }, [e("path", { attrs: { fill: "#001222", 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" } })]), e("defs", [e("clipPath", { attrs: { id: "uia-ui-assets/icons-16-attachment__a" + a.uuid } }, [e("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
189
189
|
}, hi = [], bi = /* @__PURE__ */ g(
|
|
190
190
|
xi,
|
|
191
191
|
gi,
|
|
@@ -202,8 +202,8 @@ const wi = {
|
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
var yi = function() {
|
|
205
|
-
var a = this,
|
|
206
|
-
return
|
|
205
|
+
var a = this, e = a._self._c;
|
|
206
|
+
return e("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? e("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), e("path", { attrs: { fill: "#001222", "fill-rule": "evenodd", d: "M11 0.25C12.5188 0.25 13.75 1.48122 13.75 3V7C13.75 7.85389 13.3607 8.6167 12.75 9.12109V10C12.75 10.8539 12.3607 11.6167 11.75 12.1211V13C11.75 14.5188 10.5188 15.75 9 15.75H7C5.48122 15.75 4.25 14.5188 4.25 13V12.1211C3.63934 11.6167 3.25 10.8539 3.25 10V9.12109C2.63934 8.6167 2.25 7.85389 2.25 7V3C2.25 1.48122 3.48122 0.25 5 0.25H11ZM10 12.75H6C5.91565 12.75 5.83241 12.7438 5.75 12.7363V13C5.75 13.6904 6.30964 14.25 7 14.25H9C9.69036 14.25 10.25 13.6904 10.25 13V12.7363C10.1676 12.7438 10.0843 12.75 10 12.75ZM11 9.75H5C4.91565 9.75 4.83241 9.74376 4.75 9.73633V10C4.75 10.6904 5.30964 11.25 6 11.25H10C10.6904 11.25 11.25 10.6904 11.25 10V9.73633C11.1676 9.74376 11.0843 9.75 11 9.75ZM5 1.75C4.30964 1.75 3.75 2.30964 3.75 3V7C3.75 7.69036 4.30964 8.25 5 8.25H11C11.6904 8.25 12.25 7.69036 12.25 7V3C12.25 2.30964 11.6904 1.75 11 1.75H5Z", "clip-rule": "evenodd" } })]);
|
|
207
207
|
}, Ci = [], ki = /* @__PURE__ */ g(
|
|
208
208
|
wi,
|
|
209
209
|
yi,
|
|
@@ -219,18 +219,18 @@ const Ei = {
|
|
|
219
219
|
this.uuid = xa.toString(), xa += 1;
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
|
-
var
|
|
223
|
-
var a = this,
|
|
224
|
-
return
|
|
225
|
-
},
|
|
222
|
+
var zi = function() {
|
|
223
|
+
var a = this, e = a._self._c;
|
|
224
|
+
return e("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? e("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), e("path", { attrs: { fill: "#001222", d: "M2.25 0.25V15.75H13.75V4.68934L9.31066 0.25H2.25ZM7.25 1.75V6.75H12.25V14.25H3.75V1.75H7.25ZM12.1893 5.25H8.75V1.81066L12.1893 5.25Z" } })]);
|
|
225
|
+
}, Fi = [], ji = /* @__PURE__ */ g(
|
|
226
226
|
Ei,
|
|
227
|
-
ji,
|
|
228
227
|
zi,
|
|
228
|
+
Fi,
|
|
229
229
|
!1,
|
|
230
230
|
null,
|
|
231
231
|
null
|
|
232
232
|
);
|
|
233
|
-
const
|
|
233
|
+
const Ii = ji.exports;
|
|
234
234
|
let ga = 0;
|
|
235
235
|
const $i = {
|
|
236
236
|
beforeCreate() {
|
|
@@ -238,8 +238,8 @@ const $i = {
|
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
240
|
var Ti = function() {
|
|
241
|
-
var a = this,
|
|
242
|
-
return
|
|
241
|
+
var a = this, e = a._self._c;
|
|
242
|
+
return e("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? e("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), e("path", { attrs: { fill: "#001222", d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z" } }), e("path", { attrs: { fill: "#001222", d: "M10.7461 11.25H5.24609V12.75H10.7461V11.25Z" } }), e("path", { attrs: { fill: "#001222", d: "M2.24609 0.25V15.75H13.7461V4.68934L9.30675 0.25H2.24609ZM7.24609 1.75V6.75H12.2461V14.25H3.74609V1.75H7.24609ZM12.1854 5.25H8.74609V1.81066L12.1854 5.25Z" } })]);
|
|
243
243
|
}, Li = [], Si = /* @__PURE__ */ g(
|
|
244
244
|
$i,
|
|
245
245
|
Ti,
|
|
@@ -256,8 +256,8 @@ const Di = {
|
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
var Vi = function() {
|
|
259
|
-
var a = this,
|
|
260
|
-
return
|
|
259
|
+
var a = this, e = a._self._c;
|
|
260
|
+
return e("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? e("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), e("path", { attrs: { fill: "#001222", d: "M1.24609 12V5C1.24609 3.48579 2.48188 2.25 3.99609 2.25H7.30664L10.3066 5.25H11.9961C13.5103 5.25 14.7461 6.48579 14.7461 8V12C14.7461 13.5142 13.5103 14.75 11.9961 14.75H3.99609C2.48188 14.75 1.24609 13.5142 1.24609 12ZM2.74609 12C2.74609 12.6858 3.31031 13.25 3.99609 13.25H11.9961C12.6819 13.25 13.2461 12.6858 13.2461 12V8C13.2461 7.31421 12.6819 6.75 11.9961 6.75H9.68555L6.68555 3.75H3.99609C3.31031 3.75 2.74609 4.31421 2.74609 5V12Z" } })]);
|
|
261
261
|
}, Bi = [], Oi = /* @__PURE__ */ g(
|
|
262
262
|
Di,
|
|
263
263
|
Vi,
|
|
@@ -266,18 +266,18 @@ var Vi = function() {
|
|
|
266
266
|
null,
|
|
267
267
|
null
|
|
268
268
|
);
|
|
269
|
-
const
|
|
269
|
+
const qi = Oi.exports;
|
|
270
270
|
let ba = 0;
|
|
271
|
-
const
|
|
271
|
+
const Hi = {
|
|
272
272
|
beforeCreate() {
|
|
273
273
|
this.uuid = ba.toString(), ba += 1;
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
var Ui = function() {
|
|
277
|
-
var a = this,
|
|
278
|
-
return
|
|
277
|
+
var a = this, e = a._self._c;
|
|
278
|
+
return e("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? e("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), e("path", { attrs: { fill: "#001222", d: "M9.74609 3.74805C11.1268 3.74805 12.2461 4.86733 12.2461 6.24805C12.2461 7.62876 11.1268 8.74805 9.74609 8.74805C8.36538 8.74805 7.24609 7.62876 7.24609 6.24805C7.24609 4.86733 8.36538 3.74805 9.74609 3.74805ZM9.74609 5.24805C9.19381 5.24805 8.74609 5.69576 8.74609 6.24805C8.74609 6.80033 9.19381 7.24805 9.74609 7.24805C10.2984 7.24805 10.7461 6.80033 10.7461 6.24805C10.7461 5.69576 10.2984 5.24805 9.74609 5.24805Z" } }), e("path", { attrs: { fill: "#001222", d: "M11.9961 1.24805C13.5149 1.24805 14.7461 2.47926 14.7461 3.99805V11.998C14.7461 13.5168 13.5149 14.748 11.9961 14.748H3.99609C2.47731 14.748 1.24609 13.5168 1.24609 11.998V3.99805C1.24609 2.47926 2.47731 1.24805 3.99609 1.24805H11.9961ZM2.74609 11.3105V11.998C2.74609 12.6884 3.30574 13.248 3.99609 13.248H9.18359L4.99609 9.06055L2.74609 11.3105ZM3.99609 2.74805C3.30574 2.74805 2.74609 3.30769 2.74609 3.99805V9.18945L4.99609 6.93945L11.3047 13.248H11.9961C12.6864 13.248 13.2461 12.6884 13.2461 11.998V3.99805C13.2461 3.30769 12.6865 2.74805 11.9961 2.74805H3.99609Z" } })]);
|
|
279
279
|
}, Ai = [], Zi = /* @__PURE__ */ g(
|
|
280
|
-
|
|
280
|
+
Hi,
|
|
281
281
|
Ui,
|
|
282
282
|
Ai,
|
|
283
283
|
!1,
|
|
@@ -292,8 +292,8 @@ const Ni = {
|
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
var Wi = function() {
|
|
295
|
-
var a = this,
|
|
296
|
-
return
|
|
295
|
+
var a = this, e = a._self._c;
|
|
296
|
+
return e("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? e("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), e("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.uuid + ")" } }, [e("path", { attrs: { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" } }), e("path", { attrs: { d: "M5.0342 0.839937C6.45033 0.253358 8.0086 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM9.21931 1.8701C8.00693 1.62894 6.75027 1.75271 5.60823 2.22576C4.46619 2.6988 3.49007 3.49988 2.80331 4.52769C2.11656 5.5555 1.75 6.76387 1.75 8C1.75 9.65761 2.40848 11.2473 3.58058 12.4194C4.75268 13.5915 6.3424 14.25 8 14.25C9.23613 14.25 10.4445 13.8834 11.4723 13.1967C12.5001 12.5099 13.3012 11.5338 13.7742 10.3918C14.2473 9.24974 14.3711 7.99307 14.1299 6.78069C13.8887 5.56831 13.2935 4.45466 12.4194 3.58059C11.5453 2.70651 10.4317 2.11125 9.21931 1.8701Z" } })]), e("defs", [e("clipPath", { attrs: { id: "uia-ui-assets/icons-16-play_circle__a" + a.uuid } }, [e("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
297
297
|
}, Gi = [], Yi = /* @__PURE__ */ g(
|
|
298
298
|
Ni,
|
|
299
299
|
Wi,
|
|
@@ -302,58 +302,58 @@ var Wi = function() {
|
|
|
302
302
|
null,
|
|
303
303
|
null
|
|
304
304
|
);
|
|
305
|
-
const
|
|
305
|
+
const Ji = Yi.exports;
|
|
306
306
|
let wa = 0;
|
|
307
|
-
const
|
|
307
|
+
const Xi = {
|
|
308
308
|
beforeCreate() {
|
|
309
309
|
this.uuid = wa.toString(), wa += 1;
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
var Ki = function() {
|
|
313
|
-
var a = this,
|
|
314
|
-
return
|
|
315
|
-
}, Qi = [],
|
|
316
|
-
|
|
313
|
+
var a = this, e = a._self._c;
|
|
314
|
+
return e("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? e("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), e("path", { attrs: { fill: "#001222", d: "M5.68934 2.25H8.75V13.75H5.68934L2.68934 10.75H0.25V5.25H2.68934L5.68934 2.25ZM6.31066 3.75L3.31066 6.75H1.75V9.25H3.31066L6.31066 12.25H7.25V3.75H6.31066Z" } }), e("path", { attrs: { fill: "#001222", d: "M13.0111 4.99174C12.2099 4.19982 11.1294 3.75 10 3.75V2.25C11.53 2.25 12.9888 2.85964 14.0675 3.92684L14.0703 3.92966C15.1527 5.01199 15.75 6.47347 15.75 8C15.75 9.52995 15.1404 10.9888 14.0732 12.0675L14.0703 12.0703C12.988 13.1527 11.5265 13.75 10 13.75V12.25C11.1328 12.25 12.2107 11.8079 13.0082 11.0111C13.8002 10.21 14.25 9.1294 14.25 8C14.25 6.8672 13.8079 5.78927 13.0111 4.99174Z" } }), e("path", { attrs: { fill: "#001222", d: "M10 6.75V5.25C10.7257 5.25 11.4295 5.53694 11.9438 6.06319C12.4593 6.58041 12.75 7.26849 12.75 8C12.75 8.72573 12.4631 9.42951 11.9368 9.94383C11.4196 10.4593 10.7315 10.75 10 10.75V9.25C10.3268 9.25 10.6373 9.12206 10.8797 8.87967L10.8868 8.87265C11.1182 8.64727 11.25 8.33261 11.25 8C11.25 7.67317 11.1221 7.36272 10.8797 7.12033L10.8726 7.11321C10.6473 6.88175 10.3326 6.75 10 6.75Z" } })]);
|
|
315
|
+
}, Qi = [], ae = /* @__PURE__ */ g(
|
|
316
|
+
Xi,
|
|
317
317
|
Ki,
|
|
318
318
|
Qi,
|
|
319
319
|
!1,
|
|
320
320
|
null,
|
|
321
321
|
null
|
|
322
322
|
);
|
|
323
|
-
const
|
|
323
|
+
const ie = ae.exports;
|
|
324
324
|
let ya = 0;
|
|
325
|
-
const
|
|
325
|
+
const ee = {
|
|
326
326
|
beforeCreate() {
|
|
327
327
|
this.uuid = ya.toString(), ya += 1;
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
|
-
var
|
|
331
|
-
var a = this,
|
|
332
|
-
return
|
|
333
|
-
},
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
330
|
+
var te = function() {
|
|
331
|
+
var a = this, e = a._self._c;
|
|
332
|
+
return e("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? e("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), e("path", { attrs: { fill: "#001222", d: "M12 1.25C13.5188 1.25 14.75 2.48122 14.75 4V12C14.75 13.5188 13.5188 14.75 12 14.75H4C2.48122 14.75 1.25 13.5188 1.25 12V4C1.25 2.48122 2.48122 1.25 4 1.25H12ZM6.75 13.25H12C12.6904 13.25 13.25 12.6904 13.25 12V10.75H6.75V13.25ZM2.75 12C2.75 12.6904 3.30964 13.25 4 13.25H5.25V10.75H2.75V12ZM6.75 9.25H13.25V6.75H6.75V9.25ZM2.75 9.25H5.25V6.75H2.75V9.25ZM6.75 5.25H13.25V4C13.25 3.30964 12.6904 2.75 12 2.75H6.75V5.25ZM4 2.75C3.30964 2.75 2.75 3.30964 2.75 4V5.25H5.25V2.75H4Z" } })]);
|
|
333
|
+
}, ne = [], oe = /* @__PURE__ */ g(
|
|
334
|
+
ee,
|
|
335
|
+
te,
|
|
336
|
+
ne,
|
|
337
337
|
!1,
|
|
338
338
|
null,
|
|
339
339
|
null
|
|
340
340
|
);
|
|
341
|
-
const
|
|
342
|
-
[u.AUDIO]:
|
|
343
|
-
[u.COMPRESSED]:
|
|
341
|
+
const pe = oe.exports, le = {
|
|
342
|
+
[u.AUDIO]: ie,
|
|
343
|
+
[u.COMPRESSED]: qi,
|
|
344
344
|
[u.GENERIC]: _i,
|
|
345
345
|
[u.IMAGE]: Pi,
|
|
346
|
-
[u.PDF]:
|
|
346
|
+
[u.PDF]: Ii,
|
|
347
347
|
[u.SLIDES]: Ri,
|
|
348
|
-
[u.TABLE]:
|
|
348
|
+
[u.TABLE]: pe,
|
|
349
349
|
[u.TEXT]: Mi,
|
|
350
|
-
[u.VIDEO]:
|
|
350
|
+
[u.VIDEO]: Ji
|
|
351
351
|
};
|
|
352
|
-
function
|
|
353
|
-
return
|
|
352
|
+
function se(t) {
|
|
353
|
+
return le[t.type];
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
switch (
|
|
355
|
+
function re(t) {
|
|
356
|
+
switch (t.type) {
|
|
357
357
|
case u.COMPRESSED:
|
|
358
358
|
case u.GENERIC:
|
|
359
359
|
return "grey";
|
|
@@ -366,7 +366,7 @@ function ct(e) {
|
|
|
366
366
|
return "green";
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
const
|
|
369
|
+
const ce = {
|
|
370
370
|
"en-US": {
|
|
371
371
|
cancel: "Cancel",
|
|
372
372
|
fileExceedsSizeLimit: "File exceeds size limit",
|
|
@@ -377,38 +377,44 @@ const rt = {
|
|
|
377
377
|
},
|
|
378
378
|
"ja-JP": {
|
|
379
379
|
cancel: "キャンセル",
|
|
380
|
+
fileExceedsSizeLimit: "ファイルがサイズ制限を超えています",
|
|
381
|
+
fileTypeMustBe: "ファイル形式は{list}でなければなりません",
|
|
382
|
+
imageDimensionsExceedLimits: "画像のサイズが制限を超えています",
|
|
380
383
|
remove: "削除",
|
|
381
384
|
retry: "再試行"
|
|
382
385
|
},
|
|
383
386
|
"pt-BR": {
|
|
384
387
|
cancel: "Cancelar",
|
|
388
|
+
fileExceedsSizeLimit: "O arquivo excede o limite de tamanho",
|
|
389
|
+
fileTypeMustBe: "O tipo de arquivo deve ser {list}",
|
|
390
|
+
imageDimensionsExceedLimits: "As dimensões da imagem excedem os limites",
|
|
385
391
|
remove: "Remover",
|
|
386
392
|
retry: "Tentar novamente"
|
|
387
393
|
}
|
|
388
|
-
},
|
|
394
|
+
}, de = {
|
|
389
395
|
name: "file-uploader-file-card",
|
|
390
|
-
i18n: { messages:
|
|
391
|
-
},
|
|
392
|
-
...
|
|
396
|
+
i18n: { messages: ce }
|
|
397
|
+
}, me = /* @__PURE__ */ N({
|
|
398
|
+
...de,
|
|
393
399
|
props: {
|
|
394
400
|
file: null,
|
|
395
401
|
supportedFileTypes: { default: null },
|
|
396
402
|
readonly: { type: Boolean }
|
|
397
403
|
},
|
|
398
404
|
emits: ["cancel", "remove", "retry"],
|
|
399
|
-
setup(
|
|
400
|
-
const i =
|
|
405
|
+
setup(t, { expose: a, emit: e }) {
|
|
406
|
+
const i = t, o = 1200, { t: c, locale: p } = W(), s = h(null), d = h(null), v = h(null), C = w("file-errors-section"), B = w("cancel-file-button"), z = w("remove-file-button"), O = w("retry-file-button"), r = h(i.file.state === y.SUCCESS), T = m(() => URL.createObjectURL(i.file.data)), k = m(() => i.file.state === y.ERROR), q = m(() => i.file.errors.includes(x.ERROR_LOAD)), G = m(() => i.file.errors.includes(x.ERROR_SIZE)), Y = m(() => i.file.errors.includes(x.ERROR_DIMENSIONS)), J = m(() => i.file.errors.includes(x.ERROR_TYPE)), F = m(() => i.file.state === y.LOADING), R = m(() => i.file.progress && `(${i.file.progress.toFixed(0)}%)`), j = m(() => Ea(p.value, i.file.data.size)), L = h(), H = h(), I = si(L, H), X = m(() => ({
|
|
401
407
|
"b-file-uploader-file-card--error": k.value
|
|
402
408
|
})), S = m(() => ({
|
|
403
|
-
[`b-file-uploader-file-card__icon--${
|
|
409
|
+
[`b-file-uploader-file-card__icon--${re(i.file)}`]: r.value,
|
|
404
410
|
"b-file-uploader-file-card__icon--error": k.value
|
|
405
|
-
})), K = m(() =>
|
|
406
|
-
|
|
411
|
+
})), K = m(() => F.value ? Ga : k.value ? ka : r.value ? se(i.file) : Aa);
|
|
412
|
+
ea(
|
|
407
413
|
() => i.file.state,
|
|
408
414
|
(Q) => {
|
|
409
|
-
if (Q === y.SUCCESS && !
|
|
415
|
+
if (Q === y.SUCCESS && !r.value) {
|
|
410
416
|
const D = setTimeout(() => {
|
|
411
|
-
|
|
417
|
+
r.value = !0, clearTimeout(D);
|
|
412
418
|
}, o);
|
|
413
419
|
}
|
|
414
420
|
}
|
|
@@ -429,33 +435,33 @@ const rt = {
|
|
|
429
435
|
}
|
|
430
436
|
return a({
|
|
431
437
|
focus: M
|
|
432
|
-
}), { __sfc: !0, ICON_TIMER: o, props: i, emit:
|
|
438
|
+
}), { __sfc: !0, ICON_TIMER: o, props: i, emit: e, t: c, locale: p, removeFileButtonRef: s, cancelFileButtonRef: d, retryFileButtonRef: v, fileErrorsSectionId: C, cancelFileButtonId: B, removeFileButtonId: z, retryFileButtonId: O, showFileIcon: r, downloadUrl: T, hasError: k, hasLoadError: q, hasSizeError: G, hasDimensionsError: Y, hasTypeError: J, isLoading: F, progressLabel: R, sizeLabel: j, fileNameRef: L, fileNameContainerRef: H, isFileNameTruncated: I, conditionalClasses: X, conditionalIconClasses: S, fileUploaderIcon: K, focus: M, isVue2: Ra, FileUploaderFileCardAnimation: li, BinIcon: Ua, CrossIcon: Za, RefreshIcon: Pa, vBentoTooltipDirective: Ya, BentoButton: Na, BentoLink: Wa, BentoTypography: na };
|
|
433
439
|
}
|
|
434
440
|
});
|
|
435
|
-
var
|
|
436
|
-
var a = this,
|
|
437
|
-
return
|
|
441
|
+
var ue = function() {
|
|
442
|
+
var a = this, e = a._self._c, i = a._self._setupProxy;
|
|
443
|
+
return e("div", { staticClass: "b-file-uploader-file-card", class: i.conditionalClasses }, [e("div", { staticClass: "b-file-uploader-file-card__details" }, [e("div", { staticClass: "b-file-uploader-file-card__info" }, [e(i.FileUploaderFileCardAnimation, { attrs: { name: i.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": i.showFileIcon } }, [e(i.fileUploaderIcon, { key: JSON.stringify(i.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: i.conditionalIconClasses, attrs: { small: "", "aria-hidden": "true", "data-testid": "file-uploader-item-icon" } })], 1), e("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [e(i.BentoLink, { attrs: { "aria-hidden": "true", tabindex: "-1", download: a.file.data.name, to: i.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [e(i.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: i.isFileNameTruncated ? a.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [a._v(" " + a._s(a.file.data.name) + " ")])], 1)], 1), a.file.progress ? e(i.BentoTypography, { attrs: { el: "span" } }, [a._v(a._s(i.progressLabel))]) : a.file.data.size ? e(i.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { "aria-hidden": "true", el: "span" } }, [a._v(" " + a._s(i.sizeLabel) + " ")]) : a._e()], 1), i.hasSizeError || i.hasDimensionsError || i.hasTypeError && a.supportedFileTypes ? e("div", { attrs: { id: i.fileErrorsSectionId, role: "alert" } }, [i.hasSizeError ? e(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("fileExceedsSizeLimit")) + " ")]) : a._e(), i.hasDimensionsError ? e(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("imageDimensionsExceedLimits")) + " ")]) : a._e(), i.hasTypeError && a.supportedFileTypes ? e(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("fileTypeMustBe", { list: a.supportedFileTypes })) + " ")]) : a._e()], 1) : a._e()]), a.readonly ? a._e() : e("div", { staticClass: "b-file-uploader-file-card__actions" }, [i.hasLoadError ? e(i.BentoButton, { ref: "retryFileButtonRef", attrs: { "aria-labelledby": `${i.fileErrorsSectionId} ${i.retryFileButtonId}`, variant: "tertiary" }, on: { click: function(o) {
|
|
438
444
|
return i.emit("retry");
|
|
439
445
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
440
|
-
return [
|
|
441
|
-
}, proxy: !0 }], null, !1, 4044719554) }, [a._v(" " + a._s(i.t("retry")) + " ")]) : a._e(), i.isLoading || i.hasError ?
|
|
446
|
+
return [e(i.RefreshIcon, { attrs: { id: i.retryFileButtonId, "svg-title": `${i.t("retry")} - ${a.file.data.name} ` } })];
|
|
447
|
+
}, proxy: !0 }], null, !1, 4044719554) }, [a._v(" " + a._s(i.t("retry")) + " ")]) : a._e(), i.isLoading || i.hasError ? e(i.BentoButton, { ref: "cancelFileButtonRef", attrs: { "aria-labelledby": `${i.fileErrorsSectionId} ${i.cancelFileButtonId}`, variant: "tertiary" }, on: { click: function(o) {
|
|
442
448
|
return i.emit("cancel");
|
|
443
449
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
444
|
-
return [
|
|
445
|
-
}, proxy: !0 }], null, !1, 1610167681) }) :
|
|
450
|
+
return [e(i.CrossIcon, { attrs: { id: i.cancelFileButtonId, "svg-title": `${i.t("cancel")} - ${a.file.data.name}` } })];
|
|
451
|
+
}, proxy: !0 }], null, !1, 1610167681) }) : e(i.BentoButton, { ref: "removeFileButtonRef", attrs: { "aria-labelledby": `${i.fileErrorsSectionId} ${i.removeFileButtonId}`, variant: "tertiary" }, on: { click: function(o) {
|
|
446
452
|
return i.emit("remove");
|
|
447
453
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
448
|
-
return [
|
|
454
|
+
return [e(i.BinIcon, { attrs: { id: i.removeFileButtonId, "svg-title": `${i.t("remove")} - ${a.file.data.name}` } })];
|
|
449
455
|
}, proxy: !0 }], null, !1, 3607204026) })], 1)]);
|
|
450
|
-
},
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
456
|
+
}, ve = [], fe = /* @__PURE__ */ g(
|
|
457
|
+
me,
|
|
458
|
+
ue,
|
|
459
|
+
ve,
|
|
454
460
|
!1,
|
|
455
461
|
null,
|
|
456
462
|
"d03f417e"
|
|
457
463
|
);
|
|
458
|
-
const
|
|
464
|
+
const xe = fe.exports, ge = {
|
|
459
465
|
"en-US": {
|
|
460
466
|
maxFileSize: "Max file size: {size}",
|
|
461
467
|
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
@@ -463,11 +469,27 @@ const xt = ft.exports, gt = {
|
|
|
463
469
|
maxImageWidth: "Max image width: {width}px",
|
|
464
470
|
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
465
471
|
supportedFileTypes: "Supported file types: {list}"
|
|
472
|
+
},
|
|
473
|
+
"ja-JP": {
|
|
474
|
+
maxFileSize: "最大ファイルサイズ:{size}",
|
|
475
|
+
maxImageDimensions: "最大画像サイズ: {width} × {height}px",
|
|
476
|
+
maxImageHeight: "最大画像高さ: {height}px",
|
|
477
|
+
maxImageWidth: "最大画像幅: {width}px",
|
|
478
|
+
maxUpload: "最大アップロード: {count}件のファイル |最大アップロード: {count}件のファイル",
|
|
479
|
+
supportedFileTypes: "対応ファイル形式: {list}"
|
|
480
|
+
},
|
|
481
|
+
"pt-BR": {
|
|
482
|
+
maxFileSize: "Tamanho máx. do arquivo: {size}",
|
|
483
|
+
maxImageDimensions: "Dimensões máximas da imagem: {width} × {height}px",
|
|
484
|
+
maxImageHeight: "Altura máx. da imagem: {height}px",
|
|
485
|
+
maxImageWidth: "Largura máxima da imagem: {width}px",
|
|
486
|
+
maxUpload: "Máximo de upload: {count} arquivo | Máximo de upload: {count} arquivos",
|
|
487
|
+
supportedFileTypes: "Tipos de arquivo aceitos: {list}"
|
|
466
488
|
}
|
|
467
|
-
},
|
|
468
|
-
i18n: { messages:
|
|
469
|
-
},
|
|
470
|
-
...
|
|
489
|
+
}, he = {
|
|
490
|
+
i18n: { messages: ge }
|
|
491
|
+
}, be = /* @__PURE__ */ N({
|
|
492
|
+
...he,
|
|
471
493
|
__name: "file-uploader-restrictions",
|
|
472
494
|
props: {
|
|
473
495
|
condensed: { default: null },
|
|
@@ -477,8 +499,8 @@ const xt = ft.exports, gt = {
|
|
|
477
499
|
maxSize: { default: null },
|
|
478
500
|
supportedFileTypes: { default: null }
|
|
479
501
|
},
|
|
480
|
-
setup(
|
|
481
|
-
const a =
|
|
502
|
+
setup(t) {
|
|
503
|
+
const a = t, { t: e, tc: i, n: o, locale: c } = W(), p = m(() => ({
|
|
482
504
|
"b-file-uploader-restrictions--condensed": a.condensed,
|
|
483
505
|
"b-file-uploader-restrictions--disabled": a.disabled
|
|
484
506
|
}));
|
|
@@ -493,23 +515,23 @@ const xt = ft.exports, gt = {
|
|
|
493
515
|
const {
|
|
494
516
|
value: { width: v, height: C }
|
|
495
517
|
} = a.maxDimensions;
|
|
496
|
-
return v && C ?
|
|
518
|
+
return v && C ? e("maxImageDimensions", { width: o(v), height: o(C) }) : v ? e("maxImageWidth", { width: o(v) }) : C ? e("maxImageHeight", { height: o(C) }) : null;
|
|
497
519
|
});
|
|
498
|
-
return { __sfc: !0, props: a, t, tc: i, n: o, locale:
|
|
520
|
+
return { __sfc: !0, props: a, t: e, tc: i, n: o, locale: c, conditionalClasses: p, setRestrictionErrorClass: s, maxDimensionsLabel: d, BentoTypography: na, formatFileSize: Ea };
|
|
499
521
|
}
|
|
500
522
|
});
|
|
501
|
-
var
|
|
502
|
-
var a = this,
|
|
503
|
-
return
|
|
504
|
-
},
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
523
|
+
var _e = function() {
|
|
524
|
+
var a = this, e = a._self._c, i = a._self._setupProxy;
|
|
525
|
+
return e("div", { staticClass: "b-file-uploader-restrictions", class: i.conditionalClasses }, [a.supportedFileTypes ? e(i.BentoTypography, { class: i.setRestrictionErrorClass(a.supportedFileTypes.error) }, [a._v(" " + a._s(i.t("supportedFileTypes", { list: a.supportedFileTypes.value })) + " ")]) : a._e(), a.maxSize ? e(i.BentoTypography, { class: i.setRestrictionErrorClass(a.maxSize.error) }, [a._v(" " + a._s(i.t("maxFileSize", { size: i.formatFileSize(i.locale, a.maxSize.value) })) + " ")]) : a._e(), a.maxDimensions ? e(i.BentoTypography, { class: i.setRestrictionErrorClass(a.maxDimensions.error) }, [a._v(" " + a._s(i.maxDimensionsLabel) + " ")]) : a._e(), a.maxCount ? e(i.BentoTypography, { class: i.setRestrictionErrorClass(a.maxCount.error) }, [a._v(" " + a._s(i.tc("maxUpload", a.maxCount.value, { count: i.n(a.maxCount.value) })) + " ")]) : a._e()], 1);
|
|
526
|
+
}, we = [], ye = /* @__PURE__ */ g(
|
|
527
|
+
be,
|
|
528
|
+
_e,
|
|
529
|
+
we,
|
|
508
530
|
!1,
|
|
509
531
|
null,
|
|
510
532
|
"c49d2e15"
|
|
511
533
|
);
|
|
512
|
-
const
|
|
534
|
+
const Ce = ye.exports, za = {
|
|
513
535
|
"application/prs.cww": ["cww"],
|
|
514
536
|
"application/prs.xsf+xml": ["xsf"],
|
|
515
537
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1208,8 +1230,8 @@ const Ct = yt.exports, ja = {
|
|
|
1208
1230
|
"video/x-smv": ["smv"],
|
|
1209
1231
|
"x-conference/x-cooltalk": ["ice"]
|
|
1210
1232
|
};
|
|
1211
|
-
Object.freeze(
|
|
1212
|
-
const
|
|
1233
|
+
Object.freeze(za);
|
|
1234
|
+
const Fa = {
|
|
1213
1235
|
"application/andrew-inset": ["ez"],
|
|
1214
1236
|
"application/appinstaller": ["appinstaller"],
|
|
1215
1237
|
"application/applixware": ["aw"],
|
|
@@ -1561,29 +1583,29 @@ const za = {
|
|
|
1561
1583
|
"video/quicktime": ["qt", "mov"],
|
|
1562
1584
|
"video/webm": ["webm"]
|
|
1563
1585
|
};
|
|
1564
|
-
Object.freeze(
|
|
1565
|
-
var _ = function(
|
|
1566
|
-
if (
|
|
1567
|
-
if (typeof a == "function" ?
|
|
1568
|
-
return
|
|
1586
|
+
Object.freeze(Fa);
|
|
1587
|
+
var _ = function(t, a, e, i) {
|
|
1588
|
+
if (e === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
1589
|
+
if (typeof a == "function" ? t !== a || !i : !a.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1590
|
+
return e === "m" ? i : e === "a" ? i.call(t) : i ? i.value : a.get(t);
|
|
1569
1591
|
}, $, V, E;
|
|
1570
|
-
class
|
|
1592
|
+
class ke {
|
|
1571
1593
|
constructor(...a) {
|
|
1572
1594
|
$.set(this, /* @__PURE__ */ new Map()), V.set(this, /* @__PURE__ */ new Map()), E.set(this, /* @__PURE__ */ new Map());
|
|
1573
|
-
for (const
|
|
1574
|
-
this.define(
|
|
1595
|
+
for (const e of a)
|
|
1596
|
+
this.define(e);
|
|
1575
1597
|
}
|
|
1576
|
-
define(a,
|
|
1598
|
+
define(a, e = !1) {
|
|
1577
1599
|
for (let [i, o] of Object.entries(a)) {
|
|
1578
1600
|
i = i.toLowerCase(), o = o.map((s) => s.toLowerCase()), _(this, E, "f").has(i) || _(this, E, "f").set(i, /* @__PURE__ */ new Set());
|
|
1579
|
-
const
|
|
1601
|
+
const c = _(this, E, "f").get(i);
|
|
1580
1602
|
let p = !0;
|
|
1581
1603
|
for (let s of o) {
|
|
1582
1604
|
const d = s.startsWith("*");
|
|
1583
|
-
if (s = d ? s.slice(1) : s,
|
|
1605
|
+
if (s = d ? s.slice(1) : s, c == null || c.add(s), p && _(this, V, "f").set(i, s), p = !1, d)
|
|
1584
1606
|
continue;
|
|
1585
1607
|
const v = _(this, $, "f").get(s);
|
|
1586
|
-
if (v && v != i && !
|
|
1608
|
+
if (v && v != i && !e)
|
|
1587
1609
|
throw new Error(`"${i} -> ${s}" conflicts with "${v} -> ${s}". Pass \`force=true\` to override this definition.`);
|
|
1588
1610
|
_(this, $, "f").set(s, i);
|
|
1589
1611
|
}
|
|
@@ -1593,12 +1615,12 @@ class kt {
|
|
|
1593
1615
|
getType(a) {
|
|
1594
1616
|
if (typeof a != "string")
|
|
1595
1617
|
return null;
|
|
1596
|
-
const
|
|
1597
|
-
return !(i.length <
|
|
1618
|
+
const e = a.replace(/^.*[/\\]/, "").toLowerCase(), i = e.replace(/^.*\./, "").toLowerCase(), o = e.length < a.length;
|
|
1619
|
+
return !(i.length < e.length - 1) && o ? null : _(this, $, "f").get(i) ?? null;
|
|
1598
1620
|
}
|
|
1599
1621
|
getExtension(a) {
|
|
1600
|
-
var
|
|
1601
|
-
return typeof a != "string" ? null : (a = (
|
|
1622
|
+
var e;
|
|
1623
|
+
return typeof a != "string" ? null : (a = (e = a == null ? void 0 : a.split) == null ? void 0 : e.call(a, ";")[0], (a && _(this, V, "f").get(a.trim().toLowerCase())) ?? null);
|
|
1602
1624
|
}
|
|
1603
1625
|
getAllExtensions(a) {
|
|
1604
1626
|
return typeof a != "string" ? null : _(this, E, "f").get(a.toLowerCase()) ?? null;
|
|
@@ -1619,7 +1641,7 @@ class kt {
|
|
|
1619
1641
|
}
|
|
1620
1642
|
}
|
|
1621
1643
|
$ = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
|
|
1622
|
-
const
|
|
1644
|
+
const ja = new ke(Fa, za)._freeze(), Re = {
|
|
1623
1645
|
"en-US": {
|
|
1624
1646
|
audioFiles: "audio files",
|
|
1625
1647
|
browseFiles: "Browse files",
|
|
@@ -1631,70 +1653,94 @@ const Ia = new kt(za, ja)._freeze(), Rt = {
|
|
|
1631
1653
|
tooManyFiles: "Too many files",
|
|
1632
1654
|
videoFiles: "video files",
|
|
1633
1655
|
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
1656
|
+
},
|
|
1657
|
+
"ja-JP": {
|
|
1658
|
+
audioFiles: "オーディオファイル",
|
|
1659
|
+
browseFiles: "ファイルを参照",
|
|
1660
|
+
dropArea: "ドロップエリア",
|
|
1661
|
+
dropFiles: "ファイルをドロップしてアップロード | ファイルをドロップしてアップロード",
|
|
1662
|
+
fileExceedsSizeLimit: "ファイルがサイズ制限を超えています",
|
|
1663
|
+
imageFiles: "画像ファイル",
|
|
1664
|
+
noFilesUploaded: "ファイルはアップロードされていません",
|
|
1665
|
+
tooManyFiles: "ファイルが多すぎます",
|
|
1666
|
+
videoFiles: "ビデオファイル",
|
|
1667
|
+
youHaveExceededTheMaximum: "ファイル{count}件の最大制限を超えました。続行する前にいくつかのファイルを削除してください。"
|
|
1668
|
+
},
|
|
1669
|
+
"pt-BR": {
|
|
1670
|
+
audioFiles: "arquivos de áudio",
|
|
1671
|
+
browseFiles: "Procurar arquivos",
|
|
1672
|
+
dropArea: "Área de soltar",
|
|
1673
|
+
dropFiles: "Soltar arquivo para upload | Soltar arquivos para upload",
|
|
1674
|
+
fileExceedsSizeLimit: "O arquivo excede o limite de tamanho",
|
|
1675
|
+
imageFiles: "arquivos de imagem",
|
|
1676
|
+
noFilesUploaded: "Nenhum arquivo carregado",
|
|
1677
|
+
tooManyFiles: "Muitos arquivos",
|
|
1678
|
+
videoFiles: "arquivos de vídeo",
|
|
1679
|
+
youHaveExceededTheMaximum: "Você excedeu o limite máximo de {count} arquivos. Retire alguns arquivos antes de prosseguir."
|
|
1634
1680
|
}
|
|
1635
1681
|
};
|
|
1636
|
-
function
|
|
1637
|
-
return
|
|
1682
|
+
function Ee(t) {
|
|
1683
|
+
return t.includes("/") ? `.${ja.getExtension(t).toUpperCase()}` : t.toUpperCase();
|
|
1638
1684
|
}
|
|
1639
|
-
function
|
|
1640
|
-
const { locale: a, t } = W();
|
|
1685
|
+
function ze(t) {
|
|
1686
|
+
const { locale: a, t: e } = W();
|
|
1641
1687
|
return { supportedFileTypeList: m(() => {
|
|
1642
1688
|
const o = new Intl.ListFormat(a.value, { style: "short", type: "unit" });
|
|
1643
|
-
return
|
|
1644
|
-
|
|
1645
|
-
switch (
|
|
1689
|
+
return t != null && t.value ? o.format(
|
|
1690
|
+
t.value.split(",").map((c) => {
|
|
1691
|
+
switch (c.trim()) {
|
|
1646
1692
|
case "audio/*":
|
|
1647
|
-
return
|
|
1693
|
+
return e("audioFiles");
|
|
1648
1694
|
case "image/*":
|
|
1649
|
-
return
|
|
1695
|
+
return e("imageFiles");
|
|
1650
1696
|
case "video/*":
|
|
1651
|
-
return
|
|
1697
|
+
return e("videoFiles");
|
|
1652
1698
|
default:
|
|
1653
|
-
return
|
|
1699
|
+
return Ee(c);
|
|
1654
1700
|
}
|
|
1655
1701
|
})
|
|
1656
1702
|
) : null;
|
|
1657
1703
|
}) };
|
|
1658
1704
|
}
|
|
1659
|
-
function
|
|
1660
|
-
return
|
|
1705
|
+
function Fe(t) {
|
|
1706
|
+
return ja.getType(t) ?? t;
|
|
1661
1707
|
}
|
|
1662
|
-
function
|
|
1663
|
-
const
|
|
1708
|
+
function je({ maxCount: t, accept: a }) {
|
|
1709
|
+
const e = ta({
|
|
1664
1710
|
invalidTypes: !1,
|
|
1665
1711
|
partiallyInvalidTypes: !1,
|
|
1666
1712
|
maxCountOverflow: !1
|
|
1667
|
-
}), i =
|
|
1713
|
+
}), i = ta({
|
|
1668
1714
|
dragging: !1,
|
|
1669
1715
|
error: !1
|
|
1670
|
-
}), o = m(() => a.value ? a.value.split(",").map((d) =>
|
|
1671
|
-
function
|
|
1672
|
-
i.dragging = !1, i.error = !1,
|
|
1716
|
+
}), o = m(() => a.value ? a.value.split(",").map((d) => Fe(d.trim().toLocaleLowerCase())) : void 0);
|
|
1717
|
+
function c() {
|
|
1718
|
+
i.dragging = !1, i.error = !1, e.invalidTypes = !1, e.partiallyInvalidTypes = !1, e.maxCountOverflow = !1;
|
|
1673
1719
|
}
|
|
1674
1720
|
function p(s, d) {
|
|
1675
|
-
if (i.dragging = !0, (!d.dataTransfer.types.includes("Files") || s >
|
|
1721
|
+
if (i.dragging = !0, (!d.dataTransfer.types.includes("Files") || s > t.value) && (e.maxCountOverflow = !0, i.error = !0), !o.value)
|
|
1676
1722
|
return;
|
|
1677
1723
|
let v = 0;
|
|
1678
1724
|
for (const C of d.dataTransfer.items)
|
|
1679
1725
|
o.value.includes(C.type) && v++;
|
|
1680
1726
|
if (v === 0) {
|
|
1681
|
-
i.error = !0,
|
|
1727
|
+
i.error = !0, e.invalidTypes = !0;
|
|
1682
1728
|
return;
|
|
1683
1729
|
}
|
|
1684
|
-
!
|
|
1730
|
+
!e.invalidTypes && v !== d.dataTransfer.items.length && (i.error = !0, e.partiallyInvalidTypes = !0);
|
|
1685
1731
|
}
|
|
1686
1732
|
return {
|
|
1687
1733
|
dragState: i,
|
|
1688
|
-
dragErrors:
|
|
1689
|
-
resetDragState:
|
|
1734
|
+
dragErrors: e,
|
|
1735
|
+
resetDragState: c,
|
|
1690
1736
|
onDragEnterValidations: p
|
|
1691
1737
|
};
|
|
1692
1738
|
}
|
|
1693
|
-
const
|
|
1739
|
+
const Ie = {
|
|
1694
1740
|
model: { prop: "modelValue" },
|
|
1695
|
-
i18n: { messages:
|
|
1696
|
-
}, $
|
|
1697
|
-
...
|
|
1741
|
+
i18n: { messages: Re }
|
|
1742
|
+
}, $e = /* @__PURE__ */ N({
|
|
1743
|
+
...Ie,
|
|
1698
1744
|
__name: "file-uploader",
|
|
1699
1745
|
props: {
|
|
1700
1746
|
description: { default: null },
|
|
@@ -1714,91 +1760,91 @@ const Ft = {
|
|
|
1714
1760
|
modelValue: { default: null }
|
|
1715
1761
|
},
|
|
1716
1762
|
emits: ["change", "input", "update:model-value", "error:upload"],
|
|
1717
|
-
setup(
|
|
1718
|
-
const
|
|
1763
|
+
setup(t, { emit: a }) {
|
|
1764
|
+
const e = t, { t: i, tc: o, n: c } = W(), { emitValue: p } = Ha(a);
|
|
1719
1765
|
function s(n) {
|
|
1720
1766
|
return !!n && typeof n.length == "number" && typeof n.item == "function";
|
|
1721
1767
|
}
|
|
1722
1768
|
Ca(() => {
|
|
1723
|
-
s(
|
|
1769
|
+
s(e.modelValue) || qa(
|
|
1724
1770
|
"BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
|
|
1725
1771
|
"Use FileList instead.",
|
|
1726
1772
|
"2.0.0"
|
|
1727
1773
|
);
|
|
1728
1774
|
});
|
|
1729
|
-
const { supportedFileTypeList: d } =
|
|
1730
|
-
const n =
|
|
1775
|
+
const { supportedFileTypeList: d } = ze(ia(e, "accept")), v = w("browse-button"), C = w("custom-text"), B = w("drop-files-text"), z = w("comma-text"), O = w("file-uploader-restrictions"), r = h(null), T = h([]), k = h(null), q = h(null), G = w("input"), Y = w("input-error"), J = m(() => {
|
|
1776
|
+
const n = e.condensed ? "" : `${B} ${z}`, l = e.description ? `${C} ${z}` : "", f = `${O} ${z}`;
|
|
1731
1777
|
return `${n} ${l} ${f} ${v}`;
|
|
1732
|
-
}), { dragState:
|
|
1733
|
-
accept: ia(
|
|
1734
|
-
maxCount: ia(
|
|
1735
|
-
}),
|
|
1778
|
+
}), { dragState: F, dragErrors: R, resetDragState: j, onDragEnterValidations: L } = je({
|
|
1779
|
+
accept: ia(e, "accept"),
|
|
1780
|
+
maxCount: ia(e, "maxCount")
|
|
1781
|
+
}), H = m(() => {
|
|
1736
1782
|
var n, l, f;
|
|
1737
1783
|
return {
|
|
1738
|
-
condensed:
|
|
1739
|
-
disabled:
|
|
1784
|
+
condensed: e.condensed,
|
|
1785
|
+
disabled: e.disabled,
|
|
1740
1786
|
maxCount: S.value ? {
|
|
1741
|
-
value:
|
|
1787
|
+
value: e.maxCount,
|
|
1742
1788
|
error: R.maxCountOverflow || pa.value
|
|
1743
1789
|
} : null,
|
|
1744
|
-
maxDimensions:
|
|
1745
|
-
value:
|
|
1746
|
-
error: (n =
|
|
1790
|
+
maxDimensions: e.maxDimensions ? {
|
|
1791
|
+
value: e.maxDimensions,
|
|
1792
|
+
error: (n = r.value) == null ? void 0 : n.some((b) => b.errors.includes(x.ERROR_DIMENSIONS))
|
|
1747
1793
|
} : null,
|
|
1748
|
-
maxSize:
|
|
1749
|
-
value:
|
|
1750
|
-
error: (l =
|
|
1794
|
+
maxSize: e.maxSize ? {
|
|
1795
|
+
value: e.maxSize,
|
|
1796
|
+
error: (l = r.value) == null ? void 0 : l.some((b) => b.errors.includes(x.ERROR_SIZE))
|
|
1751
1797
|
} : null,
|
|
1752
1798
|
supportedFileTypes: d.value ? {
|
|
1753
1799
|
value: d.value,
|
|
1754
|
-
error: R.invalidTypes || R.partiallyInvalidTypes || ((f =
|
|
1800
|
+
error: R.invalidTypes || R.partiallyInvalidTypes || ((f = r.value) == null ? void 0 : f.some((b) => b.errors.includes(x.ERROR_TYPE)))
|
|
1755
1801
|
} : null
|
|
1756
1802
|
};
|
|
1757
|
-
}),
|
|
1758
|
-
[`b-file-uploader--${P.DISABLED}`]:
|
|
1759
|
-
[`b-file-uploader--${P.DRAG_OVER}`]:
|
|
1803
|
+
}), I = h(), X = m(() => ({
|
|
1804
|
+
[`b-file-uploader--${P.DISABLED}`]: e.disabled,
|
|
1805
|
+
[`b-file-uploader--${P.DRAG_OVER}`]: F.dragging,
|
|
1760
1806
|
[`b-file-uploader--${P.ERROR}`]: oa.value,
|
|
1761
|
-
"b-file-uploader--condensed":
|
|
1762
|
-
})), S = m(() =>
|
|
1807
|
+
"b-file-uploader--condensed": e.condensed
|
|
1808
|
+
})), S = m(() => e.maxCount > 1), K = m(() => {
|
|
1763
1809
|
var n;
|
|
1764
|
-
return
|
|
1810
|
+
return e.maxCount && ((n = r.value) == null ? void 0 : n.length) >= e.maxCount || e.readonly;
|
|
1765
1811
|
}), M = m(() => {
|
|
1766
1812
|
var n;
|
|
1767
|
-
return (n =
|
|
1813
|
+
return (n = r.value) == null ? void 0 : n.some((l) => l.state === "loading");
|
|
1768
1814
|
}), Q = (n) => (l) => {
|
|
1769
1815
|
T.value[n] = l;
|
|
1770
1816
|
};
|
|
1771
1817
|
function D(n) {
|
|
1772
1818
|
if (n) {
|
|
1773
|
-
|
|
1819
|
+
ra(n), ca(n);
|
|
1774
1820
|
const l = da(n);
|
|
1775
1821
|
a("change", l), p(l);
|
|
1776
1822
|
} else
|
|
1777
1823
|
a("change", void 0), p(void 0);
|
|
1778
1824
|
}
|
|
1779
|
-
const oa = m(() => !!
|
|
1825
|
+
const oa = m(() => !!e.errorMessage || F.error), pa = m(() => {
|
|
1780
1826
|
var n;
|
|
1781
|
-
return ((n =
|
|
1827
|
+
return ((n = r.value) == null ? void 0 : n.length) > e.maxCount;
|
|
1782
1828
|
}), la = h(!1), sa = m(() => {
|
|
1783
1829
|
var n;
|
|
1784
|
-
return (n =
|
|
1830
|
+
return (n = r.value) == null ? void 0 : n.some((l) => l.state === "error");
|
|
1785
1831
|
});
|
|
1786
|
-
|
|
1832
|
+
ea(sa, (n) => {
|
|
1787
1833
|
M.value || a("error:upload", n);
|
|
1788
1834
|
});
|
|
1789
1835
|
async function U() {
|
|
1790
1836
|
var n;
|
|
1791
|
-
if (await Ba(),
|
|
1837
|
+
if (await Ba(), r.value.length === e.maxCount) {
|
|
1792
1838
|
(n = T.value[0]) == null || n.focus();
|
|
1793
1839
|
return;
|
|
1794
1840
|
}
|
|
1795
|
-
|
|
1841
|
+
q.value.focus();
|
|
1796
1842
|
}
|
|
1797
|
-
async function
|
|
1798
|
-
|
|
1843
|
+
async function Ia(n) {
|
|
1844
|
+
r.value = r.value.filter(({ id: l }) => l !== n.id), await U(), D(r.value);
|
|
1799
1845
|
}
|
|
1800
1846
|
function A(n) {
|
|
1801
|
-
const l =
|
|
1847
|
+
const l = ta({
|
|
1802
1848
|
id: w("file"),
|
|
1803
1849
|
data: n,
|
|
1804
1850
|
errors: [],
|
|
@@ -1806,62 +1852,62 @@ const Ft = {
|
|
|
1806
1852
|
state: y.LOADING,
|
|
1807
1853
|
type: ui(n)
|
|
1808
1854
|
});
|
|
1809
|
-
return fi(l,
|
|
1855
|
+
return fi(l, e.accept, e.maxDimensions), l;
|
|
1810
1856
|
}
|
|
1811
1857
|
function $a(n) {
|
|
1812
1858
|
var l;
|
|
1813
|
-
((l =
|
|
1859
|
+
((l = r.value) == null ? void 0 : l.length) === e.maxCount && n.preventDefault();
|
|
1814
1860
|
}
|
|
1815
1861
|
async function aa(n) {
|
|
1816
|
-
if (
|
|
1817
|
-
Z(),
|
|
1862
|
+
if (e.maxCount === 1 && n.length > e.maxCount) {
|
|
1863
|
+
Z(), j();
|
|
1818
1864
|
return;
|
|
1819
1865
|
}
|
|
1820
|
-
S.value ?
|
|
1866
|
+
S.value ? r.value = [...r.value || [], ...Array.from(n).map((l) => A(l))] : (r.value = [A(n[0])], await U()), D(r.value);
|
|
1821
1867
|
}
|
|
1822
1868
|
function Ta(n) {
|
|
1823
1869
|
var f, b;
|
|
1824
|
-
if (
|
|
1870
|
+
if (e.disabled)
|
|
1825
1871
|
return;
|
|
1826
|
-
|
|
1827
|
-
const l = (((f = n.dataTransfer.items) == null ? void 0 : f.length) ?? 0) + (((b =
|
|
1872
|
+
I.value = n.target;
|
|
1873
|
+
const l = (((f = n.dataTransfer.items) == null ? void 0 : f.length) ?? 0) + (((b = r.value) == null ? void 0 : b.length) ?? 0);
|
|
1828
1874
|
L(l, n);
|
|
1829
1875
|
}
|
|
1830
1876
|
function Z() {
|
|
1831
|
-
|
|
1877
|
+
I.value = null;
|
|
1832
1878
|
}
|
|
1833
1879
|
function La(n) {
|
|
1834
|
-
|
|
1880
|
+
I.value === n.target && (Z(), j());
|
|
1835
1881
|
}
|
|
1836
1882
|
function Sa(n) {
|
|
1837
|
-
n.preventDefault(),
|
|
1883
|
+
n.preventDefault(), e.disabled && (n.dataTransfer.dropEffect = "none");
|
|
1838
1884
|
}
|
|
1839
1885
|
async function Ma(n) {
|
|
1840
1886
|
var l;
|
|
1841
|
-
|
|
1887
|
+
e.disabled || (!R.invalidTypes && ((l = n.dataTransfer.files) != null && l.length) && aa(n.dataTransfer.files), Z(), j());
|
|
1842
1888
|
}
|
|
1843
1889
|
async function Da() {
|
|
1844
1890
|
var n;
|
|
1845
1891
|
(n = k.value.files) != null && n.length && aa(k.value.files), k.value.value = "", await U();
|
|
1846
1892
|
}
|
|
1847
|
-
|
|
1848
|
-
() =>
|
|
1893
|
+
ea(
|
|
1894
|
+
() => e.modelValue,
|
|
1849
1895
|
(n) => {
|
|
1850
1896
|
if (n && s(n)) {
|
|
1851
1897
|
const f = Array.from(n);
|
|
1852
|
-
|
|
1853
|
-
} else !n &&
|
|
1898
|
+
r.value = f.map((b) => A(b));
|
|
1899
|
+
} else !n && r.value && (r.value = null);
|
|
1854
1900
|
},
|
|
1855
1901
|
{ immediate: !0 }
|
|
1856
1902
|
);
|
|
1857
|
-
function
|
|
1858
|
-
const l =
|
|
1903
|
+
function ra(n) {
|
|
1904
|
+
const l = e.maxCount && n.length <= e.maxCount;
|
|
1859
1905
|
la.value = !l;
|
|
1860
1906
|
}
|
|
1861
|
-
function
|
|
1862
|
-
|
|
1907
|
+
function ca(n) {
|
|
1908
|
+
e.maxSize && n.forEach((l) => {
|
|
1863
1909
|
const f = l;
|
|
1864
|
-
f.data.size >
|
|
1910
|
+
f.data.size > e.maxSize && (f.state = y.ERROR, f.errors.push(x.ERROR_SIZE));
|
|
1865
1911
|
});
|
|
1866
1912
|
}
|
|
1867
1913
|
function da(n) {
|
|
@@ -1870,18 +1916,18 @@ const Ft = {
|
|
|
1870
1916
|
);
|
|
1871
1917
|
if (l.length) {
|
|
1872
1918
|
const f = new DataTransfer();
|
|
1873
|
-
return l.forEach(({ data: b, id:
|
|
1919
|
+
return l.forEach(({ data: b, id: Me }) => {
|
|
1874
1920
|
f.items.add(b);
|
|
1875
1921
|
}), f.files;
|
|
1876
1922
|
}
|
|
1877
1923
|
}
|
|
1878
|
-
return { __sfc: !0, t: i, tc: o, n:
|
|
1924
|
+
return { __sfc: !0, t: i, tc: o, n: c, emit: a, props: e, emitValue: p, isFileList: s, supportedFileTypeList: d, browseFilesButtonId: v, customTextId: C, dropFilesTextId: B, commaTextId: z, fileUploaderRestrictionsId: O, files: r, fileCardRefs: T, inputRef: k, dropAreaRef: q, inputFieldId: G, errorId: Y, fileUploadAriaLabelledBy: J, dragState: F, dragErrors: R, resetDragState: j, onDragEnterValidations: L, fileUploadRestrictionsProps: H, enterTarget: I, conditionalClasses: X, isMultiple: S, hideArea: K, loadingStateExists: M, registerFileCardRef: Q, emitUpdate: D, hasError: oa, maxFileCountError: pa, maxFileError: la, hasRestrictionError: sa, resetFocus: U, removeFile: Ia, processFile: A, onInputClick: $a, onFileInput: aa, onDragEnter: Ta, resetEnterTarget: Z, onDragLeave: La, onDragOver: Sa, onDrop: Ma, onInputChange: Da, verifyFileCount: ra, verifyFileSize: ca, convertToFileList: da, UploadIcon: ei, WarningFilledIcon: ka, BentoAlert: Oa, BentoTypography: na, ErrorMessage: Xa, FieldLabel: Ja, FileUploaderFileCard: xe, FileUploaderRestrictions: Ce };
|
|
1879
1925
|
}
|
|
1880
1926
|
});
|
|
1881
|
-
var
|
|
1882
|
-
var o,
|
|
1883
|
-
var a = this,
|
|
1884
|
-
return
|
|
1927
|
+
var Te = function() {
|
|
1928
|
+
var o, c;
|
|
1929
|
+
var a = this, e = a._self._c, i = a._self._setupProxy;
|
|
1930
|
+
return e("div", { staticClass: "b-file-uploader", class: i.conditionalClasses }, [e(i.FieldLabel, { staticClass: "b-file-uploader__label", attrs: { for: i.inputFieldId, label: a.label, optional: a.optional, required: a.required, "tooltip-text": a.tooltipText } }), e("input", { ref: "inputRef", staticClass: "b-file-uploader__input", attrs: { id: i.inputFieldId, "aria-hidden": "true", type: "file", tabindex: "-1", "data-testid": "input", accept: a.accept, disabled: a.disabled, multiple: i.isMultiple }, on: { change: i.onInputChange, click: i.onInputClick } }), e("span", { staticClass: "b-file-uploader__invisible-comma", attrs: { id: i.commaTextId, "aria-hidden": "true" } }, [a._v(" , ")]), i.hideArea ? a._e() : e("div", { ref: "dropAreaRef", staticClass: "b-file-uploader__area", attrs: { "aria-labelledby": i.fileUploadAriaLabelledBy, role: "button", tabindex: a.disabled ? -1 : 0 }, on: { click: function(p) {
|
|
1885
1931
|
return i.inputRef.click();
|
|
1886
1932
|
}, dragenter: function(p) {
|
|
1887
1933
|
return p.stopPropagation(), p.preventDefault(), i.onDragEnter.apply(null, arguments);
|
|
@@ -1893,25 +1939,25 @@ var Tt = function() {
|
|
|
1893
1939
|
return !p.type.indexOf("key") && a._k(p.keyCode, "enter", 13, p.key, "Enter") ? null : (p.preventDefault(), i.inputRef.click());
|
|
1894
1940
|
}, function(p) {
|
|
1895
1941
|
return !p.type.indexOf("key") && a._k(p.keyCode, "space", 32, p.key, [" ", "Spacebar"]) ? null : (p.preventDefault(), i.inputRef.click());
|
|
1896
|
-
}] } }, [
|
|
1942
|
+
}] } }, [e("div", { staticClass: "b-file-uploader__icon", attrs: { "aria-hidden": "true" } }, [i.hasError ? e(i.WarningFilledIcon) : e(i.UploadIcon)], 1), a.condensed ? a._e() : [e(i.BentoTypography, { staticClass: "b-file-uploader__title", attrs: { id: i.dropFilesTextId, el: "span", strongest: "" } }, [a._v(" " + a._s(i.tc("dropFiles", a.maxCount)) + " ")]), a.description ? e(i.BentoTypography, { staticClass: "b-file-uploader__description", attrs: { id: i.customTextId, el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), e(i.FileUploaderRestrictions, a._b({ attrs: { id: i.fileUploaderRestrictionsId } }, "file-uploader-restrictions", i.fileUploadRestrictionsProps, !1))], e(i.BentoTypography, { staticClass: "b-file-uploader__button", attrs: { id: i.browseFilesButtonId, stronger: "" } }, [a._v(" " + a._s(i.t("browseFiles")) + " ")])], 2), i.hasError && a.errorMessage ? e(i.ErrorMessage, { staticClass: "b-file-uploader__error-message", attrs: { id: i.errorId, "error-message": a.errorMessage } }) : a._e(), a.condensed && a.description ? e(i.BentoTypography, { staticClass: "b-file-uploader__description b-file-uploader__description--condensed", attrs: { id: i.customTextId, "aria-hidden": "true", el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), a.condensed ? e(i.FileUploaderRestrictions, a._b({ attrs: { id: i.fileUploaderRestrictionsId } }, "file-uploader-restrictions", i.fileUploadRestrictionsProps, !1)) : a._e(), i.maxFileCountError ? e(i.BentoAlert, { attrs: { type: "critical" }, scopedSlots: a._u([{ key: "description", fn: function() {
|
|
1897
1943
|
return [a._v(" " + a._s(i.t("youHaveExceededTheMaximum", { count: i.n(i.props.maxCount) })) + " ")];
|
|
1898
|
-
}, proxy: !0 }], null, !1, 2252760379) }, [a._v(" " + a._s(i.t("tooManyFiles")) + " ")]) : a._e(),
|
|
1899
|
-
return
|
|
1944
|
+
}, proxy: !0 }], null, !1, 2252760379) }, [a._v(" " + a._s(i.t("tooManyFiles")) + " ")]) : a._e(), e("div", { directives: [{ name: "show", rawName: "v-show", value: (o = i.files) == null ? void 0 : o.length, expression: "files?.length" }], staticClass: "b-file-uploader__files" }, a._l(i.files, function(p, s) {
|
|
1945
|
+
return e(i.FileUploaderFileCard, { key: p.id, ref: i.registerFileCardRef(s), refInFor: !0, attrs: { file: p, "supported-file-types": i.supportedFileTypeList, readonly: a.readonly }, on: { cancel: function(d) {
|
|
1900
1946
|
return i.removeFile(p);
|
|
1901
1947
|
}, remove: function(d) {
|
|
1902
1948
|
return i.removeFile(p);
|
|
1903
1949
|
} } });
|
|
1904
|
-
}), 1), !((
|
|
1905
|
-
},
|
|
1906
|
-
$
|
|
1907
|
-
|
|
1908
|
-
|
|
1950
|
+
}), 1), !((c = i.files) != null && c.length) && a.readonly ? e(i.BentoTypography, { staticClass: "b-file-uploader__no-files", attrs: { wide: "" } }, [a._v(a._s(i.t("noFilesUploaded")))]) : a._e()], 1);
|
|
1951
|
+
}, Le = [], Se = /* @__PURE__ */ g(
|
|
1952
|
+
$e,
|
|
1953
|
+
Te,
|
|
1954
|
+
Le,
|
|
1909
1955
|
!1,
|
|
1910
1956
|
null,
|
|
1911
1957
|
"6f8587a8"
|
|
1912
1958
|
);
|
|
1913
|
-
const
|
|
1959
|
+
const it = Se.exports;
|
|
1914
1960
|
export {
|
|
1915
|
-
|
|
1961
|
+
it as f
|
|
1916
1962
|
};
|
|
1917
|
-
//# sourceMappingURL=file-uploader.
|
|
1963
|
+
//# sourceMappingURL=file-uploader.CnOqfuI-.js.map
|