@paperless/core 2.0.1-beta.30 → 2.0.1-beta.32
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 +22 -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-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-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-ecf2818a.js → p-a483eadb.js} +1 -1
- 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-e77d5ca1.entry.js +2 -0
- package/dist/build/p-e77d5ca1.entry.js.map +1 -0
- 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/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-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 +51 -12
- 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/cjs/paperless.cjs.js +1 -1
- 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.css +1 -1
- package/dist/collection/components/molecules/field/field.component.js +77 -20
- package/dist/collection/components/molecules/field/field.component.js.map +1 -1
- package/dist/collection/components/molecules/field-container/field-container.component.js +22 -1
- package/dist/collection/components/molecules/field-container/field-container.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-container.component.js +4 -1
- package/dist/components/field-container.component.js.map +1 -1
- package/dist/components/field.component.js +49 -11
- 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/loader.js +1 -1
- package/dist/esm/p-accordion.entry.js +1 -1
- package/dist/esm/p-attachment.entry.js +4 -4
- package/dist/esm/p-avatar-group.entry.js +1 -1
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-backdrop.entry.js +2 -2
- package/dist/esm/p-badge_3.entry.js +4 -4
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +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 +51 -12
- 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/esm/paperless.js +1 -1
- 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-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-e77d5ca1.entry.js +2 -0
- package/dist/paperless/p-e77d5ca1.entry.js.map +1 -0
- 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/paperless/paperless.esm.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/field/field.component.d.ts +15 -11
- package/dist/types/components/molecules/field-container/field-container.component.d.ts +4 -0
- package/dist/types/components.d.ts +36 -20
- package/hydrate/index.js +154 -114
- package/hydrate/index.mjs +154 -114
- package/package.json +1 -1
- package/dist/build/p-04f4b015.entry.js +0 -2
- 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 +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
|
@@ -2998,9 +2998,9 @@ const Datepicker = class {
|
|
|
2998
2998
|
this.parseValue(this.value);
|
|
2999
2999
|
}
|
|
3000
3000
|
render() {
|
|
3001
|
-
return (index$1.h(index$1.Host, { key: '
|
|
3001
|
+
return (index$1.h(index$1.Host, { key: 'd8072759e5110df91f88b5433ed1abd37b7a957b', class: 'p-datepicker' }, index$1.h("p-dropdown", { key: '389b7ecebd6d34c14a128d4e25a6262ed4b471d6', strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, index$1.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 && (index$1.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
|
|
3002
3002
|
,
|
|
3003
|
-
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && index.format(this._value, 'yyyy-MM-dd'), min: this.minDate && index.format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && index.format(new Date(this.maxDate), 'yyyy-MM-dd') })), index$1.h("div", { key: '
|
|
3003
|
+
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && index.format(this._value, 'yyyy-MM-dd'), min: this.minDate && index.format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && index.format(new Date(this.maxDate), 'yyyy-MM-dd') })), index$1.h("div", { key: '42e5c115c7512321ee84a2b5e0c963d227c82889', slot: 'items' }, index$1.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 })))));
|
|
3004
3004
|
}
|
|
3005
3005
|
documentClickHandler({ target }) {
|
|
3006
3006
|
if (!this._showDropdown || childOf.childOf(target, this._el)) {
|
|
@@ -15,7 +15,7 @@ const Divider = class {
|
|
|
15
15
|
get _el() { return index.getElement(this); }
|
|
16
16
|
render() {
|
|
17
17
|
const hasSlotted = !!this._el.innerHTML?.length;
|
|
18
|
-
return (index.h(index.Host, { key: '
|
|
18
|
+
return (index.h(index.Host, { key: '8bc01a98862c6c97060ef52dc3bb1ed1af040e51', class: 'p-divider' }, index.h("div", { key: '15be02fc701029e4a5903dd0cd3d0cc37dae8f82', class: 'content' }, index.h("div", { key: '3a326034595c671ae8177480372e2ec5b41277b6', class: `flex items-center ${hasSlotted && 'px-2'} text-xs font-semibold uppercase text-storm-light` }, index.h("slot", { key: '1cd6af0b816d06dcc363cf2a6e679b80fbdac142' })))));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
Divider.style = PDividerStyle0;
|
|
@@ -13,7 +13,7 @@ const ModalBody = class {
|
|
|
13
13
|
this.variant = 'default';
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (index.h(index.Host, { key: '
|
|
16
|
+
return (index.h(index.Host, { key: 'f64516662a47c6af37cd5252f680034303e5d53b', class: `p-drawer-body variant-${this.variant}` }, index.h("slot", { key: '12839b91a0a1c6f0f0ca17a3d1416ae99d9bdf6b' })));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
ModalBody.style = PDrawerBodyStyle0;
|
|
@@ -27,7 +27,7 @@ const ModalContainer = class {
|
|
|
27
27
|
this.closing = false;
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (index.h(index.Host, { key: '
|
|
30
|
+
return (index.h(index.Host, { key: '6592422471e0dee3fcafa7f67f287aec507efadf', class: `p-drawer-container ${this.closing && 'closing'}` }, index.h("slot", { key: '6040e86276aa241295eff3c3015a124ce297a16c' })));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
ModalContainer.style = PDrawerContainerStyle0;
|
|
@@ -46,7 +46,7 @@ const ModalHeader = class {
|
|
|
46
46
|
*/
|
|
47
47
|
close;
|
|
48
48
|
render() {
|
|
49
|
-
return (index.h(index.Host, { key: '
|
|
49
|
+
return (index.h(index.Host, { key: '6851cefd3c95acfd5b61f6564c515eb92fbbc438', class: 'p-drawer-header' }, this.showClose && (index.h("p-button", { key: '3e22ec23f39ac10f2dd9610e769a201e0b2888b7', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: () => this.close.emit(), size: 'sm' })), index.h("slot", { key: 'c23369be2268f7fb5bb62219183fc1efb83001c4' })));
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
ModalHeader.style = PDrawerHeaderStyle0;
|
|
@@ -51,13 +51,13 @@ const DropdownMenuContainer = class {
|
|
|
51
51
|
: this.scrollable === true
|
|
52
52
|
? 'default'
|
|
53
53
|
: this.scrollable;
|
|
54
|
-
return (index.h(index.Host, { key: '
|
|
54
|
+
return (index.h(index.Host, { key: 'd20e54bf6ae67b8c235bd6db39226c90532e43bc', class: dropdownMenuContainer({
|
|
55
55
|
class: this.class,
|
|
56
56
|
fullWidth: this.fullWidth,
|
|
57
57
|
allowOverflow: this.allowOverflow,
|
|
58
58
|
scrollable,
|
|
59
59
|
maxWidth: this.maxWidth,
|
|
60
|
-
}) }, index.h("div", { key: '
|
|
60
|
+
}) }, index.h("div", { key: '199e355596adf1c91c977490b0130e0dc5399bed', class: 'flex w-full flex-col gap-[1px]' }, index.h("slot", { key: '44d455cb277b45795ec17f79c5dfbba7bf65cc4c' }))));
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
DropdownMenuContainer.style = PDropdownMenuContainerStyle0;
|
|
@@ -7,14 +7,18 @@ const index$1 = require('./index-b556e70f.js');
|
|
|
7
7
|
const localization = require('./localization-3a0a71db.js');
|
|
8
8
|
require('./clsx-fc789adc.js');
|
|
9
9
|
|
|
10
|
-
const fieldComponentCss = "*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!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-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}";
|
|
10
|
+
const fieldComponentCss = "*{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}";
|
|
11
11
|
const PFieldStyle0 = fieldComponentCss;
|
|
12
12
|
|
|
13
|
-
const field = index$1.cva(['flex gap-2', 'w-inherit
|
|
13
|
+
const field = index$1.cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
|
|
14
14
|
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
read: 'border-0 items-center',
|
|
17
|
+
write: 'border px-2',
|
|
18
|
+
},
|
|
15
19
|
size: {
|
|
16
|
-
sm:
|
|
17
|
-
base:
|
|
20
|
+
sm: null,
|
|
21
|
+
base: null,
|
|
18
22
|
},
|
|
19
23
|
disabled: {
|
|
20
24
|
false: 'bg-white',
|
|
@@ -30,6 +34,26 @@ const field = index$1.cva(['flex gap-2', 'w-inherit px-2', 'border border-solid
|
|
|
30
34
|
},
|
|
31
35
|
},
|
|
32
36
|
compoundVariants: [
|
|
37
|
+
{
|
|
38
|
+
size: 'sm',
|
|
39
|
+
variant: 'write',
|
|
40
|
+
class: 'h-6',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
size: 'base',
|
|
44
|
+
variant: 'write',
|
|
45
|
+
class: 'h-8',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
size: 'sm',
|
|
49
|
+
variant: 'read',
|
|
50
|
+
class: 'h-4',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
size: 'base',
|
|
54
|
+
variant: 'read',
|
|
55
|
+
class: 'h-6',
|
|
56
|
+
},
|
|
33
57
|
{
|
|
34
58
|
focused: false,
|
|
35
59
|
error: false,
|
|
@@ -62,7 +86,7 @@ const input = index$1.cva('text-sm placeholder:text-sm placeholder:text-black-te
|
|
|
62
86
|
},
|
|
63
87
|
},
|
|
64
88
|
});
|
|
65
|
-
const
|
|
89
|
+
const prefixAndSuffix = index$1.cva(['flex flex-shrink-0 justify-center items-center text-center'], {
|
|
66
90
|
variants: {
|
|
67
91
|
disabled: {
|
|
68
92
|
false: null,
|
|
@@ -76,6 +100,10 @@ const prefixAndSuffic = index$1.cva(['flex flex-shrink-0 justify-center items-ce
|
|
|
76
100
|
false: null,
|
|
77
101
|
true: null,
|
|
78
102
|
},
|
|
103
|
+
isText: {
|
|
104
|
+
false: null,
|
|
105
|
+
true: 'text-sm',
|
|
106
|
+
},
|
|
79
107
|
},
|
|
80
108
|
compoundVariants: [
|
|
81
109
|
{
|
|
@@ -109,6 +137,7 @@ const Field = class {
|
|
|
109
137
|
index.registerInstance(this, hostRef);
|
|
110
138
|
this.valueChange = index.createEvent(this, "valueChange", 7);
|
|
111
139
|
this.inputRefChange = index.createEvent(this, "inputRefChange", 7);
|
|
140
|
+
this.variant = 'write';
|
|
112
141
|
this.size = 'base';
|
|
113
142
|
this.type = 'text';
|
|
114
143
|
this.properties = {};
|
|
@@ -148,20 +177,23 @@ const Field = class {
|
|
|
148
177
|
this._checkAutoFocus();
|
|
149
178
|
}
|
|
150
179
|
render() {
|
|
151
|
-
const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, } = this._getSlotInfo();
|
|
152
|
-
return (index.h(index.Host, { key: '
|
|
180
|
+
const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
181
|
+
return (index.h(index.Host, { key: '1a79a5c8f8247833586cf9e8e663b5c6fe6a2bd9', class: 'p-field' }, index.h("p-field-container", { key: '10b84cef30d39755c90812095158541c5d653002', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required, variant: this.variant }, hasLabelSlot && (index.h("slot", { key: 'bffa3ae2c58bb688956bfe65652fd578968227f4', name: 'label', slot: 'label' })), hasHeaderSlot && (index.h("slot", { key: '1e4c706e8166014605a494c975bd16c502ff79cf', name: 'header', slot: 'header' })), hasHelperSlot && (index.h("slot", { key: '298572eb4da550e87443aecc0d68842eef9e9f98', name: 'helper', slot: 'helper' })), hasErrorSlot && (index.h("slot", { key: '4a9f6b0a99b88cffc4c0d84e31d880a3d07776b2', name: 'error', slot: 'error' })), index.h("div", { key: 'cc5d1bff2b66717facdf1df95e11bc4c16e401c2', class: field({
|
|
153
182
|
error: !!this.error?.length,
|
|
154
183
|
disabled: this.disabled,
|
|
155
184
|
focused: this.focused || this._focused,
|
|
156
185
|
size: this.size,
|
|
157
|
-
|
|
186
|
+
variant: this.variant,
|
|
187
|
+
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (index.h("div", { key: '9a559c208e22f1c512121a81648777f5496375c9', class: prefixAndSuffix({
|
|
158
188
|
error: !!this.error?.length,
|
|
159
189
|
disabled: this.disabled,
|
|
160
190
|
focused: this.focused || this._focused,
|
|
161
|
-
|
|
191
|
+
isText: typeof suffix === 'string',
|
|
192
|
+
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (index.h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot), (suffix || (this.icon && this.iconPosition === 'end')) && (index.h("div", { key: '6ae960c4a1fe98dd99d83af0035992e3aedcf86f', class: prefixAndSuffix({
|
|
162
193
|
error: !!this.error?.length,
|
|
163
194
|
disabled: this.disabled,
|
|
164
195
|
focused: this.focused || this._focused,
|
|
196
|
+
isText: typeof suffix === 'string',
|
|
165
197
|
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'end' ? (index.h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix)))))));
|
|
166
198
|
}
|
|
167
199
|
handleFocusIn() {
|
|
@@ -184,6 +216,7 @@ const Field = class {
|
|
|
184
216
|
const hasSuffixSlot = !!this._el.querySelector(':scope > [slot="suffix"]');
|
|
185
217
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
186
218
|
const hasErrorSlot = !!this._el.querySelector(':scope > [slot="error"]');
|
|
219
|
+
const hasValueSlot = !!this._el.querySelector(':scope > [slot="value"]');
|
|
187
220
|
const prefix = hasPrefixSlot ? index.h("slot", { name: 'prefix' }) : this.prefix;
|
|
188
221
|
const suffix = hasSuffixSlot ? index.h("slot", { name: 'suffix' }) : this.suffix;
|
|
189
222
|
const errorAndErrorIsNotBoolean = this.error && typeof this.error === 'string' && this.error !== 'true';
|
|
@@ -194,13 +227,17 @@ const Field = class {
|
|
|
194
227
|
hasSuffixSlot,
|
|
195
228
|
hasHeaderSlot,
|
|
196
229
|
hasErrorSlot,
|
|
230
|
+
hasValueSlot,
|
|
197
231
|
prefix,
|
|
198
232
|
suffix,
|
|
199
233
|
errorAndErrorIsNotBoolean,
|
|
200
234
|
};
|
|
201
235
|
}
|
|
202
|
-
|
|
203
|
-
if (this.
|
|
236
|
+
_getContent(hasValueSlot = false) {
|
|
237
|
+
if (this.variant === 'read') {
|
|
238
|
+
return (index.h("div", { class: 'text-sm' }, hasValueSlot ? (index.h("slot", { name: 'value' })) : !!this.value && this.value.length > 0 ? (this.value) : ('—')));
|
|
239
|
+
}
|
|
240
|
+
if (this.type === 'slot') {
|
|
204
241
|
return index.h("slot", { name: 'input' });
|
|
205
242
|
}
|
|
206
243
|
const props = {
|
|
@@ -265,6 +302,7 @@ const FieldContainer = class {
|
|
|
265
302
|
index.registerInstance(this, hostRef);
|
|
266
303
|
this.focus = index.createEvent(this, "focus", 7);
|
|
267
304
|
this.label = undefined;
|
|
305
|
+
this.variant = undefined;
|
|
268
306
|
this.helper = undefined;
|
|
269
307
|
this.required = undefined;
|
|
270
308
|
this.error = undefined;
|
|
@@ -281,7 +319,8 @@ const FieldContainer = class {
|
|
|
281
319
|
}
|
|
282
320
|
render() {
|
|
283
321
|
const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
|
|
284
|
-
|
|
322
|
+
const contentSlot = (index.h("slot", { key: 'a7e3919d645cc21fa538340b0c9ea7a98e66ca90', name: 'content', slot: 'trigger' }));
|
|
323
|
+
return (index.h(index.Host, { key: '44a79d2058aafb4d9bf89f09cb3e7a1a708d99f9', class: 'p-field-container' }, index.h("div", { key: '47af2893a5f27a1a905c846a016c183756d026f8', class: 'flex w-inherit flex-col gap-1' }, index.h("div", { key: 'cd64bc812c19e11d35ea4eb1756f9885a1f2a148', class: 'flex items-end justify-between gap-1' }, label && (index.h("div", { key: '962aecba76c4ba9326ed992d6ad39c1efbdab8ab', class: 'text-xs font-medium text-black-teal-300', onClick: () => this.focus.emit() }, label)), (!this.required || helper || hasHeaderSlot) && (index.h("div", { key: 'd0cdd8810de8098eaca90d2aeddd1f01fbcd0faf', class: 'flex items-center gap-1' }, !this.required && this.variant === 'write' && (index.h("span", { key: 'e83d37fcb0050bad328d0aa2d6890c1226fe17fb', class: 'text-xs font-medium text-black-teal-200' }, this.optionalTemplate())), (helper || hasHeaderSlot) && (index.h(index.Fragment, { key: 'c156ee1c951fec9dbe602cf317ff7591a6bce9bf' }, hasHeaderSlot && index.h("slot", { key: 'e568644b05673354c9059042b0ba40f137d1709c', name: 'header' }), helper && (index.h("p-helper", { key: '7dcbdd61deb2eba74abf8f57b245b011fbf9066b', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))))), index.h("p-tooltip", { key: '41588daf8a794d9d16d32bcd841f5f4cbe64349a', class: 'w-full', variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean && this.forceShowTooltip, enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (index.h("slot", { key: 'a61dd91094db6ac2b016ee79320cffd887976e12', name: 'error', slot: 'content' })), contentSlot))));
|
|
285
324
|
}
|
|
286
325
|
async _setLocales() {
|
|
287
326
|
this._locales = await localization.getLocaleComponentStrings(this._el);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-field.p-field-container.entry.cjs.js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AC,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":["cva","h","Host","formatTranslation","Fragment","getLocaleComponentStrings"],"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\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"p-field.p-field-container.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,iBAAiB,GAAG,6mHAA6mH,CAAC;AACxoH,qBAAe,iBAAiB;;ACiBhC,MAAM,KAAK,GAAGA,WAAG,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,yBAAyB,CAAC,EAAE;IACzE,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,IAAI,EAAE,uBAAuB;YAC7B,KAAK,EAAE,aAAa;SACpB;QACD,IAAI,EAAE;YACL,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACV;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,iCAAiC;SACvC;QACD,OAAO,EAAE;YACR,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,KAAK,EAAE;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,KAAK;SACZ;QACD;YACC,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,KAAK;SACZ;QAED;YACC,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,MAAM;YACf,KAAK,EAAE,KAAK;SACZ;QACD;YACC,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,MAAM;YACf,KAAK,EAAE,KAAK;SACZ;QAED;YACC,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,uBAAuB;SAC9B;QACD;YACC,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,KAAK;Y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C,KAAK,CAAC;QAEhE,MAAM,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":["cva","h","Host","formatTranslation","Fragment","getLocaleComponentStrings"],"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(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: 'border-0 items-center',\n\t\t\twrite: 'border px-2',\n\t\t},\n\t\tsize: {\n\t\t\tsm: null,\n\t\t\tbase: null,\n\t\t},\n\t\tdisabled: {\n\t\t\tfalse: 'bg-white',\n\t\t\ttrue: 'bg-white-600 cursor-not-allowed',\n\t\t},\n\t\tfocused: {\n\t\t\tfalse: null,\n\t\t\ttrue: null,\n\t\t},\n\t\terror: {\n\t\t\tfalse: null,\n\t\t\ttrue: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tsize: 'sm',\n\t\t\tvariant: 'write',\n\t\t\tclass: 'h-6',\n\t\t},\n\t\t{\n\t\t\tsize: 'base',\n\t\t\tvariant: 'write',\n\t\t\tclass: 'h-8',\n\t\t},\n\n\t\t{\n\t\t\tsize: 'sm',\n\t\t\tvariant: 'read',\n\t\t\tclass: 'h-4',\n\t\t},\n\t\t{\n\t\t\tsize: 'base',\n\t\t\tvariant: 'read',\n\t\t\tclass: 'h-6',\n\t\t},\n\n\t\t{\n\t\t\tfocused: false,\n\t\t\terror: false,\n\t\t\tclass: 'border-black-teal-100',\n\t\t},\n\t\t{\n\t\t\tdisabled: false,\n\t\t\tfocused: true,\n\t\t\terror: false,\n\t\t\tclass:\n\t\t\t\t'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',\n\t\t},\n\n\t\t{\n\t\t\tdisabled: false,\n\t\t\terror: true,\n\t\t\tclass: 'border-negative-red',\n\t\t},\n\t\t{\n\t\t\tdisabled: false,\n\t\t\tfocused: true,\n\t\t\terror: true,\n\t\t\tclass: 'ring ring-negative-red-50 selection:bg-negative-red-50',\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\tisText: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'text-sm',\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 variant of the field\n\t */\n\t@Prop() variant: 'read' | 'write' = 'write';\n\n\t/**\n\t * The size of the field\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The type of the field\n\t */\n\t@Prop() type: HTMLInputTypeAttribute | 'textarea' | 'slot' = 'text';\n\n\t/**\n\t * The size of the field\n\t */\n\t@Prop() properties: any | string = {};\n\n\t/**\n\t * The prefix of the field\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the field\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the field\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 field\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 field\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 field is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the field 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\thasValueSlot,\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\tvariant={this.variant}\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\tvariant: this.variant,\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\tisText: typeof suffix === 'string',\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._getContent(hasValueSlot)}\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\tisText: typeof suffix === 'string',\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\t\tconst hasValueSlot = !!this._el.querySelector(':scope > [slot=\"value\"]');\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\thasValueSlot,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n\n\tprivate _getContent(hasValueSlot = false) {\n\t\tif (this.variant === 'read') {\n\t\t\treturn (\n\t\t\t\t<div class='text-sm'>\n\t\t\t\t\t{hasValueSlot ? (\n\t\t\t\t\t\t<slot name='value' />\n\t\t\t\t\t) : !!this.value && this.value.length > 0 ? (\n\t\t\t\t\t\tthis.value\n\t\t\t\t\t) : (\n\t\t\t\t\t\t'—'\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\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 variant of the field container\n\t */\n\t@Prop() variant: 'read' | 'write';\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\tconst contentSlot = (\n\t\t\t<slot\n\t\t\t\tname='content'\n\t\t\t\tslot='trigger'\n\t\t\t/>\n\t\t);\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 && this.variant === 'write' && (\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{contentSlot}\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}
|
|
@@ -1641,7 +1641,7 @@ const FloatingMenuContainer = class {
|
|
|
1641
1641
|
this.usedInTable = false;
|
|
1642
1642
|
}
|
|
1643
1643
|
render() {
|
|
1644
|
-
return (index.h(index.Host, { key: '
|
|
1644
|
+
return (index.h(index.Host, { key: 'f3f243096001eb624f7280f914a0f52a412dc25e', class: "p-floating-menu-container" }, this.usedInTable ? (index.h("slot", { name: "floating-menu-item" })) : (index.h("slot", null))));
|
|
1645
1645
|
}
|
|
1646
1646
|
};
|
|
1647
1647
|
FloatingMenuContainer.style = PFloatingMenuContainerStyle0;
|
|
@@ -1656,7 +1656,7 @@ const FloatingMenuItem = class {
|
|
|
1656
1656
|
this.disabled = false;
|
|
1657
1657
|
}
|
|
1658
1658
|
render() {
|
|
1659
|
-
return (index.h(index.Host, { key: '
|
|
1659
|
+
return (index.h(index.Host, { key: '323be24b417991471da56e0fdeb5f48fe843e2ac', class: "p-floating-menu-item" }, index.h("slot", { key: '8a6eec6be660227ec9295e5ec761afc2f4b817a2' })));
|
|
1660
1660
|
}
|
|
1661
1661
|
};
|
|
1662
1662
|
FloatingMenuItem.style = PFloatingMenuItemStyle0;
|
|
@@ -1702,7 +1702,7 @@ const TableCell = class {
|
|
|
1702
1702
|
};
|
|
1703
1703
|
}
|
|
1704
1704
|
render() {
|
|
1705
|
-
return (index.h(index.Host, { key: '
|
|
1705
|
+
return (index.h(index.Host, { key: 'fdd68a4b75fa75a0301b2721d81a069cac64d098', class: {
|
|
1706
1706
|
'p-table-cell': true,
|
|
1707
1707
|
[`variant-${this.variant}`]: true,
|
|
1708
1708
|
...this._getColumnClasses(),
|
|
@@ -1737,7 +1737,7 @@ const TableContainer = class {
|
|
|
1737
1737
|
this.shadow = true;
|
|
1738
1738
|
}
|
|
1739
1739
|
render() {
|
|
1740
|
-
return (index.h(index.Host, { key: '
|
|
1740
|
+
return (index.h(index.Host, { key: '73eb4897c9a50ca1f673eff5d331d180462d3b5d', class: `p-table-container ${!this.shadow && 'no-shadow'}` }, index.h("slot", { key: 'ee29b6fd875e4e170343caf2e1c04e6177779425' })));
|
|
1741
1741
|
}
|
|
1742
1742
|
};
|
|
1743
1743
|
TableContainer.style = PTableContainerStyle0;
|
|
@@ -1780,7 +1780,7 @@ const TableFooter = class {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
render() {
|
|
1782
1782
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total < this.pageSizeOptions?.[0];
|
|
1783
|
-
return (index.h(index.Host, { key: '
|
|
1783
|
+
return (index.h(index.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 && (index.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 && (index.h("p-loader", { key: '4601f2a8736bb05af33159769bfba2e1854c8cdf', variant: 'ghost', class: 'h-8 w-full rounded' })), !this.loading && this.enablePagination && (index.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 && (index.h("p-button", { key: '3f6942fb87389cb69281e397134f857d2cedb87c', class: 'hidden desktop-xs:flex', variant: 'secondary', size: 'sm', icon: 'download', onClick: () => this.export.emit() }, localization.formatTranslation(this._locales.export)))));
|
|
1784
1784
|
}
|
|
1785
1785
|
async _setLocales() {
|
|
1786
1786
|
this._locales = await localization.getLocaleComponentStrings(this._el);
|
|
@@ -2771,12 +2771,12 @@ const TableHeader = class {
|
|
|
2771
2771
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
2772
2772
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
2773
2773
|
return (index.h(index.Host, { key: '9261f1ac3d1ffc7b3f696d7dc528eb39d21e39f3', class: 'p-table-header' }, this.loading && (index.h("p-loader", { key: '52cb48056ac2ce46ae3825e97a83735c90926e4e', variant: 'ghost', class: 'hidden h-8 w-3/4 rounded desktop-xs:flex' })), !this.loading &&
|
|
2774
|
-
(hasCustomFilterSlot || this.quickFilters.length > 0) && (index.h("div", { key: '4c1a883ae11bb2a8a9a0a3d1339600d58174543b', class: 'left-side flex flex-col justify-start gap-4 desktop-xs:flex-row' }, hasCustomFilterSlot && index.h("slot", { key: '0ef29f9afb9cb27761f11146fa41933e64e7fed8', name: 'custom-filter' }), this.quickFilters.length > 0 && (index.h("p-segment-container", { key: '480435085fab332399b5386d33fed70b0d96d718', class: 'hidden desktop-xs:flex' }, this.quickFilters.map(item => (index.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})` : ''))))))), index.h("div", { key: 'a5c1add14f7a2c3056195936325004ed8d1710fe', class: 'right-side flex flex-col justify-end gap-4 desktop-xs:flex-row' }, this.enableSearch && (index.h("p-field", { key: '
|
|
2774
|
+
(hasCustomFilterSlot || this.quickFilters.length > 0) && (index.h("div", { key: '4c1a883ae11bb2a8a9a0a3d1339600d58174543b', class: 'left-side flex flex-col justify-start gap-4 desktop-xs:flex-row' }, hasCustomFilterSlot && index.h("slot", { key: '0ef29f9afb9cb27761f11146fa41933e64e7fed8', name: 'custom-filter' }), this.quickFilters.length > 0 && (index.h("p-segment-container", { key: '480435085fab332399b5386d33fed70b0d96d718', class: 'hidden desktop-xs:flex' }, this.quickFilters.map(item => (index.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})` : ''))))))), index.h("div", { key: 'a5c1add14f7a2c3056195936325004ed8d1710fe', class: 'right-side flex flex-col justify-end gap-4 desktop-xs:flex-row' }, this.enableSearch && (index.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 && (index.h("p-button", { key: 'b101dd2da885d7abc10c2d2e76e9d4f6e549e984', icon: 'filter', variant: 'secondary', size: 'sm', class: `w-full ${this.enableFilterDesktop
|
|
2775
2775
|
? 'desktop-xs:w-auto'
|
|
2776
2776
|
: 'desktop-xs:hidden'}`, onClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
2777
2777
|
? this.filterButtonTemplate()
|
|
2778
2778
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
2779
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && index.h("slot", { key: '
|
|
2779
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && index.h("slot", { key: '0d1293590817ed31001298900752cc1ee09b61f9', name: 'custom-actions' })), this.enableAction && this.canUseAction && (index.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)))));
|
|
2780
2780
|
}
|
|
2781
2781
|
async _setLocales() {
|
|
2782
2782
|
this._locales = await localization.getLocaleComponentStrings(this._el);
|
|
@@ -2804,9 +2804,9 @@ const TableRow = class {
|
|
|
2804
2804
|
this.enableHover = true;
|
|
2805
2805
|
}
|
|
2806
2806
|
render() {
|
|
2807
|
-
return (index.h(index.Host, { key: '
|
|
2807
|
+
return (index.h(index.Host, { key: '962ec4f0187a22416270df391edb910c6584fc57', class: `p-table-row variant-${this.variant} ${this.enableHover &&
|
|
2808
2808
|
this.variant === 'default' &&
|
|
2809
|
-
'enable-hover'} group` }, index.h("div", { key: '
|
|
2809
|
+
'enable-hover'} group` }, index.h("div", { key: '45deb1c2a22e4afdf99b3e4f407f8ceedc3769fc', class: "content" }, index.h("slot", { key: 'd9bae05aad34f48ef13598e432813ffacab3d3f6' })), this.variant === 'default' && index.h("p-divider", { key: 'efdc3dcb43ea3f74786495f62ceaf7b6a62908d6', class: "m-0" })));
|
|
2810
2810
|
}
|
|
2811
2811
|
};
|
|
2812
2812
|
TableRow.style = PTableRowStyle0;
|