@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 +1 @@
|
|
|
1
|
-
{"file":"p-helper.p-tooltip.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,kBAAkB,GAAG,4lBAA4lB,CAAC;AACxnB,sBAAe,kBAAkB;;MCOpB,MAAM;;;wBAIW,UAAU;yBAKR,KAAK;;IAEpC,MAAM;QACL,QACCA,QAACC,UAAI,qDAAC,KAAK,EAAC,UAAU,IACrBD,wEACC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvBA,kEAAK,IAAI,EAAC,SAAS,IAClBA,oEAAQ,CACH,EAENA,kEACC,IAAI,EAAC,SAAS,EACd,KAAK,EAAC,QAAQ,GACR,CACI,CACN,EACN;KACF;;;;ACrC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AC;aACpC;SACD;KACD;IAEO,OAAO;QACd,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YACnB,OAAO;SACP;QAEDC,kCAAe,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE;YACxC,SAAS,EACR,IAAI,CAAC,OAAO,KAAK,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS;kBACxC,cAAc;kBACd,IAAI,CAAC,SAAS,IAAI,KAAK;YAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YAEvB,UAAU,EAAE,CAACC,yBAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAEC,uBAAI,EAAE,EAAEC,wBAAK,EAAE,CAAC;SAClD,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE;YAC3B,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;YAC5C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE;gBAClC,GAAG,EAAE,GAAG,CAAC,IAAI;gBACb,IAAI,EAAE,GAAG,CAAC,IAAI;aACd,CAAC,CAAC;SACH,CAAC,CAAC;KACH;;;;;;;;;;","names":["h","Host","cva","autoUpdate","computePosition","offset","flip","shift"],"sources":["src/components/atoms/helper/helper.component.scss?tag=p-helper&encapsulation=shadow","src/components/atoms/helper/helper.component.tsx","src/components/atoms/tooltip/tooltip.component.css?tag=p-tooltip&encapsulation=shadow","src/components/atoms/tooltip/tooltip.component.tsx"],"sourcesContent":[":host {\n\t@apply leading-3;\n\n\t.helper {\n\t\t@apply inline-block h-[0.75rem] w-[0.75rem] cursor-pointer bg-center bg-no-repeat;\n\t\tbackground-image: url(/assets/images/helper/helper.svg);\n\n\t\t&:hover {\n\t\t\tbackground-image: url(/assets/images/helper/helper-hover.svg);\n\t\t}\n\t}\n}\n","import { Placement, Strategy } from '@floating-ui/dom';\nimport { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-helper',\n\tstyleUrl: 'helper.component.scss',\n\tshadow: true,\n})\nexport class Helper {\n\t/**\n\t * The strategy of the popover placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * The placement of the helper popover\n\t */\n\t@Prop() placement: Placement = 'top';\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-helper'>\n\t\t\t\t<p-tooltip\n\t\t\t\t\tplacement={this.placement}\n\t\t\t\t\tstrategy={this.strategy}\n\t\t\t\t>\n\t\t\t\t\t<div slot='content'>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\tclass='helper'\n\t\t\t\t\t></div>\n\t\t\t\t</p-tooltip>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n","","import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst popover = cva(\n\t[\n\t\t'inline-block px-2',\n\t\t'text-xs',\n\t\t'opacity-0 drop-shadow-3 transition-opacity',\n\t\t'rounded-lg',\n\n\t\t'z-tooltip',\n\t\t'pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\thover: 'bg-black-teal text-white py-1',\n\t\t\t\tclick: null,\n\t\t\t\terror: 'max-w-full w-full',\n\t\t\t},\n\t\t\tstrategy: {\n\t\t\t\tnone: null,\n\t\t\t\tfixed: 'fixed',\n\t\t\t\tabsolute: 'absolute',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: ['hover', 'click'],\n\t\t\t\tclass: 'max-w-[14.5rem] w-max',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['click', 'error'],\n\t\t\t\tclass: 'bg-white text-black-teal-300 py-2',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst portal = cva('', {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tfixed: 'fixed',\n\t\t\tabsolute: 'absolute',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-tooltip',\n\tstyleUrl: 'tooltip.component.css',\n\tshadow: true,\n})\nexport class Tooltip {\n\t/**\n\t * The variant of the popover\n\t */\n\t@Prop() variant: 'hover' | 'click' | 'error' = 'hover';\n\n\t/**\n\t * The content of the popover\n\t */\n\t@Prop() content: any = null;\n\n\t/**\n\t * The placement of the popover\n\t */\n\t@Prop() placement: Placement;\n\n\t/**\n\t * The offset of the popover\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the popover placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether the tooltip can be shown by user input\n\t */\n\t@Prop() enableUserInput: boolean = true;\n\n\t/**\n\t * Wether to show the popover\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to use a portal for the tooltip\n\t */\n\t@Prop() usePortal: boolean = false;\n\n\t/**\n\t * Wether to someone can manually close the popover\n\t */\n\t@Prop() canManuallyClose: boolean = true;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasContentSlot = false;\n\n\tprivate _loaded = false;\n\tprivate _popover: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentWillLoad() {\n\t\tthis._hasContentSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"content\"]'\n\t\t);\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\t}\n\n\trender() {\n\t\tconst tooltipProps = {\n\t\t\trole: 'popover',\n\t\t\t'data-placement': this.placement,\n\t\t\tref: el => this._load(el),\n\t\t};\n\n\t\tlet tooltip: HTMLElement;\n\n\t\tconst tooltipElement = (\n\t\t\t<div\n\t\t\t\tclass={popover({\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tstrategy: this.usePortal ? 'none' : this.strategy,\n\t\t\t\t})}\n\t\t\t\t{...(this.usePortal ? {} : tooltipProps)}\n\t\t\t>\n\t\t\t\t<div class='flex gap-2'>\n\t\t\t\t\t{this.variant === 'error' && (\n\t\t\t\t\t\t<div class='w-[2px] bg-negative-red'></div>\n\t\t\t\t\t)}\n\t\t\t\t\t{this.content ? this.content : <slot name='content' />}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\n\t\tif (this.usePortal) {\n\t\t\ttooltip = (\n\t\t\t\t<p-portal\n\t\t\t\t\tclass={portal({\n\t\t\t\t\t\tstrategy: this.strategy,\n\t\t\t\t\t})}\n\t\t\t\t\t{...tooltipProps}\n\t\t\t\t>\n\t\t\t\t\t{tooltipElement}\n\t\t\t\t</p-portal>\n\t\t\t);\n\t\t} else {\n\t\t\ttooltip = tooltipElement;\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-popover flex cursor-pointer'>\n\t\t\t\t<div class='relative h-inherit w-inherit'>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t\t{tooltip}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { capture: true })\n\tprotected clickHandler() {\n\t\tif (this.variant === 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler() {\n\t\tif (this.variant === 'hover' || !this.canManuallyClose || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Listen('mouseenter')\n\t@Listen('focus')\n\tprotected mouseEnterHandler() {\n\t\tif (this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('mouseleave')\n\t@Listen('blur')\n\tprotected mouseLeaveHandler() {\n\t\tif (this.show || this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Watch('show')\n\tonShowChange(show: boolean) {\n\t\tif (show && !this._popover.hasAttribute('data-show')) {\n\t\t\treturn this._show();\n\t\t}\n\n\t\treturn this._hide();\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.content?.length && !this._hasContentSlot) {\n\t\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\t\tthis._hide();\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._popover, () => this._update());\n\t\t// Make the popover visible\n\t\tthis._popover.setAttribute('data-show', '');\n\n\t\tthis._popover.classList.remove('opacity-0', 'pointer-events-none');\n\t\tthis._popover.classList.add('opacity-100', 'pointer-events-auto');\n\n\t\t// Update its position\n\t\tthis.isOpen.emit(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._popover.removeAttribute('data-show');\n\n\t\tthis._popover.classList.remove('opacity-100', 'pointer-events-auto');\n\t\tthis._popover.classList.add('opacity-0', 'pointer-events-none');\n\n\t\tthis.isOpen.emit(false);\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._popover = popover;\n\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _update() {\n\t\tif (!this._popover) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._popover, {\n\t\t\tplacement:\n\t\t\t\tthis.variant === 'error' && !this.placement\n\t\t\t\t\t? 'bottom-start'\n\t\t\t\t\t: this.placement ?? 'top',\n\t\t\tstrategy: this.strategy,\n\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._popover.dataset.placement = placement;\n\t\t\tObject.assign(this._popover.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"p-helper.p-tooltip.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,kBAAkB,GAAG,2IAA2I,CAAC;AACvK,sBAAe,kBAAkB;;MCOpB,MAAM;;;wBAIW,UAAU;yBAKR,KAAK;;IAEpC,MAAM;QACL,QACCA,QAACC,UAAI,qDAAC,KAAK,EAAC,UAAU,IACrBD,wEACC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvBA,kEAAK,IAAI,EAAC,SAAS,IAClBA,oEAAQ,CACH,EAENA,qEACC,IAAI,EAAC,IAAI,EACT,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAC,iBAAiB,EACzB,IAAI,EAAC,SAAS,GACb,CACS,CACN,EACN;KACF;;;;ACvCF,MAAM,mBAAmB,GAAG,+oEAA+oE,CAAC;AAC5qE,uBAAe,mBAAmB;;ACqBlC,MAAM,OAAO,GAAGE,WAAG,CAClB;IACC,mBAAmB;IACnB,SAAS;IACT,4CAA4C;IAC5C,YA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,EAAE;YACxC,SAAS,EACR,IAAI,CAAC,OAAO,KAAK,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS;kBACxC,cAAc;kBACd,IAAI,CAAC,SAAS,IAAI,KAAK;YAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YAEvB,UAAU,EAAE,CAACC,yBAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAEC,uBAAI,EAAE,EAAEC,wBAAK,EAAE,CAAC;SAClD,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE;YAC3B,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;YAC5C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE;gBAClC,GAAG,EAAE,GAAG,CAAC,IAAI;gBACb,IAAI,EAAE,GAAG,CAAC,IAAI;aACd,CAAC,CAAC;SACH,CAAC,CAAC;KACH;;;;;;;;;;","names":["h","Host","cva","autoUpdate","computePosition","offset","flip","shift"],"sources":["src/components/atoms/helper/helper.component.css?tag=p-helper&encapsulation=shadow","src/components/atoms/helper/helper.component.tsx","src/components/atoms/tooltip/tooltip.component.css?tag=p-tooltip&encapsulation=shadow","src/components/atoms/tooltip/tooltip.component.tsx"],"sourcesContent":["","import { Placement, Strategy } from '@floating-ui/dom';\nimport { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-helper',\n\tstyleUrl: 'helper.component.css',\n\tshadow: true,\n})\nexport class Helper {\n\t/**\n\t * The strategy of the popover placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * The placement of the helper popover\n\t */\n\t@Prop() placement: Placement = 'top';\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-helper'>\n\t\t\t\t<p-tooltip\n\t\t\t\t\tplacement={this.placement}\n\t\t\t\t\tstrategy={this.strategy}\n\t\t\t\t>\n\t\t\t\t\t<div slot='content'>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<p-icon\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tclass='cursor-pointer'\n\t\t\t\t\t\tvariant='question-circle'\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t/>\n\t\t\t\t</p-tooltip>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n","","import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst popover = cva(\n\t[\n\t\t'inline-block px-2',\n\t\t'text-xs',\n\t\t'opacity-0 drop-shadow-3 transition-opacity',\n\t\t'rounded-lg',\n\n\t\t'z-tooltip',\n\t\t'pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\thover: 'bg-black-teal text-white py-1',\n\t\t\t\tclick: null,\n\t\t\t\terror: 'max-w-full w-full',\n\t\t\t},\n\t\t\tstrategy: {\n\t\t\t\tnone: null,\n\t\t\t\tfixed: 'fixed',\n\t\t\t\tabsolute: 'absolute',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: ['hover', 'click'],\n\t\t\t\tclass: 'max-w-[14.5rem] w-max',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['click', 'error'],\n\t\t\t\tclass: 'bg-white text-black-teal-300 py-2',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst portal = cva('', {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tfixed: 'fixed',\n\t\t\tabsolute: 'absolute',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-tooltip',\n\tstyleUrl: 'tooltip.component.css',\n\tshadow: true,\n})\nexport class Tooltip {\n\t/**\n\t * The variant of the popover\n\t */\n\t@Prop() variant: 'hover' | 'click' | 'error' = 'hover';\n\n\t/**\n\t * The content of the popover\n\t */\n\t@Prop() content: any = null;\n\n\t/**\n\t * The placement of the popover\n\t */\n\t@Prop() placement: Placement;\n\n\t/**\n\t * The offset of the popover\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the popover placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether the tooltip can be shown by user input\n\t */\n\t@Prop() enableUserInput: boolean = true;\n\n\t/**\n\t * Wether to show the popover\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to use a portal for the tooltip\n\t */\n\t@Prop() usePortal: boolean = false;\n\n\t/**\n\t * Wether to someone can manually close the popover\n\t */\n\t@Prop() canManuallyClose: boolean = true;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasContentSlot = false;\n\n\tprivate _loaded = false;\n\tprivate _popover: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentWillLoad() {\n\t\tthis._hasContentSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"content\"]'\n\t\t);\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\t}\n\n\trender() {\n\t\tconst tooltipProps = {\n\t\t\trole: 'popover',\n\t\t\t'data-placement': this.placement,\n\t\t\tref: el => this._load(el),\n\t\t};\n\n\t\tlet tooltip: HTMLElement;\n\n\t\tconst tooltipElement = (\n\t\t\t<div\n\t\t\t\tclass={popover({\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tstrategy: this.usePortal ? 'none' : this.strategy,\n\t\t\t\t})}\n\t\t\t\t{...(this.usePortal ? {} : tooltipProps)}\n\t\t\t>\n\t\t\t\t<div class='flex gap-2'>\n\t\t\t\t\t{this.variant === 'error' && (\n\t\t\t\t\t\t<div class='w-[2px] bg-negative-red'></div>\n\t\t\t\t\t)}\n\t\t\t\t\t{this.content ? this.content : <slot name='content' />}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\n\t\tif (this.usePortal) {\n\t\t\ttooltip = (\n\t\t\t\t<p-portal\n\t\t\t\t\tclass={portal({\n\t\t\t\t\t\tstrategy: this.strategy,\n\t\t\t\t\t})}\n\t\t\t\t\t{...tooltipProps}\n\t\t\t\t>\n\t\t\t\t\t{tooltipElement}\n\t\t\t\t</p-portal>\n\t\t\t);\n\t\t} else {\n\t\t\ttooltip = tooltipElement;\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-popover flex cursor-pointer'>\n\t\t\t\t<div class='relative h-inherit w-inherit'>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t\t{tooltip}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { capture: true })\n\tprotected clickHandler() {\n\t\tif (this.variant === 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler() {\n\t\tif (this.variant === 'hover' || !this.canManuallyClose || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Listen('mouseenter')\n\t@Listen('focus')\n\tprotected mouseEnterHandler() {\n\t\tif (this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('mouseleave')\n\t@Listen('blur')\n\tprotected mouseLeaveHandler() {\n\t\tif (this.show || this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Watch('show')\n\tonShowChange(show: boolean) {\n\t\tif (show && !this._popover.hasAttribute('data-show')) {\n\t\t\treturn this._show();\n\t\t}\n\n\t\treturn this._hide();\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.content?.length && !this._hasContentSlot) {\n\t\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\t\tthis._hide();\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._popover, () => this._update());\n\t\t// Make the popover visible\n\t\tthis._popover.setAttribute('data-show', '');\n\n\t\tthis._popover.classList.remove('opacity-0', 'pointer-events-none');\n\t\tthis._popover.classList.add('opacity-100', 'pointer-events-auto');\n\n\t\t// Update its position\n\t\tthis.isOpen.emit(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._popover.removeAttribute('data-show');\n\n\t\tthis._popover.classList.remove('opacity-100', 'pointer-events-auto');\n\t\tthis._popover.classList.add('opacity-0', 'pointer-events-none');\n\n\t\tthis.isOpen.emit(false);\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._popover = popover;\n\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _update() {\n\t\tif (!this._popover) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._popover, {\n\t\t\tplacement:\n\t\t\t\tthis.variant === 'error' && !this.placement\n\t\t\t\t\t? 'bottom-start'\n\t\t\t\t\t: this.placement ?? 'top',\n\t\t\tstrategy: this.strategy,\n\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._popover.dataset.placement = placement;\n\t\t\tObject.assign(this._popover.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"],"version":3}
|
|
@@ -17,7 +17,7 @@ const IbanIcon = class {
|
|
|
17
17
|
variant = this.iban.slice(4, 8).toLowerCase();
|
|
18
18
|
}
|
|
19
19
|
const exists = iban.IBAN_ICON_VARIANTS_ARRAY.includes(variant);
|
|
20
|
-
return (exists && (index.h(index.Host, { key: '
|
|
20
|
+
return (exists && (index.h(index.Host, { key: '12b6fe395d2c50106740c041b78dba096eef7bd1', class: 'p-iban-icon' }, this._getIcon(variant))));
|
|
21
21
|
}
|
|
22
22
|
_getIcon(variant) {
|
|
23
23
|
switch (variant) {
|
|
@@ -55,7 +55,7 @@ const Icon = class {
|
|
|
55
55
|
'-rotate-270': this.rotate === -270,
|
|
56
56
|
'-rotate-315': this.rotate === -315,
|
|
57
57
|
};
|
|
58
|
-
return (index.h(index.Host, { key: '
|
|
58
|
+
return (index.h(index.Host, { key: 'ba0b6b980d18cd47978bb5275a855d04d8a501fd', class: styles, innerHTML: icon }));
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
Icon.style = PIconDeprecatedStyle0;
|
|
@@ -22,7 +22,7 @@ const InfoPanel = class {
|
|
|
22
22
|
closed;
|
|
23
23
|
get _el() { return index.getElement(this); }
|
|
24
24
|
render() {
|
|
25
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: '21a465da244de80603a6de63418375c5bb4d2d92', class: `p-info-panel variant-${this.variant} ${this.closeable && 'has-close'}` }, index.h("div", { key: 'aca1f62a1470ea92076ae64b12268e8f5cccbcf6', class: 'header' }, index.h("slot", { key: 'd254c40efafa6631e73345d9fcb902c7f561afd7', name: 'header' })), index.h("div", { key: '9e5a883a8eb6537b13f3f195b038e46b2bc328a3', class: 'content' }, index.h("slot", { key: '83187c859454bd078668238bd2af1909d3961440', name: 'content' })), this.closeable && (index.h("div", { key: '1abbbed511217705b8514bd1b701475fdb0105cc', class: 'close', onClick: () => this._close() }, index.h("p-icon", { key: '8ca580c09f1a97a65d0b2629289d0fe209793dbb', variant: 'negative' })))));
|
|
26
26
|
}
|
|
27
27
|
_close() {
|
|
28
28
|
this.closed.emit();
|
|
@@ -12,7 +12,7 @@ const InputError = class {
|
|
|
12
12
|
this._showTooltip = false;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (index.h(index.Host, { key: '
|
|
15
|
+
return (index.h(index.Host, { key: '460e73ad12c19bbc3b68910d4cde77ca3a137255', class: 'p-input-error' }, index.h("p-tooltip", { key: '56237ea74bfb49a18d55f074ce1e3dcad8966315', variant: 'error', content: this.error, show: this.forceShowTooltip, onIsOpen: ev => (this._showTooltip = ev.detail) }, index.h("p-icon", { key: '9c5216370a29e37ac03b99d3039d458aa88f3629', class: `${this._showTooltip ? 'text-negative' : 'text-negative-light'} hover:text-negative`, slot: 'trigger', variant: 'question-circle' }))));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -38,11 +38,11 @@ const InputGroup = class {
|
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
40
|
const { hasHeaderSlot, helper, label, prefix, suffix, errorAndErrorIsNotBoolean, errorVariant, } = this._getSlotInfo();
|
|
41
|
-
return (index.h(index.Host, { key: '
|
|
41
|
+
return (index.h(index.Host, { key: 'e1db8ece4db4fbd573e24523d8c9f2e9f61a606e', class: `p-input-group ${this.error?.length && 'error'} ${this.disabled && 'disabled'} ${this.focused && 'focused'} size-${this.size}` }, index.h("div", { key: '3eb10740350c62abab9757a28e2c437bcb9b4ceb', class: 'flex items-end justify-between' }, label && (index.h("div", { key: 'adc870ba2c4cf9ad0a435a840d16558e1d516864', class: 'input-label', onClick: () => this._focusInput() }, label, this.required && index.h("span", { key: '01825a70124dcdf25a3bebd865478a35e4c6b740', class: 'ml-1 text-negative' }, "*"))), (helper || hasHeaderSlot) && (index.h("div", { key: 'fd665be178c2c41b72a552bdaa717edd79c61f2c', class: 'input-header' }, hasHeaderSlot && index.h("slot", { key: '22828aea8b76809870ddbf69b8beeee1529283b7', name: 'header' }), helper && (index.h("p-helper", { key: '818b5827687e1002dd6090b33445d3e97fce4292', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))), index.h("p-tooltip", { key: '01172dcd5be0ee0bae29b5fb340d40372ab1a141', class: 'w-full', variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean &&
|
|
42
42
|
errorVariant === 'element' &&
|
|
43
|
-
(this.forceShowTooltip || this._forceShowTooltip), enableUserInput: false }, index.h("div", { key: '
|
|
43
|
+
(this.forceShowTooltip || this._forceShowTooltip), enableUserInput: false }, index.h("div", { key: '47452ca6883a16b292f37a5d1e9f3389a9864537', class: 'content', slot: 'trigger' }, (prefix || (this.icon && this.iconPosition === 'start')) && (index.h("div", { key: 'cb4511181318173ec678112195ae601dbd924e50', class: `prefix size-${this.size}`, onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (index.h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), (suffix ||
|
|
44
44
|
(errorAndErrorIsNotBoolean && errorVariant === 'icon') ||
|
|
45
|
-
(this.icon && this.iconPosition === 'end')) && (index.h("div", { key: '
|
|
45
|
+
(this.icon && this.iconPosition === 'end')) && (index.h("div", { key: 'b3ee48219bb9a50cdf9385607fcd5b764746db07', class: `suffix size-${this.size}`, onClick: () => this._focusInput() }, errorAndErrorIsNotBoolean && errorVariant === 'icon' ? (index.h("p-input-error", { error: this.error, forceShowTooltip: this.forceShowTooltip || this._forceShowTooltip })) : this.icon && this.iconPosition === 'end' ? (index.h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix))), index.h("slot", { key: 'e41a06801fc11044122862e066f0691f611743f0', name: 'input' })))));
|
|
46
46
|
}
|
|
47
47
|
handleFocusIn() {
|
|
48
48
|
this._forceShowTooltip = true;
|
|
@@ -47,14 +47,14 @@ const Label = class {
|
|
|
47
47
|
this.keepMobileContent = false;
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (index.h(index.Host, { key: '
|
|
50
|
+
return (index.h(index.Host, { key: 'f1dbab04a321adb28cd47e777cc47ef3e6e7f770', class: 'p-label' }, index.h("div", { key: 'b1bb0deb6c4fd2055450f30b30e85bba3edd8acc', class: label({
|
|
51
51
|
variant: this.variant,
|
|
52
52
|
iconOnly: this.iconOnly,
|
|
53
53
|
keepMobileContent: this.keepMobileContent,
|
|
54
|
-
}) }, this.icon && (index.h("p-icon", { key: '
|
|
54
|
+
}) }, this.icon && (index.h("p-icon", { key: '8bc53a171591d529cf9f2608192749c9c6d7c48d', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (index.h("div", { key: 'cace3296ad188e08576a9bf145663a9b457901bd', class: cn.cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm', {
|
|
55
55
|
hidden: !this.keepMobileContent,
|
|
56
56
|
'desktop-xs:block': !this.keepMobileContent,
|
|
57
|
-
}) }, index.h("slot", { key: '
|
|
57
|
+
}) }, index.h("slot", { key: 'a449801a77365afd4ecf916434b3a889dea315ee' }))))));
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
Label.style = PLabelStyle0;
|
|
@@ -13,7 +13,7 @@ const Layout = class {
|
|
|
13
13
|
this.variant = 'default';
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (index.h(index.Host, { key: '
|
|
16
|
+
return (index.h(index.Host, { key: '0b8db1b82acbea80f6b8d320b7f4815e0b6490b4', class: `p-layout variant-${this.variant}` }, index.h("div", { key: '9103fd8a11822dd9ab1e98a6847de308a3ed5ab6', class: "content" }, index.h("div", { key: 'ba6fd30a15bab6624016a252c0c9e16835e75bd1', class: "inner-content" }, index.h("slot", { key: '2fa6b0d7047a414d89826faffc48de9e8b858d10', name: "content" }))), index.h("div", { key: 'ec2d595137dd7b9085f4a76a21bbb9945a895603', class: "sidebar" }, index.h("slot", { key: '05aad4cc9c4a78e53a98d5e01b3e3e4ed7a38aad', name: "sidebar" })), index.h("div", { key: '9897bda1f1b8f38f4975c1441c3ef2d714366996', class: "topbar" }, index.h("slot", { key: '53fb217063547eb68191c7d650c4cbe343e2cae9', name: "topbar" }))));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
Layout.style = PLayoutStyle0;
|
|
@@ -16,7 +16,7 @@ const ModalBody = class {
|
|
|
16
16
|
this.padding = true;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
19
|
+
return (index.h(index.Host, { key: '2a417803d55036da218474c7c662e84285a9a1a9', class: `p-modal-body variant-${this.variant} ${this.roundedBottom && 'is-rounded-bottom'} ${this.roundedTop && 'is-rounded-top'} ${!this.padding && 'no-padding'}` }, index.h("slot", { key: '965950e9f6768aaf454a79e2a8803be1de4c539d' })));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
ModalBody.style = PModalBodyStyle0;
|
|
@@ -44,7 +44,7 @@ const ModalContainer = class {
|
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
46
|
const sizeClass = modalSizes[this.size];
|
|
47
|
-
return (index.h(index.Host, { key: '
|
|
47
|
+
return (index.h(index.Host, { key: '7ecc3199ccdd86d8c8c7009997e786d178106f0e', class: `p-modal-container ${this.closing && 'closing'} ${sizeClass}` }, index.h("slot", { key: 'f9183374e69279a4e000817392833da5b1e3946e' })));
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
ModalContainer.style = PModalContainerStyle0;
|
|
@@ -57,7 +57,7 @@ const ModalFooter = class {
|
|
|
57
57
|
index.registerInstance(this, hostRef);
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
return (index.h(index.Host, { key: '
|
|
60
|
+
return (index.h(index.Host, { key: '4568f3335f0fb02b824c6f579157af636bc039d1', class: "p-modal-footer" }, index.h("p-divider", { key: '67f74c1b3ab8e1456223bca4b576ea7cf928f61a', class: "mb-6 mt-0 hidden desktop-xs:flex" }), index.h("slot", { key: '400f438ad03d7b8aecdfe3c6f2bf340387b6d51a' })));
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
ModalFooter.style = PModalFooterStyle0;
|
|
@@ -76,7 +76,7 @@ const ModalHeader = class {
|
|
|
76
76
|
*/
|
|
77
77
|
close;
|
|
78
78
|
render() {
|
|
79
|
-
return (index.h(index.Host, { key: '
|
|
79
|
+
return (index.h(index.Host, { key: 'a9a3ff260aa488e506aef11e37da9cb643e4381b', class: 'p-modal-header' }, index.h("span", { key: '1e0ed0fa40724ba2e4ab287013cf8d44683c82f2' }, index.h("slot", { key: 'ead156233b89f5b5dd265608f2d790ffa9c3ab0e' })), this.showClose && (index.h("p-button", { key: '8d84be66064a68dbcbfe9c6162652ded1fb561b3', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: ev => this.close.emit(ev), size: 'sm' }))));
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
ModalHeader.style = PModalHeaderStyle0;
|
|
@@ -54,7 +54,7 @@ const Navbar = class {
|
|
|
54
54
|
this._show = false;
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return (index.h(index.Host, { key: '
|
|
57
|
+
return (index.h(index.Host, { key: '70ca0cfea5bb8c474c0815dad243022f7b44316e', class: 'p-navbar w-full max-h-screen-safe layout-1280:w-60 layout-1680:w-72' }, index.h("p-backdrop", { key: '65a2f6ffd16d53c9075db8151a294d116ac5f04d', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), index.h("div", { key: '00e71ef350584ffd464d6019b4d54a7c86031e7e', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, index.h("div", { key: 'feaf8c5239f00c7dfa0ff30c6056e358aeea1560', class: 'flex w-full items-center justify-between layout-1280:hidden' }, index.h("p-button", { key: 'cd7e44187c32818c9155669401741b2c9b96feae', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, size: 'sm', onClick: () => (this._show = false) })), index.h("div", { key: 'cc62d840eb9c3d53b964e9a8d8f749680960c3e3', class: 'flex w-full flex-col items-stretch' }, index.h("slot", { key: 'd88e28add3173d9622322f172a1f43a67c67fb99', name: 'company' })), index.h("div", { key: 'a20bee71e8e185a514b73c3bb99202d62a4b8796', class: 'flex w-full flex-col gap-6 overflow-y-auto' }, index.h("slot", { key: '73cd26f5a02640d8bab32ee94d328c51838d3872', name: 'content' })), index.h("div", { key: '0b3ad5fe38446eb236271abbe470d903d295bc98', class: 'mt-auto hidden w-full flex-col layout-1280:flex' }, index.h("slot", { key: '5f5b1fd9234dda2f266a1c299fde03d0594037ad', name: 'user' }))), index.h("div", { key: '07db4db22d0b9a67e89217f41342bd2c799b6c41', class: topbar({ class: sidebarAndTopbar() }) }, index.h("p-button", { key: '281a11e80d46851aa94622e53a215cd6fd4f025f', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', size: 'sm', onClick: () => (this._show = true) }), index.h("slot", { key: '7d0886fe095516747e2cf069573a958c58544123', name: 'topbar' }))));
|
|
58
58
|
}
|
|
59
59
|
handleCloseNavbar() {
|
|
60
60
|
this._show = false;
|
|
@@ -53,10 +53,10 @@ const NavigationItem = class {
|
|
|
53
53
|
render() {
|
|
54
54
|
const TagType = this.as;
|
|
55
55
|
const active = this.active || this.class?.includes('active');
|
|
56
|
-
return (index.h(index.Host, { key: '
|
|
56
|
+
return (index.h(index.Host, { key: '988a4b84ab9146aa06de915a06092894e9cf0a68', class: cn.cn('p-navigation-item inline-block', this.class) }, index.h(TagType, { key: '8cade7e9dc59ae1adc5fb6325d6c008e8f0a207f', class: navigationItem({
|
|
57
57
|
icon: !!this.icon,
|
|
58
58
|
active,
|
|
59
|
-
}), href: this.href, target: this.target }, index.h("div", { key: '
|
|
59
|
+
}), href: this.href, target: this.target }, index.h("div", { key: '5f6cc2d0065d91bf7f5d943b2c62d28c0282a553', class: navigationItemIconContainer({ active }) }, index.h("p-icon", { key: '727250f6b3a18be24f2e8071cd2e8a0ba42c0ee5', variant: this.icon })), index.h("span", { key: 'c8d4814d0144a79305fc07ac5707a530a88a6628', class: this.counter && 'has-counter' }, index.h("slot", { key: '03b08d43b3185ddcff581f2704037ff3268cc7f0' })), !!this.counter && this.counter !== '0' && (index.h("p-badge", { key: '8d3e54e2dd4d9e6c37c6fa7f9a29b09f743c6cc6' }, this.counter)), !!this.loading && index.h("p-loader", { key: '7f1fc5d2e891a3ae79bb56497823017d264843cd', class: 'ml-auto' }))));
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
NavigationItem.style = PNavigationItemStyle0;
|
|
@@ -13,7 +13,7 @@ const NavigationSection = class {
|
|
|
13
13
|
this.header = undefined;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (index.h(index.Host, { key: '
|
|
16
|
+
return (index.h(index.Host, { key: '6cddd1e00b61b3f1a3567a69d2de1c1117822fa3', class: 'p-navigation-section flex flex-col gap-2' }, this.header?.length > 0 && (index.h("p-navigation-title", { key: '084887a5d8fc5d0c45c2faac96aead364bf93fa8' }, this.header)), index.h("div", { key: '1b8b27d6fbeee63a2262bfe2e4d72a4eb0ebd5a5', class: 'flex flex-col' }, index.h("slot", { key: '1bbd452c7ecd6bee4d79678b849e02164c828f9f' }))));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
NavigationSection.style = PNavigationSectionStyle0;
|
|
@@ -12,7 +12,7 @@ const NavigationTitle = class {
|
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (index.h(index.Host, { key: '
|
|
15
|
+
return (index.h(index.Host, { key: 'fbd7677985ddc349ad5d4942717d7e3b387fb802', class: 'p-navigation-title text-xs font-medium text-black-teal-300' }, index.h("slot", { key: 'a8824564dbb03f7fbad48bec1c80fca9a21073d4' })));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
NavigationTitle.style = PNavigationTitleStyle0;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-3f9bbc0c.js');
|
|
6
|
+
const constants = require('./constants-eae831f7.js');
|
|
7
|
+
const index$1 = require('./index-b556e70f.js');
|
|
8
|
+
require('./clsx-fc789adc.js');
|
|
9
|
+
|
|
10
|
+
const paginationComponentCss = "*{box-sizing:border-box}.static{position:static!important}.mx-0{margin-left:0!important;margin-right:0!important}.flex{display:flex!important}.hidden{display:none!important}.h-4{height:1rem!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}.rounded-full{border-radius:9999px!important}.border{border-width:1px!important}.border-off-white-700{--tw-border-opacity:1!important;border-color:rgb(222 219 213/var(--tw-border-opacity,1))!important}.bg-off-white-300{--tw-bg-opacity:1!important;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))!important}.p-1{padding:.25rem!important}.text-human-beige-700{--tw-text-opacity:1!important;color:rgb(231 216 203/var(--tw-text-opacity,1))!important}";
|
|
11
|
+
const PPaginationStyle0 = paginationComponentCss;
|
|
12
|
+
|
|
13
|
+
const pagination = index$1.cva([
|
|
14
|
+
'p-pagination',
|
|
15
|
+
'items-center gap-2',
|
|
16
|
+
'rounded-full',
|
|
17
|
+
'bg-off-white-300 border border-off-white-700',
|
|
18
|
+
'p-1',
|
|
19
|
+
], {
|
|
20
|
+
variants: {
|
|
21
|
+
hidden: {
|
|
22
|
+
false: 'flex',
|
|
23
|
+
true: 'hidden',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
const Pagination = class {
|
|
28
|
+
constructor(hostRef) {
|
|
29
|
+
index.registerInstance(this, hostRef);
|
|
30
|
+
this.pageChange = index.createEvent(this, "pageChange", 3);
|
|
31
|
+
this.pageSizeChange = index.createEvent(this, "pageSizeChange", 3);
|
|
32
|
+
this.hideOnSinglePage = true;
|
|
33
|
+
this.enablePaginationSize = true;
|
|
34
|
+
this.enablePaginationPages = true;
|
|
35
|
+
this.page = 1;
|
|
36
|
+
this.total = undefined;
|
|
37
|
+
this.pageSize = constants.defaultSize;
|
|
38
|
+
this.pageSizeOptions = constants.defaultSizeOptions;
|
|
39
|
+
this._hasPaginationPages = true;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Event whenever the page changes
|
|
43
|
+
*/
|
|
44
|
+
pageChange;
|
|
45
|
+
/**
|
|
46
|
+
* Event whenever the page changes
|
|
47
|
+
*/
|
|
48
|
+
pageSizeChange;
|
|
49
|
+
render() {
|
|
50
|
+
const hidePageSizeSelect = this.hideOnSinglePage && this.total < this.pageSizeOptions?.[0];
|
|
51
|
+
return (index.h(index.Host, { key: '90a23cd6c05cf683d848afc24ee03b95426e791e', class: pagination({
|
|
52
|
+
hidden: (hidePageSizeSelect && !this.enablePaginationSize) ||
|
|
53
|
+
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
54
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (index.h(index.Fragment, { key: 'c7f8ec9ddbf7a3e40ab466e5d356901df2ea6f3f' }, index.h("p-pagination-size", { key: 'f98822e9feab28e4a9bcec27229096f28e462158', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
55
|
+
this.hideOnSinglePage &&
|
|
56
|
+
this._hasPaginationPages && (index.h("p-divider", { key: '1f32c4da7c21822e2c4392c6f1e56e8048aa3f2f', variant: 'vertical', class: 'mx-0 h-4 text-human-beige-700' })))), this.enablePaginationPages && (index.h("p-pagination-pages", { key: '2bab7184cf3a49073cd26c68662532e00c5ffda2', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => (this._hasPaginationPages = detail > 1) }))));
|
|
57
|
+
}
|
|
58
|
+
_changePageSize(s) {
|
|
59
|
+
if (!s) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
this.pageSize = s;
|
|
63
|
+
this.pageSizeChange.emit(this.pageSize);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Pagination.style = PPaginationStyle0;
|
|
67
|
+
|
|
68
|
+
exports.p_pagination = Pagination;
|
|
69
|
+
|
|
70
|
+
//# sourceMappingURL=p-pagination.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-pagination.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,stBAAstB,CAAC;AACtvB,0BAAe,sBAAsB;;ACYrC,MAAM,UAAU,GAAGA,WAAG,CACrB;IACC,cAAc;IACd,oBAAoB;IACpB,cAAc;IACd,8CAA8C;IAC9C,KAAK;CACL,EACD;IACC,QAAQ,EAAE;QACT,MAAM,EAAE;YACP,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,QAAQ;SACd;KACD;CACD,CACD,CAAC;MAMW,UAAU;;;;;gCAIc,IAAI;oCAKA,IAAI;qCAKH,IAAI;oBAKU,CAAC;;wBAU7BC,qBAAW;+BAKFC,4BAAkB;mCAkBf,IAAI;;;;;IAV3C,UAAU,CAAuB;;;;IAQjC,cAAc,CAAuB;IAIrC,MAAM;QACL,MAAM,kBAAkB,GACvB,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;QAEjE,QACCC,QAACC,UAAI,qDACJ,K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host","Fragment"],"sources":["src/components/molecules/pagination/pagination.component.css?tag=p-pagination","src/components/molecules/pagination/pagination.component.tsx"],"sourcesContent":["","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\tFragment,\n\th,\n\tHost,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { defaultSize, defaultSizeOptions } from '../pagination-size/constants';\nimport { cva } from 'class-variance-authority';\n\nconst pagination = cva(\n\t[\n\t\t'p-pagination',\n\t\t'items-center gap-2',\n\t\t'rounded-full',\n\t\t'bg-off-white-300 border border-off-white-700',\n\t\t'p-1',\n\t],\n\t{\n\t\tvariants: {\n\t\t\thidden: {\n\t\t\t\tfalse: 'flex',\n\t\t\t\ttrue: 'hidden',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-pagination',\n\tstyleUrl: 'pagination.component.css',\n})\nexport class Pagination {\n\t/**\n\t * Wether to hide when there is only 1 page available\n\t */\n\t@Prop() hideOnSinglePage: boolean = true;\n\n\t/**\n\t * Wether to enable pagination size select\n\t */\n\t@Prop() enablePaginationSize: boolean = true;\n\n\t/**\n\t * Wether to enable pagination pages\n\t */\n\t@Prop() enablePaginationPages: boolean = true;\n\n\t/**\n\t * The current page\n\t */\n\t@Prop({ mutable: true, reflect: true }) page: number = 1;\n\n\t/**\n\t * The total amount of items\n\t */\n\t@Prop() total!: number;\n\n\t/**\n\t * The amount of items per page\n\t */\n\t@Prop() pageSize: number = defaultSize;\n\n\t/**\n\t * The options for the page size\n\t */\n\t@Prop() pageSizeOptions: number[] = defaultSizeOptions;\n\n\t/**\n\t * Event whenever the page changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tpageChange: EventEmitter<number>;\n\n\t/**\n\t * Event whenever the page changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tpageSizeChange: EventEmitter<number>;\n\n\t@State() private _hasPaginationPages = true;\n\n\trender() {\n\t\tconst hidePageSizeSelect =\n\t\t\tthis.hideOnSinglePage && this.total < this.pageSizeOptions?.[0];\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={pagination({\n\t\t\t\t\thidden:\n\t\t\t\t\t\t(hidePageSizeSelect && !this.enablePaginationSize) ||\n\t\t\t\t\t\t(!this.enablePaginationSize && !this.enablePaginationPages),\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{this.enablePaginationPages && this.enablePaginationSize && (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<p-pagination-size\n\t\t\t\t\t\t\thidden={hidePageSizeSelect}\n\t\t\t\t\t\t\tsize={this.pageSize}\n\t\t\t\t\t\t\tsizeOptions={this.pageSizeOptions}\n\t\t\t\t\t\t\tonSizeChange={({ detail }) => this._changePageSize(detail)}\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t{!hidePageSizeSelect &&\n\t\t\t\t\t\t\tthis.hideOnSinglePage &&\n\t\t\t\t\t\t\tthis._hasPaginationPages && (\n\t\t\t\t\t\t\t\t<p-divider\n\t\t\t\t\t\t\t\t\tvariant='vertical'\n\t\t\t\t\t\t\t\t\tclass='mx-0 h-4 text-human-beige-700'\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t</Fragment>\n\t\t\t\t)}\n\n\t\t\t\t{this.enablePaginationPages && (\n\t\t\t\t\t<p-pagination-pages\n\t\t\t\t\t\tpageSize={this.pageSize}\n\t\t\t\t\t\ttotal={this.total}\n\t\t\t\t\t\tpage={this.page}\n\t\t\t\t\t\thideOnSinglePage={this.hideOnSinglePage}\n\t\t\t\t\t\tonPageChange={({ detail }) => this.pageChange.emit(detail)}\n\t\t\t\t\t\tonPagesChange={({ detail }) =>\n\t\t\t\t\t\t\t(this._hasPaginationPages = detail > 1)\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _changePageSize(s?: number) {\n\t\tif (!s) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.pageSize = s;\n\t\tthis.pageSizeChange.emit(this.pageSize);\n\t}\n}\n"],"version":3}
|
|
@@ -20,7 +20,7 @@ const Portal = class {
|
|
|
20
20
|
this._moved ? this._el.remove() : (this._moved = true);
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: 'bb0d2d84023af6e4d6b9d87ebeba83d16c37949b' }, index.h("slot", { key: '014316bcd782e41366cbf3489357b1ea47b5d23b' })));
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -33,7 +33,7 @@ const Profile = class {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const content = this._getContent();
|
|
36
|
-
return (index.h(index.Host, { key: '
|
|
36
|
+
return (index.h(index.Host, { key: 'c0fbe8fa2fbbcae04a370f132ce02091039a4007', class: 'p-profile inline-block w-inherit' }, this._hasDropdownSlot ? (index.h("p-dropdown", { class: 'block', strategy: 'absolute', placement: this.dropdownLocation, applyFullWidth: true, applyMaxWidth: false, onIsOpen: ev => (this._dropdownOpen = ev.detail) }, index.h("p-button", { variant: 'dropdown', chevron: this._dropdownOpen ? 'up' : 'down', active: this._dropdownOpen, slot: 'trigger', size: 'lg', class: 'w-full' }, content), index.h("div", { slot: 'items' }, index.h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
|
|
37
37
|
}
|
|
38
38
|
slotchange() {
|
|
39
39
|
this._checkDropdownSlot();
|
|
@@ -77,13 +77,13 @@ const Radio = class {
|
|
|
77
77
|
*/
|
|
78
78
|
checkedChange;
|
|
79
79
|
render() {
|
|
80
|
-
return (index.h(index.Host, { key: '
|
|
80
|
+
return (index.h(index.Host, { key: 'b2ec6cf9d5661f57b7e28120148fcf9007069395', class: 'p-radio' }, index.h("label", { key: '782f32d703c4f897b287e7dfb80fd3b06f5e0abe', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, index.h("div", { key: '45580ebf3a62a9f9a1e746c15b7d15139a38a47c', class: 'relative flex flex-shrink-0 items-center' }, index.h("input", { key: '2262b932817e69fea5c5dd5c5046d9050d1b52a1', class: radio({
|
|
81
81
|
size: this.size,
|
|
82
82
|
disabled: this.disabled,
|
|
83
|
-
}), type: 'radio', id: this.id ?? this._nonce, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: this.disabled, onChange: ev => this._onChange(ev) }), index.h("div", { key: '
|
|
83
|
+
}), type: 'radio', id: this.id ?? this._nonce, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: this.disabled, onChange: ev => this._onChange(ev) }), index.h("div", { key: '18275011c0989071809d90c21e477e70099a1f4e', class: circle({
|
|
84
84
|
size: this.size,
|
|
85
85
|
disabled: this.disabled,
|
|
86
|
-
}) })), index.h("slot", { key: '
|
|
86
|
+
}) })), index.h("slot", { key: '02d03f675466bef15f63ab49240a53e1607c3ff2' }))));
|
|
87
87
|
}
|
|
88
88
|
_onChange(ev) {
|
|
89
89
|
if (this.disabled) {
|
|
@@ -185,7 +185,7 @@ const Select = class {
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
render() {
|
|
188
|
-
return (index.h(index.Host, { key: '
|
|
188
|
+
return (index.h(index.Host, { key: '0535ba59ab5b32d65e1f2672a49b404f015bc7ea', class: 'p-select' }, index.h("p-dropdown", { key: '84b70085736f0943eddc1a0bae65460b78f13aad', disableTriggerClick: true, calculateWidth: true, insideClick: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev) }, index.h("p-field-container", { key: 'daa079d94004685de5816f0d06fa8f07539900eb', slot: 'trigger', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, errorPlacement: 'top-start', forceShowTooltip: this.error?.length && this._showDropdown }, index.h("p-button", { key: 'c0f4640c1cd9047fae73594bef62a7b28f84a9f8', class: 'w-full', slot: 'content', variant: 'secondary', size: this.size, chevron: this.showChevron, disabled: this.disabled, active: this._showDropdown, icon: this.icon, onClick: ev => this._onClick(ev) }, index.h("div", { key: '2479f6d8ff8dea97e8592ba6059371a3967f852a', class: 'relative flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue))), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem())));
|
|
189
189
|
}
|
|
190
190
|
documentClickHandler({ target }) {
|
|
191
191
|
if (!this._showDropdown || childOf.childOf(target, this._el)) {
|
|
@@ -13,7 +13,7 @@ const SliderIndicator = class {
|
|
|
13
13
|
this.active = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (index.h(index.Host, { key: '
|
|
16
|
+
return (index.h(index.Host, { key: 'b4a76296cb2107ee168a257a89fcf4cd75a724dc', class: `p-slider-indicator ${this.active && 'active'}` }));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
SliderIndicator.style = PSliderIndicatorStyle0;
|
|
@@ -16,8 +16,8 @@ const Status = class {
|
|
|
16
16
|
this.iconRotate = undefined;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
20
|
-
}` }, this._getIcon(), index.h("slot", { key: '
|
|
19
|
+
return (index.h(index.Host, { key: 'e7ee3ba3c0b6e4b8b72f666f4e8d17eed22a588a', class: `p-status variant-${this.variant}
|
|
20
|
+
}` }, this._getIcon(), index.h("slot", { key: '485021196c8b4bac9a05021699b5796b7073d86f' })));
|
|
21
21
|
}
|
|
22
22
|
_getIcon() {
|
|
23
23
|
const icon = this.icon || this._getVariantIcon();
|
|
@@ -17,7 +17,7 @@ const StepperItem = class {
|
|
|
17
17
|
this.active = false;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (index.h(index.Host, { key: '
|
|
20
|
+
return (index.h(index.Host, { key: '3d485ab1326327a11f843a10a06976dbfaa5e69e', class: "p-stepper-item" }, index.h("div", { key: '77778ae9a704c43da71e62455e5ba6c00c9e575f', class: "circle" }, this.finished && index.h("p-icon", { key: 'ba5127ed6b27595d9e730ce72a7842e3a4aae60e', variant: "checkmark" })), index.h("div", { key: 'dd5ea1dd939440735e0fb32c981054ff6bd78966', class: "content" }, index.h("slot", { key: 'c1c73ee1f7d719d8f8da88dda286a01875ee9032', name: "content" }))));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
StepperItem.style = PStepperItemStyle0;
|
|
@@ -14,7 +14,7 @@ const StepperLine = class {
|
|
|
14
14
|
this.direction = 'horizontal';
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return index.h(index.Host, { key: '
|
|
17
|
+
return index.h(index.Host, { key: '1f10907cd345fbd5beda9a9d022426dbeb1d769d', class: "p-stepper-line" });
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
StepperLine.style = PStepperLineStyle0;
|
|
@@ -122,7 +122,7 @@ const Stepper = class {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
render() {
|
|
125
|
-
return (index.h(index.Host, { key: '
|
|
125
|
+
return (index.h(index.Host, { key: 'ea1674841729093f8c7c93a22362efcb9fe7a410', class: 'p-stepper' }, index.h("slot", { key: 'bda39ed6b0ee781f9edd0ff5150521feb77bceb2', onSlotchange: () => this._generateStepsOnce() })));
|
|
126
126
|
}
|
|
127
127
|
_onActiveStepChange() {
|
|
128
128
|
this._generateStepsOnce();
|
|
@@ -9,7 +9,7 @@ const TabGroup = class {
|
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (index.h(index.Host, { key: "
|
|
12
|
+
return (index.h(index.Host, { key: "0196a50b1603687c6966ddfe57f93f5163d8a53f", class: "p-tab-group relative flex w-full flex-col" }, index.h("div", { key: "0c5412d0724d086fc4ef2a7ad8dc306e9769d130", class: "scrollbar-hide z-10 flex w-full gap-5 overflow-x-auto" }, index.h("slot", { key: "31bb8480ea930c664473c8b77f9cb97276b5af16" })), index.h("p-divider", { key: "8e4668bc349afae1e1772a1b1f5bb3f3476a5aaf", class: "absolute bottom-0 left-0 m-0 w-full" })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -13,7 +13,7 @@ const TabItem = class {
|
|
|
13
13
|
this.active = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (index.h(index.Host, { key: '
|
|
16
|
+
return (index.h(index.Host, { key: '8ede23aa9899c3bdea0191542b007fa77dd54fe8', class: `p-tab-item ${this.active && 'active'}` }, index.h("slot", { key: 'd6ecbb51b03ab4791f3153bdf6c7c98623bdd0b1' })));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
TabItem.style = PTabItemStyle0;
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-3f9bbc0c.js');
|
|
6
6
|
const screens = require('./screens-e5439aeb.js');
|
|
7
7
|
const localization = require('./localization-3a0a71db.js');
|
|
8
|
-
const constants = require('./constants-
|
|
8
|
+
const constants = require('./constants-eae831f7.js');
|
|
9
9
|
const cn = require('./cn-b70f9965.js');
|
|
10
10
|
require('./clsx-fc789adc.js');
|
|
11
11
|
|
|
12
|
-
const tableComponentCss = ".fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.bottom-4{bottom:1rem!important}.left-1\\/2{left:50%!important}.flex{display:flex!important}.hidden{display:none!important}.flex-shrink{flex-shrink:1!important}.-translate-x-1\\/2{--tw-translate-x:-50%!important}.-translate-x-1\\/2,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}*{box-sizing:border-box}p-table{display:flex;flex-direction:column;position:relative}p-table .p-checkbox{flex-shrink:0}p-table p-table-container{position:relative}p-table p-table-container p-floating-menu-container{--tw-translate-x:-50%;animation:floatingMenuContainerIn .3s ease forwards!important;bottom:1rem;left:50%;position:fixed;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:40rem){p-table p-table-container p-floating-menu-container{bottom:4rem;position:absolute}}p-table p-table-container p-floating-menu-container:not(.shown){display:none}p-table p-table-container p-floating-menu-container.inactive{animation:floatingMenuContainerOut .3s ease forwards!important}@keyframes floatingMenuContainerOut{0%{display:flex;opacity:1;transform:translateY(0) translateX(-50%)}99%{display:flex;opacity:0;transform:translateY(100%) translateX(-50%)}to{display:none;opacity:0;transform:translateY(100%) translateX(-50%)}}@keyframes floatingMenuContainerIn{0%{display:none;opacity:0;transform:translateY(100%) translateX(-50%)}1%{display:flex;opacity:0;transform:translateY(100%) translateX(-50%)}to{display:flex;opacity:1;transform:translateY(0) translateX(-50%)}}.static{position:static!important}.
|
|
12
|
+
const tableComponentCss = ".fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.bottom-4{bottom:1rem!important}.left-1\\/2{left:50%!important}.flex{display:flex!important}.hidden{display:none!important}.flex-shrink{flex-shrink:1!important}.-translate-x-1\\/2{--tw-translate-x:-50%!important}.-translate-x-1\\/2,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}*{box-sizing:border-box}p-table{display:flex;flex-direction:column;position:relative}p-table .p-checkbox{flex-shrink:0}p-table p-table-container{position:relative}p-table p-table-container p-floating-menu-container{--tw-translate-x:-50%;animation:floatingMenuContainerIn .3s ease forwards!important;bottom:1rem;left:50%;position:fixed;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:40rem){p-table p-table-container p-floating-menu-container{bottom:4rem;position:absolute}}p-table p-table-container p-floating-menu-container:not(.shown){display:none}p-table p-table-container p-floating-menu-container.inactive{animation:floatingMenuContainerOut .3s ease forwards!important}@keyframes floatingMenuContainerOut{0%{display:flex;opacity:1;transform:translateY(0) translateX(-50%)}99%{display:flex;opacity:0;transform:translateY(100%) translateX(-50%)}to{display:none;opacity:0;transform:translateY(100%) translateX(-50%)}}@keyframes floatingMenuContainerIn{0%{display:none;opacity:0;transform:translateY(100%) translateX(-50%)}1%{display:flex;opacity:0;transform:translateY(100%) translateX(-50%)}to{display:flex;opacity:1;transform:translateY(0) translateX(-50%)}}.static{position:static!important}.mb-14{margin-bottom:3.5rem!important}.mb-6{margin-bottom:1.5rem!important}.ml-auto{margin-left:auto!important}.table{display:table!important}.h-6{height:1.5rem!important}.w-6{width:1.5rem!important}.max-w-\\[20rem\\]{max-width:20rem!important}.flex-1{flex:1 1 0%!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}.self-center{align-self:center!important}.rounded{border-radius:.25rem!important}.py-24{padding-bottom:6rem!important;padding-top:6rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-storm-medium{--tw-text-opacity:1!important;color:rgb(128 130 158/var(--tw-text-opacity,1))!important}.opacity-0{opacity:0!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";
|
|
13
13
|
const PTableStyle0 = tableComponentCss;
|
|
14
14
|
|
|
15
15
|
const Table = class {
|
|
@@ -153,7 +153,7 @@ const Table = class {
|
|
|
153
153
|
this.hasRendered.emit();
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
|
-
return (index.h(index.Host, { key: '
|
|
156
|
+
return (index.h(index.Host, { key: '115781a7ed9724c4e45f91400483141b578cf54b', class: 'p-table' }, index.h("p-table-container", { key: '6c354c314ccb5e4c167b0a7d6cd43bbc421d3456', shadow: this.shadow }, this.enableHeader && (index.h("p-table-header", { key: 'e2b80da28b457dce197f231850e3f9961cb63977',
|
|
157
157
|
// quick filters
|
|
158
158
|
quickFilters: this.quickFilters, activeQuickFilterIdentifier: this.activeQuickFilterIdentifier, onQuickFilter: ({ detail }) => this.quickFilter.emit(detail),
|
|
159
159
|
// search
|
|
@@ -163,7 +163,7 @@ const Table = class {
|
|
|
163
163
|
// action button
|
|
164
164
|
enableAction: this.enableAction, actionIcon: this.actionButtonIcon, actionText: this.actionButtonText, actionLoading: this.actionButtonLoading, canUseAction: this.actionButtonEnabled, actionButtonTemplate: this.actionButtonTemplate, onAction: () => this.action.emit(), itemsSelectedAmount: this.selectedRows?.length,
|
|
165
165
|
//loading
|
|
166
|
-
loading: this.headerLoading }, this._hasCustomFilterSlot && (index.h("slot", { key: '
|
|
166
|
+
loading: this.headerLoading }, this._hasCustomFilterSlot && (index.h("slot", { key: 'b83f2bceda8502cb14dbe0691ee0f9ea53f3be2c', name: 'custom-filter', slot: 'custom-filter' })), this._hasCustomActionsSlot && (index.h("slot", { key: 'a9bad5a3a28e176fb81df14d4a418f8ba2d29542', name: 'custom-actions', slot: 'custom-actions' })))), this._getHeader(), index.h("div", { key: '5d57a53317fcb3621d4bf6b6abb1662dfeb217c4', class: 'flex flex-1 flex-col' }, this._getRows()), this.enableFooter && (index.h("p-table-footer", { key: '8c4df256292e0ec8246bba9e1dbbf81c51cd89bb',
|
|
167
167
|
// overall
|
|
168
168
|
hideOnSinglePage: this.hideOnSinglePage,
|
|
169
169
|
// page size select
|
|
@@ -173,13 +173,13 @@ const Table = class {
|
|
|
173
173
|
// export
|
|
174
174
|
enableExport: this.enableExport, onExport: () => this.export.emit(),
|
|
175
175
|
//loading
|
|
176
|
-
loading: this.footerLoading })), this.enableFloatingMenu && this._enableRowSelection ? (index.h("p-floating-menu-container", { usedInTable: true, class: `${this.selectedRows?.length ? '' : 'inactive'} ${this._floatingMenuShown ? 'shown' : ''}
|
|
177
|
-
this._rowActionsFloating.map(a => (index.h("p-floating-menu-item", { slot: 'floating-menu-item', disabled: a.disabled, onClick: () => !a.disabled &&
|
|
176
|
+
loading: this.footerLoading })), this.enableFloatingMenu && this._enableRowSelection ? (index.h("p-floating-menu-container", { usedInTable: true, class: `${this.selectedRows?.length ? '' : 'inactive'} ${this._floatingMenuShown ? 'shown' : ''}`, amountSelectedTemplate: this.floatingMenuAmountSelectedTemplate, amount: this.selectedRows?.length, enableAmountSelected: !!this._rowActionsFloating?.length, onClose: () => this._selectAllChange(null, false) }, this._rowActionsFloating?.length &&
|
|
177
|
+
this._rowActionsFloating.map(a => (index.h("p-floating-menu-item", { slot: 'floating-menu-item', disabled: a.disabled, loading: a.loading, icon: a.icon, iconRotate: a.iconRotate, iconFlip: a.iconFlip, onClick: () => !a.disabled &&
|
|
178
178
|
!a.loading &&
|
|
179
179
|
!!a.action &&
|
|
180
180
|
a.type === 'single'
|
|
181
181
|
? a.action(this.selectedRows[0], false)
|
|
182
|
-
: a.action(this.selectedRows, true) }, a.label
|
|
182
|
+
: a.action(this.selectedRows, true) }, a.label))))) : (''))));
|
|
183
183
|
}
|
|
184
184
|
async _setLocales() {
|
|
185
185
|
this._locales = await localization.getLocaleComponentStrings(this._el);
|
|
@@ -326,10 +326,11 @@ const Table = class {
|
|
|
326
326
|
}
|
|
327
327
|
return (index.h("div", { class: `flex max-w-[20rem] flex-col items-center self-center py-24 text-center ${this.enableEmptyStateAction && 'cursor-pointer'}`, onClick: () => this.enableEmptyStateAction && this.emptyStateActionClick.emit(null) }, index.h("p-illustration", { variant: 'empty-state-add', class: 'mb-6' }), index.h("p", { class: 'text-storm-default font-semibold' }, this.emptyStateHeader()), index.h("p", { class: 'mb-6 text-sm text-storm-medium' }, this.emptyStateContent()), this.enableEmptyStateAction && (index.h("p-button", { variant: 'secondary', icon: 'plus', size: 'sm' }, this.emptyStateAction()))));
|
|
328
328
|
}
|
|
329
|
-
_selectAllChange(
|
|
329
|
+
_selectAllChange(ev, forceValue) {
|
|
330
330
|
if (!this._enableRowSelection) {
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
|
+
const checked = ev?.detail ?? forceValue ?? false;
|
|
333
334
|
const value = forceValue === undefined ? checked : forceValue;
|
|
334
335
|
if (value) {
|
|
335
336
|
const toAdd = [];
|