@paperless/core 3.13.1 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/general/scroll.svg +13 -1
- package/dist/build/index.esm.js +1 -1
- package/dist/build/{p-d13d8eb9.entry.js → p-06e05b91.entry.js} +1 -1
- package/dist/{paperless/p-2dfbfe7a.entry.js → build/p-14df360e.entry.js} +1 -1
- package/dist/{paperless/p-9f3cf82d.entry.js → build/p-195e954b.entry.js} +1 -1
- package/dist/{paperless/p-e2219fa7.entry.js → build/p-21af7426.entry.js} +1 -1
- package/dist/build/{p-16c98151.entry.js → p-221357a9.entry.js} +1 -1
- package/dist/build/{p-18aebae1.entry.js → p-25dd095e.entry.js} +1 -1
- package/dist/{paperless/p-fad5a088.entry.js → build/p-2e47c533.entry.js} +1 -1
- package/dist/build/{p-ad2767f7.entry.js → p-2e8e4b6c.entry.js} +1 -1
- package/dist/build/{p-cbdf1355.entry.js → p-31167a12.entry.js} +1 -1
- package/dist/build/p-3203bd08.entry.js +1 -0
- package/dist/build/{p-a1e69465.entry.js → p-3a857d73.entry.js} +1 -1
- package/dist/build/{p-90c95664.entry.js → p-3b2b195d.entry.js} +1 -1
- package/dist/build/{p-35107edb.entry.js → p-3bc3a649.entry.js} +1 -1
- package/dist/build/{p-fd26cf65.entry.js → p-4060ee8b.entry.js} +1 -1
- package/dist/build/{p-b992baa0.entry.js → p-44cee1cb.entry.js} +1 -1
- package/dist/{paperless/p-7c01dd27.entry.js → build/p-45ce6a54.entry.js} +1 -1
- package/dist/{paperless/p-0892908c.entry.js → build/p-507261fa.entry.js} +1 -1
- package/dist/build/{p-2eb0963d.entry.js → p-50c4d56e.entry.js} +1 -1
- package/dist/{paperless/p-8e3a2fa0.entry.js → build/p-54b0790e.entry.js} +1 -1
- package/dist/{paperless/p-b35a687a.entry.js → build/p-655fda1a.entry.js} +1 -1
- package/dist/build/{p-a263c4fe.entry.js → p-7abc21d8.entry.js} +1 -1
- package/dist/build/p-7e6801ef.js +1 -0
- package/dist/build/p-832c13bc.entry.js +1 -0
- package/dist/build/{p-4536b546.entry.js → p-835737f1.entry.js} +1 -1
- package/dist/build/{p-001e60c3.entry.js → p-90610536.entry.js} +1 -1
- package/dist/build/p-91dcf7d0.entry.js +1 -0
- package/dist/{paperless/p-7b858cd2.entry.js → build/p-938b6c09.entry.js} +1 -1
- package/dist/{paperless/p-bf22285d.entry.js → build/p-9a6196a5.entry.js} +1 -1
- package/dist/build/{p-f6a8012e.entry.js → p-9b28fc94.entry.js} +1 -1
- package/dist/build/p-9c29695a.entry.js +1 -0
- package/dist/{components/p-CU4DsLKq.js → build/p-C8Ju8eG_.js} +1 -1
- package/dist/{paperless/p-b4c6d3be.entry.js → build/p-ad2650e8.entry.js} +1 -1
- package/dist/build/{p-e1aaca9c.entry.js → p-b48c0217.entry.js} +1 -1
- package/dist/{paperless/p-e00be7e7.entry.js → build/p-b6809b6f.entry.js} +1 -1
- package/dist/build/{p-b98a72c3.entry.js → p-b8f7c55a.entry.js} +1 -1
- package/dist/{paperless/p-8a2690df.entry.js → build/p-b91cdc33.entry.js} +1 -1
- package/dist/build/{p-0380b299.entry.js → p-b966039d.entry.js} +1 -1
- package/dist/build/{p-8ed51b6d.entry.js → p-bdda8043.entry.js} +1 -1
- package/dist/build/{p-8e91039f.entry.js → p-d1cb90b9.entry.js} +1 -1
- package/dist/{paperless/p-e26a497e.entry.js → build/p-d58dcb50.entry.js} +1 -1
- package/dist/{paperless/p-0b4b4cf7.entry.js → build/p-d614092e.entry.js} +1 -1
- package/dist/build/{p-2c10ed8a.entry.js → p-dca31554.entry.js} +1 -1
- package/dist/build/p-e2917e71.entry.js +1 -0
- package/dist/{paperless/p-d4d0d4a7.entry.js → build/p-e405fba1.entry.js} +1 -1
- package/dist/build/p-e6669599.entry.js +1 -0
- package/dist/build/{p-dbac42ad.entry.js → p-e86238e2.entry.js} +1 -1
- package/dist/build/{p-0da11431.entry.js → p-f3cbc433.entry.js} +1 -1
- package/dist/build/{p-e6f986d8.entry.js → p-f5cacfd0.entry.js} +1 -1
- package/dist/build/{p-afc6498d.entry.js → p-fcff315d.entry.js} +1 -1
- package/dist/{paperless/p-b2cbd111.entry.js → build/p-fea58ded.entry.js} +1 -1
- package/dist/build/{p-87112092.entry.js → p-fedaa9ef.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{icons-B5X261jk.js → icons-DIczdKrP.js} +13 -1
- package/dist/cjs/index-BGtpSJv_.js +4 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +2 -2
- package/dist/cjs/p-attachment.cjs.entry.js +8 -8
- package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js +3 -3
- package/dist/cjs/p-badge_3.cjs.entry.js +4 -4
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +2 -2
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-card-body.cjs.entry.js +1 -1
- package/dist/cjs/p-card-container.cjs.entry.js +2 -2
- package/dist/cjs/p-card-header.cjs.entry.js +3 -3
- package/dist/cjs/p-checkbox_3.cjs.entry.js +9 -9
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-cropper.cjs.entry.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-divider.cjs.entry.js +2 -2
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +4 -4
- package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +5 -5
- package/dist/cjs/p-dropzone.cjs.entry.js +200 -0
- package/dist/cjs/p-empty-state_8.cjs.entry.js +18 -18
- package/dist/cjs/p-field_3.cjs.entry.js +13 -13
- package/dist/cjs/p-floating-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/p-illustration.cjs.entry.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +2 -2
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-listing-item.cjs.entry.js +1 -1
- package/dist/cjs/p-listing-line.cjs.entry.js +1 -1
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-modal-body_4.cjs.entry.js +6 -6
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination_3.cjs.entry.js +8 -8
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +3 -3
- package/dist/cjs/p-range.cjs.entry.js +3 -3
- package/dist/cjs/p-select.cjs.entry.js +2 -2
- package/dist/cjs/p-smile.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +5 -5
- package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +2 -2
- package/dist/cjs/p-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +3 -3
- package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/assets/icons/general/scroll.svg +13 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/avatar/avatar/avatar.component.js +1 -1
- package/dist/collection/components/atoms/avatar/avatar-group/avatar-group.component.js +1 -1
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +3 -3
- package/dist/collection/components/atoms/badge/badge.component.js +1 -1
- package/dist/collection/components/atoms/card/body/card-body.component.js +1 -1
- package/dist/collection/components/atoms/card/container/card-container.component.js +2 -2
- package/dist/collection/components/atoms/card/header/card-header.component.js +3 -3
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +4 -4
- package/dist/collection/components/atoms/divider/divider.component.js +2 -2
- package/dist/collection/components/atoms/drawer/body/drawer-body.component.js +1 -1
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +2 -2
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +3 -3
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +3 -3
- package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.js +2 -2
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +2 -2
- package/dist/collection/components/atoms/helper/helper.component.js +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +1 -1
- package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +2 -2
- package/dist/collection/components/atoms/layout/layout.component.js +1 -1
- package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
- package/dist/collection/components/atoms/listing/line/listing-line.component.js +1 -1
- package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
- package/dist/collection/components/atoms/modal/container/modal-container.component.js +2 -2
- package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
- package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
- package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +2 -2
- package/dist/collection/components/atoms/radio/radio.component.js +3 -3
- package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
- package/dist/collection/components/atoms/smile/smile.component.js +1 -1
- package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +4 -4
- package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
- package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
- package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
- package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +3 -3
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
- package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
- package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
- package/dist/collection/components/molecules/attachment/attachment.component.js +8 -8
- package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
- package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -2
- package/dist/collection/components/molecules/dropzone/dropzone.component.css +1 -0
- package/dist/collection/components/molecules/dropzone/dropzone.component.js +402 -0
- package/dist/collection/components/molecules/dropzone/dropzone.stories.js +44 -0
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/container/field-container.component.js +8 -8
- package/dist/collection/components/molecules/field/field/field.component.js +4 -4
- package/dist/collection/components/molecules/label/label.component.js +3 -3
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +3 -3
- package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
- package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +4 -4
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/range/range.component.js +3 -3
- package/dist/collection/components/molecules/select/select.component.js +2 -2
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table/header/table-header.component.js +4 -4
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/listing/listing.component.js +2 -2
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/components/organisms/table/table.component.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-C5n669YA.js → p-5xGhxj77.js} +1 -1
- package/dist/components/{p-BrFy12TR.js → p-B0R6Smvm.js} +1 -1
- package/dist/components/{p-Dy4IX7Pe.js → p-BCWtvvOe.js} +1 -1
- package/dist/components/{p-BO22HPlM.js → p-BEV6zDs0.js} +1 -1
- package/dist/components/{p-QJoR_dmN.js → p-BGolUUn0.js} +1 -1
- package/dist/components/{p-lss590AG.js → p-BKVZoBXs.js} +1 -1
- package/dist/components/{p-Crasy6LB.js → p-BQ2nfPDP.js} +1 -1
- package/dist/components/{p-CNtLMu6c.js → p-Bd4QOMb3.js} +1 -1
- package/dist/components/{p-4vMrjI4R.js → p-Bg4oBHWW.js} +1 -1
- package/dist/components/{p-BqDsctQ9.js → p-BmPunDdB.js} +1 -1
- package/dist/components/{p-BE5gs-wy.js → p-BmZe-ySu.js} +1 -1
- package/dist/components/{p-ByXfZHh6.js → p-BqKhfVsb.js} +1 -1
- package/dist/components/{p-PwfSEBI3.js → p-BtQtJLYr.js} +1 -1
- package/dist/components/p-BzANZHar.js +1 -0
- package/dist/components/{p-C7j7Um7Y.js → p-C-Fx-e2u.js} +1 -1
- package/dist/{paperless/p-CU4DsLKq.js → components/p-C8Ju8eG_.js} +1 -1
- package/dist/components/{p-CMmvAq1F.js → p-CEucaDLB.js} +1 -1
- package/dist/components/{p-Tuv_bAJ2.js → p-CGolQEyn.js} +1 -1
- package/dist/components/{p-BrFVDEeC.js → p-CK5WtJW3.js} +1 -1
- package/dist/components/{p-DL2YlEpH.js → p-CPr4Yiq8.js} +1 -1
- package/dist/components/{p-BSU1g6Cl.js → p-CTFrItdj.js} +1 -1
- package/dist/components/{p-DHLrIt0b.js → p-C_ug-NFC.js} +1 -1
- package/dist/components/{p-DQyKcYSv.js → p-Cgmg4D6Y.js} +1 -1
- package/dist/components/{p-DvxgfyQ_.js → p-CmhjRWQy.js} +1 -1
- package/dist/components/{p-9C3ias2a.js → p-D-CC7BBx.js} +1 -1
- package/dist/components/{p-BxQCn3Jj.js → p-DA92PZeS.js} +1 -1
- package/dist/components/{p-PKBe_c-k.js → p-DEoTWGPb.js} +1 -1
- package/dist/components/{p-i1p7L9W8.js → p-DLz3l4Ve.js} +1 -1
- package/dist/components/{p-t4aLscWg.js → p-DNm_yz0u.js} +1 -1
- package/dist/components/p-DPRie-gp.js +1 -0
- package/dist/components/{p-BHcIe6BE.js → p-DW2CgFRa.js} +1 -1
- package/dist/components/{p-co8zArTG.js → p-DYtn3uAK.js} +1 -1
- package/dist/components/{p-CqDwyvBc.js → p-D_BCPirj.js} +1 -1
- package/dist/components/{p-B0rHem3C.js → p-Dd7Yba0f.js} +1 -1
- package/dist/components/{p-CB3RfZL6.js → p-DgXmfcNf.js} +1 -1
- package/dist/components/{p-CMhIKf1I.js → p-Du6rwBJ8.js} +1 -1
- package/dist/components/{p-BDYSnb7i.js → p-Dzd3xVIu.js} +1 -1
- package/dist/components/{p-BoI3_eAE.js → p-F3PaXjBa.js} +1 -1
- package/dist/components/{p-DbRPTfvT.js → p-GCtiZnn_.js} +1 -1
- package/dist/components/{p-DP6H82uQ.js → p-O5rAm8zV.js} +1 -1
- package/dist/components/{p-UUd1zusc.js → p-R1ZwoW7p.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-avatar-group.js +1 -1
- package/dist/components/p-avatar.js +1 -1
- package/dist/components/{p-A2wMRQKW.js → p-bWeLk9nj.js} +1 -1
- package/dist/components/p-backdrop.js +1 -1
- package/dist/components/p-badge.js +1 -1
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-body.js +1 -1
- package/dist/components/p-card-container.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-content-slider.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-divider.js +1 -1
- package/dist/components/p-drawer-body.js +1 -1
- package/dist/components/p-drawer-container.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +1 -1
- package/dist/components/p-dropdown-menu-container.js +1 -1
- package/dist/components/p-dropdown-menu-item.js +1 -1
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-dropzone.d.ts +11 -0
- package/dist/components/p-dropzone.js +1 -0
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-illustration.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/{p-Bg0nKrgn.js → p-jLO4drbv.js} +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-layout.js +1 -1
- package/dist/components/p-listing-item.js +1 -1
- package/dist/components/p-listing-line.js +1 -1
- package/dist/components/p-listing.js +1 -1
- package/dist/components/p-modal-body.js +1 -1
- package/dist/components/p-modal-container.js +1 -1
- package/dist/components/p-modal-footer.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +1 -1
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-navigation-title.js +1 -1
- package/dist/components/p-pagination-pages-item.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-radio.js +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-segment-container.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-smile.js +1 -1
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper-line.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-tab-container.js +1 -1
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-container.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row-actions-container.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast-container.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/components/{p-3Vtsi6MW.js → p-tygV9wpP.js} +1 -1
- package/dist/components/{p-C_JXTK81.js → p-yulcflZJ.js} +1 -1
- package/dist/esm/{icons-CU4DsLKq.js → icons-C8Ju8eG_.js} +13 -1
- package/dist/esm/index-yFtRjnrU.js +4 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-accordion.entry.js +2 -2
- package/dist/esm/p-attachment.entry.js +8 -8
- package/dist/esm/p-avatar-group.entry.js +1 -1
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-backdrop.entry.js +3 -3
- package/dist/esm/p-badge_3.entry.js +4 -4
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +2 -2
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-card-body.entry.js +1 -1
- package/dist/esm/p-card-container.entry.js +2 -2
- package/dist/esm/p-card-header.entry.js +3 -3
- package/dist/esm/p-checkbox_3.entry.js +9 -9
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-cropper.entry.js +1 -1
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-divider.entry.js +2 -2
- package/dist/esm/p-drawer-body_3.entry.js +4 -4
- package/dist/esm/p-dropdown-menu-item_2.entry.js +5 -5
- package/dist/esm/p-dropzone.entry.js +198 -0
- package/dist/esm/p-empty-state_8.entry.js +18 -18
- package/dist/esm/p-field_3.entry.js +13 -13
- package/dist/esm/p-floating-menu-item.entry.js +2 -2
- package/dist/esm/p-illustration.entry.js +1 -1
- package/dist/esm/p-info-panel.entry.js +2 -2
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-listing-item.entry.js +1 -1
- package/dist/esm/p-listing-line.entry.js +1 -1
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-modal-body_4.entry.js +6 -6
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +3 -3
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-navigation-title.entry.js +1 -1
- package/dist/esm/p-pagination_3.entry.js +8 -8
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +3 -3
- package/dist/esm/p-range.entry.js +3 -3
- package/dist/esm/p-select.entry.js +2 -2
- package/dist/esm/p-smile.entry.js +1 -1
- package/dist/esm/p-stepper-item_2.entry.js +5 -5
- package/dist/esm/p-tab-container.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-table.entry.js +2 -2
- package/dist/esm/p-toast-container.entry.js +2 -2
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +3 -3
- package/dist/esm/p-tooltip.entry.js +2 -2
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/{p-d13d8eb9.entry.js → p-06e05b91.entry.js} +1 -1
- package/dist/{build/p-2dfbfe7a.entry.js → paperless/p-14df360e.entry.js} +1 -1
- package/dist/{build/p-9f3cf82d.entry.js → paperless/p-195e954b.entry.js} +1 -1
- package/dist/{build/p-e2219fa7.entry.js → paperless/p-21af7426.entry.js} +1 -1
- package/dist/paperless/{p-16c98151.entry.js → p-221357a9.entry.js} +1 -1
- package/dist/paperless/{p-18aebae1.entry.js → p-25dd095e.entry.js} +1 -1
- package/dist/{build/p-fad5a088.entry.js → paperless/p-2e47c533.entry.js} +1 -1
- package/dist/paperless/{p-ad2767f7.entry.js → p-2e8e4b6c.entry.js} +1 -1
- package/dist/paperless/{p-cbdf1355.entry.js → p-31167a12.entry.js} +1 -1
- package/dist/paperless/p-3203bd08.entry.js +1 -0
- package/dist/paperless/{p-a1e69465.entry.js → p-3a857d73.entry.js} +1 -1
- package/dist/paperless/{p-90c95664.entry.js → p-3b2b195d.entry.js} +1 -1
- package/dist/paperless/{p-35107edb.entry.js → p-3bc3a649.entry.js} +1 -1
- package/dist/paperless/{p-fd26cf65.entry.js → p-4060ee8b.entry.js} +1 -1
- package/dist/paperless/{p-b992baa0.entry.js → p-44cee1cb.entry.js} +1 -1
- package/dist/{build/p-7c01dd27.entry.js → paperless/p-45ce6a54.entry.js} +1 -1
- package/dist/{build/p-0892908c.entry.js → paperless/p-507261fa.entry.js} +1 -1
- package/dist/paperless/{p-2eb0963d.entry.js → p-50c4d56e.entry.js} +1 -1
- package/dist/{build/p-8e3a2fa0.entry.js → paperless/p-54b0790e.entry.js} +1 -1
- package/dist/{build/p-b35a687a.entry.js → paperless/p-655fda1a.entry.js} +1 -1
- package/dist/paperless/{p-a263c4fe.entry.js → p-7abc21d8.entry.js} +1 -1
- package/dist/paperless/p-832c13bc.entry.js +1 -0
- package/dist/paperless/{p-4536b546.entry.js → p-835737f1.entry.js} +1 -1
- package/dist/paperless/{p-001e60c3.entry.js → p-90610536.entry.js} +1 -1
- package/dist/paperless/p-91dcf7d0.entry.js +1 -0
- package/dist/{build/p-7b858cd2.entry.js → paperless/p-938b6c09.entry.js} +1 -1
- package/dist/{build/p-bf22285d.entry.js → paperless/p-9a6196a5.entry.js} +1 -1
- package/dist/paperless/{p-f6a8012e.entry.js → p-9b28fc94.entry.js} +1 -1
- package/dist/paperless/p-9c29695a.entry.js +1 -0
- package/dist/{build/p-CU4DsLKq.js → paperless/p-C8Ju8eG_.js} +1 -1
- package/dist/{build/p-b4c6d3be.entry.js → paperless/p-ad2650e8.entry.js} +1 -1
- package/dist/paperless/{p-e1aaca9c.entry.js → p-b48c0217.entry.js} +1 -1
- package/dist/{build/p-e00be7e7.entry.js → paperless/p-b6809b6f.entry.js} +1 -1
- package/dist/paperless/{p-b98a72c3.entry.js → p-b8f7c55a.entry.js} +1 -1
- package/dist/{build/p-8a2690df.entry.js → paperless/p-b91cdc33.entry.js} +1 -1
- package/dist/paperless/{p-0380b299.entry.js → p-b966039d.entry.js} +1 -1
- package/dist/paperless/{p-8ed51b6d.entry.js → p-bdda8043.entry.js} +1 -1
- package/dist/paperless/{p-8e91039f.entry.js → p-d1cb90b9.entry.js} +1 -1
- package/dist/{build/p-e26a497e.entry.js → paperless/p-d58dcb50.entry.js} +1 -1
- package/dist/{build/p-0b4b4cf7.entry.js → paperless/p-d614092e.entry.js} +1 -1
- package/dist/paperless/{p-2c10ed8a.entry.js → p-dca31554.entry.js} +1 -1
- package/dist/paperless/p-e2917e71.entry.js +1 -0
- package/dist/{build/p-d4d0d4a7.entry.js → paperless/p-e405fba1.entry.js} +1 -1
- package/dist/paperless/p-e6669599.entry.js +1 -0
- package/dist/paperless/{p-dbac42ad.entry.js → p-e86238e2.entry.js} +1 -1
- package/dist/paperless/{p-0da11431.entry.js → p-f3cbc433.entry.js} +1 -1
- package/dist/paperless/{p-e6f986d8.entry.js → p-f5cacfd0.entry.js} +1 -1
- package/dist/paperless/{p-afc6498d.entry.js → p-fcff315d.entry.js} +1 -1
- package/dist/{build/p-b2cbd111.entry.js → paperless/p-fea58ded.entry.js} +1 -1
- package/dist/paperless/{p-87112092.entry.js → p-fedaa9ef.entry.js} +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/dropzone/dropzone.component.d.ts +68 -0
- package/dist/types/components/molecules/dropzone/dropzone.stories.d.ts +25 -0
- package/dist/types/components.d.ts +104 -2
- package/hydrate/index.js +365 -145
- package/hydrate/index.mjs +365 -145
- package/package.json +5 -1
- package/dist/build/p-21b62f41.entry.js +0 -1
- package/dist/build/p-27613157.entry.js +0 -1
- package/dist/build/p-bba808f0.entry.js +0 -1
- package/dist/build/p-dd5b5648.js +0 -1
- package/dist/build/p-ef2d18cc.entry.js +0 -1
- package/dist/build/p-fb18c197.entry.js +0 -1
- package/dist/components/p-CUwpPeVc.js +0 -1
- package/dist/components/p-IBTfZiqD.js +0 -1
- package/dist/paperless/p-21b62f41.entry.js +0 -1
- package/dist/paperless/p-27613157.entry.js +0 -1
- package/dist/paperless/p-bba808f0.entry.js +0 -1
- package/dist/paperless/p-ef2d18cc.entry.js +0 -1
- package/dist/paperless/p-fb18c197.entry.js +0 -1
|
@@ -27,7 +27,7 @@ const Badge = class {
|
|
|
27
27
|
registerInstance(this, hostRef);
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h(ThemedHost, { key: '
|
|
30
|
+
return (h(ThemedHost, { key: 'c87471d8302be84444f12d8f564536fc413350e7' }, h("div", { key: '2bfc3ab348633579370ca7b94ed3a60aed7f3097', class: badge() }, h("slot", { key: '13590134e4d94df633d89a2a9bdaea97e9d02582' }))));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
Badge.style = badgeComponentCss();
|
|
@@ -39,7 +39,7 @@ const SegmentContainer = class {
|
|
|
39
39
|
registerInstance(this, hostRef);
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(ThemedHost, { key: '
|
|
42
|
+
return (h(ThemedHost, { key: 'b9f1ba919738b5398e19d447d319bd70c89f10d8' }, h("div", { key: '0940a6c4f64208c66b70e4fe135cd00bc61a7c5c', class: '\n flex rounded-2xl border border-solid border-off-white-700\n bg-off-white-300 p-1\n dark:border-hurricane-400 dark:bg-hurricane-600\n ' }, h("slot", { key: '06a3488eeb1cbaf001e8e4d1df85978943564c29' }))));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
SegmentContainer.style = segmentContainerComponentCss();
|
|
@@ -117,11 +117,11 @@ const SegmentItem = class {
|
|
|
117
117
|
iconRotate;
|
|
118
118
|
render() {
|
|
119
119
|
const descriptionSlot = this.variant === 'block' ? h("slot", { name: 'description' }) : null;
|
|
120
|
-
return (h(ThemedHost, { key: '
|
|
120
|
+
return (h(ThemedHost, { key: '9be1b585d2aede4645ef92018603c79a85bd4e23' }, h("div", { key: '049f0e6c3fc278bbfadec4f23880afc6e567aeb0', class: segmentItem({
|
|
121
121
|
variant: this.variant,
|
|
122
122
|
active: asBoolean(this.active),
|
|
123
123
|
iconOnly: asBoolean(this.iconOnly),
|
|
124
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
124
|
+
}) }, this.icon && (h("p-icon", { key: 'd72b71bba1a830113c8c1269179094c4018e5099', class: cn('mb-1', {
|
|
125
125
|
'text-storm-300 dark:text-hurricane-200': !asBoolean(this.active),
|
|
126
126
|
'text-indigo-200': asBoolean(this.active),
|
|
127
127
|
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })), this.variant === 'default' ? (h("slot", null)) : (h("div", { class: 'flex flex-col items-center' }, h("p", { class: cn(`
|
|
@@ -15,7 +15,7 @@ const ButtonGroup = class {
|
|
|
15
15
|
this._checkButtons();
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '48cc5e108ffd88805ff5bf975e6163828ce49e78', class: 'flex items-center' }, h("slot", { key: 'eac2210059c03cb4a661bac6f6ca80cc10f78a69' })));
|
|
19
19
|
}
|
|
20
20
|
slotchange() {
|
|
21
21
|
this._checkButtons();
|
|
@@ -3,7 +3,7 @@ import { c as cva } from './index-CO0T2jO4.js';
|
|
|
3
3
|
import { T as ThemedHost } from './themed-host.component-CUNsbvgN.js';
|
|
4
4
|
import { a as asBoolean } from './as-boolean-C5CTp9IA.js';
|
|
5
5
|
import { c as cn } from './cn-CsNqHcjL.js';
|
|
6
|
-
import { i as icons } from './icons-
|
|
6
|
+
import { i as icons } from './icons-C8Ju8eG_.js';
|
|
7
7
|
import './clsx-ChV9xqsO.js';
|
|
8
8
|
import './state-BJbOyUuL.js';
|
|
9
9
|
|
|
@@ -691,7 +691,7 @@ const Icon = class {
|
|
|
691
691
|
render() {
|
|
692
692
|
const hasTextSizeClass = /text-(xs|sm|base|lg|xl)/.test(this._el.className);
|
|
693
693
|
const svg = icons[this.variant];
|
|
694
|
-
return (h("div", { key: '
|
|
694
|
+
return (h("div", { key: 'ee13e2e3b7dcdf219497bd1eb993d32ac4d9cd59', class: icon({
|
|
695
695
|
flip: this.flip,
|
|
696
696
|
size: hasTextSizeClass ? 'auto' : this.size,
|
|
697
697
|
transform: this.flip !== 'none' || this.rotate > 0 || this.rotate < 0,
|
|
@@ -199,7 +199,7 @@ const Calendar = class {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
render() {
|
|
202
|
-
return (h(ThemedHost, { key: '
|
|
202
|
+
return (h(ThemedHost, { key: '3fff6e0a14facd9e4a44c6f932019d6d20ed586f' }, h("div", { key: '81a4a6ea5f2f24473f8c2b869c90ade95e0e3c5d', class: calendar({ variant: this.variant }) }, this._getView())));
|
|
203
203
|
}
|
|
204
204
|
_checkTodayButton() {
|
|
205
205
|
if (this._maxDate && dateFnsExports.isAfter(this._today, this._maxDate)) {
|
|
@@ -9,7 +9,7 @@ const CardBody = class {
|
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(ThemedHost, { key: '
|
|
12
|
+
return (h(ThemedHost, { key: '9968fb71d84936146832f3ccc8229530831916a2' }, h("slot", { key: '5df201bc946dbaf4c1a29b73988b9ad4e72e828d' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
CardBody.style = cardBodyComponentCss();
|
|
@@ -103,13 +103,13 @@ const CardContainer = class {
|
|
|
103
103
|
*/
|
|
104
104
|
border = true;
|
|
105
105
|
render() {
|
|
106
|
-
return (h(ThemedHost, { key: '
|
|
106
|
+
return (h(ThemedHost, { key: '3254643a3eea9671689a95c6b5d9e865232dc4f4' }, h("div", { key: '104b2922fee2364675d3e9129f692ccda700ba63', class: cn(container({
|
|
107
107
|
variant: this.variant,
|
|
108
108
|
active: asBoolean(this.active, false),
|
|
109
109
|
hoverable: asBoolean(this.hoverable, false),
|
|
110
110
|
shadow: asBoolean(this.shadow, true),
|
|
111
111
|
border: asBoolean(this.border),
|
|
112
|
-
}), this.bgClass) }, h("slot", { key: '
|
|
112
|
+
}), this.bgClass) }, h("slot", { key: '9e76d78322deb8fb39da8ab45d54dc91a8fd3539' }))));
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
CardContainer.style = cardContainerComponentCss();
|
|
@@ -56,11 +56,11 @@ const CardHeader = class {
|
|
|
56
56
|
*/
|
|
57
57
|
divider = true;
|
|
58
58
|
render() {
|
|
59
|
-
return (h(ThemedHost, { key: '
|
|
59
|
+
return (h(ThemedHost, { key: '121c8160b6cb1e37495e44408e6f268c0ec96352' }, h("div", { key: '0e34a533387192ccc8e8b37176e2a90d156aa93f', class: header({
|
|
60
60
|
variant: this.variant,
|
|
61
|
-
}) }, h("div", { key: '
|
|
61
|
+
}) }, h("div", { key: 'cfedd527b35b50e5b0b5d4eec2fe9d1470b355fd', class: content({
|
|
62
62
|
variant: this.variant,
|
|
63
|
-
}) }, this.icon ? (h("p-icon", { class: '\n text-storm-300\n dark:text-hurricane-200\n ', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })) : (h("slot", { name: 'prefix' })), h("div", { key: '
|
|
63
|
+
}) }, this.icon ? (h("p-icon", { class: '\n text-storm-300\n dark:text-hurricane-200\n ', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })) : (h("slot", { name: 'prefix' })), h("div", { key: '2e6ec50752da1fc42620203d8e2aeed1cbdadf52', class: title() }, h("span", { key: 'cf544dbd8d9286d1b488df40a57756a51f7445ed', class: 'max-w-full overflow-hidden text-ellipsis' }, this.header?.length ? this.header : h("slot", null)), h("slot", { key: '4f30078497757b31157cc8ab1f20cda180b6974e', name: 'content-suffix' })), h("div", { key: 'b54bf5309ceee682e0d309bf6882976d636ebcd4', class: '\n ml-auto flex items-center justify-end gap-4\n empty:hidden\n ' }, h("slot", { key: '72ed3c887b80e34e3db7f274c621c0ce2cf34dee', name: 'suffix' }))), this.variant === 'default' ? (asBoolean(this.divider) && (h("p-divider", { class: '\n text-off-white-700\n dark:text-white/15\n ' }))) : (h("div", { class: '\n pointer-events-none absolute left-0 top-0 z-[-1] h-full w-full\n overflow-hidden rounded-t-2xl\n ' }, h("p-smile", { class: 'dark:text-hurricane-400', variant: 'card' }))))));
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
CardHeader.style = cardHeaderComponentCss();
|
|
@@ -148,13 +148,13 @@ const Checkbox = class {
|
|
|
148
148
|
}
|
|
149
149
|
render() {
|
|
150
150
|
const id = this.id?.length ? this.id : this._nonce;
|
|
151
|
-
return (h(ThemedHost, { key: '
|
|
151
|
+
return (h(ThemedHost, { key: '1515c15feea5676594071d916d967f03684003cb' }, h("label", { key: 'e5b495ac4740fd87d9958106f0875e9b41373f0f', class: 'group/p-checkbox flex items-center justify-start gap-2', htmlFor: id }, h("div", { key: 'a1a93ae8c63b510d111b133a035090993e4696ed', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: 'a7ab67831b3820c585a80d8aa8d8ecc4205c677c', checked: asBoolean(this.checked), class: checkbox({
|
|
152
152
|
disabled: asBoolean(this.disabled),
|
|
153
|
-
}), disabled: asBoolean(this.disabled), id: id, indeterminate: asBoolean(this.indeterminate), name: this.name, required: asBoolean(this.required), type: 'checkbox', onChange: ev => this._onChange(ev) }), h("div", { key: '
|
|
153
|
+
}), disabled: asBoolean(this.disabled), id: id, indeterminate: asBoolean(this.indeterminate), name: this.name, required: asBoolean(this.required), type: 'checkbox', onChange: ev => this._onChange(ev) }), h("div", { key: 'a92126c7a6425400c13735ccd6889a64ec388ded', class: iconContainer({
|
|
154
154
|
disabled: asBoolean(this.disabled),
|
|
155
|
-
}) }, h("p-icon", { key: '
|
|
155
|
+
}) }, h("p-icon", { key: 'e5bef96d152e560a770e45bda12b73d453890ed6', class: icon({
|
|
156
156
|
disabled: asBoolean(this.disabled),
|
|
157
|
-
}), size: 'auto', variant: asBoolean(this.indeterminate) ? 'minus' : 'checkmarkThick' }))), h("div", { key: '
|
|
157
|
+
}), size: 'auto', variant: asBoolean(this.indeterminate) ? 'minus' : 'checkmarkThick' }))), h("div", { key: '99532f60ebed0325ecf95813fccf159cbc1b9079', class: '\n flex-1 overflow-hidden text-ellipsis\n empty:hidden\n dark:text-white\n ' }, h("slot", { key: 'ccd1ad045758ffd9590ca6c9ad8ee5c5b427a19e' })))));
|
|
158
158
|
}
|
|
159
159
|
_onChange(ev) {
|
|
160
160
|
if (this.disabled) {
|
|
@@ -310,12 +310,12 @@ const Dropdown = class {
|
|
|
310
310
|
this._checkItems();
|
|
311
311
|
}
|
|
312
312
|
render() {
|
|
313
|
-
return (h(Host, { key: '
|
|
313
|
+
return (h(Host, { key: 'b7067a6aee2989c76376592bc7e2ce02750629c3', class: 'relative' }, h("div", { key: '61b1c733996f22f05c16a143a0e5a3b22f8538f9', class: 'trigger', ref: el => (this._trigger = el), onClick: () => this._triggerClickHandler() }, h("slot", { key: '26b066d7146aa9dba35e37531017fa16c5c2dd2a', name: 'trigger' })), h("div", { key: '14a2e8dfe6ce4f7f0d81e50c744e7c9c1128b401', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: 'd4c3bc965f7015bf8014026d6227f4a38d973d42', allowOverflow: this.allowOverflow, class: cn(dropdownContainerClass({
|
|
314
314
|
strategy: this.strategy,
|
|
315
315
|
maxWidth: this.applyMaxWidth,
|
|
316
316
|
fullWidth: this.applyFullWidth && !this.applyMaxWidth,
|
|
317
317
|
isDatepicker: this.isDatepicker,
|
|
318
|
-
}), this.containerClass), "data-placement": this.placement, "data-strategy": this.strategy, fullWidth: this.applyFullWidth && !this.applyMaxWidth, maxWidth: this.applyMaxWidth, ref: el => this._load(el), role: 'popover', scrollable: this.scrollable, variant: this.variant, onClick: () => this._containerClickHandler() }, h("slot", { key: '
|
|
318
|
+
}), this.containerClass), "data-placement": this.placement, "data-strategy": this.strategy, fullWidth: this.applyFullWidth && !this.applyMaxWidth, maxWidth: this.applyMaxWidth, ref: el => this._load(el), role: 'popover', scrollable: this.scrollable, variant: this.variant, onClick: () => this._containerClickHandler() }, h("slot", { key: '2b4c8c622fa2656d399b93ae2c48807987846d9c', name: 'items' })))));
|
|
319
319
|
}
|
|
320
320
|
_checkButtons(active = false) {
|
|
321
321
|
const buttons = this._el.querySelectorAll('p-button[slot="trigger"]');
|
|
@@ -538,15 +538,15 @@ const DropdownMenuContainer = class {
|
|
|
538
538
|
: this.scrollable === true
|
|
539
539
|
? 'default'
|
|
540
540
|
: this.scrollable;
|
|
541
|
-
return (h(ThemedHost, { key: '
|
|
541
|
+
return (h(ThemedHost, { key: '0716936b0d23b24477d8a66afb779a85819d6f3b' }, h("div", { key: 'ab0762a53542cf170dbb2593e7ce3d71006aa43a', class: dropdownMenuContainer({
|
|
542
542
|
class: this.class,
|
|
543
543
|
variant: this.variant,
|
|
544
544
|
fullWidth: asBoolean(this.fullWidth, true),
|
|
545
545
|
maxWidth: this.maxWidth,
|
|
546
|
-
}) }, h("div", { key: '
|
|
546
|
+
}) }, h("div", { key: '8394e8a2198f8b93c2ba2f72e26ca42a3f6f2b29', class: innerContainer({
|
|
547
547
|
allowOverflow: asBoolean(this.allowOverflow),
|
|
548
548
|
scrollable,
|
|
549
|
-
}) }, h("div", { key: '
|
|
549
|
+
}) }, h("div", { key: '674e2c415cc6a19e3c3e96a5415fdadaff2ef298', class: 'flex w-full flex-col' }, h("slot", { key: 'a7b2a36f525560bd41c0bc5314e29bb409d385e9' }))))));
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
552
|
DropdownMenuContainer.style = dropdownMenuContainerComponentCss();
|
|
@@ -51,13 +51,13 @@ const ContentSlider = class {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '10219a5b7b268ab732457094c2491d4a203c3d47' }, h("div", { key: 'd66009928658b522cbd18c230d9381568661cad2', class: `
|
|
55
55
|
slider
|
|
56
56
|
${!this.disableDrag && 'draggable'}
|
|
57
57
|
${this._dragging && 'dragging'}
|
|
58
58
|
`, ref: el => (this._sliderRef = el), style: {
|
|
59
59
|
height: `${this._outerHeight}px`,
|
|
60
|
-
}, onMouseDown: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e), onTouchStart: e => this._mouseDownHandler(e) }, h("div", { key: '
|
|
60
|
+
}, onMouseDown: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e), onTouchStart: e => this._mouseDownHandler(e) }, h("div", { key: '98ea5929e9e4c35807db44deea40a713eb55e22b', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: '99ec72369ee09b9c56406697559ce232d90476b0', onSlotchange: () => this._slotChange() }))), h("div", { key: '3e7cd9e03341d52b60d934ad88d33138cd31ff1e', class: `
|
|
61
61
|
indicator
|
|
62
62
|
${this.hideMobileIndicator && 'hidden'}
|
|
63
63
|
` }, this._filteredItems.map((_, i) => (h("div", { class: `
|
|
@@ -2846,7 +2846,7 @@ const Cropper = class {
|
|
|
2846
2846
|
const themeColor = state.theme === 'dark'
|
|
2847
2847
|
? 'rgba(70, 75, 84, 0.5)'
|
|
2848
2848
|
: 'rgba(255, 255, 255, 0.5)';
|
|
2849
|
-
return (h(ThemedHost, { key: '
|
|
2849
|
+
return (h(ThemedHost, { key: '45de2e7e220d4a56fc8f863bebc570efba716c6e' }, this._loaded && (h("cropper-canvas", { key: '2d781601e405bbe14ef3dee14b3279b6ee1378b4', class: '\n h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700\n bg-white\n dark:border-hurricane-200\n ', onAction: () => this._onAction() }, h("cropper-image", { key: '5f55ad7da0800e65d965a73dcf2954e62a720e30', alt: 'Picture', crossorigin: 'anonymous', ref: ref => this._setImageRef(ref), src: this.value, scalable: true, translatable: true }), h("cropper-shade", { key: '8f6235a0c13f64b907447d4611365831bbed8328', class: 'aspect-branding rounded-full', "theme-color": themeColor, hidden: true }), h("cropper-selection", { key: 'fbffe0267e5346b34f627d4160222c08a048da18', "aspect-ratio": '1', "initial-coverage": '0.7', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: '90d51dfa7e392505459b2252334e98eaf28f0e9d', action: 'move', plain: true }))), h("p-range", { key: '8baa03308cba09293a7438957efe228ab4abd665', class: '\n w-full px-14\n tablet:max-w-xs tablet:px-1\n ', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
|
|
2850
2850
|
}
|
|
2851
2851
|
_setImageRef(ref) {
|
|
2852
2852
|
if (this._imageRef || !ref) {
|
|
@@ -224,7 +224,7 @@ const Datepicker = class {
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
render() {
|
|
227
|
-
return (h("p-dropdown", { key: '
|
|
227
|
+
return (h("p-dropdown", { key: '891468e0d880fbe578d4b0106a3b09e741d86d59', allowOverflow: true, applyFullWidth: false, applyMaxWidth: false, disableTriggerClick: true, insideClick: true, isDatepicker: true, placement: this.placement, show: this._showDropdown, strategy: this.strategy }, h("p-field", { key: 'f7065621d6f200a2f340e866f5357b5aa133fdcc', autoShowError: false, disabled: asBoolean(this.disabled), error: this.error, focused: this._showDropdown, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', label: this.label, loading: this.loading, placeholder: this.placeholder, prefix: this.prefix, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), size: this.size, slot: 'trigger', value: this._getFormattedDate(), onBlur: (ev) => this._onBlur(ev), onFocus: () => this._onFocus(), onInputRefChange: ev => (this._inputRef = ev.detail), onValueChange: ev => this._onValueChange(ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '62752c953dfd35a76d7650d8c0621421c77257f0', class: '\n pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden\n opacity-0\n ', max: this.maxDate &&
|
|
228
228
|
dateFnsExports.format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
229
229
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
230
230
|
}), min: this._minDate &&
|
|
@@ -233,7 +233,7 @@ const Datepicker = class {
|
|
|
233
233
|
}), ref: ref => (this._dateInputRef = ref), slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', value: this._value &&
|
|
234
234
|
dateFnsExports.format(this._value, 'yyyy-MM-dd', {
|
|
235
235
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
236
|
-
}), onInput: ev => this._onNativeInput(ev) })), h("div", { key: '
|
|
236
|
+
}), onInput: ev => this._onNativeInput(ev) })), h("div", { key: '19aeebff76b179555fcbf507fe9a503b074bd79e', slot: 'items', tabIndex: -1 }, h("p-calendar", { key: '1d8b3593b3598c0cf4bf6b63366bad0aa554403f', disableWeekends: this.disableWeekends, disabledDates: this.disabledDates, enableToday: this.enableToday, maxDate: this.maxDate, minDate: this.minDate, mode: this.mode, preselectToday: this.preselectToday, todayText: this.todayText, value: this._value, variant: 'embedded', onValueChange: ({ detail }) => (this.value = detail) }))));
|
|
237
237
|
}
|
|
238
238
|
documentClickHandler({ target }) {
|
|
239
239
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -62,12 +62,12 @@ const Divider = class {
|
|
|
62
62
|
get _el() { return getElement(this); }
|
|
63
63
|
render() {
|
|
64
64
|
const hasContent = this._el.innerHTML?.length > 0;
|
|
65
|
-
return (h(ThemedHost, { key: '
|
|
65
|
+
return (h(ThemedHost, { key: '62e456790fca35130a51837664dc62a731ecf0b1' }, h("div", { key: '1c173037cb8e342ee1d2eb55cda92ffbde98fe68', class: cn(content({
|
|
66
66
|
variant: this.variant,
|
|
67
67
|
alignContent: this.alignContent,
|
|
68
68
|
}), {
|
|
69
69
|
'text-off-white-700 dark:text-hurricane-400': !this._el.className.includes('text'),
|
|
70
|
-
}) }, h("div", { key: '
|
|
70
|
+
}) }, h("div", { key: 'eabe0f6251e66635e3f37be78b63e487cf4d66b1', class: '\n flex items-center px-2 text-sm font-medium text-storm-400\n empty:px-0\n dark:text-hurricane-200\n ' }, hasContent && h("slot", { key: 'b3a252740a235ab6d1184a7e3a38d2046bf41f36' })))));
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
Divider.style = dividerComponentCss();
|
|
@@ -12,7 +12,7 @@ const DrawerBody = class {
|
|
|
12
12
|
registerInstance(this, hostRef);
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return h("slot", { key: '
|
|
15
|
+
return h("slot", { key: 'f26933044c64fd73c9fc3d7400623d52f3d6cb73' });
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
DrawerBody.style = drawerBodyComponentCss();
|
|
@@ -49,9 +49,9 @@ const DrawerContainer = class {
|
|
|
49
49
|
*/
|
|
50
50
|
closing = false;
|
|
51
51
|
render() {
|
|
52
|
-
return (h(ThemedHost, { key: '
|
|
52
|
+
return (h(ThemedHost, { key: 'ba9bf03e3da5ccc386585d9242317098d1974dc7' }, h("div", { key: '6ab542b1a314855bc417ddb9db513028bf1453e2', class: container({
|
|
53
53
|
closing: asBoolean(this.closing),
|
|
54
|
-
}) }, h("slot", { key: '
|
|
54
|
+
}) }, h("slot", { key: '6a3670c0482888725235ceb8df65136d9309785a' }))));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
DrawerContainer.style = drawerContainerComponentCss();
|
|
@@ -88,7 +88,7 @@ const DrawerHeader = class {
|
|
|
88
88
|
*/
|
|
89
89
|
close;
|
|
90
90
|
render() {
|
|
91
|
-
return (h(ThemedHost, { key: '
|
|
91
|
+
return (h(ThemedHost, { key: '68ec14e2f8d7fe78e6f4121f26b500e4f6806f2f' }, h("div", { key: 'bfd65e98e1e370ae5d1fe1204b0f35fa6ea5c527', class: header() }, h("div", { key: '5216d5ff046ec5d9308960ca6536221806070893', class: content() }, this.showClose && (h("p-button", { key: '068ff9a02ffe20649644d45a4883322bc213ed4f', icon: 'negative', iconOnly: true, variant: 'secondary', onClick: ev => this.close.emit(ev) })), h("div", { key: 'ce6808112de2a48b49b4632ee3b98cb80525aebf', class: title() }, h("slot", { key: '66c6afa30f02a8bb7b10da5264470cc5e92c0777' })), this.showClose && h("div", { key: '947d1919641618b24dd528cb1d1f00974cc0252e', class: 'size-8' })), h("p-smile", { key: '3809052da27e1deb595d5ebe0357fa03d3c610f3', class: 'dark:text-hurricane-400' }))));
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
DrawerHeader.style = drawerHeaderComponentCss();
|
|
@@ -288,19 +288,19 @@ const DropdownMenuItem = class {
|
|
|
288
288
|
*/
|
|
289
289
|
autoHeight = false;
|
|
290
290
|
render() {
|
|
291
|
-
return (h(ThemedHost, { key: '
|
|
291
|
+
return (h(ThemedHost, { key: 'a9d9404058e02af2e3f67248c9b97501c0627764' }, h("div", { key: '999122672d9c1f7fd467ef5a4a4316b3484c201d', class: cn(dropdownMenuItem({
|
|
292
292
|
variant: this.variant,
|
|
293
293
|
active: asBoolean(this.active),
|
|
294
294
|
enableHover: asBoolean(this.enableHover ?? true),
|
|
295
295
|
autoHeight: asBoolean(this.autoHeight ?? false),
|
|
296
296
|
enableTextWrap: this.enableTextWrap,
|
|
297
297
|
disabled: asBoolean(this.disabled),
|
|
298
|
-
})) }, this.icon && (h("p-icon", { key: '
|
|
298
|
+
})) }, this.icon && (h("p-icon", { key: '874509b8f140f2a7f59d3eaea197576d04fef57a', class: dropdownMenuItemIcon({
|
|
299
299
|
variant: this.variant,
|
|
300
300
|
active: asBoolean(this.active),
|
|
301
301
|
disabled: asBoolean(this.disabled),
|
|
302
302
|
wave: asBoolean(this.iconWave),
|
|
303
|
-
}), variant: this.icon })), this.checkbox && (h("p-checkbox", { key: '
|
|
303
|
+
}), variant: this.icon })), this.checkbox && (h("p-checkbox", { key: '4ac46ef8905c184cf1e1e3531d26ef559ae3ff97', checked: this.active, disabled: this.disabled })), this.useContainer ? (h("div", { class: cn('block w-full overflow-hidden text-start', {
|
|
304
304
|
'text-ellipsis whitespace-nowrap': !this.enableTextWrap,
|
|
305
305
|
}) }, h("slot", null))) : (h("slot", null)))));
|
|
306
306
|
}
|
|
@@ -413,12 +413,12 @@ const PaginationPagesItem = class {
|
|
|
413
413
|
*/
|
|
414
414
|
disabled = false;
|
|
415
415
|
render() {
|
|
416
|
-
return (h(ThemedHost, { key: '
|
|
416
|
+
return (h(ThemedHost, { key: '867dcd55f7c4194c89b18ff3a46a52ee3f728fef' }, h("div", { key: '406e4e9641b35fc16a5379811f959878ade2c0ca', class: item({
|
|
417
417
|
variant: this.variant ?? 'default',
|
|
418
418
|
active: asBoolean(this.active),
|
|
419
419
|
hover: asBoolean(this.hover, true),
|
|
420
420
|
disabled: asBoolean(this.disabled),
|
|
421
|
-
}) }, h("slot", { key: '
|
|
421
|
+
}) }, h("slot", { key: '6515cd771a33b320d60940674c324d0dc285f74d' }))));
|
|
422
422
|
}
|
|
423
423
|
};
|
|
424
424
|
PaginationPagesItem.style = paginationPagesItemComponentCss();
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { r as registerInstance, a as createEvent, d as getElement, h } from './index-yFtRjnrU.js';
|
|
2
|
+
import { c as cva } from './index-CO0T2jO4.js';
|
|
3
|
+
import { T as ThemedHost } from './themed-host.component-CUNsbvgN.js';
|
|
4
|
+
import { c as cn } from './cn-CsNqHcjL.js';
|
|
5
|
+
import './clsx-ChV9xqsO.js';
|
|
6
|
+
import './state-BJbOyUuL.js';
|
|
7
|
+
|
|
8
|
+
const dropzoneComponentCss = () => `*{box-sizing:border-box}.static{position:static}.flex{display:flex}.hidden{display:none}.w-full{width:100%}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.border-white-800{--tw-border-opacity:1;border-color:rgb(228 227 227/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-positive-green-50{--tw-bg-opacity:1;background-color:rgb(234 253 227/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-8{padding:2rem}.text-center{text-align:center}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.opacity-50{opacity:.5}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}`;
|
|
9
|
+
|
|
10
|
+
const dropzone = cva(['flex w-full flex-col items-center gap-2', 'rounded-lg', 'border', 'p-8'], {
|
|
11
|
+
variants: {
|
|
12
|
+
uploaded: {
|
|
13
|
+
false: 'border-dashed',
|
|
14
|
+
true: 'border-off-white-700',
|
|
15
|
+
},
|
|
16
|
+
isOver: {
|
|
17
|
+
true: 'border-dashed border-indigo-500 bg-indigo-50',
|
|
18
|
+
false: 'border-white-800',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
compoundVariants: [
|
|
22
|
+
{
|
|
23
|
+
uploaded: true,
|
|
24
|
+
isOver: false,
|
|
25
|
+
class: 'border-solid bg-positive-green-50',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
uploaded: false,
|
|
29
|
+
isOver: false,
|
|
30
|
+
class: 'bg-white-600',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
});
|
|
34
|
+
const Dropzone = class {
|
|
35
|
+
constructor(hostRef) {
|
|
36
|
+
registerInstance(this, hostRef);
|
|
37
|
+
this.upload = createEvent(this, "upload", 3);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Icon to show on the dropzone
|
|
41
|
+
*/
|
|
42
|
+
icon = 'file-export';
|
|
43
|
+
/**
|
|
44
|
+
* Wether to show the icon or not
|
|
45
|
+
*/
|
|
46
|
+
showIcon = true;
|
|
47
|
+
/**
|
|
48
|
+
* The type of files to accept
|
|
49
|
+
*/
|
|
50
|
+
acceptGroup = 'any';
|
|
51
|
+
/**
|
|
52
|
+
* The fileID to use to track the file
|
|
53
|
+
*/
|
|
54
|
+
fileId;
|
|
55
|
+
/**
|
|
56
|
+
* Wether the attachment is loading
|
|
57
|
+
*/
|
|
58
|
+
loading = false;
|
|
59
|
+
/**
|
|
60
|
+
* Allow multiple files
|
|
61
|
+
*/
|
|
62
|
+
allowMultiple = true;
|
|
63
|
+
/**
|
|
64
|
+
* Wether the file is uploaded
|
|
65
|
+
*/
|
|
66
|
+
uploaded = false;
|
|
67
|
+
/**
|
|
68
|
+
* Event when upload is pressed
|
|
69
|
+
*/
|
|
70
|
+
upload;
|
|
71
|
+
get _el() { return getElement(this); }
|
|
72
|
+
_isOver = false;
|
|
73
|
+
_fileRef;
|
|
74
|
+
_filesToProcess = 0;
|
|
75
|
+
_results = [];
|
|
76
|
+
_documentBlocked = false;
|
|
77
|
+
_preventDefault = (ev) => ev.preventDefault();
|
|
78
|
+
componentWillRender() {
|
|
79
|
+
if (!this._isOver && this._documentBlocked) {
|
|
80
|
+
document.removeEventListener('drop', this._preventDefault);
|
|
81
|
+
document.removeEventListener('dragover', this._preventDefault);
|
|
82
|
+
this._documentBlocked = false;
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (!this._isOver) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
document.addEventListener('drop', this._preventDefault);
|
|
89
|
+
document.addEventListener('dragover', this._preventDefault);
|
|
90
|
+
this._documentBlocked = true;
|
|
91
|
+
}
|
|
92
|
+
render() {
|
|
93
|
+
const hasContent = this._el.innerHTML?.length > 0;
|
|
94
|
+
return (h(ThemedHost, { key: '850603b4fb37087fd8bd7db5f37d9fcb17687fd2' }, h("div", { key: '594badd15df513690f388b021993694ad710e5c6', class: cn(dropzone({
|
|
95
|
+
isOver: this._isOver,
|
|
96
|
+
uploaded: this.uploaded,
|
|
97
|
+
}), {}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (h("p-icon", { key: '10d41c9cd21bcba962c186ed04f48c1abf9c2073', class: cn({
|
|
98
|
+
'text-storm-300': !this._isOver,
|
|
99
|
+
'text-indigo-900': this._isOver,
|
|
100
|
+
}), variant: this.icon })), this.loading && h("p-loader", { key: '1c2b811db6711ef9bc4ba54d380f4aff7870ea0b' }), hasContent && h("slot", { key: '2e1ab2124bef07b476a23bfefed446e4ac17c0d2' }), this.uploaded && !this._isOver && (h("div", { key: 'e277e12954fd53100ec6202002c1b495d42ddb8b', class: 'flex items-center gap-2 text-positive-green-800' }, h("p-icon", { key: '68dc24d68232b98aaed2d1a5b1bc38888c7efffb', variant: 'check-circle' }), h("span", { key: 'f8cc3ffc3201efb23cd90d30eb7921e5c597db62', class: 'font-medium' }, "Toegevoegd"))), (!this.uploaded || this._isOver) && (h("div", { key: 'be0dfd5990877b7e914580f3d6c193d48402ab2a', class: cn('flex flex-col text-center', {
|
|
101
|
+
'opacity-50': this._isOver,
|
|
102
|
+
}) }, h("span", { key: 'f406b49e7b8ec6b4fb01fff011523147714da170', class: 'font-medium' }, "Sleep je bestand hierheen"), h("span", { key: '7656b9d337a582f2e69cf555a4f5c8eaa70e6f51', class: 'font-normal' }, "of klik om te uploaden")))), h("input", { key: '09b2471f370d6140db3bd9359e7c4c7a9237b9dc', accept: this.acceptGroup == 'any' ? '' : 'image/*', class: 'hidden', multiple: this.allowMultiple === true ? true : undefined, ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
103
|
+
}
|
|
104
|
+
onDrop(ev) {
|
|
105
|
+
const files = this._getFiles(ev);
|
|
106
|
+
if (!files?.length) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this._processFiles(files);
|
|
110
|
+
}
|
|
111
|
+
onDragOver(ev) {
|
|
112
|
+
if (!this._isFilesEvent(ev)) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
this._isOver = true;
|
|
116
|
+
}
|
|
117
|
+
onDragLeave() {
|
|
118
|
+
this._isOver = false;
|
|
119
|
+
}
|
|
120
|
+
_isFilesEvent(ev) {
|
|
121
|
+
if (!ev.dataTransfer) {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
const files = [...ev.dataTransfer.items].filter(item => item.kind === 'file');
|
|
125
|
+
if (files.length === 0) {
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
_getFiles(ev) {
|
|
131
|
+
if (!this._isFilesEvent(ev)) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const files = ev.dataTransfer?.files ?? [];
|
|
135
|
+
if (files.length === 0) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
return [...files];
|
|
139
|
+
}
|
|
140
|
+
_uploadClick() {
|
|
141
|
+
if (!this._fileRef) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
this._fileRef.click();
|
|
145
|
+
}
|
|
146
|
+
_onFileChange(ev) {
|
|
147
|
+
const target = ev.target;
|
|
148
|
+
if (!target.files) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const files = [...target.files];
|
|
152
|
+
if (!files?.length) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
this._processFiles(files);
|
|
156
|
+
}
|
|
157
|
+
_processFiles(files) {
|
|
158
|
+
this._results = [];
|
|
159
|
+
if (!this.allowMultiple) {
|
|
160
|
+
files = [files[0]];
|
|
161
|
+
}
|
|
162
|
+
this._filesToProcess = files.length;
|
|
163
|
+
for (const file of files) {
|
|
164
|
+
this._processFile(file);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
_processFile(file) {
|
|
168
|
+
this.loading = true;
|
|
169
|
+
const reader = new FileReader();
|
|
170
|
+
reader.addEventListener('load', (e) => this._onLoad(file, e?.currentTarget?.result));
|
|
171
|
+
reader.readAsDataURL(file);
|
|
172
|
+
}
|
|
173
|
+
_onLoad(file, result) {
|
|
174
|
+
this._results.push({
|
|
175
|
+
file,
|
|
176
|
+
result,
|
|
177
|
+
});
|
|
178
|
+
if (this._results?.length < this._filesToProcess) {
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
const data = {
|
|
182
|
+
fileId: this.fileId,
|
|
183
|
+
results: this._results,
|
|
184
|
+
};
|
|
185
|
+
if (this._results.length === 1 || !this.allowMultiple) {
|
|
186
|
+
data.file = this._results[0].file;
|
|
187
|
+
data.result = this._results[0].result;
|
|
188
|
+
}
|
|
189
|
+
this.upload.emit(data);
|
|
190
|
+
if (this._fileRef) {
|
|
191
|
+
this._fileRef.value = '';
|
|
192
|
+
}
|
|
193
|
+
this.loading = false;
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
Dropzone.style = dropzoneComponentCss();
|
|
197
|
+
|
|
198
|
+
export { Dropzone as p_dropzone };
|