@paperless/core 2.0.1-beta.30 → 2.0.1-beta.31
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 +11 -0
- package/dist/build/p-03c70942.entry.js +2 -0
- package/dist/build/{p-638d2138.entry.js → p-096eaf0d.entry.js} +2 -2
- package/dist/{paperless/p-b26d5130.entry.js → build/p-0cd0a8d2.entry.js} +2 -2
- package/dist/build/p-0e1c6375.entry.js +2 -0
- package/dist/build/p-0e1c6375.entry.js.map +1 -0
- package/dist/build/{p-8d165db5.entry.js → p-0ffb8f53.entry.js} +2 -2
- package/dist/build/{p-3b5242e9.entry.js → p-167a6397.entry.js} +2 -2
- package/dist/build/{p-98e3f82a.entry.js → p-28f44624.entry.js} +2 -2
- package/dist/{paperless/p-0c040d86.entry.js → build/p-29c71645.entry.js} +2 -2
- package/dist/build/p-2f613a2a.entry.js +2 -0
- package/dist/{paperless/p-c60e5c3d.entry.js → build/p-3023e8dc.entry.js} +2 -2
- package/dist/build/{p-96ad9c58.entry.js → p-39e51563.entry.js} +2 -2
- package/dist/build/{p-6f3a4499.entry.js → p-3e2708de.entry.js} +2 -2
- package/dist/build/{p-04f4b015.entry.js → p-3f0837c4.entry.js} +2 -2
- package/dist/build/p-3f0837c4.entry.js.map +1 -0
- package/dist/build/{p-68647b9e.entry.js → p-401ff01b.entry.js} +2 -2
- package/dist/{paperless/p-b59372b5.entry.js → build/p-4baaed44.entry.js} +2 -2
- package/dist/build/p-4cef76cf.entry.js +2 -0
- package/dist/build/{p-4a642ff9.entry.js → p-52056fb3.entry.js} +2 -2
- package/dist/build/{p-62843ca0.entry.js → p-52fe40e3.entry.js} +2 -2
- package/dist/build/{p-d31d6714.entry.js → p-5779d316.entry.js} +2 -2
- package/dist/build/{p-52ff5017.entry.js → p-697ed735.entry.js} +2 -2
- package/dist/build/{p-a6ccc70e.entry.js → p-7b72764c.entry.js} +2 -2
- package/dist/build/{p-955d149f.entry.js → p-7c0e0f80.entry.js} +2 -2
- package/dist/build/{p-ecf2818a.js → p-850c70f0.js} +1 -1
- package/dist/build/{p-f173bb97.entry.js → p-8b1a485b.entry.js} +2 -2
- package/dist/build/{p-2f821184.entry.js → p-8f4a3d49.entry.js} +2 -2
- package/dist/build/p-904049ba.entry.js +2 -0
- package/dist/{paperless/p-92f5d9d5.entry.js.map → build/p-904049ba.entry.js.map} +1 -1
- package/dist/build/{p-ed06230b.entry.js → p-9231fe88.entry.js} +2 -2
- package/dist/build/{p-963f037a.entry.js → p-9406a32e.entry.js} +2 -2
- package/dist/{paperless/p-610eb0ff.entry.js → build/p-9593cbb7.entry.js} +2 -2
- package/dist/{paperless/p-d19f3457.entry.js → build/p-9afd6c62.entry.js} +2 -2
- package/dist/{paperless/p-a93ce615.entry.js → build/p-a38a330d.entry.js} +2 -2
- package/dist/build/{p-f3d0ea94.entry.js → p-a9c13353.entry.js} +2 -2
- package/dist/{paperless/p-dc01bfa8.entry.js → build/p-b162a142.entry.js} +2 -2
- package/dist/build/{p-fdf020c9.entry.js → p-b542d0b6.entry.js} +2 -2
- package/dist/build/{p-9a0262b1.entry.js → p-c066c38b.entry.js} +2 -2
- package/dist/build/p-c801b122.entry.js +2 -0
- package/dist/build/{p-dfce711d.entry.js → p-cab0361a.entry.js} +2 -2
- package/dist/build/p-cd2cd75f.entry.js +2 -0
- package/dist/build/{p-4cb8f3db.entry.js → p-d058cdfc.entry.js} +2 -2
- package/dist/build/{p-a0fad3d8.entry.js → p-d1da42f4.entry.js} +2 -2
- package/dist/build/p-d1da42f4.entry.js.map +1 -0
- package/dist/{paperless/p-fb51eccd.entry.js → build/p-d26ee54b.entry.js} +2 -2
- package/dist/build/{p-45d789f5.entry.js → p-d82e4315.entry.js} +2 -2
- package/dist/build/{p-716a92ae.entry.js → p-d9bf1827.entry.js} +2 -2
- package/dist/build/{p-68ae68c8.entry.js → p-dd0f4ed0.entry.js} +2 -2
- package/dist/build/{p-1543f3a0.entry.js → p-df228603.entry.js} +2 -2
- package/dist/build/p-e078f787.entry.js +2 -0
- package/dist/build/{p-13e12e68.entry.js → p-e11ab3d2.entry.js} +2 -2
- package/dist/{paperless/p-971aac89.entry.js → build/p-e5a54d05.entry.js} +2 -2
- package/dist/build/{p-62b14ab7.entry.js → p-f05bf2d2.entry.js} +2 -2
- package/dist/build/{p-129d5cbd.entry.js → p-f762c735.entry.js} +2 -2
- package/dist/build/{p-57fc0eb5.entry.js → p-fa340d90.entry.js} +2 -2
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +4 -4
- package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/p-badge_3.cjs.entry.js +4 -4
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +4 -4
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-card-body.cjs.entry.js +1 -1
- package/dist/cjs/p-card-container.cjs.entry.js +1 -1
- package/dist/cjs/p-card-header.cjs.entry.js +2 -2
- package/dist/cjs/p-checkbox_3.cjs.entry.js +9 -9
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-counter.cjs.entry.js +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js +2 -2
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-divider.cjs.entry.js +1 -1
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +3 -3
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +2 -2
- package/dist/cjs/p-field_2.cjs.entry.js +5 -5
- package/dist/cjs/p-field_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +9 -9
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
- package/dist/cjs/p-helper_2.cjs.entry.js +5 -5
- package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
- package/dist/cjs/p-input-error.cjs.entry.js +1 -1
- package/dist/cjs/p-input-group.cjs.entry.js +3 -3
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +4 -4
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +2 -2
- package/dist/cjs/p-portal.cjs.entry.js +1 -1
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +3 -3
- package/dist/cjs/p-select.cjs.entry.js +1 -2
- package/dist/cjs/p-select.cjs.entry.js.map +1 -1
- package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
- package/dist/cjs/p-status.cjs.entry.js +2 -2
- package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +2 -2
- package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +3 -3
- package/dist/collection/components/atoms/avatar/avatar.component.js +1 -1
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +1 -1
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +2 -2
- package/dist/collection/components/atoms/badge/badge.component.js +1 -1
- package/dist/collection/components/atoms/card-body/card-body.component.js +1 -1
- package/dist/collection/components/atoms/card-container/card-container.component.js +1 -1
- package/dist/collection/components/atoms/card-header/card-header.component.js +2 -2
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +3 -3
- package/dist/collection/components/atoms/counter/counter.component.js +1 -1
- package/dist/collection/components/atoms/divider/divider.component.js +1 -1
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +1 -1
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +1 -1
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +1 -1
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +2 -2
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +3 -3
- package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.js +1 -1
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js +1 -1
- package/dist/collection/components/atoms/helper/helper.component.js +1 -1
- package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +1 -1
- package/dist/collection/components/atoms/layout/layout.component.js +1 -1
- package/dist/collection/components/atoms/modal-body/modal-body.component.js +1 -1
- package/dist/collection/components/atoms/modal-container/modal-container.component.js +1 -1
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +1 -1
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +1 -1
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +1 -1
- package/dist/collection/components/atoms/portal/portal.component.js +1 -1
- package/dist/collection/components/atoms/radio/radio.component.js +3 -3
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +2 -2
- 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.js +3 -3
- 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 +5 -5
- package/dist/collection/components/molecules/field/field.component.js.map +1 -1
- package/dist/collection/components/molecules/input-error/input-error.component.js +1 -1
- package/dist/collection/components/molecules/input-group/input-group.component.js +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 +1 -1
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/select/select.component.js +1 -2
- package/dist/collection/components/molecules/select/select.component.js.map +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-header/table-header.component.js +2 -2
- package/dist/collection/components/molecules/table-header/table-header.component.js.map +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/collection/components/organisms/table/table.component.js +2 -2
- package/dist/components/avatar.component.js +1 -1
- package/dist/components/backdrop.component.js +2 -2
- package/dist/components/badge.component.js +1 -1
- package/dist/components/button.component.js +4 -4
- package/dist/components/calendar.component.js +1 -1
- package/dist/components/checkbox.component.js +3 -3
- package/dist/components/divider.component.js +1 -1
- package/dist/components/drawer-body.component.js +1 -1
- package/dist/components/drawer-container.component.js +1 -1
- package/dist/components/drawer-header.component.js +1 -1
- package/dist/components/dropdown-menu-container.component.js +2 -2
- package/dist/components/dropdown-menu-item.component.js +3 -3
- package/dist/components/dropdown.component.js +3 -3
- package/dist/components/field.component.js +5 -5
- package/dist/components/field.component.js.map +1 -1
- package/dist/components/floating-menu-container.component.js +1 -1
- package/dist/components/floating-menu-item.component.js +1 -1
- package/dist/components/helper.component.js +1 -1
- package/dist/components/input-error.component.js +1 -1
- package/dist/components/modal-body.component.js +1 -1
- package/dist/components/modal-container.component.js +1 -1
- package/dist/components/modal-footer.component.js +1 -1
- package/dist/components/modal-header.component.js +1 -1
- package/dist/components/navigation-title.component.js +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +4 -4
- package/dist/components/p-avatar-group.js +1 -1
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-card-body.js +1 -1
- package/dist/components/p-card-container.js +1 -1
- package/dist/components/p-card-header.js +2 -2
- package/dist/components/p-content-slider.js +2 -2
- package/dist/components/p-counter.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +2 -2
- package/dist/components/p-iban-icon.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-input-group.js +3 -3
- package/dist/components/p-label.js +3 -3
- package/dist/components/p-layout.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +2 -2
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-radio.js +3 -3
- package/dist/components/p-select.js +1 -2
- package/dist/components/p-select.js.map +1 -1
- package/dist/components/p-status.js +2 -2
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-tab-group.js +1 -1
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table.js +2 -2
- package/dist/components/p-toast-container.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +3 -3
- package/dist/components/pagination-item.component.js +1 -1
- package/dist/components/pagination.component.js +1 -1
- package/dist/components/portal.component.js +1 -1
- package/dist/components/segment-container.component.js +1 -1
- package/dist/components/segment-item.component.js +2 -2
- package/dist/components/slider-indicator.component.js +1 -1
- package/dist/components/stepper-line.component.js +1 -1
- package/dist/components/table-cell.component.js +1 -1
- package/dist/components/table-container.component.js +1 -1
- package/dist/components/table-footer.component.js +1 -1
- package/dist/components/table-header.component.js +2 -2
- package/dist/components/table-header.component.js.map +1 -1
- package/dist/components/table-row.component.js +2 -2
- package/dist/components/tooltip.component.js +4 -4
- package/dist/esm/p-accordion.entry.js +1 -1
- package/dist/esm/p-attachment.entry.js +4 -4
- package/dist/esm/p-avatar-group.entry.js +1 -1
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-backdrop.entry.js +2 -2
- package/dist/esm/p-badge_3.entry.js +4 -4
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +4 -4
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-card-body.entry.js +1 -1
- package/dist/esm/p-card-container.entry.js +1 -1
- package/dist/esm/p-card-header.entry.js +2 -2
- package/dist/esm/p-checkbox_3.entry.js +9 -9
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-counter.entry.js +1 -1
- package/dist/esm/p-cropper.entry.js +2 -2
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-divider.entry.js +1 -1
- package/dist/esm/p-drawer-body_3.entry.js +3 -3
- package/dist/esm/p-dropdown-menu-container.entry.js +2 -2
- package/dist/esm/p-field_2.entry.js +5 -5
- package/dist/esm/p-field_2.entry.js.map +1 -1
- package/dist/esm/p-floating-menu-container_8.entry.js +9 -9
- package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
- package/dist/esm/p-helper_2.entry.js +5 -5
- package/dist/esm/p-iban-icon.entry.js +1 -1
- package/dist/esm/p-info-panel.entry.js +1 -1
- package/dist/esm/p-input-error.entry.js +1 -1
- package/dist/esm/p-input-group.entry.js +3 -3
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-modal-body_4.entry.js +4 -4
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +2 -2
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-navigation-title.entry.js +1 -1
- package/dist/esm/p-page-size-select_3.entry.js +2 -2
- package/dist/esm/p-portal.entry.js +1 -1
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +3 -3
- package/dist/esm/p-select.entry.js +1 -2
- package/dist/esm/p-select.entry.js.map +1 -1
- package/dist/esm/p-slider-indicator.entry.js +1 -1
- package/dist/esm/p-status.entry.js +2 -2
- package/dist/esm/p-stepper-item.entry.js +1 -1
- package/dist/esm/p-stepper-line.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-tab-group.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-table.entry.js +2 -2
- package/dist/esm/p-toast-container.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +3 -3
- package/dist/index.html +1 -1
- package/dist/paperless/p-03c70942.entry.js +2 -0
- package/dist/paperless/{p-638d2138.entry.js → p-096eaf0d.entry.js} +2 -2
- package/dist/{build/p-b26d5130.entry.js → paperless/p-0cd0a8d2.entry.js} +2 -2
- package/dist/paperless/p-0e1c6375.entry.js +2 -0
- package/dist/paperless/p-0e1c6375.entry.js.map +1 -0
- package/dist/paperless/{p-8d165db5.entry.js → p-0ffb8f53.entry.js} +2 -2
- package/dist/paperless/{p-3b5242e9.entry.js → p-167a6397.entry.js} +2 -2
- package/dist/paperless/{p-98e3f82a.entry.js → p-28f44624.entry.js} +2 -2
- package/dist/{build/p-0c040d86.entry.js → paperless/p-29c71645.entry.js} +2 -2
- package/dist/paperless/p-2f613a2a.entry.js +2 -0
- package/dist/{build/p-c60e5c3d.entry.js → paperless/p-3023e8dc.entry.js} +2 -2
- package/dist/paperless/{p-96ad9c58.entry.js → p-39e51563.entry.js} +2 -2
- package/dist/paperless/{p-6f3a4499.entry.js → p-3e2708de.entry.js} +2 -2
- package/dist/paperless/{p-04f4b015.entry.js → p-3f0837c4.entry.js} +2 -2
- package/dist/paperless/p-3f0837c4.entry.js.map +1 -0
- package/dist/paperless/{p-68647b9e.entry.js → p-401ff01b.entry.js} +2 -2
- package/dist/{build/p-b59372b5.entry.js → paperless/p-4baaed44.entry.js} +2 -2
- package/dist/paperless/p-4cef76cf.entry.js +2 -0
- package/dist/paperless/{p-4a642ff9.entry.js → p-52056fb3.entry.js} +2 -2
- package/dist/paperless/{p-62843ca0.entry.js → p-52fe40e3.entry.js} +2 -2
- package/dist/paperless/{p-d31d6714.entry.js → p-5779d316.entry.js} +2 -2
- package/dist/paperless/{p-52ff5017.entry.js → p-697ed735.entry.js} +2 -2
- package/dist/paperless/{p-a6ccc70e.entry.js → p-7b72764c.entry.js} +2 -2
- package/dist/paperless/{p-955d149f.entry.js → p-7c0e0f80.entry.js} +2 -2
- package/dist/paperless/{p-f173bb97.entry.js → p-8b1a485b.entry.js} +2 -2
- package/dist/paperless/{p-2f821184.entry.js → p-8f4a3d49.entry.js} +2 -2
- package/dist/paperless/p-904049ba.entry.js +2 -0
- package/dist/{build/p-92f5d9d5.entry.js.map → paperless/p-904049ba.entry.js.map} +1 -1
- package/dist/paperless/{p-ed06230b.entry.js → p-9231fe88.entry.js} +2 -2
- package/dist/paperless/{p-963f037a.entry.js → p-9406a32e.entry.js} +2 -2
- package/dist/{build/p-610eb0ff.entry.js → paperless/p-9593cbb7.entry.js} +2 -2
- package/dist/{build/p-d19f3457.entry.js → paperless/p-9afd6c62.entry.js} +2 -2
- package/dist/{build/p-a93ce615.entry.js → paperless/p-a38a330d.entry.js} +2 -2
- package/dist/paperless/{p-f3d0ea94.entry.js → p-a9c13353.entry.js} +2 -2
- package/dist/{build/p-dc01bfa8.entry.js → paperless/p-b162a142.entry.js} +2 -2
- package/dist/paperless/{p-fdf020c9.entry.js → p-b542d0b6.entry.js} +2 -2
- package/dist/paperless/{p-9a0262b1.entry.js → p-c066c38b.entry.js} +2 -2
- package/dist/paperless/p-c801b122.entry.js +2 -0
- package/dist/paperless/{p-dfce711d.entry.js → p-cab0361a.entry.js} +2 -2
- package/dist/paperless/p-cd2cd75f.entry.js +2 -0
- package/dist/paperless/{p-4cb8f3db.entry.js → p-d058cdfc.entry.js} +2 -2
- package/dist/paperless/{p-a0fad3d8.entry.js → p-d1da42f4.entry.js} +2 -2
- package/dist/paperless/p-d1da42f4.entry.js.map +1 -0
- package/dist/{build/p-fb51eccd.entry.js → paperless/p-d26ee54b.entry.js} +2 -2
- package/dist/paperless/{p-45d789f5.entry.js → p-d82e4315.entry.js} +2 -2
- package/dist/paperless/{p-716a92ae.entry.js → p-d9bf1827.entry.js} +2 -2
- package/dist/paperless/{p-68ae68c8.entry.js → p-dd0f4ed0.entry.js} +2 -2
- package/dist/paperless/{p-1543f3a0.entry.js → p-df228603.entry.js} +2 -2
- package/dist/paperless/p-e078f787.entry.js +2 -0
- package/dist/paperless/{p-13e12e68.entry.js → p-e11ab3d2.entry.js} +2 -2
- package/dist/{build/p-971aac89.entry.js → paperless/p-e5a54d05.entry.js} +2 -2
- package/dist/paperless/{p-62b14ab7.entry.js → p-f05bf2d2.entry.js} +2 -2
- package/dist/paperless/{p-129d5cbd.entry.js → p-f762c735.entry.js} +2 -2
- package/dist/paperless/{p-57fc0eb5.entry.js → p-fa340d90.entry.js} +2 -2
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/hydrate/index.js +106 -107
- package/hydrate/index.mjs +106 -107
- package/package.json +1 -1
- package/dist/build/p-04f4b015.entry.js.map +0 -1
- package/dist/build/p-3b276ae0.entry.js +0 -2
- package/dist/build/p-84863ba0.entry.js +0 -2
- package/dist/build/p-859c4fb1.entry.js +0 -2
- package/dist/build/p-886c060f.entry.js +0 -2
- package/dist/build/p-886c060f.entry.js.map +0 -1
- package/dist/build/p-92f5d9d5.entry.js +0 -2
- package/dist/build/p-a0fad3d8.entry.js.map +0 -1
- package/dist/build/p-e839a672.entry.js +0 -2
- package/dist/build/p-f66c7368.entry.js +0 -2
- package/dist/build/p-f70908cc.entry.js +0 -2
- package/dist/paperless/p-04f4b015.entry.js.map +0 -1
- package/dist/paperless/p-3b276ae0.entry.js +0 -2
- package/dist/paperless/p-84863ba0.entry.js +0 -2
- package/dist/paperless/p-859c4fb1.entry.js +0 -2
- package/dist/paperless/p-886c060f.entry.js +0 -2
- package/dist/paperless/p-886c060f.entry.js.map +0 -1
- package/dist/paperless/p-92f5d9d5.entry.js +0 -2
- package/dist/paperless/p-a0fad3d8.entry.js.map +0 -1
- package/dist/paperless/p-e839a672.entry.js +0 -2
- package/dist/paperless/p-f66c7368.entry.js +0 -2
- package/dist/paperless/p-f70908cc.entry.js +0 -2
- /package/dist/build/{p-3b276ae0.entry.js.map → p-03c70942.entry.js.map} +0 -0
- /package/dist/build/{p-638d2138.entry.js.map → p-096eaf0d.entry.js.map} +0 -0
- /package/dist/build/{p-b26d5130.entry.js.map → p-0cd0a8d2.entry.js.map} +0 -0
- /package/dist/build/{p-8d165db5.entry.js.map → p-0ffb8f53.entry.js.map} +0 -0
- /package/dist/build/{p-3b5242e9.entry.js.map → p-167a6397.entry.js.map} +0 -0
- /package/dist/build/{p-98e3f82a.entry.js.map → p-28f44624.entry.js.map} +0 -0
- /package/dist/build/{p-0c040d86.entry.js.map → p-29c71645.entry.js.map} +0 -0
- /package/dist/build/{p-859c4fb1.entry.js.map → p-2f613a2a.entry.js.map} +0 -0
- /package/dist/build/{p-c60e5c3d.entry.js.map → p-3023e8dc.entry.js.map} +0 -0
- /package/dist/build/{p-96ad9c58.entry.js.map → p-39e51563.entry.js.map} +0 -0
- /package/dist/build/{p-6f3a4499.entry.js.map → p-3e2708de.entry.js.map} +0 -0
- /package/dist/build/{p-68647b9e.entry.js.map → p-401ff01b.entry.js.map} +0 -0
- /package/dist/build/{p-b59372b5.entry.js.map → p-4baaed44.entry.js.map} +0 -0
- /package/dist/build/{p-f66c7368.entry.js.map → p-4cef76cf.entry.js.map} +0 -0
- /package/dist/build/{p-4a642ff9.entry.js.map → p-52056fb3.entry.js.map} +0 -0
- /package/dist/build/{p-62843ca0.entry.js.map → p-52fe40e3.entry.js.map} +0 -0
- /package/dist/build/{p-d31d6714.entry.js.map → p-5779d316.entry.js.map} +0 -0
- /package/dist/build/{p-52ff5017.entry.js.map → p-697ed735.entry.js.map} +0 -0
- /package/dist/build/{p-a6ccc70e.entry.js.map → p-7b72764c.entry.js.map} +0 -0
- /package/dist/build/{p-955d149f.entry.js.map → p-7c0e0f80.entry.js.map} +0 -0
- /package/dist/build/{p-f173bb97.entry.js.map → p-8b1a485b.entry.js.map} +0 -0
- /package/dist/build/{p-2f821184.entry.js.map → p-8f4a3d49.entry.js.map} +0 -0
- /package/dist/build/{p-ed06230b.entry.js.map → p-9231fe88.entry.js.map} +0 -0
- /package/dist/build/{p-963f037a.entry.js.map → p-9406a32e.entry.js.map} +0 -0
- /package/dist/build/{p-610eb0ff.entry.js.map → p-9593cbb7.entry.js.map} +0 -0
- /package/dist/build/{p-d19f3457.entry.js.map → p-9afd6c62.entry.js.map} +0 -0
- /package/dist/build/{p-a93ce615.entry.js.map → p-a38a330d.entry.js.map} +0 -0
- /package/dist/build/{p-f3d0ea94.entry.js.map → p-a9c13353.entry.js.map} +0 -0
- /package/dist/build/{p-dc01bfa8.entry.js.map → p-b162a142.entry.js.map} +0 -0
- /package/dist/build/{p-fdf020c9.entry.js.map → p-b542d0b6.entry.js.map} +0 -0
- /package/dist/build/{p-9a0262b1.entry.js.map → p-c066c38b.entry.js.map} +0 -0
- /package/dist/build/{p-f70908cc.entry.js.map → p-c801b122.entry.js.map} +0 -0
- /package/dist/build/{p-dfce711d.entry.js.map → p-cab0361a.entry.js.map} +0 -0
- /package/dist/build/{p-84863ba0.entry.js.map → p-cd2cd75f.entry.js.map} +0 -0
- /package/dist/build/{p-4cb8f3db.entry.js.map → p-d058cdfc.entry.js.map} +0 -0
- /package/dist/build/{p-fb51eccd.entry.js.map → p-d26ee54b.entry.js.map} +0 -0
- /package/dist/build/{p-45d789f5.entry.js.map → p-d82e4315.entry.js.map} +0 -0
- /package/dist/build/{p-716a92ae.entry.js.map → p-d9bf1827.entry.js.map} +0 -0
- /package/dist/build/{p-68ae68c8.entry.js.map → p-dd0f4ed0.entry.js.map} +0 -0
- /package/dist/build/{p-1543f3a0.entry.js.map → p-df228603.entry.js.map} +0 -0
- /package/dist/build/{p-e839a672.entry.js.map → p-e078f787.entry.js.map} +0 -0
- /package/dist/build/{p-13e12e68.entry.js.map → p-e11ab3d2.entry.js.map} +0 -0
- /package/dist/build/{p-971aac89.entry.js.map → p-e5a54d05.entry.js.map} +0 -0
- /package/dist/build/{p-62b14ab7.entry.js.map → p-f05bf2d2.entry.js.map} +0 -0
- /package/dist/build/{p-129d5cbd.entry.js.map → p-f762c735.entry.js.map} +0 -0
- /package/dist/build/{p-57fc0eb5.entry.js.map → p-fa340d90.entry.js.map} +0 -0
- /package/dist/paperless/{p-3b276ae0.entry.js.map → p-03c70942.entry.js.map} +0 -0
- /package/dist/paperless/{p-638d2138.entry.js.map → p-096eaf0d.entry.js.map} +0 -0
- /package/dist/paperless/{p-b26d5130.entry.js.map → p-0cd0a8d2.entry.js.map} +0 -0
- /package/dist/paperless/{p-8d165db5.entry.js.map → p-0ffb8f53.entry.js.map} +0 -0
- /package/dist/paperless/{p-3b5242e9.entry.js.map → p-167a6397.entry.js.map} +0 -0
- /package/dist/paperless/{p-98e3f82a.entry.js.map → p-28f44624.entry.js.map} +0 -0
- /package/dist/paperless/{p-0c040d86.entry.js.map → p-29c71645.entry.js.map} +0 -0
- /package/dist/paperless/{p-859c4fb1.entry.js.map → p-2f613a2a.entry.js.map} +0 -0
- /package/dist/paperless/{p-c60e5c3d.entry.js.map → p-3023e8dc.entry.js.map} +0 -0
- /package/dist/paperless/{p-96ad9c58.entry.js.map → p-39e51563.entry.js.map} +0 -0
- /package/dist/paperless/{p-6f3a4499.entry.js.map → p-3e2708de.entry.js.map} +0 -0
- /package/dist/paperless/{p-68647b9e.entry.js.map → p-401ff01b.entry.js.map} +0 -0
- /package/dist/paperless/{p-b59372b5.entry.js.map → p-4baaed44.entry.js.map} +0 -0
- /package/dist/paperless/{p-f66c7368.entry.js.map → p-4cef76cf.entry.js.map} +0 -0
- /package/dist/paperless/{p-4a642ff9.entry.js.map → p-52056fb3.entry.js.map} +0 -0
- /package/dist/paperless/{p-62843ca0.entry.js.map → p-52fe40e3.entry.js.map} +0 -0
- /package/dist/paperless/{p-d31d6714.entry.js.map → p-5779d316.entry.js.map} +0 -0
- /package/dist/paperless/{p-52ff5017.entry.js.map → p-697ed735.entry.js.map} +0 -0
- /package/dist/paperless/{p-a6ccc70e.entry.js.map → p-7b72764c.entry.js.map} +0 -0
- /package/dist/paperless/{p-955d149f.entry.js.map → p-7c0e0f80.entry.js.map} +0 -0
- /package/dist/paperless/{p-f173bb97.entry.js.map → p-8b1a485b.entry.js.map} +0 -0
- /package/dist/paperless/{p-2f821184.entry.js.map → p-8f4a3d49.entry.js.map} +0 -0
- /package/dist/paperless/{p-ed06230b.entry.js.map → p-9231fe88.entry.js.map} +0 -0
- /package/dist/paperless/{p-963f037a.entry.js.map → p-9406a32e.entry.js.map} +0 -0
- /package/dist/paperless/{p-610eb0ff.entry.js.map → p-9593cbb7.entry.js.map} +0 -0
- /package/dist/paperless/{p-d19f3457.entry.js.map → p-9afd6c62.entry.js.map} +0 -0
- /package/dist/paperless/{p-a93ce615.entry.js.map → p-a38a330d.entry.js.map} +0 -0
- /package/dist/paperless/{p-f3d0ea94.entry.js.map → p-a9c13353.entry.js.map} +0 -0
- /package/dist/paperless/{p-dc01bfa8.entry.js.map → p-b162a142.entry.js.map} +0 -0
- /package/dist/paperless/{p-fdf020c9.entry.js.map → p-b542d0b6.entry.js.map} +0 -0
- /package/dist/paperless/{p-9a0262b1.entry.js.map → p-c066c38b.entry.js.map} +0 -0
- /package/dist/paperless/{p-f70908cc.entry.js.map → p-c801b122.entry.js.map} +0 -0
- /package/dist/paperless/{p-dfce711d.entry.js.map → p-cab0361a.entry.js.map} +0 -0
- /package/dist/paperless/{p-84863ba0.entry.js.map → p-cd2cd75f.entry.js.map} +0 -0
- /package/dist/paperless/{p-4cb8f3db.entry.js.map → p-d058cdfc.entry.js.map} +0 -0
- /package/dist/paperless/{p-fb51eccd.entry.js.map → p-d26ee54b.entry.js.map} +0 -0
- /package/dist/paperless/{p-45d789f5.entry.js.map → p-d82e4315.entry.js.map} +0 -0
- /package/dist/paperless/{p-716a92ae.entry.js.map → p-d9bf1827.entry.js.map} +0 -0
- /package/dist/paperless/{p-68ae68c8.entry.js.map → p-dd0f4ed0.entry.js.map} +0 -0
- /package/dist/paperless/{p-1543f3a0.entry.js.map → p-df228603.entry.js.map} +0 -0
- /package/dist/paperless/{p-e839a672.entry.js.map → p-e078f787.entry.js.map} +0 -0
- /package/dist/paperless/{p-13e12e68.entry.js.map → p-e11ab3d2.entry.js.map} +0 -0
- /package/dist/paperless/{p-971aac89.entry.js.map → p-e5a54d05.entry.js.map} +0 -0
- /package/dist/paperless/{p-62b14ab7.entry.js.map → p-f05bf2d2.entry.js.map} +0 -0
- /package/dist/paperless/{p-129d5cbd.entry.js.map → p-f762c735.entry.js.map} +0 -0
- /package/dist/paperless/{p-57fc0eb5.entry.js.map → p-fa340d90.entry.js.map} +0 -0
|
@@ -17,10 +17,10 @@ const CardHeader = class {
|
|
|
17
17
|
this._hasContentSuffixSlot = !!this._el.querySelector(':scope > [slot="content-suffix"]');
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '3c8d15a381397a5c0d1f94ec93549c10a28384b8', class: 'p-card-header' }, h("slot", { key: 'e98fe062a9e457775883a5edc021407e27f246c6', name: 'prefix' }), (this.header?.length ||
|
|
21
21
|
this._hasContentSlot ||
|
|
22
22
|
this._hasContentSuffixSlot ||
|
|
23
|
-
this.arrow) && (h("div", { key: '
|
|
23
|
+
this.arrow) && (h("div", { key: '61316a12277198852ba75739a80074bb559d4796', class: 'content' }, h("span", { key: 'ce7539e46df5819acc9406f9cf026a696bc231eb' }, this.header?.length ? this.header : h("slot", { name: 'content' })), h("slot", { key: 'd1ee66e86383b5e8d519c201f0fd1fb715bbaf3f', name: 'content-suffix' }), this.arrow && (h("p-icon", { key: '03af1a9d6486e84ceff51d40631b722db8d4fa49', variant: 'arrow', class: 'group-hover:text-indigo' })))), h("slot", { key: '0f2b712e038d031db8766eab7983a8ee9cd92758', name: 'suffix' })));
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
CardHeader.style = PCardHeaderStyle0;
|
|
@@ -77,12 +77,12 @@ const Checkbox = class {
|
|
|
77
77
|
*/
|
|
78
78
|
indeterminateChange;
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '763757228cc34a2ad33d913ff61a612fd5e5955c', class: 'p-checkbox' }, h("label", { key: 'bfff8193dffe46ff7b20e42b98ef2e8468b3c7d3', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, h("div", { key: 'b2d392f038e6eada52cad8048fa80aa9eb059482', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: '46784ca50fd4815283f7bac2cfc9a28602ab8026', class: checkbox({
|
|
81
81
|
size: this.size,
|
|
82
82
|
disabled: this.disabled,
|
|
83
|
-
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: this.disabled, onChange: ev => this._onChange(ev) }), h("div", { key: '
|
|
83
|
+
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: this.disabled, onChange: ev => this._onChange(ev) }), h("div", { key: '300cdf6032a669bdb6745e106b626e22b527f527', class: icon({
|
|
84
84
|
disabled: this.disabled,
|
|
85
|
-
}) }, h("p-icon", { key: '
|
|
85
|
+
}) }, h("p-icon", { key: '949a7e8cdc7ebaa494f2892b6c3d0e73f9676d4b', size: this.size, class: 'drop-shadow-black-teal-10%', variant: !!this.indeterminate ? 'minus' : 'checkmark' }))), h("slot", { key: 'b68faa0a1f9232a425f918d7be9e4e47a93dfa03' }))));
|
|
86
86
|
}
|
|
87
87
|
_onChange(ev) {
|
|
88
88
|
if (this.disabled) {
|
|
@@ -172,12 +172,12 @@ const Dropdown = class {
|
|
|
172
172
|
};
|
|
173
173
|
let dropdownContainer;
|
|
174
174
|
if (this.usePortal) {
|
|
175
|
-
dropdownContainer = (h("p-portal", { key: '
|
|
175
|
+
dropdownContainer = (h("p-portal", { key: '4ce9951ba9df565f0a3b482a34cb18e10ffa7dd3', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: '1b487d02d0a819f8cf41373e229361c7a0bbb6c0', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, h("slot", { key: '06aea6630be099ec81c99221aa13f637c5c4145b', name: 'items' }))));
|
|
176
176
|
}
|
|
177
177
|
else {
|
|
178
|
-
dropdownContainer = (h("p-dropdown-menu-container", { key: '
|
|
178
|
+
dropdownContainer = (h("p-dropdown-menu-container", { key: 'a6c09ab73d9fecbf256c25a51bfd8f84649ac6ca', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, h("slot", { key: '00176ba6c4cccac8d18a35d50aa570da68b2c680', name: 'items' })));
|
|
179
179
|
}
|
|
180
|
-
return (h(Host, { key: '
|
|
180
|
+
return (h(Host, { key: '7e22ef22fc226b3e6d4981b71f782804de1d25d6', class: 'p-dropdown relative' }, h("div", { key: '46f0f7999a1a4581ee3e82be7d53c61adccb6874', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: '745a38cf876df9da4198aa906b5f813ed14c3b4f', name: 'trigger' })), dropdownContainer));
|
|
181
181
|
}
|
|
182
182
|
_checkButtons(active = false) {
|
|
183
183
|
if (!this.applyChevron) {
|
|
@@ -419,16 +419,16 @@ const DropdownMenuItem = class {
|
|
|
419
419
|
this.useContainer = true;
|
|
420
420
|
}
|
|
421
421
|
render() {
|
|
422
|
-
return (h(Host, { key: '
|
|
422
|
+
return (h(Host, { key: '08d46e7573279d9cc222d1209d14b1488d70ff5e', class: dropdownMenuItem({
|
|
423
423
|
variant: this.variant,
|
|
424
424
|
active: this.active,
|
|
425
425
|
enableHover: this.enableHover,
|
|
426
426
|
disabled: this.disabled,
|
|
427
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
427
|
+
}) }, this.icon && (h("p-icon", { key: '56cf5ed28c52cc447db03bd1776d11bb23538197', class: dropdownMenuItemIcon({
|
|
428
428
|
variant: this.variant,
|
|
429
429
|
active: this.active,
|
|
430
430
|
disabled: this.disabled,
|
|
431
|
-
}), variant: this.icon })), this.checkbox && (h("p-checkbox", { key: '
|
|
431
|
+
}), variant: this.icon })), this.checkbox && (h("p-checkbox", { key: 'db105260f7c292a11a8b4cbec38bddef960bf8bf', size: 'sm', checked: this.active, disabled: this.disabled })), this.useContainer ? (h("div", { class: 'block w-full overflow-hidden text-ellipsis whitespace-nowrap text-start' }, h("slot", null))) : (h("slot", null))));
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
DropdownMenuItem.style = PDropdownMenuItemStyle0;
|
|
@@ -41,9 +41,9 @@ const ContentSlider = class {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '32c284ee7901017eefbe8124029e1b1252cfa202', class: "p-content-slider" }, h("div", { key: 'a75ed8e3e600d0e19f71247e3fb1c9d97a9437b9', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
|
|
45
45
|
height: `${this._outerHeight}px`,
|
|
46
|
-
}, ref: (el) => (this._sliderRef = el), onMouseDown: (e) => this._mouseDownHandler(e), onTouchStart: (e) => this._mouseDownHandler(e), onMouseMove: (e) => this._mouseMoveHandler(e), onTouchMove: (e) => this._mouseMoveHandler(e) }, h("div", { key: '
|
|
46
|
+
}, ref: (el) => (this._sliderRef = el), onMouseDown: (e) => this._mouseDownHandler(e), onTouchStart: (e) => this._mouseDownHandler(e), onMouseMove: (e) => this._mouseMoveHandler(e), onTouchMove: (e) => this._mouseMoveHandler(e) }, h("div", { key: 'f6b5f3d9ef0f188c8a47afeb4ef026fa8d6499ac', class: "inner-slider", ref: (ref) => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: '365f3783b6a163ea40d72b645650c32c4c249c71' }))), h("div", { key: '994a8ed5c19b7c3dbb0ea210d69bee2c5c78dcd3', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._items.map((_, i) => (h("div", { onClick: () => this._scrollTo(i, true), class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}` }, h("p-slider-indicator", { active: i === this._visibleIndex })))))));
|
|
47
47
|
}
|
|
48
48
|
_mouseDownHandler(e) {
|
|
49
49
|
if (this.disableDrag || this._dragging) {
|
|
@@ -10,7 +10,7 @@ const Counter = class {
|
|
|
10
10
|
this.size = 'default';
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '9f55a1fa108d8a6704cdd1a3d9064b4658747ec0', class: `p-counter variant-${this.variant} size-${this.size}` }, h("slot", { key: 'f51ab888a6ad87a2639072cb8a13268a057ab496' })));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
Counter.style = PCounterStyle0;
|
|
@@ -2838,10 +2838,10 @@ const Cropper = class {
|
|
|
2838
2838
|
}, 200);
|
|
2839
2839
|
}
|
|
2840
2840
|
render() {
|
|
2841
|
-
return (h(Host, { key: '
|
|
2841
|
+
return (h(Host, { key: '3e5aae3ee38ef7916782f0ef6b798a2e1c7bcb1f', class: 'p-cropper' }, this._loaded && (h("cropper-canvas", { key: 'c6a1cda7ae28e331b54cdd28b41048493f433a73', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white', onAction: () => this._onAction() }, h("cropper-image", { key: '02e38a00de7a94ae9c0a9455204d4c552850c5f3', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: '12001865905af4564b2cf5d0ef32a31e7dbbcd36', class: clsx({
|
|
2842
2842
|
'rounded-round': this.variant === 'user',
|
|
2843
2843
|
rounded: this.variant === 'company',
|
|
2844
|
-
}), "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: '
|
|
2844
|
+
}), "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: '1cc692662a02f29bccc67b9cbd9e2cb83c53880a', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: 'a782e50ae9a931de6ccd70591310092cc8d01e4b', action: 'move', plain: true }))), h("div", { key: 'd88de6e6012701e12fd7ffa0b856db55a27e1a5d', class: 'flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1' }, h("p-icon", { key: '3a0fa3ac2d8e44022370a25fff6c64ce9f09c523', variant: 'minus' }), h("input", { key: '0d4f8e6d028c44af3ee9e68b8bb90f4d5f6b20e9', class: 'p-input w-full', type: 'range', min: '0', max: '100', value: this._currentScale, onInput: ev => this._onInput(ev.target.value), step: '0.5' }), h("p-icon", { key: '04f4ccffda0c52298d6e85cd3ec1093a3b1bccfd', variant: 'plus' }))));
|
|
2845
2845
|
}
|
|
2846
2846
|
_setImageRef(ref) {
|
|
2847
2847
|
if (this._imageRef) {
|
|
@@ -2994,9 +2994,9 @@ const Datepicker = class {
|
|
|
2994
2994
|
this.parseValue(this.value);
|
|
2995
2995
|
}
|
|
2996
2996
|
render() {
|
|
2997
|
-
return (h(Host, { key: '
|
|
2997
|
+
return (h(Host, { key: 'd8072759e5110df91f88b5433ed1abd37b7a957b', class: 'p-datepicker' }, h("p-dropdown", { key: '389b7ecebd6d34c14a128d4e25a6262ed4b471d6', strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: 'ebc5b5fe902c5fa5e26fd821bafa0d0314f2fbab', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, disabled: this.disabled, focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '0696f58898874fd807758cf6745cb675e9d56071', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself
|
|
2998
2998
|
,
|
|
2999
|
-
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), h("div", { key: '
|
|
2999
|
+
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), h("div", { key: '42e5c115c7512321ee84a2b5e0c963d227c82889', slot: 'items' }, h("p-calendar", { key: 'f11987a548b1322752747c8aaa6fab55af740d95', variant: 'embedded', value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, mode: this.mode })))));
|
|
3000
3000
|
}
|
|
3001
3001
|
documentClickHandler({ target }) {
|
|
3002
3002
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -11,7 +11,7 @@ const Divider = class {
|
|
|
11
11
|
get _el() { return getElement(this); }
|
|
12
12
|
render() {
|
|
13
13
|
const hasSlotted = !!this._el.innerHTML?.length;
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '8bc01a98862c6c97060ef52dc3bb1ed1af040e51', class: 'p-divider' }, h("div", { key: '15be02fc701029e4a5903dd0cd3d0cc37dae8f82', class: 'content' }, h("div", { key: '3a326034595c671ae8177480372e2ec5b41277b6', class: `flex items-center ${hasSlotted && 'px-2'} text-xs font-semibold uppercase text-storm-light` }, h("slot", { key: '1cd6af0b816d06dcc363cf2a6e679b80fbdac142' })))));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
Divider.style = PDividerStyle0;
|
|
@@ -9,7 +9,7 @@ const ModalBody = class {
|
|
|
9
9
|
this.variant = 'default';
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'f64516662a47c6af37cd5252f680034303e5d53b', class: `p-drawer-body variant-${this.variant}` }, h("slot", { key: '12839b91a0a1c6f0f0ca17a3d1416ae99d9bdf6b' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
ModalBody.style = PDrawerBodyStyle0;
|
|
@@ -23,7 +23,7 @@ const ModalContainer = class {
|
|
|
23
23
|
this.closing = false;
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '6592422471e0dee3fcafa7f67f287aec507efadf', class: `p-drawer-container ${this.closing && 'closing'}` }, h("slot", { key: '6040e86276aa241295eff3c3015a124ce297a16c' })));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
ModalContainer.style = PDrawerContainerStyle0;
|
|
@@ -42,7 +42,7 @@ const ModalHeader = class {
|
|
|
42
42
|
*/
|
|
43
43
|
close;
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '6851cefd3c95acfd5b61f6564c515eb92fbbc438', class: 'p-drawer-header' }, this.showClose && (h("p-button", { key: '3e22ec23f39ac10f2dd9610e769a201e0b2888b7', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: () => this.close.emit(), size: 'sm' })), h("slot", { key: 'c23369be2268f7fb5bb62219183fc1efb83001c4' })));
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
ModalHeader.style = PDrawerHeaderStyle0;
|
|
@@ -47,13 +47,13 @@ const DropdownMenuContainer = class {
|
|
|
47
47
|
: this.scrollable === true
|
|
48
48
|
? 'default'
|
|
49
49
|
: this.scrollable;
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'd20e54bf6ae67b8c235bd6db39226c90532e43bc', class: dropdownMenuContainer({
|
|
51
51
|
class: this.class,
|
|
52
52
|
fullWidth: this.fullWidth,
|
|
53
53
|
allowOverflow: this.allowOverflow,
|
|
54
54
|
scrollable,
|
|
55
55
|
maxWidth: this.maxWidth,
|
|
56
|
-
}) }, h("div", { key: '
|
|
56
|
+
}) }, h("div", { key: '199e355596adf1c91c977490b0130e0dc5399bed', class: 'flex w-full flex-col gap-[1px]' }, h("slot", { key: '44d455cb277b45795ec17f79c5dfbba7bf65cc4c' }))));
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
DropdownMenuContainer.style = PDropdownMenuContainerStyle0;
|
|
@@ -58,7 +58,7 @@ const input = cva('text-sm placeholder:text-sm placeholder:text-black-teal-200 t
|
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
});
|
|
61
|
-
const
|
|
61
|
+
const prefixAndSuffix = cva(['flex flex-shrink-0 justify-center items-center text-center'], {
|
|
62
62
|
variants: {
|
|
63
63
|
disabled: {
|
|
64
64
|
false: null,
|
|
@@ -145,16 +145,16 @@ const Field = class {
|
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
147
|
const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, } = this._getSlotInfo();
|
|
148
|
-
return (h(Host, { key: '
|
|
148
|
+
return (h(Host, { key: 'cf990118b7fb2b397a4ed1d00026893fb5d65651', class: 'p-field' }, h("p-field-container", { key: '8957ddbafafbe9be741359ae9c4265bb5c2ab08d', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required }, hasLabelSlot && (h("slot", { key: 'f60081c6a1485f8066715a2e422ea5903f0963a8', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: 'e4b78626d1a79acb5b95692158b5809a4b24dd63', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '4346e4bc124d1de2ceb4ee4005eb9b661bf677dd', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '6d0408efce0e27da7d14dfb4aa9fffb38d3b927a', name: 'error', slot: 'error' })), h("div", { key: 'cf6aed5c63d0652a7fa0ca66c562a7c79d57dafa', class: field({
|
|
149
149
|
error: !!this.error?.length,
|
|
150
150
|
disabled: this.disabled,
|
|
151
151
|
focused: this.focused || this._focused,
|
|
152
152
|
size: this.size,
|
|
153
|
-
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
153
|
+
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: 'fb6c0aa6cebc783dc15a44462bc04e89fcd13f13', class: prefixAndSuffix({
|
|
154
154
|
error: !!this.error?.length,
|
|
155
155
|
disabled: this.disabled,
|
|
156
156
|
focused: this.focused || this._focused,
|
|
157
|
-
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
157
|
+
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '2822280cb543d2315d062b00b52729f1603b8c6f', class: prefixAndSuffix({
|
|
158
158
|
error: !!this.error?.length,
|
|
159
159
|
disabled: this.disabled,
|
|
160
160
|
focused: this.focused || this._focused,
|
|
@@ -196,7 +196,7 @@ const Field = class {
|
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
198
|
_getInput() {
|
|
199
|
-
if (this.type === '
|
|
199
|
+
if (this.type === 'slot') {
|
|
200
200
|
return h("slot", { name: 'input' });
|
|
201
201
|
}
|
|
202
202
|
const props = {
|
|
@@ -1 +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K,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC;QAEzE,OAAO;YACN,aAAa;YACb,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,MAAM;YACN,KAAK;YACL,yBAAyB;SACzB,CAAC;KACF;;;;;;","names":[],"sources":["src/components/molecules/field/field.component.css?tag=p-field&encapsulation=shadow","src/components/molecules/field/field.component.tsx","src/components/molecules/field-container/field-container.component.css?tag=p-field-container&encapsulation=shadow","src/components/molecules/field-container/field-container.component.tsx"],"sourcesContent":["","import { Placement } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { HTMLInputTypeAttribute } from 'react';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\nimport { templateFunc } from '../field-container/field-container.component';\n\nconst field = cva(\n\t['flex gap-2', 'w-inherit px-2', 'border border-solid rounded-lg'],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'h-6',\n\t\t\t\tbase: 'h-8',\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: 'bg-white',\n\t\t\t\ttrue: 'bg-white-600 cursor-not-allowed',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'border-black-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass:\n\t\t\t\t\t'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'border-negative-red',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'ring ring-negative-red-50 selection:bg-negative-red-50',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst input = cva(\n\t'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 h-full',\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst prefixAndSuffic = cva(\n\t['flex flex-shrink-0 justify-center items-center text-center'],\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'text-black-teal-100',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-300',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-500',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red-800',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-field',\n\tstyleUrl: './field.component.css',\n\tshadow: true,\n})\nexport class Field {\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The type of the input group\n\t */\n\t@Prop() type: HTMLInputTypeAttribute | 'textarea' | 'slot' = 'text';\n\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() properties: any | string = {};\n\n\t/**\n\t * The prefix of the input group\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the input group\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the input group\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The value of the input\n\t */\n\t@Prop() value: string;\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean = true;\n\n\t/**\n\t * Wether to autofocus the field\n\t */\n\t@Prop({ reflect: true }) autofocus: boolean = false;\n\n\t/**\n\t * The error to display\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Wether the input group is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the input group is focused\n\t */\n\t@Prop({ reflect: true }) focused: boolean = false;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * Wether to select all text on focus\n\t */\n\t@Prop({ reflect: true }) selectAllOnFocus: boolean = true;\n\n\t/**\n\t * The method to use when focusing the input\n\t */\n\t@Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc;\n\n\t/**\n\t * Event whenever the value changes\n\t */\n\t@Event() valueChange: EventEmitter<string>;\n\n\t/**\n\t * Event whenever the input ref changes\n\t */\n\t@Event() inputRefChange: EventEmitter<HTMLInputElement | HTMLTextAreaElement>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _focused = false;\n\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\n\tcomponentDidLoad() {\n\t\tthis._checkAutoFocus();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\thasHeaderSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHelperSlot,\n\t\t\thasErrorSlot,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host class='p-field'>\n\t\t\t\t<p-field-container\n\t\t\t\t\tforceShowTooltip={this.forceShowTooltip || this._focused}\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\trequired={this.required}\n\t\t\t\t>\n\t\t\t\t\t{hasLabelSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='label'\n\t\t\t\t\t\t\tslot='label'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHeaderSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='header'\n\t\t\t\t\t\t\tslot='header'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHelperSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='helper'\n\t\t\t\t\t\t\tslot='helper'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\tslot='error'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={field({\n\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tslot='content'\n\t\t\t\t\t>\n\t\t\t\t\t\t{(prefix || (this.icon && this.iconPosition === 'start')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffic({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'start' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tprefix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{this._getInput()}\n\n\t\t\t\t\t\t{(suffix || (this.icon && this.iconPosition === 'end')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffic({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'end' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tsuffix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</p-field-container>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('focusin')\n\thandleFocusIn() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = true;\n\t\tthis._selectAll();\n\t}\n\n\t@Listen('focusout')\n\thandleFocusOut() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = false;\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasPrefixSlot = !!this._el.querySelector(':scope > [slot=\"prefix\"]');\n\t\tconst hasSuffixSlot = !!this._el.querySelector(':scope > [slot=\"suffix\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst prefix = hasPrefixSlot ? <slot name='prefix' /> : this.prefix;\n\t\tconst suffix = hasSuffixSlot ? <slot name='suffix' /> : this.suffix;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\tthis.error && typeof this.error === 'string' && this.error !== 'true';\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasPrefixSlot,\n\t\t\thasSuffixSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n\n\tprivate _getInput() {\n\t\tif (this.type === 'custom') {\n\t\t\treturn <slot name='input' />;\n\t\t}\n\n\t\tconst props = {\n\t\t\tclass: input({\n\t\t\t\tdisabled: this.disabled,\n\t\t\t}),\n\t\t\tvalue: this.value,\n\t\t\tplaceholder: this.placeholder,\n\t\t\tdisabled: this.disabled,\n\t\t\tonInput: (ev: Event) => this._valueChange(ev),\n\t\t};\n\n\t\tlet properties = this.properties ?? {};\n\t\tif (typeof properties === 'string') {\n\t\t\tproperties = JSON.parse(this.properties);\n\t\t}\n\n\t\tif (this.type === 'textarea') {\n\t\t\t<textarea\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>;\n\t\t}\n\n\t\treturn (\n\t\t\t<input\n\t\t\t\ttype={this.type}\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>\n\t\t);\n\t}\n\n\tprivate _setInputRef(ref: HTMLInputElement | HTMLTextAreaElement) {\n\t\tthis._inputRef = ref;\n\t\tthis.inputRefChange.emit(ref);\n\t}\n\n\tprivate _focusInput() {\n\t\tif (this._inputRef) {\n\t\t\tthis._inputRef.focus();\n\t\t\treturn;\n\t\t}\n\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\t\t(input as HTMLElement)[this.focusMethod]();\n\t}\n\n\tprivate _selectAll() {\n\t\tif (!this._inputRef || !this.selectAllOnFocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._inputRef.select();\n\t}\n\n\tprivate _valueChange(ev) {\n\t\tconst value = (ev.target as HTMLTextAreaElement | HTMLInputElement).value;\n\t\tthis.value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _checkAutoFocus() {\n\t\tif (!this.autofocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._inputRef) {\n\t\t\tsetTimeout(() => this._checkAutoFocus(), 100);\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focusInput();\n\t}\n}\n","","import {\n\tComponent,\n\tElement,\n\tEventEmitter,\n\th,\n\tHost,\n\tEvent,\n\tProp,\n\tFragment,\n\tState,\n\tListen,\n} from '@stencil/core';\nimport { formatTranslation, getLocaleComponentStrings } from '../../../utils';\nimport { Placement } from '@floating-ui/dom';\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string | HTMLSlotElement;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host class='p-field-container'>\n\t\t\t\t<div class='flex w-inherit flex-col gap-1'>\n\t\t\t\t\t<div class='flex items-end justify-between gap-1'>\n\t\t\t\t\t\t{label && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass='text-xs font-medium text-black-teal-300'\n\t\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{(!this.required || helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t<div class='flex items-center gap-1'>\n\t\t\t\t\t\t\t\t{!this.required && (\n\t\t\t\t\t\t\t\t\t<span class='text-xs font-medium text-black-teal-200'>\n\t\t\t\t\t\t\t\t\t\t{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\t\t\t\tclass={`flex ${hasHeaderSlot ? 'ml-2' : ''}`}\n\t\t\t\t\t\t\t\t\t\t\t\tplacement='top-end'\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\tclass='w-full'\n\t\t\t\t\t\tvariant='error'\n\t\t\t\t\t\tcontent={this.error}\n\t\t\t\t\t\tshow={errorAndErrorIsNotBoolean && this.forceShowTooltip}\n\t\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t\t>\n\t\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='content'\n\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t/>\n\t\t\t\t\t</p-tooltip>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSl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yBAAyB,GAC9B,YAAY;aACX,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC;QAEzE,OAAO;YACN,aAAa;YACb,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,MAAM;YACN,KAAK;YACL,yBAAyB;SACzB,CAAC;KACF;;;;;;","names":[],"sources":["src/components/molecules/field/field.component.css?tag=p-field&encapsulation=shadow","src/components/molecules/field/field.component.tsx","src/components/molecules/field-container/field-container.component.css?tag=p-field-container&encapsulation=shadow","src/components/molecules/field-container/field-container.component.tsx"],"sourcesContent":["","import { Placement } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { HTMLInputTypeAttribute } from 'react';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\nimport { templateFunc } from '../field-container/field-container.component';\n\nconst field = cva(\n\t['flex gap-2', 'w-inherit px-2', 'border border-solid rounded-lg'],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'h-6',\n\t\t\t\tbase: 'h-8',\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: 'bg-white',\n\t\t\t\ttrue: 'bg-white-600 cursor-not-allowed',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'border-black-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass:\n\t\t\t\t\t'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'border-negative-red',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'ring ring-negative-red-50 selection:bg-negative-red-50',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst input = cva(\n\t'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 h-full',\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst prefixAndSuffix = cva(\n\t['flex flex-shrink-0 justify-center items-center text-center'],\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'text-black-teal-100',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-300',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-500',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red-800',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-field',\n\tstyleUrl: './field.component.css',\n\tshadow: true,\n})\nexport class Field {\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The type of the input group\n\t */\n\t@Prop() type: HTMLInputTypeAttribute | 'textarea' | 'slot' = 'text';\n\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() properties: any | string = {};\n\n\t/**\n\t * The prefix of the input group\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the input group\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the input group\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The value of the input\n\t */\n\t@Prop() value: string;\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean = true;\n\n\t/**\n\t * Wether to autofocus the field\n\t */\n\t@Prop({ reflect: true }) autofocus: boolean = false;\n\n\t/**\n\t * The error to display\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Wether the input group is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the input group is focused\n\t */\n\t@Prop({ reflect: true }) focused: boolean = false;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * Wether to select all text on focus\n\t */\n\t@Prop({ reflect: true }) selectAllOnFocus: boolean = true;\n\n\t/**\n\t * The method to use when focusing the input\n\t */\n\t@Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc;\n\n\t/**\n\t * Event whenever the value changes\n\t */\n\t@Event() valueChange: EventEmitter<string>;\n\n\t/**\n\t * Event whenever the input ref changes\n\t */\n\t@Event() inputRefChange: EventEmitter<HTMLInputElement | HTMLTextAreaElement>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _focused = false;\n\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\n\tcomponentDidLoad() {\n\t\tthis._checkAutoFocus();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\thasHeaderSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHelperSlot,\n\t\t\thasErrorSlot,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host class='p-field'>\n\t\t\t\t<p-field-container\n\t\t\t\t\tforceShowTooltip={this.forceShowTooltip || this._focused}\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\trequired={this.required}\n\t\t\t\t>\n\t\t\t\t\t{hasLabelSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='label'\n\t\t\t\t\t\t\tslot='label'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHeaderSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='header'\n\t\t\t\t\t\t\tslot='header'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHelperSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='helper'\n\t\t\t\t\t\t\tslot='helper'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\tslot='error'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={field({\n\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tslot='content'\n\t\t\t\t\t>\n\t\t\t\t\t\t{(prefix || (this.icon && this.iconPosition === 'start')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffix({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'start' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tprefix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{this._getInput()}\n\n\t\t\t\t\t\t{(suffix || (this.icon && this.iconPosition === 'end')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffix({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'end' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tsuffix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</p-field-container>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('focusin')\n\thandleFocusIn() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = true;\n\t\tthis._selectAll();\n\t}\n\n\t@Listen('focusout')\n\thandleFocusOut() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = false;\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasPrefixSlot = !!this._el.querySelector(':scope > [slot=\"prefix\"]');\n\t\tconst hasSuffixSlot = !!this._el.querySelector(':scope > [slot=\"suffix\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst prefix = hasPrefixSlot ? <slot name='prefix' /> : this.prefix;\n\t\tconst suffix = hasSuffixSlot ? <slot name='suffix' /> : this.suffix;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\tthis.error && typeof this.error === 'string' && this.error !== 'true';\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasPrefixSlot,\n\t\t\thasSuffixSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n\n\tprivate _getInput() {\n\t\tif (this.type === 'slot') {\n\t\t\treturn <slot name='input' />;\n\t\t}\n\n\t\tconst props = {\n\t\t\tclass: input({\n\t\t\t\tdisabled: this.disabled,\n\t\t\t}),\n\t\t\tvalue: this.value,\n\t\t\tplaceholder: this.placeholder,\n\t\t\tdisabled: this.disabled,\n\t\t\tonInput: (ev: Event) => this._valueChange(ev),\n\t\t};\n\n\t\tlet properties = this.properties ?? {};\n\t\tif (typeof properties === 'string') {\n\t\t\tproperties = JSON.parse(this.properties);\n\t\t}\n\n\t\tif (this.type === 'textarea') {\n\t\t\t<textarea\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>;\n\t\t}\n\n\t\treturn (\n\t\t\t<input\n\t\t\t\ttype={this.type}\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>\n\t\t);\n\t}\n\n\tprivate _setInputRef(ref: HTMLInputElement | HTMLTextAreaElement) {\n\t\tthis._inputRef = ref;\n\t\tthis.inputRefChange.emit(ref);\n\t}\n\n\tprivate _focusInput() {\n\t\tif (this._inputRef) {\n\t\t\tthis._inputRef.focus();\n\t\t\treturn;\n\t\t}\n\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\t\t(input as HTMLElement)[this.focusMethod]();\n\t}\n\n\tprivate _selectAll() {\n\t\tif (!this._inputRef || !this.selectAllOnFocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._inputRef.select();\n\t}\n\n\tprivate _valueChange(ev) {\n\t\tconst value = (ev.target as HTMLTextAreaElement | HTMLInputElement).value;\n\t\tthis.value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _checkAutoFocus() {\n\t\tif (!this.autofocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._inputRef) {\n\t\t\tsetTimeout(() => this._checkAutoFocus(), 100);\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focusInput();\n\t}\n}\n","","import {\n\tComponent,\n\tElement,\n\tEventEmitter,\n\th,\n\tHost,\n\tEvent,\n\tProp,\n\tFragment,\n\tState,\n\tListen,\n} from '@stencil/core';\nimport { formatTranslation, getLocaleComponentStrings } from '../../../utils';\nimport { Placement } from '@floating-ui/dom';\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string | HTMLSlotElement;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host class='p-field-container'>\n\t\t\t\t<div class='flex w-inherit flex-col gap-1'>\n\t\t\t\t\t<div class='flex items-end justify-between gap-1'>\n\t\t\t\t\t\t{label && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass='text-xs font-medium text-black-teal-300'\n\t\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{(!this.required || helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t<div class='flex items-center gap-1'>\n\t\t\t\t\t\t\t\t{!this.required && (\n\t\t\t\t\t\t\t\t\t<span class='text-xs font-medium text-black-teal-200'>\n\t\t\t\t\t\t\t\t\t\t{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\t\t\t\tclass={`flex ${hasHeaderSlot ? 'ml-2' : ''}`}\n\t\t\t\t\t\t\t\t\t\t\t\tplacement='top-end'\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\tclass='w-full'\n\t\t\t\t\t\tvariant='error'\n\t\t\t\t\t\tcontent={this.error}\n\t\t\t\t\t\tshow={errorAndErrorIsNotBoolean && this.forceShowTooltip}\n\t\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t\t>\n\t\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='content'\n\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t/>\n\t\t\t\t\t</p-tooltip>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"],"version":3}
|
|
@@ -1637,7 +1637,7 @@ const FloatingMenuContainer = class {
|
|
|
1637
1637
|
this.usedInTable = false;
|
|
1638
1638
|
}
|
|
1639
1639
|
render() {
|
|
1640
|
-
return (h(Host, { key: '
|
|
1640
|
+
return (h(Host, { key: 'f3f243096001eb624f7280f914a0f52a412dc25e', class: "p-floating-menu-container" }, this.usedInTable ? (h("slot", { name: "floating-menu-item" })) : (h("slot", null))));
|
|
1641
1641
|
}
|
|
1642
1642
|
};
|
|
1643
1643
|
FloatingMenuContainer.style = PFloatingMenuContainerStyle0;
|
|
@@ -1652,7 +1652,7 @@ const FloatingMenuItem = class {
|
|
|
1652
1652
|
this.disabled = false;
|
|
1653
1653
|
}
|
|
1654
1654
|
render() {
|
|
1655
|
-
return (h(Host, { key: '
|
|
1655
|
+
return (h(Host, { key: '323be24b417991471da56e0fdeb5f48fe843e2ac', class: "p-floating-menu-item" }, h("slot", { key: '8a6eec6be660227ec9295e5ec761afc2f4b817a2' })));
|
|
1656
1656
|
}
|
|
1657
1657
|
};
|
|
1658
1658
|
FloatingMenuItem.style = PFloatingMenuItemStyle0;
|
|
@@ -1698,7 +1698,7 @@ const TableCell = class {
|
|
|
1698
1698
|
};
|
|
1699
1699
|
}
|
|
1700
1700
|
render() {
|
|
1701
|
-
return (h(Host, { key: '
|
|
1701
|
+
return (h(Host, { key: 'fdd68a4b75fa75a0301b2721d81a069cac64d098', class: {
|
|
1702
1702
|
'p-table-cell': true,
|
|
1703
1703
|
[`variant-${this.variant}`]: true,
|
|
1704
1704
|
...this._getColumnClasses(),
|
|
@@ -1733,7 +1733,7 @@ const TableContainer = class {
|
|
|
1733
1733
|
this.shadow = true;
|
|
1734
1734
|
}
|
|
1735
1735
|
render() {
|
|
1736
|
-
return (h(Host, { key: '
|
|
1736
|
+
return (h(Host, { key: '73eb4897c9a50ca1f673eff5d331d180462d3b5d', class: `p-table-container ${!this.shadow && 'no-shadow'}` }, h("slot", { key: 'ee29b6fd875e4e170343caf2e1c04e6177779425' })));
|
|
1737
1737
|
}
|
|
1738
1738
|
};
|
|
1739
1739
|
TableContainer.style = PTableContainerStyle0;
|
|
@@ -1776,7 +1776,7 @@ const TableFooter = class {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
render() {
|
|
1778
1778
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total < this.pageSizeOptions?.[0];
|
|
1779
|
-
return (h(Host, { key: '
|
|
1779
|
+
return (h(Host, { key: '8c85669efe0bdc3f14fe0dfb5cbca5a38451b2ca', class: `p-table-footer ${!this.enablePageSize && 'page-size-disabled'} ${!this.enablePagination && 'pagination-disabled'} ${!this.enableExport && 'export-disabled'}` }, !this.loading && this.enablePagination && this.enablePageSize && (h("p-page-size-select", { key: '69cb04177926201d314ab138ac72452d9a32ccd3', class: !hidePageSizeSelect && 'hidden desktop-xs:flex', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) })), this.loading && (h("p-loader", { key: '4601f2a8736bb05af33159769bfba2e1854c8cdf', variant: 'ghost', class: 'h-8 w-full rounded' })), !this.loading && this.enablePagination && (h("p-pagination", { key: 'e9c672d24d92cb973482a37b16f8a1210fb17345', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail) })), !this.loading && this.enableExport && (h("p-button", { key: '3f6942fb87389cb69281e397134f857d2cedb87c', class: 'hidden desktop-xs:flex', variant: 'secondary', size: 'sm', icon: 'download', onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))));
|
|
1780
1780
|
}
|
|
1781
1781
|
async _setLocales() {
|
|
1782
1782
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -2767,12 +2767,12 @@ const TableHeader = class {
|
|
|
2767
2767
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
2768
2768
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
2769
2769
|
return (h(Host, { key: '9261f1ac3d1ffc7b3f696d7dc528eb39d21e39f3', class: 'p-table-header' }, this.loading && (h("p-loader", { key: '52cb48056ac2ce46ae3825e97a83735c90926e4e', variant: 'ghost', class: 'hidden h-8 w-3/4 rounded desktop-xs:flex' })), !this.loading &&
|
|
2770
|
-
(hasCustomFilterSlot || this.quickFilters.length > 0) && (h("div", { key: '4c1a883ae11bb2a8a9a0a3d1339600d58174543b', class: 'left-side flex flex-col justify-start gap-4 desktop-xs:flex-row' }, hasCustomFilterSlot && h("slot", { key: '0ef29f9afb9cb27761f11146fa41933e64e7fed8', name: 'custom-filter' }), this.quickFilters.length > 0 && (h("p-segment-container", { key: '480435085fab332399b5386d33fed70b0d96d718', class: 'hidden desktop-xs:flex' }, this.quickFilters.map(item => (h("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string' ? item.text : item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: 'a5c1add14f7a2c3056195936325004ed8d1710fe', class: 'right-side flex flex-col justify-end gap-4 desktop-xs:flex-row' }, this.enableSearch && (h("p-field", { key: '
|
|
2770
|
+
(hasCustomFilterSlot || this.quickFilters.length > 0) && (h("div", { key: '4c1a883ae11bb2a8a9a0a3d1339600d58174543b', class: 'left-side flex flex-col justify-start gap-4 desktop-xs:flex-row' }, hasCustomFilterSlot && h("slot", { key: '0ef29f9afb9cb27761f11146fa41933e64e7fed8', name: 'custom-filter' }), this.quickFilters.length > 0 && (h("p-segment-container", { key: '480435085fab332399b5386d33fed70b0d96d718', class: 'hidden desktop-xs:flex' }, this.quickFilters.map(item => (h("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string' ? item.text : item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: 'a5c1add14f7a2c3056195936325004ed8d1710fe', class: 'right-side flex flex-col justify-end gap-4 desktop-xs:flex-row' }, this.enableSearch && (h("p-field", { key: '0bd8f8e0037be9c1eef724d158542f2815990fd7', icon: 'search', size: 'sm', class: 'desktop-xs:w-48', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), this.enableFilter && (h("p-button", { key: 'b101dd2da885d7abc10c2d2e76e9d4f6e549e984', icon: 'filter', variant: 'secondary', size: 'sm', class: `w-full ${this.enableFilterDesktop
|
|
2771
2771
|
? 'desktop-xs:w-auto'
|
|
2772
2772
|
: 'desktop-xs:hidden'}`, onClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
2773
2773
|
? this.filterButtonTemplate()
|
|
2774
2774
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
2775
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: '
|
|
2775
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: '0d1293590817ed31001298900752cc1ee09b61f9', name: 'custom-actions' })), this.enableAction && this.canUseAction && (h("div", { key: '41dce94131e7458342885f2e5451efad7a0e85ef', class: 'fixed bottom-0 left-0 block w-full border border-solid border-transparent border-t-mystic-dark bg-white p-4 desktop-xs:hidden' }, this._buttonTemplate(true)))));
|
|
2776
2776
|
}
|
|
2777
2777
|
async _setLocales() {
|
|
2778
2778
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -2800,9 +2800,9 @@ const TableRow = class {
|
|
|
2800
2800
|
this.enableHover = true;
|
|
2801
2801
|
}
|
|
2802
2802
|
render() {
|
|
2803
|
-
return (h(Host, { key: '
|
|
2803
|
+
return (h(Host, { key: '962ec4f0187a22416270df391edb910c6584fc57', class: `p-table-row variant-${this.variant} ${this.enableHover &&
|
|
2804
2804
|
this.variant === 'default' &&
|
|
2805
|
-
'enable-hover'} group` }, h("div", { key: '
|
|
2805
|
+
'enable-hover'} group` }, h("div", { key: '45deb1c2a22e4afdf99b3e4f407f8ceedc3769fc', class: "content" }, h("slot", { key: 'd9bae05aad34f48ef13598e432813ffacab3d3f6' })), this.variant === 'default' && h("p-divider", { key: 'efdc3dcb43ea3f74786495f62ceaf7b6a62908d6', class: "m-0" })));
|
|
2806
2806
|
}
|
|
2807
2807
|
};
|
|
2808
2808
|
TableRow.style = PTableRowStyle0;
|