@paperless/core 2.0.1-beta.36 → 2.0.1-beta.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +109 -0
- package/dist/assets/icons/duplicate.svg +9 -0
- package/dist/build/{p-f1a6c8ff.entry.js → p-025624f6.entry.js} +2 -2
- package/dist/{paperless/p-657c6b98.entry.js → build/p-0dc44bc0.entry.js} +2 -2
- package/dist/build/{p-4553a1af.entry.js → p-12262429.entry.js} +2 -2
- package/dist/build/p-17d2ac87.entry.js +2 -0
- package/dist/build/p-17d2ac87.entry.js.map +1 -0
- package/dist/build/{p-11fbeb45.entry.js → p-184afd44.entry.js} +2 -2
- package/dist/build/p-1d336c69.entry.js +2 -0
- package/dist/build/p-2236add8.entry.js +2 -0
- package/dist/build/p-2236add8.entry.js.map +1 -0
- package/dist/build/{p-f63feca1.entry.js → p-2e482a47.entry.js} +2 -2
- package/dist/build/p-387ddb95.entry.js +2 -0
- package/dist/build/p-3b42a234.entry.js +2 -0
- package/dist/build/p-3b42a234.entry.js.map +1 -0
- package/dist/{paperless/p-f4cdabb7.entry.js → build/p-3cde5f71.entry.js} +2 -2
- package/dist/build/p-462a2f03.entry.js +2 -0
- package/dist/{paperless/p-5e139fea.entry.js.map → build/p-462a2f03.entry.js.map} +1 -1
- package/dist/{paperless/p-90ad3605.entry.js → build/p-485ae49a.entry.js} +2 -2
- package/dist/{paperless/p-4364738a.entry.js → build/p-55b58b85.entry.js} +2 -2
- package/dist/build/p-5d2d92ec.js +2 -0
- package/dist/build/{p-f2f904e6.entry.js → p-5eda67b1.entry.js} +2 -2
- package/dist/{paperless/p-d70fcbe8.entry.js → build/p-6cd52774.entry.js} +2 -2
- package/dist/{paperless/p-549b2931.entry.js → build/p-6ec48ec6.entry.js} +2 -2
- package/dist/build/{p-333f614e.entry.js → p-76e05fbf.entry.js} +2 -2
- package/dist/{paperless/p-b3b50ed2.entry.js → build/p-7df156a4.entry.js} +2 -2
- package/dist/build/{p-c55ee8d6.entry.js → p-80bdc264.entry.js} +2 -2
- package/dist/build/p-836ece67.entry.js +2 -0
- package/dist/build/p-836ece67.entry.js.map +1 -0
- package/dist/build/{p-a42897e9.entry.js → p-8b1f5d30.entry.js} +2 -2
- package/dist/build/{p-f9ffc928.entry.js → p-8bfd2e4c.entry.js} +2 -2
- package/dist/{paperless/p-d48ef748.entry.js → build/p-8f235c34.entry.js} +2 -2
- package/dist/{paperless/p-7ad7c0d1.entry.js → build/p-916af5c4.entry.js} +2 -2
- package/dist/{paperless/p-27fd3386.entry.js → build/p-a0337437.entry.js} +2 -2
- package/dist/build/{p-6db4ca89.entry.js → p-b040b0ef.entry.js} +2 -2
- package/dist/build/{p-7a83597a.entry.js → p-ccd419a0.entry.js} +2 -2
- package/dist/{paperless/p-93198497.entry.js → build/p-d9d5bc98.entry.js} +2 -2
- package/dist/build/{p-eee199d1.entry.js → p-e1703baf.entry.js} +2 -2
- package/dist/build/p-ef2983f6.entry.js +2 -0
- package/dist/build/p-ef2983f6.entry.js.map +1 -0
- package/dist/{paperless/p-8c8128f9.entry.js → build/p-f667ab81.entry.js} +2 -2
- package/dist/build/{p-290d04b0.entry.js → p-fa27b5a7.entry.js} +2 -2
- package/dist/build/{p-58e6f012.entry.js → p-fb384da3.entry.js} +2 -2
- package/dist/build/p-ff6356cb.entry.js +2 -0
- package/dist/build/p-ff6356cb.entry.js.map +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +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-backdrop.cjs.entry.js +8 -9
- package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -1
- package/dist/cjs/p-badge_3.cjs.entry.js +14 -6
- package/dist/cjs/p-badge_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +4 -4
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox_2.cjs.entry.js +19 -14
- package/dist/cjs/p-checkbox_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-cropper.cjs.entry.js +2 -2
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js +2 -2
- package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js.map +1 -1
- package/dist/cjs/p-field_2.cjs.entry.js +3 -3
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +5 -5
- package/dist/cjs/p-helper_2.cjs.entry.js +4 -4
- 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-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination.cjs.entry.js +3 -3
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +6 -15
- package/dist/cjs/p-radio.cjs.entry.js.map +1 -1
- 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-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +8 -43
- package/dist/cjs/p-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/assets/icons/duplicate.svg +9 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -1
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +7 -8
- package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -1
- package/dist/collection/components/atoms/checkbox/checkbox.component.css +1 -1
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +15 -30
- package/dist/collection/components/atoms/checkbox/checkbox.component.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/radio/radio.component.css +1 -1
- package/dist/collection/components/atoms/radio/radio.component.js +5 -34
- package/dist/collection/components/atoms/radio/radio.component.js.map +1 -1
- package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -1
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -1
- package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -1
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +31 -3
- package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -1
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +1 -1
- package/dist/collection/components/atoms/status/status.component.js +2 -2
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +1 -1
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +1 -1
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +1 -1
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +1 -1
- package/dist/collection/components/atoms/table-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.css +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.js +7 -62
- package/dist/collection/components/atoms/toggle/toggle.component.js.map +1 -1
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +4 -4
- package/dist/collection/components/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 +4 -4
- 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.js +3 -3
- package/dist/collection/components/molecules/field/field.component.js +3 -3
- package/dist/collection/components/molecules/input-error/input-error.component.js +1 -1
- package/dist/collection/components/molecules/input-group/input-group.component.js +3 -3
- package/dist/collection/components/molecules/label/label.component.js +3 -3
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +2 -2
- package/dist/collection/components/molecules/navigation-section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.js +3 -3
- package/dist/collection/components/molecules/pagination-pages/pagination-pages.component.js +1 -1
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/select/select.component.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/molecules/table-row/table-row.component.js +2 -2
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/components/backdrop.component.js +8 -9
- package/dist/components/backdrop.component.js.map +1 -1
- package/dist/components/button.component.js +4 -4
- package/dist/components/calendar.component.js +1 -1
- package/dist/components/checkbox.component.js +16 -12
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/dropdown-menu-item.component.js +1 -1
- package/dist/components/dropdown-menu-item.component.js.map +1 -1
- package/dist/components/dropdown.component.js +3 -3
- package/dist/components/field.component.js +3 -3
- package/dist/components/input-error.component.js +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +4 -4
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-content-slider.js +2 -2
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +2 -2
- package/dist/components/p-input-group.js +3 -3
- package/dist/components/p-label.js +3 -3
- 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.js +3 -3
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-radio.js +6 -16
- package/dist/components/p-radio.js.map +1 -1
- 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-toast-container.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +8 -44
- package/dist/components/p-toggle.js.map +1 -1
- package/dist/components/pagination-pages.component.js +1 -1
- package/dist/components/segment-container.component.js +2 -2
- package/dist/components/segment-container.component.js.map +1 -1
- package/dist/components/segment-item.component.js +13 -4
- package/dist/components/segment-item.component.js.map +1 -1
- 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 +1 -1
- package/dist/components/table-row.component.js +2 -2
- package/dist/components/tooltip.component.js +4 -4
- 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-backdrop.entry.js +8 -9
- package/dist/esm/p-backdrop.entry.js.map +1 -1
- package/dist/esm/p-badge_3.entry.js +14 -6
- package/dist/esm/p-badge_3.entry.js.map +1 -1
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +4 -4
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-checkbox_2.entry.js +19 -14
- package/dist/esm/p-checkbox_2.entry.js.map +1 -1
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-cropper.entry.js +2 -2
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-dropdown-menu-item_4.entry.js +2 -2
- package/dist/esm/p-dropdown-menu-item_4.entry.js.map +1 -1
- package/dist/esm/p-field_2.entry.js +3 -3
- package/dist/esm/p-floating-menu-container_8.entry.js +5 -5
- package/dist/esm/p-helper_2.entry.js +4 -4
- 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-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +2 -2
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-pagination.entry.js +3 -3
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +6 -15
- package/dist/esm/p-radio.entry.js.map +1 -1
- 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-toast-container.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +8 -43
- package/dist/esm/p-toggle.entry.js.map +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/{p-f1a6c8ff.entry.js → p-025624f6.entry.js} +2 -2
- package/dist/{build/p-657c6b98.entry.js → paperless/p-0dc44bc0.entry.js} +2 -2
- package/dist/paperless/{p-4553a1af.entry.js → p-12262429.entry.js} +2 -2
- package/dist/paperless/p-17d2ac87.entry.js +2 -0
- package/dist/paperless/p-17d2ac87.entry.js.map +1 -0
- package/dist/paperless/{p-11fbeb45.entry.js → p-184afd44.entry.js} +2 -2
- package/dist/paperless/p-1d336c69.entry.js +2 -0
- package/dist/paperless/p-2236add8.entry.js +2 -0
- package/dist/paperless/p-2236add8.entry.js.map +1 -0
- package/dist/paperless/{p-f63feca1.entry.js → p-2e482a47.entry.js} +2 -2
- package/dist/paperless/p-387ddb95.entry.js +2 -0
- package/dist/paperless/p-3b42a234.entry.js +2 -0
- package/dist/paperless/p-3b42a234.entry.js.map +1 -0
- package/dist/{build/p-f4cdabb7.entry.js → paperless/p-3cde5f71.entry.js} +2 -2
- package/dist/paperless/p-462a2f03.entry.js +2 -0
- package/dist/{build/p-5e139fea.entry.js.map → paperless/p-462a2f03.entry.js.map} +1 -1
- package/dist/{build/p-90ad3605.entry.js → paperless/p-485ae49a.entry.js} +2 -2
- package/dist/{build/p-4364738a.entry.js → paperless/p-55b58b85.entry.js} +2 -2
- package/dist/paperless/{p-f2f904e6.entry.js → p-5eda67b1.entry.js} +2 -2
- package/dist/{build/p-d70fcbe8.entry.js → paperless/p-6cd52774.entry.js} +2 -2
- package/dist/{build/p-549b2931.entry.js → paperless/p-6ec48ec6.entry.js} +2 -2
- package/dist/paperless/{p-333f614e.entry.js → p-76e05fbf.entry.js} +2 -2
- package/dist/{build/p-b3b50ed2.entry.js → paperless/p-7df156a4.entry.js} +2 -2
- package/dist/paperless/{p-c55ee8d6.entry.js → p-80bdc264.entry.js} +2 -2
- package/dist/paperless/p-836ece67.entry.js +2 -0
- package/dist/paperless/p-836ece67.entry.js.map +1 -0
- package/dist/paperless/{p-a42897e9.entry.js → p-8b1f5d30.entry.js} +2 -2
- package/dist/paperless/{p-f9ffc928.entry.js → p-8bfd2e4c.entry.js} +2 -2
- package/dist/{build/p-d48ef748.entry.js → paperless/p-8f235c34.entry.js} +2 -2
- package/dist/{build/p-7ad7c0d1.entry.js → paperless/p-916af5c4.entry.js} +2 -2
- package/dist/{build/p-27fd3386.entry.js → paperless/p-a0337437.entry.js} +2 -2
- package/dist/paperless/{p-6db4ca89.entry.js → p-b040b0ef.entry.js} +2 -2
- package/dist/paperless/{p-7a83597a.entry.js → p-ccd419a0.entry.js} +2 -2
- package/dist/{build/p-93198497.entry.js → paperless/p-d9d5bc98.entry.js} +2 -2
- package/dist/paperless/{p-eee199d1.entry.js → p-e1703baf.entry.js} +2 -2
- package/dist/paperless/p-ef2983f6.entry.js +2 -0
- package/dist/paperless/p-ef2983f6.entry.js.map +1 -0
- package/dist/{build/p-8c8128f9.entry.js → paperless/p-f667ab81.entry.js} +2 -2
- package/dist/paperless/{p-290d04b0.entry.js → p-fa27b5a7.entry.js} +2 -2
- package/dist/paperless/{p-58e6f012.entry.js → p-fb384da3.entry.js} +2 -2
- package/dist/paperless/p-ff6356cb.entry.js +2 -0
- package/dist/paperless/p-ff6356cb.entry.js.map +1 -0
- 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/checkbox/checkbox.component.d.ts +0 -4
- package/dist/types/components/atoms/radio/radio.component.d.ts +0 -4
- package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +4 -0
- package/dist/types/components/atoms/toggle/toggle.component.d.ts +0 -4
- package/dist/types/components.d.ts +8 -24
- package/hydrate/index.js +113 -147
- package/hydrate/index.mjs +113 -147
- package/package.json +1 -1
- package/dist/build/p-28dbbce6.entry.js +0 -2
- package/dist/build/p-3bd145fd.entry.js +0 -2
- package/dist/build/p-3bd145fd.entry.js.map +0 -1
- package/dist/build/p-4443e4e5.entry.js +0 -2
- package/dist/build/p-4443e4e5.entry.js.map +0 -1
- package/dist/build/p-489013c7.entry.js +0 -2
- package/dist/build/p-489013c7.entry.js.map +0 -1
- package/dist/build/p-59962e55.entry.js +0 -2
- package/dist/build/p-5e139fea.entry.js +0 -2
- package/dist/build/p-75d49d43.js +0 -2
- package/dist/build/p-8857d619.entry.js +0 -2
- package/dist/build/p-8857d619.entry.js.map +0 -1
- package/dist/build/p-99352ae4.entry.js +0 -2
- package/dist/build/p-99352ae4.entry.js.map +0 -1
- package/dist/build/p-d2ddf504.entry.js +0 -2
- package/dist/build/p-d2ddf504.entry.js.map +0 -1
- package/dist/paperless/p-28dbbce6.entry.js +0 -2
- package/dist/paperless/p-3bd145fd.entry.js +0 -2
- package/dist/paperless/p-3bd145fd.entry.js.map +0 -1
- package/dist/paperless/p-4443e4e5.entry.js +0 -2
- package/dist/paperless/p-4443e4e5.entry.js.map +0 -1
- package/dist/paperless/p-489013c7.entry.js +0 -2
- package/dist/paperless/p-489013c7.entry.js.map +0 -1
- package/dist/paperless/p-59962e55.entry.js +0 -2
- package/dist/paperless/p-5e139fea.entry.js +0 -2
- package/dist/paperless/p-8857d619.entry.js +0 -2
- package/dist/paperless/p-8857d619.entry.js.map +0 -1
- package/dist/paperless/p-99352ae4.entry.js +0 -2
- package/dist/paperless/p-99352ae4.entry.js.map +0 -1
- package/dist/paperless/p-d2ddf504.entry.js +0 -2
- package/dist/paperless/p-d2ddf504.entry.js.map +0 -1
- /package/dist/build/{p-f1a6c8ff.entry.js.map → p-025624f6.entry.js.map} +0 -0
- /package/dist/build/{p-657c6b98.entry.js.map → p-0dc44bc0.entry.js.map} +0 -0
- /package/dist/build/{p-4553a1af.entry.js.map → p-12262429.entry.js.map} +0 -0
- /package/dist/build/{p-11fbeb45.entry.js.map → p-184afd44.entry.js.map} +0 -0
- /package/dist/build/{p-59962e55.entry.js.map → p-1d336c69.entry.js.map} +0 -0
- /package/dist/build/{p-f63feca1.entry.js.map → p-2e482a47.entry.js.map} +0 -0
- /package/dist/build/{p-28dbbce6.entry.js.map → p-387ddb95.entry.js.map} +0 -0
- /package/dist/build/{p-f4cdabb7.entry.js.map → p-3cde5f71.entry.js.map} +0 -0
- /package/dist/build/{p-90ad3605.entry.js.map → p-485ae49a.entry.js.map} +0 -0
- /package/dist/build/{p-4364738a.entry.js.map → p-55b58b85.entry.js.map} +0 -0
- /package/dist/build/{p-f2f904e6.entry.js.map → p-5eda67b1.entry.js.map} +0 -0
- /package/dist/build/{p-d70fcbe8.entry.js.map → p-6cd52774.entry.js.map} +0 -0
- /package/dist/build/{p-549b2931.entry.js.map → p-6ec48ec6.entry.js.map} +0 -0
- /package/dist/build/{p-333f614e.entry.js.map → p-76e05fbf.entry.js.map} +0 -0
- /package/dist/build/{p-b3b50ed2.entry.js.map → p-7df156a4.entry.js.map} +0 -0
- /package/dist/build/{p-c55ee8d6.entry.js.map → p-80bdc264.entry.js.map} +0 -0
- /package/dist/build/{p-a42897e9.entry.js.map → p-8b1f5d30.entry.js.map} +0 -0
- /package/dist/build/{p-f9ffc928.entry.js.map → p-8bfd2e4c.entry.js.map} +0 -0
- /package/dist/build/{p-d48ef748.entry.js.map → p-8f235c34.entry.js.map} +0 -0
- /package/dist/build/{p-7ad7c0d1.entry.js.map → p-916af5c4.entry.js.map} +0 -0
- /package/dist/build/{p-27fd3386.entry.js.map → p-a0337437.entry.js.map} +0 -0
- /package/dist/build/{p-6db4ca89.entry.js.map → p-b040b0ef.entry.js.map} +0 -0
- /package/dist/build/{p-7a83597a.entry.js.map → p-ccd419a0.entry.js.map} +0 -0
- /package/dist/build/{p-93198497.entry.js.map → p-d9d5bc98.entry.js.map} +0 -0
- /package/dist/build/{p-eee199d1.entry.js.map → p-e1703baf.entry.js.map} +0 -0
- /package/dist/build/{p-8c8128f9.entry.js.map → p-f667ab81.entry.js.map} +0 -0
- /package/dist/build/{p-290d04b0.entry.js.map → p-fa27b5a7.entry.js.map} +0 -0
- /package/dist/build/{p-58e6f012.entry.js.map → p-fb384da3.entry.js.map} +0 -0
- /package/dist/paperless/{p-f1a6c8ff.entry.js.map → p-025624f6.entry.js.map} +0 -0
- /package/dist/paperless/{p-657c6b98.entry.js.map → p-0dc44bc0.entry.js.map} +0 -0
- /package/dist/paperless/{p-4553a1af.entry.js.map → p-12262429.entry.js.map} +0 -0
- /package/dist/paperless/{p-11fbeb45.entry.js.map → p-184afd44.entry.js.map} +0 -0
- /package/dist/paperless/{p-59962e55.entry.js.map → p-1d336c69.entry.js.map} +0 -0
- /package/dist/paperless/{p-f63feca1.entry.js.map → p-2e482a47.entry.js.map} +0 -0
- /package/dist/paperless/{p-28dbbce6.entry.js.map → p-387ddb95.entry.js.map} +0 -0
- /package/dist/paperless/{p-f4cdabb7.entry.js.map → p-3cde5f71.entry.js.map} +0 -0
- /package/dist/paperless/{p-90ad3605.entry.js.map → p-485ae49a.entry.js.map} +0 -0
- /package/dist/paperless/{p-4364738a.entry.js.map → p-55b58b85.entry.js.map} +0 -0
- /package/dist/paperless/{p-f2f904e6.entry.js.map → p-5eda67b1.entry.js.map} +0 -0
- /package/dist/paperless/{p-d70fcbe8.entry.js.map → p-6cd52774.entry.js.map} +0 -0
- /package/dist/paperless/{p-549b2931.entry.js.map → p-6ec48ec6.entry.js.map} +0 -0
- /package/dist/paperless/{p-333f614e.entry.js.map → p-76e05fbf.entry.js.map} +0 -0
- /package/dist/paperless/{p-b3b50ed2.entry.js.map → p-7df156a4.entry.js.map} +0 -0
- /package/dist/paperless/{p-c55ee8d6.entry.js.map → p-80bdc264.entry.js.map} +0 -0
- /package/dist/paperless/{p-a42897e9.entry.js.map → p-8b1f5d30.entry.js.map} +0 -0
- /package/dist/paperless/{p-f9ffc928.entry.js.map → p-8bfd2e4c.entry.js.map} +0 -0
- /package/dist/paperless/{p-d48ef748.entry.js.map → p-8f235c34.entry.js.map} +0 -0
- /package/dist/paperless/{p-7ad7c0d1.entry.js.map → p-916af5c4.entry.js.map} +0 -0
- /package/dist/paperless/{p-27fd3386.entry.js.map → p-a0337437.entry.js.map} +0 -0
- /package/dist/paperless/{p-6db4ca89.entry.js.map → p-b040b0ef.entry.js.map} +0 -0
- /package/dist/paperless/{p-7a83597a.entry.js.map → p-ccd419a0.entry.js.map} +0 -0
- /package/dist/paperless/{p-93198497.entry.js.map → p-d9d5bc98.entry.js.map} +0 -0
- /package/dist/paperless/{p-eee199d1.entry.js.map → p-e1703baf.entry.js.map} +0 -0
- /package/dist/paperless/{p-8c8128f9.entry.js.map → p-f667ab81.entry.js.map} +0 -0
- /package/dist/paperless/{p-290d04b0.entry.js.map → p-fa27b5a7.entry.js.map} +0 -0
- /package/dist/paperless/{p-58e6f012.entry.js.map → p-fb384da3.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as a,H as e}from"./p-45ded510.js";import{c as r}from"./p-8a5b8196.js";import"./p-8a1a6e56.js";const o="*{box-sizing:border-box}:host{.safe-sidebar{padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important;&.show{--tw-translate-x:env(safe-area-inset-left,0)!important}}.safe-topbar{height:calc(env(safe-area-inset-top, 0) + 4rem);padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important}}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.fixed{position:fixed!important}.relative{position:relative!important}.left-0{left:0!important}.top-0{top:0!important}.z-navbar{z-index:300!important}.z-navbar-backdrop{z-index:290!important}.z-navbar-topbar{z-index:280!important}.mt-auto{margin-top:auto!important}.flex{display:flex!important}.hidden{display:none!important}.h-screen{height:100vh!important}.w-60{width:15rem!important}.w-full{width:100%!important}.max-w-\\[16\\.5rem\\]{max-width:16.5rem!important}.-translate-x-full{--tw-translate-x:-100%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-between{justify-content:space-between!important}.gap-6{gap:1.5rem!important}.overflow-y-auto{overflow-y:auto!important}.border-0{border-width:0!important}.border-b{border-bottom-width:1px!important}.border-r{border-right-width:1px!important}.border-solid{border-style:solid!important}.border-off-white-700{--tw-border-opacity:1!important;border-color:rgb(222 219 213/var(--tw-border-opacity,1))!important}.bg-off-white-300{--tw-bg-opacity:1!important;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))!important}.p-4{padding:1rem!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.will-change-transform{will-change:transform!important}.max-h-screen-safe{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}@media (min-width:80rem){.layout-1280\\:relative{position:relative!important}.layout-1280\\:z-0{z-index:0!important}.layout-1280\\:flex{display:flex!important}.layout-1280\\:hidden{display:none!important}.layout-1280\\:h-full{height:100%!important}.layout-1280\\:w-60{width:15rem!important}.layout-1280\\:max-w-none{max-width:none!important}.layout-1280\\:translate-x-0{--tw-translate-x:0px!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}}@media (min-width:105rem){.layout-1680\\:w-72{width:18rem!important}}";const n=o;const i=r(["bg-off-white-300","border-0 border-solid border-off-white-700","p-4"]);const s=r(["flex flex-col","fixed left-0 top-0 z-navbar h-screen w-60","w-full max-w-[16.5rem]","layout-1280:relative layout-1280:z-0 layout-1280:max-w-none layout-1280:h-full","gap-6","transition-all","will-change-transform","-translate-x-full transform-gpu layout-1280:translate-x-0","border-r","safe-sidebar"],{variants:{show:{false:null,true:"show"}}});const l=r(["flex w-full justify-between items-center","relative z-navbar-topbar","border-b","layout-1280:hidden","safe-topbar"]);const c=r(["z-navbar-backdrop layout-1280:hidden transition-opacity"],{variants:{show:{false:"opacity-0 pointer-events-none",true:"opacity-100"}}});const p=class{constructor(a){t(this,a);this._show=false}render(){return a(e,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as a,H as e}from"./p-45ded510.js";import{c as r}from"./p-8a5b8196.js";import"./p-8a1a6e56.js";const o="*{box-sizing:border-box}:host{.safe-sidebar{padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important;&.show{--tw-translate-x:env(safe-area-inset-left,0)!important}}.safe-topbar{height:calc(env(safe-area-inset-top, 0) + 4rem);padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important}}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.fixed{position:fixed!important}.relative{position:relative!important}.left-0{left:0!important}.top-0{top:0!important}.z-navbar{z-index:300!important}.z-navbar-backdrop{z-index:290!important}.z-navbar-topbar{z-index:280!important}.mt-auto{margin-top:auto!important}.flex{display:flex!important}.hidden{display:none!important}.h-screen{height:100vh!important}.w-60{width:15rem!important}.w-full{width:100%!important}.max-w-\\[16\\.5rem\\]{max-width:16.5rem!important}.-translate-x-full{--tw-translate-x:-100%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-between{justify-content:space-between!important}.gap-6{gap:1.5rem!important}.overflow-y-auto{overflow-y:auto!important}.border-0{border-width:0!important}.border-b{border-bottom-width:1px!important}.border-r{border-right-width:1px!important}.border-solid{border-style:solid!important}.border-off-white-700{--tw-border-opacity:1!important;border-color:rgb(222 219 213/var(--tw-border-opacity,1))!important}.bg-off-white-300{--tw-bg-opacity:1!important;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))!important}.p-4{padding:1rem!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.will-change-transform{will-change:transform!important}.max-h-screen-safe{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}@media (min-width:80rem){.layout-1280\\:relative{position:relative!important}.layout-1280\\:z-0{z-index:0!important}.layout-1280\\:flex{display:flex!important}.layout-1280\\:hidden{display:none!important}.layout-1280\\:h-full{height:100%!important}.layout-1280\\:w-60{width:15rem!important}.layout-1280\\:max-w-none{max-width:none!important}.layout-1280\\:translate-x-0{--tw-translate-x:0px!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}}@media (min-width:105rem){.layout-1680\\:w-72{width:18rem!important}}";const n=o;const i=r(["bg-off-white-300","border-0 border-solid border-off-white-700","p-4"]);const s=r(["flex flex-col","fixed left-0 top-0 z-navbar h-screen w-60","w-full max-w-[16.5rem]","layout-1280:relative layout-1280:z-0 layout-1280:max-w-none layout-1280:h-full","gap-6","transition-all","will-change-transform","-translate-x-full transform-gpu layout-1280:translate-x-0","border-r","safe-sidebar"],{variants:{show:{false:null,true:"show"}}});const l=r(["flex w-full justify-between items-center","relative z-navbar-topbar","border-b","layout-1280:hidden","safe-topbar"]);const c=r(["z-navbar-backdrop layout-1280:hidden transition-opacity"],{variants:{show:{false:"opacity-0 pointer-events-none",true:"opacity-100"}}});const p=class{constructor(a){t(this,a);this._show=false}render(){return a(e,{key:"420e8206936530720b691c0b1afc04a2d608b04b",class:"p-navbar w-full max-h-screen-safe layout-1280:w-60 layout-1680:w-72"},a("p-backdrop",{key:"0ef0b72645f6318a41c5beac4b11bf0aca6e89e2",class:c({show:this._show}),scrollLock:this._show,onClicked:()=>this._show=false}),a("div",{key:"306b0b341f807b440afb06db4620e1d5a531920a",class:s({class:i(),show:this._show})},a("div",{key:"15ee88d5fb65f2893b3bff37f5d6c95958758722",class:"flex w-full items-center justify-between layout-1280:hidden"},a("p-button",{key:"b64a58b653501f77dcca6c5de917fa73362f5b02",variant:"secondary",icon:"menu-arrow",iconFlip:"horizontal",iconOnly:true,size:"sm",onClick:()=>this._show=false})),a("div",{key:"df946991b20959ee55b30778623da97f6bfa445e",class:"flex w-full flex-col items-stretch"},a("slot",{key:"40f50a4fbe75c85e095176805ca6b49e4cb80a6a",name:"company"})),a("div",{key:"b94aada53b4eb0ac86d52010cc3e07bb2fa0e682",class:"flex w-full flex-col gap-6 overflow-y-auto"},a("slot",{key:"28a927ba8b7eb84534ef66efaddac03c75bafb33",name:"content"})),a("div",{key:"7c8990fad4e46e05eaffda94aed8323afa6c1bf2",class:"mt-auto hidden w-full flex-col layout-1280:flex"},a("slot",{key:"ec9d59ccedce6c8daba775f0b68d42290b7b9877",name:"user"}))),a("div",{key:"c1bca26770942cfc04aca9dfee1f40b5e3ed885c",class:l({class:i()})},a("p-button",{key:"3d16426f5990c0a04cbd0befd4901fe09fcab33f",variant:"secondary",iconOnly:true,icon:"menu-arrow",size:"sm",onClick:()=>this._show=true}),a("slot",{key:"a49b86b11c0619d33dfb8cd59ca2b576d183d0cb",name:"topbar"})))}handleCloseNavbar(){this._show=false}handleOpenNavbar(){this._show=true}};p.style=n;export{p as p_navbar};
|
|
2
|
+
//# sourceMappingURL=p-6cd52774.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as e,g as i,h as r,H as a,F as s}from"./p-45ded510.js";import{c as o}from"./p-8a5b8196.js";import{f as n,g as l}from"./p-f26a3049.js";import"./p-8a1a6e56.js";const c="*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.h-4{height:1rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.h-full{height:100%!important}.w-inherit{width:inherit!important}.min-w-0{min-width:0!important}.flex-1{flex:1 1 0%!important}.flex-shrink-0{flex-shrink:0!important}.cursor-not-allowed{cursor:not-allowed!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.border{border-width:1px!important}.border-0{border-width:0!important}.border-solid{border-style:solid!important}.border-none{border-style:none!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-negative-red{--tw-border-opacity:1!important;border-color:rgb(230 30 30/var(--tw-border-opacity,1))!important}.border-supportive-lilac-800{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-negative-red{--tw-text-opacity:1!important;color:rgb(230 30 30/var(--tw-text-opacity,1))!important}.text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-negative-red-50{--tw-ring-opacity:1!important;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))!important}.ring-supportive-lilac-100{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.selection\\:bg-negative-red-50 ::selection{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.selection\\:bg-supportive-lilac ::selection{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.selection\\:bg-negative-red-50::selection{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.selection\\:bg-supportive-lilac::selection{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.placeholder\\:text-sm::placeholder{font-size:.875rem!important;line-height:1.25rem!important}.placeholder\\:text-black-teal-200::placeholder{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.focus\\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}";const d=c;const h=o(["flex gap-2","w-inherit","border-solid rounded-lg"],{variants:{variant:{read:"border-0 items-center",write:"border px-2"},size:{sm:null,base:null},disabled:{false:"bg-white",true:"bg-white-600 cursor-not-allowed"},focused:{false:null,true:null},error:{false:null,true:null},isTextarea:{false:null,true:null}},compoundVariants:[{size:"sm",variant:"write",isTextarea:false,class:"h-6"},{size:"base",variant:"write",isTextarea:false,class:"h-8"},{size:"sm",variant:"read",class:"h-4"},{size:"base",variant:"read",class:"h-6"},{focused:false,error:false,class:"border-black-teal-100"},{disabled:false,focused:true,error:false,class:"border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac"},{disabled:false,error:true,class:"border-negative-red"},{disabled:false,focused:true,error:true,class:"ring ring-negative-red-50 selection:bg-negative-red-50"}]});const p=o("text-sm placeholder:text-sm placeholder:text-black-teal-200 text-black-teal border-none outline-none focus:outline-none bg-transparent flex-1 min-w-0",{variants:{isTextarea:{false:"h-full",true:null},disabled:{false:null,true:"cursor-not-allowed"}}});const f=o(["flex flex-shrink-0 justify-center items-center text-center"],{variants:{disabled:{false:null,true:"text-black-teal-100"},focused:{false:null,true:null},error:{false:null,true:null},isText:{false:null,true:"text-sm"}},compoundVariants:[{disabled:false,focused:false,error:false,class:"text-black-teal-300"},{disabled:false,focused:true,error:false,class:"text-black-teal-500"},{disabled:false,focused:false,error:true,class:"text-negative-red"},{disabled:false,focused:true,error:true,class:"text-negative-red-800"}]});const b=class{constructor(i){t(this,i);this.valueChange=e(this,"valueChange",7);this.inputRefChange=e(this,"inputRefChange",7);this.variant="write";this.size="base";this.type="text";this.properties={};this.prefix=undefined;this.suffix=undefined;this.icon=undefined;this.iconFlip=undefined;this.iconRotate=undefined;this.iconPosition="start";this.value=undefined;this.label=undefined;this.placeholder=undefined;this.helper=undefined;this.required=true;this.autofocus=false;this.error=undefined;this.errorPlacement=undefined;this.disabled=false;this.focused=false;this.forceShowTooltip=false;this.selectAllOnFocus=true;this.focusMethod="focus";this.optionalTemplate=undefined;this._focused=false}valueChange;inputRefChange;get _el(){return i(this)}_inputRef;componentDidLoad(){this._checkAutoFocus()}render(){const{prefix:t,suffix:e,hasHeaderSlot:i,hasLabelSlot:s,hasHelperSlot:o,hasErrorSlot:n,hasValueSlot:l}=this._getSlotInfo();return r(a,{key:"b75ada5f4769d2610912357d33da0b8529ab4984",class:"p-field"},r("p-field-container",{key:"235ae8fa186ad4db8d5a13661775bb555393c6d6",forceShowTooltip:this.forceShowTooltip||this._focused,label:this.label,helper:this.helper,error:this.error,required:this.required,variant:this.variant},s&&r("slot",{key:"2963450a44ff975755ad5dede7c69273cd10d808",name:"label",slot:"label"}),i&&r("slot",{key:"af15180e5992ad98bbdd11b05b4abab9490a67a1",name:"header",slot:"header"}),o&&r("slot",{key:"62be6518228a811d52868b1e1da84c3a70664bee",name:"helper",slot:"helper"}),n&&r("slot",{key:"1979049bf6af97884f7b9a87e5e9cc683027efcd",name:"error",slot:"error"}),r("div",{key:"c4f9c673f441ab73bcfb7266d5f817dd89c09630",class:h({error:!!this.error?.length,disabled:this.disabled,focused:this.focused||this._focused,size:this.size,variant:this.variant,isTextarea:this.type==="textarea"}),slot:"content"},(t||this.icon&&this.iconPosition==="start")&&r("div",{key:"a4e4b4cb9b9714036887783abea534760e191abc",class:f({error:!!this.error?.length,disabled:this.disabled,focused:this.focused||this._focused,isText:typeof e==="string"}),onClick:()=>this._focusInput()},this.icon&&this.iconPosition==="start"?r("p-icon",{class:"flex",variant:this.icon,rotate:this.iconRotate,flip:this.iconFlip}):t),this._getContent(l),(e||this.icon&&this.iconPosition==="end")&&r("div",{key:"c7814f67e1e466ba4c746e03ad3ac036fef817e0",class:f({error:!!this.error?.length,disabled:this.disabled,focused:this.focused||this._focused,isText:typeof e==="string"}),onClick:()=>this._focusInput()},this.icon&&this.iconPosition==="end"?r("p-icon",{class:"flex",variant:this.icon,rotate:this.iconRotate,flip:this.iconFlip}):e))))}handleFocusIn(){if(this.disabled){return}this._focused=true;this._selectAll()}handleFocusOut(){if(this.disabled){return}this._focused=false}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]');const e=!!this._el.querySelector(':scope > [slot="label"]');const i=!!this._el.querySelector(':scope > [slot="prefix"]');const a=!!this._el.querySelector(':scope > [slot="suffix"]');const s=!!this._el.querySelector(':scope > [slot="header"]');const o=!!this._el.querySelector(':scope > [slot="error"]');const n=!!this._el.querySelector(':scope > [slot="value"]');const l=i?r("slot",{name:"prefix"}):this.prefix;const c=a?r("slot",{name:"suffix"}):this.suffix;const d=this.error&&typeof this.error==="string"&&this.error!=="true";return{hasHelperSlot:t,hasLabelSlot:e,hasPrefixSlot:i,hasSuffixSlot:a,hasHeaderSlot:s,hasErrorSlot:o,hasValueSlot:n,prefix:l,suffix:c,errorAndErrorIsNotBoolean:d}}_getContent(t=false){if(this.variant==="read"){return r("div",{class:"text-sm"},t?r("slot",{name:"value"}):!!this.value&&this.value.length>0?this.value:"—")}if(this.type==="slot"){return r("slot",{name:"input"})}const e={class:p({disabled:this.disabled,isTextarea:this.type==="textarea"}),value:this.value,placeholder:this.placeholder,disabled:this.disabled,onInput:t=>this._valueChange(t)};let i=this.properties??{};if(typeof i==="string"){i=JSON.parse(this.properties)}if(this.type==="textarea"){return r("textarea",{ref:t=>this._setInputRef(t),...e,...i})}return r("input",{type:this.type,ref:t=>this._setInputRef(t),...e,...i})}_setInputRef(t){this._inputRef=t;this.inputRefChange.emit(t)}_focusInput(){if(this._inputRef){this._inputRef.focus();return}const t=this._el.querySelector(':scope > [slot="input"]');t[this.focusMethod]()}_selectAll(){if(!this._inputRef||!this.selectAllOnFocus){return}this._inputRef.select()}_valueChange(t){const e=t.target.value;this.value=e;this.valueChange.emit(e)}_checkAutoFocus(){if(!this.autofocus){return}if(!this._inputRef){setTimeout((()=>this._checkAutoFocus()),100);return}this._focusInput()}};b.style=d;const u="*{box-sizing:border-box}.static{position:static!important}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.flex-col{flex-direction:column!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.text-black-teal-200{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}";const m=u;const g=class{constructor(i){t(this,i);this.focus=e(this,"focus",7);this.label=undefined;this.variant=undefined;this.helper=undefined;this.required=undefined;this.error=undefined;this.errorPlacement=undefined;this.forceShowTooltip=false;this.optionalTemplate=this._defaultOptionalTemplate;this._locales={}}_defaultOptionalTemplate=()=>n(this._locales.optional);get _el(){return i(this)}focus;componentWillLoad(){this._setLocales()}render(){const{hasHeaderSlot:t,hasErrorSlot:e,helper:i,label:o,errorAndErrorIsNotBoolean:n}=this._getSlotInfo();const l=r("slot",{key:"a7e3919d645cc21fa538340b0c9ea7a98e66ca90",name:"content",slot:"trigger"});return r(a,{key:"44a79d2058aafb4d9bf89f09cb3e7a1a708d99f9",class:"p-field-container"},r("div",{key:"47af2893a5f27a1a905c846a016c183756d026f8",class:"flex w-inherit flex-col gap-1"},r("div",{key:"cd64bc812c19e11d35ea4eb1756f9885a1f2a148",class:"flex items-end justify-between gap-1"},o&&r("div",{key:"962aecba76c4ba9326ed992d6ad39c1efbdab8ab",class:"text-xs font-medium text-black-teal-300",onClick:()=>this.focus.emit()},o),(!this.required||i||t)&&r("div",{key:"d0cdd8810de8098eaca90d2aeddd1f01fbcd0faf",class:"flex items-center gap-1"},!this.required&&this.variant==="write"&&r("span",{key:"e83d37fcb0050bad328d0aa2d6890c1226fe17fb",class:"text-xs font-medium text-black-teal-200"},this.optionalTemplate()),(i||t)&&r(s,{key:"c156ee1c951fec9dbe602cf317ff7591a6bce9bf"},t&&r("slot",{key:"e568644b05673354c9059042b0ba40f137d1709c",name:"header"}),i&&r("p-helper",{key:"7dcbdd61deb2eba74abf8f57b245b011fbf9066b",class:`flex ${t?"ml-2":""}`,placement:"top-end"},i)))),r("p-tooltip",{key:"41588daf8a794d9d16d32bcd841f5f4cbe64349a",class:"w-full",variant:"error",content:this.error,show:n&&this.forceShowTooltip,enableUserInput:false,placement:this.errorPlacement},e&&r("slot",{key:"a61dd91094db6ac2b016ee79320cffd887976e12",name:"error",slot:"content"}),l)))}async _setLocales(){this._locales=await l(this._el)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]');const e=!!this._el.querySelector(':scope > [slot="label"]');const i=!!this._el.querySelector(':scope > [slot="header"]');const a=!!this._el.querySelector(':scope > [slot="error"]');const s=t?r("slot",{name:"helper"}):this.helper;const o=e?r("slot",{name:"label"}):this.label;const n=a||this.error&&typeof this.error==="string"&&this.error!=="true";return{hasHelperSlot:t,hasLabelSlot:e,hasHeaderSlot:i,hasErrorSlot:a,helper:s,label:o,errorAndErrorIsNotBoolean:n}}};g.style=m;export{b as p_field,g as p_field_container};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as e,g as i,h as r,H as a,F as s}from"./p-45ded510.js";import{c as o}from"./p-8a5b8196.js";import{f as n,g as l}from"./p-f26a3049.js";import"./p-8a1a6e56.js";const c="*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.h-4{height:1rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.h-full{height:100%!important}.w-inherit{width:inherit!important}.min-w-0{min-width:0!important}.flex-1{flex:1 1 0%!important}.flex-shrink-0{flex-shrink:0!important}.cursor-not-allowed{cursor:not-allowed!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.border{border-width:1px!important}.border-0{border-width:0!important}.border-solid{border-style:solid!important}.border-none{border-style:none!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-negative-red{--tw-border-opacity:1!important;border-color:rgb(230 30 30/var(--tw-border-opacity,1))!important}.border-supportive-lilac-800{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-negative-red{--tw-text-opacity:1!important;color:rgb(230 30 30/var(--tw-text-opacity,1))!important}.text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-negative-red-50{--tw-ring-opacity:1!important;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))!important}.ring-supportive-lilac-100{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.selection\\:bg-negative-red-50 ::selection{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.selection\\:bg-supportive-lilac ::selection{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.selection\\:bg-negative-red-50::selection{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.selection\\:bg-supportive-lilac::selection{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.placeholder\\:text-sm::placeholder{font-size:.875rem!important;line-height:1.25rem!important}.placeholder\\:text-black-teal-200::placeholder{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.focus\\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}";const d=c;const h=o(["flex gap-2","w-inherit","border-solid rounded-lg"],{variants:{variant:{read:"border-0 items-center",write:"border px-2"},size:{sm:null,base:null},disabled:{false:"bg-white",true:"bg-white-600 cursor-not-allowed"},focused:{false:null,true:null},error:{false:null,true:null},isTextarea:{false:null,true:null}},compoundVariants:[{size:"sm",variant:"write",isTextarea:false,class:"h-6"},{size:"base",variant:"write",isTextarea:false,class:"h-8"},{size:"sm",variant:"read",class:"h-4"},{size:"base",variant:"read",class:"h-6"},{focused:false,error:false,class:"border-black-teal-100"},{disabled:false,focused:true,error:false,class:"border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac"},{disabled:false,error:true,class:"border-negative-red"},{disabled:false,focused:true,error:true,class:"ring ring-negative-red-50 selection:bg-negative-red-50"}]});const p=o("text-sm placeholder:text-sm placeholder:text-black-teal-200 text-black-teal border-none outline-none focus:outline-none bg-transparent flex-1 min-w-0",{variants:{isTextarea:{false:"h-full",true:null},disabled:{false:null,true:"cursor-not-allowed"}}});const f=o(["flex flex-shrink-0 justify-center items-center text-center"],{variants:{disabled:{false:null,true:"text-black-teal-100"},focused:{false:null,true:null},error:{false:null,true:null},isText:{false:null,true:"text-sm"}},compoundVariants:[{disabled:false,focused:false,error:false,class:"text-black-teal-300"},{disabled:false,focused:true,error:false,class:"text-black-teal-500"},{disabled:false,focused:false,error:true,class:"text-negative-red"},{disabled:false,focused:true,error:true,class:"text-negative-red-800"}]});const b=class{constructor(i){t(this,i);this.valueChange=e(this,"valueChange",7);this.inputRefChange=e(this,"inputRefChange",7);this.variant="write";this.size="base";this.type="text";this.properties={};this.prefix=undefined;this.suffix=undefined;this.icon=undefined;this.iconFlip=undefined;this.iconRotate=undefined;this.iconPosition="start";this.value=undefined;this.label=undefined;this.placeholder=undefined;this.helper=undefined;this.required=true;this.autofocus=false;this.error=undefined;this.errorPlacement=undefined;this.disabled=false;this.focused=false;this.forceShowTooltip=false;this.selectAllOnFocus=true;this.focusMethod="focus";this.optionalTemplate=undefined;this._focused=false}valueChange;inputRefChange;get _el(){return i(this)}_inputRef;componentDidLoad(){this._checkAutoFocus()}render(){const{prefix:t,suffix:e,hasHeaderSlot:i,hasLabelSlot:s,hasHelperSlot:o,hasErrorSlot:n,hasValueSlot:l}=this._getSlotInfo();return r(a,{key:"49dcacd21d253634876b8fa53a963e0b6b3d7394",class:"p-field"},r("p-field-container",{key:"3adc3178b001b559168f72bf7d14b23c9d5e9e1f",forceShowTooltip:this.forceShowTooltip||this._focused,label:this.label,helper:this.helper,error:this.error,required:this.required,variant:this.variant},s&&r("slot",{key:"0e420edddd376cff9217eebe9aafebfee2b2de92",name:"label",slot:"label"}),i&&r("slot",{key:"c7bba177220338bdbfc8d3e9c85d383677bde275",name:"header",slot:"header"}),o&&r("slot",{key:"723f03014cad13533bfc4eb05544230b512bd8ac",name:"helper",slot:"helper"}),n&&r("slot",{key:"95c1ffa450269b538c645375f9590ef2f60a9d60",name:"error",slot:"error"}),r("div",{key:"f745633c4dbb9dcf0bfea02a9482ac754ccf9fa7",class:h({error:!!this.error?.length,disabled:this.disabled,focused:this.focused||this._focused,size:this.size,variant:this.variant,isTextarea:this.type==="textarea"}),slot:"content"},(t||this.icon&&this.iconPosition==="start")&&r("div",{key:"ec9a003ef3ad3d57ec40bcce4e8e3850f553fceb",class:f({error:!!this.error?.length,disabled:this.disabled,focused:this.focused||this._focused,isText:typeof e==="string"}),onClick:()=>this._focusInput()},this.icon&&this.iconPosition==="start"?r("p-icon",{class:"flex",variant:this.icon,rotate:this.iconRotate,flip:this.iconFlip}):t),this._getContent(l),(e||this.icon&&this.iconPosition==="end")&&r("div",{key:"62644a9bb5160bddeae4e75dc0ebfd95eb6c8205",class:f({error:!!this.error?.length,disabled:this.disabled,focused:this.focused||this._focused,isText:typeof e==="string"}),onClick:()=>this._focusInput()},this.icon&&this.iconPosition==="end"?r("p-icon",{class:"flex",variant:this.icon,rotate:this.iconRotate,flip:this.iconFlip}):e))))}handleFocusIn(){if(this.disabled){return}this._focused=true;this._selectAll()}handleFocusOut(){if(this.disabled){return}this._focused=false}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]');const e=!!this._el.querySelector(':scope > [slot="label"]');const i=!!this._el.querySelector(':scope > [slot="prefix"]');const a=!!this._el.querySelector(':scope > [slot="suffix"]');const s=!!this._el.querySelector(':scope > [slot="header"]');const o=!!this._el.querySelector(':scope > [slot="error"]');const n=!!this._el.querySelector(':scope > [slot="value"]');const l=i?r("slot",{name:"prefix"}):this.prefix;const c=a?r("slot",{name:"suffix"}):this.suffix;const d=this.error&&typeof this.error==="string"&&this.error!=="true";return{hasHelperSlot:t,hasLabelSlot:e,hasPrefixSlot:i,hasSuffixSlot:a,hasHeaderSlot:s,hasErrorSlot:o,hasValueSlot:n,prefix:l,suffix:c,errorAndErrorIsNotBoolean:d}}_getContent(t=false){if(this.variant==="read"){return r("div",{class:"text-sm"},t?r("slot",{name:"value"}):!!this.value&&this.value.length>0?this.value:"—")}if(this.type==="slot"){return r("slot",{name:"input"})}const e={class:p({disabled:this.disabled,isTextarea:this.type==="textarea"}),value:this.value,placeholder:this.placeholder,disabled:this.disabled,onInput:t=>this._valueChange(t)};let i=this.properties??{};if(typeof i==="string"){i=JSON.parse(this.properties)}if(this.type==="textarea"){return r("textarea",{ref:t=>this._setInputRef(t),...e,...i})}return r("input",{type:this.type,ref:t=>this._setInputRef(t),...e,...i})}_setInputRef(t){this._inputRef=t;this.inputRefChange.emit(t)}_focusInput(){if(this._inputRef){this._inputRef.focus();return}const t=this._el.querySelector(':scope > [slot="input"]');t[this.focusMethod]()}_selectAll(){if(!this._inputRef||!this.selectAllOnFocus){return}this._inputRef.select()}_valueChange(t){const e=t.target.value;this.value=e;this.valueChange.emit(e)}_checkAutoFocus(){if(!this.autofocus){return}if(!this._inputRef){setTimeout((()=>this._checkAutoFocus()),100);return}this._focusInput()}};b.style=d;const u="*{box-sizing:border-box}.static{position:static!important}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.flex-col{flex-direction:column!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.text-black-teal-200{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}";const m=u;const g=class{constructor(i){t(this,i);this.focus=e(this,"focus",7);this.label=undefined;this.variant=undefined;this.helper=undefined;this.required=undefined;this.error=undefined;this.errorPlacement=undefined;this.forceShowTooltip=false;this.optionalTemplate=this._defaultOptionalTemplate;this._locales={}}_defaultOptionalTemplate=()=>n(this._locales.optional);get _el(){return i(this)}focus;componentWillLoad(){this._setLocales()}render(){const{hasHeaderSlot:t,hasErrorSlot:e,helper:i,label:o,errorAndErrorIsNotBoolean:n}=this._getSlotInfo();const l=r("slot",{key:"a7e3919d645cc21fa538340b0c9ea7a98e66ca90",name:"content",slot:"trigger"});return r(a,{key:"44a79d2058aafb4d9bf89f09cb3e7a1a708d99f9",class:"p-field-container"},r("div",{key:"47af2893a5f27a1a905c846a016c183756d026f8",class:"flex w-inherit flex-col gap-1"},r("div",{key:"cd64bc812c19e11d35ea4eb1756f9885a1f2a148",class:"flex items-end justify-between gap-1"},o&&r("div",{key:"962aecba76c4ba9326ed992d6ad39c1efbdab8ab",class:"text-xs font-medium text-black-teal-300",onClick:()=>this.focus.emit()},o),(!this.required||i||t)&&r("div",{key:"d0cdd8810de8098eaca90d2aeddd1f01fbcd0faf",class:"flex items-center gap-1"},!this.required&&this.variant==="write"&&r("span",{key:"e83d37fcb0050bad328d0aa2d6890c1226fe17fb",class:"text-xs font-medium text-black-teal-200"},this.optionalTemplate()),(i||t)&&r(s,{key:"c156ee1c951fec9dbe602cf317ff7591a6bce9bf"},t&&r("slot",{key:"e568644b05673354c9059042b0ba40f137d1709c",name:"header"}),i&&r("p-helper",{key:"7dcbdd61deb2eba74abf8f57b245b011fbf9066b",class:`flex ${t?"ml-2":""}`,placement:"top-end"},i)))),r("p-tooltip",{key:"41588daf8a794d9d16d32bcd841f5f4cbe64349a",class:"w-full",variant:"error",content:this.error,show:n&&this.forceShowTooltip,enableUserInput:false,placement:this.errorPlacement},e&&r("slot",{key:"a61dd91094db6ac2b016ee79320cffd887976e12",name:"error",slot:"content"}),l)))}async _setLocales(){this._locales=await l(this._el)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]');const e=!!this._el.querySelector(':scope > [slot="label"]');const i=!!this._el.querySelector(':scope > [slot="header"]');const a=!!this._el.querySelector(':scope > [slot="error"]');const s=t?r("slot",{name:"helper"}):this.helper;const o=e?r("slot",{name:"label"}):this.label;const n=a||this.error&&typeof this.error==="string"&&this.error!=="true";return{hasHelperSlot:t,hasLabelSlot:e,hasHeaderSlot:i,hasErrorSlot:a,helper:s,label:o,errorAndErrorIsNotBoolean:n}}};g.style=m;export{b as p_field,g as p_field_container};
|
|
2
|
+
//# sourceMappingURL=p-6ec48ec6.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,g as e,h as i,H as o}from"./p-45ded510.js";const s=".mb-\\[2px\\]{margin-bottom:2px!important}.box-border{box-sizing:border-box!important}.flex{display:flex!important}.w-full{width:100%!important}.flex-1{flex:1 1 0%!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.rounded-bl-none{border-bottom-left-radius:0!important}.rounded-br-none{border-bottom-right-radius:0!important}.border-l-0{border-left-width:0!important}.border-r-0{border-right-width:0!important}.py-\\[calc\\(0\\.75rem-1px\\)\\]{padding-bottom:calc(.75rem - 1px)!important;padding-top:calc(.75rem - 1px)!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.tracking-wider{letter-spacing:.05em!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column;outline:2px solid transparent!important;outline-offset:2px!important;width:100%}:host .input-label{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity,1));font-size:.75rem;font-weight:600;letter-spacing:.05em;line-height:1rem;margin-bottom:2px;text-transform:uppercase}:host .input-header{align-items:flex-end;display:flex;gap:.5rem;margin-bottom:2px}:host .content{display:flex;width:100%}:host .content .prefix,:host .content .suffix{--tw-text-opacity:1;box-sizing:border-box;color:rgb(81 83 107/var(--tw-text-opacity,1));flex:1 1 0%;height:100%}:host .content .prefix{border-bottom-right-radius:0;border-right-width:0!important;border-top-right-radius:0;order:1;padding-right:.5rem}:host .content .suffix{border-bottom-left-radius:0;border-left-width:0!important;border-top-left-radius:0;order:3;padding-left:.5rem}:host(.focused),:host(:focus),:host(:focus-within),:host([focused]){outline:2px solid transparent!important;outline-offset:2px!important}:host(.focused) .prefix,:host(.focused) .suffix,:host(:focus) .prefix,:host(:focus) .suffix,:host(:focus-within) .prefix,:host(:focus-within) .suffix,:host([focused]) .prefix,:host([focused]) .suffix{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}:host(.error) .prefix,:host(.error) .suffix,:host([error]) .prefix,:host([error]) .suffix{--tw-text-opacity:1;color:rgb(185 30 40/var(--tw-text-opacity,1))}:host(.error) .suffix,:host([error]) .suffix{align-items:flex-start;padding-bottom:calc(.75rem - 1px);padding-top:calc(.75rem - 1px)}:host(.size-small.error) .suffix,:host(.size-small[error]) .suffix{padding-bottom:.5rem;padding-top:.5rem}.static{position:static!important}.ml-1{margin-left:.25rem!important}.ml-2{margin-left:.5rem!important}.justify-between{justify-content:space-between!important}.rounded-tl-none{border-top-left-radius:0!important}.rounded-tr-none{border-top-right-radius:0!important}.pl-0{padding-left:0!important}.pr-0{padding-right:0!important}.text-negative{--tw-text-opacity:1!important;color:rgb(185 30 40/var(--tw-text-opacity,1))!important}";const r=s;const n=class{constructor(e){t(this,e);this.size="medium";this.prefix=undefined;this.suffix=undefined;this.icon=undefined;this.iconFlip=undefined;this.iconRotate=undefined;this.iconPosition="start";this.label=undefined;this.helper=undefined;this.required=undefined;this.error=undefined;this.disabled=false;this.focused=false;this.forceShowTooltip=false;this.focusMethod="focus";this.errorVariant="auto";this._forceShowTooltip=false}get _el(){return e(this)}_whitelistedTags=["input","textarea"];componentDidLoad(){console.warn("[p-input-group] Deprecated, please use p-field")}componentWillRender(){this._setInputClasses()}render(){const{hasHeaderSlot:t,helper:e,label:s,prefix:r,suffix:n,errorAndErrorIsNotBoolean:a,errorVariant:d}=this._getSlotInfo();return i(o,{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,g as e,h as i,H as o}from"./p-45ded510.js";const s=".mb-\\[2px\\]{margin-bottom:2px!important}.box-border{box-sizing:border-box!important}.flex{display:flex!important}.w-full{width:100%!important}.flex-1{flex:1 1 0%!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.rounded-bl-none{border-bottom-left-radius:0!important}.rounded-br-none{border-bottom-right-radius:0!important}.border-l-0{border-left-width:0!important}.border-r-0{border-right-width:0!important}.py-\\[calc\\(0\\.75rem-1px\\)\\]{padding-bottom:calc(.75rem - 1px)!important;padding-top:calc(.75rem - 1px)!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.tracking-wider{letter-spacing:.05em!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column;outline:2px solid transparent!important;outline-offset:2px!important;width:100%}:host .input-label{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity,1));font-size:.75rem;font-weight:600;letter-spacing:.05em;line-height:1rem;margin-bottom:2px;text-transform:uppercase}:host .input-header{align-items:flex-end;display:flex;gap:.5rem;margin-bottom:2px}:host .content{display:flex;width:100%}:host .content .prefix,:host .content .suffix{--tw-text-opacity:1;box-sizing:border-box;color:rgb(81 83 107/var(--tw-text-opacity,1));flex:1 1 0%;height:100%}:host .content .prefix{border-bottom-right-radius:0;border-right-width:0!important;border-top-right-radius:0;order:1;padding-right:.5rem}:host .content .suffix{border-bottom-left-radius:0;border-left-width:0!important;border-top-left-radius:0;order:3;padding-left:.5rem}:host(.focused),:host(:focus),:host(:focus-within),:host([focused]){outline:2px solid transparent!important;outline-offset:2px!important}:host(.focused) .prefix,:host(.focused) .suffix,:host(:focus) .prefix,:host(:focus) .suffix,:host(:focus-within) .prefix,:host(:focus-within) .suffix,:host([focused]) .prefix,:host([focused]) .suffix{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}:host(.error) .prefix,:host(.error) .suffix,:host([error]) .prefix,:host([error]) .suffix{--tw-text-opacity:1;color:rgb(185 30 40/var(--tw-text-opacity,1))}:host(.error) .suffix,:host([error]) .suffix{align-items:flex-start;padding-bottom:calc(.75rem - 1px);padding-top:calc(.75rem - 1px)}:host(.size-small.error) .suffix,:host(.size-small[error]) .suffix{padding-bottom:.5rem;padding-top:.5rem}.static{position:static!important}.ml-1{margin-left:.25rem!important}.ml-2{margin-left:.5rem!important}.justify-between{justify-content:space-between!important}.rounded-tl-none{border-top-left-radius:0!important}.rounded-tr-none{border-top-right-radius:0!important}.pl-0{padding-left:0!important}.pr-0{padding-right:0!important}.text-negative{--tw-text-opacity:1!important;color:rgb(185 30 40/var(--tw-text-opacity,1))!important}";const r=s;const n=class{constructor(e){t(this,e);this.size="medium";this.prefix=undefined;this.suffix=undefined;this.icon=undefined;this.iconFlip=undefined;this.iconRotate=undefined;this.iconPosition="start";this.label=undefined;this.helper=undefined;this.required=undefined;this.error=undefined;this.disabled=false;this.focused=false;this.forceShowTooltip=false;this.focusMethod="focus";this.errorVariant="auto";this._forceShowTooltip=false}get _el(){return e(this)}_whitelistedTags=["input","textarea"];componentDidLoad(){console.warn("[p-input-group] Deprecated, please use p-field")}componentWillRender(){this._setInputClasses()}render(){const{hasHeaderSlot:t,helper:e,label:s,prefix:r,suffix:n,errorAndErrorIsNotBoolean:a,errorVariant:d}=this._getSlotInfo();return i(o,{key:"3b64813ba6c1b60adfc2d00b992c3f6b031444b8",class:`p-input-group ${this.error?.length&&"error"} ${this.disabled&&"disabled"} ${this.focused&&"focused"} size-${this.size}`},i("div",{key:"4ce62abdb4c16aa68b8d28197a852c47108f21ad",class:"flex items-end justify-between"},s&&i("div",{key:"b655dd1ef55d37287c3b17a579497139f169f84b",class:"input-label",onClick:()=>this._focusInput()},s,this.required&&i("span",{key:"7d79cabfba9cd13ab5adaf04a8bd2665974f9a1e",class:"ml-1 text-negative"},"*")),(e||t)&&i("div",{key:"e4e8edc368c460d6caa122e7c2555298968f693a",class:"input-header"},t&&i("slot",{key:"b192742c644473dd5a47009c59d6341294b5b68c",name:"header"}),e&&i("p-helper",{key:"793bb03d5d343b9cb13e85ca5427e4af2aa0aa6d",class:`flex ${t?"ml-2":""}`,placement:"top-end"},e))),i("p-tooltip",{key:"e608346e57da2bfee29e1d23c4f9cc78f8dcc4e9",class:"w-full",variant:"error",content:this.error,show:a&&d==="element"&&(this.forceShowTooltip||this._forceShowTooltip),enableUserInput:false},i("div",{key:"e56a794eec36a1dd6ff37998882206ca48b0ca0f",class:"content",slot:"trigger"},(r||this.icon&&this.iconPosition==="start")&&i("div",{key:"f7b2eb5147f395ccbcb6672a620dcd8d7310e9f1",class:`prefix size-${this.size}`,onClick:()=>this._focusInput()},this.icon&&this.iconPosition==="start"?i("p-icon",{class:"flex",variant:this.icon,rotate:this.iconRotate,flip:this.iconFlip}):r),(n||a&&d==="icon"||this.icon&&this.iconPosition==="end")&&i("div",{key:"3f47b919dfbbb65f77a4480d2d7e6ff92f01f205",class:`suffix size-${this.size}`,onClick:()=>this._focusInput()},a&&d==="icon"?i("p-input-error",{error:this.error,forceShowTooltip:this.forceShowTooltip||this._forceShowTooltip}):this.icon&&this.iconPosition==="end"?i("p-icon",{class:"flex",variant:this.icon,rotate:this.iconRotate,flip:this.iconFlip}):n),i("slot",{key:"bb147b856fa160f2266eb80fb373150bb58e67a1",name:"input"}))))}handleFocusIn(){this._forceShowTooltip=true}handleFocusOut(){this._forceShowTooltip=false}_setInputClasses(){const t=this._el.querySelector(':scope > [slot="input"]');if(!t){return}const e=t.tagName.toLowerCase();if(this._whitelistedTags.indexOf(e)===-1){return}if(!t.classList.contains("p-input")){t.classList.add("p-input")}const{prefix:i,suffix:o,errorAndErrorIsNotBoolean:s,errorVariant:r}=this._getSlotInfo();if(o||s&&r==="icon"||this.icon&&this.iconPosition==="end"){t.classList.add("border-r-0","rounded-tr-none","rounded-br-none","pr-0")}else{t.classList.remove("border-r-0","rounded-tr-none","rounded-br-none","pr-0")}if(i||this.icon&&this.iconPosition==="start"){t.classList.add("border-l-0","rounded-tl-none","rounded-bl-none","pl-0")}else{t.classList.remove("border-l-0","rounded-tl-none","rounded-bl-none","pl-0")}if(this.size==="small"&&!t.classList.contains("size-small")){t.classList.add("size-small")}if(this.size!=="small"&&t.classList.contains("size-small")){t.classList.remove("size-small")}}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]');const e=!!this._el.querySelector(':scope > [slot="label"]');const o=!!this._el.querySelector(':scope > [slot="prefix"]');const s=!!this._el.querySelector(':scope > [slot="suffix"]');const r=!!this._el.querySelector(':scope > [slot="header"]');const n=t?i("slot",{name:"helper"}):this.helper;const a=e?i("slot",{name:"label"}):this.label;const d=o?i("slot",{name:"prefix"}):this.prefix;const l=s?i("slot",{name:"suffix"}):this.suffix;const p=this.error&&typeof this.error==="string"&&this.error!=="true";return{hasHelperSlot:t,hasLabelSlot:e,hasPrefixSlot:o,hasSuffixSlot:s,hasHeaderSlot:r,helper:n,label:a,prefix:d,suffix:l,errorAndErrorIsNotBoolean:p,errorVariant:this.errorVariant==="auto"?this._el.offsetWidth<=72?"element":"icon":this.errorVariant}}_focusInput(){const t=this._el.querySelector(':scope > [slot="input"]');t[this.focusMethod]()}};n.style=r;export{n as p_input_group};
|
|
2
|
+
//# sourceMappingURL=p-76e05fbf.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,g as e,h as s,H as r}from"./p-45ded510.js";import{c as n}from"./p-3b8209bc.js";import{c as h}from"./p-8a5b8196.js";import"./p-8a1a6e56.js";const a="*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.sticky{position:sticky!important}.top-0{top:0!important}.mb-3{margin-bottom:.75rem!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.h-\\[1\\.625rem\\]{height:1.625rem!important}.h-full{height:100%!important}.w-6{width:1.5rem!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.flex-1{flex:1 1 0%!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.whitespace-nowrap{white-space:nowrap!important}.rounded{border-radius:.25rem!important}.rounded-lg{border-radius:.5rem!important}.bg-supportive-lilac-100{--tw-bg-opacity:1!important;background-color:rgb(246 239 255/var(--tw-bg-opacity,1))!important}.p-2{padding:.5rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-center{text-align:center!important}.text-start{text-align:start!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-black-teal-400{--tw-text-opacity:1!important;color:rgb(53 85 80/var(--tw-text-opacity,1))!important}.text-supportive-lilac{--tw-text-opacity:1!important;color:rgb(209 174 255/var(--tw-text-opacity,1))!important}.text-teal-800{--tw-text-opacity:1!important;color:rgb(2 102 92/var(--tw-text-opacity,1))!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.group\\/item:hover .group-hover\\/item\\:text-supportive-lilac-800{--tw-text-opacity:1!important;color:rgb(189 140 255/var(--tw-text-opacity,1))!important}";const o=a;const l=h(["flex items-center gap-2","flex-1 min-w-0 h-full","pointer-events-none overflow-hidden"]);const p=h(["item group/item","pointer-events-auto cursor-pointer","flex h-[1.625rem] items-center gap-2","h-[1.625rem] px-2","text-sm font-semibold whitespace-nowrap","rounded-lg","bg-supportive-lilac-100"]);const c=h("block w-full overflow-hidden text-ellipsis whitespace-nowrap text-start",{variants:{variant:{placeholder:"text-black-teal-400",default:null}}});const u=class{constructor(e){t(this,e);this.queryChange=i(this,"queryChange",3);this.valueChange=i(this,"valueChange",3);this.selectAllChange=i(this,"selectAllChange",3);this.dropdownShown=i(this,"dropdownShown",3);this.add=i(this,"add",3);this.items=undefined;this.multi=undefined;this.usePortal=false;this.strategy="absolute";this.icon=undefined;this.query=undefined;this.placeholder=undefined;this.autocompletePlaceholder="Search...";this.value=undefined;this.displayKey="text";this.dropdownDisplayKey=undefined;this.selectionDisplayKey=undefined;this.valueKey=undefined;this.avatarKey=undefined;this.iconKey=undefined;this.showIconInSelectedItem=undefined;this.classKey="class";this.applyClassOnSelectedItem=undefined;this.avatarLettersKey=undefined;this.identifierKey=undefined;this.queryKey=undefined;this.autoSelectFirst=true;this.showChevron=true;this.maxDisplayedItems=10;this.enableAutocomplete=true;this.asyncFilter=false;this.loading=false;this.enableSelectAll=false;this.selectAllText="Select all";this.selectAllIcon=undefined;this.size="base";this.prefix=undefined;this.label=undefined;this.helper=undefined;this.required=true;this.error=undefined;this.disabled=false;this.showAddItem=false;this.addItemText="Add item";this.emptyStateText="No items available";this._showDropdown=false;this._selectedItem=null;this._allSelected=false;this._amountHidden=0}queryChange;valueChange;selectAllChange;dropdownShown;add;get _el(){return e(this)}_inputRef;autocompleteInputRef;_multiContainerRef;_resizeObserver;_resizeDebounceTimer;_checkSelectedItemsTimeout;get _items(){return this._getParsedItems()}get _displayValue(){const t=s("div",{class:c({variant:"placeholder"})},this.placeholder);if(!this._selectedItem){return t}if(this.multi){if(this._selectedItem?.length===0){return t}return s("div",{class:l(),ref:t=>this._multiContainerRef=t},this._selectedItem.map((t=>s("div",{class:p(),onClick:()=>this._selectValue(t)},t[this.selectionDisplayKey??this.displayKey],s("p-icon",{class:"text-xs text-supportive-lilac group-hover/item:text-supportive-lilac-800",variant:"negative"})))),s("div",{class:"extra pointer-events-none hidden text-sm text-black-teal-100"},"+",this._amountHidden))}return this._getDisplay(this._selectedItem,true)}get _identifierKey(){return this.identifierKey??this.valueKey??"value"}componentDidLoad(){if(!this.valueKey&&!this.identifierKey){throw new Error("You must provide a valueKey or identifierKey")}if(this.multi){this._setMultiContainerMaxWidth();this._resizeObserver=new ResizeObserver((()=>{if(this._resizeDebounceTimer){clearTimeout(this._resizeDebounceTimer);this._resizeDebounceTimer=null}this._resizeDebounceTimer=setTimeout((()=>{this._setMultiContainerMaxWidth();this._setCheckSelectedItemsTimeout()}),200)}));this._resizeObserver.observe(this._el)}if(this.value){this._valueChange();return}this.itemChanges()}componentDidRender(){if(this.multi){this._setMultiContainerMaxWidth()}}disconnectedCallback(){if(this.multi){this._resizeObserver.disconnect()}}render(){return s(r,{key:"5fca82e69df3bcdbff0b946c4ae1335f7bee738a",class:"p-select"},s("p-dropdown",{key:"c5fab92fa37891c3bf00cd7d512a0c8484267e6b",disableTriggerClick:true,calculateWidth:true,insideClick:true,scrollable:this.enableAutocomplete?"large":true,show:this._showDropdown,onIsOpen:t=>this._onDropdownOpen(t),usePortal:this.usePortal,strategy:this.strategy},s("p-field-container",{key:"85d39bac84e07e015c8d643a2f2372dfc259e9b6",slot:"trigger",prefix:this.prefix,label:this.label,helper:this.helper,required:this.required,error:this.error,errorPlacement:"top-start",forceShowTooltip:this.error?.length&&this._showDropdown},s("p-button",{key:"62659969a3ea8c096af2f288b19a313cd3063254",class:"w-full",slot:"content",variant:"secondary",size:this.size,chevron:this.showChevron,disabled:this.disabled,active:this._showDropdown,icon:this.icon,onClick:t=>this._onClick(t)},s("div",{key:"8c1bb55bde3a7080f535c86709d010bd82a8c971",class:"relative flex-1",ref:t=>this._inputRef=t},this._displayValue))),this.loading?this._getLoadingItems():this._getItems(),this.showAddItem&&this._getAddItem()))}documentClickHandler({target:t}){if(!this._showDropdown||n(t,this._el)){return}this._showDropdown=false}_valueChange(){setTimeout((()=>{this._preselectItem();this._setCheckSelectedItemsTimeout()}))}itemChanges(){setTimeout((()=>this._preselectItem()))}_showDropdownChanges(){this.dropdownShown.emit({value:this._showDropdown,query:this.query})}multiChanges(){if(this._selectedItem&&!Array.isArray(this._selectedItem)){this._selectedItem=[]}}_preselectItem(){let t=typeof this.value==="string"&&this.multi?JSON.parse(this.value):this.value;if(this.multi){if(!Array.isArray(t)){this.value=[];this.valueChange.emit(this.value);return}this.value=t;if(!t.length){this._selectedItem=[];return}this._selectedItem=!!this.valueKey&&this.valueKey!=="false"?this._items.filter((i=>t.includes(i?.[this.valueKey]))):[...t];return}if(!this._selectedItem&&!t&&this.autoSelectFirst){t=this._items[0]}const i=typeof t==="object"&&t!==null?t[this._identifierKey]:t;const e=typeof i==="string"||typeof i==="number"?i:JSON.stringify(i);const s=this._selectedItem?this._selectedItem?.[this._identifierKey]:null;const r=typeof s==="string"||typeof s==="number"?s:JSON.stringify(s);if(this._selectedItem&&r===e){return}if(!this._items?.length&&t){this._selectValue(t,false);return}const n=this._getParsedItems(false);const h=n.find((t=>{const i=t?.[this._identifierKey];const s=typeof i==="string"||typeof i==="number"?i:JSON.stringify(i);return s===e}));this._selectValue(!!h?h:t,false)}_selectValue(t,i=true){let e=!!this.valueKey&&this.valueKey!=="false"&&t!==null?t?.[this.valueKey]:t;if(this.multi){if(!this._selectedItem||!Array.isArray(this._selectedItem)){this._selectedItem=[]}if(!this.value||!Array.isArray(this.value)){this.value=[]}const i=[...this._selectedItem];const s=[...this.value];const r=i.findIndex((i=>i[this._identifierKey]===t[this._identifierKey]));if(r===-1){i.push(t);s.push(e)}else{i.splice(r,1);s.splice(r,1)}this._selectedItem=i;this.value=s;this.valueChange.emit(s);return}this._selectedItem=t;this.value=e;this.valueChange.emit(e);this._onBlur(i)}_findOnClickTarget(t){if(t.nodeName.toLowerCase()==="p-button"){return true}if(t.classList.contains("item")){return false}return this._findOnClickTarget(t.parentElement)}_onClick(t){if(!this._findOnClickTarget(t.target)){return}this._showDropdown=!this._showDropdown}_onBlur(t=false){if(this.enableAutocomplete&&!t){return}this._showDropdown=false}_onAutoComplete(t){if(!this.enableAutocomplete){return}this._showDropdown=true;this.query=t.detail;this.queryChange.emit(t.detail)}_checkvalue(t,i){return i?.[t]?.toString()?.toLowerCase().indexOf(this.query?.toLowerCase())>=0}_getItems(){let t=this._items.map((t=>s("p-dropdown-menu-item",{useContainer:false,onClick:()=>this._selectValue(t),active:this.multi&&!!this._selectedItem&&Array.isArray(this._selectedItem)?this._selectedItem.findIndex((i=>i[this._identifierKey]===t[this._identifierKey]))>=0:t[this._identifierKey]===this._selectedItem?.[this._identifierKey],checkbox:this.multi?true:false,slot:"items"},this._getDisplay(t))));if(!this._items.length){t=[s("p",{class:"w-full p-2 text-center text-sm text-black-teal-400",slot:"items"},this.emptyStateText)]}if(this.enableSelectAll&&this._items.length){t.unshift(s("p-dropdown-menu-item",{slot:"items",useContainer:false,checkbox:true,onClick:()=>this._selectAllChange(),active:this._allSelected},this.selectAllIcon?.length?s("span",{class:"flex items-center gap-2"},s("div",{class:"flex w-6 justify-center text-lg"},s("p-icon",{variant:this.selectAllIcon}))," ",this.selectAllText):this.selectAllText))}if(this.enableAutocomplete){t.unshift(this._getAutoCompleteItem())}return t}_getAddItem(){return s("p-dropdown-menu-item",{onClick:()=>this.add.emit(),useContainer:false,slot:"items"},s("span",{class:"flex items-center gap-1 font-semibold text-teal-800"},this.addItemText,s("p-icon",{variant:"plus"})))}_getLoadingItems(){const t=[0,0,0].map((()=>s("p-dropdown-menu-item",{enableHover:false,slot:"items"},s("p-loader",{variant:"ghost",class:"h-6 w-full rounded"}))));if(this.enableAutocomplete){t.unshift(this._getAutoCompleteItem())}return t}_getAutoCompleteItem(){return s("div",{class:"sticky top-0 mb-3 h-8",slot:"items"},s("p-field",{class:"block",placeholder:this.autocompletePlaceholder,onValueChange:t=>this._onAutoComplete(t),onInputRefChange:t=>this.autocompleteInputRef=t.detail,value:this.query}))}_setMultiContainerMaxWidth(){if(!this._inputRef||!this._multiContainerRef){return}this._multiContainerRef.style.maxWidth=`${this._inputRef.clientWidth-16}px`}_setCheckSelectedItemsTimeout(){if(this._checkSelectedItemsTimeout){clearTimeout(this._checkSelectedItemsTimeout)}this._checkSelectedItemsTimeout=setTimeout((()=>this._checkSelectedItems()),50)}_checkSelectedItems(){if(!this._multiContainerRef){return}const t=this._multiContainerRef.getBoundingClientRect();const i=this._multiContainerRef.querySelectorAll(".item");let e=0;for(const s of i){s.classList.remove("hidden");s.classList.add("flex");const i=s.getBoundingClientRect();if(i.right>t.right){s.classList.remove("flex");s.classList.add("hidden");e++;continue}}this._amountHidden=e;const s=this._multiContainerRef.querySelector(".extra");if(!s){return}if(!s.classList.contains("hidden")){s.classList.add("hidden")}if(e>0){s.classList.remove("hidden")}}_onDropdownOpen(t){if(!t.detail||!this.autocompleteInputRef){return}this.autocompleteInputRef.focus()}_selectAllChange(){this._allSelected=!this._allSelected;this.selectAllChange.emit(this._allSelected)}_getDisplay(t,i=false){let e=s("div",{class:c({variant:"default"})},t[i?this.selectionDisplayKey??this.displayKey:this.displayKey]);if(this.avatarKey){e=s("span",{class:"flex items-center gap-2"},s("p-avatar",{size:"sm",src:t[this.avatarKey],letters:t[this.avatarLettersKey]}),s("div",{class:c({variant:"default"})},t[this.dropdownDisplayKey??this.displayKey]))}if(this.iconKey&&(!i||this.showIconInSelectedItem)){e=s("span",{class:"flex items-center gap-2"},s("p-icon",{variant:t[this.iconKey]}),s("div",{class:c({variant:"default"})},t[this.dropdownDisplayKey??this.displayKey]))}if((!i||this.applyClassOnSelectedItem)&&!!t?.class?.length){return s("div",{class:t.class},e)}return e}_getParsedItems(t=true){if(!this.items||this.loading){return[]}let i=typeof this.items==="string"?JSON.parse(this.items):this.items;if(typeof i?.[0]==="string"){this.displayKey="text";this.valueKey="value";i=i.map((t=>({value:t,text:t})))}if(this.query?.length&&!this.asyncFilter){i=i.filter((t=>{if(this.queryKey){return this._checkvalue(this.queryKey,t)}return this._checkvalue(this._identifierKey,t)||this._checkvalue(this.displayKey,t)}))}if(!t){return i}return i?.slice(0,this.maxDisplayedItems)}static get watchers(){return{value:["_valueChange"],items:["itemChanges"],_showDropdown:["_showDropdownChanges"],multi:["multiChanges"]}}};u.style=o;export{u as p_select};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,g as e,h as s,H as r}from"./p-45ded510.js";import{c as n}from"./p-3b8209bc.js";import{c as h}from"./p-8a5b8196.js";import"./p-8a1a6e56.js";const a="*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.sticky{position:sticky!important}.top-0{top:0!important}.mb-3{margin-bottom:.75rem!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.h-\\[1\\.625rem\\]{height:1.625rem!important}.h-full{height:100%!important}.w-6{width:1.5rem!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.flex-1{flex:1 1 0%!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.whitespace-nowrap{white-space:nowrap!important}.rounded{border-radius:.25rem!important}.rounded-lg{border-radius:.5rem!important}.bg-supportive-lilac-100{--tw-bg-opacity:1!important;background-color:rgb(246 239 255/var(--tw-bg-opacity,1))!important}.p-2{padding:.5rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-center{text-align:center!important}.text-start{text-align:start!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-black-teal-400{--tw-text-opacity:1!important;color:rgb(53 85 80/var(--tw-text-opacity,1))!important}.text-supportive-lilac{--tw-text-opacity:1!important;color:rgb(209 174 255/var(--tw-text-opacity,1))!important}.text-teal-800{--tw-text-opacity:1!important;color:rgb(2 102 92/var(--tw-text-opacity,1))!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.group\\/item:hover .group-hover\\/item\\:text-supportive-lilac-800{--tw-text-opacity:1!important;color:rgb(189 140 255/var(--tw-text-opacity,1))!important}";const o=a;const l=h(["flex items-center gap-2","flex-1 min-w-0 h-full","pointer-events-none overflow-hidden"]);const p=h(["item group/item","pointer-events-auto cursor-pointer","flex h-[1.625rem] items-center gap-2","h-[1.625rem] px-2","text-sm font-semibold whitespace-nowrap","rounded-lg","bg-supportive-lilac-100"]);const c=h("block w-full overflow-hidden text-ellipsis whitespace-nowrap text-start",{variants:{variant:{placeholder:"text-black-teal-400",default:null}}});const u=class{constructor(e){t(this,e);this.queryChange=i(this,"queryChange",3);this.valueChange=i(this,"valueChange",3);this.selectAllChange=i(this,"selectAllChange",3);this.dropdownShown=i(this,"dropdownShown",3);this.add=i(this,"add",3);this.items=undefined;this.multi=undefined;this.usePortal=false;this.strategy="absolute";this.icon=undefined;this.query=undefined;this.placeholder=undefined;this.autocompletePlaceholder="Search...";this.value=undefined;this.displayKey="text";this.dropdownDisplayKey=undefined;this.selectionDisplayKey=undefined;this.valueKey=undefined;this.avatarKey=undefined;this.iconKey=undefined;this.showIconInSelectedItem=undefined;this.classKey="class";this.applyClassOnSelectedItem=undefined;this.avatarLettersKey=undefined;this.identifierKey=undefined;this.queryKey=undefined;this.autoSelectFirst=true;this.showChevron=true;this.maxDisplayedItems=10;this.enableAutocomplete=true;this.asyncFilter=false;this.loading=false;this.enableSelectAll=false;this.selectAllText="Select all";this.selectAllIcon=undefined;this.size="base";this.prefix=undefined;this.label=undefined;this.helper=undefined;this.required=true;this.error=undefined;this.disabled=false;this.showAddItem=false;this.addItemText="Add item";this.emptyStateText="No items available";this._showDropdown=false;this._selectedItem=null;this._allSelected=false;this._amountHidden=0}queryChange;valueChange;selectAllChange;dropdownShown;add;get _el(){return e(this)}_inputRef;autocompleteInputRef;_multiContainerRef;_resizeObserver;_resizeDebounceTimer;_checkSelectedItemsTimeout;get _items(){return this._getParsedItems()}get _displayValue(){const t=s("div",{class:c({variant:"placeholder"})},this.placeholder);if(!this._selectedItem){return t}if(this.multi){if(this._selectedItem?.length===0){return t}return s("div",{class:l(),ref:t=>this._multiContainerRef=t},this._selectedItem.map((t=>s("div",{class:p(),onClick:()=>this._selectValue(t)},t[this.selectionDisplayKey??this.displayKey],s("p-icon",{class:"text-xs text-supportive-lilac group-hover/item:text-supportive-lilac-800",variant:"negative"})))),s("div",{class:"extra pointer-events-none hidden text-sm text-black-teal-100"},"+",this._amountHidden))}return this._getDisplay(this._selectedItem,true)}get _identifierKey(){return this.identifierKey??this.valueKey??"value"}componentDidLoad(){if(!this.valueKey&&!this.identifierKey){throw new Error("You must provide a valueKey or identifierKey")}if(this.multi){this._setMultiContainerMaxWidth();this._resizeObserver=new ResizeObserver((()=>{if(this._resizeDebounceTimer){clearTimeout(this._resizeDebounceTimer);this._resizeDebounceTimer=null}this._resizeDebounceTimer=setTimeout((()=>{this._setMultiContainerMaxWidth();this._setCheckSelectedItemsTimeout()}),200)}));this._resizeObserver.observe(this._el)}if(this.value){this._valueChange();return}this.itemChanges()}componentDidRender(){if(this.multi){this._setMultiContainerMaxWidth()}}disconnectedCallback(){if(this.multi){this._resizeObserver.disconnect()}}render(){return s(r,{key:"db98edf55c36424552813113641795ff7b307a8f",class:"p-select"},s("p-dropdown",{key:"1ac5cdc93f991f2fdf2c2e270466392b4aa9ac8a",disableTriggerClick:true,calculateWidth:true,insideClick:true,scrollable:this.enableAutocomplete?"large":true,show:this._showDropdown,onIsOpen:t=>this._onDropdownOpen(t),usePortal:this.usePortal,strategy:this.strategy},s("p-field-container",{key:"3ca712583d0404aee7ad05b64f24f80fa28529ea",slot:"trigger",prefix:this.prefix,label:this.label,helper:this.helper,required:this.required,error:this.error,errorPlacement:"top-start",forceShowTooltip:this.error?.length&&this._showDropdown},s("p-button",{key:"0364ec672857ece310947f1b5685505cc69b9cc3",class:"w-full",slot:"content",variant:"secondary",size:this.size,chevron:this.showChevron,disabled:this.disabled,active:this._showDropdown,icon:this.icon,onClick:t=>this._onClick(t)},s("div",{key:"1fdadddd49a027ec44c95b703ddfb18eb5112ab4",class:"relative flex-1",ref:t=>this._inputRef=t},this._displayValue))),this.loading?this._getLoadingItems():this._getItems(),this.showAddItem&&this._getAddItem()))}documentClickHandler({target:t}){if(!this._showDropdown||n(t,this._el)){return}this._showDropdown=false}_valueChange(){setTimeout((()=>{this._preselectItem();this._setCheckSelectedItemsTimeout()}))}itemChanges(){setTimeout((()=>this._preselectItem()))}_showDropdownChanges(){this.dropdownShown.emit({value:this._showDropdown,query:this.query})}multiChanges(){if(this._selectedItem&&!Array.isArray(this._selectedItem)){this._selectedItem=[]}}_preselectItem(){let t=typeof this.value==="string"&&this.multi?JSON.parse(this.value):this.value;if(this.multi){if(!Array.isArray(t)){this.value=[];this.valueChange.emit(this.value);return}this.value=t;if(!t.length){this._selectedItem=[];return}this._selectedItem=!!this.valueKey&&this.valueKey!=="false"?this._items.filter((i=>t.includes(i?.[this.valueKey]))):[...t];return}if(!this._selectedItem&&!t&&this.autoSelectFirst){t=this._items[0]}const i=typeof t==="object"&&t!==null?t[this._identifierKey]:t;const e=typeof i==="string"||typeof i==="number"?i:JSON.stringify(i);const s=this._selectedItem?this._selectedItem?.[this._identifierKey]:null;const r=typeof s==="string"||typeof s==="number"?s:JSON.stringify(s);if(this._selectedItem&&r===e){return}if(!this._items?.length&&t){this._selectValue(t,false);return}const n=this._getParsedItems(false);const h=n.find((t=>{const i=t?.[this._identifierKey];const s=typeof i==="string"||typeof i==="number"?i:JSON.stringify(i);return s===e}));this._selectValue(!!h?h:t,false)}_selectValue(t,i=true){let e=!!this.valueKey&&this.valueKey!=="false"&&t!==null?t?.[this.valueKey]:t;if(this.multi){if(!this._selectedItem||!Array.isArray(this._selectedItem)){this._selectedItem=[]}if(!this.value||!Array.isArray(this.value)){this.value=[]}const i=[...this._selectedItem];const s=[...this.value];const r=i.findIndex((i=>i[this._identifierKey]===t[this._identifierKey]));if(r===-1){i.push(t);s.push(e)}else{i.splice(r,1);s.splice(r,1)}this._selectedItem=i;this.value=s;this.valueChange.emit(s);return}this._selectedItem=t;this.value=e;this.valueChange.emit(e);this._onBlur(i)}_findOnClickTarget(t){if(t.nodeName.toLowerCase()==="p-button"){return true}if(t.classList.contains("item")){return false}return this._findOnClickTarget(t.parentElement)}_onClick(t){if(!this._findOnClickTarget(t.target)){return}this._showDropdown=!this._showDropdown}_onBlur(t=false){if(this.enableAutocomplete&&!t){return}this._showDropdown=false}_onAutoComplete(t){if(!this.enableAutocomplete){return}this._showDropdown=true;this.query=t.detail;this.queryChange.emit(t.detail)}_checkvalue(t,i){return i?.[t]?.toString()?.toLowerCase().indexOf(this.query?.toLowerCase())>=0}_getItems(){let t=this._items.map((t=>s("p-dropdown-menu-item",{useContainer:false,onClick:()=>this._selectValue(t),active:this.multi&&!!this._selectedItem&&Array.isArray(this._selectedItem)?this._selectedItem.findIndex((i=>i[this._identifierKey]===t[this._identifierKey]))>=0:t[this._identifierKey]===this._selectedItem?.[this._identifierKey],checkbox:this.multi?true:false,slot:"items"},this._getDisplay(t))));if(!this._items.length){t=[s("p",{class:"w-full p-2 text-center text-sm text-black-teal-400",slot:"items"},this.emptyStateText)]}if(this.enableSelectAll&&this._items.length){t.unshift(s("p-dropdown-menu-item",{slot:"items",useContainer:false,checkbox:true,onClick:()=>this._selectAllChange(),active:this._allSelected},this.selectAllIcon?.length?s("span",{class:"flex items-center gap-2"},s("div",{class:"flex w-6 justify-center text-lg"},s("p-icon",{variant:this.selectAllIcon}))," ",this.selectAllText):this.selectAllText))}if(this.enableAutocomplete){t.unshift(this._getAutoCompleteItem())}return t}_getAddItem(){return s("p-dropdown-menu-item",{onClick:()=>this.add.emit(),useContainer:false,slot:"items"},s("span",{class:"flex items-center gap-1 font-semibold text-teal-800"},this.addItemText,s("p-icon",{variant:"plus"})))}_getLoadingItems(){const t=[0,0,0].map((()=>s("p-dropdown-menu-item",{enableHover:false,slot:"items"},s("p-loader",{variant:"ghost",class:"h-6 w-full rounded"}))));if(this.enableAutocomplete){t.unshift(this._getAutoCompleteItem())}return t}_getAutoCompleteItem(){return s("div",{class:"sticky top-0 mb-3 h-8",slot:"items"},s("p-field",{class:"block",placeholder:this.autocompletePlaceholder,onValueChange:t=>this._onAutoComplete(t),onInputRefChange:t=>this.autocompleteInputRef=t.detail,value:this.query}))}_setMultiContainerMaxWidth(){if(!this._inputRef||!this._multiContainerRef){return}this._multiContainerRef.style.maxWidth=`${this._inputRef.clientWidth-16}px`}_setCheckSelectedItemsTimeout(){if(this._checkSelectedItemsTimeout){clearTimeout(this._checkSelectedItemsTimeout)}this._checkSelectedItemsTimeout=setTimeout((()=>this._checkSelectedItems()),50)}_checkSelectedItems(){if(!this._multiContainerRef){return}const t=this._multiContainerRef.getBoundingClientRect();const i=this._multiContainerRef.querySelectorAll(".item");let e=0;for(const s of i){s.classList.remove("hidden");s.classList.add("flex");const i=s.getBoundingClientRect();if(i.right>t.right){s.classList.remove("flex");s.classList.add("hidden");e++;continue}}this._amountHidden=e;const s=this._multiContainerRef.querySelector(".extra");if(!s){return}if(!s.classList.contains("hidden")){s.classList.add("hidden")}if(e>0){s.classList.remove("hidden")}}_onDropdownOpen(t){if(!t.detail||!this.autocompleteInputRef){return}this.autocompleteInputRef.focus()}_selectAllChange(){this._allSelected=!this._allSelected;this.selectAllChange.emit(this._allSelected)}_getDisplay(t,i=false){let e=s("div",{class:c({variant:"default"})},t[i?this.selectionDisplayKey??this.displayKey:this.displayKey]);if(this.avatarKey){e=s("span",{class:"flex items-center gap-2"},s("p-avatar",{size:"sm",src:t[this.avatarKey],letters:t[this.avatarLettersKey]}),s("div",{class:c({variant:"default"})},t[this.dropdownDisplayKey??this.displayKey]))}if(this.iconKey&&(!i||this.showIconInSelectedItem)){e=s("span",{class:"flex items-center gap-2"},s("p-icon",{variant:t[this.iconKey]}),s("div",{class:c({variant:"default"})},t[this.dropdownDisplayKey??this.displayKey]))}if((!i||this.applyClassOnSelectedItem)&&!!t?.class?.length){return s("div",{class:t.class},e)}return e}_getParsedItems(t=true){if(!this.items||this.loading){return[]}let i=typeof this.items==="string"?JSON.parse(this.items):this.items;if(typeof i?.[0]==="string"){this.displayKey="text";this.valueKey="value";i=i.map((t=>({value:t,text:t})))}if(this.query?.length&&!this.asyncFilter){i=i.filter((t=>{if(this.queryKey){return this._checkvalue(this.queryKey,t)}return this._checkvalue(this._identifierKey,t)||this._checkvalue(this.displayKey,t)}))}if(!t){return i}return i?.slice(0,this.maxDisplayedItems)}static get watchers(){return{value:["_valueChange"],items:["itemChanges"],_showDropdown:["_showDropdownChanges"],multi:["multiChanges"]}}};u.style=o;export{u as p_select};
|
|
2
|
+
//# sourceMappingURL=p-7df156a4.entry.js.map
|