@paperless/core 0.1.0-alpha.13 → 0.1.0-alpha.130
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 +1221 -0
- package/README.md +1 -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/icons/camera.svg +10 -0
- package/dist/assets/icons/checklist.svg +17 -0
- package/dist/assets/icons/folder.svg +19 -0
- package/dist/assets/icons/integration.svg +17 -0
- package/dist/assets/icons/menu.svg +25 -0
- package/dist/assets/icons/more.svg +18 -0
- package/dist/assets/icons/signout.svg +23 -0
- package/dist/assets/icons/switch.svg +20 -0
- package/dist/assets/icons/task.svg +17 -0
- package/dist/assets/icons/template.svg +17 -0
- package/dist/assets/illustrations/e-mail.svg +1 -0
- package/dist/build/index.esm.js +1 -0
- package/dist/build/p-0436439c.entry.js +1 -0
- package/dist/build/p-04b7fb67.entry.js +1 -0
- package/dist/build/p-08ff155d.entry.js +1 -0
- package/dist/build/p-09ea2a1a.js +1 -0
- package/dist/build/p-0ca1b35a.entry.js +1 -0
- package/dist/build/p-0cf8e23a.entry.js +1 -0
- package/dist/build/p-11275959.entry.js +1 -0
- package/dist/build/p-1d160328.entry.js +1 -0
- package/dist/build/p-52f0e66c.entry.js +1 -0
- package/dist/build/p-5b893ad4.entry.js +1 -0
- package/dist/build/p-5d768271.entry.js +1 -0
- package/dist/build/p-5f233f4b.entry.js +1 -0
- package/dist/build/p-60f920a3.entry.js +1 -0
- package/dist/build/p-6628b145.js +1 -0
- package/dist/build/p-66b0c60c.entry.js +1 -0
- package/dist/build/p-677d0647.entry.js +1 -0
- package/dist/build/p-6c60fd3d.js +1 -0
- package/dist/build/p-721d414a.entry.js +1 -0
- package/dist/build/p-759b427a.entry.js +1 -0
- package/dist/build/p-7febed77.entry.js +1 -0
- package/dist/build/p-8a6728d5.js +1 -0
- package/dist/{paperless/p-23980fbb.entry.js → build/p-954e3737.entry.js} +1 -1
- package/dist/build/p-9d0a94fb.entry.js +1 -0
- package/dist/build/p-9d9dcf0c.entry.js +1 -0
- package/dist/build/p-a7086ffa.js +1 -0
- package/dist/build/p-a81035d0.js +2 -0
- package/dist/build/p-a93693cd.entry.js +1 -0
- package/dist/build/p-b12f4b10.entry.js +1 -0
- package/dist/build/p-b2edfc61.entry.js +1 -0
- package/dist/build/p-b74773de.entry.js +1 -0
- package/dist/build/p-cfe0f01b.entry.js +1 -0
- package/dist/build/p-d2c6ba5f.entry.js +1 -0
- package/dist/build/p-e2407e98.entry.js +1 -0
- package/dist/build/p-e56512f0.entry.js +1 -0
- package/dist/build/p-e633010e.entry.js +1 -0
- package/dist/build/p-ed08c398.entry.js +1 -0
- package/dist/build/p-f8fa3f28.entry.js +1 -0
- package/dist/build/p-f9d3bcb7.entry.js +1 -0
- package/dist/build/paperless.css +305 -20
- 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-6b6e08cc.js → index-16bca782.js} +200 -5
- package/dist/cjs/index.cjs.js +12 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/localization-791c9a22.js +61 -0
- package/dist/cjs/object-get-by-path-6dc21ed5.js +12 -0
- package/dist/cjs/p-accordion.cjs.entry.js +42 -0
- package/dist/cjs/p-avatar-group.cjs.entry.js +19 -0
- package/dist/cjs/p-avatar.cjs.entry.js +19 -5
- package/dist/cjs/p-button_3.cjs.entry.js +334 -65
- package/dist/cjs/p-card-body.cjs.entry.js +23 -0
- package/dist/cjs/p-card-container.cjs.entry.js +27 -0
- package/dist/cjs/p-card-header.cjs.entry.js +24 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +221 -0
- package/dist/cjs/p-counter.cjs.entry.js +11 -3
- package/dist/cjs/p-divider.cjs.entry.js +6 -3
- package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js +264 -0
- package/dist/cjs/p-dropdown_2.cjs.entry.js +163 -0
- package/dist/cjs/p-helper_5.cjs.entry.js +138 -0
- package/dist/cjs/p-illustration.cjs.entry.js +5 -2
- package/dist/cjs/p-info-panel.cjs.entry.js +2 -2
- package/dist/cjs/p-layout.cjs.entry.js +23 -0
- package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +101 -0
- package/dist/cjs/p-modal.cjs.entry.js +48 -0
- package/dist/cjs/p-navbar.cjs.entry.js +34 -0
- package/dist/cjs/p-navigation-item.cjs.entry.js +23 -0
- package/dist/cjs/p-profile.cjs.entry.js +49 -0
- package/dist/cjs/p-slider-indicator.cjs.entry.js +23 -0
- package/dist/cjs/p-status.cjs.entry.js +49 -0
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +56 -0
- package/dist/cjs/p-stepper.cjs.entry.js +71 -0
- package/dist/cjs/p-tab-group.cjs.entry.js +19 -0
- package/dist/cjs/p-tab-item.cjs.entry.js +23 -0
- package/dist/cjs/p-table-body.cjs.entry.js +19 -0
- package/dist/cjs/p-table-container_4.cjs.entry.js +1067 -0
- package/dist/cjs/p-table-definition.cjs.entry.js +36 -0
- package/dist/cjs/p-table.cjs.entry.js +337 -0
- package/dist/cjs/p-tooltip.cjs.entry.js +35 -1807
- package/dist/cjs/paperless.cjs.js +3 -3
- package/dist/cjs/popper-e0c4ed4c.js +1790 -0
- package/dist/collection/assets/icons/camera.svg +10 -0
- package/dist/collection/assets/icons/checklist.svg +17 -0
- package/dist/collection/assets/icons/folder.svg +19 -0
- package/dist/collection/assets/icons/integration.svg +17 -0
- package/dist/collection/assets/icons/menu.svg +25 -0
- package/dist/collection/assets/icons/more.svg +18 -0
- package/dist/collection/assets/icons/signout.svg +23 -0
- package/dist/collection/assets/icons/switch.svg +20 -0
- package/dist/collection/assets/icons/task.svg +17 -0
- package/dist/collection/assets/icons/template.svg +17 -0
- package/dist/collection/assets/illustrations/e-mail.svg +1 -0
- package/dist/collection/collection-manifest.json +40 -2
- package/dist/collection/components/atoms/avatar/avatar.component.css +13 -20
- package/dist/collection/components/atoms/avatar/avatar.component.js +21 -7
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +18 -0
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +36 -0
- package/dist/collection/components/atoms/button/button.component.css +58 -21
- package/dist/collection/components/atoms/button/button.component.js +133 -11
- package/dist/collection/components/atoms/card-body/card-body.component.css +9 -0
- package/dist/collection/components/atoms/card-body/card-body.component.js +40 -0
- package/dist/collection/components/atoms/card-container/card-container.component.css +17 -0
- package/dist/collection/components/atoms/card-container/card-container.component.js +63 -0
- package/dist/collection/components/atoms/card-header/card-header.component.css +17 -0
- package/dist/collection/components/atoms/card-header/card-header.component.js +61 -0
- package/dist/collection/components/atoms/counter/counter.component.css +26 -1
- package/dist/collection/components/atoms/counter/counter.component.js +50 -2
- package/dist/collection/components/atoms/divider/divider.component.css +9 -2
- package/dist/collection/components/atoms/divider/divider.component.js +8 -2
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +6 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +14 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +13 -0
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +64 -0
- package/dist/collection/components/atoms/helper/helper.component.css +1 -1
- package/dist/collection/components/atoms/helper/helper.component.js +33 -2
- package/dist/collection/components/atoms/icon/icon.component.css +1 -0
- package/dist/collection/components/atoms/icon/icon.component.js +62 -13
- package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -1
- package/dist/collection/components/atoms/layout/layout.component.css +73 -0
- package/dist/collection/components/atoms/layout/layout.component.js +47 -0
- package/dist/collection/components/atoms/loader/loader.component.css +2 -2
- package/dist/collection/components/atoms/loader/loader.component.js +4 -3
- package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +7 -0
- package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.js +15 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.css +7 -0
- package/dist/collection/components/atoms/modal-body/modal-body.component.js +41 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.css +6 -0
- package/dist/collection/components/atoms/modal-container/modal-container.component.js +53 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +8 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +42 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +16 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +64 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -1
- package/dist/collection/components/atoms/segment-container/segment-container.component.css +5 -0
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +14 -0
- package/dist/collection/components/atoms/segment-item/segment-item.component.css +21 -0
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +112 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +7 -0
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +40 -0
- package/dist/collection/components/atoms/status/status.component.css +16 -0
- package/dist/collection/components/atoms/status/status.component.js +133 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +59 -0
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +109 -0
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +18 -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 +9 -0
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +17 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.css +10 -0
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +41 -0
- package/dist/collection/components/atoms/table-body/table-body.component.css +3 -0
- package/dist/collection/components/atoms/table-body/table-body.component.js +15 -0
- package/dist/collection/components/atoms/table-container/table-container.component.css +5 -0
- package/dist/collection/components/atoms/table-container/table-container.component.js +15 -0
- package/dist/collection/components/atoms/tag/tag.component.css +51 -0
- package/dist/collection/components/atoms/tag/tag.component.js +64 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +19 -13
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +77 -24
- package/dist/collection/components/helpers/table-definition/table-definition.component.js +159 -0
- package/dist/collection/components/molecules/accordion/accordion.component.css +3 -0
- package/dist/collection/components/molecules/accordion/accordion.component.js +133 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.css +44 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +322 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +12 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +310 -0
- package/dist/collection/components/molecules/input-group/input-group.component.css +275 -0
- package/dist/collection/components/molecules/input-group/input-group.component.js +295 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +22 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +118 -0
- 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 +195 -0
- package/dist/collection/components/molecules/pagination/pagination.component.css +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.js +61 -16
- package/dist/collection/components/molecules/profile/profile.component.css +60 -0
- package/dist/collection/components/molecules/profile/profile.component.js +95 -0
- package/dist/collection/components/molecules/stepper/stepper.component.css +12 -0
- package/dist/collection/components/molecules/stepper/stepper.component.js +106 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.css +30 -0
- package/dist/collection/components/molecules/table-footer/table-footer.component.js +244 -0
- package/dist/collection/components/molecules/table-header/table-header.component.css +16 -0
- package/dist/collection/components/molecules/table-header/table-header.component.js +368 -0
- package/dist/collection/components/molecules/table-row/table-row.component.css +21 -0
- package/dist/collection/components/molecules/table-row/table-row.component.js +67 -0
- package/dist/collection/components/organisms/modal/modal.component.js +175 -0
- package/dist/collection/components/organisms/navbar/navbar.component.css +59 -0
- package/dist/collection/components/organisms/navbar/navbar.component.js +99 -0
- package/dist/collection/components/organisms/table/table.component.css +3 -0
- package/dist/collection/components/organisms/table/table.component.js +888 -0
- package/dist/collection/index.js +2 -1
- package/dist/collection/tailwind/animation.js +17 -0
- package/dist/collection/tailwind/backdrop-blur.js +3 -0
- package/dist/collection/tailwind/border-radius.js +8 -7
- package/dist/collection/tailwind/height.js +3 -0
- package/dist/collection/tailwind/screens.js +8 -0
- package/dist/collection/tailwind/shadows.js +9 -5
- package/dist/collection/tailwind/spacing.js +10 -0
- package/dist/collection/tailwind/typography.js +21 -0
- package/dist/collection/tailwind/width.js +18 -0
- package/dist/collection/tailwind/z-index.js +3 -0
- package/dist/collection/tailwind.config.js +28 -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/child-of.js +5 -0
- package/dist/collection/utils/icons.js +20 -0
- package/dist/collection/utils/illustrations.js +2 -0
- package/dist/collection/utils/index.js +5 -0
- package/dist/collection/utils/localization.js +56 -0
- package/dist/collection/utils/object-get-by-path.js +8 -0
- package/dist/components/button.component.js +125 -0
- package/dist/components/counter.component.js +41 -0
- package/dist/components/divider.component.js +33 -0
- package/dist/components/dropdown-menu-container.component.js +29 -0
- package/dist/components/dropdown-menu-item.component.js +43 -0
- package/dist/components/dropdown.component.js +180 -0
- package/dist/components/helper.component.js +42 -0
- package/dist/components/icon.component.js +248 -5
- package/dist/components/index.d.ts +50 -12
- package/dist/components/index.js +40 -0
- package/dist/components/input-group.component.js +107 -0
- package/dist/components/loader.component.js +5 -4
- package/dist/components/localization.js +58 -0
- package/dist/components/modal-backdrop.component.js +30 -0
- package/dist/components/modal-body.component.js +36 -0
- package/dist/components/modal-container.component.js +48 -0
- package/dist/components/modal-footer.component.js +42 -0
- package/dist/components/modal-header.component.js +43 -0
- package/dist/components/p-accordion.d.ts +11 -0
- package/dist/components/p-accordion.js +73 -0
- package/dist/components/p-avatar-group.d.ts +11 -0
- package/dist/components/p-avatar-group.js +34 -0
- package/dist/components/p-avatar.js +21 -8
- package/dist/components/p-button.js +1 -93
- package/dist/components/p-card-body.d.ts +11 -0
- package/dist/components/p-card-body.js +38 -0
- package/dist/components/p-card-container.d.ts +11 -0
- package/dist/components/p-card-container.js +44 -0
- package/dist/components/p-card-header.d.ts +11 -0
- package/dist/components/p-card-header.js +46 -0
- package/dist/components/p-content-slider.d.ts +11 -0
- package/dist/components/p-content-slider.js +250 -0
- package/dist/components/p-counter.js +1 -28
- package/dist/components/p-divider.js +1 -28
- package/dist/components/p-dropdown-menu-container.d.ts +11 -0
- package/dist/components/p-dropdown-menu-container.js +6 -0
- package/dist/components/p-dropdown-menu-item.d.ts +11 -0
- package/dist/components/p-dropdown-menu-item.js +6 -0
- package/dist/components/p-dropdown.d.ts +11 -0
- package/dist/components/p-dropdown.js +6 -0
- package/dist/components/p-helper.js +1 -34
- package/dist/components/p-illustration.js +3 -0
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-input-group.d.ts +11 -0
- package/dist/components/p-input-group.js +6 -0
- package/dist/components/p-layout.d.ts +11 -0
- package/dist/components/p-layout.js +39 -0
- package/dist/components/p-modal-backdrop.d.ts +11 -0
- package/dist/components/p-modal-backdrop.js +6 -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 +111 -0
- package/dist/components/p-navbar.d.ts +11 -0
- package/dist/components/p-navbar.js +70 -0
- package/dist/components/p-navigation-item.d.ts +11 -0
- package/dist/components/p-navigation-item.js +55 -0
- 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 -187
- package/dist/components/p-profile.d.ts +11 -0
- package/dist/components/p-profile.js +85 -0
- package/dist/components/p-segment-container.d.ts +11 -0
- package/dist/components/p-segment-container.js +6 -0
- package/dist/components/p-segment-item.d.ts +11 -0
- package/dist/components/p-segment-item.js +6 -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.d.ts +11 -0
- package/dist/components/p-status.js +73 -0
- 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 +106 -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 +39 -0
- package/dist/components/p-table-body.d.ts +11 -0
- package/dist/components/p-table-body.js +33 -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-definition.d.ts +11 -0
- package/dist/components/p-table-definition.js +57 -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 +501 -0
- package/dist/components/p-tag.d.ts +11 -0
- package/dist/components/p-tag.js +6 -0
- package/dist/components/page-size-select.component.js +118 -0
- package/dist/components/pagination-item.component.js +1 -1
- package/dist/components/pagination.component.js +202 -0
- package/dist/components/popper.js +1788 -0
- 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 +36 -0
- package/dist/components/stepper-item.component.js +57 -0
- package/dist/components/stepper-line.component.js +41 -0
- package/dist/components/table-container.component.js +30 -0
- package/dist/components/table-footer.component.js +139 -0
- package/dist/components/table-header.component.js +1050 -0
- package/dist/components/table-row.component.js +49 -0
- package/dist/components/tag.component.js +41 -0
- package/dist/components/tooltip.component.js +37 -1808
- package/dist/esm/child-of-90a8c4b5.js +7 -0
- package/dist/esm/constants-826f9460.js +4 -0
- package/dist/esm/{index-5c917d13.js → index-1ac329a8.js} +200 -5
- package/dist/esm/index.js +3 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/localization-550c043d.js +58 -0
- package/dist/esm/object-get-by-path-d6427a61.js +10 -0
- package/dist/esm/p-accordion.entry.js +38 -0
- package/dist/esm/p-avatar-group.entry.js +15 -0
- package/dist/esm/p-avatar.entry.js +19 -5
- package/dist/esm/p-button_3.entry.js +334 -65
- package/dist/esm/p-card-body.entry.js +19 -0
- package/dist/esm/p-card-container.entry.js +23 -0
- package/dist/esm/p-card-header.entry.js +20 -0
- package/dist/esm/p-content-slider.entry.js +217 -0
- package/dist/esm/p-counter.entry.js +11 -3
- package/dist/esm/p-divider.entry.js +6 -3
- package/dist/esm/p-dropdown-menu-item_4.entry.js +257 -0
- package/dist/esm/p-dropdown_2.entry.js +158 -0
- package/dist/esm/p-helper_5.entry.js +130 -0
- package/dist/esm/p-illustration.entry.js +5 -2
- package/dist/esm/p-info-panel.entry.js +2 -2
- package/dist/esm/p-layout.entry.js +19 -0
- package/dist/esm/p-modal-backdrop_5.entry.js +93 -0
- package/dist/esm/p-modal.entry.js +44 -0
- package/dist/esm/p-navbar.entry.js +30 -0
- package/dist/esm/p-navigation-item.entry.js +19 -0
- package/dist/esm/p-profile.entry.js +45 -0
- package/dist/esm/p-slider-indicator.entry.js +19 -0
- package/dist/esm/p-status.entry.js +45 -0
- package/dist/esm/p-stepper-item_2.entry.js +51 -0
- package/dist/esm/p-stepper.entry.js +67 -0
- package/dist/esm/p-tab-group.entry.js +15 -0
- package/dist/esm/p-tab-item.entry.js +19 -0
- package/dist/esm/p-table-body.entry.js +15 -0
- package/dist/esm/p-table-container_4.entry.js +1060 -0
- package/dist/esm/p-table-definition.entry.js +32 -0
- package/dist/esm/p-table.entry.js +333 -0
- package/dist/esm/p-tooltip.entry.js +35 -1807
- package/dist/esm/paperless.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- 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 +1788 -0
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -0
- package/dist/paperless/p-0436439c.entry.js +1 -0
- package/dist/paperless/p-04b7fb67.entry.js +1 -0
- package/dist/paperless/p-08ff155d.entry.js +1 -0
- package/dist/paperless/p-09ea2a1a.js +1 -0
- package/dist/paperless/p-0ca1b35a.entry.js +1 -0
- package/dist/paperless/p-0cf8e23a.entry.js +1 -0
- package/dist/paperless/p-11275959.entry.js +1 -0
- package/dist/paperless/p-1d160328.entry.js +1 -0
- package/dist/paperless/p-52f0e66c.entry.js +1 -0
- package/dist/paperless/p-5b893ad4.entry.js +1 -0
- package/dist/paperless/p-5d768271.entry.js +1 -0
- package/dist/paperless/p-5f233f4b.entry.js +1 -0
- package/dist/paperless/p-60f920a3.entry.js +1 -0
- package/dist/paperless/p-6628b145.js +1 -0
- package/dist/paperless/p-66b0c60c.entry.js +1 -0
- package/dist/paperless/p-677d0647.entry.js +1 -0
- package/dist/paperless/p-6c60fd3d.js +1 -0
- package/dist/paperless/p-721d414a.entry.js +1 -0
- package/dist/paperless/p-759b427a.entry.js +1 -0
- package/dist/paperless/p-7febed77.entry.js +1 -0
- package/dist/paperless/p-8a6728d5.js +1 -0
- package/dist/{build/p-23980fbb.entry.js → paperless/p-954e3737.entry.js} +1 -1
- package/dist/paperless/p-9d0a94fb.entry.js +1 -0
- package/dist/paperless/p-9d9dcf0c.entry.js +1 -0
- package/dist/paperless/p-a7086ffa.js +1 -0
- package/dist/paperless/p-a81035d0.js +2 -0
- package/dist/paperless/p-a93693cd.entry.js +1 -0
- package/dist/paperless/p-b12f4b10.entry.js +1 -0
- package/dist/paperless/p-b2edfc61.entry.js +1 -0
- package/dist/paperless/p-b74773de.entry.js +1 -0
- package/dist/paperless/p-cfe0f01b.entry.js +1 -0
- package/dist/paperless/p-d2c6ba5f.entry.js +1 -0
- package/dist/paperless/p-e2407e98.entry.js +1 -0
- package/dist/paperless/p-e56512f0.entry.js +1 -0
- package/dist/paperless/p-e633010e.entry.js +1 -0
- package/dist/paperless/p-ed08c398.entry.js +1 -0
- package/dist/paperless/p-f8fa3f28.entry.js +1 -0
- package/dist/paperless/p-f9d3bcb7.entry.js +1 -0
- package/dist/paperless/paperless.css +439 -26403
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +2 -444
- package/dist/sw.js.map +1 -0
- package/dist/tailwind/animation.js +17 -0
- package/dist/tailwind/backdrop-blur.js +3 -0
- package/dist/tailwind/border-radius.js +10 -0
- package/dist/tailwind/colors.js +52 -0
- package/dist/tailwind/height.js +3 -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 +11 -0
- package/dist/tailwind/spacing.js +10 -0
- package/dist/tailwind/typography.js +21 -0
- package/dist/tailwind/width.js +18 -0
- package/dist/tailwind/z-index.js +3 -0
- package/dist/tailwind.config.js +28 -14
- package/dist/types/components/atoms/avatar/avatar.component.d.ts +2 -0
- package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
- package/dist/types/components/atoms/button/button.component.d.ts +26 -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/dropdown-menu-container/dropdown-menu-container.component.d.ts +3 -0
- package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +12 -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/layout/layout.component.d.ts +7 -0
- package/dist/types/components/atoms/modal-backdrop/modal-backdrop.component.d.ts +3 -0
- package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +7 -0
- package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +7 -0
- package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +7 -0
- package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +12 -0
- package/dist/types/components/atoms/segment-container/segment-container.component.d.ts +3 -0
- package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +22 -0
- package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +7 -0
- package/dist/types/components/atoms/status/status.component.d.ts +23 -0
- 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-body/table-body.component.d.ts +3 -0
- package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
- package/dist/types/components/atoms/tag/tag.component.d.ts +11 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +12 -3
- package/dist/types/components/helpers/table-definition/table-definition.component.d.ts +48 -0
- package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
- package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +53 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +55 -0
- package/dist/types/components/molecules/input-group/input-group.component.d.ts +59 -0
- package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +24 -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 +44 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +10 -6
- package/dist/types/components/molecules/profile/profile.component.d.ts +20 -0
- package/dist/types/components/molecules/stepper/stepper.component.d.ts +18 -0
- package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +55 -0
- package/dist/types/components/molecules/table-header/table-header.component.d.ts +80 -0
- package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
- package/dist/types/components/organisms/modal/modal.component.d.ts +38 -0
- package/dist/types/components/organisms/navbar/navbar.component.d.ts +14 -0
- package/dist/types/components/organisms/table/table.component.d.ts +162 -0
- package/dist/types/components.d.ts +1945 -195
- package/dist/types/index.d.ts +2 -0
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/table.d.ts +5 -0
- package/dist/types/types/tailwind.d.ts +2 -0
- package/dist/types/utils/child-of.d.ts +1 -0
- package/dist/types/utils/icons.d.ts +10 -0
- package/dist/types/utils/illustrations.d.ts +1 -0
- package/dist/types/utils/index.d.ts +5 -0
- package/dist/types/utils/localization.d.ts +2 -0
- package/dist/types/utils/object-get-by-path.d.ts +1 -0
- package/dist/workbox-5fe694da.js +2 -0
- package/dist/workbox-5fe694da.js.map +1 -0
- package/package.json +61 -61
- package/dist/build/p-06a38756.entry.js +0 -1
- package/dist/build/p-19afe191.entry.js +0 -1
- package/dist/build/p-229f113b.js +0 -2
- package/dist/build/p-31f80006.entry.js +0 -1
- package/dist/build/p-332028c6.entry.js +0 -1
- package/dist/build/p-5f0ec763.entry.js +0 -1
- package/dist/build/p-6c6c1137.entry.js +0 -1
- package/dist/build/p-80bf9d06.entry.js +0 -1
- package/dist/build/p-e80637b9.entry.js +0 -1
- package/dist/build/p-ec52095f.entry.js +0 -1
- 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 -163
- package/dist/collection/tailwind/grid.js +0 -26
- package/dist/collection/utils/utils.js +0 -3
- 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 -159
- package/dist/paperless/p-06a38756.entry.js +0 -1
- package/dist/paperless/p-19afe191.entry.js +0 -1
- package/dist/paperless/p-229f113b.js +0 -2
- package/dist/paperless/p-31f80006.entry.js +0 -1
- package/dist/paperless/p-332028c6.entry.js +0 -1
- package/dist/paperless/p-5f0ec763.entry.js +0 -1
- package/dist/paperless/p-6c6c1137.entry.js +0 -1
- package/dist/paperless/p-80bf9d06.entry.js +0 -1
- package/dist/paperless/p-e80637b9.entry.js +0 -1
- package/dist/paperless/p-ec52095f.entry.js +0 -1
- package/dist/types/utils/utils.d.ts +0 -1
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import { Component, Element, Event, h, Host, Listen, Prop, State, } from '@stencil/core';
|
|
2
|
+
import { debounceTime, distinctUntilChanged, Subject } from 'rxjs';
|
|
3
|
+
import { formatTranslation, getLocaleComponentStrings, } from '../../../utils/localization';
|
|
4
|
+
export class TableHeader {
|
|
5
|
+
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Quick filters to show
|
|
8
|
+
*/
|
|
9
|
+
this.quickFilters = [];
|
|
10
|
+
/**
|
|
11
|
+
* Wether to show the search input
|
|
12
|
+
*/
|
|
13
|
+
this.enableSearch = true;
|
|
14
|
+
/**
|
|
15
|
+
* The amount of items that are selected
|
|
16
|
+
*/
|
|
17
|
+
this.itemsSelectedAmount = 0;
|
|
18
|
+
/**
|
|
19
|
+
* Wether to show the filter button
|
|
20
|
+
*/
|
|
21
|
+
this.enableFilter = true;
|
|
22
|
+
/**
|
|
23
|
+
* The template for the filter button text
|
|
24
|
+
*/
|
|
25
|
+
this.filterButtonTemplate = () => formatTranslation(this._locales.filter);
|
|
26
|
+
/**
|
|
27
|
+
* Wether to show the edit button
|
|
28
|
+
*/
|
|
29
|
+
this.enableEdit = true;
|
|
30
|
+
/**
|
|
31
|
+
* Wether to enable the edit button
|
|
32
|
+
*/
|
|
33
|
+
this.canEdit = false;
|
|
34
|
+
/**
|
|
35
|
+
* The template for the edit button text
|
|
36
|
+
*/
|
|
37
|
+
this.editButtonTemplate = (amount) => formatTranslation(amount === 0
|
|
38
|
+
? this._locales.edit
|
|
39
|
+
: amount === 1
|
|
40
|
+
? this._locales.edit_single
|
|
41
|
+
: this._locales.edit_plural, { amount });
|
|
42
|
+
/**
|
|
43
|
+
* Locales used for this component
|
|
44
|
+
*/
|
|
45
|
+
this._locales = {};
|
|
46
|
+
this._queryObserver = new Subject();
|
|
47
|
+
}
|
|
48
|
+
componentWillLoad() {
|
|
49
|
+
this._setLocales();
|
|
50
|
+
}
|
|
51
|
+
componentDidLoad() {
|
|
52
|
+
this._queryObserver
|
|
53
|
+
.pipe(debounceTime(300), distinctUntilChanged())
|
|
54
|
+
.subscribe((value) => this.queryChange.emit(value));
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
return (h(Host, { class: "p-table-header" },
|
|
58
|
+
this.quickFilters.length > 0 && (h("p-segment-container", { class: "hidden desktop-xs:flex" }, this.quickFilters.map((item) => (h("p-segment-item", { active: item.identifier ===
|
|
59
|
+
this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) },
|
|
60
|
+
item.text,
|
|
61
|
+
" ",
|
|
62
|
+
(item === null || item === void 0 ? void 0 : item.count) && `(${item.count})`))))),
|
|
63
|
+
h("div", { class: "flex flex-col desktop-xs:flex-row gap-4 justify-end justify-self-end" },
|
|
64
|
+
this.enableSearch && (h("p-input-group", { icon: "search", size: "small" },
|
|
65
|
+
h("input", { type: "text", slot: "input", placeholder: "Zoeken...", value: this.query, onInput: (ev) => this._queryObserver.next(ev.target.value) }))),
|
|
66
|
+
this.enableFilter && (h("p-button", { icon: "filter", variant: "secondary", size: "small", class: "w-full desktop-xs:w-auto", onClick: () => this.filter.emit() },
|
|
67
|
+
this.filterButtonTemplate(),
|
|
68
|
+
this.selectedFiltersAmount && (h("p-tag", { variant: "negative", circle: false, class: "ml-1" }, this.selectedFiltersAmount)))),
|
|
69
|
+
this.enableEdit && (h("div", null,
|
|
70
|
+
this._buttonTemplate(),
|
|
71
|
+
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))))))));
|
|
72
|
+
}
|
|
73
|
+
async _setLocales() {
|
|
74
|
+
this._locales = await getLocaleComponentStrings(this._el);
|
|
75
|
+
}
|
|
76
|
+
_buttonTemplate(mobile = false) {
|
|
77
|
+
return (h("p-button", { class: !mobile && 'hidden desktop-xs:flex', icon: "pencil", size: "small", width: mobile ? 'full' : 'auto', disabled: !this.canEdit, onClick: () => this.edit.emit() }, this.editButtonTemplate(mobile ? this.itemsSelectedAmount : 0)));
|
|
78
|
+
}
|
|
79
|
+
static get is() { return "p-table-header"; }
|
|
80
|
+
static get encapsulation() { return "shadow"; }
|
|
81
|
+
static get originalStyleUrls() { return {
|
|
82
|
+
"$": ["table-header.component.scss"]
|
|
83
|
+
}; }
|
|
84
|
+
static get styleUrls() { return {
|
|
85
|
+
"$": ["table-header.component.css"]
|
|
86
|
+
}; }
|
|
87
|
+
static get properties() { return {
|
|
88
|
+
"quickFilters": {
|
|
89
|
+
"type": "unknown",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "QuickFilter[]",
|
|
93
|
+
"resolved": "QuickFilter[]",
|
|
94
|
+
"references": {
|
|
95
|
+
"QuickFilter": {
|
|
96
|
+
"location": "import",
|
|
97
|
+
"path": "../../../types/table"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": false,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": "Quick filters to show"
|
|
106
|
+
},
|
|
107
|
+
"defaultValue": "[]"
|
|
108
|
+
},
|
|
109
|
+
"activeQuickFilterIdentifier": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "string",
|
|
114
|
+
"resolved": "string",
|
|
115
|
+
"references": {}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"optional": false,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": "Active quick filter identifier"
|
|
122
|
+
},
|
|
123
|
+
"attribute": "active-quick-filter-identifier",
|
|
124
|
+
"reflect": false
|
|
125
|
+
},
|
|
126
|
+
"enableSearch": {
|
|
127
|
+
"type": "boolean",
|
|
128
|
+
"mutable": false,
|
|
129
|
+
"complexType": {
|
|
130
|
+
"original": "boolean",
|
|
131
|
+
"resolved": "boolean",
|
|
132
|
+
"references": {}
|
|
133
|
+
},
|
|
134
|
+
"required": false,
|
|
135
|
+
"optional": false,
|
|
136
|
+
"docs": {
|
|
137
|
+
"tags": [],
|
|
138
|
+
"text": "Wether to show the search input"
|
|
139
|
+
},
|
|
140
|
+
"attribute": "enable-search",
|
|
141
|
+
"reflect": false,
|
|
142
|
+
"defaultValue": "true"
|
|
143
|
+
},
|
|
144
|
+
"itemsSelectedAmount": {
|
|
145
|
+
"type": "number",
|
|
146
|
+
"mutable": false,
|
|
147
|
+
"complexType": {
|
|
148
|
+
"original": "number",
|
|
149
|
+
"resolved": "number",
|
|
150
|
+
"references": {}
|
|
151
|
+
},
|
|
152
|
+
"required": false,
|
|
153
|
+
"optional": false,
|
|
154
|
+
"docs": {
|
|
155
|
+
"tags": [],
|
|
156
|
+
"text": "The amount of items that are selected"
|
|
157
|
+
},
|
|
158
|
+
"attribute": "items-selected-amount",
|
|
159
|
+
"reflect": false,
|
|
160
|
+
"defaultValue": "0"
|
|
161
|
+
},
|
|
162
|
+
"query": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"mutable": true,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "string",
|
|
167
|
+
"resolved": "string",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": false,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": "The query to show in the search bar"
|
|
175
|
+
},
|
|
176
|
+
"attribute": "query",
|
|
177
|
+
"reflect": false
|
|
178
|
+
},
|
|
179
|
+
"enableFilter": {
|
|
180
|
+
"type": "boolean",
|
|
181
|
+
"mutable": false,
|
|
182
|
+
"complexType": {
|
|
183
|
+
"original": "boolean",
|
|
184
|
+
"resolved": "boolean",
|
|
185
|
+
"references": {}
|
|
186
|
+
},
|
|
187
|
+
"required": false,
|
|
188
|
+
"optional": false,
|
|
189
|
+
"docs": {
|
|
190
|
+
"tags": [],
|
|
191
|
+
"text": "Wether to show the filter button"
|
|
192
|
+
},
|
|
193
|
+
"attribute": "enable-filter",
|
|
194
|
+
"reflect": false,
|
|
195
|
+
"defaultValue": "true"
|
|
196
|
+
},
|
|
197
|
+
"selectedFiltersAmount": {
|
|
198
|
+
"type": "number",
|
|
199
|
+
"mutable": false,
|
|
200
|
+
"complexType": {
|
|
201
|
+
"original": "number",
|
|
202
|
+
"resolved": "number",
|
|
203
|
+
"references": {}
|
|
204
|
+
},
|
|
205
|
+
"required": false,
|
|
206
|
+
"optional": false,
|
|
207
|
+
"docs": {
|
|
208
|
+
"tags": [],
|
|
209
|
+
"text": "The amount of filters being selected"
|
|
210
|
+
},
|
|
211
|
+
"attribute": "selected-filters-amount",
|
|
212
|
+
"reflect": false
|
|
213
|
+
},
|
|
214
|
+
"filterButtonTemplate": {
|
|
215
|
+
"type": "unknown",
|
|
216
|
+
"mutable": false,
|
|
217
|
+
"complexType": {
|
|
218
|
+
"original": "templateFunc",
|
|
219
|
+
"resolved": "() => string",
|
|
220
|
+
"references": {
|
|
221
|
+
"templateFunc": {
|
|
222
|
+
"location": "local"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": false,
|
|
227
|
+
"optional": false,
|
|
228
|
+
"docs": {
|
|
229
|
+
"tags": [],
|
|
230
|
+
"text": "The template for the filter button text"
|
|
231
|
+
},
|
|
232
|
+
"defaultValue": "() =>\n formatTranslation(this._locales.filter)"
|
|
233
|
+
},
|
|
234
|
+
"enableEdit": {
|
|
235
|
+
"type": "boolean",
|
|
236
|
+
"mutable": false,
|
|
237
|
+
"complexType": {
|
|
238
|
+
"original": "boolean",
|
|
239
|
+
"resolved": "boolean",
|
|
240
|
+
"references": {}
|
|
241
|
+
},
|
|
242
|
+
"required": false,
|
|
243
|
+
"optional": false,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": "Wether to show the edit button"
|
|
247
|
+
},
|
|
248
|
+
"attribute": "enable-edit",
|
|
249
|
+
"reflect": false,
|
|
250
|
+
"defaultValue": "true"
|
|
251
|
+
},
|
|
252
|
+
"canEdit": {
|
|
253
|
+
"type": "boolean",
|
|
254
|
+
"mutable": true,
|
|
255
|
+
"complexType": {
|
|
256
|
+
"original": "boolean",
|
|
257
|
+
"resolved": "boolean",
|
|
258
|
+
"references": {}
|
|
259
|
+
},
|
|
260
|
+
"required": false,
|
|
261
|
+
"optional": false,
|
|
262
|
+
"docs": {
|
|
263
|
+
"tags": [],
|
|
264
|
+
"text": "Wether to enable the edit button"
|
|
265
|
+
},
|
|
266
|
+
"attribute": "can-edit",
|
|
267
|
+
"reflect": false,
|
|
268
|
+
"defaultValue": "false"
|
|
269
|
+
},
|
|
270
|
+
"editButtonTemplate": {
|
|
271
|
+
"type": "unknown",
|
|
272
|
+
"mutable": false,
|
|
273
|
+
"complexType": {
|
|
274
|
+
"original": "buttonTemplateFunc",
|
|
275
|
+
"resolved": "(amount: number) => string",
|
|
276
|
+
"references": {
|
|
277
|
+
"buttonTemplateFunc": {
|
|
278
|
+
"location": "local"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"required": false,
|
|
283
|
+
"optional": false,
|
|
284
|
+
"docs": {
|
|
285
|
+
"tags": [],
|
|
286
|
+
"text": "The template for the edit button text"
|
|
287
|
+
},
|
|
288
|
+
"defaultValue": "(amount: number) =>\n formatTranslation(\n amount === 0\n ? this._locales.edit\n : amount === 1\n ? this._locales.edit_single\n : this._locales.edit_plural,\n { amount }\n )"
|
|
289
|
+
}
|
|
290
|
+
}; }
|
|
291
|
+
static get states() { return {
|
|
292
|
+
"_locales": {}
|
|
293
|
+
}; }
|
|
294
|
+
static get events() { return [{
|
|
295
|
+
"method": "quickFilter",
|
|
296
|
+
"name": "quickFilter",
|
|
297
|
+
"bubbles": true,
|
|
298
|
+
"cancelable": true,
|
|
299
|
+
"composed": true,
|
|
300
|
+
"docs": {
|
|
301
|
+
"tags": [],
|
|
302
|
+
"text": "Event when one of the quick filters is clicked"
|
|
303
|
+
},
|
|
304
|
+
"complexType": {
|
|
305
|
+
"original": "QuickFilter",
|
|
306
|
+
"resolved": "QuickFilter",
|
|
307
|
+
"references": {
|
|
308
|
+
"QuickFilter": {
|
|
309
|
+
"location": "import",
|
|
310
|
+
"path": "../../../types/table"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}, {
|
|
315
|
+
"method": "queryChange",
|
|
316
|
+
"name": "queryChange",
|
|
317
|
+
"bubbles": true,
|
|
318
|
+
"cancelable": true,
|
|
319
|
+
"composed": true,
|
|
320
|
+
"docs": {
|
|
321
|
+
"tags": [],
|
|
322
|
+
"text": "Event when the query changes"
|
|
323
|
+
},
|
|
324
|
+
"complexType": {
|
|
325
|
+
"original": "string",
|
|
326
|
+
"resolved": "string",
|
|
327
|
+
"references": {}
|
|
328
|
+
}
|
|
329
|
+
}, {
|
|
330
|
+
"method": "filter",
|
|
331
|
+
"name": "filter",
|
|
332
|
+
"bubbles": true,
|
|
333
|
+
"cancelable": true,
|
|
334
|
+
"composed": true,
|
|
335
|
+
"docs": {
|
|
336
|
+
"tags": [],
|
|
337
|
+
"text": "Event when the filter button is clicked"
|
|
338
|
+
},
|
|
339
|
+
"complexType": {
|
|
340
|
+
"original": "null",
|
|
341
|
+
"resolved": "null",
|
|
342
|
+
"references": {}
|
|
343
|
+
}
|
|
344
|
+
}, {
|
|
345
|
+
"method": "edit",
|
|
346
|
+
"name": "edit",
|
|
347
|
+
"bubbles": true,
|
|
348
|
+
"cancelable": true,
|
|
349
|
+
"composed": true,
|
|
350
|
+
"docs": {
|
|
351
|
+
"tags": [],
|
|
352
|
+
"text": "Event when the edit button is clicked"
|
|
353
|
+
},
|
|
354
|
+
"complexType": {
|
|
355
|
+
"original": "null",
|
|
356
|
+
"resolved": "null",
|
|
357
|
+
"references": {}
|
|
358
|
+
}
|
|
359
|
+
}]; }
|
|
360
|
+
static get elementRef() { return "_el"; }
|
|
361
|
+
static get listeners() { return [{
|
|
362
|
+
"name": "localeChanged",
|
|
363
|
+
"method": "_setLocales",
|
|
364
|
+
"target": "body",
|
|
365
|
+
"capture": false,
|
|
366
|
+
"passive": false
|
|
367
|
+
}]; }
|
|
368
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
@apply w-full flex flex-col;
|
|
3
|
+
@apply text-sm text-storm-medium;
|
|
4
|
+
@apply px-6;
|
|
5
|
+
}
|
|
6
|
+
:host .content {
|
|
7
|
+
@apply flex flex-nowrap justify-between gap-4 w-full items-center py-6;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host(.variant-header) {
|
|
11
|
+
@apply bg-mystic-light;
|
|
12
|
+
@apply text-xs font-semibold uppercase text-storm-vague;
|
|
13
|
+
@apply border-y border-solid border-y-mystic-dark !important;
|
|
14
|
+
}
|
|
15
|
+
:host(.variant-header) .content {
|
|
16
|
+
@apply py-2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host(.enable-hover:hover) {
|
|
20
|
+
@apply bg-indigo-light cursor-pointer;
|
|
21
|
+
} .static{position:static!important}.flex{display:flex!important}.table{display:table!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-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}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/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}*{box-sizing:border-box}@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}}.static{position:static!important}*{box-sizing:border-box}.static{position:static!important}.hidden{display:none!important}*{box-sizing:border-box}@media (min-width:64rem){.desktop-xs\:flex{display:flex!important}}.static{position:static!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}.flex{display:flex!important}.hidden{display:none!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.justify-end{justify-content:flex-end!important}.gap-4{gap:1rem!important}.justify-self-end{justify-self:end!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))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!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}*{box-sizing:border-box}@media (min-width:64rem){.desktop-xs\:flex{display:flex!important}.desktop-xs\:hidden{display:none!important}.desktop-xs\:w-auto{width:auto!important}.desktop-xs\:flex-row{flex-direction:row!important}}.static{position:static!important}.m-0{margin:0!important}*{box-sizing:border-box}.static{position:static!important}*{box-sizing:border-box}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!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}*{box-sizing:border-box}*{box-sizing:border-box}.static{position:static!important}.m-0{margin:0!important}*{box-sizing:border-box}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Component, h, Host, Prop } from '@stencil/core';
|
|
2
|
+
export class TableRow {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Variant of the header
|
|
6
|
+
*/
|
|
7
|
+
this.variant = 'default';
|
|
8
|
+
/**
|
|
9
|
+
* Enable hover
|
|
10
|
+
*/
|
|
11
|
+
this.enableHover = true;
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h(Host, { class: `p-table-row variant-${this.variant} ${this.enableHover &&
|
|
15
|
+
this.variant === 'default' &&
|
|
16
|
+
'enable-hover'}` },
|
|
17
|
+
h("div", { class: "content" },
|
|
18
|
+
h("slot", null)),
|
|
19
|
+
this.variant === 'default' && h("p-divider", { class: "m-0" })));
|
|
20
|
+
}
|
|
21
|
+
static get is() { return "p-table-row"; }
|
|
22
|
+
static get encapsulation() { return "shadow"; }
|
|
23
|
+
static get originalStyleUrls() { return {
|
|
24
|
+
"$": ["table-row.component.scss"]
|
|
25
|
+
}; }
|
|
26
|
+
static get styleUrls() { return {
|
|
27
|
+
"$": ["table-row.component.css"]
|
|
28
|
+
}; }
|
|
29
|
+
static get properties() { return {
|
|
30
|
+
"variant": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "'default' | 'header'",
|
|
35
|
+
"resolved": "\"default\" | \"header\"",
|
|
36
|
+
"references": {}
|
|
37
|
+
},
|
|
38
|
+
"required": false,
|
|
39
|
+
"optional": false,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": "Variant of the header"
|
|
43
|
+
},
|
|
44
|
+
"attribute": "variant",
|
|
45
|
+
"reflect": false,
|
|
46
|
+
"defaultValue": "'default'"
|
|
47
|
+
},
|
|
48
|
+
"enableHover": {
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"mutable": false,
|
|
51
|
+
"complexType": {
|
|
52
|
+
"original": "boolean",
|
|
53
|
+
"resolved": "boolean",
|
|
54
|
+
"references": {}
|
|
55
|
+
},
|
|
56
|
+
"required": false,
|
|
57
|
+
"optional": false,
|
|
58
|
+
"docs": {
|
|
59
|
+
"tags": [],
|
|
60
|
+
"text": "Enable hover"
|
|
61
|
+
},
|
|
62
|
+
"attribute": "enable-hover",
|
|
63
|
+
"reflect": false,
|
|
64
|
+
"defaultValue": "true"
|
|
65
|
+
}
|
|
66
|
+
}; }
|
|
67
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { Component, Element, Event, h, Host, Prop, } from '@stencil/core';
|
|
2
|
+
export class Modal {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* The size of the modal container
|
|
6
|
+
*/
|
|
7
|
+
this.size = 'md';
|
|
8
|
+
/**
|
|
9
|
+
* The variant of the modal body
|
|
10
|
+
*/
|
|
11
|
+
this.variant = 'default';
|
|
12
|
+
/**
|
|
13
|
+
* Wether to show the modal or not
|
|
14
|
+
*/
|
|
15
|
+
this.show = false;
|
|
16
|
+
/**
|
|
17
|
+
* Wether to show the close on mobile in the header
|
|
18
|
+
*/
|
|
19
|
+
this.showMobileClose = true;
|
|
20
|
+
/**
|
|
21
|
+
* Wether to show the footer on mobile
|
|
22
|
+
*/
|
|
23
|
+
this.showMobileFooter = false;
|
|
24
|
+
this._hasFooterSlot = false;
|
|
25
|
+
}
|
|
26
|
+
componentWillLoad() {
|
|
27
|
+
this._hasFooterSlot = !!this._el.querySelector('[slot="footer"]');
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
if (!this.show) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const headerContent = h("slot", { name: "header" });
|
|
34
|
+
const bodyContent = h("slot", { name: "content" });
|
|
35
|
+
const footerContent = h("slot", { name: "footer" });
|
|
36
|
+
return (h(Host, { class: "p-modal" },
|
|
37
|
+
h("p-modal-backdrop", null,
|
|
38
|
+
h("p-modal-container", { size: this.size },
|
|
39
|
+
h("p-modal-header", { "show-mobile-close": this.showMobileClose, onClose: () => this.close.emit() }, this.header ? this.header : headerContent),
|
|
40
|
+
h("p-modal-body", { variant: this.variant }, bodyContent),
|
|
41
|
+
this._hasFooterSlot && (h("p-modal-footer", { "hide-on-mobile": this.showMobileFooter }, footerContent))))));
|
|
42
|
+
}
|
|
43
|
+
static get is() { return "p-modal"; }
|
|
44
|
+
static get encapsulation() { return "shadow"; }
|
|
45
|
+
static get properties() { return {
|
|
46
|
+
"size": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"mutable": false,
|
|
49
|
+
"complexType": {
|
|
50
|
+
"original": "'sm' | 'md' | 'lg' | 'xl'",
|
|
51
|
+
"resolved": "\"lg\" | \"md\" | \"sm\" | \"xl\"",
|
|
52
|
+
"references": {}
|
|
53
|
+
},
|
|
54
|
+
"required": false,
|
|
55
|
+
"optional": false,
|
|
56
|
+
"docs": {
|
|
57
|
+
"tags": [],
|
|
58
|
+
"text": "The size of the modal container"
|
|
59
|
+
},
|
|
60
|
+
"attribute": "size",
|
|
61
|
+
"reflect": false,
|
|
62
|
+
"defaultValue": "'md'"
|
|
63
|
+
},
|
|
64
|
+
"variant": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"mutable": false,
|
|
67
|
+
"complexType": {
|
|
68
|
+
"original": "'default' | 'table'",
|
|
69
|
+
"resolved": "\"default\" | \"table\"",
|
|
70
|
+
"references": {}
|
|
71
|
+
},
|
|
72
|
+
"required": false,
|
|
73
|
+
"optional": false,
|
|
74
|
+
"docs": {
|
|
75
|
+
"tags": [],
|
|
76
|
+
"text": "The variant of the modal body"
|
|
77
|
+
},
|
|
78
|
+
"attribute": "variant",
|
|
79
|
+
"reflect": false,
|
|
80
|
+
"defaultValue": "'default'"
|
|
81
|
+
},
|
|
82
|
+
"header": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "string",
|
|
87
|
+
"resolved": "string",
|
|
88
|
+
"references": {}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": false,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": "The Header of the modal"
|
|
95
|
+
},
|
|
96
|
+
"attribute": "header",
|
|
97
|
+
"reflect": false
|
|
98
|
+
},
|
|
99
|
+
"show": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"mutable": false,
|
|
102
|
+
"complexType": {
|
|
103
|
+
"original": "boolean",
|
|
104
|
+
"resolved": "boolean",
|
|
105
|
+
"references": {}
|
|
106
|
+
},
|
|
107
|
+
"required": false,
|
|
108
|
+
"optional": false,
|
|
109
|
+
"docs": {
|
|
110
|
+
"tags": [],
|
|
111
|
+
"text": "Wether to show the modal or not"
|
|
112
|
+
},
|
|
113
|
+
"attribute": "show",
|
|
114
|
+
"reflect": false,
|
|
115
|
+
"defaultValue": "false"
|
|
116
|
+
},
|
|
117
|
+
"showMobileClose": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"mutable": false,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "boolean",
|
|
122
|
+
"resolved": "boolean",
|
|
123
|
+
"references": {}
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"optional": false,
|
|
127
|
+
"docs": {
|
|
128
|
+
"tags": [],
|
|
129
|
+
"text": "Wether to show the close on mobile in the header"
|
|
130
|
+
},
|
|
131
|
+
"attribute": "show-mobile-close",
|
|
132
|
+
"reflect": false,
|
|
133
|
+
"defaultValue": "true"
|
|
134
|
+
},
|
|
135
|
+
"showMobileFooter": {
|
|
136
|
+
"type": "boolean",
|
|
137
|
+
"mutable": false,
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "boolean",
|
|
140
|
+
"resolved": "boolean",
|
|
141
|
+
"references": {}
|
|
142
|
+
},
|
|
143
|
+
"required": false,
|
|
144
|
+
"optional": false,
|
|
145
|
+
"docs": {
|
|
146
|
+
"tags": [],
|
|
147
|
+
"text": "Wether to show the footer on mobile"
|
|
148
|
+
},
|
|
149
|
+
"attribute": "show-mobile-footer",
|
|
150
|
+
"reflect": false,
|
|
151
|
+
"defaultValue": "false"
|
|
152
|
+
}
|
|
153
|
+
}; }
|
|
154
|
+
static get events() { return [{
|
|
155
|
+
"method": "close",
|
|
156
|
+
"name": "close",
|
|
157
|
+
"bubbles": true,
|
|
158
|
+
"cancelable": true,
|
|
159
|
+
"composed": true,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": "Close click event"
|
|
163
|
+
},
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "MouseEvent",
|
|
166
|
+
"resolved": "MouseEvent",
|
|
167
|
+
"references": {
|
|
168
|
+
"MouseEvent": {
|
|
169
|
+
"location": "global"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}]; }
|
|
174
|
+
static get elementRef() { return "_el"; }
|
|
175
|
+
}
|