@paperless/core 2.0.1-beta.20 → 2.0.1-beta.22
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 +31 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/build/p-05ca30af.entry.js +2 -0
- package/dist/build/p-05ca30af.entry.js.map +1 -0
- package/dist/build/{p-00534c3c.entry.js → p-0b883fbb.entry.js} +2 -2
- package/dist/build/{p-8b28c5be.entry.js → p-0c040d86.entry.js} +2 -2
- package/dist/build/{p-46cf79b4.entry.js → p-0e1935d5.entry.js} +2 -2
- package/dist/{paperless/p-e102e82d.entry.js → build/p-109a8a56.entry.js} +2 -2
- package/dist/build/p-11c446d6.entry.js +2 -0
- package/dist/build/p-11c446d6.entry.js.map +1 -0
- package/dist/{paperless/p-db4ea9ce.entry.js → build/p-1fdda214.entry.js} +2 -2
- package/dist/build/p-314d396f.entry.js +2 -0
- package/dist/build/p-314d396f.entry.js.map +1 -0
- package/dist/build/p-35080e8e.entry.js +2 -0
- package/dist/build/{p-276d2804.entry.js → p-3b5242e9.entry.js} +2 -2
- package/dist/build/{p-57fc0eb5.entry.js → p-3fdd326e.entry.js} +2 -2
- package/dist/build/p-412a9f4d.entry.js +2 -0
- package/dist/build/p-412a9f4d.entry.js.map +1 -0
- package/dist/build/p-45b82020.entry.js +2 -0
- package/dist/build/p-4eeba18a.entry.js +2 -0
- package/dist/build/p-4eeba18a.entry.js.map +1 -0
- package/dist/build/{p-b27bbec2.entry.js → p-62843ca0.entry.js} +2 -2
- package/dist/build/{p-5c6050aa.entry.js → p-638d2138.entry.js} +2 -2
- package/dist/build/{p-68ae68c8.entry.js → p-6bcae357.entry.js} +2 -2
- package/dist/{paperless/p-c6a042f7.entry.js → build/p-6cf35b72.entry.js} +2 -2
- package/dist/build/p-70d427af.entry.js +2 -0
- package/dist/build/p-70d427af.entry.js.map +1 -0
- package/dist/build/{p-716a92ae.entry.js → p-7f3cad06.entry.js} +2 -2
- package/dist/build/p-859c4fb1.entry.js +2 -0
- package/dist/build/{p-d31d6714.entry.js → p-881a012e.entry.js} +2 -2
- package/dist/build/p-8c094336.entry.js +2 -0
- package/dist/build/p-8c094336.entry.js.map +1 -0
- package/dist/{paperless/p-0ffb8f53.entry.js → build/p-8d165db5.entry.js} +2 -2
- package/dist/{paperless/p-9f191ebc.entry.js → build/p-955283d1.entry.js} +2 -2
- package/dist/build/p-955283d1.entry.js.map +1 -0
- package/dist/build/{p-955d149f.entry.js → p-99688230.entry.js} +2 -2
- package/dist/build/{p-117de4a8.entry.js → p-9f790bea.entry.js} +2 -2
- package/dist/build/{p-b26d5130.entry.js → p-a80dc54a.entry.js} +2 -2
- package/dist/build/p-af175b74.entry.js +2 -0
- package/dist/build/p-af175b74.entry.js.map +1 -0
- package/dist/build/{p-8b3b5d3b.entry.js → p-b2b69ce0.entry.js} +2 -2
- package/dist/{paperless/p-5f54e4b8.entry.js → build/p-b708b7e3.entry.js} +3 -3
- package/dist/build/{p-5f54e4b8.entry.js.map → p-b708b7e3.entry.js.map} +1 -1
- package/dist/build/p-b868a720.js +2 -0
- package/dist/build/{p-8f4ccbe0.entry.js → p-c1142e26.entry.js} +2 -2
- package/dist/build/{p-2f821184.entry.js → p-c18827fc.entry.js} +2 -2
- package/dist/build/{p-e9a323f2.entry.js → p-c2825667.entry.js} +2 -2
- package/dist/build/p-c605a1c1.js +2 -0
- package/dist/build/p-c605a1c1.js.map +1 -0
- package/dist/build/p-d19f3457.entry.js +2 -0
- package/dist/build/p-d19f3457.entry.js.map +1 -0
- package/dist/build/p-d63066b0.css +1 -0
- package/dist/build/p-dfce711d.entry.js +2 -0
- package/dist/build/p-dfce711d.entry.js.map +1 -0
- package/dist/build/{p-1ea8012a.entry.js → p-e9008b5f.entry.js} +2 -2
- package/dist/build/{p-c6fa153f.entry.js → p-eb6d1fed.entry.js} +2 -2
- package/dist/build/{p-448b6640.entry.js → p-f3d0ea94.entry.js} +2 -2
- package/dist/{paperless/p-e9ddf7b0.entry.js → build/p-f6fcedff.entry.js} +2 -2
- package/dist/{paperless/p-d26ee54b.entry.js → build/p-fb51eccd.entry.js} +2 -2
- package/dist/build/{p-8b38f27d.entry.js → p-fe5637cc.entry.js} +2 -2
- package/dist/build/paperless.css +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/index-3f9bbc0c.js +24 -12
- package/dist/cjs/index.cjs.js +3 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nonce-0feefc04.js +17 -0
- package/dist/cjs/nonce-0feefc04.js.map +1 -0
- package/dist/cjs/p-accordion.cjs.entry.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +4 -4
- package/dist/cjs/p-badge_3.cjs.entry.js +67 -0
- package/dist/cjs/p-badge_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +446 -0
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox_3.cjs.entry.js +444 -0
- package/dist/cjs/p-checkbox_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-counter.cjs.entry.js +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js +3 -3
- package/dist/cjs/p-cropper.cjs.entry.js.map +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +1 -1
- 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_3.cjs.entry.js +316 -0
- package/dist/cjs/p-field_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +8 -8
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
- 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-label.cjs.entry.js +64 -0
- package/dist/cjs/p-label.cjs.entry.js.map +1 -0
- 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 +4 -3
- package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -1
- 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_2.cjs.entry.js +233 -0
- package/dist/cjs/p-portal_2.cjs.entry.js.map +1 -0
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +8 -19
- package/dist/cjs/p-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
- package/dist/cjs/p-status.cjs.entry.js +2 -2
- package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +15 -17
- package/dist/cjs/p-table.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +148 -0
- package/dist/cjs/p-toggle.cjs.entry.js.map +1 -0
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/atoms/checkbox/checkbox.component.css +1 -0
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +283 -0
- package/dist/collection/components/atoms/checkbox/checkbox.component.js.map +1 -0
- 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.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +4 -4
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.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.css +1 -1
- package/dist/collection/components/atoms/radio/radio.component.js +5 -5
- package/dist/collection/components/atoms/radio/radio.component.js.map +1 -1
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +1 -1
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +1 -1
- package/dist/collection/components/atoms/status/status.component.js +2 -2
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +1 -1
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +1 -1
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +1 -1
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +1 -1
- package/dist/collection/components/atoms/table-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.css +1 -0
- package/dist/collection/components/atoms/toggle/toggle.component.js +321 -0
- package/dist/collection/components/atoms/toggle/toggle.component.js.map +1 -0
- 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.css +1 -1
- 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.css +1 -1
- package/dist/collection/components/molecules/cropper/cropper.component.js +2 -2
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +3 -3
- package/dist/collection/components/molecules/field/field.component.js +9 -6
- package/dist/collection/components/molecules/field/field.component.js.map +1 -1
- package/dist/collection/components/molecules/input-error/input-error.component.js +1 -1
- package/dist/collection/components/molecules/label/label.component.css +1 -0
- package/dist/collection/components/{atoms → molecules}/label/label.component.js +49 -57
- package/dist/collection/components/molecules/label/label.component.js.map +1 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -1
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +23 -2
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -1
- 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 -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 +1 -1
- 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.css +1 -1
- package/dist/collection/components/organisms/table/table.component.js +13 -16
- package/dist/collection/components/organisms/table/table.component.js.map +1 -1
- package/dist/collection/tailwind/theme/colors.js +1 -1
- package/dist/collection/tailwind/theme/colors.js.map +1 -1
- package/dist/collection/tailwind/theme/shadows.js +2 -1
- package/dist/collection/tailwind/theme/shadows.js.map +1 -1
- package/dist/components/button.component.js +5 -5
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/calendar.component.js +1 -1
- package/dist/components/checkbox.component.js +134 -0
- package/dist/components/checkbox.component.js.map +1 -0
- 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 +12 -6
- package/dist/components/dropdown-menu-item.component.js.map +1 -1
- package/dist/components/dropdown.component.js +3 -3
- package/dist/components/field.component.js +9 -6
- 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/index.js +3 -2
- package/dist/components/index.js.map +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/nonce.js +15 -0
- package/dist/components/nonce.js.map +1 -0
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +4 -4
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-checkbox.d.ts +11 -0
- package/dist/components/p-checkbox.js +8 -0
- package/dist/components/p-checkbox.js.map +1 -0
- package/dist/components/p-content-slider.js +2 -2
- package/dist/components/p-counter.js +1 -1
- package/dist/components/p-cropper.js +3 -3
- package/dist/components/p-cropper.js.map +1 -1
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-iban-icon.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-label.js +83 -1
- package/dist/components/p-label.js.map +1 -1
- package/dist/components/p-layout.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +15 -7
- package/dist/components/p-navigation-item.js.map +1 -1
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-radio.js +7 -18
- package/dist/components/p-radio.js.map +1 -1
- package/dist/components/p-select.js +11 -5
- 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 +45 -42
- package/dist/components/p-table.js.map +1 -1
- package/dist/components/p-toast-container.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.d.ts +11 -0
- package/dist/components/p-toggle.js +169 -0
- package/dist/components/p-toggle.js.map +1 -0
- package/dist/components/page-size-select.component.js +8 -2
- package/dist/components/page-size-select.component.js.map +1 -1
- 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 +1 -1
- package/dist/components/slider-indicator.component.js +1 -1
- package/dist/components/stepper-line.component.js +1 -1
- package/dist/components/table-cell.component.js +1 -1
- package/dist/components/table-container.component.js +1 -1
- package/dist/components/table-footer.component.js +9 -3
- package/dist/components/table-footer.component.js.map +1 -1
- package/dist/components/table-header.component.js +14 -14
- 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/index-2ef94580.js +24 -12
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nonce-a9254eb4.js +15 -0
- package/dist/esm/nonce-a9254eb4.js.map +1 -0
- package/dist/esm/p-accordion.entry.js +1 -1
- package/dist/esm/p-attachment.entry.js +4 -4
- package/dist/esm/p-badge_3.entry.js +61 -0
- package/dist/esm/p-badge_3.entry.js.map +1 -0
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +440 -0
- package/dist/esm/p-button_3.entry.js.map +1 -0
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-checkbox_3.entry.js +438 -0
- package/dist/esm/p-checkbox_3.entry.js.map +1 -0
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-counter.entry.js +1 -1
- package/dist/esm/p-cropper.entry.js +3 -3
- package/dist/esm/p-cropper.entry.js.map +1 -1
- package/dist/esm/p-datepicker.entry.js +1 -1
- 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_3.entry.js +310 -0
- package/dist/esm/p-field_3.entry.js.map +1 -0
- package/dist/esm/p-floating-menu-container_8.entry.js +8 -8
- package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
- 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-label.entry.js +60 -0
- package/dist/esm/p-label.entry.js.map +1 -0
- 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 +4 -3
- package/dist/esm/p-navigation-item.entry.js.map +1 -1
- 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_2.entry.js +228 -0
- package/dist/esm/p-portal_2.entry.js.map +1 -0
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +7 -18
- package/dist/esm/p-radio.entry.js.map +1 -1
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-slider-indicator.entry.js +1 -1
- package/dist/esm/p-status.entry.js +2 -2
- package/dist/esm/p-stepper-item.entry.js +1 -1
- package/dist/esm/p-stepper-line.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-tab-group.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-table.entry.js +15 -17
- package/dist/esm/p-table.entry.js.map +1 -1
- package/dist/esm/p-toast-container.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +144 -0
- package/dist/esm/p-toggle.entry.js.map +1 -0
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/index.esm.js.map +1 -1
- package/dist/paperless/p-05ca30af.entry.js +2 -0
- package/dist/paperless/p-05ca30af.entry.js.map +1 -0
- package/dist/paperless/{p-00534c3c.entry.js → p-0b883fbb.entry.js} +2 -2
- package/dist/paperless/{p-8b28c5be.entry.js → p-0c040d86.entry.js} +2 -2
- package/dist/paperless/{p-46cf79b4.entry.js → p-0e1935d5.entry.js} +2 -2
- package/dist/{build/p-e102e82d.entry.js → paperless/p-109a8a56.entry.js} +2 -2
- package/dist/paperless/p-11c446d6.entry.js +2 -0
- package/dist/paperless/p-11c446d6.entry.js.map +1 -0
- package/dist/{build/p-db4ea9ce.entry.js → paperless/p-1fdda214.entry.js} +2 -2
- package/dist/paperless/p-314d396f.entry.js +2 -0
- package/dist/paperless/p-314d396f.entry.js.map +1 -0
- package/dist/paperless/p-35080e8e.entry.js +2 -0
- package/dist/paperless/{p-276d2804.entry.js → p-3b5242e9.entry.js} +2 -2
- package/dist/paperless/{p-57fc0eb5.entry.js → p-3fdd326e.entry.js} +2 -2
- package/dist/paperless/p-412a9f4d.entry.js +2 -0
- package/dist/paperless/p-412a9f4d.entry.js.map +1 -0
- package/dist/paperless/p-45b82020.entry.js +2 -0
- package/dist/paperless/p-4eeba18a.entry.js +2 -0
- package/dist/paperless/p-4eeba18a.entry.js.map +1 -0
- package/dist/paperless/{p-b27bbec2.entry.js → p-62843ca0.entry.js} +2 -2
- package/dist/paperless/{p-5c6050aa.entry.js → p-638d2138.entry.js} +2 -2
- package/dist/paperless/{p-68ae68c8.entry.js → p-6bcae357.entry.js} +2 -2
- package/dist/{build/p-c6a042f7.entry.js → paperless/p-6cf35b72.entry.js} +2 -2
- package/dist/paperless/p-70d427af.entry.js +2 -0
- package/dist/paperless/p-70d427af.entry.js.map +1 -0
- package/dist/paperless/{p-716a92ae.entry.js → p-7f3cad06.entry.js} +2 -2
- package/dist/paperless/p-859c4fb1.entry.js +2 -0
- package/dist/paperless/{p-d31d6714.entry.js → p-881a012e.entry.js} +2 -2
- package/dist/paperless/p-8c094336.entry.js +2 -0
- package/dist/paperless/p-8c094336.entry.js.map +1 -0
- package/dist/{build/p-0ffb8f53.entry.js → paperless/p-8d165db5.entry.js} +2 -2
- package/dist/{build/p-9f191ebc.entry.js → paperless/p-955283d1.entry.js} +2 -2
- package/dist/paperless/p-955283d1.entry.js.map +1 -0
- package/dist/paperless/{p-955d149f.entry.js → p-99688230.entry.js} +2 -2
- package/dist/paperless/{p-117de4a8.entry.js → p-9f790bea.entry.js} +2 -2
- package/dist/paperless/{p-b26d5130.entry.js → p-a80dc54a.entry.js} +2 -2
- package/dist/paperless/p-af175b74.entry.js +2 -0
- package/dist/paperless/p-af175b74.entry.js.map +1 -0
- package/dist/paperless/{p-8b3b5d3b.entry.js → p-b2b69ce0.entry.js} +2 -2
- package/dist/{build/p-5f54e4b8.entry.js → paperless/p-b708b7e3.entry.js} +3 -3
- package/dist/paperless/{p-5f54e4b8.entry.js.map → p-b708b7e3.entry.js.map} +1 -1
- package/dist/paperless/{p-8f4ccbe0.entry.js → p-c1142e26.entry.js} +2 -2
- package/dist/paperless/{p-2f821184.entry.js → p-c18827fc.entry.js} +2 -2
- package/dist/paperless/{p-e9a323f2.entry.js → p-c2825667.entry.js} +2 -2
- package/dist/paperless/p-c605a1c1.js +2 -0
- package/dist/paperless/p-c605a1c1.js.map +1 -0
- package/dist/paperless/p-d19f3457.entry.js +2 -0
- package/dist/paperless/p-d19f3457.entry.js.map +1 -0
- package/dist/paperless/p-dfce711d.entry.js +2 -0
- package/dist/paperless/p-dfce711d.entry.js.map +1 -0
- package/dist/paperless/{p-1ea8012a.entry.js → p-e9008b5f.entry.js} +2 -2
- package/dist/paperless/{p-c6fa153f.entry.js → p-eb6d1fed.entry.js} +2 -2
- package/dist/paperless/{p-448b6640.entry.js → p-f3d0ea94.entry.js} +2 -2
- package/dist/{build/p-e9ddf7b0.entry.js → paperless/p-f6fcedff.entry.js} +2 -2
- package/dist/{build/p-d26ee54b.entry.js → paperless/p-fb51eccd.entry.js} +2 -2
- package/dist/paperless/{p-8b38f27d.entry.js → p-fe5637cc.entry.js} +2 -2
- package/dist/paperless/paperless.css +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/style/paperless.scss +0 -2
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/tailwind/theme/colors.ts +1 -1
- package/dist/tailwind/theme/shadows.ts +2 -1
- package/dist/types/components/atoms/checkbox/checkbox.component.d.ts +42 -0
- package/dist/types/components/atoms/toggle/toggle.component.d.ts +42 -0
- package/dist/types/components/molecules/field/field.component.d.ts +2 -1
- package/dist/types/components/{atoms → molecules}/label/label.component.d.ts +4 -12
- package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +4 -0
- package/dist/types/components/organisms/table/table.component.d.ts +0 -1
- package/dist/types/components.d.ts +206 -38
- package/dist/types/tailwind/theme/shadows.d.ts +1 -0
- package/hydrate/index.js +430 -131
- package/hydrate/index.mjs +430 -131
- package/package.json +1 -1
- package/dist/build/p-17457a9a.entry.js +0 -2
- package/dist/build/p-2beae871.entry.js +0 -2
- package/dist/build/p-5021f212.entry.js +0 -2
- package/dist/build/p-5021f212.entry.js.map +0 -1
- package/dist/build/p-7ef827d5.entry.js +0 -2
- package/dist/build/p-7ef827d5.entry.js.map +0 -1
- package/dist/build/p-9f191ebc.entry.js.map +0 -1
- package/dist/build/p-a2ff0942.entry.js +0 -2
- package/dist/build/p-a2ff0942.entry.js.map +0 -1
- package/dist/build/p-b8a88966.css +0 -1
- package/dist/build/p-c8616c4a.js +0 -2
- package/dist/build/p-d12bb2d3.entry.js +0 -2
- package/dist/build/p-d12bb2d3.entry.js.map +0 -1
- package/dist/build/p-ddde168c.entry.js +0 -2
- package/dist/build/p-e15305dc.entry.js +0 -2
- package/dist/build/p-e15305dc.entry.js.map +0 -1
- package/dist/build/p-e7bfc9c0.entry.js +0 -2
- package/dist/build/p-e7bfc9c0.entry.js.map +0 -1
- package/dist/build/p-fb0087cc.entry.js +0 -2
- package/dist/build/p-fb0087cc.entry.js.map +0 -1
- package/dist/cjs/p-badge.cjs.entry.js +0 -22
- package/dist/cjs/p-badge.cjs.entry.js.map +0 -1
- package/dist/cjs/p-button_8.cjs.entry.js +0 -972
- package/dist/cjs/p-button_8.cjs.entry.js.map +0 -1
- package/dist/cjs/p-dropdown_2.cjs.entry.js +0 -344
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +0 -1
- package/dist/cjs/p-label_3.cjs.entry.js +0 -76
- package/dist/cjs/p-label_3.cjs.entry.js.map +0 -1
- package/dist/collection/components/atoms/label/label.component.css +0 -1
- package/dist/collection/components/atoms/label/label.component.js.map +0 -1
- package/dist/components/label.component.js +0 -57
- package/dist/components/label.component.js.map +0 -1
- package/dist/esm/p-badge.entry.js +0 -18
- package/dist/esm/p-badge.entry.js.map +0 -1
- package/dist/esm/p-button_8.entry.js +0 -961
- package/dist/esm/p-button_8.entry.js.map +0 -1
- package/dist/esm/p-dropdown_2.entry.js +0 -339
- package/dist/esm/p-dropdown_2.entry.js.map +0 -1
- package/dist/esm/p-label_3.entry.js +0 -70
- package/dist/esm/p-label_3.entry.js.map +0 -1
- package/dist/paperless/p-17457a9a.entry.js +0 -2
- package/dist/paperless/p-2beae871.entry.js +0 -2
- package/dist/paperless/p-5021f212.entry.js +0 -2
- package/dist/paperless/p-5021f212.entry.js.map +0 -1
- package/dist/paperless/p-7ef827d5.entry.js +0 -2
- package/dist/paperless/p-7ef827d5.entry.js.map +0 -1
- package/dist/paperless/p-9f191ebc.entry.js.map +0 -1
- package/dist/paperless/p-a2ff0942.entry.js +0 -2
- package/dist/paperless/p-a2ff0942.entry.js.map +0 -1
- package/dist/paperless/p-d12bb2d3.entry.js +0 -2
- package/dist/paperless/p-d12bb2d3.entry.js.map +0 -1
- package/dist/paperless/p-ddde168c.entry.js +0 -2
- package/dist/paperless/p-e15305dc.entry.js +0 -2
- package/dist/paperless/p-e15305dc.entry.js.map +0 -1
- package/dist/paperless/p-e7bfc9c0.entry.js +0 -2
- package/dist/paperless/p-e7bfc9c0.entry.js.map +0 -1
- package/dist/paperless/p-fb0087cc.entry.js +0 -2
- package/dist/paperless/p-fb0087cc.entry.js.map +0 -1
- package/dist/style/form/_checkbox.scss +0 -135
- package/dist/style/form/_input.scss +0 -31
- package/dist/style/form/_mixins.scss +0 -140
- package/dist/style/form/_radio.scss +0 -58
- package/dist/style/form/_range.scss +0 -20
- package/dist/style/form/_textarea.scss +0 -31
- package/dist/style/form/index.scss +0 -5
- /package/dist/build/{p-00534c3c.entry.js.map → p-0b883fbb.entry.js.map} +0 -0
- /package/dist/build/{p-8b28c5be.entry.js.map → p-0c040d86.entry.js.map} +0 -0
- /package/dist/build/{p-46cf79b4.entry.js.map → p-0e1935d5.entry.js.map} +0 -0
- /package/dist/build/{p-e102e82d.entry.js.map → p-109a8a56.entry.js.map} +0 -0
- /package/dist/build/{p-db4ea9ce.entry.js.map → p-1fdda214.entry.js.map} +0 -0
- /package/dist/build/{p-2beae871.entry.js.map → p-35080e8e.entry.js.map} +0 -0
- /package/dist/build/{p-276d2804.entry.js.map → p-3b5242e9.entry.js.map} +0 -0
- /package/dist/build/{p-57fc0eb5.entry.js.map → p-3fdd326e.entry.js.map} +0 -0
- /package/dist/build/{p-17457a9a.entry.js.map → p-45b82020.entry.js.map} +0 -0
- /package/dist/build/{p-b27bbec2.entry.js.map → p-62843ca0.entry.js.map} +0 -0
- /package/dist/build/{p-5c6050aa.entry.js.map → p-638d2138.entry.js.map} +0 -0
- /package/dist/build/{p-68ae68c8.entry.js.map → p-6bcae357.entry.js.map} +0 -0
- /package/dist/build/{p-c6a042f7.entry.js.map → p-6cf35b72.entry.js.map} +0 -0
- /package/dist/build/{p-716a92ae.entry.js.map → p-7f3cad06.entry.js.map} +0 -0
- /package/dist/build/{p-ddde168c.entry.js.map → p-859c4fb1.entry.js.map} +0 -0
- /package/dist/build/{p-d31d6714.entry.js.map → p-881a012e.entry.js.map} +0 -0
- /package/dist/build/{p-0ffb8f53.entry.js.map → p-8d165db5.entry.js.map} +0 -0
- /package/dist/build/{p-955d149f.entry.js.map → p-99688230.entry.js.map} +0 -0
- /package/dist/build/{p-117de4a8.entry.js.map → p-9f790bea.entry.js.map} +0 -0
- /package/dist/build/{p-b26d5130.entry.js.map → p-a80dc54a.entry.js.map} +0 -0
- /package/dist/build/{p-8b3b5d3b.entry.js.map → p-b2b69ce0.entry.js.map} +0 -0
- /package/dist/build/{p-8f4ccbe0.entry.js.map → p-c1142e26.entry.js.map} +0 -0
- /package/dist/build/{p-2f821184.entry.js.map → p-c18827fc.entry.js.map} +0 -0
- /package/dist/build/{p-e9a323f2.entry.js.map → p-c2825667.entry.js.map} +0 -0
- /package/dist/build/{p-1ea8012a.entry.js.map → p-e9008b5f.entry.js.map} +0 -0
- /package/dist/build/{p-c6fa153f.entry.js.map → p-eb6d1fed.entry.js.map} +0 -0
- /package/dist/build/{p-448b6640.entry.js.map → p-f3d0ea94.entry.js.map} +0 -0
- /package/dist/build/{p-e9ddf7b0.entry.js.map → p-f6fcedff.entry.js.map} +0 -0
- /package/dist/build/{p-d26ee54b.entry.js.map → p-fb51eccd.entry.js.map} +0 -0
- /package/dist/build/{p-8b38f27d.entry.js.map → p-fe5637cc.entry.js.map} +0 -0
- /package/dist/paperless/{p-00534c3c.entry.js.map → p-0b883fbb.entry.js.map} +0 -0
- /package/dist/paperless/{p-8b28c5be.entry.js.map → p-0c040d86.entry.js.map} +0 -0
- /package/dist/paperless/{p-46cf79b4.entry.js.map → p-0e1935d5.entry.js.map} +0 -0
- /package/dist/paperless/{p-e102e82d.entry.js.map → p-109a8a56.entry.js.map} +0 -0
- /package/dist/paperless/{p-db4ea9ce.entry.js.map → p-1fdda214.entry.js.map} +0 -0
- /package/dist/paperless/{p-2beae871.entry.js.map → p-35080e8e.entry.js.map} +0 -0
- /package/dist/paperless/{p-276d2804.entry.js.map → p-3b5242e9.entry.js.map} +0 -0
- /package/dist/paperless/{p-57fc0eb5.entry.js.map → p-3fdd326e.entry.js.map} +0 -0
- /package/dist/paperless/{p-17457a9a.entry.js.map → p-45b82020.entry.js.map} +0 -0
- /package/dist/paperless/{p-b27bbec2.entry.js.map → p-62843ca0.entry.js.map} +0 -0
- /package/dist/paperless/{p-5c6050aa.entry.js.map → p-638d2138.entry.js.map} +0 -0
- /package/dist/paperless/{p-68ae68c8.entry.js.map → p-6bcae357.entry.js.map} +0 -0
- /package/dist/paperless/{p-c6a042f7.entry.js.map → p-6cf35b72.entry.js.map} +0 -0
- /package/dist/paperless/{p-716a92ae.entry.js.map → p-7f3cad06.entry.js.map} +0 -0
- /package/dist/paperless/{p-ddde168c.entry.js.map → p-859c4fb1.entry.js.map} +0 -0
- /package/dist/paperless/{p-d31d6714.entry.js.map → p-881a012e.entry.js.map} +0 -0
- /package/dist/paperless/{p-0ffb8f53.entry.js.map → p-8d165db5.entry.js.map} +0 -0
- /package/dist/paperless/{p-955d149f.entry.js.map → p-99688230.entry.js.map} +0 -0
- /package/dist/paperless/{p-117de4a8.entry.js.map → p-9f790bea.entry.js.map} +0 -0
- /package/dist/paperless/{p-b26d5130.entry.js.map → p-a80dc54a.entry.js.map} +0 -0
- /package/dist/paperless/{p-8b3b5d3b.entry.js.map → p-b2b69ce0.entry.js.map} +0 -0
- /package/dist/paperless/{p-8f4ccbe0.entry.js.map → p-c1142e26.entry.js.map} +0 -0
- /package/dist/paperless/{p-2f821184.entry.js.map → p-c18827fc.entry.js.map} +0 -0
- /package/dist/paperless/{p-e9a323f2.entry.js.map → p-c2825667.entry.js.map} +0 -0
- /package/dist/paperless/{p-1ea8012a.entry.js.map → p-e9008b5f.entry.js.map} +0 -0
- /package/dist/paperless/{p-c6fa153f.entry.js.map → p-eb6d1fed.entry.js.map} +0 -0
- /package/dist/paperless/{p-448b6640.entry.js.map → p-f3d0ea94.entry.js.map} +0 -0
- /package/dist/paperless/{p-e9ddf7b0.entry.js.map → p-f6fcedff.entry.js.map} +0 -0
- /package/dist/paperless/{p-d26ee54b.entry.js.map → p-fb51eccd.entry.js.map} +0 -0
- /package/dist/paperless/{p-8b38f27d.entry.js.map → p-fe5637cc.entry.js.map} +0 -0
|
@@ -2938,7 +2938,7 @@ const Datepicker = class {
|
|
|
2938
2938
|
this.parseValue(this.value);
|
|
2939
2939
|
}
|
|
2940
2940
|
render() {
|
|
2941
|
-
return (h(Host, { key: '
|
|
2941
|
+
return (h(Host, { key: '0de36ac63a8498aa89896203a95b32990ff09005', class: 'p-datepicker' }, h("p-dropdown", { key: '03c3fd3666a07cafd8c972627637a335f4dbd31f', strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: '79f0be9fbc485923a05f884d7ab215d53d56ea46', 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) }), h("div", { key: '3f096013cc6cde840576d9a71cd8ff6bdbf5c0d7', slot: 'items' }, h("p-calendar", { key: 'e40c1f2a0c1458a836268f4d39e64bb3bb637b5a', 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 })))));
|
|
2942
2942
|
}
|
|
2943
2943
|
documentClickHandler({ target }) {
|
|
2944
2944
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -11,7 +11,7 @@ const Divider = class {
|
|
|
11
11
|
get _el() { return getElement(this); }
|
|
12
12
|
render() {
|
|
13
13
|
const hasSlotted = !!this._el.innerHTML?.length;
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '4e7e3f76c4d8cd9c5752bfb514917368aaf479bc', class: 'p-divider' }, h("div", { key: 'e8b94342c6c8c2f0c52a7ddd7bf49e091e2b2f0d', class: 'content' }, h("div", { key: '2b11bd0b9414b9b5884df6ba113ffed60eeccf1d', class: `flex items-center ${hasSlotted && 'px-2'} text-xs font-semibold uppercase text-storm-light` }, h("slot", { key: '9eb43ae5fc38830a274721c4e29bed49e6da7e0a' })))));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
Divider.style = PDividerStyle0;
|
|
@@ -9,7 +9,7 @@ const ModalBody = class {
|
|
|
9
9
|
this.variant = 'default';
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'b3733a13455dd1ea7cfd813c70b759301aad7ddb', class: `p-drawer-body variant-${this.variant}` }, h("slot", { key: '9cdaffefb9a76d63d402bf5df9a8a1c785ffd932' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
ModalBody.style = PDrawerBodyStyle0;
|
|
@@ -23,7 +23,7 @@ const ModalContainer = class {
|
|
|
23
23
|
this.closing = false;
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '8fff9cd196871aa7c5738182e0f24e86b488f0a9', class: `p-drawer-container ${this.closing && 'closing'}` }, h("slot", { key: 'c52ac3f20264e553fd2f9e3429535ab24ecd1eed' })));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
ModalContainer.style = PDrawerContainerStyle0;
|
|
@@ -42,7 +42,7 @@ const ModalHeader = class {
|
|
|
42
42
|
*/
|
|
43
43
|
close;
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'ac60faaafaa2d0ecb13e0be70848bc623c002b69', class: 'p-drawer-header' }, this.showClose && (h("p-button", { key: 'da636aab294d800a0de03b02fbe63971c6d2a2cf', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: () => this.close.emit(), size: 'sm' })), h("slot", { key: '5aab881dedd79021a2aec11fe875334c561107da' })));
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
ModalHeader.style = PDrawerHeaderStyle0;
|
|
@@ -47,13 +47,13 @@ const DropdownMenuContainer = class {
|
|
|
47
47
|
: this.scrollable === true
|
|
48
48
|
? 'default'
|
|
49
49
|
: this.scrollable;
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'e549573c5aeddeceb9cf8970ff3e4f1a49416a9e', class: dropdownMenuContainer({
|
|
51
51
|
class: this.class,
|
|
52
52
|
fullWidth: this.fullWidth,
|
|
53
53
|
allowOverflow: this.allowOverflow,
|
|
54
54
|
scrollable,
|
|
55
55
|
maxWidth: this.maxWidth,
|
|
56
|
-
}) }, h("div", { key: '
|
|
56
|
+
}) }, h("div", { key: '42ac40b2ac896553e130803dbfa849cca34cfb84', class: 'flex w-full flex-col gap-[1px]' }, h("slot", { key: '73fa9c93c564274aaa24910bf7215b23a8d93fe9' }))));
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
DropdownMenuContainer.style = PDropdownMenuContainerStyle0;
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, g as getElement, h, H as Host, F as Fragment } from './index-2ef94580.js';
|
|
2
|
+
import { c as cva } from './index-10317a74.js';
|
|
3
|
+
import { f as formatTranslation, g as getLocaleComponentStrings } from './localization-339ba26d.js';
|
|
4
|
+
import './clsx-297c1ffe.js';
|
|
5
|
+
|
|
6
|
+
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}";
|
|
7
|
+
const PFieldStyle0 = fieldComponentCss;
|
|
8
|
+
|
|
9
|
+
const field = cva(['flex gap-2', 'w-inherit px-2', 'border border-solid rounded-lg'], {
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
sm: 'h-6',
|
|
13
|
+
base: 'h-8',
|
|
14
|
+
},
|
|
15
|
+
disabled: {
|
|
16
|
+
false: 'bg-white',
|
|
17
|
+
true: 'bg-white-600 cursor-not-allowed',
|
|
18
|
+
},
|
|
19
|
+
focused: {
|
|
20
|
+
false: null,
|
|
21
|
+
true: null,
|
|
22
|
+
},
|
|
23
|
+
error: {
|
|
24
|
+
false: null,
|
|
25
|
+
true: null,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
compoundVariants: [
|
|
29
|
+
{
|
|
30
|
+
focused: false,
|
|
31
|
+
error: false,
|
|
32
|
+
class: 'border-black-teal-100',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
disabled: false,
|
|
36
|
+
focused: true,
|
|
37
|
+
error: false,
|
|
38
|
+
class: 'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
disabled: false,
|
|
42
|
+
error: true,
|
|
43
|
+
class: 'border-negative-red',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
disabled: false,
|
|
47
|
+
focused: true,
|
|
48
|
+
error: true,
|
|
49
|
+
class: 'ring ring-negative-red-50 selection:bg-negative-red-50',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
});
|
|
53
|
+
const input = cva('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', {
|
|
54
|
+
variants: {
|
|
55
|
+
disabled: {
|
|
56
|
+
false: null,
|
|
57
|
+
true: 'cursor-not-allowed',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
const prefixAndSuffic = cva(['flex flex-shrink-0 justify-center items-center text-center'], {
|
|
62
|
+
variants: {
|
|
63
|
+
disabled: {
|
|
64
|
+
false: null,
|
|
65
|
+
true: 'text-black-teal-100',
|
|
66
|
+
},
|
|
67
|
+
focused: {
|
|
68
|
+
false: null,
|
|
69
|
+
true: null,
|
|
70
|
+
},
|
|
71
|
+
error: {
|
|
72
|
+
false: null,
|
|
73
|
+
true: null,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
compoundVariants: [
|
|
77
|
+
{
|
|
78
|
+
disabled: false,
|
|
79
|
+
focused: false,
|
|
80
|
+
error: false,
|
|
81
|
+
class: 'text-black-teal-300',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
disabled: false,
|
|
85
|
+
focused: true,
|
|
86
|
+
error: false,
|
|
87
|
+
class: 'text-black-teal-500',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
disabled: false,
|
|
91
|
+
focused: false,
|
|
92
|
+
error: true,
|
|
93
|
+
class: 'text-negative-red',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
disabled: false,
|
|
97
|
+
focused: true,
|
|
98
|
+
error: true,
|
|
99
|
+
class: 'text-negative-red-800',
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
});
|
|
103
|
+
const Field = class {
|
|
104
|
+
constructor(hostRef) {
|
|
105
|
+
registerInstance(this, hostRef);
|
|
106
|
+
this.valueChange = createEvent(this, "valueChange", 7);
|
|
107
|
+
this.inputRefChange = createEvent(this, "inputRefChange", 7);
|
|
108
|
+
this.size = 'base';
|
|
109
|
+
this.type = 'text';
|
|
110
|
+
this.properties = {};
|
|
111
|
+
this.prefix = undefined;
|
|
112
|
+
this.suffix = undefined;
|
|
113
|
+
this.icon = undefined;
|
|
114
|
+
this.iconFlip = undefined;
|
|
115
|
+
this.iconRotate = undefined;
|
|
116
|
+
this.iconPosition = 'start';
|
|
117
|
+
this.value = undefined;
|
|
118
|
+
this.label = undefined;
|
|
119
|
+
this.placeholder = undefined;
|
|
120
|
+
this.helper = undefined;
|
|
121
|
+
this.required = true;
|
|
122
|
+
this.error = undefined;
|
|
123
|
+
this.errorPlacement = undefined;
|
|
124
|
+
this.disabled = false;
|
|
125
|
+
this.focused = false;
|
|
126
|
+
this.forceShowTooltip = false;
|
|
127
|
+
this.selectAllOnFocus = true;
|
|
128
|
+
this.focusMethod = 'focus';
|
|
129
|
+
this.optionalTemplate = undefined;
|
|
130
|
+
this._focused = false;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Event whenever the value changes
|
|
134
|
+
*/
|
|
135
|
+
valueChange;
|
|
136
|
+
/**
|
|
137
|
+
* Event whenever the input ref changes
|
|
138
|
+
*/
|
|
139
|
+
inputRefChange;
|
|
140
|
+
get _el() { return getElement(this); }
|
|
141
|
+
_inputRef;
|
|
142
|
+
render() {
|
|
143
|
+
const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, } = this._getSlotInfo();
|
|
144
|
+
return (h(Host, { key: '369e15b85e845790a9df07aa20508c953bb39ff3', class: 'p-field' }, h("p-field-container", { key: '232ac448fdd71b051d6e6d5ebcd65e5ce8effa38', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required }, hasLabelSlot && (h("slot", { key: '14db4b1e32a88d4936ed42e7b02fce2aa842484b', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '30b883d2b9804772883690e2e02c480124f036c1', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '63dd8b1491818988bd2c3cf34064139f40a80824', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '9d764d0293a6085ef4d4e62f3a0899fb65951988', name: 'error', slot: 'error' })), h("div", { key: '7d439bcdbc4f9c6d7ee39732b9661c3c99aaa49e', class: field({
|
|
145
|
+
error: !!this.error?.length,
|
|
146
|
+
disabled: this.disabled,
|
|
147
|
+
focused: this.focused || this._focused,
|
|
148
|
+
size: this.size,
|
|
149
|
+
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '4eff37bc22e6706a6546a4367bb89d25f4a6f91f', class: prefixAndSuffic({
|
|
150
|
+
error: !!this.error?.length,
|
|
151
|
+
disabled: this.disabled,
|
|
152
|
+
focused: this.focused || this._focused,
|
|
153
|
+
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '25f300b997455353e9563035288902de694b3130', class: prefixAndSuffic({
|
|
154
|
+
error: !!this.error?.length,
|
|
155
|
+
disabled: this.disabled,
|
|
156
|
+
focused: this.focused || this._focused,
|
|
157
|
+
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'end' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix)))))));
|
|
158
|
+
}
|
|
159
|
+
handleFocusIn() {
|
|
160
|
+
if (this.disabled) {
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
this._focused = true;
|
|
164
|
+
this._selectAll();
|
|
165
|
+
}
|
|
166
|
+
handleFocusOut() {
|
|
167
|
+
if (this.disabled) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
this._focused = false;
|
|
171
|
+
}
|
|
172
|
+
_getSlotInfo() {
|
|
173
|
+
const hasHelperSlot = !!this._el.querySelector(':scope > [slot="helper"]');
|
|
174
|
+
const hasLabelSlot = !!this._el.querySelector(':scope > [slot="label"]');
|
|
175
|
+
const hasPrefixSlot = !!this._el.querySelector(':scope > [slot="prefix"]');
|
|
176
|
+
const hasSuffixSlot = !!this._el.querySelector(':scope > [slot="suffix"]');
|
|
177
|
+
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
178
|
+
const hasErrorSlot = !!this._el.querySelector(':scope > [slot="error"]');
|
|
179
|
+
const prefix = hasPrefixSlot ? h("slot", { name: 'prefix' }) : this.prefix;
|
|
180
|
+
const suffix = hasSuffixSlot ? h("slot", { name: 'suffix' }) : this.suffix;
|
|
181
|
+
const errorAndErrorIsNotBoolean = this.error && typeof this.error === 'string' && this.error !== 'true';
|
|
182
|
+
return {
|
|
183
|
+
hasHelperSlot,
|
|
184
|
+
hasLabelSlot,
|
|
185
|
+
hasPrefixSlot,
|
|
186
|
+
hasSuffixSlot,
|
|
187
|
+
hasHeaderSlot,
|
|
188
|
+
hasErrorSlot,
|
|
189
|
+
prefix,
|
|
190
|
+
suffix,
|
|
191
|
+
errorAndErrorIsNotBoolean,
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
_getInput() {
|
|
195
|
+
if (this.type === 'custom') {
|
|
196
|
+
return h("slot", { name: 'input' });
|
|
197
|
+
}
|
|
198
|
+
const props = {
|
|
199
|
+
class: input({
|
|
200
|
+
disabled: this.disabled,
|
|
201
|
+
}),
|
|
202
|
+
value: this.value,
|
|
203
|
+
placeholder: this.placeholder,
|
|
204
|
+
disabled: this.disabled,
|
|
205
|
+
onInput: (ev) => this._valueChange(ev),
|
|
206
|
+
};
|
|
207
|
+
let properties = this.properties ?? {};
|
|
208
|
+
if (typeof properties === 'string') {
|
|
209
|
+
properties = JSON.parse(this.properties);
|
|
210
|
+
}
|
|
211
|
+
if (this.type === 'textarea') {
|
|
212
|
+
h("textarea", { ref: ref => this._setInputRef(ref), ...props, ...properties });
|
|
213
|
+
}
|
|
214
|
+
return (h("input", { type: this.type, ref: ref => this._setInputRef(ref), ...props, ...properties }));
|
|
215
|
+
}
|
|
216
|
+
_setInputRef(ref) {
|
|
217
|
+
this._inputRef = ref;
|
|
218
|
+
this.inputRefChange.emit(ref);
|
|
219
|
+
}
|
|
220
|
+
_focusInput() {
|
|
221
|
+
if (this._inputRef) {
|
|
222
|
+
this._inputRef.focus();
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
const input = this._el.querySelector(':scope > [slot="input"]');
|
|
226
|
+
input[this.focusMethod]();
|
|
227
|
+
}
|
|
228
|
+
_selectAll() {
|
|
229
|
+
if (!this._inputRef || !this.selectAllOnFocus) {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
this._inputRef.select();
|
|
233
|
+
}
|
|
234
|
+
_valueChange(ev) {
|
|
235
|
+
const value = ev.target.value;
|
|
236
|
+
this.value = value;
|
|
237
|
+
this.valueChange.emit(value);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
Field.style = PFieldStyle0;
|
|
241
|
+
|
|
242
|
+
const fieldContainerComponentCss = "*{box-sizing:border-box}.static{position:static!important}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.flex-col{flex-direction:column!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.text-black-teal-200{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}";
|
|
243
|
+
const PFieldContainerStyle0 = fieldContainerComponentCss;
|
|
244
|
+
|
|
245
|
+
const FieldContainer = class {
|
|
246
|
+
constructor(hostRef) {
|
|
247
|
+
registerInstance(this, hostRef);
|
|
248
|
+
this.focus = createEvent(this, "focus", 7);
|
|
249
|
+
this.label = undefined;
|
|
250
|
+
this.helper = undefined;
|
|
251
|
+
this.required = undefined;
|
|
252
|
+
this.error = undefined;
|
|
253
|
+
this.errorPlacement = undefined;
|
|
254
|
+
this.forceShowTooltip = false;
|
|
255
|
+
this.optionalTemplate = this._defaultOptionalTemplate;
|
|
256
|
+
this._locales = {};
|
|
257
|
+
}
|
|
258
|
+
_defaultOptionalTemplate = () => formatTranslation(this._locales.optional);
|
|
259
|
+
get _el() { return getElement(this); }
|
|
260
|
+
focus;
|
|
261
|
+
componentWillLoad() {
|
|
262
|
+
this._setLocales();
|
|
263
|
+
}
|
|
264
|
+
render() {
|
|
265
|
+
const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
|
|
266
|
+
return (h(Host, { key: '5a9f6522df4ed827c3e66dec4fb0f4632f7b227a', class: 'p-field-container' }, h("div", { key: '7aca74e4bc43e883cc97f1c053117735af73fed4', class: 'flex w-inherit flex-col gap-1' }, h("div", { key: '426757bcec0af2c2835b95946e802aa52d19e603', class: 'flex items-end justify-between gap-1' }, label && (h("div", { key: 'b5f54de0e3643da28e390776339fd629cc784731', class: 'text-xs font-medium text-black-teal-300', onClick: () => this.focus.emit() }, label)), (!this.required || helper || hasHeaderSlot) && (h("div", { key: 'e3bad54b3ea5b73652cc50a08390adcf51563572', class: 'flex items-center gap-1' }, !this.required && (h("span", { key: 'e175174c57d7d7aa3c36789a51b3ea19f3f82e93', class: 'text-xs font-medium text-black-teal-200' }, this.optionalTemplate())), (helper || hasHeaderSlot) && (h(Fragment, { key: 'b6a58573f43e5dcb18aaee9ae6317c9a8ae18461' }, hasHeaderSlot && h("slot", { key: '5708bac40fa9ac3c35aaa103a9314182dc22ceeb', name: 'header' }), helper && (h("p-helper", { key: '4b40eaeb300d824d6af645f77b4f646f9fa49688', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))))), h("p-tooltip", { key: '2548c71b57fb4380ed7199763d92e0bfec97672b', class: 'w-full', variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean && this.forceShowTooltip, enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (h("slot", { key: '5e28992d5467ae8fc554aaa4b11833a9ef696918', name: 'error', slot: 'content' })), h("slot", { key: 'f08fdbf1124fe2d4f9d8b9ca9d057d00254d8046', name: 'content', slot: 'trigger' })))));
|
|
267
|
+
}
|
|
268
|
+
async _setLocales() {
|
|
269
|
+
this._locales = await getLocaleComponentStrings(this._el);
|
|
270
|
+
}
|
|
271
|
+
_getSlotInfo() {
|
|
272
|
+
const hasHelperSlot = !!this._el.querySelector(':scope > [slot="helper"]');
|
|
273
|
+
const hasLabelSlot = !!this._el.querySelector(':scope > [slot="label"]');
|
|
274
|
+
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
275
|
+
const hasErrorSlot = !!this._el.querySelector(':scope > [slot="error"]');
|
|
276
|
+
const helper = hasHelperSlot ? h("slot", { name: 'helper' }) : this.helper;
|
|
277
|
+
const label = hasLabelSlot ? h("slot", { name: 'label' }) : this.label;
|
|
278
|
+
const errorAndErrorIsNotBoolean = hasErrorSlot ||
|
|
279
|
+
(this.error && typeof this.error === 'string' && this.error !== 'true');
|
|
280
|
+
return {
|
|
281
|
+
hasHelperSlot,
|
|
282
|
+
hasLabelSlot,
|
|
283
|
+
hasHeaderSlot,
|
|
284
|
+
hasErrorSlot,
|
|
285
|
+
helper,
|
|
286
|
+
label,
|
|
287
|
+
errorAndErrorIsNotBoolean,
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
FieldContainer.style = PFieldContainerStyle0;
|
|
292
|
+
|
|
293
|
+
const helperComponentCss = ".inline-block{display:inline-block!important}.h-\\[0\\.75rem\\]{height:.75rem!important}.w-\\[0\\.75rem\\]{width:.75rem!important}.cursor-pointer{cursor:pointer!important}.bg-center{background-position:50%!important}*{box-sizing:border-box}:host{line-height:.75rem}:host .helper{background-image:url(/assets/images/helper/helper.svg);background-position:50%;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:.75rem;width:.75rem}:host .helper:hover{background-image:url(/assets/images/helper/helper-hover.svg)}.static{position:static!important}.absolute{position:absolute!important}";
|
|
294
|
+
const PHelperStyle0 = helperComponentCss;
|
|
295
|
+
|
|
296
|
+
const Helper = class {
|
|
297
|
+
constructor(hostRef) {
|
|
298
|
+
registerInstance(this, hostRef);
|
|
299
|
+
this.strategy = 'absolute';
|
|
300
|
+
this.placement = 'top';
|
|
301
|
+
}
|
|
302
|
+
render() {
|
|
303
|
+
return (h(Host, { key: '540f0bec4dd767c4be84ec5973d25bae8863f55e', class: 'p-helper' }, h("p-tooltip", { key: 'f814314bc2a7f9751c57db8a1cda799a3b195fa1', placement: this.placement, strategy: this.strategy }, h("div", { key: '999a01bc5b4cf7bc6ebc229b7279ca215a46ca6d', slot: 'content' }, h("slot", { key: '9fb3ed56f75111c8560a8b877dbfd58aedaa2530' })), h("div", { key: 'b8b9b5ca2ce68040531c071e1d24d8dab049321d', slot: 'trigger', class: 'helper' }))));
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
Helper.style = PHelperStyle0;
|
|
307
|
+
|
|
308
|
+
export { Field as p_field, FieldContainer as p_field_container, Helper as p_helper };
|
|
309
|
+
|
|
310
|
+
//# source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AAU;yBAKR,KAAK;;IAEpC,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAC,UAAU,IACrB,kEACC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvB,4DAAK,IAAI,EAAC,SAAS,IAClB,8DAAQ,CACH,EAEN,4DACC,IAAI,EAAC,SAAS,EACd,KAAK,EAAC,QAAQ,GACR,CACI,CACN,EACN;KACF;;;;;;","names":[],"sources":["src/components/molecules/field/field.component.css?tag=p-field&encapsulation=shadow","src/components/molecules/field/field.component.tsx","src/components/molecules/field-container/field-container.component.scss?tag=p-field-container&encapsulation=shadow","src/components/molecules/field-container/field-container.component.tsx","src/components/atoms/helper/helper.component.scss?tag=p-helper&encapsulation=shadow","src/components/atoms/helper/helper.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 * 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\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","","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.scss',\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",":host {\n\t@apply leading-3;\n\n\t.helper {\n\t\t@apply inline-block h-[0.75rem] w-[0.75rem] cursor-pointer bg-center bg-no-repeat;\n\t\tbackground-image: url(/assets/images/helper/helper.svg);\n\n\t\t&:hover {\n\t\t\tbackground-image: url(/assets/images/helper/helper-hover.svg);\n\t\t}\n\t}\n}\n","import { Placement, Strategy } from '@floating-ui/dom';\nimport { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-helper',\n\tstyleUrl: 'helper.component.scss',\n\tshadow: true,\n})\nexport class Helper {\n\t/**\n\t * The strategy of the popover placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * The placement of the helper popover\n\t */\n\t@Prop() placement: Placement = 'top';\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-helper'>\n\t\t\t\t<p-tooltip\n\t\t\t\t\tplacement={this.placement}\n\t\t\t\t\tstrategy={this.strategy}\n\t\t\t\t>\n\t\t\t\t\t<div slot='content'>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\tclass='helper'\n\t\t\t\t\t></div>\n\t\t\t\t</p-tooltip>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -1637,7 +1637,7 @@ const FloatingMenuContainer = class {
|
|
|
1637
1637
|
this.usedInTable = false;
|
|
1638
1638
|
}
|
|
1639
1639
|
render() {
|
|
1640
|
-
return (h(Host, { key: '
|
|
1640
|
+
return (h(Host, { key: '2469cda7b5e9990919058e7a4d183a86589e543e', class: "p-floating-menu-container" }, this.usedInTable ? (h("slot", { name: "floating-menu-item" })) : (h("slot", null))));
|
|
1641
1641
|
}
|
|
1642
1642
|
};
|
|
1643
1643
|
FloatingMenuContainer.style = PFloatingMenuContainerStyle0;
|
|
@@ -1652,7 +1652,7 @@ const FloatingMenuItem = class {
|
|
|
1652
1652
|
this.disabled = false;
|
|
1653
1653
|
}
|
|
1654
1654
|
render() {
|
|
1655
|
-
return (h(Host, { key: '
|
|
1655
|
+
return (h(Host, { key: 'acd29dcff18979371230b82419c2306084b99b44', class: "p-floating-menu-item" }, h("slot", { key: '80274da4ad9362eaf6573d87ab8f4c633030ecde' })));
|
|
1656
1656
|
}
|
|
1657
1657
|
};
|
|
1658
1658
|
FloatingMenuItem.style = PFloatingMenuItemStyle0;
|
|
@@ -1698,7 +1698,7 @@ const TableCell = class {
|
|
|
1698
1698
|
};
|
|
1699
1699
|
}
|
|
1700
1700
|
render() {
|
|
1701
|
-
return (h(Host, { key: '
|
|
1701
|
+
return (h(Host, { key: 'b8b814dd56c6b227134edcadc553e1e19acaa334', class: {
|
|
1702
1702
|
'p-table-cell': true,
|
|
1703
1703
|
[`variant-${this.variant}`]: true,
|
|
1704
1704
|
...this._getColumnClasses(),
|
|
@@ -1733,7 +1733,7 @@ const TableContainer = class {
|
|
|
1733
1733
|
this.shadow = true;
|
|
1734
1734
|
}
|
|
1735
1735
|
render() {
|
|
1736
|
-
return (h(Host, { key: '
|
|
1736
|
+
return (h(Host, { key: '4e0ae2ffb330d59f65fea3060a733589789b6238', class: `p-table-container ${!this.shadow && 'no-shadow'}` }, h("slot", { key: '4e5330fd7cfe7b021e8dd2a86a819170762a431a' })));
|
|
1737
1737
|
}
|
|
1738
1738
|
};
|
|
1739
1739
|
TableContainer.style = PTableContainerStyle0;
|
|
@@ -1776,7 +1776,7 @@ const TableFooter = class {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
render() {
|
|
1778
1778
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total < this.pageSizeOptions?.[0];
|
|
1779
|
-
return (h(Host, { key: '
|
|
1779
|
+
return (h(Host, { key: '9daf255bd401f1ec1ab7cdcfdbb0ae8c9a3f3c39', class: `p-table-footer ${!this.enablePageSize && 'page-size-disabled'} ${!this.enablePagination && 'pagination-disabled'} ${!this.enableExport && 'export-disabled'}` }, !this.loading && this.enablePagination && this.enablePageSize && (h("p-page-size-select", { key: '7d2587bbdbe51cc5975052e425df0f3cd95eaaa6', class: !hidePageSizeSelect && 'hidden desktop-xs:flex', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) })), this.loading && (h("p-loader", { key: '45eb01d10e869fbc2aa5df4d541a21b4b83bb0d1', variant: 'ghost', class: 'h-8 w-full rounded' })), !this.loading && this.enablePagination && (h("p-pagination", { key: '67bf30e6a70ed6896f9db8c24b8eb5035a555fc5', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail) })), !this.loading && this.enableExport && (h("p-button", { key: 'b2349a3ad06ae6fde33f3e2e1598cdb696ad805a', class: 'hidden desktop-xs:flex', variant: 'secondary', size: 'sm', icon: 'download', onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))));
|
|
1780
1780
|
}
|
|
1781
1781
|
async _setLocales() {
|
|
1782
1782
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -2783,7 +2783,7 @@ const TableHeader = class {
|
|
|
2783
2783
|
: this._defaultActionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)));
|
|
2784
2784
|
}
|
|
2785
2785
|
_getLabel(amount, variant = 'default') {
|
|
2786
|
-
return (h("p-
|
|
2786
|
+
return (h("p-badge", { class: `ml-1 ${variant === 'default'
|
|
2787
2787
|
? 'hidden desktop-xs:flex'
|
|
2788
2788
|
: 'flex desktop-xs:hidden'}` }, amount));
|
|
2789
2789
|
}
|
|
@@ -2800,9 +2800,9 @@ const TableRow = class {
|
|
|
2800
2800
|
this.enableHover = true;
|
|
2801
2801
|
}
|
|
2802
2802
|
render() {
|
|
2803
|
-
return (h(Host, { key: '
|
|
2803
|
+
return (h(Host, { key: 'ef72fc5fdc52b5b152e17f4852761a911305ff5e', class: `p-table-row variant-${this.variant} ${this.enableHover &&
|
|
2804
2804
|
this.variant === 'default' &&
|
|
2805
|
-
'enable-hover'} group` }, h("div", { key: '
|
|
2805
|
+
'enable-hover'} group` }, h("div", { key: 'bef72c2f44063b70abf045ce8a8389a4ee81ab80', class: "content" }, h("slot", { key: 'c998babe66bc22c15d240eb5b611dfb889ac431c' })), this.variant === 'default' && h("p-divider", { key: '3070cb02366efc180501a2b9533c836036b3b134', class: "m-0" })));
|
|
2806
2806
|
}
|
|
2807
2807
|
};
|
|
2808
2808
|
TableRow.style = PTableRowStyle0;
|