@paperless/core 3.19.6 → 3.21.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-369e2594.entry.js → p-020124fe.entry.js} +1 -1
- package/dist/build/p-0cf2c5f5.entry.js +1 -0
- package/dist/{paperless/p-c6056657.entry.js → build/p-1b50f01d.entry.js} +1 -1
- package/dist/{paperless/p-344ab157.entry.js → build/p-25842006.entry.js} +1 -1
- package/dist/build/{p-a68a2ee8.entry.js → p-280c1727.entry.js} +1 -1
- package/dist/build/{p-5e4343f3.entry.js → p-2ce0c175.entry.js} +1 -1
- package/dist/build/{p-5ad24b03.entry.js → p-2e53d921.entry.js} +1 -1
- package/dist/build/{p-743b47cb.entry.js → p-2ebc600b.entry.js} +1 -1
- package/dist/build/{p-cfb68485.entry.js → p-2f4efe8a.entry.js} +1 -1
- package/dist/{paperless/p-be576419.entry.js → build/p-34ec6b9b.entry.js} +1 -1
- package/dist/build/{p-bdda2ffc.entry.js → p-38056598.entry.js} +1 -1
- package/dist/build/{p-3fb95d2b.entry.js → p-3b34c822.entry.js} +1 -1
- package/dist/{paperless/p-0cea7ced.entry.js → build/p-3efce878.entry.js} +1 -1
- package/dist/build/{p-3286b52f.entry.js → p-44d6468b.entry.js} +1 -1
- package/dist/{paperless/p-a00541cc.entry.js → build/p-45b9a446.entry.js} +1 -1
- package/dist/{paperless/p-11d65b3d.entry.js → build/p-477801df.entry.js} +1 -1
- package/dist/build/{p-2907111a.entry.js → p-4851ac96.entry.js} +1 -1
- package/dist/build/{p-a1a4a39e.entry.js → p-48be5f53.entry.js} +1 -1
- package/dist/build/p-4b7ac676.entry.js +1 -0
- package/dist/{paperless/p-9a9f0cd0.entry.js → build/p-4cd8035a.entry.js} +1 -1
- package/dist/build/{p-3376af98.entry.js → p-501f2f7c.entry.js} +1 -1
- package/dist/build/{p-e3e43848.entry.js → p-561a4d56.entry.js} +1 -1
- package/dist/build/{p-e1a16ec5.entry.js → p-56ceed87.entry.js} +1 -1
- package/dist/build/{p-791d33e5.entry.js → p-5c08054f.entry.js} +1 -1
- package/dist/build/p-5c8c35cf.js +1 -0
- package/dist/build/{p-e04a3cb9.entry.js → p-5d58a880.entry.js} +1 -1
- package/dist/build/{p-963e456e.entry.js → p-688afaf3.entry.js} +1 -1
- package/dist/build/p-70071176.entry.js +1 -0
- package/dist/build/{p-043b91f5.entry.js → p-749752fa.entry.js} +1 -1
- package/dist/{paperless/p-47bdfa0d.entry.js → build/p-78244c70.entry.js} +1 -1
- package/dist/{paperless/p-fae76adf.entry.js → build/p-8ae7f9fd.entry.js} +1 -1
- package/dist/build/{p-9c440af8.entry.js → p-9079dcb7.entry.js} +1 -1
- package/dist/{paperless/p-cb9baef3.entry.js → build/p-91686988.entry.js} +1 -1
- package/dist/build/p-92259edb.entry.js +1 -0
- package/dist/{paperless/p-2e61871a.entry.js → build/p-9ac5f80b.entry.js} +1 -1
- package/dist/{paperless/p-bec66e8f.entry.js → build/p-a4957083.entry.js} +1 -1
- package/dist/build/{p-d60067bc.entry.js → p-af9fc40a.entry.js} +1 -1
- package/dist/{paperless/p-9232a310.entry.js → build/p-b005f182.entry.js} +1 -1
- package/dist/{paperless/p-fca492f6.entry.js → build/p-b1a372fc.entry.js} +1 -1
- package/dist/build/{p-7fa2bbee.entry.js → p-b1e6c746.entry.js} +1 -1
- package/dist/{paperless/p-88fd696b.entry.js → build/p-b316ecff.entry.js} +1 -1
- package/dist/build/{p-2e850d9d.entry.js → p-b8caedf6.entry.js} +1 -1
- package/dist/{paperless/p-7afccf96.entry.js → build/p-bdfaa7bc.entry.js} +1 -1
- package/dist/{paperless/p-a001874d.entry.js → build/p-c9b79bd8.entry.js} +1 -1
- package/dist/build/{p-41326183.entry.js → p-ce15940f.entry.js} +1 -1
- package/dist/{paperless/p-34b81a42.entry.js → build/p-d2ff359e.entry.js} +1 -1
- package/dist/{paperless/p-66eaca48.entry.js → build/p-d5365ce3.entry.js} +1 -1
- package/dist/{paperless/p-0aa7e5d2.entry.js → build/p-e20e6aa3.entry.js} +1 -1
- package/dist/build/{p-8edbbfd4.entry.js → p-e922cb1f.entry.js} +1 -1
- package/dist/build/p-f16cc0f5.entry.js +1 -0
- package/dist/build/{p-186454b1.entry.js → p-f18a511c.entry.js} +1 -1
- package/dist/build/paperless.esm.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 +50 -7
- 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 +5 -5
- 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-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-submenu-item.cjs.entry.js +3 -3
- package/dist/cjs/p-submenu.cjs.entry.js +9 -9
- 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/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/button.component.css +1 -1
- package/dist/collection/components/molecules/button/button.component.js +80 -5
- package/dist/collection/components/molecules/button/button.stories.js +2 -1
- 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.js +5 -5
- 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/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/submenu/item/submenu-item.component.js +3 -3
- package/dist/collection/components/molecules/submenu/menu/submenu.component.js +9 -9
- 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/{p-p7QZcgoc.js → p--IPayxyw.js} +1 -1
- package/dist/components/{p-C-ljhNrW.js → p--_gjJpd8.js} +1 -1
- package/dist/components/{p-CEcyKdij.js → p-1qs8jjR4.js} +1 -1
- package/dist/components/{p-C3fzR817.js → p-2ZtgmKa1.js} +1 -1
- package/dist/components/{p-DU-stXqd.js → p-4-EYCe-6.js} +1 -1
- package/dist/components/{p-D_ZHRLtg.js → p-6MuaM5f1.js} +1 -1
- package/dist/components/{p-C9B5DTYx.js → p-B-yfQWzc.js} +1 -1
- package/dist/components/{p-Da9Ao_Ve.js → p-B3Q_nqZE.js} +1 -1
- package/dist/components/{p-1HCkK9Pf.js → p-B6PqwbBc.js} +1 -1
- package/dist/components/{p-DHzp47zt.js → p-B8W33zQW.js} +1 -1
- package/dist/components/{p-Dz2_k8-X.js → p-BBlYsP5p.js} +1 -1
- package/dist/components/{p-BH6HgTxH.js → p-BJFfno38.js} +1 -1
- package/dist/components/{p-BXFIt2yS.js → p-BZc0i1uc.js} +1 -1
- package/dist/components/{p-tM-Y5Y8G.js → p-Be35LfMz.js} +1 -1
- package/dist/components/{p-BZID5_mv.js → p-Bj7N0A2r.js} +1 -1
- package/dist/components/{p-wQxTl8yW.js → p-BkI69RMv.js} +1 -1
- package/dist/components/{p-Hk7avBWN.js → p-BksolHpY.js} +1 -1
- package/dist/components/{p-mLlgASil.js → p-CB2IGEg2.js} +1 -1
- package/dist/components/{p-BANLejQ8.js → p-CJ7I5BCS.js} +1 -1
- package/dist/components/{p-C1Z78Vu0.js → p-CQo1Di0o.js} +1 -1
- package/dist/components/{p-DHJ6_2xS.js → p-CTC-N56p.js} +1 -1
- package/dist/components/{p-BNMkjAgS.js → p-CUQydYt5.js} +1 -1
- package/dist/components/{p-C9T2Zn4W.js → p-CaTrUaah.js} +1 -1
- package/dist/components/{p-D5P9pJhK.js → p-Cm3IhOw8.js} +1 -1
- package/dist/components/{p-cFwgScsa.js → p-Cqgqmavc.js} +1 -1
- package/dist/components/{p-BdzBKuLb.js → p-CwJ2_mhc.js} +1 -1
- package/dist/components/{p-BwA3E_K4.js → p-D0469rhA.js} +1 -1
- package/dist/components/p-D0uXSAIf.js +1 -0
- package/dist/components/{p-D4W7oN7G.js → p-D6rfaiEd.js} +1 -1
- package/dist/components/{p-BAQuP-An.js → p-D99OtFbo.js} +1 -1
- package/dist/components/{p-BPoPHj4v.js → p-DAW84I1p.js} +1 -1
- package/dist/components/{p-ChrBlvNY.js → p-DGlTaRG3.js} +1 -1
- package/dist/components/{p-B-hJzwTL.js → p-DZjtEarb.js} +1 -1
- package/dist/components/{p-a_De3Rd1.js → p-DfVHhJmL.js} +1 -1
- package/dist/components/{p-CtnPrlBW.js → p-DixhvrFt.js} +1 -1
- package/dist/components/{p-POJeD79-.js → p-Dn13oSNs.js} +1 -1
- package/dist/components/{p-DY2oKnxw.js → p-Dym6aWEt.js} +1 -1
- package/dist/components/p-Dz-zNYo3.js +1 -0
- package/dist/components/{p-BRDvNH4S.js → p-QS4cO7vO.js} +1 -1
- package/dist/components/{p-D3wJam1N.js → p-ZSDx-Rn0.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-DGU1kzxy.js → p-b-B7eMG-.js} +1 -1
- package/dist/components/{p-C7rLlb8m.js → p-bTOCGgU2.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.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-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-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-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-DlYs-VL_.js → p-uv3MMCr1.js} +1 -1
- package/dist/components/{p-Sl3w6Zuw.js → p-wffF3kVy.js} +1 -1
- package/dist/components/{p-B-YBFRbB.js → p-yYRVYWXO.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 +50 -7
- 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 +5 -5
- 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-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-submenu-item.entry.js +3 -3
- package/dist/esm/p-submenu.entry.js +9 -9
- 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/{p-369e2594.entry.js → p-020124fe.entry.js} +1 -1
- package/dist/paperless/p-0cf2c5f5.entry.js +1 -0
- package/dist/{build/p-c6056657.entry.js → paperless/p-1b50f01d.entry.js} +1 -1
- package/dist/{build/p-344ab157.entry.js → paperless/p-25842006.entry.js} +1 -1
- package/dist/paperless/{p-a68a2ee8.entry.js → p-280c1727.entry.js} +1 -1
- package/dist/paperless/{p-5e4343f3.entry.js → p-2ce0c175.entry.js} +1 -1
- package/dist/paperless/{p-5ad24b03.entry.js → p-2e53d921.entry.js} +1 -1
- package/dist/paperless/{p-743b47cb.entry.js → p-2ebc600b.entry.js} +1 -1
- package/dist/paperless/{p-cfb68485.entry.js → p-2f4efe8a.entry.js} +1 -1
- package/dist/{build/p-be576419.entry.js → paperless/p-34ec6b9b.entry.js} +1 -1
- package/dist/paperless/{p-bdda2ffc.entry.js → p-38056598.entry.js} +1 -1
- package/dist/paperless/{p-3fb95d2b.entry.js → p-3b34c822.entry.js} +1 -1
- package/dist/{build/p-0cea7ced.entry.js → paperless/p-3efce878.entry.js} +1 -1
- package/dist/paperless/{p-3286b52f.entry.js → p-44d6468b.entry.js} +1 -1
- package/dist/{build/p-a00541cc.entry.js → paperless/p-45b9a446.entry.js} +1 -1
- package/dist/{build/p-11d65b3d.entry.js → paperless/p-477801df.entry.js} +1 -1
- package/dist/paperless/{p-2907111a.entry.js → p-4851ac96.entry.js} +1 -1
- package/dist/paperless/{p-a1a4a39e.entry.js → p-48be5f53.entry.js} +1 -1
- package/dist/paperless/p-4b7ac676.entry.js +1 -0
- package/dist/{build/p-9a9f0cd0.entry.js → paperless/p-4cd8035a.entry.js} +1 -1
- package/dist/paperless/{p-3376af98.entry.js → p-501f2f7c.entry.js} +1 -1
- package/dist/paperless/{p-e3e43848.entry.js → p-561a4d56.entry.js} +1 -1
- package/dist/paperless/{p-e1a16ec5.entry.js → p-56ceed87.entry.js} +1 -1
- package/dist/paperless/{p-791d33e5.entry.js → p-5c08054f.entry.js} +1 -1
- package/dist/paperless/{p-e04a3cb9.entry.js → p-5d58a880.entry.js} +1 -1
- package/dist/paperless/{p-963e456e.entry.js → p-688afaf3.entry.js} +1 -1
- package/dist/paperless/p-70071176.entry.js +1 -0
- package/dist/paperless/{p-043b91f5.entry.js → p-749752fa.entry.js} +1 -1
- package/dist/{build/p-47bdfa0d.entry.js → paperless/p-78244c70.entry.js} +1 -1
- package/dist/{build/p-fae76adf.entry.js → paperless/p-8ae7f9fd.entry.js} +1 -1
- package/dist/paperless/{p-9c440af8.entry.js → p-9079dcb7.entry.js} +1 -1
- package/dist/{build/p-cb9baef3.entry.js → paperless/p-91686988.entry.js} +1 -1
- package/dist/paperless/p-92259edb.entry.js +1 -0
- package/dist/{build/p-2e61871a.entry.js → paperless/p-9ac5f80b.entry.js} +1 -1
- package/dist/{build/p-bec66e8f.entry.js → paperless/p-a4957083.entry.js} +1 -1
- package/dist/paperless/{p-d60067bc.entry.js → p-af9fc40a.entry.js} +1 -1
- package/dist/{build/p-9232a310.entry.js → paperless/p-b005f182.entry.js} +1 -1
- package/dist/{build/p-fca492f6.entry.js → paperless/p-b1a372fc.entry.js} +1 -1
- package/dist/paperless/{p-7fa2bbee.entry.js → p-b1e6c746.entry.js} +1 -1
- package/dist/{build/p-88fd696b.entry.js → paperless/p-b316ecff.entry.js} +1 -1
- package/dist/paperless/{p-2e850d9d.entry.js → p-b8caedf6.entry.js} +1 -1
- package/dist/{build/p-7afccf96.entry.js → paperless/p-bdfaa7bc.entry.js} +1 -1
- package/dist/{build/p-a001874d.entry.js → paperless/p-c9b79bd8.entry.js} +1 -1
- package/dist/paperless/{p-41326183.entry.js → p-ce15940f.entry.js} +1 -1
- package/dist/{build/p-34b81a42.entry.js → paperless/p-d2ff359e.entry.js} +1 -1
- package/dist/{build/p-66eaca48.entry.js → paperless/p-d5365ce3.entry.js} +1 -1
- package/dist/{build/p-0aa7e5d2.entry.js → paperless/p-e20e6aa3.entry.js} +1 -1
- package/dist/paperless/{p-8edbbfd4.entry.js → p-e922cb1f.entry.js} +1 -1
- package/dist/paperless/p-f16cc0f5.entry.js +1 -0
- package/dist/paperless/{p-186454b1.entry.js → p-f18a511c.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/button/button.component.d.ts +8 -0
- package/dist/types/components/molecules/button/button.stories.d.ts +2 -1
- package/dist/types/components.d.ts +10 -0
- package/hydrate/index.js +210 -166
- package/hydrate/index.mjs +210 -166
- package/package.json +1 -1
- package/dist/build/p-7fb843e7.entry.js +0 -1
- package/dist/build/p-871936f2.js +0 -1
- package/dist/build/p-9c4c942e.entry.js +0 -1
- package/dist/build/p-e13fb7aa.entry.js +0 -1
- package/dist/build/p-f6dd0790.entry.js +0 -1
- package/dist/build/p-faad66c1.entry.js +0 -1
- package/dist/components/p-GYxEYTaZ.js +0 -1
- package/dist/components/p-GogOpDaV.js +0 -1
- package/dist/paperless/p-7fb843e7.entry.js +0 -1
- package/dist/paperless/p-9c4c942e.entry.js +0 -1
- package/dist/paperless/p-e13fb7aa.entry.js +0 -1
- package/dist/paperless/p-f6dd0790.entry.js +0 -1
- package/dist/paperless/p-faad66c1.entry.js +0 -1
|
@@ -3,6 +3,7 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import { ThemedHost } from "../../../internal/themed-host.component";
|
|
4
4
|
import { asBoolean } from "../../../utils/as-boolean";
|
|
5
5
|
import { cn } from "../../../utils/cn";
|
|
6
|
+
import { isSmallerThanScreen } from "../../../utils/screens";
|
|
6
7
|
/**
|
|
7
8
|
<div class="text-inherit group-hover/button:text-inherit dark:text-inherit dark:group-hover/button:text-inherit"></div>
|
|
8
9
|
<div class="text-transparent group-hover/button:text-transparent dark:text-transparent dark:group-hover/button:text-transparent"></div>
|
|
@@ -534,6 +535,10 @@ export class Button {
|
|
|
534
535
|
* Wether the button is icon only
|
|
535
536
|
*/
|
|
536
537
|
iconOnly = false;
|
|
538
|
+
/**
|
|
539
|
+
* Wether the button is icon only on mobile
|
|
540
|
+
*/
|
|
541
|
+
iconOnlyAtBreakpoint = 'never';
|
|
537
542
|
/**
|
|
538
543
|
* A class to apply to the icon
|
|
539
544
|
*/
|
|
@@ -567,6 +572,11 @@ export class Button {
|
|
|
567
572
|
*/
|
|
568
573
|
onClick;
|
|
569
574
|
_host;
|
|
575
|
+
_iconOnlyResizeTimeout;
|
|
576
|
+
_isIconOnly = false;
|
|
577
|
+
componentDidLoad() {
|
|
578
|
+
this._onWindowResize();
|
|
579
|
+
}
|
|
570
580
|
render() {
|
|
571
581
|
let loaderColor = 'white';
|
|
572
582
|
switch (this.variant) {
|
|
@@ -586,25 +596,28 @@ export class Button {
|
|
|
586
596
|
: 'button';
|
|
587
597
|
const hostClass = cn('p-button inline-block', this.class);
|
|
588
598
|
const active = asBoolean(this.active) || hostClass?.includes('active');
|
|
589
|
-
return (h(ThemedHost, { key: '
|
|
599
|
+
return (h(ThemedHost, { key: '322546f64e12848af223b26af858a78d13766b2f', class: hostClass }, h(VariableTag, { key: '76937101a1e3000c075b79973bd5102c4f13663a', class: button({
|
|
590
600
|
variant: this.variant,
|
|
591
601
|
size: this.size,
|
|
592
602
|
loading: asBoolean(this.loading),
|
|
593
603
|
disabled: asBoolean(this.disabled),
|
|
594
604
|
buttonGroupPosition: this.buttonGroupPosition,
|
|
595
|
-
iconOnly: asBoolean(this.iconOnly)
|
|
605
|
+
iconOnly: asBoolean(this.iconOnly) ||
|
|
606
|
+
(this._isIconOnly && this.iconOnlyAtBreakpoint !== 'never'),
|
|
596
607
|
hasChevron: !!this.chevron,
|
|
597
608
|
active,
|
|
598
609
|
error: asBoolean(this.error),
|
|
599
610
|
underline: asBoolean(this.underline) && VariableTag === 'a',
|
|
600
|
-
}), disabled: asBoolean(this.disabled), href: this.href, tabIndex: this.tabIndex, target: this.target, type: this.variant === 'text' ? undefined : this.type }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: '
|
|
611
|
+
}), disabled: asBoolean(this.disabled), href: this.href, tabIndex: this.tabIndex, target: this.target, type: this.variant === 'text' ? undefined : this.type }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: 'd1cb9a78f5e0a8edc1fac1db0554f00241a7713d', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), this.icon &&
|
|
601
612
|
this.iconPosition === 'start' &&
|
|
602
613
|
!(this.iconOnly && this.loading) &&
|
|
603
|
-
this._getIcon(), this.
|
|
614
|
+
this._getIcon(), this.iconOnlyAtBreakpoint === 'never' || !this._isIconOnly
|
|
615
|
+
? (this.label ?? h("slot", null))
|
|
616
|
+
: '', this.icon &&
|
|
604
617
|
this.iconPosition === 'end' &&
|
|
605
618
|
!this.loading &&
|
|
606
619
|
!this.chevron &&
|
|
607
|
-
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '
|
|
620
|
+
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: 'c73b7807b209298796ecbe646a54b3990f94a973', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), this.loading && h("p-loader", { key: '05ec7d09fa104d7fe0083879127ae4ee4dddf59b', color: loaderColor }))));
|
|
608
621
|
}
|
|
609
622
|
handleClick(ev) {
|
|
610
623
|
if (this.loading || this.disabled) {
|
|
@@ -616,6 +629,31 @@ export class Button {
|
|
|
616
629
|
}
|
|
617
630
|
this.onClick.emit(ev);
|
|
618
631
|
}
|
|
632
|
+
_onWindowResize() {
|
|
633
|
+
if (this.iconOnlyAtBreakpoint === 'never') {
|
|
634
|
+
return;
|
|
635
|
+
}
|
|
636
|
+
if (this._iconOnlyResizeTimeout) {
|
|
637
|
+
clearTimeout(this._iconOnlyResizeTimeout);
|
|
638
|
+
}
|
|
639
|
+
this._iconOnlyResizeTimeout = setTimeout(() => {
|
|
640
|
+
switch (this.iconOnlyAtBreakpoint) {
|
|
641
|
+
case 'mobile': {
|
|
642
|
+
this._isIconOnly = isSmallerThanScreen('tablet');
|
|
643
|
+
break;
|
|
644
|
+
}
|
|
645
|
+
case 'tablet': {
|
|
646
|
+
this._isIconOnly = isSmallerThanScreen('desktop-xs');
|
|
647
|
+
break;
|
|
648
|
+
}
|
|
649
|
+
case 'desktop': {
|
|
650
|
+
this._isIconOnly = isSmallerThanScreen('desktop-xl');
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
this._iconOnlyResizeTimeout = undefined;
|
|
655
|
+
}, 200);
|
|
656
|
+
}
|
|
619
657
|
_getIcon() {
|
|
620
658
|
if (!this.icon) {
|
|
621
659
|
return;
|
|
@@ -992,6 +1030,26 @@ export class Button {
|
|
|
992
1030
|
"attribute": "icon-only",
|
|
993
1031
|
"defaultValue": "false"
|
|
994
1032
|
},
|
|
1033
|
+
"iconOnlyAtBreakpoint": {
|
|
1034
|
+
"type": "string",
|
|
1035
|
+
"mutable": false,
|
|
1036
|
+
"complexType": {
|
|
1037
|
+
"original": "'mobile' | 'tablet' | 'desktop' | 'never'",
|
|
1038
|
+
"resolved": "\"desktop\" | \"mobile\" | \"never\" | \"tablet\"",
|
|
1039
|
+
"references": {}
|
|
1040
|
+
},
|
|
1041
|
+
"required": false,
|
|
1042
|
+
"optional": true,
|
|
1043
|
+
"docs": {
|
|
1044
|
+
"tags": [],
|
|
1045
|
+
"text": "Wether the button is icon only on mobile"
|
|
1046
|
+
},
|
|
1047
|
+
"getter": false,
|
|
1048
|
+
"setter": false,
|
|
1049
|
+
"reflect": false,
|
|
1050
|
+
"attribute": "icon-only-at-breakpoint",
|
|
1051
|
+
"defaultValue": "'never'"
|
|
1052
|
+
},
|
|
995
1053
|
"iconClass": {
|
|
996
1054
|
"type": "string",
|
|
997
1055
|
"mutable": false,
|
|
@@ -1144,6 +1202,11 @@ export class Button {
|
|
|
1144
1202
|
}
|
|
1145
1203
|
};
|
|
1146
1204
|
}
|
|
1205
|
+
static get states() {
|
|
1206
|
+
return {
|
|
1207
|
+
"_isIconOnly": {}
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1147
1210
|
static get events() {
|
|
1148
1211
|
return [{
|
|
1149
1212
|
"method": "onClick",
|
|
@@ -1168,6 +1231,12 @@ export class Button {
|
|
|
1168
1231
|
}];
|
|
1169
1232
|
}
|
|
1170
1233
|
static get elementRef() { return "_host"; }
|
|
1234
|
+
static get watchers() {
|
|
1235
|
+
return [{
|
|
1236
|
+
"propName": "iconOnlyMobile",
|
|
1237
|
+
"methodName": "_onWindowResize"
|
|
1238
|
+
}];
|
|
1239
|
+
}
|
|
1171
1240
|
static get listeners() {
|
|
1172
1241
|
return [{
|
|
1173
1242
|
"name": "click",
|
|
@@ -1175,6 +1244,12 @@ export class Button {
|
|
|
1175
1244
|
"target": undefined,
|
|
1176
1245
|
"capture": true,
|
|
1177
1246
|
"passive": false
|
|
1247
|
+
}, {
|
|
1248
|
+
"name": "resize",
|
|
1249
|
+
"method": "_onWindowResize",
|
|
1250
|
+
"target": "window",
|
|
1251
|
+
"capture": false,
|
|
1252
|
+
"passive": true
|
|
1178
1253
|
}];
|
|
1179
1254
|
}
|
|
1180
1255
|
}
|
|
@@ -9,7 +9,7 @@ const meta = {
|
|
|
9
9
|
};
|
|
10
10
|
export default meta;
|
|
11
11
|
export const Default = {
|
|
12
|
-
render: ({ label, as, variant, active, underline, href, target, size, type, loading, chevron, 'chevron-position': chevronPosition, disabled, icon, 'icon-only': iconOnly, 'icon-position': iconPosition, 'icon-flip': iconFlip, 'icon-rotate': iconRotate, 'inherit-text': inheritText, 'button-group-position': buttonGroupPosition, class: className, error, }) => html `
|
|
12
|
+
render: ({ label, as, variant, active, underline, href, target, size, type, loading, chevron, 'chevron-position': chevronPosition, disabled, icon, 'icon-only': iconOnly, 'icon-only-mobile': iconOnlyMobile, 'icon-position': iconPosition, 'icon-flip': iconFlip, 'icon-rotate': iconRotate, 'inherit-text': inheritText, 'button-group-position': buttonGroupPosition, class: className, error, }) => html `
|
|
13
13
|
<p-button
|
|
14
14
|
label=${label ?? nothing}
|
|
15
15
|
as=${as ?? nothing}
|
|
@@ -26,6 +26,7 @@ export const Default = {
|
|
|
26
26
|
disabled=${disabled ?? nothing}
|
|
27
27
|
icon=${icon ?? nothing}
|
|
28
28
|
icon-only=${iconOnly ?? nothing}
|
|
29
|
+
icon-only-mobile=${iconOnlyMobile ?? nothing}
|
|
29
30
|
icon-position=${iconPosition ?? nothing}
|
|
30
31
|
icon-flip=${iconFlip ?? nothing}
|
|
31
32
|
icon-rotate=${iconRotate ?? nothing}
|
|
@@ -12,7 +12,7 @@ export class ButtonGroup {
|
|
|
12
12
|
this._checkButtons();
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '90fbb14cc7449008e954a0339b4c38cb7e8d38fa', class: 'flex items-center' }, h("slot", { key: 'f990d19ddf76095aed8248df3c19b05910d94104' })));
|
|
16
16
|
}
|
|
17
17
|
slotchange() {
|
|
18
18
|
this._checkButtons();
|
|
@@ -192,7 +192,7 @@ export class Calendar {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
render() {
|
|
195
|
-
return (h(ThemedHost, { key: '
|
|
195
|
+
return (h(ThemedHost, { key: '1ac6072fee80f1e4334238c04e0743e89b695512' }, h("div", { key: '0f8f9718527bdca1d0c1e44615c19358e749564d', class: calendar({ variant: this.variant }) }, this._getView())));
|
|
196
196
|
}
|
|
197
197
|
_checkTodayButton() {
|
|
198
198
|
if (this._maxDate && isAfter(this._today, this._maxDate)) {
|
|
@@ -47,13 +47,13 @@ export class ContentSlider {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'a82d50f13b050b1b57c193f79e6791c7c69f0e7c' }, h("div", { key: '0009964bd2f75e75e231c0f556e7751dab05bb07', class: `
|
|
51
51
|
slider
|
|
52
52
|
${!this.disableDrag && 'draggable'}
|
|
53
53
|
${this._dragging && 'dragging'}
|
|
54
54
|
`, ref: el => (this._sliderRef = el), style: {
|
|
55
55
|
height: `${this._outerHeight}px`,
|
|
56
|
-
}, onMouseDown: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e), onTouchStart: e => this._mouseDownHandler(e) }, h("div", { key: '
|
|
56
|
+
}, onMouseDown: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e), onTouchStart: e => this._mouseDownHandler(e) }, h("div", { key: '2ea50b0a0fb3e0e781269bc626f7b03ebda586ae', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: '753355eff5f15324abe3f217883a6ff76137136b', onSlotchange: () => this._slotChange() }))), h("div", { key: '3f932e53f0face6e5f2eaff2f59df40768b6c227', class: `
|
|
57
57
|
indicator
|
|
58
58
|
${this.hideMobileIndicator && 'hidden'}
|
|
59
59
|
` }, this._filteredItems.map((_, i) => (h("div", { class: `
|
|
@@ -42,7 +42,7 @@ export class Cropper {
|
|
|
42
42
|
const themeColor = state.theme === 'dark'
|
|
43
43
|
? 'rgba(70, 75, 84, 0.5)'
|
|
44
44
|
: 'rgba(255, 255, 255, 0.5)';
|
|
45
|
-
return (h(ThemedHost, { key: '
|
|
45
|
+
return (h(ThemedHost, { key: '6990cbf026a62127f1cf302389a2cff1e8188714' }, this._loaded && (h("cropper-canvas", { key: '75ffe50e67aec9e6c3f73bcb7f5bb2649fb6697b', class: '\n h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700\n bg-white\n dark:border-hurricane-200\n ', onAction: () => this._onAction() }, h("cropper-image", { key: 'f2f93c7aa2c59074fd673c9ff6c678c102b777ae', alt: 'Picture', crossorigin: 'anonymous', ref: ref => this._setImageRef(ref), src: this.value, scalable: true, translatable: true }), h("cropper-shade", { key: 'd600a2b3f73c1aa89addbe0c6f5ab98f4fe3757b', class: 'aspect-branding rounded-full', "theme-color": themeColor, hidden: true }), h("cropper-selection", { key: '0465c5418129587bab613ffe5e11bb4a33de1e1f', "aspect-ratio": '1', "initial-coverage": '0.7', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: '5bcca95b800e11a96c274017cc9fd743d421fa26', action: 'move', plain: true }))), h("p-range", { key: '236d72301a785e8cb16bd5eacaa15f7cf678f8e9', class: '\n w-full px-14\n tablet:max-w-xs tablet:px-1\n ', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
|
|
46
46
|
}
|
|
47
47
|
_setImageRef(ref) {
|
|
48
48
|
if (this._imageRef || !ref) {
|
|
@@ -213,7 +213,7 @@ export class Datepicker {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
render() {
|
|
216
|
-
return (h("p-dropdown", { key: '
|
|
216
|
+
return (h("p-dropdown", { key: '41ebf8ceb52a6eab7005df2c8d03718ac71ad5c0', allowOverflow: true, applyFullWidth: false, applyMaxWidth: false, disableTriggerClick: true, insideClick: true, isDatepicker: true, placement: this.placement, show: this._showDropdown, strategy: this.strategy }, h("p-field", { key: 'dd5e53303c5e4ba9e13a04d2b661e9da77deda0b', autoShowError: false, disabled: asBoolean(this.disabled), error: this.error, focused: this._showDropdown, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', label: this.label, loading: this.loading, placeholder: this.placeholder, prefix: this.prefix, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), size: this.size, slot: 'trigger', value: this._getFormattedDate(), onBlur: (ev) => this._onBlur(ev), onFocus: () => this._onFocus(), onInputRefChange: ev => (this._inputRef = ev.detail), onValueChange: ev => this._onValueChange(ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: 'db6172b1cbd2d80842a127c1a14b821460ecce12', class: '\n pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden\n opacity-0\n ', max: this.maxDate &&
|
|
217
217
|
format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
218
218
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
219
219
|
}), min: this._minDate &&
|
|
@@ -222,7 +222,7 @@ export class Datepicker {
|
|
|
222
222
|
}), ref: ref => (this._dateInputRef = ref), slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', value: this._value &&
|
|
223
223
|
format(this._value, 'yyyy-MM-dd', {
|
|
224
224
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
225
|
-
}), onInput: ev => this._onNativeInput(ev) })), h("div", { key: '
|
|
225
|
+
}), onInput: ev => this._onNativeInput(ev) })), h("div", { key: '31ca023225ae50db2c07ca4325a746e13ee6f4a5', slot: 'items', tabIndex: -1 }, h("p-calendar", { key: '705efb5369a1d86ac8261ad6ad794732e77110c9', disableWeekends: this.disableWeekends, disabledDates: this.disabledDates, enableToday: this.enableToday, maxDate: this.maxDate, minDate: this.minDate, mode: this.mode, preselectToday: this.preselectToday, todayText: this.todayText, value: this._value, variant: 'embedded', onValueChange: ({ detail }) => (this.value = detail) }))));
|
|
226
226
|
}
|
|
227
227
|
documentClickHandler({ target }) {
|
|
228
228
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -133,12 +133,12 @@ export class Dropdown {
|
|
|
133
133
|
this._checkItems();
|
|
134
134
|
}
|
|
135
135
|
render() {
|
|
136
|
-
return (h(Host, { key: '
|
|
136
|
+
return (h(Host, { key: 'daa5ca812dc1ec72b95737a02bbff9e492ad7fe3', class: 'relative' }, h("div", { key: '9842f327983cfdc6666eaa9dd7b6010f0d13efe6', class: 'trigger', ref: el => (this._trigger = el), onClick: () => this._triggerClickHandler() }, h("slot", { key: '4195411e9dff36f800f91149544e7135d22cb44b', name: 'trigger' })), h("div", { key: '48f8874c60a8c69fa6ade61325415d5e70761748', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: 'ad92d728bbb379c6cc926b9b747da4cc3fc17665', allowOverflow: this.allowOverflow, class: cn(dropdownContainerClass({
|
|
137
137
|
strategy: this.strategy,
|
|
138
138
|
maxWidth: this.applyMaxWidth,
|
|
139
139
|
fullWidth: this.applyFullWidth && !this.applyMaxWidth,
|
|
140
140
|
isDatepicker: this.isDatepicker,
|
|
141
|
-
}), this.containerClass), "data-placement": this.placement, "data-strategy": this.strategy, fullWidth: this.applyFullWidth && !this.applyMaxWidth, maxWidth: this.applyMaxWidth, ref: el => this._load(el), role: 'popover', scrollable: this.scrollable, variant: this.variant, onClick: () => this._containerClickHandler() }, h("slot", { key: '
|
|
141
|
+
}), this.containerClass), "data-placement": this.placement, "data-strategy": this.strategy, fullWidth: this.applyFullWidth && !this.applyMaxWidth, maxWidth: this.applyMaxWidth, ref: el => this._load(el), role: 'popover', scrollable: this.scrollable, variant: this.variant, onClick: () => this._containerClickHandler() }, h("slot", { key: '8d131c1ee5ca981f8d5ea9931922cf5061e7d816', name: 'items' })))));
|
|
142
142
|
}
|
|
143
143
|
_checkButtons(active = false) {
|
|
144
144
|
const buttons = this._el.querySelectorAll('p-button[slot="trigger"]');
|
|
@@ -115,20 +115,20 @@ export class Dropzone {
|
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
117
|
const hasContent = this._el.innerHTML?.length > 0;
|
|
118
|
-
return (h(ThemedHost, { key: '
|
|
118
|
+
return (h(ThemedHost, { key: '7c1db4cb49b8699a6aa11ffb0b6fe4d496dabee2' }, h("div", { key: 'a059feda628b54161629ea0e05dbbfb0fa8e4aba', class: dropzone({
|
|
119
119
|
isOver: this._isOver,
|
|
120
120
|
uploaded: this.uploaded,
|
|
121
|
-
}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (h("p-icon", { key: '
|
|
121
|
+
}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (h("p-icon", { key: '79d280c89d5274171ba689463491ab9386712353', class: cn(`
|
|
122
122
|
group-hover/dropzone:text-indigo-900
|
|
123
123
|
dark:group-hover/dropzone:text-indigo-700
|
|
124
124
|
`, {
|
|
125
125
|
'text-positive-green-800': this.uploaded,
|
|
126
126
|
'text-storm-300 dark:text-hurricane-200': !this._isOver && !this.uploaded,
|
|
127
127
|
'text-indigo-900 dark:text-indigo-700': this._isOver,
|
|
128
|
-
}), variant: this.icon })), this.loading && h("p-loader", { key: '
|
|
128
|
+
}), variant: this.icon })), this.loading && h("p-loader", { key: '7c28c02bada55efe9d2045b3a42a7c3c2139ee76' }), hasContent && (h("p", { key: '78208423e2b95c23a5303f8fca3300e06b5b4d86', class: cn('m-0 p-0 text-lg font-bold', {
|
|
129
129
|
'dark:text-white': !this.uploaded || this._isOver,
|
|
130
130
|
'text-storm-500': this.uploaded && !this._isOver,
|
|
131
|
-
}) }, h("slot", { key: '
|
|
131
|
+
}) }, h("slot", { key: 'c0656e295223d620af579278f1c763eb7f368acf' }))), this.uploaded && !this._isOver && (h("div", { key: 'e5ebd90b568883a025118f3df155188b21f1f67e', class: 'flex items-center gap-2 text-positive-green-800' }, h("p-icon", { key: '782fc223bd7de1a5d2e7e78bce753e32160fb477', variant: 'check-circle' }), h("span", { key: '063369d8309f4d992b53d8db3165d4f9ed663992', class: 'font-medium' }, this.addedString))), (!this.uploaded || this._isOver) && (h("div", { key: 'c05af902cc62cfdbb7feea9de5aabf567c6d22f5', class: cn([
|
|
132
132
|
'flex flex-col text-center',
|
|
133
133
|
'group-hover/dropzone:opacity-50',
|
|
134
134
|
`
|
|
@@ -137,7 +137,7 @@ export class Dropzone {
|
|
|
137
137
|
`,
|
|
138
138
|
], {
|
|
139
139
|
'opacity-50': this._isOver,
|
|
140
|
-
}) }, h("span", { key: '
|
|
140
|
+
}) }, h("span", { key: 'c9ec4e45968281ce5c2033264ff7c972b25bd799', class: 'font-medium' }, this.dragFileString), h("span", { key: 'bc2aac22c381cdb7d5cbfaa42627f57d08cab115', class: 'font-normal' }, this.orClickString)))), h("input", { key: 'd7569817461cc246b0d17e9f8cf238ea169ad436', 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
141
|
}
|
|
142
142
|
onDrop(ev) {
|
|
143
143
|
const files = this._getFiles(ev);
|
|
@@ -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: '1ee5241659e6ee9a39f0d3f641374b3fa9d7d713' }, h("div", { key: '2a170cfa8265e140da60465554908925a9a7b30c', 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: 'd843ed25df3ad3aee82b568419b553272df82155', 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: '5291beab9a04f71a20dc147266a4517aefc7026b', name: 'content', slot: 'trigger' }));
|
|
109
109
|
if (this.loading) {
|
|
110
|
-
contentSlot = (h("p-loader", { key: '
|
|
110
|
+
contentSlot = (h("p-loader", { key: '7af3ba90aeecec528b526c5257f9fb53e601c795', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger', variant: 'ghost' }));
|
|
111
111
|
}
|
|
112
|
-
return (h(ThemedHost, { key: '
|
|
112
|
+
return (h(ThemedHost, { key: '2aade5cc2ec5c8302d475aefc62b8a178027fbd0' }, h("label", { key: '5a0920e414f7f5f0333d2b5f805e016b98b19baf', class: cn('flex h-inherit 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: '52f9924430ca76dd5492c8c5e78a5a640e132e29', 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: '4af64a1df141b112f28138a1f6a01ab6016bb642', class: 'flex min-w-0 gap-2', onClick: () => this.focus.emit() }, h("span", { key: '6aae524554e4bd91eb9e316b7b69210be1e24b32', 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: '148aa5b036d4b2cd74cb8d55f653082d9fb25a35', class: 'flex flex-shrink-0', placement: 'top' }, helper)))), ((!asBoolean(this.required) && asBoolean(this.showOptional)) ||
|
|
120
|
+
hasHeaderSlot) && (h("div", { key: '5c7df3260b6add948909d13001a8f5f1a62a296b', 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: '259e21450bdd3458cba03edf5106f2e31ffb1ac1', class: '\n text-xs font-medium text-storm-200\n dark:text-hurricane-300\n ' }, this.optionalTemplate())), hasHeaderSlot && h("slot", { key: 'dfc59d9d34107403e05a4106b76f48eaf33efe0c', name: 'header' })))), h("p-tooltip", { key: 'b92186277a5c86017167ebfe66f360c2c569ea09', 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: '40046f1ba8136dcaf7a37c11edeb8ba75b115415', 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: '537b14741e48d7aa20121d9d4e0cb4f04fcf7eab' }, h("p-field-container", { key: 'ddb458b4fda84393779f1c2668541b09baf008a3', 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: '22e0fad26aa04bc18833eeb6b86822ad22a10586', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '2c451ce3554067b83effa28e7fb3afc350c07838', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '5a7b1748f39fa6716d6ea84dc822f8a91a38a255', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'b02b47a5fa9768792a1de132beccfcb94637194d', name: 'error', slot: 'error' })), h("div", { key: '1beb78cff29f30c5adad7e3cec93961caaf34b08', 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: '5c157f96f660ae83468219a63f08abc279dfc5cc', 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: '470f92267fb2a7a44a52b58259539b2940943221', 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: 'ae16c9de7454fc81eabe1007ddacadc0910c30df', class: cn('inline-block', this.class) }, h(TagType, { key: '5762e034f8994b2b545254e74bda83648051f7b4', 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: '3f8f23069bc9bb4e74f21bdaf84a5799c94c1923', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '35a783b85c8ecd4817c2d956f2146af0023ab103', variant: this.icon })), h("span", { key: '850af9f755f29426abbc6c9aec0049b2c60bc6ae', class: cn({
|
|
95
95
|
'has-counter': !!this.counter,
|
|
96
96
|
'w-full': this.applyFullWidth,
|
|
97
|
-
}) }, h("slot", { key: '
|
|
97
|
+
}) }, h("slot", { key: '9ad7ed612cba22fd9e9586b2f7abb982edb7b472' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: 'd5a732b8445a36b876835863bb5a3e01d42ad0f8' }, this.counter)), !!this.loading && h("p-loader", { key: 'd3590283a8e0bb1ed5247146fff810c841577588', 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: 'aabfc291e288f02dcd4968f03899077fb318abf0', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '507af087c66bdb236bb54af09819fbda57180bf7' }, this.header)), h("div", { key: 'a6206f28cc39183855440bc575404817c9de5e3e', class: 'flex flex-col' }, h("slot", { key: '56bbabeb6a8884aaa667055ffb082753733d0c6f' }))));
|
|
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: 'db0857b24ba35b034ba1dc8143a29cbb9de2c549' }, h("div", { key: '80bb1005d3c1694d4f7e8aa0ef9914ecee7caaac', 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: '9a30d6c7d566a90f8ac44f77fab07d2a2446c72f' }, h("div", { key: '85f2dcfc61804d63b84ad255652d446543c5c839', 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: '1c51b9320c6a18d1acbb540f0728ea3ce79e02d6' }, h("p-pagination-size", { key: '08c020039f055c1205adac0ba4f9f32922781ebf', 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: '0587d352bea9161f7b708221a35cc9ccec2d81ff', 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: 'c0642155df14ece17ac84ea8a285a01b62f2bc28', 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
|
} })))));
|
|
@@ -79,18 +79,18 @@ export class PaginationSize {
|
|
|
79
79
|
this._setLocales();
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
|
-
return (h(ThemedHost, { key: '
|
|
82
|
+
return (h(ThemedHost, { key: '5e1b33344ed17b9091f9f77de65ae085832d689e', class: paginationSize({ hidden: asBoolean(this.hidden) }) }, h("p-dropdown", { key: '8084c18cb9241748daf3d4199e823083941c2624', applyFullWidth: true, applyMaxWidth: false, chevronDirection: 'down', placement: 'top-start', onIsOpen: ({ detail }) => (this.dropdownIsOpen = detail) }, h("div", { key: '43da06218c720985f7a7ab2496aa58c5250de3bf', class: trigger({
|
|
83
83
|
active: this.dropdownIsOpen,
|
|
84
|
-
}), slot: 'trigger' }, h("p", { key: '
|
|
84
|
+
}), slot: 'trigger' }, h("p", { key: '6bce5c88289ba40dd11d25a9ef3bfb7268a8ccb1', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap' }, this.itemTemplate
|
|
85
85
|
? this.itemTemplate(this.size)
|
|
86
|
-
: this._defaultItemTemplate(this.size)), h("p-icon", { key: '
|
|
86
|
+
: this._defaultItemTemplate(this.size)), h("p-icon", { key: 'ca9506f126086f9a4ac7ecd43654cdf41fcc3cf6', class: cn([
|
|
87
87
|
'flex-shrink-0',
|
|
88
88
|
'group-hover/pagination-size-trigger:text-storm-500',
|
|
89
89
|
'dark:group-hover/pagination-size-trigger:text-white',
|
|
90
90
|
], {
|
|
91
91
|
'text-storm-300 dark:text-hurricane-200': !this.dropdownIsOpen,
|
|
92
92
|
'text-storm-500 dark:text-white': !!this.dropdownIsOpen,
|
|
93
|
-
}), size: 'sm', variant: 'double-caret' })), h("slot", { key: '
|
|
93
|
+
}), size: 'sm', variant: 'double-caret' })), h("slot", { key: '0c03ec3e9b917857a9f3b76f56c6bb7133ec988c', slot: 'items' }, this.sizeOptions.map(option => (h("p-dropdown-menu-item", { active: option === this.size, onClick: () => this._changeSize(option) }, this.itemTemplate
|
|
94
94
|
? this.itemTemplate(option)
|
|
95
95
|
: this._defaultItemTemplate(option))))))));
|
|
96
96
|
}
|
|
@@ -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: '6d75fe9ed4ac33cfc764d9fab67484d6a9f07721' }, 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: '2d2460d0c69169794ca7f22f80bfe29eee2c6e72' }, h("div", { key: '7441a9994ebd42f91d0b592ab1d4345ff0da9817', class: '\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n ' }, h("p-icon", { key: '2dfd00d0e7042aa63223fbdb2f537f55ec5d624c', variant: 'minus' }), h("div", { key: '77dc1faecfdccf7692af8276043fa851e3febfdf', class: 'relative h-6 flex-1' }, h("input", { key: 'da4efbb82a44ee8f7924b9447abfbdb1cbebf10f', 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: '19677761561399e485961a92cdf6167d8334f439', 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: '96ecdaa05a4a710a980fab7f77a3d845f837ce5c', variant: 'plus' }))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "p-range"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -341,8 +341,8 @@ export class Select {
|
|
|
341
341
|
if (this.error?.length) {
|
|
342
342
|
buttonIcon = 'warning';
|
|
343
343
|
}
|
|
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: '
|
|
344
|
+
return (h(ThemedHost, { key: 'e558118df2ca323c56ce1af9ca940f9ab3064bf5' }, h("p-field-container", { key: '8c59c91d1962edee3ee06ca33f93e670aaf471d2', 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: '81ce03dc69685e18a92090628818e0ea902b9f3b', 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: '71a818c2ee268b8c169cc65bcd405ab8153bacb9', active: this._showDropdown, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, class: 'w-full', error: !!this.error?.length, icon: buttonIcon, iconClass: this.applyClassOnSelectedItem &&
|
|
345
|
+
this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, h("div", { key: '53f5fc2d15c94e96f629c6bd53e2456078f47dd3', 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
346
|
}
|
|
347
347
|
documentClickHandler(event) {
|
|
348
348
|
if (!this._showDropdown || childOfComposed(event, this._el)) {
|
|
@@ -23,15 +23,15 @@ export class SubmenuItem {
|
|
|
23
23
|
this.activeChange.emit(this.active);
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h(ThemedHost, { key: '
|
|
26
|
+
return (h(ThemedHost, { key: '90bce86bc100210f8491a1a2301813046fd7de1b' }, h("div", { key: '51e0542d7e19c609fec475cbbbb0115be419fbf1', class: cn([
|
|
27
27
|
'flex items-center',
|
|
28
28
|
'h-8 w-full pl-[calc(3rem+2px)]',
|
|
29
29
|
'cursor-pointer',
|
|
30
30
|
'group/submenu-item',
|
|
31
|
-
]) }, h("div", { key: '
|
|
31
|
+
]) }, h("div", { key: 'a0d12ac8717ed69491bcdf4dd08b650f39aee67c', class: cn('flex items-center gap-2 transition-colors', {
|
|
32
32
|
'text-storm-400 dark:text-hurricane-100': !this.active,
|
|
33
33
|
'text-indigo-600': this.active,
|
|
34
|
-
}) }, h("p-icon", { key: '
|
|
34
|
+
}) }, h("p-icon", { key: '45354d39e6b24c0202bcc476c02b7b1d017f91ac', variant: this.icon }), h("slot", { key: '762d3933cb5b6145aea1c07d2c3187e5401f5a50' })))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "p-submenu-item"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|