@paperless/core 2.0.1-beta.67 → 2.0.1-beta.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/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/build/{p-d8ba8d04.entry.js → 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/build/{p-2588c4db.entry.js → 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/{paperless/p-9bd484cf.entry.js → build/p-b7040bb6.entry.js} +2 -2
- package/dist/{paperless/p-d5e0949a.entry.js → build/p-b8604040.entry.js} +2 -2
- package/dist/build/{p-49650464.entry.js → 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 +7 -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 +3 -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-Ch2-P1F7.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-Do1io1QE.js → p-CB3gv9g7.js} +10 -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 +7 -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/paperless/{p-d8ba8d04.entry.js → 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/paperless/{p-2588c4db.entry.js → 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/{build/p-9bd484cf.entry.js → paperless/p-b7040bb6.entry.js} +2 -2
- package/dist/{build/p-d5e0949a.entry.js → paperless/p-b8604040.entry.js} +2 -2
- package/dist/paperless/{p-49650464.entry.js → 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-26d8aace.entry.js +0 -2
- package/dist/build/p-26d8aace.entry.js.map +0 -1
- 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-7687d39a.entry.js +0 -2
- package/dist/build/p-7687d39a.entry.js.map +0 -1
- 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-c7f70702.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-CKdnfAon.js.map +0 -1
- package/dist/components/p-Cdv_rF7b.js.map +0 -1
- package/dist/components/p-Ch2-P1F7.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-Do1io1QE.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/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-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-7687d39a.entry.js +0 -2
- package/dist/paperless/p-7687d39a.entry.js.map +0 -1
- 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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { getTableCellColumnClasses, objectGetByPath } from "../../../../utils";
|
|
3
|
+
import { cn } from "../../../../utils/cn";
|
|
3
4
|
/*
|
|
4
5
|
With this, we shall hack the system in ways no one would ever have thought.
|
|
5
6
|
|
|
@@ -82,10 +83,6 @@ export class TableCell {
|
|
|
82
83
|
* The value of the column
|
|
83
84
|
*/
|
|
84
85
|
value;
|
|
85
|
-
/**
|
|
86
|
-
* Wether the table has actions
|
|
87
|
-
*/
|
|
88
|
-
tableHasActions = false;
|
|
89
86
|
/**
|
|
90
87
|
* The checkbox to show
|
|
91
88
|
*/
|
|
@@ -108,33 +105,25 @@ export class TableCell {
|
|
|
108
105
|
};
|
|
109
106
|
}
|
|
110
107
|
render() {
|
|
111
|
-
return (h(Host, { key: '
|
|
112
|
-
'p-table-cell': true,
|
|
113
|
-
[`variant-${this.variant}`]: true,
|
|
114
|
-
...this._getColumnClasses(),
|
|
115
|
-
} }, this.checkbox, this._getContent()));
|
|
108
|
+
return (h(Host, { key: 'a41d0f01aef7ca7ad10f0628ff10d21de0990c21', class: this._getColumnClasses() }, this.checkbox, this._getContent()));
|
|
116
109
|
}
|
|
117
110
|
_getContent() {
|
|
118
111
|
if (this.variant === 'loading') {
|
|
119
112
|
return (h("p-loader", { variant: 'ghost', class: 'h-6 w-full flex-1 rounded' }));
|
|
120
113
|
}
|
|
121
|
-
|
|
122
|
-
return h("slot", { name: 'actions' });
|
|
123
|
-
}
|
|
124
|
-
return (h("div", { class: {
|
|
125
|
-
flex: true,
|
|
114
|
+
return (h("div", { class: cn('flex', {
|
|
126
115
|
'justify-start': this.definition.align === 'start',
|
|
127
116
|
'justify-center': this.definition.align === 'center',
|
|
128
117
|
'justify-end': this.definition.align === 'end',
|
|
129
|
-
} }, this.variant === 'header' ? (this.data.value) : this.definition.useSlot ? (h("slot", null)) : (this.template(this.data))));
|
|
118
|
+
}) }, this.variant === 'header' ? (this.data.value) : this.definition.useSlot ? (h("slot", null)) : (this.template(this.data))));
|
|
130
119
|
}
|
|
131
120
|
_getColumnClasses() {
|
|
132
|
-
return getTableCellColumnClasses(this.definition, this.variant
|
|
121
|
+
return getTableCellColumnClasses(this.definition, this.variant);
|
|
133
122
|
}
|
|
134
123
|
static get is() { return "p-table-cell"; }
|
|
135
124
|
static get originalStyleUrls() {
|
|
136
125
|
return {
|
|
137
|
-
"$": ["table-cell.component.
|
|
126
|
+
"$": ["table-cell.component.css"]
|
|
138
127
|
};
|
|
139
128
|
}
|
|
140
129
|
static get styleUrls() {
|
|
@@ -149,8 +138,8 @@ export class TableCell {
|
|
|
149
138
|
"attribute": "variant",
|
|
150
139
|
"mutable": false,
|
|
151
140
|
"complexType": {
|
|
152
|
-
"original": "'default' | 'loading' | 'header'
|
|
153
|
-
"resolved": "\"
|
|
141
|
+
"original": "'default' | 'loading' | 'header'",
|
|
142
|
+
"resolved": "\"default\" | \"header\" | \"loading\"",
|
|
154
143
|
"references": {}
|
|
155
144
|
},
|
|
156
145
|
"required": false,
|
|
@@ -212,7 +201,7 @@ export class TableCell {
|
|
|
212
201
|
"references": {
|
|
213
202
|
"TableColumn": {
|
|
214
203
|
"location": "import",
|
|
215
|
-
"path": "
|
|
204
|
+
"path": "../../../helpers/table/column/table-column.component",
|
|
216
205
|
"id": "src/components/helpers/table/column/table-column.component.tsx::TableColumn"
|
|
217
206
|
}
|
|
218
207
|
}
|
|
@@ -264,26 +253,6 @@ export class TableCell {
|
|
|
264
253
|
"setter": false,
|
|
265
254
|
"reflect": false
|
|
266
255
|
},
|
|
267
|
-
"tableHasActions": {
|
|
268
|
-
"type": "boolean",
|
|
269
|
-
"attribute": "table-has-actions",
|
|
270
|
-
"mutable": false,
|
|
271
|
-
"complexType": {
|
|
272
|
-
"original": "boolean",
|
|
273
|
-
"resolved": "boolean",
|
|
274
|
-
"references": {}
|
|
275
|
-
},
|
|
276
|
-
"required": false,
|
|
277
|
-
"optional": false,
|
|
278
|
-
"docs": {
|
|
279
|
-
"tags": [],
|
|
280
|
-
"text": "Wether the table has actions"
|
|
281
|
-
},
|
|
282
|
-
"getter": false,
|
|
283
|
-
"setter": false,
|
|
284
|
-
"reflect": false,
|
|
285
|
-
"defaultValue": "false"
|
|
286
|
-
},
|
|
287
256
|
"checkbox": {
|
|
288
257
|
"type": "any",
|
|
289
258
|
"attribute": "checkbox",
|
|
@@ -313,12 +282,12 @@ export class TableCell {
|
|
|
313
282
|
"references": {
|
|
314
283
|
"TableDefinitionTemplateFunc": {
|
|
315
284
|
"location": "import",
|
|
316
|
-
"path": "
|
|
285
|
+
"path": "../../../../types",
|
|
317
286
|
"id": "src/types/index.ts::TableDefinitionTemplateFunc"
|
|
318
287
|
},
|
|
319
288
|
"TableDefinitionData": {
|
|
320
289
|
"location": "import",
|
|
321
|
-
"path": "
|
|
290
|
+
"path": "../../../../types",
|
|
322
291
|
"id": "src/types/index.ts::TableDefinitionData"
|
|
323
292
|
}
|
|
324
293
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-cell.component.js","sourceRoot":"","sources":["../../../../../src/components/molecules/table/cell/table-cell.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAKzD,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/E,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwDM;AAKN,MAAM,OAAO,SAAS;IACrB;;OAEG;IACK,OAAO,GAAqC,SAAS,CAAC;IAE9D;;OAEG;IACK,KAAK,CAAS;IAEtB;;OAEG;IACK,QAAQ,CAAS;IAEzB;;OAEG;IACK,UAAU,CAAe;IAEjC;;OAEG;IACK,IAAI,CAAM;IAElB;;OAEG;IACK,KAAK,CAAM;IAEnB;;OAEG;IACK,QAAQ,CAAM;IAEtB;;OAEG;IACK,QAAQ,GAAgC,CAAC,EAChD,KAAK,GACgB,EAAE,EAAE,CAAC,KAAK,CAAC;IAEjC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C,CAC/C,CACI,CACN,CAAC;IACH,CAAC;IAEO,iBAAiB;QACxB,OAAO,yBAAyB,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Host, Prop } from '@stencil/core';\nimport {\n\tTableDefinitionData,\n\tTableDefinitionTemplateFunc,\n} from '../../../../types';\nimport { getTableCellColumnClasses, objectGetByPath } from '../../../../utils';\n\nimport { cn } from '../../../../utils/cn';\nimport { TableColumn } from '../../../helpers/table/column/table-column.component';\n\n/*\n With this, we shall hack the system in ways no one would ever have thought.\n\n\t <div class=\"justify-start justify-center justify-end\"></div>\n\t <div class=\"font-semibold text-storm-dark\"></div>\n <div class=\"w-1/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12 w-9/12 w-10/12 w-11/12 w-12/12\"></div>\n <div class=\"tablet:w-1/12 tablet:w-2/12 tablet:w-3/12 tablet:w-4/12 tablet:w-5/12 tablet:w-6/12 tablet:w-7/12 tablet:w-8/12 tablet:w-9/12 tablet:w-10/12 tablet:w-11/12 tablet:w-12/12\"></div>\n <div class=\"desktop-xs:w-1/12 desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12 desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12 desktop-xs:w-10/12 desktop-xs:w-11/12 desktop-xs:w-12/12\"></div>\n <div class=\"desktop-xs:w-1/12 desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12 desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12 desktop-xs:w-10/12 desktop-xs:w-11/12 desktop-xs:w-12/12\"></div>\n <div class=\"desktop-sm:w-1/12 desktop-sm:w-2/12 desktop-sm:w-3/12 desktop-sm:w-4/12 desktop-sm:w-5/12 desktop-sm:w-6/12 desktop-sm:w-7/12 desktop-sm:w-8/12 desktop-sm:w-9/12 desktop-sm:w-10/12 desktop-sm:w-11/12 desktop-sm:w-12/12\"></div>\n <div class=\"desktop:w-1/12 desktop:w-2/12 desktop:w-3/12 desktop:w-4/12 desktop:w-5/12 desktop:w-6/12 desktop:w-7/12 desktop:w-8/12 desktop:w-9/12 desktop:w-10/12 desktop:w-11/12 desktop:w-12/12\"></div>\n <div class=\"desktop-lg:w-1/12 desktop-lg:w-2/12 desktop-lg:w-3/12 desktop-lg:w-4/12 desktop-lg:w-5/12 desktop-lg:w-6/12 desktop-lg:w-7/12 desktop-lg:w-8/12 desktop-lg:w-9/12 desktop-lg:w-10/12 desktop-lg:w-11/12 desktop-lg:w-12/12\"></div>\n <div class=\"desktop-xl:w-1/12 desktop-xl:w-2/12 desktop-xl:w-3/12 desktop-xl:w-4/12 desktop-xl:w-5/12 desktop-xl:w-6/12 desktop-xl:w-7/12 desktop-xl:w-8/12 desktop-xl:w-9/12 desktop-xl:w-10/12 desktop-xl:w-11/12 desktop-xl:w-12/12\"></div>\n <div class=\"hidden flex group-hover:hidden group-hover:flex\"></div>\n <div class=\"tablet:hidden tablet:flex tablet:group-hover:hidden tablet:group-hover:flex\"></div>\n <div class=\"desktop-xs:hidden desktop-xs:flex desktop-xs:group-hover:hidden desktop-xs:group-hover:flex\"></div>\n <div class=\"desktop-sm:hidden desktop-sm:flex desktop-sm:group-hover:hidden desktop-sm:group-hover:flex\"></div>\n <div class=\"desktop:hidden desktop:flex desktop:group-hover:hidden desktop:group-hover:flex\"></div>\n <div class=\"desktop-lg:hidden desktop-lg:flex desktop-lg:group-hover:hidden desktop-lg:group-hover:flex\"></div>\n <div class=\"desktop-xl:hidden desktop-xl:flex desktop-xl:group-hover:hidden desktop-xl:group-hover:flex\"></div>\n <div class=\"pr-4 pr-0\"></div>\n <div class=\"tablet:pr-4 tablet:pr-0\"></div>\n <div class=\"desktop-xs:pr-4 desktop-xs:pr-0\"></div>\n <div class=\"desktop-sm:pr-4 desktop-sm:pr-0\"></div>\n <div class=\"desktop:pr-4 desktop:pr-0\"></div>\n <div class=\"desktop-lg:pr-4 desktop-lg:pr-0\"></div>\n <div class=\"desktop-xl:pr-4 desktop-xl:pr-0\"></div>\n\n\n ⠀⠀⠀⠀⠀⣠⣴⣶⣿⣿⠿⣷⣶⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣶⣷⠿⣿⣿⣶⣦⣀⠀⠀⠀⠀⠀\n ⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣶⣦⣬⡉⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠚⢉⣥⣴⣾⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀\n ⠀⠀⠀⡾⠿⠛⠛⠛⠛⠿⢿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⣿⣿⣿⣿⣿⠿⠿⠛⠛⠛⠛⠿⢧⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⣿⡿⠟⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⣠⣤⠶⠶⠶⠰⠦⣤⣀⠀⠙⣷⠀⠀⠀⠀⠀⠀⠀⢠⡿⠋⢀⣀⣤⢴⠆⠲⠶⠶⣤⣄⠀⠀⠀⠀⠀⠀⠀\n ⠀⠘⣆⠀⠀⢠⣾⣫⣶⣾⣿⣿⣿⣿⣷⣯⣿⣦⠈⠃⡇⠀⠀⠀⠀⢸⠘⢁⣶⣿⣵⣾⣿⣿⣿⣿⣷⣦⣝⣷⡄⠀⠀⡰⠂⠀\n ⠀⠀⣨⣷⣶⣿⣧⣛⣛⠿⠿⣿⢿⣿⣿⣛⣿⡿⠀⠀⡇⠀⠀⠀⠀⢸⠀⠈⢿⣟⣛⠿⢿⡿⢿⢿⢿⣛⣫⣼⡿⣶⣾⣅⡀⠀\n ⢀⡼⠋⠁⠀⠀⠈⠉⠛⠛⠻⠟⠸⠛⠋⠉⠁⠀⠀⢸⡇⠀⠀⠄⠀⢸⡄⠀⠀⠈⠉⠙⠛⠃⠻⠛⠛⠛⠉⠁⠀⠀⠈⠙⢧⡀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⡇⢠⠀⠀⠀⢸⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⡇⠀⠀⠀⠀⢸⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠟⠁⣿⠇⠀⠀⠀⠀⢸⡇⠙⢿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n ⠀⠰⣄⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⠖⡾⠁⠀⠀⣿⠀⠀⠀⠀⠀⠘⣿⠀⠀⠙⡇⢸⣷⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠄⠀\n ⠀⠀⢻⣷⡦⣤⣤⣤⡴⠶⠿⠛⠉⠁⠀⢳⠀⢠⡀⢿⣀⠀⠀⠀⠀⣠⡟⢀⣀⢠⠇⠀⠈⠙⠛⠷⠶⢦⣤⣤⣤⢴⣾⡏⠀⠀\n ⠀⠀⠈⣿⣧⠙⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠘⠛⢊⣙⠛⠒⠒⢛⣋⡚⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⡿⠁⣾⡿⠀⠀⠀\n ⠀⠀⠀⠘⣿⣇⠈⢿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⡿⢿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⡟⠁⣼⡿⠁⠀⠀⠀\n ⠀⠀⠀⠀⠘⣿⣦⠀⠻⣿⣷⣦⣤⣤⣶⣶⣶⣿⣿⣿⣿⠏⠀⠀⠻⣿⣿⣿⣿⣶⣶⣶⣦⣤⣴⣿⣿⠏⢀⣼⡿⠁⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠘⢿⣷⣄⠙⠻⠿⠿⠿⠿⠿⢿⣿⣿⣿⣁⣀⣀⣀⣀⣙⣿⣿⣿⠿⠿⠿⠿⠿⠿⠟⠁⣠⣿⡿⠁⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠈⠻⣯⠙⢦⣀⠀⠀⠀⠀⠀⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠀⠀⠀⠀⠀⣠⠴⢋⣾⠟⠀⠀⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠙⢧⡀⠈⠉⠒⠀⠀⠀⠀⠀⠀⣀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠐⠒⠉⠁⢀⡾⠃⠀⠀⠀⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠳⣄⠀⠀⠀⠀⠀⠀⠀⠀⠻⣿⣿⣿⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⣠⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢦⡀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⢀⡴⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n */\n@Component({\n\ttag: 'p-table-cell',\n\tstyleUrl: 'table-cell.component.css',\n})\nexport class TableCell {\n\t/**\n\t * The variant of the column\n\t */\n\t@Prop() variant: 'default' | 'loading' | 'header' = 'default';\n\n\t/**\n\t * The index of the column\n\t */\n\t@Prop() index: number;\n\n\t/**\n\t * The index of the row\n\t */\n\t@Prop() rowIndex: number;\n\n\t/**\n\t * The definition of the table column\n\t */\n\t@Prop() definition?: TableColumn;\n\n\t/**\n\t * The item in question\n\t */\n\t@Prop() item: any;\n\n\t/**\n\t * The value of the column\n\t */\n\t@Prop() value: any;\n\n\t/**\n\t * The checkbox to show\n\t */\n\t@Prop() checkbox: any;\n\n\t/**\n\t * The template to show\n\t */\n\t@Prop() template: TableDefinitionTemplateFunc = ({\n\t\tvalue,\n\t}: TableDefinitionData) => value;\n\n\tget data(): TableDefinitionData | { value: string } {\n\t\tif (this.variant === 'header') {\n\t\t\treturn {\n\t\t\t\tvalue: this.value,\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\tvalue: this.value ?? objectGetByPath(this.item, this.definition.path),\n\t\t\titem: this.item,\n\t\t\tindex: this.index,\n\t\t\trowIndex: this.rowIndex,\n\t\t};\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this._getColumnClasses()}>\n\t\t\t\t{this.checkbox}\n\n\t\t\t\t{this._getContent()}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _getContent() {\n\t\tif (this.variant === 'loading') {\n\t\t\treturn (\n\t\t\t\t<p-loader\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclass='h-6 w-full flex-1 rounded'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={cn('flex', {\n\t\t\t\t\t'justify-start': this.definition.align === 'start',\n\t\t\t\t\t'justify-center': this.definition.align === 'center',\n\t\t\t\t\t'justify-end': this.definition.align === 'end',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{this.variant === 'header' ? (\n\t\t\t\t\tthis.data.value\n\t\t\t\t) : this.definition.useSlot ? (\n\t\t\t\t\t<slot />\n\t\t\t\t) : (\n\t\t\t\t\tthis.template(this.data as TableDefinitionData)\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getColumnClasses() {\n\t\treturn getTableCellColumnClasses(this.definition, this.variant);\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sticky{position:sticky!important}.z-\[1\]{z-index:1!important}*{box-sizing:border-box}:host{--tw-content:"";position:sticky;z-index:1}.static{position:static!important}.relative{position:relative!important}.z-\[2\]{z-index:2!important}.flex{display:flex!important}.w-full{width:100%!important}.justify-center{justify-content:center!important}.px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-8{padding-bottom:2rem!important;padding-top:2rem!important}.after\:absolute:after{content:var(--tw-content)!important;position:absolute!important}.after\:left-0:after{content:var(--tw-content)!important;left:0!important}.after\:top-0:after{content:var(--tw-content)!important;top:0!important}.after\:z-\[0\]:after{content:var(--tw-content)!important;z-index:0!important}.after\:h-full:after{content:var(--tw-content)!important;height:100%!important}.after\:w-full:after{content:var(--tw-content)!important;width:100%!important}.after\:bg-gradient-to-t:after{background-image:linear-gradient(to top,var(--tw-gradient-stops))!important;content:var(--tw-content)!important}.after\:from-white:after{--tw-gradient-from:#fff var(--tw-gradient-from-position)!important;--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position)!important;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)!important;content:var(--tw-content)!important}.after\:via-white\/80:after{--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position)!important;--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.8) var(--tw-gradient-via-position),var(--tw-gradient-to)!important;content:var(--tw-content)!important}.after\:to-transparent:after{--tw-gradient-to:transparent var(--tw-gradient-to-position)!important;content:var(--tw-content)!important}.after\:opacity-0:after{content:var(--tw-content)!important;opacity:0!important}.after\:opacity-100:after{content:var(--tw-content)!important;opacity:1!important}.after\:transition-opacity:after{content:var(--tw-content)!important;transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}
|
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
import { h,
|
|
2
|
-
import {
|
|
3
|
-
import { defaultSize, defaultSizeOptions, } from "
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { defaultSize, defaultSizeOptions, } from "../../../molecules/pagination/size/constants";
|
|
4
|
+
const footer = cva([
|
|
5
|
+
'flex justify-center relative',
|
|
6
|
+
'w-full py-8 px-6',
|
|
7
|
+
'after:absolute after:top-0 after:left-0 after:z-[0]',
|
|
8
|
+
'after:w-full after:h-full after:transition-opacity',
|
|
9
|
+
'after:bg-gradient-to-t after:from-white after:via-white/80 after:to-transparent',
|
|
10
|
+
], {
|
|
11
|
+
variants: {
|
|
12
|
+
pinned: {
|
|
13
|
+
false: 'after:opacity-0',
|
|
14
|
+
true: 'after:opacity-100',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|
|
4
18
|
export class TableFooter {
|
|
5
19
|
/**
|
|
6
|
-
* Wether to enable
|
|
20
|
+
* Wether to enable pagination size select
|
|
7
21
|
*/
|
|
8
|
-
|
|
22
|
+
enablePaginationSize = true;
|
|
9
23
|
/**
|
|
10
|
-
* Wether to enable pagination
|
|
24
|
+
* Wether to enable pagination pages
|
|
11
25
|
*/
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Wether to enable export
|
|
15
|
-
*/
|
|
16
|
-
enableExport = true;
|
|
26
|
+
enablePaginationPages = true;
|
|
17
27
|
/**
|
|
18
28
|
* Wether we want to show loading state
|
|
19
29
|
*/
|
|
@@ -42,10 +52,6 @@ export class TableFooter {
|
|
|
42
52
|
* Event whenever the page changes
|
|
43
53
|
*/
|
|
44
54
|
pageSizeChange;
|
|
45
|
-
/**
|
|
46
|
-
* Event whenever the page changes
|
|
47
|
-
*/
|
|
48
|
-
export;
|
|
49
55
|
/**
|
|
50
56
|
* Wether to hide when there is only 1 page available
|
|
51
57
|
*/
|
|
@@ -54,19 +60,15 @@ export class TableFooter {
|
|
|
54
60
|
* The host element
|
|
55
61
|
*/
|
|
56
62
|
_el;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
_locales = {};
|
|
61
|
-
componentWillLoad() {
|
|
62
|
-
this._setLocales();
|
|
63
|
+
_isPinned = false;
|
|
64
|
+
componentDidLoad() {
|
|
65
|
+
this._checkStuck();
|
|
63
66
|
}
|
|
64
67
|
render() {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
this._locales = await getLocaleComponentStrings(this._el);
|
|
68
|
+
return (h("div", { key: '1adecc0b323bd38087e2b8ebde968992d7b0b3fe', class: footer({
|
|
69
|
+
pinned: this._isPinned,
|
|
70
|
+
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
71
|
+
this.total > 0 && (h("p-pagination", { key: 'bc478d95203a23290b320fd233db8bb560ccf2c8', class: 'z-[2]', enablePaginationSize: this.enablePaginationSize, enablePaginationPages: this.enablePaginationPages, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, onPageSizeChange: ({ detail }) => this._changePageSize(detail), page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), total: this.total }))));
|
|
70
72
|
}
|
|
71
73
|
_changePageSize(s) {
|
|
72
74
|
if (!s) {
|
|
@@ -75,11 +77,25 @@ export class TableFooter {
|
|
|
75
77
|
this.pageSize = s;
|
|
76
78
|
this.pageSizeChange.emit(this.pageSize);
|
|
77
79
|
}
|
|
80
|
+
_checkStuck() {
|
|
81
|
+
const rect = this._el.getBoundingClientRect();
|
|
82
|
+
const layout = document.querySelector('p-layout');
|
|
83
|
+
if (layout) {
|
|
84
|
+
const innerContent = layout.shadowRoot.querySelector('.content');
|
|
85
|
+
const innerContentComputed = getComputedStyle(innerContent);
|
|
86
|
+
const layoutPaddingBottom = parseInt(innerContentComputed.paddingBottom, 10);
|
|
87
|
+
this._el.style.bottom = `-${layoutPaddingBottom}px`;
|
|
88
|
+
}
|
|
89
|
+
this._isPinned = window.innerHeight - rect.bottom == 0;
|
|
90
|
+
}
|
|
91
|
+
onScroll() {
|
|
92
|
+
this._checkStuck();
|
|
93
|
+
}
|
|
78
94
|
static get is() { return "p-table-footer"; }
|
|
79
95
|
static get encapsulation() { return "shadow"; }
|
|
80
96
|
static get originalStyleUrls() {
|
|
81
97
|
return {
|
|
82
|
-
"$": ["table-footer.component.
|
|
98
|
+
"$": ["table-footer.component.css"]
|
|
83
99
|
};
|
|
84
100
|
}
|
|
85
101
|
static get styleUrls() {
|
|
@@ -89,29 +105,9 @@ export class TableFooter {
|
|
|
89
105
|
}
|
|
90
106
|
static get properties() {
|
|
91
107
|
return {
|
|
92
|
-
"
|
|
93
|
-
"type": "boolean",
|
|
94
|
-
"attribute": "enable-page-size",
|
|
95
|
-
"mutable": false,
|
|
96
|
-
"complexType": {
|
|
97
|
-
"original": "boolean",
|
|
98
|
-
"resolved": "boolean",
|
|
99
|
-
"references": {}
|
|
100
|
-
},
|
|
101
|
-
"required": false,
|
|
102
|
-
"optional": false,
|
|
103
|
-
"docs": {
|
|
104
|
-
"tags": [],
|
|
105
|
-
"text": "Wether to enable page size select"
|
|
106
|
-
},
|
|
107
|
-
"getter": false,
|
|
108
|
-
"setter": false,
|
|
109
|
-
"reflect": false,
|
|
110
|
-
"defaultValue": "true"
|
|
111
|
-
},
|
|
112
|
-
"enablePagination": {
|
|
108
|
+
"enablePaginationSize": {
|
|
113
109
|
"type": "boolean",
|
|
114
|
-
"attribute": "enable-pagination",
|
|
110
|
+
"attribute": "enable-pagination-size",
|
|
115
111
|
"mutable": false,
|
|
116
112
|
"complexType": {
|
|
117
113
|
"original": "boolean",
|
|
@@ -122,16 +118,16 @@ export class TableFooter {
|
|
|
122
118
|
"optional": false,
|
|
123
119
|
"docs": {
|
|
124
120
|
"tags": [],
|
|
125
|
-
"text": "Wether to enable pagination"
|
|
121
|
+
"text": "Wether to enable pagination size select"
|
|
126
122
|
},
|
|
127
123
|
"getter": false,
|
|
128
124
|
"setter": false,
|
|
129
125
|
"reflect": false,
|
|
130
126
|
"defaultValue": "true"
|
|
131
127
|
},
|
|
132
|
-
"
|
|
128
|
+
"enablePaginationPages": {
|
|
133
129
|
"type": "boolean",
|
|
134
|
-
"attribute": "enable-
|
|
130
|
+
"attribute": "enable-pagination-pages",
|
|
135
131
|
"mutable": false,
|
|
136
132
|
"complexType": {
|
|
137
133
|
"original": "boolean",
|
|
@@ -142,7 +138,7 @@ export class TableFooter {
|
|
|
142
138
|
"optional": false,
|
|
143
139
|
"docs": {
|
|
144
140
|
"tags": [],
|
|
145
|
-
"text": "Wether to enable
|
|
141
|
+
"text": "Wether to enable pagination pages"
|
|
146
142
|
},
|
|
147
143
|
"getter": false,
|
|
148
144
|
"setter": false,
|
|
@@ -271,7 +267,7 @@ export class TableFooter {
|
|
|
271
267
|
}
|
|
272
268
|
static get states() {
|
|
273
269
|
return {
|
|
274
|
-
"
|
|
270
|
+
"_isPinned": {}
|
|
275
271
|
};
|
|
276
272
|
}
|
|
277
273
|
static get events() {
|
|
@@ -305,31 +301,16 @@ export class TableFooter {
|
|
|
305
301
|
"resolved": "number",
|
|
306
302
|
"references": {}
|
|
307
303
|
}
|
|
308
|
-
}, {
|
|
309
|
-
"method": "export",
|
|
310
|
-
"name": "export",
|
|
311
|
-
"bubbles": false,
|
|
312
|
-
"cancelable": true,
|
|
313
|
-
"composed": true,
|
|
314
|
-
"docs": {
|
|
315
|
-
"tags": [],
|
|
316
|
-
"text": "Event whenever the page changes"
|
|
317
|
-
},
|
|
318
|
-
"complexType": {
|
|
319
|
-
"original": "number",
|
|
320
|
-
"resolved": "number",
|
|
321
|
-
"references": {}
|
|
322
|
-
}
|
|
323
304
|
}];
|
|
324
305
|
}
|
|
325
306
|
static get elementRef() { return "_el"; }
|
|
326
307
|
static get listeners() {
|
|
327
308
|
return [{
|
|
328
|
-
"name": "
|
|
329
|
-
"method": "
|
|
330
|
-
"target": "
|
|
309
|
+
"name": "scroll",
|
|
310
|
+
"method": "onScroll",
|
|
311
|
+
"target": "window",
|
|
331
312
|
"capture": false,
|
|
332
|
-
"passive":
|
|
313
|
+
"passive": true
|
|
333
314
|
}];
|
|
334
315
|
}
|
|
335
316
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-footer.component.js","sourceRoot":"","sources":["../../../../../src/components/molecules/table/footer/table-footer.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,OAAO,EACP,KAAK,EACL,MAAM,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EACN,WAAW,EACX,kBAAkB,GAClB,MAAM,8CAA8C,CAAC;AAEtD,MAAM,MAAM,GAAG,GAAG,CACjB;IACC,8BAA8B;IAC9B,kBAAkB;IAClB,sDAAsD;IACtD,oDAAoD;IACpD,iFAAiF;CACjF,EACD;IACC,QAAQ,EAAE;QACT,MAAM,EAAE;YACP,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,mBAAmB;SACzB;KACD;CACD,CACD,CAAC;AAOF,MAAM,OAAO,WAAW;IACvB;;OAEG;IACK,oBAAoB,GAAY,IAAI,CAAC;IAE7C;;OAEG;IACK,qBAAqB,GAAY,IAAI,CAAC;IAE9C;;OAEG;IACK,OAAO,GAAY,KAAK,CAAC;IAEjC;;OAEG;IACqC,IAAI,GAAW,CAAC,CAAC;IAEzD;;OAEG;IACK,KAAK,CAAU;IAEvB;;OAEG;IAIH,UAAU,CAAuB;IAEjC;;OAEG;IACK,QAAQ,GAAW,WAAW,CA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AClB,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,qBAAqB,EAAE,CAAC;QAC9C,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAElD,IAAI,MAAM,EAAE,CAAC;YACZ,MAAM,YAAY,GAAG,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YACjE,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;YAE5D,MAAM,mBAAmB,GAAG,QAAQ,CACnC,oBAAoB,CAAC,aAAa,EAClC,EAAE,CACF,CAAC;YACF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,mBAAmB,IAAI,CAAC;QACrD,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,IAAI,CAAC,CAAC;IACxD,CAAC;IAGD,QAAQ;QACP,IAAI,CAAC,WAAW,EAAE,CAAC;IACpB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\th,\n\tProp,\n\tElement,\n\tState,\n\tListen,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n\tdefaultSize,\n\tdefaultSizeOptions,\n} from '../../../molecules/pagination/size/constants';\n\nconst footer = cva(\n\t[\n\t\t'flex justify-center relative',\n\t\t'w-full py-8 px-6',\n\t\t'after:absolute after:top-0 after:left-0 after:z-[0]',\n\t\t'after:w-full after:h-full after:transition-opacity',\n\t\t'after:bg-gradient-to-t after:from-white after:via-white/80 after:to-transparent',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tpinned: {\n\t\t\t\tfalse: 'after:opacity-0',\n\t\t\t\ttrue: 'after:opacity-100',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-table-footer',\n\tstyleUrl: 'table-footer.component.css',\n\tshadow: true,\n})\nexport class TableFooter {\n\t/**\n\t * Wether to enable pagination size select\n\t */\n\t@Prop() enablePaginationSize: boolean = true;\n\n\t/**\n\t * Wether to enable pagination pages\n\t */\n\t@Prop() enablePaginationPages: boolean = true;\n\n\t/**\n\t * Wether we want to show loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The current page\n\t */\n\t@Prop({ mutable: true, reflect: true }) page: number = 1;\n\n\t/**\n\t * The total amount of items\n\t */\n\t@Prop() total!: number;\n\n\t/**\n\t * Event whenever the page changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tpageChange: EventEmitter<number>;\n\n\t/**\n\t * The amount of items per page\n\t */\n\t@Prop() pageSize: number = defaultSize;\n\n\t/**\n\t * The options for the page size\n\t */\n\t@Prop() pageSizeOptions: number[] = defaultSizeOptions;\n\n\t/**\n\t * Event whenever the page changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tpageSizeChange: EventEmitter<number>;\n\n\t/**\n\t * Wether to hide when there is only 1 page available\n\t */\n\t@Prop() hideOnSinglePage: boolean = true;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _isPinned = false;\n\n\tcomponentDidLoad() {\n\t\tthis._checkStuck();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={footer({\n\t\t\t\t\tpinned: this._isPinned,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{(this.enablePaginationPages || this.enablePaginationSize) &&\n\t\t\t\t\tthis.total > 0 && (\n\t\t\t\t\t\t<p-pagination\n\t\t\t\t\t\t\tclass='z-[2]'\n\t\t\t\t\t\t\tenablePaginationSize={this.enablePaginationSize}\n\t\t\t\t\t\t\tenablePaginationPages={this.enablePaginationPages}\n\t\t\t\t\t\t\tpageSize={this.pageSize}\n\t\t\t\t\t\t\tpageSizeOptions={this.pageSizeOptions}\n\t\t\t\t\t\t\tonPageSizeChange={({ detail }) => this._changePageSize(detail)}\n\t\t\t\t\t\t\tpage={this.page}\n\t\t\t\t\t\t\thideOnSinglePage={this.hideOnSinglePage}\n\t\t\t\t\t\t\tonPageChange={({ detail }) => this.pageChange.emit(detail)}\n\t\t\t\t\t\t\ttotal={this.total}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _changePageSize(s?: number) {\n\t\tif (!s) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.pageSize = s;\n\t\tthis.pageSizeChange.emit(this.pageSize);\n\t}\n\n\tprivate _checkStuck() {\n\t\tconst rect = this._el.getBoundingClientRect();\n\t\tconst layout = document.querySelector('p-layout');\n\n\t\tif (layout) {\n\t\t\tconst innerContent = layout.shadowRoot.querySelector('.content');\n\t\t\tconst innerContentComputed = getComputedStyle(innerContent);\n\n\t\t\tconst layoutPaddingBottom = parseInt(\n\t\t\t\tinnerContentComputed.paddingBottom,\n\t\t\t\t10\n\t\t\t);\n\t\t\tthis._el.style.bottom = `-${layoutPaddingBottom}px`;\n\t\t}\n\n\t\tthis._isPinned = window.innerHeight - rect.bottom == 0;\n\t}\n\n\t@Listen('scroll', { target: 'window' })\n\tonScroll() {\n\t\tthis._checkStuck();\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*{box-sizing:border-box}.static{position:static!important}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.z-\[1\]{z-index:1!important}.col-start-1{grid-column-start:1!important}.col-start-2{grid-column-start:2!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.h-4{height:1rem!important}.h-8{height:2rem!important}.w-3\/4{width:75%!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.gap-2{gap:.5rem!important}.gap-4{gap:1rem!important}.justify-self-start{justify-self:start!important}.rounded{border-radius:.25rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-transparent{border-color:transparent!important}.border-t-mystic-dark{--tw-border-opacity:1!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity,1))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.p-4{padding:1rem!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}@media (min-width:40rem){.tablet\:flex{display:flex!important}}@media (min-width:64rem){.desktop-xs\:flex{display:flex!important}.desktop-xs\:grid{display:grid!important}.desktop-xs\:hidden{display:none!important}.desktop-xs\:w-auto{width:auto!important}.desktop-xs\:max-w-60{max-width:15rem!important}.desktop-xs\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.desktop-xs\:flex-row{flex-direction:row!important}.desktop-xs\:items-center{align-items:center!important}}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { h,
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
2
3
|
import { debounceTime, distinctUntilChanged, Subject } from "rxjs";
|
|
3
|
-
import { formatTranslation, getLocaleComponentStrings, } from "
|
|
4
|
+
import { formatTranslation, getLocaleComponentStrings, } from "../../../../utils/localization";
|
|
5
|
+
const header = cva([
|
|
6
|
+
'flex flex-col gap-2 z-[1]',
|
|
7
|
+
'w-full',
|
|
8
|
+
'desktop-xs:grid desktop-xs:grid-cols-2',
|
|
9
|
+
]);
|
|
4
10
|
export class TableHeader {
|
|
5
11
|
_defaultFilterButtonTemplate = () => formatTranslation(this._locales.filter);
|
|
6
12
|
_defaultActionButtonTemplate = (amount) => this.actionText
|
|
@@ -38,6 +44,10 @@ export class TableHeader {
|
|
|
38
44
|
* Wether to show the filter button
|
|
39
45
|
*/
|
|
40
46
|
enableFilter = true;
|
|
47
|
+
/**
|
|
48
|
+
* Wether to show the export button
|
|
49
|
+
*/
|
|
50
|
+
enableExport = true;
|
|
41
51
|
/**
|
|
42
52
|
* Wether to show the filter button on desktop
|
|
43
53
|
*/
|
|
@@ -90,6 +100,10 @@ export class TableHeader {
|
|
|
90
100
|
* Event when the action button is clicked
|
|
91
101
|
*/
|
|
92
102
|
action;
|
|
103
|
+
/**
|
|
104
|
+
* Event whenever the export button is clicked
|
|
105
|
+
*/
|
|
106
|
+
export;
|
|
93
107
|
/**
|
|
94
108
|
* The host element
|
|
95
109
|
*/
|
|
@@ -112,19 +126,19 @@ export class TableHeader {
|
|
|
112
126
|
const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
|
|
113
127
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
114
128
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
115
|
-
return (h(
|
|
116
|
-
(hasCustomFilterSlot || this.quickFilters.length > 0) && (h("div", { key: '
|
|
129
|
+
return (h("div", { key: '9cee2d0ce2d22ade10d541a27eda932a750f36f2', class: header() }, this.loading && (h("p-loader", { key: '410901852b3077c8089624b25dadb4f7ce269515', variant: 'ghost', class: 'hidden h-8 w-3/4 rounded desktop-xs:flex' })), !this.loading &&
|
|
130
|
+
(hasCustomFilterSlot || this.quickFilters.length > 0) && (h("div", { key: '18149595c8405dd1a28fdd6379c15bfed91267fd', class: 'col-start-1 flex flex-col justify-start gap-4 justify-self-start desktop-xs:flex-row' }, hasCustomFilterSlot && h("slot", { key: '811f3f7d6c6cd9fa286b34c162bcdb9279e0ce8b', name: 'custom-filter' }), this.quickFilters.length > 0 && (h("p-segment-container", { key: 'b11bc2767fc7b0335e7bfe238f053547475a68ff', class: 'hidden desktop-xs:flex' }, this.quickFilters.map(item => (h("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string' ? item.text : item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: 'a84f52b7ad956033b66bf4f53d6b34eceb4855a4', class: 'col-start-2 flex flex-col justify-end gap-2 desktop-xs:flex-row desktop-xs:items-center' }, this.enableSearch && (h("p-field", { key: '24b86b5902911d4aae23b2857da262eacbf784be', icon: 'search', class: 'desktop-xs:max-w-60', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), h("div", { key: 'b53d2ca089b385884637ad77b234a10d5f889ced', class: 'flex items-center gap-2' }, this.enableFilter && (h("p-button", { key: '56f05fcc7c2633cc7664622d3d0d6dffb7d7efcb', icon: 'filter', variant: 'secondary', class: `w-full ${this.enableFilterDesktop
|
|
117
131
|
? 'desktop-xs:w-auto'
|
|
118
132
|
: 'desktop-xs:hidden'}`, onClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
119
133
|
? this.filterButtonTemplate()
|
|
120
134
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
121
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: '
|
|
135
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: '0f74c850f06051000fcec1111df686cada6b96b0', variant: 'vertical', class: 'hidden h-4 tablet:flex' })), !this.loading && this.enableExport && (h("p-button", { key: '8c46666090fdd946f986bfcc859536be9bbb7841', variant: 'secondary', icon: 'upload', class: 'desktop-xs:auto w-full', onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: '9afca30b53005ed17c4c9a351e23f003f2589d2f', name: 'custom-actions' })), this.enableAction && this.canUseAction && (h("div", { key: '14defd672bd6f0b9e1d29dc5495414ca29e450d6', class: 'fixed bottom-0 left-0 block w-full border border-solid border-transparent border-t-mystic-dark bg-white p-4 desktop-xs:hidden' }, this._buttonTemplate(true)))));
|
|
122
136
|
}
|
|
123
137
|
async _setLocales() {
|
|
124
138
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
125
139
|
}
|
|
126
140
|
_buttonTemplate(mobile = false) {
|
|
127
|
-
return (h("p-button", { class: mobile ? 'w-full' : 'hidden desktop-xs:flex', icon: this.actionIcon,
|
|
141
|
+
return (h("p-button", { class: mobile ? 'w-full' : 'hidden desktop-xs:flex', icon: this.actionIcon, disabled: !this.canUseAction, onClick: () => this.action.emit(), loading: this.actionLoading }, this.actionButtonTemplate
|
|
128
142
|
? this.actionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)
|
|
129
143
|
: this._defaultActionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)));
|
|
130
144
|
}
|
|
@@ -137,7 +151,7 @@ export class TableHeader {
|
|
|
137
151
|
static get encapsulation() { return "shadow"; }
|
|
138
152
|
static get originalStyleUrls() {
|
|
139
153
|
return {
|
|
140
|
-
"$": ["table-header.component.
|
|
154
|
+
"$": ["table-header.component.css"]
|
|
141
155
|
};
|
|
142
156
|
}
|
|
143
157
|
static get styleUrls() {
|
|
@@ -157,7 +171,7 @@ export class TableHeader {
|
|
|
157
171
|
"references": {
|
|
158
172
|
"QuickFilter": {
|
|
159
173
|
"location": "import",
|
|
160
|
-
"path": "
|
|
174
|
+
"path": "../../../../types/table",
|
|
161
175
|
"id": "src/types/table.ts::QuickFilter"
|
|
162
176
|
}
|
|
163
177
|
}
|
|
@@ -290,6 +304,26 @@ export class TableHeader {
|
|
|
290
304
|
"reflect": false,
|
|
291
305
|
"defaultValue": "true"
|
|
292
306
|
},
|
|
307
|
+
"enableExport": {
|
|
308
|
+
"type": "boolean",
|
|
309
|
+
"attribute": "enable-export",
|
|
310
|
+
"mutable": false,
|
|
311
|
+
"complexType": {
|
|
312
|
+
"original": "boolean",
|
|
313
|
+
"resolved": "boolean",
|
|
314
|
+
"references": {}
|
|
315
|
+
},
|
|
316
|
+
"required": false,
|
|
317
|
+
"optional": false,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [],
|
|
320
|
+
"text": "Wether to show the export button"
|
|
321
|
+
},
|
|
322
|
+
"getter": false,
|
|
323
|
+
"setter": false,
|
|
324
|
+
"reflect": false,
|
|
325
|
+
"defaultValue": "true"
|
|
326
|
+
},
|
|
293
327
|
"enableFilterDesktop": {
|
|
294
328
|
"type": "boolean",
|
|
295
329
|
"attribute": "enable-filter-desktop",
|
|
@@ -339,8 +373,8 @@ export class TableHeader {
|
|
|
339
373
|
"references": {
|
|
340
374
|
"templateFunc": {
|
|
341
375
|
"location": "local",
|
|
342
|
-
"path": "/home/runner/work/Paperless/Paperless/packages/core/src/components/
|
|
343
|
-
"id": "src/components/
|
|
376
|
+
"path": "/home/runner/work/Paperless/Paperless/packages/core/src/components/molecules/table/header/table-header.component.tsx",
|
|
377
|
+
"id": "src/components/molecules/table/header/table-header.component.tsx::templateFunc"
|
|
344
378
|
}
|
|
345
379
|
}
|
|
346
380
|
},
|
|
@@ -404,7 +438,7 @@ export class TableHeader {
|
|
|
404
438
|
"references": {
|
|
405
439
|
"IconVariant": {
|
|
406
440
|
"location": "import",
|
|
407
|
-
"path": "
|
|
441
|
+
"path": "../../../atoms/icon/icon.component",
|
|
408
442
|
"id": "src/components/atoms/icon/icon.component.tsx::IconVariant"
|
|
409
443
|
}
|
|
410
444
|
}
|
|
@@ -469,8 +503,8 @@ export class TableHeader {
|
|
|
469
503
|
"references": {
|
|
470
504
|
"buttonTemplateFunc": {
|
|
471
505
|
"location": "local",
|
|
472
|
-
"path": "/home/runner/work/Paperless/Paperless/packages/core/src/components/
|
|
473
|
-
"id": "src/components/
|
|
506
|
+
"path": "/home/runner/work/Paperless/Paperless/packages/core/src/components/molecules/table/header/table-header.component.tsx",
|
|
507
|
+
"id": "src/components/molecules/table/header/table-header.component.tsx::buttonTemplateFunc"
|
|
474
508
|
}
|
|
475
509
|
}
|
|
476
510
|
},
|
|
@@ -508,7 +542,7 @@ export class TableHeader {
|
|
|
508
542
|
"references": {
|
|
509
543
|
"QuickFilter": {
|
|
510
544
|
"location": "import",
|
|
511
|
-
"path": "
|
|
545
|
+
"path": "../../../../types/table",
|
|
512
546
|
"id": "src/types/table.ts::QuickFilter"
|
|
513
547
|
}
|
|
514
548
|
}
|
|
@@ -558,6 +592,21 @@ export class TableHeader {
|
|
|
558
592
|
"resolved": "null",
|
|
559
593
|
"references": {}
|
|
560
594
|
}
|
|
595
|
+
}, {
|
|
596
|
+
"method": "export",
|
|
597
|
+
"name": "export",
|
|
598
|
+
"bubbles": false,
|
|
599
|
+
"cancelable": true,
|
|
600
|
+
"composed": true,
|
|
601
|
+
"docs": {
|
|
602
|
+
"tags": [],
|
|
603
|
+
"text": "Event whenever the export button is clicked"
|
|
604
|
+
},
|
|
605
|
+
"complexType": {
|
|
606
|
+
"original": "number",
|
|
607
|
+
"resolved": "number",
|
|
608
|
+
"references": {}
|
|
609
|
+
}
|
|
561
610
|
}];
|
|
562
611
|
}
|
|
563
612
|
static get elementRef() { return "_el"; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-header.component.js","sourceRoot":"","sources":["../../../../../src/components/molecules/table/header/table-header.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,YAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { debounceTime, distinctUntilChanged, Subject } from 'rxjs';\nimport { QuickFilter } from '../../../../types/table';\nimport {\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils/localization';\nimport { IconVariant } from '../../../atoms/icon/icon.component';\n\nexport type templateFunc = () => string;\nexport type buttonTemplateFunc = (amount: number) => string;\n\nconst header = cva([\n\t'flex flex-col gap-2 z-[1]',\n\t'w-full',\n\n\t'desktop-xs:grid desktop-xs:grid-cols-2',\n]);\n\n@Component({\n\ttag: 'p-table-header',\n\tstyleUrl: 'table-header.component.css',\n\tshadow: true,\n})\nexport class TableHeader {\n\tprivate _defaultFilterButtonTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.filter);\n\tprivate _defaultActionButtonTemplate: buttonTemplateFunc = (amount: number) =>\n\t\tthis.actionText\n\t\t\t? this.actionText\n\t\t\t: formatTranslation(\n\t\t\t\t\tamount === 0\n\t\t\t\t\t\t? this._locales.edit\n\t\t\t\t\t\t: amount === 1\n\t\t\t\t\t\t? this._locales.edit_single\n\t\t\t\t\t\t: this._locales.edit_plural,\n\t\t\t\t\t{ amount }\n\t\t\t );\n\n\t/**\n\t * Quick filters to show\n\t */\n\t@Prop() quickFilters: QuickFilter[] = [];\n\n\t/**\n\t * Active quick filter identifier\n\t */\n\t@Prop() activeQuickFilterIdentifier: string;\n\n\t/**\n\t * Wether we want to show loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * Wether to show the search input\n\t */\n\t@Prop() enableSearch: boolean = true;\n\n\t/**\n\t * The amount of items that are selected\n\t */\n\t@Prop() itemsSelectedAmount: number = 0;\n\n\t/**\n\t * The query to show in the search bar\n\t */\n\t@Prop({ mutable: true }) query: string;\n\n\t/**\n\t * Wether to show the filter button\n\t */\n\t@Prop() enableFilter: boolean = true;\n\n\t/**\n\t * Wether to show the export button\n\t */\n\t@Prop() enableExport: boolean = true;\n\n\t/**\n\t * Wether to show the filter button on desktop\n\t */\n\t@Prop() enableFilterDesktop: boolean = true;\n\n\t/**\n\t * The amount of filters being selected\n\t */\n\t@Prop() selectedFiltersAmount: number;\n\n\t/**\n\t * The template for the filter button text\n\t */\n\t@Prop() filterButtonTemplate: templateFunc =\n\t\tthis._defaultFilterButtonTemplate;\n\n\t/**\n\t * Wether to show the action button\n\t */\n\t@Prop() enableAction: boolean = true;\n\n\t/**\n\t * Wether the action button is loading\n\t */\n\t@Prop() actionLoading: boolean = false;\n\n\t/**\n\t * The action button icon\n\t */\n\t@Prop() actionIcon: IconVariant = 'pencil';\n\n\t/**\n\t * The action button text if changed\n\t */\n\t@Prop() actionText: string;\n\n\t/**\n\t * Wether to enable the action button\n\t */\n\t@Prop({ mutable: true }) canUseAction: boolean = false;\n\n\t/**\n\t * The template for the action button text\n\t */\n\t@Prop() actionButtonTemplate: buttonTemplateFunc =\n\t\tthis._defaultActionButtonTemplate;\n\n\t/**\n\t * Event when one of the quick filters is clicked\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tquickFilter: EventEmitter<QuickFilter>;\n\n\t/**\n\t * Event when the query changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tqueryChange: EventEmitter<string>;\n\n\t/**\n\t * Event when the filter button is clicked\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tfilter: EventEmitter<null>;\n\n\t/**\n\t * Event when the action button is clicked\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\taction: EventEmitter<null>;\n\n\t/**\n\t * Event whenever the export button is clicked\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\texport: EventEmitter<number>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tprivate _queryObserver = new Subject<string>();\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._queryObserver\n\t\t\t.pipe(debounceTime(300), distinctUntilChanged())\n\t\t\t.subscribe(value => this.queryChange.emit(value));\n\t}\n\n\trender() {\n\t\tconst activeQuickFilter = this.quickFilters.find(\n\t\t\tf => f.identifier === this.activeQuickFilterIdentifier\n\t\t);\n\t\tconst mobileTotal =\n\t\t\t(this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);\n\n\t\tconst hasCustomFilterSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"custom-filter\"]'\n\t\t);\n\n\t\tconst hasCustomActionsSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"custom-actions\"]'\n\t\t);\n\n\t\treturn (\n\t\t\t<div class={header()}>\n\t\t\t\t{this.loading && (\n\t\t\t\t\t<p-loader\n\t\t\t\t\t\tvariant='ghost'\n\t\t\t\t\t\tclass='hidden h-8 w-3/4 rounded desktop-xs:flex'\n\t\t\t\t\t></p-loader>\n\t\t\t\t)}\n\n\t\t\t\t{!this.loading &&\n\t\t\t\t\t(hasCustomFilterSlot || this.quickFilters.length > 0) && (\n\t\t\t\t\t\t<div class='col-start-1 flex flex-col justify-start gap-4 justify-self-start desktop-xs:flex-row'>\n\t\t\t\t\t\t\t{hasCustomFilterSlot && <slot name='custom-filter' />}\n\n\t\t\t\t\t\t\t{this.quickFilters.length > 0 && (\n\t\t\t\t\t\t\t\t<p-segment-container class='hidden desktop-xs:flex'>\n\t\t\t\t\t\t\t\t\t{this.quickFilters.map(item => (\n\t\t\t\t\t\t\t\t\t\t<p-segment-item\n\t\t\t\t\t\t\t\t\t\t\tactive={\n\t\t\t\t\t\t\t\t\t\t\t\titem.identifier === this.activeQuickFilterIdentifier\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tonClick={() => this.quickFilter.emit(item)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{typeof item.text === 'string' ? item.text : item.text()}{' '}\n\t\t\t\t\t\t\t\t\t\t\t{item?.count >= 0 ? `(${item.count})` : ''}\n\t\t\t\t\t\t\t\t\t\t</p-segment-item>\n\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t</p-segment-container>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t<div class='col-start-2 flex flex-col justify-end gap-2 desktop-xs:flex-row desktop-xs:items-center'>\n\t\t\t\t\t{this.enableSearch && (\n\t\t\t\t\t\t<p-field\n\t\t\t\t\t\t\ticon='search'\n\t\t\t\t\t\t\tclass='desktop-xs:max-w-60'\n\t\t\t\t\t\t\tplaceholder='Zoeken...'\n\t\t\t\t\t\t\tvalue={this.query}\n\t\t\t\t\t\t\tonValueChange={ev => this._queryObserver.next(ev.detail)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class='flex items-center gap-2'>\n\t\t\t\t\t\t{this.enableFilter && (\n\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\ticon='filter'\n\t\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\t\tclass={`w-full ${\n\t\t\t\t\t\t\t\t\tthis.enableFilterDesktop\n\t\t\t\t\t\t\t\t\t\t? 'desktop-xs:w-auto'\n\t\t\t\t\t\t\t\t\t\t: 'desktop-xs:hidden'\n\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t\tonClick={() => this.filter.emit()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.filterButtonTemplate\n\t\t\t\t\t\t\t\t\t? this.filterButtonTemplate()\n\t\t\t\t\t\t\t\t\t: this._defaultFilterButtonTemplate()}\n\t\t\t\t\t\t\t\t{this.selectedFiltersAmount &&\n\t\t\t\t\t\t\t\t\tthis._getLabel(this.selectedFiltersAmount)}\n\t\t\t\t\t\t\t\t{mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile')}\n\t\t\t\t\t\t\t</p-button>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{!this.loading && this.enableExport && this.enableFilter && (\n\t\t\t\t\t\t\t<p-divider\n\t\t\t\t\t\t\t\tvariant='vertical'\n\t\t\t\t\t\t\t\tclass='hidden h-4 tablet:flex'\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{!this.loading && this.enableExport && (\n\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\t\ticon='upload'\n\t\t\t\t\t\t\t\tclass='desktop-xs:auto w-full'\n\t\t\t\t\t\t\t\tonClick={() => this.export.emit()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{formatTranslation(this._locales.export)}\n\t\t\t\t\t\t\t</p-button>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{this.enableAction && this._buttonTemplate()}\n\n\t\t\t\t\t{hasCustomActionsSlot && <slot name='custom-actions' />}\n\t\t\t\t</div>\n\n\t\t\t\t{this.enableAction && this.canUseAction && (\n\t\t\t\t\t<div class='fixed bottom-0 left-0 block w-full border border-solid border-transparent border-t-mystic-dark bg-white p-4 desktop-xs:hidden'>\n\t\t\t\t\t\t{this._buttonTemplate(true)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\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 _buttonTemplate(mobile = false) {\n\t\treturn (\n\t\t\t<p-button\n\t\t\t\tclass={mobile ? 'w-full' : 'hidden desktop-xs:flex'}\n\t\t\t\ticon={this.actionIcon}\n\t\t\t\tdisabled={!this.canUseAction}\n\t\t\t\tonClick={() => this.action.emit()}\n\t\t\t\tloading={this.actionLoading}\n\t\t\t>\n\t\t\t\t{this.actionButtonTemplate\n\t\t\t\t\t? this.actionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)\n\t\t\t\t\t: this._defaultActionButtonTemplate(\n\t\t\t\t\t\t\tmobile ? this.itemsSelectedAmount : 0\n\t\t\t\t\t )}\n\t\t\t</p-button>\n\t\t);\n\t}\n\n\tprivate _getLabel(amount, variant: 'mobile' | 'default' = 'default') {\n\t\treturn (\n\t\t\t<p-badge\n\t\t\t\tclass={`ml-1 ${\n\t\t\t\t\tvariant === 'default'\n\t\t\t\t\t\t? 'hidden desktop-xs:flex'\n\t\t\t\t\t\t: 'flex desktop-xs:hidden'\n\t\t\t\t}`}\n\t\t\t>\n\t\t\t\t{amount}\n\t\t\t</p-badge>\n\t\t);\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.relative{position:relative!important}*{box-sizing:border-box}:host{--tw-content:"";position:relative}.static{position:static!important}.absolute{position:absolute!important}.-right-4{right:-1rem!important}.top-1{top:.25rem!important}.z-\[1\]{z-index:1!important}.z-\[2\]{z-index:2!important}.flex{display:flex!important}.table-row{display:table-row!important}.h-\[calc\(100\%-0\.5rem\)\]{height:calc(100% - .5rem)!important}.min-h-0{min-height:0!important}.min-h-\[3\.875rem\]{min-height:3.875rem!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}.pb-4{padding-bottom:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-normal{font-weight:400!important}.text-black-teal-400{--tw-text-opacity:1!important;color:rgb(53 85 80/var(--tw-text-opacity,1))!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.opacity-0{opacity:0!important}.transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.after\:pointer-events-none:after{content:var(--tw-content)!important;pointer-events:none!important}.after\:absolute:after{content:var(--tw-content)!important;position:absolute!important}.after\:left-1:after{content:var(--tw-content)!important;left:.25rem!important}.after\:top-1:after{content:var(--tw-content)!important;top:.25rem!important}.after\:z-\[0\]:after{content:var(--tw-content)!important;z-index:0!important}.after\:h-\[calc\(100\%-0\.5rem\)\]:after{content:var(--tw-content)!important;height:calc(100% - .5rem)!important}.after\:w-\[calc\(100\%-0\.5rem\)\]:after{content:var(--tw-content)!important;width:calc(100% - .5rem)!important}.after\:rounded-lg:after{border-radius:.5rem!important;content:var(--tw-content)!important}.after\:bg-off-white-300:after{--tw-bg-opacity:1!important;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))!important;content:var(--tw-content)!important}.after\:opacity-0:after{content:var(--tw-content)!important;opacity:0!important}.after\:transition-opacity:after{content:var(--tw-content)!important;transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.empty\:hidden:empty{display:none!important}.hover\:cursor-pointer:hover{cursor:pointer!important}.hover\:after\:opacity-100:hover:after{content:var(--tw-content)!important;opacity:1!important}.group:hover .group-hover\:opacity-100{opacity:1!important}@media (min-width:40rem){.tablet\:h-18{height:4.5rem!important}.tablet\:py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}}
|