@paperless/core 3.26.3 → 3.27.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/build/p-014ef0e1.entry.js +1 -0
- package/dist/build/{p-57c5bf0c.entry.js → p-017b3759.entry.js} +1 -1
- package/dist/build/{p-d2ff359e.entry.js → p-02a54f77.entry.js} +1 -1
- package/dist/{paperless/p-4cd8035a.entry.js → build/p-055b6209.entry.js} +1 -1
- package/dist/{paperless/p-6ed7ef6a.entry.js → build/p-1a26edba.entry.js} +1 -1
- package/dist/{paperless/p-34ec6b9b.entry.js → build/p-1a424b04.entry.js} +1 -1
- package/dist/build/{p-0cf2c5f5.entry.js → p-2248e489.entry.js} +1 -1
- package/dist/{paperless/p-e922cb1f.entry.js → build/p-2361ad53.entry.js} +1 -1
- package/dist/build/{p-e20e6aa3.entry.js → p-24db0c8f.entry.js} +1 -1
- package/dist/build/{p-48be5f53.entry.js → p-2efedc3d.entry.js} +1 -1
- package/dist/{paperless/p-9079dcb7.entry.js → build/p-31cf13c6.entry.js} +1 -1
- package/dist/build/p-3eb1d7d5.entry.js +1 -0
- package/dist/build/{p-1f450945.js → p-435a082d.js} +1 -1
- package/dist/build/{p-b1e6c746.entry.js → p-45176955.entry.js} +1 -1
- package/dist/build/p-4b6fd839.entry.js +1 -0
- package/dist/build/{p-2e53d921.entry.js → p-51312a8f.entry.js} +1 -1
- package/dist/{paperless/p-2ebc600b.entry.js → build/p-555cb497.entry.js} +1 -1
- package/dist/build/p-571575d2.entry.js +1 -0
- package/dist/build/p-62feca51.entry.js +1 -0
- package/dist/build/{p-38056598.entry.js → p-65466ef3.entry.js} +1 -1
- package/dist/build/{p-d5365ce3.entry.js → p-6a23ff2f.entry.js} +1 -1
- package/dist/{paperless/p-45b9a446.entry.js → build/p-6ac8c0c1.entry.js} +1 -1
- package/dist/{paperless/p-b8caedf6.entry.js → build/p-7c8ec514.entry.js} +1 -1
- package/dist/build/{p-2ce0c175.entry.js → p-7cd7bc8b.entry.js} +1 -1
- package/dist/{paperless/p-1b50f01d.entry.js → build/p-8c141cb8.entry.js} +1 -1
- package/dist/{paperless/p-b316ecff.entry.js → build/p-92910dad.entry.js} +1 -1
- package/dist/build/{p-020124fe.entry.js → p-9f684244.entry.js} +1 -1
- package/dist/build/p-BM1GAQNk.js +1 -0
- package/dist/build/{p-b1a372fc.entry.js → p-a035467d.entry.js} +1 -1
- package/dist/build/p-a395e9e0.entry.js +1 -0
- package/dist/build/{p-4851ac96.entry.js → p-b190b534.entry.js} +1 -1
- package/dist/build/{p-25842006.entry.js → p-b75ded13.entry.js} +1 -1
- package/dist/{paperless/p-477801df.entry.js → build/p-bdab91d9.entry.js} +1 -1
- package/dist/build/{p-561a4d56.entry.js → p-ce56d534.entry.js} +1 -1
- package/dist/{paperless/p-f18a511c.entry.js → build/p-d21a8908.entry.js} +1 -1
- package/dist/build/{p-749752fa.entry.js → p-d37faeaf.entry.js} +1 -1
- package/dist/build/{p-280c1727.entry.js → p-d5dfbaee.entry.js} +1 -1
- package/dist/build/{p-b005f182.entry.js → p-d7d2411e.entry.js} +1 -1
- package/dist/build/p-ea2deb46.entry.js +1 -0
- package/dist/build/{p-5c08054f.entry.js → p-ec0a6d22.entry.js} +1 -1
- package/dist/build/{p-44d6468b.entry.js → p-ec3752dc.entry.js} +1 -1
- package/dist/build/{p-af9fc40a.entry.js → p-f6ca0e6b.entry.js} +1 -1
- package/dist/build/p-fa06ff98.entry.js +1 -0
- package/dist/{paperless/p-1a373297.entry.js → build/p-fa13f317.entry.js} +1 -1
- package/dist/{paperless/p-501f2f7c.entry.js → build/p-fadcfc9f.entry.js} +1 -1
- package/dist/{paperless/p-272721bf.entry.js → build/p-fccb23e5.entry.js} +1 -1
- package/dist/build/{p-3b34c822.entry.js → p-fccf3bf9.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/create-in-memory-file-DbvbYIM5.js +11 -0
- package/dist/cjs/p-accordion.cjs.entry.js +2 -2
- package/dist/cjs/p-attachment.cjs.entry.js +15 -10
- 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 +1 -1
- 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 +12 -10
- 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 +15 -7
- package/dist/cjs/p-dropzone.cjs.entry.js +11 -6
- package/dist/cjs/p-empty-state_8.cjs.entry.js +10 -10
- package/dist/cjs/p-field_3.cjs.entry.js +5 -5
- 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-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-modal-body_4.cjs.entry.js +6 -6
- 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 +3 -3
- 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 +50 -8
- 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-toggle.cjs.entry.js +3 -3
- package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- 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.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +14 -6
- 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 +15 -11
- 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 +5 -3
- package/dist/collection/components/molecules/dropzone/dropzone.component.js +11 -7
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/field/field.component.js +4 -4
- 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/pagination/pagination.component.js +3 -3
- 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 +72 -10
- package/dist/collection/components/molecules/select/select.stories.js +121 -18
- package/dist/collection/components/molecules/table/header/table-header.component.js +4 -4
- package/dist/collection/components/organisms/table/table.component.js +2 -2
- package/dist/collection/utils/create-in-memory-file.js +7 -0
- package/dist/components/{p-eGnIeQsr.js → p-1gDAZ8pd.js} +1 -1
- package/dist/components/{p-Co4UMOn6.js → p-2wIrtCNR.js} +1 -1
- package/dist/components/{p-CjxC_h_X.js → p-4-PxF11o.js} +1 -1
- package/dist/components/{p-DIuIGoBt.js → p-9XjFw7wO.js} +1 -1
- package/dist/components/p-B-GINaYf.js +1 -0
- package/dist/components/{p-ZSDx-Rn0.js → p-B0KMsqdv.js} +1 -1
- package/dist/components/{p-FK08Vr2S.js → p-B2Wcsz4j.js} +1 -1
- package/dist/components/{p-yYRVYWXO.js → p-B47sjbpK.js} +1 -1
- package/dist/components/{p--_gjJpd8.js → p-B9klDtR-.js} +1 -1
- package/dist/components/p-BG1plx2A.js +1 -0
- package/dist/components/{p-BFTj4F6O.js → p-BJyXdiHc.js} +1 -1
- package/dist/components/p-BM1GAQNk.js +1 -0
- package/dist/components/{p-Cm3IhOw8.js → p-BobrXbRh.js} +1 -1
- package/dist/components/{p-DS7XBqIp.js → p-BskFLFSo.js} +1 -1
- package/dist/components/{p-CAt4316p.js → p-BvfezQkY.js} +1 -1
- package/dist/components/{p-BswRuxmk.js → p-ByJPQrlL.js} +1 -1
- package/dist/components/{p-CJ7I5BCS.js → p-CPSiExRl.js} +1 -1
- package/dist/components/{p-CUQydYt5.js → p-CQnWpHIs.js} +1 -1
- package/dist/components/{p-CN4ZWAkb.js → p-CSnOLBSV.js} +1 -1
- package/dist/components/{p-TtrclAAz.js → p-CZ8afGMO.js} +1 -1
- package/dist/components/{p-BksolHpY.js → p-C_ImoJA8.js} +1 -1
- package/dist/components/{p-CTC-N56p.js → p-Cgqav9mX.js} +1 -1
- package/dist/components/{p-VqccwN4a.js → p-ClZHa_Zf.js} +1 -1
- package/dist/components/{p-1jNdZTKN.js → p-Cmltn24W.js} +1 -1
- package/dist/components/{p-BPCXcEQD.js → p-CmoU4H6Q.js} +1 -1
- package/dist/components/{p-B6PqwbBc.js → p-CpRKUhuF.js} +1 -1
- package/dist/components/{p-D0uXSAIf.js → p-CxrxqKhq.js} +1 -1
- package/dist/components/{p-kdBBVGjg.js → p-D5BA_qF7.js} +1 -1
- package/dist/components/{p-DGoOsLEr.js → p-DHJIvL0U.js} +1 -1
- package/dist/components/{p-D5OXFgvY.js → p-DHKJDm0J.js} +1 -1
- package/dist/components/{p-DixhvrFt.js → p-DaPWhcRy.js} +1 -1
- package/dist/components/{p-B-yfQWzc.js → p-DxuTDs4a.js} +1 -1
- package/dist/components/{p-DfVHhJmL.js → p-HVaovLkY.js} +1 -1
- package/dist/components/{p-BBlYsP5p.js → p-L0a3qALZ.js} +1 -1
- package/dist/components/{p-1qs8jjR4.js → p-V1uzM_gT.js} +1 -1
- package/dist/components/{p-B8iFUPO5.js → p-aAebGiQ0.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-B3Q_nqZE.js → p-bZ3k4UvK.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-DZjtEarb.js → p-c4v-m6AC.js} +1 -1
- package/dist/components/{p-COscyt8q.js → p-c6u4OYf0.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.js +1 -1
- package/dist/components/{p-BJFfno38.js → p-eLIgN9FF.js} +1 -1
- 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-BmhVEljv.js → p-gEaqH36V.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-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-q5vnW4We.js +1 -0
- 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-submenu-item.js +1 -1
- package/dist/components/p-submenu.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-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-CMfdl_TW.js → p-vcV0dLlI.js} +1 -1
- package/dist/components/{p-CQo1Di0o.js → p-yaD47mvt.js} +1 -1
- package/dist/components/{p-Dn13oSNs.js → p-zBwPEKhI.js} +1 -1
- package/dist/esm/create-in-memory-file-BM1GAQNk.js +9 -0
- package/dist/esm/p-accordion.entry.js +2 -2
- package/dist/esm/p-attachment.entry.js +15 -10
- 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 +1 -1
- 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 +12 -10
- 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 +15 -7
- package/dist/esm/p-dropzone.entry.js +11 -6
- package/dist/esm/p-empty-state_8.entry.js +10 -10
- package/dist/esm/p-field_3.entry.js +5 -5
- 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-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-modal-body_4.entry.js +6 -6
- 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 +3 -3
- 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 +50 -8
- 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-toggle.entry.js +3 -3
- package/dist/esm/p-tooltip.entry.js +2 -2
- package/dist/index.html +1 -1
- package/dist/paperless/p-014ef0e1.entry.js +1 -0
- package/dist/paperless/{p-57c5bf0c.entry.js → p-017b3759.entry.js} +1 -1
- package/dist/paperless/{p-d2ff359e.entry.js → p-02a54f77.entry.js} +1 -1
- package/dist/{build/p-4cd8035a.entry.js → paperless/p-055b6209.entry.js} +1 -1
- package/dist/{build/p-6ed7ef6a.entry.js → paperless/p-1a26edba.entry.js} +1 -1
- package/dist/{build/p-34ec6b9b.entry.js → paperless/p-1a424b04.entry.js} +1 -1
- package/dist/paperless/{p-0cf2c5f5.entry.js → p-2248e489.entry.js} +1 -1
- package/dist/{build/p-e922cb1f.entry.js → paperless/p-2361ad53.entry.js} +1 -1
- package/dist/paperless/{p-e20e6aa3.entry.js → p-24db0c8f.entry.js} +1 -1
- package/dist/paperless/{p-48be5f53.entry.js → p-2efedc3d.entry.js} +1 -1
- package/dist/{build/p-9079dcb7.entry.js → paperless/p-31cf13c6.entry.js} +1 -1
- package/dist/paperless/p-3eb1d7d5.entry.js +1 -0
- package/dist/paperless/{p-b1e6c746.entry.js → p-45176955.entry.js} +1 -1
- package/dist/paperless/p-4b6fd839.entry.js +1 -0
- package/dist/paperless/{p-2e53d921.entry.js → p-51312a8f.entry.js} +1 -1
- package/dist/{build/p-2ebc600b.entry.js → paperless/p-555cb497.entry.js} +1 -1
- package/dist/paperless/p-571575d2.entry.js +1 -0
- package/dist/paperless/p-62feca51.entry.js +1 -0
- package/dist/paperless/{p-38056598.entry.js → p-65466ef3.entry.js} +1 -1
- package/dist/paperless/{p-d5365ce3.entry.js → p-6a23ff2f.entry.js} +1 -1
- package/dist/{build/p-45b9a446.entry.js → paperless/p-6ac8c0c1.entry.js} +1 -1
- package/dist/{build/p-b8caedf6.entry.js → paperless/p-7c8ec514.entry.js} +1 -1
- package/dist/paperless/{p-2ce0c175.entry.js → p-7cd7bc8b.entry.js} +1 -1
- package/dist/{build/p-1b50f01d.entry.js → paperless/p-8c141cb8.entry.js} +1 -1
- package/dist/{build/p-b316ecff.entry.js → paperless/p-92910dad.entry.js} +1 -1
- package/dist/paperless/{p-020124fe.entry.js → p-9f684244.entry.js} +1 -1
- package/dist/paperless/p-BM1GAQNk.js +1 -0
- package/dist/paperless/{p-b1a372fc.entry.js → p-a035467d.entry.js} +1 -1
- package/dist/paperless/p-a395e9e0.entry.js +1 -0
- package/dist/paperless/{p-4851ac96.entry.js → p-b190b534.entry.js} +1 -1
- package/dist/paperless/{p-25842006.entry.js → p-b75ded13.entry.js} +1 -1
- package/dist/{build/p-477801df.entry.js → paperless/p-bdab91d9.entry.js} +1 -1
- package/dist/paperless/{p-561a4d56.entry.js → p-ce56d534.entry.js} +1 -1
- package/dist/{build/p-f18a511c.entry.js → paperless/p-d21a8908.entry.js} +1 -1
- package/dist/paperless/{p-749752fa.entry.js → p-d37faeaf.entry.js} +1 -1
- package/dist/paperless/{p-280c1727.entry.js → p-d5dfbaee.entry.js} +1 -1
- package/dist/paperless/{p-b005f182.entry.js → p-d7d2411e.entry.js} +1 -1
- package/dist/paperless/p-ea2deb46.entry.js +1 -0
- package/dist/paperless/{p-5c08054f.entry.js → p-ec0a6d22.entry.js} +1 -1
- package/dist/paperless/{p-44d6468b.entry.js → p-ec3752dc.entry.js} +1 -1
- package/dist/paperless/{p-af9fc40a.entry.js → p-f6ca0e6b.entry.js} +1 -1
- package/dist/paperless/p-fa06ff98.entry.js +1 -0
- package/dist/{build/p-1a373297.entry.js → paperless/p-fa13f317.entry.js} +1 -1
- package/dist/{build/p-501f2f7c.entry.js → paperless/p-fadcfc9f.entry.js} +1 -1
- package/dist/{build/p-272721bf.entry.js → paperless/p-fccb23e5.entry.js} +1 -1
- package/dist/paperless/{p-3b34c822.entry.js → p-fccf3bf9.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/atoms/dropdown-menu/item/dropdown-menu-item.component.d.ts +1 -1
- package/dist/types/components/molecules/select/select.component.d.ts +14 -2
- package/dist/types/components/molecules/select/select.stories.d.ts +45 -3
- package/dist/types/components.d.ts +27 -4
- package/dist/types/utils/create-in-memory-file.d.ts +1 -0
- package/hydrate/index.js +200 -133
- package/hydrate/index.mjs +200 -133
- package/package.json +1 -1
- package/dist/build/p-4b7ac676.entry.js +0 -1
- package/dist/build/p-56ceed87.entry.js +0 -1
- package/dist/build/p-5d58a880.entry.js +0 -1
- package/dist/build/p-70071176.entry.js +0 -1
- package/dist/build/p-8ae7f9fd.entry.js +0 -1
- package/dist/build/p-92259edb.entry.js +0 -1
- package/dist/build/p-9ac5f80b.entry.js +0 -1
- package/dist/build/p-ce15940f.entry.js +0 -1
- package/dist/components/p-4-EYCe-6.js +0 -1
- package/dist/components/p-CUMk7xBX.js +0 -1
- package/dist/components/p-bTOCGgU2.js +0 -1
- package/dist/paperless/p-4b7ac676.entry.js +0 -1
- package/dist/paperless/p-56ceed87.entry.js +0 -1
- package/dist/paperless/p-5d58a880.entry.js +0 -1
- package/dist/paperless/p-70071176.entry.js +0 -1
- package/dist/paperless/p-8ae7f9fd.entry.js +0 -1
- package/dist/paperless/p-92259edb.entry.js +0 -1
- package/dist/paperless/p-9ac5f80b.entry.js +0 -1
- package/dist/paperless/p-ce15940f.entry.js +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { ThemedHost } from "../../../internal/themed-host.component";
|
|
4
|
-
import { cn } from "../../../utils";
|
|
4
|
+
import { cn, isIOS } from "../../../utils";
|
|
5
|
+
import { createInMemoryFile } from "../../../utils/create-in-memory-file";
|
|
5
6
|
const dropzone = cva([
|
|
6
7
|
'group/dropzone',
|
|
7
8
|
'flex h-inherit w-full flex-col items-center justify-center gap-2',
|
|
@@ -115,20 +116,20 @@ export class Dropzone {
|
|
|
115
116
|
}
|
|
116
117
|
render() {
|
|
117
118
|
const hasContent = this._el.innerHTML?.length > 0;
|
|
118
|
-
return (h(ThemedHost, { key: '
|
|
119
|
+
return (h(ThemedHost, { key: 'c6f88f85d81564f5b7ccf1975459438661af7609' }, h("div", { key: '11f20ce6fcd35a6345c5155795b55c18e5c3cac9', class: dropzone({
|
|
119
120
|
isOver: this._isOver,
|
|
120
121
|
uploaded: this.uploaded,
|
|
121
|
-
}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (h("p-icon", { key: '
|
|
122
|
+
}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (h("p-icon", { key: 'd918748e6844067135182c910cafe8fb3e587aca', class: cn(`
|
|
122
123
|
group-hover/dropzone:text-indigo-900
|
|
123
124
|
dark:group-hover/dropzone:text-indigo-700
|
|
124
125
|
`, {
|
|
125
126
|
'text-positive-green-800': this.uploaded,
|
|
126
127
|
'text-storm-300 dark:text-hurricane-200': !this._isOver && !this.uploaded,
|
|
127
128
|
'text-indigo-900 dark:text-indigo-700': this._isOver,
|
|
128
|
-
}), variant: this.icon })), this.loading && h("p-loader", { key: '
|
|
129
|
+
}), variant: this.icon })), this.loading && h("p-loader", { key: 'd4dcb00af7b74f03b4f0978f6bba148b580538eb' }), hasContent && (h("p", { key: '75cad556940a980662c3e34387731230d1a70394', class: cn('m-0 p-0 text-lg font-bold', {
|
|
129
130
|
'dark:text-white': !this.uploaded || this._isOver,
|
|
130
131
|
'text-storm-500': this.uploaded && !this._isOver,
|
|
131
|
-
}) }, h("slot", { key: '
|
|
132
|
+
}) }, h("slot", { key: 'e9ef30d5b51c35916ab37b9205fdc908f1b8c55e' }))), this.uploaded && !this._isOver && (h("div", { key: '978618ceb4aaf7f77f57ec15e34a5a22e0f8095d', class: 'flex items-center gap-2 text-positive-green-800' }, h("p-icon", { key: 'b3c3c6512aa60a3ceeb06dcaaaaf5336d899e032', variant: 'check-circle' }), h("span", { key: '1ca309ed4b3f26fbd15f97458322b8e238f5f0fa', class: 'font-medium' }, this.addedString))), (!this.uploaded || this._isOver) && (h("div", { key: '8849ffd2f74bc18ce78c87321e169ce59d2269b6', class: cn([
|
|
132
133
|
'flex flex-col text-center',
|
|
133
134
|
'group-hover/dropzone:opacity-50',
|
|
134
135
|
`
|
|
@@ -137,7 +138,7 @@ export class Dropzone {
|
|
|
137
138
|
`,
|
|
138
139
|
], {
|
|
139
140
|
'opacity-50': this._isOver,
|
|
140
|
-
}) }, h("span", { key: '
|
|
141
|
+
}) }, h("span", { key: '7f40836b007ec452f712a8f023d0a62f63525071', class: 'font-medium' }, this.dragFileString), h("span", { key: '05f29c41557b567aefb4ae821d8fc8ae48d1b0ff', class: 'font-normal' }, this.orClickString)))), h("input", { key: '40455d1a8ac6e7c233ff096cad44a6d479af48e7', 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) })));
|
|
141
142
|
}
|
|
142
143
|
onDrop(ev) {
|
|
143
144
|
const files = this._getFiles(ev);
|
|
@@ -209,7 +210,10 @@ export class Dropzone {
|
|
|
209
210
|
reader.addEventListener('load', (e) => this._onLoad(file, e?.currentTarget?.result));
|
|
210
211
|
reader.readAsDataURL(file);
|
|
211
212
|
}
|
|
212
|
-
_onLoad(file, result) {
|
|
213
|
+
async _onLoad(file, result) {
|
|
214
|
+
if (isIOS()) {
|
|
215
|
+
file = await createInMemoryFile(file);
|
|
216
|
+
}
|
|
213
217
|
this._results.push({
|
|
214
218
|
file,
|
|
215
219
|
result,
|
|
@@ -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: 'd84ee5a8579403223bb5cfe7bdec07866b47f8ff' }, h("div", { key: 'd973a6e27f7e87f162b01f5f8762fd5a3e421f7b', 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: '1fabcdf5a64f7162d0485665c273b3bacc6a7a4e', 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"; }
|
|
@@ -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: 'b251e9ed78735fc141963abe577696100e973d37' }, h("p-field-container", { key: '7f9e06a6e2904f43404fb93b886e4e0918b5a862', 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: 'bc559fcf5b77ff3b87120eb52fd0e3dd14e1b912', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '1b87bb5d34f429f9319632f14c12b28f8e76cf1a', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'a6a461f45d58d76b1ef0f6b3e013d699e72dbf49', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'b3947ba2b86f3b776178288e4946eb11e3efe3f2', name: 'error', slot: 'error' })), h("div", { key: 'aaed5d10a79306e400128254b9ca4c132cd06088', 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: 'e516c3533d88e87a601d9c97504100687d6f30da', 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: '62fcd0427be492bd46faeafd2a35b0df447bebac', class: cn(prefixAndSuffix({
|
|
399
399
|
variant: this.variant,
|
|
400
400
|
error: !!this.error?.length,
|
|
401
401
|
disabled: asBoolean(this.disabled),
|
|
@@ -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: '9dbc90d066c5c8af033baeadfd56b0d6fc97b8e8', class: cn('inline-block', this.class) }, h(TagType, { key: '54794c49462a1695aa7ab2aac1798ebd7e659775', 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: 'a64642008da3eb90fabef41ff4f7849bd5990769', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '5717e6bab1ccaff30409cdc470a5e26c0453abc3', variant: this.icon })), h("span", { key: '10724de271347188676041a4d3d34abda19570fe', class: cn({
|
|
95
95
|
'has-counter': !!this.counter,
|
|
96
96
|
'w-full': this.applyFullWidth,
|
|
97
|
-
}) }, h("slot", { key: '
|
|
97
|
+
}) }, h("slot", { key: 'c28eb7ba26a618dcd80cfb53a9b6e99f202be44c' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '3c75ef84bea0f90c136544c30aa32bc3bb5de311' }, this.counter)), !!this.loading && h("p-loader", { key: '0039f85358dcdd014ba98415256dc49be0daf366', 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: 'a0ca4e59eecc786d21f19b5cf19109ff2ecff9c2', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '2c01baaaff7f298d2589c62571cc765c885c7c21' }, this.header)), h("div", { key: 'e92d1f46d8fb376f93097bb29d47983055d0657d', class: 'flex flex-col' }, h("slot", { key: '6e68b9723d5ae4f738c3f56d6c8c73fbb824e497' }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "p-navigation-section"; }
|
|
12
12
|
static get originalStyleUrls() {
|
|
@@ -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: 'a5a07358c2ab6751f4d101c6001765984338c0f5' }, h("div", { key: 'f56d13ec01851b1342129c1f815b85d5ee2ca536', 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: '76d975d6c125a8f396a02f09fae593693fa2beda' }, h("p-pagination-size", { key: 'ded600f766ad55ad0c191bf1e87796176c6dd395', 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: '624f38b4cab761accfca28f4ced270449c6f0a7d', 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: 'cd4a6b794c6a2ff43904b1f718555a3a9752b843', 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
|
} })))));
|
|
@@ -28,7 +28,7 @@ export class Profile {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const content = this._getContent();
|
|
31
|
-
return (h(ThemedHost, { key: '
|
|
31
|
+
return (h(ThemedHost, { key: 'acfcfd3ddb3bae8247f1df99884ac155be45aa86' }, this._hasDropdownSlot ? (h("p-dropdown", { applyChevron: false, applyFullWidth: true, applyMaxWidth: false, manualChevron: true, placement: this.dropdownLocation, strategy: 'absolute', onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { active: this._dropdownOpen, chevron: this._dropdownOpen ? 'up' : 'down', class: 'w-full', size: 'lg', slot: 'trigger', variant: 'dropdown' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
|
|
32
32
|
}
|
|
33
33
|
slotchange() {
|
|
34
34
|
this._checkDropdownSlot();
|
|
@@ -23,13 +23,13 @@ export class Range {
|
|
|
23
23
|
valueChange;
|
|
24
24
|
render() {
|
|
25
25
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
26
|
-
return (h(ThemedHost, { key: '
|
|
26
|
+
return (h(ThemedHost, { key: 'fd0a731e7d20e593d1065248f50db452b17ee1cb' }, h("div", { key: 'ff11a123161008ab1df2ecd6409d36930a2caeac', class: '\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n ' }, h("p-icon", { key: '1728a242b890cd3396f46b1dbfe4b91293e0e11d', variant: 'minus' }), h("div", { key: 'cfb6620df8ad9b2dfe66334ebd931d3384b7523a', class: 'relative h-6 flex-1' }, h("input", { key: '0ac09cea4ef3f55a96f19216e2826620bdbc33d4', max: this.max, min: this.min, step: this.step, type: 'range', value: this.value, onInput: ev => {
|
|
27
27
|
const value = ev.target.value;
|
|
28
28
|
this.value = Number.parseFloat(value);
|
|
29
29
|
this.valueChange.emit(value);
|
|
30
|
-
} }), h("div", { key: '
|
|
30
|
+
} }), h("div", { key: '9e5bc94ed20c00fcb15f1d973828feb910e0bbfc', class: '\n absolute left-0 top-1/2 z-[1] h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ', style: {
|
|
31
31
|
width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
|
|
32
|
-
} })), h("p-icon", { key: '
|
|
32
|
+
} })), h("p-icon", { key: 'df9f96eb46d92d02777bbb0bc9e58f6cf0d21ca7', variant: 'plus' }))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "p-range"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -195,6 +195,10 @@ export class Select {
|
|
|
195
195
|
* Event when the dropdown shows
|
|
196
196
|
*/
|
|
197
197
|
dropdownShown;
|
|
198
|
+
/**
|
|
199
|
+
* Event when hovering an item
|
|
200
|
+
*/
|
|
201
|
+
itemHover;
|
|
198
202
|
/**
|
|
199
203
|
* The size of the input group used by the select
|
|
200
204
|
*/
|
|
@@ -341,8 +345,8 @@ export class Select {
|
|
|
341
345
|
if (this.error?.length) {
|
|
342
346
|
buttonIcon = 'warning';
|
|
343
347
|
}
|
|
344
|
-
return (h(ThemedHost, { key: '
|
|
345
|
-
this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, h("div", { key: '
|
|
348
|
+
return (h(ThemedHost, { key: 'b23bf53949366811ec68b34250ddd36d3d86efc0' }, h("p-field-container", { key: '1429705940cd1ec6f88d28be966273731f6e4f4e', error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, label: this.label, prefix: this.prefix, required: this.required, showOptional: this.showOptional, variant: 'write' }, h("p-dropdown", { key: 'd006fc242b99db8979509be0eaf2aba96d6a5051', applyChevron: false, applyFullWidth: true, applyMaxWidth: false, "disable-trigger-click": this.disabled, insideClick: true, manual: true, manualChevron: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, slot: 'content', strategy: this.strategy, onIsOpen: ev => this._onDropdownOpen(ev) }, h("p-button", { key: '6bf30b07753477e8ce4ff9f60d739c71f1ab3388', active: this._showDropdown, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, class: 'w-full', error: !!this.error?.length, icon: buttonIcon, iconClass: this.applyClassOnSelectedItem &&
|
|
349
|
+
this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, h("div", { key: 'b940d807179e88c328366bcc671eaf467736ed38', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()))));
|
|
346
350
|
}
|
|
347
351
|
documentClickHandler(event) {
|
|
348
352
|
if (!this._showDropdown || childOfComposed(event, this._el)) {
|
|
@@ -393,6 +397,9 @@ export class Select {
|
|
|
393
397
|
}
|
|
394
398
|
if (!this._selectedItem && !value && this.autoSelectFirst) {
|
|
395
399
|
value = this._items[0];
|
|
400
|
+
if (value?.type === 'category') {
|
|
401
|
+
value = this._items[1];
|
|
402
|
+
}
|
|
396
403
|
}
|
|
397
404
|
const identifier = typeof value === 'object' && value !== null
|
|
398
405
|
? value[this._identifierKey]
|
|
@@ -494,12 +501,20 @@ export class Select {
|
|
|
494
501
|
.indexOf(this.query?.toLowerCase()) >= 0);
|
|
495
502
|
}
|
|
496
503
|
_getItems() {
|
|
497
|
-
let items = this._items.map(item => {
|
|
504
|
+
let items = this._items.map((item, index) => {
|
|
505
|
+
if (item.type === 'category') {
|
|
506
|
+
return (h("p-dropdown-menu-item", { slot: 'items', useContainer: false, variant: 'category' }, item.text));
|
|
507
|
+
}
|
|
498
508
|
const isSelected = this.multi && !!this._selectedItem && Array.isArray(this._selectedItem)
|
|
499
509
|
? this._selectedItem.some(i => i[this._identifierKey] === item[this._identifierKey])
|
|
500
510
|
: item[this._identifierKey] ===
|
|
501
511
|
this._selectedItem?.[this._identifierKey];
|
|
502
|
-
return (h("p-dropdown-menu-item", { active: isSelected, checkbox: this.multi ? true : false, enableTextWrap: this.enableTextWrap, slot: 'items', useContainer: false, onClick: () => this._selectValue(item)
|
|
512
|
+
return (h("p-dropdown-menu-item", { active: isSelected, checkbox: this.multi ? true : false, enableTextWrap: this.enableTextWrap, slot: 'items', useContainer: false, onClick: () => this._selectValue(item), onMouseEnter: event => this.itemHover.emit({
|
|
513
|
+
event,
|
|
514
|
+
ref: event.target,
|
|
515
|
+
item,
|
|
516
|
+
index,
|
|
517
|
+
}) }, this._getDisplay(item, false, isSelected)));
|
|
503
518
|
});
|
|
504
519
|
if (this._items.length === 0 && !this.showAddItem) {
|
|
505
520
|
items = [
|
|
@@ -619,7 +634,29 @@ export class Select {
|
|
|
619
634
|
if (!this.items || this.loading) {
|
|
620
635
|
return [];
|
|
621
636
|
}
|
|
622
|
-
let items =
|
|
637
|
+
let items = this.items;
|
|
638
|
+
if (typeof this.items === 'string') {
|
|
639
|
+
items = JSON.parse(this.items);
|
|
640
|
+
}
|
|
641
|
+
if (typeof items === 'object' && !Array.isArray(items)) {
|
|
642
|
+
const categorizedItems = [];
|
|
643
|
+
for (const key in items) {
|
|
644
|
+
let itemsInCat = items[key];
|
|
645
|
+
if (typeof items[key]?.[0] === 'string') {
|
|
646
|
+
this.displayKey = 'text';
|
|
647
|
+
this.valueKey = 'value';
|
|
648
|
+
itemsInCat = items[key].map(str => ({
|
|
649
|
+
value: str,
|
|
650
|
+
text: str,
|
|
651
|
+
}));
|
|
652
|
+
}
|
|
653
|
+
categorizedItems.push({
|
|
654
|
+
type: 'category',
|
|
655
|
+
text: key,
|
|
656
|
+
}, ...itemsInCat);
|
|
657
|
+
}
|
|
658
|
+
items = categorizedItems;
|
|
659
|
+
}
|
|
623
660
|
if (typeof items?.[0] === 'string') {
|
|
624
661
|
this.displayKey = 'text';
|
|
625
662
|
this.valueKey = 'value';
|
|
@@ -628,8 +665,12 @@ export class Select {
|
|
|
628
665
|
text: str,
|
|
629
666
|
}));
|
|
630
667
|
}
|
|
668
|
+
let parsedItems = items;
|
|
631
669
|
if (this.query?.length && !this.asyncFilter) {
|
|
632
|
-
|
|
670
|
+
parsedItems = parsedItems.filter(item => {
|
|
671
|
+
if (item.type === 'category') {
|
|
672
|
+
return true;
|
|
673
|
+
}
|
|
633
674
|
if (this.queryKey) {
|
|
634
675
|
return this._checkvalue(this.queryKey, item);
|
|
635
676
|
}
|
|
@@ -638,9 +679,9 @@ export class Select {
|
|
|
638
679
|
});
|
|
639
680
|
}
|
|
640
681
|
if (!applyPagination) {
|
|
641
|
-
return
|
|
682
|
+
return parsedItems;
|
|
642
683
|
}
|
|
643
|
-
return
|
|
684
|
+
return parsedItems?.slice(0, this.maxDisplayedItems);
|
|
644
685
|
}
|
|
645
686
|
static get is() { return "p-select"; }
|
|
646
687
|
static get formAssociated() { return true; }
|
|
@@ -660,8 +701,8 @@ export class Select {
|
|
|
660
701
|
"type": "string",
|
|
661
702
|
"mutable": false,
|
|
662
703
|
"complexType": {
|
|
663
|
-
"original": "string | any[]",
|
|
664
|
-
"resolved": "any[] | string",
|
|
704
|
+
"original": "| string\n\t\t| any[]\n\t\t| {\n\t\t\t\t[key: string]: string | any[];\n\t\t }",
|
|
705
|
+
"resolved": "any[] | string | { [key: string]: string | any[]; }",
|
|
665
706
|
"references": {}
|
|
666
707
|
},
|
|
667
708
|
"required": false,
|
|
@@ -1587,6 +1628,27 @@ export class Select {
|
|
|
1587
1628
|
"resolved": "any",
|
|
1588
1629
|
"references": {}
|
|
1589
1630
|
}
|
|
1631
|
+
}, {
|
|
1632
|
+
"method": "itemHover",
|
|
1633
|
+
"name": "itemHover",
|
|
1634
|
+
"bubbles": false,
|
|
1635
|
+
"cancelable": true,
|
|
1636
|
+
"composed": true,
|
|
1637
|
+
"docs": {
|
|
1638
|
+
"tags": [],
|
|
1639
|
+
"text": "Event when hovering an item"
|
|
1640
|
+
},
|
|
1641
|
+
"complexType": {
|
|
1642
|
+
"original": "SelectItemHoverEvent",
|
|
1643
|
+
"resolved": "SelectItemHoverEvent",
|
|
1644
|
+
"references": {
|
|
1645
|
+
"SelectItemHoverEvent": {
|
|
1646
|
+
"location": "local",
|
|
1647
|
+
"path": "/home/runner/work/Paperless/Paperless/packages/core/src/components/molecules/select/select.component.tsx",
|
|
1648
|
+
"id": "src/components/molecules/select/select.component.tsx::SelectItemHoverEvent"
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1590
1652
|
}, {
|
|
1591
1653
|
"method": "add",
|
|
1592
1654
|
"name": "add",
|
|
@@ -5,7 +5,120 @@ const meta = {
|
|
|
5
5
|
component: 'p-select',
|
|
6
6
|
args: {
|
|
7
7
|
label: 'Label',
|
|
8
|
-
|
|
8
|
+
'identifier-key': 'value',
|
|
9
|
+
},
|
|
10
|
+
parameters: {
|
|
11
|
+
docs: {
|
|
12
|
+
iframeHeight: 300,
|
|
13
|
+
story: {
|
|
14
|
+
height: '350px',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
export const Default = {
|
|
21
|
+
render: ({ multi, strategy, icon, query, placeholder, 'autocomplete-placeholder': autocompletePlaceholder, value, 'display-key': displayKey, 'dropdown-display-key': dropdownDisplayKey, 'selection-display-key': selectionDisplayKey, 'value-key': valueKey, 'avatar-key': avatarKey, 'icon-key': iconKey, 'show-icon-in-selected-item': showIconInSelectedItem, 'class-key': classKey, 'apply-class-on-selected-item': applyClassOnSelectedItem, 'avatar-letters-key': avatarLettersKey, 'identifier-key': identifierKey, 'query-key': queryKey, 'auto-select-first': autoSelectFirst, 'show-chevron': showChevron, 'max-displayed-items': maxDisplayedItems, 'enable-autocomplete': enableAutocomplete, 'enable-text-wrap': enableTextWrap, 'async-filter': asyncFilter, loading, 'enable-select-all': enableSelectAll, 'select-all-text': selectAllText, 'select-all-icon': selectAllIcon, size, prefix, label, helper, required, 'show-optional': showOptional, error, disabled, 'show-add-item': showAddItem, 'add-item-text': addItemText, 'empty-state-text': emptyStateText, }) => html `
|
|
22
|
+
<p-select
|
|
23
|
+
items=${JSON.stringify([
|
|
24
|
+
{
|
|
25
|
+
value: 'value',
|
|
26
|
+
text: 'Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 ',
|
|
27
|
+
class: 'text-negative-red-500',
|
|
28
|
+
iconClass: 'text-negative-red-500 group-hover/button:text-negative-red-800',
|
|
29
|
+
icon: 'user',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
value: 'value2',
|
|
33
|
+
text: 'Option 2',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
value: 'value3',
|
|
37
|
+
text: 'Option 3',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
value: 'value4',
|
|
41
|
+
text: 'Option 4',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
value: 'value5',
|
|
45
|
+
text: 'Option 5',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
value: 'value6',
|
|
49
|
+
text: 'Option 6',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
value: 'value7',
|
|
53
|
+
text: 'Option 7',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
value: 'value8',
|
|
57
|
+
text: 'Option 8',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
value: 'value9',
|
|
61
|
+
text: 'Option 9',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
value: 'value10',
|
|
65
|
+
text: 'Option 10',
|
|
66
|
+
},
|
|
67
|
+
])}
|
|
68
|
+
multi=${multi ?? nothing}
|
|
69
|
+
strategy=${strategy ?? nothing}
|
|
70
|
+
icon=${icon ?? nothing}
|
|
71
|
+
query=${query ?? nothing}
|
|
72
|
+
placeholder=${placeholder ?? nothing}
|
|
73
|
+
autocomplete-placeholder=${autocompletePlaceholder ?? nothing}
|
|
74
|
+
value=${value ?? nothing}
|
|
75
|
+
display-key=${displayKey ?? nothing}
|
|
76
|
+
dropdown-display-key=${dropdownDisplayKey ?? nothing}
|
|
77
|
+
selection-display-key=${selectionDisplayKey ?? nothing}
|
|
78
|
+
value-key=${valueKey ?? nothing}
|
|
79
|
+
avatar-key=${avatarKey ?? nothing}
|
|
80
|
+
icon-key=${iconKey ?? nothing}
|
|
81
|
+
show-icon-in-selected-item=${showIconInSelectedItem ?? nothing}
|
|
82
|
+
class-key=${classKey ?? nothing}
|
|
83
|
+
apply-class-on-selected-item=${applyClassOnSelectedItem ?? nothing}
|
|
84
|
+
avatar-letters-key=${avatarLettersKey ?? nothing}
|
|
85
|
+
identifier-key=${identifierKey ?? nothing}
|
|
86
|
+
query-key=${queryKey ?? nothing}
|
|
87
|
+
auto-select-first=${autoSelectFirst ?? nothing}
|
|
88
|
+
show-chevron=${showChevron ?? nothing}
|
|
89
|
+
max-displayed-items=${maxDisplayedItems ?? nothing}
|
|
90
|
+
enable-autocomplete=${enableAutocomplete ?? nothing}
|
|
91
|
+
enable-text-wrap=${enableTextWrap ?? nothing}
|
|
92
|
+
async-filter=${asyncFilter ?? nothing}
|
|
93
|
+
loading=${loading ?? nothing}
|
|
94
|
+
enable-select-all=${enableSelectAll ?? nothing}
|
|
95
|
+
select-all-text=${selectAllText ?? nothing}
|
|
96
|
+
select-all-icon=${selectAllIcon ?? nothing}
|
|
97
|
+
size=${size ?? nothing}
|
|
98
|
+
prefix=${prefix ?? nothing}
|
|
99
|
+
label=${label ?? nothing}
|
|
100
|
+
helper=${helper ?? nothing}
|
|
101
|
+
required=${required ?? nothing}
|
|
102
|
+
show-optional=${showOptional ?? nothing}
|
|
103
|
+
error=${error ?? nothing}
|
|
104
|
+
disabled=${disabled ?? nothing}
|
|
105
|
+
show-add-item=${showAddItem ?? nothing}
|
|
106
|
+
add-item-text=${addItemText ?? nothing}
|
|
107
|
+
empty-state-text=${emptyStateText ?? nothing}
|
|
108
|
+
@queryChange=${action('queryChange')}
|
|
109
|
+
@valueChange=${action('valueChange')}
|
|
110
|
+
@selectAllChange=${action('selectAllChange')}
|
|
111
|
+
@dropdownShown=${action('dropdownShown')}
|
|
112
|
+
@add=${action('add')}
|
|
113
|
+
@itemHover=${action('itemHover')}
|
|
114
|
+
/>
|
|
115
|
+
`,
|
|
116
|
+
};
|
|
117
|
+
export const Categorized = {
|
|
118
|
+
render: ({ multi, strategy, icon, query, placeholder, 'autocomplete-placeholder': autocompletePlaceholder, value, 'display-key': displayKey, 'dropdown-display-key': dropdownDisplayKey, 'selection-display-key': selectionDisplayKey, 'value-key': valueKey, 'avatar-key': avatarKey, 'icon-key': iconKey, 'show-icon-in-selected-item': showIconInSelectedItem, 'class-key': classKey, 'apply-class-on-selected-item': applyClassOnSelectedItem, 'avatar-letters-key': avatarLettersKey, 'identifier-key': identifierKey, 'query-key': queryKey, 'auto-select-first': autoSelectFirst, 'show-chevron': showChevron, 'max-displayed-items': maxDisplayedItems, 'enable-autocomplete': enableAutocomplete, 'enable-text-wrap': enableTextWrap, 'async-filter': asyncFilter, loading, 'enable-select-all': enableSelectAll, 'select-all-text': selectAllText, 'select-all-icon': selectAllIcon, size, prefix, label, helper, required, 'show-optional': showOptional, error, disabled, 'show-add-item': showAddItem, 'add-item-text': addItemText, 'empty-state-text': emptyStateText, }) => html `
|
|
119
|
+
<p-select
|
|
120
|
+
items=${JSON.stringify({
|
|
121
|
+
'category 1': [
|
|
9
122
|
{
|
|
10
123
|
value: 'value',
|
|
11
124
|
text: 'Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 Option 1 Option 2 Option 3 ',
|
|
@@ -21,6 +134,8 @@ const meta = {
|
|
|
21
134
|
value: 'value3',
|
|
22
135
|
text: 'Option 3',
|
|
23
136
|
},
|
|
137
|
+
],
|
|
138
|
+
'category 2': [
|
|
24
139
|
{
|
|
25
140
|
value: 'value4',
|
|
26
141
|
text: 'Option 4',
|
|
@@ -33,6 +148,8 @@ const meta = {
|
|
|
33
148
|
value: 'value6',
|
|
34
149
|
text: 'Option 6',
|
|
35
150
|
},
|
|
151
|
+
],
|
|
152
|
+
'category 3': [
|
|
36
153
|
{
|
|
37
154
|
value: 'value7',
|
|
38
155
|
text: 'Option 7',
|
|
@@ -49,23 +166,8 @@ const meta = {
|
|
|
49
166
|
value: 'value10',
|
|
50
167
|
text: 'Option 10',
|
|
51
168
|
},
|
|
52
|
-
]
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
parameters: {
|
|
56
|
-
docs: {
|
|
57
|
-
iframeHeight: 300,
|
|
58
|
-
story: {
|
|
59
|
-
height: '350px',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
export default meta;
|
|
65
|
-
export const Default = {
|
|
66
|
-
render: ({ items, multi, strategy, icon, query, placeholder, 'autocomplete-placeholder': autocompletePlaceholder, value, 'display-key': displayKey, 'dropdown-display-key': dropdownDisplayKey, 'selection-display-key': selectionDisplayKey, 'value-key': valueKey, 'avatar-key': avatarKey, 'icon-key': iconKey, 'show-icon-in-selected-item': showIconInSelectedItem, 'class-key': classKey, 'apply-class-on-selected-item': applyClassOnSelectedItem, 'avatar-letters-key': avatarLettersKey, 'identifier-key': identifierKey, 'query-key': queryKey, 'auto-select-first': autoSelectFirst, 'show-chevron': showChevron, 'max-displayed-items': maxDisplayedItems, 'enable-autocomplete': enableAutocomplete, 'enable-text-wrap': enableTextWrap, 'async-filter': asyncFilter, loading, 'enable-select-all': enableSelectAll, 'select-all-text': selectAllText, 'select-all-icon': selectAllIcon, size, prefix, label, helper, required, 'show-optional': showOptional, error, disabled, 'show-add-item': showAddItem, 'add-item-text': addItemText, 'empty-state-text': emptyStateText, }) => html `
|
|
67
|
-
<p-select
|
|
68
|
-
items=${items ?? nothing}
|
|
169
|
+
]
|
|
170
|
+
})}
|
|
69
171
|
multi=${multi ?? nothing}
|
|
70
172
|
strategy=${strategy ?? nothing}
|
|
71
173
|
icon=${icon ?? nothing}
|
|
@@ -111,6 +213,7 @@ export const Default = {
|
|
|
111
213
|
@selectAllChange=${action('selectAllChange')}
|
|
112
214
|
@dropdownShown=${action('dropdownShown')}
|
|
113
215
|
@add=${action('add')}
|
|
216
|
+
@itemHover=${action('itemHover')}
|
|
114
217
|
/>
|
|
115
218
|
`,
|
|
116
219
|
};
|
|
@@ -138,13 +138,13 @@ export class TableHeader {
|
|
|
138
138
|
const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
|
|
139
139
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
140
140
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
141
|
-
return (h(ThemedHost, { key: '
|
|
142
|
-
(hasCustomFilterSlot || quickFilters.length > 0) && (h("div", { key: '
|
|
141
|
+
return (h(ThemedHost, { key: '06a91f32ec37d93fcc345d1ffce3d32546085e84' }, h("div", { key: '527d621bb567945dc57716480245847f4045bb02', class: header() }, this.loading && (h("p-loader", { key: '48ddfce44e02e54cba2d5fa11f3195caefa6238d', class: '\n hidden h-8 w-3/4 rounded\n desktop-xs:flex\n ', variant: 'ghost' })), !this.loading &&
|
|
142
|
+
(hasCustomFilterSlot || quickFilters.length > 0) && (h("div", { key: '594afb205bb8acbfcfe9a6090bbdf3b3feada9d7', class: '\n flex flex-col justify-start gap-4 justify-self-start\n desktop-xs:flex-row\n ' }, hasCustomFilterSlot && h("slot", { key: '31db5507e955eb9fcc954b8a4df5a46c93f30569', name: 'custom-filter' }), quickFilters.length > 0 && (h("p-segment-container", { key: 'c2ba9983ea0869a9bc9a7d6ed1fe37a2a7dc8bec', class: cn({
|
|
143
143
|
'hidden desktop-xs:flex': this.hideQuickFiltersOnMobile,
|
|
144
144
|
flex: !this.hideQuickFiltersOnMobile,
|
|
145
145
|
}) }, quickFilters.map(item => (h("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
|
|
146
146
|
? item.text
|
|
147
|
-
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: '
|
|
147
|
+
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: '5f2ef9e242bca379a09467f7efd2c4266d8366ba', class: '\n flex flex-col justify-end gap-2\n desktop-xs:ml-auto desktop-xs:flex-row desktop-xs:items-center\n ' }, this.enableSearch && (h("p-field", { key: '10d8e0955ee7e875f3b117b31e4e904ab68a0a6c', class: 'desktop-xs:max-w-60', icon: 'search', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), h("div", { key: 'd199785614619a10681df3c823dd45a10c1245b5', class: 'flex items-center gap-2' }, this.enableFilter && (h("p-button", { key: 'ec3008c046c8d164027ca4ae6aaa9365cd815b1a', class: `
|
|
148
148
|
w-full
|
|
149
149
|
${this.enableFilterDesktop
|
|
150
150
|
? 'desktop-xs:w-auto'
|
|
@@ -152,7 +152,7 @@ export class TableHeader {
|
|
|
152
152
|
`, icon: 'filter', variant: 'secondary', onOnClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
153
153
|
? this.filterButtonTemplate()
|
|
154
154
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
155
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: '
|
|
155
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: '9a063d3dbf6a9baf405c56d12cdbfc599ea77bd7', class: '\n hidden h-4\n tablet:flex\n dark:text-white/15\n ', variant: 'vertical' })), !this.loading && this.enableExport && (h("p-button", { key: '95628448d5455954bd31c42b81fd64278de30ba9', class: '\n w-full\n desktop-xs:w-auto\n ', icon: 'upload', variant: 'secondary', onOnClick: () => this.export.emit() }, formatTranslation(this._locales.export)))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: 'd0355fc9a41a71f5de380b2c5c948ca7f43afd06', name: 'custom-actions' })), this.enableAction && this.canUseAction && (h("div", { key: '6ca4d73e0c62937a8084c1862ba102e1027b026d', class: '\n fixed bottom-0 left-0 z-[2] block w-full border border-solid\n border-transparent bg-white p-4\n desktop-xs:hidden\n dark:border-t-hurricane-400 dark:bg-hurricane-500\n ' }, this._buttonTemplate(true))))));
|
|
156
156
|
}
|
|
157
157
|
async _setLocales() {
|
|
158
158
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -257,7 +257,7 @@ export class Table {
|
|
|
257
257
|
this.hasRendered.emit();
|
|
258
258
|
}
|
|
259
259
|
render() {
|
|
260
|
-
return (h(Host, { key: '
|
|
260
|
+
return (h(Host, { key: 'd479eadd465ca89cb946b49a57baa2a9b59662f3', class: 'z-0 flex flex-col' }, h("p-table-container", { key: '4561faab83f090f8b2a93b2020851d8bdca654bf' }, this.enableHeader && (h("p-table-header", { key: '42f64f4650998137028ac3364842dd4637682ca1', actionButtonTemplate: this.actionButtonTemplate, actionIcon: this.actionButtonIcon, actionLoading: this.actionButtonLoading, actionText: this.actionButtonText, activeQuickFilterIdentifier: this.activeQuickFilterIdentifier, canUseAction: this.actionButtonEnabled, class: 'mb-8', enableAction: this.enableAction, enableExport: this.enableExport, enableFilter: this.enableFilter, enableFilterDesktop: this.enableFilterDesktop, enableSearch: this.enableSearch, filterButtonTemplate: this.filterButtonTemplate, itemsSelectedAmount: this.selectedRows?.length, loading: this.headerLoading, query: this.query, quickFilters: this.quickFilters, selectedFiltersAmount: this.selectedFiltersAmount, onAction: () => this.action.emit(), onExport: () => this.export.emit(), onFilter: () => this.filter.emit(), onQueryChange: ({ detail }) => this.queryChange.emit(detail), onQuickFilter: ({ detail }) => this.quickFilter.emit(detail) }, this._hasCustomFilterSlot && (h("slot", { key: '4330a128ee1880c45651cce01c455043ab3d9358', name: 'custom-filter', slot: 'custom-filter' })), this._hasCustomActionsSlot && (h("slot", { key: '5842f3baaf1c0b5a1731412b3867b4aa3e75f473', name: 'custom-actions', slot: 'custom-actions' })))), this._getExtraHeader(), this._getHeader(), h("div", { key: '4ebfe041d95457578b879604ffc42edd5ebf109d', class: 'flex flex-1 flex-col' }, this._getRows(), h("slot", { key: '86102819a49542a813f5ab19d5f028b144547096', name: 'custom-rows' })), this.enableFloatingMenu && this._enableRowSelection ? (h("p-floating-menu-container", { amount: this.selectedRows?.length, amountSelectedTemplate: this.floatingMenuAmountSelectedTemplate, class: floatingMenuContainerClass({
|
|
261
261
|
hasFooter: this.enableFooter && !this._footerHidden,
|
|
262
262
|
active: !!this.selectedRows?.length,
|
|
263
263
|
shown: this._floatingMenuShown,
|
|
@@ -267,7 +267,7 @@ export class Table {
|
|
|
267
267
|
!!a.action &&
|
|
268
268
|
a.type === 'single'
|
|
269
269
|
? a.action(this.selectedRows[0], false)
|
|
270
|
-
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (h("p-table-footer", { key: '
|
|
270
|
+
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (h("p-table-footer", { key: '5134a20cac241a36ec3c9e63af654e8c911379c4', enablePaginationPages: this.enablePaginationPages, enablePaginationSize: this.enablePaginationSize, hideOnSinglePage: this.hideOnSinglePage, loading: this.footerLoading, page: this.page, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, tableHeaderHasAction: this.enableHeader &&
|
|
271
271
|
this.enableAction &&
|
|
272
272
|
this.actionButtonEnabled, total: this.total, onHiddenChange: ({ detail }) => (this._footerHidden = detail), onPageChange: ({ detail }) => this.pageChange.emit(detail), onPageSizeChange: ({ detail }) => this.pageSizeChange.emit(detail) })))));
|
|
273
273
|
}
|