@paperless/core 0.1.0-alpha.32 → 0.1.0-alpha.321
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 +3016 -0
- package/README.md +9 -1
- package/dist/assets/i18n/page-size-select.i18n.en.json +4 -0
- package/dist/assets/i18n/page-size-select.i18n.nl.json +4 -0
- package/dist/assets/i18n/table-footer.i18n.en.json +3 -0
- package/dist/assets/i18n/table-footer.i18n.nl.json +3 -0
- package/dist/assets/i18n/table-header.i18n.en.json +6 -0
- package/dist/assets/i18n/table-header.i18n.nl.json +6 -0
- package/dist/assets/i18n/table.i18n.en.json +13 -0
- package/dist/assets/i18n/table.i18n.nl.json +13 -0
- package/dist/assets/icons/camera.svg +10 -0
- package/dist/assets/icons/filter.svg +6 -13
- package/dist/assets/icons/menu.svg +25 -0
- package/dist/assets/icons/more.svg +18 -0
- package/dist/assets/icons/notification.svg +10 -0
- package/dist/assets/icons/reload.svg +10 -0
- package/dist/assets/icons/signout.svg +23 -0
- package/dist/assets/icons/switch.svg +20 -0
- package/dist/assets/illustrations/e-mail.svg +1 -0
- package/dist/assets/illustrations/empty-state-overview.svg +65 -0
- package/dist/assets/illustrations/empty-state-search.svg +88 -0
- package/dist/build/index.esm.js +1 -0
- package/dist/build/p-05f73516.entry.js +1 -0
- package/dist/build/p-0688d548.entry.js +1 -0
- package/dist/build/p-07f28695.entry.js +1 -0
- package/dist/build/p-09ea2a1a.js +1 -0
- package/dist/build/p-0d8f933c.entry.js +1 -0
- package/dist/build/p-115208ac.js +1 -0
- package/dist/build/p-12f5c483.entry.js +1 -0
- package/dist/build/p-13169f11.entry.js +1 -0
- package/dist/build/p-1905b251.entry.js +1 -0
- package/dist/build/p-1ba7cadc.entry.js +1 -0
- package/dist/build/p-1f3af064.entry.js +1 -0
- package/dist/build/p-22f03fc6.entry.js +1 -0
- package/dist/build/p-2e47afc7.entry.js +1 -0
- package/dist/build/p-3946e0a3.entry.js +1 -0
- package/dist/build/p-3a98b145.entry.js +1 -0
- package/dist/build/p-4cce4609.entry.js +1 -0
- package/dist/build/p-4e650fe4.js +1 -0
- package/dist/build/p-529ccaf7.entry.js +1 -0
- package/dist/build/p-62d49606.entry.js +1 -0
- package/dist/build/p-63de1c3d.entry.js +1 -0
- package/dist/build/p-681ed79b.entry.js +1 -0
- package/dist/build/p-6c60fd3d.js +1 -0
- package/dist/build/p-7df6230f.entry.js +1 -0
- package/dist/build/p-82105ca5.entry.js +1 -0
- package/dist/build/p-85b35dfa.entry.js +1 -0
- package/dist/build/p-8a6728d5.js +1 -0
- package/dist/build/p-91d032b2.entry.js +1 -0
- package/dist/build/p-92494639.entry.js +1 -0
- package/dist/build/p-9315c1e2.entry.js +1 -0
- package/dist/build/p-97ed8629.entry.js +1 -0
- package/dist/build/p-98e3dcd7.entry.js +1 -0
- package/dist/build/p-a2adea2a.entry.js +1 -0
- package/dist/build/p-ac5a17c4.entry.js +1 -0
- package/dist/build/p-b4af4b21.entry.js +1 -0
- package/dist/build/p-b72559e4.entry.js +1 -0
- package/dist/build/p-b8dd503c.entry.js +1 -0
- package/dist/build/p-c9f2fa8f.js +2 -0
- package/dist/build/p-d2cf5ab2.entry.js +1 -0
- package/dist/build/p-d896ab0d.entry.js +1 -0
- package/dist/build/p-dbb409ab.entry.js +1 -0
- package/dist/build/p-ddd3372b.entry.js +1 -0
- package/dist/build/p-f1867cb5.entry.js +1 -0
- package/dist/build/p-f499f696.entry.js +1 -0
- package/dist/build/p-f86fcdf4.js +1 -0
- package/dist/build/p-f9274ba9.entry.js +1 -0
- package/dist/build/p-fa3216a5.entry.js +1 -0
- package/dist/build/paperless.css +1 -81
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/child-of-e472f812.js +9 -0
- package/dist/cjs/constants-a4459ec9.js +7 -0
- package/dist/cjs/index-040ec3f9.js +2481 -0
- package/dist/cjs/{index-a46a39a5.js → index-195002a8.js} +662 -261
- package/dist/cjs/index.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/localization-9e2ac7f3.js +60 -0
- package/dist/cjs/object-get-by-path-6dc21ed5.js +12 -0
- package/dist/cjs/p-accordion.cjs.entry.js +34 -0
- package/dist/cjs/p-avatar-group.cjs.entry.js +20 -0
- package/dist/cjs/p-avatar.cjs.entry.js +22 -11
- package/dist/cjs/p-backdrop.cjs.entry.js +41 -0
- package/dist/cjs/p-button_3.cjs.entry.js +246 -104
- package/dist/cjs/p-calendar.cjs.entry.js +706 -0
- package/dist/cjs/p-card-body.cjs.entry.js +20 -0
- package/dist/cjs/p-card-container.cjs.entry.js +21 -0
- package/dist/cjs/p-card-header.cjs.entry.js +22 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +210 -0
- package/dist/cjs/p-counter.cjs.entry.js +5 -3
- package/dist/cjs/p-datepicker.cjs.entry.js +4069 -0
- package/dist/cjs/p-divider.cjs.entry.js +6 -3
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +49 -0
- package/dist/cjs/p-drawer.cjs.entry.js +63 -0
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +5 -3
- package/dist/cjs/p-dropdown_2.cjs.entry.js +165 -0
- package/dist/cjs/p-helper_3.cjs.entry.js +201 -0
- package/dist/cjs/p-illustration_6.cjs.entry.js +2725 -0
- package/dist/cjs/p-info-panel.cjs.entry.js +4 -8
- package/dist/cjs/p-label_3.cjs.entry.js +63 -0
- package/dist/cjs/p-layout.cjs.entry.js +20 -0
- package/dist/cjs/p-modal-body_4.cjs.entry.js +77 -0
- package/dist/cjs/p-modal.cjs.entry.js +59 -0
- package/dist/cjs/p-navbar.cjs.entry.js +28 -0
- package/dist/cjs/p-navigation-item.cjs.entry.js +7 -6
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +222 -0
- package/dist/cjs/p-profile.cjs.entry.js +43 -0
- package/dist/cjs/p-select.cjs.entry.js +183 -0
- package/dist/cjs/p-slider-indicator.cjs.entry.js +20 -0
- package/dist/cjs/p-status.cjs.entry.js +5 -5
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +38 -0
- package/dist/cjs/p-stepper.cjs.entry.js +43 -0
- package/dist/cjs/p-tab-group.cjs.entry.js +19 -0
- package/dist/cjs/p-tab-item.cjs.entry.js +20 -0
- package/dist/cjs/p-table-column.cjs.entry.js +26 -0
- package/dist/cjs/p-table.cjs.entry.js +341 -0
- package/dist/cjs/p-toast-container.cjs.entry.js +20 -0
- package/dist/cjs/p-toast.cjs.entry.js +33 -0
- package/dist/cjs/paperless.cjs.js +3 -3
- package/dist/cjs/{popper-e0c4ed4c.js → popper-d7a0f999.js} +60 -49
- package/dist/collection/assets/icons/camera.svg +10 -0
- package/dist/collection/assets/icons/filter.svg +6 -13
- package/dist/collection/assets/icons/menu.svg +25 -0
- package/dist/collection/assets/icons/more.svg +18 -0
- package/dist/collection/assets/icons/notification.svg +10 -0
- package/dist/collection/assets/icons/reload.svg +10 -0
- package/dist/collection/assets/icons/signout.svg +23 -0
- package/dist/collection/assets/icons/switch.svg +20 -0
- package/dist/collection/assets/illustrations/e-mail.svg +1 -0
- package/dist/collection/assets/illustrations/empty-state-overview.svg +65 -0
- package/dist/collection/assets/illustrations/empty-state-search.svg +88 -0
- package/dist/collection/collection-manifest.json +43 -3
- package/dist/collection/components/atoms/avatar/avatar.component.css +1 -31
- package/dist/collection/components/atoms/avatar/avatar.component.js +110 -90
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +1 -0
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +41 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -0
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +148 -0
- package/dist/collection/components/atoms/button/button.component.css +1 -79
- package/dist/collection/components/atoms/button/button.component.js +305 -251
- package/dist/collection/components/atoms/card-body/card-body.component.css +1 -0
- package/dist/collection/components/atoms/card-body/card-body.component.js +42 -0
- package/dist/collection/components/atoms/card-container/card-container.component.css +1 -0
- package/dist/collection/components/atoms/card-container/card-container.component.js +62 -0
- package/dist/collection/components/atoms/card-header/card-header.component.css +1 -0
- package/dist/collection/components/atoms/card-header/card-header.component.js +61 -0
- package/dist/collection/components/atoms/counter/counter.component.css +1 -5
- package/dist/collection/components/atoms/counter/counter.component.js +56 -9
- package/dist/collection/components/atoms/divider/divider.component.css +1 -3
- package/dist/collection/components/atoms/divider/divider.component.js +15 -8
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.css +1 -0
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +43 -0
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.css +1 -0
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +47 -0
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.css +1 -0
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +65 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -5
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +56 -9
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -13
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +74 -30
- package/dist/collection/components/atoms/helper/helper.component.css +1 -7
- package/dist/collection/components/atoms/helper/helper.component.js +42 -12
- package/dist/collection/components/atoms/icon/icon.component.css +1 -0
- package/dist/collection/components/atoms/icon/icon.component.js +138 -91
- package/dist/collection/components/atoms/illustration/illustration.component.js +28 -23
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -28
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +85 -89
- package/dist/collection/components/atoms/label/label.component.css +1 -0
- package/dist/collection/components/atoms/label/label.component.js +170 -0
- package/dist/collection/components/atoms/layout/layout.component.css +1 -0
- package/dist/collection/components/atoms/layout/layout.component.js +43 -0
- package/dist/collection/components/atoms/loader/loader.component.css +1 -26
- package/dist/collection/components/atoms/loader/loader.component.js +112 -114
- package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.js +62 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.js +74 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +18 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +65 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -16
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +34 -32
- package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -5
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +12 -9
- package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -21
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +98 -87
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +1 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +43 -0
- package/dist/collection/components/atoms/status/status.component.css +1 -16
- package/dist/collection/components/atoms/status/status.component.js +98 -89
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +1 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +100 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +1 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +62 -0
- package/dist/collection/components/atoms/tab-group/tab-group.component.css +1 -0
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +18 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.css +1 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +43 -0
- package/dist/collection/components/atoms/table-container/table-container.component.css +1 -0
- package/dist/collection/components/atoms/table-container/table-container.component.js +18 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.css +1 -0
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +43 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -40
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +196 -164
- package/dist/collection/components/helpers/table-column/table-column.component.js +150 -0
- package/dist/collection/components/molecules/accordion/accordion.component.css +1 -0
- package/dist/collection/components/molecules/accordion/accordion.component.js +127 -0
- package/dist/collection/components/molecules/calendar/calendar.component.css +1 -0
- package/dist/collection/components/molecules/calendar/calendar.component.js +482 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.css +1 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +316 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -0
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +476 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -9
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +274 -125
- package/dist/collection/components/molecules/input-group/input-group.component.css +1 -0
- package/dist/collection/components/molecules/input-group/input-group.component.js +334 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -28
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +106 -104
- package/dist/collection/components/molecules/page-size-select/constants.js +2 -0
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +204 -0
- package/dist/collection/components/molecules/pagination/pagination.component.css +1 -3
- package/dist/collection/components/molecules/pagination/pagination.component.js +118 -94
- package/dist/collection/components/molecules/profile/profile.component.css +1 -0
- package/dist/collection/components/molecules/profile/profile.component.js +89 -0
- package/dist/collection/components/molecules/select/select.component.css +1 -0
- package/dist/collection/components/molecules/select/select.component.js +570 -0
- package/dist/collection/components/molecules/stepper/stepper.component.css +1 -0
- package/dist/collection/components/molecules/stepper/stepper.component.js +84 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -0
- package/dist/collection/components/molecules/table-cell/table-cell.component.js +262 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.js +275 -0
- package/dist/collection/components/molecules/table-header/table-header.component.css +1 -0
- package/dist/collection/components/molecules/table-header/table-header.component.js +380 -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 +64 -0
- package/dist/collection/components/molecules/toast/toast.component.css +1 -0
- package/dist/collection/components/molecules/toast/toast.component.js +196 -0
- package/dist/collection/components/organisms/drawer/drawer.component.css +1 -0
- package/dist/collection/components/organisms/drawer/drawer.component.js +233 -0
- package/dist/collection/components/organisms/modal/modal.component.js +258 -0
- package/dist/collection/components/organisms/navbar/navbar.component.css +1 -0
- package/dist/collection/components/organisms/navbar/navbar.component.js +89 -0
- package/dist/collection/components/organisms/table/table.component.css +1 -0
- package/dist/collection/components/organisms/table/table.component.js +1164 -0
- package/dist/collection/index.js +2 -1
- package/dist/collection/tailwind/animation.js +87 -0
- package/dist/collection/tailwind/backdrop-blur.js +3 -0
- package/dist/collection/tailwind/border-radius.js +1 -0
- package/dist/collection/tailwind/height.js +5 -0
- package/dist/collection/tailwind/screens.js +8 -0
- package/dist/collection/tailwind/shadows.js +11 -5
- package/dist/collection/tailwind/spacing.js +10 -0
- package/dist/collection/tailwind/typography.js +21 -0
- package/dist/collection/tailwind/width.js +23 -0
- package/dist/collection/tailwind/z-index.js +17 -0
- package/dist/collection/tailwind.config.js +29 -14
- package/dist/collection/types/index.js +2 -0
- package/dist/collection/types/table.js +1 -0
- package/dist/collection/types/tailwind.js +1 -0
- package/dist/collection/utils/icons.js +14 -0
- package/dist/collection/utils/illustrations.js +6 -0
- package/dist/collection/utils/index.js +6 -0
- package/dist/collection/utils/localization.js +55 -0
- package/dist/collection/utils/object-get-by-path.js +8 -0
- package/dist/collection/utils/transformers.js +4 -0
- package/dist/components/backdrop.component.js +57 -0
- package/dist/components/button.component.js +98 -0
- package/dist/components/calendar.component.js +3193 -0
- package/dist/components/counter.component.js +8 -3
- package/dist/components/divider.component.js +33 -0
- package/dist/components/drawer-body.component.js +33 -0
- package/dist/components/drawer-container.component.js +32 -0
- package/dist/components/drawer-header.component.js +52 -0
- package/dist/components/dropdown-menu-container.component.js +8 -3
- package/dist/components/dropdown-menu-item.component.js +43 -0
- package/dist/components/dropdown.component.js +182 -0
- package/dist/components/helper.component.js +39 -0
- package/dist/components/icon.component.js +182 -27
- package/dist/{cjs/p-illustration.cjs.entry.js → components/illustration.component.js} +188 -16
- package/dist/components/index.d.ts +59 -19
- package/dist/components/index.js +50 -0
- package/dist/components/input-group.component.js +113 -0
- package/dist/components/label.component.js +52 -0
- package/dist/components/loader.component.js +9 -13
- package/dist/components/localization.js +57 -0
- package/dist/components/modal-body.component.js +35 -0
- package/dist/components/modal-container.component.js +47 -0
- package/dist/components/modal-footer.component.js +36 -0
- package/dist/components/modal-header.component.js +52 -0
- package/dist/components/p-accordion.d.ts +11 -0
- package/dist/components/p-accordion.js +65 -0
- package/dist/components/p-avatar-group.d.ts +11 -0
- package/dist/components/p-avatar-group.js +35 -0
- package/dist/components/p-avatar.js +24 -14
- package/dist/components/p-backdrop.d.ts +11 -0
- package/dist/components/p-backdrop.js +6 -0
- package/dist/components/p-button.js +1 -102
- package/dist/components/p-calendar.d.ts +11 -0
- package/dist/components/p-calendar.js +6 -0
- package/dist/components/p-card-body.d.ts +11 -0
- package/dist/components/p-card-body.js +35 -0
- package/dist/components/p-card-container.d.ts +11 -0
- package/dist/components/p-card-container.js +38 -0
- package/dist/components/p-card-header.d.ts +11 -0
- package/dist/components/p-card-header.js +44 -0
- package/dist/components/p-content-slider.d.ts +11 -0
- package/dist/components/p-content-slider.js +239 -0
- package/dist/components/p-datepicker.d.ts +11 -0
- package/dist/components/p-datepicker.js +4142 -0
- package/dist/components/p-divider.js +1 -28
- package/dist/components/p-drawer-body.d.ts +11 -0
- package/dist/components/p-drawer-body.js +6 -0
- package/dist/components/p-drawer-container.d.ts +11 -0
- package/dist/components/p-drawer-container.js +6 -0
- package/dist/components/p-drawer-header.d.ts +11 -0
- package/dist/components/p-drawer-header.js +6 -0
- package/dist/components/p-drawer.d.ts +11 -0
- package/dist/components/p-drawer.js +128 -0
- package/dist/components/p-dropdown-menu-item.js +1 -34
- package/dist/components/p-dropdown.js +1 -151
- package/dist/components/p-helper.js +1 -34
- package/dist/components/p-illustration.js +1 -1432
- package/dist/components/p-info-panel.js +3 -7
- package/dist/components/p-input-group.d.ts +11 -0
- package/dist/components/p-input-group.js +6 -0
- package/dist/components/p-label.d.ts +11 -0
- package/dist/components/p-label.js +6 -0
- package/dist/components/p-layout.d.ts +11 -0
- package/dist/components/p-layout.js +36 -0
- package/dist/components/p-modal-body.d.ts +11 -0
- package/dist/components/p-modal-body.js +6 -0
- package/dist/components/p-modal-container.d.ts +11 -0
- package/dist/components/p-modal-container.js +6 -0
- package/dist/components/p-modal-footer.d.ts +11 -0
- package/dist/components/p-modal-footer.js +6 -0
- package/dist/components/p-modal-header.d.ts +11 -0
- package/dist/components/p-modal-header.js +6 -0
- package/dist/components/p-modal.d.ts +11 -0
- package/dist/components/p-modal.js +138 -0
- package/dist/components/p-navbar.d.ts +11 -0
- package/dist/components/p-navbar.js +70 -0
- package/dist/components/p-navigation-item.js +6 -5
- package/dist/components/p-page-size-select.d.ts +11 -0
- package/dist/components/p-page-size-select.js +6 -0
- package/dist/components/p-pagination.js +1 -195
- package/dist/components/p-profile.d.ts +11 -0
- package/dist/components/p-profile.js +79 -0
- package/dist/components/p-segment-container.js +1 -27
- package/dist/components/p-segment-item.js +1 -49
- package/dist/components/p-select.d.ts +11 -0
- package/dist/components/p-select.js +265 -0
- package/dist/components/p-slider-indicator.d.ts +11 -0
- package/dist/components/p-slider-indicator.js +6 -0
- package/dist/components/p-status.js +4 -4
- package/dist/components/p-stepper-item.d.ts +11 -0
- package/dist/components/p-stepper-item.js +6 -0
- package/dist/components/p-stepper-line.d.ts +11 -0
- package/dist/components/p-stepper-line.js +6 -0
- package/dist/components/p-stepper.d.ts +11 -0
- package/dist/components/p-stepper.js +78 -0
- package/dist/components/p-tab-group.d.ts +11 -0
- package/dist/components/p-tab-group.js +39 -0
- package/dist/components/p-tab-item.d.ts +11 -0
- package/dist/components/p-tab-item.js +36 -0
- package/dist/components/p-table-cell.d.ts +11 -0
- package/dist/components/p-table-cell.js +6 -0
- package/dist/components/p-table-column.d.ts +11 -0
- package/dist/components/p-table-column.js +46 -0
- package/dist/components/p-table-container.d.ts +11 -0
- package/dist/components/p-table-container.js +6 -0
- package/dist/components/p-table-footer.d.ts +11 -0
- package/dist/components/p-table-footer.js +6 -0
- package/dist/components/p-table-header.d.ts +11 -0
- package/dist/components/p-table-header.js +6 -0
- package/dist/components/p-table-row.d.ts +11 -0
- package/dist/components/p-table-row.js +6 -0
- package/dist/components/p-table.d.ts +11 -0
- package/dist/components/p-table.js +521 -0
- package/dist/components/p-toast-container.d.ts +11 -0
- package/dist/components/p-toast-container.js +36 -0
- package/dist/components/p-toast.d.ts +11 -0
- package/dist/components/p-toast.js +73 -0
- package/dist/components/page-size-select.component.js +105 -0
- package/dist/components/pagination-item.component.js +1 -4
- package/dist/components/pagination.component.js +194 -0
- package/dist/components/popper.js +60 -49
- package/dist/components/segment-container.component.js +29 -0
- package/dist/components/segment-item.component.js +51 -0
- package/dist/components/slider-indicator.component.js +33 -0
- package/dist/components/stepper-item.component.js +45 -0
- package/dist/components/stepper-line.component.js +35 -0
- package/dist/components/table-cell.component.js +143 -0
- package/dist/components/table-container.component.js +30 -0
- package/dist/components/table-footer.component.js +127 -0
- package/dist/components/table-header.component.js +1048 -0
- package/dist/components/table-row.component.js +43 -0
- package/dist/components/tooltip.component.js +16 -27
- package/dist/esm/child-of-90a8c4b5.js +7 -0
- package/dist/esm/constants-826f9460.js +4 -0
- package/dist/esm/{index-a68e547b.js → index-8170b4fb.js} +662 -261
- package/dist/esm/index-ef0b609f.js +2458 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/localization-901dc2d3.js +57 -0
- package/dist/esm/object-get-by-path-d6427a61.js +10 -0
- package/dist/esm/p-accordion.entry.js +30 -0
- package/dist/esm/p-avatar-group.entry.js +16 -0
- package/dist/esm/p-avatar.entry.js +22 -11
- package/dist/esm/p-backdrop.entry.js +37 -0
- package/dist/esm/p-button_3.entry.js +246 -104
- package/dist/esm/p-calendar.entry.js +702 -0
- package/dist/esm/p-card-body.entry.js +16 -0
- package/dist/esm/p-card-container.entry.js +17 -0
- package/dist/esm/p-card-header.entry.js +18 -0
- package/dist/esm/p-content-slider.entry.js +206 -0
- package/dist/esm/p-counter.entry.js +5 -3
- package/dist/esm/p-datepicker.entry.js +4065 -0
- package/dist/esm/p-divider.entry.js +6 -3
- package/dist/esm/p-drawer-body_3.entry.js +43 -0
- package/dist/esm/p-drawer.entry.js +59 -0
- package/dist/esm/p-dropdown-menu-container.entry.js +5 -3
- package/dist/esm/p-dropdown_2.entry.js +160 -0
- package/dist/esm/p-helper_3.entry.js +195 -0
- package/dist/esm/{p-illustration.entry.js → p-illustration_6.entry.js} +1305 -8
- package/dist/esm/p-info-panel.entry.js +4 -8
- package/dist/esm/p-label_3.entry.js +57 -0
- package/dist/esm/p-layout.entry.js +16 -0
- package/dist/esm/p-modal-body_4.entry.js +70 -0
- package/dist/esm/p-modal.entry.js +55 -0
- package/dist/esm/p-navbar.entry.js +24 -0
- package/dist/esm/p-navigation-item.entry.js +7 -6
- package/dist/esm/p-page-size-select_3.entry.js +216 -0
- package/dist/esm/p-profile.entry.js +39 -0
- package/dist/esm/p-select.entry.js +179 -0
- package/dist/esm/p-slider-indicator.entry.js +16 -0
- package/dist/esm/p-status.entry.js +5 -5
- package/dist/esm/p-stepper-item_2.entry.js +33 -0
- package/dist/esm/p-stepper.entry.js +39 -0
- package/dist/esm/p-tab-group.entry.js +15 -0
- package/dist/esm/p-tab-item.entry.js +16 -0
- package/dist/esm/p-table-column.entry.js +22 -0
- package/dist/esm/p-table.entry.js +337 -0
- package/dist/esm/p-toast-container.entry.js +16 -0
- package/dist/esm/p-toast.entry.js +29 -0
- package/dist/esm/paperless.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{popper-41c6f9cd.js → popper-42db9fbd.js} +60 -49
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -0
- package/dist/paperless/p-05f73516.entry.js +1 -0
- package/dist/paperless/p-0688d548.entry.js +1 -0
- package/dist/paperless/p-07f28695.entry.js +1 -0
- package/dist/paperless/p-09ea2a1a.js +1 -0
- package/dist/paperless/p-0d8f933c.entry.js +1 -0
- package/dist/paperless/p-115208ac.js +1 -0
- package/dist/paperless/p-12f5c483.entry.js +1 -0
- package/dist/paperless/p-13169f11.entry.js +1 -0
- package/dist/paperless/p-1905b251.entry.js +1 -0
- package/dist/paperless/p-1ba7cadc.entry.js +1 -0
- package/dist/paperless/p-1f3af064.entry.js +1 -0
- package/dist/paperless/p-22f03fc6.entry.js +1 -0
- package/dist/paperless/p-2e47afc7.entry.js +1 -0
- package/dist/paperless/p-3946e0a3.entry.js +1 -0
- package/dist/paperless/p-3a98b145.entry.js +1 -0
- package/dist/paperless/p-4cce4609.entry.js +1 -0
- package/dist/paperless/p-4e650fe4.js +1 -0
- package/dist/paperless/p-529ccaf7.entry.js +1 -0
- package/dist/paperless/p-62d49606.entry.js +1 -0
- package/dist/paperless/p-63de1c3d.entry.js +1 -0
- package/dist/paperless/p-681ed79b.entry.js +1 -0
- package/dist/paperless/p-6c60fd3d.js +1 -0
- package/dist/paperless/p-7df6230f.entry.js +1 -0
- package/dist/paperless/p-82105ca5.entry.js +1 -0
- package/dist/paperless/p-85b35dfa.entry.js +1 -0
- package/dist/paperless/p-8a6728d5.js +1 -0
- package/dist/paperless/p-91d032b2.entry.js +1 -0
- package/dist/paperless/p-92494639.entry.js +1 -0
- package/dist/paperless/p-9315c1e2.entry.js +1 -0
- package/dist/paperless/p-97ed8629.entry.js +1 -0
- package/dist/paperless/p-98e3dcd7.entry.js +1 -0
- package/dist/paperless/p-a2adea2a.entry.js +1 -0
- package/dist/paperless/p-ac5a17c4.entry.js +1 -0
- package/dist/paperless/p-b4af4b21.entry.js +1 -0
- package/dist/paperless/p-b72559e4.entry.js +1 -0
- package/dist/paperless/p-b8dd503c.entry.js +1 -0
- package/dist/paperless/p-c9f2fa8f.js +2 -0
- package/dist/paperless/p-d2cf5ab2.entry.js +1 -0
- package/dist/paperless/p-d896ab0d.entry.js +1 -0
- package/dist/paperless/p-dbb409ab.entry.js +1 -0
- package/dist/paperless/p-ddd3372b.entry.js +1 -0
- package/dist/paperless/p-f1867cb5.entry.js +1 -0
- package/dist/paperless/p-f499f696.entry.js +1 -0
- package/dist/paperless/p-f86fcdf4.js +1 -0
- package/dist/paperless/p-f9274ba9.entry.js +1 -0
- package/dist/paperless/p-fa3216a5.entry.js +1 -0
- package/dist/paperless/paperless.css +673 -26741
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/style/_fonts.scss +70 -0
- package/dist/style/_helpers.scss +5 -0
- package/dist/style/_reset.scss +31 -0
- package/dist/style/_tailwind.scss +3 -0
- package/dist/style/_typograhpy.scss +29 -0
- package/dist/style/_variables.scss +2 -0
- package/dist/style/form/_checkbox.scss +111 -0
- package/dist/style/form/_input.scss +22 -0
- package/dist/style/form/_mixins.scss +107 -0
- package/dist/style/form/_radio.scss +58 -0
- package/dist/style/form/_textarea.scss +18 -0
- package/dist/style/form/index.scss +4 -0
- package/dist/style/paperless.scss +12 -0
- package/dist/sw.js +2 -644
- package/dist/sw.js.map +1 -0
- package/dist/tailwind/animation.js +87 -0
- package/dist/tailwind/backdrop-blur.js +3 -0
- package/dist/tailwind/border-radius.js +11 -0
- package/dist/tailwind/colors.js +52 -0
- package/dist/tailwind/height.js +5 -0
- package/dist/tailwind/rotate.js +8 -0
- package/dist/tailwind/scale.js +3 -0
- package/dist/tailwind/screens.js +8 -0
- package/dist/tailwind/shadows.js +13 -0
- package/dist/tailwind/spacing.js +10 -0
- package/dist/tailwind/typography.js +21 -0
- package/dist/tailwind/width.js +23 -0
- package/dist/tailwind/z-index.js +17 -0
- package/dist/tailwind.config.js +29 -14
- package/dist/types/components/atoms/avatar/avatar.component.d.ts +3 -1
- package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
- package/dist/types/components/atoms/backdrop/backdrop.component.d.ts +31 -0
- package/dist/types/components/atoms/button/button.component.d.ts +14 -1
- package/dist/types/components/atoms/card-body/card-body.component.d.ts +7 -0
- package/dist/types/components/atoms/card-container/card-container.component.d.ts +11 -0
- package/dist/types/components/atoms/card-header/card-header.component.d.ts +11 -0
- package/dist/types/components/atoms/counter/counter.component.d.ts +8 -0
- package/dist/types/components/atoms/divider/divider.component.d.ts +4 -0
- package/dist/types/components/atoms/drawer-body/drawer-body.component.d.ts +7 -0
- package/dist/types/components/atoms/drawer-container/drawer-container.component.d.ts +7 -0
- package/dist/types/components/atoms/drawer-header/drawer-header.component.d.ts +12 -0
- package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +8 -0
- package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +9 -0
- package/dist/types/components/atoms/helper/helper.component.d.ts +5 -0
- package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
- package/dist/types/components/atoms/label/label.component.d.ts +33 -0
- package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
- package/dist/types/components/atoms/loader/loader.component.d.ts +1 -1
- package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +11 -0
- package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +11 -0
- package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +3 -0
- package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +12 -0
- package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +2 -1
- package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +7 -0
- package/dist/types/components/atoms/status/status.component.d.ts +2 -1
- package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +19 -0
- package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +11 -0
- package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +3 -0
- package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +7 -0
- package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
- package/dist/types/components/atoms/toast-container/toast-container.component.d.ts +7 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +11 -2
- package/dist/types/components/helpers/table-column/table-column.component.d.ts +34 -0
- package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
- package/dist/types/components/molecules/calendar/calendar.component.d.ts +72 -0
- package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +53 -0
- package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +89 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +31 -3
- package/dist/types/components/molecules/input-group/input-group.component.d.ts +67 -0
- package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
- package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +50 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +7 -0
- package/dist/types/components/molecules/profile/profile.component.d.ts +20 -0
- package/dist/types/components/molecules/select/select.component.d.ts +115 -0
- package/dist/types/components/molecules/stepper/stepper.component.d.ts +18 -0
- package/dist/types/components/molecules/table-cell/table-cell.component.d.ts +42 -0
- package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +63 -0
- package/dist/types/components/molecules/table-header/table-header.component.d.ts +87 -0
- package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
- package/dist/types/components/molecules/toast/toast.component.d.ts +39 -0
- package/dist/types/components/organisms/drawer/drawer.component.d.ts +52 -0
- package/dist/types/components/organisms/modal/modal.component.d.ts +58 -0
- package/dist/types/components/organisms/navbar/navbar.component.d.ts +14 -0
- package/dist/types/components/organisms/table/table.component.d.ts +214 -0
- package/dist/types/components.d.ts +2813 -327
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/table.d.ts +27 -0
- package/dist/types/types/tailwind.d.ts +2 -0
- package/dist/types/utils/icons.d.ts +7 -0
- package/dist/types/utils/illustrations.d.ts +3 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/types/utils/localization.d.ts +2 -0
- package/dist/types/utils/object-get-by-path.d.ts +1 -0
- package/dist/types/utils/transformers.d.ts +2 -0
- package/dist/workbox-5b279812.js +2 -0
- package/dist/workbox-5b279812.js.map +1 -0
- package/loader/package.json +1 -0
- package/package.json +65 -61
- package/dist/build/p-17c11169.entry.js +0 -1
- package/dist/build/p-41e5458b.entry.js +0 -1
- package/dist/build/p-42dab9d4.entry.js +0 -1
- package/dist/build/p-47b52f92.entry.js +0 -1
- package/dist/build/p-5ec6ea71.entry.js +0 -1
- package/dist/build/p-75f909ab.entry.js +0 -1
- package/dist/build/p-76464e0b.js +0 -2
- package/dist/build/p-8501ba07.entry.js +0 -1
- package/dist/build/p-9513868f.entry.js +0 -1
- package/dist/build/p-a669807e.entry.js +0 -1
- package/dist/build/p-a7086ffa.js +0 -1
- package/dist/build/p-aa28fef8.entry.js +0 -1
- package/dist/build/p-aae3d4f0.entry.js +0 -1
- package/dist/build/p-adcb0b93.entry.js +0 -1
- package/dist/build/p-bbec0e86.entry.js +0 -1
- package/dist/build/p-d7c82962.entry.js +0 -1
- package/dist/build/p-e7019eab.entry.js +0 -1
- package/dist/build/p-f689996b.entry.js +0 -1
- package/dist/build/p-faa4ee42.entry.js +0 -1
- package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +0 -23
- package/dist/cjs/p-dropdown.cjs.entry.js +0 -131
- package/dist/cjs/p-helper.cjs.entry.js +0 -19
- package/dist/cjs/p-pagination-item.cjs.entry.js +0 -23
- package/dist/cjs/p-pagination.cjs.entry.js +0 -171
- package/dist/cjs/p-segment-container.cjs.entry.js +0 -19
- package/dist/cjs/p-segment-item.cjs.entry.js +0 -29
- package/dist/cjs/p-tooltip.cjs.entry.js +0 -137
- package/dist/collection/tailwind/grid.js +0 -26
- package/dist/collection/utils/utils.js +0 -3
- package/dist/esm/p-dropdown-menu-item.entry.js +0 -19
- package/dist/esm/p-dropdown.entry.js +0 -127
- package/dist/esm/p-helper.entry.js +0 -15
- package/dist/esm/p-pagination-item.entry.js +0 -19
- package/dist/esm/p-pagination.entry.js +0 -167
- package/dist/esm/p-segment-container.entry.js +0 -15
- package/dist/esm/p-segment-item.entry.js +0 -25
- package/dist/esm/p-tooltip.entry.js +0 -133
- package/dist/paperless/p-17c11169.entry.js +0 -1
- package/dist/paperless/p-41e5458b.entry.js +0 -1
- package/dist/paperless/p-42dab9d4.entry.js +0 -1
- package/dist/paperless/p-47b52f92.entry.js +0 -1
- package/dist/paperless/p-5ec6ea71.entry.js +0 -1
- package/dist/paperless/p-75f909ab.entry.js +0 -1
- package/dist/paperless/p-76464e0b.js +0 -2
- package/dist/paperless/p-8501ba07.entry.js +0 -1
- package/dist/paperless/p-9513868f.entry.js +0 -1
- package/dist/paperless/p-a669807e.entry.js +0 -1
- package/dist/paperless/p-a7086ffa.js +0 -1
- package/dist/paperless/p-aa28fef8.entry.js +0 -1
- package/dist/paperless/p-aae3d4f0.entry.js +0 -1
- package/dist/paperless/p-adcb0b93.entry.js +0 -1
- package/dist/paperless/p-bbec0e86.entry.js +0 -1
- package/dist/paperless/p-d7c82962.entry.js +0 -1
- package/dist/paperless/p-e7019eab.entry.js +0 -1
- package/dist/paperless/p-f689996b.entry.js +0 -1
- package/dist/paperless/p-faa4ee42.entry.js +0 -1
- package/dist/types/utils/utils.d.ts +0 -1
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import { h, Host, } from '@stencil/core';
|
|
2
|
+
import { debounceTime, distinctUntilChanged, Subject } from 'rxjs';
|
|
3
|
+
import { formatTranslation, getLocaleComponentStrings, } from '../../../utils/localization';
|
|
4
|
+
export class TableHeader {
|
|
5
|
+
constructor() {
|
|
6
|
+
this._defaultFilterButtonTemplate = () => formatTranslation(this._locales.filter);
|
|
7
|
+
this._defaultEditButtonTemplate = (amount) => formatTranslation(amount === 0
|
|
8
|
+
? this._locales.edit
|
|
9
|
+
: amount === 1
|
|
10
|
+
? this._locales.edit_single
|
|
11
|
+
: this._locales.edit_plural, { amount });
|
|
12
|
+
this._queryObserver = new Subject();
|
|
13
|
+
this.quickFilters = [];
|
|
14
|
+
this.activeQuickFilterIdentifier = undefined;
|
|
15
|
+
this.loading = false;
|
|
16
|
+
this.enableSearch = true;
|
|
17
|
+
this.itemsSelectedAmount = 0;
|
|
18
|
+
this.query = undefined;
|
|
19
|
+
this.enableFilter = true;
|
|
20
|
+
this.selectedFiltersAmount = undefined;
|
|
21
|
+
this.filterButtonTemplate = this._defaultFilterButtonTemplate;
|
|
22
|
+
this.enableEdit = true;
|
|
23
|
+
this.canEdit = false;
|
|
24
|
+
this.editButtonTemplate = this._defaultEditButtonTemplate;
|
|
25
|
+
this._locales = {};
|
|
26
|
+
}
|
|
27
|
+
componentWillLoad() {
|
|
28
|
+
this._setLocales();
|
|
29
|
+
}
|
|
30
|
+
componentDidLoad() {
|
|
31
|
+
this._queryObserver
|
|
32
|
+
.pipe(debounceTime(300), distinctUntilChanged())
|
|
33
|
+
.subscribe((value) => this.queryChange.emit(value));
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
const activeQuickFilter = this.quickFilters.find((f) => f.identifier === this.activeQuickFilterIdentifier);
|
|
37
|
+
const mobileTotal = (this.selectedFiltersAmount || 0) +
|
|
38
|
+
((activeQuickFilter === null || activeQuickFilter === void 0 ? void 0 : activeQuickFilter.default) ? 0 : 1);
|
|
39
|
+
return (h(Host, { class: "p-table-header" }, this.loading && (h("p-loader", { variant: "ghost", class: "hidden desktop-xs:flex rounded w-3/4 h-8" })), !this.loading && this.quickFilters.length > 0 && (h("p-segment-container", { class: "hidden desktop-xs:flex" }, this.quickFilters.map((item) => (h("p-segment-item", { active: item.identifier ===
|
|
40
|
+
this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
|
|
41
|
+
? item.text
|
|
42
|
+
: item.text(), ' ', (item === null || item === void 0 ? void 0 : item.count) >= 0 ? `(${item.count})` : ''))))), h("div", { class: "flex flex-col desktop-xs:flex-row gap-4 justify-end justify-self-end" }, this.enableSearch && (h("p-input-group", { icon: "search", size: "small" }, h("input", { type: "text", slot: "input", placeholder: "Zoeken...", value: this.query, onInput: (ev) => this._queryObserver.next(ev.target.value) }))), this.enableFilter && (h("p-button", { icon: "filter", variant: "secondary", size: "small", class: "w-full desktop-xs:w-auto", onClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
43
|
+
? this.filterButtonTemplate()
|
|
44
|
+
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
45
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 &&
|
|
46
|
+
this._getLabel(mobileTotal, 'mobile'))), this.enableEdit && this._buttonTemplate()), this.enableEdit && this.canEdit && (h("div", { class: "fixed bottom-0 left-0 w-full p-4 bg-white border border-solid border-transparent border-t-mystic-dark block desktop-xs:hidden" }, this._buttonTemplate(true)))));
|
|
47
|
+
}
|
|
48
|
+
async _setLocales() {
|
|
49
|
+
this._locales = await getLocaleComponentStrings(this._el);
|
|
50
|
+
}
|
|
51
|
+
_buttonTemplate(mobile = false) {
|
|
52
|
+
return (h("p-button", { class: mobile ? 'w-full' : 'hidden desktop-xs:flex', icon: "pencil", size: "small", disabled: !this.canEdit, onClick: () => this.edit.emit() }, this.editButtonTemplate
|
|
53
|
+
? this.editButtonTemplate(mobile ? this.itemsSelectedAmount : 0)
|
|
54
|
+
: this._defaultEditButtonTemplate(mobile ? this.itemsSelectedAmount : 0)));
|
|
55
|
+
}
|
|
56
|
+
_getLabel(amount, variant = 'default') {
|
|
57
|
+
return (h("p-label", { size: "small", variant: "negative", behavior: "text", class: `ml-1 ${variant === 'default'
|
|
58
|
+
? 'hidden desktop-xs:flex'
|
|
59
|
+
: 'flex desktop-xs:hidden'}` }, amount));
|
|
60
|
+
}
|
|
61
|
+
static get is() { return "p-table-header"; }
|
|
62
|
+
static get encapsulation() { return "shadow"; }
|
|
63
|
+
static get originalStyleUrls() {
|
|
64
|
+
return {
|
|
65
|
+
"$": ["table-header.component.scss"]
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
static get styleUrls() {
|
|
69
|
+
return {
|
|
70
|
+
"$": ["table-header.component.css"]
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
static get properties() {
|
|
74
|
+
return {
|
|
75
|
+
"quickFilters": {
|
|
76
|
+
"type": "unknown",
|
|
77
|
+
"mutable": false,
|
|
78
|
+
"complexType": {
|
|
79
|
+
"original": "QuickFilter[]",
|
|
80
|
+
"resolved": "QuickFilter[]",
|
|
81
|
+
"references": {
|
|
82
|
+
"QuickFilter": {
|
|
83
|
+
"location": "import",
|
|
84
|
+
"path": "../../../types/table"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": false,
|
|
89
|
+
"optional": false,
|
|
90
|
+
"docs": {
|
|
91
|
+
"tags": [],
|
|
92
|
+
"text": "Quick filters to show"
|
|
93
|
+
},
|
|
94
|
+
"defaultValue": "[]"
|
|
95
|
+
},
|
|
96
|
+
"activeQuickFilterIdentifier": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "string",
|
|
101
|
+
"resolved": "string",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": false,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": "Active quick filter identifier"
|
|
109
|
+
},
|
|
110
|
+
"attribute": "active-quick-filter-identifier",
|
|
111
|
+
"reflect": false
|
|
112
|
+
},
|
|
113
|
+
"loading": {
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "boolean",
|
|
118
|
+
"resolved": "boolean",
|
|
119
|
+
"references": {}
|
|
120
|
+
},
|
|
121
|
+
"required": false,
|
|
122
|
+
"optional": false,
|
|
123
|
+
"docs": {
|
|
124
|
+
"tags": [],
|
|
125
|
+
"text": "Wether we want to show loading state"
|
|
126
|
+
},
|
|
127
|
+
"attribute": "loading",
|
|
128
|
+
"reflect": false,
|
|
129
|
+
"defaultValue": "false"
|
|
130
|
+
},
|
|
131
|
+
"enableSearch": {
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"mutable": false,
|
|
134
|
+
"complexType": {
|
|
135
|
+
"original": "boolean",
|
|
136
|
+
"resolved": "boolean",
|
|
137
|
+
"references": {}
|
|
138
|
+
},
|
|
139
|
+
"required": false,
|
|
140
|
+
"optional": false,
|
|
141
|
+
"docs": {
|
|
142
|
+
"tags": [],
|
|
143
|
+
"text": "Wether to show the search input"
|
|
144
|
+
},
|
|
145
|
+
"attribute": "enable-search",
|
|
146
|
+
"reflect": false,
|
|
147
|
+
"defaultValue": "true"
|
|
148
|
+
},
|
|
149
|
+
"itemsSelectedAmount": {
|
|
150
|
+
"type": "number",
|
|
151
|
+
"mutable": false,
|
|
152
|
+
"complexType": {
|
|
153
|
+
"original": "number",
|
|
154
|
+
"resolved": "number",
|
|
155
|
+
"references": {}
|
|
156
|
+
},
|
|
157
|
+
"required": false,
|
|
158
|
+
"optional": false,
|
|
159
|
+
"docs": {
|
|
160
|
+
"tags": [],
|
|
161
|
+
"text": "The amount of items that are selected"
|
|
162
|
+
},
|
|
163
|
+
"attribute": "items-selected-amount",
|
|
164
|
+
"reflect": false,
|
|
165
|
+
"defaultValue": "0"
|
|
166
|
+
},
|
|
167
|
+
"query": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"mutable": true,
|
|
170
|
+
"complexType": {
|
|
171
|
+
"original": "string",
|
|
172
|
+
"resolved": "string",
|
|
173
|
+
"references": {}
|
|
174
|
+
},
|
|
175
|
+
"required": false,
|
|
176
|
+
"optional": false,
|
|
177
|
+
"docs": {
|
|
178
|
+
"tags": [],
|
|
179
|
+
"text": "The query to show in the search bar"
|
|
180
|
+
},
|
|
181
|
+
"attribute": "query",
|
|
182
|
+
"reflect": false
|
|
183
|
+
},
|
|
184
|
+
"enableFilter": {
|
|
185
|
+
"type": "boolean",
|
|
186
|
+
"mutable": false,
|
|
187
|
+
"complexType": {
|
|
188
|
+
"original": "boolean",
|
|
189
|
+
"resolved": "boolean",
|
|
190
|
+
"references": {}
|
|
191
|
+
},
|
|
192
|
+
"required": false,
|
|
193
|
+
"optional": false,
|
|
194
|
+
"docs": {
|
|
195
|
+
"tags": [],
|
|
196
|
+
"text": "Wether to show the filter button"
|
|
197
|
+
},
|
|
198
|
+
"attribute": "enable-filter",
|
|
199
|
+
"reflect": false,
|
|
200
|
+
"defaultValue": "true"
|
|
201
|
+
},
|
|
202
|
+
"selectedFiltersAmount": {
|
|
203
|
+
"type": "number",
|
|
204
|
+
"mutable": false,
|
|
205
|
+
"complexType": {
|
|
206
|
+
"original": "number",
|
|
207
|
+
"resolved": "number",
|
|
208
|
+
"references": {}
|
|
209
|
+
},
|
|
210
|
+
"required": false,
|
|
211
|
+
"optional": false,
|
|
212
|
+
"docs": {
|
|
213
|
+
"tags": [],
|
|
214
|
+
"text": "The amount of filters being selected"
|
|
215
|
+
},
|
|
216
|
+
"attribute": "selected-filters-amount",
|
|
217
|
+
"reflect": false
|
|
218
|
+
},
|
|
219
|
+
"filterButtonTemplate": {
|
|
220
|
+
"type": "unknown",
|
|
221
|
+
"mutable": false,
|
|
222
|
+
"complexType": {
|
|
223
|
+
"original": "templateFunc",
|
|
224
|
+
"resolved": "() => string",
|
|
225
|
+
"references": {
|
|
226
|
+
"templateFunc": {
|
|
227
|
+
"location": "local"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"required": false,
|
|
232
|
+
"optional": false,
|
|
233
|
+
"docs": {
|
|
234
|
+
"tags": [],
|
|
235
|
+
"text": "The template for the filter button text"
|
|
236
|
+
},
|
|
237
|
+
"defaultValue": "this._defaultFilterButtonTemplate"
|
|
238
|
+
},
|
|
239
|
+
"enableEdit": {
|
|
240
|
+
"type": "boolean",
|
|
241
|
+
"mutable": false,
|
|
242
|
+
"complexType": {
|
|
243
|
+
"original": "boolean",
|
|
244
|
+
"resolved": "boolean",
|
|
245
|
+
"references": {}
|
|
246
|
+
},
|
|
247
|
+
"required": false,
|
|
248
|
+
"optional": false,
|
|
249
|
+
"docs": {
|
|
250
|
+
"tags": [],
|
|
251
|
+
"text": "Wether to show the edit button"
|
|
252
|
+
},
|
|
253
|
+
"attribute": "enable-edit",
|
|
254
|
+
"reflect": false,
|
|
255
|
+
"defaultValue": "true"
|
|
256
|
+
},
|
|
257
|
+
"canEdit": {
|
|
258
|
+
"type": "boolean",
|
|
259
|
+
"mutable": true,
|
|
260
|
+
"complexType": {
|
|
261
|
+
"original": "boolean",
|
|
262
|
+
"resolved": "boolean",
|
|
263
|
+
"references": {}
|
|
264
|
+
},
|
|
265
|
+
"required": false,
|
|
266
|
+
"optional": false,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": "Wether to enable the edit button"
|
|
270
|
+
},
|
|
271
|
+
"attribute": "can-edit",
|
|
272
|
+
"reflect": false,
|
|
273
|
+
"defaultValue": "false"
|
|
274
|
+
},
|
|
275
|
+
"editButtonTemplate": {
|
|
276
|
+
"type": "unknown",
|
|
277
|
+
"mutable": false,
|
|
278
|
+
"complexType": {
|
|
279
|
+
"original": "buttonTemplateFunc",
|
|
280
|
+
"resolved": "(amount: number) => string",
|
|
281
|
+
"references": {
|
|
282
|
+
"buttonTemplateFunc": {
|
|
283
|
+
"location": "local"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"required": false,
|
|
288
|
+
"optional": false,
|
|
289
|
+
"docs": {
|
|
290
|
+
"tags": [],
|
|
291
|
+
"text": "The template for the edit button text"
|
|
292
|
+
},
|
|
293
|
+
"defaultValue": "this._defaultEditButtonTemplate"
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
static get states() {
|
|
298
|
+
return {
|
|
299
|
+
"_locales": {}
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
static get events() {
|
|
303
|
+
return [{
|
|
304
|
+
"method": "quickFilter",
|
|
305
|
+
"name": "quickFilter",
|
|
306
|
+
"bubbles": true,
|
|
307
|
+
"cancelable": true,
|
|
308
|
+
"composed": true,
|
|
309
|
+
"docs": {
|
|
310
|
+
"tags": [],
|
|
311
|
+
"text": "Event when one of the quick filters is clicked"
|
|
312
|
+
},
|
|
313
|
+
"complexType": {
|
|
314
|
+
"original": "QuickFilter",
|
|
315
|
+
"resolved": "QuickFilter",
|
|
316
|
+
"references": {
|
|
317
|
+
"QuickFilter": {
|
|
318
|
+
"location": "import",
|
|
319
|
+
"path": "../../../types/table"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}, {
|
|
324
|
+
"method": "queryChange",
|
|
325
|
+
"name": "queryChange",
|
|
326
|
+
"bubbles": true,
|
|
327
|
+
"cancelable": true,
|
|
328
|
+
"composed": true,
|
|
329
|
+
"docs": {
|
|
330
|
+
"tags": [],
|
|
331
|
+
"text": "Event when the query changes"
|
|
332
|
+
},
|
|
333
|
+
"complexType": {
|
|
334
|
+
"original": "string",
|
|
335
|
+
"resolved": "string",
|
|
336
|
+
"references": {}
|
|
337
|
+
}
|
|
338
|
+
}, {
|
|
339
|
+
"method": "filter",
|
|
340
|
+
"name": "filter",
|
|
341
|
+
"bubbles": true,
|
|
342
|
+
"cancelable": true,
|
|
343
|
+
"composed": true,
|
|
344
|
+
"docs": {
|
|
345
|
+
"tags": [],
|
|
346
|
+
"text": "Event when the filter button is clicked"
|
|
347
|
+
},
|
|
348
|
+
"complexType": {
|
|
349
|
+
"original": "null",
|
|
350
|
+
"resolved": "null",
|
|
351
|
+
"references": {}
|
|
352
|
+
}
|
|
353
|
+
}, {
|
|
354
|
+
"method": "edit",
|
|
355
|
+
"name": "edit",
|
|
356
|
+
"bubbles": true,
|
|
357
|
+
"cancelable": true,
|
|
358
|
+
"composed": true,
|
|
359
|
+
"docs": {
|
|
360
|
+
"tags": [],
|
|
361
|
+
"text": "Event when the edit button is clicked"
|
|
362
|
+
},
|
|
363
|
+
"complexType": {
|
|
364
|
+
"original": "null",
|
|
365
|
+
"resolved": "null",
|
|
366
|
+
"references": {}
|
|
367
|
+
}
|
|
368
|
+
}];
|
|
369
|
+
}
|
|
370
|
+
static get elementRef() { return "_el"; }
|
|
371
|
+
static get listeners() {
|
|
372
|
+
return [{
|
|
373
|
+
"name": "localeChanged",
|
|
374
|
+
"method": "_setLocales",
|
|
375
|
+
"target": "body",
|
|
376
|
+
"capture": false,
|
|
377
|
+
"passive": false
|
|
378
|
+
}];
|
|
379
|
+
}
|
|
380
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.flex{display:flex!important}.w-full{width:100%!important}.flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.gap-4{gap:1rem!important}.border-y{border-bottom-width:1px!important;border-top-width:1px!important}.border-x-0{border-left-width:0!important;border-right-width:0!important}.border-solid{border-style:solid!important}.border-y-mystic-dark{--tw-border-opacity:1!important;border-bottom-color:rgb(218 230 240/var(--tw-border-opacity))!important;border-top-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-indigo-light{--tw-bg-opacity:1!important;background-color:rgb(241 246 255/var(--tw-bg-opacity))!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}*{box-sizing:border-box}:host{--tw-text-opacity:1;color:rgb(128 130 158/var(--tw-text-opacity));display:flex;flex-direction:column;font-size:.875rem;line-height:1.25rem;padding-left:1.5rem;padding-right:1.5rem;width:100%}:host .content{align-items:center;display:flex;flex-wrap:nowrap;gap:1rem;justify-content:space-between;padding-bottom:1.5rem;padding-top:1.5rem;width:100%}:host(.variant-header){--tw-bg-opacity:1;--tw-text-opacity:1;--tw-border-opacity:1!important;background-color:rgb(252 253 254/var(--tw-bg-opacity));border-bottom:1px solid rgb(218 230 240/var(--tw-border-opacity))!important;border-left-style:solid!important;border-left-width:0!important;border-right-style:solid!important;border-right-width:0!important;border-top:1px solid rgb(218 230 240/var(--tw-border-opacity))!important;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.75rem;font-weight:600;line-height:1rem;text-transform:uppercase}:host(.variant-header) .content{padding-bottom:.5rem;padding-top:.5rem}:host(.enable-hover:hover){--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity));cursor:pointer}.static{position:static!important}.mb-6{margin-bottom:1.5rem!important}.mb-14{margin-bottom:3.5rem!important}.table{display:table!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-6{width:1.5rem!important}.max-w-\[20rem\]{max-width:20rem!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.self-center{align-self:center!important}.rounded{border-radius:.25rem!important}.py-24{padding-bottom:6rem!important;padding-top:6rem!important}.text-center{text-align:center!important}.text-storm-medium{--tw-text-opacity:1!important;color:rgb(128 130 158/var(--tw-text-opacity))!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}.h-8{height:2rem!important}@media (min-width:64rem){.desktop-xs\:flex{display:flex!important}}.fixed{position:fixed!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.w-3\/4{width:75%!important}.justify-end{justify-content:flex-end!important}.justify-self-end{justify-self:end!important}.border{border-width:1px!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))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}@media (min-width:64rem){.desktop-xs\:hidden{display:none!important}.desktop-xs\:w-auto{width:auto!important}.desktop-xs\:flex-row{flex-direction:row!important}}.m-0{margin:0!important}.visible{visibility:visible!important}.absolute{position:absolute!important}.blur{--tw-blur:blur(8px)!important;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}.w-1\/12{width:8.333333%!important}.w-2\/12{width:16.666667%!important}.w-3\/12{width:25%!important}.w-4\/12{width:33.333333%!important}.w-5\/12{width:41.666667%!important}.w-6\/12{width:50%!important}.w-7\/12{width:58.333333%!important}.w-8\/12{width:66.666667%!important}.w-9\/12{width:75%!important}.w-10\/12{width:83.333333%!important}.w-11\/12{width:91.666667%!important}.w-auto{width:auto!important}.flex-1{flex:1 1 0%!important}.justify-start{justify-content:flex-start!important}.justify-center{justify-content:center!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}@media (min-width:40rem){.tablet\:w-1\/12{width:8.333333%!important}.tablet\:w-2\/12{width:16.666667%!important}.tablet\:w-3\/12{width:25%!important}.tablet\:w-4\/12{width:33.333333%!important}.tablet\:w-5\/12{width:41.666667%!important}.tablet\:w-6\/12{width:50%!important}.tablet\:w-7\/12{width:58.333333%!important}.tablet\:w-8\/12{width:66.666667%!important}.tablet\:w-9\/12{width:75%!important}.tablet\:w-10\/12{width:83.333333%!important}.tablet\:w-11\/12{width:91.666667%!important}}@media (min-width:64rem){.desktop-xs\:w-1\/12{width:8.333333%!important}.desktop-xs\:w-2\/12{width:16.666667%!important}.desktop-xs\:w-3\/12{width:25%!important}.desktop-xs\:w-4\/12{width:33.333333%!important}.desktop-xs\:w-5\/12{width:41.666667%!important}.desktop-xs\:w-6\/12{width:50%!important}.desktop-xs\:w-7\/12{width:58.333333%!important}.desktop-xs\:w-8\/12{width:66.666667%!important}.desktop-xs\:w-9\/12{width:75%!important}.desktop-xs\:w-10\/12{width:83.333333%!important}.desktop-xs\:w-11\/12{width:91.666667%!important}}@media (min-width:80rem){.desktop-sm\:w-1\/12{width:8.333333%!important}.desktop-sm\:w-2\/12{width:16.666667%!important}.desktop-sm\:w-3\/12{width:25%!important}.desktop-sm\:w-4\/12{width:33.333333%!important}.desktop-sm\:w-5\/12{width:41.666667%!important}.desktop-sm\:w-6\/12{width:50%!important}.desktop-sm\:w-7\/12{width:58.333333%!important}.desktop-sm\:w-8\/12{width:66.666667%!important}.desktop-sm\:w-9\/12{width:75%!important}.desktop-sm\:w-10\/12{width:83.333333%!important}.desktop-sm\:w-11\/12{width:91.666667%!important}}@media (min-width:85.375rem){.desktop\:w-1\/12{width:8.333333%!important}.desktop\:w-2\/12{width:16.666667%!important}.desktop\:w-3\/12{width:25%!important}.desktop\:w-4\/12{width:33.333333%!important}.desktop\:w-5\/12{width:41.666667%!important}.desktop\:w-6\/12{width:50%!important}.desktop\:w-7\/12{width:58.333333%!important}.desktop\:w-8\/12{width:66.666667%!important}.desktop\:w-9\/12{width:75%!important}.desktop\:w-10\/12{width:83.333333%!important}.desktop\:w-11\/12{width:91.666667%!important}}@media (min-width:90rem){.desktop-lg\:w-1\/12{width:8.333333%!important}.desktop-lg\:w-2\/12{width:16.666667%!important}.desktop-lg\:w-3\/12{width:25%!important}.desktop-lg\:w-4\/12{width:33.333333%!important}.desktop-lg\:w-5\/12{width:41.666667%!important}.desktop-lg\:w-6\/12{width:50%!important}.desktop-lg\:w-7\/12{width:58.333333%!important}.desktop-lg\:w-8\/12{width:66.666667%!important}.desktop-lg\:w-9\/12{width:75%!important}.desktop-lg\:w-10\/12{width:83.333333%!important}.desktop-lg\:w-11\/12{width:91.666667%!important}}@media (min-width:120rem){.desktop-xl\:w-1\/12{width:8.333333%!important}.desktop-xl\:w-2\/12{width:16.666667%!important}.desktop-xl\:w-3\/12{width:25%!important}.desktop-xl\:w-4\/12{width:33.333333%!important}.desktop-xl\:w-5\/12{width:41.666667%!important}.desktop-xl\:w-6\/12{width:50%!important}.desktop-xl\:w-7\/12{width:58.333333%!important}.desktop-xl\:w-8\/12{width:66.666667%!important}.desktop-xl\:w-9\/12{width:75%!important}.desktop-xl\:w-10\/12{width:83.333333%!important}.desktop-xl\:w-11\/12{width:91.666667%!important}}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
|
2
|
+
export class TableRow {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.variant = 'default';
|
|
5
|
+
this.enableHover = true;
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { class: `p-table-row variant-${this.variant} ${this.enableHover &&
|
|
9
|
+
this.variant === 'default' &&
|
|
10
|
+
'enable-hover'}` }, h("div", { class: "content" }, h("slot", null)), this.variant === 'default' && h("p-divider", { class: "m-0" })));
|
|
11
|
+
}
|
|
12
|
+
static get is() { return "p-table-row"; }
|
|
13
|
+
static get encapsulation() { return "shadow"; }
|
|
14
|
+
static get originalStyleUrls() {
|
|
15
|
+
return {
|
|
16
|
+
"$": ["table-row.component.scss"]
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
static get styleUrls() {
|
|
20
|
+
return {
|
|
21
|
+
"$": ["table-row.component.css"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static get properties() {
|
|
25
|
+
return {
|
|
26
|
+
"variant": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"mutable": false,
|
|
29
|
+
"complexType": {
|
|
30
|
+
"original": "'default' | 'header'",
|
|
31
|
+
"resolved": "\"default\" | \"header\"",
|
|
32
|
+
"references": {}
|
|
33
|
+
},
|
|
34
|
+
"required": false,
|
|
35
|
+
"optional": false,
|
|
36
|
+
"docs": {
|
|
37
|
+
"tags": [],
|
|
38
|
+
"text": "Variant of the header"
|
|
39
|
+
},
|
|
40
|
+
"attribute": "variant",
|
|
41
|
+
"reflect": false,
|
|
42
|
+
"defaultValue": "'default'"
|
|
43
|
+
},
|
|
44
|
+
"enableHover": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"mutable": false,
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "boolean",
|
|
49
|
+
"resolved": "boolean",
|
|
50
|
+
"references": {}
|
|
51
|
+
},
|
|
52
|
+
"required": false,
|
|
53
|
+
"optional": false,
|
|
54
|
+
"docs": {
|
|
55
|
+
"tags": [],
|
|
56
|
+
"text": "Enable hover"
|
|
57
|
+
},
|
|
58
|
+
"attribute": "enable-hover",
|
|
59
|
+
"reflect": false,
|
|
60
|
+
"defaultValue": "true"
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.flex{display:flex!important}.w-full{width:100%!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.rounded{border-radius:.25rem!important}.border-l-4{border-left-width:4px!important}.border-solid{border-style:solid!important}.border-l-positive{--tw-border-opacity:1!important;border-left-color:rgb(40 209 124/var(--tw-border-opacity))!important}.border-l-unbiased{--tw-border-opacity:1!important;border-left-color:rgb(255 199 45/var(--tw-border-opacity))!important}.border-l-negative{--tw-border-opacity:1!important;border-left-color:rgb(185 30 40/var(--tw-border-opacity))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.shadow-4{--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;--tw-shadow:0px 0.3125rem 1rem rgba(0,24,98,.08),0px 0.0625rem 0.1875rem rgba(0,24,98,.13)!important;--tw-shadow-colored:0px 0.3125rem 1rem var(--tw-shadow-color),0px 0.0625rem 0.1875rem var(--tw-shadow-color)!important;align-items:center;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-left-width:4px!important;border-radius:.25rem;border-style:solid!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;box-sizing:border-box;display:flex;gap:.5rem;justify-content:space-between;padding:1rem 1rem 1rem 1.25rem;width:100%}:host p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.variant-positive){--tw-border-opacity:1!important;border-left-color:rgb(40 209 124/var(--tw-border-opacity))!important}:host(.variant-unbiased){--tw-border-opacity:1!important;border-left-color:rgb(255 199 45/var(--tw-border-opacity))!important}:host(.variant-negative){--tw-border-opacity:1!important;border-left-color:rgb(185 30 40/var(--tw-border-opacity))!important}.static{position:static!important}.min-w-0{min-width:0!important}.flex-shrink-0{flex-shrink:0!important}.flex-col{flex-direction:column!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-storm{--tw-text-opacity:1!important;color:rgb(81 83 107/var(--tw-text-opacity))!important}.text-storm-medium{--tw-text-opacity:1!important;color:rgb(128 130 158/var(--tw-text-opacity))!important}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
|
2
|
+
export class Toast {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.variant = 'positive';
|
|
5
|
+
this.header = undefined;
|
|
6
|
+
this.content = undefined;
|
|
7
|
+
this.enableAction = true;
|
|
8
|
+
this.actionIcon = 'negative';
|
|
9
|
+
this.actionIconFlip = undefined;
|
|
10
|
+
this.actionIconRotate = undefined;
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
return (h(Host, { class: `p-toast variant-${this.variant}`, onClick: () => this._onClick() }, h("div", { class: "flex flex-col w-full min-w-0" }, h("p", { class: "font-semibold text-storm" }, ((_a = this.header) === null || _a === void 0 ? void 0 : _a.length) ? (this.header) : (h("slot", { name: "header" }))), h("p", { class: "text-sm text-storm-medium w-full" }, ((_b = this.content) === null || _b === void 0 ? void 0 : _b.length) ? (this.content) : (h("slot", { name: "content" })))), this.enableAction && (h("p-button", { variant: "secondary", iconOnly: true, size: "small", icon: this.actionIcon, iconFlip: this.actionIconFlip, iconRotate: this.actionIconRotate, class: "flex-shrink-0" }))));
|
|
15
|
+
}
|
|
16
|
+
_onClick() {
|
|
17
|
+
if (this.enableAction) {
|
|
18
|
+
this.action.emit();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
static get is() { return "p-toast"; }
|
|
22
|
+
static get encapsulation() { return "shadow"; }
|
|
23
|
+
static get originalStyleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["toast.component.scss"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get styleUrls() {
|
|
29
|
+
return {
|
|
30
|
+
"$": ["toast.component.css"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static get properties() {
|
|
34
|
+
return {
|
|
35
|
+
"variant": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"mutable": false,
|
|
38
|
+
"complexType": {
|
|
39
|
+
"original": "'positive' | 'unbiased' | 'negative'",
|
|
40
|
+
"resolved": "\"negative\" | \"positive\" | \"unbiased\"",
|
|
41
|
+
"references": {}
|
|
42
|
+
},
|
|
43
|
+
"required": false,
|
|
44
|
+
"optional": false,
|
|
45
|
+
"docs": {
|
|
46
|
+
"tags": [],
|
|
47
|
+
"text": "The variant of the toast"
|
|
48
|
+
},
|
|
49
|
+
"attribute": "variant",
|
|
50
|
+
"reflect": false,
|
|
51
|
+
"defaultValue": "'positive'"
|
|
52
|
+
},
|
|
53
|
+
"header": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "string",
|
|
58
|
+
"resolved": "string",
|
|
59
|
+
"references": {}
|
|
60
|
+
},
|
|
61
|
+
"required": false,
|
|
62
|
+
"optional": true,
|
|
63
|
+
"docs": {
|
|
64
|
+
"tags": [],
|
|
65
|
+
"text": "The header of the toast"
|
|
66
|
+
},
|
|
67
|
+
"attribute": "header",
|
|
68
|
+
"reflect": false
|
|
69
|
+
},
|
|
70
|
+
"content": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "string",
|
|
75
|
+
"resolved": "string",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": true,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": "The content of the toast"
|
|
83
|
+
},
|
|
84
|
+
"attribute": "content",
|
|
85
|
+
"reflect": false
|
|
86
|
+
},
|
|
87
|
+
"enableAction": {
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "boolean",
|
|
92
|
+
"resolved": "boolean",
|
|
93
|
+
"references": {}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": "Wether to enable the close button"
|
|
100
|
+
},
|
|
101
|
+
"attribute": "enable-action",
|
|
102
|
+
"reflect": false,
|
|
103
|
+
"defaultValue": "true"
|
|
104
|
+
},
|
|
105
|
+
"actionIcon": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "IconVariant",
|
|
110
|
+
"resolved": "\"arrow\" | \"attachment\" | \"bread\" | \"calendar\" | \"camera\" | \"car\" | \"checklist\" | \"checkmark\" | \"chevron\" | \"clock\" | \"cogs\" | \"comment\" | \"document\" | \"download\" | \"envelope\" | \"explanation\" | \"eye\" | \"filter\" | \"folder\" | \"grid\" | \"headset\" | \"integration\" | \"list\" | \"location\" | \"megaphone\" | \"menu\" | \"minus\" | \"more\" | \"negative\" | \"notification\" | \"pagination\" | \"payment\" | \"pencil\" | \"person\" | \"plus\" | \"question\" | \"reload\" | \"receipt\" | \"report\" | \"search\" | \"settings\" | \"sick\" | \"signout\" | \"switch\" | \"tachometer\" | \"task\" | \"template\" | \"tool\" | \"trash\" | \"turn\" | \"upload\" | \"warning\"",
|
|
111
|
+
"references": {
|
|
112
|
+
"IconVariant": {
|
|
113
|
+
"location": "import",
|
|
114
|
+
"path": "../../atoms/icon/icon.component"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "Icon to show on the button"
|
|
123
|
+
},
|
|
124
|
+
"attribute": "action-icon",
|
|
125
|
+
"reflect": false,
|
|
126
|
+
"defaultValue": "'negative'"
|
|
127
|
+
},
|
|
128
|
+
"actionIconFlip": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"mutable": false,
|
|
131
|
+
"complexType": {
|
|
132
|
+
"original": "IconFlipOptions",
|
|
133
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
134
|
+
"references": {
|
|
135
|
+
"IconFlipOptions": {
|
|
136
|
+
"location": "import",
|
|
137
|
+
"path": "../../atoms/icon/icon.component"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": false,
|
|
142
|
+
"optional": false,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": "Icon flip"
|
|
146
|
+
},
|
|
147
|
+
"attribute": "action-icon-flip",
|
|
148
|
+
"reflect": false
|
|
149
|
+
},
|
|
150
|
+
"actionIconRotate": {
|
|
151
|
+
"type": "number",
|
|
152
|
+
"mutable": false,
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "RotateOptions",
|
|
155
|
+
"resolved": "-135 | -180 | -225 | -25 | -270 | -315 | -45 | -90 | 0 | 135 | 180 | 225 | 25 | 270 | 315 | 45 | 90",
|
|
156
|
+
"references": {
|
|
157
|
+
"RotateOptions": {
|
|
158
|
+
"location": "import",
|
|
159
|
+
"path": "../../../types"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"required": false,
|
|
164
|
+
"optional": false,
|
|
165
|
+
"docs": {
|
|
166
|
+
"tags": [],
|
|
167
|
+
"text": "Icon rotate"
|
|
168
|
+
},
|
|
169
|
+
"attribute": "action-icon-rotate",
|
|
170
|
+
"reflect": false
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
static get events() {
|
|
175
|
+
return [{
|
|
176
|
+
"method": "action",
|
|
177
|
+
"name": "action",
|
|
178
|
+
"bubbles": true,
|
|
179
|
+
"cancelable": true,
|
|
180
|
+
"composed": true,
|
|
181
|
+
"docs": {
|
|
182
|
+
"tags": [],
|
|
183
|
+
"text": "Button click event"
|
|
184
|
+
},
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "MouseEvent",
|
|
187
|
+
"resolved": "MouseEvent",
|
|
188
|
+
"references": {
|
|
189
|
+
"MouseEvent": {
|
|
190
|
+
"location": "global"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}];
|
|
195
|
+
}
|
|
196
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.block{display:block!important}*{box-sizing:border-box}:host{display:block}.static{position:static!important}.flex{display:flex!important}.rotate-0{--tw-rotate:0deg!important}.rotate-0,.rotate-25{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-25{--tw-rotate:25deg!important}.rotate-45{--tw-rotate:45deg!important}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-90{--tw-rotate:90deg!important}.rotate-135{--tw-rotate:135deg!important}.rotate-135,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-180{--tw-rotate:180deg!important}.rotate-225{--tw-rotate:225deg!important}.rotate-225,.rotate-270{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-270{--tw-rotate:270deg!important}.rotate-315{--tw-rotate:315deg!important}.-rotate-0,.rotate-315{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-0{--tw-rotate:-0deg!important}.-rotate-25{--tw-rotate:-25deg!important}.-rotate-25,.-rotate-45{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-45{--tw-rotate:-45deg!important}.-rotate-90{--tw-rotate:-90deg!important}.-rotate-135,.-rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-135{--tw-rotate:-135deg!important}.-rotate-180{--tw-rotate:-180deg!important}.-rotate-180,.-rotate-225{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-225{--tw-rotate:-225deg!important}.-rotate-270{--tw-rotate:-270deg!important}.-rotate-270,.-rotate-315{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-315{--tw-rotate:-315deg!important}.scale-x-flip{--tw-scale-x:-1!important}.scale-x-flip,.scale-y-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.scale-y-flip{--tw-scale-y:-1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.text-xxs{font-size:.6875rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-lg{font-size:1.125rem!important}.text-lg,.text-xl{line-height:1.75rem!important}.text-xl{font-size:1.25rem!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-5xl{font-size:3rem!important}.text-5xl,.text-6xl{line-height:1!important}.text-6xl{font-size:3.75rem!important}.inline{display:inline!important}.w-full{width:100%!important}.justify-center{justify-content:center!important}
|