@paperless/core 2.0.1-beta.33 → 2.0.1-beta.35
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 +108 -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-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-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-4a10de20.entry.js → p-489013c7.entry.js} +2 -2
- 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/build/p-5e139fea.entry.js +2 -0
- package/dist/build/p-5e139fea.entry.js.map +1 -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/{paperless/p-28f44624.entry.js → build/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-cf0cc50e.js +2 -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} +18 -153
- 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 +3 -3
- 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.js +3 -3
- 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.js +3 -3
- 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 +3 -3
- 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 +3 -3
- 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} +19 -153
- 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 +3 -3
- 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-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-4a10de20.entry.js → p-489013c7.entry.js} +2 -2
- 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/paperless/p-5e139fea.entry.js +2 -0
- package/dist/paperless/p-5e139fea.entry.js.map +1 -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/{build/p-28f44624.entry.js → paperless/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 +583 -204
- package/hydrate/index.mjs +583 -204
- 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-2c6f3984.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-5c2b9a8d.entry.js +0 -2
- package/dist/build/p-5c2b9a8d.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-b082e123.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-5c2b9a8d.entry.js +0 -2
- package/dist/paperless/p-5c2b9a8d.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-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-4a10de20.entry.js.map → p-489013c7.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-4a10de20.entry.js.map → p-489013c7.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
|
@@ -26,10 +26,10 @@ export class SegmentItem {
|
|
|
26
26
|
this.iconRotate = undefined;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: 'b038e9d37e1ed6fef2c26b526f756d5b4d3969c8', class: segmentItem({
|
|
30
30
|
active: this.active,
|
|
31
31
|
iconOnly: this.iconOnly,
|
|
32
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
32
|
+
}) }, this.icon && (h("p-icon", { key: '01ad5164e37f166395422a6a5ffe38499a42b26b', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), h("slot", { key: '0b8d0661e1f774422008fc22e3c96e64c8388ac4' })));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "p-segment-item"; }
|
|
35
35
|
static get originalStyleUrls() {
|
|
@@ -89,7 +89,7 @@ export class SegmentItem {
|
|
|
89
89
|
"mutable": false,
|
|
90
90
|
"complexType": {
|
|
91
91
|
"original": "IconVariant",
|
|
92
|
-
"resolved": "\"caret\" | \"double-caret\" | \"arrow\" | \"double-arrow\" | \"bell\" | \"chat\" | \"check-circle\" | \"cross-circle\" | \"error-circle\" | \"info-circle\" | \"phone\" | \"question-circle\" | \"headset\" | \"warning\" | \"attachment\" | \"description\" | \"document\" | \"folder\" | \"pdf\" | \"xls\" | \"bank\" | \"bread\" | \"cake\" | \"calculator\" | \"camera\" | \"car\" | \"certified\" | \"chair\" | \"checkmark\" | \"city\" | \"companies\" | \"company\" | \"credit-card\" | \"cutlery\" | \"department\" | \"diamond\" | \"docter\" | \"download\" | \"envelope\" | \"euro\" | \"exam\" | \"filter\" | \"flower\" | \"globe\" | \"globe-2\" | \"hash\" | \"hat\" | \"home\" | \"integration\" | \"language\" | \"laptop\" | \"location\" | \"mail\" | \"medal\" | \"menu\" | \"menu-arrow\" | \"minus\" | \"more\" | \"negative\" | \"other\" | \"pay\" | \"pencil\" | \"percent\" | \"pie-chart\" | \"placeholder\" | \"plus\" | \"power\" | \"receipt\" | \"reset\" | \"search\" | \"send\" | \"settings\" | \"shuffle\" | \"sick\" | \"signature\" | \"sparkle\" | \"star\" | \"stroller\" | \"tag\" | \"tasks\" | \"tools\" | \"tooth\" | \"train\" | \"trash\" | \"upload\" | \"wave\" | \"zipcode\" | \"eye\" | \"eye-closed\" | \"key\" | \"lock\" | \"unlocked\" | \"alarm\" | \"calendar\" | \"calendar-multi\" | \"calendar-free\" | \"calendar-not-free\" | \"clock\" | \"female\" | \"id\" | \"id-two\" | \"male\" | \"user\" | \"users\"",
|
|
92
|
+
"resolved": "\"caret\" | \"double-caret\" | \"arrow\" | \"double-arrow\" | \"bell\" | \"chat\" | \"check-circle\" | \"cross-circle\" | \"error-circle\" | \"info-circle\" | \"phone\" | \"question-circle\" | \"headset\" | \"warning\" | \"attachment\" | \"description\" | \"document\" | \"folder\" | \"pdf\" | \"xls\" | \"bank\" | \"bread\" | \"cake\" | \"calculator\" | \"camera\" | \"car\" | \"certified\" | \"chair\" | \"checkmark\" | \"city\" | \"companies\" | \"company\" | \"credit-card\" | \"cutlery\" | \"department\" | \"diamond\" | \"docter\" | \"download\" | \"envelope\" | \"euro\" | \"exam\" | \"filter\" | \"flower\" | \"globe\" | \"globe-2\" | \"hash\" | \"hat\" | \"home\" | \"integration\" | \"language\" | \"laptop\" | \"location\" | \"mail\" | \"medal\" | \"menu\" | \"menu-arrow\" | \"minus\" | \"more\" | \"negative\" | \"other\" | \"pay\" | \"pencil\" | \"percent\" | \"pie-chart\" | \"placeholder\" | \"plus\" | \"power\" | \"receipt\" | \"reset\" | \"search\" | \"send\" | \"settings\" | \"shuffle\" | \"sick\" | \"signature\" | \"sparkle\" | \"star\" | \"stroller\" | \"tag\" | \"tasks\" | \"tools\" | \"tooth\" | \"train\" | \"trash\" | \"upload\" | \"wave\" | \"zipcode\" | \"eye\" | \"eye-closed\" | \"key\" | \"lock\" | \"unlocked\" | \"alarm\" | \"calendar\" | \"calendar-multi\" | \"calendar-free\" | \"calendar-not-free\" | \"clock\" | \"female\" | \"id\" | \"id-two\" | \"male\" | \"user\" | \"users\" | \"checkmarkThick\"",
|
|
93
93
|
"references": {
|
|
94
94
|
"IconVariant": {
|
|
95
95
|
"location": "import",
|
|
@@ -4,7 +4,7 @@ export class SliderIndicator {
|
|
|
4
4
|
this.active = false;
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: 'b4a76296cb2107ee168a257a89fcf4cd75a724dc', class: `p-slider-indicator ${this.active && 'active'}` }));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "p-slider-indicator"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,8 +7,8 @@ export class Status {
|
|
|
7
7
|
this.iconRotate = undefined;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
11
|
-
}` }, this._getIcon(), h("slot", { key: '
|
|
10
|
+
return (h(Host, { key: 'e7ee3ba3c0b6e4b8b72f666f4e8d17eed22a588a', class: `p-status variant-${this.variant}
|
|
11
|
+
}` }, this._getIcon(), h("slot", { key: '485021196c8b4bac9a05021699b5796b7073d86f' })));
|
|
12
12
|
}
|
|
13
13
|
_getIcon() {
|
|
14
14
|
const icon = this.icon || this._getVariantIcon();
|
|
@@ -73,7 +73,7 @@ export class Status {
|
|
|
73
73
|
"mutable": false,
|
|
74
74
|
"complexType": {
|
|
75
75
|
"original": "IconVariant",
|
|
76
|
-
"resolved": "\"caret\" | \"double-caret\" | \"arrow\" | \"double-arrow\" | \"bell\" | \"chat\" | \"check-circle\" | \"cross-circle\" | \"error-circle\" | \"info-circle\" | \"phone\" | \"question-circle\" | \"headset\" | \"warning\" | \"attachment\" | \"description\" | \"document\" | \"folder\" | \"pdf\" | \"xls\" | \"bank\" | \"bread\" | \"cake\" | \"calculator\" | \"camera\" | \"car\" | \"certified\" | \"chair\" | \"checkmark\" | \"city\" | \"companies\" | \"company\" | \"credit-card\" | \"cutlery\" | \"department\" | \"diamond\" | \"docter\" | \"download\" | \"envelope\" | \"euro\" | \"exam\" | \"filter\" | \"flower\" | \"globe\" | \"globe-2\" | \"hash\" | \"hat\" | \"home\" | \"integration\" | \"language\" | \"laptop\" | \"location\" | \"mail\" | \"medal\" | \"menu\" | \"menu-arrow\" | \"minus\" | \"more\" | \"negative\" | \"other\" | \"pay\" | \"pencil\" | \"percent\" | \"pie-chart\" | \"placeholder\" | \"plus\" | \"power\" | \"receipt\" | \"reset\" | \"search\" | \"send\" | \"settings\" | \"shuffle\" | \"sick\" | \"signature\" | \"sparkle\" | \"star\" | \"stroller\" | \"tag\" | \"tasks\" | \"tools\" | \"tooth\" | \"train\" | \"trash\" | \"upload\" | \"wave\" | \"zipcode\" | \"eye\" | \"eye-closed\" | \"key\" | \"lock\" | \"unlocked\" | \"alarm\" | \"calendar\" | \"calendar-multi\" | \"calendar-free\" | \"calendar-not-free\" | \"clock\" | \"female\" | \"id\" | \"id-two\" | \"male\" | \"user\" | \"users\"",
|
|
76
|
+
"resolved": "\"caret\" | \"double-caret\" | \"arrow\" | \"double-arrow\" | \"bell\" | \"chat\" | \"check-circle\" | \"cross-circle\" | \"error-circle\" | \"info-circle\" | \"phone\" | \"question-circle\" | \"headset\" | \"warning\" | \"attachment\" | \"description\" | \"document\" | \"folder\" | \"pdf\" | \"xls\" | \"bank\" | \"bread\" | \"cake\" | \"calculator\" | \"camera\" | \"car\" | \"certified\" | \"chair\" | \"checkmark\" | \"city\" | \"companies\" | \"company\" | \"credit-card\" | \"cutlery\" | \"department\" | \"diamond\" | \"docter\" | \"download\" | \"envelope\" | \"euro\" | \"exam\" | \"filter\" | \"flower\" | \"globe\" | \"globe-2\" | \"hash\" | \"hat\" | \"home\" | \"integration\" | \"language\" | \"laptop\" | \"location\" | \"mail\" | \"medal\" | \"menu\" | \"menu-arrow\" | \"minus\" | \"more\" | \"negative\" | \"other\" | \"pay\" | \"pencil\" | \"percent\" | \"pie-chart\" | \"placeholder\" | \"plus\" | \"power\" | \"receipt\" | \"reset\" | \"search\" | \"send\" | \"settings\" | \"shuffle\" | \"sick\" | \"signature\" | \"sparkle\" | \"star\" | \"stroller\" | \"tag\" | \"tasks\" | \"tools\" | \"tooth\" | \"train\" | \"trash\" | \"upload\" | \"wave\" | \"zipcode\" | \"eye\" | \"eye-closed\" | \"key\" | \"lock\" | \"unlocked\" | \"alarm\" | \"calendar\" | \"calendar-multi\" | \"calendar-free\" | \"calendar-not-free\" | \"clock\" | \"female\" | \"id\" | \"id-two\" | \"male\" | \"user\" | \"users\" | \"checkmarkThick\"",
|
|
77
77
|
"references": {
|
|
78
78
|
"IconVariant": {
|
|
79
79
|
"location": "import",
|
|
@@ -8,7 +8,7 @@ export class StepperItem {
|
|
|
8
8
|
this.active = false;
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: '3d485ab1326327a11f843a10a06976dbfaa5e69e', class: "p-stepper-item" }, h("div", { key: '77778ae9a704c43da71e62455e5ba6c00c9e575f', class: "circle" }, this.finished && h("p-icon", { key: 'ba5127ed6b27595d9e730ce72a7842e3a4aae60e', variant: "checkmark" })), h("div", { key: 'dd5ea1dd939440735e0fb32c981054ff6bd78966', class: "content" }, h("slot", { key: 'c1c73ee1f7d719d8f8da88dda286a01875ee9032', name: "content" }))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "p-stepper-item"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class StepperLine {
|
|
|
5
5
|
this.direction = 'horizontal';
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return h(Host, { key: '
|
|
8
|
+
return h(Host, { key: '1f10907cd345fbd5beda9a9d022426dbeb1d769d', class: "p-stepper-line" });
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "p-stepper-line"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class TabGroup {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '0196a50b1603687c6966ddfe57f93f5163d8a53f', class: "p-tab-group relative flex w-full flex-col" }, h("div", { key: '0c5412d0724d086fc4ef2a7ad8dc306e9769d130', class: "scrollbar-hide z-10 flex w-full gap-5 overflow-x-auto" }, h("slot", { key: '31bb8480ea930c664473c8b77f9cb97276b5af16' })), h("p-divider", { key: '8e4668bc349afae1e1772a1b1f5bb3f3476a5aaf', class: "absolute bottom-0 left-0 m-0 w-full" })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "p-tab-group"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ export class TabItem {
|
|
|
4
4
|
this.active = false;
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '8ede23aa9899c3bdea0191542b007fa77dd54fe8', class: `p-tab-item ${this.active && 'active'}` }, h("slot", { key: 'd6ecbb51b03ab4791f3153bdf6c7c98623bdd0b1' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "p-tab-item"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ export class TableContainer {
|
|
|
4
4
|
this.shadow = true;
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: 'f9b97958a4f0e448258e16b116fe42a81b014eb8', class: `p-table-container ${!this.shadow && 'no-shadow'}` }, h("slot", { key: 'dfb4247a6e6a80479c44ae9481d620666fad2a55' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "p-table-container"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ export class ToastContainer {
|
|
|
4
4
|
this.placement = 'top-end';
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '084f8ee6efb5f3d4d28cd74ccdda9120e3cf67b6', class: `p-toast-container placement-${this.placement}` }, h("slot", { key: '2bbc0227bfb59635caf0853773e6b573babf8e49' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "p-toast-container"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -94,13 +94,13 @@ export class Toggle {
|
|
|
94
94
|
*/
|
|
95
95
|
indeterminateChange;
|
|
96
96
|
render() {
|
|
97
|
-
return (h(Host, { key: '
|
|
97
|
+
return (h(Host, { key: '40efaf95a6ccc2c3d1207e1c2aee5aa42928847f', class: 'p-checkbox' }, h("label", { key: 'd0b47d2414464689189c04fd1087fa4e2670471b', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, h("div", { key: 'bea89d82418991b598ca015d8916f31fb3240be4', class: 'group relative flex flex-shrink-0 items-center' }, h("input", { key: '69830e728c7093fd2b269e341678bf95caa2705d', class: checkbox({
|
|
98
98
|
size: this.size,
|
|
99
99
|
disabled: this.disabled,
|
|
100
|
-
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: this.disabled, onChange: ev => this._onChange(ev) }), h("div", { key: '
|
|
100
|
+
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: this.disabled, onChange: ev => this._onChange(ev) }), h("div", { key: '89f8610d0e9ccb0daafeb325fdf89fafdf8afd00', class: circle({
|
|
101
101
|
size: this.size,
|
|
102
102
|
disabled: this.disabled,
|
|
103
|
-
}) })), h("slot", { key: '
|
|
103
|
+
}) })), h("slot", { key: '5d202099b2fd82d6174bb31fa9ce7ba95b8a355a' }))));
|
|
104
104
|
}
|
|
105
105
|
_onChange(ev) {
|
|
106
106
|
if (this.disabled) {
|
|
@@ -83,19 +83,19 @@ export class Tooltip {
|
|
|
83
83
|
ref: el => this._load(el),
|
|
84
84
|
};
|
|
85
85
|
let tooltip;
|
|
86
|
-
const tooltipElement = (h("div", { key: '
|
|
86
|
+
const tooltipElement = (h("div", { key: '6f9c3f17c03fd05f38542ae9c7c0bcbd974a5bbb', class: popover({
|
|
87
87
|
variant: this.variant,
|
|
88
88
|
strategy: this.usePortal ? 'none' : this.strategy,
|
|
89
|
-
}), ...(this.usePortal ? {} : tooltipProps) }, h("div", { key: '
|
|
89
|
+
}), ...(this.usePortal ? {} : tooltipProps) }, h("div", { key: '24a0b7be9128f683c5b97b025c127ccc099a350d', class: 'flex gap-2' }, this.variant === 'error' && (h("div", { key: 'bdef4cbe31d0642f4db9134e8b1dac420476f662', class: 'w-[2px] bg-negative-red' })), this.content ? this.content : h("slot", { name: 'content' }))));
|
|
90
90
|
if (this.usePortal) {
|
|
91
|
-
tooltip = (h("p-portal", { key: '
|
|
91
|
+
tooltip = (h("p-portal", { key: '261fa01590875e3b7b89e1071340a28e1a9c0026', class: portal({
|
|
92
92
|
strategy: this.strategy,
|
|
93
93
|
}), ...tooltipProps }, tooltipElement));
|
|
94
94
|
}
|
|
95
95
|
else {
|
|
96
96
|
tooltip = tooltipElement;
|
|
97
97
|
}
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: '5bc62f68bb9f49ce77f5e50f3713ad8a9b68e350', class: 'p-popover flex cursor-pointer' }, h("div", { key: '3792040756275f17dde8dad661af0cec0c40192b', class: 'relative h-inherit w-inherit' }, h("slot", { key: '7426bd33a80902bd576168c6dff9cfcfc70c128f', name: 'trigger' }), tooltip)));
|
|
99
99
|
}
|
|
100
100
|
clickHandler() {
|
|
101
101
|
if (this.variant === 'hover' || !this.enableUserInput) {
|
|
@@ -42,7 +42,7 @@ export class TableRowAction {
|
|
|
42
42
|
"mutable": false,
|
|
43
43
|
"complexType": {
|
|
44
44
|
"original": "IconVariant",
|
|
45
|
-
"resolved": "\"caret\" | \"double-caret\" | \"arrow\" | \"double-arrow\" | \"bell\" | \"chat\" | \"check-circle\" | \"cross-circle\" | \"error-circle\" | \"info-circle\" | \"phone\" | \"question-circle\" | \"headset\" | \"warning\" | \"attachment\" | \"description\" | \"document\" | \"folder\" | \"pdf\" | \"xls\" | \"bank\" | \"bread\" | \"cake\" | \"calculator\" | \"camera\" | \"car\" | \"certified\" | \"chair\" | \"checkmark\" | \"city\" | \"companies\" | \"company\" | \"credit-card\" | \"cutlery\" | \"department\" | \"diamond\" | \"docter\" | \"download\" | \"envelope\" | \"euro\" | \"exam\" | \"filter\" | \"flower\" | \"globe\" | \"globe-2\" | \"hash\" | \"hat\" | \"home\" | \"integration\" | \"language\" | \"laptop\" | \"location\" | \"mail\" | \"medal\" | \"menu\" | \"menu-arrow\" | \"minus\" | \"more\" | \"negative\" | \"other\" | \"pay\" | \"pencil\" | \"percent\" | \"pie-chart\" | \"placeholder\" | \"plus\" | \"power\" | \"receipt\" | \"reset\" | \"search\" | \"send\" | \"settings\" | \"shuffle\" | \"sick\" | \"signature\" | \"sparkle\" | \"star\" | \"stroller\" | \"tag\" | \"tasks\" | \"tools\" | \"tooth\" | \"train\" | \"trash\" | \"upload\" | \"wave\" | \"zipcode\" | \"eye\" | \"eye-closed\" | \"key\" | \"lock\" | \"unlocked\" | \"alarm\" | \"calendar\" | \"calendar-multi\" | \"calendar-free\" | \"calendar-not-free\" | \"clock\" | \"female\" | \"id\" | \"id-two\" | \"male\" | \"user\" | \"users\"",
|
|
45
|
+
"resolved": "\"caret\" | \"double-caret\" | \"arrow\" | \"double-arrow\" | \"bell\" | \"chat\" | \"check-circle\" | \"cross-circle\" | \"error-circle\" | \"info-circle\" | \"phone\" | \"question-circle\" | \"headset\" | \"warning\" | \"attachment\" | \"description\" | \"document\" | \"folder\" | \"pdf\" | \"xls\" | \"bank\" | \"bread\" | \"cake\" | \"calculator\" | \"camera\" | \"car\" | \"certified\" | \"chair\" | \"checkmark\" | \"city\" | \"companies\" | \"company\" | \"credit-card\" | \"cutlery\" | \"department\" | \"diamond\" | \"docter\" | \"download\" | \"envelope\" | \"euro\" | \"exam\" | \"filter\" | \"flower\" | \"globe\" | \"globe-2\" | \"hash\" | \"hat\" | \"home\" | \"integration\" | \"language\" | \"laptop\" | \"location\" | \"mail\" | \"medal\" | \"menu\" | \"menu-arrow\" | \"minus\" | \"more\" | \"negative\" | \"other\" | \"pay\" | \"pencil\" | \"percent\" | \"pie-chart\" | \"placeholder\" | \"plus\" | \"power\" | \"receipt\" | \"reset\" | \"search\" | \"send\" | \"settings\" | \"shuffle\" | \"sick\" | \"signature\" | \"sparkle\" | \"star\" | \"stroller\" | \"tag\" | \"tasks\" | \"tools\" | \"tooth\" | \"train\" | \"trash\" | \"upload\" | \"wave\" | \"zipcode\" | \"eye\" | \"eye-closed\" | \"key\" | \"lock\" | \"unlocked\" | \"alarm\" | \"calendar\" | \"calendar-multi\" | \"calendar-free\" | \"calendar-not-free\" | \"clock\" | \"female\" | \"id\" | \"id-two\" | \"male\" | \"user\" | \"users\" | \"checkmarkThick\"",
|
|
46
46
|
"references": {
|
|
47
47
|
"IconVariant": {
|
|
48
48
|
"location": "import",
|
|
@@ -11,7 +11,7 @@ export class Accordion {
|
|
|
11
11
|
*/
|
|
12
12
|
isOpen;
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '6b30beeb39140eef55eda07436aba6d094478d8e', class: 'p-accordion' }, h("div", { key: '90d90727c847283d23de3475a3a573fc28efd8f2', class: 'flex cursor-pointer items-center gap-3 text-storm-vague', onClick: () => this._onClick() }, h("p-icon", { key: '20159b0bfe718c63b7167854830a72aa17912309', class: 'flex', variant: 'caret', rotate: this.open ? 0 : -90 }), h("p", { key: 'a7f261c699a41fa1df17476415afda93bafb5a43', class: 'm-0 whitespace-nowrap text-lg font-medium' }, this.header), h("p-divider", { key: '336839c9e8f18f7179c9d43d1907a67c246d8c32' })), this.open && (h("div", { key: '1530c39de3496b7bb88318f78aa945690717e037', class: 'mt-6' }, h("slot", { key: 'de231dd491494a9b49ff6fca97fb805e9b91427b' })))));
|
|
15
15
|
}
|
|
16
16
|
_onClick() {
|
|
17
17
|
if (!this.closeable && this.open) {
|
|
@@ -15,14 +15,14 @@ export class Attachment {
|
|
|
15
15
|
*/
|
|
16
16
|
delete;
|
|
17
17
|
render() {
|
|
18
|
-
let prefix = h("p-icon", { key: '
|
|
18
|
+
let prefix = h("p-icon", { key: 'c09bb42c3b2468e6f9641b049143ba33bcf227ed', variant: 'attachment' });
|
|
19
19
|
if (this.loading) {
|
|
20
|
-
prefix = h("p-loader", { key: '
|
|
20
|
+
prefix = h("p-loader", { key: '4a47c764c8634c41a006cbcef0819ac495383d45' });
|
|
21
21
|
}
|
|
22
22
|
if (this.error) {
|
|
23
|
-
prefix = (h("p-icon", { key: '
|
|
23
|
+
prefix = (h("p-icon", { key: 'b68414ca0c360344b803cb503bc97375c145cf26', variant: 'warning', class: 'text-negative' }));
|
|
24
24
|
}
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '7c2fb4622615da771f0542b46137376f353d3324', class: 'p-attachment flex items-start gap-4' }, h("div", { key: 'c26642043d15b3a16d689974f9f572f5fbd01f04', class: `flex h-8 min-w-0 flex-1 items-center justify-start gap-2 rounded-lg bg-mystic px-2 ${this.error?.length ? 'text-negative' : 'text-storm-medium'}` }, prefix, h("span", { key: '7200149af956d76267b0c85d0ab9f00baae900ce', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap' }, h("slot", { key: '7d8c8e660f0c1ee9ffc8bbd446a3c1a0e709858b' })), this.error?.length && h("p-input-error", { key: '9f1d61eaa43ddf2bf31413e9b87c4be05479fcfe', error: this.error })), h("p-button", { key: 'c74fc5e26a2864ba561a9d0ece1bbbf4f10fa465', variant: 'secondary', iconOnly: true, icon: this.mode === 'read' ? 'download' : 'trash', disabled: this.loading, loading: this.mode === 'read' && this.downloading, size: 'sm', onOnClick: () => (this.mode === 'read' ? this.download : this.delete).emit() })));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "p-attachment"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -289,7 +289,7 @@ export class Button {
|
|
|
289
289
|
? 'a'
|
|
290
290
|
: 'button';
|
|
291
291
|
const active = this.active || this.class?.includes('active');
|
|
292
|
-
return (h(Host, { key: '
|
|
292
|
+
return (h(Host, { key: 'bd323911aa83659e1ceacc78f7383498ac49ee3f', class: 'p-button block' }, h(VariableTag, { key: '24836397d30809a719796ba3488a2b59a0e7fcd7', disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target, class: button({
|
|
293
293
|
variant: this.variant,
|
|
294
294
|
size: this.size,
|
|
295
295
|
underline: this.underline,
|
|
@@ -298,14 +298,14 @@ export class Button {
|
|
|
298
298
|
buttonGroupPosition: this.buttonGroupPosition,
|
|
299
299
|
iconOnly: this.iconOnly,
|
|
300
300
|
active,
|
|
301
|
-
}) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: '
|
|
301
|
+
}) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: '1d2c9857b333ce860e88cedd867a2d4e921202bd', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
|
|
302
302
|
this.iconPosition === 'start' &&
|
|
303
303
|
!(this.iconOnly && this.loading) &&
|
|
304
|
-
this._getIcon(), h("slot", { key: '
|
|
304
|
+
this._getIcon(), h("slot", { key: 'f0406ef28f558774f9952e942cefb11b75ee8f5f' }), this.icon &&
|
|
305
305
|
this.iconPosition === 'end' &&
|
|
306
306
|
!this.loading &&
|
|
307
307
|
!this.chevron &&
|
|
308
|
-
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '
|
|
308
|
+
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: 'd3ccba3bad624c75b28562b0503d5804dad462b0', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && h("p-loader", { key: '2de6facd444171e293fea2bc6aa3888b13bd079f', color: loaderColor }))));
|
|
309
309
|
}
|
|
310
310
|
handleClick(ev) {
|
|
311
311
|
if (this.loading || this.disabled) {
|
|
@@ -581,7 +581,7 @@ export class Button {
|
|
|
581
581
|
"mutable": false,
|
|
582
582
|
"complexType": {
|
|
583
583
|
"original": "IconVariant",
|
|
584
|
-
"resolved": "\"caret\" | \"double-caret\" | \"arrow\" | \"double-arrow\" | \"bell\" | \"chat\" | \"check-circle\" | \"cross-circle\" | \"error-circle\" | \"info-circle\" | \"phone\" | \"question-circle\" | \"headset\" | \"warning\" | \"attachment\" | \"description\" | \"document\" | \"folder\" | \"pdf\" | \"xls\" | \"bank\" | \"bread\" | \"cake\" | \"calculator\" | \"camera\" | \"car\" | \"certified\" | \"chair\" | \"checkmark\" | \"city\" | \"companies\" | \"company\" | \"credit-card\" | \"cutlery\" | \"department\" | \"diamond\" | \"docter\" | \"download\" | \"envelope\" | \"euro\" | \"exam\" | \"filter\" | \"flower\" | \"globe\" | \"globe-2\" | \"hash\" | \"hat\" | \"home\" | \"integration\" | \"language\" | \"laptop\" | \"location\" | \"mail\" | \"medal\" | \"menu\" | \"menu-arrow\" | \"minus\" | \"more\" | \"negative\" | \"other\" | \"pay\" | \"pencil\" | \"percent\" | \"pie-chart\" | \"placeholder\" | \"plus\" | \"power\" | \"receipt\" | \"reset\" | \"search\" | \"send\" | \"settings\" | \"shuffle\" | \"sick\" | \"signature\" | \"sparkle\" | \"star\" | \"stroller\" | \"tag\" | \"tasks\" | \"tools\" | \"tooth\" | \"train\" | \"trash\" | \"upload\" | \"wave\" | \"zipcode\" | \"eye\" | \"eye-closed\" | \"key\" | \"lock\" | \"unlocked\" | \"alarm\" | \"calendar\" | \"calendar-multi\" | \"calendar-free\" | \"calendar-not-free\" | \"clock\" | \"female\" | \"id\" | \"id-two\" | \"male\" | \"user\" | \"users\"",
|
|
584
|
+
"resolved": "\"caret\" | \"double-caret\" | \"arrow\" | \"double-arrow\" | \"bell\" | \"chat\" | \"check-circle\" | \"cross-circle\" | \"error-circle\" | \"info-circle\" | \"phone\" | \"question-circle\" | \"headset\" | \"warning\" | \"attachment\" | \"description\" | \"document\" | \"folder\" | \"pdf\" | \"xls\" | \"bank\" | \"bread\" | \"cake\" | \"calculator\" | \"camera\" | \"car\" | \"certified\" | \"chair\" | \"checkmark\" | \"city\" | \"companies\" | \"company\" | \"credit-card\" | \"cutlery\" | \"department\" | \"diamond\" | \"docter\" | \"download\" | \"envelope\" | \"euro\" | \"exam\" | \"filter\" | \"flower\" | \"globe\" | \"globe-2\" | \"hash\" | \"hat\" | \"home\" | \"integration\" | \"language\" | \"laptop\" | \"location\" | \"mail\" | \"medal\" | \"menu\" | \"menu-arrow\" | \"minus\" | \"more\" | \"negative\" | \"other\" | \"pay\" | \"pencil\" | \"percent\" | \"pie-chart\" | \"placeholder\" | \"plus\" | \"power\" | \"receipt\" | \"reset\" | \"search\" | \"send\" | \"settings\" | \"shuffle\" | \"sick\" | \"signature\" | \"sparkle\" | \"star\" | \"stroller\" | \"tag\" | \"tasks\" | \"tools\" | \"tooth\" | \"train\" | \"trash\" | \"upload\" | \"wave\" | \"zipcode\" | \"eye\" | \"eye-closed\" | \"key\" | \"lock\" | \"unlocked\" | \"alarm\" | \"calendar\" | \"calendar-multi\" | \"calendar-free\" | \"calendar-not-free\" | \"clock\" | \"female\" | \"id\" | \"id-two\" | \"male\" | \"user\" | \"users\" | \"checkmarkThick\"",
|
|
585
585
|
"references": {
|
|
586
586
|
"IconVariant": {
|
|
587
587
|
"location": "import",
|
|
@@ -11,7 +11,7 @@ export class ButtonGroup {
|
|
|
11
11
|
this._checkButtons();
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '0647722609a39d03bb20c84b52a9ddd35d96f582', class: 'p-button-group flex items-center' }, h("slot", { key: 'b29b73fc742655442576b7f85d0de2ec37af8c1d' })));
|
|
15
15
|
}
|
|
16
16
|
slotchange() {
|
|
17
17
|
this._checkButtons();
|
|
@@ -135,7 +135,7 @@ export class Calendar {
|
|
|
135
135
|
.filter(date => isValid(date));
|
|
136
136
|
}
|
|
137
137
|
render() {
|
|
138
|
-
return (h(Host, { key: '
|
|
138
|
+
return (h(Host, { key: 'fe8fe4bdd71db351a46b4ee502a5b99d5cc9998b', class: calendar({ variant: this.variant }) }, this._getView()));
|
|
139
139
|
}
|
|
140
140
|
_getView() {
|
|
141
141
|
if (this._view === 'year') {
|
|
@@ -39,9 +39,9 @@ export class ContentSlider {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '8eb11bf3cc0a423f409e4be422bc6317da9781d3', class: "p-content-slider" }, h("div", { key: 'f8f2b83337877d30e99288c5dfe39fdd3c0d4836', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
|
|
43
43
|
height: `${this._outerHeight}px`,
|
|
44
|
-
}, ref: (el) => (this._sliderRef = el), onMouseDown: (e) => this._mouseDownHandler(e), onTouchStart: (e) => this._mouseDownHandler(e), onMouseMove: (e) => this._mouseMoveHandler(e), onTouchMove: (e) => this._mouseMoveHandler(e) }, h("div", { key: '
|
|
44
|
+
}, ref: (el) => (this._sliderRef = el), onMouseDown: (e) => this._mouseDownHandler(e), onTouchStart: (e) => this._mouseDownHandler(e), onMouseMove: (e) => this._mouseMoveHandler(e), onTouchMove: (e) => this._mouseMoveHandler(e) }, h("div", { key: 'a59469a94a13cca80542a65bed22c404b99b3ecb', class: "inner-slider", ref: (ref) => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: '5e00f801555b5df3b9246854d59ed1876286ebe5' }))), h("div", { key: '01cf555792aca6f36bec72acf123b0e398901cd6', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._items.map((_, i) => (h("div", { onClick: () => this._scrollTo(i, true), class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}` }, h("p-slider-indicator", { active: i === this._visibleIndex })))))));
|
|
45
45
|
}
|
|
46
46
|
_mouseDownHandler(e) {
|
|
47
47
|
if (this.disableDrag || this._dragging) {
|
|
@@ -34,10 +34,10 @@ export class Cropper {
|
|
|
34
34
|
}, 200);
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: 'c7ca3f48d21b7925b17f42ef5efeb66ceb814884', class: 'p-cropper' }, this._loaded && (h("cropper-canvas", { key: 'adf2a4302c2c7170924c5b433b8841964360f3ea', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white', onAction: () => this._onAction() }, h("cropper-image", { key: 'd74a8a67b80699f6ffc16bb69ff55728bada0528', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: '6a5b34376058b7e086e3061c5473da98f7ef64e9', class: clsx({
|
|
38
38
|
'rounded-round': this.variant === 'user',
|
|
39
39
|
rounded: this.variant === 'company',
|
|
40
|
-
}), "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: '
|
|
40
|
+
}), "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: '0f9d377be79c0077dfa219f129cc063d9ab50356', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: 'a58b78d26eb5ef59af523d9a656b96353d35011d', action: 'move', plain: true }))), h("div", { key: 'b3875252e85fa6c03f3b37b506a2671d08716046', class: 'flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1' }, h("p-icon", { key: 'ee09baf9f32e2740e7edab92b52a36c7d1ea34a3', variant: 'minus' }), h("input", { key: 'f02aeb58fec43835d116750c919bc320d5c55bbf', class: 'p-input w-full', type: 'range', min: '0', max: '100', value: this._currentScale, onInput: ev => this._onInput(ev.target.value), step: '0.5' }), h("p-icon", { key: '653559c8eaeaa0ae0a677d1c3756b1439e45fcd9', variant: 'plus' }))));
|
|
41
41
|
}
|
|
42
42
|
_setImageRef(ref) {
|
|
43
43
|
if (this._imageRef) {
|
|
@@ -116,9 +116,9 @@ export class Datepicker {
|
|
|
116
116
|
this.parseValue(this.value);
|
|
117
117
|
}
|
|
118
118
|
render() {
|
|
119
|
-
return (h(Host, { key: '
|
|
119
|
+
return (h(Host, { key: '53cefbcd435b31a304c14bcdf254981992f0300a', class: 'p-datepicker' }, h("p-dropdown", { key: 'd76542b017edc53f22a438d5258d7af31f58554a', strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: '610e312ff7b0cfe15b9181e10cb4e6e1eedb0020', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, disabled: this.disabled, focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '13223eded6fa5a099413ce69c12b2a5e6bc18b76', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself
|
|
120
120
|
,
|
|
121
|
-
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), h("div", { key: '
|
|
121
|
+
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), h("div", { key: 'e9e200360461dc61f401c4bea89714a70964b6a5', slot: 'items' }, h("p-calendar", { key: '47460a7acb1369d29b325bb92f9d464f2504905e', variant: 'embedded', value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, mode: this.mode })))));
|
|
122
122
|
}
|
|
123
123
|
documentClickHandler({ target }) {
|
|
124
124
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*{box-sizing:border-box}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.z-dropdown{z-index:200!important}.
|
|
1
|
+
*{box-sizing:border-box}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.z-dropdown{z-index:200!important}.block{display:block!important}.hidden{display:none!important}
|
|
@@ -12,6 +12,7 @@ const dropdownContainerClass = cva(['z-dropdown hidden'], {
|
|
|
12
12
|
});
|
|
13
13
|
export class Dropdown {
|
|
14
14
|
constructor() {
|
|
15
|
+
this.variant = 'default';
|
|
15
16
|
this.placement = 'bottom-start';
|
|
16
17
|
this.offset = 8;
|
|
17
18
|
this.strategy = 'absolute';
|
|
@@ -55,6 +56,7 @@ export class Dropdown {
|
|
|
55
56
|
}
|
|
56
57
|
componentDidRender() {
|
|
57
58
|
this._checkButtons();
|
|
59
|
+
this._checkItems();
|
|
58
60
|
}
|
|
59
61
|
render() {
|
|
60
62
|
const dropdownContainerProps = {
|
|
@@ -69,12 +71,12 @@ export class Dropdown {
|
|
|
69
71
|
};
|
|
70
72
|
let dropdownContainer;
|
|
71
73
|
if (this.usePortal) {
|
|
72
|
-
dropdownContainer = (h("p-portal", { key: '
|
|
74
|
+
dropdownContainer = (h("p-portal", { key: '2ef190e2cd48e5bb2c11ebb14dee78a2f00a10e9', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: '32a25346708daf087c4f63c3f3f8d68e2a3320f9', variant: this.variant, maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, h("slot", { key: '165b0919ff2cae9b8f040d972b7fcae245341568', name: 'items' }))));
|
|
73
75
|
}
|
|
74
76
|
else {
|
|
75
|
-
dropdownContainer = (h("p-dropdown-menu-container", { key: '
|
|
77
|
+
dropdownContainer = (h("p-dropdown-menu-container", { key: '06169533cac303c1ad14f3eedd084120d0bc285d', variant: this.variant, maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, h("slot", { key: 'f5e194cb30b783e4eacab149508adff0ed3a298e', name: 'items' })));
|
|
76
78
|
}
|
|
77
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: 'a0a1de42bd08376b659cff117b25c43f417fd36e', class: 'p-dropdown relative' }, h("div", { key: 'ed7e4461a36af81c2e3928c9f8b243444782c793', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: '26dd3a15c60b860c3cfe7dbac3c09976b62242c0', name: 'trigger' })), dropdownContainer));
|
|
78
80
|
}
|
|
79
81
|
_checkButtons(active = false) {
|
|
80
82
|
if (!this.applyChevron) {
|
|
@@ -92,6 +94,12 @@ export class Dropdown {
|
|
|
92
94
|
button.active = active;
|
|
93
95
|
}
|
|
94
96
|
}
|
|
97
|
+
_checkItems() {
|
|
98
|
+
const items = this._el.querySelectorAll('p-dropdown-menu-item');
|
|
99
|
+
for (let item of [...items]) {
|
|
100
|
+
item.variant = this.variant;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
95
103
|
onShowChange(show) {
|
|
96
104
|
if (!this._loaded) {
|
|
97
105
|
return;
|
|
@@ -147,7 +155,7 @@ export class Dropdown {
|
|
|
147
155
|
this._cleanup = autoUpdate(this._el, this._menu, () => this._update());
|
|
148
156
|
this._menu.setAttribute('data-show', '');
|
|
149
157
|
this._menu.classList.remove('hidden');
|
|
150
|
-
this._menu.classList.add('
|
|
158
|
+
this._menu.classList.add('block');
|
|
151
159
|
this.isOpen.emit(true);
|
|
152
160
|
this._checkButtons(true);
|
|
153
161
|
}
|
|
@@ -161,7 +169,7 @@ export class Dropdown {
|
|
|
161
169
|
}
|
|
162
170
|
// Hide the popover
|
|
163
171
|
this._menu.removeAttribute('data-show');
|
|
164
|
-
this._menu.classList.remove('
|
|
172
|
+
this._menu.classList.remove('block');
|
|
165
173
|
this._menu.classList.add('hidden');
|
|
166
174
|
this.isOpen.emit(false);
|
|
167
175
|
this._checkButtons(false);
|
|
@@ -195,6 +203,26 @@ export class Dropdown {
|
|
|
195
203
|
}
|
|
196
204
|
static get properties() {
|
|
197
205
|
return {
|
|
206
|
+
"variant": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"mutable": false,
|
|
209
|
+
"complexType": {
|
|
210
|
+
"original": "'default' | 'dark-teal'",
|
|
211
|
+
"resolved": "\"dark-teal\" | \"default\"",
|
|
212
|
+
"references": {}
|
|
213
|
+
},
|
|
214
|
+
"required": false,
|
|
215
|
+
"optional": false,
|
|
216
|
+
"docs": {
|
|
217
|
+
"tags": [],
|
|
218
|
+
"text": "The variant of the dropdown"
|
|
219
|
+
},
|
|
220
|
+
"getter": false,
|
|
221
|
+
"setter": false,
|
|
222
|
+
"attribute": "variant",
|
|
223
|
+
"reflect": false,
|
|
224
|
+
"defaultValue": "'default'"
|
|
225
|
+
},
|
|
198
226
|
"placement": {
|
|
199
227
|
"type": "string",
|
|
200
228
|
"mutable": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/dropdown/dropdown.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,eAAe,EACf,IAAI,EACJ,MAAM,EAEN,KAAK,GAEL,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,sBAAsB,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;IACzD,QAAQ,EAAE;QACT,QAAQ,EAAE;YACT,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACd;KACD;CACD,CAAC,CAAC;AAMH,MAAM,OAAO,QAAQ;;yBAI4B,cAAc;sBAKrC,CAAC;wBAKG,UAAU;oBAKf,KAAK;yBAKA,KAAK;8BAKA,KAAK;6BAKN,IAAI;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { childOf } from '../../../utils/child-of';\n\nconst dropdownContainerClass = cva(['z-dropdown hidden'], {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tabsolute: 'absolute',\n\t\t\tfixed: 'fixed',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-dropdown',\n\tstyleUrl: 'dropdown.component.css',\n})\nexport class Dropdown {\n\t/**\n\t * The content of the dropdown menu\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The offset of the dropdown menu\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether to show the dropdown menu\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to use a portal for the dropdown container\n\t */\n\t@Prop() usePortal: boolean = false;\n\n\t/**\n\t * Wether to automatically calculate the width of the menu based on the trigger\n\t */\n\t@Prop() calculateWidth: boolean = false;\n\n\t/**\n\t * Wether to apply the max width\n\t */\n\t@Prop() applyMaxWidth: boolean = true;\n\n\t/**\n\t * Wether to apply the full width\n\t */\n\t@Prop() applyFullWidth: boolean = true;\n\n\t/**\n\t * Wether to allow overflow in the container\n\t */\n\t@Prop() allowOverflow: boolean = false;\n\n\t/**\n\t * Wether the dropdown container should be scrollable when the threshold is met.\n\t */\n\t@Prop() scrollable: boolean | 'default' | 'large' = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() insideClick: boolean = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() disableTriggerClick: boolean = false;\n\n\t/**\n\t * Wether to apply chevron automatically\n\t */\n\t@Prop() applyChevron: boolean = true;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Chevron direction\n\t */\n\t@Prop() chevronDirection: 'up' | 'down';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\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\tprivate _loaded = false;\n\tprivate _trigger: HTMLElement;\n\tprivate _menu: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._checkButtons();\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\n\t\tthis._menu.remove();\n\t}\n\n\tcomponentDidRender() {\n\t\tthis._checkButtons();\n\t}\n\n\trender() {\n\t\tconst dropdownContainerProps = {\n\t\t\tclass: dropdownContainerClass({\n\t\t\t\tstrategy: this.strategy,\n\t\t\t}),\n\t\t\tref: el => this._load(el),\n\t\t\tonClick: () => this._containerClickHandler(),\n\t\t\trole: 'popover',\n\t\t\t'data-placement': this.placement,\n\t\t\t'data-strategy': this.strategy,\n\t\t};\n\n\t\tlet dropdownContainer: HTMLElement;\n\n\t\tif (this.usePortal) {\n\t\t\tdropdownContainer = (\n\t\t\t\t<p-portal {...dropdownContainerProps}>\n\t\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name='items' />\n\t\t\t\t\t</p-dropdown-menu-container>\n\t\t\t\t</p-portal>\n\t\t\t);\n\t\t} else {\n\t\t\tdropdownContainer = (\n\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t\t{...dropdownContainerProps}\n\t\t\t\t>\n\t\t\t\t\t<slot name='items' />\n\t\t\t\t</p-dropdown-menu-container>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-dropdown relative'>\n\t\t\t\t<div\n\t\t\t\t\tclass='trigger'\n\t\t\t\t\tref={ref => (this._trigger = ref)}\n\t\t\t\t\tonClick={() => this._triggerClickHandler()}\n\t\t\t\t>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t</div>\n\t\t\t\t{dropdownContainer}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _checkButtons(active: boolean = false) {\n\t\tif (!this.applyChevron) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst buttons = this._el.querySelectorAll<HTMLPButtonElement>(\n\t\t\t'p-button[slot=\"trigger\"]'\n\t\t);\n\n\t\tfor (let button of [...buttons]) {\n\t\t\tbutton.chevronPosition = this.chevronPosition;\n\t\t\tbutton.chevron = this.chevronDirection\n\t\t\t\t? this.chevronDirection\n\t\t\t\t: this.placement.indexOf('top') >= 0\n\t\t\t\t? 'up'\n\t\t\t\t: 'down';\n\t\t\tbutton.disabled = this.disableTriggerClick;\n\t\t\tbutton.active = active;\n\t\t}\n\t}\n\n\t@Watch('show')\n\tprotected onShowChange(show) {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!show) {\n\t\t\tthis._hide();\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({ target }) {\n\t\tif (!this._menu.hasAttribute('data-show') || childOf(target, this._menu)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\tprivate _containerClickHandler() {\n\t\tif (this.insideClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t}\n\t}\n\n\tprivate _triggerClickHandler() {\n\t\tif (this.disableTriggerClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._menu = popover;\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 _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make the popover visible\n\t\tif (this.calculateWidth) {\n\t\t\tthis._menu.style.width = `${this._trigger.clientWidth}px`;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._menu, () => this._update());\n\n\t\tthis._menu.setAttribute('data-show', '');\n\t\tthis._menu.classList.remove('hidden');\n\t\tthis._menu.classList.add('flex');\n\n\t\tthis.isOpen.emit(true);\n\t\tthis._checkButtons(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded || this.show) {\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._menu.removeAttribute('data-show');\n\t\tthis._menu.classList.remove('flex');\n\t\tthis._menu.classList.add('hidden');\n\n\t\tthis.isOpen.emit(false);\n\t\tthis._checkButtons(false);\n\t}\n\n\tprivate _update() {\n\t\tif (!this._menu) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._menu, {\n\t\t\tplacement: this.placement,\n\t\t\tstrategy: this.strategy,\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._menu.dataset.placement = placement;\n\t\t\tObject.assign(this._menu.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"]}
|
|
1
|
+
{"version":3,"file":"dropdown.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/dropdown/dropdown.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,eAAe,EACf,IAAI,EACJ,MAAM,EAEN,KAAK,GAEL,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,sBAAsB,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;IACzD,QAAQ,EAAE;QACT,QAAQ,EAAE;YACT,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACd;KACD;CACD,CAAC,CAAC;AAMH,MAAM,OAAO,QAAQ;;uBAIuB,SAAS;yBAKJ,cAAc;sBAKrC,CAAC;wBAKG,U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,KAAK,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;YACzC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;gBAC/B,GAAG,EAAE,GAAG,CAAC,IAAI;gBACb,IAAI,EAAE,GAAG,CAAC,IAAI;aACd,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { childOf } from '../../../utils/child-of';\n\nconst dropdownContainerClass = cva(['z-dropdown hidden'], {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tabsolute: 'absolute',\n\t\t\tfixed: 'fixed',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-dropdown',\n\tstyleUrl: 'dropdown.component.css',\n})\nexport class Dropdown {\n\t/**\n\t * The variant of the dropdown\n\t */\n\t@Prop() variant: 'default' | 'dark-teal' = 'default';\n\n\t/**\n\t * The content of the dropdown menu\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The offset of the dropdown menu\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether to show the dropdown menu\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to use a portal for the dropdown container\n\t */\n\t@Prop() usePortal: boolean = false;\n\n\t/**\n\t * Wether to automatically calculate the width of the menu based on the trigger\n\t */\n\t@Prop() calculateWidth: boolean = false;\n\n\t/**\n\t * Wether to apply the max width\n\t */\n\t@Prop() applyMaxWidth: boolean = true;\n\n\t/**\n\t * Wether to apply the full width\n\t */\n\t@Prop() applyFullWidth: boolean = true;\n\n\t/**\n\t * Wether to allow overflow in the container\n\t */\n\t@Prop() allowOverflow: boolean = false;\n\n\t/**\n\t * Wether the dropdown container should be scrollable when the threshold is met.\n\t */\n\t@Prop() scrollable: boolean | 'default' | 'large' = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() insideClick: boolean = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() disableTriggerClick: boolean = false;\n\n\t/**\n\t * Wether to apply chevron automatically\n\t */\n\t@Prop() applyChevron: boolean = true;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Chevron direction\n\t */\n\t@Prop() chevronDirection: 'up' | 'down';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\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\tprivate _loaded = false;\n\tprivate _trigger: HTMLElement;\n\tprivate _menu: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._checkButtons();\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\n\t\tthis._menu.remove();\n\t}\n\n\tcomponentDidRender() {\n\t\tthis._checkButtons();\n\t\tthis._checkItems();\n\t}\n\n\trender() {\n\t\tconst dropdownContainerProps = {\n\t\t\tclass: dropdownContainerClass({\n\t\t\t\tstrategy: this.strategy,\n\t\t\t}),\n\t\t\tref: el => this._load(el),\n\t\t\tonClick: () => this._containerClickHandler(),\n\t\t\trole: 'popover',\n\t\t\t'data-placement': this.placement,\n\t\t\t'data-strategy': this.strategy,\n\t\t};\n\n\t\tlet dropdownContainer: HTMLElement;\n\n\t\tif (this.usePortal) {\n\t\t\tdropdownContainer = (\n\t\t\t\t<p-portal {...dropdownContainerProps}>\n\t\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name='items' />\n\t\t\t\t\t</p-dropdown-menu-container>\n\t\t\t\t</p-portal>\n\t\t\t);\n\t\t} else {\n\t\t\tdropdownContainer = (\n\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t\t{...dropdownContainerProps}\n\t\t\t\t>\n\t\t\t\t\t<slot name='items' />\n\t\t\t\t</p-dropdown-menu-container>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-dropdown relative'>\n\t\t\t\t<div\n\t\t\t\t\tclass='trigger'\n\t\t\t\t\tref={ref => (this._trigger = ref)}\n\t\t\t\t\tonClick={() => this._triggerClickHandler()}\n\t\t\t\t>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t</div>\n\t\t\t\t{dropdownContainer}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _checkButtons(active: boolean = false) {\n\t\tif (!this.applyChevron) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst buttons = this._el.querySelectorAll<HTMLPButtonElement>(\n\t\t\t'p-button[slot=\"trigger\"]'\n\t\t);\n\n\t\tfor (let button of [...buttons]) {\n\t\t\tbutton.chevronPosition = this.chevronPosition;\n\t\t\tbutton.chevron = this.chevronDirection\n\t\t\t\t? this.chevronDirection\n\t\t\t\t: this.placement.indexOf('top') >= 0\n\t\t\t\t? 'up'\n\t\t\t\t: 'down';\n\t\t\tbutton.disabled = this.disableTriggerClick;\n\t\t\tbutton.active = active;\n\t\t}\n\t}\n\n\tprivate _checkItems() {\n\t\tconst items = this._el.querySelectorAll<HTMLPDropdownMenuItemElement>(\n\t\t\t'p-dropdown-menu-item'\n\t\t);\n\n\t\tfor (let item of [...items]) {\n\t\t\titem.variant = this.variant;\n\t\t}\n\t}\n\n\t@Watch('show')\n\tprotected onShowChange(show) {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!show) {\n\t\t\tthis._hide();\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({ target }) {\n\t\tif (!this._menu.hasAttribute('data-show') || childOf(target, this._menu)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\tprivate _containerClickHandler() {\n\t\tif (this.insideClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t}\n\t}\n\n\tprivate _triggerClickHandler() {\n\t\tif (this.disableTriggerClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._menu = popover;\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 _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make the popover visible\n\t\tif (this.calculateWidth) {\n\t\t\tthis._menu.style.width = `${this._trigger.clientWidth}px`;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._menu, () => this._update());\n\n\t\tthis._menu.setAttribute('data-show', '');\n\t\tthis._menu.classList.remove('hidden');\n\t\tthis._menu.classList.add('block');\n\n\t\tthis.isOpen.emit(true);\n\t\tthis._checkButtons(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded || this.show) {\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._menu.removeAttribute('data-show');\n\t\tthis._menu.classList.remove('block');\n\t\tthis._menu.classList.add('hidden');\n\n\t\tthis.isOpen.emit(false);\n\t\tthis._checkButtons(false);\n\t}\n\n\tprivate _update() {\n\t\tif (!this._menu) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._menu, {\n\t\t\tplacement: this.placement,\n\t\t\tstrategy: this.strategy,\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._menu.dataset.placement = placement;\n\t\t\tObject.assign(this._menu.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"]}
|