@paperless/core 2.0.1-beta.113 → 2.0.1-beta.114
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 +18 -0
- package/dist/build/p-01a2b5af.entry.js +2 -0
- package/dist/build/p-01a2b5af.entry.js.map +1 -0
- package/dist/build/p-08cff47b.entry.js +2 -0
- package/dist/build/{p-96cd5cff.entry.js → p-0c0ebb15.entry.js} +2 -2
- package/dist/{paperless/p-96cb3e48.entry.js → build/p-0c257fa2.entry.js} +2 -2
- package/dist/build/p-0cf505a8.entry.js +2 -0
- package/dist/build/{p-505650b6.entry.js.map → p-0cf505a8.entry.js.map} +1 -1
- package/dist/build/p-0da54170.entry.js +2 -0
- package/dist/build/p-0da54170.entry.js.map +1 -0
- package/dist/{paperless/p-8d4c7827.entry.js → build/p-0fe51ad0.entry.js} +2 -2
- package/dist/build/{p-35c50504.entry.js → p-128f3811.entry.js} +2 -2
- package/dist/build/{p-0a0ef10d.entry.js → p-1778732a.entry.js} +2 -2
- package/dist/build/p-1a544806.entry.js +2 -0
- package/dist/build/p-22e7fde5.entry.js +2 -0
- package/dist/build/p-22e7fde5.entry.js.map +1 -0
- package/dist/{paperless/p-41949138.entry.js → build/p-29d452d0.entry.js} +2 -2
- package/dist/build/{p-1c9405d8.entry.js → p-30f6e463.entry.js} +2 -2
- package/dist/build/p-3d341a83.entry.js +2 -0
- package/dist/build/p-3d341a83.entry.js.map +1 -0
- package/dist/{paperless/p-dc4121c6.entry.js → build/p-4e95f16d.entry.js} +2 -2
- package/dist/build/p-4e95f16d.entry.js.map +1 -0
- package/dist/build/{p-6cddddb7.entry.js → p-52149e0e.entry.js} +2 -2
- package/dist/build/p-5451207c.entry.js +2 -0
- package/dist/build/{p-6d54b0a5.entry.js.map → p-5451207c.entry.js.map} +1 -1
- package/dist/build/{p-fd4a25eb.entry.js → p-58f9ac89.entry.js} +2 -2
- package/dist/build/p-5c3167c8.entry.js +2 -0
- package/dist/build/p-5c3167c8.entry.js.map +1 -0
- package/dist/build/{p-bc366236.entry.js → p-5ee4e9c7.entry.js} +2 -2
- package/dist/{paperless/p-4906fd4d.entry.js → build/p-5fa74e2e.entry.js} +2 -2
- package/dist/{paperless/p-26b75731.entry.js → build/p-66adc33a.entry.js} +2 -2
- package/dist/build/p-6c5f6d8a.entry.js +2 -0
- package/dist/build/p-6c5f6d8a.entry.js.map +1 -0
- package/dist/build/{p-b1b12e88.entry.js → p-7046dc66.entry.js} +2 -2
- package/dist/build/p-730bcacd.entry.js +2 -0
- package/dist/build/p-730bcacd.entry.js.map +1 -0
- package/dist/build/{p-a3da31c4.entry.js → p-7658fd89.entry.js} +2 -2
- package/dist/{paperless/p-697c465d.entry.js → build/p-76a4f70e.entry.js} +2 -2
- package/dist/build/p-79b42a23.entry.js +2 -0
- package/dist/build/p-79b42a23.entry.js.map +1 -0
- package/dist/build/{p-929b47c9.entry.js → p-7ddf5875.entry.js} +2 -2
- package/dist/build/{p-929b47c9.entry.js.map → p-7ddf5875.entry.js.map} +1 -1
- package/dist/{paperless/p-7a878e24.entry.js → build/p-8249382f.entry.js} +2 -2
- package/dist/build/p-8577755d.entry.js +2 -0
- package/dist/build/p-8577755d.entry.js.map +1 -0
- package/dist/build/{p-53e0b8a1.entry.js → p-868f9ee9.entry.js} +2 -2
- package/dist/{paperless/p-d4f4fe62.entry.js → build/p-912ce588.entry.js} +2 -2
- package/dist/build/p-91ea22cd.entry.js +2 -0
- package/dist/build/p-91ea22cd.entry.js.map +1 -0
- package/dist/build/{p-1bde15ae.entry.js → p-9409dfd7.entry.js} +2 -2
- package/dist/build/p-9409dfd7.entry.js.map +1 -0
- package/dist/build/p-a48262c6.entry.js +2 -0
- package/dist/{paperless/p-922fba03.entry.js.map → build/p-a48262c6.entry.js.map} +1 -1
- package/dist/build/{p-8a63e1d9.entry.js → p-a5bc8b63.entry.js} +2 -2
- package/dist/build/{p-8a63e1d9.entry.js.map → p-a5bc8b63.entry.js.map} +1 -1
- package/dist/build/{p-d894e0b1.entry.js → p-a5f29193.entry.js} +2 -2
- package/dist/build/p-ab23f388.js +2 -0
- package/dist/build/p-abd13a2a.entry.js +2 -0
- package/dist/build/p-accordion.entry.esm.js.map +1 -1
- package/dist/{paperless/p-b029529c.entry.js → build/p-ae64bdf2.entry.js} +2 -2
- package/dist/build/p-attachment.entry.esm.js.map +1 -1
- package/dist/build/p-avatar-group.entry.esm.js.map +1 -1
- package/dist/build/p-badge.p-segment-container.p-segment-item.entry.esm.js.map +1 -1
- package/dist/build/p-bfda8061.entry.js +2 -0
- package/dist/build/{p-4205f7e2.entry.js.map → p-bfda8061.entry.js.map} +1 -1
- package/dist/build/p-button-group.entry.esm.js.map +1 -1
- package/dist/build/p-button.p-icon.p-loader.entry.esm.js.map +1 -1
- package/dist/build/p-c1041af9.entry.js +2 -0
- package/dist/build/p-c1041af9.entry.js.map +1 -0
- package/dist/build/p-c7139e78.entry.js +2 -0
- package/dist/build/p-c7139e78.entry.js.map +1 -0
- package/dist/build/{p-0ffe0165.entry.js → p-cac630d2.entry.js} +2 -2
- package/dist/build/p-cc379751.entry.js +2 -0
- package/dist/build/p-cc379751.entry.js.map +1 -0
- package/dist/build/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.esm.js.map +1 -1
- package/dist/build/p-content-slider.entry.esm.js.map +1 -1
- package/dist/build/{p-5667f8bf.entry.js → p-d0968c28.entry.js} +2 -2
- package/dist/build/p-d0968c28.entry.js.map +1 -0
- package/dist/build/{p-df7f9328.entry.js → p-d18ee52f.entry.js} +2 -2
- package/dist/{paperless/p-df7f9328.entry.js.map → build/p-d18ee52f.entry.js.map} +1 -1
- package/dist/build/p-datepicker.entry.esm.js.map +1 -1
- package/dist/build/p-drawer-body.p-drawer-container.p-drawer-header.entry.esm.js.map +1 -1
- package/dist/{paperless/p-7a05c8ca.entry.js → build/p-e9db1b2d.entry.js} +2 -2
- package/dist/build/p-eef52967.entry.js +2 -0
- package/dist/build/p-empty-state.p-floating-menu-container.p-floating-menu-item.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.esm.js.map +1 -1
- package/dist/build/{p-5cd98f23.entry.js → p-f1f14a3f.entry.js} +2 -2
- package/dist/build/p-field.p-field-container.entry.esm.js.map +1 -1
- package/dist/build/p-helper.p-tooltip.entry.esm.js.map +1 -1
- package/dist/build/p-iban-icon.entry.esm.js.map +1 -1
- package/dist/build/p-illustration.entry.esm.js.map +1 -1
- package/dist/build/p-info-panel.entry.esm.js.map +1 -1
- package/dist/build/p-label.entry.esm.js.map +1 -1
- package/dist/build/p-layout.entry.esm.js.map +1 -1
- package/dist/build/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.esm.js.map +1 -1
- package/dist/build/p-navigation-section.entry.esm.js.map +1 -1
- package/dist/build/p-navigation-title.entry.esm.js.map +1 -1
- package/dist/build/p-radio.entry.esm.js.map +1 -1
- package/dist/build/p-toggle.entry.esm.js.map +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/index-BDuPp9vl.js +0 -20
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +2 -2
- package/dist/cjs/p-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/p-accordion.entry.cjs.js.map +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +62 -11
- package/dist/cjs/p-attachment.cjs.entry.js.map +1 -1
- package/dist/cjs/p-attachment.entry.cjs.js.map +1 -1
- package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -1
- package/dist/cjs/p-avatar-group.entry.cjs.js.map +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js +3 -3
- package/dist/cjs/p-badge.p-segment-container.p-segment-item.entry.cjs.js.map +1 -1
- package/dist/cjs/p-badge_3.cjs.entry.js +4 -4
- package/dist/cjs/p-badge_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/p-button-group.entry.cjs.js.map +1 -1
- package/dist/cjs/p-button.p-icon.p-loader.entry.cjs.js.map +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +16 -14
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-card-body.cjs.entry.js +1 -1
- package/dist/cjs/p-card-container.cjs.entry.js +2 -2
- package/dist/cjs/p-card-header.cjs.entry.js +3 -3
- package/dist/cjs/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.cjs.js.map +1 -1
- package/dist/cjs/p-checkbox_4.cjs.entry.js +14 -14
- package/dist/cjs/p-checkbox_4.cjs.entry.js.map +1 -1
- package/dist/cjs/p-content-slider.cjs.entry.js +8 -3
- package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/p-content-slider.entry.cjs.js.map +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js +2 -2
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/p-datepicker.entry.cjs.js.map +1 -1
- package/dist/cjs/p-divider.cjs.entry.js +2 -2
- package/dist/cjs/p-drawer-body.p-drawer-container.p-drawer-header.entry.cjs.js.map +1 -1
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +6 -6
- package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-empty-state.p-floating-menu-container.p-floating-menu-item.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.cjs.js.map +1 -1
- package/dist/cjs/p-empty-state_9.cjs.entry.js +20 -20
- package/dist/cjs/p-empty-state_9.cjs.entry.js.map +1 -1
- package/dist/cjs/p-field.p-field-container.entry.cjs.js.map +1 -1
- package/dist/cjs/p-field_2.cjs.entry.js +37 -16
- package/dist/cjs/p-field_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-helper.p-tooltip.entry.cjs.js.map +1 -1
- package/dist/cjs/p-helper_2.cjs.entry.js +5 -5
- package/dist/cjs/p-helper_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
- package/dist/cjs/p-iban-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/p-iban-icon.entry.cjs.js.map +1 -1
- package/dist/cjs/p-illustration-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/p-illustration.cjs.entry.js +1 -1
- package/dist/cjs/p-illustration.cjs.entry.js.map +1 -1
- package/dist/cjs/p-illustration.entry.cjs.js.map +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +4 -4
- package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/p-info-panel.entry.cjs.js.map +1 -1
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-label.cjs.entry.js.map +1 -1
- package/dist/cjs/p-label.entry.cjs.js.map +1 -1
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/p-layout.entry.cjs.js.map +1 -1
- package/dist/cjs/p-listing-item.cjs.entry.js +1 -1
- package/dist/cjs/p-listing-line.cjs.entry.js +1 -1
- package/dist/cjs/p-listing.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.cjs.js.map +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +8 -7
- package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-section.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navigation-section.entry.cjs.js.map +1 -1
- package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-title.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navigation-title.entry.cjs.js.map +1 -1
- package/dist/cjs/p-pagination-pages-item.cjs.entry.js +2 -2
- package/dist/cjs/p-pagination_3.cjs.entry.js +7 -7
- package/dist/cjs/p-portal.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +4 -4
- package/dist/cjs/p-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/p-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-smile.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-item.cjs.entry.js +4 -4
- 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-container.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +3 -3
- package/dist/cjs/p-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +4 -4
- package/dist/cjs/p-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toggle.entry.cjs.js.map +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +5 -10
- package/dist/collection/components/atoms/avatar/avatar/avatar.component.js +1 -1
- package/dist/collection/components/atoms/avatar/avatar-group/avatar-group.component.js +1 -1
- package/dist/collection/components/atoms/avatar/avatar-group/avatar-group.component.js.map +1 -1
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +3 -3
- package/dist/collection/components/atoms/badge/badge.component.js +1 -1
- package/dist/collection/components/atoms/card/body/card-body.component.js +1 -1
- package/dist/collection/components/atoms/card/container/card-container.component.js +2 -2
- package/dist/collection/components/atoms/card/header/card-header.component.js +3 -3
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +6 -6
- package/dist/collection/components/atoms/checkbox/checkbox.component.js.map +1 -1
- package/dist/collection/components/atoms/divider/divider.component.js +2 -2
- package/dist/collection/components/atoms/drawer/body/drawer-body.component.js +1 -1
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.css +1 -1
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.js +2 -2
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.css +1 -1
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +2 -2
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +3 -3
- package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.css +1 -1
- package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.js +2 -2
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.css +1 -1
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +2 -2
- package/dist/collection/components/atoms/helper/helper.component.js +2 -2
- package/dist/collection/components/atoms/helper/helper.component.js.map +1 -1
- package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +2 -2
- package/dist/collection/components/atoms/iban-icon/iban-icon.component.js.map +1 -1
- package/dist/collection/components/atoms/icon/icon.component.css +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +3 -3
- package/dist/collection/components/atoms/icon/icon.component.js.map +1 -1
- package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
- package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +7 -7
- package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -1
- package/dist/collection/components/{deprecated/atoms → atoms}/layout/layout.component.js +1 -1
- package/dist/collection/components/atoms/layout/layout.component.js.map +1 -0
- package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
- package/dist/collection/components/atoms/listing/line/listing-line.component.js +1 -1
- package/dist/collection/components/atoms/loader/loader.component.css +1 -0
- package/dist/collection/components/{deprecated/atoms → atoms}/loader/loader.component.js +7 -7
- package/dist/collection/components/atoms/loader/loader.component.js.map +1 -0
- package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
- package/dist/collection/components/atoms/modal/container/modal-container.component.js +2 -2
- package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
- package/dist/collection/components/atoms/modal/header/modal-header.component.css +1 -1
- package/dist/collection/components/atoms/modal/header/modal-header.component.js +2 -1
- package/dist/collection/components/atoms/modal/header/modal-header.component.js.map +1 -1
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js.map +1 -1
- package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +2 -2
- 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/container/segment-container.component.js.map +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
- package/dist/collection/components/atoms/smile/smile.component.js +1 -1
- package/dist/collection/components/atoms/stepper/item/stepper-item.component.js +4 -4
- package/dist/collection/components/atoms/stepper/line/stepper-line.component.js +1 -1
- package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
- package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
- package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +1 -1
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
- package/dist/collection/components/atoms/toggle/toggle.component.js +5 -5
- package/dist/collection/components/atoms/toggle/toggle.component.js.map +1 -1
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +4 -4
- package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
- package/dist/collection/components/deprecated/atoms/illustration-deprecated/illustration-deprecated.component.js +1 -1
- package/dist/collection/components/deprecated/molecules/cropper/cropper.component.js +2 -2
- package/dist/collection/components/helpers/portal/portal.component.js +1 -1
- package/dist/collection/components/molecules/accordion/accordion.component.css +1 -0
- package/dist/collection/components/{deprecated/molecules → molecules}/accordion/accordion.component.js +2 -2
- package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -0
- package/dist/collection/components/molecules/attachment/attachment.component.css +1 -0
- package/dist/collection/components/molecules/attachment/attachment.component.js +377 -0
- package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -0
- package/dist/collection/components/molecules/button/button.component.js +7 -5
- package/dist/collection/components/molecules/button/button.component.js.map +1 -1
- package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
- package/dist/collection/components/molecules/button-group/button-group.component.js.map +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
- package/dist/collection/components/{deprecated/molecules → molecules}/content-slider/content-slider.component.css +1 -1
- package/dist/collection/components/{deprecated/molecules → molecules}/content-slider/content-slider.component.js +6 -2
- package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +3 -3
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +4 -4
- package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -1
- package/dist/collection/components/molecules/empty-state/empty-state.component.css +1 -1
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/container/field-container.component.js +5 -5
- package/dist/collection/components/molecules/field/container/field-container.component.js.map +1 -1
- package/dist/collection/components/molecules/field/field/field.component.css +1 -1
- package/dist/collection/components/molecules/field/field/field.component.js +34 -13
- package/dist/collection/components/molecules/field/field/field.component.js.map +1 -1
- package/dist/collection/components/molecules/label/label.component.js +4 -4
- package/dist/collection/components/molecules/label/label.component.js.map +1 -1
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +2 -2
- package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/navigation/section/navigation-section.component.js.map +1 -1
- package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
- package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +3 -3
- package/dist/collection/components/molecules/select/select.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 +2 -2
- package/dist/collection/components/molecules/table/header/table-header.component.js +3 -3
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/listing/listing.component.js +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/components/organisms/stepper/stepper.component.js +1 -1
- package/dist/collection/components/organisms/table/table.component.js +3 -3
- package/dist/components/index.js +2 -2
- package/dist/components/{p-B-dtByez.js → p-192xXCKV.js} +10 -10
- package/dist/components/p-192xXCKV.js.map +1 -0
- package/dist/components/{p-DdK27Obl.js → p-2DRqcElr.js} +3 -3
- package/dist/components/{p-DdK27Obl.js.map → p-2DRqcElr.js.map} +1 -1
- package/dist/components/{p-MQ5NAuIf.js → p-A5puW8KH.js} +13 -11
- package/dist/components/p-A5puW8KH.js.map +1 -0
- package/dist/components/{p-C1FkmkFJ.js → p-B4MNLDXF.js} +3 -3
- package/dist/components/{p-C1FkmkFJ.js.map → p-B4MNLDXF.js.map} +1 -1
- package/dist/components/{p-CSIFLNsS.js → p-BBKYP-Cm.js} +3 -3
- package/dist/components/{p-CSIFLNsS.js.map → p-BBKYP-Cm.js.map} +1 -1
- package/dist/components/{p-BEuvmIBQ.js → p-BE9wqNth.js} +4 -4
- package/dist/components/{p-BEuvmIBQ.js.map → p-BE9wqNth.js.map} +1 -1
- package/dist/components/{p-DXsCtVm-.js → p-BFKshVEl.js} +3 -3
- package/dist/components/{p-DXsCtVm-.js.map → p-BFKshVEl.js.map} +1 -1
- package/dist/components/{p-D2Em0Yy7.js → p-BP1aeBcW.js} +9 -9
- package/dist/components/p-BP1aeBcW.js.map +1 -0
- package/dist/components/{p-BPkSg0bc.js → p-BPXS3EM8.js} +6 -6
- package/dist/components/{p-BPkSg0bc.js.map → p-BPXS3EM8.js.map} +1 -1
- package/dist/components/{p-p2WG_YKz.js → p-BSAVV_6x.js} +7 -7
- package/dist/components/{p-p2WG_YKz.js.map → p-BSAVV_6x.js.map} +1 -1
- package/dist/components/{p-CXH4yAMZ.js → p-Bev8J8ks.js} +10 -9
- package/dist/components/p-Bev8J8ks.js.map +1 -0
- package/dist/components/{p-CSMO4KRK.js → p-BnyZAlkn.js} +44 -23
- package/dist/components/p-BnyZAlkn.js.map +1 -0
- package/dist/components/{p-DlFumKvb.js → p-Bxt_h1P2.js} +8 -8
- package/dist/components/{p-DlFumKvb.js.map → p-Bxt_h1P2.js.map} +1 -1
- package/dist/components/p-C-1aZ7t0.js +92 -0
- package/dist/components/p-C-1aZ7t0.js.map +1 -0
- package/dist/components/p-C2CsD_zr.js +115 -0
- package/dist/components/{p-DJzH_A-R.js.map → p-C2CsD_zr.js.map} +1 -1
- package/dist/components/{p-C0yOzPit.js → p-CA3joyV6.js} +3 -3
- package/dist/components/{p-C0yOzPit.js.map → p-CA3joyV6.js.map} +1 -1
- package/dist/components/{p-D09jozUL.js → p-CA6-0EkK.js} +5 -5
- package/dist/components/{p-D09jozUL.js.map → p-CA6-0EkK.js.map} +1 -1
- package/dist/components/{p-4hDfHOnN.js → p-CBWjHURv.js} +4 -4
- package/dist/components/p-CBWjHURv.js.map +1 -0
- package/dist/components/{p-BpWSyLrS.js → p-CKTvcFFn.js} +3 -3
- package/dist/components/{p-BpWSyLrS.js.map → p-CKTvcFFn.js.map} +1 -1
- package/dist/components/{p-Ma26TfrN.js → p-CMY9PhJV.js} +5 -5
- package/dist/components/{p-Ma26TfrN.js.map → p-CMY9PhJV.js.map} +1 -1
- package/dist/components/{p-olyt1_RK.js → p-CS8aLBBd.js} +3 -3
- package/dist/components/{p-olyt1_RK.js.map → p-CS8aLBBd.js.map} +1 -1
- package/dist/components/{p-Cb5QxFb_.js → p-CT54OXR2.js} +3 -3
- package/dist/components/{p-Cb5QxFb_.js.map → p-CT54OXR2.js.map} +1 -1
- package/dist/components/{p-tf3ZTq-9.js → p-CgHBpaJ2.js} +16 -16
- package/dist/components/{p-tf3ZTq-9.js.map → p-CgHBpaJ2.js.map} +1 -1
- package/dist/components/p-ChV9xqsO.js +6 -0
- package/dist/components/p-ChV9xqsO.js.map +1 -0
- package/dist/components/{p-DQsUJhL8.js → p-Cp8IEnaB.js} +12 -12
- package/dist/components/{p-DQsUJhL8.js.map → p-Cp8IEnaB.js.map} +1 -1
- package/dist/components/{p-BmuXuYR6.js → p-Cr5nmZn3.js} +6 -6
- package/dist/components/{p-BmuXuYR6.js.map → p-Cr5nmZn3.js.map} +1 -1
- package/dist/components/{p-CmzpquGH.js → p-Cs06wZSM.js} +8 -8
- package/dist/components/{p-CmzpquGH.js.map → p-Cs06wZSM.js.map} +1 -1
- package/dist/components/{p-BIf14u2D.js → p-Ct_1clhY.js} +9 -9
- package/dist/components/{p-BIf14u2D.js.map → p-Ct_1clhY.js.map} +1 -1
- package/dist/components/{p-CEoo55FK.js → p-Cv1xoKQ6.js} +5 -5
- package/dist/components/{p-CEoo55FK.js.map → p-Cv1xoKQ6.js.map} +1 -1
- package/dist/components/{p-C7OuWaSr.js → p-CyPGXubm.js} +4 -4
- package/dist/components/{p-C7OuWaSr.js.map → p-CyPGXubm.js.map} +1 -1
- package/dist/components/{p-BlzjYdn5.js → p-D4wHNR58.js} +6 -6
- package/dist/components/{p-BlzjYdn5.js.map → p-D4wHNR58.js.map} +1 -1
- package/dist/components/{p-DH9lFbRX.js → p-D7OHNXA8.js} +5 -5
- package/dist/components/{p-DH9lFbRX.js.map → p-D7OHNXA8.js.map} +1 -1
- package/dist/components/{p-oN2NV1VP.js → p-DB4h1B2U.js} +4 -4
- package/dist/components/{p-oN2NV1VP.js.map → p-DB4h1B2U.js.map} +1 -1
- package/dist/components/{p-ZBndlSp5.js → p-DNHN-J6Y.js} +7 -7
- package/dist/components/p-DNHN-J6Y.js.map +1 -0
- package/dist/components/{p-DNuBtBUG.js → p-DO22qLlU.js} +8 -8
- package/dist/components/{p-DNuBtBUG.js.map → p-DO22qLlU.js.map} +1 -1
- package/dist/components/{p-CUgIFdxM.js → p-DfRQHBer.js} +3 -3
- package/dist/components/{p-CUgIFdxM.js.map → p-DfRQHBer.js.map} +1 -1
- package/dist/components/{p-CYGYOpps.js → p-DlGX7eAs.js} +12 -12
- package/dist/components/p-DlGX7eAs.js.map +1 -0
- package/dist/components/p-Dlmv9Uk2.js +58 -0
- package/dist/components/{p-BYnq9fQl.js.map → p-Dlmv9Uk2.js.map} +1 -1
- package/dist/components/{p-CzmLJq-j.js → p-DwUkFgs3.js} +18 -18
- package/dist/components/{p-CzmLJq-j.js.map → p-DwUkFgs3.js.map} +1 -1
- package/dist/components/{p-CErvgq5z.js → p-FJZcncHr.js} +4 -4
- package/dist/components/{p-CErvgq5z.js.map → p-FJZcncHr.js.map} +1 -1
- package/dist/components/{p-C_t2sBf3.js → p-HLwIOGJt.js} +8 -8
- package/dist/components/{p-C_t2sBf3.js.map → p-HLwIOGJt.js.map} +1 -1
- package/dist/components/{p-CxHSXAkq.js → p-Hj0dtQOu.js} +10 -10
- package/dist/components/{p-CxHSXAkq.js.map → p-Hj0dtQOu.js.map} +1 -1
- package/dist/components/{p-CKc3SL1J.js → p-OY7iMMA5.js} +6 -6
- package/dist/components/{p-CKc3SL1J.js.map → p-OY7iMMA5.js.map} +1 -1
- package/dist/components/p-accordion.js +4 -4
- package/dist/components/p-accordion.js.map +1 -1
- package/dist/components/p-attachment.js +86 -23
- package/dist/components/p-attachment.js.map +1 -1
- package/dist/components/p-avatar-group.js +1 -1
- package/dist/components/p-avatar-group.js.map +1 -1
- package/dist/components/p-avatar.js +1 -1
- package/dist/components/{p-BELUs4d5.js → p-b3Miuuib.js} +16 -16
- package/dist/components/{p-BELUs4d5.js.map → p-b3Miuuib.js.map} +1 -1
- package/dist/components/p-backdrop.js +1 -1
- package/dist/components/p-badge.js +1 -1
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-button-group.js.map +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/{p-CQcp92mr.js → p-cCxwgzDB.js} +7 -7
- package/dist/components/p-cCxwgzDB.js.map +1 -0
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-body.js +1 -1
- package/dist/components/p-card-container.js +3 -3
- package/dist/components/p-card-header.js +7 -7
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-content-slider.js +8 -10
- package/dist/components/p-content-slider.js.map +1 -1
- package/dist/components/p-cropper.js +4 -4
- package/dist/components/p-datepicker.js +14 -14
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/components/p-divider.js +1 -1
- package/dist/components/p-drawer-body.js +1 -1
- package/dist/components/p-drawer-container.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +8 -8
- package/dist/components/p-dropdown-menu-container.js +1 -1
- package/dist/components/p-dropdown-menu-item.js +1 -1
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/{p-abTHpIy3.js → p-i-upzqfe.js} +4 -4
- package/dist/components/{p-abTHpIy3.js.map → p-i-upzqfe.js.map} +1 -1
- package/dist/components/p-iban-icon.js +2 -2
- package/dist/components/p-iban-icon.js.map +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-illustration-deprecated.js +1 -1
- package/dist/components/p-illustration.js +1 -1
- package/dist/components/p-info-panel.js +6 -6
- package/dist/components/p-info-panel.js.map +1 -1
- package/dist/components/p-label.js +7 -7
- package/dist/components/p-label.js.map +1 -1
- package/dist/components/p-layout.js +1 -1
- package/dist/components/p-layout.js.map +1 -1
- package/dist/components/p-listing-item.js +2 -2
- package/dist/components/p-listing-line.js +1 -1
- package/dist/components/p-listing.js +2 -2
- package/dist/components/p-loader.js +1 -1
- package/dist/components/p-modal-body.js +1 -1
- package/dist/components/p-modal-container.js +1 -1
- package/dist/components/p-modal-footer.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +10 -10
- package/dist/components/p-navbar.js +6 -6
- package/dist/components/p-navigation-item.js +7 -7
- package/dist/components/p-navigation-section.js +2 -2
- package/dist/components/p-navigation-section.js.map +1 -1
- package/dist/components/p-navigation-title.js +1 -1
- package/dist/components/{p-ElOvIDKN.js → p-oan6Th3h.js} +3 -3
- package/dist/components/{p-ElOvIDKN.js.map → p-oan6Th3h.js.map} +1 -1
- package/dist/components/p-pagination-pages-item.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-portal.js +1 -1
- package/dist/components/p-profile.js +7 -7
- package/dist/components/p-radio.js +6 -6
- package/dist/components/p-radio.js.map +1 -1
- package/dist/components/p-segment-container.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +15 -15
- package/dist/components/p-smile.js +1 -1
- package/dist/components/p-stepper-item.js +5 -5
- package/dist/components/p-stepper-line.js +1 -1
- package/dist/components/p-stepper.js +3 -3
- package/dist/components/p-tab-container.js +2 -2
- package/dist/components/p-tab-item.js +2 -2
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-container.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row-actions-container.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +35 -35
- package/dist/components/p-toast-container.js +3 -3
- package/dist/components/p-toast.js +5 -5
- package/dist/components/p-toggle.js +6 -6
- package/dist/components/p-toggle.js.map +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/components/{p-dHqdW8fy.js → p-vxD7JU3i.js} +5 -5
- package/dist/components/{p-dHqdW8fy.js.map → p-vxD7JU3i.js.map} +1 -1
- package/dist/esm/index-DhGo7hbh.js +0 -20
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-accordion.entry.js +2 -2
- package/dist/esm/p-accordion.entry.js.map +1 -1
- package/dist/esm/p-attachment.entry.js +63 -12
- package/dist/esm/p-attachment.entry.js.map +1 -1
- package/dist/esm/p-avatar-group.entry.js +1 -1
- package/dist/esm/p-avatar-group.entry.js.map +1 -1
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-backdrop.entry.js +3 -3
- package/dist/esm/p-badge.p-segment-container.p-segment-item.entry.js.map +1 -1
- package/dist/esm/p-badge_3.entry.js +4 -4
- package/dist/esm/p-badge_3.entry.js.map +1 -1
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button-group.entry.js.map +1 -1
- package/dist/esm/p-button.p-icon.p-loader.entry.js.map +1 -1
- package/dist/esm/p-button_3.entry.js +16 -14
- package/dist/esm/p-button_3.entry.js.map +1 -1
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-card-body.entry.js +1 -1
- package/dist/esm/p-card-container.entry.js +2 -2
- package/dist/esm/p-card-header.entry.js +3 -3
- package/dist/esm/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.js.map +1 -1
- package/dist/esm/p-checkbox_4.entry.js +15 -15
- package/dist/esm/p-checkbox_4.entry.js.map +1 -1
- package/dist/esm/p-content-slider.entry.js +8 -3
- package/dist/esm/p-content-slider.entry.js.map +1 -1
- package/dist/esm/p-cropper.entry.js +2 -2
- package/dist/esm/p-datepicker.entry.js +3 -3
- package/dist/esm/p-datepicker.entry.js.map +1 -1
- package/dist/esm/p-divider.entry.js +2 -2
- package/dist/esm/p-drawer-body.p-drawer-container.p-drawer-header.entry.js.map +1 -1
- package/dist/esm/p-drawer-body_3.entry.js +6 -6
- package/dist/esm/p-drawer-body_3.entry.js.map +1 -1
- package/dist/esm/p-empty-state.p-floating-menu-container.p-floating-menu-item.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.js.map +1 -1
- package/dist/esm/p-empty-state_9.entry.js +20 -20
- package/dist/esm/p-empty-state_9.entry.js.map +1 -1
- package/dist/esm/p-field.p-field-container.entry.js.map +1 -1
- package/dist/esm/p-field_2.entry.js +38 -17
- package/dist/esm/p-field_2.entry.js.map +1 -1
- package/dist/esm/p-helper.p-tooltip.entry.js.map +1 -1
- package/dist/esm/p-helper_2.entry.js +6 -6
- package/dist/esm/p-helper_2.entry.js.map +1 -1
- package/dist/esm/p-iban-icon.entry.js +2 -2
- package/dist/esm/p-iban-icon.entry.js.map +1 -1
- package/dist/esm/p-illustration-deprecated.entry.js +1 -1
- package/dist/esm/p-illustration.entry.js +1 -1
- package/dist/esm/p-illustration.entry.js.map +1 -1
- package/dist/esm/p-info-panel.entry.js +4 -4
- package/dist/esm/p-info-panel.entry.js.map +1 -1
- package/dist/esm/p-label.entry.js +4 -4
- package/dist/esm/p-label.entry.js.map +1 -1
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-layout.entry.js.map +1 -1
- package/dist/esm/p-listing-item.entry.js +1 -1
- package/dist/esm/p-listing-line.entry.js +1 -1
- package/dist/esm/p-listing.entry.js +1 -1
- package/dist/esm/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.js.map +1 -1
- package/dist/esm/p-modal-body_4.entry.js +8 -7
- package/dist/esm/p-modal-body_4.entry.js.map +1 -1
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +2 -2
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-navigation-section.entry.js.map +1 -1
- package/dist/esm/p-navigation-title.entry.js +1 -1
- package/dist/esm/p-navigation-title.entry.js.map +1 -1
- package/dist/esm/p-pagination-pages-item.entry.js +2 -2
- package/dist/esm/p-pagination_3.entry.js +7 -7
- package/dist/esm/p-portal.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +5 -5
- package/dist/esm/p-radio.entry.js.map +1 -1
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-smile.entry.js +1 -1
- package/dist/esm/p-stepper-item.entry.js +4 -4
- package/dist/esm/p-stepper-line.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-tab-container.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-table.entry.js +3 -3
- package/dist/esm/p-toast-container.entry.js +2 -2
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +5 -5
- package/dist/esm/p-toggle.entry.js.map +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-01a2b5af.entry.js +2 -0
- package/dist/paperless/p-01a2b5af.entry.js.map +1 -0
- package/dist/paperless/p-08cff47b.entry.js +2 -0
- package/dist/paperless/{p-96cd5cff.entry.js → p-0c0ebb15.entry.js} +2 -2
- package/dist/{build/p-96cb3e48.entry.js → paperless/p-0c257fa2.entry.js} +2 -2
- package/dist/paperless/p-0cf505a8.entry.js +2 -0
- package/dist/paperless/{p-505650b6.entry.js.map → p-0cf505a8.entry.js.map} +1 -1
- package/dist/paperless/p-0da54170.entry.js +2 -0
- package/dist/paperless/p-0da54170.entry.js.map +1 -0
- package/dist/{build/p-8d4c7827.entry.js → paperless/p-0fe51ad0.entry.js} +2 -2
- package/dist/paperless/{p-35c50504.entry.js → p-128f3811.entry.js} +2 -2
- package/dist/paperless/{p-0a0ef10d.entry.js → p-1778732a.entry.js} +2 -2
- package/dist/paperless/p-1a544806.entry.js +2 -0
- package/dist/paperless/p-22e7fde5.entry.js +2 -0
- package/dist/paperless/p-22e7fde5.entry.js.map +1 -0
- package/dist/{build/p-41949138.entry.js → paperless/p-29d452d0.entry.js} +2 -2
- package/dist/paperless/{p-1c9405d8.entry.js → p-30f6e463.entry.js} +2 -2
- package/dist/paperless/p-3d341a83.entry.js +2 -0
- package/dist/paperless/p-3d341a83.entry.js.map +1 -0
- package/dist/{build/p-dc4121c6.entry.js → paperless/p-4e95f16d.entry.js} +2 -2
- package/dist/paperless/p-4e95f16d.entry.js.map +1 -0
- package/dist/paperless/{p-6cddddb7.entry.js → p-52149e0e.entry.js} +2 -2
- package/dist/paperless/p-5451207c.entry.js +2 -0
- package/dist/paperless/{p-6d54b0a5.entry.js.map → p-5451207c.entry.js.map} +1 -1
- package/dist/paperless/{p-fd4a25eb.entry.js → p-58f9ac89.entry.js} +2 -2
- package/dist/paperless/p-5c3167c8.entry.js +2 -0
- package/dist/paperless/p-5c3167c8.entry.js.map +1 -0
- package/dist/paperless/{p-bc366236.entry.js → p-5ee4e9c7.entry.js} +2 -2
- package/dist/{build/p-4906fd4d.entry.js → paperless/p-5fa74e2e.entry.js} +2 -2
- package/dist/{build/p-26b75731.entry.js → paperless/p-66adc33a.entry.js} +2 -2
- package/dist/paperless/p-6c5f6d8a.entry.js +2 -0
- package/dist/paperless/p-6c5f6d8a.entry.js.map +1 -0
- package/dist/paperless/{p-b1b12e88.entry.js → p-7046dc66.entry.js} +2 -2
- package/dist/paperless/p-730bcacd.entry.js +2 -0
- package/dist/paperless/p-730bcacd.entry.js.map +1 -0
- package/dist/paperless/{p-a3da31c4.entry.js → p-7658fd89.entry.js} +2 -2
- package/dist/{build/p-697c465d.entry.js → paperless/p-76a4f70e.entry.js} +2 -2
- package/dist/paperless/p-79b42a23.entry.js +2 -0
- package/dist/paperless/p-79b42a23.entry.js.map +1 -0
- package/dist/paperless/{p-929b47c9.entry.js → p-7ddf5875.entry.js} +2 -2
- package/dist/paperless/{p-929b47c9.entry.js.map → p-7ddf5875.entry.js.map} +1 -1
- package/dist/{build/p-7a878e24.entry.js → paperless/p-8249382f.entry.js} +2 -2
- package/dist/paperless/p-8577755d.entry.js +2 -0
- package/dist/paperless/p-8577755d.entry.js.map +1 -0
- package/dist/paperless/{p-53e0b8a1.entry.js → p-868f9ee9.entry.js} +2 -2
- package/dist/{build/p-d4f4fe62.entry.js → paperless/p-912ce588.entry.js} +2 -2
- package/dist/paperless/p-91ea22cd.entry.js +2 -0
- package/dist/paperless/p-91ea22cd.entry.js.map +1 -0
- package/dist/paperless/{p-1bde15ae.entry.js → p-9409dfd7.entry.js} +2 -2
- package/dist/paperless/p-9409dfd7.entry.js.map +1 -0
- package/dist/paperless/p-a48262c6.entry.js +2 -0
- package/dist/{build/p-922fba03.entry.js.map → paperless/p-a48262c6.entry.js.map} +1 -1
- package/dist/paperless/{p-8a63e1d9.entry.js → p-a5bc8b63.entry.js} +2 -2
- package/dist/paperless/{p-8a63e1d9.entry.js.map → p-a5bc8b63.entry.js.map} +1 -1
- package/dist/paperless/{p-d894e0b1.entry.js → p-a5f29193.entry.js} +2 -2
- package/dist/paperless/p-abd13a2a.entry.js +2 -0
- package/dist/paperless/p-accordion.entry.esm.js.map +1 -1
- package/dist/{build/p-b029529c.entry.js → paperless/p-ae64bdf2.entry.js} +2 -2
- package/dist/paperless/p-attachment.entry.esm.js.map +1 -1
- package/dist/paperless/p-avatar-group.entry.esm.js.map +1 -1
- package/dist/paperless/p-badge.p-segment-container.p-segment-item.entry.esm.js.map +1 -1
- package/dist/paperless/p-bfda8061.entry.js +2 -0
- package/dist/paperless/{p-4205f7e2.entry.js.map → p-bfda8061.entry.js.map} +1 -1
- package/dist/paperless/p-button-group.entry.esm.js.map +1 -1
- package/dist/paperless/p-button.p-icon.p-loader.entry.esm.js.map +1 -1
- package/dist/paperless/p-c1041af9.entry.js +2 -0
- package/dist/paperless/p-c1041af9.entry.js.map +1 -0
- package/dist/paperless/p-c7139e78.entry.js +2 -0
- package/dist/paperless/p-c7139e78.entry.js.map +1 -0
- package/dist/paperless/{p-0ffe0165.entry.js → p-cac630d2.entry.js} +2 -2
- package/dist/paperless/p-cc379751.entry.js +2 -0
- package/dist/paperless/p-cc379751.entry.js.map +1 -0
- package/dist/paperless/p-checkbox.p-dropdown.p-dropdown-menu-container.p-dropdown-menu-item.entry.esm.js.map +1 -1
- package/dist/paperless/p-content-slider.entry.esm.js.map +1 -1
- package/dist/paperless/{p-5667f8bf.entry.js → p-d0968c28.entry.js} +2 -2
- package/dist/paperless/p-d0968c28.entry.js.map +1 -0
- package/dist/paperless/{p-df7f9328.entry.js → p-d18ee52f.entry.js} +2 -2
- package/dist/{build/p-df7f9328.entry.js.map → paperless/p-d18ee52f.entry.js.map} +1 -1
- package/dist/paperless/p-datepicker.entry.esm.js.map +1 -1
- package/dist/paperless/p-drawer-body.p-drawer-container.p-drawer-header.entry.esm.js.map +1 -1
- package/dist/{build/p-7a05c8ca.entry.js → paperless/p-e9db1b2d.entry.js} +2 -2
- package/dist/paperless/p-eef52967.entry.js +2 -0
- package/dist/paperless/p-empty-state.p-floating-menu-container.p-floating-menu-item.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.esm.js.map +1 -1
- package/dist/paperless/{p-5cd98f23.entry.js → p-f1f14a3f.entry.js} +2 -2
- package/dist/paperless/p-field.p-field-container.entry.esm.js.map +1 -1
- package/dist/paperless/p-helper.p-tooltip.entry.esm.js.map +1 -1
- package/dist/paperless/p-iban-icon.entry.esm.js.map +1 -1
- package/dist/paperless/p-illustration.entry.esm.js.map +1 -1
- package/dist/paperless/p-info-panel.entry.esm.js.map +1 -1
- package/dist/paperless/p-label.entry.esm.js.map +1 -1
- package/dist/paperless/p-layout.entry.esm.js.map +1 -1
- package/dist/paperless/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.esm.js.map +1 -1
- package/dist/paperless/p-navigation-section.entry.esm.js.map +1 -1
- package/dist/paperless/p-navigation-title.entry.esm.js.map +1 -1
- package/dist/paperless/p-radio.entry.esm.js.map +1 -1
- package/dist/paperless/p-toggle.entry.esm.js.map +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +1 -1
- package/dist/types/components/{deprecated/atoms → atoms}/layout/layout.component.d.ts +1 -1
- package/dist/types/components/{deprecated/atoms → atoms}/loader/loader.component.d.ts +1 -1
- package/dist/types/components/{deprecated/molecules → molecules}/accordion/accordion.component.d.ts +1 -1
- package/dist/types/components/molecules/attachment/attachment.component.d.ts +60 -0
- package/dist/types/components/molecules/field/container/field-container.component.d.ts +1 -1
- package/dist/types/components.d.ts +77 -281
- package/package.json +1 -1
- package/dist/build/p-05791ffa.entry.js +0 -2
- package/dist/build/p-05791ffa.entry.js.map +0 -1
- package/dist/build/p-11b1e718.entry.js +0 -2
- package/dist/build/p-11b1e718.entry.js.map +0 -1
- package/dist/build/p-1bde15ae.entry.js.map +0 -1
- package/dist/build/p-21fb542a.entry.js +0 -2
- package/dist/build/p-21fb542a.entry.js.map +0 -1
- package/dist/build/p-3b14bbef.entry.js +0 -2
- package/dist/build/p-3b14bbef.entry.js.map +0 -1
- package/dist/build/p-3cf73b2c.js +0 -2
- package/dist/build/p-4205f7e2.entry.js +0 -2
- package/dist/build/p-476985ba.entry.js +0 -2
- package/dist/build/p-476985ba.entry.js.map +0 -1
- package/dist/build/p-4c6e5337.entry.js +0 -2
- package/dist/build/p-505650b6.entry.js +0 -2
- package/dist/build/p-5667f8bf.entry.js.map +0 -1
- package/dist/build/p-6620dc05.entry.js +0 -2
- package/dist/build/p-6620dc05.entry.js.map +0 -1
- package/dist/build/p-6d54b0a5.entry.js +0 -2
- package/dist/build/p-72eb70f4.entry.js +0 -2
- package/dist/build/p-72eb70f4.entry.js.map +0 -1
- package/dist/build/p-7c7e6f26.entry.js +0 -2
- package/dist/build/p-7c7e6f26.entry.js.map +0 -1
- package/dist/build/p-7f4d26c4.entry.js +0 -2
- package/dist/build/p-7f4d26c4.entry.js.map +0 -1
- package/dist/build/p-8cc3f69f.entry.js +0 -2
- package/dist/build/p-8cc3f69f.entry.js.map +0 -1
- package/dist/build/p-922fba03.entry.js +0 -2
- package/dist/build/p-9da1d488.entry.js +0 -2
- package/dist/build/p-9da1d488.entry.js.map +0 -1
- package/dist/build/p-a6c618fb.entry.js +0 -2
- package/dist/build/p-a6c618fb.entry.js.map +0 -1
- package/dist/build/p-adfddeb6.entry.js +0 -2
- package/dist/build/p-adfddeb6.entry.js.map +0 -1
- package/dist/build/p-b08f490b.entry.js +0 -2
- package/dist/build/p-bce08b0e.entry.js +0 -2
- package/dist/build/p-c9c0ae8d.entry.js +0 -2
- package/dist/build/p-c9c0ae8d.entry.js.map +0 -1
- package/dist/build/p-counter.entry.esm.js.map +0 -1
- package/dist/build/p-d37e0e66.entry.js +0 -2
- package/dist/build/p-d37e0e66.entry.js.map +0 -1
- package/dist/build/p-dc4121c6.entry.js.map +0 -1
- package/dist/build/p-e526cd42.entry.js +0 -2
- package/dist/build/p-e526cd42.entry.js.map +0 -1
- package/dist/build/p-e63adc0d.entry.js +0 -2
- package/dist/build/p-e63adc0d.entry.js.map +0 -1
- package/dist/build/p-ed2e7409.entry.js +0 -2
- package/dist/build/p-ed2e7409.entry.js.map +0 -1
- package/dist/build/p-ff2b5ed0.entry.js +0 -2
- package/dist/build/p-input-error.entry.esm.js.map +0 -1
- package/dist/build/p-input-group.entry.esm.js.map +0 -1
- package/dist/build/p-slider-indicator.entry.esm.js.map +0 -1
- package/dist/build/p-status.entry.esm.js.map +0 -1
- package/dist/cjs/p-counter.cjs.entry.js +0 -28
- package/dist/cjs/p-counter.cjs.entry.js.map +0 -1
- package/dist/cjs/p-counter.entry.cjs.js.map +0 -1
- package/dist/cjs/p-input-error.cjs.entry.js +0 -26
- package/dist/cjs/p-input-error.cjs.entry.js.map +0 -1
- package/dist/cjs/p-input-error.entry.cjs.js.map +0 -1
- package/dist/cjs/p-input-group.cjs.entry.js +0 -176
- package/dist/cjs/p-input-group.cjs.entry.js.map +0 -1
- package/dist/cjs/p-input-group.entry.cjs.js.map +0 -1
- package/dist/cjs/p-slider-indicator.cjs.entry.js +0 -24
- package/dist/cjs/p-slider-indicator.cjs.entry.js.map +0 -1
- package/dist/cjs/p-slider-indicator.entry.cjs.js.map +0 -1
- package/dist/cjs/p-status.cjs.entry.js +0 -62
- package/dist/cjs/p-status.cjs.entry.js.map +0 -1
- package/dist/cjs/p-status.entry.cjs.js.map +0 -1
- package/dist/collection/components/deprecated/atoms/counter/counter.component.css +0 -1
- package/dist/collection/components/deprecated/atoms/counter/counter.component.js +0 -71
- package/dist/collection/components/deprecated/atoms/counter/counter.component.js.map +0 -1
- package/dist/collection/components/deprecated/atoms/layout/layout.component.js.map +0 -1
- package/dist/collection/components/deprecated/atoms/loader/loader.component.css +0 -1
- package/dist/collection/components/deprecated/atoms/loader/loader.component.js.map +0 -1
- package/dist/collection/components/deprecated/atoms/slider-indicator/slider-indicator.component.css +0 -1
- package/dist/collection/components/deprecated/atoms/slider-indicator/slider-indicator.component.js +0 -47
- package/dist/collection/components/deprecated/atoms/slider-indicator/slider-indicator.component.js.map +0 -1
- package/dist/collection/components/deprecated/atoms/status/status.component.css +0 -1
- package/dist/collection/components/deprecated/atoms/status/status.component.js +0 -159
- package/dist/collection/components/deprecated/atoms/status/status.component.js.map +0 -1
- package/dist/collection/components/deprecated/molecules/accordion/accordion.component.css +0 -1
- package/dist/collection/components/deprecated/molecules/accordion/accordion.component.js.map +0 -1
- package/dist/collection/components/deprecated/molecules/attachment/attachment.component.css +0 -1
- package/dist/collection/components/deprecated/molecules/attachment/attachment.component.js +0 -166
- package/dist/collection/components/deprecated/molecules/attachment/attachment.component.js.map +0 -1
- package/dist/collection/components/deprecated/molecules/content-slider/content-slider.component.js.map +0 -1
- package/dist/collection/components/deprecated/molecules/input/error/input-error.component.js +0 -66
- package/dist/collection/components/deprecated/molecules/input/error/input-error.component.js.map +0 -1
- package/dist/collection/components/deprecated/molecules/input/group/input-group.component.css +0 -1
- package/dist/collection/components/deprecated/molecules/input/group/input-group.component.js +0 -532
- package/dist/collection/components/deprecated/molecules/input/group/input-group.component.js.map +0 -1
- package/dist/components/p-4hDfHOnN.js.map +0 -1
- package/dist/components/p-B-dtByez.js.map +0 -1
- package/dist/components/p-BFBKoX9I.js +0 -92
- package/dist/components/p-BFBKoX9I.js.map +0 -1
- package/dist/components/p-BYnq9fQl.js +0 -58
- package/dist/components/p-CQcp92mr.js.map +0 -1
- package/dist/components/p-CSMO4KRK.js.map +0 -1
- package/dist/components/p-CXH4yAMZ.js.map +0 -1
- package/dist/components/p-CYGYOpps.js.map +0 -1
- package/dist/components/p-D2Em0Yy7.js.map +0 -1
- package/dist/components/p-DJzH_A-R.js +0 -115
- package/dist/components/p-DeKgadpt.js +0 -62
- package/dist/components/p-DeKgadpt.js.map +0 -1
- package/dist/components/p-DoBSOpu3.js +0 -40
- package/dist/components/p-DoBSOpu3.js.map +0 -1
- package/dist/components/p-MQ5NAuIf.js.map +0 -1
- package/dist/components/p-ZBndlSp5.js.map +0 -1
- package/dist/components/p-counter.d.ts +0 -11
- package/dist/components/p-counter.js +0 -48
- package/dist/components/p-counter.js.map +0 -1
- package/dist/components/p-input-error.d.ts +0 -11
- package/dist/components/p-input-error.js +0 -9
- package/dist/components/p-input-error.js.map +0 -1
- package/dist/components/p-input-group.d.ts +0 -11
- package/dist/components/p-input-group.js +0 -241
- package/dist/components/p-input-group.js.map +0 -1
- package/dist/components/p-slider-indicator.d.ts +0 -11
- package/dist/components/p-slider-indicator.js +0 -9
- package/dist/components/p-slider-indicator.js.map +0 -1
- package/dist/components/p-status.d.ts +0 -11
- package/dist/components/p-status.js +0 -89
- package/dist/components/p-status.js.map +0 -1
- package/dist/esm/p-counter.entry.js +0 -26
- package/dist/esm/p-counter.entry.js.map +0 -1
- package/dist/esm/p-input-error.entry.js +0 -24
- package/dist/esm/p-input-error.entry.js.map +0 -1
- package/dist/esm/p-input-group.entry.js +0 -174
- package/dist/esm/p-input-group.entry.js.map +0 -1
- package/dist/esm/p-slider-indicator.entry.js +0 -22
- package/dist/esm/p-slider-indicator.entry.js.map +0 -1
- package/dist/esm/p-status.entry.js +0 -60
- package/dist/esm/p-status.entry.js.map +0 -1
- package/dist/paperless/p-05791ffa.entry.js +0 -2
- package/dist/paperless/p-05791ffa.entry.js.map +0 -1
- package/dist/paperless/p-11b1e718.entry.js +0 -2
- package/dist/paperless/p-11b1e718.entry.js.map +0 -1
- package/dist/paperless/p-1bde15ae.entry.js.map +0 -1
- package/dist/paperless/p-21fb542a.entry.js +0 -2
- package/dist/paperless/p-21fb542a.entry.js.map +0 -1
- package/dist/paperless/p-3b14bbef.entry.js +0 -2
- package/dist/paperless/p-3b14bbef.entry.js.map +0 -1
- package/dist/paperless/p-4205f7e2.entry.js +0 -2
- package/dist/paperless/p-476985ba.entry.js +0 -2
- package/dist/paperless/p-476985ba.entry.js.map +0 -1
- package/dist/paperless/p-4c6e5337.entry.js +0 -2
- package/dist/paperless/p-505650b6.entry.js +0 -2
- package/dist/paperless/p-5667f8bf.entry.js.map +0 -1
- package/dist/paperless/p-6620dc05.entry.js +0 -2
- package/dist/paperless/p-6620dc05.entry.js.map +0 -1
- package/dist/paperless/p-6d54b0a5.entry.js +0 -2
- package/dist/paperless/p-72eb70f4.entry.js +0 -2
- package/dist/paperless/p-72eb70f4.entry.js.map +0 -1
- package/dist/paperless/p-7c7e6f26.entry.js +0 -2
- package/dist/paperless/p-7c7e6f26.entry.js.map +0 -1
- package/dist/paperless/p-7f4d26c4.entry.js +0 -2
- package/dist/paperless/p-7f4d26c4.entry.js.map +0 -1
- package/dist/paperless/p-8cc3f69f.entry.js +0 -2
- package/dist/paperless/p-8cc3f69f.entry.js.map +0 -1
- package/dist/paperless/p-922fba03.entry.js +0 -2
- package/dist/paperless/p-9da1d488.entry.js +0 -2
- package/dist/paperless/p-9da1d488.entry.js.map +0 -1
- package/dist/paperless/p-a6c618fb.entry.js +0 -2
- package/dist/paperless/p-a6c618fb.entry.js.map +0 -1
- package/dist/paperless/p-adfddeb6.entry.js +0 -2
- package/dist/paperless/p-adfddeb6.entry.js.map +0 -1
- package/dist/paperless/p-b08f490b.entry.js +0 -2
- package/dist/paperless/p-bce08b0e.entry.js +0 -2
- package/dist/paperless/p-c9c0ae8d.entry.js +0 -2
- package/dist/paperless/p-c9c0ae8d.entry.js.map +0 -1
- package/dist/paperless/p-counter.entry.esm.js.map +0 -1
- package/dist/paperless/p-d37e0e66.entry.js +0 -2
- package/dist/paperless/p-d37e0e66.entry.js.map +0 -1
- package/dist/paperless/p-dc4121c6.entry.js.map +0 -1
- package/dist/paperless/p-e526cd42.entry.js +0 -2
- package/dist/paperless/p-e526cd42.entry.js.map +0 -1
- package/dist/paperless/p-e63adc0d.entry.js +0 -2
- package/dist/paperless/p-e63adc0d.entry.js.map +0 -1
- package/dist/paperless/p-ed2e7409.entry.js +0 -2
- package/dist/paperless/p-ed2e7409.entry.js.map +0 -1
- package/dist/paperless/p-ff2b5ed0.entry.js +0 -2
- package/dist/paperless/p-input-error.entry.esm.js.map +0 -1
- package/dist/paperless/p-input-group.entry.esm.js.map +0 -1
- package/dist/paperless/p-slider-indicator.entry.esm.js.map +0 -1
- package/dist/paperless/p-status.entry.esm.js.map +0 -1
- package/dist/types/components/deprecated/atoms/counter/counter.component.d.ts +0 -11
- package/dist/types/components/deprecated/atoms/slider-indicator/slider-indicator.component.d.ts +0 -7
- package/dist/types/components/deprecated/atoms/status/status.component.d.ts +0 -23
- package/dist/types/components/deprecated/molecules/attachment/attachment.component.d.ts +0 -28
- package/dist/types/components/deprecated/molecules/input/error/input-error.component.d.ts +0 -12
- package/dist/types/components/deprecated/molecules/input/group/input-group.component.d.ts +0 -82
- /package/dist/build/{p-bce08b0e.entry.js.map → p-08cff47b.entry.js.map} +0 -0
- /package/dist/build/{p-96cd5cff.entry.js.map → p-0c0ebb15.entry.js.map} +0 -0
- /package/dist/build/{p-96cb3e48.entry.js.map → p-0c257fa2.entry.js.map} +0 -0
- /package/dist/build/{p-8d4c7827.entry.js.map → p-0fe51ad0.entry.js.map} +0 -0
- /package/dist/build/{p-35c50504.entry.js.map → p-128f3811.entry.js.map} +0 -0
- /package/dist/build/{p-0a0ef10d.entry.js.map → p-1778732a.entry.js.map} +0 -0
- /package/dist/build/{p-ff2b5ed0.entry.js.map → p-1a544806.entry.js.map} +0 -0
- /package/dist/build/{p-41949138.entry.js.map → p-29d452d0.entry.js.map} +0 -0
- /package/dist/build/{p-1c9405d8.entry.js.map → p-30f6e463.entry.js.map} +0 -0
- /package/dist/build/{p-6cddddb7.entry.js.map → p-52149e0e.entry.js.map} +0 -0
- /package/dist/build/{p-fd4a25eb.entry.js.map → p-58f9ac89.entry.js.map} +0 -0
- /package/dist/build/{p-bc366236.entry.js.map → p-5ee4e9c7.entry.js.map} +0 -0
- /package/dist/build/{p-4906fd4d.entry.js.map → p-5fa74e2e.entry.js.map} +0 -0
- /package/dist/build/{p-26b75731.entry.js.map → p-66adc33a.entry.js.map} +0 -0
- /package/dist/build/{p-b1b12e88.entry.js.map → p-7046dc66.entry.js.map} +0 -0
- /package/dist/build/{p-a3da31c4.entry.js.map → p-7658fd89.entry.js.map} +0 -0
- /package/dist/build/{p-697c465d.entry.js.map → p-76a4f70e.entry.js.map} +0 -0
- /package/dist/build/{p-7a878e24.entry.js.map → p-8249382f.entry.js.map} +0 -0
- /package/dist/build/{p-53e0b8a1.entry.js.map → p-868f9ee9.entry.js.map} +0 -0
- /package/dist/build/{p-d4f4fe62.entry.js.map → p-912ce588.entry.js.map} +0 -0
- /package/dist/build/{p-d894e0b1.entry.js.map → p-a5f29193.entry.js.map} +0 -0
- /package/dist/build/{p-b08f490b.entry.js.map → p-abd13a2a.entry.js.map} +0 -0
- /package/dist/build/{p-b029529c.entry.js.map → p-ae64bdf2.entry.js.map} +0 -0
- /package/dist/build/{p-0ffe0165.entry.js.map → p-cac630d2.entry.js.map} +0 -0
- /package/dist/build/{p-7a05c8ca.entry.js.map → p-e9db1b2d.entry.js.map} +0 -0
- /package/dist/build/{p-4c6e5337.entry.js.map → p-eef52967.entry.js.map} +0 -0
- /package/dist/build/{p-5cd98f23.entry.js.map → p-f1f14a3f.entry.js.map} +0 -0
- /package/dist/collection/components/{deprecated/atoms → atoms}/layout/layout.component.css +0 -0
- /package/dist/paperless/{p-bce08b0e.entry.js.map → p-08cff47b.entry.js.map} +0 -0
- /package/dist/paperless/{p-96cd5cff.entry.js.map → p-0c0ebb15.entry.js.map} +0 -0
- /package/dist/paperless/{p-96cb3e48.entry.js.map → p-0c257fa2.entry.js.map} +0 -0
- /package/dist/paperless/{p-8d4c7827.entry.js.map → p-0fe51ad0.entry.js.map} +0 -0
- /package/dist/paperless/{p-35c50504.entry.js.map → p-128f3811.entry.js.map} +0 -0
- /package/dist/paperless/{p-0a0ef10d.entry.js.map → p-1778732a.entry.js.map} +0 -0
- /package/dist/paperless/{p-ff2b5ed0.entry.js.map → p-1a544806.entry.js.map} +0 -0
- /package/dist/paperless/{p-41949138.entry.js.map → p-29d452d0.entry.js.map} +0 -0
- /package/dist/paperless/{p-1c9405d8.entry.js.map → p-30f6e463.entry.js.map} +0 -0
- /package/dist/paperless/{p-6cddddb7.entry.js.map → p-52149e0e.entry.js.map} +0 -0
- /package/dist/paperless/{p-fd4a25eb.entry.js.map → p-58f9ac89.entry.js.map} +0 -0
- /package/dist/paperless/{p-bc366236.entry.js.map → p-5ee4e9c7.entry.js.map} +0 -0
- /package/dist/paperless/{p-4906fd4d.entry.js.map → p-5fa74e2e.entry.js.map} +0 -0
- /package/dist/paperless/{p-26b75731.entry.js.map → p-66adc33a.entry.js.map} +0 -0
- /package/dist/paperless/{p-b1b12e88.entry.js.map → p-7046dc66.entry.js.map} +0 -0
- /package/dist/paperless/{p-a3da31c4.entry.js.map → p-7658fd89.entry.js.map} +0 -0
- /package/dist/paperless/{p-697c465d.entry.js.map → p-76a4f70e.entry.js.map} +0 -0
- /package/dist/paperless/{p-7a878e24.entry.js.map → p-8249382f.entry.js.map} +0 -0
- /package/dist/paperless/{p-53e0b8a1.entry.js.map → p-868f9ee9.entry.js.map} +0 -0
- /package/dist/paperless/{p-d4f4fe62.entry.js.map → p-912ce588.entry.js.map} +0 -0
- /package/dist/paperless/{p-d894e0b1.entry.js.map → p-a5f29193.entry.js.map} +0 -0
- /package/dist/paperless/{p-b08f490b.entry.js.map → p-abd13a2a.entry.js.map} +0 -0
- /package/dist/paperless/{p-b029529c.entry.js.map → p-ae64bdf2.entry.js.map} +0 -0
- /package/dist/paperless/{p-0ffe0165.entry.js.map → p-cac630d2.entry.js.map} +0 -0
- /package/dist/paperless/{p-7a05c8ca.entry.js.map → p-e9db1b2d.entry.js.map} +0 -0
- /package/dist/paperless/{p-4c6e5337.entry.js.map → p-eef52967.entry.js.map} +0 -0
- /package/dist/paperless/{p-5cd98f23.entry.js.map → p-f1f14a3f.entry.js.map} +0 -0
- /package/dist/types/components/{deprecated/molecules → molecules}/content-slider/content-slider.component.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-slider.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/content-slider/content-slider.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,OAAO,EACP,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAOpC,MAAM,OAAO,aAAa;IACzB;;OAEG;IACK,mBAAmB,GAAY,KAAK,CAAC;IAE7C;;OAEG;IACK,WAAW,GAAY,KAAK,CAAC;IAErC;;OAEG;IACK,iBAAiB,GAAY,KAAK,CAAC;IAE3C;;OAEG;IACK,qBAAqB,GAAY,KAAK,CAAC;IAE/C;;OA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;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tElement,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cn } from '../../../utils';\n\n@Component({\n\ttag: 'p-content-slider',\n\tstyleUrl: 'content-slider.component.scss',\n\tshadow: true,\n})\nexport class ContentSlider {\n\t/**\n\t * Wether to hide the indicator on mobile\n\t */\n\t@Prop() hideMobileIndicator: boolean = false;\n\n\t/**\n\t * Wether to disable dragging the content\n\t */\n\t@Prop() disableDrag: boolean = false;\n\n\t/**\n\t * Wether to disable auto centering the content\n\t */\n\t@Prop() disableAutoCenter: boolean = false;\n\n\t/**\n\t * Wether to disable clicking the indicator scrolls content\n\t */\n\t@Prop() disableIndicatorClick: boolean = false;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _visibleIndex: number;\n\t@State() private _outerHeight = 0;\n\t@State() private _totalWidth = 0;\n\tprivate _sliderRef: HTMLElement;\n\tprivate _innerSliderRef: HTMLElement;\n\tprivate _items: HTMLElement[] = [];\n\tprivate _innerSliderResizeObserver: ResizeObserver;\n\n\t// mouse movement stuff\n\tprivate _startX: number;\n\tprivate _startMouseX: number;\n\tprivate _lastMouseX: number;\n\tprivate _lastIndex: number;\n\tprivate _shouldCheckLocation = false;\n\t@State() private _dragging = false;\n\n\tcomponentWillRender() {\n\t\tconst items = this._el.querySelectorAll(':scope > *');\n\t\tthis._items = Array.from(items) as HTMLElement[];\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n\t\tthis._calculateWidth();\n\t\tthis._calculateIndicator();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._innerSliderResizeObserver) {\n\t\t\tthis._innerSliderResizeObserver.disconnect();\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-content-slider\">\n\t\t\t\t<div\n\t\t\t\t\tclass={`slider ${!this.disableDrag && 'draggable'} ${\n\t\t\t\t\t\tthis._dragging && 'dragging'\n\t\t\t\t\t}`}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\theight: `${this._outerHeight}px`,\n\t\t\t\t\t}}\n\t\t\t\t\tref={(el) => (this._sliderRef = el)}\n\t\t\t\t\tonMouseDown={(e) => this._mouseDownHandler(e)}\n\t\t\t\t\tonTouchStart={(e) => this._mouseDownHandler(e)}\n\t\t\t\t\tonMouseMove={(e) => this._mouseMoveHandler(e)}\n\t\t\t\t\tonTouchMove={(e) => this._mouseMoveHandler(e)}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"inner-slider\"\n\t\t\t\t\t\tref={(ref) => this._setInnerSliderReft(ref)}\n\t\t\t\t\t\tonTransitionEnd={() => this._transitionEndHandler()}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div\n\t\t\t\t\tclass={`indicator ${this.hideMobileIndicator && 'hidden'}`}\n\t\t\t\t>\n\t\t\t\t\t{this._items.map((_, i) => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tonClick={() => this._scrollTo(i, true)}\n\t\t\t\t\t\t\tclass={`item ${\n\t\t\t\t\t\t\t\t!this.disableIndicatorClick && 'cursor-pointer'\n\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<div class={cn('block w-2 h-2 rounded-full', {\n\t\t\t\t\t\t\t\t'bg-dark-teal-600': i === this._visibleIndex,\n\t\t\t\t\t\t\t\t'bg-dark-teal-400': i !== this._visibleIndex,\n\t\t\t\t\t\t\t})} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _mouseDownHandler(e) {\n\t\tif (this.disableDrag || this._dragging) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst innerSliderStyle = getComputedStyle(this._innerSliderRef);\n\t\tif (innerSliderStyle.flexWrap === 'wrap') {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._startMouseX = e.x;\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\t\tif (e.type === 'touchstart') {\n\t\t\tthis._startMouseX = e.touches?.[0].clientX;\n\t\t}\n\n\t\tconst innerSliderRect = this._innerSliderRef.getBoundingClientRect();\n\t\tconst offsetLeft = innerSliderRect.x - sliderRect.x;\n\n\t\tthis._startX = this._startMouseX - sliderRect.x - offsetLeft;\n\t\tthis._lastIndex = this._visibleIndex;\n\t\tthis._dragging = true;\n\t}\n\n\tprivate _mouseMoveHandler(e) {\n\t\tif (!e || !this._dragging || this.disableDrag) {\n\t\t\treturn;\n\t\t}\n\n\t\te.preventDefault();\n\n\t\tthis._shouldCheckLocation = true;\n\n\t\tif (\n\t\t\tthis._innerSliderRef.style.getPropertyValue('pointer-events') === ''\n\t\t) {\n\t\t\tthis._innerSliderRef.style.pointerEvents = 'none';\n\t\t}\n\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\t\tlet x = e.clientX - sliderRect.left;\n\t\tthis._lastMouseX = e.x;\n\t\tif (e.type === 'touchmove') {\n\t\t\tx = e.touches?.[0].clientX - sliderRect.left;\n\t\t\tthis._lastMouseX = e.touches?.[0].clientX;\n\t\t}\n\n\t\tthis._innerSliderRef.style.setProperty(\n\t\t\t'--tw-translate-x',\n\t\t\t`${x - this._startX}px`\n\t\t);\n\n\t\tthis._checkBoundary();\n\t\tthis._calculateIndicator();\n\t}\n\n\tprivate _transitionEndHandler() {\n\t\tthis._calculateIndicator();\n\t}\n\n\t@Listen('mouseup', { target: 'window' })\n\t@Listen('touchend', { target: 'window' })\n\tmouseUpHandler() {\n\t\tthis._dragging = false;\n\t\tthis._innerSliderRef.style.removeProperty('pointer-events');\n\n\t\tthis._checkLocation();\n\t}\n\n\t@Listen('resize', { target: 'window' })\n\tresizeHandler() {\n\t\tif (this._innerSliderRef) {\n\t\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', '0px');\n\t\t\tthis._calculateWidth();\n\t\t\tthis._calculateIndicator();\n\t\t}\n\t}\n\n\tprivate _setInnerSliderReft(ref) {\n\t\tthis._innerSliderRef = ref;\n\t\tthis._innerSliderResizeObserver = new ResizeObserver(() =>\n\t\t\tthis._calculateHeight()\n\t\t);\n\t\tthis._innerSliderResizeObserver.observe(this._innerSliderRef);\n\t}\n\n\tprivate _scrollTo(i: number, manual = false) {\n\t\tif (this.disableIndicatorClick && manual) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst el = this._items[i];\n\n\t\tif (i === 0) {\n\t\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n\t\t\treturn;\n\t\t}\n\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\t\tconst innerSliderRect = this._innerSliderRef.getBoundingClientRect();\n\t\tconst elRect = el.getBoundingClientRect();\n\n\t\tconst offsetLeft = elRect.x - innerSliderRect.x;\n\n\t\tconst centerOffset =\n\t\t\toffsetLeft + elRect.width / 2 - sliderRect.width / 2;\n\n\t\tthis._innerSliderRef.style.setProperty(\n\t\t\t'--tw-translate-x',\n\t\t\t`-${centerOffset}px`\n\t\t);\n\n\t\tthis._checkBoundary();\n\t\tthis._calculateIndicator();\n\t}\n\n\tprivate _checkBoundary() {\n\t\tlet outer = this._sliderRef.getBoundingClientRect();\n\n\t\tconst left = parseInt(\n\t\t\tthis._innerSliderRef.style.getPropertyValue('--tw-translate-x')\n\t\t);\n\t\tif (left > 0) {\n\t\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n\t\t}\n\n\t\tconst maxLeft = (this._totalWidth - outer.width) * -1;\n\t\tif (left < maxLeft) {\n\t\t\tthis._innerSliderRef.style.setProperty(\n\t\t\t\t'--tw-translate-x',\n\t\t\t\t`${maxLeft}px`\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate _calculateIndicator() {\n\t\tfor (let i = 0; i < this._items.length; i++) {\n\t\t\tconst item = this._items[i];\n\t\t\tconst visible = this._isVisible(item);\n\n\t\t\tif (visible) {\n\t\t\t\tthis._visibleIndex = i;\n\t\t\t}\n\n\t\t\tif (i === 0 && visible) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _checkLocation() {\n\t\tif (!this._shouldCheckLocation) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet scrollToIndex = null;\n\t\tif (this._lastIndex !== this._visibleIndex) {\n\t\t\tscrollToIndex = this._visibleIndex;\n\t\t}\n\n\t\tif (this._lastIndex === this._visibleIndex) {\n\t\t\tif (this._lastMouseX > this._startMouseX && this._lastIndex !== 0) {\n\t\t\t\tscrollToIndex = this._lastIndex - 1;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tthis._lastMouseX < this._startMouseX &&\n\t\t\t\tthis._lastIndex !== this._items?.length - 1\n\t\t\t) {\n\t\t\t\tscrollToIndex = this._lastIndex + 1;\n\t\t\t}\n\t\t}\n\n\t\tif (scrollToIndex !== null) {\n\t\t\tthis._shouldCheckLocation = false;\n\t\t\tsetTimeout(() => this._scrollTo(scrollToIndex), 100);\n\t\t}\n\t}\n\n\tprivate _isVisible(el: HTMLElement) {\n\t\tif (!this._el || !el) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst elRect = el.getBoundingClientRect();\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\n\t\treturn (\n\t\t\t(elRect.left >= sliderRect.left &&\n\t\t\t\telRect.right <= sliderRect.right) ||\n\t\t\t(this._isMobile(el) &&\n\t\t\t\telRect.left + elRect.width / 2 >= sliderRect.left &&\n\t\t\t\telRect.left + elRect.width / 2 <= sliderRect.right)\n\t\t);\n\t}\n\n\tprivate _calculateWidth() {\n\t\tlet totalWidth = 0;\n\n\t\tfor (let item of this._items) {\n\t\t\tconst rect = item.getBoundingClientRect();\n\t\t\ttotalWidth += rect.width;\n\t\t}\n\n\t\tconst sliderStyle = getComputedStyle(this._sliderRef);\n\t\tconst padding = parseInt(sliderStyle.padding) * 2;\n\n\t\tconst innerSliderStyle = getComputedStyle(this._innerSliderRef);\n\t\tconst gap = parseInt(innerSliderStyle.gap) * (this._items.length - 1);\n\n\t\ttotalWidth += padding + gap;\n\n\t\tthis._totalWidth = totalWidth;\n\t}\n\n\tprivate _calculateHeight() {\n\t\tconst outerHeight = this._items.at(0).getBoundingClientRect().height;\n\t\tif (outerHeight != this._outerHeight) {\n\t\t\tthis._outerHeight = outerHeight;\n\t\t}\n\t}\n\n\tprivate _isMobile(el?: HTMLElement) {\n\t\tif (!el) {\n\t\t\tel = this._items.at(0);\n\t\t}\n\n\t\tconst elRect = el.getBoundingClientRect();\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\n\t\treturn sliderRect.width - elRect.width < 10;\n\t}\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { format, isAfter, isBefore, isSameDay, isValid, isWeekend, parse, startOfDay, startOfMonth, startOfYear, } from "date-fns";
|
|
3
3
|
import { childOf, isMobileBrowser } from "../../../utils";
|
|
4
4
|
import { asBoolean } from "../../../utils/as-boolean";
|
|
@@ -189,9 +189,9 @@ export class Datepicker {
|
|
|
189
189
|
this.parseValue(this.value);
|
|
190
190
|
}
|
|
191
191
|
render() {
|
|
192
|
-
return (h(
|
|
192
|
+
return (h("p-dropdown", { key: '702af705805cf225b1b7eb9506b6374b3f90eaa2', strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: '288726eb7a4aec32ede0bb2a53eb75e98b035ca2', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, loading: this.loading, helper: this.helper, required: asBoolean(this.required), error: this.error, disabled: asBoolean(this.disabled), focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '14386864e58de98d9de4c56977a6df2ba7d9dbbd', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself
|
|
193
193
|
,
|
|
194
|
-
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), h("div", { key: '
|
|
194
|
+
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), h("div", { key: 'dbbd17771238ab3d77972088703a11bab0341590', slot: 'items' }, h("p-calendar", { key: '71dc313070bf6c6dd63b693bce0dec01e84ae836', 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 }))));
|
|
195
195
|
}
|
|
196
196
|
documentClickHandler({ target }) {
|
|
197
197
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datepicker.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/datepicker/datepicker.component.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Placement, Strategy } from '@floating-ui/dom';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport {\n format,\n isAfter,\n isBefore,\n isSameDay,\n isValid,\n isWeekend,\n parse,\n startOfDay,\n startOfMonth,\n startOfYear,\n} from 'date-fns';\nimport { childOf, isMobileBrowser } from '../../../utils';\nimport { asBoolean } from '../../../utils/as-boolean';\n\n@Component({\n\ttag: 'p-datepicker',\n\tstyleUrl: 'datepicker.component.css',\n\tshadow: false,\n\tformAssociated: true\n})\nexport class Datepicker {\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The current value\n\t */\n\t@Prop() value: Date | string | null | undefined;\n\n\t/**\n\t * Wethter to automatically preselect today\n\t */\n\t@Prop() preselectToday: boolean = false;\n\n\t/**\n\t * Enable native picker for mobile devices\n\t */\n\t@Prop() enableNativePicker: boolean = true;\n\n\t/**\n\t * Disabled dates\n\t */\n\t@Prop() disabledDates?: Array<Date | string> | string;\n\n\t/**\n\t * Min date\n\t */\n\t@Prop() minDate?: Date | string;\n\n\t/**\n\t * Max date\n\t */\n\t@Prop() maxDate?: Date | string;\n\n\t/**\n\t * Wether to disable the weekends\n\t */\n\t@Prop() disableWeekends: boolean = false;\n\n\t/**\n\t * The mode of the datepicker\n\t */\n\t@Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\t/**\n\t * The display & parse format to use\n\t */\n\t@Prop() format: string = 'dd-MM-yyyy';\n\n\t/**\n\t * Hides the icon when filled\n\t */\n\t@Prop() hideIconWhenFilled: boolean = false;\n\n\t/**\n\t * The size of the input group used by the datepicker\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The prefix of the input group used by the datepicker\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The label of the input group used by the datepicker\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * Wether the field is loading\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The helper of the input group used by the datepicker\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;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * Wether the input group is disabled used by the datepicker\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * The placement of the dropdown\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _showDropdown: any = false;\n\t@State() private _value: Date;\n\t@State() private _minDate: Date;\n\t@State() private _maxDate: Date;\n\t@State() private _disabledDates: Date[] = [];\n\t@State() private _isMobileBrowser: boolean = false;\n\n\t@AttachInternals() _internals: ElementInternals;\n\n\tprivate _onInputTimeout: NodeJS.Timeout;\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\tprivate _dateInputRef: HTMLInputElement;\n\n\tprivate _defaultFormats = {\n\t\tyear: 'yyyy',\n\t\tmonth: 'LLLL, yyyy',\n\t\tday: 'dd-MM-yyyy',\n\t};\n\n\t@Watch('value')\n\tprotected parseValue(value: string | Date) {\n\t\tif (!value && this.preselectToday) {\n\t\t\tvalue = new Date();\n\t\t}\n\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = new Date(value);\n\t\t}\n\n\t\tthis._setValue(value);\n\t}\n\n\t@Watch('minDate')\n\tprotected parseMinDate(minDate: string | Date) {\n\t\tif (typeof minDate === 'string') {\n\t\t\tminDate = new Date(minDate);\n\t\t}\n\n\t\tif (!isValid(minDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._minDate = minDate;\n\n\t\tif (isBefore(this._value, this._minDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('maxDate')\n\tprotected parseMaxDate(maxDate: string | Date) {\n\t\tif (typeof maxDate === 'string') {\n\t\t\tmaxDate = new Date(maxDate);\n\t\t}\n\n\t\tif (!isValid(maxDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._maxDate = maxDate;\n\n\t\tif (isAfter(this._value, this._maxDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('disabledDates')\n\tprotected parseDisabledDates(disabledDates: Array<string | Date> | string) {\n\t\tif (typeof disabledDates === 'string') {\n\t\t\tdisabledDates = JSON.parse(disabledDates);\n\t\t}\n\n\t\tif (!disabledDates || !Array.isArray(disabledDates)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// normalize all to date\n\t\tthis._disabledDates = disabledDates\n\t\t\t.map(date => {\n\t\t\t\tif (typeof date === 'string') {\n\t\t\t\t\treturn new Date(date);\n\t\t\t\t}\n\n\t\t\t\treturn date;\n\t\t\t})\n\t\t\t.filter(date => isValid(date));\n\n\t\tif (this._isDisabledDay(this._value)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\tformResetCallback() {\n\t\tthis._setValue(null);\n\t}\n\n\tformDisabledCallback(disabled: boolean) {\n\t\tif(!this._internals.form) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.disabled = disabled;\n\t}\n\n\tcomponentWillLoad() {\n\t\tif (this.disabledDates) {\n\t\t\tthis.parseDisabledDates(this.disabledDates);\n\t\t}\n\n\t\tif (this.minDate) {\n\t\t\tthis.parseMinDate(this.minDate);\n\t\t}\n\n\t\tif (this.maxDate) {\n\t\t\tthis.parseMaxDate(this.maxDate);\n\t\t}\n\n\t\tif (this.mode !== 'day' && this.format === this._defaultFormats['day']) {\n\t\t\tthis.format = this._defaultFormats[this.mode];\n\t\t}\n\n\t\tthis._isMobileBrowser = isMobileBrowser();\n\n\t\tthis.parseValue(this.value);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-datepicker'>\n\t\t\t\t<p-dropdown\n\t\t\t\t\tstrategy={this.strategy}\n\t\t\t\t\tplacement={this.placement}\n\t\t\t\t\tdisableTriggerClick={true}\n\t\t\t\t\tapplyMaxWidth={false}\n\t\t\t\t\tapplyFullWidth={false}\n\t\t\t\t\tinsideClick={true}\n\t\t\t\t\tshow={this._showDropdown}\n\t\t\t\t>\n\t\t\t\t\t<p-field\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\tthis.hideIconWhenFilled && !!this._value ? null : 'calendar-multi'\n\t\t\t\t\t\t}\n\t\t\t\t\t\ticonPosition='start'\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\tprefix={this.prefix}\n\t\t\t\t\t\tlabel={this.label}\n\t\t\t\t\t\tloading={this.loading}\n\t\t\t\t\t\thelper={this.helper}\n\t\t\t\t\t\trequired={asBoolean(this.required)}\n\t\t\t\t\t\terror={this.error}\n\t\t\t\t\t\tdisabled={asBoolean(this.disabled)}\n\t\t\t\t\t\tfocused={this._showDropdown}\n\t\t\t\t\t\tvalue={this._getFormattedDate()}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tonFocus={() => this._onFocus()}\n\t\t\t\t\t\tonBlur={() => this._onBlur()}\n\t\t\t\t\t\tonValueChange={ev => this._onValueChange(ev.detail)}\n\t\t\t\t\t\tonInputRefChange={ev => (this._inputRef = ev.detail)}\n\t\t\t\t\t></p-field>\n\n\t\t\t\t\t{this.enableNativePicker && this._isMobileBrowser && (\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t\ttype={this.mode === 'day' ? 'date' : 'month'}\n\t\t\t\t\t\t\tclass='h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself\n\t\t\t\t\t\t\tonInput={ev => this._onNativeInput(ev)}\n\t\t\t\t\t\t\tref={ref => (this._dateInputRef = ref)}\n\t\t\t\t\t\t\tvalue={this._value && format(this._value, 'yyyy-MM-dd')}\n\t\t\t\t\t\t\tmin={this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd')}\n\t\t\t\t\t\t\tmax={this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd')}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\t<div slot='items'>\n\t\t\t\t\t\t<p-calendar\n\t\t\t\t\t\t\tvariant='embedded'\n\t\t\t\t\t\t\tvalue={this._value}\n\t\t\t\t\t\t\tonValueChange={({ detail }) => (this.value = detail)}\n\t\t\t\t\t\t\tpreselectToday={this.preselectToday}\n\t\t\t\t\t\t\tdisabledDates={this.disabledDates}\n\t\t\t\t\t\t\tminDate={this.minDate}\n\t\t\t\t\t\t\tmaxDate={this.maxDate}\n\t\t\t\t\t\t\tdisableWeekends={this.disableWeekends}\n\t\t\t\t\t\t\tmode={this.mode}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</p-dropdown>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler({ target }) {\n\t\tif (!this._showDropdown || childOf(target, this._el)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = false;\n\t}\n\n\tprivate _onFocus() {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\tthis._dateInputRef.showPicker();\n\t\t\tthis._inputRef.blur();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = true;\n\t}\n\n\tprivate _onBlur() {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst target = this._inputRef;\n\n\t\tif (target.value === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst value = parse(target.value, this.format, new Date());\n\n\t\tif (value === this._value) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value) || this._isDisabledDay(value)) {\n\t\t\ttarget.value = this._getFormattedDate();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setValue(value, false);\n\t}\n\n\tprivate _onValueChange(value: string) {\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tconst parsedValue = parse(value, this.format, new Date());\n\n\t\t\tif (!isValid(parsedValue) || format(parsedValue, this.format) !== value) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._setValue(parsedValue, false);\n\t\t}, 300);\n\t}\n\n\tprivate _onNativeInput(ev) {\n\t\tif (!ev.target) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tthis._setValue(\n\t\t\t\tev.target.value === '' ? null : new Date(ev.target.value),\n\t\t\t\tfalse\n\t\t\t);\n\t\t});\n\t}\n\n\tprivate _setValue(value: Date | null, hideDropdown = true) {\n\t\tif (value === null) {\n\t\t\tthis._value = null;\n\t\t\tthis.valueChange.emit(null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._isDisabledDay(value)) {\n\t\t\tif (!!this._dateInputRef?.value) {\n\t\t\t\tthis._dateInputRef.value = this._value\n\t\t\t\t\t? format(this._value, 'yyyy-MM-dd')\n\t\t\t\t\t: null;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvalue =\n\t\t\tthis.mode === 'day'\n\t\t\t\t? startOfDay(value)\n\t\t\t\t: this.mode === 'month'\n\t\t\t\t? startOfMonth(value)\n\t\t\t\t: startOfYear(value);\n\t\tconst isSameValue = isSameDay(value, this._value);\n\n\t\tif (isSameValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (hideDropdown) {\n\t\t\tthis._showDropdown = false;\n\t\t}\n\n\t\tthis._value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _isDisabledDay(day: Date) {\n\t\treturn (\n\t\t\t(this.disableWeekends && isWeekend(day)) ||\n\t\t\t(isBefore(day, this._minDate) && !isSameDay(day, this._minDate)) ||\n\t\t\t(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\tthis._disabledDates.findIndex(date => isSameDay(date, day)) >= 0\n\t\t);\n\t}\n\n\tprivate _getFormattedDate() {\n\t\tif (!this._value) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn format(this._value, this.format);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"datepicker.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/datepicker/datepicker.component.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACR,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,MAAM,EACN,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAO,EACP,SAAS,EACT,KAAK,EACL,UAAU,EACV,YAAY,EACZ,WAAW,GACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Placement, Strategy } from '@floating-ui/dom';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Listen,\n Prop,\n State,\n Watch\n} from '@stencil/core';\nimport {\n format,\n isAfter,\n isBefore,\n isSameDay,\n isValid,\n isWeekend,\n parse,\n startOfDay,\n startOfMonth,\n startOfYear,\n} from 'date-fns';\nimport { childOf, isMobileBrowser } from '../../../utils';\nimport { asBoolean } from '../../../utils/as-boolean';\n\n@Component({\n\ttag: 'p-datepicker',\n\tstyleUrl: 'datepicker.component.css',\n\tshadow: false,\n\tformAssociated: true\n})\nexport class Datepicker {\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The current value\n\t */\n\t@Prop() value: Date | string | null | undefined;\n\n\t/**\n\t * Wethter to automatically preselect today\n\t */\n\t@Prop() preselectToday: boolean = false;\n\n\t/**\n\t * Enable native picker for mobile devices\n\t */\n\t@Prop() enableNativePicker: boolean = true;\n\n\t/**\n\t * Disabled dates\n\t */\n\t@Prop() disabledDates?: Array<Date | string> | string;\n\n\t/**\n\t * Min date\n\t */\n\t@Prop() minDate?: Date | string;\n\n\t/**\n\t * Max date\n\t */\n\t@Prop() maxDate?: Date | string;\n\n\t/**\n\t * Wether to disable the weekends\n\t */\n\t@Prop() disableWeekends: boolean = false;\n\n\t/**\n\t * The mode of the datepicker\n\t */\n\t@Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\t/**\n\t * The display & parse format to use\n\t */\n\t@Prop() format: string = 'dd-MM-yyyy';\n\n\t/**\n\t * Hides the icon when filled\n\t */\n\t@Prop() hideIconWhenFilled: boolean = false;\n\n\t/**\n\t * The size of the input group used by the datepicker\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The prefix of the input group used by the datepicker\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The label of the input group used by the datepicker\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * Wether the field is loading\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The helper of the input group used by the datepicker\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;\n\n\t/**\n\t * The helper of the input group used by the datepicker\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * Wether the input group is disabled used by the datepicker\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * The placement of the dropdown\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _showDropdown: any = false;\n\t@State() private _value: Date;\n\t@State() private _minDate: Date;\n\t@State() private _maxDate: Date;\n\t@State() private _disabledDates: Date[] = [];\n\t@State() private _isMobileBrowser: boolean = false;\n\n\t@AttachInternals() _internals: ElementInternals;\n\n\tprivate _onInputTimeout: NodeJS.Timeout;\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\tprivate _dateInputRef: HTMLInputElement;\n\n\tprivate _defaultFormats = {\n\t\tyear: 'yyyy',\n\t\tmonth: 'LLLL, yyyy',\n\t\tday: 'dd-MM-yyyy',\n\t};\n\n\t@Watch('value')\n\tprotected parseValue(value: string | Date) {\n\t\tif (!value && this.preselectToday) {\n\t\t\tvalue = new Date();\n\t\t}\n\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = new Date(value);\n\t\t}\n\n\t\tthis._setValue(value);\n\t}\n\n\t@Watch('minDate')\n\tprotected parseMinDate(minDate: string | Date) {\n\t\tif (typeof minDate === 'string') {\n\t\t\tminDate = new Date(minDate);\n\t\t}\n\n\t\tif (!isValid(minDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._minDate = minDate;\n\n\t\tif (isBefore(this._value, this._minDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('maxDate')\n\tprotected parseMaxDate(maxDate: string | Date) {\n\t\tif (typeof maxDate === 'string') {\n\t\t\tmaxDate = new Date(maxDate);\n\t\t}\n\n\t\tif (!isValid(maxDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._maxDate = maxDate;\n\n\t\tif (isAfter(this._value, this._maxDate)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\t@Watch('disabledDates')\n\tprotected parseDisabledDates(disabledDates: Array<string | Date> | string) {\n\t\tif (typeof disabledDates === 'string') {\n\t\t\tdisabledDates = JSON.parse(disabledDates);\n\t\t}\n\n\t\tif (!disabledDates || !Array.isArray(disabledDates)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// normalize all to date\n\t\tthis._disabledDates = disabledDates\n\t\t\t.map(date => {\n\t\t\t\tif (typeof date === 'string') {\n\t\t\t\t\treturn new Date(date);\n\t\t\t\t}\n\n\t\t\t\treturn date;\n\t\t\t})\n\t\t\t.filter(date => isValid(date));\n\n\t\tif (this._isDisabledDay(this._value)) {\n\t\t\tthis._setValue(null);\n\t\t}\n\t}\n\n\tformResetCallback() {\n\t\tthis._setValue(null);\n\t}\n\n\tformDisabledCallback(disabled: boolean) {\n\t\tif(!this._internals.form) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.disabled = disabled;\n\t}\n\n\tcomponentWillLoad() {\n\t\tif (this.disabledDates) {\n\t\t\tthis.parseDisabledDates(this.disabledDates);\n\t\t}\n\n\t\tif (this.minDate) {\n\t\t\tthis.parseMinDate(this.minDate);\n\t\t}\n\n\t\tif (this.maxDate) {\n\t\t\tthis.parseMaxDate(this.maxDate);\n\t\t}\n\n\t\tif (this.mode !== 'day' && this.format === this._defaultFormats['day']) {\n\t\t\tthis.format = this._defaultFormats[this.mode];\n\t\t}\n\n\t\tthis._isMobileBrowser = isMobileBrowser();\n\n\t\tthis.parseValue(this.value);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<p-dropdown\n\t\t\t\tstrategy={this.strategy}\n\t\t\t\tplacement={this.placement}\n\t\t\t\tdisableTriggerClick={true}\n\t\t\t\tapplyMaxWidth={false}\n\t\t\t\tapplyFullWidth={false}\n\t\t\t\tinsideClick={true}\n\t\t\t\tshow={this._showDropdown}\n\t\t\t>\n\t\t\t\t<p-field\n\t\t\t\t\tslot='trigger'\n\t\t\t\t\ticon={\n\t\t\t\t\t\tthis.hideIconWhenFilled && !!this._value ? null : 'calendar-multi'\n\t\t\t\t\t}\n\t\t\t\t\ticonPosition='start'\n\t\t\t\t\tsize={this.size}\n\t\t\t\t\tprefix={this.prefix}\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\tloading={this.loading}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\trequired={asBoolean(this.required)}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\tdisabled={asBoolean(this.disabled)}\n\t\t\t\t\tfocused={this._showDropdown}\n\t\t\t\t\tvalue={this._getFormattedDate()}\n\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\tonFocus={() => this._onFocus()}\n\t\t\t\t\tonBlur={() => this._onBlur()}\n\t\t\t\t\tonValueChange={ev => this._onValueChange(ev.detail)}\n\t\t\t\t\tonInputRefChange={ev => (this._inputRef = ev.detail)}\n\t\t\t\t></p-field>\n\n\t\t\t\t{this.enableNativePicker && this._isMobileBrowser && (\n\t\t\t\t\t<input\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\ttype={this.mode === 'day' ? 'date' : 'month'}\n\t\t\t\t\t\tclass='h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself\n\t\t\t\t\t\tonInput={ev => this._onNativeInput(ev)}\n\t\t\t\t\t\tref={ref => (this._dateInputRef = ref)}\n\t\t\t\t\t\tvalue={this._value && format(this._value, 'yyyy-MM-dd')}\n\t\t\t\t\t\tmin={this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd')}\n\t\t\t\t\t\tmax={this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd')}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t<div slot='items'>\n\t\t\t\t\t<p-calendar\n\t\t\t\t\t\tvariant='embedded'\n\t\t\t\t\t\tvalue={this._value}\n\t\t\t\t\t\tonValueChange={({ detail }) => (this.value = detail)}\n\t\t\t\t\t\tpreselectToday={this.preselectToday}\n\t\t\t\t\t\tdisabledDates={this.disabledDates}\n\t\t\t\t\t\tminDate={this.minDate}\n\t\t\t\t\t\tmaxDate={this.maxDate}\n\t\t\t\t\t\tdisableWeekends={this.disableWeekends}\n\t\t\t\t\t\tmode={this.mode}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</p-dropdown>\n\t\t);\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler({ target }) {\n\t\tif (!this._showDropdown || childOf(target, this._el)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = false;\n\t}\n\n\tprivate _onFocus() {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\tthis._dateInputRef.showPicker();\n\t\t\tthis._inputRef.blur();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._showDropdown = true;\n\t}\n\n\tprivate _onBlur() {\n\t\tif (this._isMobileBrowser && this._dateInputRef) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst target = this._inputRef;\n\n\t\tif (target.value === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst value = parse(target.value, this.format, new Date());\n\n\t\tif (value === this._value) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value) || this._isDisabledDay(value)) {\n\t\t\ttarget.value = this._getFormattedDate();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setValue(value, false);\n\t}\n\n\tprivate _onValueChange(value: string) {\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tconst parsedValue = parse(value, this.format, new Date());\n\n\t\t\tif (!isValid(parsedValue) || format(parsedValue, this.format) !== value) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._setValue(parsedValue, false);\n\t\t}, 300);\n\t}\n\n\tprivate _onNativeInput(ev) {\n\t\tif (!ev.target) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._onInputTimeout) {\n\t\t\tclearTimeout(this._onInputTimeout);\n\t\t\tthis._onInputTimeout = null;\n\t\t}\n\n\t\tthis._onInputTimeout = setTimeout(() => {\n\t\t\tthis._setValue(\n\t\t\t\tev.target.value === '' ? null : new Date(ev.target.value),\n\t\t\t\tfalse\n\t\t\t);\n\t\t});\n\t}\n\n\tprivate _setValue(value: Date | null, hideDropdown = true) {\n\t\tif (value === null) {\n\t\t\tthis._value = null;\n\t\t\tthis.valueChange.emit(null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._isDisabledDay(value)) {\n\t\t\tif (!!this._dateInputRef?.value) {\n\t\t\t\tthis._dateInputRef.value = this._value\n\t\t\t\t\t? format(this._value, 'yyyy-MM-dd')\n\t\t\t\t\t: null;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvalue =\n\t\t\tthis.mode === 'day'\n\t\t\t\t? startOfDay(value)\n\t\t\t\t: this.mode === 'month'\n\t\t\t\t? startOfMonth(value)\n\t\t\t\t: startOfYear(value);\n\t\tconst isSameValue = isSameDay(value, this._value);\n\n\t\tif (isSameValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (hideDropdown) {\n\t\t\tthis._showDropdown = false;\n\t\t}\n\n\t\tthis._value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _isDisabledDay(day: Date) {\n\t\treturn (\n\t\t\t(this.disableWeekends && isWeekend(day)) ||\n\t\t\t(isBefore(day, this._minDate) && !isSameDay(day, this._minDate)) ||\n\t\t\t(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\tthis._disabledDates.findIndex(date => isSameDay(date, day)) >= 0\n\t\t);\n\t}\n\n\tprivate _getFormattedDate() {\n\t\tif (!this._value) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn format(this._value, this.format);\n\t}\n}\n"]}
|
|
@@ -133,14 +133,14 @@ export class Dropdown {
|
|
|
133
133
|
'data-strategy': this.strategy,
|
|
134
134
|
};
|
|
135
135
|
let dropdownContainer;
|
|
136
|
-
const itemsSlot = h("slot", { key: '
|
|
136
|
+
const itemsSlot = h("slot", { key: '2231e6d8589ef6c62a6c108d9043ab1740729b91', name: 'items' });
|
|
137
137
|
if (this.usePortal) {
|
|
138
|
-
dropdownContainer = (h("p-portal", { key: '
|
|
138
|
+
dropdownContainer = (h("p-portal", { key: 'e7c67d48560c83c6910c530ea420440f755eac4d', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: '6051774d7a9cf2d5348e23fba190a992808f7f9a', variant: this.variant, maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, itemsSlot)));
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
141
|
-
dropdownContainer = (h("p-dropdown-menu-container", { key: '
|
|
141
|
+
dropdownContainer = (h("p-dropdown-menu-container", { key: '3a17524559a9245d424426ecca54e22640ce0326', variant: this.variant, maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, itemsSlot));
|
|
142
142
|
}
|
|
143
|
-
return (h(Host, { key: '
|
|
143
|
+
return (h(Host, { key: 'e4ff6cda426ec33ec9c3e7fddecf48205512d50a', class: 'relative' }, h("div", { key: '75f631d259eb3372443715c2008676373eaf6df9', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: '0782dd7cab30da7e62dcc82544a5af7ba2d33bc4', name: 'trigger' })), h("div", { key: '75a402a6b368fa284477c2d348f1f6e1b93e5ebf', class: 'relative w-full' }, dropdownContainer)));
|
|
144
144
|
}
|
|
145
145
|
_checkButtons(active = false) {
|
|
146
146
|
if (!this.applyChevron) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/dropdown/dropdown.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,eAAe,EACf,IAAI,EACJ,MAAM,EAEN,KAAK,GAEL,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,sBAAsB,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;IACzD,QAAQ,EAAE;QACT,QAAQ,EAAE;YACT,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACd;QACD,SAAS,EAAE;YACV,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,QAAQ;SACd;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,mBAAmB;SACzB;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,QAAQ;SACf;KACD;CACD,CAAC,CAAC;AAOH,MAAM,OAAO,QAAQ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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { childOfComposed } from '../../../utils/child-of';\n\nconst dropdownContainerClass = cva(['z-dropdown hidden'], {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tabsolute: 'absolute',\n\t\t\tfixed: 'fixed',\n\t\t},\n\t\tfullWidth: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'w-full',\n\t\t},\n\t\tmaxWidth: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'max-w-[13.875rem]',\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tfullWidth: false,\n\t\t\tmaxWidth: true,\n\t\t\tclass: 'w-auto',\n\t\t},\n\t],\n});\n\n@Component({\n\ttag: 'p-dropdown',\n\tstyleUrl: 'dropdown.component.css',\n\tshadow: true,\n})\nexport class Dropdown {\n\t/**\n\t * The variant of the dropdown\n\t */\n\t@Prop() variant: 'default' | 'dark-teal' = 'default';\n\n\t/**\n\t * The content of the dropdown menu\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The offset of the dropdown menu\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether to show the dropdown menu\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to use a portal for the dropdown container\n\t */\n\t@Prop() usePortal: boolean = false;\n\n\t/**\n\t * Wether to automatically calculate the width of the menu based on the trigger\n\t */\n\t@Prop() calculateWidth: boolean = false;\n\n\t/**\n\t * Wether to apply the max width\n\t */\n\t@Prop() applyMaxWidth: boolean = true;\n\n\t/**\n\t * Wether to apply the full width\n\t */\n\t@Prop() applyFullWidth: boolean = true;\n\n\t/**\n\t * Wether to allow overflow in the container\n\t */\n\t@Prop() allowOverflow: boolean = false;\n\n\t/**\n\t * Wether the dropdown container should be scrollable when the threshold is met.\n\t */\n\t@Prop() scrollable: boolean | 'default' | 'large' = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() insideClick: boolean = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() disableTriggerClick: boolean = false;\n\n\t/**\n\t * Wether to apply chevron automatically\n\t */\n\t@Prop() applyChevron: boolean = true;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Chevron direction\n\t */\n\t@Prop() chevronDirection: 'up' | 'down';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\tprivate _loaded = false;\n\tprivate _trigger: HTMLElement;\n\tprivate _menu: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._checkButtons();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\tthis._menu.remove();\n\t}\n\n\tcomponentDidRender() {\n\t\tthis._checkButtons();\n\t\tthis._checkItems();\n\t}\n\n\trender() {\n\t\tconst dropdownContainerProps = {\n\t\t\tclass: dropdownContainerClass({\n\t\t\t\tstrategy: this.strategy,\n\t\t\t\tmaxWidth: !this.calculateWidth && this.applyMaxWidth,\n\t\t\t\tfullWidth: this.applyFullWidth && !this.applyMaxWidth,\n\t\t\t}),\n\t\t\tref: el => this._load(el),\n\t\t\tonClick: () => this._containerClickHandler(),\n\t\t\trole: 'popover',\n\t\t\t'data-placement': this.placement,\n\t\t\t'data-strategy': this.strategy,\n\t\t};\n\n\t\tlet dropdownContainer: HTMLElement;\n\t\tconst itemsSlot = <slot name='items' />;\n\n\t\tif (this.usePortal) {\n\t\t\tdropdownContainer = (\n\t\t\t\t<p-portal {...dropdownContainerProps}>\n\t\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t\t>\n\t\t\t\t\t\t{itemsSlot}\n\t\t\t\t\t</p-dropdown-menu-container>\n\t\t\t\t</p-portal>\n\t\t\t);\n\t\t} else {\n\t\t\tdropdownContainer = (\n\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t\t{...dropdownContainerProps}\n\t\t\t\t>\n\t\t\t\t\t{itemsSlot}\n\t\t\t\t</p-dropdown-menu-container>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-dropdown relative'>\n\t\t\t\t<div\n\t\t\t\t\tclass='trigger'\n\t\t\t\t\tref={ref => (this._trigger = ref)}\n\t\t\t\t\tonClick={() => this._triggerClickHandler()}\n\t\t\t\t>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t</div>\n\t\t\t\t<div class='relative w-full'>{dropdownContainer}</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _checkButtons(active: boolean = false) {\n\t\tif (!this.applyChevron) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst buttons = this._el.querySelectorAll<HTMLPButtonElement>(\n\t\t\t'p-button[slot=\"trigger\"]'\n\t\t);\n\n\t\tfor (let button of [...buttons]) {\n\t\t\tbutton.disabled = this.disableTriggerClick;\n\t\t\tbutton.active = active;\n\n\t\t\tif (button.iconOnly) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tbutton.chevronPosition = this.chevronPosition;\n\t\t\tbutton.chevron = this.chevronDirection\n\t\t\t\t? this.chevronDirection\n\t\t\t\t: this.placement.indexOf('top') >= 0\n\t\t\t\t? 'up'\n\t\t\t\t: 'down';\n\t\t}\n\t}\n\n\tprivate _checkItems() {\n\t\tconst items = this._el.querySelectorAll<HTMLPDropdownMenuItemElement>(\n\t\t\t'p-dropdown-menu-item'\n\t\t);\n\n\t\tfor (let item of [...items]) {\n\t\t\titem.variant = this.variant;\n\t\t}\n\t}\n\n\t@Watch('show')\n\tprotected onShowChange(show) {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!show) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler(event) {\n\t\tif (!this._menu.hasAttribute('data-show') || childOfComposed(event, this._menu)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\tprivate _containerClickHandler() {\n\t\tif (this.insideClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t}\n\t}\n\n\tprivate _triggerClickHandler() {\n\t\tif (this.disableTriggerClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._menu = popover;\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make the popover visible\n\t\tif (this.calculateWidth) {\n\t\t\tthis._menu.style.width = `${this._trigger.clientWidth}px`;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._menu, () => this._update());\n\n\t\tthis._menu.setAttribute('data-show', '');\n\t\tthis._menu.classList.remove('hidden');\n\t\tthis._menu.classList.add('block');\n\n\t\tthis.isOpen.emit(true);\n\t\tthis._checkButtons(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._menu.removeAttribute('data-show');\n\t\tthis._menu.classList.remove('block');\n\t\tthis._menu.classList.add('hidden');\n\n\t\tthis.isOpen.emit(false);\n\t\tthis._checkButtons(false);\n\t}\n\n\tprivate _update() {\n\t\tif (!this._menu) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._menu, {\n\t\t\tplacement: this.placement,\n\t\t\tstrategy: this.strategy,\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._menu.dataset.placement = placement;\n\t\t\tObject.assign(this._menu.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"dropdown.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/dropdown/dropdown.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,eAAe,EACf,IAAI,EACJ,MAAM,EAEN,KAAK,GAEL,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,sBAAsB,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;IACzD,QAAQ,EAAE;QACT,QAAQ,EAAE;YACT,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACd;QACD,SAAS,EAAE;YACV,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,QAAQ;SACd;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,mBAAmB;SACzB;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,QAAQ;SACf;KACD;CACD,CAAC,CAAC;AAOH,MAAM,OAAO,QAAQ;IACpB;;OAEG;IACK,OAAO,GAA4B,SAAS,CAAC;IAErD;;OAEG;IACsB,SAAS,GAAc,cAAc,CAAC;IAE/D;;OAEG;IACK,MAAM,GAAW,CAAC,CAAC;IAE3B;;OAEG;IACK,QAAQ,GAAa,UAAU,CAAC;IAExC;;OAEG;IACK,IAAI,GAAY,KAAK,CAAC;IAE9B;;OAEG;IACK,SAAS,GAAY,KAAK,CAAC;IAEnC;;OAEG;IACK,cAAc,GAAY,KAAK,CAAC;IAExC;;OAEG;IACK,a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ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { childOfComposed } from '../../../utils/child-of';\n\nconst dropdownContainerClass = cva(['z-dropdown hidden'], {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tabsolute: 'absolute',\n\t\t\tfixed: 'fixed',\n\t\t},\n\t\tfullWidth: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'w-full',\n\t\t},\n\t\tmaxWidth: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'max-w-[13.875rem]',\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tfullWidth: false,\n\t\t\tmaxWidth: true,\n\t\t\tclass: 'w-auto',\n\t\t},\n\t],\n});\n\n@Component({\n\ttag: 'p-dropdown',\n\tstyleUrl: 'dropdown.component.css',\n\tshadow: true,\n})\nexport class Dropdown {\n\t/**\n\t * The variant of the dropdown\n\t */\n\t@Prop() variant: 'default' | 'dark-teal' = 'default';\n\n\t/**\n\t * The content of the dropdown menu\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The offset of the dropdown menu\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether to show the dropdown menu\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to use a portal for the dropdown container\n\t */\n\t@Prop() usePortal: boolean = false;\n\n\t/**\n\t * Wether to automatically calculate the width of the menu based on the trigger\n\t */\n\t@Prop() calculateWidth: boolean = false;\n\n\t/**\n\t * Wether to apply the max width\n\t */\n\t@Prop() applyMaxWidth: boolean = true;\n\n\t/**\n\t * Wether to apply the full width\n\t */\n\t@Prop() applyFullWidth: boolean = true;\n\n\t/**\n\t * Wether to allow overflow in the container\n\t */\n\t@Prop() allowOverflow: boolean = false;\n\n\t/**\n\t * Wether the dropdown container should be scrollable when the threshold is met.\n\t */\n\t@Prop() scrollable: boolean | 'default' | 'large' = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() insideClick: boolean = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() disableTriggerClick: boolean = false;\n\n\t/**\n\t * Wether to apply chevron automatically\n\t */\n\t@Prop() applyChevron: boolean = true;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Chevron direction\n\t */\n\t@Prop() chevronDirection: 'up' | 'down';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\tprivate _loaded = false;\n\tprivate _trigger: HTMLElement;\n\tprivate _menu: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._checkButtons();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\tthis._menu.remove();\n\t}\n\n\tcomponentDidRender() {\n\t\tthis._checkButtons();\n\t\tthis._checkItems();\n\t}\n\n\trender() {\n\t\tconst dropdownContainerProps = {\n\t\t\tclass: dropdownContainerClass({\n\t\t\t\tstrategy: this.strategy,\n\t\t\t\tmaxWidth: !this.calculateWidth && this.applyMaxWidth,\n\t\t\t\tfullWidth: this.applyFullWidth && !this.applyMaxWidth,\n\t\t\t}),\n\t\t\tref: el => this._load(el),\n\t\t\tonClick: () => this._containerClickHandler(),\n\t\t\trole: 'popover',\n\t\t\t'data-placement': this.placement,\n\t\t\t'data-strategy': this.strategy,\n\t\t};\n\n\t\tlet dropdownContainer: HTMLElement;\n\t\tconst itemsSlot = <slot name='items' />;\n\n\t\tif (this.usePortal) {\n\t\t\tdropdownContainer = (\n\t\t\t\t<p-portal {...dropdownContainerProps}>\n\t\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t\t>\n\t\t\t\t\t\t{itemsSlot}\n\t\t\t\t\t</p-dropdown-menu-container>\n\t\t\t\t</p-portal>\n\t\t\t);\n\t\t} else {\n\t\t\tdropdownContainer = (\n\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t\t{...dropdownContainerProps}\n\t\t\t\t>\n\t\t\t\t\t{itemsSlot}\n\t\t\t\t</p-dropdown-menu-container>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='relative'>\n\t\t\t\t<div\n\t\t\t\t\tclass='trigger'\n\t\t\t\t\tref={ref => (this._trigger = ref)}\n\t\t\t\t\tonClick={() => this._triggerClickHandler()}\n\t\t\t\t>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t</div>\n\t\t\t\t<div class='relative w-full'>{dropdownContainer}</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _checkButtons(active: boolean = false) {\n\t\tif (!this.applyChevron) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst buttons = this._el.querySelectorAll<HTMLPButtonElement>(\n\t\t\t'p-button[slot=\"trigger\"]'\n\t\t);\n\n\t\tfor (let button of [...buttons]) {\n\t\t\tbutton.disabled = this.disableTriggerClick;\n\t\t\tbutton.active = active;\n\n\t\t\tif (button.iconOnly) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tbutton.chevronPosition = this.chevronPosition;\n\t\t\tbutton.chevron = this.chevronDirection\n\t\t\t\t? this.chevronDirection\n\t\t\t\t: this.placement.indexOf('top') >= 0\n\t\t\t\t? 'up'\n\t\t\t\t: 'down';\n\t\t}\n\t}\n\n\tprivate _checkItems() {\n\t\tconst items = this._el.querySelectorAll<HTMLPDropdownMenuItemElement>(\n\t\t\t'p-dropdown-menu-item'\n\t\t);\n\n\t\tfor (let item of [...items]) {\n\t\t\titem.variant = this.variant;\n\t\t}\n\t}\n\n\t@Watch('show')\n\tprotected onShowChange(show) {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!show) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler(event) {\n\t\tif (!this._menu.hasAttribute('data-show') || childOfComposed(event, this._menu)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\tprivate _containerClickHandler() {\n\t\tif (this.insideClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t}\n\t}\n\n\tprivate _triggerClickHandler() {\n\t\tif (this.disableTriggerClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._menu = popover;\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make the popover visible\n\t\tif (this.calculateWidth) {\n\t\t\tthis._menu.style.width = `${this._trigger.clientWidth}px`;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._menu, () => this._update());\n\n\t\tthis._menu.setAttribute('data-show', '');\n\t\tthis._menu.classList.remove('hidden');\n\t\tthis._menu.classList.add('block');\n\n\t\tthis.isOpen.emit(true);\n\t\tthis._checkButtons(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._menu.removeAttribute('data-show');\n\t\tthis._menu.classList.remove('block');\n\t\tthis._menu.classList.add('hidden');\n\n\t\tthis.isOpen.emit(false);\n\t\tthis._checkButtons(false);\n\t}\n\n\tprivate _update() {\n\t\tif (!this._menu) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._menu, {\n\t\t\tplacement: this.placement,\n\t\t\tstrategy: this.strategy,\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._menu.dataset.placement = placement;\n\t\t\tObject.assign(this._menu.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*{box-sizing:border-box}p-divider{--tw-content:""}.my-0{margin-bottom:0!important;margin-top:0!important}.mb-8{margin-bottom:2rem!important}.mt-4{margin-top:1rem!important}.flex{display:flex!important}.w-full{width:100%!important}.max-w-\[20rem\]{max-width:20rem!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.text-center{text-align:center!important}.font-ambit{font-family:Ambit,sans-serif!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-bold{font-weight:700!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/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-teal{--tw-text-opacity:1!important;color:rgb(8 136 121/var(--tw-text-opacity,1))!important}
|
|
1
|
+
*{box-sizing:border-box}p-divider{--tw-content:""}.static{position:static!important}.my-0{margin-bottom:0!important;margin-top:0!important}.mb-8{margin-bottom:2rem!important}.mt-4{margin-top:1rem!important}.flex{display:flex!important}.w-full{width:100%!important}.max-w-\[20rem\]{max-width:20rem!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.text-center{text-align:center!important}.font-ambit{font-family:Ambit,sans-serif!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-bold{font-weight:700!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/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-teal{--tw-text-opacity:1!important;color:rgb(8 136 121/var(--tw-text-opacity,1))!important}
|
|
@@ -54,11 +54,11 @@ export class EmptyState {
|
|
|
54
54
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
55
55
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
56
56
|
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
57
|
-
return (h("div", { key: '
|
|
57
|
+
return (h("div", { key: '3cabf463f134857beb1f960df8147c73f06dca6e', class: emptyState({
|
|
58
58
|
enableAction: asBoolean(this.enableAction, true),
|
|
59
59
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
60
60
|
? this.action.emit(ev)
|
|
61
|
-
: undefined }, this.illustration && (h("p-illustration", { key: '
|
|
61
|
+
: undefined }, this.illustration && (h("p-illustration", { key: 'f8e845bf6a87df689b617c1dca14dbe32457e37d', class: 'mb-8 text-teal', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: 'my-0 text-center font-ambit text-sm font-bold text-black-teal' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: 'my-0 text-center text-sm text-black-teal-300' }, this.content))), this.enableAction &&
|
|
62
62
|
(hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, loading: this.actionLoading, variant: this.actionVariant }, this.actionText)))));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "p-empty-state"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment, h } from "@stencil/core";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
2
3
|
import { formatTranslation, getLocaleComponentStrings, } from "../../../../utils";
|
|
3
4
|
import { asBoolean } from "../../../../utils/as-boolean";
|
|
4
|
-
import { cva } from "class-variance-authority";
|
|
5
5
|
const loader = cva(['rounded-lg w-full'], {
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
@@ -96,11 +96,11 @@ export class FieldContainer {
|
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
98
|
const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
|
|
99
|
-
let contentSlot = (h("slot", { key: '
|
|
99
|
+
let contentSlot = (h("slot", { key: 'bdbe235fbb6c90a1abe39de37b8a0276da402314', name: 'content', slot: 'trigger' }));
|
|
100
100
|
if (this.loading) {
|
|
101
|
-
contentSlot = (h("p-loader", { key: '
|
|
101
|
+
contentSlot = (h("p-loader", { key: 'd2d0ec77dbbd09572f332131fa2b181025616880', variant: 'ghost', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger' }));
|
|
102
102
|
}
|
|
103
|
-
return (h(
|
|
103
|
+
return (h("label", { key: '3a741982c3a3803e27ee6e88fbb0fc40969d8d3b', htmlFor: this.id, class: 'flex w-inherit flex-col gap-1' }, h("div", { key: 'fbcf6774ee7f7258d9c6cad9fd906d1865248bc5', class: 'flex items-end justify-between gap-1 empty:hidden' }, !!label?.length && (h("div", { key: '80c694ae509da5bae222118d5da5caf3369fbb88', class: 'text-xs font-medium text-black-teal-300', onClick: () => this.focus.emit() }, label)), (!asBoolean(this.required) || helper || hasHeaderSlot) && (h("div", { key: 'ac389cbe3c590ea7b67b7215e43d3bbf2daac892', class: 'flex items-center gap-1' }, !asBoolean(this.required) && this.variant === 'write' && (h("span", { key: '0728e2ca201600fa0d843f6d7f5849bb4044f6b4', class: 'text-xs font-medium text-black-teal-200' }, this.optionalTemplate())), (helper || hasHeaderSlot) && (h(Fragment, { key: 'e504a81368982005204b1782b329cd59f836699f' }, hasHeaderSlot && h("slot", { key: '904f15fbc33bcab64ddc9e9b4d587898da22182b', name: 'header' }), helper && (h("p-helper", { key: '9ce12c4b9c534397e90e8566a2ef07ab8781b5e8', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))))), h("p-tooltip", { key: 'd5b6353bf29739da57bfb42569e44bfb5e1b2d1f', class: this.variant === 'write' || this.loading ? 'w-full' : '', variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip), enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (h("slot", { key: '99e9c142a73ca1a5f09106cd8be77f0066b5c6a4', name: 'error', slot: 'content' })), contentSlot)));
|
|
104
104
|
}
|
|
105
105
|
async _setLocales() {
|
|
106
106
|
this._locales = await getLocaleComponentStrings(this._el);
|
package/dist/collection/components/molecules/field/container/field-container.component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-container.component.js","sourceRoot":"","sources":["../../../../../src/components/molecules/field/container/field-container.component.tsx"],"names":[],"mappings":"AAA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ation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils';\nimport { Placement } from '@floating-ui/dom';\nimport { asBoolean } from '../../../../utils/as-boolean';\nimport { cva } from 'class-variance-authority';\n\nconst loader = cva(['rounded-lg w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: null,\n\t\t\twrite: null,\n\t\t},\n\t\tsize: {\n\t\t\tbase: null,\n\t\t\tsm: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-5',\n\t\t},\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-4',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-8',\n\t\t},\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-6',\n\t\t},\n\t],\n});\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\t/**\n\t * The id for the label\n\t */\n\t@Prop() id: string;\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field container is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The size of the loader\n\t */\n\t@Prop() loadingSize: 'base' | 'sm' = 'base';\n\n\t/**\n\t * The variant of the field container\n\t */\n\t@Prop() variant: 'read' | 'write';\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string | HTMLSlotElement;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\tlet contentSlot = (\n\t\t\t<slot\n\t\t\t\tname='content'\n\t\t\t\tslot='trigger'\n\t\t\t/>\n\t\t);\n\n\t\tif (this.loading) {\n\t\t\tcontentSlot = (\n\t\t\t\t<p-loader\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclass={loader({ variant: this.variant, size: this.loadingSize })}\n\t\t\t\t\tslot='trigger'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-field-container'>\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={this.id}\n\t\t\t\t\tclass='flex w-inherit flex-col gap-1'\n\t\t\t\t>\n\t\t\t\t\t<div class='flex items-end justify-between gap-1 empty:hidden'>\n\t\t\t\t\t\t{!!label?.length && (\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{(!asBoolean(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{!asBoolean(this.required) && this.variant === 'write' && (\n\t\t\t\t\t\t\t\t\t<span class='text-xs font-medium text-black-teal-200'>\n\t\t\t\t\t\t\t\t\t\t{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\t\t\t\tclass={`flex ${hasHeaderSlot ? 'ml-2' : ''}`}\n\t\t\t\t\t\t\t\t\t\t\t\tplacement='top-end'\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\tclass={this.variant === 'write' || this.loading ? '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 && asBoolean(this.forceShowTooltip)}\n\t\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t\t>\n\t\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{contentSlot}\n\t\t\t\t\t</p-tooltip>\n\t\t\t\t</label>\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"]}
|
|
1
|
+
{"version":3,"file":"field-container.component.js","sourceRoot":"","sources":["../../../../../src/components/molecules/field/container/field-container.component.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,SAAS,EACT,OAAO,EACP,KAAK,EAEL,QAAQ,EACR,CAAC,EACD,MAAM,EACN,IAAI,EACJ,KAAK,EACR,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EACH,iBAAiB,EACjB,yBAAyB,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;IACzC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,IAAI,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AAI,CAAC,KAAK,CAAC;QAEhE,MAAM,yBAAyB,GAC9B,YAAY;YACZ,CAAC,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC;QAEzE,OAAO;YACN,aAAa;YACb,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,MAAM;YACN,KAAK;YACL,yBAAyB;SACzB,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Placement } from '@floating-ui/dom';\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n Fragment,\n h,\n Listen,\n Prop,\n State\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n formatTranslation,\n getLocaleComponentStrings,\n} from '../../../../utils';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nconst loader = cva(['rounded-lg w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: null,\n\t\t\twrite: null,\n\t\t},\n\t\tsize: {\n\t\t\tbase: null,\n\t\t\tsm: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-5',\n\t\t},\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-4',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-8',\n\t\t},\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-6',\n\t\t},\n\t],\n});\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\t/**\n\t * The id for the label\n\t */\n\t@Prop() id: string;\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field container is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The size of the loader\n\t */\n\t@Prop() loadingSize: 'base' | 'sm' = 'base';\n\n\t/**\n\t * The variant of the field container\n\t */\n\t@Prop() variant: 'read' | 'write';\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string | HTMLSlotElement;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\tlet contentSlot = (\n\t\t\t<slot\n\t\t\t\tname='content'\n\t\t\t\tslot='trigger'\n\t\t\t/>\n\t\t);\n\n\t\tif (this.loading) {\n\t\t\tcontentSlot = (\n\t\t\t\t<p-loader\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclass={loader({ variant: this.variant, size: this.loadingSize })}\n\t\t\t\t\tslot='trigger'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<label\n\t\t\t\thtmlFor={this.id}\n\t\t\t\tclass='flex w-inherit flex-col gap-1'\n\t\t\t>\n\t\t\t\t<div class='flex items-end justify-between gap-1 empty:hidden'>\n\t\t\t\t\t{!!label?.length && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass='text-xs font-medium text-black-teal-300'\n\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{(!asBoolean(this.required) || helper || hasHeaderSlot) && (\n\t\t\t\t\t\t<div class='flex items-center gap-1'>\n\t\t\t\t\t\t\t{!asBoolean(this.required) && this.variant === 'write' && (\n\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{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t\t<p-helper\n\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\tplacement='top-end'\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\n\t\t\t\t<p-tooltip\n\t\t\t\t\tclass={this.variant === 'write' || this.loading ? 'w-full' : ''}\n\t\t\t\t\tvariant='error'\n\t\t\t\t\tcontent={this.error}\n\t\t\t\t\tshow={errorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip)}\n\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t>\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='content'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{contentSlot}\n\t\t\t\t</p-tooltip>\n\t\t\t</label>\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"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*{box-sizing:border-box}.static{position:static!important}.mt-\[0\.125rem\]{margin-top:.125rem!important}.flex{display:flex!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.h-full{height:100%!important}.min-h-4{min-height:1rem!important}.min-h-5{min-height:1.25rem!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-start{align-items:flex-start!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.border{border-width:1px!important}.border-0{border-width:0!important}.border-solid{border-style:solid!important}.border-none{border-style:none!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-negative-red{--tw-border-opacity:1!important;border-color:rgb(230 30 30/var(--tw-border-opacity,1))!important}.border-supportive-lilac-800{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;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-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}
|
|
1
|
+
*{box-sizing:border-box}.static{position:static!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-\[0\.125rem\]{margin-top:.125rem!important}.flex{display:flex!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.h-full{height:100%!important}.min-h-4{min-height:1rem!important}.min-h-5{min-height:1.25rem!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-start{align-items:flex-start!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.border{border-width:1px!important}.border-0{border-width:0!important}.border-solid{border-style:solid!important}.border-none{border-style:none!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-negative-red{--tw-border-opacity:1!important;border-color:rgb(230 30 30/var(--tw-border-opacity,1))!important}.border-supportive-lilac-800{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-center{text-align:center!important}.font-geist{font-family:Geist,serif!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;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-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}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { cn } from "../../../../utils/cn";
|
|
4
3
|
import { asBoolean } from "../../../../utils/as-boolean";
|
|
4
|
+
import { cn } from "../../../../utils/cn";
|
|
5
5
|
import { nonce } from "../../../../utils/nonce";
|
|
6
6
|
const field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
|
|
7
7
|
variants: {
|
|
@@ -14,8 +14,8 @@ const field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
|
|
|
14
14
|
base: null,
|
|
15
15
|
},
|
|
16
16
|
disabled: {
|
|
17
|
-
false:
|
|
18
|
-
true:
|
|
17
|
+
false: null,
|
|
18
|
+
true: null,
|
|
19
19
|
},
|
|
20
20
|
focused: {
|
|
21
21
|
false: null,
|
|
@@ -27,7 +27,7 @@ const field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
|
|
|
27
27
|
},
|
|
28
28
|
isTextarea: {
|
|
29
29
|
false: null,
|
|
30
|
-
true:
|
|
30
|
+
true: 'items-start',
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
33
|
compoundVariants: [
|
|
@@ -66,6 +66,16 @@ const field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
|
|
|
66
66
|
error: false,
|
|
67
67
|
class: 'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',
|
|
68
68
|
},
|
|
69
|
+
{
|
|
70
|
+
variant: 'write',
|
|
71
|
+
disabled: false,
|
|
72
|
+
class: 'bg-white'
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
variant: 'write',
|
|
76
|
+
disabled: true,
|
|
77
|
+
class: 'bg-white-600 cursor-not-allowed'
|
|
78
|
+
},
|
|
69
79
|
{
|
|
70
80
|
disabled: false,
|
|
71
81
|
error: true,
|
|
@@ -79,11 +89,16 @@ const field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
|
|
|
79
89
|
},
|
|
80
90
|
],
|
|
81
91
|
});
|
|
82
|
-
const input = cva(
|
|
92
|
+
const input = cva([
|
|
93
|
+
'text-sm placeholder:text-sm placeholder:text-black-teal-200 text-black-teal',
|
|
94
|
+
'border-none bg-transparent flex-1 min-w-0',
|
|
95
|
+
'outline-none focus:outline-none',
|
|
96
|
+
'font-geist'
|
|
97
|
+
], {
|
|
83
98
|
variants: {
|
|
84
99
|
isTextarea: {
|
|
85
100
|
false: 'h-full',
|
|
86
|
-
true:
|
|
101
|
+
true: 'mt-1',
|
|
87
102
|
},
|
|
88
103
|
disabled: {
|
|
89
104
|
false: null,
|
|
@@ -109,6 +124,10 @@ const prefixAndSuffix = cva(['flex flex-shrink-0 justify-center items-center tex
|
|
|
109
124
|
false: null,
|
|
110
125
|
true: 'text-sm',
|
|
111
126
|
},
|
|
127
|
+
isTextarea: {
|
|
128
|
+
false: null,
|
|
129
|
+
true: 'mt-2',
|
|
130
|
+
},
|
|
112
131
|
},
|
|
113
132
|
compoundVariants: [
|
|
114
133
|
{
|
|
@@ -272,26 +291,28 @@ export class Field {
|
|
|
272
291
|
}
|
|
273
292
|
render() {
|
|
274
293
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
275
|
-
return (h(
|
|
294
|
+
return (h("p-field-container", { key: '3a9bb5df0271e63bac0043bcf821203aed741e83', forceShowTooltip: this.forceShowTooltip || this._focused, id: id, label: this.label, loading: this.loading, loadingSize: this.size, helper: this.helper, error: this.error, required: this.required, variant: this.variant }, hasLabelSlot && (h("slot", { key: '1dc261303e97637ce1d25d2c70a702c9635e7926', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: 'd2befd0055da55defc20b9ba66d3dca560d8e70f', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '4e96fe040c5483b535d943c368dc7e4214013f8c', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '97eee1faebc51c7fe3f4140879407785ab6f1ee2', name: 'error', slot: 'error' })), h("div", { key: '5669b02570bad759ddf5b0da4d05878a61c02efc', class: field({
|
|
276
295
|
error: !!this.error?.length,
|
|
277
296
|
disabled: asBoolean(this.disabled),
|
|
278
297
|
focused: asBoolean(this.focused) || this._focused,
|
|
279
298
|
size: this.size,
|
|
280
299
|
variant: this.variant,
|
|
281
300
|
isTextarea: this.type === 'textarea',
|
|
282
|
-
}), title: this.variant === 'read' && !hasValueSlot ? this.value : undefined, slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
301
|
+
}), title: this.variant === 'read' && !hasValueSlot ? this.value : undefined, slot: 'content' }, (this.error?.length || prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: 'e757225c592b034f85b296919e4effa5ba838c03', class: prefixAndSuffix({
|
|
283
302
|
error: !!this.error?.length,
|
|
284
303
|
disabled: asBoolean(this.disabled),
|
|
285
304
|
focused: asBoolean(this.focused) || this._focused,
|
|
286
305
|
isText: typeof suffix === 'string',
|
|
287
|
-
|
|
306
|
+
isTextarea: this.type === 'textarea',
|
|
307
|
+
}), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') || this.error?.length ? (h("p-icon", { class: cn('flex', {
|
|
288
308
|
'mt-[0.125rem]': this.variant === 'read' && this.size === 'base',
|
|
289
|
-
}), variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
309
|
+
}), variant: this.error?.length ? 'warning' : this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '52f0f31d5bc353e40b7a1d3db2f39c6e4c340fb9', class: prefixAndSuffix({
|
|
290
310
|
error: !!this.error?.length,
|
|
291
311
|
disabled: asBoolean(this.disabled),
|
|
292
312
|
focused: asBoolean(this.focused) || this._focused,
|
|
293
313
|
isText: typeof suffix === 'string',
|
|
294
|
-
|
|
314
|
+
isTextarea: this.type === 'textarea',
|
|
315
|
+
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'end' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix))))));
|
|
295
316
|
}
|
|
296
317
|
handleFocusIn() {
|
|
297
318
|
if (this.disabled) {
|
|
@@ -330,7 +351,7 @@ export class Field {
|
|
|
330
351
|
const prefix = hasPrefixSlot ? h("slot", { name: 'prefix' }) : this.prefix;
|
|
331
352
|
const suffix = hasSuffixSlot ? h("slot", { name: 'suffix' }) : this.suffix;
|
|
332
353
|
const errorAndErrorIsNotBoolean = this.error && typeof this.error === 'string' && this.error !== 'true';
|
|
333
|
-
const id = this.id?.length ?
|
|
354
|
+
const id = this.id?.length ? this.id : this._nonce;
|
|
334
355
|
return {
|
|
335
356
|
id,
|
|
336
357
|
hasHelperSlot,
|