@paperless/core 0.1.0-alpha.10 → 0.1.0-alpha.103
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 +954 -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-113baa35.entry.js +1 -0
- package/dist/build/p-19c20c8e.entry.js +1 -0
- package/dist/build/p-1ef22f4e.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-4ca40a0a.entry.js +1 -0
- package/dist/build/p-58ce5668.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-6e778574.entry.js +1 -0
- package/dist/build/p-7947115e.entry.js +1 -0
- package/dist/build/p-79d3258f.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-89fda3a8.entry.js +1 -0
- package/dist/build/p-8ac8a69d.entry.js +1 -0
- package/dist/build/{p-22129b00.entry.js → 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-9d98d0d9.entry.js +1 -0
- package/dist/build/p-a5ebbd0c.entry.js +1 -0
- package/dist/build/p-a6127c75.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-c27046e6.entry.js +1 -0
- package/dist/build/p-c59d9fc2.entry.js +1 -0
- package/dist/build/p-cc177072.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-ec2a5f95.entry.js +1 -0
- package/dist/build/p-ede5e914.entry.js +1 -0
- package/dist/build/paperless.css +190 -18
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-7caa3dae.js → index-9d3b51c9.js} +235 -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 +179 -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 +153 -0
- package/dist/cjs/p-counter.cjs.entry.js +11 -3
- package/dist/cjs/p-divider.cjs.entry.js +22 -0
- 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 +23 -0
- package/dist/cjs/p-pagination.cjs.entry.js +171 -0
- 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 +35 -2
- package/dist/collection/components/atoms/avatar/avatar.component.css +12 -19
- package/dist/collection/components/atoms/avatar/avatar.component.js +10 -5
- 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 +10 -0
- package/dist/collection/components/atoms/divider/divider.component.js +20 -0
- 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 +16 -0
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +41 -0
- 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 +26 -0
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +229 -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 +3 -0
- package/dist/collection/components/molecules/pagination/pagination.component.js +242 -0
- 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 +54 -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 -9
- package/dist/components/index.js +33 -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 +181 -0
- package/dist/components/p-counter.js +1 -28
- package/dist/components/p-divider.d.ts +11 -0
- package/dist/components/p-divider.js +6 -0
- 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-item.d.ts +11 -0
- package/dist/components/p-pagination-item.js +6 -0
- package/dist/components/p-pagination.d.ts +11 -0
- package/dist/components/p-pagination.js +200 -0
- 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 +36 -0
- 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-d61d31b2.js → index-9062156b.js} +235 -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 +174 -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 +149 -0
- package/dist/esm/p-counter.entry.js +11 -3
- package/dist/esm/p-divider.entry.js +18 -0
- 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 +19 -0
- package/dist/esm/p-pagination.entry.js +167 -0
- 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-113baa35.entry.js +1 -0
- package/dist/paperless/p-19c20c8e.entry.js +1 -0
- package/dist/paperless/p-1ef22f4e.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-4ca40a0a.entry.js +1 -0
- package/dist/paperless/p-58ce5668.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-6e778574.entry.js +1 -0
- package/dist/paperless/p-7947115e.entry.js +1 -0
- package/dist/paperless/p-79d3258f.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-89fda3a8.entry.js +1 -0
- package/dist/paperless/p-8ac8a69d.entry.js +1 -0
- package/dist/paperless/{p-22129b00.entry.js → 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-9d98d0d9.entry.js +1 -0
- package/dist/paperless/p-a5ebbd0c.entry.js +1 -0
- package/dist/paperless/p-a6127c75.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-c27046e6.entry.js +1 -0
- package/dist/paperless/p-c59d9fc2.entry.js +1 -0
- package/dist/paperless/p-cc177072.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-ec2a5f95.entry.js +1 -0
- package/dist/paperless/p-ede5e914.entry.js +1 -0
- package/dist/paperless/paperless.css +288 -26451
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +2 -368
- 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-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 +7 -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/pagination-item/pagination-item.component.d.ts +7 -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 +44 -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 +28 -0
- 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 +1277 -140
- 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-44a929c9.entry.js +0 -1
- package/dist/build/p-6794871e.entry.js +0 -1
- package/dist/build/p-8cb80a47.entry.js +0 -1
- package/dist/build/p-a2fc051b.entry.js +0 -1
- package/dist/build/p-a4ea5760.entry.js +0 -1
- package/dist/build/p-b4ef7a57.entry.js +0 -1
- package/dist/build/p-fa6ab882.js +0 -2
- 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-44a929c9.entry.js +0 -1
- package/dist/paperless/p-6794871e.entry.js +0 -1
- package/dist/paperless/p-8cb80a47.entry.js +0 -1
- package/dist/paperless/p-a2fc051b.entry.js +0 -1
- package/dist/paperless/p-a4ea5760.entry.js +0 -1
- package/dist/paperless/p-b4ef7a57.entry.js +0 -1
- package/dist/paperless/p-fa6ab882.js +0 -2
|
@@ -20,10 +20,10 @@ const plt = {
|
|
|
20
20
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
21
21
|
};
|
|
22
22
|
const promiseResolve = (v) => Promise.resolve(v);
|
|
23
|
-
const
|
|
23
|
+
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
24
24
|
try {
|
|
25
25
|
new CSSStyleSheet();
|
|
26
|
-
return typeof new CSSStyleSheet().
|
|
26
|
+
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
27
27
|
}
|
|
28
28
|
catch (e) { }
|
|
29
29
|
return false;
|
|
@@ -59,6 +59,8 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
59
59
|
const getHostListenerTarget = (elm, flags) => {
|
|
60
60
|
if (flags & 4 /* TargetDocument */)
|
|
61
61
|
return doc;
|
|
62
|
+
if (flags & 8 /* TargetWindow */)
|
|
63
|
+
return win;
|
|
62
64
|
return elm;
|
|
63
65
|
};
|
|
64
66
|
// prettier-ignore
|
|
@@ -81,9 +83,14 @@ const uniqueTime = (key, measureText) => {
|
|
|
81
83
|
const rootAppliedStyles = new WeakMap();
|
|
82
84
|
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
83
85
|
let style = styles.get(scopeId);
|
|
84
|
-
if (
|
|
86
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
85
87
|
style = (style || new CSSStyleSheet());
|
|
86
|
-
style
|
|
88
|
+
if (typeof style === 'string') {
|
|
89
|
+
style = cssText;
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
style.replaceSync(cssText);
|
|
93
|
+
}
|
|
87
94
|
}
|
|
88
95
|
else {
|
|
89
96
|
style = cssText;
|
|
@@ -294,6 +301,31 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
294
301
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
295
302
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
296
303
|
}
|
|
304
|
+
else if (memberName === 'style') {
|
|
305
|
+
// update style attribute, css properties and values
|
|
306
|
+
{
|
|
307
|
+
for (const prop in oldValue) {
|
|
308
|
+
if (!newValue || newValue[prop] == null) {
|
|
309
|
+
if (prop.includes('-')) {
|
|
310
|
+
elm.style.removeProperty(prop);
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
elm.style[prop] = '';
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
for (const prop in newValue) {
|
|
319
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
320
|
+
if (prop.includes('-')) {
|
|
321
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
elm.style[prop] = newValue[prop];
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
297
329
|
else if (memberName === 'ref') {
|
|
298
330
|
// minifier will clean this up
|
|
299
331
|
if (newValue) {
|
|
@@ -824,6 +856,10 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
824
856
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
825
857
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
826
858
|
hostTagName = hostElm.tagName;
|
|
859
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
860
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
861
|
+
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
862
|
+
}
|
|
827
863
|
rootVnode.$tag$ = null;
|
|
828
864
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
829
865
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -974,6 +1010,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
974
1010
|
hostRef.$queuedListeners$ = null;
|
|
975
1011
|
}
|
|
976
1012
|
}
|
|
1013
|
+
{
|
|
1014
|
+
promise = safeCall(instance, 'componentWillLoad');
|
|
1015
|
+
}
|
|
977
1016
|
}
|
|
978
1017
|
{
|
|
979
1018
|
promise = then(promise, () => safeCall(instance, 'componentWillRender'));
|
|
@@ -1045,6 +1084,7 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1045
1084
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
1046
1085
|
const elm = hostRef.$hostElement$;
|
|
1047
1086
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
1087
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1048
1088
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1049
1089
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1050
1090
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -1052,6 +1092,9 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1052
1092
|
// DOM WRITE!
|
|
1053
1093
|
addHydratedFlag(elm);
|
|
1054
1094
|
}
|
|
1095
|
+
{
|
|
1096
|
+
safeCall(instance, 'componentDidLoad');
|
|
1097
|
+
}
|
|
1055
1098
|
endPostUpdate();
|
|
1056
1099
|
{
|
|
1057
1100
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -1154,6 +1197,7 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
|
|
|
1154
1197
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1155
1198
|
// check our new property value against our internal value
|
|
1156
1199
|
const hostRef = getHostRef(ref);
|
|
1200
|
+
const elm = hostRef.$hostElement$ ;
|
|
1157
1201
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1158
1202
|
const flags = hostRef.$flags$;
|
|
1159
1203
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -1166,6 +1210,22 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1166
1210
|
// set our new value!
|
|
1167
1211
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1168
1212
|
if (instance) {
|
|
1213
|
+
// get an array of method names of watch functions to call
|
|
1214
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1215
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1216
|
+
if (watchMethods) {
|
|
1217
|
+
// this instance is watching for when this property changed
|
|
1218
|
+
watchMethods.map((watchMethodName) => {
|
|
1219
|
+
try {
|
|
1220
|
+
// fire off each of the watch methods that are watching this property
|
|
1221
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1222
|
+
}
|
|
1223
|
+
catch (e) {
|
|
1224
|
+
consoleError(e, elm);
|
|
1225
|
+
}
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1169
1229
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1170
1230
|
if (instance.componentShouldUpdate) {
|
|
1171
1231
|
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
@@ -1183,6 +1243,9 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1183
1243
|
};
|
|
1184
1244
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1185
1245
|
if (cmpMeta.$members$) {
|
|
1246
|
+
if (Cstr.watchers) {
|
|
1247
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1248
|
+
}
|
|
1186
1249
|
// It's better to have a const than two Object.entries()
|
|
1187
1250
|
const members = Object.entries(cmpMeta.$members$);
|
|
1188
1251
|
const prototype = Cstr.prototype;
|
|
@@ -1264,6 +1327,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1264
1327
|
.map(([propName, m]) => {
|
|
1265
1328
|
const attrName = m[1] || propName;
|
|
1266
1329
|
attrNameToPropName.set(attrName, propName);
|
|
1330
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
|
1331
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1332
|
+
}
|
|
1267
1333
|
return attrName;
|
|
1268
1334
|
});
|
|
1269
1335
|
}
|
|
@@ -1287,6 +1353,12 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1287
1353
|
endLoad();
|
|
1288
1354
|
}
|
|
1289
1355
|
if (!Cstr.isProxied) {
|
|
1356
|
+
// we've never proxied this Constructor before
|
|
1357
|
+
// let's add the getters/setters to its prototype before
|
|
1358
|
+
// the first time we create an instance of the implementation
|
|
1359
|
+
{
|
|
1360
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1361
|
+
}
|
|
1290
1362
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1291
1363
|
Cstr.isProxied = true;
|
|
1292
1364
|
}
|
|
@@ -1310,6 +1382,9 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1310
1382
|
{
|
|
1311
1383
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1312
1384
|
}
|
|
1385
|
+
{
|
|
1386
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1387
|
+
}
|
|
1313
1388
|
endNewInstance();
|
|
1314
1389
|
}
|
|
1315
1390
|
if (Cstr.style) {
|
|
@@ -1409,12 +1484,16 @@ const setContentReference = (elm) => {
|
|
|
1409
1484
|
const disconnectedCallback = (elm) => {
|
|
1410
1485
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1411
1486
|
const hostRef = getHostRef(elm);
|
|
1487
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1412
1488
|
{
|
|
1413
1489
|
if (hostRef.$rmListeners$) {
|
|
1414
1490
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1415
1491
|
hostRef.$rmListeners$ = undefined;
|
|
1416
1492
|
}
|
|
1417
1493
|
}
|
|
1494
|
+
{
|
|
1495
|
+
safeCall(instance, 'disconnectedCallback');
|
|
1496
|
+
}
|
|
1418
1497
|
}
|
|
1419
1498
|
};
|
|
1420
1499
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
@@ -1444,6 +1523,12 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1444
1523
|
{
|
|
1445
1524
|
cmpMeta.$listeners$ = compactMeta[3];
|
|
1446
1525
|
}
|
|
1526
|
+
{
|
|
1527
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1528
|
+
}
|
|
1529
|
+
{
|
|
1530
|
+
cmpMeta.$watchers$ = {};
|
|
1531
|
+
}
|
|
1447
1532
|
const tagName = cmpMeta.$tagName$;
|
|
1448
1533
|
const HostElement = class extends HTMLElement {
|
|
1449
1534
|
// StencilLazyHost
|
|
@@ -1538,7 +1623,152 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1538
1623
|
if (module) {
|
|
1539
1624
|
return module[exportName];
|
|
1540
1625
|
}
|
|
1541
|
-
|
|
1626
|
+
|
|
1627
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
1628
|
+
const processMod = importedModule => {
|
|
1629
|
+
cmpModules.set(bundleId, importedModule);
|
|
1630
|
+
return importedModule[exportName];
|
|
1631
|
+
}
|
|
1632
|
+
switch(bundleId) {
|
|
1633
|
+
|
|
1634
|
+
case 'p-button_3':
|
|
1635
|
+
return import(
|
|
1636
|
+
/* webpackMode: "lazy" */
|
|
1637
|
+
'./p-button_3.entry.js').then(processMod, consoleError);
|
|
1638
|
+
case 'p-accordion':
|
|
1639
|
+
return import(
|
|
1640
|
+
/* webpackMode: "lazy" */
|
|
1641
|
+
'./p-accordion.entry.js').then(processMod, consoleError);
|
|
1642
|
+
case 'p-avatar-group':
|
|
1643
|
+
return import(
|
|
1644
|
+
/* webpackMode: "lazy" */
|
|
1645
|
+
'./p-avatar-group.entry.js').then(processMod, consoleError);
|
|
1646
|
+
case 'p-card-body':
|
|
1647
|
+
return import(
|
|
1648
|
+
/* webpackMode: "lazy" */
|
|
1649
|
+
'./p-card-body.entry.js').then(processMod, consoleError);
|
|
1650
|
+
case 'p-card-container':
|
|
1651
|
+
return import(
|
|
1652
|
+
/* webpackMode: "lazy" */
|
|
1653
|
+
'./p-card-container.entry.js').then(processMod, consoleError);
|
|
1654
|
+
case 'p-card-header':
|
|
1655
|
+
return import(
|
|
1656
|
+
/* webpackMode: "lazy" */
|
|
1657
|
+
'./p-card-header.entry.js').then(processMod, consoleError);
|
|
1658
|
+
case 'p-content-slider':
|
|
1659
|
+
return import(
|
|
1660
|
+
/* webpackMode: "lazy" */
|
|
1661
|
+
'./p-content-slider.entry.js').then(processMod, consoleError);
|
|
1662
|
+
case 'p-dropdown-menu-item':
|
|
1663
|
+
return import(
|
|
1664
|
+
/* webpackMode: "lazy" */
|
|
1665
|
+
'./p-dropdown-menu-item.entry.js').then(processMod, consoleError);
|
|
1666
|
+
case 'p-illustration':
|
|
1667
|
+
return import(
|
|
1668
|
+
/* webpackMode: "lazy" */
|
|
1669
|
+
'./p-illustration.entry.js').then(processMod, consoleError);
|
|
1670
|
+
case 'p-info-panel':
|
|
1671
|
+
return import(
|
|
1672
|
+
/* webpackMode: "lazy" */
|
|
1673
|
+
'./p-info-panel.entry.js').then(processMod, consoleError);
|
|
1674
|
+
case 'p-input-group':
|
|
1675
|
+
return import(
|
|
1676
|
+
/* webpackMode: "lazy" */
|
|
1677
|
+
'./p-input-group.entry.js').then(processMod, consoleError);
|
|
1678
|
+
case 'p-layout':
|
|
1679
|
+
return import(
|
|
1680
|
+
/* webpackMode: "lazy" */
|
|
1681
|
+
'./p-layout.entry.js').then(processMod, consoleError);
|
|
1682
|
+
case 'p-modal':
|
|
1683
|
+
return import(
|
|
1684
|
+
/* webpackMode: "lazy" */
|
|
1685
|
+
'./p-modal.entry.js').then(processMod, consoleError);
|
|
1686
|
+
case 'p-navbar':
|
|
1687
|
+
return import(
|
|
1688
|
+
/* webpackMode: "lazy" */
|
|
1689
|
+
'./p-navbar.entry.js').then(processMod, consoleError);
|
|
1690
|
+
case 'p-navigation-item':
|
|
1691
|
+
return import(
|
|
1692
|
+
/* webpackMode: "lazy" */
|
|
1693
|
+
'./p-navigation-item.entry.js').then(processMod, consoleError);
|
|
1694
|
+
case 'p-pagination':
|
|
1695
|
+
return import(
|
|
1696
|
+
/* webpackMode: "lazy" */
|
|
1697
|
+
'./p-pagination.entry.js').then(processMod, consoleError);
|
|
1698
|
+
case 'p-profile':
|
|
1699
|
+
return import(
|
|
1700
|
+
/* webpackMode: "lazy" */
|
|
1701
|
+
'./p-profile.entry.js').then(processMod, consoleError);
|
|
1702
|
+
case 'p-segment-container':
|
|
1703
|
+
return import(
|
|
1704
|
+
/* webpackMode: "lazy" */
|
|
1705
|
+
'./p-segment-container.entry.js').then(processMod, consoleError);
|
|
1706
|
+
case 'p-segment-item':
|
|
1707
|
+
return import(
|
|
1708
|
+
/* webpackMode: "lazy" */
|
|
1709
|
+
'./p-segment-item.entry.js').then(processMod, consoleError);
|
|
1710
|
+
case 'p-status':
|
|
1711
|
+
return import(
|
|
1712
|
+
/* webpackMode: "lazy" */
|
|
1713
|
+
'./p-status.entry.js').then(processMod, consoleError);
|
|
1714
|
+
case 'p-stepper':
|
|
1715
|
+
return import(
|
|
1716
|
+
/* webpackMode: "lazy" */
|
|
1717
|
+
'./p-stepper.entry.js').then(processMod, consoleError);
|
|
1718
|
+
case 'p-tab-group':
|
|
1719
|
+
return import(
|
|
1720
|
+
/* webpackMode: "lazy" */
|
|
1721
|
+
'./p-tab-group.entry.js').then(processMod, consoleError);
|
|
1722
|
+
case 'p-tab-item':
|
|
1723
|
+
return import(
|
|
1724
|
+
/* webpackMode: "lazy" */
|
|
1725
|
+
'./p-tab-item.entry.js').then(processMod, consoleError);
|
|
1726
|
+
case 'p-tag':
|
|
1727
|
+
return import(
|
|
1728
|
+
/* webpackMode: "lazy" */
|
|
1729
|
+
'./p-tag.entry.js').then(processMod, consoleError);
|
|
1730
|
+
case 'p-avatar_2':
|
|
1731
|
+
return import(
|
|
1732
|
+
/* webpackMode: "lazy" */
|
|
1733
|
+
'./p-avatar_2.entry.js').then(processMod, consoleError);
|
|
1734
|
+
case 'p-counter':
|
|
1735
|
+
return import(
|
|
1736
|
+
/* webpackMode: "lazy" */
|
|
1737
|
+
'./p-counter.entry.js').then(processMod, consoleError);
|
|
1738
|
+
case 'p-helper':
|
|
1739
|
+
return import(
|
|
1740
|
+
/* webpackMode: "lazy" */
|
|
1741
|
+
'./p-helper.entry.js').then(processMod, consoleError);
|
|
1742
|
+
case 'p-modal-backdrop_5':
|
|
1743
|
+
return import(
|
|
1744
|
+
/* webpackMode: "lazy" */
|
|
1745
|
+
'./p-modal-backdrop_5.entry.js').then(processMod, consoleError);
|
|
1746
|
+
case 'p-pagination-item':
|
|
1747
|
+
return import(
|
|
1748
|
+
/* webpackMode: "lazy" */
|
|
1749
|
+
'./p-pagination-item.entry.js').then(processMod, consoleError);
|
|
1750
|
+
case 'p-slider-indicator':
|
|
1751
|
+
return import(
|
|
1752
|
+
/* webpackMode: "lazy" */
|
|
1753
|
+
'./p-slider-indicator.entry.js').then(processMod, consoleError);
|
|
1754
|
+
case 'p-stepper-item_2':
|
|
1755
|
+
return import(
|
|
1756
|
+
/* webpackMode: "lazy" */
|
|
1757
|
+
'./p-stepper-item_2.entry.js').then(processMod, consoleError);
|
|
1758
|
+
case 'p-dropdown-menu-container':
|
|
1759
|
+
return import(
|
|
1760
|
+
/* webpackMode: "lazy" */
|
|
1761
|
+
'./p-dropdown-menu-container.entry.js').then(processMod, consoleError);
|
|
1762
|
+
case 'p-tooltip':
|
|
1763
|
+
return import(
|
|
1764
|
+
/* webpackMode: "lazy" */
|
|
1765
|
+
'./p-tooltip.entry.js').then(processMod, consoleError);
|
|
1766
|
+
case 'p-divider':
|
|
1767
|
+
return import(
|
|
1768
|
+
/* webpackMode: "lazy" */
|
|
1769
|
+
'./p-divider.entry.js').then(processMod, consoleError);
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1542
1772
|
return import(
|
|
1543
1773
|
/* @vite-ignore */
|
|
1544
1774
|
/* webpackInclude: /\.entry\.js$/ */
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-9062156b.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.17.
|
|
4
|
+
Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchEsm = () => {
|
|
7
7
|
return promiseResolve();
|
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["p-
|
|
13
|
+
return bootstrapLazy([["p-button_3",[[4,"p-button",{"variant":[1],"href":[1],"target":[1],"size":[1],"width":[1],"loading":[4],"chevron":[8],"disabled":[4],"icon":[1],"iconOnly":[4,"icon-only"],"iconPosition":[1,"icon-position"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"inheritText":[4,"inherit-text"]},[[2,"click","handleClick"]]],[1,"p-loader",{"show":[4],"variant":[1],"color":[1],"modalTitle":[1,"modal-title"],"modalDescription":[1,"modal-description"]}],[0,"p-icon",{"variant":[1],"size":[1],"rotate":[2],"flip":[1]}]]],["p-modal",[[1,"p-modal",{"size":[1],"variant":[1],"header":[1],"show":[4],"showMobileClose":[4,"show-mobile-close"],"showMobileFooter":[4,"show-mobile-footer"]}]]],["p-profile",[[1,"p-profile",{"variant":[1],"size":[513],"_dropdownOpen":[32]}]]],["p-input-group",[[1,"p-input-group",{"prefix":[1],"suffix":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"label":[1],"helper":[1],"error":[513],"disabled":[516],"focused":[516],"_showTooltip":[32],"_forceShowTooltip":[32]},[[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]]]]],["p-navbar",[[1,"p-navbar",{"closeText":[1,"close-text"],"menuText":[1,"menu-text"],"_showMenu":[32]},[[8,"closeNavbar","handleCloseNavbar"],[8,"openNavbar","handleOpenNavbar"]]]]],["p-stepper",[[1,"p-stepper",{"activeStep":[2,"active-step"],"direction":[513]}]]],["p-accordion",[[1,"p-accordion",{"header":[1],"open":[4],"closeable":[4],"openable":[4]}]]],["p-navigation-item",[[1,"p-navigation-item",{"active":[4],"icon":[1],"counter":[8],"href":[1],"target":[1]}]]],["p-pagination",[[0,"p-pagination",{"page":[1538],"pageSize":[2,"page-size"],"total":[2]}]]],["p-card-header",[[4,"p-card-header",{"header":[1],"arrow":[4]}]]],["p-content-slider",[[1,"p-content-slider",{"hideMobileIndicator":[4,"hide-mobile-indicator"],"disableDrag":[4,"disable-drag"],"disableIndicatorClick":[4,"disable-indicator-click"],"_visibleIndex":[32],"_outerHeight":[32],"_totalWidth":[32],"_dragging":[32]},[[9,"mouseup","mouseUpHandler"],[9,"resize","resizeHandler"]]]]],["p-dropdown-menu-item",[[1,"p-dropdown-menu-item",{"active":[4],"icon":[1]}]]],["p-info-panel",[[1,"p-info-panel",{"variant":[1],"header":[1],"content":[1],"closeable":[4]}]]],["p-segment-item",[[1,"p-segment-item",{"active":[4],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-status",[[4,"p-status",{"variant":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-tab-group",[[1,"p-tab-group"]]],["p-avatar-group",[[4,"p-avatar-group",{"extra":[2]}]]],["p-card-body",[[4,"p-card-body",{"inheritText":[516,"inherit-text"]}]]],["p-card-container",[[1,"p-card-container",{"hoverable":[516],"shadow":[516]}]]],["p-illustration",[[0,"p-illustration",{"variant":[1]}]]],["p-layout",[[1,"p-layout",{"variant":[1]}]]],["p-segment-container",[[4,"p-segment-container"]]],["p-tab-item",[[1,"p-tab-item",{"active":[4]}]]],["p-tag",[[1,"p-tag",{"variant":[513],"circle":[516]}]]],["p-tooltip",[[1,"p-tooltip",{"variant":[1],"popover":[8],"placement":[1],"strategy":[1],"show":[4],"canManuallyClose":[4,"can-manually-close"]},[[2,"click","clickHandler"],[6,"click","documentClickHandler"],[1,"mouseenter","mouseEnterHandler"],[0,"focus","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"blur","mouseLeaveHandler"]]]]],["p-helper",[[1,"p-helper",{"placement":[1]}]]],["p-counter",[[1,"p-counter",{"variant":[1],"size":[1]}]]],["p-pagination-item",[[1,"p-pagination-item",{"active":[4]}]]],["p-slider-indicator",[[1,"p-slider-indicator",{"active":[4]}]]],["p-avatar_2",[[1,"p-dropdown",{"placement":[513],"strategy":[1],"show":[4],"insideClick":[4,"inside-click"],"disableTriggerClick":[4,"disable-trigger-click"]},[[6,"click","documentClickHandler"]]],[0,"p-avatar",{"variant":[513],"size":[513],"defaultImage":[1,"default-image"],"src":[1],"_src":[32]}]]],["p-stepper-item_2",[[1,"p-stepper-item",{"align":[513],"direction":[513],"finished":[516],"active":[516]}],[1,"p-stepper-line",{"active":[516],"direction":[513]}]]],["p-dropdown-menu-container",[[4,"p-dropdown-menu-container"]]],["p-divider",[[1,"p-divider"]]],["p-modal-backdrop_5",[[1,"p-modal-footer",{"hideOnMobile":[4,"hide-on-mobile"]}],[1,"p-modal-header",{"showMobileClose":[4,"show-mobile-close"]}],[1,"p-modal-backdrop"],[1,"p-modal-body",{"variant":[1]}],[4,"p-modal-container",{"size":[1]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-9062156b.js';
|
|
2
|
+
|
|
3
|
+
const accordionComponentCss = ".static{position:static!important}.m-0{margin:0!important}.mt-6{margin-top:1.5rem!important}.block{display:block!important}.flex{display:flex!important}.rotate-0{--tw-rotate:0deg!important}.rotate-0,.rotate-25{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-25{--tw-rotate:25deg!important}.rotate-45{--tw-rotate:45deg!important}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-90{--tw-rotate:90deg!important}.rotate-135{--tw-rotate:135deg!important}.rotate-135,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-180{--tw-rotate:180deg!important}.rotate-225{--tw-rotate:225deg!important}.rotate-225,.rotate-270{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-270{--tw-rotate:270deg!important}.rotate-315{--tw-rotate:315deg!important}.-rotate-0,.rotate-315{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-0{--tw-rotate:-0deg!important}.-rotate-25{--tw-rotate:-25deg!important}.-rotate-25,.-rotate-45{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-45{--tw-rotate:-45deg!important}.-rotate-90{--tw-rotate:-90deg!important}.-rotate-135,.-rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-135{--tw-rotate:-135deg!important}.-rotate-180{--tw-rotate:-180deg!important}.-rotate-180,.-rotate-225{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-225{--tw-rotate:-225deg!important}.-rotate-270{--tw-rotate:-270deg!important}.-rotate-270,.-rotate-315{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-315{--tw-rotate:-315deg!important}.scale-x-flip{--tw-scale-x:-1!important}.scale-x-flip,.scale-y-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.scale-y-flip{--tw-scale-y:-1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.gap-3{gap:.75rem!important}.whitespace-nowrap{white-space:nowrap!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-xxs{font-size:.6875rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-5xl{font-size:3rem!important}.text-5xl,.text-6xl{line-height:1!important}.text-6xl{font-size:3.75rem!important}.font-medium{font-weight:500!important}.text-storm-vague{--tw-text-opacity:1!important;color:rgb(152 154 183/var(--tw-text-opacity))!important}*{box-sizing:border-box}:host{display:block;margin-bottom:1.5rem}.-rotate-0,.-rotate-135,.-rotate-180,.-rotate-225,.-rotate-25,.-rotate-270,.-rotate-315,.-rotate-45,.-rotate-90,.rotate-0,.rotate-135,.rotate-180,.rotate-225,.rotate-25,.rotate-270,.rotate-315,.rotate-45,.rotate-90,.scale-x-flip,.scale-y-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.text-lg,.text-xl{line-height:1.75rem!important}";
|
|
4
|
+
|
|
5
|
+
const Accordion = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.isOpen = createEvent(this, "isOpen", 7);
|
|
9
|
+
/**
|
|
10
|
+
* Wether the accordion is open
|
|
11
|
+
*/
|
|
12
|
+
this.open = false;
|
|
13
|
+
/**
|
|
14
|
+
* Wether the accordion can be closed
|
|
15
|
+
*/
|
|
16
|
+
this.closeable = true;
|
|
17
|
+
/**
|
|
18
|
+
* Wether the accordion can be opened
|
|
19
|
+
*/
|
|
20
|
+
this.openable = true;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return (h(Host, { class: "p-accordion" }, h("div", { class: "flex items-center gap-3 text-storm-vague cursor-pointer", onClick: () => this._onClick() }, h("p-icon", { class: "flex", variant: "chevron", rotate: this.open ? 0 : -90 }), h("p", { class: "m-0 font-medium text-lg whitespace-nowrap" }, this.header), h("p-divider", null)), this.open && (h("div", { class: "mt-6" }, h("slot", null)))));
|
|
24
|
+
}
|
|
25
|
+
_onClick() {
|
|
26
|
+
if (!this.closeable && this.open) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (!this.openable && !this.open) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
this.open = !this.open;
|
|
33
|
+
this.isOpen.emit(this.open);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
Accordion.style = accordionComponentCss;
|
|
37
|
+
|
|
38
|
+
export { Accordion as p_accordion };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-9062156b.js';
|
|
2
|
+
|
|
3
|
+
const avatarGroupComponentCss = ".static{position:static!important}.flex{display:flex!important}.-space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(-.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(-.25rem*var(--tw-space-x-reverse))!important}.overflow-hidden{overflow:hidden!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-storm-vague{--tw-text-opacity:1!important;color:rgb(152 154 183/var(--tw-text-opacity))!important}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}*{box-sizing:border-box}p-avatar-group{align-items:center;display:flex;overflow:hidden}p-avatar-group>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(-.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(-.25rem*var(--tw-space-x-reverse))}p-avatar-group p-avatar>img{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity));box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}p-avatar-group p-avatar:first-child{z-index:3}p-avatar-group p-avatar:nth-child(2){z-index:2}p-avatar-group p-avatar:nth-child(3){z-index:1}p-avatar-group .extra{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;padding-left:1rem}";
|
|
4
|
+
|
|
5
|
+
const AvatarGroup = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h(Host, { class: "p-avatar-group" }, h("slot", null), this.extra && h("span", { class: "extra" }, "+", this.extra)));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
AvatarGroup.style = avatarGroupComponentCss;
|
|
14
|
+
|
|
15
|
+
export { AvatarGroup as p_avatar_group };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-9062156b.js';
|
|
2
|
+
import { c as createPopper } from './popper-41c6f9cd.js';
|
|
3
|
+
|
|
4
|
+
const avatarComponentCss = ".static{position:static!important}.absolute{position:absolute!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.w-8{width:2rem!important}.w-\\[3\\.125rem\\]{width:3.125rem!important}.w-16{width:4rem!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.rounded{border-radius:.25rem!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}*{box-sizing:border-box}p-avatar{display:inline-block}p-avatar>img{-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}p-avatar[size=small]>img{height:2rem;width:2rem}p-avatar[size=medium]>img{height:3.125rem;width:3.125rem}p-avatar[size=large]>img{height:4rem;width:4rem}p-avatar[variant=company]>img{border-radius:.25rem}p-avatar[variant=company][size=large]>img,p-avatar[variant=company][size=medium]>img{border-radius:.375rem}p-avatar[variant=user]>img{border-radius:100%}";
|
|
5
|
+
|
|
6
|
+
const Avatar = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
/**
|
|
10
|
+
* The variant of the avatar
|
|
11
|
+
*/
|
|
12
|
+
this.variant = 'user';
|
|
13
|
+
/**
|
|
14
|
+
* The size of the avatar
|
|
15
|
+
*/
|
|
16
|
+
this.size = 'medium';
|
|
17
|
+
this._src = this.src;
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
if (!this._src) {
|
|
21
|
+
this._setDefaultLink();
|
|
22
|
+
}
|
|
23
|
+
return (h(Host, { class: "p-avatar" }, h("img", { src: this._src, onError: () => this._setDefaultLink() })));
|
|
24
|
+
}
|
|
25
|
+
_setDefaultLink() {
|
|
26
|
+
var _a;
|
|
27
|
+
this._src =
|
|
28
|
+
(_a = this.defaultImage) !== null && _a !== void 0 ? _a : (this.variant === 'user'
|
|
29
|
+
? '/assets/images/avatar/user-default.svg'
|
|
30
|
+
: '/assets/images/avatar/company-default.svg');
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
Avatar.style = avatarComponentCss;
|
|
34
|
+
|
|
35
|
+
const childOf = (c, p) => {
|
|
36
|
+
while ((c = c.parentNode) && c !== p)
|
|
37
|
+
;
|
|
38
|
+
return !!c;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const dropdownComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.hidden{display:none!important}.w-auto{width:auto!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}*{box-sizing:border-box}:host{position:relative}:host .trigger{height:auto;width:auto}:host p-dropdown-menu-container{display:none}:host p-dropdown-menu-container[data-show]{display:flex}";
|
|
42
|
+
|
|
43
|
+
const Dropdown = class {
|
|
44
|
+
constructor(hostRef) {
|
|
45
|
+
registerInstance(this, hostRef);
|
|
46
|
+
this.isOpen = createEvent(this, "isOpen", 7);
|
|
47
|
+
/**
|
|
48
|
+
* The content of the dropdown menu
|
|
49
|
+
*/
|
|
50
|
+
this.placement = 'bottom-start';
|
|
51
|
+
/**
|
|
52
|
+
* The strategy of the popover placement
|
|
53
|
+
*/
|
|
54
|
+
this.strategy = 'fixed';
|
|
55
|
+
/**
|
|
56
|
+
* Wether to show the dropdown menu
|
|
57
|
+
*/
|
|
58
|
+
this.show = false;
|
|
59
|
+
/**
|
|
60
|
+
* Wether to automatically close the dropdown menu after clicking inside
|
|
61
|
+
*/
|
|
62
|
+
this.insideClick = false;
|
|
63
|
+
/**
|
|
64
|
+
* Wether to automatically close the dropdown menu after clicking inside
|
|
65
|
+
*/
|
|
66
|
+
this.disableTriggerClick = false;
|
|
67
|
+
this._loaded = false;
|
|
68
|
+
}
|
|
69
|
+
componentShouldUpdate() {
|
|
70
|
+
this._setOptions();
|
|
71
|
+
if (this._loaded && this.show) {
|
|
72
|
+
this._show();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
render() {
|
|
76
|
+
return (h(Host, { class: "p-dropdown" }, h("div", { class: "trigger", onClick: () => this._triggerClickHandler() }, h("slot", { onSlotchange: (ev) => this._checkButton(ev), name: "trigger" })), h("p-dropdown-menu-container", { role: "popover", ref: (el) => this._load(el), onClick: () => this._containerClickHandler() }, h("slot", { name: "items" }))));
|
|
77
|
+
}
|
|
78
|
+
_checkButton({ target }) {
|
|
79
|
+
const slot = target;
|
|
80
|
+
const children = slot.assignedElements();
|
|
81
|
+
for (let child of children) {
|
|
82
|
+
if (child.nodeName === 'P-BUTTON') {
|
|
83
|
+
child.chevron =
|
|
84
|
+
this.placement.indexOf('top') >= 0 ? 'up' : 'down';
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
_containerClickHandler() {
|
|
89
|
+
if (this.insideClick) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (this._menu.hasAttribute('data-show')) {
|
|
93
|
+
this._hide();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
_triggerClickHandler() {
|
|
97
|
+
if (this.disableTriggerClick) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (this._menu.hasAttribute('data-show')) {
|
|
101
|
+
this._hide();
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
this._show();
|
|
105
|
+
}
|
|
106
|
+
documentClickHandler({ target }) {
|
|
107
|
+
if (!this._menu.hasAttribute('data-show') ||
|
|
108
|
+
childOf(target, this._el)) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
this._hide();
|
|
112
|
+
}
|
|
113
|
+
_load(popover) {
|
|
114
|
+
this._menu = popover;
|
|
115
|
+
if (popover) {
|
|
116
|
+
this._popper = createPopper(this._el, popover, {
|
|
117
|
+
strategy: this.strategy,
|
|
118
|
+
});
|
|
119
|
+
this._setOptions();
|
|
120
|
+
this._loaded = true;
|
|
121
|
+
if (this.show) {
|
|
122
|
+
setTimeout(() => this._show(), 100);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
_setOptions() {
|
|
127
|
+
if (!this._popper) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
this._popper.setOptions({
|
|
131
|
+
placement: this.placement,
|
|
132
|
+
modifiers: [
|
|
133
|
+
{
|
|
134
|
+
name: 'offset',
|
|
135
|
+
options: {
|
|
136
|
+
offset: [0, 8],
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
_show() {
|
|
143
|
+
if (!this._loaded) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
// Make the popover visible
|
|
147
|
+
this._menu.setAttribute('data-show', '');
|
|
148
|
+
this.isOpen.emit(true);
|
|
149
|
+
// Enable the event listeners
|
|
150
|
+
this._popper.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [
|
|
151
|
+
...options.modifiers,
|
|
152
|
+
{ name: 'eventListeners', enabled: true },
|
|
153
|
+
] })));
|
|
154
|
+
// Update its position
|
|
155
|
+
this._popper.update();
|
|
156
|
+
}
|
|
157
|
+
_hide() {
|
|
158
|
+
if (!this._loaded || this.show) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
// Hide the popover
|
|
162
|
+
this._menu.removeAttribute('data-show');
|
|
163
|
+
this.isOpen.emit(false);
|
|
164
|
+
// Disable the event listeners
|
|
165
|
+
this._popper.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [
|
|
166
|
+
...options.modifiers,
|
|
167
|
+
{ name: 'eventListeners', enabled: false },
|
|
168
|
+
] })));
|
|
169
|
+
}
|
|
170
|
+
get _el() { return getElement(this); }
|
|
171
|
+
};
|
|
172
|
+
Dropdown.style = dropdownComponentCss;
|
|
173
|
+
|
|
174
|
+
export { Avatar as p_avatar, Dropdown as p_dropdown };
|