@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
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as cva } from './index2.js';
|
|
2
3
|
import { d as defineCustomElement$2 } from './icon.component.js';
|
|
3
|
-
import { d as defineCustomElement$1 } from './pagination-item.component.js';
|
|
4
|
+
import { d as defineCustomElement$1 } from './pagination-pages-item.component.js';
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
6
|
+
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}";
|
|
7
|
+
const PPaginationPagesStyle0 = paginationPagesComponentCss;
|
|
7
8
|
|
|
8
|
-
const
|
|
9
|
+
const pagination = cva(['p-pagination', 'flex gap-2 items-center'], {
|
|
10
|
+
variants: {
|
|
11
|
+
hidden: {
|
|
12
|
+
false: 'flex',
|
|
13
|
+
true: 'hidden',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
const PaginationPages = /*@__PURE__*/ proxyCustomElement(class PaginationPages extends HTMLElement {
|
|
9
18
|
constructor() {
|
|
10
19
|
super();
|
|
11
20
|
this.__registerHost();
|
|
12
21
|
this.pageChange = createEvent(this, "pageChange", 3);
|
|
22
|
+
this.pagesChange = createEvent(this, "pagesChange", 7);
|
|
13
23
|
this.page = 1;
|
|
14
24
|
this.pageSize = 12;
|
|
15
25
|
this.hideOnSinglePage = false;
|
|
@@ -19,22 +29,28 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends HTM
|
|
|
19
29
|
* Event whenever the page changes
|
|
20
30
|
*/
|
|
21
31
|
pageChange;
|
|
32
|
+
/**
|
|
33
|
+
* The pages that were generated
|
|
34
|
+
*/
|
|
35
|
+
pagesChange;
|
|
22
36
|
_pages = [];
|
|
23
37
|
_set = [];
|
|
24
38
|
componentWillRender() {
|
|
25
39
|
this._generate();
|
|
26
40
|
}
|
|
27
41
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'e0690bf05d27e87d7e85b24cd2944ed338296dbf', class: pagination({
|
|
43
|
+
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
44
|
+
}) }, this._set?.map(p => {
|
|
29
45
|
if (p.type === 'previous' || p.type === 'next') {
|
|
30
|
-
return (h("p-pagination-item", { onClick: () => p.type === 'previous'
|
|
46
|
+
return (h("p-pagination-pages-item", { variant: 'carousel', disabled: this._carouselDisabled(p.type), onClick: () => p.type === 'previous'
|
|
31
47
|
? this._previousClick()
|
|
32
48
|
: this._nextClick() }, p.value));
|
|
33
49
|
}
|
|
34
50
|
if (p.type === 'ellipsis') {
|
|
35
|
-
return h("p-pagination-item",
|
|
51
|
+
return (h("p-pagination-pages-item", { hover: false }, "..."));
|
|
36
52
|
}
|
|
37
|
-
return (h("p-pagination-item", { active: p.value === this.page, onClick: () => this._pageClick(p.value) }, p.value));
|
|
53
|
+
return (h("p-pagination-pages-item", { active: p.value === this.page, onClick: () => this._pageClick(p.value) }, p.value));
|
|
38
54
|
})));
|
|
39
55
|
}
|
|
40
56
|
pageChangeHandler() {
|
|
@@ -55,18 +71,31 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends HTM
|
|
|
55
71
|
this.pageChange.emit(this.page);
|
|
56
72
|
}
|
|
57
73
|
_previousClick() {
|
|
58
|
-
|
|
59
|
-
if (previousPage < this._pages[0]) {
|
|
74
|
+
if (this._carouselDisabled('previous')) {
|
|
60
75
|
return;
|
|
61
76
|
}
|
|
62
|
-
this._changePage(
|
|
77
|
+
this._changePage(this.page - 1);
|
|
63
78
|
}
|
|
64
79
|
_nextClick = () => {
|
|
65
|
-
|
|
66
|
-
if (nextPage > this._pages[this._pages.length - 1]) {
|
|
80
|
+
if (this._carouselDisabled('next')) {
|
|
67
81
|
return;
|
|
68
82
|
}
|
|
69
|
-
this._changePage(
|
|
83
|
+
this._changePage(this.page + 1);
|
|
84
|
+
};
|
|
85
|
+
_carouselDisabled = (type) => {
|
|
86
|
+
if (type === 'next') {
|
|
87
|
+
const nextPage = this.page + 1;
|
|
88
|
+
if (nextPage > this._pages[this._pages.length - 1]) {
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if (type === 'previous') {
|
|
93
|
+
const previousPage = this.page - 1;
|
|
94
|
+
if (previousPage < this._pages[0]) {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return false;
|
|
70
99
|
};
|
|
71
100
|
_pageClick = (p) => this._changePage(p);
|
|
72
101
|
_generatePages() {
|
|
@@ -74,6 +103,7 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends HTM
|
|
|
74
103
|
return [];
|
|
75
104
|
}
|
|
76
105
|
const pages = Math.ceil(this.total / this.pageSize);
|
|
106
|
+
this.pagesChange.emit(pages);
|
|
77
107
|
return new Array(pages).fill(undefined).map((_, i) => i + 1);
|
|
78
108
|
}
|
|
79
109
|
_generateSet = (range = 1, enableBoundaries = true) => {
|
|
@@ -95,11 +125,11 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends HTM
|
|
|
95
125
|
const set = [];
|
|
96
126
|
const previous = {
|
|
97
127
|
type: 'previous',
|
|
98
|
-
value: (h("p-icon", { variant: 'caret', rotate: 90 })),
|
|
128
|
+
value: (h("p-icon", { variant: 'caret', size: 'sm', rotate: 90 })),
|
|
99
129
|
};
|
|
100
130
|
const next = {
|
|
101
131
|
type: 'next',
|
|
102
|
-
value: (h("p-icon", { variant: 'caret', rotate: -90 })),
|
|
132
|
+
value: (h("p-icon", { variant: 'caret', size: 'sm', rotate: -90 })),
|
|
103
133
|
};
|
|
104
134
|
// Disable page range, display all the pages
|
|
105
135
|
if (range === null) {
|
|
@@ -163,8 +193,8 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends HTM
|
|
|
163
193
|
"pageSize": ["pageChangeHandler"],
|
|
164
194
|
"total": ["pageChangeHandler"]
|
|
165
195
|
}; }
|
|
166
|
-
static get style() { return
|
|
167
|
-
}, [0, "p-pagination", {
|
|
196
|
+
static get style() { return PPaginationPagesStyle0; }
|
|
197
|
+
}, [0, "p-pagination-pages", {
|
|
168
198
|
"page": [1538],
|
|
169
199
|
"pageSize": [2, "page-size"],
|
|
170
200
|
"hideOnSinglePage": [4, "hide-on-single-page"],
|
|
@@ -178,11 +208,11 @@ function defineCustomElement() {
|
|
|
178
208
|
if (typeof customElements === "undefined") {
|
|
179
209
|
return;
|
|
180
210
|
}
|
|
181
|
-
const components = ["p-pagination", "p-icon", "p-pagination-item"];
|
|
211
|
+
const components = ["p-pagination-pages", "p-icon", "p-pagination-pages-item"];
|
|
182
212
|
components.forEach(tagName => { switch (tagName) {
|
|
183
|
-
case "p-pagination":
|
|
213
|
+
case "p-pagination-pages":
|
|
184
214
|
if (!customElements.get(tagName)) {
|
|
185
|
-
customElements.define(tagName,
|
|
215
|
+
customElements.define(tagName, PaginationPages);
|
|
186
216
|
}
|
|
187
217
|
break;
|
|
188
218
|
case "p-icon":
|
|
@@ -190,7 +220,7 @@ function defineCustomElement() {
|
|
|
190
220
|
defineCustomElement$2();
|
|
191
221
|
}
|
|
192
222
|
break;
|
|
193
|
-
case "p-pagination-item":
|
|
223
|
+
case "p-pagination-pages-item":
|
|
194
224
|
if (!customElements.get(tagName)) {
|
|
195
225
|
defineCustomElement$1();
|
|
196
226
|
}
|
|
@@ -198,6 +228,6 @@ function defineCustomElement() {
|
|
|
198
228
|
} });
|
|
199
229
|
}
|
|
200
230
|
|
|
201
|
-
export {
|
|
231
|
+
export { PaginationPages as P, defineCustomElement as d };
|
|
202
232
|
|
|
203
|
-
//# sourceMappingURL=pagination.component.js.map
|
|
233
|
+
//# sourceMappingURL=pagination-pages.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"pagination-pages.component.js","mappings":";;;;;AAAA,MAAM,2BAA2B,GAAG,8LAA8L,CAAC;AACnO,+BAAe,2BAA2B;;ACe1C,MAAM,UAAU,GAAG,GAAG,CAAC,CAAC,cAAc,EAAE,yBAAyB,CAAC,EAAE;IACnE,QAAQ,EAAE;QACT,MAAM,EAAE;YACP,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,QAAQ;SACd;KACD;CACD,CAAC,CAAC;MAMU,eAAe;;;;;;oBAI4B,CAAC;wBAa7B,EAAE;gCAKO,KAAK;;;;;;IAVzC,UAAU,CAAuB;;;;IAoBxB,WAAW,CAAuB;IAEnC,MAAM,GAAa,EAAE,CAAC;IACtB,IAAI,GAAwB,EAAE,CAAC;IAEvC,mBAAmB;QAClB,IAAI,CAAC,SAAS,EAAE,CAAC;KAC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GAAG,CAAC,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,EAAE,EAAE;gBAC3C,GAAG,CAAC,IAAI,CAAC;oBACR,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;iBACzB,CAAC,CAAC;aACH;SACD;aAAM;YACN,GAAG,CAAC,IAAI,CAAC;gBACR,IAAI,EAAE,UAAU;aAChB,CAAC,CAAC;YAEH,GAAG,CAAC,IAAI,CAAC;gBACR,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;aAC1C,CAAC,CAAC;SACH;QAED,IAAI,gBAAgB,EAAE;YACrB,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACf;QAED,OAAO,GAAG,CAAC;KACX,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/molecules/pagination-pages/pagination-pages.component.css?tag=p-pagination-pages","src/components/molecules/pagination-pages/pagination-pages.component.tsx"],"sourcesContent":["","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"],"version":3}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { f as formatTranslation, g as getLocaleComponentStrings } from './localization.js';
|
|
3
|
+
import { c as cva } from './index2.js';
|
|
4
|
+
import { d as defineCustomElement$6 } from './checkbox.component.js';
|
|
5
|
+
import { d as defineCustomElement$5 } from './dropdown.component.js';
|
|
6
|
+
import { d as defineCustomElement$4 } from './dropdown-menu-container.component.js';
|
|
7
|
+
import { d as defineCustomElement$3 } from './dropdown-menu-item.component.js';
|
|
8
|
+
import { d as defineCustomElement$2 } from './icon.component.js';
|
|
9
|
+
import { d as defineCustomElement$1 } from './portal.component.js';
|
|
10
|
+
|
|
11
|
+
const defaultSize = 12;
|
|
12
|
+
const defaultSizeOptions = [12, 24, 68, 136];
|
|
13
|
+
|
|
14
|
+
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}";
|
|
15
|
+
const PPaginationSizeStyle0 = paginationSizeComponentCss;
|
|
16
|
+
|
|
17
|
+
const paginationSize = cva('p-pagination-size', {
|
|
18
|
+
variants: {
|
|
19
|
+
hidden: {
|
|
20
|
+
false: null,
|
|
21
|
+
true: 'hidden',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
const trigger = cva([
|
|
26
|
+
'flex items-center gap-2',
|
|
27
|
+
'px-2 h-6',
|
|
28
|
+
'text-sm text-white font-medium ',
|
|
29
|
+
'cursor-pointer rounded-full',
|
|
30
|
+
], {
|
|
31
|
+
variants: {
|
|
32
|
+
active: {
|
|
33
|
+
false: 'bg-dark-teal-600 hover:bg-dark-teal-700',
|
|
34
|
+
true: 'bg-dark-teal-800',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
const PaginationSize = /*@__PURE__*/ proxyCustomElement(class PaginationSize extends HTMLElement {
|
|
39
|
+
constructor() {
|
|
40
|
+
super();
|
|
41
|
+
this.__registerHost();
|
|
42
|
+
this.__attachShadow();
|
|
43
|
+
this.sizeChange = createEvent(this, "sizeChange", 3);
|
|
44
|
+
this.size = defaultSize;
|
|
45
|
+
this.sizeOptions = defaultSizeOptions;
|
|
46
|
+
this.itemTemplate = this._defaultItemTemplate;
|
|
47
|
+
this.hidden = false;
|
|
48
|
+
this.dropdownIsOpen = false;
|
|
49
|
+
this._locales = {};
|
|
50
|
+
}
|
|
51
|
+
_defaultItemTemplate = size => formatTranslation(this._locales.item, { size });
|
|
52
|
+
/**
|
|
53
|
+
* Event whenever the size changes
|
|
54
|
+
*/
|
|
55
|
+
sizeChange;
|
|
56
|
+
get _el() { return this; }
|
|
57
|
+
componentWillLoad() {
|
|
58
|
+
this._setLocales();
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
return (h(Host, { key: 'c6a8bdc78842d4eea1a88621dfea502146de809e', class: paginationSize({ hidden: this.hidden }) }, h("p-dropdown", { key: '426f6a7215cf96574d6b541582730f486d99f603', variant: 'dark-teal', placement: 'top-start', chevronDirection: 'down', calculateWidth: true, onIsOpen: ({ detail }) => (this.dropdownIsOpen = detail) }, h("div", { key: '1d0e91bbda0055e463d5240b58ddb5a1fa4f4ff5', class: trigger({
|
|
62
|
+
active: this.dropdownIsOpen,
|
|
63
|
+
}), slot: 'trigger' }, h("p", { key: '22fd50f9438b897fd2e44ae1c7b36f2964c6b415', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap' }, this.itemTemplate
|
|
64
|
+
? this.itemTemplate(this.size)
|
|
65
|
+
: this._defaultItemTemplate(this.size)), h("p-icon", { key: '0d1b2ef85f9a19593e454923adc3c969c8c4351d', class: 'flex-shrink-0', variant: 'double-caret', size: 'sm' })), h("slot", { key: '95bb00e64170b9df61ba489343e58fdf647051b3', slot: 'items' }, this.sizeOptions.map(option => (h("p-dropdown-menu-item", { active: option === this.size, onClick: () => this._changeSize(option) }, this.itemTemplate
|
|
66
|
+
? this.itemTemplate(option)
|
|
67
|
+
: this._defaultItemTemplate(option))))))));
|
|
68
|
+
}
|
|
69
|
+
async _setLocales() {
|
|
70
|
+
this._locales = await getLocaleComponentStrings(this._el);
|
|
71
|
+
}
|
|
72
|
+
_changeSize(s) {
|
|
73
|
+
if (!s) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
this.size = s;
|
|
77
|
+
this.sizeChange.emit(this.size);
|
|
78
|
+
}
|
|
79
|
+
static get style() { return PPaginationSizeStyle0; }
|
|
80
|
+
}, [1, "p-pagination-size", {
|
|
81
|
+
"size": [1538],
|
|
82
|
+
"sizeOptions": [16],
|
|
83
|
+
"itemTemplate": [16],
|
|
84
|
+
"hidden": [4],
|
|
85
|
+
"dropdownIsOpen": [32],
|
|
86
|
+
"_locales": [32]
|
|
87
|
+
}, [[16, "localeChanged", "_setLocales"]]]);
|
|
88
|
+
function defineCustomElement() {
|
|
89
|
+
if (typeof customElements === "undefined") {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
const components = ["p-pagination-size", "p-checkbox", "p-dropdown", "p-dropdown-menu-container", "p-dropdown-menu-item", "p-icon", "p-portal"];
|
|
93
|
+
components.forEach(tagName => { switch (tagName) {
|
|
94
|
+
case "p-pagination-size":
|
|
95
|
+
if (!customElements.get(tagName)) {
|
|
96
|
+
customElements.define(tagName, PaginationSize);
|
|
97
|
+
}
|
|
98
|
+
break;
|
|
99
|
+
case "p-checkbox":
|
|
100
|
+
if (!customElements.get(tagName)) {
|
|
101
|
+
defineCustomElement$6();
|
|
102
|
+
}
|
|
103
|
+
break;
|
|
104
|
+
case "p-dropdown":
|
|
105
|
+
if (!customElements.get(tagName)) {
|
|
106
|
+
defineCustomElement$5();
|
|
107
|
+
}
|
|
108
|
+
break;
|
|
109
|
+
case "p-dropdown-menu-container":
|
|
110
|
+
if (!customElements.get(tagName)) {
|
|
111
|
+
defineCustomElement$4();
|
|
112
|
+
}
|
|
113
|
+
break;
|
|
114
|
+
case "p-dropdown-menu-item":
|
|
115
|
+
if (!customElements.get(tagName)) {
|
|
116
|
+
defineCustomElement$3();
|
|
117
|
+
}
|
|
118
|
+
break;
|
|
119
|
+
case "p-icon":
|
|
120
|
+
if (!customElements.get(tagName)) {
|
|
121
|
+
defineCustomElement$2();
|
|
122
|
+
}
|
|
123
|
+
break;
|
|
124
|
+
case "p-portal":
|
|
125
|
+
if (!customElements.get(tagName)) {
|
|
126
|
+
defineCustomElement$1();
|
|
127
|
+
}
|
|
128
|
+
break;
|
|
129
|
+
} });
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export { PaginationSize as P, defaultSizeOptions as a, defineCustomElement as b, defaultSize as d };
|
|
133
|
+
|
|
134
|
+
//# sourceMappingURL=pagination-size.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"pagination-size.component.js","mappings":";;;;;;;;;;MAAa,WAAW,GAAG,GAAG;MACjB,kBAAkB,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG;;ACDlD,MAAM,0BAA0B,GAAG,4nCAA4nC,CAAC;AAChqC,8BAAe,0BAA0B;;ACmBzC,MAAM,cAAc,GAAG,GAAG,CAAC,mBAAmB,EAAE;IAC/C,QAAQ,EAAE;QACT,MAAM,EAAE;YACP,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,QAAQ;SACd;KACD;CACD,CAAC,CAAC;AAEH,MAAM,OAAO,GAAG,GAAG,CAClB;IACC,yBAAyB;IACzB,UAAU;IACV,iCAAiC;IACjC,6BAA6B;CAC7B,EACD;IACC,QAAQ,EAAE;QACT,MAAM,EAAE;YACP,KAAK,EAAE,yCAAyC;YAChD,IAAI,EAAE,kBAAkB;SACxB;KACD;CACD,CACD,CAAC;MAOW,cAAc;;;;;;oBAM6B,WAAW;2BAKlC,kBAAkB;4BAab,IAAI,CAAC,oBAAoB;sBAUpC,KAAK;8BAKL,KAAK;wBAKE,EAAE;;IA3C3B,oBAAoB,GAAiB,IAAI,IAChD,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;;;;IAiBjD,UAAU,CAAuB;;IA2BjC,iBAAiB;QAChB,IAAI,CAAC,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CAAC,IAAI,GAAG,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"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';\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}
|
|
@@ -17,7 +17,7 @@ const Portal = /*@__PURE__*/ proxyCustomElement(class Portal extends HTMLElement
|
|
|
17
17
|
this._moved ? this._el.remove() : (this._moved = true);
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: 'bb0d2d84023af6e4d6b9d87ebeba83d16c37949b' }, h("slot", { key: '014316bcd782e41366cbf3489357b1ea47b5d23b' })));
|
|
21
21
|
}
|
|
22
22
|
}, [4, "p-portal"]);
|
|
23
23
|
function defineCustomElement() {
|
|
@@ -9,7 +9,7 @@ const SegmentContainer = /*@__PURE__*/ proxyCustomElement(class SegmentContainer
|
|
|
9
9
|
this.__registerHost();
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'e171752c7eb839f1efea4ffe9c09caa08da154bc', class: 'p-segment-container flex rounded-full border border-solid border-off-white-700 bg-off-white-300 p-1' }, h("slot", { key: 'a9fba3fe448232dffc7a495507d53faa059e405d' })));
|
|
13
13
|
}
|
|
14
14
|
static get style() { return PSegmentContainerStyle0; }
|
|
15
15
|
}, [4, "p-segment-container"]);
|
|
@@ -33,10 +33,10 @@ const SegmentItem = /*@__PURE__*/ proxyCustomElement(class SegmentItem extends H
|
|
|
33
33
|
this.iconRotate = undefined;
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: 'b038e9d37e1ed6fef2c26b526f756d5b4d3969c8', class: segmentItem({
|
|
37
37
|
active: this.active,
|
|
38
38
|
iconOnly: this.iconOnly,
|
|
39
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
39
|
+
}) }, this.icon && (h("p-icon", { key: '01ad5164e37f166395422a6a5ffe38499a42b26b', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), h("slot", { key: '0b8d0661e1f774422008fc22e3c96e64c8388ac4' })));
|
|
40
40
|
}
|
|
41
41
|
static get style() { return PSegmentItemStyle0; }
|
|
42
42
|
}, [4, "p-segment-item", {
|
|
@@ -11,7 +11,7 @@ const SliderIndicator = /*@__PURE__*/ proxyCustomElement(class SliderIndicator e
|
|
|
11
11
|
this.active = false;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'b4a76296cb2107ee168a257a89fcf4cd75a724dc', class: `p-slider-indicator ${this.active && 'active'}` }));
|
|
15
15
|
}
|
|
16
16
|
static get style() { return PSliderIndicatorStyle0; }
|
|
17
17
|
}, [1, "p-slider-indicator", {
|
|
@@ -12,7 +12,7 @@ const StepperLine = /*@__PURE__*/ proxyCustomElement(class StepperLine extends H
|
|
|
12
12
|
this.direction = 'horizontal';
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return h(Host, { key: '
|
|
15
|
+
return h(Host, { key: '1f10907cd345fbd5beda9a9d022426dbeb1d769d', class: "p-stepper-line" });
|
|
16
16
|
}
|
|
17
17
|
static get style() { return PStepperLineStyle0; }
|
|
18
18
|
}, [1, "p-stepper-line", {
|
|
@@ -33,7 +33,7 @@ const TableCell = /*@__PURE__*/ proxyCustomElement(class TableCell extends HTMLE
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '5ea2d685b03dbab341e3dc4707a2fec3b1959e2c', class: {
|
|
37
37
|
'p-table-cell': true,
|
|
38
38
|
[`variant-${this.variant}`]: true,
|
|
39
39
|
...this._getColumnClasses(),
|
|
@@ -11,7 +11,7 @@ const TableContainer = /*@__PURE__*/ proxyCustomElement(class TableContainer ext
|
|
|
11
11
|
this.shadow = true;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'f9b97958a4f0e448258e16b116fe42a81b014eb8', class: `p-table-container ${!this.shadow && 'no-shadow'}` }, h("slot", { key: 'dfb4247a6e6a80479c44ae9481d620666fad2a55' })));
|
|
15
15
|
}
|
|
16
16
|
static get style() { return PTableContainerStyle0; }
|
|
17
17
|
}, [1, "p-table-container", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { f as formatTranslation, g as getLocaleComponentStrings } from './localization.js';
|
|
3
|
-
import {
|
|
3
|
+
import { d as defaultSize, a as defaultSizeOptions, b as defineCustomElement$2 } from './pagination-size.component.js';
|
|
4
4
|
import { d as defineCustomElement$b } from './button.component.js';
|
|
5
5
|
import { d as defineCustomElement$a } from './checkbox.component.js';
|
|
6
6
|
import { d as defineCustomElement$9 } from './dropdown.component.js';
|
|
@@ -8,11 +8,11 @@ import { d as defineCustomElement$8 } from './dropdown-menu-container.component.
|
|
|
8
8
|
import { d as defineCustomElement$7 } from './dropdown-menu-item.component.js';
|
|
9
9
|
import { d as defineCustomElement$6 } from './icon.component.js';
|
|
10
10
|
import { d as defineCustomElement$5 } from './loader.component.js';
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$
|
|
11
|
+
import { d as defineCustomElement$4 } from './pagination-pages.component.js';
|
|
12
|
+
import { d as defineCustomElement$3 } from './pagination-pages-item.component.js';
|
|
13
13
|
import { d as defineCustomElement$1 } from './portal.component.js';
|
|
14
14
|
|
|
15
|
-
const tableFooterComponentCss = ".flex{display:flex!important}.grid{display:grid!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}
|
|
15
|
+
const tableFooterComponentCss = ".col-start-1{grid-column-start:1!important}.col-start-3{grid-column-start:3!important}.flex{display:flex!important}.grid{display:grid!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}*{box-sizing:border-box}:host{display:grid;gap:1rem;grid-template-columns:repeat(1,minmax(0,1fr));padding:1.5rem;width:100%}:host>p-pagination{display:flex;grid-column-start:1;justify-self:center}:host>p-loader{grid-column-start:1}@media (min-width:64rem){:host{grid-template-areas:\"page-size pagination export\";grid-template-columns:repeat(3,minmax(0,1fr))}:host>p-pagination-size{grid-column-start:1}:host>p-pagination-pages{grid-column-start:2}:host>p-loader{grid-column-start:2}:host>p-button{grid-column-start:3;justify-self:end}}:host(.page-size-disabled.export-disabled){grid-template-columns:repeat(1,minmax(0,1fr))}:host(.page-size-disabled.export-disabled)>p-pagination{grid-column-start:1}.static{position:static!important}.hidden{display:none!important}.h-8{height:2rem!important}.w-full{width:100%!important}.rounded{border-radius:.25rem!important}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}}";
|
|
16
16
|
const PTableFooterStyle0 = tableFooterComponentCss;
|
|
17
17
|
|
|
18
18
|
const TableFooter = /*@__PURE__*/ proxyCustomElement(class TableFooter extends HTMLElement {
|
|
@@ -52,7 +52,7 @@ const TableFooter = /*@__PURE__*/ proxyCustomElement(class TableFooter extends H
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total < this.pageSizeOptions?.[0];
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'cb2418de42dab7f9020c52c4883d11dd74ada665', class: `p-table-footer ${!this.enablePageSize && 'page-size-disabled'} ${!this.enablePagination && 'pagination-disabled'} ${!this.enableExport && 'export-disabled'}` }, !this.loading && this.enablePagination && this.enablePageSize && (h("p-pagination-size", { key: '7e35edad34ffafecbfd1574025e43accf4d6875c', class: !hidePageSizeSelect && 'hidden desktop-xs:flex', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) })), this.loading && (h("p-loader", { key: 'ef267282c339b87669ec03e7e7c2d01969480563', variant: 'ghost', class: 'h-8 w-full rounded' })), !this.loading && this.enablePagination && (h("p-pagination-pages", { key: '7524b69f3ec82817f753ac66bd6a791bb905b4a0', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail) })), !this.loading && this.enableExport && (h("p-button", { key: '508ddec714228b334d682f93185a555a030c5cd2', class: 'hidden desktop-xs:flex', variant: 'secondary', size: 'sm', icon: 'download', onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))));
|
|
56
56
|
}
|
|
57
57
|
async _setLocales() {
|
|
58
58
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -81,7 +81,7 @@ function defineCustomElement() {
|
|
|
81
81
|
if (typeof customElements === "undefined") {
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
-
const components = ["p-table-footer", "p-button", "p-checkbox", "p-dropdown", "p-dropdown-menu-container", "p-dropdown-menu-item", "p-icon", "p-loader", "p-
|
|
84
|
+
const components = ["p-table-footer", "p-button", "p-checkbox", "p-dropdown", "p-dropdown-menu-container", "p-dropdown-menu-item", "p-icon", "p-loader", "p-pagination-pages", "p-pagination-pages-item", "p-pagination-size", "p-portal"];
|
|
85
85
|
components.forEach(tagName => { switch (tagName) {
|
|
86
86
|
case "p-table-footer":
|
|
87
87
|
if (!customElements.get(tagName)) {
|
|
@@ -123,17 +123,17 @@ function defineCustomElement() {
|
|
|
123
123
|
defineCustomElement$5();
|
|
124
124
|
}
|
|
125
125
|
break;
|
|
126
|
-
case "p-
|
|
126
|
+
case "p-pagination-pages":
|
|
127
127
|
if (!customElements.get(tagName)) {
|
|
128
128
|
defineCustomElement$4();
|
|
129
129
|
}
|
|
130
130
|
break;
|
|
131
|
-
case "p-pagination":
|
|
131
|
+
case "p-pagination-pages-item":
|
|
132
132
|
if (!customElements.get(tagName)) {
|
|
133
133
|
defineCustomElement$3();
|
|
134
134
|
}
|
|
135
135
|
break;
|
|
136
|
-
case "p-pagination-
|
|
136
|
+
case "p-pagination-size":
|
|
137
137
|
if (!customElements.get(tagName)) {
|
|
138
138
|
defineCustomElement$2();
|
|
139
139
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"table-footer.component.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,uBAAuB,GAAG
|
|
1
|
+
{"file":"table-footer.component.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,uBAAuB,GAAG,0nCAA0nC,CAAC;AAC3pC,2BAAe,uBAAuB;;MCqBzB,WAAW;;;;;;;;8BAIW,IAAI;gCAKF,IAAI;4BAKR,IAAI;uBAKT,KAAK;oBAKuB,CAAC;;wBAkB7B,WAAW;+BAKF,kBAAkB;gCAqBlB,IAAI;wBAUP,EAAE;;;;;IAzCnC,UAAU,CAAuB;;;;IAkBjC,cAAc,CAAuB;;;;IAQrC,MAAM,CAAuB;;IAiB7B,iBAAiB;QAChB,IAAI,CAAC,WAAW,EAAE,CAAC;KACnB;IAED,MAAM;QACL,MAAM,kBAAkB,GACvB,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;QACjE,QACC,EAAC,IAAI,qDACJ,KAA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,GAAG,MAAM,yBAAyB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC1D;IAEO,eAAe,CAAC,CAAU;QACjC,IAAI,CAAC,CAAC,EAAE;YACP,OAAO;SACP;QAED,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/molecules/table-footer/table-footer.component.scss?tag=p-table-footer&encapsulation=shadow","src/components/molecules/table-footer/table-footer.component.tsx"],"sourcesContent":[":host {\n\t@apply grid grid-cols-1 gap-4;\n\t@apply w-full;\n\t@apply p-6;\n\n\t> p-pagination {\n\t\t@apply col-start-1 flex justify-self-center;\n\t}\n\n\t> p-loader {\n\t\t@apply col-start-1;\n\t}\n\n\t@screen desktop-xs {\n\t\t@apply grid-cols-3;\n\t\tgrid-template-areas: 'page-size pagination export';\n\n\t\t> p-pagination-size {\n\t\t\t@apply col-start-1;\n\t\t}\n\n\t\t> p-pagination-pages {\n\t\t\t@apply col-start-2;\n\t\t}\n\n\t\t> p-loader {\n\t\t\t@apply col-start-2;\n\t\t}\n\n\t\t> p-button {\n\t\t\t@apply col-start-3 justify-self-end;\n\t\t}\n\t}\n}\n\n:host(.page-size-disabled.export-disabled) {\n\t@apply grid-cols-1;\n\n\t> p-pagination {\n\t\t@apply col-start-1;\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 '../pagination-size/constants';\n\n@Component({\n\ttag: 'p-table-footer',\n\tstyleUrl: 'table-footer.component.scss',\n\tshadow: true,\n})\nexport class TableFooter {\n\t/**\n\t * Wether to enable page size select\n\t */\n\t@Prop() enablePageSize: boolean = true;\n\n\t/**\n\t * Wether to enable pagination\n\t */\n\t@Prop() enablePagination: boolean = true;\n\n\t/**\n\t * Wether to enable export\n\t */\n\t@Prop() enableExport: boolean = true;\n\n\t/**\n\t * Wether we want to show loading state\n\t */\n\t@Prop() loading: boolean = false;\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 * 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 = 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\tpageSizeChange: EventEmitter<number>;\n\n\t/**\n\t * Event whenever the page changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\texport: EventEmitter<number>;\n\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 * The host element\n\t */\n\t@Element() private _el: HTMLElement;\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\tconst hidePageSizeSelect =\n\t\t\tthis.hideOnSinglePage && this.total < this.pageSizeOptions?.[0];\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-table-footer ${\n\t\t\t\t\t!this.enablePageSize && 'page-size-disabled'\n\t\t\t\t} ${!this.enablePagination && 'pagination-disabled'} ${\n\t\t\t\t\t!this.enableExport && 'export-disabled'\n\t\t\t\t}`}\n\t\t\t>\n\t\t\t\t{!this.loading && this.enablePagination && this.enablePageSize && (\n\t\t\t\t\t<p-pagination-size\n\t\t\t\t\t\tclass={!hidePageSizeSelect && 'hidden desktop-xs:flex'}\n\t\t\t\t\t\thidden={hidePageSizeSelect}\n\t\t\t\t\t\tsize={this.pageSize}\n\t\t\t\t\t\tsizeOptions={this.pageSizeOptions}\n\t\t\t\t\t\tonSizeChange={({ detail }) => this._changePageSize(detail)}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t{this.loading && (\n\t\t\t\t\t<p-loader\n\t\t\t\t\t\tvariant='ghost'\n\t\t\t\t\t\tclass='h-8 w-full rounded'\n\t\t\t\t\t></p-loader>\n\t\t\t\t)}\n\n\t\t\t\t{!this.loading && this.enablePagination && (\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/>\n\t\t\t\t)}\n\n\t\t\t\t{!this.loading && this.enableExport && (\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tclass='hidden desktop-xs:flex'\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\ticon='download'\n\t\t\t\t\t\tonClick={() => this.export.emit()}\n\t\t\t\t\t>\n\t\t\t\t\t\t{formatTranslation(this._locales.export)}\n\t\t\t\t\t</p-button>\n\t\t\t\t)}\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 _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}
|
|
@@ -989,13 +989,13 @@ const TableHeader = /*@__PURE__*/ proxyCustomElement(class TableHeader extends H
|
|
|
989
989
|
const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
|
|
990
990
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
991
991
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
992
|
-
return (h(Host, { key: '
|
|
993
|
-
(hasCustomFilterSlot || this.quickFilters.length > 0) && (h("div", { key: '
|
|
992
|
+
return (h(Host, { key: '7ca9e5d35de2a348f49b1d21f97d9e0ab363b4fd', class: 'p-table-header' }, this.loading && (h("p-loader", { key: 'a839bd495927d4ee2fc06f07adb8aa32d9a18e93', variant: 'ghost', class: 'hidden h-8 w-3/4 rounded desktop-xs:flex' })), !this.loading &&
|
|
993
|
+
(hasCustomFilterSlot || this.quickFilters.length > 0) && (h("div", { key: 'a200ab308bc8a16aff2e611fc438fc6a31cdc92f', class: 'left-side flex flex-col justify-start gap-4 desktop-xs:flex-row' }, hasCustomFilterSlot && h("slot", { key: '712c11750cc41a874823a70ead4fedc95fac1df5', name: 'custom-filter' }), this.quickFilters.length > 0 && (h("p-segment-container", { key: 'acf8f0d1b01a91750ca501a94527b247509a15c0', class: 'hidden desktop-xs:flex' }, this.quickFilters.map(item => (h("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string' ? item.text : item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: '0b82b63c0f79f376b2134f6e31f475831d0e0715', class: 'right-side flex flex-col justify-end gap-4 desktop-xs:flex-row' }, this.enableSearch && (h("p-field", { key: 'e9e9f525d88b1ecc619adf3dfc8f5c4af0c9a541', icon: 'search', size: 'sm', class: 'desktop-xs:w-48', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), this.enableFilter && (h("p-button", { key: '4444a6ef4b2229c11df9d85df652a25b71a0bb48', icon: 'filter', variant: 'secondary', size: 'sm', class: `w-full ${this.enableFilterDesktop
|
|
994
994
|
? 'desktop-xs:w-auto'
|
|
995
995
|
: 'desktop-xs:hidden'}`, onClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
996
996
|
? this.filterButtonTemplate()
|
|
997
997
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
998
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: '
|
|
998
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: '6606497a19a00cf0ddcdca6aedc61d893bac1f25', name: 'custom-actions' })), this.enableAction && this.canUseAction && (h("div", { key: '8f5ad8071074b89dc1e8700e6f72c48619fcb9c5', class: 'fixed bottom-0 left-0 block w-full border border-solid border-transparent border-t-mystic-dark bg-white p-4 desktop-xs:hidden' }, this._buttonTemplate(true)))));
|
|
999
999
|
}
|
|
1000
1000
|
async _setLocales() {
|
|
1001
1001
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -13,9 +13,9 @@ const TableRow = /*@__PURE__*/ proxyCustomElement(class TableRow extends HTMLEle
|
|
|
13
13
|
this.enableHover = true;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '30832de6f65ec6849708070a37a0a1e93a627d56', class: `p-table-row variant-${this.variant} ${this.enableHover &&
|
|
17
17
|
this.variant === 'default' &&
|
|
18
|
-
'enable-hover'} group` }, h("div", { key: '
|
|
18
|
+
'enable-hover'} group` }, h("div", { key: '55c7a8370ab3b78a0fa61155eb9ca34106d9a576', class: "content" }, h("slot", { key: '5b37ff815b031f54d518bea2ddc7bdcbe3448f83' })), this.variant === 'default' && h("p-divider", { key: '9460911560d0fde992a41dac8a271ed2637e0479', class: "m-0" })));
|
|
19
19
|
}
|
|
20
20
|
static get style() { return PTableRowStyle0; }
|
|
21
21
|
}, [1, "p-table-row", {
|
|
@@ -89,19 +89,19 @@ const Tooltip = /*@__PURE__*/ proxyCustomElement(class Tooltip extends HTMLEleme
|
|
|
89
89
|
ref: el => this._load(el),
|
|
90
90
|
};
|
|
91
91
|
let tooltip;
|
|
92
|
-
const tooltipElement = (h("div", { key: '
|
|
92
|
+
const tooltipElement = (h("div", { key: '6f9c3f17c03fd05f38542ae9c7c0bcbd974a5bbb', class: popover({
|
|
93
93
|
variant: this.variant,
|
|
94
94
|
strategy: this.usePortal ? 'none' : this.strategy,
|
|
95
|
-
}), ...(this.usePortal ? {} : tooltipProps) }, h("div", { key: '
|
|
95
|
+
}), ...(this.usePortal ? {} : tooltipProps) }, h("div", { key: '24a0b7be9128f683c5b97b025c127ccc099a350d', class: 'flex gap-2' }, this.variant === 'error' && (h("div", { key: 'bdef4cbe31d0642f4db9134e8b1dac420476f662', class: 'w-[2px] bg-negative-red' })), this.content ? this.content : h("slot", { name: 'content' }))));
|
|
96
96
|
if (this.usePortal) {
|
|
97
|
-
tooltip = (h("p-portal", { key: '
|
|
97
|
+
tooltip = (h("p-portal", { key: '261fa01590875e3b7b89e1071340a28e1a9c0026', class: portal({
|
|
98
98
|
strategy: this.strategy,
|
|
99
99
|
}), ...tooltipProps }, tooltipElement));
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
102
102
|
tooltip = tooltipElement;
|
|
103
103
|
}
|
|
104
|
-
return (h(Host, { key: '
|
|
104
|
+
return (h(Host, { key: '5bc62f68bb9f49ce77f5e50f3713ad8a9b68e350', class: 'p-popover flex cursor-pointer' }, h("div", { key: '3792040756275f17dde8dad661af0cec0c40192b', class: 'relative h-inherit w-inherit' }, h("slot", { key: '7426bd33a80902bd576168c6dff9cfcfc70c128f', name: 'trigger' }), tooltip)));
|
|
105
105
|
}
|
|
106
106
|
clickHandler() {
|
|
107
107
|
if (this.variant === 'hover' || !this.enableUserInput) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"constants-1dd98b15.js","mappings":"MAAa,WAAW,GAAG,GAAG;MACjB,kBAAkB,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG;;;;","names":[],"sources":["src/components/molecules/pagination-size/constants.tsx"],"sourcesContent":["export const defaultSize = 12;\nexport const defaultSizeOptions = [12, 24, 68, 136];\n"],"version":3}
|