@paperless/core 2.0.1-beta.32 → 2.0.1-beta.34
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 +109 -0
- package/dist/assets/i18n/floating-menu-container.i18n.en.json +4 -0
- package/dist/assets/i18n/floating-menu-container.i18n.nl.json +4 -0
- package/dist/assets/i18n/pagination-size.i18n.en.json +3 -0
- package/dist/assets/i18n/pagination-size.i18n.nl.json +3 -0
- package/dist/assets/icons/extra/checkmark-thick.svg +10 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/p-0719e72a.js +2 -0
- package/dist/build/{p-5779d316.entry.js → p-11fbeb45.entry.js} +2 -2
- package/dist/build/{p-d26ee54b.entry.js → p-1a1c03c0.entry.js} +2 -2
- package/dist/build/{p-dd0f4ed0.entry.js → p-27fd3386.entry.js} +2 -2
- package/dist/build/p-28dbbce6.entry.js +2 -0
- package/dist/build/p-28ee6cd6.entry.js +2 -0
- package/dist/{paperless/p-b162a142.entry.js → build/p-290d04b0.entry.js} +2 -2
- package/dist/build/{p-9231fe88.entry.js → p-2d43b7ce.entry.js} +2 -2
- package/dist/{paperless/p-e5a54d05.entry.js → build/p-333f614e.entry.js} +2 -2
- package/dist/build/p-37b43ce6.entry.js +2 -0
- package/dist/build/p-37b43ce6.entry.js.map +1 -0
- package/dist/build/{p-29c71645.entry.js → p-38c20959.entry.js} +2 -2
- package/dist/{paperless/p-4baaed44.entry.js → build/p-3bd145fd.entry.js} +2 -2
- package/dist/build/{p-0cd0a8d2.entry.js → p-4364738a.entry.js} +2 -2
- package/dist/build/{p-e11ab3d2.entry.js → p-4443e4e5.entry.js} +2 -2
- package/dist/build/{p-39e51563.entry.js → p-4553a1af.entry.js} +2 -2
- package/dist/build/p-469615ef.entry.js +2 -0
- package/dist/build/p-469615ef.entry.js.map +1 -0
- package/dist/build/p-489013c7.entry.js +2 -0
- package/dist/build/p-489013c7.entry.js.map +1 -0
- package/dist/build/p-4f947801.entry.js +2 -0
- package/dist/build/p-549b2931.entry.js +2 -0
- package/dist/build/p-549b2931.entry.js.map +1 -0
- package/dist/build/{p-d9bf1827.entry.js → p-58e6f012.entry.js} +2 -2
- package/dist/build/p-59962e55.entry.js +2 -0
- package/dist/{paperless/p-3e2708de.entry.js → build/p-657c6b98.entry.js} +2 -2
- package/dist/build/{p-f05bf2d2.entry.js → p-691c6f90.entry.js} +2 -2
- package/dist/build/p-711bb72e.entry.js +2 -0
- package/dist/build/p-711bb72e.entry.js.map +1 -0
- package/dist/build/{p-8f4a3d49.entry.js → p-7a83597a.entry.js} +2 -2
- package/dist/build/{p-8b1a485b.entry.js → p-7ad7c0d1.entry.js} +2 -2
- package/dist/{paperless/p-b082e123.js → build/p-7ce3ed33.js} +2 -2
- package/dist/build/p-7ce3ed33.js.map +1 -0
- package/dist/build/{p-da7b6f2c.js → p-83946184.js} +1 -1
- package/dist/build/p-83946184.js.map +1 -0
- package/dist/build/{p-a9c13353.entry.js → p-8532d17f.entry.js} +2 -2
- package/dist/build/p-8857d619.entry.js +2 -0
- package/dist/build/p-8857d619.entry.js.map +1 -0
- package/dist/build/{p-c801b122.entry.js → p-8a4f08d0.entry.js} +2 -2
- package/dist/build/{p-28f44624.entry.js → p-8c8128f9.entry.js} +2 -2
- package/dist/{paperless/p-cd2cd75f.entry.js → build/p-90ad3605.entry.js} +2 -2
- package/dist/build/{p-d058cdfc.entry.js → p-93198497.entry.js} +2 -2
- package/dist/build/p-99352ae4.entry.js +2 -0
- package/dist/build/p-99352ae4.entry.js.map +1 -0
- package/dist/{paperless/p-0ffb8f53.entry.js → build/p-a133d5be.entry.js} +2 -2
- package/dist/build/{p-fa340d90.entry.js → p-a42897e9.entry.js} +2 -2
- package/dist/build/p-c55ee8d6.entry.js +2 -0
- package/dist/build/p-c55ee8d6.entry.js.map +1 -0
- package/dist/build/{p-9afd6c62.entry.js → p-d2ddf504.entry.js} +2 -2
- package/dist/build/p-d48ef748.entry.js +2 -0
- package/dist/build/p-d48ef748.entry.js.map +1 -0
- package/dist/{paperless/p-9406a32e.entry.js → build/p-d70fcbe8.entry.js} +2 -2
- package/dist/build/{p-0e1c6375.entry.js → p-da44c5f3.entry.js} +2 -2
- package/dist/build/{p-167a6397.entry.js → p-db29f690.entry.js} +2 -2
- package/dist/build/{p-b542d0b6.entry.js → p-dbd97dff.entry.js} +2 -2
- package/dist/{paperless/p-697ed735.entry.js → build/p-dc536eb2.entry.js} +2 -2
- package/dist/build/{p-52fe40e3.entry.js → p-e987ba3f.entry.js} +2 -2
- package/dist/build/{p-d82e4315.entry.js → p-eee199d1.entry.js} +2 -2
- package/dist/{paperless/p-20ea5e27.entry.js → build/p-ef42fec9.entry.js} +2 -2
- package/dist/build/{p-7b72764c.entry.js → p-f13ad23e.entry.js} +2 -2
- package/dist/build/{p-7c0e0f80.entry.js → p-f1a6c8ff.entry.js} +2 -2
- package/dist/build/{p-096eaf0d.entry.js → p-f233341a.entry.js} +2 -2
- package/dist/build/{p-401ff01b.entry.js → p-f2f904e6.entry.js} +2 -2
- package/dist/{paperless/p-f762c735.entry.js → build/p-f4cdabb7.entry.js} +2 -2
- package/dist/{paperless/p-3023e8dc.entry.js → build/p-f63feca1.entry.js} +2 -2
- package/dist/build/{p-a38a330d.entry.js → p-f9ffc928.entry.js} +2 -2
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/{constants-f911468d.js → constants-eae831f7.js} +1 -1
- package/dist/cjs/constants-eae831f7.js.map +1 -0
- package/dist/cjs/{icons-10aa18f0.js → icons-8fe8c3cf.js} +18 -1
- package/dist/cjs/icons-8fe8c3cf.js.map +1 -0
- package/dist/cjs/index-3f9bbc0c.js +14 -10
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +4 -4
- 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 +2 -2
- 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 +5 -5
- 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 +1 -1
- package/dist/cjs/p-card-header.cjs.entry.js +2 -2
- package/dist/cjs/{p-checkbox_3.cjs.entry.js → p-checkbox_2.cjs.entry.js} +22 -167
- package/dist/cjs/p-checkbox_2.cjs.entry.js.map +1 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-counter.cjs.entry.js +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js +2 -2
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-divider.cjs.entry.js +1 -1
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +3 -3
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +10 -9
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -1
- package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js +528 -0
- package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js.map +1 -0
- package/dist/cjs/p-field_2.cjs.entry.js +17 -5
- package/dist/cjs/p-field_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +121 -16
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
- package/dist/cjs/p-helper_2.cjs.entry.js +6 -6
- package/dist/cjs/p-helper_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
- package/dist/cjs/p-icon-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
- package/dist/cjs/p-input-error.cjs.entry.js +1 -1
- package/dist/cjs/p-input-group.cjs.entry.js +3 -3
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +4 -4
- 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-navigation-title.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination.cjs.entry.js +70 -0
- package/dist/cjs/p-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/p-portal.cjs.entry.js +1 -1
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +3 -3
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
- package/dist/cjs/p-status.cjs.entry.js +2 -2
- package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +9 -8
- package/dist/cjs/p-table.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +8 -18
- package/dist/cjs/p-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/assets/icons/extra/checkmark-thick.svg +10 -0
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/atoms/avatar/avatar.component.js +1 -1
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +1 -1
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +2 -2
- 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 +1 -1
- package/dist/collection/components/atoms/card-header/card-header.component.js +2 -2
- package/dist/collection/components/atoms/checkbox/checkbox.component.css +1 -1
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +6 -16
- package/dist/collection/components/atoms/checkbox/checkbox.component.js.map +1 -1
- package/dist/collection/components/atoms/counter/counter.component.js +1 -1
- package/dist/collection/components/atoms/divider/divider.component.js +1 -1
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +1 -1
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +1 -1
- 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.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +29 -8
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +37 -6
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.css +1 -1
- package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.js +171 -4
- package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.css +1 -1
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js +180 -3
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/helper/helper.component.css +1 -1
- package/dist/collection/components/atoms/helper/helper.component.js +2 -2
- package/dist/collection/components/atoms/helper/helper.component.js.map +1 -1
- package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +1 -1
- package/dist/collection/components/atoms/icon-deprecated/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 +1 -1
- package/dist/collection/components/atoms/layout/layout.component.js +1 -1
- package/dist/collection/components/atoms/modal-body/modal-body.component.js +1 -1
- package/dist/collection/components/atoms/modal-container/modal-container.component.js +1 -1
- 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.css +1 -0
- package/dist/collection/components/atoms/pagination-pages-item/pagination-pages-item.component.js +173 -0
- package/dist/collection/components/atoms/pagination-pages-item/pagination-pages-item.component.js.map +1 -0
- package/dist/collection/components/atoms/portal/portal.component.js +1 -1
- 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 +3 -3
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +1 -1
- package/dist/collection/components/atoms/status/status.component.js +3 -3
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +1 -1
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +1 -1
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +1 -1
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +1 -1
- package/dist/collection/components/atoms/table-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.css +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.js +7 -17
- package/dist/collection/components/atoms/toggle/toggle.component.js.map +1 -1
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +4 -4
- package/dist/collection/components/helpers/table-row-action/table-row-action.component.js +1 -1
- package/dist/collection/components/molecules/accordion/accordion.component.js +1 -1
- package/dist/collection/components/molecules/attachment/attachment.component.js +4 -4
- package/dist/collection/components/molecules/button/button.component.js +5 -5
- 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 +2 -2
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +33 -5
- package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -1
- package/dist/collection/components/molecules/field/field.component.js +18 -6
- package/dist/collection/components/molecules/field/field.component.js.map +1 -1
- package/dist/collection/components/molecules/input-error/input-error.component.js +1 -1
- package/dist/collection/components/molecules/input-group/input-group.component.js +4 -4
- package/dist/collection/components/molecules/label/label.component.js +4 -4
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +3 -3
- package/dist/collection/components/molecules/navigation-section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.js +136 -169
- package/dist/collection/components/molecules/pagination/pagination.component.js.map +1 -1
- package/dist/collection/components/molecules/pagination-pages/pagination-pages.component.css +1 -0
- package/dist/collection/components/molecules/pagination-pages/pagination-pages.component.js +321 -0
- package/dist/collection/components/molecules/pagination-pages/pagination-pages.component.js.map +1 -0
- package/dist/collection/components/molecules/pagination-size/constants.js.map +1 -0
- package/dist/collection/components/molecules/pagination-size/pagination-size.component.css +1 -0
- package/dist/collection/components/molecules/{page-size-select/page-size-select.component.js → pagination-size/pagination-size.component.js} +44 -76
- package/dist/collection/components/molecules/pagination-size/pagination-size.component.js.map +1 -0
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/select/select.component.js +3 -3
- package/dist/collection/components/molecules/stepper/stepper.component.js +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.css +1 -1
- package/dist/collection/components/molecules/table-footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table-footer/table-footer.component.js.map +1 -1
- package/dist/collection/components/molecules/table-header/table-header.component.js +4 -4
- package/dist/collection/components/molecules/table-row/table-row.component.js +2 -2
- package/dist/collection/components/molecules/toast/toast.component.js +2 -2
- package/dist/collection/components/organisms/drawer/drawer.component.js +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/components/organisms/table/table.component.css +1 -1
- package/dist/collection/components/organisms/table/table.component.js +9 -8
- package/dist/collection/components/organisms/table/table.component.js.map +1 -1
- package/dist/collection/utils/icons.js +6 -0
- package/dist/collection/utils/icons.js.map +1 -1
- package/dist/components/avatar.component.js +1 -1
- package/dist/components/backdrop.component.js +2 -2
- package/dist/components/badge.component.js +1 -1
- package/dist/components/button.component.js +4 -4
- package/dist/components/calendar.component.js +1 -1
- package/dist/components/checkbox.component.js +7 -17
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/divider.component.js +1 -1
- package/dist/components/drawer-body.component.js +1 -1
- package/dist/components/drawer-container.component.js +1 -1
- package/dist/components/drawer-header.component.js +1 -1
- package/dist/components/dropdown-menu-container.component.js +11 -9
- package/dist/components/dropdown-menu-container.component.js.map +1 -1
- package/dist/components/dropdown-menu-item.component.js +35 -4
- package/dist/components/dropdown-menu-item.component.js.map +1 -1
- package/dist/components/dropdown.component.js +15 -6
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/field-container.component.js +8 -2
- package/dist/components/field-container.component.js.map +1 -1
- package/dist/components/field.component.js +17 -5
- package/dist/components/field.component.js.map +1 -1
- package/dist/components/floating-menu-container.component.js +66 -6
- package/dist/components/floating-menu-container.component.js.map +1 -1
- package/dist/components/floating-menu-item.component.js +85 -6
- package/dist/components/floating-menu-item.component.js.map +1 -1
- package/dist/components/helper.component.js +9 -3
- package/dist/components/helper.component.js.map +1 -1
- package/dist/components/icons.js +17 -0
- package/dist/components/icons.js.map +1 -1
- package/dist/components/illustration.component.js +1 -1
- package/dist/components/input-error.component.js +1 -1
- package/dist/components/modal-body.component.js +1 -1
- package/dist/components/modal-container.component.js +1 -1
- package/dist/components/modal-footer.component.js +1 -1
- package/dist/components/modal-header.component.js +1 -1
- package/dist/components/navigation-title.component.js +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +4 -4
- package/dist/components/p-avatar-group.js +1 -1
- package/dist/components/p-button-group.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 +2 -2
- package/dist/components/p-content-slider.js +2 -2
- package/dist/components/p-counter.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +2 -2
- package/dist/components/p-iban-icon.js +1 -1
- package/dist/components/p-icon-deprecated.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-input-group.js +3 -3
- package/dist/components/p-label.js +3 -3
- package/dist/components/p-layout.js +1 -1
- 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-pagination-pages-item.d.ts +11 -0
- package/dist/components/p-pagination-pages-item.js +8 -0
- package/dist/components/p-pagination-pages-item.js.map +1 -0
- package/dist/components/{p-pagination-item.d.ts → p-pagination-pages.d.ts} +4 -4
- package/dist/components/p-pagination-pages.js +8 -0
- package/dist/components/p-pagination-pages.js.map +1 -0
- package/dist/components/{p-page-size-select.d.ts → p-pagination-size.d.ts} +4 -4
- package/dist/components/p-pagination-size.js +8 -0
- package/dist/components/p-pagination-size.js.map +1 -0
- package/dist/components/p-pagination.js +143 -1
- package/dist/components/p-pagination.js.map +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-radio.js +3 -3
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-status.js +2 -2
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-tab-group.js +1 -1
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table.js +15 -14
- package/dist/components/p-table.js.map +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 +8 -18
- package/dist/components/p-toggle.js.map +1 -1
- package/dist/components/pagination-pages-item.component.js +106 -0
- package/dist/components/pagination-pages-item.component.js.map +1 -0
- package/dist/components/{pagination.component.js → pagination-pages.component.js} +54 -24
- package/dist/components/pagination-pages.component.js.map +1 -0
- package/dist/components/pagination-size.component.js +134 -0
- package/dist/components/pagination-size.component.js.map +1 -0
- package/dist/components/portal.component.js +1 -1
- package/dist/components/segment-container.component.js +1 -1
- package/dist/components/segment-item.component.js +2 -2
- package/dist/components/slider-indicator.component.js +1 -1
- package/dist/components/stepper-line.component.js +1 -1
- package/dist/components/table-cell.component.js +1 -1
- package/dist/components/table-container.component.js +1 -1
- package/dist/components/table-footer.component.js +9 -9
- package/dist/components/table-footer.component.js.map +1 -1
- package/dist/components/table-header.component.js +3 -3
- package/dist/components/table-row.component.js +2 -2
- package/dist/components/tooltip.component.js +4 -4
- package/dist/esm/{constants-3500ea14.js → constants-1dd98b15.js} +1 -1
- package/dist/esm/constants-1dd98b15.js.map +1 -0
- package/dist/esm/{icons-a3270aaf.js → icons-7312d60c.js} +18 -1
- package/dist/esm/icons-7312d60c.js.map +1 -0
- package/dist/esm/index-2ef94580.js +14 -10
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-accordion.entry.js +1 -1
- package/dist/esm/p-attachment.entry.js +4 -4
- 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 +2 -2
- 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 +5 -5
- 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 +1 -1
- package/dist/esm/p-card-header.entry.js +2 -2
- package/dist/esm/{p-checkbox_3.entry.js → p-checkbox_2.entry.js} +23 -167
- package/dist/esm/p-checkbox_2.entry.js.map +1 -0
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-counter.entry.js +1 -1
- package/dist/esm/p-cropper.entry.js +2 -2
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-divider.entry.js +1 -1
- package/dist/esm/p-drawer-body_3.entry.js +3 -3
- package/dist/esm/p-dropdown-menu-container.entry.js +10 -9
- package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -1
- package/dist/esm/p-dropdown-menu-item_4.entry.js +521 -0
- package/dist/esm/p-dropdown-menu-item_4.entry.js.map +1 -0
- package/dist/esm/p-field_2.entry.js +17 -5
- package/dist/esm/p-field_2.entry.js.map +1 -1
- package/dist/esm/p-floating-menu-container_8.entry.js +122 -17
- package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
- package/dist/esm/p-helper_2.entry.js +6 -6
- package/dist/esm/p-helper_2.entry.js.map +1 -1
- package/dist/esm/p-iban-icon.entry.js +1 -1
- package/dist/esm/p-icon-deprecated.entry.js +1 -1
- package/dist/esm/p-info-panel.entry.js +1 -1
- package/dist/esm/p-input-error.entry.js +1 -1
- package/dist/esm/p-input-group.entry.js +3 -3
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-modal-body_4.entry.js +4 -4
- 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-navigation-title.entry.js +1 -1
- package/dist/esm/p-pagination.entry.js +66 -0
- package/dist/esm/p-pagination.entry.js.map +1 -0
- package/dist/esm/p-portal.entry.js +1 -1
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +3 -3
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-slider-indicator.entry.js +1 -1
- package/dist/esm/p-status.entry.js +2 -2
- package/dist/esm/p-stepper-item.entry.js +1 -1
- package/dist/esm/p-stepper-line.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-tab-group.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-table.entry.js +9 -8
- package/dist/esm/p-table.entry.js.map +1 -1
- package/dist/esm/p-toast-container.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +8 -18
- package/dist/esm/p-toggle.entry.js.map +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/{p-5779d316.entry.js → p-11fbeb45.entry.js} +2 -2
- package/dist/paperless/{p-d26ee54b.entry.js → p-1a1c03c0.entry.js} +2 -2
- package/dist/paperless/{p-dd0f4ed0.entry.js → p-27fd3386.entry.js} +2 -2
- package/dist/paperless/p-28dbbce6.entry.js +2 -0
- package/dist/paperless/p-28ee6cd6.entry.js +2 -0
- package/dist/{build/p-b162a142.entry.js → paperless/p-290d04b0.entry.js} +2 -2
- package/dist/paperless/{p-9231fe88.entry.js → p-2d43b7ce.entry.js} +2 -2
- package/dist/{build/p-e5a54d05.entry.js → paperless/p-333f614e.entry.js} +2 -2
- package/dist/paperless/p-37b43ce6.entry.js +2 -0
- package/dist/paperless/p-37b43ce6.entry.js.map +1 -0
- package/dist/paperless/{p-29c71645.entry.js → p-38c20959.entry.js} +2 -2
- package/dist/{build/p-4baaed44.entry.js → paperless/p-3bd145fd.entry.js} +2 -2
- package/dist/paperless/{p-0cd0a8d2.entry.js → p-4364738a.entry.js} +2 -2
- package/dist/paperless/{p-e11ab3d2.entry.js → p-4443e4e5.entry.js} +2 -2
- package/dist/paperless/{p-39e51563.entry.js → p-4553a1af.entry.js} +2 -2
- package/dist/paperless/p-469615ef.entry.js +2 -0
- package/dist/paperless/p-469615ef.entry.js.map +1 -0
- package/dist/paperless/p-489013c7.entry.js +2 -0
- package/dist/paperless/p-489013c7.entry.js.map +1 -0
- package/dist/paperless/p-4f947801.entry.js +2 -0
- package/dist/paperless/p-549b2931.entry.js +2 -0
- package/dist/paperless/p-549b2931.entry.js.map +1 -0
- package/dist/paperless/{p-d9bf1827.entry.js → p-58e6f012.entry.js} +2 -2
- package/dist/paperless/p-59962e55.entry.js +2 -0
- package/dist/{build/p-3e2708de.entry.js → paperless/p-657c6b98.entry.js} +2 -2
- package/dist/paperless/{p-f05bf2d2.entry.js → p-691c6f90.entry.js} +2 -2
- package/dist/paperless/p-711bb72e.entry.js +2 -0
- package/dist/paperless/p-711bb72e.entry.js.map +1 -0
- package/dist/paperless/{p-8f4a3d49.entry.js → p-7a83597a.entry.js} +2 -2
- package/dist/paperless/{p-8b1a485b.entry.js → p-7ad7c0d1.entry.js} +2 -2
- package/dist/{build/p-b082e123.js → paperless/p-7ce3ed33.js} +2 -2
- package/dist/paperless/p-7ce3ed33.js.map +1 -0
- package/dist/paperless/{p-da7b6f2c.js → p-83946184.js} +1 -1
- package/dist/paperless/p-83946184.js.map +1 -0
- package/dist/paperless/{p-a9c13353.entry.js → p-8532d17f.entry.js} +2 -2
- package/dist/paperless/p-8857d619.entry.js +2 -0
- package/dist/paperless/p-8857d619.entry.js.map +1 -0
- package/dist/paperless/{p-c801b122.entry.js → p-8a4f08d0.entry.js} +2 -2
- package/dist/paperless/{p-28f44624.entry.js → p-8c8128f9.entry.js} +2 -2
- package/dist/{build/p-cd2cd75f.entry.js → paperless/p-90ad3605.entry.js} +2 -2
- package/dist/paperless/{p-d058cdfc.entry.js → p-93198497.entry.js} +2 -2
- package/dist/paperless/p-99352ae4.entry.js +2 -0
- package/dist/paperless/p-99352ae4.entry.js.map +1 -0
- package/dist/{build/p-0ffb8f53.entry.js → paperless/p-a133d5be.entry.js} +2 -2
- package/dist/paperless/{p-fa340d90.entry.js → p-a42897e9.entry.js} +2 -2
- package/dist/paperless/p-c55ee8d6.entry.js +2 -0
- package/dist/paperless/p-c55ee8d6.entry.js.map +1 -0
- package/dist/paperless/{p-9afd6c62.entry.js → p-d2ddf504.entry.js} +2 -2
- package/dist/paperless/p-d48ef748.entry.js +2 -0
- package/dist/paperless/p-d48ef748.entry.js.map +1 -0
- package/dist/{build/p-9406a32e.entry.js → paperless/p-d70fcbe8.entry.js} +2 -2
- package/dist/paperless/{p-0e1c6375.entry.js → p-da44c5f3.entry.js} +2 -2
- package/dist/paperless/{p-167a6397.entry.js → p-db29f690.entry.js} +2 -2
- package/dist/paperless/{p-b542d0b6.entry.js → p-dbd97dff.entry.js} +2 -2
- package/dist/{build/p-697ed735.entry.js → paperless/p-dc536eb2.entry.js} +2 -2
- package/dist/paperless/{p-52fe40e3.entry.js → p-e987ba3f.entry.js} +2 -2
- package/dist/paperless/{p-d82e4315.entry.js → p-eee199d1.entry.js} +2 -2
- package/dist/{build/p-20ea5e27.entry.js → paperless/p-ef42fec9.entry.js} +2 -2
- package/dist/paperless/{p-7b72764c.entry.js → p-f13ad23e.entry.js} +2 -2
- package/dist/paperless/{p-7c0e0f80.entry.js → p-f1a6c8ff.entry.js} +2 -2
- package/dist/paperless/{p-096eaf0d.entry.js → p-f233341a.entry.js} +2 -2
- package/dist/paperless/{p-401ff01b.entry.js → p-f2f904e6.entry.js} +2 -2
- package/dist/{build/p-f762c735.entry.js → paperless/p-f4cdabb7.entry.js} +2 -2
- package/dist/{build/p-3023e8dc.entry.js → paperless/p-f63feca1.entry.js} +2 -2
- package/dist/paperless/{p-a38a330d.entry.js → p-f9ffc928.entry.js} +2 -2
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +4 -0
- package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +1 -1
- package/dist/types/components/atoms/floating-menu-container/floating-menu-container.component.d.ts +33 -1
- package/dist/types/components/atoms/floating-menu-item/floating-menu-item.component.d.ts +23 -0
- package/dist/types/components/atoms/pagination-pages-item/pagination-pages-item.component.d.ts +19 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +5 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +24 -17
- package/dist/types/components/molecules/pagination-pages/pagination-pages.component.d.ts +40 -0
- package/dist/types/components/molecules/{page-size-select/page-size-select.component.d.ts → pagination-size/pagination-size.component.d.ts} +5 -14
- package/dist/types/components.d.ts +283 -76
- package/dist/types/utils/icons.d.ts +4 -0
- package/hydrate/index.js +592 -233
- package/hydrate/index.mjs +592 -233
- package/package.json +1 -1
- package/dist/assets/i18n/page-size-select.i18n.en.json +0 -4
- package/dist/assets/i18n/page-size-select.i18n.nl.json +0 -4
- package/dist/build/p-03c70942.entry.js +0 -2
- package/dist/build/p-2f613a2a.entry.js +0 -2
- package/dist/build/p-4cef76cf.entry.js +0 -2
- package/dist/build/p-52056fb3.entry.js +0 -2
- package/dist/build/p-52056fb3.entry.js.map +0 -1
- package/dist/build/p-904049ba.entry.js +0 -2
- package/dist/build/p-904049ba.entry.js.map +0 -1
- package/dist/build/p-9593cbb7.entry.js +0 -2
- package/dist/build/p-9593cbb7.entry.js.map +0 -1
- package/dist/build/p-a483eadb.js +0 -2
- package/dist/build/p-b082e123.js.map +0 -1
- package/dist/build/p-c066c38b.entry.js +0 -2
- package/dist/build/p-c066c38b.entry.js.map +0 -1
- package/dist/build/p-cab0361a.entry.js +0 -2
- package/dist/build/p-cab0361a.entry.js.map +0 -1
- package/dist/build/p-d1da42f4.entry.js +0 -2
- package/dist/build/p-d1da42f4.entry.js.map +0 -1
- package/dist/build/p-da7b6f2c.js.map +0 -1
- package/dist/build/p-df228603.entry.js +0 -2
- package/dist/build/p-df228603.entry.js.map +0 -1
- package/dist/build/p-e078f787.entry.js +0 -2
- package/dist/build/p-e77d5ca1.entry.js +0 -2
- package/dist/build/p-e77d5ca1.entry.js.map +0 -1
- package/dist/cjs/constants-f911468d.js.map +0 -1
- package/dist/cjs/icons-10aa18f0.js.map +0 -1
- package/dist/cjs/p-checkbox_3.cjs.entry.js.map +0 -1
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +0 -232
- package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +0 -1
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +0 -1
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +0 -46
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js.map +0 -1
- package/dist/collection/components/molecules/page-size-select/constants.js.map +0 -1
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js.map +0 -1
- package/dist/components/p-page-size-select.js +0 -8
- package/dist/components/p-page-size-select.js.map +0 -1
- package/dist/components/p-pagination-item.js +0 -8
- package/dist/components/p-pagination-item.js.map +0 -1
- package/dist/components/page-size-select.component.js +0 -123
- package/dist/components/page-size-select.component.js.map +0 -1
- package/dist/components/pagination-item.component.js +0 -36
- package/dist/components/pagination-item.component.js.map +0 -1
- package/dist/components/pagination.component.js.map +0 -1
- package/dist/esm/constants-3500ea14.js.map +0 -1
- package/dist/esm/icons-a3270aaf.js.map +0 -1
- package/dist/esm/p-checkbox_3.entry.js.map +0 -1
- package/dist/esm/p-page-size-select_3.entry.js +0 -226
- package/dist/esm/p-page-size-select_3.entry.js.map +0 -1
- package/dist/paperless/p-03c70942.entry.js +0 -2
- package/dist/paperless/p-2f613a2a.entry.js +0 -2
- package/dist/paperless/p-4cef76cf.entry.js +0 -2
- package/dist/paperless/p-52056fb3.entry.js +0 -2
- package/dist/paperless/p-52056fb3.entry.js.map +0 -1
- package/dist/paperless/p-904049ba.entry.js +0 -2
- package/dist/paperless/p-904049ba.entry.js.map +0 -1
- package/dist/paperless/p-9593cbb7.entry.js +0 -2
- package/dist/paperless/p-9593cbb7.entry.js.map +0 -1
- package/dist/paperless/p-b082e123.js.map +0 -1
- package/dist/paperless/p-c066c38b.entry.js +0 -2
- package/dist/paperless/p-c066c38b.entry.js.map +0 -1
- package/dist/paperless/p-cab0361a.entry.js +0 -2
- package/dist/paperless/p-cab0361a.entry.js.map +0 -1
- package/dist/paperless/p-d1da42f4.entry.js +0 -2
- package/dist/paperless/p-d1da42f4.entry.js.map +0 -1
- package/dist/paperless/p-da7b6f2c.js.map +0 -1
- package/dist/paperless/p-df228603.entry.js +0 -2
- package/dist/paperless/p-df228603.entry.js.map +0 -1
- package/dist/paperless/p-e078f787.entry.js +0 -2
- package/dist/paperless/p-e77d5ca1.entry.js +0 -2
- package/dist/paperless/p-e77d5ca1.entry.js.map +0 -1
- package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +0 -7
- /package/dist/build/{p-5779d316.entry.js.map → p-11fbeb45.entry.js.map} +0 -0
- /package/dist/build/{p-d26ee54b.entry.js.map → p-1a1c03c0.entry.js.map} +0 -0
- /package/dist/build/{p-dd0f4ed0.entry.js.map → p-27fd3386.entry.js.map} +0 -0
- /package/dist/build/{p-e078f787.entry.js.map → p-28dbbce6.entry.js.map} +0 -0
- /package/dist/build/{p-03c70942.entry.js.map → p-28ee6cd6.entry.js.map} +0 -0
- /package/dist/build/{p-b162a142.entry.js.map → p-290d04b0.entry.js.map} +0 -0
- /package/dist/build/{p-9231fe88.entry.js.map → p-2d43b7ce.entry.js.map} +0 -0
- /package/dist/build/{p-e5a54d05.entry.js.map → p-333f614e.entry.js.map} +0 -0
- /package/dist/build/{p-29c71645.entry.js.map → p-38c20959.entry.js.map} +0 -0
- /package/dist/build/{p-4baaed44.entry.js.map → p-3bd145fd.entry.js.map} +0 -0
- /package/dist/build/{p-0cd0a8d2.entry.js.map → p-4364738a.entry.js.map} +0 -0
- /package/dist/build/{p-e11ab3d2.entry.js.map → p-4443e4e5.entry.js.map} +0 -0
- /package/dist/build/{p-39e51563.entry.js.map → p-4553a1af.entry.js.map} +0 -0
- /package/dist/build/{p-4cef76cf.entry.js.map → p-4f947801.entry.js.map} +0 -0
- /package/dist/build/{p-d9bf1827.entry.js.map → p-58e6f012.entry.js.map} +0 -0
- /package/dist/build/{p-2f613a2a.entry.js.map → p-59962e55.entry.js.map} +0 -0
- /package/dist/build/{p-3e2708de.entry.js.map → p-657c6b98.entry.js.map} +0 -0
- /package/dist/build/{p-f05bf2d2.entry.js.map → p-691c6f90.entry.js.map} +0 -0
- /package/dist/build/{p-8f4a3d49.entry.js.map → p-7a83597a.entry.js.map} +0 -0
- /package/dist/build/{p-8b1a485b.entry.js.map → p-7ad7c0d1.entry.js.map} +0 -0
- /package/dist/build/{p-a9c13353.entry.js.map → p-8532d17f.entry.js.map} +0 -0
- /package/dist/build/{p-c801b122.entry.js.map → p-8a4f08d0.entry.js.map} +0 -0
- /package/dist/build/{p-28f44624.entry.js.map → p-8c8128f9.entry.js.map} +0 -0
- /package/dist/build/{p-cd2cd75f.entry.js.map → p-90ad3605.entry.js.map} +0 -0
- /package/dist/build/{p-d058cdfc.entry.js.map → p-93198497.entry.js.map} +0 -0
- /package/dist/build/{p-0ffb8f53.entry.js.map → p-a133d5be.entry.js.map} +0 -0
- /package/dist/build/{p-fa340d90.entry.js.map → p-a42897e9.entry.js.map} +0 -0
- /package/dist/build/{p-9afd6c62.entry.js.map → p-d2ddf504.entry.js.map} +0 -0
- /package/dist/build/{p-9406a32e.entry.js.map → p-d70fcbe8.entry.js.map} +0 -0
- /package/dist/build/{p-0e1c6375.entry.js.map → p-da44c5f3.entry.js.map} +0 -0
- /package/dist/build/{p-167a6397.entry.js.map → p-db29f690.entry.js.map} +0 -0
- /package/dist/build/{p-b542d0b6.entry.js.map → p-dbd97dff.entry.js.map} +0 -0
- /package/dist/build/{p-697ed735.entry.js.map → p-dc536eb2.entry.js.map} +0 -0
- /package/dist/build/{p-52fe40e3.entry.js.map → p-e987ba3f.entry.js.map} +0 -0
- /package/dist/build/{p-d82e4315.entry.js.map → p-eee199d1.entry.js.map} +0 -0
- /package/dist/build/{p-20ea5e27.entry.js.map → p-ef42fec9.entry.js.map} +0 -0
- /package/dist/build/{p-7b72764c.entry.js.map → p-f13ad23e.entry.js.map} +0 -0
- /package/dist/build/{p-7c0e0f80.entry.js.map → p-f1a6c8ff.entry.js.map} +0 -0
- /package/dist/build/{p-096eaf0d.entry.js.map → p-f233341a.entry.js.map} +0 -0
- /package/dist/build/{p-401ff01b.entry.js.map → p-f2f904e6.entry.js.map} +0 -0
- /package/dist/build/{p-f762c735.entry.js.map → p-f4cdabb7.entry.js.map} +0 -0
- /package/dist/build/{p-3023e8dc.entry.js.map → p-f63feca1.entry.js.map} +0 -0
- /package/dist/build/{p-a38a330d.entry.js.map → p-f9ffc928.entry.js.map} +0 -0
- /package/dist/collection/components/molecules/{page-size-select → pagination-size}/constants.js +0 -0
- /package/dist/paperless/{p-5779d316.entry.js.map → p-11fbeb45.entry.js.map} +0 -0
- /package/dist/paperless/{p-d26ee54b.entry.js.map → p-1a1c03c0.entry.js.map} +0 -0
- /package/dist/paperless/{p-dd0f4ed0.entry.js.map → p-27fd3386.entry.js.map} +0 -0
- /package/dist/paperless/{p-e078f787.entry.js.map → p-28dbbce6.entry.js.map} +0 -0
- /package/dist/paperless/{p-03c70942.entry.js.map → p-28ee6cd6.entry.js.map} +0 -0
- /package/dist/paperless/{p-b162a142.entry.js.map → p-290d04b0.entry.js.map} +0 -0
- /package/dist/paperless/{p-9231fe88.entry.js.map → p-2d43b7ce.entry.js.map} +0 -0
- /package/dist/paperless/{p-e5a54d05.entry.js.map → p-333f614e.entry.js.map} +0 -0
- /package/dist/paperless/{p-29c71645.entry.js.map → p-38c20959.entry.js.map} +0 -0
- /package/dist/paperless/{p-4baaed44.entry.js.map → p-3bd145fd.entry.js.map} +0 -0
- /package/dist/paperless/{p-0cd0a8d2.entry.js.map → p-4364738a.entry.js.map} +0 -0
- /package/dist/paperless/{p-e11ab3d2.entry.js.map → p-4443e4e5.entry.js.map} +0 -0
- /package/dist/paperless/{p-39e51563.entry.js.map → p-4553a1af.entry.js.map} +0 -0
- /package/dist/paperless/{p-4cef76cf.entry.js.map → p-4f947801.entry.js.map} +0 -0
- /package/dist/paperless/{p-d9bf1827.entry.js.map → p-58e6f012.entry.js.map} +0 -0
- /package/dist/paperless/{p-2f613a2a.entry.js.map → p-59962e55.entry.js.map} +0 -0
- /package/dist/paperless/{p-3e2708de.entry.js.map → p-657c6b98.entry.js.map} +0 -0
- /package/dist/paperless/{p-f05bf2d2.entry.js.map → p-691c6f90.entry.js.map} +0 -0
- /package/dist/paperless/{p-8f4a3d49.entry.js.map → p-7a83597a.entry.js.map} +0 -0
- /package/dist/paperless/{p-8b1a485b.entry.js.map → p-7ad7c0d1.entry.js.map} +0 -0
- /package/dist/paperless/{p-a9c13353.entry.js.map → p-8532d17f.entry.js.map} +0 -0
- /package/dist/paperless/{p-c801b122.entry.js.map → p-8a4f08d0.entry.js.map} +0 -0
- /package/dist/paperless/{p-28f44624.entry.js.map → p-8c8128f9.entry.js.map} +0 -0
- /package/dist/paperless/{p-cd2cd75f.entry.js.map → p-90ad3605.entry.js.map} +0 -0
- /package/dist/paperless/{p-d058cdfc.entry.js.map → p-93198497.entry.js.map} +0 -0
- /package/dist/paperless/{p-0ffb8f53.entry.js.map → p-a133d5be.entry.js.map} +0 -0
- /package/dist/paperless/{p-fa340d90.entry.js.map → p-a42897e9.entry.js.map} +0 -0
- /package/dist/paperless/{p-9afd6c62.entry.js.map → p-d2ddf504.entry.js.map} +0 -0
- /package/dist/paperless/{p-9406a32e.entry.js.map → p-d70fcbe8.entry.js.map} +0 -0
- /package/dist/paperless/{p-0e1c6375.entry.js.map → p-da44c5f3.entry.js.map} +0 -0
- /package/dist/paperless/{p-167a6397.entry.js.map → p-db29f690.entry.js.map} +0 -0
- /package/dist/paperless/{p-b542d0b6.entry.js.map → p-dbd97dff.entry.js.map} +0 -0
- /package/dist/paperless/{p-697ed735.entry.js.map → p-dc536eb2.entry.js.map} +0 -0
- /package/dist/paperless/{p-52fe40e3.entry.js.map → p-e987ba3f.entry.js.map} +0 -0
- /package/dist/paperless/{p-d82e4315.entry.js.map → p-eee199d1.entry.js.map} +0 -0
- /package/dist/paperless/{p-20ea5e27.entry.js.map → p-ef42fec9.entry.js.map} +0 -0
- /package/dist/paperless/{p-7b72764c.entry.js.map → p-f13ad23e.entry.js.map} +0 -0
- /package/dist/paperless/{p-7c0e0f80.entry.js.map → p-f1a6c8ff.entry.js.map} +0 -0
- /package/dist/paperless/{p-096eaf0d.entry.js.map → p-f233341a.entry.js.map} +0 -0
- /package/dist/paperless/{p-401ff01b.entry.js.map → p-f2f904e6.entry.js.map} +0 -0
- /package/dist/paperless/{p-f762c735.entry.js.map → p-f4cdabb7.entry.js.map} +0 -0
- /package/dist/paperless/{p-3023e8dc.entry.js.map → p-f63feca1.entry.js.map} +0 -0
- /package/dist/paperless/{p-a38a330d.entry.js.map → p-f9ffc928.entry.js.map} +0 -0
- /package/dist/types/components/molecules/{page-size-select → pagination-size}/constants.d.ts +0 -0
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-3f9bbc0c.js');
|
|
6
|
+
const index$1 = require('./index-b556e70f.js');
|
|
7
|
+
const localization = require('./localization-3a0a71db.js');
|
|
8
|
+
const constants = require('./constants-eae831f7.js');
|
|
9
|
+
require('./clsx-fc789adc.js');
|
|
10
|
+
|
|
11
|
+
const dropdownMenuItemComponentCss = "*{box-sizing:border-box}.static{position:static!important}.block{display:block!important}.flex{display:flex!important}.h-8{height:2rem!important}.w-full{width:100%!important}.max-w-full{max-width:100%!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.whitespace-nowrap{white-space:nowrap!important}.rounded-lg{border-radius:.5rem!important}.bg-dark-teal-400{--tw-bg-opacity:1!important;background-color:rgb(51 116 109/var(--tw-bg-opacity,1))!important}.bg-negative-red-100{--tw-bg-opacity:1!important;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))!important}.bg-negative-red-50{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.bg-supportive-lilac-100{--tw-bg-opacity:1!important;background-color:rgb(246 239 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}.text-start{text-align:start!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-medium{font-weight:500!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-black-teal-200{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-dark-teal-100{--tw-text-opacity:1!important;color:rgb(204 220 218/var(--tw-text-opacity,1))!important}.text-negative-red{--tw-text-opacity:1!important;color:rgb(230 30 30/var(--tw-text-opacity,1))!important}.text-negative-red-100{--tw-text-opacity:1!important;color:rgb(255 221 221/var(--tw-text-opacity,1))!important}.text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/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-40{opacity:.4!important}.hover\\:bg-dark-teal-400:hover{--tw-bg-opacity:1!important;background-color:rgb(51 116 109/var(--tw-bg-opacity,1))!important}.hover\\:bg-negative-red-50:hover{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.hover\\:bg-supportive-lilac-50:hover{--tw-bg-opacity:1!important;background-color:rgb(250 247 255/var(--tw-bg-opacity,1))!important}.group:hover .group-hover\\:text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.group:hover .group-hover\\:text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.group:hover .group-hover\\:text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}";
|
|
12
|
+
const PDropdownMenuItemStyle0 = dropdownMenuItemComponentCss;
|
|
13
|
+
|
|
14
|
+
const dropdownMenuItem = index$1.cva([
|
|
15
|
+
'p-dropdown-menu-item flex px-2 py-1 gap-2 text-sm font-medium group rounded-lg items-center h-8 max-w-full',
|
|
16
|
+
], {
|
|
17
|
+
variants: {
|
|
18
|
+
variant: {
|
|
19
|
+
default: null,
|
|
20
|
+
'dark-teal': null,
|
|
21
|
+
negative: null,
|
|
22
|
+
},
|
|
23
|
+
active: {
|
|
24
|
+
false: null,
|
|
25
|
+
true: null,
|
|
26
|
+
},
|
|
27
|
+
disabled: {
|
|
28
|
+
false: 'cursor-pointer',
|
|
29
|
+
true: 'cursor-not-allowed',
|
|
30
|
+
},
|
|
31
|
+
enableHover: {
|
|
32
|
+
false: null,
|
|
33
|
+
true: null,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
compoundVariants: [
|
|
37
|
+
{
|
|
38
|
+
variant: 'default',
|
|
39
|
+
active: false,
|
|
40
|
+
enableHover: true,
|
|
41
|
+
disabled: false,
|
|
42
|
+
class: 'text-black-teal hover:bg-supportive-lilac-50',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
variant: 'default',
|
|
46
|
+
active: true,
|
|
47
|
+
disabled: false,
|
|
48
|
+
class: 'bg-supportive-lilac-100',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
variant: 'default',
|
|
52
|
+
disabled: true,
|
|
53
|
+
class: 'text-black-teal-200',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
variant: 'default',
|
|
57
|
+
disabled: true,
|
|
58
|
+
active: true,
|
|
59
|
+
class: 'bg-supportive-lilac-100',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
variant: 'dark-teal',
|
|
63
|
+
active: false,
|
|
64
|
+
enableHover: true,
|
|
65
|
+
class: 'text-white',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
variant: 'dark-teal',
|
|
69
|
+
active: false,
|
|
70
|
+
enableHover: true,
|
|
71
|
+
disabled: false,
|
|
72
|
+
class: 'hover:bg-dark-teal-400',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
variant: 'dark-teal',
|
|
76
|
+
active: true,
|
|
77
|
+
class: 'text-white bg-dark-teal-400',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
variant: 'dark-teal',
|
|
81
|
+
disabled: true,
|
|
82
|
+
class: 'opacity-40',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
variant: 'negative',
|
|
86
|
+
active: false,
|
|
87
|
+
enableHover: true,
|
|
88
|
+
disabled: false,
|
|
89
|
+
class: 'text-negative-red hover:bg-negative-red-50',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
variant: 'negative',
|
|
93
|
+
active: true,
|
|
94
|
+
disabled: false,
|
|
95
|
+
class: 'bg-negative-red-100 text-negative-red',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
variant: 'negative',
|
|
99
|
+
disabled: true,
|
|
100
|
+
class: 'text-negative-red-100',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
variant: 'negative',
|
|
104
|
+
disabled: true,
|
|
105
|
+
active: true,
|
|
106
|
+
class: 'bg-negative-red-50',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
enableHover: true,
|
|
110
|
+
disabled: false,
|
|
111
|
+
class: 'cursor-pointer',
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
});
|
|
115
|
+
const dropdownMenuItemIcon = index$1.cva(['text-base'], {
|
|
116
|
+
variants: {
|
|
117
|
+
variant: {
|
|
118
|
+
default: null,
|
|
119
|
+
'dark-teal': null,
|
|
120
|
+
negative: null,
|
|
121
|
+
},
|
|
122
|
+
active: {
|
|
123
|
+
false: null,
|
|
124
|
+
true: null,
|
|
125
|
+
},
|
|
126
|
+
disabled: {
|
|
127
|
+
false: null,
|
|
128
|
+
true: 'text-black-teal-100',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
compoundVariants: [
|
|
132
|
+
{
|
|
133
|
+
variant: 'default',
|
|
134
|
+
active: false,
|
|
135
|
+
disabled: false,
|
|
136
|
+
class: 'text-black-teal-300 group-hover:text-black-teal',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
variant: 'dark-teal',
|
|
140
|
+
active: false,
|
|
141
|
+
disabled: false,
|
|
142
|
+
class: 'text-dark-teal-100 group-hover:text-white',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
variant: 'negative',
|
|
146
|
+
active: false,
|
|
147
|
+
disabled: false,
|
|
148
|
+
class: 'text-negative-red group-hover:text-negative-red-800',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
variant: 'negative',
|
|
152
|
+
active: true,
|
|
153
|
+
disabled: false,
|
|
154
|
+
class: 'text-negative-red-800',
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
});
|
|
158
|
+
const DropdownMenuItem = class {
|
|
159
|
+
constructor(hostRef) {
|
|
160
|
+
index.registerInstance(this, hostRef);
|
|
161
|
+
this.active = false;
|
|
162
|
+
this.checkbox = false;
|
|
163
|
+
this.variant = 'default';
|
|
164
|
+
this.enableHover = true;
|
|
165
|
+
this.disabled = false;
|
|
166
|
+
this.icon = undefined;
|
|
167
|
+
this.useContainer = true;
|
|
168
|
+
}
|
|
169
|
+
render() {
|
|
170
|
+
return (index.h(index.Host, { key: '32964bd59857a3a902c7e27641dfe04040e71cf8', class: dropdownMenuItem({
|
|
171
|
+
variant: this.variant,
|
|
172
|
+
active: this.active,
|
|
173
|
+
enableHover: this.enableHover,
|
|
174
|
+
disabled: this.disabled,
|
|
175
|
+
}) }, this.icon && (index.h("p-icon", { key: '2dcd2db6b8bced38d21fe16cecc8d76b9298dec0', class: dropdownMenuItemIcon({
|
|
176
|
+
variant: this.variant,
|
|
177
|
+
active: this.active,
|
|
178
|
+
disabled: this.disabled,
|
|
179
|
+
}), variant: this.icon })), this.checkbox && (index.h("p-checkbox", { key: '084c1a2b222ab215cffe1272de6e24d691252aee', size: 'sm', checked: this.active, disabled: this.disabled })), this.useContainer ? (index.h("div", { class: 'block w-full overflow-hidden text-ellipsis whitespace-nowrap text-start' }, index.h("slot", null))) : (index.h("slot", null))));
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
DropdownMenuItem.style = PDropdownMenuItemStyle0;
|
|
183
|
+
|
|
184
|
+
const paginationPagesComponentCss = "*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.hidden{display:none!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}";
|
|
185
|
+
const PPaginationPagesStyle0 = paginationPagesComponentCss;
|
|
186
|
+
|
|
187
|
+
const pagination = index$1.cva(['p-pagination', 'flex gap-2 items-center'], {
|
|
188
|
+
variants: {
|
|
189
|
+
hidden: {
|
|
190
|
+
false: 'flex',
|
|
191
|
+
true: 'hidden',
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
});
|
|
195
|
+
const PaginationPages = class {
|
|
196
|
+
constructor(hostRef) {
|
|
197
|
+
index.registerInstance(this, hostRef);
|
|
198
|
+
this.pageChange = index.createEvent(this, "pageChange", 3);
|
|
199
|
+
this.pagesChange = index.createEvent(this, "pagesChange", 7);
|
|
200
|
+
this.page = 1;
|
|
201
|
+
this.pageSize = 12;
|
|
202
|
+
this.hideOnSinglePage = false;
|
|
203
|
+
this.total = undefined;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Event whenever the page changes
|
|
207
|
+
*/
|
|
208
|
+
pageChange;
|
|
209
|
+
/**
|
|
210
|
+
* The pages that were generated
|
|
211
|
+
*/
|
|
212
|
+
pagesChange;
|
|
213
|
+
_pages = [];
|
|
214
|
+
_set = [];
|
|
215
|
+
componentWillRender() {
|
|
216
|
+
this._generate();
|
|
217
|
+
}
|
|
218
|
+
render() {
|
|
219
|
+
return (index.h(index.Host, { key: 'e0690bf05d27e87d7e85b24cd2944ed338296dbf', class: pagination({
|
|
220
|
+
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
221
|
+
}) }, this._set?.map(p => {
|
|
222
|
+
if (p.type === 'previous' || p.type === 'next') {
|
|
223
|
+
return (index.h("p-pagination-pages-item", { variant: 'carousel', disabled: this._carouselDisabled(p.type), onClick: () => p.type === 'previous'
|
|
224
|
+
? this._previousClick()
|
|
225
|
+
: this._nextClick() }, p.value));
|
|
226
|
+
}
|
|
227
|
+
if (p.type === 'ellipsis') {
|
|
228
|
+
return (index.h("p-pagination-pages-item", { hover: false }, "..."));
|
|
229
|
+
}
|
|
230
|
+
return (index.h("p-pagination-pages-item", { active: p.value === this.page, onClick: () => this._pageClick(p.value) }, p.value));
|
|
231
|
+
})));
|
|
232
|
+
}
|
|
233
|
+
pageChangeHandler() {
|
|
234
|
+
this._generate();
|
|
235
|
+
}
|
|
236
|
+
_generate() {
|
|
237
|
+
this._pages = this._generatePages();
|
|
238
|
+
this._set = this._generateSet();
|
|
239
|
+
if (this.page > this._pages?.length) {
|
|
240
|
+
this._changePage(this._pages.length);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
_changePage(p) {
|
|
244
|
+
if (!p) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
this.page = p;
|
|
248
|
+
this.pageChange.emit(this.page);
|
|
249
|
+
}
|
|
250
|
+
_previousClick() {
|
|
251
|
+
if (this._carouselDisabled('previous')) {
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
this._changePage(this.page - 1);
|
|
255
|
+
}
|
|
256
|
+
_nextClick = () => {
|
|
257
|
+
if (this._carouselDisabled('next')) {
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
this._changePage(this.page + 1);
|
|
261
|
+
};
|
|
262
|
+
_carouselDisabled = (type) => {
|
|
263
|
+
if (type === 'next') {
|
|
264
|
+
const nextPage = this.page + 1;
|
|
265
|
+
if (nextPage > this._pages[this._pages.length - 1]) {
|
|
266
|
+
return true;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
if (type === 'previous') {
|
|
270
|
+
const previousPage = this.page - 1;
|
|
271
|
+
if (previousPage < this._pages[0]) {
|
|
272
|
+
return true;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
return false;
|
|
276
|
+
};
|
|
277
|
+
_pageClick = (p) => this._changePage(p);
|
|
278
|
+
_generatePages() {
|
|
279
|
+
if (!this.total || !this.pageSize) {
|
|
280
|
+
return [];
|
|
281
|
+
}
|
|
282
|
+
const pages = Math.ceil(this.total / this.pageSize);
|
|
283
|
+
this.pagesChange.emit(pages);
|
|
284
|
+
return new Array(pages).fill(undefined).map((_, i) => i + 1);
|
|
285
|
+
}
|
|
286
|
+
_generateSet = (range = 1, enableBoundaries = true) => {
|
|
287
|
+
const totalPages = this._pages.length;
|
|
288
|
+
if (!totalPages) {
|
|
289
|
+
return [];
|
|
290
|
+
}
|
|
291
|
+
let start = this.page - range;
|
|
292
|
+
let end = this.page + range;
|
|
293
|
+
if (end > totalPages) {
|
|
294
|
+
end = totalPages;
|
|
295
|
+
start = totalPages - range * 2;
|
|
296
|
+
start = start < 1 ? 1 : start;
|
|
297
|
+
}
|
|
298
|
+
if (start <= 1) {
|
|
299
|
+
start = 1;
|
|
300
|
+
end = Math.min(range * 2 + 1, totalPages);
|
|
301
|
+
}
|
|
302
|
+
const set = [];
|
|
303
|
+
const previous = {
|
|
304
|
+
type: 'previous',
|
|
305
|
+
value: (index.h("p-icon", { variant: 'caret', size: 'sm', rotate: 90 })),
|
|
306
|
+
};
|
|
307
|
+
const next = {
|
|
308
|
+
type: 'next',
|
|
309
|
+
value: (index.h("p-icon", { variant: 'caret', size: 'sm', rotate: -90 })),
|
|
310
|
+
};
|
|
311
|
+
// Disable page range, display all the pages
|
|
312
|
+
if (range === null) {
|
|
313
|
+
const p = this._pages.map(p => ({
|
|
314
|
+
type: 'page',
|
|
315
|
+
value: p,
|
|
316
|
+
}));
|
|
317
|
+
return enableBoundaries ? [previous, ...p, next] : p;
|
|
318
|
+
}
|
|
319
|
+
if (enableBoundaries) {
|
|
320
|
+
set.push(previous);
|
|
321
|
+
}
|
|
322
|
+
if (start <= 3) {
|
|
323
|
+
for (let i = 1; i < start; i++) {
|
|
324
|
+
set.push({
|
|
325
|
+
type: 'page',
|
|
326
|
+
value: this._pages[i - 1],
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
set.push({
|
|
332
|
+
type: 'page',
|
|
333
|
+
value: 1,
|
|
334
|
+
});
|
|
335
|
+
set.push({
|
|
336
|
+
type: 'ellipsis',
|
|
337
|
+
value: 'ellipsis',
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
for (let i = start; i <= end; i++) {
|
|
341
|
+
set.push({
|
|
342
|
+
type: 'page',
|
|
343
|
+
value: this._pages[i - 1],
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
if (end >= totalPages - 2) {
|
|
347
|
+
for (let i = end + 1; i <= totalPages; i++) {
|
|
348
|
+
set.push({
|
|
349
|
+
type: 'page',
|
|
350
|
+
value: this._pages[i - 1],
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
else {
|
|
355
|
+
set.push({
|
|
356
|
+
type: 'ellipsis',
|
|
357
|
+
});
|
|
358
|
+
set.push({
|
|
359
|
+
type: 'page',
|
|
360
|
+
value: this._pages[this._pages.length - 1],
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
if (enableBoundaries) {
|
|
364
|
+
set.push(next);
|
|
365
|
+
}
|
|
366
|
+
return set;
|
|
367
|
+
};
|
|
368
|
+
static get watchers() { return {
|
|
369
|
+
"page": ["pageChangeHandler"],
|
|
370
|
+
"pageSize": ["pageChangeHandler"],
|
|
371
|
+
"total": ["pageChangeHandler"]
|
|
372
|
+
}; }
|
|
373
|
+
};
|
|
374
|
+
PaginationPages.style = PPaginationPagesStyle0;
|
|
375
|
+
|
|
376
|
+
const paginationPagesItemComponentCss = "*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.h-6{height:1.5rem!important}.w-6{width:1.5rem!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.rounded{border-radius:.25rem!important}.rounded-full{border-radius:9999px!important}.bg-dark-teal-600{--tw-bg-opacity:1!important;background-color:rgb(0 72 64/var(--tw-bg-opacity,1))!important}.bg-off-white-300{--tw-bg-opacity:1!important;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))!important}.bg-off-white-700{--tw-bg-opacity:1!important;background-color:rgb(222 219 213/var(--tw-bg-opacity,1))!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/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-20{opacity:.2!important}.hover\\:bg-dark-teal-700:hover{--tw-bg-opacity:1!important;background-color:rgb(0 56 50/var(--tw-bg-opacity,1))!important}.hover\\:bg-off-white-500:hover{--tw-bg-opacity:1!important;background-color:rgb(243 241 237/var(--tw-bg-opacity,1))!important}.focus\\:bg-dark-teal-800:focus{--tw-bg-opacity:1!important;background-color:rgb(1 37 33/var(--tw-bg-opacity,1))!important}";
|
|
377
|
+
const PPaginationPagesItemStyle0 = paginationPagesItemComponentCss;
|
|
378
|
+
|
|
379
|
+
const item = index$1.cva([
|
|
380
|
+
'p-pagination-item',
|
|
381
|
+
'text-sm ',
|
|
382
|
+
'h-6 w-6',
|
|
383
|
+
'flex items-center justify-center text-center',
|
|
384
|
+
], {
|
|
385
|
+
variants: {
|
|
386
|
+
variant: {
|
|
387
|
+
default: 'rounded text-black-teal-500',
|
|
388
|
+
carousel: 'rounded-full text-white',
|
|
389
|
+
},
|
|
390
|
+
active: {
|
|
391
|
+
false: null,
|
|
392
|
+
true: null,
|
|
393
|
+
},
|
|
394
|
+
hover: {
|
|
395
|
+
false: null,
|
|
396
|
+
true: null,
|
|
397
|
+
},
|
|
398
|
+
disabled: {
|
|
399
|
+
false: null,
|
|
400
|
+
true: 'cursor-not-allowed',
|
|
401
|
+
},
|
|
402
|
+
},
|
|
403
|
+
compoundVariants: [
|
|
404
|
+
{
|
|
405
|
+
variant: 'default',
|
|
406
|
+
active: false,
|
|
407
|
+
class: 'bg-off-white-300',
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
variant: 'default',
|
|
411
|
+
active: false,
|
|
412
|
+
hover: true,
|
|
413
|
+
class: 'hover:bg-off-white-500 cursor-pointer',
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
variant: 'default',
|
|
417
|
+
active: true,
|
|
418
|
+
class: 'bg-off-white-700 font-semibold',
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
variant: 'carousel',
|
|
422
|
+
disabled: false,
|
|
423
|
+
class: 'bg-dark-teal-600',
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
variant: 'carousel',
|
|
427
|
+
disabled: false,
|
|
428
|
+
hover: true,
|
|
429
|
+
class: 'hover:bg-dark-teal-700 focus:bg-dark-teal-800 cursor-pointer',
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
variant: 'carousel',
|
|
433
|
+
disabled: true,
|
|
434
|
+
class: 'bg-dark-teal-600 opacity-20',
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
});
|
|
438
|
+
const PaginationPagesItem = class {
|
|
439
|
+
constructor(hostRef) {
|
|
440
|
+
index.registerInstance(this, hostRef);
|
|
441
|
+
this.variant = 'default';
|
|
442
|
+
this.active = false;
|
|
443
|
+
this.hover = true;
|
|
444
|
+
this.disabled = false;
|
|
445
|
+
}
|
|
446
|
+
render() {
|
|
447
|
+
return (index.h(index.Host, { key: 'f3420e85e92135dff1fc18e3cdf3b394de06bcf4', class: item({
|
|
448
|
+
variant: this.variant,
|
|
449
|
+
active: this.active,
|
|
450
|
+
hover: this.hover,
|
|
451
|
+
disabled: this.disabled,
|
|
452
|
+
}) }, index.h("slot", { key: '154f74a83839bd6ffadd22e8df43a635bffe1f14' })));
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
PaginationPagesItem.style = PPaginationPagesItemStyle0;
|
|
456
|
+
|
|
457
|
+
const paginationSizeComponentCss = "*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.min-w-0{min-width:0!important}.flex-1{flex:1 1 0%!important}.flex-shrink-0{flex-shrink:0!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.text-nowrap{text-wrap:nowrap!important}.rounded-full{border-radius:9999px!important}.bg-dark-teal-600{--tw-bg-opacity:1!important;background-color:rgb(0 72 64/var(--tw-bg-opacity,1))!important}.bg-dark-teal-800{--tw-bg-opacity:1!important;background-color:rgb(1 37 33/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-medium{font-weight:500!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.hover\\:bg-dark-teal-700:hover{--tw-bg-opacity:1!important;background-color:rgb(0 56 50/var(--tw-bg-opacity,1))!important}";
|
|
458
|
+
const PPaginationSizeStyle0 = paginationSizeComponentCss;
|
|
459
|
+
|
|
460
|
+
const paginationSize = index$1.cva('p-pagination-size', {
|
|
461
|
+
variants: {
|
|
462
|
+
hidden: {
|
|
463
|
+
false: null,
|
|
464
|
+
true: 'hidden',
|
|
465
|
+
},
|
|
466
|
+
},
|
|
467
|
+
});
|
|
468
|
+
const trigger = index$1.cva([
|
|
469
|
+
'flex items-center gap-2',
|
|
470
|
+
'px-2 h-6',
|
|
471
|
+
'text-sm text-white font-medium ',
|
|
472
|
+
'cursor-pointer rounded-full',
|
|
473
|
+
], {
|
|
474
|
+
variants: {
|
|
475
|
+
active: {
|
|
476
|
+
false: 'bg-dark-teal-600 hover:bg-dark-teal-700',
|
|
477
|
+
true: 'bg-dark-teal-800',
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
});
|
|
481
|
+
const PaginationSize = class {
|
|
482
|
+
constructor(hostRef) {
|
|
483
|
+
index.registerInstance(this, hostRef);
|
|
484
|
+
this.sizeChange = index.createEvent(this, "sizeChange", 3);
|
|
485
|
+
this.size = constants.defaultSize;
|
|
486
|
+
this.sizeOptions = constants.defaultSizeOptions;
|
|
487
|
+
this.itemTemplate = this._defaultItemTemplate;
|
|
488
|
+
this.hidden = false;
|
|
489
|
+
this.dropdownIsOpen = false;
|
|
490
|
+
this._locales = {};
|
|
491
|
+
}
|
|
492
|
+
_defaultItemTemplate = size => localization.formatTranslation(this._locales.item, { size });
|
|
493
|
+
/**
|
|
494
|
+
* Event whenever the size changes
|
|
495
|
+
*/
|
|
496
|
+
sizeChange;
|
|
497
|
+
get _el() { return index.getElement(this); }
|
|
498
|
+
componentWillLoad() {
|
|
499
|
+
this._setLocales();
|
|
500
|
+
}
|
|
501
|
+
render() {
|
|
502
|
+
return (index.h(index.Host, { key: 'c6a8bdc78842d4eea1a88621dfea502146de809e', class: paginationSize({ hidden: this.hidden }) }, index.h("p-dropdown", { key: '426f6a7215cf96574d6b541582730f486d99f603', variant: 'dark-teal', placement: 'top-start', chevronDirection: 'down', calculateWidth: true, onIsOpen: ({ detail }) => (this.dropdownIsOpen = detail) }, index.h("div", { key: '1d0e91bbda0055e463d5240b58ddb5a1fa4f4ff5', class: trigger({
|
|
503
|
+
active: this.dropdownIsOpen,
|
|
504
|
+
}), slot: 'trigger' }, index.h("p", { key: '22fd50f9438b897fd2e44ae1c7b36f2964c6b415', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap' }, this.itemTemplate
|
|
505
|
+
? this.itemTemplate(this.size)
|
|
506
|
+
: this._defaultItemTemplate(this.size)), index.h("p-icon", { key: '0d1b2ef85f9a19593e454923adc3c969c8c4351d', class: 'flex-shrink-0', variant: 'double-caret', size: 'sm' })), index.h("slot", { key: '95bb00e64170b9df61ba489343e58fdf647051b3', slot: 'items' }, this.sizeOptions.map(option => (index.h("p-dropdown-menu-item", { active: option === this.size, onClick: () => this._changeSize(option) }, this.itemTemplate
|
|
507
|
+
? this.itemTemplate(option)
|
|
508
|
+
: this._defaultItemTemplate(option))))))));
|
|
509
|
+
}
|
|
510
|
+
async _setLocales() {
|
|
511
|
+
this._locales = await localization.getLocaleComponentStrings(this._el);
|
|
512
|
+
}
|
|
513
|
+
_changeSize(s) {
|
|
514
|
+
if (!s) {
|
|
515
|
+
return;
|
|
516
|
+
}
|
|
517
|
+
this.size = s;
|
|
518
|
+
this.sizeChange.emit(this.size);
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
PaginationSize.style = PPaginationSizeStyle0;
|
|
522
|
+
|
|
523
|
+
exports.p_dropdown_menu_item = DropdownMenuItem;
|
|
524
|
+
exports.p_pagination_pages = PaginationPages;
|
|
525
|
+
exports.p_pagination_pages_item = PaginationPagesItem;
|
|
526
|
+
exports.p_pagination_size = PaginationSize;
|
|
527
|
+
|
|
528
|
+
//# sourceMappingURL=p-dropdown-menu-item_4.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-dropdown-menu-item.p-pagination-pages.p-pagination-pages-item.p-pagination-size.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,4BAA4B,GAAG,4jGAA4jG,CAAC;AAClmG,gCAAe,4BAA4B;;ACG3C,MAAM,gBAAgB,GAAGA,WAAG,CAC3B;IACC,4GAA4G;CAC5G,EACD;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,IAAI;YACjB,QAAQ,EAAE,IAAI;SACd;QACD,MAAM,EAAE;YACP,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,oBAAoB;SAC1B;QACD,WAAW,EAAE;YACZ,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,IAAI;YACjB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,8CAA8C;SACrD;QACD;YACC,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,IAAI;YACZ,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,yBAAyB;SAChC;QACD;YACC,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,qBAAqB;SAC5B;QACD;YACC,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,yBAAyB;SAChC;QAED;YACC,OAAO,EAAE,WAAW;YACpB,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,IAAI;YACjB,KAAK,EAAE,YAAY;SACnB;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IAAI,CAAC,YAAY;cACf,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;cAC5B,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CACpC,EACJA,qEACC,KAAK,EAAC,eAAe,EACrB,OAAO,EAAC,cAAc,EACtB,IAAI,EAAC,IAAI,GACR,CACG,EACNA,mEAAM,IAAI,EAAC,OAAO,IAChB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,KAC3BA,kCACC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,IAAI,EAC5B,OAAO,EAAE,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAEtC,IAAI,CAAC,YAAY;cACf,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;cACzB,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,CACd,CACvB,CAAC,CACI,CACK,CACP,EACN;KACF;IAGO,MAAM,WAAW;QACxB,IAAI,CAAC,QAAQ,GAAG,MAAMK,sCAAyB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC1D;IAEO,WAAW,CAAC,CAAU;QAC7B,IAAI,CAAC,CAAC,EAAE;YACP,OAAO;SACP;QAED,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAChC;;;;;;;;;","names":["cva","h","Host","defaultSize","defaultSizeOptions","formatTranslation","getLocaleComponentStrings"],"sources":["src/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css?tag=p-dropdown-menu-item","src/components/atoms/dropdown-menu-item/dropdown-menu-item.component.tsx","src/components/molecules/pagination-pages/pagination-pages.component.css?tag=p-pagination-pages","src/components/molecules/pagination-pages/pagination-pages.component.tsx","src/components/atoms/pagination-pages-item/pagination-pages-item.component.css?tag=p-pagination-pages-item","src/components/atoms/pagination-pages-item/pagination-pages-item.component.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":["","import { Component, Host, Prop, h } from '@stencil/core';\nimport { IconVariant } from '../icon/icon.component';\nimport { cva } from 'class-variance-authority';\n\nconst dropdownMenuItem = cva(\n\t[\n\t\t'p-dropdown-menu-item flex px-2 py-1 gap-2 text-sm font-medium group rounded-lg items-center h-8 max-w-full',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: null,\n\t\t\t\t'dark-teal': null,\n\t\t\t\tnegative: null,\n\t\t\t},\n\t\t\tactive: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: 'cursor-pointer',\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t\tenableHover: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: false,\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-black-teal hover:bg-supportive-lilac-50',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-supportive-lilac-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-black-teal-200',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tdisabled: true,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'bg-supportive-lilac-100',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'dark-teal',\n\t\t\t\tactive: false,\n\t\t\t\tenableHover: true,\n\t\t\t\tclass: 'text-white',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'dark-teal',\n\t\t\t\tactive: false,\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'hover:bg-dark-teal-400',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'dark-teal',\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'text-white bg-dark-teal-400',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'dark-teal',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'opacity-40',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tactive: false,\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-negative-red hover:bg-negative-red-50',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tactive: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-negative-red-100 text-negative-red',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-negative-red-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tdisabled: true,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'bg-negative-red-50',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'cursor-pointer',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst dropdownMenuItemIcon = cva(['text-base'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: null,\n\t\t\t'dark-teal': null,\n\t\t\tnegative: null,\n\t\t},\n\t\tactive: {\n\t\t\tfalse: null,\n\t\t\ttrue: null,\n\t\t},\n\t\tdisabled: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'text-black-teal-100',\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'default',\n\t\t\tactive: false,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-black-teal-300 group-hover:text-black-teal',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'dark-teal',\n\t\t\tactive: false,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-dark-teal-100 group-hover:text-white',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'negative',\n\t\t\tactive: false,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-negative-red group-hover:text-negative-red-800',\n\t\t},\n\t\t{\n\t\t\tvariant: 'negative',\n\t\t\tactive: true,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-negative-red-800',\n\t\t},\n\t],\n});\n\n@Component({\n\ttag: 'p-dropdown-menu-item',\n\tstyleUrl: 'dropdown-menu-item.component.css',\n})\nexport class DropdownMenuItem {\n\t/**\n\t * Wether the dropdown menu item is active\n\t */\n\t@Prop() active: boolean = false;\n\n\t/**\n\t * Wether the dropdown menu item has a checkbox\n\t */\n\t@Prop() checkbox: boolean = false;\n\n\t/**\n\t * The variant of the item\n\t */\n\t@Prop() variant: 'default' | 'dark-teal' | 'negative' = 'default';\n\n\t/**\n\t * Wether to enable the hover state\n\t */\n\t@Prop() enableHover: boolean = true;\n\n\t/**\n\t * Wether the item is disabled\n\t */\n\t@Prop() disabled: boolean = false;\n\n\t/**\n\t * Icon of the navigation item\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * wether to use the container for text\n\t */\n\t@Prop() useContainer = true;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={dropdownMenuItem({\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tactive: this.active,\n\t\t\t\t\tenableHover: this.enableHover,\n\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{/* class={`p-dropdown-menu-item ${this.active && 'active'} ${ */}\n\t\t\t\t{/* \tthis.enableHover && 'hover' */}\n\t\t\t\t{/* }`} */}\n\t\t\t\t{this.icon && (\n\t\t\t\t\t<p-icon\n\t\t\t\t\t\tclass={dropdownMenuItemIcon({\n\t\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\t\tactive: this.active,\n\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t{this.checkbox && (\n\t\t\t\t\t<p-checkbox\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tchecked={this.active}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t{this.useContainer ? (\n\t\t\t\t\t<div class='block w-full overflow-hidden text-ellipsis whitespace-nowrap text-start'>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<slot />\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n","","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tProp,\n\tWatch,\n} 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})\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() 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<Host\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</Host>\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","","import { Component, h, Host, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst item = cva(\n\t[\n\t\t'p-pagination-item',\n\t\t'text-sm ',\n\t\t'h-6 w-6',\n\t\t'flex items-center justify-center text-center',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: 'rounded text-black-teal-500',\n\t\t\t\tcarousel: 'rounded-full text-white',\n\t\t\t},\n\t\t\tactive: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\thover: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: false,\n\t\t\t\tclass: 'bg-off-white-300',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: false,\n\t\t\t\thover: true,\n\t\t\t\tclass: 'hover:bg-off-white-500 cursor-pointer',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'bg-off-white-700 font-semibold',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'carousel',\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-dark-teal-600',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'carousel',\n\t\t\t\tdisabled: false,\n\t\t\t\thover: true,\n\t\t\t\tclass: 'hover:bg-dark-teal-700 focus:bg-dark-teal-800 cursor-pointer',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'carousel',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'bg-dark-teal-600 opacity-20',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-pagination-pages-item',\n\tstyleUrl: 'pagination-pages-item.component.css',\n})\nexport class PaginationPagesItem {\n\t/**\n\t * The variant of the item\n\t */\n\t@Prop() variant: 'default' | 'carousel' = 'default';\n\n\t/**\n\t * Wether the pagination item is active\n\t */\n\t@Prop() active: boolean = false;\n\n\t/**\n\t * Wether the pagination item has hover\n\t */\n\t@Prop() hover: boolean = true;\n\n\t/**\n\t * Wether the pagination item is disabled\n\t */\n\t@Prop() disabled: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={item({\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tactive: this.active,\n\t\t\t\t\thover: this.hover,\n\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\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';\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-600 hover:bg-dark-teal-700',\n\t\t\t\ttrue: 'bg-dark-teal-800',\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: this.hidden })}>\n\t\t\t\t<p-dropdown\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\tcalculateWidth={true}\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}
|