@paperless/core 2.0.1-beta.20 → 2.0.1-beta.21
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 +20 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/build/{p-d26ee54b.entry.js → p-036bb6f4.entry.js} +2 -2
- package/dist/build/p-0413fcd0.entry.js +2 -0
- package/dist/build/p-0413fcd0.entry.js.map +1 -0
- package/dist/build/p-0bbd4d1c.entry.js +2 -0
- package/dist/build/p-0bbd4d1c.entry.js.map +1 -0
- 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/build/p-14e63599.entry.js +2 -0
- package/dist/build/{p-716a92ae.entry.js → p-1b5ec2b1.entry.js} +2 -2
- package/dist/{paperless/p-5f54e4b8.entry.js → build/p-1ed4a75e.entry.js} +3 -3
- package/dist/build/{p-5f54e4b8.entry.js.map → p-1ed4a75e.entry.js.map} +1 -1
- package/dist/{paperless/p-9f191ebc.entry.js → build/p-214a2978.entry.js} +2 -2
- package/dist/{paperless/p-e9ddf7b0.entry.js → build/p-2bd123f4.entry.js} +2 -2
- package/dist/{paperless/p-8b38f27d.entry.js → build/p-3a428a06.entry.js} +2 -2
- package/dist/build/{p-276d2804.entry.js → p-3b5242e9.entry.js} +2 -2
- package/dist/build/{p-8b3b5d3b.entry.js → p-3e393301.entry.js} +2 -2
- package/dist/build/{p-d31d6714.entry.js → p-46362798.entry.js} +2 -2
- package/dist/build/{p-1ea8012a.entry.js → p-48efb6e4.entry.js} +2 -2
- package/dist/{paperless/p-7ef827d5.entry.js → build/p-50134fa1.entry.js} +2 -2
- 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/{paperless/p-e102e82d.entry.js → build/p-65d9a61f.entry.js} +2 -2
- package/dist/build/p-6d8852ca.entry.js +2 -0
- package/dist/build/p-889eb696.js +2 -0
- package/dist/build/p-958f3c09.entry.js +2 -0
- package/dist/build/p-958f3c09.entry.js.map +1 -0
- package/dist/build/{p-2f821184.entry.js → p-a56474ea.entry.js} +2 -2
- package/dist/build/{p-68ae68c8.entry.js → p-a5934232.entry.js} +2 -2
- package/dist/build/p-af468e9f.entry.js +2 -0
- package/dist/build/p-af468e9f.entry.js.map +1 -0
- package/dist/build/p-bf261165.entry.js +2 -0
- package/dist/{paperless/p-db4ea9ce.entry.js → build/p-c3ba61ac.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-c8e79e30.entry.js +2 -0
- package/dist/build/{p-00534c3c.entry.js → p-cc3445fc.entry.js} +2 -2
- package/dist/{paperless/p-c6a042f7.entry.js → build/p-cfe6ec9a.entry.js} +2 -2
- package/dist/{paperless/p-0ffb8f53.entry.js → build/p-d044f441.entry.js} +2 -2
- package/dist/build/p-d63066b0.css +1 -0
- package/dist/build/p-d6ca5bce.entry.js +2 -0
- package/dist/build/p-d6ca5bce.entry.js.map +1 -0
- package/dist/build/{p-117de4a8.entry.js → p-d70b3539.entry.js} +2 -2
- package/dist/build/p-d8eb3b7b.entry.js +2 -0
- package/dist/build/p-d8eb3b7b.entry.js.map +1 -0
- package/dist/build/{p-e9a323f2.entry.js → p-d9d8c17c.entry.js} +2 -2
- package/dist/build/{p-57fc0eb5.entry.js → p-d9fae6bd.entry.js} +2 -2
- package/dist/build/p-dfce711d.entry.js +2 -0
- package/dist/build/p-dfce711d.entry.js.map +1 -0
- package/dist/build/p-ea577bae.entry.js +2 -0
- package/dist/build/p-ea577bae.entry.js.map +1 -0
- package/dist/build/{p-b26d5130.entry.js → p-eec56c71.entry.js} +2 -2
- package/dist/build/{p-448b6640.entry.js → p-f3d0ea94.entry.js} +2 -2
- package/dist/build/{p-955d149f.entry.js → p-f40f89a7.entry.js} +2 -2
- package/dist/build/{p-c6fa153f.entry.js → p-fd53acd3.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 +16 -4
- package/dist/cjs/index.cjs.js +2 -1
- 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-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 +7 -7
- 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_3.cjs.entry.js +4 -4
- 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 +2 -0
- 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/label/label.component.js +2 -2
- 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/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-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/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 +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/input-error.component.js +1 -1
- package/dist/components/label.component.js +2 -2
- 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-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 +22 -19
- 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-row.component.js +2 -2
- package/dist/components/tooltip.component.js +4 -4
- package/dist/esm/index-2ef94580.js +16 -4
- package/dist/esm/index.js +2 -1
- 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-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 +7 -7
- 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_3.entry.js +4 -4
- 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-d26ee54b.entry.js → p-036bb6f4.entry.js} +2 -2
- package/dist/paperless/p-0413fcd0.entry.js +2 -0
- package/dist/paperless/p-0413fcd0.entry.js.map +1 -0
- package/dist/paperless/p-0bbd4d1c.entry.js +2 -0
- package/dist/paperless/p-0bbd4d1c.entry.js.map +1 -0
- 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/paperless/p-14e63599.entry.js +2 -0
- package/dist/paperless/{p-716a92ae.entry.js → p-1b5ec2b1.entry.js} +2 -2
- package/dist/{build/p-5f54e4b8.entry.js → paperless/p-1ed4a75e.entry.js} +3 -3
- package/dist/paperless/{p-5f54e4b8.entry.js.map → p-1ed4a75e.entry.js.map} +1 -1
- package/dist/{build/p-9f191ebc.entry.js → paperless/p-214a2978.entry.js} +2 -2
- package/dist/{build/p-e9ddf7b0.entry.js → paperless/p-2bd123f4.entry.js} +2 -2
- package/dist/{build/p-8b38f27d.entry.js → paperless/p-3a428a06.entry.js} +2 -2
- package/dist/paperless/{p-276d2804.entry.js → p-3b5242e9.entry.js} +2 -2
- package/dist/paperless/{p-8b3b5d3b.entry.js → p-3e393301.entry.js} +2 -2
- package/dist/paperless/{p-d31d6714.entry.js → p-46362798.entry.js} +2 -2
- package/dist/paperless/{p-1ea8012a.entry.js → p-48efb6e4.entry.js} +2 -2
- package/dist/{build/p-7ef827d5.entry.js → paperless/p-50134fa1.entry.js} +2 -2
- 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/{build/p-e102e82d.entry.js → paperless/p-65d9a61f.entry.js} +2 -2
- package/dist/paperless/p-6d8852ca.entry.js +2 -0
- package/dist/paperless/p-958f3c09.entry.js +2 -0
- package/dist/paperless/p-958f3c09.entry.js.map +1 -0
- package/dist/paperless/{p-2f821184.entry.js → p-a56474ea.entry.js} +2 -2
- package/dist/paperless/{p-68ae68c8.entry.js → p-a5934232.entry.js} +2 -2
- package/dist/paperless/p-af468e9f.entry.js +2 -0
- package/dist/paperless/p-af468e9f.entry.js.map +1 -0
- package/dist/paperless/p-bf261165.entry.js +2 -0
- package/dist/{build/p-db4ea9ce.entry.js → paperless/p-c3ba61ac.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-c8e79e30.entry.js +2 -0
- package/dist/paperless/{p-00534c3c.entry.js → p-cc3445fc.entry.js} +2 -2
- package/dist/{build/p-c6a042f7.entry.js → paperless/p-cfe6ec9a.entry.js} +2 -2
- package/dist/{build/p-0ffb8f53.entry.js → paperless/p-d044f441.entry.js} +2 -2
- package/dist/paperless/p-d6ca5bce.entry.js +2 -0
- package/dist/paperless/p-d6ca5bce.entry.js.map +1 -0
- package/dist/paperless/{p-117de4a8.entry.js → p-d70b3539.entry.js} +2 -2
- package/dist/paperless/p-d8eb3b7b.entry.js +2 -0
- package/dist/paperless/p-d8eb3b7b.entry.js.map +1 -0
- package/dist/paperless/{p-e9a323f2.entry.js → p-d9d8c17c.entry.js} +2 -2
- package/dist/paperless/{p-57fc0eb5.entry.js → p-d9fae6bd.entry.js} +2 -2
- package/dist/paperless/p-dfce711d.entry.js +2 -0
- package/dist/paperless/p-dfce711d.entry.js.map +1 -0
- package/dist/paperless/p-ea577bae.entry.js +2 -0
- package/dist/paperless/p-ea577bae.entry.js.map +1 -0
- package/dist/paperless/{p-b26d5130.entry.js → p-eec56c71.entry.js} +2 -2
- package/dist/paperless/{p-448b6640.entry.js → p-f3d0ea94.entry.js} +2 -2
- package/dist/paperless/{p-955d149f.entry.js → p-f40f89a7.entry.js} +2 -2
- package/dist/paperless/{p-c6fa153f.entry.js → p-fd53acd3.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/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/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 +194 -0
- package/dist/types/tailwind/theme/shadows.d.ts +1 -0
- package/hydrate/index.js +393 -122
- package/hydrate/index.mjs +393 -122
- 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-8f4ccbe0.entry.js +0 -2
- 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-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-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/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/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-8f4ccbe0.entry.js +0 -2
- 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-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-d26ee54b.entry.js.map → p-036bb6f4.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-2beae871.entry.js.map → p-14e63599.entry.js.map} +0 -0
- /package/dist/build/{p-716a92ae.entry.js.map → p-1b5ec2b1.entry.js.map} +0 -0
- /package/dist/build/{p-9f191ebc.entry.js.map → p-214a2978.entry.js.map} +0 -0
- /package/dist/build/{p-e9ddf7b0.entry.js.map → p-2bd123f4.entry.js.map} +0 -0
- /package/dist/build/{p-8b38f27d.entry.js.map → p-3a428a06.entry.js.map} +0 -0
- /package/dist/build/{p-276d2804.entry.js.map → p-3b5242e9.entry.js.map} +0 -0
- /package/dist/build/{p-8b3b5d3b.entry.js.map → p-3e393301.entry.js.map} +0 -0
- /package/dist/build/{p-d31d6714.entry.js.map → p-46362798.entry.js.map} +0 -0
- /package/dist/build/{p-1ea8012a.entry.js.map → p-48efb6e4.entry.js.map} +0 -0
- /package/dist/build/{p-7ef827d5.entry.js.map → p-50134fa1.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-e102e82d.entry.js.map → p-65d9a61f.entry.js.map} +0 -0
- /package/dist/build/{p-ddde168c.entry.js.map → p-6d8852ca.entry.js.map} +0 -0
- /package/dist/build/{p-2f821184.entry.js.map → p-a56474ea.entry.js.map} +0 -0
- /package/dist/build/{p-68ae68c8.entry.js.map → p-a5934232.entry.js.map} +0 -0
- /package/dist/build/{p-17457a9a.entry.js.map → p-bf261165.entry.js.map} +0 -0
- /package/dist/build/{p-db4ea9ce.entry.js.map → p-c3ba61ac.entry.js.map} +0 -0
- /package/dist/build/{p-8f4ccbe0.entry.js.map → p-c8e79e30.entry.js.map} +0 -0
- /package/dist/build/{p-00534c3c.entry.js.map → p-cc3445fc.entry.js.map} +0 -0
- /package/dist/build/{p-c6a042f7.entry.js.map → p-cfe6ec9a.entry.js.map} +0 -0
- /package/dist/build/{p-0ffb8f53.entry.js.map → p-d044f441.entry.js.map} +0 -0
- /package/dist/build/{p-117de4a8.entry.js.map → p-d70b3539.entry.js.map} +0 -0
- /package/dist/build/{p-e9a323f2.entry.js.map → p-d9d8c17c.entry.js.map} +0 -0
- /package/dist/build/{p-57fc0eb5.entry.js.map → p-d9fae6bd.entry.js.map} +0 -0
- /package/dist/build/{p-b26d5130.entry.js.map → p-eec56c71.entry.js.map} +0 -0
- /package/dist/build/{p-448b6640.entry.js.map → p-f3d0ea94.entry.js.map} +0 -0
- /package/dist/build/{p-955d149f.entry.js.map → p-f40f89a7.entry.js.map} +0 -0
- /package/dist/build/{p-c6fa153f.entry.js.map → p-fd53acd3.entry.js.map} +0 -0
- /package/dist/paperless/{p-d26ee54b.entry.js.map → p-036bb6f4.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-2beae871.entry.js.map → p-14e63599.entry.js.map} +0 -0
- /package/dist/paperless/{p-716a92ae.entry.js.map → p-1b5ec2b1.entry.js.map} +0 -0
- /package/dist/paperless/{p-9f191ebc.entry.js.map → p-214a2978.entry.js.map} +0 -0
- /package/dist/paperless/{p-e9ddf7b0.entry.js.map → p-2bd123f4.entry.js.map} +0 -0
- /package/dist/paperless/{p-8b38f27d.entry.js.map → p-3a428a06.entry.js.map} +0 -0
- /package/dist/paperless/{p-276d2804.entry.js.map → p-3b5242e9.entry.js.map} +0 -0
- /package/dist/paperless/{p-8b3b5d3b.entry.js.map → p-3e393301.entry.js.map} +0 -0
- /package/dist/paperless/{p-d31d6714.entry.js.map → p-46362798.entry.js.map} +0 -0
- /package/dist/paperless/{p-1ea8012a.entry.js.map → p-48efb6e4.entry.js.map} +0 -0
- /package/dist/paperless/{p-7ef827d5.entry.js.map → p-50134fa1.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-e102e82d.entry.js.map → p-65d9a61f.entry.js.map} +0 -0
- /package/dist/paperless/{p-ddde168c.entry.js.map → p-6d8852ca.entry.js.map} +0 -0
- /package/dist/paperless/{p-2f821184.entry.js.map → p-a56474ea.entry.js.map} +0 -0
- /package/dist/paperless/{p-68ae68c8.entry.js.map → p-a5934232.entry.js.map} +0 -0
- /package/dist/paperless/{p-17457a9a.entry.js.map → p-bf261165.entry.js.map} +0 -0
- /package/dist/paperless/{p-db4ea9ce.entry.js.map → p-c3ba61ac.entry.js.map} +0 -0
- /package/dist/paperless/{p-8f4ccbe0.entry.js.map → p-c8e79e30.entry.js.map} +0 -0
- /package/dist/paperless/{p-00534c3c.entry.js.map → p-cc3445fc.entry.js.map} +0 -0
- /package/dist/paperless/{p-c6a042f7.entry.js.map → p-cfe6ec9a.entry.js.map} +0 -0
- /package/dist/paperless/{p-0ffb8f53.entry.js.map → p-d044f441.entry.js.map} +0 -0
- /package/dist/paperless/{p-117de4a8.entry.js.map → p-d70b3539.entry.js.map} +0 -0
- /package/dist/paperless/{p-e9a323f2.entry.js.map → p-d9d8c17c.entry.js.map} +0 -0
- /package/dist/paperless/{p-57fc0eb5.entry.js.map → p-d9fae6bd.entry.js.map} +0 -0
- /package/dist/paperless/{p-b26d5130.entry.js.map → p-eec56c71.entry.js.map} +0 -0
- /package/dist/paperless/{p-448b6640.entry.js.map → p-f3d0ea94.entry.js.map} +0 -0
- /package/dist/paperless/{p-955d149f.entry.js.map → p-f40f89a7.entry.js.map} +0 -0
- /package/dist/paperless/{p-c6fa153f.entry.js.map → p-fd53acd3.entry.js.map} +0 -0
|
@@ -1,961 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, 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 { i as icons } from './icons-a3270aaf.js';
|
|
5
|
-
import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift } from './floating-ui.dom.esm-1ee67651.js';
|
|
6
|
-
import './clsx-297c1ffe.js';
|
|
7
|
-
|
|
8
|
-
const buttonComponentCss = "*{box-sizing:border-box}.static{position:static!important}.block{display:block!important}.flex{display:flex!important}.h-10{height:2.5rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-10{width:2.5rem!important}.w-6{width:1.5rem!important}.w-8{width:2rem!important}.w-inherit{width:inherit!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.cursor-wait{cursor:wait!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.rounded-e-lg{border-end-end-radius:.5rem!important;border-start-end-radius:.5rem!important}.rounded-s-lg{border-end-start-radius:.5rem!important;border-start-start-radius:.5rem!important}.border{border-width:1px!important}.border-b{border-bottom-width:1px!important}.border-black-teal\\/10{border-color:rgba(3,42,36,.1)!important}.border-black-teal\\/20{border-color:rgba(3,42,36,.2)!important}.border-supportive-lilac-800{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.border-teal{border-color:rgb(8 136 121/var(--tw-border-opacity,1))!important}.border-teal,.border-teal-100{--tw-border-opacity:1!important}.border-teal-100{border-color:rgb(206 231 228/var(--tw-border-opacity,1))!important}.bg-supportive-lilac{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.bg-supportive-lilac-100{--tw-bg-opacity:1!important;background-color:rgb(246 239 255/var(--tw-bg-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}.p-2{padding:.5rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.leading-4{line-height:1rem!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-dark-teal-100{--tw-text-opacity:1!important;color:rgb(204 220 218/var(--tw-text-opacity,1))!important}.text-dark-teal-100\\/60{color:rgba(204,220,218,.6)!important}.text-dark-teal-200{--tw-text-opacity:1!important;color:rgb(153 185 182/var(--tw-text-opacity,1))!important}.text-teal{color:rgb(8 136 121/var(--tw-text-opacity,1))!important}.text-teal,.text-teal-100{--tw-text-opacity:1!important}.text-teal-100{color:rgb(206 231 228/var(--tw-text-opacity,1))!important}.text-teal-300{--tw-text-opacity:1!important;color:rgb(107 184 175/var(--tw-text-opacity,1))!important}.underline{text-decoration-line:underline!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}.ring,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-2{--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(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.ring-black-teal\\/10{--tw-ring-color:rgba(3,42,36,.1)!important}.ring-supportive-lilac-100{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.drop-shadow-1{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))!important}.drop-shadow-1,.drop-shadow-supportive-lilac{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow-supportive-lilac{--tw-drop-shadow:drop-shadow(0px 1px 1px 0px rgba(189,140,255,.2))!important}.hover\\:bg-dark-teal:hover{--tw-bg-opacity:1!important;background-color:rgb(0 81 72/var(--tw-bg-opacity,1))!important}.hover\\:bg-supportive-lilac-700:hover{--tw-bg-opacity:1!important;background-color:rgb(200 159 255/var(--tw-bg-opacity,1))!important}.hover\\:bg-white-600:hover{--tw-bg-opacity:1!important;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.hover\\:drop-shadow-1:hover{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))!important}.hover\\:drop-shadow-1:hover,.hover\\:drop-shadow-2:hover{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.hover\\:drop-shadow-2:hover{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.04)) drop-shadow(0 2px 2px rgba(0,2,2,.04)) drop-shadow(0 4px 4px rgba(0,2,2,.04))!important}.active\\:border-supportive-lilac-800:active{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.active\\:text-black-teal\\/60:active{color:rgba(3,42,36,.6)!important}.active\\:text-dark-teal-100\\/60:active{color:rgba(204,220,218,.6)!important}.active\\:text-teal-800:active{--tw-text-opacity:1!important;color:rgb(2 102 92/var(--tw-text-opacity,1))!important}.active\\:ring:active{--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}.active\\:ring-2:active,.active\\:ring:active{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.active\\:ring-2:active{--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(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.active\\:ring-black-teal\\/10:active{--tw-ring-color:rgba(3,42,36,.1)!important}.active\\:ring-supportive-lilac-100:active{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.group:hover .group-hover\\:text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.group:hover .group-hover\\:text-dark-teal-100{--tw-text-opacity:1!important;color:rgb(204 220 218/var(--tw-text-opacity,1))!important}.group:hover .group-hover\\:text-teal{--tw-text-opacity:1!important;color:rgb(8 136 121/var(--tw-text-opacity,1))!important}";
|
|
9
|
-
const PButtonStyle0 = buttonComponentCss;
|
|
10
|
-
|
|
11
|
-
const button = cva([
|
|
12
|
-
'group',
|
|
13
|
-
'font-semibold leading-4',
|
|
14
|
-
'flex items-center justify-center gap-2',
|
|
15
|
-
'cursor-pointer',
|
|
16
|
-
], {
|
|
17
|
-
variants: {
|
|
18
|
-
variant: {
|
|
19
|
-
primary: ['bg-supportive-lilac border-black-teal/20'],
|
|
20
|
-
secondary: null,
|
|
21
|
-
text: ['text-teal'],
|
|
22
|
-
transparent: ['bg-transparent'],
|
|
23
|
-
dropdown: null,
|
|
24
|
-
},
|
|
25
|
-
active: {
|
|
26
|
-
true: null,
|
|
27
|
-
false: null,
|
|
28
|
-
},
|
|
29
|
-
loading: {
|
|
30
|
-
true: 'cursor-wait',
|
|
31
|
-
false: null,
|
|
32
|
-
},
|
|
33
|
-
size: {
|
|
34
|
-
sm: ['text-xs h-6'],
|
|
35
|
-
base: ['text-sm h-8'],
|
|
36
|
-
lg: ['text-base h-10'],
|
|
37
|
-
},
|
|
38
|
-
disabled: {
|
|
39
|
-
true: 'cursor-not-allowed',
|
|
40
|
-
false: null,
|
|
41
|
-
},
|
|
42
|
-
underline: {
|
|
43
|
-
true: null,
|
|
44
|
-
false: null,
|
|
45
|
-
},
|
|
46
|
-
buttonGroupPosition: {
|
|
47
|
-
none: null,
|
|
48
|
-
start: null,
|
|
49
|
-
center: null,
|
|
50
|
-
end: null,
|
|
51
|
-
},
|
|
52
|
-
iconOnly: {
|
|
53
|
-
true: 'justify-center',
|
|
54
|
-
false: 'w-inherit py-1',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
compoundVariants: [
|
|
58
|
-
// variants
|
|
59
|
-
{
|
|
60
|
-
variant: ['secondary', 'dropdown'],
|
|
61
|
-
class: ['bg-white border-black-teal/10'],
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
variant: ['primary', 'secondary', 'dropdown'],
|
|
65
|
-
disabled: false,
|
|
66
|
-
class: 'border',
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
variant: ['primary', 'secondary', 'dropdown'],
|
|
70
|
-
disabled: false,
|
|
71
|
-
loading: false,
|
|
72
|
-
class: 'active:border-supportive-lilac-800 active:ring active:ring-2',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
variant: ['primary', 'secondary', 'dropdown'],
|
|
76
|
-
disabled: false,
|
|
77
|
-
loading: false,
|
|
78
|
-
active: true,
|
|
79
|
-
class: 'border-supportive-lilac-800 ring ring-2',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
variant: ['primary', 'secondary', 'transparent', 'dropdown'],
|
|
83
|
-
buttonGroupPosition: 'none',
|
|
84
|
-
class: 'rounded-lg',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
variant: ['primary', 'secondary', 'transparent', 'dropdown'],
|
|
88
|
-
buttonGroupPosition: 'start',
|
|
89
|
-
class: 'rounded-s-lg',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
variant: ['primary', 'secondary', 'transparent', 'dropdown'],
|
|
93
|
-
buttonGroupPosition: 'end',
|
|
94
|
-
class: 'rounded-e-lg',
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
variant: ['primary', 'secondary', 'dropdown'],
|
|
98
|
-
disabled: false,
|
|
99
|
-
class: 'text-black-teal',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
variant: 'primary',
|
|
103
|
-
disabled: true,
|
|
104
|
-
class: 'bg-supportive-lilac-100 text-black-teal-100',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
variant: 'primary',
|
|
108
|
-
disabled: false,
|
|
109
|
-
loading: false,
|
|
110
|
-
class: 'drop-shadow-supportive-lilac hover:drop-shadow-2 hover:bg-supportive-lilac-700 active:text-black-teal/60 active:ring-black-teal/10',
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
variant: 'primary',
|
|
114
|
-
disabled: false,
|
|
115
|
-
loading: false,
|
|
116
|
-
active: true,
|
|
117
|
-
class: 'ring-black-teal/10',
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
variant: ['secondary', 'dropdown'],
|
|
121
|
-
disabled: true,
|
|
122
|
-
class: 'border bg-white-600 text-black-teal-100',
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
variant: ['secondary', 'dropdown'],
|
|
126
|
-
disabled: false,
|
|
127
|
-
loading: false,
|
|
128
|
-
class: 'drop-shadow-1 hover:drop-shadow-1 hover:bg-white-600 active:text-black-teal/60 active:ring-supportive-lilac-100',
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
variant: ['secondary', 'dropdown'],
|
|
132
|
-
disabled: false,
|
|
133
|
-
loading: false,
|
|
134
|
-
active: true,
|
|
135
|
-
class: 'ring-supportive-lilac-100',
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
variant: 'text',
|
|
139
|
-
underline: true,
|
|
140
|
-
disabled: false,
|
|
141
|
-
class: 'border-b border-teal',
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
variant: 'text',
|
|
145
|
-
underline: true,
|
|
146
|
-
disabled: true,
|
|
147
|
-
class: 'border-b border-teal-100',
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
variant: 'text',
|
|
151
|
-
disabled: true,
|
|
152
|
-
class: 'text-teal-100',
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
variant: 'text',
|
|
156
|
-
disabled: false,
|
|
157
|
-
loading: false,
|
|
158
|
-
class: 'active:text-teal-800',
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
variant: 'transparent',
|
|
162
|
-
disabled: false,
|
|
163
|
-
class: 'text-dark-teal-100',
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
variant: 'transparent',
|
|
167
|
-
disabled: false,
|
|
168
|
-
loading: false,
|
|
169
|
-
class: 'hover:bg-dark-teal active:text-dark-teal-100/60',
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
variant: 'transparent',
|
|
173
|
-
disabled: true,
|
|
174
|
-
class: 'text-dark-teal-100/60',
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
variant: ['primary', 'secondary', 'transparent'],
|
|
178
|
-
size: ['base', 'sm'],
|
|
179
|
-
iconOnly: false,
|
|
180
|
-
class: 'px-2',
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
variant: ['primary', 'secondary', 'transparent'],
|
|
184
|
-
size: 'lg',
|
|
185
|
-
iconOnly: false,
|
|
186
|
-
class: 'px-3',
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
variant: 'dropdown',
|
|
190
|
-
iconOnly: false,
|
|
191
|
-
class: 'p-2',
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
variant: ['primary', 'secondary', 'transparent', 'text'],
|
|
195
|
-
iconOnly: false,
|
|
196
|
-
class: 'py-1',
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
size: 'sm',
|
|
200
|
-
iconOnly: true,
|
|
201
|
-
class: 'w-6',
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
size: 'base',
|
|
205
|
-
iconOnly: true,
|
|
206
|
-
class: 'w-8',
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
size: 'lg',
|
|
210
|
-
iconOnly: true,
|
|
211
|
-
class: 'w-10',
|
|
212
|
-
},
|
|
213
|
-
],
|
|
214
|
-
});
|
|
215
|
-
const icon$1 = cva([], {
|
|
216
|
-
variants: {
|
|
217
|
-
size: {
|
|
218
|
-
sm: 'text-sm',
|
|
219
|
-
base: 'text-base',
|
|
220
|
-
lg: 'text-base',
|
|
221
|
-
},
|
|
222
|
-
variant: {
|
|
223
|
-
primary: null,
|
|
224
|
-
secondary: null,
|
|
225
|
-
text: null,
|
|
226
|
-
transparent: null,
|
|
227
|
-
dropdown: null,
|
|
228
|
-
},
|
|
229
|
-
disabled: {
|
|
230
|
-
true: null,
|
|
231
|
-
false: null,
|
|
232
|
-
},
|
|
233
|
-
active: {
|
|
234
|
-
true: null,
|
|
235
|
-
false: null,
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
compoundVariants: [
|
|
239
|
-
{
|
|
240
|
-
variant: ['secondary', 'dropdown'],
|
|
241
|
-
disabled: false,
|
|
242
|
-
active: false,
|
|
243
|
-
class: 'text-black-teal-300 group-hover:text-black-teal',
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
variant: 'text',
|
|
247
|
-
disabled: false,
|
|
248
|
-
active: false,
|
|
249
|
-
class: 'text-teal-300 group-hover:text-teal',
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
variant: 'transparent',
|
|
253
|
-
disabled: false,
|
|
254
|
-
active: false,
|
|
255
|
-
class: 'text-dark-teal-200 group-hover:text-dark-teal-100',
|
|
256
|
-
},
|
|
257
|
-
],
|
|
258
|
-
});
|
|
259
|
-
const Button = class {
|
|
260
|
-
constructor(hostRef) {
|
|
261
|
-
registerInstance(this, hostRef);
|
|
262
|
-
this.onClick = createEvent(this, "onClick", 3);
|
|
263
|
-
this.as = 'button';
|
|
264
|
-
this.variant = 'primary';
|
|
265
|
-
this.active = false;
|
|
266
|
-
this.underline = true;
|
|
267
|
-
this.href = undefined;
|
|
268
|
-
this.target = undefined;
|
|
269
|
-
this.size = 'base';
|
|
270
|
-
this.type = 'button';
|
|
271
|
-
this.loading = false;
|
|
272
|
-
this.chevron = false;
|
|
273
|
-
this.chevronPosition = 'end';
|
|
274
|
-
this.disabled = false;
|
|
275
|
-
this.icon = undefined;
|
|
276
|
-
this.iconOnly = false;
|
|
277
|
-
this.iconPosition = 'end';
|
|
278
|
-
this.iconFlip = undefined;
|
|
279
|
-
this.iconRotate = undefined;
|
|
280
|
-
this.inheritText = false;
|
|
281
|
-
this.buttonGroupPosition = 'none';
|
|
282
|
-
this.class = undefined;
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* Button click event
|
|
286
|
-
*/
|
|
287
|
-
onClick;
|
|
288
|
-
render() {
|
|
289
|
-
let loaderColor = 'white';
|
|
290
|
-
switch (this.variant) {
|
|
291
|
-
case 'secondary':
|
|
292
|
-
loaderColor = 'storm';
|
|
293
|
-
break;
|
|
294
|
-
case 'text':
|
|
295
|
-
loaderColor = 'indigo';
|
|
296
|
-
break;
|
|
297
|
-
}
|
|
298
|
-
const VariableTag = this.variant === 'text' || this.href?.length || this.as === 'a'
|
|
299
|
-
? 'a'
|
|
300
|
-
: 'button';
|
|
301
|
-
const active = this.active || this.class?.includes('active');
|
|
302
|
-
return (h(Host, { key: '4953afb498feb89639a009d1c6fed2c629338da8', class: 'p-button block' }, h(VariableTag, { key: '743e788bcb2160f9501cdc2e13f23d2fa14734b6', disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target, class: button({
|
|
303
|
-
variant: this.variant,
|
|
304
|
-
size: this.size,
|
|
305
|
-
underline: this.underline,
|
|
306
|
-
loading: this.loading,
|
|
307
|
-
disabled: this.disabled,
|
|
308
|
-
buttonGroupPosition: this.buttonGroupPosition,
|
|
309
|
-
iconOnly: this.iconOnly,
|
|
310
|
-
active,
|
|
311
|
-
}) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: '70926a4ced5b548fbbb44cf9553550668018b258', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
|
|
312
|
-
this.iconPosition === 'start' &&
|
|
313
|
-
!(this.iconOnly && this.loading) &&
|
|
314
|
-
this._getIcon(), h("slot", { key: 'd08a789762d6b111822b5e860bd34349bd6c90b0' }), this.icon &&
|
|
315
|
-
this.iconPosition === 'end' &&
|
|
316
|
-
!this.loading &&
|
|
317
|
-
!this.chevron &&
|
|
318
|
-
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: 'eb2a4b27a8f1f73d740267f2142bb0948b3f6f47', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && h("p-loader", { key: 'e6bd68a39d657ad32954cb948f7739763be7961a', color: loaderColor }))));
|
|
319
|
-
}
|
|
320
|
-
handleClick(ev) {
|
|
321
|
-
if (this.loading || this.disabled) {
|
|
322
|
-
ev.preventDefault();
|
|
323
|
-
return;
|
|
324
|
-
}
|
|
325
|
-
this.onClick.emit(ev);
|
|
326
|
-
}
|
|
327
|
-
_getIcon() {
|
|
328
|
-
if (!this.icon) {
|
|
329
|
-
return;
|
|
330
|
-
}
|
|
331
|
-
return (h("p-icon", { class: icon$1({
|
|
332
|
-
size: this.size,
|
|
333
|
-
variant: this.variant,
|
|
334
|
-
disabled: this.disabled,
|
|
335
|
-
active: this.active,
|
|
336
|
-
}), variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate }));
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
Button.style = PButtonStyle0;
|
|
340
|
-
|
|
341
|
-
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}";
|
|
342
|
-
const PFieldStyle0 = fieldComponentCss;
|
|
343
|
-
|
|
344
|
-
const field = cva(['flex gap-2', 'w-inherit px-2', 'border border-solid rounded-lg'], {
|
|
345
|
-
variants: {
|
|
346
|
-
size: {
|
|
347
|
-
sm: 'h-6',
|
|
348
|
-
base: 'h-8',
|
|
349
|
-
},
|
|
350
|
-
disabled: {
|
|
351
|
-
false: 'bg-white',
|
|
352
|
-
true: 'bg-white-600 cursor-not-allowed',
|
|
353
|
-
},
|
|
354
|
-
focused: {
|
|
355
|
-
false: null,
|
|
356
|
-
true: null,
|
|
357
|
-
},
|
|
358
|
-
error: {
|
|
359
|
-
false: null,
|
|
360
|
-
true: null,
|
|
361
|
-
},
|
|
362
|
-
},
|
|
363
|
-
compoundVariants: [
|
|
364
|
-
{
|
|
365
|
-
focused: false,
|
|
366
|
-
error: false,
|
|
367
|
-
class: 'border-black-teal-100',
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
disabled: false,
|
|
371
|
-
focused: true,
|
|
372
|
-
error: false,
|
|
373
|
-
class: 'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
disabled: false,
|
|
377
|
-
error: true,
|
|
378
|
-
class: 'border-negative-red',
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
disabled: false,
|
|
382
|
-
focused: true,
|
|
383
|
-
error: true,
|
|
384
|
-
class: 'ring ring-negative-red-50 selection:bg-negative-red-50',
|
|
385
|
-
},
|
|
386
|
-
],
|
|
387
|
-
});
|
|
388
|
-
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', {
|
|
389
|
-
variants: {
|
|
390
|
-
disabled: {
|
|
391
|
-
false: null,
|
|
392
|
-
true: 'cursor-not-allowed',
|
|
393
|
-
},
|
|
394
|
-
},
|
|
395
|
-
});
|
|
396
|
-
const prefixAndSuffic = cva(['flex flex-shrink-0 justify-center items-center text-center'], {
|
|
397
|
-
variants: {
|
|
398
|
-
disabled: {
|
|
399
|
-
false: null,
|
|
400
|
-
true: 'text-black-teal-100',
|
|
401
|
-
},
|
|
402
|
-
focused: {
|
|
403
|
-
false: null,
|
|
404
|
-
true: null,
|
|
405
|
-
},
|
|
406
|
-
error: {
|
|
407
|
-
false: null,
|
|
408
|
-
true: null,
|
|
409
|
-
},
|
|
410
|
-
},
|
|
411
|
-
compoundVariants: [
|
|
412
|
-
{
|
|
413
|
-
disabled: false,
|
|
414
|
-
focused: false,
|
|
415
|
-
error: false,
|
|
416
|
-
class: 'text-black-teal-300',
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
disabled: false,
|
|
420
|
-
focused: true,
|
|
421
|
-
error: false,
|
|
422
|
-
class: 'text-black-teal-500',
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
disabled: false,
|
|
426
|
-
focused: false,
|
|
427
|
-
error: true,
|
|
428
|
-
class: 'text-negative-red',
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
disabled: false,
|
|
432
|
-
focused: true,
|
|
433
|
-
error: true,
|
|
434
|
-
class: 'text-negative-red-800',
|
|
435
|
-
},
|
|
436
|
-
],
|
|
437
|
-
});
|
|
438
|
-
const Field = class {
|
|
439
|
-
constructor(hostRef) {
|
|
440
|
-
registerInstance(this, hostRef);
|
|
441
|
-
this.valueChange = createEvent(this, "valueChange", 7);
|
|
442
|
-
this.inputRefChange = createEvent(this, "inputRefChange", 7);
|
|
443
|
-
this.size = 'base';
|
|
444
|
-
this.type = 'text';
|
|
445
|
-
this.properties = {};
|
|
446
|
-
this.prefix = undefined;
|
|
447
|
-
this.suffix = undefined;
|
|
448
|
-
this.icon = undefined;
|
|
449
|
-
this.iconFlip = undefined;
|
|
450
|
-
this.iconRotate = undefined;
|
|
451
|
-
this.iconPosition = 'start';
|
|
452
|
-
this.value = undefined;
|
|
453
|
-
this.label = undefined;
|
|
454
|
-
this.placeholder = undefined;
|
|
455
|
-
this.helper = undefined;
|
|
456
|
-
this.required = true;
|
|
457
|
-
this.error = undefined;
|
|
458
|
-
this.errorPlacement = undefined;
|
|
459
|
-
this.disabled = false;
|
|
460
|
-
this.focused = false;
|
|
461
|
-
this.forceShowTooltip = false;
|
|
462
|
-
this.selectAllOnFocus = true;
|
|
463
|
-
this.focusMethod = 'focus';
|
|
464
|
-
this.optionalTemplate = undefined;
|
|
465
|
-
this._focused = false;
|
|
466
|
-
}
|
|
467
|
-
/**
|
|
468
|
-
* Event whenever the value changes
|
|
469
|
-
*/
|
|
470
|
-
valueChange;
|
|
471
|
-
/**
|
|
472
|
-
* Event whenever the input ref changes
|
|
473
|
-
*/
|
|
474
|
-
inputRefChange;
|
|
475
|
-
get _el() { return getElement(this); }
|
|
476
|
-
_inputRef;
|
|
477
|
-
render() {
|
|
478
|
-
const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, } = this._getSlotInfo();
|
|
479
|
-
return (h(Host, { key: 'dbe8b0acc647c2ab64d91cfe077861099ba5748c', class: 'p-field' }, h("p-field-container", { key: '71ea4943de215b127fd5135b8f8f94815501dd39', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required }, hasLabelSlot && (h("slot", { key: '8086310ed9107ad83d4d9abd2767e143191457f2', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '8bd93114e8ccdc29d4ed1bd8bd217801409f22f1', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '64639cd1f20992afd3e8cea2c53169eb6d6b920b', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'b8a21fa739b6e676088be3fc8778b43c23ae1756', name: 'error', slot: 'error' })), h("div", { key: 'ddd7796221e3ae75bf17b7f85cea1eb234c833b7', class: field({
|
|
480
|
-
error: !!this.error?.length,
|
|
481
|
-
disabled: this.disabled,
|
|
482
|
-
focused: this.focused || this._focused,
|
|
483
|
-
size: this.size,
|
|
484
|
-
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '1cd79f0755348a0730e25e6a043189920c572129', class: prefixAndSuffic({
|
|
485
|
-
error: !!this.error?.length,
|
|
486
|
-
disabled: this.disabled,
|
|
487
|
-
focused: this.focused || this._focused,
|
|
488
|
-
}), 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: '7a356d8701be55b0392d7a210f9b5d5d879c13bc', class: prefixAndSuffic({
|
|
489
|
-
error: !!this.error?.length,
|
|
490
|
-
disabled: this.disabled,
|
|
491
|
-
focused: this.focused || this._focused,
|
|
492
|
-
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'end' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix)))))));
|
|
493
|
-
}
|
|
494
|
-
handleFocusIn() {
|
|
495
|
-
if (this.disabled) {
|
|
496
|
-
return;
|
|
497
|
-
}
|
|
498
|
-
this._focused = true;
|
|
499
|
-
this._selectAll();
|
|
500
|
-
}
|
|
501
|
-
handleFocusOut() {
|
|
502
|
-
if (this.disabled) {
|
|
503
|
-
return;
|
|
504
|
-
}
|
|
505
|
-
this._focused = false;
|
|
506
|
-
}
|
|
507
|
-
_getSlotInfo() {
|
|
508
|
-
const hasHelperSlot = !!this._el.querySelector(':scope > [slot="helper"]');
|
|
509
|
-
const hasLabelSlot = !!this._el.querySelector(':scope > [slot="label"]');
|
|
510
|
-
const hasPrefixSlot = !!this._el.querySelector(':scope > [slot="prefix"]');
|
|
511
|
-
const hasSuffixSlot = !!this._el.querySelector(':scope > [slot="suffix"]');
|
|
512
|
-
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
513
|
-
const hasErrorSlot = !!this._el.querySelector(':scope > [slot="error"]');
|
|
514
|
-
const prefix = hasPrefixSlot ? h("slot", { name: 'prefix' }) : this.prefix;
|
|
515
|
-
const suffix = hasSuffixSlot ? h("slot", { name: 'suffix' }) : this.suffix;
|
|
516
|
-
const errorAndErrorIsNotBoolean = this.error && typeof this.error === 'string' && this.error !== 'true';
|
|
517
|
-
return {
|
|
518
|
-
hasHelperSlot,
|
|
519
|
-
hasLabelSlot,
|
|
520
|
-
hasPrefixSlot,
|
|
521
|
-
hasSuffixSlot,
|
|
522
|
-
hasHeaderSlot,
|
|
523
|
-
hasErrorSlot,
|
|
524
|
-
prefix,
|
|
525
|
-
suffix,
|
|
526
|
-
errorAndErrorIsNotBoolean,
|
|
527
|
-
};
|
|
528
|
-
}
|
|
529
|
-
_getInput() {
|
|
530
|
-
if (this.type === 'custom') {
|
|
531
|
-
return h("slot", { name: 'input' });
|
|
532
|
-
}
|
|
533
|
-
const props = {
|
|
534
|
-
class: input({
|
|
535
|
-
disabled: this.disabled,
|
|
536
|
-
}),
|
|
537
|
-
value: this.value,
|
|
538
|
-
placeholder: this.placeholder,
|
|
539
|
-
disabled: this.disabled,
|
|
540
|
-
onInput: (ev) => {
|
|
541
|
-
this.valueChange.emit(ev.target.value);
|
|
542
|
-
},
|
|
543
|
-
};
|
|
544
|
-
let properties = this.properties ?? {};
|
|
545
|
-
if (typeof properties === 'string') {
|
|
546
|
-
properties = JSON.parse(this.properties);
|
|
547
|
-
}
|
|
548
|
-
if (this.type === 'textarea') {
|
|
549
|
-
h("textarea", { ref: ref => this._setInputRef(ref), ...props, ...properties });
|
|
550
|
-
}
|
|
551
|
-
return (h("input", { type: this.type, ref: ref => this._setInputRef(ref), ...props, ...properties }));
|
|
552
|
-
}
|
|
553
|
-
_setInputRef(ref) {
|
|
554
|
-
this._inputRef = ref;
|
|
555
|
-
this.inputRefChange.emit(ref);
|
|
556
|
-
}
|
|
557
|
-
_focusInput() {
|
|
558
|
-
if (this._inputRef) {
|
|
559
|
-
this._inputRef.focus();
|
|
560
|
-
return;
|
|
561
|
-
}
|
|
562
|
-
const input = this._el.querySelector(':scope > [slot="input"]');
|
|
563
|
-
input[this.focusMethod]();
|
|
564
|
-
}
|
|
565
|
-
_selectAll() {
|
|
566
|
-
if (!this._inputRef || !this.selectAllOnFocus) {
|
|
567
|
-
return;
|
|
568
|
-
}
|
|
569
|
-
this._inputRef.select();
|
|
570
|
-
}
|
|
571
|
-
};
|
|
572
|
-
Field.style = PFieldStyle0;
|
|
573
|
-
|
|
574
|
-
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}";
|
|
575
|
-
const PFieldContainerStyle0 = fieldContainerComponentCss;
|
|
576
|
-
|
|
577
|
-
const FieldContainer = class {
|
|
578
|
-
constructor(hostRef) {
|
|
579
|
-
registerInstance(this, hostRef);
|
|
580
|
-
this.focus = createEvent(this, "focus", 7);
|
|
581
|
-
this.label = undefined;
|
|
582
|
-
this.helper = undefined;
|
|
583
|
-
this.required = undefined;
|
|
584
|
-
this.error = undefined;
|
|
585
|
-
this.errorPlacement = undefined;
|
|
586
|
-
this.forceShowTooltip = false;
|
|
587
|
-
this.optionalTemplate = this._defaultOptionalTemplate;
|
|
588
|
-
this._locales = {};
|
|
589
|
-
}
|
|
590
|
-
_defaultOptionalTemplate = () => formatTranslation(this._locales.optional);
|
|
591
|
-
get _el() { return getElement(this); }
|
|
592
|
-
focus;
|
|
593
|
-
componentWillLoad() {
|
|
594
|
-
this._setLocales();
|
|
595
|
-
}
|
|
596
|
-
render() {
|
|
597
|
-
const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
|
|
598
|
-
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' })))));
|
|
599
|
-
}
|
|
600
|
-
async _setLocales() {
|
|
601
|
-
this._locales = await getLocaleComponentStrings(this._el);
|
|
602
|
-
}
|
|
603
|
-
_getSlotInfo() {
|
|
604
|
-
const hasHelperSlot = !!this._el.querySelector(':scope > [slot="helper"]');
|
|
605
|
-
const hasLabelSlot = !!this._el.querySelector(':scope > [slot="label"]');
|
|
606
|
-
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
607
|
-
const hasErrorSlot = !!this._el.querySelector(':scope > [slot="error"]');
|
|
608
|
-
const helper = hasHelperSlot ? h("slot", { name: 'helper' }) : this.helper;
|
|
609
|
-
const label = hasLabelSlot ? h("slot", { name: 'label' }) : this.label;
|
|
610
|
-
const errorAndErrorIsNotBoolean = hasErrorSlot ||
|
|
611
|
-
(this.error && typeof this.error === 'string' && this.error !== 'true');
|
|
612
|
-
return {
|
|
613
|
-
hasHelperSlot,
|
|
614
|
-
hasLabelSlot,
|
|
615
|
-
hasHeaderSlot,
|
|
616
|
-
hasErrorSlot,
|
|
617
|
-
helper,
|
|
618
|
-
label,
|
|
619
|
-
errorAndErrorIsNotBoolean,
|
|
620
|
-
};
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
FieldContainer.style = PFieldContainerStyle0;
|
|
624
|
-
|
|
625
|
-
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}";
|
|
626
|
-
const PHelperStyle0 = helperComponentCss;
|
|
627
|
-
|
|
628
|
-
const Helper = class {
|
|
629
|
-
constructor(hostRef) {
|
|
630
|
-
registerInstance(this, hostRef);
|
|
631
|
-
this.strategy = 'absolute';
|
|
632
|
-
this.placement = 'top';
|
|
633
|
-
}
|
|
634
|
-
render() {
|
|
635
|
-
return (h(Host, { key: '9392e235ad3f053620cfabe68e71bcdfe961df09', class: 'p-helper' }, h("p-tooltip", { key: 'b3e4f9e553a44ec81a2f67c2c58404505bc3f224', placement: this.placement, strategy: this.strategy }, h("div", { key: '8e4ce0d5f7c6b2af6dc0a16476bca5cce5abfdcc', slot: 'content' }, h("slot", { key: '5ef4bfce3db5547eb380cbe6e51a49ff283b7367' })), h("div", { key: 'fbaa2d08ae0d679ff7814e178569f53a830a1942', slot: 'trigger', class: 'helper' }))));
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
Helper.style = PHelperStyle0;
|
|
639
|
-
|
|
640
|
-
const iconComponentCss = "*{box-sizing:border-box}:host{-webkit-transform-origin:50% 51%}.static{position:static!important}.flex{display:flex!important}.scale-\\[0\\.99\\]{--tw-scale-x:0.99!important;--tw-scale-y:0.99!important}.scale-\\[0\\.99\\],.scale-x-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.scale-x-flip{--tw-scale-x:-1!important}.scale-y-flip{--tw-scale-y:-1!important}.scale-y-flip,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:2rem!important;line-height:2.5rem!important}.text-4xl{font-size:2.5rem!important;line-height:3rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.text-xs{font-size:.75rem!important}.text-xs,.text-xxs{line-height:1rem!important}.text-xxs{font-size:.5rem!important}";
|
|
641
|
-
const PIconStyle0 = iconComponentCss;
|
|
642
|
-
|
|
643
|
-
const icon = cva(['p-icon flex'], {
|
|
644
|
-
variants: {
|
|
645
|
-
flip: {
|
|
646
|
-
none: null,
|
|
647
|
-
horizontal: 'scale-x-flip',
|
|
648
|
-
vertical: 'scale-y-flip',
|
|
649
|
-
},
|
|
650
|
-
size: {
|
|
651
|
-
auto: 'text-auto',
|
|
652
|
-
xxs: 'text-xxs',
|
|
653
|
-
xs: 'text-xs',
|
|
654
|
-
sm: 'text-sm',
|
|
655
|
-
base: 'text-base',
|
|
656
|
-
lg: 'text-lg',
|
|
657
|
-
xl: 'text-xl',
|
|
658
|
-
'2xl': 'text-2xl',
|
|
659
|
-
'3xl': 'text-3xl',
|
|
660
|
-
'4xl': 'text-4xl',
|
|
661
|
-
},
|
|
662
|
-
transform: {
|
|
663
|
-
true: 'transform-gpu scale-[0.99]',
|
|
664
|
-
false: null,
|
|
665
|
-
},
|
|
666
|
-
},
|
|
667
|
-
});
|
|
668
|
-
const Icon = class {
|
|
669
|
-
constructor(hostRef) {
|
|
670
|
-
registerInstance(this, hostRef);
|
|
671
|
-
this.variant = undefined;
|
|
672
|
-
this.size = 'base';
|
|
673
|
-
this.rotate = 0;
|
|
674
|
-
this.flip = 'none';
|
|
675
|
-
}
|
|
676
|
-
render() {
|
|
677
|
-
const svg = icons[this.variant];
|
|
678
|
-
return (h(Host, { key: 'bf9559d3ea263753b66321c184077ee7163ec27b', class: icon({
|
|
679
|
-
flip: this.flip,
|
|
680
|
-
size: this.size,
|
|
681
|
-
transform: this.flip !== 'none' || this.rotate > 0 || this.rotate < 0,
|
|
682
|
-
}), style: {
|
|
683
|
-
'--tw-rotate': `${this.rotate}deg`,
|
|
684
|
-
}, innerHTML: svg }));
|
|
685
|
-
}
|
|
686
|
-
};
|
|
687
|
-
Icon.style = PIconStyle0;
|
|
688
|
-
|
|
689
|
-
const loaderComponentCss = ".fixed{position:fixed!important}.top-0{top:0!important}.box-border{box-sizing:border-box!important}.block{display:block!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-\\[1em\\]{height:1em!important}.w-\\[1em\\]{width:1em!important}.w-full{width:100%!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.items-center{align-items:center!important}.border-2{border-width:2px!important}.border-solid{border-style:solid!important}.border-indigo-light{--tw-border-opacity:1!important;border-color:rgb(241 246 255/var(--tw-border-opacity,1))!important}.border-indigo-light\\/40{border-color:rgba(241,246,255,.4)!important}.border-storm-light\\/40{border-color:rgba(176,178,203,.4)!important}.border-t-storm{--tw-border-opacity:1!important;border-top-color:rgb(81 83 107/var(--tw-border-opacity,1))!important}.border-t-white{--tw-border-opacity:1!important;border-top-color:rgb(255 255 255/var(--tw-border-opacity,1))!important}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.h-screen-safe{height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}.w-screen-safe{width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right))!important}*{box-sizing:border-box}:host .loader{--tw-border-opacity:1;animation:spin .5s linear infinite;border-color:rgb(241 246 255/var(--tw-border-opacity,1));border-radius:9999px;border-style:solid;border-top:solid rgb(82 138 250/var(--tw-border-opacity,1));border-width:2px;display:inline-block;height:1em;width:1em;will-change:transform}:host .loader.color-storm{--tw-border-opacity:1!important;border-color:rgba(176,178,203,.4)!important;border-top-color:rgb(81 83 107/var(--tw-border-opacity,1))!important}:host .loader.color-white{--tw-border-opacity:1!important;border-color:rgba(241,246,255,.4)!important;border-top-color:rgb(255 255 255/var(--tw-border-opacity,1))!important}:host .loading-screen{--tw-bg-opacity:1;align-items:center;background-color:rgb(247 250 252/var(--tw-bg-opacity,1));display:flex;height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));justify-content:center;left:0;position:fixed;top:0;width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));z-index:1001}:host .loading-screen .content{max-width:20rem}:host .loading-screen .content .loader-wrapper{display:flex;justify-content:center;width:100%}:host .loading-screen .content .loader-wrapper .loader{font-size:2.5rem;line-height:3rem}:host(.variant-ghost){--loading-bg:#f7fafc;--loading-stripe:#fcfdfe;animation:loading 1s ease-in-out infinite;background-color:var(--loading-bg);background:linear-gradient(100deg,hsla(0,0%,100%,0) 40%,var(--loading-stripe) 50%,hsla(0,0%,100%,0) 60%) var(--loading-bg);background-position-x:180%;background-size:200% 100%;box-sizing:border-box;display:block;min-height:1em;min-width:1em;will-change:background,background-position-x,background-color}@keyframes loading{to{background-position-x:-20%}}@keyframes spin{to{transform:rotate(1turn)}}.static{position:static!important}.inline{display:inline!important}.justify-center{justify-content:center!important}.text-4xl{font-size:2.5rem!important;line-height:3rem!important}";
|
|
690
|
-
const PLoaderStyle0 = loaderComponentCss;
|
|
691
|
-
|
|
692
|
-
const Loader = class {
|
|
693
|
-
constructor(hostRef) {
|
|
694
|
-
registerInstance(this, hostRef);
|
|
695
|
-
this.show = true;
|
|
696
|
-
this.variant = 'inline';
|
|
697
|
-
this.color = 'indigo';
|
|
698
|
-
this.modalTitle = undefined;
|
|
699
|
-
this.modalDescription = undefined;
|
|
700
|
-
}
|
|
701
|
-
_show = false;
|
|
702
|
-
_showSubscriber;
|
|
703
|
-
componendDidLoad() {
|
|
704
|
-
this._show = this.show;
|
|
705
|
-
}
|
|
706
|
-
componentWillRender() {
|
|
707
|
-
this._checkShow();
|
|
708
|
-
}
|
|
709
|
-
componentShouldUpdate() {
|
|
710
|
-
this._checkShow();
|
|
711
|
-
}
|
|
712
|
-
render() {
|
|
713
|
-
if (!this._show) {
|
|
714
|
-
return;
|
|
715
|
-
}
|
|
716
|
-
if (this.variant === 'ghost') {
|
|
717
|
-
return h(Host, { class: 'p-loader variant-ghost' });
|
|
718
|
-
}
|
|
719
|
-
const loader = h("div", { class: `loader color-${this.color}` });
|
|
720
|
-
if (this.variant === 'full-screen') {
|
|
721
|
-
return (h(Host, { class: 'p-loader variant-full-screen' }, h("div", { class: 'loading-screen' }, h("div", { class: 'content' }, h("slot", null), h("div", { class: 'loader-wrapper' }, loader)))));
|
|
722
|
-
}
|
|
723
|
-
return (h(Host, { class: `p-loader variant-default flex ${this.variant === 'full-width' && 'flex w-full justify-center text-4xl'}` }, loader));
|
|
724
|
-
}
|
|
725
|
-
_checkShow() {
|
|
726
|
-
if (this._showSubscriber) {
|
|
727
|
-
this._showSubscriber.unsubscribe();
|
|
728
|
-
this._showSubscriber = null;
|
|
729
|
-
}
|
|
730
|
-
if (typeof this.show !== 'boolean') {
|
|
731
|
-
this._showSubscriber = this.show?.subscribe(show => (this._show = show));
|
|
732
|
-
return;
|
|
733
|
-
}
|
|
734
|
-
this._show = this.show;
|
|
735
|
-
}
|
|
736
|
-
};
|
|
737
|
-
Loader.style = PLoaderStyle0;
|
|
738
|
-
|
|
739
|
-
const Portal = class {
|
|
740
|
-
constructor(hostRef) {
|
|
741
|
-
registerInstance(this, hostRef);
|
|
742
|
-
}
|
|
743
|
-
get _el() { return getElement(this); }
|
|
744
|
-
_moved = false;
|
|
745
|
-
createPortal() {
|
|
746
|
-
document.body.append(this._el);
|
|
747
|
-
}
|
|
748
|
-
componentDidLoad() {
|
|
749
|
-
this.createPortal();
|
|
750
|
-
}
|
|
751
|
-
disconnectedCallback() {
|
|
752
|
-
this._moved ? this._el.remove() : (this._moved = true);
|
|
753
|
-
}
|
|
754
|
-
render() {
|
|
755
|
-
return (h(Host, { key: '7604d2cbdf309fb03b9a051d737f2b92fa57a354' }, h("slot", { key: 'f4edec28f68504e7622f7fcffe9a80cf55501af9' })));
|
|
756
|
-
}
|
|
757
|
-
};
|
|
758
|
-
|
|
759
|
-
const tooltipComponentCss = "*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.z-tooltip{z-index:601!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-inherit{height:inherit!important}.w-\\[2px\\]{width:2px!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.w-max{width:max-content!important}.max-w-\\[14\\.5rem\\]{max-width:14.5rem!important}.max-w-full{max-width:100%!important}.cursor-pointer{cursor:pointer!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.bg-black-teal{--tw-bg-opacity:1!important;background-color:rgb(3 42 36/var(--tw-bg-opacity,1))!important}.bg-negative-red{background-color:rgb(230 30 30/var(--tw-bg-opacity,1))!important}.bg-negative-red,.bg-white{--tw-bg-opacity:1!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.blur{--tw-blur:blur(8px)!important}.blur,.drop-shadow-3{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow-3{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08)) drop-shadow(0 2px 2px rgba(0,2,2,.08)) drop-shadow(0 4px 4px rgba(0,2,2,.08))!important}.transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}";
|
|
760
|
-
const PTooltipStyle0 = tooltipComponentCss;
|
|
761
|
-
|
|
762
|
-
const popover = cva([
|
|
763
|
-
'inline-block px-2',
|
|
764
|
-
'text-xs',
|
|
765
|
-
'opacity-0 drop-shadow-3 transition-opacity',
|
|
766
|
-
'rounded-lg',
|
|
767
|
-
'z-tooltip',
|
|
768
|
-
'pointer-events-none',
|
|
769
|
-
], {
|
|
770
|
-
variants: {
|
|
771
|
-
variant: {
|
|
772
|
-
hover: 'bg-black-teal text-white py-1',
|
|
773
|
-
click: null,
|
|
774
|
-
error: 'max-w-full w-full',
|
|
775
|
-
},
|
|
776
|
-
strategy: {
|
|
777
|
-
none: null,
|
|
778
|
-
fixed: 'fixed',
|
|
779
|
-
absolute: 'absolute',
|
|
780
|
-
},
|
|
781
|
-
},
|
|
782
|
-
compoundVariants: [
|
|
783
|
-
{
|
|
784
|
-
variant: ['hover', 'click'],
|
|
785
|
-
class: 'max-w-[14.5rem] w-max',
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
variant: ['click', 'error'],
|
|
789
|
-
class: 'bg-white text-black-teal-300 py-2',
|
|
790
|
-
},
|
|
791
|
-
],
|
|
792
|
-
});
|
|
793
|
-
const portal = cva('', {
|
|
794
|
-
variants: {
|
|
795
|
-
strategy: {
|
|
796
|
-
fixed: 'fixed',
|
|
797
|
-
absolute: 'absolute',
|
|
798
|
-
},
|
|
799
|
-
},
|
|
800
|
-
});
|
|
801
|
-
const Tooltip = class {
|
|
802
|
-
constructor(hostRef) {
|
|
803
|
-
registerInstance(this, hostRef);
|
|
804
|
-
this.isOpen = createEvent(this, "isOpen", 3);
|
|
805
|
-
this.variant = 'hover';
|
|
806
|
-
this.content = null;
|
|
807
|
-
this.placement = undefined;
|
|
808
|
-
this.offset = 8;
|
|
809
|
-
this.strategy = 'absolute';
|
|
810
|
-
this.enableUserInput = true;
|
|
811
|
-
this.show = false;
|
|
812
|
-
this.usePortal = false;
|
|
813
|
-
this.canManuallyClose = true;
|
|
814
|
-
}
|
|
815
|
-
/**
|
|
816
|
-
* Open change event
|
|
817
|
-
*/
|
|
818
|
-
isOpen;
|
|
819
|
-
get _el() { return getElement(this); }
|
|
820
|
-
_hasContentSlot = false;
|
|
821
|
-
_loaded = false;
|
|
822
|
-
_popover;
|
|
823
|
-
_cleanup;
|
|
824
|
-
componentWillLoad() {
|
|
825
|
-
this._hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
826
|
-
}
|
|
827
|
-
componentShouldUpdate() {
|
|
828
|
-
this._update();
|
|
829
|
-
}
|
|
830
|
-
disconnectedCallback() {
|
|
831
|
-
if (this._cleanup) {
|
|
832
|
-
this._cleanup();
|
|
833
|
-
this._cleanup = null;
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
render() {
|
|
837
|
-
const tooltipProps = {
|
|
838
|
-
role: 'popover',
|
|
839
|
-
'data-placement': this.placement,
|
|
840
|
-
ref: el => this._load(el),
|
|
841
|
-
};
|
|
842
|
-
let tooltip;
|
|
843
|
-
const tooltipElement = (h("div", { key: '012701d2371f41206de7a3a921abc11ef50aced1', class: popover({
|
|
844
|
-
variant: this.variant,
|
|
845
|
-
strategy: this.usePortal ? 'none' : this.strategy,
|
|
846
|
-
}), ...(this.usePortal ? {} : tooltipProps) }, h("div", { key: '70d51ec9a805c3155c0a09371966603de463d9f6', class: 'flex gap-2' }, this.variant === 'error' && (h("div", { key: '28fce86e2c1bcf42519ab9f3849bc9483397ee4f', class: 'w-[2px] bg-negative-red' })), this.content ? this.content : h("slot", { name: 'content' }))));
|
|
847
|
-
if (this.usePortal) {
|
|
848
|
-
tooltip = (h("p-portal", { key: '02a965ebe380080c6eef501a2b121b0a5ab4dc2f', class: portal({
|
|
849
|
-
strategy: this.strategy,
|
|
850
|
-
}), ...tooltipProps }, tooltipElement));
|
|
851
|
-
}
|
|
852
|
-
else {
|
|
853
|
-
tooltip = tooltipElement;
|
|
854
|
-
}
|
|
855
|
-
return (h(Host, { key: 'ba454a3140c52b57a66b5e46ae6fddf33ed52721', class: 'p-popover flex cursor-pointer' }, h("div", { key: '319cf2bc0723ca7e31472649c30119b943af0bcf', class: 'relative h-inherit w-inherit' }, h("slot", { key: 'c0a2e40f70b1c5f4654fc8e822caf9572853e327', name: 'trigger' }), tooltip)));
|
|
856
|
-
}
|
|
857
|
-
clickHandler() {
|
|
858
|
-
if (this.variant === 'hover' || !this.enableUserInput) {
|
|
859
|
-
return;
|
|
860
|
-
}
|
|
861
|
-
if (this._popover.hasAttribute('data-show')) {
|
|
862
|
-
return;
|
|
863
|
-
}
|
|
864
|
-
this._show();
|
|
865
|
-
}
|
|
866
|
-
documentClickHandler() {
|
|
867
|
-
if (this.variant === 'hover' || !this.canManuallyClose || this.show) {
|
|
868
|
-
return;
|
|
869
|
-
}
|
|
870
|
-
if (!this._popover.hasAttribute('data-show')) {
|
|
871
|
-
return;
|
|
872
|
-
}
|
|
873
|
-
this._hide();
|
|
874
|
-
}
|
|
875
|
-
mouseEnterHandler() {
|
|
876
|
-
if (this.variant !== 'hover' || !this.enableUserInput) {
|
|
877
|
-
return;
|
|
878
|
-
}
|
|
879
|
-
this._show();
|
|
880
|
-
}
|
|
881
|
-
mouseLeaveHandler() {
|
|
882
|
-
if (this.show || this.variant !== 'hover' || !this.enableUserInput) {
|
|
883
|
-
return;
|
|
884
|
-
}
|
|
885
|
-
this._hide();
|
|
886
|
-
}
|
|
887
|
-
onShowChange(show) {
|
|
888
|
-
if (show && !this._popover.hasAttribute('data-show')) {
|
|
889
|
-
return this._show();
|
|
890
|
-
}
|
|
891
|
-
return this._hide();
|
|
892
|
-
}
|
|
893
|
-
_show() {
|
|
894
|
-
if (!this._loaded) {
|
|
895
|
-
return;
|
|
896
|
-
}
|
|
897
|
-
if (!this.content?.length && !this._hasContentSlot) {
|
|
898
|
-
if (this._popover.hasAttribute('data-show')) {
|
|
899
|
-
this._hide();
|
|
900
|
-
}
|
|
901
|
-
return;
|
|
902
|
-
}
|
|
903
|
-
this._cleanup = autoUpdate(this._el, this._popover, () => this._update());
|
|
904
|
-
// Make the popover visible
|
|
905
|
-
this._popover.setAttribute('data-show', '');
|
|
906
|
-
this._popover.classList.remove('opacity-0', 'pointer-events-none');
|
|
907
|
-
this._popover.classList.add('opacity-100', 'pointer-events-auto');
|
|
908
|
-
// Update its position
|
|
909
|
-
this.isOpen.emit(true);
|
|
910
|
-
}
|
|
911
|
-
_hide() {
|
|
912
|
-
if (!this._loaded) {
|
|
913
|
-
return;
|
|
914
|
-
}
|
|
915
|
-
if (this._cleanup) {
|
|
916
|
-
this._cleanup();
|
|
917
|
-
this._cleanup = null;
|
|
918
|
-
}
|
|
919
|
-
// Hide the popover
|
|
920
|
-
this._popover.removeAttribute('data-show');
|
|
921
|
-
this._popover.classList.remove('opacity-100', 'pointer-events-auto');
|
|
922
|
-
this._popover.classList.add('opacity-0', 'pointer-events-none');
|
|
923
|
-
this.isOpen.emit(false);
|
|
924
|
-
}
|
|
925
|
-
_load(popover) {
|
|
926
|
-
this._popover = popover;
|
|
927
|
-
if (popover) {
|
|
928
|
-
this._update();
|
|
929
|
-
this._loaded = true;
|
|
930
|
-
if (this.show) {
|
|
931
|
-
setTimeout(() => this._show(), 100);
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
_update() {
|
|
936
|
-
if (!this._popover) {
|
|
937
|
-
return;
|
|
938
|
-
}
|
|
939
|
-
computePosition(this._el, this._popover, {
|
|
940
|
-
placement: this.variant === 'error' && !this.placement
|
|
941
|
-
? 'bottom-start'
|
|
942
|
-
: this.placement ?? 'top',
|
|
943
|
-
strategy: this.strategy,
|
|
944
|
-
middleware: [offset(this.offset), flip(), shift()],
|
|
945
|
-
}).then(({ x, y, placement }) => {
|
|
946
|
-
this._popover.dataset.placement = placement;
|
|
947
|
-
Object.assign(this._popover.style, {
|
|
948
|
-
top: `${y}px`,
|
|
949
|
-
left: `${x}px`,
|
|
950
|
-
});
|
|
951
|
-
});
|
|
952
|
-
}
|
|
953
|
-
static get watchers() { return {
|
|
954
|
-
"show": ["onShowChange"]
|
|
955
|
-
}; }
|
|
956
|
-
};
|
|
957
|
-
Tooltip.style = PTooltipStyle0;
|
|
958
|
-
|
|
959
|
-
export { Button as p_button, Field as p_field, FieldContainer as p_field_container, Helper as p_helper, Icon as p_icon, Loader as p_loader, Portal as p_portal, Tooltip as p_tooltip };
|
|
960
|
-
|
|
961
|
-
//# sourceMappingURL=p-button_8.entry.js.map
|