@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
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { ThemedHost } from "../../../internal/themed-host.component";
|
|
4
|
+
import { cn } from "../../../utils";
|
|
5
|
+
const dropzone = cva(['flex w-full flex-col items-center gap-2', 'rounded-lg', 'border', 'p-8'], {
|
|
6
|
+
variants: {
|
|
7
|
+
uploaded: {
|
|
8
|
+
false: 'border-dashed',
|
|
9
|
+
true: 'border-off-white-700',
|
|
10
|
+
},
|
|
11
|
+
isOver: {
|
|
12
|
+
true: 'border-dashed border-indigo-500 bg-indigo-50',
|
|
13
|
+
false: 'border-white-800',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
compoundVariants: [
|
|
17
|
+
{
|
|
18
|
+
uploaded: true,
|
|
19
|
+
isOver: false,
|
|
20
|
+
class: 'border-solid bg-positive-green-50',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
uploaded: false,
|
|
24
|
+
isOver: false,
|
|
25
|
+
class: 'bg-white-600',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
});
|
|
29
|
+
export class Dropzone {
|
|
30
|
+
/**
|
|
31
|
+
* Icon to show on the dropzone
|
|
32
|
+
*/
|
|
33
|
+
icon = 'file-export';
|
|
34
|
+
/**
|
|
35
|
+
* Wether to show the icon or not
|
|
36
|
+
*/
|
|
37
|
+
showIcon = true;
|
|
38
|
+
/**
|
|
39
|
+
* The type of files to accept
|
|
40
|
+
*/
|
|
41
|
+
acceptGroup = 'any';
|
|
42
|
+
/**
|
|
43
|
+
* The fileID to use to track the file
|
|
44
|
+
*/
|
|
45
|
+
fileId;
|
|
46
|
+
/**
|
|
47
|
+
* Wether the attachment is loading
|
|
48
|
+
*/
|
|
49
|
+
loading = false;
|
|
50
|
+
/**
|
|
51
|
+
* Allow multiple files
|
|
52
|
+
*/
|
|
53
|
+
allowMultiple = true;
|
|
54
|
+
/**
|
|
55
|
+
* Wether the file is uploaded
|
|
56
|
+
*/
|
|
57
|
+
uploaded = false;
|
|
58
|
+
/**
|
|
59
|
+
* Event when upload is pressed
|
|
60
|
+
*/
|
|
61
|
+
upload;
|
|
62
|
+
/**
|
|
63
|
+
* The host element
|
|
64
|
+
*/
|
|
65
|
+
_el;
|
|
66
|
+
_isOver = false;
|
|
67
|
+
_fileRef;
|
|
68
|
+
_filesToProcess = 0;
|
|
69
|
+
_results = [];
|
|
70
|
+
_documentBlocked = false;
|
|
71
|
+
_preventDefault = (ev) => ev.preventDefault();
|
|
72
|
+
componentWillRender() {
|
|
73
|
+
if (!this._isOver && this._documentBlocked) {
|
|
74
|
+
document.removeEventListener('drop', this._preventDefault);
|
|
75
|
+
document.removeEventListener('dragover', this._preventDefault);
|
|
76
|
+
this._documentBlocked = false;
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (!this._isOver) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
document.addEventListener('drop', this._preventDefault);
|
|
83
|
+
document.addEventListener('dragover', this._preventDefault);
|
|
84
|
+
this._documentBlocked = true;
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
const hasContent = this._el.innerHTML?.length > 0;
|
|
88
|
+
return (h(ThemedHost, { key: '850603b4fb37087fd8bd7db5f37d9fcb17687fd2' }, h("div", { key: '594badd15df513690f388b021993694ad710e5c6', class: cn(dropzone({
|
|
89
|
+
isOver: this._isOver,
|
|
90
|
+
uploaded: this.uploaded,
|
|
91
|
+
}), {}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (h("p-icon", { key: '10d41c9cd21bcba962c186ed04f48c1abf9c2073', class: cn({
|
|
92
|
+
'text-storm-300': !this._isOver,
|
|
93
|
+
'text-indigo-900': this._isOver,
|
|
94
|
+
}), 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', {
|
|
95
|
+
'opacity-50': this._isOver,
|
|
96
|
+
}) }, 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) })));
|
|
97
|
+
}
|
|
98
|
+
onDrop(ev) {
|
|
99
|
+
const files = this._getFiles(ev);
|
|
100
|
+
if (!files?.length) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
this._processFiles(files);
|
|
104
|
+
}
|
|
105
|
+
onDragOver(ev) {
|
|
106
|
+
if (!this._isFilesEvent(ev)) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this._isOver = true;
|
|
110
|
+
}
|
|
111
|
+
onDragLeave() {
|
|
112
|
+
this._isOver = false;
|
|
113
|
+
}
|
|
114
|
+
_isFilesEvent(ev) {
|
|
115
|
+
if (!ev.dataTransfer) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
const files = [...ev.dataTransfer.items].filter(item => item.kind === 'file');
|
|
119
|
+
if (files.length === 0) {
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
_getFiles(ev) {
|
|
125
|
+
if (!this._isFilesEvent(ev)) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const files = ev.dataTransfer?.files ?? [];
|
|
129
|
+
if (files.length === 0) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
return [...files];
|
|
133
|
+
}
|
|
134
|
+
_uploadClick() {
|
|
135
|
+
if (!this._fileRef) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
this._fileRef.click();
|
|
139
|
+
}
|
|
140
|
+
_onFileChange(ev) {
|
|
141
|
+
const target = ev.target;
|
|
142
|
+
if (!target.files) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
const files = [...target.files];
|
|
146
|
+
if (!files?.length) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
this._processFiles(files);
|
|
150
|
+
}
|
|
151
|
+
_processFiles(files) {
|
|
152
|
+
this._results = [];
|
|
153
|
+
if (!this.allowMultiple) {
|
|
154
|
+
files = [files[0]];
|
|
155
|
+
}
|
|
156
|
+
this._filesToProcess = files.length;
|
|
157
|
+
for (const file of files) {
|
|
158
|
+
this._processFile(file);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
_processFile(file) {
|
|
162
|
+
this.loading = true;
|
|
163
|
+
const reader = new FileReader();
|
|
164
|
+
reader.addEventListener('load', (e) => this._onLoad(file, e?.currentTarget?.result));
|
|
165
|
+
reader.readAsDataURL(file);
|
|
166
|
+
}
|
|
167
|
+
_onLoad(file, result) {
|
|
168
|
+
this._results.push({
|
|
169
|
+
file,
|
|
170
|
+
result,
|
|
171
|
+
});
|
|
172
|
+
if (this._results?.length < this._filesToProcess) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
const data = {
|
|
176
|
+
fileId: this.fileId,
|
|
177
|
+
results: this._results,
|
|
178
|
+
};
|
|
179
|
+
if (this._results.length === 1 || !this.allowMultiple) {
|
|
180
|
+
data.file = this._results[0].file;
|
|
181
|
+
data.result = this._results[0].result;
|
|
182
|
+
}
|
|
183
|
+
this.upload.emit(data);
|
|
184
|
+
if (this._fileRef) {
|
|
185
|
+
this._fileRef.value = '';
|
|
186
|
+
}
|
|
187
|
+
this.loading = false;
|
|
188
|
+
}
|
|
189
|
+
static get is() { return "p-dropzone"; }
|
|
190
|
+
static get encapsulation() { return "shadow"; }
|
|
191
|
+
static get originalStyleUrls() {
|
|
192
|
+
return {
|
|
193
|
+
"$": ["dropzone.component.css"]
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
static get styleUrls() {
|
|
197
|
+
return {
|
|
198
|
+
"$": ["dropzone.component.css"]
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
static get properties() {
|
|
202
|
+
return {
|
|
203
|
+
"icon": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"mutable": false,
|
|
206
|
+
"complexType": {
|
|
207
|
+
"original": "IconVariant",
|
|
208
|
+
"resolved": "\"address-book\" | \"alarm\" | \"apple\" | \"arrow\" | \"attachment\" | \"bank\" | \"bell\" | \"bread\" | \"cake\" | \"calculator\" | \"calendar\" | \"calendar-free\" | \"calendar-multi\" | \"calendar-not-free\" | \"camera\" | \"car\" | \"caret\" | \"certified\" | \"chair\" | \"chat\" | \"check-circle\" | \"checkmark\" | \"checkmarkThick\" | \"city\" | \"clock\" | \"companies\" | \"company\" | \"component\" | \"copy\" | \"credit-card\" | \"cross-circle\" | \"cutlery\" | \"department\" | \"description\" | \"diamond\" | \"docter\" | \"document\" | \"double-arrow\" | \"double-caret\" | \"download\" | \"enter-key\" | \"envelope\" | \"error-circle\" | \"euro\" | \"exam\" | \"eye\" | \"eye-closed\" | \"female\" | \"file-export\" | \"file-import\" | \"filter\" | \"flag\" | \"flower\" | \"folder\" | \"globe\" | \"globe-2\" | \"google\" | \"hash\" | \"hat\" | \"headset\" | \"home\" | \"id\" | \"id-two\" | \"ideal\" | \"info-circle\" | \"integration\" | \"key\" | \"lamp\" | \"language\" | \"laptop\" | \"location\" | \"lock\" | \"mail\" | \"male\" | \"math\" | \"medal\" | \"menu\" | \"menu-arrow\" | \"minus\" | \"moon\" | \"more\" | \"negative\" | \"new-tab\" | \"other\" | \"pay\" | \"pdf\" | \"pencil\" | \"percent\" | \"phone\" | \"pie-chart\" | \"piggy-bank\" | \"placeholder\" | \"plus\" | \"power\" | \"question-circle\" | \"receipt\" | \"reset\" | \"running\" | \"scroll\" | \"search\" | \"send\" | \"settings\" | \"shuffle\" | \"sick\" | \"signature\" | \"sparkle\" | \"spinner\" | \"spinning\" | \"stack\" | \"star\" | \"stroller\" | \"tag\" | \"tasks\" | \"tools\" | \"tooth\" | \"train\" | \"trash\" | \"turn\" | \"unlocked\" | \"upload\" | \"user\" | \"users\" | \"warning\" | \"wave\" | \"xls\" | \"zipcode\"",
|
|
209
|
+
"references": {
|
|
210
|
+
"IconVariant": {
|
|
211
|
+
"location": "import",
|
|
212
|
+
"path": "../../../types",
|
|
213
|
+
"id": "src/types/index.ts::IconVariant",
|
|
214
|
+
"referenceLocation": "IconVariant"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"required": false,
|
|
219
|
+
"optional": false,
|
|
220
|
+
"docs": {
|
|
221
|
+
"tags": [],
|
|
222
|
+
"text": "Icon to show on the dropzone"
|
|
223
|
+
},
|
|
224
|
+
"getter": false,
|
|
225
|
+
"setter": false,
|
|
226
|
+
"reflect": false,
|
|
227
|
+
"attribute": "icon",
|
|
228
|
+
"defaultValue": "'file-export'"
|
|
229
|
+
},
|
|
230
|
+
"showIcon": {
|
|
231
|
+
"type": "boolean",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "boolean",
|
|
235
|
+
"resolved": "boolean",
|
|
236
|
+
"references": {}
|
|
237
|
+
},
|
|
238
|
+
"required": false,
|
|
239
|
+
"optional": false,
|
|
240
|
+
"docs": {
|
|
241
|
+
"tags": [],
|
|
242
|
+
"text": "Wether to show the icon or not"
|
|
243
|
+
},
|
|
244
|
+
"getter": false,
|
|
245
|
+
"setter": false,
|
|
246
|
+
"reflect": false,
|
|
247
|
+
"attribute": "show-icon",
|
|
248
|
+
"defaultValue": "true"
|
|
249
|
+
},
|
|
250
|
+
"acceptGroup": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"mutable": false,
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "'any' | 'images'",
|
|
255
|
+
"resolved": "\"any\" | \"images\"",
|
|
256
|
+
"references": {}
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"optional": false,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": "The type of files to accept"
|
|
263
|
+
},
|
|
264
|
+
"getter": false,
|
|
265
|
+
"setter": false,
|
|
266
|
+
"reflect": false,
|
|
267
|
+
"attribute": "accept-group",
|
|
268
|
+
"defaultValue": "'any'"
|
|
269
|
+
},
|
|
270
|
+
"fileId": {
|
|
271
|
+
"type": "string",
|
|
272
|
+
"mutable": false,
|
|
273
|
+
"complexType": {
|
|
274
|
+
"original": "string",
|
|
275
|
+
"resolved": "string",
|
|
276
|
+
"references": {}
|
|
277
|
+
},
|
|
278
|
+
"required": false,
|
|
279
|
+
"optional": false,
|
|
280
|
+
"docs": {
|
|
281
|
+
"tags": [],
|
|
282
|
+
"text": "The fileID to use to track the file"
|
|
283
|
+
},
|
|
284
|
+
"getter": false,
|
|
285
|
+
"setter": false,
|
|
286
|
+
"reflect": false,
|
|
287
|
+
"attribute": "file-id"
|
|
288
|
+
},
|
|
289
|
+
"loading": {
|
|
290
|
+
"type": "boolean",
|
|
291
|
+
"mutable": false,
|
|
292
|
+
"complexType": {
|
|
293
|
+
"original": "boolean",
|
|
294
|
+
"resolved": "boolean",
|
|
295
|
+
"references": {}
|
|
296
|
+
},
|
|
297
|
+
"required": false,
|
|
298
|
+
"optional": false,
|
|
299
|
+
"docs": {
|
|
300
|
+
"tags": [],
|
|
301
|
+
"text": "Wether the attachment is loading"
|
|
302
|
+
},
|
|
303
|
+
"getter": false,
|
|
304
|
+
"setter": false,
|
|
305
|
+
"reflect": false,
|
|
306
|
+
"attribute": "loading",
|
|
307
|
+
"defaultValue": "false"
|
|
308
|
+
},
|
|
309
|
+
"allowMultiple": {
|
|
310
|
+
"type": "boolean",
|
|
311
|
+
"mutable": false,
|
|
312
|
+
"complexType": {
|
|
313
|
+
"original": "boolean",
|
|
314
|
+
"resolved": "boolean",
|
|
315
|
+
"references": {}
|
|
316
|
+
},
|
|
317
|
+
"required": false,
|
|
318
|
+
"optional": false,
|
|
319
|
+
"docs": {
|
|
320
|
+
"tags": [],
|
|
321
|
+
"text": "Allow multiple files"
|
|
322
|
+
},
|
|
323
|
+
"getter": false,
|
|
324
|
+
"setter": false,
|
|
325
|
+
"reflect": false,
|
|
326
|
+
"attribute": "allow-multiple",
|
|
327
|
+
"defaultValue": "true"
|
|
328
|
+
},
|
|
329
|
+
"uploaded": {
|
|
330
|
+
"type": "boolean",
|
|
331
|
+
"mutable": false,
|
|
332
|
+
"complexType": {
|
|
333
|
+
"original": "boolean",
|
|
334
|
+
"resolved": "boolean",
|
|
335
|
+
"references": {}
|
|
336
|
+
},
|
|
337
|
+
"required": false,
|
|
338
|
+
"optional": false,
|
|
339
|
+
"docs": {
|
|
340
|
+
"tags": [],
|
|
341
|
+
"text": "Wether the file is uploaded"
|
|
342
|
+
},
|
|
343
|
+
"getter": false,
|
|
344
|
+
"setter": false,
|
|
345
|
+
"reflect": false,
|
|
346
|
+
"attribute": "uploaded",
|
|
347
|
+
"defaultValue": "false"
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
static get states() {
|
|
352
|
+
return {
|
|
353
|
+
"_isOver": {}
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
static get events() {
|
|
357
|
+
return [{
|
|
358
|
+
"method": "upload",
|
|
359
|
+
"name": "upload",
|
|
360
|
+
"bubbles": false,
|
|
361
|
+
"cancelable": true,
|
|
362
|
+
"composed": true,
|
|
363
|
+
"docs": {
|
|
364
|
+
"tags": [],
|
|
365
|
+
"text": "Event when upload is pressed"
|
|
366
|
+
},
|
|
367
|
+
"complexType": {
|
|
368
|
+
"original": "DropzoneUploadEvent",
|
|
369
|
+
"resolved": "DropzoneUploadEvent",
|
|
370
|
+
"references": {
|
|
371
|
+
"DropzoneUploadEvent": {
|
|
372
|
+
"location": "local",
|
|
373
|
+
"path": "/home/runner/work/Paperless/Paperless/packages/core/src/components/molecules/dropzone/dropzone.component.tsx",
|
|
374
|
+
"id": "src/components/molecules/dropzone/dropzone.component.tsx::DropzoneUploadEvent"
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}];
|
|
379
|
+
}
|
|
380
|
+
static get elementRef() { return "_el"; }
|
|
381
|
+
static get listeners() {
|
|
382
|
+
return [{
|
|
383
|
+
"name": "drop",
|
|
384
|
+
"method": "onDrop",
|
|
385
|
+
"target": undefined,
|
|
386
|
+
"capture": false,
|
|
387
|
+
"passive": true
|
|
388
|
+
}, {
|
|
389
|
+
"name": "dragover",
|
|
390
|
+
"method": "onDragOver",
|
|
391
|
+
"target": undefined,
|
|
392
|
+
"capture": false,
|
|
393
|
+
"passive": true
|
|
394
|
+
}, {
|
|
395
|
+
"name": "dragleave",
|
|
396
|
+
"method": "onDragLeave",
|
|
397
|
+
"target": undefined,
|
|
398
|
+
"capture": false,
|
|
399
|
+
"passive": true
|
|
400
|
+
}];
|
|
401
|
+
}
|
|
402
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
|
2
|
+
import { html, nothing } from "lit";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Design System/Molecules/Dropzone',
|
|
5
|
+
component: 'p-dropzone',
|
|
6
|
+
args: {
|
|
7
|
+
content: ''
|
|
8
|
+
},
|
|
9
|
+
argTypes: {
|
|
10
|
+
content: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
export const Default = {
|
|
17
|
+
render: ({ icon, 'show-icon': showIcon, 'accept-group': acceptGroup, 'file-id': fileId, uploaded, loading, content, 'allow-multiple': allowMultiple, }) => content.length > 0
|
|
18
|
+
? html `
|
|
19
|
+
<p-dropzone
|
|
20
|
+
icon=${icon ?? nothing}
|
|
21
|
+
show-icon=${showIcon ?? nothing}
|
|
22
|
+
accept-group=${acceptGroup ?? nothing}
|
|
23
|
+
allow-multiple=${allowMultiple ?? nothing}
|
|
24
|
+
file-id=${fileId ?? nothing}
|
|
25
|
+
uploaded=${uploaded ?? nothing}
|
|
26
|
+
loading=${loading ?? nothing}
|
|
27
|
+
@upload=${action('upload')}
|
|
28
|
+
>
|
|
29
|
+
${content}
|
|
30
|
+
</p-dropzone>
|
|
31
|
+
`
|
|
32
|
+
: html `
|
|
33
|
+
<p-dropzone
|
|
34
|
+
icon=${icon ?? nothing}
|
|
35
|
+
show-icon=${showIcon ?? nothing}
|
|
36
|
+
accept-group=${acceptGroup ?? nothing}
|
|
37
|
+
allow-multiple=${allowMultiple ?? nothing}
|
|
38
|
+
file-id=${fileId ?? nothing}
|
|
39
|
+
uploaded=${uploaded ?? nothing}
|
|
40
|
+
loading=${loading ?? nothing}
|
|
41
|
+
@upload=${action('upload')}
|
|
42
|
+
/>
|
|
43
|
+
`,
|
|
44
|
+
};
|
|
@@ -59,11 +59,11 @@ export class EmptyState {
|
|
|
59
59
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
60
60
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
61
61
|
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
62
|
-
return (h(ThemedHost, { key: '
|
|
62
|
+
return (h(ThemedHost, { key: '46f56cd16b8fb196bf0386d0eb6e00f4033ace3d' }, h("div", { key: 'b3b10b96f1e3a657b9c76982ef9330dc1909d114', class: emptyState({
|
|
63
63
|
enableAction: asBoolean(this.enableAction, true),
|
|
64
64
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
65
65
|
? this.action.emit(ev)
|
|
66
|
-
: undefined }, this.illustration && (h("p-illustration", { key: '
|
|
66
|
+
: undefined }, this.illustration && (h("p-illustration", { key: '558279ba45c580a607d4227469bf60006e426da1', class: 'mb-8 text-5xl text-indigo-600', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: '\n my-0 text-center font-ambit text-sm font-bold text-storm-500\n dark:text-white\n ' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: '\n my-0 text-center text-sm font-normal text-storm-300\n dark:text-hurricane-200\n ' }, this.content))), this.enableAction &&
|
|
67
67
|
(hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, iconPosition: this.actionIconPosition, loading: this.actionLoading, variant: this.actionVariant }, this.actionText))))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "p-empty-state"; }
|
|
@@ -105,27 +105,27 @@ export class FieldContainer {
|
|
|
105
105
|
}
|
|
106
106
|
render() {
|
|
107
107
|
const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
|
|
108
|
-
let contentSlot = (h("slot", { key: '
|
|
108
|
+
let contentSlot = (h("slot", { key: '2584c934001e26c03b752112c165dc89f31db007', name: 'content', slot: 'trigger' }));
|
|
109
109
|
if (this.loading) {
|
|
110
|
-
contentSlot = (h("p-loader", { key: '
|
|
110
|
+
contentSlot = (h("p-loader", { key: 'fe69f220c9021a637ca5bef74868f769222a635d', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger', variant: 'ghost' }));
|
|
111
111
|
}
|
|
112
|
-
return (h(ThemedHost, { key: '
|
|
112
|
+
return (h(ThemedHost, { key: 'cbed8c2f71c7be4f1789b3d234aafca4f9f078d9' }, h("label", { key: '41c19529b5282769de686b834e1facfd69a323cf', class: cn('flex w-inherit flex-col gap-1', {
|
|
113
113
|
'cursor-auto': this.variant === 'read',
|
|
114
|
-
}), htmlFor: this.id }, h("div", { key: '
|
|
114
|
+
}), htmlFor: this.id }, h("div", { key: '44a2fbd0d1024cd153894dd5548d7b4e0f1f4aec', class: cn(`
|
|
115
115
|
flex items-end justify-between gap-1
|
|
116
116
|
empty:hidden
|
|
117
117
|
`, {
|
|
118
118
|
'flex-row-reverse': this.align === 'end',
|
|
119
|
-
}) }, (!!label?.length || !!helper?.length) && (h("div", { key: '
|
|
120
|
-
hasHeaderSlot) && (h("div", { key: '
|
|
119
|
+
}) }, (!!label?.length || !!helper?.length) && (h("div", { key: '1e7519168574464c867c86f84ecdca2c4e15e460', class: 'flex min-w-0 gap-2', onClick: () => this.focus.emit() }, h("span", { key: 'ec3649c4a9436d9c54be7929781d1d9a5fc459df', class: '\n min-w-0 overflow-hidden text-ellipsis text-xs font-medium\n text-storm-300\n dark:text-hurricane-200\n ' }, label), helper && (h("p-helper", { key: '2cc430522904e8df5dcc7fbf40f71d26287b7f0a', class: 'flex flex-shrink-0', placement: 'top' }, helper)))), ((!asBoolean(this.required) && asBoolean(this.showOptional)) ||
|
|
120
|
+
hasHeaderSlot) && (h("div", { key: 'f6849a8c420eb3582a7d92d5e6b42bdd4e019a07', class: 'flex items-center gap-1' }, !asBoolean(this.required) &&
|
|
121
121
|
asBoolean(this.showOptional) &&
|
|
122
|
-
this.variant === 'write' && (h("span", { key: '
|
|
122
|
+
this.variant === 'write' && (h("span", { key: '2329447c26577bc481fc46f11b1dcbfceff39f60', class: '\n text-xs font-medium text-storm-200\n dark:text-hurricane-300\n ' }, this.optionalTemplate())), hasHeaderSlot && h("slot", { key: '09fffde1c42b4b160c455ba73f47d11e1d34dbc5', name: 'header' })))), h("p-tooltip", { key: '26a3e3aa6bb7e3d57ae990ca672e01df493d3f1d', class: cn({
|
|
123
123
|
'w-full': this.variant === 'write' || this.loading,
|
|
124
124
|
'ml-auto': this.align === 'end',
|
|
125
125
|
'font-normal': this.variant === 'read',
|
|
126
126
|
'text-storm-500 dark:text-white': this.variant === 'read',
|
|
127
127
|
}), content: this.error, enableUserInput: false, placement: this.errorPlacement, show: errorAndErrorIsNotBoolean &&
|
|
128
|
-
asBoolean(this.forceShowTooltip, false), variant: 'error' }, hasErrorSlot && (h("slot", { key: '
|
|
128
|
+
asBoolean(this.forceShowTooltip, false), variant: 'error' }, hasErrorSlot && (h("slot", { key: '5a0ce99a2d3c123566e6417eeec26fe86ce054c6', name: 'error', slot: 'content' })), contentSlot))));
|
|
129
129
|
}
|
|
130
130
|
async _setLocales() {
|
|
131
131
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -371,8 +371,8 @@ export class Field {
|
|
|
371
371
|
}
|
|
372
372
|
render() {
|
|
373
373
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
374
|
-
return (h(ThemedHost, { key: '
|
|
375
|
-
(!!this.error?.length && this.forceShowTooltip), helper: this.helper, id: id, label: this.label, loading: this.loading, loadingSize: this.size, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '
|
|
374
|
+
return (h(ThemedHost, { key: 'f985e2b3d25ebb7a9e30448fb6663d0b487f47a3' }, h("p-field-container", { key: '358983d8f8f6cb1b53e9e4c607c064fc4a27a9f0', align: this.align, error: this.error, forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
|
|
375
|
+
(!!this.error?.length && this.forceShowTooltip), helper: this.helper, id: id, label: this.label, loading: this.loading, loadingSize: this.size, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '155d5efc1d951ea2e08076cb58c3ce96e12f0f13', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '9012ea2ac18ebbdc337ef7fc3fc79a36b1c9c720', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'f461db190f2ca1727117e062111e96c6f85728be', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '353b0153551e5e7adb23b19390a4111e0b96d0c4', name: 'error', slot: 'error' })), h("div", { key: '20152561ff55142e43b3b1cbfb151b254f145736', class: field({
|
|
376
376
|
error: !!this.error?.length,
|
|
377
377
|
disabled: asBoolean(this.disabled),
|
|
378
378
|
focused: asBoolean(this.focused) || this._focused,
|
|
@@ -383,7 +383,7 @@ export class Field {
|
|
|
383
383
|
? `${this.value}`
|
|
384
384
|
: undefined }, (this.error?.length ||
|
|
385
385
|
prefix ||
|
|
386
|
-
(this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
386
|
+
(this.icon && this.iconPosition === 'start')) && (h("div", { key: 'bca5cf5eca02b9291eb710e6c3539e23bb349d96', class: prefixAndSuffix({
|
|
387
387
|
variant: this.variant,
|
|
388
388
|
error: !!this.error?.length,
|
|
389
389
|
disabled: asBoolean(this.disabled),
|
|
@@ -395,7 +395,7 @@ export class Field {
|
|
|
395
395
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
396
396
|
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.error?.length ? 'warning' : this.icon })) : (prefix))), this._getContent(hasValueSlot, id), (suffix ||
|
|
397
397
|
(this.type === 'password' && this.enablePasswordEye) ||
|
|
398
|
-
(this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
398
|
+
(this.icon && this.iconPosition === 'end')) && (h("div", { key: '0ab5f5a94ff34eeeb76eb94cad88a4895a656bfd', class: cn(prefixAndSuffix({
|
|
399
399
|
variant: this.variant,
|
|
400
400
|
error: !!this.error?.length,
|
|
401
401
|
disabled: asBoolean(this.disabled),
|
|
@@ -75,17 +75,17 @@ export class Label {
|
|
|
75
75
|
*/
|
|
76
76
|
keepMobileContent = false;
|
|
77
77
|
render() {
|
|
78
|
-
return (h(ThemedHost, { key: '
|
|
78
|
+
return (h(ThemedHost, { key: '2dcb1d9bafb86433ad4bc24a7f1947ca52656056' }, h("div", { key: 'ce580094967f042bef6aef229b393709f0993c34', class: label({
|
|
79
79
|
variant: this.variant,
|
|
80
80
|
iconOnly: this.iconOnly,
|
|
81
81
|
keepMobileContent: this.keepMobileContent,
|
|
82
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
82
|
+
}) }, this.icon && (h("p-icon", { key: '450bf31eec5f09c5b326f7819841f9b6dc155993', class: 'flex-shrink-0', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })), !this.iconOnly && (h("div", { key: '825b6996bba84ffeb67dd8f4cfb114b0034599bf', class: cn(`
|
|
83
83
|
flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm
|
|
84
84
|
font-medium
|
|
85
85
|
`, {
|
|
86
86
|
hidden: !this.keepMobileContent,
|
|
87
87
|
'desktop-xs:block': !this.keepMobileContent,
|
|
88
|
-
}) }, h("slot", { key: '
|
|
88
|
+
}) }, h("slot", { key: '6d71814586719b1b7898d5f46033a8d46ed63974' }))))));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "p-label"; }
|
|
91
91
|
static get encapsulation() { return "shadow"; }
|
|
@@ -88,13 +88,13 @@ export class NavigationItem {
|
|
|
88
88
|
render() {
|
|
89
89
|
const TagType = this.as;
|
|
90
90
|
const active = asBoolean(this.active) || this.class?.includes('active');
|
|
91
|
-
return (h(ThemedHost, { key: '
|
|
91
|
+
return (h(ThemedHost, { key: 'af5ecc5d5485b1bbfb172794409d05e51c267a1b', class: cn('inline-block', this.class) }, h(TagType, { key: 'c88091c7b839ba181d22bff95978263443986d01', class: navigationItem({
|
|
92
92
|
icon: !!this.icon,
|
|
93
93
|
active,
|
|
94
|
-
}), href: this.href, target: this.target }, h("div", { key: '
|
|
94
|
+
}), href: this.href, target: this.target }, h("div", { key: '75572668b903ffacd852c765415b20deba35d4fa', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: 'f5499b9eb148820f73109400aa4b9d6dd29e134d', variant: this.icon })), h("span", { key: '1ee78ad5c09e916baced632233ffcc5dd8ef8347', class: cn({
|
|
95
95
|
'has-counter': !!this.counter,
|
|
96
96
|
'w-full': this.applyFullWidth,
|
|
97
|
-
}) }, h("slot", { key: '
|
|
97
|
+
}) }, h("slot", { key: '6c39a2140f511209e6e48fcc6a8eec2c02f36610' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '46c7a53003e7e80737a82f00e82bf95bf294234a' }, this.counter)), !!this.loading && h("p-loader", { key: 'a9b88ff904559ce15a7f29020a714760e3183cd9', class: 'ml-auto' }))));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "p-navigation-item"; }
|
|
100
100
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/molecules/navigation/section/navigation-section.component.js
CHANGED
|
@@ -6,7 +6,7 @@ export class NavigationSection {
|
|
|
6
6
|
*/
|
|
7
7
|
header;
|
|
8
8
|
render() {
|
|
9
|
-
return (h(ThemedHost, { key: '
|
|
9
|
+
return (h(ThemedHost, { key: 'adc4546240455e2a90f355a85d26a29ec7e3b6f2', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '8510c67a883e4973b9261ee63f7ef148cdbaedd4' }, this.header)), h("div", { key: '23b9cfcc54e590d5378ebd61fba0851e95ecc697', class: 'flex flex-col' }, h("slot", { key: '01521755f498890b3abf3adcdd30cf71e9ed8629' }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "p-navigation-section"; }
|
|
12
12
|
static get originalStyleUrls() {
|
|
@@ -61,7 +61,7 @@ export class PaginationPages {
|
|
|
61
61
|
this._generate();
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(ThemedHost, { key: '
|
|
64
|
+
return (h(ThemedHost, { key: '3c3bdfce0f2956d896456498d5e1d82f727068c8' }, h("div", { key: 'b489b3ea0d740554fbe17d5cba60824bf7bcfc15', class: pagination({
|
|
65
65
|
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
66
66
|
}) }, this._set?.map(p => {
|
|
67
67
|
if (p.type === 'previous' || p.type === 'next') {
|
|
@@ -60,12 +60,12 @@ export class Pagination {
|
|
|
60
60
|
_hasPaginationPages = true;
|
|
61
61
|
render() {
|
|
62
62
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
63
|
-
return (h(ThemedHost, { key: '
|
|
63
|
+
return (h(ThemedHost, { key: '611fb4062cf7c6cd78adf2744d7694615fa8d502' }, h("div", { key: '80ebed4ee0978c78ecee629d08f7ca026e395349', class: pagination({
|
|
64
64
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
65
65
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
66
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '
|
|
66
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '81ffbba6758be70cb681d1b778365c1f83122048' }, h("p-pagination-size", { key: 'ede0a33d15261777f8d99ce866dedb3af3d63c86', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
67
67
|
this.hideOnSinglePage &&
|
|
68
|
-
this._hasPaginationPages && (h("p-divider", { key: '
|
|
68
|
+
this._hasPaginationPages && (h("p-divider", { key: '8d9956dd7d2277ea8849003e31ce2000eb88db7d', class: '\n mx-0 h-4 text-off-white-700\n dark:text-hurricane-400\n ', variant: 'vertical' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: 'c39df7ebd431fbcfa82eb847ff1c9a52acfc7b41', hideOnSinglePage: this.hideOnSinglePage, page: this.page, pageSize: this.pageSize, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
|
|
69
69
|
this._hasPaginationPages = detail > 1;
|
|
70
70
|
this.pagesChange.emit(detail);
|
|
71
71
|
} })))));
|