@paperless/core 2.0.1-beta.194 → 2.0.1-beta.195
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/CHANGELOG.md +8 -0
- package/dist/build/{p-2da67519.entry.js → p-05deb9ae.entry.js} +2 -2
- package/dist/{paperless/p-e9639bb1.entry.js → build/p-0c2e3c88.entry.js} +2 -2
- package/dist/build/p-16b3a176.js +2 -0
- package/dist/build/{p-219db898.entry.js → p-2095ee8f.entry.js} +2 -2
- package/dist/build/p-2e64c361.entry.js +2 -0
- package/dist/build/p-2e64c361.entry.js.map +1 -0
- package/dist/build/{p-c892b87a.entry.js → p-41dd9b39.entry.js} +2 -2
- package/dist/build/{p-9e4cbacf.entry.js → p-67de510f.entry.js} +2 -2
- package/dist/build/{p-3d4c4b9e.entry.js → p-852d7b88.entry.js} +2 -2
- package/dist/build/{p-c3558fb4.entry.js → p-85cd2298.entry.js} +2 -2
- package/dist/build/{p-bb7a5be7.entry.js → p-8f572f07.entry.js} +2 -2
- package/dist/build/{p-ad3595e3.entry.js → p-a6c3b068.entry.js} +2 -2
- package/dist/build/p-c186b6cb.entry.js +2 -0
- package/dist/{paperless/p-f3ccb626.entry.js.map → build/p-c186b6cb.entry.js.map} +1 -1
- package/dist/build/{p-8c62252b.entry.js → p-c31c40fb.entry.js} +2 -2
- package/dist/build/{p-58a4790a.entry.js → p-c601f70c.entry.js} +2 -2
- package/dist/build/p-c601f70c.entry.js.map +1 -0
- package/dist/build/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.esm.js.map +1 -1
- package/dist/build/p-da08e594.entry.js +2 -0
- package/dist/build/{p-e596d429.entry.js → p-dcd282d4.entry.js} +2 -2
- package/dist/build/{p-aac11835.entry.js → p-e1705c60.entry.js} +2 -2
- package/dist/build/p-e6a7c551.entry.js +2 -0
- package/dist/build/p-e6a7c551.entry.js.map +1 -0
- package/dist/build/p-e6e9a436.entry.js +2 -0
- package/dist/build/p-e6e9a436.entry.js.map +1 -0
- package/dist/build/{p-fa78c45a.entry.js → p-e8909ffb.entry.js} +2 -2
- package/dist/build/{p-dcdadaae.entry.js → p-f1ddba79.entry.js} +2 -2
- package/dist/build/p-helper.p-tooltip.entry.esm.js.map +1 -1
- package/dist/build/p-pagination.p-pagination-pages.p-pagination-size.entry.esm.js.map +1 -1
- package/dist/build/p-select.entry.esm.js.map +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/index-BDuPp9vl.js +0 -4
- 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 +6 -6
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.cjs.js.map +1 -1
- package/dist/cjs/p-checkbox_4.cjs.entry.js +15 -37
- package/dist/cjs/p-checkbox_4.cjs.entry.js.map +1 -1
- 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 +1 -1
- package/dist/cjs/p-empty-state_9.cjs.entry.js +8 -8
- package/dist/cjs/p-field_2.cjs.entry.js +3 -3
- package/dist/cjs/p-helper.p-tooltip.entry.cjs.js.map +1 -1
- package/dist/cjs/p-helper_2.cjs.entry.js +3 -31
- package/dist/cjs/p-helper_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination.p-pagination-pages.p-pagination-size.entry.cjs.js.map +1 -1
- package/dist/cjs/p-pagination_3.cjs.entry.js +7 -7
- package/dist/cjs/p-pagination_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-range.cjs.entry.js +2 -2
- package/dist/cjs/p-select.cjs.entry.js +2 -6
- package/dist/cjs/p-select.cjs.entry.js.map +1 -1
- package/dist/cjs/p-select.entry.cjs.js.map +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +10 -4
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js.map +1 -1
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +3 -51
- package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
- package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
- package/dist/collection/components/molecules/attachment/attachment.component.js +6 -6
- 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 +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +3 -71
- package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -1
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/field/field.component.js +3 -3
- package/dist/collection/components/molecules/label/label.component.js +3 -3
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +2 -2
- 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 +3 -3
- package/dist/collection/components/molecules/pagination/size/pagination-size.component.js.map +1 -1
- package/dist/collection/components/molecules/range/range.component.js +2 -2
- package/dist/collection/components/molecules/select/select.component.css +1 -1
- package/dist/collection/components/molecules/select/select.component.js +1 -25
- package/dist/collection/components/molecules/select/select.component.js.map +1 -1
- 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/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/components/{p-gPt9TxSk.js → p-BFBxkQdc.js} +10 -16
- package/dist/components/p-BFBxkQdc.js.map +1 -0
- package/dist/components/{p-CgCT2d-x.js → p-BcgYucFP.js} +23 -29
- package/dist/components/p-BcgYucFP.js.map +1 -0
- package/dist/components/{p-BL6tcXIx.js → p-BnizPYo3.js} +6 -41
- package/dist/components/p-BnizPYo3.js.map +1 -0
- package/dist/components/{p-C6-VHZ8A.js → p-C0orhMYr.js} +4 -4
- package/dist/components/{p-C6-VHZ8A.js.map → p-C0orhMYr.js.map} +1 -1
- package/dist/components/{p-BOXJAotb.js → p-Co2ou8dJ.js} +15 -21
- package/dist/components/p-Co2ou8dJ.js.map +1 -0
- package/dist/components/{p-C9wY-Brb.js → p-CwukMUJw.js} +3 -3
- package/dist/components/{p-C9wY-Brb.js.map → p-CwukMUJw.js.map} +1 -1
- package/dist/components/{p-D72kfdq4.js → p-CzwTn5oY.js} +24 -30
- package/dist/components/p-CzwTn5oY.js.map +1 -0
- package/dist/components/{p-DLM2YQZ0.js → p-D26lFfgv.js} +19 -25
- package/dist/components/p-D26lFfgv.js.map +1 -0
- package/dist/components/{p-DwRVQxta.js → p-D5IMI7TV.js} +5 -5
- package/dist/components/{p-DwRVQxta.js.map → p-D5IMI7TV.js.map} +1 -1
- package/dist/components/{p-zIstrNED.js → p-DFnm-k8k.js} +9 -15
- package/dist/components/p-DFnm-k8k.js.map +1 -0
- package/dist/components/{p-CfcfiCsY.js → p-DX9aoRyl.js} +3 -3
- package/dist/components/{p-CfcfiCsY.js.map → p-DX9aoRyl.js.map} +1 -1
- package/dist/components/{p-CA6-0EkK.js → p-K1js1IEU.js} +13 -7
- package/dist/components/p-K1js1IEU.js.map +1 -0
- package/dist/components/{p-BqSPejqy.js → p-Ue0Vv9zo.js} +14 -20
- package/dist/components/p-Ue0Vv9zo.js.map +1 -0
- package/dist/components/{p-D_vYQ4Qi.js → p-Vr-Ao5Ms.js} +4 -4
- package/dist/components/{p-D_vYQ4Qi.js.map → p-Vr-Ao5Ms.js.map} +1 -1
- package/dist/components/p-accordion.js +2 -2
- package/dist/components/p-attachment.js +17 -23
- package/dist/components/p-attachment.js.map +1 -1
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-content-slider.js +2 -2
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +20 -26
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/components/p-dropdown-menu-container.js +1 -1
- package/dist/components/p-dropdown.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-helper.js +1 -1
- package/dist/components/{p-C0ZWBE1t.js → p-lEv83blc.js} +8 -44
- package/dist/components/p-lEv83blc.js.map +1 -0
- package/dist/components/p-label.js +3 -3
- package/dist/components/p-listing.js +2 -2
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +2 -2
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/{p-Cism8JOs.js → p-oH2KYRoi.js} +5 -11
- package/dist/components/p-oH2KYRoi.js.map +1 -0
- 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 +10 -16
- package/dist/components/p-profile.js.map +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-select.js +25 -36
- package/dist/components/p-select.js.map +1 -1
- package/dist/components/p-table-cell.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.js +1 -1
- package/dist/components/p-table.js +45 -51
- package/dist/components/p-table.js.map +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/esm/index-DhGo7hbh.js +0 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-accordion.entry.js +2 -2
- package/dist/esm/p-attachment.entry.js +6 -6
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.js.map +1 -1
- package/dist/esm/p-checkbox_4.entry.js +15 -37
- package/dist/esm/p-checkbox_4.entry.js.map +1 -1
- 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 +1 -1
- package/dist/esm/p-empty-state_9.entry.js +8 -8
- package/dist/esm/p-field_2.entry.js +3 -3
- package/dist/esm/p-helper.p-tooltip.entry.js.map +1 -1
- package/dist/esm/p-helper_2.entry.js +3 -31
- package/dist/esm/p-helper_2.entry.js.map +1 -1
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +2 -2
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-pagination.p-pagination-pages.p-pagination-size.entry.js.map +1 -1
- package/dist/esm/p-pagination_3.entry.js +7 -7
- package/dist/esm/p-pagination_3.entry.js.map +1 -1
- package/dist/esm/p-range.entry.js +2 -2
- package/dist/esm/p-select.entry.js +2 -6
- package/dist/esm/p-select.entry.js.map +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/{p-2da67519.entry.js → p-05deb9ae.entry.js} +2 -2
- package/dist/{build/p-e9639bb1.entry.js → paperless/p-0c2e3c88.entry.js} +2 -2
- package/dist/paperless/{p-219db898.entry.js → p-2095ee8f.entry.js} +2 -2
- package/dist/paperless/p-2e64c361.entry.js +2 -0
- package/dist/paperless/p-2e64c361.entry.js.map +1 -0
- package/dist/paperless/{p-c892b87a.entry.js → p-41dd9b39.entry.js} +2 -2
- package/dist/paperless/{p-9e4cbacf.entry.js → p-67de510f.entry.js} +2 -2
- package/dist/paperless/{p-3d4c4b9e.entry.js → p-852d7b88.entry.js} +2 -2
- package/dist/paperless/{p-c3558fb4.entry.js → p-85cd2298.entry.js} +2 -2
- package/dist/paperless/{p-bb7a5be7.entry.js → p-8f572f07.entry.js} +2 -2
- package/dist/paperless/{p-ad3595e3.entry.js → p-a6c3b068.entry.js} +2 -2
- package/dist/paperless/p-c186b6cb.entry.js +2 -0
- package/dist/{build/p-f3ccb626.entry.js.map → paperless/p-c186b6cb.entry.js.map} +1 -1
- package/dist/paperless/{p-8c62252b.entry.js → p-c31c40fb.entry.js} +2 -2
- package/dist/paperless/{p-58a4790a.entry.js → p-c601f70c.entry.js} +2 -2
- package/dist/paperless/p-c601f70c.entry.js.map +1 -0
- package/dist/paperless/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.esm.js.map +1 -1
- package/dist/paperless/p-da08e594.entry.js +2 -0
- package/dist/paperless/{p-e596d429.entry.js → p-dcd282d4.entry.js} +2 -2
- package/dist/paperless/{p-aac11835.entry.js → p-e1705c60.entry.js} +2 -2
- package/dist/paperless/p-e6a7c551.entry.js +2 -0
- package/dist/paperless/p-e6a7c551.entry.js.map +1 -0
- package/dist/paperless/p-e6e9a436.entry.js +2 -0
- package/dist/paperless/p-e6e9a436.entry.js.map +1 -0
- package/dist/paperless/{p-fa78c45a.entry.js → p-e8909ffb.entry.js} +2 -2
- package/dist/paperless/{p-dcdadaae.entry.js → p-f1ddba79.entry.js} +2 -2
- package/dist/paperless/p-helper.p-tooltip.entry.esm.js.map +1 -1
- package/dist/paperless/p-pagination.p-pagination-pages.p-pagination-size.entry.esm.js.map +1 -1
- package/dist/paperless/p-select.entry.esm.js.map +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/tooltip/tooltip.component.d.ts +0 -4
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +0 -9
- package/dist/types/components/molecules/select/select.component.d.ts +0 -4
- package/dist/types/components.d.ts +0 -45
- package/package.json +1 -1
- package/dist/build/p-32f997e7.entry.js +0 -2
- package/dist/build/p-3f9af350.entry.js +0 -2
- package/dist/build/p-3f9af350.entry.js.map +0 -1
- package/dist/build/p-4986919e.js +0 -2
- package/dist/build/p-58a4790a.entry.js.map +0 -1
- package/dist/build/p-858a2582.entry.js +0 -2
- package/dist/build/p-858a2582.entry.js.map +0 -1
- package/dist/build/p-b137cbd4.entry.js +0 -2
- package/dist/build/p-b137cbd4.entry.js.map +0 -1
- package/dist/build/p-f3ccb626.entry.js +0 -2
- package/dist/build/p-f75cc2ab.entry.js +0 -2
- package/dist/build/p-f75cc2ab.entry.js.map +0 -1
- package/dist/build/p-portal.entry.esm.js.map +0 -1
- package/dist/cjs/p-portal.cjs.entry.js +0 -28
- package/dist/cjs/p-portal.cjs.entry.js.map +0 -1
- package/dist/cjs/p-portal.entry.cjs.js.map +0 -1
- package/dist/collection/components/helpers/portal/portal.component.js +0 -23
- package/dist/collection/components/helpers/portal/portal.component.js.map +0 -1
- package/dist/components/p-BL6tcXIx.js.map +0 -1
- package/dist/components/p-BOXJAotb.js.map +0 -1
- package/dist/components/p-BqSPejqy.js.map +0 -1
- package/dist/components/p-BuB74H5T.js +0 -41
- package/dist/components/p-BuB74H5T.js.map +0 -1
- package/dist/components/p-C0ZWBE1t.js.map +0 -1
- package/dist/components/p-CA6-0EkK.js.map +0 -1
- package/dist/components/p-CgCT2d-x.js.map +0 -1
- package/dist/components/p-Cism8JOs.js.map +0 -1
- package/dist/components/p-D72kfdq4.js.map +0 -1
- package/dist/components/p-DLM2YQZ0.js.map +0 -1
- package/dist/components/p-gPt9TxSk.js.map +0 -1
- package/dist/components/p-portal.d.ts +0 -11
- package/dist/components/p-portal.js +0 -9
- package/dist/components/p-portal.js.map +0 -1
- package/dist/components/p-zIstrNED.js.map +0 -1
- package/dist/esm/p-portal.entry.js +0 -26
- package/dist/esm/p-portal.entry.js.map +0 -1
- package/dist/paperless/p-32f997e7.entry.js +0 -2
- package/dist/paperless/p-3f9af350.entry.js +0 -2
- package/dist/paperless/p-3f9af350.entry.js.map +0 -1
- package/dist/paperless/p-58a4790a.entry.js.map +0 -1
- package/dist/paperless/p-858a2582.entry.js +0 -2
- package/dist/paperless/p-858a2582.entry.js.map +0 -1
- package/dist/paperless/p-b137cbd4.entry.js +0 -2
- package/dist/paperless/p-b137cbd4.entry.js.map +0 -1
- package/dist/paperless/p-f3ccb626.entry.js +0 -2
- package/dist/paperless/p-f75cc2ab.entry.js +0 -2
- package/dist/paperless/p-f75cc2ab.entry.js.map +0 -1
- package/dist/paperless/p-portal.entry.esm.js.map +0 -1
- package/dist/types/components/helpers/portal/portal.component.d.ts +0 -11
- /package/dist/build/{p-2da67519.entry.js.map → p-05deb9ae.entry.js.map} +0 -0
- /package/dist/build/{p-e9639bb1.entry.js.map → p-0c2e3c88.entry.js.map} +0 -0
- /package/dist/build/{p-219db898.entry.js.map → p-2095ee8f.entry.js.map} +0 -0
- /package/dist/build/{p-c892b87a.entry.js.map → p-41dd9b39.entry.js.map} +0 -0
- /package/dist/build/{p-9e4cbacf.entry.js.map → p-67de510f.entry.js.map} +0 -0
- /package/dist/build/{p-3d4c4b9e.entry.js.map → p-852d7b88.entry.js.map} +0 -0
- /package/dist/build/{p-c3558fb4.entry.js.map → p-85cd2298.entry.js.map} +0 -0
- /package/dist/build/{p-bb7a5be7.entry.js.map → p-8f572f07.entry.js.map} +0 -0
- /package/dist/build/{p-ad3595e3.entry.js.map → p-a6c3b068.entry.js.map} +0 -0
- /package/dist/build/{p-8c62252b.entry.js.map → p-c31c40fb.entry.js.map} +0 -0
- /package/dist/build/{p-32f997e7.entry.js.map → p-da08e594.entry.js.map} +0 -0
- /package/dist/build/{p-e596d429.entry.js.map → p-dcd282d4.entry.js.map} +0 -0
- /package/dist/build/{p-aac11835.entry.js.map → p-e1705c60.entry.js.map} +0 -0
- /package/dist/build/{p-fa78c45a.entry.js.map → p-e8909ffb.entry.js.map} +0 -0
- /package/dist/build/{p-dcdadaae.entry.js.map → p-f1ddba79.entry.js.map} +0 -0
- /package/dist/paperless/{p-2da67519.entry.js.map → p-05deb9ae.entry.js.map} +0 -0
- /package/dist/paperless/{p-e9639bb1.entry.js.map → p-0c2e3c88.entry.js.map} +0 -0
- /package/dist/paperless/{p-219db898.entry.js.map → p-2095ee8f.entry.js.map} +0 -0
- /package/dist/paperless/{p-c892b87a.entry.js.map → p-41dd9b39.entry.js.map} +0 -0
- /package/dist/paperless/{p-9e4cbacf.entry.js.map → p-67de510f.entry.js.map} +0 -0
- /package/dist/paperless/{p-3d4c4b9e.entry.js.map → p-852d7b88.entry.js.map} +0 -0
- /package/dist/paperless/{p-c3558fb4.entry.js.map → p-85cd2298.entry.js.map} +0 -0
- /package/dist/paperless/{p-bb7a5be7.entry.js.map → p-8f572f07.entry.js.map} +0 -0
- /package/dist/paperless/{p-ad3595e3.entry.js.map → p-a6c3b068.entry.js.map} +0 -0
- /package/dist/paperless/{p-8c62252b.entry.js.map → p-c31c40fb.entry.js.map} +0 -0
- /package/dist/paperless/{p-32f997e7.entry.js.map → p-da08e594.entry.js.map} +0 -0
- /package/dist/paperless/{p-e596d429.entry.js.map → p-dcd282d4.entry.js.map} +0 -0
- /package/dist/paperless/{p-aac11835.entry.js.map → p-e1705c60.entry.js.map} +0 -0
- /package/dist/paperless/{p-fa78c45a.entry.js.map → p-e8909ffb.entry.js.map} +0 -0
- /package/dist/paperless/{p-dcdadaae.entry.js.map → p-f1ddba79.entry.js.map} +0 -0
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment } from './p-tdjn65Lz.js';
|
|
2
2
|
import { c as cva } from './p-CBWjHURv.js';
|
|
3
|
-
import { d as defineCustomElement$
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$1 } from './p-BuB74H5T.js';
|
|
3
|
+
import { d as defineCustomElement$1, a as defaultSize, b as defaultSizeOptions } from './p-Co2ou8dJ.js';
|
|
4
|
+
import { d as defineCustomElement$9 } from './p-CDn6XmsX.js';
|
|
5
|
+
import { d as defineCustomElement$8 } from './p-CcIrqZQo.js';
|
|
6
|
+
import { d as defineCustomElement$7 } from './p-lEv83blc.js';
|
|
7
|
+
import { d as defineCustomElement$6 } from './p-K1js1IEU.js';
|
|
8
|
+
import { d as defineCustomElement$5 } from './p-CR0XljUt.js';
|
|
9
|
+
import { d as defineCustomElement$4 } from './p-C78xNd-5.js';
|
|
10
|
+
import { d as defineCustomElement$3 } from './p-CwukMUJw.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-G9IGIyxV.js';
|
|
13
12
|
|
|
14
13
|
const paginationComponentCss = "*{box-sizing:border-box}.static{position:static!important}.mx-0{margin-left:0!important;margin-right:0!important}.flex{display:flex!important}.hidden{display:none!important}.h-4{height:1rem!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}.rounded-full{border-radius:9999px!important}.border{border-width:1px!important}.border-off-white-700{--tw-border-opacity:1!important;border-color:rgb(222 219 213/var(--tw-border-opacity,1))!important}.bg-off-white-300{--tw-bg-opacity:1!important;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))!important}.p-1{padding:.25rem!important}.text-human-beige-700{--tw-text-opacity:1!important;color:rgb(231 216 203/var(--tw-text-opacity,1))!important}";
|
|
15
14
|
|
|
@@ -79,12 +78,12 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends H {
|
|
|
79
78
|
_hasPaginationPages = true;
|
|
80
79
|
render() {
|
|
81
80
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
82
|
-
return (h("div", { key: '
|
|
81
|
+
return (h("div", { key: '4b0d83ad61b35fe3d56f5bac21bef06b0b7bcd4b', class: pagination({
|
|
83
82
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
84
83
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
85
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '
|
|
84
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: 'b189f41a81cf20bbaeb27582f264089833ffa772' }, h("p-pagination-size", { key: '655bc99e3a85d6b78951481f922b55f10d1724a2', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
86
85
|
this.hideOnSinglePage &&
|
|
87
|
-
this._hasPaginationPages && (h("p-divider", { key: '
|
|
86
|
+
this._hasPaginationPages && (h("p-divider", { key: '09b1b30a03d377d11557b828dbe2ecf222ce0f52', variant: 'vertical', class: 'mx-0 h-4 text-human-beige-700' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: 'fa6a770cf3fac384027156c3e77ba0b28a20986c', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
|
|
88
87
|
this._hasPaginationPages = detail > 1;
|
|
89
88
|
this.pagesChange.emit(detail);
|
|
90
89
|
} }))));
|
|
@@ -111,7 +110,7 @@ function defineCustomElement() {
|
|
|
111
110
|
if (typeof customElements === "undefined") {
|
|
112
111
|
return;
|
|
113
112
|
}
|
|
114
|
-
const components = ["p-pagination", "p-checkbox", "p-divider", "p-dropdown", "p-dropdown-menu-container", "p-dropdown-menu-item", "p-icon", "p-pagination-pages", "p-pagination-pages-item", "p-pagination-size"
|
|
113
|
+
const components = ["p-pagination", "p-checkbox", "p-divider", "p-dropdown", "p-dropdown-menu-container", "p-dropdown-menu-item", "p-icon", "p-pagination-pages", "p-pagination-pages-item", "p-pagination-size"];
|
|
115
114
|
components.forEach(tagName => { switch (tagName) {
|
|
116
115
|
case "p-pagination":
|
|
117
116
|
if (!customElements.get(tagName)) {
|
|
@@ -119,51 +118,46 @@ function defineCustomElement() {
|
|
|
119
118
|
}
|
|
120
119
|
break;
|
|
121
120
|
case "p-checkbox":
|
|
122
|
-
if (!customElements.get(tagName)) {
|
|
123
|
-
defineCustomElement$a();
|
|
124
|
-
}
|
|
125
|
-
break;
|
|
126
|
-
case "p-divider":
|
|
127
121
|
if (!customElements.get(tagName)) {
|
|
128
122
|
defineCustomElement$9();
|
|
129
123
|
}
|
|
130
124
|
break;
|
|
131
|
-
case "p-
|
|
125
|
+
case "p-divider":
|
|
132
126
|
if (!customElements.get(tagName)) {
|
|
133
127
|
defineCustomElement$8();
|
|
134
128
|
}
|
|
135
129
|
break;
|
|
136
|
-
case "p-dropdown
|
|
130
|
+
case "p-dropdown":
|
|
137
131
|
if (!customElements.get(tagName)) {
|
|
138
132
|
defineCustomElement$7();
|
|
139
133
|
}
|
|
140
134
|
break;
|
|
141
|
-
case "p-dropdown-menu-
|
|
135
|
+
case "p-dropdown-menu-container":
|
|
142
136
|
if (!customElements.get(tagName)) {
|
|
143
137
|
defineCustomElement$6();
|
|
144
138
|
}
|
|
145
139
|
break;
|
|
146
|
-
case "p-
|
|
140
|
+
case "p-dropdown-menu-item":
|
|
147
141
|
if (!customElements.get(tagName)) {
|
|
148
142
|
defineCustomElement$5();
|
|
149
143
|
}
|
|
150
144
|
break;
|
|
151
|
-
case "p-
|
|
145
|
+
case "p-icon":
|
|
152
146
|
if (!customElements.get(tagName)) {
|
|
153
147
|
defineCustomElement$4();
|
|
154
148
|
}
|
|
155
149
|
break;
|
|
156
|
-
case "p-pagination-pages
|
|
150
|
+
case "p-pagination-pages":
|
|
157
151
|
if (!customElements.get(tagName)) {
|
|
158
152
|
defineCustomElement$3();
|
|
159
153
|
}
|
|
160
154
|
break;
|
|
161
|
-
case "p-pagination-
|
|
155
|
+
case "p-pagination-pages-item":
|
|
162
156
|
if (!customElements.get(tagName)) {
|
|
163
157
|
defineCustomElement$2();
|
|
164
158
|
}
|
|
165
159
|
break;
|
|
166
|
-
case "p-
|
|
160
|
+
case "p-pagination-size":
|
|
167
161
|
if (!customElements.get(tagName)) {
|
|
168
162
|
defineCustomElement$1();
|
|
169
163
|
}
|
|
@@ -173,6 +167,6 @@ function defineCustomElement() {
|
|
|
173
167
|
defineCustomElement();
|
|
174
168
|
|
|
175
169
|
export { Pagination as P, defineCustomElement as d };
|
|
176
|
-
//# sourceMappingURL=p-
|
|
170
|
+
//# sourceMappingURL=p-BcgYucFP.js.map
|
|
177
171
|
|
|
178
|
-
//# sourceMappingURL=p-
|
|
172
|
+
//# sourceMappingURL=p-BcgYucFP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-BcgYucFP.js","mappings":";;;;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,stBAAstB;;ACYrvB,MAAM,UAAU,GAAG,GAAG,CACrB;IACC,cAAc;IACd,oBAAoB;IACpB,cAAc;IACd,8CAA8C;IAC9C,KAAK;CACL,EACD;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,MAAM,EAAE;A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EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EACzD,CAAA,EAED,CAAC,kBAAkB;AACnB,YAAA,IAAI,CAAC,gBAAgB;AACrB,YAAA,IAAI,CAAC,mBAAmB,KACvB,kEACC,OAAO,EAAC,UAAU,EAClB,KAAK,EAAC,+BAA+B,EACpC,CAAA,CACF,CACQ,CACX,EAEA,IAAI,CAAC,qBAAqB,KAC1B,CAAA,CAAA,oBAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,YAAY,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,EAC1D,aAAa,EAAE,CAAC,EAAE,MAAM,EAAE,KAAI;AAC7B,gBAAA,IAAI,CAAC,mBAAmB,GAAG,MAAM,GAAG,CAAC;AACrC,gBAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC;AAC9B,aAAC,EACA,CAAA,CACF,CACI;;AAIA,IAAA,eAAe,CAAC,CAAU,EAAA;QACjC,IAAI,CAAC,CAAC,EAAE;YACP;;AAGD,QAAA,IAAI,CAAC,QAAQ,GAAG,CAAC;QACjB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/pagination/pagination/pagination.component.css?tag=p-pagination&encapsulation=shadow","src/components/molecules/pagination/pagination/pagination.component.tsx"],"sourcesContent":["","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\tFragment,\n\th,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { defaultSize, defaultSizeOptions } from '../size/constants';\n\nconst pagination = cva(\n\t[\n\t\t'p-pagination',\n\t\t'items-center gap-2',\n\t\t'rounded-full',\n\t\t'bg-off-white-300 border border-off-white-700',\n\t\t'p-1',\n\t],\n\t{\n\t\tvariants: {\n\t\t\thidden: {\n\t\t\t\tfalse: 'flex',\n\t\t\t\ttrue: 'hidden',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-pagination',\n\tstyleUrl: 'pagination.component.css',\n\tshadow: true,\n})\nexport class Pagination {\n\t/**\n\t * Wether to hide when there is only 1 page available\n\t */\n\t@Prop() hideOnSinglePage: boolean = true;\n\n\t/**\n\t * Wether to enable pagination size select\n\t */\n\t@Prop() enablePaginationSize: boolean = true;\n\n\t/**\n\t * Wether to enable pagination pages\n\t */\n\t@Prop() enablePaginationPages: boolean = true;\n\n\t/**\n\t * The current page\n\t */\n\t@Prop({ mutable: true, reflect: true }) page: number = 1;\n\n\t/**\n\t * The total amount of items\n\t */\n\t@Prop() total!: number;\n\n\t/**\n\t * The amount of items per page\n\t */\n\t@Prop() pageSize: number = defaultSize;\n\n\t/**\n\t * The options for the page size\n\t */\n\t@Prop() pageSizeOptions: number[] = defaultSizeOptions;\n\n\t/**\n\t * Event whenever the page changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tpageChange: EventEmitter<number>;\n\n\t/**\n\t * Event whenever the page changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tpageSizeChange: EventEmitter<number>;\n\n\t/**\n\t * The pages that were generated\n\t */\n\t@Event({ bubbles: false }) pagesChange: EventEmitter<number>;\n\n\t@State() private _hasPaginationPages = true;\n\n\trender() {\n\t\tconst hidePageSizeSelect =\n\t\t\tthis.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={pagination({\n\t\t\t\t\thidden:\n\t\t\t\t\t\t(hidePageSizeSelect && !this._hasPaginationPages) ||\n\t\t\t\t\t\t(!this.enablePaginationSize && !this.enablePaginationPages),\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{this.enablePaginationPages && this.enablePaginationSize && (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<p-pagination-size\n\t\t\t\t\t\t\thidden={hidePageSizeSelect}\n\t\t\t\t\t\t\tsize={this.pageSize}\n\t\t\t\t\t\t\tsizeOptions={this.pageSizeOptions}\n\t\t\t\t\t\t\tonSizeChange={({ detail }) => this._changePageSize(detail)}\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t{!hidePageSizeSelect &&\n\t\t\t\t\t\t\tthis.hideOnSinglePage &&\n\t\t\t\t\t\t\tthis._hasPaginationPages && (\n\t\t\t\t\t\t\t\t<p-divider\n\t\t\t\t\t\t\t\t\tvariant='vertical'\n\t\t\t\t\t\t\t\t\tclass='mx-0 h-4 text-human-beige-700'\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t</Fragment>\n\t\t\t\t)}\n\n\t\t\t\t{this.enablePaginationPages && (\n\t\t\t\t\t<p-pagination-pages\n\t\t\t\t\t\tpageSize={this.pageSize}\n\t\t\t\t\t\ttotal={this.total}\n\t\t\t\t\t\tpage={this.page}\n\t\t\t\t\t\thideOnSinglePage={this.hideOnSinglePage}\n\t\t\t\t\t\tonPageChange={({ detail }) => this.pageChange.emit(detail)}\n\t\t\t\t\t\tonPagesChange={({ detail }) => {\n\t\t\t\t\t\t\tthis._hasPaginationPages = detail > 1;\n\t\t\t\t\t\t\tthis.pagesChange.emit(detail);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _changePageSize(s?: number) {\n\t\tif (!s) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.pageSize = s;\n\t\tthis.pageSizeChange.emit(this.pageSize);\n\t}\n}\n"],"version":3}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-tdjn65Lz.js';
|
|
2
2
|
import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift } from './p-DGLCmOXW.js';
|
|
3
3
|
import { c as cva } from './p-CBWjHURv.js';
|
|
4
|
-
import { d as defineCustomElement$1 } from './p-BuB74H5T.js';
|
|
5
4
|
|
|
6
5
|
const tooltipComponentCss = "*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.z-tooltip{z-index:601!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-inherit{height:inherit!important}.w-\\[2px\\]{width:2px!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.w-max{width:max-content!important}.max-w-\\[14\\.5rem\\]{max-width:14.5rem!important}.max-w-\\[18rem\\]{max-width:18rem!important}.max-w-full{max-width:100%!important}.cursor-pointer{cursor:pointer!important}.gap-2{gap:.5rem!important}.whitespace-normal{white-space:normal!important}.rounded-lg{border-radius:.5rem!important}.bg-black-teal{--tw-bg-opacity:1!important;background-color:rgb(3 42 36/var(--tw-bg-opacity,1))!important}.bg-negative-red{background-color:rgb(230 30 30/var(--tw-bg-opacity,1))!important}.bg-negative-red,.bg-white{--tw-bg-opacity:1!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.blur{--tw-blur:blur(8px)!important}.blur,.drop-shadow-3{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow-3{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08)) drop-shadow(0 2px 2px rgba(0,2,2,.08)) drop-shadow(0 4px 4px rgba(0,2,2,.08))!important}.transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}";
|
|
7
6
|
|
|
@@ -20,7 +19,6 @@ const popover = cva([
|
|
|
20
19
|
error: 'max-w-full w-full',
|
|
21
20
|
},
|
|
22
21
|
strategy: {
|
|
23
|
-
none: null,
|
|
24
22
|
fixed: 'fixed',
|
|
25
23
|
absolute: 'absolute',
|
|
26
24
|
},
|
|
@@ -36,14 +34,6 @@ const popover = cva([
|
|
|
36
34
|
},
|
|
37
35
|
],
|
|
38
36
|
});
|
|
39
|
-
const portal = cva('', {
|
|
40
|
-
variants: {
|
|
41
|
-
strategy: {
|
|
42
|
-
fixed: 'fixed',
|
|
43
|
-
absolute: 'absolute',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
37
|
const Tooltip = /*@__PURE__*/ proxyCustomElement(class Tooltip extends H {
|
|
48
38
|
constructor() {
|
|
49
39
|
super();
|
|
@@ -79,10 +69,6 @@ const Tooltip = /*@__PURE__*/ proxyCustomElement(class Tooltip extends H {
|
|
|
79
69
|
* Wether to show the popover
|
|
80
70
|
*/
|
|
81
71
|
show = false;
|
|
82
|
-
/**
|
|
83
|
-
* Wether to use a portal for the tooltip
|
|
84
|
-
*/
|
|
85
|
-
usePortal = false;
|
|
86
72
|
/**
|
|
87
73
|
* Wether to someone can manually close the popover
|
|
88
74
|
*/
|
|
@@ -109,25 +95,10 @@ const Tooltip = /*@__PURE__*/ proxyCustomElement(class Tooltip extends H {
|
|
|
109
95
|
}
|
|
110
96
|
}
|
|
111
97
|
render() {
|
|
112
|
-
|
|
113
|
-
role: 'popover',
|
|
114
|
-
'data-placement': this.placement,
|
|
115
|
-
ref: el => this._load(el),
|
|
116
|
-
};
|
|
117
|
-
let tooltip;
|
|
118
|
-
const tooltipElement = (h("div", { key: '5b8e4981e1c23b0bc685afb8e885de720a9c83b4', class: popover({
|
|
98
|
+
return (h(Host, { key: 'd6ab4b6f7774e5aa3d937af0e971691507500121', class: 'flex cursor-pointer' }, h("div", { key: '8fbb31f4247abce89474b5c1ccc828ba676f1d03', class: 'relative h-inherit w-inherit max-w-full' }, h("slot", { key: '8f4d0b108d21e34a3c9f200b166ad1f7a664df03', name: 'trigger' }), h("div", { key: 'c76d04410413befbd925673e6c5ec1f56cbc4693', class: popover({
|
|
119
99
|
variant: this.variant,
|
|
120
|
-
strategy: this.
|
|
121
|
-
}),
|
|
122
|
-
if (this.usePortal) {
|
|
123
|
-
tooltip = (h("p-portal", { key: 'f95d3627310222bef65ed4c723b362422f29f95f', class: portal({
|
|
124
|
-
strategy: this.strategy,
|
|
125
|
-
}), ...tooltipProps }, tooltipElement));
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
tooltip = tooltipElement;
|
|
129
|
-
}
|
|
130
|
-
return (h(Host, { key: 'fd2906fbe53649091bcd522064dd95e8b92dd28f', class: 'flex cursor-pointer' }, h("div", { key: 'b56a6f5898dcd4617c58c8c40d49773b1ed8b0d3', class: 'relative h-inherit w-inherit max-w-full' }, h("slot", { key: '8f291aff8a9c2a8588c249a04aad8f35e2989b7d', name: 'trigger' }), tooltip)));
|
|
100
|
+
strategy: this.strategy,
|
|
101
|
+
}), role: 'popover', "data-placement": this.placement, ref: el => this._load(el) }, h("div", { key: '897588122ee994567d0d449c6a3c0f3e352a1a3b', class: 'flex gap-2 whitespace-normal' }, this.variant === 'error' && (h("div", { key: 'f4e370e5f721fe27309465223d5c61fa39ee62c7', class: 'w-[2px] bg-negative-red' })), this.content ? this.content : h("slot", { name: 'content' }))))));
|
|
131
102
|
}
|
|
132
103
|
clickHandler() {
|
|
133
104
|
if (this.variant === 'hover' || !this.enableUserInput) {
|
|
@@ -237,7 +208,6 @@ const Tooltip = /*@__PURE__*/ proxyCustomElement(class Tooltip extends H {
|
|
|
237
208
|
"strategy": [1],
|
|
238
209
|
"enableUserInput": [4, "enable-user-input"],
|
|
239
210
|
"show": [4],
|
|
240
|
-
"usePortal": [4, "use-portal"],
|
|
241
211
|
"canManuallyClose": [4, "can-manually-close"]
|
|
242
212
|
}, [[2, "click", "clickHandler"], [6, "click", "documentClickHandler"], [1, "mouseenter", "mouseEnterHandler"], [0, "focus", "mouseEnterHandler"], [1, "mouseleave", "mouseLeaveHandler"], [0, "blur", "mouseLeaveHandler"]], {
|
|
243
213
|
"show": ["onShowChange"]
|
|
@@ -246,23 +216,18 @@ function defineCustomElement() {
|
|
|
246
216
|
if (typeof customElements === "undefined") {
|
|
247
217
|
return;
|
|
248
218
|
}
|
|
249
|
-
const components = ["p-tooltip"
|
|
219
|
+
const components = ["p-tooltip"];
|
|
250
220
|
components.forEach(tagName => { switch (tagName) {
|
|
251
221
|
case "p-tooltip":
|
|
252
222
|
if (!customElements.get(tagName)) {
|
|
253
223
|
customElements.define(tagName, Tooltip);
|
|
254
224
|
}
|
|
255
225
|
break;
|
|
256
|
-
case "p-portal":
|
|
257
|
-
if (!customElements.get(tagName)) {
|
|
258
|
-
defineCustomElement$1();
|
|
259
|
-
}
|
|
260
|
-
break;
|
|
261
226
|
} });
|
|
262
227
|
}
|
|
263
228
|
defineCustomElement();
|
|
264
229
|
|
|
265
230
|
export { Tooltip as T, defineCustomElement as d };
|
|
266
|
-
//# sourceMappingURL=p-
|
|
231
|
+
//# sourceMappingURL=p-BnizPYo3.js.map
|
|
267
232
|
|
|
268
|
-
//# sourceMappingURL=p-
|
|
233
|
+
//# sourceMappingURL=p-BnizPYo3.js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M,IAAI,CAAC,KAAK,EAAE,EAAE,GAAG,CAAC;;;;IAK9B,OAAO,GAAA;AACd,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YACnB;;QAGD,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE;YACxC,SAAS,EACR,IAAI,CAAC,OAAO,KAAK,OAAO,IAAI,CAAC,IAAI,CAAC;AACjC,kBAAE;AACF,kBAAE,IAAI,CAAC,SAAS,IAAI,KAAK;YAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;AAEvB,YAAA,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC;AAClD,SAAA,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAI;YAC/B,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS;YAC3C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE;gBAClC,GAAG,EAAE,CAAG,EAAA,CAAC,CAAI,EAAA,CAAA;gBACb,IAAI,EAAE,CAAG,EAAA,CAAC,CAAI,EAAA,CAAA;AACd,aAAA,CAAC;AACH,SAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/atoms/tooltip/tooltip.component.css?tag=p-tooltip&encapsulation=shadow","src/components/atoms/tooltip/tooltip.component.tsx"],"sourcesContent":["","import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst popover = cva(\n\t[\n\t\t'inline-block px-2',\n\t\t'text-xs',\n\t\t'opacity-0 drop-shadow-3 transition-opacity',\n\t\t'rounded-lg',\n\n\t\t'z-tooltip',\n\t\t'pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\thover: 'bg-black-teal text-white py-1 max-w-[14.5rem]',\n\t\t\t\tclick: 'max-w-[18rem]',\n\t\t\t\terror: 'max-w-full w-full',\n\t\t\t},\n\t\t\tstrategy: {\n\t\t\t\tfixed: 'fixed',\n\t\t\t\tabsolute: 'absolute',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: ['hover', 'click'],\n\t\t\t\tclass: 'w-max',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['click', 'error'],\n\t\t\t\tclass: 'bg-white text-black-teal-300 py-2',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-tooltip',\n\tstyleUrl: 'tooltip.component.css',\n\tshadow: true,\n})\nexport class Tooltip {\n\t/**\n\t * The variant of the popover\n\t */\n\t@Prop() variant: 'hover' | 'click' | 'error' = 'hover';\n\n\t/**\n\t * The content of the popover\n\t */\n\t@Prop() content: any = null;\n\n\t/**\n\t * The placement of the popover\n\t */\n\t@Prop() placement: Placement;\n\n\t/**\n\t * The offset of the popover\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the popover placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether the tooltip can be shown by user input\n\t */\n\t@Prop() enableUserInput: boolean = true;\n\n\t/**\n\t * Wether to show the popover\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to someone can manually close the popover\n\t */\n\t@Prop() canManuallyClose: boolean = true;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasContentSlot = false;\n\n\tprivate _loaded = false;\n\tprivate _popover: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentWillLoad() {\n\t\tthis._hasContentSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"content\"]'\n\t\t);\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='flex cursor-pointer'>\n\t\t\t\t<div class='relative h-inherit w-inherit max-w-full'>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={popover({\n\t\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\t\tstrategy: this.strategy,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\trole='popover'\n\t\t\t\t\t\tdata-placement={this.placement}\n\t\t\t\t\t\tref={el => this._load(el)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<div class='flex gap-2 whitespace-normal'>\n\t\t\t\t\t\t\t{this.variant === 'error' && (\n\t\t\t\t\t\t\t\t<div class='w-[2px] bg-negative-red'></div>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{this.content ? this.content : <slot name='content' />}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { capture: true })\n\tprotected clickHandler() {\n\t\tif (this.variant === 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler() {\n\t\tif (this.variant === 'hover' || !this.canManuallyClose || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Listen('mouseenter')\n\t@Listen('focus')\n\tprotected mouseEnterHandler() {\n\t\tif (this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('mouseleave')\n\t@Listen('blur')\n\tprotected mouseLeaveHandler() {\n\t\tif (this.show || this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Watch('show')\n\tonShowChange(show: boolean) {\n\t\tif (show && !this._popover.hasAttribute('data-show')) {\n\t\t\treturn this._show();\n\t\t}\n\n\t\treturn this._hide();\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.content?.length && !this._hasContentSlot) {\n\t\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\t\tthis._hide();\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._popover, () => this._update());\n\n\t\t// Make the popover visible\n\t\tthis._popover.setAttribute('data-show', '');\n\n\t\tthis._popover.classList.remove('opacity-0', 'pointer-events-none');\n\t\tthis._popover.classList.add('opacity-100', 'pointer-events-auto');\n\n\t\t// Update its position\n\t\tthis.isOpen.emit(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._popover.removeAttribute('data-show');\n\n\t\tthis._popover.classList.remove('opacity-100', 'pointer-events-auto');\n\t\tthis._popover.classList.add('opacity-0', 'pointer-events-none');\n\n\t\tthis.isOpen.emit(false);\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._popover = popover;\n\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _update() {\n\t\tif (!this._popover) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._popover, {\n\t\t\tplacement:\n\t\t\t\tthis.variant === 'error' && !this.placement\n\t\t\t\t\t? 'bottom-start'\n\t\t\t\t\t: this.placement ?? 'top',\n\t\t\tstrategy: this.strategy,\n\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._popover.dataset.placement = placement;\n\t\t\tObject.assign(this._popover.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"],"version":3}
|
|
@@ -32,9 +32,9 @@ const Range = /*@__PURE__*/ proxyCustomElement(class Range extends H {
|
|
|
32
32
|
valueChange;
|
|
33
33
|
render() {
|
|
34
34
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: 'f2c856a49821def3b629c74aa469f0f935667c4d', class: 'flex w-inherit items-center gap-2 text-black-teal-300' }, h("p-icon", { key: 'b792ee55eedb8867a01e71fb8b8d0eaab45086df', variant: 'minus' }), h("div", { key: 'ee0a66d3fc146f1a271f760f004427efdbc97353', class: 'relative h-6 flex-1' }, h("input", { key: 'd41ba5c2e1c538612010409dfc92924406702963', type: 'range', min: this.min, max: this.max, step: this.step, value: this.value, onInput: ev => this.valueChange.emit(ev.target.value) }), h("div", { key: '4403384b300b9aa0d4ea85e7e7f7ee3a603d8266', class: 'z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform bg-black-teal-300', style: {
|
|
36
36
|
width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
|
|
37
|
-
} })), h("p-icon", { key: '
|
|
37
|
+
} })), h("p-icon", { key: '9380cdc43b6518e4aa446aa8d0fe76c1c785a084', variant: 'plus' })));
|
|
38
38
|
}
|
|
39
39
|
static get style() { return rangeComponentCss; }
|
|
40
40
|
}, [1, "p-range", {
|
|
@@ -64,6 +64,6 @@ function defineCustomElement() {
|
|
|
64
64
|
defineCustomElement();
|
|
65
65
|
|
|
66
66
|
export { Range as R, defineCustomElement as d };
|
|
67
|
-
//# sourceMappingURL=p-
|
|
67
|
+
//# sourceMappingURL=p-C0orhMYr.js.map
|
|
68
68
|
|
|
69
|
-
//# sourceMappingURL=p-
|
|
69
|
+
//# sourceMappingURL=p-C0orhMYr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-
|
|
1
|
+
{"file":"p-C0orhMYr.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,q/EAAq/E;;MCOlgF,KAAK,iBAAAA,kBAAA,CAAA,MAAA,KAAA,SAAAC,CAAA,CAAA;;;;;;;AACjB;;AAEG;IACK,GAAG,GAAW,CAAC;AAEvB;;AAEG;IACK,GAAG,GAAW,GAAG;AAEzB;;AAEG;IACK,IAAI,GAAW,GAAG;AAE1B;;AAEG;IACK,KAAK,GAAW,CAAC;AAEzB;;AAEG;AACwB,IAAA,WAAW;IAEtC,MAAM,GAAA;QACL,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;QAEzE,QACC,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,uDAAuD,EAAA,EACjE,CAAQ,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,OAAO,EAAC,OAAO,EAAG,CAAA,EAC1B,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,qBAAqB,EAAA,EAC/B,CACC,CAAA,OAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,OAAO,EACZ,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,EAAE,IACV,IAAI,CAAC,WAAW,CAAC,IAAI,CAAE,EAAE,CAAC,MAA2B,CAAC,KAAK,CAAC,EAE5D,CAAA,EACF,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACC,KAAK,EAAC,kFAAkF,EACxF,KAAK,EAAE;AACN,gBAAA,KAAK,EAAE,CAAA,KAAA,EAAQ,UAAU,CAAA,YAAA,EAAe,UAAU,CAAU,QAAA,CAAA;AAC5D,aAAA,EAAA,CACK,CACF,EACN,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,OAAO,EAAC,MAAM,EAAG,CAAA,CACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/range/range.component.css?tag=p-range&encapsulation=shadow","src/components/molecules/range/range.component.tsx"],"sourcesContent":[":host {\n\tinput {\n\t\t@apply m-0 h-6 w-full appearance-none;\n\t}\n\n\tinput::-webkit-slider-runnable-track {\n\t\t@apply h-[2px] bg-off-white-700;\n\t}\n\n\tinput::-moz-range-track {\n\t\t@apply h-[2px] bg-off-white-700;\n\t}\n\n\tinput::-webkit-slider-thumb {\n\t\t@apply mt-[calc((0.5rem-1px)*-1)] h-4 w-4 appearance-none rounded-full border-0;\n\t\t@apply bg-black-teal-300 hover:cursor-grab hover:bg-black-teal active:cursor-grabbing active:bg-black-teal;\n\t}\n\n\tinput::-moz-range-thumb {\n\t\t@apply h-4 w-4 rounded-full border-0;\n\t\t@apply bg-black-teal-300 hover:cursor-grab hover:bg-black-teal active:cursor-grabbing active:bg-black-teal;\n\t}\n}\n","import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-range',\n\tstyleUrl: 'range.component.css',\n\tshadow: true,\n})\nexport class Range {\n\t/**\n\t * The min value of the range\n\t */\n\t@Prop() min: number = 0;\n\n\t/**\n\t * The max value of the range\n\t */\n\t@Prop() max: number = 100;\n\n\t/**\n\t * The steps to go by\n\t */\n\t@Prop() step: number = 0.5;\n\n\t/**\n\t * The current value of the range\n\t */\n\t@Prop() value: number = 0;\n\n\t/**\n\t * Event whenever the value changes\n\t */\n\t@Event({ bubbles: false }) valueChange: EventEmitter<string>;\n\n\trender() {\n\t\tconst percentage = Math.round((this.value / (this.max - this.min)) * 100);\n\n\t\treturn (\n\t\t\t<div class='flex w-inherit items-center gap-2 text-black-teal-300'>\n\t\t\t\t<p-icon variant='minus' />\n\t\t\t\t<div class='relative h-6 flex-1'>\n\t\t\t\t\t<input\n\t\t\t\t\t\ttype='range'\n\t\t\t\t\t\tmin={this.min}\n\t\t\t\t\t\tmax={this.max}\n\t\t\t\t\t\tstep={this.step}\n\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\tonInput={ev =>\n\t\t\t\t\t\t\tthis.valueChange.emit((ev.target as HTMLInputElement).value)\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass='z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform bg-black-teal-300'\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\twidth: `calc(${percentage}% - (1rem * ${percentage} / 100))`,\n\t\t\t\t\t\t}}\n\t\t\t\t\t></div>\n\t\t\t\t</div>\n\t\t\t\t<p-icon variant='plus' />\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -2,12 +2,11 @@ import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
|
|
|
2
2
|
import { f as formatTranslation, g as getLocaleComponentStrings } from './p-DiJj8rmO.js';
|
|
3
3
|
import { c as cva } from './p-CBWjHURv.js';
|
|
4
4
|
import { a as asBoolean } from './p-C5CTp9IA.js';
|
|
5
|
-
import { d as defineCustomElement$
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$1 } from './p-BuB74H5T.js';
|
|
5
|
+
import { d as defineCustomElement$5 } from './p-CDn6XmsX.js';
|
|
6
|
+
import { d as defineCustomElement$4 } from './p-lEv83blc.js';
|
|
7
|
+
import { d as defineCustomElement$3 } from './p-K1js1IEU.js';
|
|
8
|
+
import { d as defineCustomElement$2 } from './p-CR0XljUt.js';
|
|
9
|
+
import { d as defineCustomElement$1 } from './p-C78xNd-5.js';
|
|
11
10
|
|
|
12
11
|
const defaultSize = 12;
|
|
13
12
|
const defaultSizeOptions = [12, 24, 68, 136];
|
|
@@ -76,11 +75,11 @@ const PaginationSize = /*@__PURE__*/ proxyCustomElement(class PaginationSize ext
|
|
|
76
75
|
this._setLocales();
|
|
77
76
|
}
|
|
78
77
|
render() {
|
|
79
|
-
return (h(Host, { key: '0bedacfb0ced2a2d1c0563899fa0992d340fe32d', class: paginationSize({ hidden: asBoolean(this.hidden) }) }, h("p-dropdown", { key: '
|
|
78
|
+
return (h(Host, { key: '0bedacfb0ced2a2d1c0563899fa0992d340fe32d', class: paginationSize({ hidden: asBoolean(this.hidden) }) }, h("p-dropdown", { key: '4e2bd4c3f2b7cdca473aac3dc117c64ccd9afd92', applyFullWidth: true, applyMaxWidth: false, variant: 'dark-teal', placement: 'top-start', chevronDirection: 'down', onIsOpen: ({ detail }) => (this.dropdownIsOpen = detail) }, h("div", { key: '7d671786ce4a1b9fb54ba4455c852cbd2a23fab5', class: trigger({
|
|
80
79
|
active: this.dropdownIsOpen,
|
|
81
|
-
}), slot: 'trigger' }, h("p", { key: '
|
|
80
|
+
}), slot: 'trigger' }, h("p", { key: '27d0ae9cd6788bf3a9d1f9e7a4b6567917d720f9', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap' }, this.itemTemplate
|
|
82
81
|
? this.itemTemplate(this.size)
|
|
83
|
-
: this._defaultItemTemplate(this.size)), h("p-icon", { key: '
|
|
82
|
+
: this._defaultItemTemplate(this.size)), h("p-icon", { key: 'f7a955f8dfc6827cec5b4acbe2b32e66b3c5d8da', class: 'flex-shrink-0', variant: 'double-caret', size: 'sm' })), h("slot", { key: 'aad2297e00c21b575b52a42755bcfd17a7893fb4', slot: 'items' }, this.sizeOptions.map(option => (h("p-dropdown-menu-item", { active: option === this.size, onClick: () => this._changeSize(option) }, this.itemTemplate
|
|
84
83
|
? this.itemTemplate(option)
|
|
85
84
|
: this._defaultItemTemplate(option))))))));
|
|
86
85
|
}
|
|
@@ -107,7 +106,7 @@ function defineCustomElement() {
|
|
|
107
106
|
if (typeof customElements === "undefined") {
|
|
108
107
|
return;
|
|
109
108
|
}
|
|
110
|
-
const components = ["p-pagination-size", "p-checkbox", "p-dropdown", "p-dropdown-menu-container", "p-dropdown-menu-item", "p-icon"
|
|
109
|
+
const components = ["p-pagination-size", "p-checkbox", "p-dropdown", "p-dropdown-menu-container", "p-dropdown-menu-item", "p-icon"];
|
|
111
110
|
components.forEach(tagName => { switch (tagName) {
|
|
112
111
|
case "p-pagination-size":
|
|
113
112
|
if (!customElements.get(tagName)) {
|
|
@@ -115,31 +114,26 @@ function defineCustomElement() {
|
|
|
115
114
|
}
|
|
116
115
|
break;
|
|
117
116
|
case "p-checkbox":
|
|
118
|
-
if (!customElements.get(tagName)) {
|
|
119
|
-
defineCustomElement$6();
|
|
120
|
-
}
|
|
121
|
-
break;
|
|
122
|
-
case "p-dropdown":
|
|
123
117
|
if (!customElements.get(tagName)) {
|
|
124
118
|
defineCustomElement$5();
|
|
125
119
|
}
|
|
126
120
|
break;
|
|
127
|
-
case "p-dropdown
|
|
121
|
+
case "p-dropdown":
|
|
128
122
|
if (!customElements.get(tagName)) {
|
|
129
123
|
defineCustomElement$4();
|
|
130
124
|
}
|
|
131
125
|
break;
|
|
132
|
-
case "p-dropdown-menu-
|
|
126
|
+
case "p-dropdown-menu-container":
|
|
133
127
|
if (!customElements.get(tagName)) {
|
|
134
128
|
defineCustomElement$3();
|
|
135
129
|
}
|
|
136
130
|
break;
|
|
137
|
-
case "p-
|
|
131
|
+
case "p-dropdown-menu-item":
|
|
138
132
|
if (!customElements.get(tagName)) {
|
|
139
133
|
defineCustomElement$2();
|
|
140
134
|
}
|
|
141
135
|
break;
|
|
142
|
-
case "p-
|
|
136
|
+
case "p-icon":
|
|
143
137
|
if (!customElements.get(tagName)) {
|
|
144
138
|
defineCustomElement$1();
|
|
145
139
|
}
|
|
@@ -149,6 +143,6 @@ function defineCustomElement() {
|
|
|
149
143
|
defineCustomElement();
|
|
150
144
|
|
|
151
145
|
export { PaginationSize as P, defaultSize as a, defaultSizeOptions as b, defineCustomElement as d };
|
|
152
|
-
//# sourceMappingURL=p-
|
|
146
|
+
//# sourceMappingURL=p-Co2ou8dJ.js.map
|
|
153
147
|
|
|
154
|
-
//# sourceMappingURL=p-
|
|
148
|
+
//# sourceMappingURL=p-Co2ou8dJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-Co2ou8dJ.js","mappings":";;;;;;;;;;AAAO,MAAM,WAAW,GAAG;AACpB,MAAM,kBAAkB,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG;;ACDlD,MAAM,0BAA0B,GAAG,+nCAA+nC;;ACqBlqC,MAAM,cAAc,GAAG,GAAG,CAAC,mBAAmB,EAAE;AAC/C,IAAA,QAAQ,EAAE;AACT,QAAA,MAAM,EAAE;AACP,YAAA,KAAK,EAAE,IAAI;AACX,YAAA,IAAI,EAAE,QAAQ;AACd,SAAA;AACD,KAAA;AACD,CAAA,CAAC;AAEF,MAAM,OAAO,GAAG,GAAG,CAClB;IACC,yBAAyB;IACzB,UAAU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LElement"],"sources":["src/components/molecules/pagination/size/constants.tsx","src/components/molecules/pagination/size/pagination-size.component.css?tag=p-pagination-size&encapsulation=shadow","src/components/molecules/pagination/size/pagination-size.component.tsx"],"sourcesContent":["export const defaultSize = 12;\nexport const defaultSizeOptions = [12, 24, 68, 136];\n","","import {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport {\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils/localization';\nimport { defaultSize, defaultSizeOptions } from './constants';\nimport { cva } from 'class-variance-authority';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nexport type templateFunc = (value: number) => string;\n\nconst paginationSize = cva('p-pagination-size', {\n\tvariants: {\n\t\thidden: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'hidden',\n\t\t},\n\t},\n});\n\nconst trigger = cva(\n\t[\n\t\t'flex items-center gap-2',\n\t\t'px-2 h-6',\n\t\t'text-sm text-white font-medium ',\n\t\t'cursor-pointer rounded-full',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tactive: {\n\t\t\t\tfalse: 'bg-dark-teal-400 hover:bg-dark-teal-500',\n\t\t\t\ttrue: 'bg-dark-teal-600',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-pagination-size',\n\tstyleUrl: 'pagination-size.component.css',\n\tshadow: true,\n})\nexport class PaginationSize {\n\tprivate _defaultItemTemplate: templateFunc = size =>\n\t\tformatTranslation(this._locales.item, { size });\n\t/**\n\t * The current page\n\t */\n\t@Prop({ mutable: true, reflect: true }) size: number = defaultSize;\n\n\t/**\n\t * The available sizes\n\t */\n\t@Prop() sizeOptions: number[] = defaultSizeOptions;\n\n\t/**\n\t * Event whenever the size changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tsizeChange: EventEmitter<number>;\n\n\t/**\n\t * The template for the data view\n\t */\n\t@Prop() itemTemplate: templateFunc = this._defaultItemTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Wether to hide when there is only 1 page available\n\t */\n\t@Prop() hidden: boolean = false;\n\n\t/**\n\t * Wether the dropdown is open\n\t */\n\t@State() dropdownIsOpen = false;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={paginationSize({ hidden: asBoolean(this.hidden) })}>\n\t\t\t\t<p-dropdown\n\t\t\t\t\tapplyFullWidth={true}\n\t\t\t\t\tapplyMaxWidth={false}\n\t\t\t\t\tvariant='dark-teal'\n\t\t\t\t\tplacement='top-start'\n\t\t\t\t\tchevronDirection='down'\n\t\t\t\t\tonIsOpen={({ detail }) => (this.dropdownIsOpen = detail)}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={trigger({\n\t\t\t\t\t\t\tactive: this.dropdownIsOpen,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t>\n\t\t\t\t\t\t<p class='min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap'>\n\t\t\t\t\t\t\t{this.itemTemplate\n\t\t\t\t\t\t\t\t? this.itemTemplate(this.size)\n\t\t\t\t\t\t\t\t: this._defaultItemTemplate(this.size)}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tclass='flex-shrink-0'\n\t\t\t\t\t\t\tvariant='double-caret'\n\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<slot slot='items'>\n\t\t\t\t\t\t{this.sizeOptions.map(option => (\n\t\t\t\t\t\t\t<p-dropdown-menu-item\n\t\t\t\t\t\t\t\tactive={option === this.size}\n\t\t\t\t\t\t\t\tonClick={() => this._changeSize(option)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.itemTemplate\n\t\t\t\t\t\t\t\t\t? this.itemTemplate(option)\n\t\t\t\t\t\t\t\t\t: this._defaultItemTemplate(option)}\n\t\t\t\t\t\t\t</p-dropdown-menu-item>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</slot>\n\t\t\t\t</p-dropdown>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _changeSize(s?: number) {\n\t\tif (!s) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.size = s;\n\t\tthis.sizeChange.emit(this.size);\n\t}\n}\n"],"version":3}
|
|
@@ -51,7 +51,7 @@ const PaginationPages = /*@__PURE__*/ proxyCustomElement(class PaginationPages e
|
|
|
51
51
|
this._generate();
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h("div", { key: '
|
|
54
|
+
return (h("div", { key: 'bccb65d88acb1a7c75ab3ad452ad87c4254cc30c', class: pagination({
|
|
55
55
|
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
56
56
|
}) }, this._set?.map(p => {
|
|
57
57
|
if (p.type === 'previous' || p.type === 'next') {
|
|
@@ -242,6 +242,6 @@ function defineCustomElement() {
|
|
|
242
242
|
defineCustomElement();
|
|
243
243
|
|
|
244
244
|
export { PaginationPages as P, defineCustomElement as d };
|
|
245
|
-
//# sourceMappingURL=p-
|
|
245
|
+
//# sourceMappingURL=p-CwukMUJw.js.map
|
|
246
246
|
|
|
247
|
-
//# sourceMappingURL=p-
|
|
247
|
+
//# sourceMappingURL=p-CwukMUJw.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-C9wY-Brb.js","mappings":";;;;;AAAA,MAAM,2BAA2B,GAAG,8LAA8L;;ACQlO,MAAM,UAAU,GAAG,GAAG,CAAC,CAAC,cAAc,EAAE,yBAAyB,CAA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AAC,MAAM,GAAG,CAAC,CAAC;AAC1C,aAAA,CAAC;;QAGH,IAAI,gBAAgB,EAAE;AACrB,YAAA,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;;AAGf,QAAA,OAAO,GAAG;AACX,KAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/pagination/pages/pagination-pages.component.css?tag=p-pagination-pages&encapsulation=shadow","src/components/molecules/pagination/pages/pagination-pages.component.tsx"],"sourcesContent":["","import { Component, Event, EventEmitter, h, Prop, Watch } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\ntype PaginationSetItem = {\n\ttype: string;\n\tvalue?: number | Element | JSX.Element | string;\n};\n\nconst pagination = cva(['p-pagination', 'flex gap-2 items-center'], {\n\tvariants: {\n\t\thidden: {\n\t\t\tfalse: 'flex',\n\t\t\ttrue: 'hidden',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-pagination-pages',\n\tstyleUrl: 'pagination-pages.component.css',\n\tshadow: true,\n})\nexport class PaginationPages {\n\t/**\n\t * The current page\n\t */\n\t@Prop({ mutable: true, reflect: true }) page: number = 1;\n\n\t/**\n\t * Event whenever the page changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tpageChange: EventEmitter<number>;\n\n\t/**\n\t * The amount of items per page\n\t */\n\t@Prop() pageSize: number = 12;\n\n\t/**\n\t * Wether to hide when there is only 1 page available\n\t */\n\t@Prop() hideOnSinglePage: boolean = false;\n\n\t/**\n\t * The total amount of items\n\t */\n\t@Prop() total!: number;\n\n\t/**\n\t * The pages that were generated\n\t */\n\t@Event({ bubbles: false }) pagesChange: EventEmitter<number>;\n\n\tprivate _pages: number[] = [];\n\tprivate _set: PaginationSetItem[] = [];\n\n\tcomponentWillRender() {\n\t\tthis._generate();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={pagination({\n\t\t\t\t\thidden: this.hideOnSinglePage && this._set?.length === 3,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{this._set?.map(p => {\n\t\t\t\t\tif (p.type === 'previous' || p.type === 'next') {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<p-pagination-pages-item\n\t\t\t\t\t\t\t\tvariant='carousel'\n\t\t\t\t\t\t\t\tdisabled={this._carouselDisabled(p.type)}\n\t\t\t\t\t\t\t\tonClick={() =>\n\t\t\t\t\t\t\t\t\tp.type === 'previous'\n\t\t\t\t\t\t\t\t\t\t? this._previousClick()\n\t\t\t\t\t\t\t\t\t\t: this._nextClick()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{p.value}\n\t\t\t\t\t\t\t</p-pagination-pages-item>\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (p.type === 'ellipsis') {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<p-pagination-pages-item hover={false}>\n\t\t\t\t\t\t\t\t...\n\t\t\t\t\t\t\t</p-pagination-pages-item>\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<p-pagination-pages-item\n\t\t\t\t\t\t\tactive={p.value === this.page}\n\t\t\t\t\t\t\tonClick={() => this._pageClick(p.value as number)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{p.value}\n\t\t\t\t\t\t</p-pagination-pages-item>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</div>\n\t\t);\n\t}\n\n\t@Watch('page')\n\t@Watch('pageSize')\n\t@Watch('total')\n\tprotected pageChangeHandler() {\n\t\tthis._generate();\n\t}\n\n\tprivate _generate() {\n\t\tthis._pages = this._generatePages();\n\t\tthis._set = this._generateSet();\n\n\t\tif (this.page > this._pages?.length) {\n\t\t\tthis._changePage(this._pages.length);\n\t\t}\n\t}\n\n\tprivate _changePage(p?: number) {\n\t\tif (!p) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.page = p;\n\t\tthis.pageChange.emit(this.page);\n\t}\n\n\tprivate _previousClick() {\n\t\tif (this._carouselDisabled('previous')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._changePage(this.page - 1);\n\t}\n\n\tprivate _nextClick = () => {\n\t\tif (this._carouselDisabled('next')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._changePage(this.page + 1);\n\t};\n\n\tprivate _carouselDisabled = (type: 'previous' | 'next') => {\n\t\tif (type === 'next') {\n\t\t\tconst nextPage = this.page + 1;\n\t\t\tif (nextPage > this._pages[this._pages.length - 1]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif (type === 'previous') {\n\t\t\tconst previousPage = this.page - 1;\n\t\t\tif (previousPage < this._pages[0]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t};\n\n\tprivate _pageClick = (p?: number) => this._changePage(p);\n\n\tprivate _generatePages() {\n\t\tif (!this.total || !this.pageSize) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst pages = Math.ceil(this.total / this.pageSize);\n\t\tthis.pagesChange.emit(pages);\n\t\treturn new Array(pages).fill(undefined).map((_, i) => i + 1);\n\t}\n\n\tprivate _generateSet = (\n\t\trange: number = 1,\n\t\tenableBoundaries: boolean = true\n\t): PaginationSetItem[] => {\n\t\tconst totalPages = this._pages.length;\n\n\t\tif (!totalPages) {\n\t\t\treturn [];\n\t\t}\n\n\t\tlet start = this.page - range;\n\t\tlet end = this.page + range;\n\n\t\tif (end > totalPages) {\n\t\t\tend = totalPages;\n\t\t\tstart = totalPages - range * 2;\n\t\t\tstart = start < 1 ? 1 : start;\n\t\t}\n\n\t\tif (start <= 1) {\n\t\t\tstart = 1;\n\t\t\tend = Math.min(range * 2 + 1, totalPages);\n\t\t}\n\n\t\tconst set = [];\n\n\t\tconst previous = {\n\t\t\ttype: 'previous',\n\t\t\tvalue: (\n\t\t\t\t<p-icon\n\t\t\t\t\tvariant='caret'\n\t\t\t\t\tsize='sm'\n\t\t\t\t\trotate={90}\n\t\t\t\t/>\n\t\t\t),\n\t\t};\n\n\t\tconst next = {\n\t\t\ttype: 'next',\n\t\t\tvalue: (\n\t\t\t\t<p-icon\n\t\t\t\t\tvariant='caret'\n\t\t\t\t\tsize='sm'\n\t\t\t\t\trotate={-90}\n\t\t\t\t/>\n\t\t\t),\n\t\t};\n\n\t\t// Disable page range, display all the pages\n\t\tif (range === null) {\n\t\t\tconst p = this._pages.map(p => ({\n\t\t\t\ttype: 'page',\n\t\t\t\tvalue: p,\n\t\t\t}));\n\n\t\t\treturn enableBoundaries ? [previous, ...p, next] : p;\n\t\t}\n\n\t\tif (enableBoundaries) {\n\t\t\tset.push(previous);\n\t\t}\n\n\t\tif (start <= 3) {\n\t\t\tfor (let i = 1; i < start; i++) {\n\t\t\t\tset.push({\n\t\t\t\t\ttype: 'page',\n\t\t\t\t\tvalue: this._pages[i - 1],\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tset.push({\n\t\t\t\ttype: 'page',\n\t\t\t\tvalue: 1,\n\t\t\t});\n\n\t\t\tset.push({\n\t\t\t\ttype: 'ellipsis',\n\t\t\t\tvalue: 'ellipsis',\n\t\t\t});\n\t\t}\n\n\t\tfor (let i = start; i <= end; i++) {\n\t\t\tset.push({\n\t\t\t\ttype: 'page',\n\t\t\t\tvalue: this._pages[i - 1],\n\t\t\t});\n\t\t}\n\n\t\tif (end >= totalPages - 2) {\n\t\t\tfor (let i = end + 1; i <= totalPages; i++) {\n\t\t\t\tset.push({\n\t\t\t\t\ttype: 'page',\n\t\t\t\t\tvalue: this._pages[i - 1],\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tset.push({\n\t\t\t\ttype: 'ellipsis',\n\t\t\t});\n\n\t\t\tset.push({\n\t\t\t\ttype: 'page',\n\t\t\t\tvalue: this._pages[this._pages.length - 1],\n\t\t\t});\n\t\t}\n\n\t\tif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CAAC;;;aAEG;YACN,GAAG,CAAC,IAAI,CAAC;AACR,gBAAA,IAAI,EAAE,UAAU;AAChB,aAAA,CAAC;YAEF,GAAG,CAAC,IAAI,CAAC;AACR,gBAAA,IAAI,EAAE,MAAM;AACZ,gBAAA,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1C,aAAA,CAAC;;QAGH,IAAI,gBAAgB,EAAE;AACrB,YAAA,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;;AAGf,QAAA,OAAO,GAAG;AACX,KAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/pagination/pages/pagination-pages.component.css?tag=p-pagination-pages&encapsulation=shadow","src/components/molecules/pagination/pages/pagination-pages.component.tsx"],"sourcesContent":["","import { Component, Event, EventEmitter, h, Prop, Watch } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\ntype PaginationSetItem = {\n\ttype: string;\n\tvalue?: number | Element | JSX.Element | string;\n};\n\nconst pagination = cva(['p-pagination', 'flex gap-2 items-center'], {\n\tvariants: {\n\t\thidden: {\n\t\t\tfalse: 'flex',\n\t\t\ttrue: 'hidden',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-pagination-pages',\n\tstyleUrl: 'pagination-pages.component.css',\n\tshadow: true,\n})\nexport class PaginationPages {\n\t/**\n\t * The current page\n\t */\n\t@Prop({ mutable: true, reflect: true }) page: number = 1;\n\n\t/**\n\t * Event whenever the page changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tpageChange: EventEmitter<number>;\n\n\t/**\n\t * The amount of items per page\n\t */\n\t@Prop() pageSize: number = 12;\n\n\t/**\n\t * Wether to hide when there is only 1 page available\n\t */\n\t@Prop() hideOnSinglePage: boolean = false;\n\n\t/**\n\t * The total amount of items\n\t */\n\t@Prop() total!: number;\n\n\t/**\n\t * The pages that were generated\n\t */\n\t@Event({ bubbles: false }) pagesChange: EventEmitter<number>;\n\n\tprivate _pages: number[] = [];\n\tprivate _set: PaginationSetItem[] = [];\n\n\tcomponentWillRender() {\n\t\tthis._generate();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={pagination({\n\t\t\t\t\thidden: this.hideOnSinglePage && this._set?.length === 3,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{this._set?.map(p => {\n\t\t\t\t\tif (p.type === 'previous' || p.type === 'next') {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<p-pagination-pages-item\n\t\t\t\t\t\t\t\tvariant='carousel'\n\t\t\t\t\t\t\t\tdisabled={this._carouselDisabled(p.type)}\n\t\t\t\t\t\t\t\tonClick={() =>\n\t\t\t\t\t\t\t\t\tp.type === 'previous'\n\t\t\t\t\t\t\t\t\t\t? this._previousClick()\n\t\t\t\t\t\t\t\t\t\t: this._nextClick()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{p.value}\n\t\t\t\t\t\t\t</p-pagination-pages-item>\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (p.type === 'ellipsis') {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<p-pagination-pages-item hover={false}>\n\t\t\t\t\t\t\t\t...\n\t\t\t\t\t\t\t</p-pagination-pages-item>\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<p-pagination-pages-item\n\t\t\t\t\t\t\tactive={p.value === this.page}\n\t\t\t\t\t\t\tonClick={() => this._pageClick(p.value as number)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{p.value}\n\t\t\t\t\t\t</p-pagination-pages-item>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</div>\n\t\t);\n\t}\n\n\t@Watch('page')\n\t@Watch('pageSize')\n\t@Watch('total')\n\tprotected pageChangeHandler() {\n\t\tthis._generate();\n\t}\n\n\tprivate _generate() {\n\t\tthis._pages = this._generatePages();\n\t\tthis._set = this._generateSet();\n\n\t\tif (this.page > this._pages?.length) {\n\t\t\tthis._changePage(this._pages.length);\n\t\t}\n\t}\n\n\tprivate _changePage(p?: number) {\n\t\tif (!p) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.page = p;\n\t\tthis.pageChange.emit(this.page);\n\t}\n\n\tprivate _previousClick() {\n\t\tif (this._carouselDisabled('previous')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._changePage(this.page - 1);\n\t}\n\n\tprivate _nextClick = () => {\n\t\tif (this._carouselDisabled('next')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._changePage(this.page + 1);\n\t};\n\n\tprivate _carouselDisabled = (type: 'previous' | 'next') => {\n\t\tif (type === 'next') {\n\t\t\tconst nextPage = this.page + 1;\n\t\t\tif (nextPage > this._pages[this._pages.length - 1]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif (type === 'previous') {\n\t\t\tconst previousPage = this.page - 1;\n\t\t\tif (previousPage < this._pages[0]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t};\n\n\tprivate _pageClick = (p?: number) => this._changePage(p);\n\n\tprivate _generatePages() {\n\t\tif (!this.total || !this.pageSize) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst pages = Math.ceil(this.total / this.pageSize);\n\t\tthis.pagesChange.emit(pages);\n\t\treturn new Array(pages).fill(undefined).map((_, i) => i + 1);\n\t}\n\n\tprivate _generateSet = (\n\t\trange: number = 1,\n\t\tenableBoundaries: boolean = true\n\t): PaginationSetItem[] => {\n\t\tconst totalPages = this._pages.length;\n\n\t\tif (!totalPages) {\n\t\t\treturn [];\n\t\t}\n\n\t\tlet start = this.page - range;\n\t\tlet end = this.page + range;\n\n\t\tif (end > totalPages) {\n\t\t\tend = totalPages;\n\t\t\tstart = totalPages - range * 2;\n\t\t\tstart = start < 1 ? 1 : start;\n\t\t}\n\n\t\tif (start <= 1) {\n\t\t\tstart = 1;\n\t\t\tend = Math.min(range * 2 + 1, totalPages);\n\t\t}\n\n\t\tconst set = [];\n\n\t\tconst previous = {\n\t\t\ttype: 'previous',\n\t\t\tvalue: (\n\t\t\t\t<p-icon\n\t\t\t\t\tvariant='caret'\n\t\t\t\t\tsize='sm'\n\t\t\t\t\trotate={90}\n\t\t\t\t/>\n\t\t\t),\n\t\t};\n\n\t\tconst next = {\n\t\t\ttype: 'next',\n\t\t\tvalue: (\n\t\t\t\t<p-icon\n\t\t\t\t\tvariant='caret'\n\t\t\t\t\tsize='sm'\n\t\t\t\t\trotate={-90}\n\t\t\t\t/>\n\t\t\t),\n\t\t};\n\n\t\t// Disable page range, display all the pages\n\t\tif (range === null) {\n\t\t\tconst p = this._pages.map(p => ({\n\t\t\t\ttype: 'page',\n\t\t\t\tvalue: p,\n\t\t\t}));\n\n\t\t\treturn enableBoundaries ? [previous, ...p, next] : p;\n\t\t}\n\n\t\tif (enableBoundaries) {\n\t\t\tset.push(previous);\n\t\t}\n\n\t\tif (start <= 3) {\n\t\t\tfor (let i = 1; i < start; i++) {\n\t\t\t\tset.push({\n\t\t\t\t\ttype: 'page',\n\t\t\t\t\tvalue: this._pages[i - 1],\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tset.push({\n\t\t\t\ttype: 'page',\n\t\t\t\tvalue: 1,\n\t\t\t});\n\n\t\t\tset.push({\n\t\t\t\ttype: 'ellipsis',\n\t\t\t\tvalue: 'ellipsis',\n\t\t\t});\n\t\t}\n\n\t\tfor (let i = start; i <= end; i++) {\n\t\t\tset.push({\n\t\t\t\ttype: 'page',\n\t\t\t\tvalue: this._pages[i - 1],\n\t\t\t});\n\t\t}\n\n\t\tif (end >= totalPages - 2) {\n\t\t\tfor (let i = end + 1; i <= totalPages; i++) {\n\t\t\t\tset.push({\n\t\t\t\t\ttype: 'page',\n\t\t\t\t\tvalue: this._pages[i - 1],\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tset.push({\n\t\t\t\ttype: 'ellipsis',\n\t\t\t});\n\n\t\t\tset.push({\n\t\t\t\ttype: 'page',\n\t\t\t\tvalue: this._pages[this._pages.length - 1],\n\t\t\t});\n\t\t}\n\n\t\tif (enableBoundaries) {\n\t\t\tset.push(next);\n\t\t}\n\n\t\treturn set;\n\t};\n}\n"],"version":3}
|