@paperless/core 0.1.0-alpha.11 → 0.1.0-alpha.110
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 +1017 -0
- package/README.md +1 -1
- 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/p-19c20c8e.entry.js +1 -0
- package/dist/build/p-1c9fe7e8.entry.js +1 -0
- package/dist/build/p-1ef22f4e.entry.js +1 -0
- package/dist/build/p-24befd45.entry.js +1 -0
- package/dist/build/p-2beaf0e8.entry.js +1 -0
- package/dist/build/p-3f6c9d44.entry.js +1 -0
- package/dist/build/p-4336cbbc.entry.js +1 -0
- package/dist/build/p-4bbcf83a.entry.js +1 -0
- package/dist/build/p-58ce5668.entry.js +1 -0
- package/dist/build/p-592426ae.entry.js +1 -0
- package/dist/build/p-6088647a.entry.js +1 -0
- package/dist/build/p-6835a9e3.entry.js +1 -0
- package/dist/build/p-6a879ff0.entry.js +1 -0
- package/dist/build/p-705ab6e5.entry.js +1 -0
- package/dist/build/p-7947115e.entry.js +1 -0
- package/dist/build/p-801d05b6.entry.js +1 -0
- package/dist/build/p-829c4101.entry.js +1 -0
- package/dist/build/p-8ac8a69d.entry.js +1 -0
- package/dist/{paperless/p-23980fbb.entry.js → build/p-8b743795.entry.js} +1 -1
- package/dist/build/p-92b6c76c.entry.js +1 -0
- package/dist/build/p-938f52ee.entry.js +1 -0
- package/dist/build/p-9b54bae2.entry.js +1 -0
- package/dist/build/p-9d98d0d9.entry.js +1 -0
- package/dist/build/p-a5ebbd0c.entry.js +1 -0
- package/dist/build/p-a7086ffa.js +1 -0
- package/dist/build/p-bc7e8cc4.js +2 -0
- package/dist/build/p-bd50db3d.entry.js +1 -0
- package/dist/build/p-be00bbf6.entry.js +1 -0
- package/dist/build/p-c27046e6.entry.js +1 -0
- package/dist/build/p-c59d9fc2.entry.js +1 -0
- package/dist/build/p-d32f2578.entry.js +1 -0
- package/dist/build/p-e20a1842.entry.js +1 -0
- package/dist/build/p-e2a98d53.entry.js +1 -0
- package/dist/build/p-e934ef94.entry.js +1 -0
- package/dist/build/p-e9e20ac3.entry.js +1 -0
- package/dist/build/p-f3fda8cd.entry.js +1 -0
- package/dist/build/paperless.css +190 -18
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-6b6e08cc.js → index-9d3b51c9.js} +203 -5
- package/dist/cjs/loader.cjs.js +3 -3
- 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_2.cjs.entry.js +184 -0
- package/dist/cjs/p-button_3.cjs.entry.js +265 -13
- 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 +154 -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-container.cjs.entry.js +19 -0
- package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +23 -0
- package/dist/cjs/p-helper.cjs.entry.js +7 -3
- 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-input-group.cjs.entry.js +51 -0
- 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-pagination-item.cjs.entry.js +2 -2
- package/dist/cjs/p-pagination.cjs.entry.js +15 -8
- package/dist/cjs/p-profile.cjs.entry.js +46 -0
- package/dist/cjs/p-segment-container.cjs.entry.js +19 -0
- package/dist/cjs/p-segment-item.cjs.entry.js +29 -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-tag.cjs.entry.js +27 -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/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 +32 -2
- package/dist/collection/components/atoms/avatar/avatar.component.css +12 -19
- package/dist/collection/components/atoms/avatar/avatar.component.js +16 -6
- 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 +41 -17
- package/dist/collection/components/atoms/button/button.component.js +109 -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/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/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 +30 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +230 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +12 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +267 -0
- package/dist/collection/components/molecules/input-group/input-group.component.css +204 -0
- package/dist/collection/components/molecules/input-group/input-group.component.js +264 -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/pagination/pagination.component.css +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.js +20 -12
- package/dist/collection/components/molecules/profile/profile.component.css +60 -0
- package/dist/collection/components/molecules/profile/profile.component.js +92 -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/organisms/modal/modal.component.js +175 -0
- package/dist/collection/components/organisms/navbar/navbar.component.css +56 -0
- package/dist/collection/components/organisms/navbar/navbar.component.js +99 -0
- 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/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 +26 -14
- package/dist/collection/utils/child-of.js +5 -0
- package/dist/collection/utils/icons.js +18 -0
- package/dist/collection/utils/illustrations.js +2 -0
- package/dist/collection/utils/types.js +1 -0
- package/dist/components/avatar.component.js +59 -0
- package/dist/components/button.component.js +119 -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.component.js +170 -0
- package/dist/components/helper.component.js +42 -0
- package/dist/components/icon.component.js +236 -5
- package/dist/components/index.d.ts +42 -12
- package/dist/components/index.js +30 -0
- package/dist/components/loader.component.js +5 -4
- 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 +1 -47
- 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 +182 -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 +46 -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 +96 -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-pagination.js +15 -8
- package/dist/components/p-profile.d.ts +11 -0
- package/dist/components/p-profile.js +88 -0
- package/dist/components/p-segment-container.d.ts +11 -0
- package/dist/components/p-segment-container.js +32 -0
- package/dist/components/p-segment-item.d.ts +11 -0
- package/dist/components/p-segment-item.js +54 -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-tag.d.ts +11 -0
- package/dist/components/p-tag.js +44 -0
- package/dist/components/pagination-item.component.js +1 -1
- package/dist/components/popper.js +1788 -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/tooltip.component.js +37 -1808
- package/dist/esm/{index-5c917d13.js → index-9062156b.js} +203 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/p-accordion.entry.js +38 -0
- package/dist/esm/p-avatar-group.entry.js +15 -0
- package/dist/esm/p-avatar_2.entry.js +179 -0
- package/dist/esm/p-button_3.entry.js +265 -13
- 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 +150 -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-container.entry.js +15 -0
- package/dist/esm/p-dropdown-menu-item.entry.js +19 -0
- package/dist/esm/p-helper.entry.js +7 -3
- package/dist/esm/p-illustration.entry.js +5 -2
- package/dist/esm/p-info-panel.entry.js +2 -2
- package/dist/esm/p-input-group.entry.js +47 -0
- 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-pagination-item.entry.js +2 -2
- package/dist/esm/p-pagination.entry.js +15 -8
- package/dist/esm/p-profile.entry.js +42 -0
- package/dist/esm/p-segment-container.entry.js +15 -0
- package/dist/esm/p-segment-item.entry.js +25 -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-tag.entry.js +23 -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/p-19c20c8e.entry.js +1 -0
- package/dist/paperless/p-1c9fe7e8.entry.js +1 -0
- package/dist/paperless/p-1ef22f4e.entry.js +1 -0
- package/dist/paperless/p-24befd45.entry.js +1 -0
- package/dist/paperless/p-2beaf0e8.entry.js +1 -0
- package/dist/paperless/p-3f6c9d44.entry.js +1 -0
- package/dist/paperless/p-4336cbbc.entry.js +1 -0
- package/dist/paperless/p-4bbcf83a.entry.js +1 -0
- package/dist/paperless/p-58ce5668.entry.js +1 -0
- package/dist/paperless/p-592426ae.entry.js +1 -0
- package/dist/paperless/p-6088647a.entry.js +1 -0
- package/dist/paperless/p-6835a9e3.entry.js +1 -0
- package/dist/paperless/p-6a879ff0.entry.js +1 -0
- package/dist/paperless/p-705ab6e5.entry.js +1 -0
- package/dist/paperless/p-7947115e.entry.js +1 -0
- package/dist/paperless/p-801d05b6.entry.js +1 -0
- package/dist/paperless/p-829c4101.entry.js +1 -0
- package/dist/paperless/p-8ac8a69d.entry.js +1 -0
- package/dist/{build/p-23980fbb.entry.js → paperless/p-8b743795.entry.js} +1 -1
- package/dist/paperless/p-92b6c76c.entry.js +1 -0
- package/dist/paperless/p-938f52ee.entry.js +1 -0
- package/dist/paperless/p-9b54bae2.entry.js +1 -0
- package/dist/paperless/p-9d98d0d9.entry.js +1 -0
- package/dist/paperless/p-a5ebbd0c.entry.js +1 -0
- package/dist/paperless/p-a7086ffa.js +1 -0
- package/dist/paperless/p-bc7e8cc4.js +2 -0
- package/dist/paperless/p-bd50db3d.entry.js +1 -0
- package/dist/paperless/p-be00bbf6.entry.js +1 -0
- package/dist/paperless/p-c27046e6.entry.js +1 -0
- package/dist/paperless/p-c59d9fc2.entry.js +1 -0
- package/dist/paperless/p-d32f2578.entry.js +1 -0
- package/dist/paperless/p-e20a1842.entry.js +1 -0
- package/dist/paperless/p-e2a98d53.entry.js +1 -0
- package/dist/paperless/p-e934ef94.entry.js +1 -0
- package/dist/paperless/p-e9e20ac3.entry.js +1 -0
- package/dist/paperless/p-f3fda8cd.entry.js +1 -0
- package/dist/paperless/paperless.css +288 -26451
- 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/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 +26 -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 +18 -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/tag/tag.component.d.ts +11 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +12 -3
- package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
- package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +42 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +47 -0
- package/dist/types/components/molecules/input-group/input-group.component.d.ts +53 -0
- package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +24 -0
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +1 -9
- package/dist/types/components/molecules/profile/profile.component.d.ts +19 -0
- package/dist/types/components/molecules/stepper/stepper.component.d.ts +18 -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.d.ts +1074 -16
- package/dist/types/utils/child-of.d.ts +1 -0
- package/dist/types/utils/icons.d.ts +9 -0
- package/dist/types/utils/illustrations.d.ts +1 -0
- package/dist/types/utils/types.d.ts +2 -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-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-d750cdf6.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-avatar.cjs.entry.js +0 -32
- package/dist/collection/tailwind/grid.js +0 -26
- package/dist/esm/p-avatar.entry.js +0 -28
- 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-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-d750cdf6.entry.js +0 -1
- package/dist/paperless/p-e80637b9.entry.js +0 -1
- package/dist/paperless/p-ec52095f.entry.js +0 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
@apply flex flex-col gap-4 overflow-hidden;
|
|
3
|
+
@apply p-16 -m-16;
|
|
4
|
+
}
|
|
5
|
+
:host .slider {
|
|
6
|
+
@apply overflow-visible relative box-content;
|
|
7
|
+
}
|
|
8
|
+
:host .slider.draggable {
|
|
9
|
+
@apply cursor-grab desktop-xs:cursor-auto;
|
|
10
|
+
}
|
|
11
|
+
:host .slider.draggable.dragging {
|
|
12
|
+
@apply cursor-grabbing desktop-xs:cursor-auto;
|
|
13
|
+
}
|
|
14
|
+
:host .slider.draggable.dragging .inner-slider {
|
|
15
|
+
@apply transition-none;
|
|
16
|
+
}
|
|
17
|
+
:host .slider .inner-slider {
|
|
18
|
+
@apply absolute flex flex-nowrap items-stretch w-full gap-2;
|
|
19
|
+
@apply pointer-events-none tablet:gap-4 desktop-xs:flex-wrap desktop-xs:pointer-events-auto;
|
|
20
|
+
@apply transition-all;
|
|
21
|
+
}
|
|
22
|
+
:host .slider .inner-slider > ::slotted(*) {
|
|
23
|
+
@apply w-full tablet:w-[45%] desktop-xs:w-0;
|
|
24
|
+
@apply flex-shrink-0 desktop-xs:flex-1;
|
|
25
|
+
position: relative;
|
|
26
|
+
z-index: 10;
|
|
27
|
+
}
|
|
28
|
+
:host .indicator {
|
|
29
|
+
@apply flex justify-center items-center gap-2 desktop-xs:hidden;
|
|
30
|
+
} .visible{visibility:visible!important}.static{position:static!important}.hidden{display:none!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}*{box-sizing:border-box}.static{position:static!important}*{box-sizing:border-box}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { Component, Element, h, Host, Listen, Prop, State, } from '@stencil/core';
|
|
2
|
+
export class ContentSlider {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Wether to hide the indicator on mobile
|
|
6
|
+
*/
|
|
7
|
+
this.hideMobileIndicator = false;
|
|
8
|
+
/**
|
|
9
|
+
* Wether to disable dragging the content
|
|
10
|
+
*/
|
|
11
|
+
this.disableDrag = false;
|
|
12
|
+
/**
|
|
13
|
+
* Wether to disable clicking the indicator scrolls content
|
|
14
|
+
*/
|
|
15
|
+
this.disableIndicatorClick = false;
|
|
16
|
+
this._outerHeight = 0;
|
|
17
|
+
this._totalWidth = 0;
|
|
18
|
+
this._items = [];
|
|
19
|
+
this._dragging = false;
|
|
20
|
+
}
|
|
21
|
+
componentWillRender() {
|
|
22
|
+
const items = this._el.querySelectorAll(':scope > *');
|
|
23
|
+
this._items = Array.from(items);
|
|
24
|
+
}
|
|
25
|
+
componentDidLoad() {
|
|
26
|
+
this._calculateWidth();
|
|
27
|
+
this._calculateIndicator();
|
|
28
|
+
}
|
|
29
|
+
disconnectedCallback() {
|
|
30
|
+
if (this._innerSliderResizeObserver) {
|
|
31
|
+
this._innerSliderResizeObserver.disconnect();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return (h(Host, { class: "p-content-slider" },
|
|
36
|
+
h("div", { class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
|
|
37
|
+
height: `${this._outerHeight}px`,
|
|
38
|
+
}, ref: (el) => (this._sliderRef = el), onMouseDown: (e) => this._mouseDownHandler(e), onMouseMove: (e) => this._mouseMoveHandler(e) },
|
|
39
|
+
h("div", { class: "inner-slider", ref: (ref) => this._setInnerSliderReft(ref) },
|
|
40
|
+
h("slot", null))),
|
|
41
|
+
h("div", { class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._items.map((_, i) => (h("p-slider-indicator", { class: !this.disableIndicatorClick && 'cursor-pointer', onClick: () => this._scrollTo(i), active: i === this._visibleIndex }))))));
|
|
42
|
+
}
|
|
43
|
+
_setInnerSliderReft(ref) {
|
|
44
|
+
this._innerSliderRef = ref;
|
|
45
|
+
this._innerSliderResizeObserver = new ResizeObserver(() => this._calculateHeight());
|
|
46
|
+
this._innerSliderResizeObserver.observe(this._innerSliderRef);
|
|
47
|
+
}
|
|
48
|
+
_mouseDownHandler(e) {
|
|
49
|
+
if (this.disableDrag || this._dragging) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const innerSliderStyle = getComputedStyle(this._innerSliderRef);
|
|
53
|
+
if (innerSliderStyle.flexWrap === 'wrap') {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const sliderRect = this._sliderRef.getBoundingClientRect();
|
|
57
|
+
this._startX = e.x - sliderRect.x - this._innerSliderRef.offsetLeft;
|
|
58
|
+
this._dragging = true;
|
|
59
|
+
}
|
|
60
|
+
_mouseMoveHandler(e) {
|
|
61
|
+
if (!e || !this._dragging || this.disableDrag) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
const x = e.offsetX;
|
|
66
|
+
this._innerSliderRef.style.left = `${x - this._startX}px`;
|
|
67
|
+
this._checkBoundary();
|
|
68
|
+
this._calculateIndicator();
|
|
69
|
+
}
|
|
70
|
+
_checkBoundary() {
|
|
71
|
+
let outer = this._sliderRef.getBoundingClientRect();
|
|
72
|
+
if (parseInt(this._innerSliderRef.style.left) > 0) {
|
|
73
|
+
this._innerSliderRef.style.left = '0px';
|
|
74
|
+
}
|
|
75
|
+
const maxLeft = (this._totalWidth - outer.width) * -1;
|
|
76
|
+
if (parseInt(this._innerSliderRef.style.left) < maxLeft) {
|
|
77
|
+
this._innerSliderRef.style.left = `${maxLeft}px`;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
mouseUpHandler() {
|
|
81
|
+
this._dragging = false;
|
|
82
|
+
}
|
|
83
|
+
resizeHandler() {
|
|
84
|
+
this._innerSliderRef.style.left = '0px';
|
|
85
|
+
this._calculateWidth();
|
|
86
|
+
this._calculateIndicator();
|
|
87
|
+
}
|
|
88
|
+
_calculateIndicator() {
|
|
89
|
+
setTimeout(() => {
|
|
90
|
+
for (let i = 0; i < this._items.length; i++) {
|
|
91
|
+
const item = this._items[i];
|
|
92
|
+
const visible = this._isVisible(item);
|
|
93
|
+
if (visible) {
|
|
94
|
+
this._visibleIndex = i;
|
|
95
|
+
}
|
|
96
|
+
if (i === 0 && visible) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}, 200);
|
|
101
|
+
}
|
|
102
|
+
_isVisible(el) {
|
|
103
|
+
if (!this._el || !el) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
const elRect = el.getBoundingClientRect();
|
|
107
|
+
const sliderRect = this._sliderRef.getBoundingClientRect();
|
|
108
|
+
return (elRect.left >= sliderRect.left && elRect.right <= sliderRect.right);
|
|
109
|
+
}
|
|
110
|
+
_scrollTo(i) {
|
|
111
|
+
if (this.disableIndicatorClick) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
const el = this._items[i];
|
|
115
|
+
if (i === 0) {
|
|
116
|
+
this._innerSliderRef.style.left = '0px';
|
|
117
|
+
this._calculateIndicator();
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
const sliderRect = this._sliderRef.getBoundingClientRect();
|
|
121
|
+
const elRect = el.getBoundingClientRect();
|
|
122
|
+
const centerOffset = el.offsetLeft + elRect.width / 2 - sliderRect.width / 2;
|
|
123
|
+
this._innerSliderRef.style.left = `-${centerOffset}px`;
|
|
124
|
+
this._checkBoundary();
|
|
125
|
+
this._calculateIndicator();
|
|
126
|
+
}
|
|
127
|
+
_calculateWidth() {
|
|
128
|
+
let totalWidth = 0;
|
|
129
|
+
for (let item of this._items) {
|
|
130
|
+
const rect = item.getBoundingClientRect();
|
|
131
|
+
totalWidth += rect.width;
|
|
132
|
+
}
|
|
133
|
+
const sliderStyle = getComputedStyle(this._sliderRef);
|
|
134
|
+
const padding = parseInt(sliderStyle.padding) * 2;
|
|
135
|
+
const innerSliderStyle = getComputedStyle(this._innerSliderRef);
|
|
136
|
+
const gap = parseInt(innerSliderStyle.gap) * (this._items.length - 1);
|
|
137
|
+
totalWidth += padding + gap;
|
|
138
|
+
this._totalWidth = totalWidth;
|
|
139
|
+
}
|
|
140
|
+
_calculateHeight() {
|
|
141
|
+
const outerHeight = this._items.at(0).getBoundingClientRect().height;
|
|
142
|
+
if (outerHeight != this._outerHeight) {
|
|
143
|
+
this._outerHeight = outerHeight;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
static get is() { return "p-content-slider"; }
|
|
147
|
+
static get encapsulation() { return "shadow"; }
|
|
148
|
+
static get originalStyleUrls() { return {
|
|
149
|
+
"$": ["content-slider.component.scss"]
|
|
150
|
+
}; }
|
|
151
|
+
static get styleUrls() { return {
|
|
152
|
+
"$": ["content-slider.component.css"]
|
|
153
|
+
}; }
|
|
154
|
+
static get properties() { return {
|
|
155
|
+
"hideMobileIndicator": {
|
|
156
|
+
"type": "boolean",
|
|
157
|
+
"mutable": false,
|
|
158
|
+
"complexType": {
|
|
159
|
+
"original": "boolean",
|
|
160
|
+
"resolved": "boolean",
|
|
161
|
+
"references": {}
|
|
162
|
+
},
|
|
163
|
+
"required": false,
|
|
164
|
+
"optional": false,
|
|
165
|
+
"docs": {
|
|
166
|
+
"tags": [],
|
|
167
|
+
"text": "Wether to hide the indicator on mobile"
|
|
168
|
+
},
|
|
169
|
+
"attribute": "hide-mobile-indicator",
|
|
170
|
+
"reflect": false,
|
|
171
|
+
"defaultValue": "false"
|
|
172
|
+
},
|
|
173
|
+
"disableDrag": {
|
|
174
|
+
"type": "boolean",
|
|
175
|
+
"mutable": false,
|
|
176
|
+
"complexType": {
|
|
177
|
+
"original": "boolean",
|
|
178
|
+
"resolved": "boolean",
|
|
179
|
+
"references": {}
|
|
180
|
+
},
|
|
181
|
+
"required": false,
|
|
182
|
+
"optional": false,
|
|
183
|
+
"docs": {
|
|
184
|
+
"tags": [],
|
|
185
|
+
"text": "Wether to disable dragging the content"
|
|
186
|
+
},
|
|
187
|
+
"attribute": "disable-drag",
|
|
188
|
+
"reflect": false,
|
|
189
|
+
"defaultValue": "false"
|
|
190
|
+
},
|
|
191
|
+
"disableIndicatorClick": {
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"mutable": false,
|
|
194
|
+
"complexType": {
|
|
195
|
+
"original": "boolean",
|
|
196
|
+
"resolved": "boolean",
|
|
197
|
+
"references": {}
|
|
198
|
+
},
|
|
199
|
+
"required": false,
|
|
200
|
+
"optional": false,
|
|
201
|
+
"docs": {
|
|
202
|
+
"tags": [],
|
|
203
|
+
"text": "Wether to disable clicking the indicator scrolls content"
|
|
204
|
+
},
|
|
205
|
+
"attribute": "disable-indicator-click",
|
|
206
|
+
"reflect": false,
|
|
207
|
+
"defaultValue": "false"
|
|
208
|
+
}
|
|
209
|
+
}; }
|
|
210
|
+
static get states() { return {
|
|
211
|
+
"_visibleIndex": {},
|
|
212
|
+
"_outerHeight": {},
|
|
213
|
+
"_totalWidth": {},
|
|
214
|
+
"_dragging": {}
|
|
215
|
+
}; }
|
|
216
|
+
static get elementRef() { return "_el"; }
|
|
217
|
+
static get listeners() { return [{
|
|
218
|
+
"name": "mouseup",
|
|
219
|
+
"method": "mouseUpHandler",
|
|
220
|
+
"target": "window",
|
|
221
|
+
"capture": false,
|
|
222
|
+
"passive": true
|
|
223
|
+
}, {
|
|
224
|
+
"name": "resize",
|
|
225
|
+
"method": "resizeHandler",
|
|
226
|
+
"target": "window",
|
|
227
|
+
"capture": false,
|
|
228
|
+
"passive": true
|
|
229
|
+
}]; }
|
|
230
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
@apply relative;
|
|
3
|
+
}
|
|
4
|
+
:host .trigger {
|
|
5
|
+
@apply w-auto h-auto;
|
|
6
|
+
}
|
|
7
|
+
:host p-dropdown-menu-container {
|
|
8
|
+
@apply hidden;
|
|
9
|
+
}
|
|
10
|
+
:host p-dropdown-menu-container[data-show] {
|
|
11
|
+
@apply flex;
|
|
12
|
+
} .static{position:static!important}.absolute{position:absolute!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}*{box-sizing:border-box}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}*{box-sizing:border-box}.static{position:static!important}*{box-sizing:border-box}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { createPopper } from '@popperjs/core';
|
|
2
|
+
import { Component, Element, Event, h, Host, Listen, Prop, } from '@stencil/core';
|
|
3
|
+
import { childOf } from '../../../utils/child-of';
|
|
4
|
+
export class Dropdown {
|
|
5
|
+
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* The content of the dropdown menu
|
|
8
|
+
*/
|
|
9
|
+
this.placement = 'bottom-start';
|
|
10
|
+
/**
|
|
11
|
+
* The strategy of the popover placement
|
|
12
|
+
*/
|
|
13
|
+
this.strategy = 'fixed';
|
|
14
|
+
/**
|
|
15
|
+
* Wether to show the dropdown menu
|
|
16
|
+
*/
|
|
17
|
+
this.show = false;
|
|
18
|
+
/**
|
|
19
|
+
* Wether to automatically close the dropdown menu after clicking inside
|
|
20
|
+
*/
|
|
21
|
+
this.insideClick = false;
|
|
22
|
+
/**
|
|
23
|
+
* Wether to automatically close the dropdown menu after clicking inside
|
|
24
|
+
*/
|
|
25
|
+
this.disableTriggerClick = false;
|
|
26
|
+
this._loaded = false;
|
|
27
|
+
}
|
|
28
|
+
componentShouldUpdate() {
|
|
29
|
+
this._setOptions();
|
|
30
|
+
if (this._loaded && this.show) {
|
|
31
|
+
this._show();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return (h(Host, { class: "p-dropdown" },
|
|
36
|
+
h("div", { class: "trigger", onClick: () => this._triggerClickHandler() },
|
|
37
|
+
h("slot", { onSlotchange: (ev) => this._checkButton(ev), name: "trigger" })),
|
|
38
|
+
h("p-dropdown-menu-container", { role: "popover", ref: (el) => this._load(el), onClick: () => this._containerClickHandler() },
|
|
39
|
+
h("slot", { name: "items" }))));
|
|
40
|
+
}
|
|
41
|
+
_checkButton({ target }) {
|
|
42
|
+
const slot = target;
|
|
43
|
+
const children = slot.assignedElements();
|
|
44
|
+
for (let child of children) {
|
|
45
|
+
if (child.nodeName === 'P-BUTTON') {
|
|
46
|
+
child.chevron =
|
|
47
|
+
this.placement.indexOf('top') >= 0 ? 'up' : 'down';
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
_containerClickHandler() {
|
|
52
|
+
if (this.insideClick) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (this._menu.hasAttribute('data-show')) {
|
|
56
|
+
this._hide();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
_triggerClickHandler() {
|
|
60
|
+
if (this.disableTriggerClick) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (this._menu.hasAttribute('data-show')) {
|
|
64
|
+
this._hide();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
this._show();
|
|
68
|
+
}
|
|
69
|
+
documentClickHandler({ target }) {
|
|
70
|
+
if (!this._menu.hasAttribute('data-show') ||
|
|
71
|
+
childOf(target, this._el)) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
this._hide();
|
|
75
|
+
}
|
|
76
|
+
_load(popover) {
|
|
77
|
+
this._menu = popover;
|
|
78
|
+
if (popover) {
|
|
79
|
+
this._popper = createPopper(this._el, popover, {
|
|
80
|
+
strategy: this.strategy,
|
|
81
|
+
});
|
|
82
|
+
this._setOptions();
|
|
83
|
+
this._loaded = true;
|
|
84
|
+
if (this.show) {
|
|
85
|
+
setTimeout(() => this._show(), 100);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
_setOptions() {
|
|
90
|
+
if (!this._popper) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
this._popper.setOptions({
|
|
94
|
+
placement: this.placement,
|
|
95
|
+
modifiers: [
|
|
96
|
+
{
|
|
97
|
+
name: 'offset',
|
|
98
|
+
options: {
|
|
99
|
+
offset: [0, 8],
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
_show() {
|
|
106
|
+
if (!this._loaded) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
// Make the popover visible
|
|
110
|
+
this._menu.setAttribute('data-show', '');
|
|
111
|
+
this.isOpen.emit(true);
|
|
112
|
+
// Enable the event listeners
|
|
113
|
+
this._popper.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [
|
|
114
|
+
...options.modifiers,
|
|
115
|
+
{ name: 'eventListeners', enabled: true },
|
|
116
|
+
] })));
|
|
117
|
+
// Update its position
|
|
118
|
+
this._popper.update();
|
|
119
|
+
}
|
|
120
|
+
_hide() {
|
|
121
|
+
if (!this._loaded || this.show) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
// Hide the popover
|
|
125
|
+
this._menu.removeAttribute('data-show');
|
|
126
|
+
this.isOpen.emit(false);
|
|
127
|
+
// Disable the event listeners
|
|
128
|
+
this._popper.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [
|
|
129
|
+
...options.modifiers,
|
|
130
|
+
{ name: 'eventListeners', enabled: false },
|
|
131
|
+
] })));
|
|
132
|
+
}
|
|
133
|
+
static get is() { return "p-dropdown"; }
|
|
134
|
+
static get encapsulation() { return "shadow"; }
|
|
135
|
+
static get originalStyleUrls() { return {
|
|
136
|
+
"$": ["dropdown.component.scss"]
|
|
137
|
+
}; }
|
|
138
|
+
static get styleUrls() { return {
|
|
139
|
+
"$": ["dropdown.component.css"]
|
|
140
|
+
}; }
|
|
141
|
+
static get properties() { return {
|
|
142
|
+
"placement": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"mutable": false,
|
|
145
|
+
"complexType": {
|
|
146
|
+
"original": "Placement",
|
|
147
|
+
"resolved": "\"auto\" | \"auto-end\" | \"auto-start\" | \"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
148
|
+
"references": {
|
|
149
|
+
"Placement": {
|
|
150
|
+
"location": "import",
|
|
151
|
+
"path": "@popperjs/core"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": false,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": "The content of the dropdown menu"
|
|
160
|
+
},
|
|
161
|
+
"attribute": "placement",
|
|
162
|
+
"reflect": true,
|
|
163
|
+
"defaultValue": "'bottom-start'"
|
|
164
|
+
},
|
|
165
|
+
"strategy": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "PositioningStrategy",
|
|
170
|
+
"resolved": "\"absolute\" | \"fixed\"",
|
|
171
|
+
"references": {
|
|
172
|
+
"PositioningStrategy": {
|
|
173
|
+
"location": "import",
|
|
174
|
+
"path": "@popperjs/core"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"required": false,
|
|
179
|
+
"optional": false,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": "The strategy of the popover placement"
|
|
183
|
+
},
|
|
184
|
+
"attribute": "strategy",
|
|
185
|
+
"reflect": false,
|
|
186
|
+
"defaultValue": "'fixed'"
|
|
187
|
+
},
|
|
188
|
+
"show": {
|
|
189
|
+
"type": "boolean",
|
|
190
|
+
"mutable": false,
|
|
191
|
+
"complexType": {
|
|
192
|
+
"original": "boolean",
|
|
193
|
+
"resolved": "boolean",
|
|
194
|
+
"references": {}
|
|
195
|
+
},
|
|
196
|
+
"required": false,
|
|
197
|
+
"optional": false,
|
|
198
|
+
"docs": {
|
|
199
|
+
"tags": [],
|
|
200
|
+
"text": "Wether to show the dropdown menu"
|
|
201
|
+
},
|
|
202
|
+
"attribute": "show",
|
|
203
|
+
"reflect": false,
|
|
204
|
+
"defaultValue": "false"
|
|
205
|
+
},
|
|
206
|
+
"insideClick": {
|
|
207
|
+
"type": "boolean",
|
|
208
|
+
"mutable": false,
|
|
209
|
+
"complexType": {
|
|
210
|
+
"original": "boolean",
|
|
211
|
+
"resolved": "boolean",
|
|
212
|
+
"references": {}
|
|
213
|
+
},
|
|
214
|
+
"required": false,
|
|
215
|
+
"optional": false,
|
|
216
|
+
"docs": {
|
|
217
|
+
"tags": [],
|
|
218
|
+
"text": "Wether to automatically close the dropdown menu after clicking inside"
|
|
219
|
+
},
|
|
220
|
+
"attribute": "inside-click",
|
|
221
|
+
"reflect": false,
|
|
222
|
+
"defaultValue": "false"
|
|
223
|
+
},
|
|
224
|
+
"disableTriggerClick": {
|
|
225
|
+
"type": "boolean",
|
|
226
|
+
"mutable": false,
|
|
227
|
+
"complexType": {
|
|
228
|
+
"original": "boolean",
|
|
229
|
+
"resolved": "boolean",
|
|
230
|
+
"references": {}
|
|
231
|
+
},
|
|
232
|
+
"required": false,
|
|
233
|
+
"optional": false,
|
|
234
|
+
"docs": {
|
|
235
|
+
"tags": [],
|
|
236
|
+
"text": "Wether to automatically close the dropdown menu after clicking inside"
|
|
237
|
+
},
|
|
238
|
+
"attribute": "disable-trigger-click",
|
|
239
|
+
"reflect": false,
|
|
240
|
+
"defaultValue": "false"
|
|
241
|
+
}
|
|
242
|
+
}; }
|
|
243
|
+
static get events() { return [{
|
|
244
|
+
"method": "isOpen",
|
|
245
|
+
"name": "isOpen",
|
|
246
|
+
"bubbles": true,
|
|
247
|
+
"cancelable": true,
|
|
248
|
+
"composed": true,
|
|
249
|
+
"docs": {
|
|
250
|
+
"tags": [],
|
|
251
|
+
"text": "Open change event"
|
|
252
|
+
},
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "boolean",
|
|
255
|
+
"resolved": "boolean",
|
|
256
|
+
"references": {}
|
|
257
|
+
}
|
|
258
|
+
}]; }
|
|
259
|
+
static get elementRef() { return "_el"; }
|
|
260
|
+
static get listeners() { return [{
|
|
261
|
+
"name": "click",
|
|
262
|
+
"method": "documentClickHandler",
|
|
263
|
+
"target": "document",
|
|
264
|
+
"capture": true,
|
|
265
|
+
"passive": false
|
|
266
|
+
}]; }
|
|
267
|
+
}
|