@paperless/core 2.0.1-beta.66 → 2.0.1-beta.68
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 +25 -0
- package/dist/assets/i18n/table-header.i18n.en.json +2 -1
- package/dist/assets/i18n/table-header.i18n.nl.json +2 -1
- package/dist/assets/illustrations/calculator.svg +11 -0
- package/dist/assets/illustrations/clock.svg +11 -0
- package/dist/assets/illustrations/coins.svg +11 -0
- package/dist/assets/illustrations/file-invoice.svg +11 -0
- package/dist/assets/illustrations/payment.svg +12 -0
- package/dist/assets/illustrations/search.svg +10 -0
- package/dist/assets/illustrations/table.svg +10 -0
- package/dist/assets/illustrations/tag.svg +4 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/build/{p-94dbc426.entry.js → p-07801fb9.entry.js} +2 -2
- package/dist/build/{p-84714aa2.entry.js → p-089318c5.entry.js} +2 -2
- package/dist/build/p-0b935fc3.entry.js +2 -0
- package/dist/build/{p-38c4f906.entry.js → p-0f534d8c.entry.js} +2 -2
- package/dist/build/{p-5fd4bb35.entry.js → p-1169b9bf.entry.js} +2 -2
- package/dist/build/{p-6f07f37e.entry.js → p-136616a3.entry.js} +2 -2
- package/dist/build/{p-a3786a55.entry.js → p-13f4e43c.entry.js} +2 -2
- package/dist/build/p-1775e544.entry.js +2 -0
- package/dist/{paperless/p-d8ba8d04.entry.js → build/p-2e7078c8.entry.js} +2 -2
- package/dist/build/{p-6642233d.entry.js → p-300a71f2.entry.js} +2 -2
- package/dist/build/{p-0d877ea2.entry.js → p-3299ff05.entry.js} +2 -2
- package/dist/build/p-363b6f28.entry.js +2 -0
- package/dist/build/p-363b6f28.entry.js.map +1 -0
- package/dist/build/p-3c299655.entry.js +2 -0
- package/dist/build/p-3c299655.entry.js.map +1 -0
- package/dist/{paperless/p-2c0d62fb.entry.js → build/p-3efee0f8.entry.js} +2 -2
- package/dist/build/{p-0a249d42.entry.js → p-4202a4c0.entry.js} +2 -2
- package/dist/build/{p-0a249d42.entry.js.map → p-4202a4c0.entry.js.map} +1 -1
- package/dist/build/{p-74338d94.entry.js → p-4944d81e.entry.js} +2 -2
- package/dist/build/p-4e74384b.entry.js +2 -0
- package/dist/build/{p-daa2e1ef.entry.js → p-533abd68.entry.js} +2 -2
- package/dist/build/p-57625bdf.entry.js +2 -0
- package/dist/build/p-57625bdf.entry.js.map +1 -0
- package/dist/{paperless/p-8730f1e9.entry.js → build/p-68a7ab02.entry.js} +2 -2
- package/dist/build/{p-727c7908.entry.js → p-6a92ae6e.entry.js} +2 -2
- package/dist/build/p-6b4a23c4.entry.js +2 -0
- package/dist/build/{p-518ae25b.entry.js → p-754beb82.entry.js} +2 -2
- package/dist/build/{p-09ee06f2.entry.js → p-76642559.entry.js} +2 -2
- package/dist/build/p-798c697f.entry.js +2 -0
- package/dist/build/p-798c697f.entry.js.map +1 -0
- package/dist/{paperless/p-2588c4db.entry.js → build/p-8144d85f.entry.js} +2 -2
- package/dist/build/{p-1b6abd13.entry.js → p-8ad81b8b.entry.js} +2 -2
- package/dist/build/p-8ed1a47e.entry.js +2 -0
- package/dist/build/p-CrdJDtHg.js +2 -0
- package/dist/build/p-CrdJDtHg.js.map +1 -0
- package/dist/build/p-LzoxDEOe.js +2 -0
- package/dist/build/p-LzoxDEOe.js.map +1 -0
- package/dist/{paperless/p-c0580f90.entry.js → build/p-a6de5f3e.entry.js} +2 -2
- package/dist/build/{p-bcd6ba78.entry.js → p-a8c8f291.entry.js} +2 -2
- package/dist/{paperless/p-558831b8.entry.js → build/p-b0582876.entry.js} +2 -2
- package/dist/build/{p-9bd484cf.entry.js → p-b7040bb6.entry.js} +2 -2
- package/dist/{paperless/p-d5e0949a.entry.js → build/p-b8604040.entry.js} +2 -2
- package/dist/{paperless/p-49650464.entry.js → build/p-bfaaeb71.entry.js} +2 -2
- package/dist/build/p-button.p-icon.p-loader.entry.esm.js.map +1 -1
- package/dist/build/p-c01510d4.entry.js +2 -0
- package/dist/build/p-c01510d4.entry.js.map +1 -0
- package/dist/build/p-c23863a0.entry.js +2 -0
- package/dist/build/p-c23863a0.entry.js.map +1 -0
- package/dist/build/p-c4197bfe.entry.js +2 -0
- package/dist/build/p-c4197bfe.entry.js.map +1 -0
- package/dist/{paperless/p-cbe4dac4.entry.js → build/p-ca580a2b.entry.js} +2 -2
- package/dist/build/p-ca580a2b.entry.js.map +1 -0
- package/dist/{paperless/p-b80d7614.entry.js → build/p-cd6138d8.entry.js} +2 -2
- package/dist/build/p-ce84481f.entry.js +2 -0
- package/dist/build/p-ce84481f.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 -0
- package/dist/build/p-d09821da.entry.js +2 -0
- package/dist/build/{p-54ce327a.entry.js.map → p-d09821da.entry.js.map} +1 -1
- package/dist/build/p-d0ee4451.entry.js +2 -0
- package/dist/build/p-d0ee4451.entry.js.map +1 -0
- package/dist/build/p-d17fc631.entry.js +2 -0
- package/dist/build/p-d17fc631.entry.js.map +1 -0
- package/dist/build/{p-3dc62ba0.entry.js → p-dbab1545.entry.js} +2 -2
- package/dist/build/p-de7a8a34.js +2 -0
- package/dist/build/p-divider.entry.esm.js.map +1 -1
- package/dist/build/{p-70e9cd3b.entry.js → p-e1ae79c2.entry.js} +2 -2
- package/dist/build/{p-2fd0d5d2.entry.js → p-e4bb6038.entry.js} +2 -2
- package/dist/build/{p-322cc192.entry.js → p-e765e24b.entry.js} +2 -2
- package/dist/build/p-e9c85340.entry.js +2 -0
- package/dist/build/p-e9c85340.entry.js.map +1 -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 -0
- package/dist/build/{p-e7c68fb4.entry.js → p-f196c632.entry.js} +2 -2
- package/dist/build/{p-83017ce4.entry.js → p-f24e232c.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-illustration-deprecated.entry.esm.js.map +1 -0
- package/dist/build/p-illustration.entry.esm.js.map +1 -0
- package/dist/build/p-layout.entry.esm.js.map +1 -1
- package/dist/build/p-pagination-pages-item.entry.esm.js.map +1 -0
- package/dist/build/p-pagination.p-pagination-pages.p-pagination-size.entry.esm.js.map +1 -0
- package/dist/build/p-table-column.entry.esm.js.map +1 -1
- package/dist/build/p-table.entry.esm.js.map +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/index-DLcBertx.js +20 -16
- package/dist/cjs/index.cjs.js +47 -6
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/object-get-by-path-D9RiabwP.js +15 -0
- package/dist/cjs/object-get-by-path-D9RiabwP.js.map +1 -0
- package/dist/cjs/p-accordion.cjs.entry.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +4 -4
- package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js +3 -3
- package/dist/cjs/p-badge_3.cjs.entry.js +4 -4
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button.p-icon.p-loader.entry.cjs.js.map +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +6 -6
- 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 -0
- package/dist/cjs/{p-checkbox_2.cjs.entry.js → p-checkbox_4.cjs.entry.js} +291 -10
- package/dist/cjs/p-checkbox_4.cjs.entry.js.map +1 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-counter.cjs.entry.js +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js +2 -2
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-divider.cjs.entry.js +5 -3
- package/dist/cjs/p-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/p-divider.entry.cjs.js.map +1 -1
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +3 -3
- 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 -0
- package/dist/cjs/{p-floating-menu-container_8.cjs.entry.js → p-empty-state_9.cjs.entry.js} +209 -1713
- package/dist/cjs/p-empty-state_9.cjs.entry.js.map +1 -0
- package/dist/cjs/p-field.p-field-container.entry.cjs.js.map +1 -1
- package/dist/cjs/p-field_2.cjs.entry.js +9 -7
- 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-icon-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/p-illustration-deprecated.cjs.entry.js +1652 -0
- package/dist/cjs/p-illustration-deprecated.cjs.entry.js.map +1 -0
- package/dist/cjs/p-illustration-deprecated.entry.cjs.js.map +1 -0
- package/dist/cjs/p-illustration.cjs.entry.js +131 -0
- package/dist/cjs/p-illustration.cjs.entry.js.map +1 -0
- package/dist/cjs/p-illustration.entry.cjs.js.map +1 -0
- package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
- package/dist/cjs/p-input-error.cjs.entry.js +1 -1
- package/dist/cjs/p-input-group.cjs.entry.js +3 -3
- package/dist/cjs/p-layout.cjs.entry.js +6 -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-modal-body_4.cjs.entry.js +6 -6
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination-pages-item.cjs.entry.js +102 -0
- package/dist/cjs/p-pagination-pages-item.cjs.entry.js.map +1 -0
- package/dist/cjs/p-pagination-pages-item.entry.cjs.js.map +1 -0
- package/dist/cjs/p-pagination.p-pagination-pages.p-pagination-size.entry.cjs.js.map +1 -0
- package/dist/cjs/p-pagination_3.cjs.entry.js +379 -0
- package/dist/cjs/p-pagination_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-portal.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +3 -3
- package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
- package/dist/cjs/p-smile.cjs.entry.js +1 -1
- package/dist/cjs/p-status.cjs.entry.js +2 -2
- package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-table-column.cjs.entry.js +0 -4
- package/dist/cjs/p-table-column.cjs.entry.js.map +1 -1
- package/dist/cjs/p-table-column.entry.cjs.js.map +1 -1
- package/dist/cjs/p-table.cjs.entry.js +37 -83
- package/dist/cjs/p-table.cjs.entry.js.map +1 -1
- package/dist/cjs/p-table.entry.cjs.js.map +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +3 -3
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/cjs/{object-get-by-path-uPHhHF4l.js → table-helpers-DvUvmM0E.js} +25 -50
- package/dist/cjs/table-helpers-DvUvmM0E.js.map +1 -0
- package/dist/collection/assets/illustrations/calculator.svg +11 -0
- package/dist/collection/assets/illustrations/clock.svg +11 -0
- package/dist/collection/assets/illustrations/coins.svg +11 -0
- package/dist/collection/assets/illustrations/file-invoice.svg +11 -0
- package/dist/collection/assets/illustrations/payment.svg +12 -0
- package/dist/collection/assets/illustrations/search.svg +10 -0
- package/dist/collection/assets/illustrations/table.svg +10 -0
- package/dist/collection/assets/illustrations/tag.svg +4 -0
- package/dist/collection/collection-manifest.json +11 -8
- 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/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 +4 -4
- package/dist/collection/components/atoms/divider/divider.component.css +1 -1
- package/dist/collection/components/atoms/divider/divider.component.js +5 -4
- package/dist/collection/components/atoms/divider/divider.component.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +2 -2
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +3 -3
- package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.js +2 -2
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +2 -2
- package/dist/collection/components/atoms/helper/helper.component.js +1 -1
- package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +2 -2
- package/dist/collection/components/atoms/icon/icon.component.js.map +1 -1
- package/dist/collection/components/atoms/illustration/illustration.component.js +43 -0
- package/dist/collection/components/atoms/illustration/illustration.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.js +1 -1
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +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 +3 -3
- package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
- package/dist/collection/components/atoms/smile/smile.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.css +1 -0
- package/dist/collection/components/atoms/table/actions-container/table-container.component.js +20 -0
- package/dist/collection/components/atoms/table/actions-container/table-container.component.js.map +1 -0
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.css +1 -0
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +19 -0
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js.map +1 -0
- package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +4 -4
- package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
- package/dist/collection/components/deprecated/atoms/counter/counter.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/drawer/body/drawer-body.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/drawer/container/drawer-container.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/drawer/header/drawer-header.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/icon-deprecated/icon.component.js +2 -2
- package/dist/collection/components/deprecated/atoms/{illustration/illustration.component.js → illustration-deprecated/illustration-deprecated.component.js} +11 -8
- package/dist/collection/components/deprecated/atoms/illustration-deprecated/illustration-deprecated.component.js.map +1 -0
- package/dist/collection/components/deprecated/atoms/info-panel/info-panel.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/layout/layout.component.js +23 -1
- package/dist/collection/components/deprecated/atoms/layout/layout.component.js.map +1 -1
- package/dist/collection/components/deprecated/atoms/slider-indicator/slider-indicator.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/status/status.component.js +2 -2
- package/dist/collection/components/deprecated/atoms/stepper/item/stepper-item.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/stepper/line/stepper-line.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/toast-container/toast-container.component.js +1 -1
- package/dist/collection/components/deprecated/molecules/accordion/accordion.component.js +1 -1
- package/dist/collection/components/deprecated/molecules/attachment/attachment.component.js +4 -4
- package/dist/collection/components/deprecated/molecules/content-slider/content-slider.component.js +2 -2
- package/dist/collection/components/deprecated/molecules/cropper/cropper.component.js +2 -2
- package/dist/collection/components/deprecated/molecules/input/error/input-error.component.js +1 -1
- package/dist/collection/components/deprecated/molecules/input/group/input-group.component.js +3 -3
- package/dist/collection/components/deprecated/molecules/stepper/stepper.component.js +1 -1
- package/dist/collection/components/deprecated/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/helpers/portal/portal.component.js +1 -1
- package/dist/collection/components/helpers/table/column/table-column.component.js +0 -23
- package/dist/collection/components/helpers/table/column/table-column.component.js.map +1 -1
- package/dist/collection/components/molecules/button/button.component.js +13 -7
- 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/calendar/calendar.component.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +4 -4
- package/dist/collection/components/molecules/empty-state/empty-state.component.css +1 -0
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +278 -0
- package/dist/collection/components/molecules/empty-state/empty-state.component.js.map +1 -0
- package/dist/collection/components/molecules/field/container/field-container.component.css +1 -1
- package/dist/collection/components/molecules/field/container/field-container.component.js +3 -3
- package/dist/collection/components/molecules/field/container/field-container.component.js.map +1 -1
- package/dist/collection/components/molecules/field/field/field.component.js +5 -3
- package/dist/collection/components/molecules/field/field/field.component.js.map +1 -1
- package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +3 -3
- package/dist/collection/components/molecules/table/cell/table-cell.component.css +1 -0
- package/dist/collection/components/{deprecated/molecules → molecules}/table/cell/table-cell.component.js +12 -43
- package/dist/collection/components/molecules/table/cell/table-cell.component.js.map +1 -0
- package/dist/collection/components/molecules/table/footer/table-footer.component.css +1 -0
- package/dist/collection/components/{deprecated/molecules → molecules}/table/footer/table-footer.component.js +54 -73
- package/dist/collection/components/molecules/table/footer/table-footer.component.js.map +1 -0
- package/dist/collection/components/molecules/table/header/table-header.component.css +1 -0
- package/dist/collection/components/{deprecated/molecules → molecules}/table/header/table-header.component.js +63 -14
- package/dist/collection/components/molecules/table/header/table-header.component.js.map +1 -0
- package/dist/collection/components/molecules/table/row/table-row.component.css +1 -0
- package/dist/collection/components/molecules/table/row/table-row.component.js +116 -0
- package/dist/collection/components/molecules/table/row/table-row.component.js.map +1 -0
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/components/organisms/table/table.component.css +1 -0
- package/dist/collection/components/{deprecated/organisms → organisms}/table/table.component.js +63 -111
- package/dist/collection/components/organisms/table/table.component.js.map +1 -0
- package/dist/collection/tailwind/theme/animation.js +36 -0
- package/dist/collection/tailwind/theme/animation.js.map +1 -1
- package/dist/collection/types/table.js.map +1 -1
- package/dist/collection/utils/illustrations-deprecated.js +27 -0
- package/dist/collection/utils/illustrations-deprecated.js.map +1 -0
- package/dist/collection/utils/illustrations.js +16 -24
- package/dist/collection/utils/illustrations.js.map +1 -1
- package/dist/collection/utils/index.js +2 -1
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/collection/utils/table-helpers.js +21 -37
- package/dist/collection/utils/table-helpers.js.map +1 -1
- package/dist/components/index.js +38 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-CPdlAl8h.js → p-B63gPh_H.js} +7 -7
- package/dist/components/{p-CPdlAl8h.js.map → p-B63gPh_H.js.map} +1 -1
- package/dist/components/{p-CKdnfAon.js → p-B6UH3J7_.js} +7 -7
- package/dist/components/p-B6UH3J7_.js.map +1 -0
- package/dist/components/{p-di3EXQ4I.js → p-BCnQRL5U.js} +3 -3
- package/dist/components/{p-di3EXQ4I.js.map → p-BCnQRL5U.js.map} +1 -1
- package/dist/components/p-BHIQaN0O.js +96 -0
- package/dist/components/p-BHIQaN0O.js.map +1 -0
- package/dist/components/p-BY0mXIhO.js +35 -0
- package/dist/components/p-BY0mXIhO.js.map +1 -0
- package/dist/components/{p-DiFV-QTl.js → p-BecdP_Ak.js} +25 -40
- package/dist/components/p-BecdP_Ak.js.map +1 -0
- package/dist/components/{p-hoTzvAXz.js → p-Bf7oUN-6.js} +3 -3
- package/dist/components/{p-hoTzvAXz.js.map → p-Bf7oUN-6.js.map} +1 -1
- package/dist/components/{p-CElaNwAs.js → p-Bfsfjrch.js} +42 -20
- package/dist/components/p-Bfsfjrch.js.map +1 -0
- package/dist/components/{p-Dyyeb5Ij.js → p-BsVQWdLD.js} +7 -7
- package/dist/components/{p-Dyyeb5Ij.js.map → p-BsVQWdLD.js.map} +1 -1
- package/dist/components/{p-jndj5KM_.js → p-Bsg1H4V_.js} +5 -5
- package/dist/components/{p-jndj5KM_.js.map → p-Bsg1H4V_.js.map} +1 -1
- package/dist/components/{p-C0kL1elG.js → p-BsgE1XSo.js} +4 -4
- package/dist/components/p-BsgE1XSo.js.map +1 -0
- package/dist/components/{p-BW3Jh7dz.js → p-ByT0XK4K.js} +3 -3
- package/dist/components/{p-BW3Jh7dz.js.map → p-ByT0XK4K.js.map} +1 -1
- package/dist/components/{p-Cdv_rF7b.js → p-C1wQaaNc.js} +11 -11
- package/dist/components/p-C1wQaaNc.js.map +1 -0
- package/dist/components/{p-CNVyCL-e.js → p-C3qeuLGS.js} +8 -8
- package/dist/components/{p-CNVyCL-e.js.map → p-C3qeuLGS.js.map} +1 -1
- package/dist/components/{p-CswIZXBK.js → p-C8rfYi3w.js} +3 -3
- package/dist/components/{p-CswIZXBK.js.map → p-C8rfYi3w.js.map} +1 -1
- package/dist/components/{p-t0Evlpao.js → p-CB3gv9g7.js} +12 -10
- package/dist/components/p-CB3gv9g7.js.map +1 -0
- package/dist/components/{p-qKwZ79SO.js → p-CKjBhtCw.js} +4 -4
- package/dist/components/{p-qKwZ79SO.js.map → p-CKjBhtCw.js.map} +1 -1
- package/dist/components/{p-DxL6wYFs.js → p-CW-Ucnco.js} +11 -11
- package/dist/components/{p-DxL6wYFs.js.map → p-CW-Ucnco.js.map} +1 -1
- package/dist/components/p-CXOTEz6R.js +123 -0
- package/dist/components/p-CXOTEz6R.js.map +1 -0
- package/dist/components/{p-B_WpyKGD.js → p-CXQeKCvt.js} +3 -3
- package/dist/components/{p-B_WpyKGD.js.map → p-CXQeKCvt.js.map} +1 -1
- package/dist/components/{p-BHsxyPvY.js → p-CbfyNDgs.js} +3 -3
- package/dist/components/{p-BHsxyPvY.js.map → p-CbfyNDgs.js.map} +1 -1
- package/dist/components/{p-CpTXv4Vc.js → p-ChwJzY70.js} +5 -5
- package/dist/components/{p-CpTXv4Vc.js.map → p-ChwJzY70.js.map} +1 -1
- package/dist/components/p-CkW4ignv.js +169 -0
- package/dist/components/p-CkW4ignv.js.map +1 -0
- package/dist/components/{p-CRSsPnsr.js → p-Cv23-3Fr.js} +6 -6
- package/dist/components/{p-CRSsPnsr.js.map → p-Cv23-3Fr.js.map} +1 -1
- package/dist/components/p-CvN6yR0y.js +144 -0
- package/dist/components/p-CvN6yR0y.js.map +1 -0
- package/dist/components/{p-rFsjRJgs.js → p-D0gUHAYk.js} +6 -6
- package/dist/components/{p-rFsjRJgs.js.map → p-D0gUHAYk.js.map} +1 -1
- package/dist/components/{p-CJbLHJtK.js → p-D3Bwv9pc.js} +5 -5
- package/dist/components/{p-CJbLHJtK.js.map → p-D3Bwv9pc.js.map} +1 -1
- package/dist/components/{p-CGTfySxU.js → p-D7gOYvji.js} +4 -4
- package/dist/components/{p-CGTfySxU.js.map → p-D7gOYvji.js.map} +1 -1
- package/dist/components/{p-mBUMykVL.js → p-DBU9pozN.js} +3 -3
- package/dist/components/{p-mBUMykVL.js.map → p-DBU9pozN.js.map} +1 -1
- package/dist/components/p-DM7MkAeM.js +34 -0
- package/dist/components/p-DM7MkAeM.js.map +1 -0
- package/dist/components/{p-BfE0xg12.js → p-DUlcd7hB.js} +3 -3
- package/dist/components/{p-BfE0xg12.js.map → p-DUlcd7hB.js.map} +1 -1
- package/dist/components/p-DVAF5SY-.js +196 -0
- package/dist/components/p-DVAF5SY-.js.map +1 -0
- package/dist/components/{p-Xn8g2YN3.js → p-DXrjsnN9.js} +5 -5
- package/dist/components/{p-Xn8g2YN3.js.map → p-DXrjsnN9.js.map} +1 -1
- package/dist/components/{p-B6jfZryN.js → p-DiJM7MkY.js} +5 -5
- package/dist/components/{p-B6jfZryN.js.map → p-DiJM7MkY.js.map} +1 -1
- package/dist/components/{p-CLIWayjP.js → p-DkQcmaID.js} +4 -4
- package/dist/components/{p-CLIWayjP.js.map → p-DkQcmaID.js.map} +1 -1
- package/dist/components/{p-D6iHC4fs.js → p-DoonhL8V.js} +3 -3
- package/dist/components/{p-D6iHC4fs.js.map → p-DoonhL8V.js.map} +1 -1
- package/dist/components/{p-DFgYipCU.js → p-DqJMXrX1.js} +6 -6
- package/dist/components/{p-DFgYipCU.js.map → p-DqJMXrX1.js.map} +1 -1
- package/dist/components/{p-CeIejYlK.js → p-DsB6uMsf.js} +4 -4
- package/dist/components/{p-CeIejYlK.js.map → p-DsB6uMsf.js.map} +1 -1
- package/dist/components/{p-Dftz1aTS.js → p-E9N_VrqF.js} +9 -21
- package/dist/components/p-E9N_VrqF.js.map +1 -0
- package/dist/components/p-accordion.js +3 -3
- package/dist/components/{p-BAiUXMDn.js → p-arzM1qix.js} +7 -7
- package/dist/components/{p-BAiUXMDn.js.map → p-arzM1qix.js.map} +1 -1
- package/dist/components/p-attachment.js +9 -9
- package/dist/components/p-avatar-group.js +1 -1
- package/dist/components/p-avatar.js +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.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-body.js +1 -1
- package/dist/components/p-card-container.js +2 -2
- package/dist/components/p-card-header.js +6 -6
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-content-slider.js +3 -3
- package/dist/components/p-counter.js +1 -1
- package/dist/components/p-cropper.js +3 -3
- package/dist/components/p-datepicker.js +12 -12
- 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 +6 -6
- 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.d.ts +11 -0
- package/dist/components/p-empty-state.js +9 -0
- package/dist/components/p-empty-state.js.map +1 -0
- 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-DiiV6dxw.js → p-iMJKTtDo.js} +4 -4
- package/dist/components/{p-DiiV6dxw.js.map → p-iMJKTtDo.js.map} +1 -1
- package/dist/components/p-iban-icon.js +1 -1
- package/dist/components/p-icon-deprecated.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-illustration-deprecated.d.ts +11 -0
- package/dist/components/{p-D-BdOqtN.js → p-illustration-deprecated.js} +15 -9
- package/dist/components/p-illustration-deprecated.js.map +1 -0
- package/dist/components/p-illustration.js +1 -1
- package/dist/components/p-info-panel.js +2 -2
- package/dist/components/p-input-error.js +1 -1
- package/dist/components/p-input-group.js +8 -8
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-layout.js +7 -2
- package/dist/components/p-layout.js.map +1 -1
- package/dist/components/{p-qqY4rj9S.js → p-llhG3A9n.js} +6 -6
- package/dist/components/{p-qqY4rj9S.js.map → p-llhG3A9n.js.map} +1 -1
- package/dist/components/{p-remL-vvB.js → p-mH8xL3Ys.js} +3 -3
- package/dist/components/{p-remL-vvB.js.map → p-mH8xL3Ys.js.map} +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 +9 -9
- package/dist/components/p-navbar.js +4 -4
- package/dist/components/p-navigation-item.js +2 -2
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-navigation-title.js +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 -164
- package/dist/components/p-pagination.js.map +1 -1
- package/dist/components/p-portal.js +1 -1
- package/dist/components/p-profile.js +5 -5
- package/dist/components/p-q_c1iUVr.js +57 -0
- package/dist/components/p-q_c1iUVr.js.map +1 -0
- package/dist/components/p-radio.js +3 -3
- package/dist/components/p-segment-container.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +12 -12
- package/dist/components/p-slider-indicator.js +1 -1
- package/dist/components/p-smile.js +1 -1
- package/dist/components/p-status.js +3 -3
- package/dist/components/p-stepper-item.js +2 -2
- package/dist/components/p-stepper-line.js +1 -1
- package/dist/components/p-stepper.js +2 -2
- package/dist/components/p-tab-container.js +2 -2
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-column.js +0 -5
- package/dist/components/p-table-column.js.map +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.d.ts +11 -0
- package/dist/components/p-table-row-actions-container.js +9 -0
- package/dist/components/p-table-row-actions-container.js.map +1 -0
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +108 -137
- package/dist/components/p-table.js.map +1 -1
- package/dist/components/p-toast-container.js +1 -1
- package/dist/components/p-toast.js +3 -3
- package/dist/components/p-toggle.js +3 -3
- package/dist/components/p-tooltip.js +1 -1
- package/dist/components/{p-BEOw8Cww.js → p-x4RK6ax2.js} +4 -4
- package/dist/components/{p-BEOw8Cww.js.map → p-x4RK6ax2.js.map} +1 -1
- package/dist/esm/index-I9JY9uxk.js +20 -16
- package/dist/esm/index.js +41 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/object-get-by-path-CrdJDtHg.js +13 -0
- package/dist/esm/object-get-by-path-CrdJDtHg.js.map +1 -0
- package/dist/esm/p-accordion.entry.js +1 -1
- package/dist/esm/p-attachment.entry.js +4 -4
- package/dist/esm/p-avatar-group.entry.js +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_3.entry.js +4 -4
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button.p-icon.p-loader.entry.js.map +1 -1
- package/dist/esm/p-button_3.entry.js +6 -6
- 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 -0
- package/dist/esm/{p-checkbox_2.entry.js → p-checkbox_4.entry.js} +290 -11
- package/dist/esm/p-checkbox_4.entry.js.map +1 -0
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-counter.entry.js +1 -1
- package/dist/esm/p-cropper.entry.js +2 -2
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-divider.entry.js +6 -4
- package/dist/esm/p-divider.entry.js.map +1 -1
- package/dist/esm/p-drawer-body_3.entry.js +3 -3
- 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 -0
- package/dist/esm/{p-floating-menu-container_8.entry.js → p-empty-state_9.entry.js} +208 -1713
- package/dist/esm/p-empty-state_9.entry.js.map +1 -0
- package/dist/esm/p-field.p-field-container.entry.js.map +1 -1
- package/dist/esm/p-field_2.entry.js +9 -7
- 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 +5 -5
- package/dist/esm/p-helper_2.entry.js.map +1 -1
- package/dist/esm/p-iban-icon.entry.js +1 -1
- package/dist/esm/p-icon-deprecated.entry.js +1 -1
- package/dist/esm/p-illustration-deprecated.entry.js +1650 -0
- package/dist/esm/p-illustration-deprecated.entry.js.map +1 -0
- package/dist/esm/p-illustration.entry.js +129 -0
- package/dist/esm/p-illustration.entry.js.map +1 -0
- package/dist/esm/p-info-panel.entry.js +1 -1
- package/dist/esm/p-input-error.entry.js +1 -1
- package/dist/esm/p-input-group.entry.js +3 -3
- package/dist/esm/p-layout.entry.js +7 -2
- package/dist/esm/p-layout.entry.js.map +1 -1
- package/dist/esm/p-modal-body_4.entry.js +6 -6
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-title.entry.js +1 -1
- package/dist/esm/p-pagination-pages-item.entry.js +100 -0
- package/dist/esm/p-pagination-pages-item.entry.js.map +1 -0
- package/dist/esm/p-pagination.p-pagination-pages.p-pagination-size.entry.js.map +1 -0
- package/dist/esm/p-pagination_3.entry.js +375 -0
- package/dist/esm/p-pagination_3.entry.js.map +1 -0
- package/dist/esm/p-portal.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +3 -3
- package/dist/esm/p-slider-indicator.entry.js +1 -1
- package/dist/esm/p-smile.entry.js +1 -1
- package/dist/esm/p-status.entry.js +2 -2
- package/dist/esm/p-stepper-item.entry.js +1 -1
- package/dist/esm/p-stepper-line.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-tab-container.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-table-column.entry.js +0 -4
- package/dist/esm/p-table-column.entry.js.map +1 -1
- package/dist/esm/p-table.entry.js +37 -83
- package/dist/esm/p-table.entry.js.map +1 -1
- package/dist/esm/p-toast-container.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +3 -3
- package/dist/esm/paperless.js +1 -1
- package/dist/esm/{object-get-by-path-DiFV-QTl.js → table-helpers-CISNVNh_.js} +25 -49
- package/dist/esm/table-helpers-CISNVNh_.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/index.esm.js.map +1 -1
- package/dist/paperless/{p-94dbc426.entry.js → p-07801fb9.entry.js} +2 -2
- package/dist/paperless/{p-84714aa2.entry.js → p-089318c5.entry.js} +2 -2
- package/dist/paperless/p-0b935fc3.entry.js +2 -0
- package/dist/paperless/{p-38c4f906.entry.js → p-0f534d8c.entry.js} +2 -2
- package/dist/paperless/{p-5fd4bb35.entry.js → p-1169b9bf.entry.js} +2 -2
- package/dist/paperless/{p-6f07f37e.entry.js → p-136616a3.entry.js} +2 -2
- package/dist/paperless/{p-a3786a55.entry.js → p-13f4e43c.entry.js} +2 -2
- package/dist/paperless/p-1775e544.entry.js +2 -0
- package/dist/{build/p-d8ba8d04.entry.js → paperless/p-2e7078c8.entry.js} +2 -2
- package/dist/paperless/{p-6642233d.entry.js → p-300a71f2.entry.js} +2 -2
- package/dist/paperless/{p-0d877ea2.entry.js → p-3299ff05.entry.js} +2 -2
- package/dist/paperless/p-363b6f28.entry.js +2 -0
- package/dist/paperless/p-363b6f28.entry.js.map +1 -0
- package/dist/paperless/p-3c299655.entry.js +2 -0
- package/dist/paperless/p-3c299655.entry.js.map +1 -0
- package/dist/{build/p-2c0d62fb.entry.js → paperless/p-3efee0f8.entry.js} +2 -2
- package/dist/paperless/{p-0a249d42.entry.js → p-4202a4c0.entry.js} +2 -2
- package/dist/paperless/{p-0a249d42.entry.js.map → p-4202a4c0.entry.js.map} +1 -1
- package/dist/paperless/{p-74338d94.entry.js → p-4944d81e.entry.js} +2 -2
- package/dist/paperless/p-4e74384b.entry.js +2 -0
- package/dist/paperless/{p-daa2e1ef.entry.js → p-533abd68.entry.js} +2 -2
- package/dist/paperless/p-57625bdf.entry.js +2 -0
- package/dist/paperless/p-57625bdf.entry.js.map +1 -0
- package/dist/{build/p-8730f1e9.entry.js → paperless/p-68a7ab02.entry.js} +2 -2
- package/dist/paperless/{p-727c7908.entry.js → p-6a92ae6e.entry.js} +2 -2
- package/dist/paperless/p-6b4a23c4.entry.js +2 -0
- package/dist/paperless/{p-518ae25b.entry.js → p-754beb82.entry.js} +2 -2
- package/dist/paperless/{p-09ee06f2.entry.js → p-76642559.entry.js} +2 -2
- package/dist/paperless/p-798c697f.entry.js +2 -0
- package/dist/paperless/p-798c697f.entry.js.map +1 -0
- package/dist/{build/p-2588c4db.entry.js → paperless/p-8144d85f.entry.js} +2 -2
- package/dist/paperless/{p-1b6abd13.entry.js → p-8ad81b8b.entry.js} +2 -2
- package/dist/paperless/p-8ed1a47e.entry.js +2 -0
- package/dist/paperless/p-CrdJDtHg.js +2 -0
- package/dist/paperless/p-CrdJDtHg.js.map +1 -0
- package/dist/paperless/p-LzoxDEOe.js +2 -0
- package/dist/paperless/p-LzoxDEOe.js.map +1 -0
- package/dist/{build/p-c0580f90.entry.js → paperless/p-a6de5f3e.entry.js} +2 -2
- package/dist/paperless/{p-bcd6ba78.entry.js → p-a8c8f291.entry.js} +2 -2
- package/dist/{build/p-558831b8.entry.js → paperless/p-b0582876.entry.js} +2 -2
- package/dist/paperless/{p-9bd484cf.entry.js → p-b7040bb6.entry.js} +2 -2
- package/dist/{build/p-d5e0949a.entry.js → paperless/p-b8604040.entry.js} +2 -2
- package/dist/{build/p-49650464.entry.js → paperless/p-bfaaeb71.entry.js} +2 -2
- package/dist/paperless/p-button.p-icon.p-loader.entry.esm.js.map +1 -1
- package/dist/paperless/p-c01510d4.entry.js +2 -0
- package/dist/paperless/p-c01510d4.entry.js.map +1 -0
- package/dist/paperless/p-c23863a0.entry.js +2 -0
- package/dist/paperless/p-c23863a0.entry.js.map +1 -0
- package/dist/paperless/p-c4197bfe.entry.js +2 -0
- package/dist/paperless/p-c4197bfe.entry.js.map +1 -0
- package/dist/{build/p-cbe4dac4.entry.js → paperless/p-ca580a2b.entry.js} +2 -2
- package/dist/paperless/p-ca580a2b.entry.js.map +1 -0
- package/dist/{build/p-b80d7614.entry.js → paperless/p-cd6138d8.entry.js} +2 -2
- package/dist/paperless/p-ce84481f.entry.js +2 -0
- package/dist/paperless/p-ce84481f.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 -0
- package/dist/paperless/p-d09821da.entry.js +2 -0
- package/dist/paperless/{p-54ce327a.entry.js.map → p-d09821da.entry.js.map} +1 -1
- package/dist/paperless/p-d0ee4451.entry.js +2 -0
- package/dist/paperless/p-d0ee4451.entry.js.map +1 -0
- package/dist/paperless/p-d17fc631.entry.js +2 -0
- package/dist/paperless/p-d17fc631.entry.js.map +1 -0
- package/dist/paperless/{p-3dc62ba0.entry.js → p-dbab1545.entry.js} +2 -2
- package/dist/paperless/p-divider.entry.esm.js.map +1 -1
- package/dist/paperless/{p-70e9cd3b.entry.js → p-e1ae79c2.entry.js} +2 -2
- package/dist/paperless/{p-2fd0d5d2.entry.js → p-e4bb6038.entry.js} +2 -2
- package/dist/paperless/{p-322cc192.entry.js → p-e765e24b.entry.js} +2 -2
- package/dist/paperless/p-e9c85340.entry.js +2 -0
- package/dist/paperless/p-e9c85340.entry.js.map +1 -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 -0
- package/dist/paperless/{p-e7c68fb4.entry.js → p-f196c632.entry.js} +2 -2
- package/dist/paperless/{p-83017ce4.entry.js → p-f24e232c.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-illustration-deprecated.entry.esm.js.map +1 -0
- package/dist/paperless/p-illustration.entry.esm.js.map +1 -0
- package/dist/paperless/p-layout.entry.esm.js.map +1 -1
- package/dist/paperless/p-pagination-pages-item.entry.esm.js.map +1 -0
- package/dist/paperless/p-pagination.p-pagination-pages.p-pagination-size.entry.esm.js.map +1 -0
- package/dist/paperless/p-table-column.entry.esm.js.map +1 -1
- package/dist/paperless/p-table.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/tailwind/theme/animation.ts +36 -0
- package/dist/types/components/{deprecated/atoms → atoms}/illustration/illustration.component.d.ts +1 -1
- package/dist/types/components/{deprecated/atoms/table/container → atoms/table/actions-container}/table-container.component.d.ts +0 -1
- package/dist/types/components/atoms/table/container/table-row-actions-container.component.d.ts +3 -0
- package/dist/types/components/deprecated/atoms/illustration-deprecated/illustration-deprecated.component.d.ts +10 -0
- package/dist/types/components/deprecated/atoms/layout/layout.component.d.ts +5 -0
- package/dist/types/components/helpers/table/column/table-column.component.d.ts +0 -6
- package/dist/types/components/molecules/button/button.component.d.ts +2 -1
- package/dist/types/components/molecules/empty-state/empty-state.component.d.ts +45 -0
- package/dist/types/components/{deprecated/molecules → molecules}/table/cell/table-cell.component.d.ts +3 -7
- package/dist/types/components/{deprecated/molecules → molecules}/table/footer/table-footer.component.d.ts +9 -19
- package/dist/types/components/{deprecated/molecules → molecules}/table/header/table-header.component.d.ts +11 -3
- package/dist/types/components/{deprecated/organisms → organisms}/table/table.component.d.ts +8 -9
- package/dist/types/components.d.ts +206 -79
- package/dist/types/tailwind/theme/animation.d.ts +36 -0
- package/dist/types/types/table.d.ts +0 -9
- package/dist/types/utils/illustrations-deprecated.d.ts +15 -0
- package/dist/types/utils/illustrations.d.ts +8 -12
- package/dist/types/utils/index.d.ts +2 -1
- package/dist/types/utils/table-helpers.d.ts +6 -9
- package/package.json +1 -1
- package/dist/build/p-00db68f0.entry.js +0 -2
- package/dist/build/p-00db68f0.entry.js.map +0 -1
- package/dist/build/p-1dc8b749.entry.js +0 -2
- package/dist/build/p-1dc8b749.entry.js.map +0 -1
- package/dist/build/p-20af07d6.entry.js +0 -2
- package/dist/build/p-20af07d6.entry.js.map +0 -1
- package/dist/build/p-26d8aace.entry.js +0 -2
- package/dist/build/p-26d8aace.entry.js.map +0 -1
- package/dist/build/p-45d5812c.js +0 -2
- package/dist/build/p-47b47475.entry.js +0 -2
- package/dist/build/p-47b47475.entry.js.map +0 -1
- package/dist/build/p-4e286f43.entry.js +0 -2
- package/dist/build/p-54ce327a.entry.js +0 -2
- package/dist/build/p-6c10695c.entry.js +0 -2
- package/dist/build/p-7b742ec4.entry.js +0 -2
- package/dist/build/p-7b742ec4.entry.js.map +0 -1
- package/dist/build/p-86d5e69d.entry.js +0 -2
- package/dist/build/p-86d5e69d.entry.js.map +0 -1
- package/dist/build/p-976c82ec.entry.js +0 -2
- package/dist/build/p-976c82ec.entry.js.map +0 -1
- package/dist/build/p-DiFV-QTl.js +0 -2
- package/dist/build/p-DiFV-QTl.js.map +0 -1
- package/dist/build/p-b41b10f7.entry.js +0 -2
- package/dist/build/p-b8fac549.entry.js +0 -2
- package/dist/build/p-cbe4dac4.entry.js.map +0 -1
- package/dist/build/p-checkbox.p-dropdown.entry.esm.js.map +0 -1
- package/dist/build/p-d17a23b0.entry.js +0 -2
- package/dist/build/p-d17a23b0.entry.js.map +0 -1
- package/dist/build/p-dd0be018.entry.js +0 -2
- package/dist/build/p-dd0be018.entry.js.map +0 -1
- package/dist/build/p-ddc66a44.entry.js +0 -2
- package/dist/build/p-dropdown-menu-container.entry.esm.js.map +0 -1
- package/dist/build/p-dropdown-menu-item.p-pagination-pages.p-pagination-pages-item.p-pagination-size.entry.esm.js.map +0 -1
- package/dist/build/p-floating-menu-container.p-floating-menu-item.p-illustration.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.entry.esm.js.map +0 -1
- package/dist/build/p-pagination.entry.esm.js.map +0 -1
- package/dist/cjs/object-get-by-path-uPHhHF4l.js.map +0 -1
- package/dist/cjs/p-checkbox.p-dropdown.entry.cjs.js.map +0 -1
- package/dist/cjs/p-checkbox_2.cjs.entry.js.map +0 -1
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +0 -92
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +0 -1
- package/dist/cjs/p-dropdown-menu-container.entry.cjs.js.map +0 -1
- package/dist/cjs/p-dropdown-menu-item.p-pagination-pages.p-pagination-pages-item.p-pagination-size.entry.cjs.js.map +0 -1
- package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js +0 -592
- package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js.map +0 -1
- package/dist/cjs/p-floating-menu-container.p-floating-menu-item.p-illustration.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.entry.cjs.js.map +0 -1
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +0 -1
- package/dist/cjs/p-pagination.cjs.entry.js +0 -89
- package/dist/cjs/p-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/p-pagination.entry.cjs.js.map +0 -1
- package/dist/collection/components/deprecated/atoms/illustration/illustration.component.js.map +0 -1
- package/dist/collection/components/deprecated/atoms/table/container/table-container.component.css +0 -1
- package/dist/collection/components/deprecated/atoms/table/container/table-container.component.js +0 -47
- package/dist/collection/components/deprecated/atoms/table/container/table-container.component.js.map +0 -1
- package/dist/collection/components/deprecated/molecules/table/cell/table-cell.component.css +0 -1
- package/dist/collection/components/deprecated/molecules/table/cell/table-cell.component.js.map +0 -1
- package/dist/collection/components/deprecated/molecules/table/footer/table-footer.component.css +0 -1
- package/dist/collection/components/deprecated/molecules/table/footer/table-footer.component.js.map +0 -1
- package/dist/collection/components/deprecated/molecules/table/header/table-header.component.css +0 -1
- package/dist/collection/components/deprecated/molecules/table/header/table-header.component.js.map +0 -1
- package/dist/collection/components/deprecated/molecules/table/row/table-row.component.css +0 -1
- package/dist/collection/components/deprecated/molecules/table/row/table-row.component.js +0 -73
- package/dist/collection/components/deprecated/molecules/table/row/table-row.component.js.map +0 -1
- package/dist/collection/components/deprecated/organisms/table/table.component.css +0 -1
- package/dist/collection/components/deprecated/organisms/table/table.component.js.map +0 -1
- package/dist/components/p-C0kL1elG.js.map +0 -1
- package/dist/components/p-CElaNwAs.js.map +0 -1
- package/dist/components/p-CKdnfAon.js.map +0 -1
- package/dist/components/p-Cdv_rF7b.js.map +0 -1
- package/dist/components/p-Co45jCOc.js +0 -40
- package/dist/components/p-Co45jCOc.js.map +0 -1
- package/dist/components/p-D-BdOqtN.js.map +0 -1
- package/dist/components/p-DO2aNiJs.js +0 -56
- package/dist/components/p-DO2aNiJs.js.map +0 -1
- package/dist/components/p-Dftz1aTS.js.map +0 -1
- package/dist/components/p-DiFV-QTl.js.map +0 -1
- package/dist/components/p-ShHkXaRk.js +0 -182
- package/dist/components/p-ShHkXaRk.js.map +0 -1
- package/dist/components/p-Vz7bgn45.js +0 -53
- package/dist/components/p-Vz7bgn45.js.map +0 -1
- package/dist/components/p-t0Evlpao.js.map +0 -1
- package/dist/esm/object-get-by-path-DiFV-QTl.js.map +0 -1
- package/dist/esm/p-checkbox.p-dropdown.entry.js.map +0 -1
- package/dist/esm/p-checkbox_2.entry.js.map +0 -1
- package/dist/esm/p-dropdown-menu-container.entry.js +0 -90
- package/dist/esm/p-dropdown-menu-container.entry.js.map +0 -1
- package/dist/esm/p-dropdown-menu-item.p-pagination-pages.p-pagination-pages-item.p-pagination-size.entry.js.map +0 -1
- package/dist/esm/p-dropdown-menu-item_4.entry.js +0 -587
- package/dist/esm/p-dropdown-menu-item_4.entry.js.map +0 -1
- package/dist/esm/p-floating-menu-container.p-floating-menu-item.p-illustration.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.entry.js.map +0 -1
- package/dist/esm/p-floating-menu-container_8.entry.js.map +0 -1
- package/dist/esm/p-pagination.entry.js +0 -87
- package/dist/esm/p-pagination.entry.js.map +0 -1
- package/dist/paperless/p-00db68f0.entry.js +0 -2
- package/dist/paperless/p-00db68f0.entry.js.map +0 -1
- package/dist/paperless/p-1dc8b749.entry.js +0 -2
- package/dist/paperless/p-1dc8b749.entry.js.map +0 -1
- package/dist/paperless/p-20af07d6.entry.js +0 -2
- package/dist/paperless/p-20af07d6.entry.js.map +0 -1
- package/dist/paperless/p-26d8aace.entry.js +0 -2
- package/dist/paperless/p-26d8aace.entry.js.map +0 -1
- package/dist/paperless/p-47b47475.entry.js +0 -2
- package/dist/paperless/p-47b47475.entry.js.map +0 -1
- package/dist/paperless/p-4e286f43.entry.js +0 -2
- package/dist/paperless/p-54ce327a.entry.js +0 -2
- package/dist/paperless/p-6c10695c.entry.js +0 -2
- package/dist/paperless/p-7b742ec4.entry.js +0 -2
- package/dist/paperless/p-7b742ec4.entry.js.map +0 -1
- package/dist/paperless/p-86d5e69d.entry.js +0 -2
- package/dist/paperless/p-86d5e69d.entry.js.map +0 -1
- package/dist/paperless/p-976c82ec.entry.js +0 -2
- package/dist/paperless/p-976c82ec.entry.js.map +0 -1
- package/dist/paperless/p-DiFV-QTl.js +0 -2
- package/dist/paperless/p-DiFV-QTl.js.map +0 -1
- package/dist/paperless/p-b41b10f7.entry.js +0 -2
- package/dist/paperless/p-b8fac549.entry.js +0 -2
- package/dist/paperless/p-cbe4dac4.entry.js.map +0 -1
- package/dist/paperless/p-checkbox.p-dropdown.entry.esm.js.map +0 -1
- package/dist/paperless/p-d17a23b0.entry.js +0 -2
- package/dist/paperless/p-d17a23b0.entry.js.map +0 -1
- package/dist/paperless/p-dd0be018.entry.js +0 -2
- package/dist/paperless/p-dd0be018.entry.js.map +0 -1
- package/dist/paperless/p-ddc66a44.entry.js +0 -2
- package/dist/paperless/p-dropdown-menu-container.entry.esm.js.map +0 -1
- package/dist/paperless/p-dropdown-menu-item.p-pagination-pages.p-pagination-pages-item.p-pagination-size.entry.esm.js.map +0 -1
- package/dist/paperless/p-floating-menu-container.p-floating-menu-item.p-illustration.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.entry.esm.js.map +0 -1
- package/dist/paperless/p-pagination.entry.esm.js.map +0 -1
- /package/dist/assets/{illustrations → illustrations-old}/default-empty-state.svg +0 -0
- /package/dist/assets/{illustrations → illustrations-old}/departments.svg +0 -0
- /package/dist/assets/{illustrations → illustrations-old}/e-mail.svg +0 -0
- /package/dist/assets/{illustrations → illustrations-old}/empty-state-add.svg +0 -0
- /package/dist/assets/{illustrations → illustrations-old}/empty-state-overview.svg +0 -0
- /package/dist/assets/{illustrations → illustrations-old}/empty-state-search.svg +0 -0
- /package/dist/assets/{illustrations → illustrations-old}/expenses.svg +0 -0
- /package/dist/assets/{illustrations → illustrations-old}/functions.svg +0 -0
- /package/dist/assets/{illustrations → illustrations-old}/questions.svg +0 -0
- /package/dist/assets/{illustrations → illustrations-old}/sick-leave.svg +0 -0
- /package/dist/assets/{illustrations → illustrations-old}/time-off.svg +0 -0
- /package/dist/assets/{illustrations → illustrations-old}/upgrade-to-hr.svg +0 -0
- /package/dist/build/{p-94dbc426.entry.js.map → p-07801fb9.entry.js.map} +0 -0
- /package/dist/build/{p-84714aa2.entry.js.map → p-089318c5.entry.js.map} +0 -0
- /package/dist/build/{p-b8fac549.entry.js.map → p-0b935fc3.entry.js.map} +0 -0
- /package/dist/build/{p-38c4f906.entry.js.map → p-0f534d8c.entry.js.map} +0 -0
- /package/dist/build/{p-5fd4bb35.entry.js.map → p-1169b9bf.entry.js.map} +0 -0
- /package/dist/build/{p-6f07f37e.entry.js.map → p-136616a3.entry.js.map} +0 -0
- /package/dist/build/{p-a3786a55.entry.js.map → p-13f4e43c.entry.js.map} +0 -0
- /package/dist/build/{p-b41b10f7.entry.js.map → p-1775e544.entry.js.map} +0 -0
- /package/dist/build/{p-d8ba8d04.entry.js.map → p-2e7078c8.entry.js.map} +0 -0
- /package/dist/build/{p-6642233d.entry.js.map → p-300a71f2.entry.js.map} +0 -0
- /package/dist/build/{p-0d877ea2.entry.js.map → p-3299ff05.entry.js.map} +0 -0
- /package/dist/build/{p-2c0d62fb.entry.js.map → p-3efee0f8.entry.js.map} +0 -0
- /package/dist/build/{p-74338d94.entry.js.map → p-4944d81e.entry.js.map} +0 -0
- /package/dist/build/{p-ddc66a44.entry.js.map → p-4e74384b.entry.js.map} +0 -0
- /package/dist/build/{p-daa2e1ef.entry.js.map → p-533abd68.entry.js.map} +0 -0
- /package/dist/build/{p-8730f1e9.entry.js.map → p-68a7ab02.entry.js.map} +0 -0
- /package/dist/build/{p-727c7908.entry.js.map → p-6a92ae6e.entry.js.map} +0 -0
- /package/dist/build/{p-6c10695c.entry.js.map → p-6b4a23c4.entry.js.map} +0 -0
- /package/dist/build/{p-518ae25b.entry.js.map → p-754beb82.entry.js.map} +0 -0
- /package/dist/build/{p-09ee06f2.entry.js.map → p-76642559.entry.js.map} +0 -0
- /package/dist/build/{p-2588c4db.entry.js.map → p-8144d85f.entry.js.map} +0 -0
- /package/dist/build/{p-1b6abd13.entry.js.map → p-8ad81b8b.entry.js.map} +0 -0
- /package/dist/build/{p-4e286f43.entry.js.map → p-8ed1a47e.entry.js.map} +0 -0
- /package/dist/build/{p-c0580f90.entry.js.map → p-a6de5f3e.entry.js.map} +0 -0
- /package/dist/build/{p-bcd6ba78.entry.js.map → p-a8c8f291.entry.js.map} +0 -0
- /package/dist/build/{p-558831b8.entry.js.map → p-b0582876.entry.js.map} +0 -0
- /package/dist/build/{p-9bd484cf.entry.js.map → p-b7040bb6.entry.js.map} +0 -0
- /package/dist/build/{p-d5e0949a.entry.js.map → p-b8604040.entry.js.map} +0 -0
- /package/dist/build/{p-49650464.entry.js.map → p-bfaaeb71.entry.js.map} +0 -0
- /package/dist/build/{p-b80d7614.entry.js.map → p-cd6138d8.entry.js.map} +0 -0
- /package/dist/build/{p-3dc62ba0.entry.js.map → p-dbab1545.entry.js.map} +0 -0
- /package/dist/build/{p-70e9cd3b.entry.js.map → p-e1ae79c2.entry.js.map} +0 -0
- /package/dist/build/{p-2fd0d5d2.entry.js.map → p-e4bb6038.entry.js.map} +0 -0
- /package/dist/build/{p-322cc192.entry.js.map → p-e765e24b.entry.js.map} +0 -0
- /package/dist/build/{p-e7c68fb4.entry.js.map → p-f196c632.entry.js.map} +0 -0
- /package/dist/build/{p-83017ce4.entry.js.map → p-f24e232c.entry.js.map} +0 -0
- /package/dist/collection/assets/{illustrations → illustrations-old}/default-empty-state.svg +0 -0
- /package/dist/collection/assets/{illustrations → illustrations-old}/departments.svg +0 -0
- /package/dist/collection/assets/{illustrations → illustrations-old}/e-mail.svg +0 -0
- /package/dist/collection/assets/{illustrations → illustrations-old}/empty-state-add.svg +0 -0
- /package/dist/collection/assets/{illustrations → illustrations-old}/empty-state-overview.svg +0 -0
- /package/dist/collection/assets/{illustrations → illustrations-old}/empty-state-search.svg +0 -0
- /package/dist/collection/assets/{illustrations → illustrations-old}/expenses.svg +0 -0
- /package/dist/collection/assets/{illustrations → illustrations-old}/functions.svg +0 -0
- /package/dist/collection/assets/{illustrations → illustrations-old}/questions.svg +0 -0
- /package/dist/collection/assets/{illustrations → illustrations-old}/sick-leave.svg +0 -0
- /package/dist/collection/assets/{illustrations → illustrations-old}/time-off.svg +0 -0
- /package/dist/collection/assets/{illustrations → illustrations-old}/upgrade-to-hr.svg +0 -0
- /package/dist/paperless/{p-94dbc426.entry.js.map → p-07801fb9.entry.js.map} +0 -0
- /package/dist/paperless/{p-84714aa2.entry.js.map → p-089318c5.entry.js.map} +0 -0
- /package/dist/paperless/{p-b8fac549.entry.js.map → p-0b935fc3.entry.js.map} +0 -0
- /package/dist/paperless/{p-38c4f906.entry.js.map → p-0f534d8c.entry.js.map} +0 -0
- /package/dist/paperless/{p-5fd4bb35.entry.js.map → p-1169b9bf.entry.js.map} +0 -0
- /package/dist/paperless/{p-6f07f37e.entry.js.map → p-136616a3.entry.js.map} +0 -0
- /package/dist/paperless/{p-a3786a55.entry.js.map → p-13f4e43c.entry.js.map} +0 -0
- /package/dist/paperless/{p-b41b10f7.entry.js.map → p-1775e544.entry.js.map} +0 -0
- /package/dist/paperless/{p-d8ba8d04.entry.js.map → p-2e7078c8.entry.js.map} +0 -0
- /package/dist/paperless/{p-6642233d.entry.js.map → p-300a71f2.entry.js.map} +0 -0
- /package/dist/paperless/{p-0d877ea2.entry.js.map → p-3299ff05.entry.js.map} +0 -0
- /package/dist/paperless/{p-2c0d62fb.entry.js.map → p-3efee0f8.entry.js.map} +0 -0
- /package/dist/paperless/{p-74338d94.entry.js.map → p-4944d81e.entry.js.map} +0 -0
- /package/dist/paperless/{p-ddc66a44.entry.js.map → p-4e74384b.entry.js.map} +0 -0
- /package/dist/paperless/{p-daa2e1ef.entry.js.map → p-533abd68.entry.js.map} +0 -0
- /package/dist/paperless/{p-8730f1e9.entry.js.map → p-68a7ab02.entry.js.map} +0 -0
- /package/dist/paperless/{p-727c7908.entry.js.map → p-6a92ae6e.entry.js.map} +0 -0
- /package/dist/paperless/{p-6c10695c.entry.js.map → p-6b4a23c4.entry.js.map} +0 -0
- /package/dist/paperless/{p-518ae25b.entry.js.map → p-754beb82.entry.js.map} +0 -0
- /package/dist/paperless/{p-09ee06f2.entry.js.map → p-76642559.entry.js.map} +0 -0
- /package/dist/paperless/{p-2588c4db.entry.js.map → p-8144d85f.entry.js.map} +0 -0
- /package/dist/paperless/{p-1b6abd13.entry.js.map → p-8ad81b8b.entry.js.map} +0 -0
- /package/dist/paperless/{p-4e286f43.entry.js.map → p-8ed1a47e.entry.js.map} +0 -0
- /package/dist/paperless/{p-c0580f90.entry.js.map → p-a6de5f3e.entry.js.map} +0 -0
- /package/dist/paperless/{p-bcd6ba78.entry.js.map → p-a8c8f291.entry.js.map} +0 -0
- /package/dist/paperless/{p-558831b8.entry.js.map → p-b0582876.entry.js.map} +0 -0
- /package/dist/paperless/{p-9bd484cf.entry.js.map → p-b7040bb6.entry.js.map} +0 -0
- /package/dist/paperless/{p-d5e0949a.entry.js.map → p-b8604040.entry.js.map} +0 -0
- /package/dist/paperless/{p-49650464.entry.js.map → p-bfaaeb71.entry.js.map} +0 -0
- /package/dist/paperless/{p-b80d7614.entry.js.map → p-cd6138d8.entry.js.map} +0 -0
- /package/dist/paperless/{p-3dc62ba0.entry.js.map → p-dbab1545.entry.js.map} +0 -0
- /package/dist/paperless/{p-70e9cd3b.entry.js.map → p-e1ae79c2.entry.js.map} +0 -0
- /package/dist/paperless/{p-2fd0d5d2.entry.js.map → p-e4bb6038.entry.js.map} +0 -0
- /package/dist/paperless/{p-322cc192.entry.js.map → p-e765e24b.entry.js.map} +0 -0
- /package/dist/paperless/{p-e7c68fb4.entry.js.map → p-f196c632.entry.js.map} +0 -0
- /package/dist/paperless/{p-83017ce4.entry.js.map → p-f24e232c.entry.js.map} +0 -0
- /package/dist/types/components/{deprecated/molecules → molecules}/table/row/table-row.component.d.ts +0 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { asBoolean } from "../../../utils/as-boolean";
|
|
4
|
+
const emptyState = cva(['flex flex-col w-full items-center justify-start max-w-[20rem]'], {
|
|
5
|
+
variants: {
|
|
6
|
+
enableAction: {
|
|
7
|
+
true: 'cursor-pointer',
|
|
8
|
+
false: null,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
export class EmptyState {
|
|
13
|
+
/**
|
|
14
|
+
* The variant of the illustration
|
|
15
|
+
*/
|
|
16
|
+
illustration;
|
|
17
|
+
/**
|
|
18
|
+
* The header of the empty state
|
|
19
|
+
*/
|
|
20
|
+
header;
|
|
21
|
+
/**
|
|
22
|
+
* The content of the empty state
|
|
23
|
+
*/
|
|
24
|
+
content;
|
|
25
|
+
/**
|
|
26
|
+
* Wether to enable the action button
|
|
27
|
+
*/
|
|
28
|
+
enableAction = true;
|
|
29
|
+
/**
|
|
30
|
+
* The text on the action button
|
|
31
|
+
*/
|
|
32
|
+
actionText;
|
|
33
|
+
/**
|
|
34
|
+
* The variant of the action
|
|
35
|
+
*/
|
|
36
|
+
actionVariant = 'secondary';
|
|
37
|
+
/**
|
|
38
|
+
* The icon for the action button
|
|
39
|
+
*/
|
|
40
|
+
actionIcon;
|
|
41
|
+
/**
|
|
42
|
+
* Wether the action is loading
|
|
43
|
+
*/
|
|
44
|
+
actionLoading = false;
|
|
45
|
+
/**
|
|
46
|
+
* The text on the action button
|
|
47
|
+
*/
|
|
48
|
+
action;
|
|
49
|
+
/**
|
|
50
|
+
* The host element
|
|
51
|
+
*/
|
|
52
|
+
_el;
|
|
53
|
+
render() {
|
|
54
|
+
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
55
|
+
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
56
|
+
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
57
|
+
return (h("div", { key: '5559fc28fffdff8151ac005237312f753ff56295', class: emptyState({
|
|
58
|
+
enableAction: asBoolean(this.enableAction, true),
|
|
59
|
+
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
60
|
+
? this.action.emit(ev)
|
|
61
|
+
: undefined }, this.illustration && (h("p-illustration", { key: '3a9e6bdb19248a5ec230a012c62cc0b13b6efd29', 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
|
+
(hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, loading: this.actionLoading, variant: this.actionVariant }, this.actionText)))));
|
|
63
|
+
}
|
|
64
|
+
static get is() { return "p-empty-state"; }
|
|
65
|
+
static get encapsulation() { return "shadow"; }
|
|
66
|
+
static get originalStyleUrls() {
|
|
67
|
+
return {
|
|
68
|
+
"$": ["empty-state.component.css"]
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
static get styleUrls() {
|
|
72
|
+
return {
|
|
73
|
+
"$": ["empty-state.component.css"]
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
static get properties() {
|
|
77
|
+
return {
|
|
78
|
+
"illustration": {
|
|
79
|
+
"type": "any",
|
|
80
|
+
"attribute": "illustration",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "IllustrationVariant",
|
|
84
|
+
"resolved": "IllustrationVariant",
|
|
85
|
+
"references": {
|
|
86
|
+
"IllustrationVariant": {
|
|
87
|
+
"location": "import",
|
|
88
|
+
"path": "../../../components",
|
|
89
|
+
"id": "src/components.d.ts::unknown"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"optional": false,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [],
|
|
97
|
+
"text": "The variant of the illustration"
|
|
98
|
+
},
|
|
99
|
+
"getter": false,
|
|
100
|
+
"setter": false,
|
|
101
|
+
"reflect": false
|
|
102
|
+
},
|
|
103
|
+
"header": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"attribute": "header",
|
|
106
|
+
"mutable": false,
|
|
107
|
+
"complexType": {
|
|
108
|
+
"original": "string",
|
|
109
|
+
"resolved": "string",
|
|
110
|
+
"references": {}
|
|
111
|
+
},
|
|
112
|
+
"required": false,
|
|
113
|
+
"optional": false,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [],
|
|
116
|
+
"text": "The header of the empty state"
|
|
117
|
+
},
|
|
118
|
+
"getter": false,
|
|
119
|
+
"setter": false,
|
|
120
|
+
"reflect": false
|
|
121
|
+
},
|
|
122
|
+
"content": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"attribute": "content",
|
|
125
|
+
"mutable": false,
|
|
126
|
+
"complexType": {
|
|
127
|
+
"original": "string",
|
|
128
|
+
"resolved": "string",
|
|
129
|
+
"references": {}
|
|
130
|
+
},
|
|
131
|
+
"required": false,
|
|
132
|
+
"optional": false,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [],
|
|
135
|
+
"text": "The content of the empty state"
|
|
136
|
+
},
|
|
137
|
+
"getter": false,
|
|
138
|
+
"setter": false,
|
|
139
|
+
"reflect": false
|
|
140
|
+
},
|
|
141
|
+
"enableAction": {
|
|
142
|
+
"type": "boolean",
|
|
143
|
+
"attribute": "enable-action",
|
|
144
|
+
"mutable": false,
|
|
145
|
+
"complexType": {
|
|
146
|
+
"original": "boolean",
|
|
147
|
+
"resolved": "boolean",
|
|
148
|
+
"references": {}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": "Wether to enable the action button"
|
|
155
|
+
},
|
|
156
|
+
"getter": false,
|
|
157
|
+
"setter": false,
|
|
158
|
+
"reflect": false,
|
|
159
|
+
"defaultValue": "true"
|
|
160
|
+
},
|
|
161
|
+
"actionText": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"attribute": "action-text",
|
|
164
|
+
"mutable": false,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "string",
|
|
167
|
+
"resolved": "string",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": false,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": "The text on the action button"
|
|
175
|
+
},
|
|
176
|
+
"getter": false,
|
|
177
|
+
"setter": false,
|
|
178
|
+
"reflect": false
|
|
179
|
+
},
|
|
180
|
+
"actionVariant": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"attribute": "action-variant",
|
|
183
|
+
"mutable": false,
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "ButtonVariant",
|
|
186
|
+
"resolved": "\"dropdown\" | \"primary\" | \"secondary\" | \"text\" | \"transparent\"",
|
|
187
|
+
"references": {
|
|
188
|
+
"ButtonVariant": {
|
|
189
|
+
"location": "import",
|
|
190
|
+
"path": "../../../components",
|
|
191
|
+
"id": "src/components.d.ts::ButtonVariant"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": false,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "The variant of the action"
|
|
200
|
+
},
|
|
201
|
+
"getter": false,
|
|
202
|
+
"setter": false,
|
|
203
|
+
"reflect": false,
|
|
204
|
+
"defaultValue": "'secondary'"
|
|
205
|
+
},
|
|
206
|
+
"actionIcon": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"attribute": "action-icon",
|
|
209
|
+
"mutable": false,
|
|
210
|
+
"complexType": {
|
|
211
|
+
"original": "IconVariant",
|
|
212
|
+
"resolved": "\"caret\" | \"double-caret\" | \"arrow\" | \"double-arrow\" | \"bell\" | \"chat\" | \"check-circle\" | \"cross-circle\" | \"error-circle\" | \"info-circle\" | \"phone\" | \"question-circle\" | \"headset\" | \"warning\" | \"attachment\" | \"description\" | \"document\" | \"folder\" | \"pdf\" | \"xls\" | \"bank\" | \"bread\" | \"cake\" | \"calculator\" | \"camera\" | \"car\" | \"certified\" | \"chair\" | \"checkmark\" | \"city\" | \"companies\" | \"company\" | \"credit-card\" | \"cutlery\" | \"department\" | \"diamond\" | \"docter\" | \"download\" | \"envelope\" | \"euro\" | \"exam\" | \"filter\" | \"flower\" | \"globe\" | \"globe-2\" | \"hash\" | \"hat\" | \"home\" | \"integration\" | \"language\" | \"laptop\" | \"location\" | \"mail\" | \"medal\" | \"menu\" | \"menu-arrow\" | \"minus\" | \"more\" | \"negative\" | \"other\" | \"pay\" | \"pencil\" | \"percent\" | \"pie-chart\" | \"placeholder\" | \"plus\" | \"power\" | \"receipt\" | \"reset\" | \"search\" | \"send\" | \"settings\" | \"shuffle\" | \"sick\" | \"signature\" | \"sparkle\" | \"star\" | \"stroller\" | \"tag\" | \"tasks\" | \"tools\" | \"tooth\" | \"train\" | \"trash\" | \"upload\" | \"wave\" | \"zipcode\" | \"eye\" | \"eye-closed\" | \"key\" | \"lock\" | \"unlocked\" | \"alarm\" | \"calendar\" | \"calendar-multi\" | \"calendar-free\" | \"calendar-not-free\" | \"clock\" | \"female\" | \"id\" | \"id-two\" | \"male\" | \"user\" | \"users\" | \"checkmarkThick\"",
|
|
213
|
+
"references": {
|
|
214
|
+
"IconVariant": {
|
|
215
|
+
"location": "import",
|
|
216
|
+
"path": "../../../components",
|
|
217
|
+
"id": "src/components.d.ts::IconVariant"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"required": false,
|
|
222
|
+
"optional": false,
|
|
223
|
+
"docs": {
|
|
224
|
+
"tags": [],
|
|
225
|
+
"text": "The icon for the action button"
|
|
226
|
+
},
|
|
227
|
+
"getter": false,
|
|
228
|
+
"setter": false,
|
|
229
|
+
"reflect": false
|
|
230
|
+
},
|
|
231
|
+
"actionLoading": {
|
|
232
|
+
"type": "boolean",
|
|
233
|
+
"attribute": "action-loading",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "boolean",
|
|
237
|
+
"resolved": "boolean",
|
|
238
|
+
"references": {}
|
|
239
|
+
},
|
|
240
|
+
"required": false,
|
|
241
|
+
"optional": false,
|
|
242
|
+
"docs": {
|
|
243
|
+
"tags": [],
|
|
244
|
+
"text": "Wether the action is loading"
|
|
245
|
+
},
|
|
246
|
+
"getter": false,
|
|
247
|
+
"setter": false,
|
|
248
|
+
"reflect": false,
|
|
249
|
+
"defaultValue": "false"
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
static get events() {
|
|
254
|
+
return [{
|
|
255
|
+
"method": "action",
|
|
256
|
+
"name": "action",
|
|
257
|
+
"bubbles": true,
|
|
258
|
+
"cancelable": true,
|
|
259
|
+
"composed": true,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": "The text on the action button"
|
|
263
|
+
},
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "MouseEvent",
|
|
266
|
+
"resolved": "MouseEvent",
|
|
267
|
+
"references": {
|
|
268
|
+
"MouseEvent": {
|
|
269
|
+
"location": "global",
|
|
270
|
+
"id": "global::MouseEvent"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}];
|
|
275
|
+
}
|
|
276
|
+
static get elementRef() { return "_el"; }
|
|
277
|
+
}
|
|
278
|
+
//# sourceMappingURL=empty-state.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/empty-state/empty-state.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,CAAC,EACD,IAAI,EACJ,KAAK,EAEL,OAAO,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,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,YAAY,IAAI,CACrB,uEACC,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAE,IAAI,CAAC,YAAY,GACzB,CACF;YACA,aAAa,CAAC,CAAC,CAAC,CAChB,YAAM,IAAI,EAAC,QAAQ,GAAG,CACtB,CAAC,CAAC,CAAC,CACH,IAAI,CAAC,MAAM,EAAE,MAAM,IAAI,CACtB,SAAG,KAAK,EAAC,+DAA+D,IACtE,IAAI,CAAC,MAAM,CACT,CACJ,CACD;YACA,cAAc,CAAC,CAAC,CAAC,CACjB,YAAM,IAAI,EAAC,SAAS,GAAG,CACvB,CAAC,CAAC,CAAC,CACH,IAAI,CAAC,OAAO,EAAE,MAAM,IAAI,CACvB,SAAG,KAAK,EAAC,8CAA8C,IACrD,IAAI,CAAC,OAAO,CACV,CACJ,CACD;YACA,IAAI,CAAC,YAAY;gBACjB,CAAC,aAAa,CAAC,CAAC,CAAC,CAChB,YAAM,IAAI,EAAC,QAAQ,GAAG,CACtB,CAAC,CAAC,CAAC,CACH,gBACC,KAAK,EAAC,MAAM,EACZ,IAAI,EAAE,IAAI,CAAC,UAAU,EACrB,OAAO,EAAE,IAAI,CAAC,aAAa,EAC3B,OAAO,EAAE,IAAI,CAAC,aAAa,IAE1B,IAAI,CAAC,UAAU,CACN,CACX,CAAC,CACE,CACN,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\th,\n\tProp,\n\tEvent,\n\tEventEmitter,\n\tElement,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n\tButtonVariant,\n\tIconVariant,\n\tIllustrationVariant,\n} from '../../../components';\nimport { asBoolean } from '../../../utils/as-boolean';\n\nconst emptyState = cva(\n\t['flex flex-col w-full items-center justify-start max-w-[20rem]'],\n\t{\n\t\tvariants: {\n\t\t\tenableAction: {\n\t\t\t\ttrue: 'cursor-pointer',\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-empty-state',\n\tstyleUrl: 'empty-state.component.css',\n\tshadow: true,\n})\nexport class EmptyState {\n\t/**\n\t * The variant of the illustration\n\t */\n\t@Prop() illustration: IllustrationVariant;\n\n\t/**\n\t * The header of the empty state\n\t */\n\t@Prop() header: string;\n\n\t/**\n\t * The content of the empty state\n\t */\n\t@Prop() content: string;\n\n\t/**\n\t * Wether to enable the action button\n\t */\n\t@Prop() enableAction: boolean = true;\n\n\t/**\n\t * The text on the action button\n\t */\n\t@Prop() actionText: string;\n\n\t/**\n\t * The variant of the action\n\t */\n\t@Prop() actionVariant: ButtonVariant = 'secondary';\n\n\t/**\n\t * The icon for the action button\n\t */\n\t@Prop() actionIcon: IconVariant;\n\n\t/**\n\t * Wether the action is loading\n\t */\n\t@Prop() actionLoading: boolean = false;\n\n\t/**\n\t * The text on the action button\n\t */\n\t@Event() action: EventEmitter<MouseEvent>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\trender() {\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasContentSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"content\"]'\n\t\t);\n\t\tconst hasActionSlot = !!this._el.querySelector(':scope > [slot=\"action\"]');\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={emptyState({\n\t\t\t\t\tenableAction: asBoolean(this.enableAction, true),\n\t\t\t\t})}\n\t\t\t\tonClick={ev =>\n\t\t\t\t\tthis.enableAction && !this.actionLoading\n\t\t\t\t\t\t? this.action.emit(ev)\n\t\t\t\t\t\t: undefined\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t{this.illustration && (\n\t\t\t\t\t<p-illustration\n\t\t\t\t\t\tclass='mb-8 text-teal'\n\t\t\t\t\t\tvariant={this.illustration}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{hasHeaderSlot ? (\n\t\t\t\t\t<slot name='header' />\n\t\t\t\t) : (\n\t\t\t\t\tthis.header?.length && (\n\t\t\t\t\t\t<p class='my-0 text-center font-ambit text-sm font-bold text-black-teal'>\n\t\t\t\t\t\t\t{this.header}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t)\n\t\t\t\t)}\n\t\t\t\t{hasContentSlot ? (\n\t\t\t\t\t<slot name='content' />\n\t\t\t\t) : (\n\t\t\t\t\tthis.content?.length && (\n\t\t\t\t\t\t<p class='my-0 text-center text-sm text-black-teal-300'>\n\t\t\t\t\t\t\t{this.content}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t)\n\t\t\t\t)}\n\t\t\t\t{this.enableAction &&\n\t\t\t\t\t(hasActionSlot ? (\n\t\t\t\t\t\t<slot name='action' />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tclass='mt-4'\n\t\t\t\t\t\t\ticon={this.actionIcon}\n\t\t\t\t\t\t\tloading={this.actionLoading}\n\t\t\t\t\t\t\tvariant={this.actionVariant}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.actionText}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t))}\n\t\t\t</div>\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*{box-sizing:border-box}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.h-4{height:1rem!important}.h-5{height:1.25rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.flex-col{flex-direction:column!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.rounded-lg{border-radius:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.text-black-teal-200{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}
|
|
1
|
+
*{box-sizing:border-box}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.h-4{height:1rem!important}.h-5{height:1.25rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.flex-col{flex-direction:column!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.rounded-lg{border-radius:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.text-black-teal-200{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.empty\:hidden:empty{display:none!important}
|
|
@@ -92,11 +92,11 @@ export class FieldContainer {
|
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
94
|
const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
|
|
95
|
-
let contentSlot = (h("slot", { key: '
|
|
95
|
+
let contentSlot = (h("slot", { key: '7933bda4268fa8e6d31e41e52ed3a2e6dd5807d0', name: 'content', slot: 'trigger' }));
|
|
96
96
|
if (this.loading) {
|
|
97
|
-
contentSlot = (h("p-loader", { key: '
|
|
97
|
+
contentSlot = (h("p-loader", { key: 'e4b0af11f5b33973a9171912ace0c60ebb49b682', variant: 'ghost', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger' }));
|
|
98
98
|
}
|
|
99
|
-
return (h(Host, { key: '
|
|
99
|
+
return (h(Host, { key: '0011fc0b05e401da5b27896206f3fdded96dc102', class: 'p-field-container' }, h("div", { key: '354d65c9f107f5ba555e10137fc98fbda648c8ee', class: 'flex w-inherit flex-col gap-1' }, h("div", { key: 'e6370f8190f09080d87e80d030cccf0b41c729e3', class: 'flex items-end justify-between gap-1 empty:hidden' }, !!label?.length && (h("div", { key: 'c62402a95033e8f8f5337eafbcfc8b31649c8948', class: 'text-xs font-medium text-black-teal-300', onClick: () => this.focus.emit() }, label)), (!asBoolean(this.required) || helper || hasHeaderSlot) && (h("div", { key: '1d15b7f1240e445d769a91ad116caf4c9f9da7e6', class: 'flex items-center gap-1' }, !asBoolean(this.required) && this.variant === 'write' && (h("span", { key: '3194e10b9b171be76f03c7b19b1bd0bc07c78f6a', class: 'text-xs font-medium text-black-teal-200' }, this.optionalTemplate())), (helper || hasHeaderSlot) && (h(Fragment, { key: 'd6757b07e2c6bfe60956cd12c201675aa802eeec' }, hasHeaderSlot && h("slot", { key: '9a4449dc7daa92e4f7c5fa83f07cddf948a8bf91', name: 'header' }), helper && (h("p-helper", { key: '51212157e8fede4731a3ddfb6d1ea5f316c75fb9', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))))), h("p-tooltip", { key: '151fbce9396bfbca865f8367829da4626147585e', 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: 'a59fffc7b3a7e1b6dbc03d6521b7333bdecb913d', name: 'error', slot: 'content' })), contentSlot))));
|
|
100
100
|
}
|
|
101
101
|
async _setLocales() {
|
|
102
102
|
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":"AAAA,OAAO,EACN,SAAS,EACT,OAAO,EAEP,CAAC,EACD,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,MAAM,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,iBAAiB,EACjB,yBAAyB,GACzB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;IACzC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;SACX;QACD,IAAI,EAAE;Y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AAO,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 {\n\tComponent,\n\tElement,\n\tEventEmitter,\n\th,\n\tHost,\n\tEvent,\n\tProp,\n\tFragment,\n\tState,\n\tListen,\n} from '@stencil/core';\nimport {\n\tformatTranslation,\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\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<div class='flex w-inherit flex-col gap-1'>\n\t\t\t\t\t<div class='flex items-end justify-between gap-1'>\n\t\t\t\t\t\t{label && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass='text-xs font-medium text-black-teal-300'\n\t\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{(!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</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"field-container.component.js","sourceRoot":"","sources":["../../../../../src/components/molecules/field/container/field-container.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,OAAO,EAEP,CAAC,EACD,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,MAAM,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,iBAAiB,EACjB,yBAAyB,GACzB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;IACzC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;SACX;QACD,IAAI,EAAE;YACL,IAAI,EAAE,IAAI;YACV,EAAE,EAAE,IAAI;SACR;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,KAAK;SACZ;QACD;YACC,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,KAAK;SACZ;QAED;YACC,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,KAAK;SACZ;QACD;YACC,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,KAAK;SACZ;KACD;CACD,CAAC,CAAC;AASH,MAAM,OAAO,cAAc;IAClB,wBAAwB,GAAiB,GAAG,EAAE,CACrD,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAE3C;;OAEG;IACK,KAAK,CAA2B;IAExC;;OAEG;IACK,OAAO,GAAY,KAAK,CAAC;IAEjC;;OA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\n\tState,\n\tListen,\n} from '@stencil/core';\nimport {\n\tformatTranslation,\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\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<div class='flex w-inherit flex-col gap-1'>\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</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"]}
|
|
@@ -53,11 +53,13 @@ const field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {
|
|
|
53
53
|
class: 'min-h-5 text-sm',
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
+
variant: 'write',
|
|
56
57
|
focused: false,
|
|
57
58
|
error: false,
|
|
58
59
|
class: 'border-black-teal-100',
|
|
59
60
|
},
|
|
60
61
|
{
|
|
62
|
+
variant: 'write',
|
|
61
63
|
disabled: false,
|
|
62
64
|
focused: true,
|
|
63
65
|
error: false,
|
|
@@ -253,21 +255,21 @@ export class Field {
|
|
|
253
255
|
}
|
|
254
256
|
render() {
|
|
255
257
|
const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
256
|
-
return (h(Host, { key: '
|
|
258
|
+
return (h(Host, { key: '72dfca8f412d6c4efad0ebb122ed1e79f4d3582b', class: 'p-field' }, h("p-field-container", { key: '9b461a2629c5bd59925619dadfeb716e1fc5e2dc', forceShowTooltip: this.forceShowTooltip || this._focused, 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: '8b862d788f9d3b313b1422dfa58e43d5c72451a9', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '7e0c0b333e6c6b653693a1440ea8783f5f7569de', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '780cacfd5eea8bc8954427b9734a5100833de166', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '152e2cd88004ee00115e51c9195765b062e001f5', name: 'error', slot: 'error' })), h("div", { key: '452fce9332e2ac6cdf042268a3bd782f9a5fcc2d', class: field({
|
|
257
259
|
error: !!this.error?.length,
|
|
258
260
|
disabled: asBoolean(this.disabled),
|
|
259
261
|
focused: asBoolean(this.focused) || this._focused,
|
|
260
262
|
size: this.size,
|
|
261
263
|
variant: this.variant,
|
|
262
264
|
isTextarea: this.type === 'textarea',
|
|
263
|
-
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
265
|
+
}), title: this.variant === 'read' && !hasValueSlot ? this.value : undefined, slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: 'a910ac1adaa8268e3b3900ad427bc71c0bad7cb1', class: prefixAndSuffix({
|
|
264
266
|
error: !!this.error?.length,
|
|
265
267
|
disabled: asBoolean(this.disabled),
|
|
266
268
|
focused: asBoolean(this.focused) || this._focused,
|
|
267
269
|
isText: typeof suffix === 'string',
|
|
268
270
|
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: cn('flex', {
|
|
269
271
|
'mt-[0.125rem]': this.variant === 'read' && this.size === 'base',
|
|
270
|
-
}), variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
272
|
+
}), variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '4c6fc4c52ad234888028ba4b458e6ce6a0de8aa0', class: prefixAndSuffix({
|
|
271
273
|
error: !!this.error?.length,
|
|
272
274
|
disabled: asBoolean(this.disabled),
|
|
273
275
|
focused: asBoolean(this.focused) || this._focused,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.component.js","sourceRoot":"","sources":["../../../../../src/components/molecules/field/field/field.component.tsx"],"names":[],"mappings":"AACA,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;AAQ/C,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,MAAM,KAAK,GAAG,GAAG,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,yBAAyB,CAAC,EAAE;IACzE,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,IAAI,EAAE,sBAAsB;YAC5B,KAAK,EAAE,aAAa;SACpB;QACD,IAAI,EAAE;YACL,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,IAAI;SACV;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,iCAAiC;SACvC;QACD,OAAO,EAAE;YACR,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,KAAK,EAAE;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,UAAU,EAAE;YACX,KAAK,EAAE,IAAI;YACX,IAAI,EAA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U,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,GAAG,CAAC,CAAC;YAC9C,OAAO;QACR,CAAC;QAED,IAAI,CAAC,WAAW,EAAE,CAAC;IACpB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Placement } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { HTMLInputTypeAttribute } from 'react';\nimport { RotateOptions } from '../../../../types/tailwind';\nimport {\n\tIconFlipOptions,\n\tIconVariant,\n} from '../../../atoms/icon/icon.component';\nimport { templateFunc } from '../container/field-container.component';\nimport { cn } from '../../../../utils/cn';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nconst field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: 'border-0 items-start',\n\t\t\twrite: 'border px-2',\n\t\t},\n\t\tsize: {\n\t\t\tsm: null,\n\t\t\tbase: null,\n\t\t},\n\t\tdisabled: {\n\t\t\tfalse: 'bg-white',\n\t\t\ttrue: 'bg-white-600 cursor-not-allowed',\n\t\t},\n\t\tfocused: {\n\t\t\tfalse: null,\n\t\t\ttrue: null,\n\t\t},\n\t\terror: {\n\t\t\tfalse: null,\n\t\t\ttrue: null,\n\t\t},\n\t\tisTextarea: {\n\t\t\tfalse: null,\n\t\t\ttrue: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tsize: 'sm',\n\t\t\tvariant: 'write',\n\t\t\tisTextarea: false,\n\t\t\tclass: 'h-6',\n\t\t},\n\t\t{\n\t\t\tsize: 'base',\n\t\t\tvariant: 'write',\n\t\t\tisTextarea: false,\n\t\t\tclass: 'h-8',\n\t\t},\n\n\t\t{\n\t\t\tsize: 'sm',\n\t\t\tvariant: 'read',\n\t\t\tclass: 'min-h-4 text-xs',\n\t\t},\n\t\t{\n\t\t\tsize: 'base',\n\t\t\tvariant: 'read',\n\t\t\tclass: 'min-h-5 text-sm',\n\t\t},\n\n\t\t{\n\t\t\tfocused: false,\n\t\t\terror: false,\n\t\t\tclass: 'border-black-teal-100',\n\t\t},\n\t\t{\n\t\t\tdisabled: false,\n\t\t\tfocused: true,\n\t\t\terror: false,\n\t\t\tclass:\n\t\t\t\t'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',\n\t\t},\n\n\t\t{\n\t\t\tdisabled: false,\n\t\t\terror: true,\n\t\t\tclass: 'border-negative-red',\n\t\t},\n\t\t{\n\t\t\tdisabled: false,\n\t\t\tfocused: true,\n\t\t\terror: true,\n\t\t\tclass: 'ring ring-negative-red-50 selection:bg-negative-red-50',\n\t\t},\n\t],\n});\n\nconst input = cva(\n\t'text-sm placeholder:text-sm placeholder:text-black-teal-200 text-black-teal border-none outline-none focus:outline-none bg-transparent flex-1 min-w-0',\n\t{\n\t\tvariants: {\n\t\t\tisTextarea: {\n\t\t\t\tfalse: 'h-full',\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst prefixAndSuffix = cva(\n\t['flex flex-shrink-0 justify-center items-center text-center'],\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'text-black-teal-100',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tisText: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'text-sm',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-300',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-500',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red-800',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-field',\n\tstyleUrl: './field.component.css',\n\tshadow: true,\n})\nexport class Field {\n\t/**\n\t * The variant of the field\n\t */\n\t@Prop() variant: 'read' | 'write' = 'write';\n\n\t/**\n\t * The size of the field\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The type of the field\n\t */\n\t@Prop() type: HTMLInputTypeAttribute | 'textarea' | 'slot' = 'text';\n\n\t/**\n\t * The size of the field\n\t */\n\t@Prop() properties: any | string = {};\n\n\t/**\n\t * The prefix of the field\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the field\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the field\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The value of the input\n\t */\n\t@Prop() value: string;\n\n\t/**\n\t * The label of the field\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * Wether the field is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The helper of the field\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean = true;\n\n\t/**\n\t * Wether to autofocus the field\n\t */\n\t@Prop({ reflect: true }) autofocus: boolean = false;\n\n\t/**\n\t * The error to display\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Wether the field is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the field is focused\n\t */\n\t@Prop({ reflect: true }) focused: boolean = false;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * Wether to select all text on focus\n\t */\n\t@Prop({ reflect: true }) selectAllOnFocus: boolean = true;\n\n\t/**\n\t * The method to use when focusing the input\n\t */\n\t@Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc;\n\n\t/**\n\t * Event whenever the value changes\n\t */\n\t@Event({ bubbles: false }) valueChange: EventEmitter<string>;\n\n\t/**\n\t * Event whenever the input ref changes\n\t */\n\t@Event() inputRefChange: EventEmitter<HTMLInputElement | HTMLTextAreaElement>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _focused = false;\n\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\n\tcomponentDidLoad() {\n\t\tthis._checkAutoFocus();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\thasHeaderSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHelperSlot,\n\t\t\thasErrorSlot,\n\t\t\thasValueSlot,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host class='p-field'>\n\t\t\t\t<p-field-container\n\t\t\t\t\tforceShowTooltip={this.forceShowTooltip || this._focused}\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\tloading={this.loading}\n\t\t\t\t\tloadingSize={this.size}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\trequired={this.required}\n\t\t\t\t\tvariant={this.variant}\n\t\t\t\t>\n\t\t\t\t\t{hasLabelSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='label'\n\t\t\t\t\t\t\tslot='label'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHeaderSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='header'\n\t\t\t\t\t\t\tslot='header'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHelperSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='helper'\n\t\t\t\t\t\t\tslot='helper'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\tslot='error'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={field({\n\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\t\t\tfocused: asBoolean(this.focused) || this._focused,\n\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\t\tisTextarea: this.type === 'textarea',\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tslot='content'\n\t\t\t\t\t>\n\t\t\t\t\t\t{(prefix || (this.icon && this.iconPosition === 'start')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffix({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\t\t\t\t\tfocused: asBoolean(this.focused) || this._focused,\n\t\t\t\t\t\t\t\t\tisText: typeof suffix === 'string',\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'start' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass={cn('flex', {\n\t\t\t\t\t\t\t\t\t\t\t'mt-[0.125rem]':\n\t\t\t\t\t\t\t\t\t\t\t\tthis.variant === 'read' && this.size === 'base',\n\t\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tprefix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{this._getContent(hasValueSlot)}\n\n\t\t\t\t\t\t{(suffix || (this.icon && this.iconPosition === 'end')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffix({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\t\t\t\t\tfocused: asBoolean(this.focused) || this._focused,\n\t\t\t\t\t\t\t\t\tisText: typeof suffix === 'string',\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'end' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tsuffix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</p-field-container>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('focusin')\n\thandleFocusIn() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = true;\n\t\tthis._selectAll();\n\t}\n\n\t@Listen('focusout')\n\thandleFocusOut() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = false;\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasPrefixSlot = !!this._el.querySelector(':scope > [slot=\"prefix\"]');\n\t\tconst hasSuffixSlot = !!this._el.querySelector(':scope > [slot=\"suffix\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\t\tconst hasValueSlot = !!this._el.querySelector(':scope > [slot=\"value\"]');\n\n\t\tconst prefix = hasPrefixSlot ? <slot name='prefix' /> : this.prefix;\n\t\tconst suffix = hasSuffixSlot ? <slot name='suffix' /> : this.suffix;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\tthis.error && typeof this.error === 'string' && this.error !== 'true';\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasPrefixSlot,\n\t\t\thasSuffixSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thasValueSlot,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n\n\tprivate _getContent(hasValueSlot = false) {\n\t\tif (this.variant === 'read') {\n\t\t\treturn hasValueSlot ? (\n\t\t\t\t<slot name='value' />\n\t\t\t) : !!this.value && this.value.length > 0 ? (\n\t\t\t\tthis.value\n\t\t\t) : (\n\t\t\t\t'—'\n\t\t\t);\n\t\t}\n\n\t\tif (this.type === 'slot') {\n\t\t\treturn <slot name='input' />;\n\t\t}\n\n\t\tconst props = {\n\t\t\tclass: input({\n\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\tisTextarea: this.type === 'textarea',\n\t\t\t}),\n\t\t\tvalue: this.value,\n\t\t\tplaceholder: this.placeholder,\n\t\t\tdisabled: this.disabled,\n\t\t\tonInput: (ev: Event) => this._valueChange(ev),\n\t\t};\n\n\t\tlet properties = this.properties ?? {};\n\t\tif (typeof properties === 'string') {\n\t\t\tproperties = JSON.parse(this.properties);\n\t\t}\n\n\t\tif (this.type === 'textarea') {\n\t\t\treturn (\n\t\t\t\t<textarea\n\t\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t\t{...props}\n\t\t\t\t\t{...properties}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<input\n\t\t\t\ttype={this.type}\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>\n\t\t);\n\t}\n\n\tprivate _setInputRef(ref: HTMLInputElement | HTMLTextAreaElement) {\n\t\tthis._inputRef = ref;\n\t\tthis.inputRefChange.emit(ref);\n\t}\n\n\tprivate _focusInput() {\n\t\tif (this._inputRef) {\n\t\t\tthis._inputRef.focus();\n\t\t\treturn;\n\t\t}\n\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\t\t(input as HTMLElement)[this.focusMethod]();\n\t}\n\n\tprivate _selectAll() {\n\t\tif (!this._inputRef || !this.selectAllOnFocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._inputRef.select();\n\t}\n\n\tprivate _valueChange(ev) {\n\t\tconst value = (ev.target as HTMLTextAreaElement | HTMLInputElement).value;\n\t\tthis.value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _checkAutoFocus() {\n\t\tif (!this.autofocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._inputRef) {\n\t\t\tsetTimeout(() => this._checkAutoFocus(), 100);\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focusInput();\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"field.component.js","sourceRoot":"","sources":["../../../../../src/components/molecules/field/field/field.component.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Placement } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { HTMLInputTypeAttribute } from 'react';\nimport { RotateOptions } from '../../../../types/tailwind';\nimport {\n\tIconFlipOptions,\n\tIconVariant,\n} from '../../../atoms/icon/icon.component';\nimport { templateFunc } from '../container/field-container.component';\nimport { cn } from '../../../../utils/cn';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nconst field = cva(['flex gap-2', 'w-inherit', 'border-solid rounded-lg'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: 'border-0 items-start',\n\t\t\twrite: 'border px-2',\n\t\t},\n\t\tsize: {\n\t\t\tsm: null,\n\t\t\tbase: null,\n\t\t},\n\t\tdisabled: {\n\t\t\tfalse: 'bg-white',\n\t\t\ttrue: 'bg-white-600 cursor-not-allowed',\n\t\t},\n\t\tfocused: {\n\t\t\tfalse: null,\n\t\t\ttrue: null,\n\t\t},\n\t\terror: {\n\t\t\tfalse: null,\n\t\t\ttrue: null,\n\t\t},\n\t\tisTextarea: {\n\t\t\tfalse: null,\n\t\t\ttrue: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tsize: 'sm',\n\t\t\tvariant: 'write',\n\t\t\tisTextarea: false,\n\t\t\tclass: 'h-6',\n\t\t},\n\t\t{\n\t\t\tsize: 'base',\n\t\t\tvariant: 'write',\n\t\t\tisTextarea: false,\n\t\t\tclass: 'h-8',\n\t\t},\n\n\t\t{\n\t\t\tsize: 'sm',\n\t\t\tvariant: 'read',\n\t\t\tclass: 'min-h-4 text-xs',\n\t\t},\n\t\t{\n\t\t\tsize: 'base',\n\t\t\tvariant: 'read',\n\t\t\tclass: 'min-h-5 text-sm',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tfocused: false,\n\t\t\terror: false,\n\t\t\tclass: 'border-black-teal-100',\n\t\t},\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tdisabled: false,\n\t\t\tfocused: true,\n\t\t\terror: false,\n\t\t\tclass:\n\t\t\t\t'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',\n\t\t},\n\n\t\t{\n\t\t\tdisabled: false,\n\t\t\terror: true,\n\t\t\tclass: 'border-negative-red',\n\t\t},\n\t\t{\n\t\t\tdisabled: false,\n\t\t\tfocused: true,\n\t\t\terror: true,\n\t\t\tclass: 'ring ring-negative-red-50 selection:bg-negative-red-50',\n\t\t},\n\t],\n});\n\nconst input = cva(\n\t'text-sm placeholder:text-sm placeholder:text-black-teal-200 text-black-teal border-none outline-none focus:outline-none bg-transparent flex-1 min-w-0',\n\t{\n\t\tvariants: {\n\t\t\tisTextarea: {\n\t\t\t\tfalse: 'h-full',\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst prefixAndSuffix = cva(\n\t['flex flex-shrink-0 justify-center items-center text-center'],\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'text-black-teal-100',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tisText: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'text-sm',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-300',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-500',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red-800',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-field',\n\tstyleUrl: './field.component.css',\n\tshadow: true,\n})\nexport class Field {\n\t/**\n\t * The variant of the field\n\t */\n\t@Prop() variant: 'read' | 'write' = 'write';\n\n\t/**\n\t * The size of the field\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The type of the field\n\t */\n\t@Prop() type: HTMLInputTypeAttribute | 'textarea' | 'slot' = 'text';\n\n\t/**\n\t * The size of the field\n\t */\n\t@Prop() properties: any | string = {};\n\n\t/**\n\t * The prefix of the field\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the field\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the field\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The value of the input\n\t */\n\t@Prop() value: string;\n\n\t/**\n\t * The label of the field\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * Wether the field is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The helper of the field\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean = true;\n\n\t/**\n\t * Wether to autofocus the field\n\t */\n\t@Prop({ reflect: true }) autofocus: boolean = false;\n\n\t/**\n\t * The error to display\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Wether the field is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the field is focused\n\t */\n\t@Prop({ reflect: true }) focused: boolean = false;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * Wether to select all text on focus\n\t */\n\t@Prop({ reflect: true }) selectAllOnFocus: boolean = true;\n\n\t/**\n\t * The method to use when focusing the input\n\t */\n\t@Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc;\n\n\t/**\n\t * Event whenever the value changes\n\t */\n\t@Event({ bubbles: false }) valueChange: EventEmitter<string>;\n\n\t/**\n\t * Event whenever the input ref changes\n\t */\n\t@Event() inputRefChange: EventEmitter<HTMLInputElement | HTMLTextAreaElement>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _focused = false;\n\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\n\tcomponentDidLoad() {\n\t\tthis._checkAutoFocus();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\thasHeaderSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHelperSlot,\n\t\t\thasErrorSlot,\n\t\t\thasValueSlot,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host class='p-field'>\n\t\t\t\t<p-field-container\n\t\t\t\t\tforceShowTooltip={this.forceShowTooltip || this._focused}\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\tloading={this.loading}\n\t\t\t\t\tloadingSize={this.size}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\trequired={this.required}\n\t\t\t\t\tvariant={this.variant}\n\t\t\t\t>\n\t\t\t\t\t{hasLabelSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='label'\n\t\t\t\t\t\t\tslot='label'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHeaderSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='header'\n\t\t\t\t\t\t\tslot='header'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHelperSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='helper'\n\t\t\t\t\t\t\tslot='helper'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\tslot='error'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={field({\n\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\t\t\tfocused: asBoolean(this.focused) || this._focused,\n\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\t\tisTextarea: this.type === 'textarea',\n\t\t\t\t\t\t})}\n\t\t\t\t\t\ttitle={\n\t\t\t\t\t\t\tthis.variant === 'read' && !hasValueSlot ? this.value : undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t\tslot='content'\n\t\t\t\t\t>\n\t\t\t\t\t\t{(prefix || (this.icon && this.iconPosition === 'start')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffix({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\t\t\t\t\tfocused: asBoolean(this.focused) || this._focused,\n\t\t\t\t\t\t\t\t\tisText: typeof suffix === 'string',\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'start' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass={cn('flex', {\n\t\t\t\t\t\t\t\t\t\t\t'mt-[0.125rem]':\n\t\t\t\t\t\t\t\t\t\t\t\tthis.variant === 'read' && this.size === 'base',\n\t\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tprefix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{this._getContent(hasValueSlot)}\n\n\t\t\t\t\t\t{(suffix || (this.icon && this.iconPosition === 'end')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffix({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\t\t\t\t\tfocused: asBoolean(this.focused) || this._focused,\n\t\t\t\t\t\t\t\t\tisText: typeof suffix === 'string',\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'end' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tsuffix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</p-field-container>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('focusin')\n\thandleFocusIn() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = true;\n\t\tthis._selectAll();\n\t}\n\n\t@Listen('focusout')\n\thandleFocusOut() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = false;\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasPrefixSlot = !!this._el.querySelector(':scope > [slot=\"prefix\"]');\n\t\tconst hasSuffixSlot = !!this._el.querySelector(':scope > [slot=\"suffix\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\t\tconst hasValueSlot = !!this._el.querySelector(':scope > [slot=\"value\"]');\n\n\t\tconst prefix = hasPrefixSlot ? <slot name='prefix' /> : this.prefix;\n\t\tconst suffix = hasSuffixSlot ? <slot name='suffix' /> : this.suffix;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\tthis.error && typeof this.error === 'string' && this.error !== 'true';\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasPrefixSlot,\n\t\t\thasSuffixSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thasValueSlot,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n\n\tprivate _getContent(hasValueSlot = false) {\n\t\tif (this.variant === 'read') {\n\t\t\treturn hasValueSlot ? (\n\t\t\t\t<slot name='value' />\n\t\t\t) : !!this.value && this.value.length > 0 ? (\n\t\t\t\tthis.value\n\t\t\t) : (\n\t\t\t\t'—'\n\t\t\t);\n\t\t}\n\n\t\tif (this.type === 'slot') {\n\t\t\treturn <slot name='input' />;\n\t\t}\n\n\t\tconst props = {\n\t\t\tclass: input({\n\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\tisTextarea: this.type === 'textarea',\n\t\t\t}),\n\t\t\tvalue: this.value,\n\t\t\tplaceholder: this.placeholder,\n\t\t\tdisabled: this.disabled,\n\t\t\tonInput: (ev: Event) => this._valueChange(ev),\n\t\t};\n\n\t\tlet properties = this.properties ?? {};\n\t\tif (typeof properties === 'string') {\n\t\t\tproperties = JSON.parse(this.properties);\n\t\t}\n\n\t\tif (this.type === 'textarea') {\n\t\t\treturn (\n\t\t\t\t<textarea\n\t\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t\t{...props}\n\t\t\t\t\t{...properties}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<input\n\t\t\t\ttype={this.type}\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>\n\t\t);\n\t}\n\n\tprivate _setInputRef(ref: HTMLInputElement | HTMLTextAreaElement) {\n\t\tthis._inputRef = ref;\n\t\tthis.inputRefChange.emit(ref);\n\t}\n\n\tprivate _focusInput() {\n\t\tif (this._inputRef) {\n\t\t\tthis._inputRef.focus();\n\t\t\treturn;\n\t\t}\n\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\t\t(input as HTMLElement)[this.focusMethod]();\n\t}\n\n\tprivate _selectAll() {\n\t\tif (!this._inputRef || !this.selectAllOnFocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._inputRef.select();\n\t}\n\n\tprivate _valueChange(ev) {\n\t\tconst value = (ev.target as HTMLTextAreaElement | HTMLInputElement).value;\n\t\tthis.value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _checkAutoFocus() {\n\t\tif (!this.autofocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._inputRef) {\n\t\t\tsetTimeout(() => this._checkAutoFocus(), 100);\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focusInput();\n\t}\n}\n"]}
|
|
@@ -62,11 +62,11 @@ export class PaginationSize {
|
|
|
62
62
|
this._setLocales();
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: '220e266a1ef8d235a7598d8e61d970b08526b8de', class: paginationSize({ hidden: asBoolean(this.hidden) }) }, h("p-dropdown", { key: '105c4d57d98cf0b862b0e59eccd7383477393c95', variant: 'dark-teal', placement: 'top-start', chevronDirection: 'down', calculateWidth: true, onIsOpen: ({ detail }) => (this.dropdownIsOpen = detail) }, h("div", { key: '7e2b789683295acfc6e54f145d595555fb3c98c0', class: trigger({
|
|
66
66
|
active: this.dropdownIsOpen,
|
|
67
|
-
}), slot: 'trigger' }, h("p", { key: '
|
|
67
|
+
}), slot: 'trigger' }, h("p", { key: '374186e36621d8d6dbb431fb3d32fbbc38ea67c2', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap' }, this.itemTemplate
|
|
68
68
|
? this.itemTemplate(this.size)
|
|
69
|
-
: this._defaultItemTemplate(this.size)), h("p-icon", { key: '
|
|
69
|
+
: this._defaultItemTemplate(this.size)), h("p-icon", { key: '303a56c0d2eda0e21b59efb3644f43ec6012838f', class: 'flex-shrink-0', variant: 'double-caret', size: 'sm' })), h("slot", { key: '97fd2f68cb93f140c4182c68bddf822ebb9dcf78', slot: 'items' }, this.sizeOptions.map(option => (h("p-dropdown-menu-item", { active: option === this.size, onClick: () => this._changeSize(option) }, this.itemTemplate
|
|
70
70
|
? this.itemTemplate(option)
|
|
71
71
|
: this._defaultItemTemplate(option))))))));
|
|
72
72
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.table{display:table!important}.table-cell{display:table-cell!important}.h-6{height:1.5rem!important}.w-full{width:100%!important}.flex-1{flex:1 1 0%!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.rounded{border-radius:.25rem!important}
|