@adyen/bento-vue3 1.88.1 → 1.89.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +4 -0
- package/dist/@types/index.d.ts +722 -524
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.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/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/list-item.css +1 -0
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.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/chip.js +1 -1
- package/dist/chunks/{accordion-item.QQ06tTjt.js → accordion-item.BX1KrLMl.js} +6 -15
- package/dist/chunks/{accordion-item.QQ06tTjt.js.map → accordion-item.BX1KrLMl.js.map} +1 -1
- package/dist/chunks/{action-bar.BS2cJzG_.js → action-bar.DLMaIUWW.js} +8 -34
- package/dist/chunks/{action-bar.BS2cJzG_.js.map → action-bar.DLMaIUWW.js.map} +1 -1
- package/dist/chunks/{ai-button.XfeGC4-Q.js → ai-button.1YJdI-sw.js} +3 -3
- package/dist/chunks/{ai-button.XfeGC4-Q.js.map → ai-button.1YJdI-sw.js.map} +1 -1
- package/dist/chunks/{ai-tag.DVCW-_vD.js → ai-tag.DK63ExDc.js} +6 -15
- package/dist/chunks/{ai-tag.DVCW-_vD.js.map → ai-tag.DK63ExDc.js.map} +1 -1
- package/dist/chunks/{alert.CDWtu0Hu.js → alert.C_8-VNi_.js} +6 -24
- package/dist/chunks/{alert.CDWtu0Hu.js.map → alert.C_8-VNi_.js.map} +1 -1
- package/dist/chunks/anchor-scroller.NhjLDBZI.js +207 -0
- package/dist/chunks/{anchor-scroller.BctgW0se.js.map → anchor-scroller.NhjLDBZI.js.map} +1 -1
- package/dist/chunks/{base-button.CRYAiuzn.js → base-button.CvHl36Ue.js} +24 -27
- package/dist/chunks/{base-button.CRYAiuzn.js.map → base-button.CvHl36Ue.js.map} +1 -1
- package/dist/chunks/base-modal.C2-JyHC_.js +424 -0
- package/dist/chunks/{base-modal.gZAtk-xP.js.map → base-modal.C2-JyHC_.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.BQFAgAI2.js +85 -0
- package/dist/chunks/{button-actions-with-menu.Tba1ME79.js.map → button-actions-with-menu.BQFAgAI2.js.map} +1 -1
- package/dist/chunks/{button-actions.BYBpjNqy.js → button-actions.cMQWyZne.js} +511 -542
- package/dist/chunks/{button-actions.BYBpjNqy.js.map → button-actions.cMQWyZne.js.map} +1 -1
- package/dist/chunks/{button.C6t9_lzm.js → button.DWF7FSIw.js} +42 -45
- package/dist/chunks/{button.C6t9_lzm.js.map → button.DWF7FSIw.js.map} +1 -1
- package/dist/chunks/calendar.DcCqkSNJ.js +1201 -0
- package/dist/chunks/{calendar.vM3abC8y.js.map → calendar.DcCqkSNJ.js.map} +1 -1
- package/dist/chunks/{card.Cw63i7Ul.js → card.CoxQ_L0w.js} +9 -21
- package/dist/chunks/{card.Cw63i7Ul.js.map → card.CoxQ_L0w.js.map} +1 -1
- package/dist/chunks/{checkbox-group.ODQy-ICn.js → checkbox-group.96n9Cc3W.js} +5 -5
- package/dist/chunks/{checkbox-group.ODQy-ICn.js.map → checkbox-group.96n9Cc3W.js.map} +1 -1
- package/dist/chunks/{checkbox-input.BZjSoCQW.js → checkbox-input.CVFQCfZM.js} +44 -51
- package/dist/chunks/{checkbox-input.BZjSoCQW.js.map → checkbox-input.CVFQCfZM.js.map} +1 -1
- package/dist/chunks/{checkbox.C3Ewfygy.js → checkbox.C6ATh8f5.js} +85 -94
- package/dist/chunks/{checkbox.C3Ewfygy.js.map → checkbox.C6ATh8f5.js.map} +1 -1
- package/dist/chunks/chevron-right-small.BCinNiMt.js +29 -0
- package/dist/chunks/chevron-right-small.BCinNiMt.js.map +1 -0
- package/dist/chunks/{chip.CyW1V8RU.js → chip.CdgpQyXN.js} +6 -12
- package/dist/chunks/{chip.CyW1V8RU.js.map → chip.CdgpQyXN.js.map} +1 -1
- package/dist/chunks/click-outside.BPylIosK.js +20 -0
- package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BPylIosK.js.map} +1 -1
- package/dist/chunks/{code-snippet.BaJU2I5_.js → code-snippet.DgAuuZF5.js} +9 -24
- package/dist/chunks/{code-snippet.BaJU2I5_.js.map → code-snippet.DgAuuZF5.js.map} +1 -1
- package/dist/chunks/{codemirror.D2BAltnu.js → codemirror.Bzus_EPG.js} +15 -15
- package/dist/chunks/{codemirror.D2BAltnu.js.map → codemirror.Bzus_EPG.js.map} +1 -1
- package/dist/chunks/constructNow.D9uRk678.js +8 -0
- package/dist/chunks/{constructNow.CIc7d13I.js.map → constructNow.D9uRk678.js.map} +1 -1
- package/dist/chunks/{controls-group.Bu5lNTyH.js → controls-group.C7hOE1F4.js} +3 -3
- package/dist/chunks/{controls-group.Bu5lNTyH.js.map → controls-group.C7hOE1F4.js.map} +1 -1
- package/dist/chunks/{copy.C_BCNHYQ.js → copy.C2kQ1PbI.js} +7 -19
- package/dist/chunks/{copy.C_BCNHYQ.js.map → copy.C2kQ1PbI.js.map} +1 -1
- package/dist/chunks/{country.DJts6kCv.js → country.CaGc08Ps.js} +3 -3
- package/dist/chunks/{country.DJts6kCv.js.map → country.CaGc08Ps.js.map} +1 -1
- package/dist/chunks/country.types.DjpMGz7a.js +19 -0
- package/dist/chunks/{country.types.BBQbWkTY.js.map → country.types.DjpMGz7a.js.map} +1 -1
- package/dist/chunks/{currency.Afx8MVdY.js → currency.DuTEzR_W.js} +40 -42
- package/dist/chunks/{currency.Afx8MVdY.js.map → currency.DuTEzR_W.js.map} +1 -1
- package/dist/chunks/dashboard-section.UafHRkMa.js +161 -0
- package/dist/chunks/{dashboard-section.CgoLquLP.js.map → dashboard-section.UafHRkMa.js.map} +1 -1
- package/dist/chunks/dashed-underline.CcDV2Aks.js +108 -0
- package/dist/chunks/{dashed-underline.wbRHATeE.js.map → dashed-underline.CcDV2Aks.js.map} +1 -1
- package/dist/chunks/data-grid-template.CnC4TQvk.js +135 -0
- package/dist/chunks/{data-grid-template.D40V1cmi.js.map → data-grid-template.CnC4TQvk.js.map} +1 -1
- package/dist/chunks/data-grid.BSIXLRm7.js +4014 -0
- package/dist/chunks/{data-grid.C2nCCbeC.js.map → data-grid.BSIXLRm7.js.map} +1 -1
- package/dist/chunks/date-picker.dlzZ_-5f.js +231 -0
- package/dist/chunks/{date-picker.D5B_SECc.js.map → date-picker.dlzZ_-5f.js.map} +1 -1
- package/dist/chunks/date-range-picker.DC6CK0As.js +995 -0
- package/dist/chunks/{date-range-picker.B0q7Z4df.js.map → date-range-picker.DC6CK0As.js.map} +1 -1
- package/dist/chunks/{date.BtB1HyWQ.js → date.R2Wz6o7J.js} +28 -28
- package/dist/chunks/{date.BtB1HyWQ.js.map → date.R2Wz6o7J.js.map} +1 -1
- package/dist/chunks/{de.BJvo6njq.js → de.DXrHnkLX.js} +18 -18
- package/dist/chunks/{de.BJvo6njq.js.map → de.DXrHnkLX.js.map} +1 -1
- package/dist/chunks/{dialog-page.C1KUI51V.js → dialog-page.COfKqjT-.js} +7 -13
- package/dist/chunks/{dialog-page.C1KUI51V.js.map → dialog-page.COfKqjT-.js.map} +1 -1
- package/dist/chunks/differenceInMonths.s_znQQpw.js +43 -0
- package/dist/chunks/{differenceInMonths.CIYECBxK.js.map → differenceInMonths.s_znQQpw.js.map} +1 -1
- package/dist/chunks/{directive.rXUeDb8p.js → directive.Dpivxq_t.js} +2 -2
- package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Dpivxq_t.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.CskseEho.js → dropdown-default-textbox.bq9AlGzJ.js} +55 -64
- package/dist/chunks/{dropdown-default-textbox.CskseEho.js.map → dropdown-default-textbox.bq9AlGzJ.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.Zj-exiup.js → dropdown-tag.Ysrac5GN.js} +82 -86
- package/dist/chunks/{dropdown-tag.Zj-exiup.js.map → dropdown-tag.Ysrac5GN.js.map} +1 -1
- package/dist/chunks/dropdown.MhmX1P9o.js +799 -0
- package/dist/chunks/{dropdown.CxjzXI-k.js.map → dropdown.MhmX1P9o.js.map} +1 -1
- package/dist/chunks/{empty-state.DqdPzU-g.js → empty-state.DT4sFyjB.js} +7 -14
- package/dist/chunks/{empty-state.DqdPzU-g.js.map → empty-state.DT4sFyjB.js.map} +1 -1
- package/dist/chunks/{en-GB.C3-QUpva.js → en-GB.CBpvhDYV.js} +2 -2
- package/dist/chunks/{en-GB.C3-QUpva.js.map → en-GB.CBpvhDYV.js.map} +1 -1
- package/dist/chunks/{en-US.YeSsZuOc.js → en-US.CCazFVNP.js} +30 -30
- package/dist/chunks/{en-US.YeSsZuOc.js.map → en-US.CCazFVNP.js.map} +1 -1
- package/dist/chunks/{error-message.oGiefI2-.js → error-message.DCgo8q20.js} +8 -20
- package/dist/chunks/{error-message.oGiefI2-.js.map → error-message.DCgo8q20.js.map} +1 -1
- package/dist/chunks/{es.DyUjjSL8.js → es.CoF2PB8b.js} +14 -14
- package/dist/chunks/{es.DyUjjSL8.js.map → es.CoF2PB8b.js.map} +1 -1
- package/dist/chunks/{file-uploader.BnmNI1O7.js → file-uploader.Bfd1uUMe.js} +575 -680
- package/dist/chunks/{file-uploader.BnmNI1O7.js.map → file-uploader.Bfd1uUMe.js.map} +1 -1
- package/dist/chunks/filter-bar.CkAjLQol.js +3675 -0
- package/dist/chunks/filter-bar.CkAjLQol.js.map +1 -0
- package/dist/chunks/fixed-scroller.DtkaGyMD.js +150 -0
- package/dist/chunks/{fixed-scroller.i1tmEmst.js.map → fixed-scroller.DtkaGyMD.js.map} +1 -1
- package/dist/chunks/{focus-trap.BxCwzLqN.js → focus-trap.BAiM_ywb.js} +70 -86
- package/dist/chunks/{focus-trap.BxCwzLqN.js.map → focus-trap.BAiM_ywb.js.map} +1 -1
- package/dist/chunks/{footer-actions.Ck6UztD8.js → footer-actions.BcYSsoUg.js} +3 -3
- package/dist/chunks/{footer-actions.Ck6UztD8.js.map → footer-actions.BcYSsoUg.js.map} +1 -1
- package/dist/chunks/{form-layout-title.CQfeGyVw.js → form-layout-title.DW5Kg1rh.js} +4 -6
- package/dist/chunks/{form-layout-title.CQfeGyVw.js.map → form-layout-title.DW5Kg1rh.js.map} +1 -1
- package/dist/chunks/{fr.JD_4GwS8.js → fr.CJXL-Ief.js} +16 -16
- package/dist/chunks/{fr.JD_4GwS8.js.map → fr.CJXL-Ief.js.map} +1 -1
- package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.DBWe4g6T.js} +15 -16
- package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.DBWe4g6T.js.map} +1 -1
- package/dist/chunks/get-slot-text.8Fbl1GOr.js +6 -0
- package/dist/chunks/{get-slot-text.CQRAP2_q.js.map → get-slot-text.8Fbl1GOr.js.map} +1 -1
- package/dist/chunks/{grid-layout.Vhv1_zFs.js → grid-layout.CCWNscU_.js} +11 -12
- package/dist/chunks/{grid-layout.Vhv1_zFs.js.map → grid-layout.CCWNscU_.js.map} +1 -1
- package/dist/chunks/{header-meta.lGt3HsyH.js → header-meta.Bym9AlQm.js} +84 -96
- package/dist/chunks/{header-meta.lGt3HsyH.js.map → header-meta.Bym9AlQm.js.map} +1 -1
- package/dist/chunks/{header-with-views.D_sy4I2A.js → header-with-views.Djba6iol.js} +1013 -1156
- package/dist/chunks/{header-with-views.D_sy4I2A.js.map → header-with-views.Djba6iol.js.map} +1 -1
- package/dist/chunks/{header.oXqwf2xN.js → header.o-7SyHtU.js} +4 -4
- package/dist/chunks/{header.oXqwf2xN.js.map → header.o-7SyHtU.js.map} +1 -1
- package/dist/chunks/{index.Dppy4qHk.js → index.DDwcHPb6.js} +12 -12
- package/dist/chunks/{index.Dppy4qHk.js.map → index.DDwcHPb6.js.map} +1 -1
- package/dist/chunks/{info-icon.DyPOv7Pi.js → info-icon.BUala_wq.js} +3 -3
- package/dist/chunks/{info-icon.DyPOv7Pi.js.map → info-icon.BUala_wq.js.map} +1 -1
- package/dist/chunks/input-field-password.DZytmp_p.js +346 -0
- package/dist/chunks/{input-field-password.C_h61CMn.js.map → input-field-password.DZytmp_p.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.KctRYA9p.js → input-field-phone-number.CxblrmaU.js} +720 -736
- package/dist/chunks/{input-field-phone-number.KctRYA9p.js.map → input-field-phone-number.CxblrmaU.js.map} +1 -1
- package/dist/chunks/{input-field.DPElUS0U.js → input-field.CfU0ZKtL.js} +42 -54
- package/dist/chunks/{input-field.DPElUS0U.js.map → input-field.CfU0ZKtL.js.map} +1 -1
- package/dist/chunks/{inspector.BjLhY3bE.js → inspector.B9k4tJWe.js} +9 -27
- package/dist/chunks/{inspector.BjLhY3bE.js.map → inspector.B9k4tJWe.js.map} +1 -1
- package/dist/chunks/isSameWeek.Dj6luS8h.js +14 -0
- package/dist/chunks/{isSameWeek.CzBCmu7d.js.map → isSameWeek.Dj6luS8h.js.map} +1 -1
- package/dist/chunks/{it.BlUnV-yA.js → it.20Y7h-bF.js} +8 -8
- package/dist/chunks/{it.BlUnV-yA.js.map → it.20Y7h-bF.js.map} +1 -1
- package/dist/chunks/{ja.nUwDmVf2.js → ja.DXlq0H98.js} +27 -27
- package/dist/chunks/{ja.nUwDmVf2.js.map → ja.DXlq0H98.js.map} +1 -1
- package/dist/chunks/layout-row.B5VJGEQH.js +99 -0
- package/dist/chunks/{layout-row.Da8nkm9z.js.map → layout-row.B5VJGEQH.js.map} +1 -1
- package/dist/chunks/link.D6D6YGsN.js +113 -0
- package/dist/chunks/{link.DTCn2EtX.js.map → link.D6D6YGsN.js.map} +1 -1
- package/dist/chunks/list-item.DO5uULke.js +128 -0
- package/dist/chunks/list-item.DO5uULke.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.CoBUYwFG.js → listbox-option-tag.Cvplth7d.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CoBUYwFG.js.map → listbox-option-tag.Cvplth7d.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.9ZDR_S29.js → modal-fullscreen.CuKVyTWb.js} +100 -108
- package/dist/chunks/{modal-fullscreen.9ZDR_S29.js.map → modal-fullscreen.CuKVyTWb.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js} +134 -143
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js.map → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map} +1 -1
- package/dist/chunks/on-click-outside.ZUMLlxE_.js +90 -0
- package/dist/chunks/{on-click-outside.BW4rkhzG.js.map → on-click-outside.ZUMLlxE_.js.map} +1 -1
- package/dist/chunks/pagination.dpVc6Yt0.js +401 -0
- package/dist/chunks/pagination.dpVc6Yt0.js.map +1 -0
- package/dist/chunks/popover.types.D8tHtFl3.js +6 -0
- package/dist/chunks/{popover.types.DhALnOLQ.js.map → popover.types.D8tHtFl3.js.map} +1 -1
- package/dist/chunks/{popper-container.DAK7c9uS.js → popper-container.DMN8n5iC.js} +79 -86
- package/dist/chunks/{popper-container.DAK7c9uS.js.map → popper-container.DMN8n5iC.js.map} +1 -1
- package/dist/chunks/{promo-banner.aNwH6uQx.js → promo-banner.BzveHNOI.js} +7 -13
- package/dist/chunks/{promo-banner.aNwH6uQx.js.map → promo-banner.BzveHNOI.js.map} +1 -1
- package/dist/chunks/{pt-BR.BCU2Hj36.js → pt-BR.DmhmCzxE.js} +14 -14
- package/dist/chunks/{pt-BR.BCU2Hj36.js.map → pt-BR.DmhmCzxE.js.map} +1 -1
- package/dist/chunks/{radio-group.DEYzF6o7.js → radio-group.Cuiq4mxy.js} +46 -46
- package/dist/chunks/{radio-group.DEYzF6o7.js.map → radio-group.Cuiq4mxy.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DH1d5Zcp.js → rich-text-editor.DLMiT4f5.js} +1018 -1024
- package/dist/chunks/{rich-text-editor.DH1d5Zcp.js.map → rich-text-editor.DLMiT4f5.js.map} +1 -1
- package/dist/chunks/{search-bar.Dtzx88Pv.js → search-bar.CsFyP0_I.js} +6 -15
- package/dist/chunks/{search-bar.Dtzx88Pv.js.map → search-bar.CsFyP0_I.js.map} +1 -1
- package/dist/chunks/{secondary-nav.Zs7dBoJv.js → secondary-nav.CLBdq98c.js} +6 -12
- package/dist/chunks/{secondary-nav.Zs7dBoJv.js.map → secondary-nav.CLBdq98c.js.map} +1 -1
- package/dist/chunks/{segmented-control.Aqquod8g.js → segmented-control.KeQ5kuR1.js} +47 -51
- package/dist/chunks/{segmented-control.Aqquod8g.js.map → segmented-control.KeQ5kuR1.js.map} +1 -1
- package/dist/chunks/selection-card-group.XM11Kk-4.js +412 -0
- package/dist/chunks/{selection-card-group.C7IK2Vl5.js.map → selection-card-group.XM11Kk-4.js.map} +1 -1
- package/dist/chunks/{sidepanel.DaXPcTHm.js → sidepanel.b2QZ1Jsx.js} +64 -71
- package/dist/chunks/{sidepanel.DaXPcTHm.js.map → sidepanel.b2QZ1Jsx.js.map} +1 -1
- package/dist/chunks/startOfWeek.Cvmo-f5J.js +9 -0
- package/dist/chunks/{startOfWeek.CXhhX-R7.js.map → startOfWeek.Cvmo-f5J.js.map} +1 -1
- package/dist/chunks/status.H00BAmRx.js +42 -0
- package/dist/chunks/status.H00BAmRx.js.map +1 -0
- package/dist/chunks/status.types.Dx8MDhEH.js +5 -0
- package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -0
- package/dist/chunks/{step.BV7MsrRF.js → step.BlwoLfdw.js} +56 -68
- package/dist/chunks/{step.BV7MsrRF.js.map → step.BlwoLfdw.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DAIaUMCY.js → structured-list-item.e-8kRleh.js} +8 -14
- package/dist/chunks/{structured-list-item.DAIaUMCY.js.map → structured-list-item.e-8kRleh.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BZcZS_dW.js → summary-grid.types.CcvOC03H.js} +172 -179
- package/dist/chunks/{summary-grid.types.BZcZS_dW.js.map → summary-grid.types.CcvOC03H.js.map} +1 -1
- package/dist/chunks/tab.mR5uUSdp.js +265 -0
- package/dist/chunks/{tab.DRrnMCxe.js.map → tab.mR5uUSdp.js.map} +1 -1
- package/dist/chunks/{tag.CqWg6C3H.js → tag.DujMVFh-.js} +3 -3
- package/dist/chunks/{tag.CqWg6C3H.js.map → tag.DujMVFh-.js.map} +1 -1
- package/dist/chunks/textarea.CHV6Z8nt.js +247 -0
- package/dist/chunks/{textarea.CvI2InIB.js.map → textarea.CHV6Z8nt.js.map} +1 -1
- package/dist/chunks/timeline-item.CaGcRZbt.js +419 -0
- package/dist/chunks/timeline-item.CaGcRZbt.js.map +1 -0
- package/dist/chunks/{toast.Bbtq3Icj.js → toast.C2oehk9P.js} +72 -78
- package/dist/chunks/{toast.Bbtq3Icj.js.map → toast.C2oehk9P.js.map} +1 -1
- package/dist/chunks/{toggle.BupEBkIG.js → toggle.BQoprdX-.js} +5 -5
- package/dist/chunks/{toggle.BupEBkIG.js.map → toggle.BQoprdX-.js.map} +1 -1
- package/dist/chunks/tooltip.CbADa_4p.js +199 -0
- package/dist/chunks/{tooltip.Lwtlhv3u.js.map → tooltip.CbADa_4p.js.map} +1 -1
- package/dist/chunks/truncate.DmCXQmeb.js +8 -0
- package/dist/chunks/{truncate.BfIl_-71.js.map → truncate.DmCXQmeb.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js} +100 -124
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js.map → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js → use-bento-toast-controller.D_NSnBxi.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js.map → use-bento-toast-controller.D_NSnBxi.js.map} +1 -1
- package/dist/chunks/use-cached-selected-values.ClEJRFAd.js +1631 -0
- package/dist/chunks/{use-cached-selected-values.C4_X3vVj.js.map → use-cached-selected-values.ClEJRFAd.js.map} +1 -1
- package/dist/chunks/use-country-items.D_3LBe2I.js +30 -0
- package/dist/chunks/{use-country-items.BTzByPdQ.js.map → use-country-items.D_3LBe2I.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.DoqTGkNr.js +287 -0
- package/dist/chunks/use-country-phon-code.DoqTGkNr.js.map +1 -0
- package/dist/chunks/use-date-input-formatter.CDRzd-hW.js +1629 -0
- package/dist/chunks/{use-date-input-formatter.dtbK-CEy.js.map → use-date-input-formatter.CDRzd-hW.js.map} +1 -1
- package/dist/chunks/use-default-slot-validator.BzHcrgmy.js +12 -0
- package/dist/chunks/{use-default-slot-validator.O02rzsob.js.map → use-default-slot-validator.BzHcrgmy.js.map} +1 -1
- package/dist/chunks/use-expandable-content-height.B5jjRvCz.js +16 -0
- package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js.map → use-expandable-content-height.B5jjRvCz.js.map} +1 -1
- package/dist/chunks/use-has-slot.CyMiImRQ.js +14 -0
- package/dist/chunks/{use-has-slot.B7eQSabc.js.map → use-has-slot.CyMiImRQ.js.map} +1 -1
- package/dist/chunks/utils.DWmc2mUI.js +19 -0
- package/dist/chunks/{utils.BzUwtTXc.js.map → utils.DWmc2mUI.js.map} +1 -1
- package/dist/chunks/{zh-CN.ChYkuQAR.js → zh-CN.Ce34mXsX.js} +28 -28
- package/dist/chunks/{zh-CN.ChYkuQAR.js.map → zh-CN.Ce34mXsX.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/draggable-handle.js +4 -28
- package/dist/draggable-handle.js.map +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +241 -241
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +13 -13
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/list.js +6 -0
- package/dist/list.js.map +1 -0
- 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 +2 -2
- package/dist/popper-container.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/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +4 -3
- package/dist/status.js.map +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js +331 -341
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +7 -7
- package/dist/chunks/anchor-scroller.BctgW0se.js +0 -214
- package/dist/chunks/base-modal.gZAtk-xP.js +0 -443
- package/dist/chunks/button-actions-with-menu.Tba1ME79.js +0 -93
- package/dist/chunks/calendar.vM3abC8y.js +0 -1234
- package/dist/chunks/click-outside.CDz_x8mN.js +0 -23
- package/dist/chunks/constructNow.CIc7d13I.js +0 -8
- package/dist/chunks/country.types.BBQbWkTY.js +0 -773
- package/dist/chunks/dashboard-section.CgoLquLP.js +0 -165
- package/dist/chunks/dashed-underline.wbRHATeE.js +0 -114
- package/dist/chunks/data-grid-template.D40V1cmi.js +0 -144
- package/dist/chunks/data-grid.C2nCCbeC.js +0 -4368
- package/dist/chunks/date-picker.D5B_SECc.js +0 -251
- package/dist/chunks/date-range-picker.B0q7Z4df.js +0 -1084
- package/dist/chunks/differenceInMonths.CIYECBxK.js +0 -43
- package/dist/chunks/dropdown.CxjzXI-k.js +0 -837
- package/dist/chunks/filter-bar.DJ7O4zLX.js +0 -4036
- package/dist/chunks/filter-bar.DJ7O4zLX.js.map +0 -1
- package/dist/chunks/fixed-scroller.i1tmEmst.js +0 -161
- package/dist/chunks/get-slot-text.CQRAP2_q.js +0 -12
- package/dist/chunks/input-field-password.C_h61CMn.js +0 -402
- package/dist/chunks/isSameWeek.CzBCmu7d.js +0 -14
- package/dist/chunks/layout-row.Da8nkm9z.js +0 -100
- package/dist/chunks/link.DTCn2EtX.js +0 -116
- package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
- package/dist/chunks/pagination.B32UgSoH.js +0 -488
- package/dist/chunks/pagination.B32UgSoH.js.map +0 -1
- package/dist/chunks/popover.types.DhALnOLQ.js +0 -6
- package/dist/chunks/selection-card-group.C7IK2Vl5.js +0 -417
- package/dist/chunks/startOfWeek.CXhhX-R7.js +0 -10
- package/dist/chunks/status.types.D3v3k-Q8.js +0 -44
- package/dist/chunks/status.types.D3v3k-Q8.js.map +0 -1
- package/dist/chunks/tab.DRrnMCxe.js +0 -273
- package/dist/chunks/textarea.CvI2InIB.js +0 -255
- package/dist/chunks/timeline-item.BooD99hL.js +0 -427
- package/dist/chunks/timeline-item.BooD99hL.js.map +0 -1
- package/dist/chunks/tooltip.Lwtlhv3u.js +0 -202
- package/dist/chunks/truncate.BfIl_-71.js +0 -8
- package/dist/chunks/use-cached-selected-values.C4_X3vVj.js +0 -1711
- package/dist/chunks/use-country-items.BTzByPdQ.js +0 -30
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js +0 -5621
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +0 -1
- package/dist/chunks/use-date-input-formatter.dtbK-CEy.js +0 -1732
- package/dist/chunks/use-default-slot-validator.O02rzsob.js +0 -16
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
- package/dist/chunks/use-has-slot.B7eQSabc.js +0 -15
- package/dist/chunks/utils.BzUwtTXc.js +0 -21
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { openBlock as s, createElementBlock as g, mergeProps as
|
|
1
|
+
import { openBlock as s, createElementBlock as g, mergeProps as D, toDisplayString as x, createCommentVNode as u, createElementVNode as r, defineComponent as ca, unref as t, createBlock as y, Transition as di, withCtx as w, renderSlot as ja, TransitionGroup as ri, ref as F, onUnmounted as mi, onMounted as Aa, computed as f, watch as wa, normalizeClass as Z, createVNode as U, resolveDynamicComponent as ui, withDirectives as Ua, createTextVNode as $, reactive as ya, toRef as ha, withModifiers as J, withKeys as Ea, Fragment as Ra, renderList as vi, vShow as fi, nextTick as xi } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { _ as
|
|
4
|
-
import { W as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import { i as
|
|
11
|
-
import { B as
|
|
12
|
-
import { C as
|
|
13
|
-
import { C as
|
|
14
|
-
import { R as
|
|
15
|
-
import { b as
|
|
16
|
-
import { B as
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { F as
|
|
3
|
+
import { _ as S } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
|
+
import { W as Za } from "./warning-filled.BzyK_mMj.js";
|
|
5
|
+
import { B as gi } from "./alert.C_8-VNi_.js";
|
|
6
|
+
import { B as R, d as hi } from "./typography.B3J6_tYk.js";
|
|
7
|
+
import { u as da } from "./index.B875RXHM.js";
|
|
8
|
+
import { g as I } from "./generate-uid.DBWe4g6T.js";
|
|
9
|
+
import { u as bi } from "./form-field.D_2g7vaP.js";
|
|
10
|
+
import { i as Na } from "./index.CWuzEfiV.js";
|
|
11
|
+
import { B as wi } from "./bin.Cude0fiB.js";
|
|
12
|
+
import { C as yi } from "./checkmark-circle-fill.DugX5fbG.js";
|
|
13
|
+
import { C as ki } from "./cross.CCHdi6v3.js";
|
|
14
|
+
import { R as Ci } from "./refresh.C31KClfx.js";
|
|
15
|
+
import { b as $i } from "./tooltip.CbADa_4p.js";
|
|
16
|
+
import { B as ba } from "./button.DWF7FSIw.js";
|
|
17
|
+
import { B as zi } from "./link.D6D6YGsN.js";
|
|
18
|
+
import { B as _i } from "./loading-indicator.BPol9I84.js";
|
|
19
|
+
import { F as ji, E as Ei } from "./error-message.DCgo8q20.js";
|
|
20
20
|
import "../assets/file-uploader.css";
|
|
21
|
-
let
|
|
22
|
-
const
|
|
21
|
+
let Ia = 0;
|
|
22
|
+
const Ri = {
|
|
23
23
|
beforeCreate() {
|
|
24
|
-
this.uuid =
|
|
24
|
+
this.uuid = Ia.toString(), Ia += 1;
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
function
|
|
28
|
-
return s(), g("svg",
|
|
26
|
+
}, Ii = { key: 0 };
|
|
27
|
+
function Fi(a, i, p, n, o, c) {
|
|
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", Ii, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
36
36
|
i[0] || (i[0] = r("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,72 +43,72 @@ function Si(a, i, n, o, p, d) {
|
|
|
43
43
|
}, null, -1))
|
|
44
44
|
], 16);
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const Si = /* @__PURE__ */ S(Ri, [["render", Fi]]), Li = /* @__PURE__ */ ca({
|
|
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,
|
|
53
|
+
return (i, p) => t(Na) ? (s(), y(di, {
|
|
54
54
|
key: 0,
|
|
55
55
|
name: i.name,
|
|
56
56
|
mode: "out-in",
|
|
57
57
|
css: i.showFileIcon
|
|
58
58
|
}, {
|
|
59
59
|
default: w(() => [
|
|
60
|
-
|
|
60
|
+
ja(i.$slots, "default")
|
|
61
61
|
]),
|
|
62
62
|
_: 3
|
|
63
|
-
}, 8, ["name", "css"])) : (s(), y(
|
|
63
|
+
}, 8, ["name", "css"])) : (s(), y(ri, {
|
|
64
64
|
key: 1,
|
|
65
65
|
name: i.name,
|
|
66
66
|
css: i.showFileIcon
|
|
67
67
|
}, {
|
|
68
68
|
default: w(() => [
|
|
69
|
-
|
|
69
|
+
ja(i.$slots, "default")
|
|
70
70
|
]),
|
|
71
71
|
_: 3
|
|
72
72
|
}, 8, ["name", "css"]));
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
-
function
|
|
76
|
-
const
|
|
77
|
-
let
|
|
78
|
-
function
|
|
79
|
-
|
|
75
|
+
function Ti(a, i) {
|
|
76
|
+
const p = F(!1);
|
|
77
|
+
let n;
|
|
78
|
+
function o() {
|
|
79
|
+
n && n.disconnect();
|
|
80
80
|
}
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
}),
|
|
84
|
-
|
|
85
|
-
(
|
|
86
|
-
|
|
81
|
+
return mi(() => {
|
|
82
|
+
o();
|
|
83
|
+
}), Aa(() => {
|
|
84
|
+
o(), n = new IntersectionObserver(
|
|
85
|
+
(c) => {
|
|
86
|
+
p.value = !c[0].isIntersecting;
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
root: i.value,
|
|
90
90
|
threshold: 1
|
|
91
91
|
}
|
|
92
|
-
),
|
|
93
|
-
}),
|
|
92
|
+
), n.observe(a.value.$el);
|
|
93
|
+
}), p;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
97
|
-
const
|
|
95
|
+
const Fa = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
96
|
+
function ka(a, i) {
|
|
97
|
+
const p = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), Fa.length - 1));
|
|
98
98
|
return Intl.NumberFormat(a, {
|
|
99
99
|
style: "unit",
|
|
100
|
-
unit:
|
|
101
|
-
}).format(i / 1024 **
|
|
100
|
+
unit: Fa[p]
|
|
101
|
+
}).format(i / 1024 ** p);
|
|
102
102
|
}
|
|
103
|
-
var
|
|
104
|
-
const
|
|
103
|
+
var M = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(M || {}), E = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(E || {}), sa = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(sa || {}), k = /* @__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))(k || {});
|
|
104
|
+
const Mi = [
|
|
105
105
|
"application/msword",
|
|
106
106
|
// .doc
|
|
107
107
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
108
108
|
// .docx
|
|
109
109
|
"application/rtf"
|
|
110
110
|
// .rtf
|
|
111
|
-
],
|
|
111
|
+
], Di = [
|
|
112
112
|
"application/vnd.ms-excel",
|
|
113
113
|
// .xls
|
|
114
114
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -121,14 +121,14 @@ const Di = [
|
|
|
121
121
|
// .numbers
|
|
122
122
|
"text/csv"
|
|
123
123
|
// .csv
|
|
124
|
-
],
|
|
124
|
+
], Vi = [
|
|
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
|
+
], Oi = [
|
|
132
132
|
"application/zip",
|
|
133
133
|
// .zip
|
|
134
134
|
"application/vnd.rar",
|
|
@@ -150,66 +150,66 @@ const Di = [
|
|
|
150
150
|
"application/vnd.ms-cab-compressed"
|
|
151
151
|
// .cab
|
|
152
152
|
];
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function qi(a) {
|
|
154
|
+
return Di.includes(a.type) ? k.TABLE : a.type.startsWith("text/") || Mi.includes(a.type) ? k.TEXT : a.type.startsWith("image/") ? k.IMAGE : a.type.startsWith("video/") ? k.VIDEO : a.type.startsWith("audio/") ? k.AUDIO : a.type === "application/pdf" ? k.PDF : Vi.includes(a.type) ? k.SLIDES : Oi.includes(a.type) ? k.COMPRESSED : k.GENERIC;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Pa(a, i) {
|
|
157
157
|
if (!i)
|
|
158
158
|
return !0;
|
|
159
|
-
const
|
|
160
|
-
for (const
|
|
161
|
-
if (
|
|
162
|
-
if (a.name.endsWith(
|
|
159
|
+
const p = i.split(",").map((n) => n.trim());
|
|
160
|
+
for (const n of p)
|
|
161
|
+
if (n.startsWith(".")) {
|
|
162
|
+
if (a.name.endsWith(n))
|
|
163
163
|
return !0;
|
|
164
|
-
} else if (
|
|
165
|
-
const
|
|
166
|
-
if (a.type.startsWith(
|
|
164
|
+
} else if (n.endsWith("/*")) {
|
|
165
|
+
const o = n.split("/")[0];
|
|
166
|
+
if (a.type.startsWith(o))
|
|
167
167
|
return !0;
|
|
168
|
-
} else if (
|
|
169
|
-
if (a.type ===
|
|
168
|
+
} else if (n.includes("/")) {
|
|
169
|
+
if (a.type === n)
|
|
170
170
|
return !0;
|
|
171
|
-
} else if (a.name.endsWith(`.${
|
|
171
|
+
} else if (a.name.endsWith(`.${n}`))
|
|
172
172
|
return !0;
|
|
173
173
|
return !1;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
const
|
|
177
|
-
if (!
|
|
178
|
-
|
|
175
|
+
function Hi(a, i, p) {
|
|
176
|
+
const n = new FileReader(), o = a;
|
|
177
|
+
if (!Pa(o.data, i)) {
|
|
178
|
+
o.state = M.ERROR, o.errors.push(E.ERROR_TYPE);
|
|
179
179
|
return;
|
|
180
180
|
}
|
|
181
|
-
|
|
182
|
-
if (
|
|
183
|
-
const l = new Blob([
|
|
181
|
+
n.onload = (c) => {
|
|
182
|
+
if (p && o.type === k.IMAGE) {
|
|
183
|
+
const l = new Blob([c.target.result], { type: o.data.type }), m = URL.createObjectURL(l), h = new Image();
|
|
184
184
|
h.onload = function() {
|
|
185
|
-
(h.width >
|
|
185
|
+
(h.width > p.width || h.height > p.height) && (o.state = M.ERROR, o.errors.push(E.ERROR_DIMENSIONS)), URL.revokeObjectURL(m);
|
|
186
186
|
}, h.onerror = function() {
|
|
187
187
|
URL.revokeObjectURL(m);
|
|
188
188
|
}, h.src = m;
|
|
189
189
|
}
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
},
|
|
190
|
+
}, n.onprogress = (c) => {
|
|
191
|
+
c.lengthComputable && (o.progress = c.loaded / c.total * 100);
|
|
192
|
+
}, n.onloadend = () => {
|
|
193
|
+
o.state !== M.ERROR && (o.state = M.SUCCESS), o.progress = null;
|
|
194
|
+
}, n.onerror = () => {
|
|
195
|
+
o.state = M.ERROR, o.errors.push(E.ERROR_LOAD), o.progress = null;
|
|
196
|
+
}, n.readAsArrayBuffer(o.data);
|
|
197
197
|
}
|
|
198
|
-
let
|
|
199
|
-
const
|
|
198
|
+
let Sa = 0;
|
|
199
|
+
const Bi = {
|
|
200
200
|
beforeCreate() {
|
|
201
|
-
this.uuid =
|
|
201
|
+
this.uuid = Sa.toString(), Sa += 1;
|
|
202
202
|
}
|
|
203
|
-
},
|
|
204
|
-
function
|
|
205
|
-
return s(), g("svg",
|
|
203
|
+
}, Ai = { key: 0 }, Ui = ["clip-path"], Zi = ["id"];
|
|
204
|
+
function Ni(a, i, p, n, o, c) {
|
|
205
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
206
206
|
class: "ui-assets-icons-16",
|
|
207
207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
208
208
|
width: "16",
|
|
209
209
|
height: "16",
|
|
210
210
|
fill: "none"
|
|
211
211
|
}), [
|
|
212
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
212
|
+
a.$attrs["svg-title"] ? (s(), g("title", Ai, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
213
213
|
r("g", {
|
|
214
214
|
"clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.uuid + ")"
|
|
215
215
|
}, i[0] || (i[0] = [
|
|
@@ -217,7 +217,7 @@ function Pi(a, i, n, o, p, d) {
|
|
|
217
217
|
fill: "#001222",
|
|
218
218
|
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"
|
|
219
219
|
}, null, -1)
|
|
220
|
-
]), 8,
|
|
220
|
+
]), 8, Ui),
|
|
221
221
|
r("defs", null, [
|
|
222
222
|
r("clipPath", {
|
|
223
223
|
id: "uia-ui-assets/icons-16-attachment__a" + a.uuid
|
|
@@ -227,26 +227,26 @@ function Pi(a, i, n, o, p, d) {
|
|
|
227
227
|
height: "16",
|
|
228
228
|
fill: "#fff"
|
|
229
229
|
}, null, -1)
|
|
230
|
-
]), 8,
|
|
230
|
+
]), 8, Zi)
|
|
231
231
|
])
|
|
232
232
|
], 16);
|
|
233
233
|
}
|
|
234
|
-
const
|
|
235
|
-
let
|
|
236
|
-
const
|
|
234
|
+
const Pi = /* @__PURE__ */ S(Bi, [["render", Ni]]);
|
|
235
|
+
let La = 0;
|
|
236
|
+
const Wi = {
|
|
237
237
|
beforeCreate() {
|
|
238
|
-
this.uuid =
|
|
238
|
+
this.uuid = La.toString(), La += 1;
|
|
239
239
|
}
|
|
240
|
-
},
|
|
241
|
-
function
|
|
242
|
-
return s(), g("svg",
|
|
240
|
+
}, Gi = { key: 0 };
|
|
241
|
+
function Yi(a, i, p, n, o, c) {
|
|
242
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
243
243
|
class: "ui-assets-icons-16",
|
|
244
244
|
xmlns: "http://www.w3.org/2000/svg",
|
|
245
245
|
width: "16",
|
|
246
246
|
height: "16",
|
|
247
247
|
fill: "none"
|
|
248
248
|
}), [
|
|
249
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
249
|
+
a.$attrs["svg-title"] ? (s(), g("title", Gi, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
250
250
|
i[0] || (i[0] = r("path", {
|
|
251
251
|
fill: "#001222",
|
|
252
252
|
"fill-rule": "evenodd",
|
|
@@ -255,44 +255,44 @@ function Ji(a, i, n, o, p, d) {
|
|
|
255
255
|
}, null, -1))
|
|
256
256
|
], 16);
|
|
257
257
|
}
|
|
258
|
-
const
|
|
259
|
-
let
|
|
260
|
-
const
|
|
258
|
+
const Ji = /* @__PURE__ */ S(Wi, [["render", Yi]]);
|
|
259
|
+
let Ta = 0;
|
|
260
|
+
const Xi = {
|
|
261
261
|
beforeCreate() {
|
|
262
|
-
this.uuid =
|
|
262
|
+
this.uuid = Ta.toString(), Ta += 1;
|
|
263
263
|
}
|
|
264
|
-
},
|
|
265
|
-
function
|
|
266
|
-
return s(), g("svg",
|
|
264
|
+
}, Ki = { key: 0 };
|
|
265
|
+
function Qi(a, i, p, n, o, c) {
|
|
266
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
267
267
|
class: "ui-assets-icons-16",
|
|
268
268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
269
269
|
width: "16",
|
|
270
270
|
height: "16",
|
|
271
271
|
fill: "none"
|
|
272
272
|
}), [
|
|
273
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
273
|
+
a.$attrs["svg-title"] ? (s(), g("title", Ki, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
274
274
|
i[0] || (i[0] = r("path", {
|
|
275
275
|
fill: "#001222",
|
|
276
276
|
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"
|
|
277
277
|
}, null, -1))
|
|
278
278
|
], 16);
|
|
279
279
|
}
|
|
280
|
-
const
|
|
281
|
-
let
|
|
282
|
-
const
|
|
280
|
+
const ae = /* @__PURE__ */ S(Xi, [["render", Qi]]);
|
|
281
|
+
let Ma = 0;
|
|
282
|
+
const ie = {
|
|
283
283
|
beforeCreate() {
|
|
284
|
-
this.uuid =
|
|
284
|
+
this.uuid = Ma.toString(), Ma += 1;
|
|
285
285
|
}
|
|
286
|
-
},
|
|
287
|
-
function
|
|
288
|
-
return s(), g("svg",
|
|
286
|
+
}, ee = { key: 0 };
|
|
287
|
+
function te(a, i, p, n, o, c) {
|
|
288
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
289
289
|
class: "ui-assets-icons-16",
|
|
290
290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
291
291
|
width: "16",
|
|
292
292
|
height: "16",
|
|
293
293
|
fill: "none"
|
|
294
294
|
}), [
|
|
295
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
295
|
+
a.$attrs["svg-title"] ? (s(), g("title", ee, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
296
296
|
i[0] || (i[0] = r("path", {
|
|
297
297
|
fill: "#001222",
|
|
298
298
|
d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z"
|
|
@@ -307,44 +307,44 @@ function ne(a, i, n, o, p, d) {
|
|
|
307
307
|
}, null, -1))
|
|
308
308
|
], 16);
|
|
309
309
|
}
|
|
310
|
-
const
|
|
311
|
-
let
|
|
312
|
-
const
|
|
310
|
+
const ne = /* @__PURE__ */ S(ie, [["render", te]]);
|
|
311
|
+
let Da = 0;
|
|
312
|
+
const oe = {
|
|
313
313
|
beforeCreate() {
|
|
314
|
-
this.uuid =
|
|
314
|
+
this.uuid = Da.toString(), Da += 1;
|
|
315
315
|
}
|
|
316
|
-
},
|
|
317
|
-
function
|
|
318
|
-
return s(), g("svg",
|
|
316
|
+
}, pe = { key: 0 };
|
|
317
|
+
function le(a, i, p, n, o, c) {
|
|
318
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
319
319
|
class: "ui-assets-icons-16",
|
|
320
320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
321
321
|
width: "16",
|
|
322
322
|
height: "16",
|
|
323
323
|
fill: "none"
|
|
324
324
|
}), [
|
|
325
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
325
|
+
a.$attrs["svg-title"] ? (s(), g("title", pe, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
326
326
|
i[0] || (i[0] = r("path", {
|
|
327
327
|
fill: "#001222",
|
|
328
328
|
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"
|
|
329
329
|
}, null, -1))
|
|
330
330
|
], 16);
|
|
331
331
|
}
|
|
332
|
-
const
|
|
333
|
-
let
|
|
334
|
-
const
|
|
332
|
+
const se = /* @__PURE__ */ S(oe, [["render", le]]);
|
|
333
|
+
let Va = 0;
|
|
334
|
+
const ce = {
|
|
335
335
|
beforeCreate() {
|
|
336
|
-
this.uuid =
|
|
336
|
+
this.uuid = Va.toString(), Va += 1;
|
|
337
337
|
}
|
|
338
|
-
},
|
|
339
|
-
function
|
|
340
|
-
return s(), g("svg",
|
|
338
|
+
}, de = { key: 0 };
|
|
339
|
+
function re(a, i, p, n, o, c) {
|
|
340
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
341
341
|
class: "ui-assets-icons-16",
|
|
342
342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
343
343
|
width: "16",
|
|
344
344
|
height: "16",
|
|
345
345
|
fill: "none"
|
|
346
346
|
}), [
|
|
347
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
347
|
+
a.$attrs["svg-title"] ? (s(), g("title", de, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
348
348
|
i[0] || (i[0] = r("path", {
|
|
349
349
|
fill: "#001222",
|
|
350
350
|
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"
|
|
@@ -355,29 +355,29 @@ function me(a, i, n, o, p, d) {
|
|
|
355
355
|
}, null, -1))
|
|
356
356
|
], 16);
|
|
357
357
|
}
|
|
358
|
-
const
|
|
359
|
-
let
|
|
360
|
-
const
|
|
358
|
+
const me = /* @__PURE__ */ S(ce, [["render", re]]);
|
|
359
|
+
let Oa = 0;
|
|
360
|
+
const ue = {
|
|
361
361
|
beforeCreate() {
|
|
362
|
-
this.uuid =
|
|
362
|
+
this.uuid = Oa.toString(), Oa += 1;
|
|
363
363
|
}
|
|
364
|
-
},
|
|
365
|
-
function
|
|
366
|
-
return s(), g("svg",
|
|
364
|
+
}, ve = { key: 0 }, fe = ["clip-path"], xe = ["id"];
|
|
365
|
+
function ge(a, i, p, n, o, c) {
|
|
366
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
367
367
|
class: "ui-assets-icons-16",
|
|
368
368
|
xmlns: "http://www.w3.org/2000/svg",
|
|
369
369
|
width: "16",
|
|
370
370
|
height: "16",
|
|
371
371
|
fill: "none"
|
|
372
372
|
}), [
|
|
373
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
373
|
+
a.$attrs["svg-title"] ? (s(), g("title", ve, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
374
374
|
r("g", {
|
|
375
375
|
fill: "#001222",
|
|
376
376
|
"clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.uuid + ")"
|
|
377
377
|
}, i[0] || (i[0] = [
|
|
378
378
|
r("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
|
|
379
379
|
r("path", { d: "M5.0342 0.839937C6.45033 0.253358 8.0086 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM9.21931 1.8701C8.00693 1.62894 6.75027 1.75271 5.60823 2.22576C4.46619 2.6988 3.49007 3.49988 2.80331 4.52769C2.11656 5.5555 1.75 6.76387 1.75 8C1.75 9.65761 2.40848 11.2473 3.58058 12.4194C4.75268 13.5915 6.3424 14.25 8 14.25C9.23613 14.25 10.4445 13.8834 11.4723 13.1967C12.5001 12.5099 13.3012 11.5338 13.7742 10.3918C14.2473 9.24974 14.3711 7.99307 14.1299 6.78069C13.8887 5.56831 13.2935 4.45466 12.4194 3.58059C11.5453 2.70651 10.4317 2.11125 9.21931 1.8701Z" }, null, -1)
|
|
380
|
-
]), 8,
|
|
380
|
+
]), 8, fe),
|
|
381
381
|
r("defs", null, [
|
|
382
382
|
r("clipPath", {
|
|
383
383
|
id: "uia-ui-assets/icons-16-play_circle__a" + a.uuid
|
|
@@ -387,26 +387,26 @@ function he(a, i, n, o, p, d) {
|
|
|
387
387
|
height: "16",
|
|
388
388
|
fill: "#fff"
|
|
389
389
|
}, null, -1)
|
|
390
|
-
]), 8,
|
|
390
|
+
]), 8, xe)
|
|
391
391
|
])
|
|
392
392
|
], 16);
|
|
393
393
|
}
|
|
394
|
-
const
|
|
395
|
-
let
|
|
396
|
-
const
|
|
394
|
+
const he = /* @__PURE__ */ S(ue, [["render", ge]]);
|
|
395
|
+
let qa = 0;
|
|
396
|
+
const be = {
|
|
397
397
|
beforeCreate() {
|
|
398
|
-
this.uuid =
|
|
398
|
+
this.uuid = qa.toString(), qa += 1;
|
|
399
399
|
}
|
|
400
|
-
},
|
|
401
|
-
function
|
|
402
|
-
return s(), g("svg",
|
|
400
|
+
}, we = { key: 0 };
|
|
401
|
+
function ye(a, i, p, n, o, c) {
|
|
402
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
403
403
|
class: "ui-assets-icons-16",
|
|
404
404
|
xmlns: "http://www.w3.org/2000/svg",
|
|
405
405
|
width: "16",
|
|
406
406
|
height: "16",
|
|
407
407
|
fill: "none"
|
|
408
408
|
}), [
|
|
409
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
409
|
+
a.$attrs["svg-title"] ? (s(), g("title", we, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
410
410
|
i[0] || (i[0] = r("path", {
|
|
411
411
|
fill: "#001222",
|
|
412
412
|
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"
|
|
@@ -421,43 +421,43 @@ function ke(a, i, n, o, p, d) {
|
|
|
421
421
|
}, null, -1))
|
|
422
422
|
], 16);
|
|
423
423
|
}
|
|
424
|
-
const
|
|
425
|
-
let
|
|
426
|
-
const
|
|
424
|
+
const ke = /* @__PURE__ */ S(be, [["render", ye]]);
|
|
425
|
+
let Ha = 0;
|
|
426
|
+
const Ce = {
|
|
427
427
|
beforeCreate() {
|
|
428
|
-
this.uuid =
|
|
428
|
+
this.uuid = Ha.toString(), Ha += 1;
|
|
429
429
|
}
|
|
430
|
-
},
|
|
431
|
-
function
|
|
432
|
-
return s(), g("svg",
|
|
430
|
+
}, $e = { key: 0 };
|
|
431
|
+
function ze(a, i, p, n, o, c) {
|
|
432
|
+
return s(), g("svg", D({ role: "img" }, a.$attrs, {
|
|
433
433
|
class: "ui-assets-icons-16",
|
|
434
434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
435
435
|
width: "16",
|
|
436
436
|
height: "16",
|
|
437
437
|
fill: "none"
|
|
438
438
|
}), [
|
|
439
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
439
|
+
a.$attrs["svg-title"] ? (s(), g("title", $e, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
440
440
|
i[0] || (i[0] = r("path", {
|
|
441
441
|
fill: "#001222",
|
|
442
442
|
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"
|
|
443
443
|
}, null, -1))
|
|
444
444
|
], 16);
|
|
445
445
|
}
|
|
446
|
-
const
|
|
447
|
-
[k.AUDIO]:
|
|
448
|
-
[k.COMPRESSED]:
|
|
449
|
-
[k.GENERIC]:
|
|
450
|
-
[k.IMAGE]:
|
|
451
|
-
[k.PDF]:
|
|
452
|
-
[k.SLIDES]:
|
|
453
|
-
[k.TABLE]:
|
|
454
|
-
[k.TEXT]:
|
|
455
|
-
[k.VIDEO]:
|
|
446
|
+
const _e = /* @__PURE__ */ S(Ce, [["render", ze]]), je = {
|
|
447
|
+
[k.AUDIO]: ke,
|
|
448
|
+
[k.COMPRESSED]: se,
|
|
449
|
+
[k.GENERIC]: Pi,
|
|
450
|
+
[k.IMAGE]: me,
|
|
451
|
+
[k.PDF]: ae,
|
|
452
|
+
[k.SLIDES]: Ji,
|
|
453
|
+
[k.TABLE]: _e,
|
|
454
|
+
[k.TEXT]: ne,
|
|
455
|
+
[k.VIDEO]: he
|
|
456
456
|
};
|
|
457
457
|
function Ee(a) {
|
|
458
|
-
return
|
|
458
|
+
return je[a.type];
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Re(a) {
|
|
461
461
|
switch (a.type) {
|
|
462
462
|
case k.COMPRESSED:
|
|
463
463
|
case k.GENERIC:
|
|
@@ -471,93 +471,72 @@ function Ie(a) {
|
|
|
471
471
|
return "green";
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
const
|
|
475
|
-
"en-US": {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
imageDimensionsExceedLimits: "Image dimensions exceed limits",
|
|
480
|
-
remove: "Remove",
|
|
481
|
-
retry: "Retry"
|
|
482
|
-
},
|
|
483
|
-
"ja-JP": {
|
|
484
|
-
cancel: "キャンセル",
|
|
485
|
-
fileExceedsSizeLimit: "ファイルがサイズ制限を超えています",
|
|
486
|
-
fileTypeMustBe: "ファイル形式は{list}でなければなりません",
|
|
487
|
-
imageDimensionsExceedLimits: "画像のサイズが制限を超えています",
|
|
488
|
-
remove: "削除",
|
|
489
|
-
retry: "再試行"
|
|
490
|
-
},
|
|
491
|
-
"pt-BR": {
|
|
492
|
-
cancel: "Cancelar",
|
|
493
|
-
fileExceedsSizeLimit: "O arquivo excede o limite de tamanho",
|
|
494
|
-
fileTypeMustBe: "O tipo de arquivo deve ser {list}",
|
|
495
|
-
imageDimensionsExceedLimits: "As dimensões da imagem excedem os limites",
|
|
496
|
-
remove: "Remover",
|
|
497
|
-
retry: "Tentar novamente"
|
|
498
|
-
}
|
|
499
|
-
}, Fe = { class: "b-file-uploader-file-card__details" }, Se = { class: "b-file-uploader-file-card__info" }, Le = ["id"], Te = {
|
|
474
|
+
const Wa = {
|
|
475
|
+
"en-US": { cancel: "Cancel", fileExceedsSizeLimit: "File exceeds size limit", fileTypeMustBe: "File type must be {list}", imageDimensionsExceedLimits: "Image dimensions exceed limits", remove: "Remove", retry: "Retry" },
|
|
476
|
+
"ja-JP": { cancel: "キャンセル", fileExceedsSizeLimit: "ファイルがサイズ制限を超えています", fileTypeMustBe: "ファイル形式は{list}でなければなりません", imageDimensionsExceedLimits: "画像のサイズが制限を超えています", remove: "削除", retry: "再試行" },
|
|
477
|
+
"pt-BR": { cancel: "Cancelar", fileExceedsSizeLimit: "O arquivo excede o limite de tamanho", fileTypeMustBe: "O tipo de arquivo deve ser {list}", imageDimensionsExceedLimits: "As dimensões da imagem excedem os limites", remove: "Remover", retry: "Tentar novamente" }
|
|
478
|
+
}, Ie = { class: "b-file-uploader-file-card__details" }, Fe = { class: "b-file-uploader-file-card__info" }, Se = ["id"], Le = {
|
|
500
479
|
key: 0,
|
|
501
480
|
class: "b-file-uploader-file-card__actions"
|
|
502
|
-
},
|
|
481
|
+
}, Te = {
|
|
503
482
|
name: "file-uploader-file-card",
|
|
504
|
-
i18n: { messages:
|
|
505
|
-
},
|
|
506
|
-
...
|
|
483
|
+
i18n: { messages: Wa }
|
|
484
|
+
}, Me = /* @__PURE__ */ ca({
|
|
485
|
+
...Te,
|
|
507
486
|
props: {
|
|
508
487
|
file: {},
|
|
509
488
|
supportedFileTypes: { default: null },
|
|
510
489
|
readonly: { type: Boolean }
|
|
511
490
|
},
|
|
512
491
|
emits: ["cancel", "remove", "retry"],
|
|
513
|
-
setup(a, { expose: i, emit:
|
|
514
|
-
const
|
|
515
|
-
"b-file-uploader-file-card--error":
|
|
516
|
-
})),
|
|
517
|
-
[`b-file-uploader-file-card__icon--${
|
|
518
|
-
"b-file-uploader-file-card__icon--error":
|
|
519
|
-
})),
|
|
520
|
-
|
|
521
|
-
() =>
|
|
522
|
-
(
|
|
523
|
-
if (
|
|
524
|
-
const
|
|
525
|
-
|
|
492
|
+
setup(a, { expose: i, emit: p }) {
|
|
493
|
+
const o = a, c = p, { t: l, locale: m } = da({ messages: Wa }), h = F(null), z = F(null), V = F(null), O = I("file-errors-section"), v = I("cancel-file-button"), _ = I("remove-file-button"), B = I("retry-file-button"), q = F(o.file.state === M.SUCCESS), b = f(() => URL.createObjectURL(o.file.data)), N = f(() => o.file.state === M.ERROR), A = f(() => o.file.errors.includes(E.ERROR_LOAD)), K = f(() => o.file.errors.includes(E.ERROR_SIZE)), Q = f(() => o.file.errors.includes(E.ERROR_DIMENSIONS)), ta = f(() => o.file.errors.includes(E.ERROR_TYPE)), na = f(() => o.file.state === M.LOADING), oa = f(() => o.file.progress && `(${o.file.progress.toFixed(0)}%)`), W = f(() => ka(m.value, o.file.data.size)), G = F(), pa = F(), la = Ti(G, pa), aa = f(() => ({
|
|
494
|
+
"b-file-uploader-file-card--error": N.value
|
|
495
|
+
})), ra = f(() => ({
|
|
496
|
+
[`b-file-uploader-file-card__icon--${Re(o.file)}`]: q.value,
|
|
497
|
+
"b-file-uploader-file-card__icon--error": N.value
|
|
498
|
+
})), Y = f(() => na.value ? _i : N.value ? Za : q.value ? Ee(o.file) : yi);
|
|
499
|
+
wa(
|
|
500
|
+
() => o.file.state,
|
|
501
|
+
(j) => {
|
|
502
|
+
if (j === M.SUCCESS && !q.value) {
|
|
503
|
+
const H = setTimeout(() => {
|
|
504
|
+
q.value = !0, clearTimeout(H);
|
|
526
505
|
}, 1200);
|
|
527
506
|
}
|
|
528
507
|
}
|
|
529
508
|
);
|
|
530
|
-
function
|
|
531
|
-
if (
|
|
532
|
-
|
|
509
|
+
function ma() {
|
|
510
|
+
if (V.value) {
|
|
511
|
+
V.value.$el.focus();
|
|
533
512
|
return;
|
|
534
513
|
}
|
|
535
514
|
if (h.value) {
|
|
536
515
|
h.value.$el.focus();
|
|
537
516
|
return;
|
|
538
517
|
}
|
|
539
|
-
if (
|
|
540
|
-
|
|
518
|
+
if (z.value) {
|
|
519
|
+
z.value.$el.focus();
|
|
541
520
|
return;
|
|
542
521
|
}
|
|
543
522
|
}
|
|
544
523
|
return i({
|
|
545
|
-
focus:
|
|
546
|
-
}), (
|
|
547
|
-
class:
|
|
524
|
+
focus: ma
|
|
525
|
+
}), (j, H) => (s(), g("div", {
|
|
526
|
+
class: Z(["b-file-uploader-file-card", aa.value])
|
|
548
527
|
}, [
|
|
549
|
-
r("div",
|
|
550
|
-
r("div",
|
|
551
|
-
|
|
552
|
-
name: t(
|
|
553
|
-
"show-file-icon":
|
|
528
|
+
r("div", Ie, [
|
|
529
|
+
r("div", Fe, [
|
|
530
|
+
U(t(Li), {
|
|
531
|
+
name: t(Na) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
|
|
532
|
+
"show-file-icon": q.value
|
|
554
533
|
}, {
|
|
555
534
|
default: w(() => [
|
|
556
|
-
(s(), y(
|
|
557
|
-
key: JSON.stringify(
|
|
535
|
+
(s(), y(ui(Y.value), {
|
|
536
|
+
key: JSON.stringify(Y.value),
|
|
558
537
|
small: "",
|
|
559
538
|
"aria-hidden": "true",
|
|
560
|
-
class:
|
|
539
|
+
class: Z(["b-file-uploader-file-card__icon", ra.value]),
|
|
561
540
|
"data-testid": "file-uploader-item-icon"
|
|
562
541
|
}, null, 8, ["class"]))
|
|
563
542
|
]),
|
|
@@ -565,137 +544,137 @@ const Ga = {
|
|
|
565
544
|
}, 8, ["name", "show-file-icon"]),
|
|
566
545
|
r("div", {
|
|
567
546
|
ref_key: "fileNameContainerRef",
|
|
568
|
-
ref:
|
|
547
|
+
ref: pa,
|
|
569
548
|
class: "b-file-uploader-file-card__file-name"
|
|
570
549
|
}, [
|
|
571
|
-
|
|
550
|
+
U(t(zi), {
|
|
572
551
|
"aria-hidden": "true",
|
|
573
552
|
tabindex: "-1",
|
|
574
|
-
download:
|
|
553
|
+
download: j.file.data.name,
|
|
575
554
|
to: b.value,
|
|
576
555
|
"disable-typography": "",
|
|
577
556
|
"is-not-routing": "",
|
|
578
557
|
variant: "quiet"
|
|
579
558
|
}, {
|
|
580
559
|
default: w(() => [
|
|
581
|
-
|
|
560
|
+
Ua((s(), y(t(R), {
|
|
582
561
|
ref_key: "fileNameRef",
|
|
583
|
-
ref:
|
|
562
|
+
ref: G,
|
|
584
563
|
stronger: "",
|
|
585
564
|
el: "span"
|
|
586
565
|
}, {
|
|
587
566
|
default: w(() => [
|
|
588
|
-
|
|
567
|
+
$(x(j.file.data.name), 1)
|
|
589
568
|
]),
|
|
590
569
|
_: 1
|
|
591
570
|
})), [
|
|
592
|
-
[t(
|
|
571
|
+
[t($i), t(la) ? j.file.data.name : null]
|
|
593
572
|
])
|
|
594
573
|
]),
|
|
595
574
|
_: 1
|
|
596
575
|
}, 8, ["download", "to"])
|
|
597
576
|
], 512),
|
|
598
|
-
|
|
577
|
+
j.file.progress ? (s(), y(t(R), {
|
|
599
578
|
key: 0,
|
|
600
579
|
el: "span"
|
|
601
580
|
}, {
|
|
602
581
|
default: w(() => [
|
|
603
|
-
|
|
582
|
+
$(x(oa.value), 1)
|
|
604
583
|
]),
|
|
605
584
|
_: 1
|
|
606
|
-
})) :
|
|
585
|
+
})) : j.file.data.size ? (s(), y(t(R), {
|
|
607
586
|
key: 1,
|
|
608
587
|
class: "b-file-uploader-file-card__file-size",
|
|
609
588
|
"aria-hidden": "true",
|
|
610
589
|
el: "span"
|
|
611
590
|
}, {
|
|
612
591
|
default: w(() => [
|
|
613
|
-
|
|
592
|
+
$(x(W.value), 1)
|
|
614
593
|
]),
|
|
615
594
|
_: 1
|
|
616
595
|
})) : u("", !0)
|
|
617
596
|
]),
|
|
618
|
-
|
|
597
|
+
K.value || Q.value || ta.value && j.supportedFileTypes ? (s(), g("div", {
|
|
619
598
|
key: 0,
|
|
620
|
-
id: t(
|
|
599
|
+
id: t(O),
|
|
621
600
|
role: "alert"
|
|
622
601
|
}, [
|
|
623
|
-
|
|
602
|
+
K.value ? (s(), y(t(R), {
|
|
624
603
|
key: 0,
|
|
625
604
|
class: "b-file-uploader-file-card__error-message"
|
|
626
605
|
}, {
|
|
627
606
|
default: w(() => [
|
|
628
|
-
|
|
607
|
+
$(x(t(l)("fileExceedsSizeLimit")), 1)
|
|
629
608
|
]),
|
|
630
609
|
_: 1
|
|
631
610
|
})) : u("", !0),
|
|
632
|
-
|
|
611
|
+
Q.value ? (s(), y(t(R), {
|
|
633
612
|
key: 1,
|
|
634
613
|
class: "b-file-uploader-file-card__error-message"
|
|
635
614
|
}, {
|
|
636
615
|
default: w(() => [
|
|
637
|
-
|
|
616
|
+
$(x(t(l)("imageDimensionsExceedLimits")), 1)
|
|
638
617
|
]),
|
|
639
618
|
_: 1
|
|
640
619
|
})) : u("", !0),
|
|
641
|
-
|
|
620
|
+
ta.value && j.supportedFileTypes ? (s(), y(t(R), {
|
|
642
621
|
key: 2,
|
|
643
622
|
class: "b-file-uploader-file-card__error-message"
|
|
644
623
|
}, {
|
|
645
624
|
default: w(() => [
|
|
646
|
-
|
|
625
|
+
$(x(t(l)("fileTypeMustBe", { list: j.supportedFileTypes })), 1)
|
|
647
626
|
]),
|
|
648
627
|
_: 1
|
|
649
628
|
})) : u("", !0)
|
|
650
|
-
], 8,
|
|
629
|
+
], 8, Se)) : u("", !0)
|
|
651
630
|
]),
|
|
652
|
-
|
|
653
|
-
|
|
631
|
+
j.readonly ? u("", !0) : (s(), g("div", Le, [
|
|
632
|
+
A.value ? (s(), y(t(ba), {
|
|
654
633
|
key: 0,
|
|
655
634
|
ref_key: "retryFileButtonRef",
|
|
656
|
-
ref:
|
|
657
|
-
"aria-labelledby": `${t(
|
|
635
|
+
ref: V,
|
|
636
|
+
"aria-labelledby": `${t(O)} ${t(B)}`,
|
|
658
637
|
variant: "tertiary",
|
|
659
|
-
onClick:
|
|
638
|
+
onClick: H[0] || (H[0] = (ia) => c("retry"))
|
|
660
639
|
}, {
|
|
661
640
|
iconLeft: w(() => [
|
|
662
|
-
|
|
663
|
-
id: t(
|
|
664
|
-
"svg-title": `${t(l)("retry")} - ${
|
|
641
|
+
U(t(Ci), {
|
|
642
|
+
id: t(B),
|
|
643
|
+
"svg-title": `${t(l)("retry")} - ${j.file.data.name} `
|
|
665
644
|
}, null, 8, ["id", "svg-title"])
|
|
666
645
|
]),
|
|
667
646
|
default: w(() => [
|
|
668
|
-
|
|
647
|
+
$(" " + x(t(l)("retry")), 1)
|
|
669
648
|
]),
|
|
670
649
|
_: 1
|
|
671
650
|
}, 8, ["aria-labelledby"])) : u("", !0),
|
|
672
|
-
|
|
651
|
+
na.value || N.value ? (s(), y(t(ba), {
|
|
673
652
|
key: 1,
|
|
674
653
|
ref_key: "cancelFileButtonRef",
|
|
675
|
-
ref:
|
|
676
|
-
"aria-labelledby": `${t(
|
|
654
|
+
ref: z,
|
|
655
|
+
"aria-labelledby": `${t(O)} ${t(v)}`,
|
|
677
656
|
variant: "tertiary",
|
|
678
|
-
onClick:
|
|
657
|
+
onClick: H[1] || (H[1] = (ia) => c("cancel"))
|
|
679
658
|
}, {
|
|
680
659
|
iconLeft: w(() => [
|
|
681
|
-
|
|
660
|
+
U(t(ki), {
|
|
682
661
|
id: t(v),
|
|
683
|
-
"svg-title": `${t(l)("cancel")} - ${
|
|
662
|
+
"svg-title": `${t(l)("cancel")} - ${j.file.data.name}`
|
|
684
663
|
}, null, 8, ["id", "svg-title"])
|
|
685
664
|
]),
|
|
686
665
|
_: 1
|
|
687
|
-
}, 8, ["aria-labelledby"])) : (s(), y(t(
|
|
666
|
+
}, 8, ["aria-labelledby"])) : (s(), y(t(ba), {
|
|
688
667
|
key: 2,
|
|
689
668
|
ref_key: "removeFileButtonRef",
|
|
690
669
|
ref: h,
|
|
691
|
-
"aria-labelledby": `${t(
|
|
670
|
+
"aria-labelledby": `${t(O)} ${t(_)}`,
|
|
692
671
|
variant: "tertiary",
|
|
693
|
-
onClick:
|
|
672
|
+
onClick: H[2] || (H[2] = (ia) => c("remove"))
|
|
694
673
|
}, {
|
|
695
674
|
iconLeft: w(() => [
|
|
696
|
-
|
|
697
|
-
id: t(
|
|
698
|
-
"svg-title": `${t(l)("remove")} - ${
|
|
675
|
+
U(t(wi), {
|
|
676
|
+
id: t(_),
|
|
677
|
+
"svg-title": `${t(l)("remove")} - ${j.file.data.name}`
|
|
699
678
|
}, null, 8, ["id", "svg-title"])
|
|
700
679
|
]),
|
|
701
680
|
_: 1
|
|
@@ -703,36 +682,14 @@ const Ga = {
|
|
|
703
682
|
]))
|
|
704
683
|
], 2));
|
|
705
684
|
}
|
|
706
|
-
}),
|
|
707
|
-
"en-US": {
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
upToSize: "(up to {size})"
|
|
715
|
-
},
|
|
716
|
-
"ja-JP": {
|
|
717
|
-
maxFileSize: "最大ファイルサイズ:{size}",
|
|
718
|
-
maxImageDimensions: "最大画像サイズ: {width} × {height}px",
|
|
719
|
-
maxImageHeight: "最大画像高さ: {height}px",
|
|
720
|
-
maxImageWidth: "最大画像幅: {width}px",
|
|
721
|
-
maxUpload: "最大アップロード: {count}件のファイル |最大アップロード: {count}件のファイル",
|
|
722
|
-
supportedFileTypes: "対応ファイル形式: {list}"
|
|
723
|
-
},
|
|
724
|
-
"pt-BR": {
|
|
725
|
-
maxFileSize: "Tamanho máx. do arquivo: {size}",
|
|
726
|
-
maxImageDimensions: "Dimensões máximas da imagem: {width} × {height}px",
|
|
727
|
-
maxImageHeight: "Altura máx. da imagem: {height}px",
|
|
728
|
-
maxImageWidth: "Largura máxima da imagem: {width}px",
|
|
729
|
-
maxUpload: "Máximo de upload: {count} arquivo | Máximo de upload: {count} arquivos",
|
|
730
|
-
supportedFileTypes: "Tipos de arquivo aceitos: {list}"
|
|
731
|
-
}
|
|
732
|
-
}, Oe = {
|
|
733
|
-
i18n: { messages: Ya }
|
|
734
|
-
}, qe = /* @__PURE__ */ da({
|
|
735
|
-
...Oe,
|
|
685
|
+
}), De = /* @__PURE__ */ S(Me, [["__scopeId", "data-v-0051c431"]]), Ga = {
|
|
686
|
+
"en-US": { maxFileSize: "Max file size: {size}", maxImageDimensions: "Max image dimensions: {width} × {height}px", maxImageHeight: "Max image height: {height}px", maxImageWidth: "Max image width: {width}px", maxUpload: "Max upload: {count} file | Max upload: {count} files", supportedFileTypes: "Supported file types: {list}", upToSize: "(up to {size})" },
|
|
687
|
+
"ja-JP": { maxFileSize: "最大ファイルサイズ:{size}", maxImageDimensions: "最大画像サイズ: {width} × {height}px", maxImageHeight: "最大画像高さ: {height}px", maxImageWidth: "最大画像幅: {width}px", maxUpload: "最大アップロード: {count}件のファイル |最大アップロード: {count}件のファイル", supportedFileTypes: "対応ファイル形式: {list}" },
|
|
688
|
+
"pt-BR": { maxFileSize: "Tamanho máx. do arquivo: {size}", maxImageDimensions: "Dimensões máximas da imagem: {width} × {height}px", maxImageHeight: "Altura máx. da imagem: {height}px", maxImageWidth: "Largura máxima da imagem: {width}px", maxUpload: "Máximo de upload: {count} arquivo | Máximo de upload: {count} arquivos", supportedFileTypes: "Tipos de arquivo aceitos: {list}" }
|
|
689
|
+
}, Ve = {
|
|
690
|
+
i18n: { messages: Ga }
|
|
691
|
+
}, Oe = /* @__PURE__ */ ca({
|
|
692
|
+
...Ve,
|
|
736
693
|
__name: "file-uploader-restrictions",
|
|
737
694
|
props: {
|
|
738
695
|
condensed: { type: Boolean, default: null },
|
|
@@ -743,7 +700,7 @@ const Ga = {
|
|
|
743
700
|
supportedFileTypes: { default: null }
|
|
744
701
|
},
|
|
745
702
|
setup(a) {
|
|
746
|
-
const i = a, { t:
|
|
703
|
+
const i = a, { t: p, tc: n, n: o, locale: c } = da({ messages: Ga }), l = f(() => ({
|
|
747
704
|
"b-file-uploader-restrictions--condensed": i.condensed,
|
|
748
705
|
"b-file-uploader-restrictions--disabled": i.disabled
|
|
749
706
|
}));
|
|
@@ -752,66 +709,66 @@ const Ga = {
|
|
|
752
709
|
"b-file-uploader-restrictions--error": v
|
|
753
710
|
};
|
|
754
711
|
}
|
|
755
|
-
const h = f(() => i.maxSize && Array.isArray(i.maxSize.value)),
|
|
712
|
+
const h = f(() => i.maxSize && Array.isArray(i.maxSize.value)), z = f(() => !i.maxSize || h.value ? null : p("maxFileSize", { size: ka(c.value, i.maxSize.value) })), V = f(() => {
|
|
756
713
|
if (!i.supportedFileTypes)
|
|
757
714
|
return null;
|
|
758
715
|
if (!h.value)
|
|
759
716
|
return i.supportedFileTypes.value;
|
|
760
717
|
let v = i.supportedFileTypes.value;
|
|
761
|
-
return i.maxSize.value.forEach((
|
|
762
|
-
const
|
|
763
|
-
v = v.replace(
|
|
718
|
+
return i.maxSize.value.forEach((_) => {
|
|
719
|
+
const B = _.fileType.toUpperCase(), q = p("upToSize", { size: ka(c.value, _.maxSize) });
|
|
720
|
+
v = v.replace(B, `${B} ${q}`);
|
|
764
721
|
}), v;
|
|
765
|
-
}),
|
|
722
|
+
}), O = f(() => {
|
|
766
723
|
if (!i.maxDimensions)
|
|
767
724
|
return null;
|
|
768
725
|
const {
|
|
769
|
-
value: { width: v, height:
|
|
726
|
+
value: { width: v, height: _ }
|
|
770
727
|
} = i.maxDimensions;
|
|
771
|
-
return v &&
|
|
728
|
+
return v && _ ? p("maxImageDimensions", { width: o(v), height: o(_) }) : v ? p("maxImageWidth", { width: o(v) }) : _ ? p("maxImageHeight", { height: o(_) }) : null;
|
|
772
729
|
});
|
|
773
|
-
return (v,
|
|
774
|
-
class:
|
|
730
|
+
return (v, _) => (s(), g("div", {
|
|
731
|
+
class: Z(["b-file-uploader-restrictions", l.value])
|
|
775
732
|
}, [
|
|
776
|
-
v.supportedFileTypes ? (s(), y(t(
|
|
733
|
+
v.supportedFileTypes ? (s(), y(t(R), {
|
|
777
734
|
key: 0,
|
|
778
|
-
class:
|
|
735
|
+
class: Z(m(v.supportedFileTypes.error || h.value && v.maxSize.error))
|
|
779
736
|
}, {
|
|
780
737
|
default: w(() => [
|
|
781
|
-
|
|
738
|
+
$(x(t(p)("supportedFileTypes", { list: V.value })), 1)
|
|
782
739
|
]),
|
|
783
740
|
_: 1
|
|
784
741
|
}, 8, ["class"])) : u("", !0),
|
|
785
|
-
!h.value && v.maxSize ? (s(), y(t(
|
|
742
|
+
!h.value && v.maxSize ? (s(), y(t(R), {
|
|
786
743
|
key: 1,
|
|
787
|
-
class:
|
|
744
|
+
class: Z(m(v.maxSize.error))
|
|
788
745
|
}, {
|
|
789
746
|
default: w(() => [
|
|
790
|
-
|
|
747
|
+
$(x(z.value), 1)
|
|
791
748
|
]),
|
|
792
749
|
_: 1
|
|
793
750
|
}, 8, ["class"])) : u("", !0),
|
|
794
|
-
v.maxDimensions ? (s(), y(t(
|
|
751
|
+
v.maxDimensions ? (s(), y(t(R), {
|
|
795
752
|
key: 2,
|
|
796
|
-
class:
|
|
753
|
+
class: Z(m(v.maxDimensions.error))
|
|
797
754
|
}, {
|
|
798
755
|
default: w(() => [
|
|
799
|
-
|
|
756
|
+
$(x(O.value), 1)
|
|
800
757
|
]),
|
|
801
758
|
_: 1
|
|
802
759
|
}, 8, ["class"])) : u("", !0),
|
|
803
|
-
v.maxCount ? (s(), y(t(
|
|
760
|
+
v.maxCount ? (s(), y(t(R), {
|
|
804
761
|
key: 3,
|
|
805
|
-
class:
|
|
762
|
+
class: Z(m(v.maxCount.error))
|
|
806
763
|
}, {
|
|
807
764
|
default: w(() => [
|
|
808
|
-
|
|
765
|
+
$(x(t(n)("maxUpload", v.maxCount.value, { count: t(o)(v.maxCount.value) })), 1)
|
|
809
766
|
]),
|
|
810
767
|
_: 1
|
|
811
768
|
}, 8, ["class"])) : u("", !0)
|
|
812
769
|
], 2));
|
|
813
770
|
}
|
|
814
|
-
}),
|
|
771
|
+
}), Ba = /* @__PURE__ */ S(Oe, [["__scopeId", "data-v-e75ae2de"]]), Ya = {
|
|
815
772
|
"application/prs.cww": ["cww"],
|
|
816
773
|
"application/prs.xsf+xml": ["xsf"],
|
|
817
774
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1510,8 +1467,8 @@ const Ga = {
|
|
|
1510
1467
|
"video/x-smv": ["smv"],
|
|
1511
1468
|
"x-conference/x-cooltalk": ["ice"]
|
|
1512
1469
|
};
|
|
1513
|
-
Object.freeze(
|
|
1514
|
-
const
|
|
1470
|
+
Object.freeze(Ya);
|
|
1471
|
+
const Ja = {
|
|
1515
1472
|
"application/andrew-inset": ["ez"],
|
|
1516
1473
|
"application/appinstaller": ["appinstaller"],
|
|
1517
1474
|
"application/applixware": ["aw"],
|
|
@@ -1863,31 +1820,31 @@ const Xa = {
|
|
|
1863
1820
|
"video/quicktime": ["qt", "mov"],
|
|
1864
1821
|
"video/webm": ["webm"]
|
|
1865
1822
|
};
|
|
1866
|
-
Object.freeze(
|
|
1867
|
-
var
|
|
1868
|
-
if (
|
|
1869
|
-
if (typeof i == "function" ? a !== i || !
|
|
1870
|
-
return
|
|
1871
|
-
},
|
|
1872
|
-
class
|
|
1823
|
+
Object.freeze(Ja);
|
|
1824
|
+
var T = function(a, i, p, n) {
|
|
1825
|
+
if (p === "a" && !n) throw new TypeError("Private accessor was defined without a getter");
|
|
1826
|
+
if (typeof i == "function" ? a !== i || !n : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1827
|
+
return p === "m" ? n : p === "a" ? n.call(a) : n ? n.value : i.get(a);
|
|
1828
|
+
}, X, ea, P;
|
|
1829
|
+
class qe {
|
|
1873
1830
|
constructor(...i) {
|
|
1874
|
-
|
|
1875
|
-
for (const
|
|
1876
|
-
this.define(
|
|
1831
|
+
X.set(this, /* @__PURE__ */ new Map()), ea.set(this, /* @__PURE__ */ new Map()), P.set(this, /* @__PURE__ */ new Map());
|
|
1832
|
+
for (const p of i)
|
|
1833
|
+
this.define(p);
|
|
1877
1834
|
}
|
|
1878
|
-
define(i,
|
|
1879
|
-
for (let [
|
|
1880
|
-
|
|
1881
|
-
const
|
|
1835
|
+
define(i, p = !1) {
|
|
1836
|
+
for (let [n, o] of Object.entries(i)) {
|
|
1837
|
+
n = n.toLowerCase(), o = o.map((m) => m.toLowerCase()), T(this, P, "f").has(n) || T(this, P, "f").set(n, /* @__PURE__ */ new Set());
|
|
1838
|
+
const c = T(this, P, "f").get(n);
|
|
1882
1839
|
let l = !0;
|
|
1883
|
-
for (let m of
|
|
1840
|
+
for (let m of o) {
|
|
1884
1841
|
const h = m.startsWith("*");
|
|
1885
|
-
if (m = h ? m.slice(1) : m,
|
|
1842
|
+
if (m = h ? m.slice(1) : m, c?.add(m), l && T(this, ea, "f").set(n, m), l = !1, h)
|
|
1886
1843
|
continue;
|
|
1887
|
-
const
|
|
1888
|
-
if (
|
|
1889
|
-
throw new Error(`"${
|
|
1890
|
-
|
|
1844
|
+
const z = T(this, X, "f").get(m);
|
|
1845
|
+
if (z && z != n && !p)
|
|
1846
|
+
throw new Error(`"${n} -> ${m}" conflicts with "${z} -> ${m}". Pass \`force=true\` to override this definition.`);
|
|
1847
|
+
T(this, X, "f").set(m, n);
|
|
1891
1848
|
}
|
|
1892
1849
|
}
|
|
1893
1850
|
return this;
|
|
@@ -1895,135 +1852,101 @@ class He {
|
|
|
1895
1852
|
getType(i) {
|
|
1896
1853
|
if (typeof i != "string")
|
|
1897
1854
|
return null;
|
|
1898
|
-
const
|
|
1899
|
-
return !(
|
|
1855
|
+
const p = i.replace(/^.*[/\\]/, "").toLowerCase(), n = p.replace(/^.*\./, "").toLowerCase(), o = p.length < i.length;
|
|
1856
|
+
return !(n.length < p.length - 1) && o ? null : T(this, X, "f").get(n) ?? null;
|
|
1900
1857
|
}
|
|
1901
1858
|
getExtension(i) {
|
|
1902
|
-
|
|
1903
|
-
return typeof i != "string" ? null : (i = (n = i == null ? void 0 : i.split) == null ? void 0 : n.call(i, ";")[0], (i && M(this, ta, "f").get(i.trim().toLowerCase())) ?? null);
|
|
1859
|
+
return typeof i != "string" ? null : (i = i?.split?.(";")[0], (i && T(this, ea, "f").get(i.trim().toLowerCase())) ?? null);
|
|
1904
1860
|
}
|
|
1905
1861
|
getAllExtensions(i) {
|
|
1906
|
-
return typeof i != "string" ? null :
|
|
1862
|
+
return typeof i != "string" ? null : T(this, P, "f").get(i.toLowerCase()) ?? null;
|
|
1907
1863
|
}
|
|
1908
1864
|
_freeze() {
|
|
1909
1865
|
this.define = () => {
|
|
1910
1866
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
1911
1867
|
}, Object.freeze(this);
|
|
1912
|
-
for (const i of
|
|
1868
|
+
for (const i of T(this, P, "f").values())
|
|
1913
1869
|
Object.freeze(i);
|
|
1914
1870
|
return this;
|
|
1915
1871
|
}
|
|
1916
1872
|
_getTestState() {
|
|
1917
1873
|
return {
|
|
1918
|
-
types:
|
|
1919
|
-
extensions:
|
|
1874
|
+
types: T(this, X, "f"),
|
|
1875
|
+
extensions: T(this, ea, "f")
|
|
1920
1876
|
};
|
|
1921
1877
|
}
|
|
1922
1878
|
}
|
|
1923
|
-
|
|
1924
|
-
const
|
|
1925
|
-
"en-US": {
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
dropArea: "Drop area",
|
|
1929
|
-
dropFiles: "Drop file to upload | Drop files to upload",
|
|
1930
|
-
fileExceedsSizeLimit: "File exceeds size limit",
|
|
1931
|
-
imageFiles: "image files",
|
|
1932
|
-
noFilesUploaded: "No files uploaded",
|
|
1933
|
-
tooManyFiles: "Too many files",
|
|
1934
|
-
videoFiles: "video files",
|
|
1935
|
-
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
1936
|
-
},
|
|
1937
|
-
"ja-JP": {
|
|
1938
|
-
audioFiles: "オーディオファイル",
|
|
1939
|
-
browseFiles: "ファイルを参照",
|
|
1940
|
-
dropArea: "ドロップエリア",
|
|
1941
|
-
dropFiles: "ファイルをドロップしてアップロード | ファイルをドロップしてアップロード",
|
|
1942
|
-
fileExceedsSizeLimit: "ファイルがサイズ制限を超えています",
|
|
1943
|
-
imageFiles: "画像ファイル",
|
|
1944
|
-
noFilesUploaded: "ファイルはアップロードされていません",
|
|
1945
|
-
tooManyFiles: "ファイルが多すぎます",
|
|
1946
|
-
videoFiles: "ビデオファイル",
|
|
1947
|
-
youHaveExceededTheMaximum: "ファイル{count}件の最大制限を超えました。続行する前にいくつかのファイルを削除してください。"
|
|
1948
|
-
},
|
|
1949
|
-
"pt-BR": {
|
|
1950
|
-
audioFiles: "arquivos de áudio",
|
|
1951
|
-
browseFiles: "Procurar arquivos",
|
|
1952
|
-
dropArea: "Área de soltar",
|
|
1953
|
-
dropFiles: "Soltar arquivo para upload | Soltar arquivos para upload",
|
|
1954
|
-
fileExceedsSizeLimit: "O arquivo excede o limite de tamanho",
|
|
1955
|
-
imageFiles: "arquivos de imagem",
|
|
1956
|
-
noFilesUploaded: "Nenhum arquivo carregado",
|
|
1957
|
-
tooManyFiles: "Muitos arquivos",
|
|
1958
|
-
videoFiles: "arquivos de vídeo",
|
|
1959
|
-
youHaveExceededTheMaximum: "Você excedeu o limite máximo de {count} arquivos. Retire alguns arquivos antes de prosseguir."
|
|
1960
|
-
}
|
|
1879
|
+
X = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap();
|
|
1880
|
+
const Xa = new qe(Ja, Ya)._freeze(), Ca = {
|
|
1881
|
+
"en-US": { audioFiles: "audio files", browseFiles: "Browse files", dropArea: "Drop area", dropFiles: "Drop file to upload | Drop files to upload", fileExceedsSizeLimit: "File exceeds size limit", imageFiles: "image files", noFilesUploaded: "No files uploaded", tooManyFiles: "Too many files", videoFiles: "video files", youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding." },
|
|
1882
|
+
"ja-JP": { audioFiles: "オーディオファイル", browseFiles: "ファイルを参照", dropArea: "ドロップエリア", dropFiles: "ファイルをドロップしてアップロード | ファイルをドロップしてアップロード", fileExceedsSizeLimit: "ファイルがサイズ制限を超えています", imageFiles: "画像ファイル", noFilesUploaded: "ファイルはアップロードされていません", tooManyFiles: "ファイルが多すぎます", videoFiles: "ビデオファイル", youHaveExceededTheMaximum: "ファイル{count}件の最大制限を超えました。続行する前にいくつかのファイルを削除してください。" },
|
|
1883
|
+
"pt-BR": { audioFiles: "arquivos de áudio", browseFiles: "Procurar arquivos", dropArea: "Área de soltar", dropFiles: "Soltar arquivo para upload | Soltar arquivos para upload", fileExceedsSizeLimit: "O arquivo excede o limite de tamanho", imageFiles: "arquivos de imagem", noFilesUploaded: "Nenhum arquivo carregado", tooManyFiles: "Muitos arquivos", videoFiles: "arquivos de vídeo", youHaveExceededTheMaximum: "Você excedeu o limite máximo de {count} arquivos. Retire alguns arquivos antes de prosseguir." }
|
|
1961
1884
|
};
|
|
1962
|
-
function
|
|
1963
|
-
return a.includes("/") ? `.${
|
|
1885
|
+
function He(a) {
|
|
1886
|
+
return a.includes("/") ? `.${Xa.getExtension(a).toUpperCase()}` : a.toUpperCase();
|
|
1964
1887
|
}
|
|
1965
|
-
function
|
|
1966
|
-
const { locale: i, t:
|
|
1888
|
+
function Be(a) {
|
|
1889
|
+
const { locale: i, t: p } = da({ messages: Ca });
|
|
1967
1890
|
return { supportedFileTypeList: f(() => {
|
|
1968
|
-
const
|
|
1969
|
-
return a
|
|
1970
|
-
a.value.split(",").map((
|
|
1971
|
-
switch (
|
|
1891
|
+
const o = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
|
|
1892
|
+
return a?.value ? o.format(
|
|
1893
|
+
a.value.split(",").map((c) => {
|
|
1894
|
+
switch (c.trim()) {
|
|
1972
1895
|
case "audio/*":
|
|
1973
|
-
return
|
|
1896
|
+
return p("audioFiles");
|
|
1974
1897
|
case "image/*":
|
|
1975
|
-
return
|
|
1898
|
+
return p("imageFiles");
|
|
1976
1899
|
case "video/*":
|
|
1977
|
-
return
|
|
1900
|
+
return p("videoFiles");
|
|
1978
1901
|
default:
|
|
1979
|
-
return
|
|
1902
|
+
return He(c);
|
|
1980
1903
|
}
|
|
1981
1904
|
})
|
|
1982
1905
|
) : null;
|
|
1983
1906
|
}) };
|
|
1984
1907
|
}
|
|
1985
|
-
function
|
|
1986
|
-
return
|
|
1908
|
+
function Ae(a) {
|
|
1909
|
+
return Xa.getType(a) ?? a;
|
|
1987
1910
|
}
|
|
1988
|
-
function
|
|
1989
|
-
const
|
|
1911
|
+
function Ue({ maxCount: a, accept: i }) {
|
|
1912
|
+
const p = ya({
|
|
1990
1913
|
invalidTypes: !1,
|
|
1991
1914
|
partiallyInvalidTypes: !1,
|
|
1992
1915
|
maxCountOverflow: !1
|
|
1993
|
-
}),
|
|
1916
|
+
}), n = ya({
|
|
1994
1917
|
dragging: !1,
|
|
1995
1918
|
error: !1
|
|
1996
|
-
}),
|
|
1997
|
-
function
|
|
1998
|
-
|
|
1919
|
+
}), o = f(() => i.value ? i.value.split(",").map((h) => Ae(h.trim().toLocaleLowerCase())) : void 0);
|
|
1920
|
+
function c() {
|
|
1921
|
+
n.dragging = !1, n.error = !1, p.invalidTypes = !1, p.partiallyInvalidTypes = !1, p.maxCountOverflow = !1;
|
|
1999
1922
|
}
|
|
2000
1923
|
function l(m, h) {
|
|
2001
|
-
if (
|
|
1924
|
+
if (n.dragging = !0, (!h.dataTransfer.types.includes("Files") || m > a.value) && (p.maxCountOverflow = !0, n.error = !0), !o.value)
|
|
2002
1925
|
return;
|
|
2003
|
-
let
|
|
2004
|
-
for (const
|
|
2005
|
-
|
|
2006
|
-
if (
|
|
2007
|
-
|
|
1926
|
+
let z = 0;
|
|
1927
|
+
for (const V of h.dataTransfer.items)
|
|
1928
|
+
o.value.includes(V.type) && z++;
|
|
1929
|
+
if (z === 0) {
|
|
1930
|
+
n.error = !0, p.invalidTypes = !0;
|
|
2008
1931
|
return;
|
|
2009
1932
|
}
|
|
2010
|
-
!
|
|
1933
|
+
!p.invalidTypes && z !== h.dataTransfer.items.length && (n.error = !0, p.partiallyInvalidTypes = !0);
|
|
2011
1934
|
}
|
|
2012
1935
|
return {
|
|
2013
|
-
dragState:
|
|
2014
|
-
dragErrors:
|
|
2015
|
-
resetDragState:
|
|
1936
|
+
dragState: n,
|
|
1937
|
+
dragErrors: p,
|
|
1938
|
+
resetDragState: c,
|
|
2016
1939
|
onDragEnterValidations: l
|
|
2017
1940
|
};
|
|
2018
1941
|
}
|
|
2019
|
-
const
|
|
1942
|
+
const Ze = ["id", "aria-required", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-labelledby", "tabindex"], We = {
|
|
2020
1943
|
class: "b-file-uploader__icon",
|
|
2021
1944
|
"aria-hidden": "true"
|
|
2022
|
-
},
|
|
1945
|
+
}, Ge = { class: "b-file-uploader__files" }, Ye = {
|
|
2023
1946
|
model: { prop: "modelValue" },
|
|
2024
|
-
i18n: { messages:
|
|
2025
|
-
},
|
|
2026
|
-
...
|
|
1947
|
+
i18n: { messages: Ca }
|
|
1948
|
+
}, Je = /* @__PURE__ */ ca({
|
|
1949
|
+
...Ye,
|
|
2027
1950
|
__name: "file-uploader",
|
|
2028
1951
|
props: {
|
|
2029
1952
|
accept: { default: null },
|
|
@@ -2044,327 +1967,299 @@ const Ne = ["id", "aria-required", "accept", "disabled", "multiple"], Pe = ["id"
|
|
|
2044
1967
|
},
|
|
2045
1968
|
emits: ["change", "input", "update:model-value", "error:upload"],
|
|
2046
1969
|
setup(a, { emit: i }) {
|
|
2047
|
-
const { t:
|
|
1970
|
+
const { t: p, tc: n, n: o } = da({ messages: Ca }), c = i, l = a, { emitValue: m } = bi(c);
|
|
2048
1971
|
function h(e) {
|
|
2049
1972
|
return !!e && typeof e.length == "number" && typeof e.item == "function";
|
|
2050
1973
|
}
|
|
2051
|
-
|
|
2052
|
-
h(l.modelValue) ||
|
|
1974
|
+
Aa(() => {
|
|
1975
|
+
h(l.modelValue) || hi(
|
|
2053
1976
|
"BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
|
|
2054
1977
|
"Use FileList instead.",
|
|
2055
1978
|
"2.0.0"
|
|
2056
1979
|
);
|
|
2057
1980
|
});
|
|
2058
|
-
const { supportedFileTypeList:
|
|
2059
|
-
const e = l.label ? `${
|
|
2060
|
-
return `${e} ${
|
|
2061
|
-
}), { dragState:
|
|
2062
|
-
accept:
|
|
2063
|
-
maxCount:
|
|
2064
|
-
}),
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
[`b-file-uploader--${ca.DISABLED}`]: l.disabled,
|
|
2088
|
-
[`b-file-uploader--${ca.DRAG_OVER}`]: pa.dragging,
|
|
2089
|
-
[`b-file-uploader--${ca.ERROR}`]: va.value,
|
|
1981
|
+
const { supportedFileTypeList: z } = Be(ha(l, "accept")), V = I("browse-button"), O = I("custom-text"), v = I("drop-files-text"), _ = I("comma-text"), B = I("file-uploader-restrictions"), q = I("field-label"), b = F(null), N = F([]), A = F(null), K = F(null), Q = I("input"), ta = I("input-error"), na = f(() => {
|
|
1982
|
+
const e = l.label ? `${q} ${_}` : "", d = l.condensed ? "" : `${v} ${_}`, C = l.description ? `${O} ${_}` : "", L = `${B} ${_}`;
|
|
1983
|
+
return `${e} ${d} ${C} ${L} ${V}`;
|
|
1984
|
+
}), { dragState: oa, dragErrors: W, resetDragState: G, onDragEnterValidations: pa } = Ue({
|
|
1985
|
+
accept: ha(l, "accept"),
|
|
1986
|
+
maxCount: ha(l, "maxCount")
|
|
1987
|
+
}), la = f(() => ({
|
|
1988
|
+
condensed: l.condensed,
|
|
1989
|
+
disabled: l.disabled,
|
|
1990
|
+
maxCount: Y.value ? {
|
|
1991
|
+
value: l.maxCount,
|
|
1992
|
+
error: W.maxCountOverflow || $a.value
|
|
1993
|
+
} : null,
|
|
1994
|
+
maxDimensions: l.maxDimensions ? {
|
|
1995
|
+
value: l.maxDimensions,
|
|
1996
|
+
error: b.value?.some((e) => e.errors.includes(E.ERROR_DIMENSIONS))
|
|
1997
|
+
} : null,
|
|
1998
|
+
maxSize: l.maxSize ? {
|
|
1999
|
+
value: l.maxSize,
|
|
2000
|
+
error: b.value?.some((e) => e.errors.includes(E.ERROR_SIZE))
|
|
2001
|
+
} : null,
|
|
2002
|
+
supportedFileTypes: z.value ? {
|
|
2003
|
+
value: z.value,
|
|
2004
|
+
error: W.invalidTypes || W.partiallyInvalidTypes || b.value?.some((e) => e.errors.includes(E.ERROR_TYPE))
|
|
2005
|
+
} : null
|
|
2006
|
+
})), aa = F(), ra = f(() => ({
|
|
2007
|
+
[`b-file-uploader--${sa.DISABLED}`]: l.disabled,
|
|
2008
|
+
[`b-file-uploader--${sa.DRAG_OVER}`]: oa.dragging,
|
|
2009
|
+
[`b-file-uploader--${sa.ERROR}`]: ua.value,
|
|
2090
2010
|
"b-file-uploader--condensed": l.condensed
|
|
2091
|
-
})),
|
|
2092
|
-
|
|
2093
|
-
return l.maxCount && ((e = b.value) == null ? void 0 : e.length) >= l.maxCount || l.readonly;
|
|
2094
|
-
}), R = f(() => {
|
|
2095
|
-
var e;
|
|
2096
|
-
return (e = b.value) == null ? void 0 : e.some((c) => c.state === "loading");
|
|
2097
|
-
}), B = (e) => (c) => {
|
|
2098
|
-
P.value[e] = c;
|
|
2011
|
+
})), Y = f(() => l.maxCount > 1), ma = f(() => l.maxCount && b.value?.length >= l.maxCount || l.readonly), j = f(() => b.value?.some((e) => e.state === "loading")), H = (e) => (d) => {
|
|
2012
|
+
N.value[e] = d;
|
|
2099
2013
|
};
|
|
2100
|
-
function
|
|
2014
|
+
function ia(e) {
|
|
2101
2015
|
if (e) {
|
|
2102
|
-
|
|
2103
|
-
const
|
|
2104
|
-
|
|
2016
|
+
pi(e), li(e);
|
|
2017
|
+
const d = si(e);
|
|
2018
|
+
c("change", d), m(d);
|
|
2105
2019
|
} else
|
|
2106
|
-
|
|
2020
|
+
c("change", void 0), m(void 0);
|
|
2107
2021
|
}
|
|
2108
|
-
const
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
}), Qa = S(!1), ai = f(() => {
|
|
2112
|
-
var e;
|
|
2113
|
-
return (e = b.value) == null ? void 0 : e.some((c) => c.state === "error");
|
|
2022
|
+
const ua = f(() => !!l.errorMessage || oa.error), $a = f(() => b.value?.length > l.maxCount), Ka = F(!1), Qa = f(() => b.value?.some((e) => e.state === "error"));
|
|
2023
|
+
wa(Qa, (e) => {
|
|
2024
|
+
j.value || c("error:upload", e);
|
|
2114
2025
|
});
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
async function fa() {
|
|
2119
|
-
var e;
|
|
2120
|
-
if (await gi(), b.value.length === l.maxCount) {
|
|
2121
|
-
(e = P.value[0]) == null || e.focus();
|
|
2026
|
+
async function va() {
|
|
2027
|
+
if (await xi(), b.value.length === l.maxCount) {
|
|
2028
|
+
N.value[0]?.focus();
|
|
2122
2029
|
return;
|
|
2123
2030
|
}
|
|
2124
|
-
|
|
2031
|
+
K.value.focus();
|
|
2125
2032
|
}
|
|
2126
|
-
async function
|
|
2127
|
-
b.value = b.value.filter(({ id:
|
|
2033
|
+
async function za(e) {
|
|
2034
|
+
b.value = b.value.filter(({ id: d }) => d !== e.id), await va(), ia(b.value);
|
|
2128
2035
|
}
|
|
2129
|
-
function
|
|
2130
|
-
const
|
|
2131
|
-
id:
|
|
2036
|
+
function fa(e) {
|
|
2037
|
+
const d = ya({
|
|
2038
|
+
id: I("file"),
|
|
2132
2039
|
data: e,
|
|
2133
2040
|
errors: [],
|
|
2134
2041
|
progress: null,
|
|
2135
|
-
state:
|
|
2136
|
-
type:
|
|
2042
|
+
state: M.LOADING,
|
|
2043
|
+
type: qi(e)
|
|
2137
2044
|
});
|
|
2138
|
-
return
|
|
2045
|
+
return Hi(d, l.accept, l.maxDimensions), d;
|
|
2139
2046
|
}
|
|
2140
|
-
function
|
|
2141
|
-
|
|
2142
|
-
((c = b.value) == null ? void 0 : c.length) === l.maxCount && e.preventDefault();
|
|
2047
|
+
function ai(e) {
|
|
2048
|
+
b.value?.length === l.maxCount && e.preventDefault();
|
|
2143
2049
|
}
|
|
2144
|
-
async function
|
|
2050
|
+
async function _a(e) {
|
|
2145
2051
|
if (l.maxCount === 1 && e.length > l.maxCount) {
|
|
2146
|
-
|
|
2052
|
+
xa(), G();
|
|
2147
2053
|
return;
|
|
2148
2054
|
}
|
|
2149
|
-
|
|
2055
|
+
Y.value ? b.value = [...b.value || [], ...Array.from(e).map((d) => fa(d))] : (b.value = [fa(e[0])], await va()), ia(b.value);
|
|
2150
2056
|
}
|
|
2151
|
-
function
|
|
2152
|
-
var C, $;
|
|
2057
|
+
function ii(e) {
|
|
2153
2058
|
if (l.disabled)
|
|
2154
2059
|
return;
|
|
2155
|
-
|
|
2156
|
-
const
|
|
2157
|
-
|
|
2060
|
+
aa.value = e.target;
|
|
2061
|
+
const d = (e.dataTransfer.items?.length ?? 0) + (b.value?.length ?? 0);
|
|
2062
|
+
pa(d, e);
|
|
2158
2063
|
}
|
|
2159
|
-
function
|
|
2160
|
-
|
|
2064
|
+
function xa() {
|
|
2065
|
+
aa.value = null;
|
|
2161
2066
|
}
|
|
2162
|
-
function
|
|
2163
|
-
|
|
2067
|
+
function ei(e) {
|
|
2068
|
+
aa.value === e.target && (xa(), G());
|
|
2164
2069
|
}
|
|
2165
|
-
function
|
|
2070
|
+
function ti(e) {
|
|
2166
2071
|
e.preventDefault(), l.disabled && (e.dataTransfer.dropEffect = "none");
|
|
2167
2072
|
}
|
|
2168
|
-
async function
|
|
2169
|
-
|
|
2170
|
-
l.disabled || (!G.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) && ja(e.dataTransfer.files), ga(), Y());
|
|
2073
|
+
async function ni(e) {
|
|
2074
|
+
l.disabled || (!W.invalidTypes && e.dataTransfer.files?.length && _a(e.dataTransfer.files), xa(), G());
|
|
2171
2075
|
}
|
|
2172
|
-
async function
|
|
2173
|
-
|
|
2174
|
-
(e = U.value.files) != null && e.length && ja(U.value.files), U.value.value = "", await fa();
|
|
2076
|
+
async function oi() {
|
|
2077
|
+
A.value.files?.length && _a(A.value.files), A.value.value = "", await va();
|
|
2175
2078
|
}
|
|
2176
|
-
|
|
2079
|
+
wa(
|
|
2177
2080
|
() => l.modelValue,
|
|
2178
2081
|
(e) => {
|
|
2179
2082
|
if (e && h(e)) {
|
|
2180
2083
|
const C = Array.from(e);
|
|
2181
|
-
b.value = C.map((
|
|
2084
|
+
b.value = C.map((L) => fa(L));
|
|
2182
2085
|
} else !e && b.value && (b.value = null);
|
|
2183
2086
|
},
|
|
2184
2087
|
{ immediate: !0 }
|
|
2185
2088
|
);
|
|
2186
|
-
function
|
|
2187
|
-
const
|
|
2188
|
-
|
|
2089
|
+
function pi(e) {
|
|
2090
|
+
const d = l.maxCount && e.length <= l.maxCount;
|
|
2091
|
+
Ka.value = !d;
|
|
2189
2092
|
}
|
|
2190
|
-
function
|
|
2191
|
-
l.maxSize && e.forEach((
|
|
2192
|
-
const C =
|
|
2193
|
-
let
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
);
|
|
2198
|
-
$ = T == null ? void 0 : T.maxSize;
|
|
2199
|
-
} else
|
|
2200
|
-
$ = l.maxSize;
|
|
2201
|
-
$ && C.data.size > $ && (C.state = D.ERROR, C.errors.includes(E.ERROR_SIZE) || C.errors.push(E.ERROR_SIZE));
|
|
2093
|
+
function li(e) {
|
|
2094
|
+
l.maxSize && e.forEach((d) => {
|
|
2095
|
+
const C = d;
|
|
2096
|
+
let L;
|
|
2097
|
+
Array.isArray(l.maxSize) ? L = l.maxSize.find(
|
|
2098
|
+
(ci) => Pa(C.data, ci.fileType)
|
|
2099
|
+
)?.maxSize : L = l.maxSize, L && C.data.size > L && (C.state = M.ERROR, C.errors.includes(E.ERROR_SIZE) || C.errors.push(E.ERROR_SIZE));
|
|
2202
2100
|
});
|
|
2203
2101
|
}
|
|
2204
|
-
function
|
|
2205
|
-
const
|
|
2102
|
+
function si(e) {
|
|
2103
|
+
const d = e.filter(
|
|
2206
2104
|
({ errors: C }) => !C.includes(E.ERROR_LOAD) && !C.includes(E.ERROR_SIZE)
|
|
2207
2105
|
);
|
|
2208
|
-
if (
|
|
2106
|
+
if (d.length) {
|
|
2209
2107
|
const C = new DataTransfer();
|
|
2210
|
-
return
|
|
2211
|
-
C.items.add(
|
|
2108
|
+
return d.forEach(({ data: L, id: ga }) => {
|
|
2109
|
+
C.items.add(L);
|
|
2212
2110
|
}), C.files;
|
|
2213
2111
|
}
|
|
2214
2112
|
}
|
|
2215
|
-
return (e,
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2113
|
+
return (e, d) => (s(), g("div", {
|
|
2114
|
+
class: Z(["b-file-uploader", ra.value])
|
|
2115
|
+
}, [
|
|
2116
|
+
U(t(ji), {
|
|
2117
|
+
id: t(q),
|
|
2118
|
+
class: "b-file-uploader__label",
|
|
2119
|
+
for: t(Q),
|
|
2120
|
+
label: e.label,
|
|
2121
|
+
optional: e.optional,
|
|
2122
|
+
required: e.required,
|
|
2123
|
+
"tooltip-text": e.tooltipText
|
|
2124
|
+
}, null, 8, ["id", "for", "label", "optional", "required", "tooltip-text"]),
|
|
2125
|
+
r("input", {
|
|
2126
|
+
id: t(Q),
|
|
2127
|
+
ref_key: "inputRef",
|
|
2128
|
+
ref: A,
|
|
2129
|
+
"aria-required": e.required,
|
|
2130
|
+
type: "file",
|
|
2131
|
+
tabindex: "-1",
|
|
2132
|
+
"data-testid": "input",
|
|
2133
|
+
class: "b-file-uploader__input",
|
|
2134
|
+
accept: e.accept,
|
|
2135
|
+
disabled: e.disabled,
|
|
2136
|
+
multiple: Y.value,
|
|
2137
|
+
onChange: oi,
|
|
2138
|
+
onClick: ai,
|
|
2139
|
+
onInvalid: d[0] || (d[0] = J(() => {
|
|
2140
|
+
}, ["prevent"]))
|
|
2141
|
+
}, null, 40, Ze),
|
|
2142
|
+
r("span", {
|
|
2143
|
+
id: t(_),
|
|
2144
|
+
"aria-hidden": "true",
|
|
2145
|
+
class: "b-file-uploader__invisible-comma"
|
|
2146
|
+
}, " , ", 8, Ne),
|
|
2147
|
+
ma.value ? u("", !0) : (s(), g("div", {
|
|
2148
|
+
key: 0,
|
|
2149
|
+
ref_key: "dropAreaRef",
|
|
2150
|
+
ref: K,
|
|
2151
|
+
"aria-labelledby": na.value,
|
|
2152
|
+
class: "b-file-uploader__area",
|
|
2153
|
+
role: "button",
|
|
2154
|
+
tabindex: e.disabled ? -1 : 0,
|
|
2155
|
+
onClick: d[1] || (d[1] = (C) => A.value.click()),
|
|
2156
|
+
onDragenter: J(ii, ["stop", "prevent"]),
|
|
2157
|
+
onDragleave: J(ei, ["stop", "prevent"]),
|
|
2158
|
+
onDrop: J(ni, ["stop", "prevent"]),
|
|
2159
|
+
onDragover: ti,
|
|
2160
|
+
onKeydownCapture: [
|
|
2161
|
+
d[2] || (d[2] = Ea(J((C) => A.value.click(), ["prevent"]), ["enter"])),
|
|
2162
|
+
d[3] || (d[3] = Ea(J((C) => A.value.click(), ["prevent"]), ["space"]))
|
|
2163
|
+
]
|
|
2219
2164
|
}, [
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
class: "b-file-uploader__input",
|
|
2238
|
-
accept: e.accept,
|
|
2239
|
-
disabled: e.disabled,
|
|
2240
|
-
multiple: J.value,
|
|
2241
|
-
onChange: pi,
|
|
2242
|
-
onClick: ii,
|
|
2243
|
-
onInvalid: c[0] || (c[0] = X(() => {
|
|
2244
|
-
}, ["prevent"]))
|
|
2245
|
-
}, null, 40, Ne),
|
|
2246
|
-
r("span", {
|
|
2247
|
-
id: t(j),
|
|
2248
|
-
"aria-hidden": "true",
|
|
2249
|
-
class: "b-file-uploader__invisible-comma"
|
|
2250
|
-
}, " , ", 8, Pe),
|
|
2251
|
-
ua.value ? u("", !0) : (s(), g("div", {
|
|
2252
|
-
key: 0,
|
|
2253
|
-
ref_key: "dropAreaRef",
|
|
2254
|
-
ref: Q,
|
|
2255
|
-
"aria-labelledby": oa.value,
|
|
2256
|
-
class: "b-file-uploader__area",
|
|
2257
|
-
role: "button",
|
|
2258
|
-
tabindex: e.disabled ? -1 : 0,
|
|
2259
|
-
onClick: c[1] || (c[1] = (T) => U.value.click()),
|
|
2260
|
-
onDragenter: X(ei, ["stop", "prevent"]),
|
|
2261
|
-
onDragleave: X(ti, ["stop", "prevent"]),
|
|
2262
|
-
onDrop: X(oi, ["stop", "prevent"]),
|
|
2263
|
-
onDragover: ni,
|
|
2264
|
-
onKeydownCapture: [
|
|
2265
|
-
c[2] || (c[2] = Ea(X((T) => U.value.click(), ["prevent"]), ["enter"])),
|
|
2266
|
-
c[3] || (c[3] = Ea(X((T) => U.value.click(), ["prevent"]), ["space"]))
|
|
2267
|
-
]
|
|
2268
|
-
}, [
|
|
2269
|
-
r("div", Ge, [
|
|
2270
|
-
va.value ? (s(), y(t(Na), { key: 0 })) : (s(), y(t(Li), { key: 1 }))
|
|
2271
|
-
]),
|
|
2272
|
-
e.condensed ? u("", !0) : (s(), g(Ia, { key: 0 }, [
|
|
2273
|
-
Z(t(I), {
|
|
2274
|
-
id: t(v),
|
|
2275
|
-
el: "span",
|
|
2276
|
-
strongest: "",
|
|
2277
|
-
class: "b-file-uploader__title"
|
|
2278
|
-
}, {
|
|
2279
|
-
default: w(() => [
|
|
2280
|
-
z(x(t(o)("dropFiles", e.maxCount)), 1)
|
|
2281
|
-
]),
|
|
2282
|
-
_: 1
|
|
2283
|
-
}, 8, ["id"]),
|
|
2284
|
-
e.description ? (s(), y(t(I), {
|
|
2285
|
-
key: 0,
|
|
2286
|
-
id: t(q),
|
|
2287
|
-
el: "span",
|
|
2288
|
-
class: "b-file-uploader__description"
|
|
2289
|
-
}, {
|
|
2290
|
-
default: w(() => [
|
|
2291
|
-
z(x(e.description), 1)
|
|
2292
|
-
]),
|
|
2293
|
-
_: 1
|
|
2294
|
-
}, 8, ["id"])) : u("", !0),
|
|
2295
|
-
Z(t(Aa), V(sa.value, { id: t(A) }), null, 16, ["id"])
|
|
2296
|
-
], 64)),
|
|
2297
|
-
Z(t(I), {
|
|
2165
|
+
r("div", We, [
|
|
2166
|
+
ua.value ? (s(), y(t(Za), { key: 0 })) : (s(), y(t(Si), { key: 1 }))
|
|
2167
|
+
]),
|
|
2168
|
+
e.condensed ? u("", !0) : (s(), g(Ra, { key: 0 }, [
|
|
2169
|
+
U(t(R), {
|
|
2170
|
+
id: t(v),
|
|
2171
|
+
el: "span",
|
|
2172
|
+
strongest: "",
|
|
2173
|
+
class: "b-file-uploader__title"
|
|
2174
|
+
}, {
|
|
2175
|
+
default: w(() => [
|
|
2176
|
+
$(x(t(n)("dropFiles", e.maxCount)), 1)
|
|
2177
|
+
]),
|
|
2178
|
+
_: 1
|
|
2179
|
+
}, 8, ["id"]),
|
|
2180
|
+
e.description ? (s(), y(t(R), {
|
|
2181
|
+
key: 0,
|
|
2298
2182
|
id: t(O),
|
|
2299
|
-
|
|
2300
|
-
class: "b-file-
|
|
2183
|
+
el: "span",
|
|
2184
|
+
class: "b-file-uploader__description"
|
|
2301
2185
|
}, {
|
|
2302
2186
|
default: w(() => [
|
|
2303
|
-
|
|
2187
|
+
$(x(e.description), 1)
|
|
2304
2188
|
]),
|
|
2305
2189
|
_: 1
|
|
2306
|
-
}, 8, ["id"])
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
id: t(
|
|
2311
|
-
"
|
|
2312
|
-
class: "b-file-
|
|
2313
|
-
}, null, 8, ["id", "error-message"])) : u("", !0),
|
|
2314
|
-
e.condensed && e.description ? (s(), y(t(I), {
|
|
2315
|
-
key: 2,
|
|
2316
|
-
id: t(q),
|
|
2317
|
-
"aria-hidden": "true",
|
|
2318
|
-
el: "span",
|
|
2319
|
-
class: "b-file-uploader__description b-file-uploader__description--condensed"
|
|
2320
|
-
}, {
|
|
2321
|
-
default: w(() => [
|
|
2322
|
-
z(x(e.description), 1)
|
|
2323
|
-
]),
|
|
2324
|
-
_: 1
|
|
2325
|
-
}, 8, ["id"])) : u("", !0),
|
|
2326
|
-
e.condensed ? (s(), y(t(Aa), V({ key: 3 }, sa.value, { id: t(A) }), null, 16, ["id"])) : u("", !0),
|
|
2327
|
-
za.value ? (s(), y(t(hi), {
|
|
2328
|
-
key: 4,
|
|
2329
|
-
type: "critical"
|
|
2190
|
+
}, 8, ["id"])) : u("", !0),
|
|
2191
|
+
U(t(Ba), D(la.value, { id: t(B) }), null, 16, ["id"])
|
|
2192
|
+
], 64)),
|
|
2193
|
+
U(t(R), {
|
|
2194
|
+
id: t(V),
|
|
2195
|
+
stronger: "",
|
|
2196
|
+
class: "b-file-uploader__button"
|
|
2330
2197
|
}, {
|
|
2331
|
-
description: w(() => [
|
|
2332
|
-
z(x(t(n)("youHaveExceededTheMaximum", { count: t(p)(l.maxCount) })), 1)
|
|
2333
|
-
]),
|
|
2334
2198
|
default: w(() => [
|
|
2335
|
-
|
|
2199
|
+
$(x(t(p)("browseFiles")), 1)
|
|
2336
2200
|
]),
|
|
2337
2201
|
_: 1
|
|
2338
|
-
}
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2202
|
+
}, 8, ["id"])
|
|
2203
|
+
], 40, Pe)),
|
|
2204
|
+
ua.value && e.errorMessage ? (s(), y(t(Ei), {
|
|
2205
|
+
key: 1,
|
|
2206
|
+
id: t(ta),
|
|
2207
|
+
"error-message": e.errorMessage,
|
|
2208
|
+
class: "b-file-uploader__error-message"
|
|
2209
|
+
}, null, 8, ["id", "error-message"])) : u("", !0),
|
|
2210
|
+
e.condensed && e.description ? (s(), y(t(R), {
|
|
2211
|
+
key: 2,
|
|
2212
|
+
id: t(O),
|
|
2213
|
+
"aria-hidden": "true",
|
|
2214
|
+
el: "span",
|
|
2215
|
+
class: "b-file-uploader__description b-file-uploader__description--condensed"
|
|
2216
|
+
}, {
|
|
2217
|
+
default: w(() => [
|
|
2218
|
+
$(x(e.description), 1)
|
|
2352
2219
|
]),
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2220
|
+
_: 1
|
|
2221
|
+
}, 8, ["id"])) : u("", !0),
|
|
2222
|
+
e.condensed ? (s(), y(t(Ba), D({ key: 3 }, la.value, { id: t(B) }), null, 16, ["id"])) : u("", !0),
|
|
2223
|
+
$a.value ? (s(), y(t(gi), {
|
|
2224
|
+
key: 4,
|
|
2225
|
+
type: "critical"
|
|
2226
|
+
}, {
|
|
2227
|
+
description: w(() => [
|
|
2228
|
+
$(x(t(p)("youHaveExceededTheMaximum", { count: t(o)(l.maxCount) })), 1)
|
|
2229
|
+
]),
|
|
2230
|
+
default: w(() => [
|
|
2231
|
+
$(x(t(p)("tooManyFiles")) + " ", 1)
|
|
2232
|
+
]),
|
|
2233
|
+
_: 1
|
|
2234
|
+
})) : u("", !0),
|
|
2235
|
+
Ua(r("div", Ge, [
|
|
2236
|
+
(s(!0), g(Ra, null, vi(b.value, (C, L) => (s(), y(t(De), {
|
|
2237
|
+
ref_for: !0,
|
|
2238
|
+
ref: H(L),
|
|
2239
|
+
key: C.id,
|
|
2240
|
+
file: C,
|
|
2241
|
+
"supported-file-types": t(z),
|
|
2242
|
+
readonly: e.readonly,
|
|
2243
|
+
onCancel: (ga) => za(C),
|
|
2244
|
+
onRemove: (ga) => za(C)
|
|
2245
|
+
}, null, 8, ["file", "supported-file-types", "readonly", "onCancel", "onRemove"]))), 128))
|
|
2246
|
+
], 512), [
|
|
2247
|
+
[fi, b.value?.length]
|
|
2248
|
+
]),
|
|
2249
|
+
!b.value?.length && e.readonly ? (s(), y(t(R), {
|
|
2250
|
+
key: 5,
|
|
2251
|
+
class: "b-file-uploader__no-files",
|
|
2252
|
+
wide: ""
|
|
2253
|
+
}, {
|
|
2254
|
+
default: w(() => [
|
|
2255
|
+
$(x(t(p)("noFilesUploaded")), 1)
|
|
2256
|
+
]),
|
|
2257
|
+
_: 1
|
|
2258
|
+
})) : u("", !0)
|
|
2259
|
+
], 2));
|
|
2365
2260
|
}
|
|
2366
|
-
}),
|
|
2261
|
+
}), xt = /* @__PURE__ */ S(Je, [["__scopeId", "data-v-9e27903c"]]);
|
|
2367
2262
|
export {
|
|
2368
|
-
|
|
2263
|
+
xt as f
|
|
2369
2264
|
};
|
|
2370
|
-
//# sourceMappingURL=file-uploader.
|
|
2265
|
+
//# sourceMappingURL=file-uploader.Bfd1uUMe.js.map
|