@paperless/core 0.1.0-alpha.5 → 0.1.0-alpha.52
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 +463 -0
- package/README.md +18 -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/task.svg +17 -0
- package/dist/assets/icons/template.svg +17 -0
- package/dist/assets/images/avatar/company-default.svg +12 -0
- package/dist/assets/images/avatar/user-default.svg +12 -0
- package/dist/assets/images/helper/helper-hover.svg +15 -0
- package/dist/assets/images/helper/helper.svg +15 -0
- package/dist/build/p-0100c1a2.js +2 -0
- package/dist/build/p-0fc4e043.entry.js +1 -0
- package/dist/build/p-11d24001.entry.js +1 -0
- package/dist/build/p-19254809.entry.js +1 -0
- package/dist/build/p-2120a0b7.entry.js +1 -0
- package/dist/build/p-27914eed.entry.js +1 -0
- package/dist/build/p-2a3dd70b.entry.js +1 -0
- package/dist/build/p-2c23d197.entry.js +1 -0
- package/dist/build/p-2c7eebe0.entry.js +1 -0
- package/dist/build/p-30026c58.entry.js +1 -0
- package/dist/build/p-3b491ca2.entry.js +1 -0
- package/dist/build/p-3f6d3736.entry.js +1 -0
- package/dist/build/p-4a85b858.entry.js +1 -0
- package/dist/build/p-5101f35f.entry.js +1 -0
- package/dist/build/p-5438d70e.entry.js +1 -0
- package/dist/build/p-67fc89a6.entry.js +1 -0
- package/dist/build/p-6e60b92a.entry.js +1 -0
- package/dist/build/p-7784ee14.entry.js +1 -0
- package/dist/build/p-7cf04cb4.entry.js +1 -0
- package/dist/build/p-7e05bc4b.entry.js +1 -0
- package/dist/build/p-864ac423.entry.js +1 -0
- package/dist/build/p-a69581db.entry.js +1 -0
- package/dist/build/p-a7086ffa.js +1 -0
- package/dist/build/p-b68368f3.entry.js +1 -0
- package/dist/build/p-c64e2313.entry.js +1 -0
- package/dist/build/p-ccbddcbb.entry.js +1 -0
- package/dist/build/{p-f04c4de0.entry.js → p-d069673f.entry.js} +1 -1
- package/dist/build/p-f50c6e5b.entry.js +1 -0
- package/dist/build/p-fb1e33eb.entry.js +1 -0
- package/dist/build/p-ffeed7c6.entry.js +1 -0
- package/dist/build/paperless.css +29 -18
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-a2da05ae.js → index-f9c302b6.js} +213 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-avatar-group.cjs.entry.js +19 -0
- package/dist/cjs/p-avatar.cjs.entry.js +38 -0
- package/dist/cjs/p-button_3.cjs.entry.js +162 -17
- package/dist/cjs/p-card-body.cjs.entry.js +23 -0
- package/dist/cjs/p-card-container.cjs.entry.js +23 -0
- package/dist/cjs/p-card-header.cjs.entry.js +24 -0
- package/dist/cjs/p-counter.cjs.entry.js +19 -0
- package/dist/cjs/p-divider.cjs.entry.js +19 -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-dropdown.cjs.entry.js +141 -0
- package/dist/cjs/p-helper.cjs.entry.js +19 -0
- package/dist/cjs/p-illustration.cjs.entry.js +9 -12
- package/dist/cjs/p-info-panel.cjs.entry.js +31 -0
- package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +92 -0
- package/dist/cjs/p-modal.cjs.entry.js +39 -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 +26 -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-status.cjs.entry.js +49 -0
- package/dist/cjs/p-stepper-line_2.cjs.entry.js +56 -0
- package/dist/cjs/p-stepper.cjs.entry.js +72 -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-tooltip.cjs.entry.js +75 -1811
- package/dist/cjs/paperless.cjs.js +2 -2
- 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/task.svg +17 -0
- package/dist/collection/assets/icons/template.svg +17 -0
- package/dist/collection/assets/images/avatar/company-default.svg +12 -0
- package/dist/collection/assets/images/avatar/user-default.svg +12 -0
- package/dist/collection/assets/images/helper/helper-hover.svg +15 -0
- package/dist/collection/assets/images/helper/helper.svg +15 -0
- package/dist/collection/collection-manifest.json +31 -1
- package/dist/collection/components/atoms/avatar/avatar.component.css +24 -0
- package/dist/collection/components/atoms/avatar/avatar.component.js +110 -0
- 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 +23 -1
- package/dist/collection/components/atoms/button/button.component.js +86 -10
- 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 +13 -0
- package/dist/collection/components/atoms/card-container/card-container.component.js +41 -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 +60 -0
- package/dist/collection/components/atoms/counter/counter.component.css +5 -0
- package/dist/collection/components/atoms/counter/counter.component.js +15 -0
- package/dist/collection/components/atoms/divider/divider.component.css +3 -0
- package/dist/collection/components/atoms/divider/divider.component.js +14 -0
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +5 -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 +41 -0
- package/dist/collection/components/atoms/helper/helper.component.css +7 -0
- package/dist/collection/components/atoms/helper/helper.component.js +18 -0
- package/dist/collection/components/atoms/icon/icon.component.css +1 -0
- package/dist/collection/components/atoms/icon/icon.component.js +63 -20
- package/dist/collection/components/atoms/illustration/illustration.component.js +2 -9
- package/dist/collection/components/atoms/info-panel/info-panel.component.css +28 -0
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +106 -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 +4 -0
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +16 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.css +6 -0
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +15 -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/profile/profile.component.css +13 -0
- package/dist/collection/components/atoms/profile/profile.component.js +25 -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/status/status.component.css +16 -0
- package/dist/collection/components/atoms/status/status.component.js +133 -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/stepper-step/stepper-step.component.css +59 -0
- package/dist/collection/components/atoms/stepper-step/stepper-step.component.js +109 -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/tooltip/tooltip.component.css +19 -13
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +133 -35
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +9 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +233 -0
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +28 -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/stepper/stepper.component.css +12 -0
- package/dist/collection/components/molecules/stepper/stepper.component.js +107 -0
- package/dist/collection/components/organisms/modal/modal.component.js +111 -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 -6
- package/dist/collection/tailwind/grid.js +24 -4
- package/dist/collection/tailwind/typography.js +21 -0
- package/dist/collection/tailwind/z-index.js +3 -0
- package/dist/collection/tailwind.config.js +21 -13
- package/dist/collection/utils/child-of.js +5 -0
- package/dist/collection/utils/icons.js +10 -0
- package/dist/collection/utils/types.js +1 -0
- package/dist/components/avatar.component.js +54 -0
- package/dist/components/counter.component.js +30 -0
- package/dist/components/divider.component.js +30 -0
- package/dist/components/dropdown-menu-container.component.js +29 -0
- package/dist/components/icon.component.js +137 -9
- package/dist/components/index.d.ts +30 -0
- 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 +36 -0
- package/dist/components/modal-header.component.js +30 -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.d.ts +11 -0
- package/dist/components/p-avatar.js +6 -0
- package/dist/components/p-button.js +23 -4
- 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 +39 -0
- package/dist/components/p-card-header.d.ts +11 -0
- package/dist/components/p-card-header.js +46 -0
- package/dist/components/p-counter.d.ts +11 -0
- package/dist/components/p-counter.js +6 -0
- 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 +39 -0
- package/dist/components/p-dropdown.d.ts +11 -0
- package/dist/components/p-dropdown.js +166 -0
- package/dist/components/p-helper.d.ts +11 -0
- package/dist/components/p-helper.js +39 -0
- package/dist/components/p-illustration.js +0 -4
- package/dist/components/p-info-panel.d.ts +11 -0
- package/dist/components/p-info-panel.js +56 -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 +94 -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 +46 -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-status.d.ts +11 -0
- package/dist/components/p-status.js +73 -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-step.d.ts +11 -0
- package/dist/components/p-stepper-step.js +6 -0
- package/dist/components/p-stepper.d.ts +11 -0
- package/dist/components/p-stepper.js +107 -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-tooltip.js +1 -1886
- package/dist/components/pagination-item.component.js +36 -0
- package/dist/components/popper.js +1788 -0
- package/dist/components/stepper-line.component.js +41 -0
- package/dist/components/stepper-step.component.js +57 -0
- package/dist/components/tooltip.component.js +154 -0
- package/dist/esm/{index-d08bfe75.js → index-fff70567.js} +213 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/p-avatar-group.entry.js +15 -0
- package/dist/esm/p-avatar.entry.js +34 -0
- package/dist/esm/p-button_3.entry.js +162 -17
- package/dist/esm/p-card-body.entry.js +19 -0
- package/dist/esm/p-card-container.entry.js +19 -0
- package/dist/esm/p-card-header.entry.js +20 -0
- package/dist/esm/p-counter.entry.js +15 -0
- package/dist/esm/p-divider.entry.js +15 -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-dropdown.entry.js +137 -0
- package/dist/esm/p-helper.entry.js +15 -0
- package/dist/esm/p-illustration.entry.js +9 -12
- package/dist/esm/p-info-panel.entry.js +27 -0
- package/dist/esm/p-modal-backdrop_5.entry.js +84 -0
- package/dist/esm/p-modal.entry.js +35 -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 +22 -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-status.entry.js +45 -0
- package/dist/esm/p-stepper-line_2.entry.js +51 -0
- package/dist/esm/p-stepper.entry.js +68 -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-tooltip.entry.js +75 -1811
- package/dist/esm/paperless.js +2 -2
- 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-0100c1a2.js +2 -0
- package/dist/paperless/p-0fc4e043.entry.js +1 -0
- package/dist/paperless/p-11d24001.entry.js +1 -0
- package/dist/paperless/p-19254809.entry.js +1 -0
- package/dist/paperless/p-2120a0b7.entry.js +1 -0
- package/dist/paperless/p-27914eed.entry.js +1 -0
- package/dist/paperless/p-2a3dd70b.entry.js +1 -0
- package/dist/paperless/p-2c23d197.entry.js +1 -0
- package/dist/paperless/p-2c7eebe0.entry.js +1 -0
- package/dist/paperless/p-30026c58.entry.js +1 -0
- package/dist/paperless/p-3b491ca2.entry.js +1 -0
- package/dist/paperless/p-3f6d3736.entry.js +1 -0
- package/dist/paperless/p-4a85b858.entry.js +1 -0
- package/dist/paperless/p-5101f35f.entry.js +1 -0
- package/dist/paperless/p-5438d70e.entry.js +1 -0
- package/dist/paperless/p-67fc89a6.entry.js +1 -0
- package/dist/paperless/p-6e60b92a.entry.js +1 -0
- package/dist/paperless/p-7784ee14.entry.js +1 -0
- package/dist/paperless/p-7cf04cb4.entry.js +1 -0
- package/dist/paperless/p-7e05bc4b.entry.js +1 -0
- package/dist/paperless/p-864ac423.entry.js +1 -0
- package/dist/paperless/p-a69581db.entry.js +1 -0
- package/dist/paperless/p-a7086ffa.js +1 -0
- package/dist/paperless/p-b68368f3.entry.js +1 -0
- package/dist/paperless/p-c64e2313.entry.js +1 -0
- package/dist/paperless/p-ccbddcbb.entry.js +1 -0
- package/dist/paperless/{p-f04c4de0.entry.js → p-d069673f.entry.js} +1 -1
- package/dist/paperless/p-f50c6e5b.entry.js +1 -0
- package/dist/paperless/p-fb1e33eb.entry.js +1 -0
- package/dist/paperless/p-ffeed7c6.entry.js +1 -0
- package/dist/paperless/paperless.css +82 -26376
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +2 -260
- 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/grid.js +26 -0
- package/dist/tailwind/rotate.js +8 -0
- package/dist/tailwind/scale.js +3 -0
- package/dist/tailwind/shadows.js +7 -0
- package/dist/tailwind/typography.js +21 -0
- package/dist/tailwind/z-index.js +3 -0
- package/dist/tailwind.config.js +21 -13
- package/dist/types/components/atoms/avatar/avatar.component.d.ts +21 -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 +14 -1
- package/dist/types/components/atoms/card-body/card-body.component.d.ts +7 -0
- package/dist/types/components/atoms/card-container/card-container.component.d.ts +7 -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 +3 -0
- package/dist/types/components/atoms/divider/divider.component.d.ts +3 -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 +7 -0
- package/dist/types/components/atoms/helper/helper.component.d.ts +3 -0
- package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
- package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +24 -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 +3 -0
- package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +3 -0
- package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +7 -0
- package/dist/types/components/atoms/profile/profile.component.d.ts +8 -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/status/status.component.d.ts +23 -0
- package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +11 -0
- package/dist/types/components/atoms/stepper-step/stepper-step.component.d.ts +19 -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/tooltip/tooltip.component.d.ts +20 -8
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +42 -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/stepper/stepper.component.d.ts +18 -0
- package/dist/types/components/organisms/modal/modal.component.d.ts +25 -0
- package/dist/types/components.d.ts +864 -20
- package/dist/types/utils/child-of.d.ts +1 -0
- package/dist/types/utils/icons.d.ts +5 -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-4144f8a0.entry.js +0 -1
- package/dist/build/p-c04e9d44.entry.js +0 -1
- package/dist/build/p-f33e1285.js +0 -2
- package/dist/paperless/p-4144f8a0.entry.js +0 -1
- package/dist/paperless/p-c04e9d44.entry.js +0 -1
- package/dist/paperless/p-f33e1285.js +0 -2
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const stepperLineComponentCss = ".static{position:static!important}.mb-\\[calc\\(\\.5rem-1px\\)\\]{margin-bottom:calc(.5rem - 1px)!important}.ml-\\[calc\\(\\.5rem-1px\\)\\]{margin-left:calc(.5rem - 1px)!important}.mb-3{margin-bottom:.75rem!important}.ml-2{margin-left:.5rem!important}.block{display:block!important}.h-\\[2px\\]{height:2px!important}.w-\\[2px\\]{width:2px!important}.flex-auto{flex:1 1 auto!important}.-translate-y-1{--tw-translate-y:-0.25rem!important}.-translate-x-1,.-translate-y-1{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}.-translate-x-1{--tw-translate-x:-0.25rem!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}.border-t-2{border-top-width:2px!important}.border-r-2{border-right-width:2px!important}.border-indigo{--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity))!important}.border-mystic-dark{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important}.transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.duration-500{transition-duration:.5s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}:host{--tw-bg-opacity:1;background-color:rgb(218 230 240/var(--tw-bg-opacity));display:block;flex:1 1 auto;transition-duration:.5s;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([direction=horizontal]){height:2px;margin-bottom:calc(.5rem - 1px)}:host([direction=vertical]){margin-left:calc(.5rem - 1px);width:2px}:host([active]){--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity))}.-translate-y-1\\/2{--tw-translate-y:-50%!important}.-translate-x-1\\/2,.-translate-y-1\\/2{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}.-translate-x-1\\/2{--tw-translate-x:-50%!important}.border-indigo,.border-mystic-dark{--tw-border-opacity:1!important}";
|
|
4
|
+
|
|
5
|
+
const StepperLine = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
/**
|
|
11
|
+
* Wether the line is active
|
|
12
|
+
*/
|
|
13
|
+
this.active = false;
|
|
14
|
+
/**
|
|
15
|
+
* The direction of the stepper line
|
|
16
|
+
*/
|
|
17
|
+
this.direction = 'horizontal';
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return h(Host, { class: "p-stepper-line" });
|
|
21
|
+
}
|
|
22
|
+
static get style() { return stepperLineComponentCss; }
|
|
23
|
+
}, [1, "p-stepper-line", {
|
|
24
|
+
"active": [516],
|
|
25
|
+
"direction": [513]
|
|
26
|
+
}]);
|
|
27
|
+
function defineCustomElement() {
|
|
28
|
+
if (typeof customElements === "undefined") {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const components = ["p-stepper-line"];
|
|
32
|
+
components.forEach(tagName => { switch (tagName) {
|
|
33
|
+
case "p-stepper-line":
|
|
34
|
+
if (!customElements.get(tagName)) {
|
|
35
|
+
customElements.define(tagName, StepperLine);
|
|
36
|
+
}
|
|
37
|
+
break;
|
|
38
|
+
} });
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { StepperLine as S, defineCustomElement as d };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$1 } from './icon.component.js';
|
|
3
|
+
|
|
4
|
+
const stepperStepComponentCss = ".static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.left-1\\/2{left:50%!important}.ml-4{margin-left:1rem!important}.mb-3{margin-bottom:.75rem!important}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.h-4{height:1rem!important}.flex-auto{flex:1 1 auto!important}.-translate-y-1{--tw-translate-y:-0.25rem!important}.-translate-x-1,.-translate-y-1{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}.-translate-x-1{--tw-translate-x:-0.25rem!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}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.rounded-round{border-radius:100%!important}.border-t-2{border-top-width:2px!important}.border-r-2{border-right-width:2px!important}.border-indigo{--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity))!important}.border-mystic-dark{--tw-border-opacity:1!important;border-color:rgb(218 230 240/var(--tw-border-opacity))!important}.bg-mystic-dark{--tw-bg-opacity:1!important;background-color:rgb(218 230 240/var(--tw-bg-opacity))!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.duration-500{transition-duration:.5s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}:host{align-items:flex-end;display:flex;justify-content:center;position:relative}:host .content{--tw-text-opacity:1;color:rgb(176 178 203/var(--tw-text-opacity));font-size:.875rem;font-weight:600;line-height:1.25rem;white-space:nowrap}:host .circle{--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(218 230 240/var(--tw-bg-opacity));border-radius:100%;color:rgb(255 255 255/var(--tw-text-opacity));display:flex;height:1rem;justify-content:center;transition-duration:.5s;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1rem}:host .circle p-icon{display:flex!important;font-size:.625rem}:host([direction=horizontal]){height:2.5rem}:host([direction=horizontal]) .content{order:1;position:absolute;top:0}:host([direction=horizontal]) .circle{order:2}:host([direction=vertical]){height:1rem}:host([direction=vertical]) .content{margin-left:1rem;order:2}:host([direction=vertical]) .circle{order:1}:host([active]) .content,:host([finished]) .content{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity))}:host([active]) .circle,:host([finished]) .circle{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity))}:host([direction=horizontal][align=start]) .content{left:0}:host([direction=horizontal][align=end]) .content{right:0}:host([direction=horizontal][align=center]) .content{--tw-translate-x:-50%;left:50%;text-align:center;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))}.-translate-y-1\\/2{--tw-translate-y:-50%!important}.-translate-x-1\\/2,.-translate-y-1\\/2{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}.-translate-x-1\\/2{--tw-translate-x:-50%!important}.border-indigo,.border-mystic-dark{--tw-border-opacity:1!important}";
|
|
5
|
+
|
|
6
|
+
const StepperStep = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
/**
|
|
12
|
+
* The alignment of the step content
|
|
13
|
+
*/
|
|
14
|
+
this.align = 'center';
|
|
15
|
+
/**
|
|
16
|
+
* The direction of the stepper step
|
|
17
|
+
*/
|
|
18
|
+
this.direction = 'horizontal';
|
|
19
|
+
/**
|
|
20
|
+
* Wether the step is finished
|
|
21
|
+
*/
|
|
22
|
+
this.finished = false;
|
|
23
|
+
/**
|
|
24
|
+
* Wether the step is active
|
|
25
|
+
*/
|
|
26
|
+
this.active = false;
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
return (h(Host, { class: "p-stepper-step" }, h("div", { class: "content" }, h("slot", null)), h("div", { class: "circle" }, this.finished && h("p-icon", { variant: "checkmark" }))));
|
|
30
|
+
}
|
|
31
|
+
static get style() { return stepperStepComponentCss; }
|
|
32
|
+
}, [1, "p-stepper-step", {
|
|
33
|
+
"align": [513],
|
|
34
|
+
"direction": [513],
|
|
35
|
+
"finished": [516],
|
|
36
|
+
"active": [516]
|
|
37
|
+
}]);
|
|
38
|
+
function defineCustomElement() {
|
|
39
|
+
if (typeof customElements === "undefined") {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const components = ["p-stepper-step", "p-icon"];
|
|
43
|
+
components.forEach(tagName => { switch (tagName) {
|
|
44
|
+
case "p-stepper-step":
|
|
45
|
+
if (!customElements.get(tagName)) {
|
|
46
|
+
customElements.define(tagName, StepperStep);
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
case "p-icon":
|
|
50
|
+
if (!customElements.get(tagName)) {
|
|
51
|
+
defineCustomElement$1();
|
|
52
|
+
}
|
|
53
|
+
break;
|
|
54
|
+
} });
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { StepperStep as S, defineCustomElement as d };
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as createPopper } from './popper.js';
|
|
3
|
+
|
|
4
|
+
const tooltipComponentCss = ".visible{visibility:visible!important}.static{position:static!important}.absolute{position:absolute!important}.block{display:block!important}.hidden{display:none!important}.w-2{width:.5rem!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}.rounded{border-radius:.25rem!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.bg-storm,.bg-white{--tw-bg-opacity:1!important}.bg-storm{background-color:rgb(81 83 107/var(--tw-bg-opacity))!important}.py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.blur{--tw-blur:blur(8px)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}:host{cursor:pointer;display:inline-block}:host .popover{--tw-bg-opacity:1;--tw-drop-shadow:drop-shadow(0px 0.3125rem 1rem rgba(0,24,98,.08)) drop-shadow(0px 0.0625rem 0.1875rem rgba(0,24,98,.13));background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.25rem;display:none;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);font-size:.75rem;font-weight:500;line-height:1rem;max-width:14.5rem;padding:.5rem .75rem}:host .popover.variant-error,:host .popover.variant-hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(81 83 107/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));padding-bottom:.25rem;padding-top:.25rem}:host .popover.variant-error{--tw-bg-opacity:1;background-color:rgb(185 30 40/var(--tw-bg-opacity))}:host .popover[data-show]{display:block}:host .popover .arrow,:host .popover .arrow:before{background:inherit;height:.5rem;position:absolute;width:.5rem}:host .popover .arrow{visibility:hidden}:host .popover .arrow:before{--tw-rotate:45deg;content:\"\";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));visibility:visible}:host .popover[data-popper-placement^=top]>.arrow{bottom:-.25rem}:host .popover[data-popper-placement^=bottom]>.arrow{top:-.25rem}:host .popover[data-popper-placement^=left]>.arrow{right:-.25rem}:host .popover[data-popper-placement^=right]>.arrow{left:-.25rem}";
|
|
5
|
+
|
|
6
|
+
const Tooltip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
/**
|
|
12
|
+
* The variant of the popover
|
|
13
|
+
*/
|
|
14
|
+
this.variant = 'hover';
|
|
15
|
+
/**
|
|
16
|
+
* The content of the popover
|
|
17
|
+
*/
|
|
18
|
+
this.popover = null;
|
|
19
|
+
/**
|
|
20
|
+
* The content of the popover
|
|
21
|
+
*/
|
|
22
|
+
this.placement = 'top';
|
|
23
|
+
/**
|
|
24
|
+
* Wether to show the popover
|
|
25
|
+
*/
|
|
26
|
+
this.show = false;
|
|
27
|
+
/**
|
|
28
|
+
* Wether to someone can manually close the popover
|
|
29
|
+
*/
|
|
30
|
+
this.canManuallyClose = true;
|
|
31
|
+
this._loaded = false;
|
|
32
|
+
}
|
|
33
|
+
componentShouldUpdate() {
|
|
34
|
+
this._setOptions();
|
|
35
|
+
if (this._loaded && this.show) {
|
|
36
|
+
this._show();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
return (h(Host, { class: "p-popover" }, h("slot", { name: "content" }), h("div", { class: `popover variant-${this.variant}`, role: "popover", ref: (el) => this._load(el) }, this.popover ? this.popover : h("slot", { name: "popover" }), h("div", { class: "arrow", "data-popper-arrow": true }))));
|
|
41
|
+
}
|
|
42
|
+
clickHandler() {
|
|
43
|
+
if (this.variant !== 'click') {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (this._popover.hasAttribute('data-show')) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
this._show();
|
|
50
|
+
}
|
|
51
|
+
documentClickHandler() {
|
|
52
|
+
if (this.variant !== 'click' || !this.canManuallyClose) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (!this._popover.hasAttribute('data-show')) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
this._hide();
|
|
59
|
+
}
|
|
60
|
+
mouseEnterHandler() {
|
|
61
|
+
if (this.variant !== 'hover') {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
this._show();
|
|
65
|
+
}
|
|
66
|
+
mouseLeaveHandler() {
|
|
67
|
+
if (this.show || this.variant !== 'hover') {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
this._hide();
|
|
71
|
+
}
|
|
72
|
+
_show() {
|
|
73
|
+
if (!this._loaded) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
// Make the popover visible
|
|
77
|
+
this._popover.setAttribute('data-show', '');
|
|
78
|
+
// Enable the event listeners
|
|
79
|
+
this._popper.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [
|
|
80
|
+
...options.modifiers,
|
|
81
|
+
{ name: 'eventListeners', enabled: true },
|
|
82
|
+
] })));
|
|
83
|
+
// Update its position
|
|
84
|
+
this._popper.update();
|
|
85
|
+
}
|
|
86
|
+
_hide() {
|
|
87
|
+
if (!this._loaded) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
// Hide the popover
|
|
91
|
+
this._popover.removeAttribute('data-show');
|
|
92
|
+
// Disable the event listeners
|
|
93
|
+
this._popper.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [
|
|
94
|
+
...options.modifiers,
|
|
95
|
+
{ name: 'eventListeners', enabled: false },
|
|
96
|
+
] })));
|
|
97
|
+
}
|
|
98
|
+
_load(popover) {
|
|
99
|
+
this._popover = popover;
|
|
100
|
+
if (popover) {
|
|
101
|
+
this._popper = createPopper(this._el, popover);
|
|
102
|
+
this._setOptions();
|
|
103
|
+
this._loaded = true;
|
|
104
|
+
if (this.show) {
|
|
105
|
+
setTimeout(() => this._show(), 100);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
_setOptions() {
|
|
110
|
+
if (!this._popper) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
this._popper.setOptions({
|
|
114
|
+
placement: this.variant === 'error' ? 'bottom-start' : this.placement,
|
|
115
|
+
modifiers: [
|
|
116
|
+
{
|
|
117
|
+
name: 'offset',
|
|
118
|
+
options: {
|
|
119
|
+
offset: [0, 8],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'arrow',
|
|
124
|
+
options: {
|
|
125
|
+
padding: 4,
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
get _el() { return this; }
|
|
132
|
+
static get style() { return tooltipComponentCss; }
|
|
133
|
+
}, [1, "p-tooltip", {
|
|
134
|
+
"variant": [1],
|
|
135
|
+
"popover": [8],
|
|
136
|
+
"placement": [1],
|
|
137
|
+
"show": [4],
|
|
138
|
+
"canManuallyClose": [4, "can-manually-close"]
|
|
139
|
+
}, [[2, "click", "clickHandler"], [6, "click", "documentClickHandler"], [1, "mouseenter", "mouseEnterHandler"], [0, "focus", "mouseEnterHandler"], [1, "mouseleave", "mouseLeaveHandler"], [0, "blur", "mouseLeaveHandler"]]]);
|
|
140
|
+
function defineCustomElement() {
|
|
141
|
+
if (typeof customElements === "undefined") {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
const components = ["p-tooltip"];
|
|
145
|
+
components.forEach(tagName => { switch (tagName) {
|
|
146
|
+
case "p-tooltip":
|
|
147
|
+
if (!customElements.get(tagName)) {
|
|
148
|
+
customElements.define(tagName, Tooltip);
|
|
149
|
+
}
|
|
150
|
+
break;
|
|
151
|
+
} });
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export { Tooltip as T, defineCustomElement as d };
|
|
@@ -32,7 +32,7 @@ const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
|
32
32
|
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
33
33
|
if (listeners) {
|
|
34
34
|
listeners.map(([flags, name, method]) => {
|
|
35
|
-
const target = elm;
|
|
35
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
36
36
|
const handler = hostListenerProxy(hostRef, method);
|
|
37
37
|
const opts = hostListenerOpts(flags);
|
|
38
38
|
plt.ael(target, name, handler, opts);
|
|
@@ -56,6 +56,11 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
56
56
|
consoleError(e);
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
+
const getHostListenerTarget = (elm, flags) => {
|
|
60
|
+
if (flags & 4 /* TargetDocument */)
|
|
61
|
+
return doc;
|
|
62
|
+
return elm;
|
|
63
|
+
};
|
|
59
64
|
// prettier-ignore
|
|
60
65
|
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
61
66
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
@@ -281,7 +286,7 @@ const convertToPrivate = (node) => {
|
|
|
281
286
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
282
287
|
if (oldValue !== newValue) {
|
|
283
288
|
let isProp = isMemberInElement(elm, memberName);
|
|
284
|
-
memberName.toLowerCase();
|
|
289
|
+
let ln = memberName.toLowerCase();
|
|
285
290
|
if (memberName === 'class') {
|
|
286
291
|
const classList = elm.classList;
|
|
287
292
|
const oldClasses = parseClassList(oldValue);
|
|
@@ -295,6 +300,45 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
295
300
|
newValue(elm);
|
|
296
301
|
}
|
|
297
302
|
}
|
|
303
|
+
else if ((!isProp ) &&
|
|
304
|
+
memberName[0] === 'o' &&
|
|
305
|
+
memberName[1] === 'n') {
|
|
306
|
+
// Event Handlers
|
|
307
|
+
// so if the member name starts with "on" and the 3rd characters is
|
|
308
|
+
// a capital letter, and it's not already a member on the element,
|
|
309
|
+
// then we're assuming it's an event listener
|
|
310
|
+
if (memberName[2] === '-') {
|
|
311
|
+
// on- prefixed events
|
|
312
|
+
// allows to be explicit about the dom event to listen without any magic
|
|
313
|
+
// under the hood:
|
|
314
|
+
// <my-cmp on-click> // listens for "click"
|
|
315
|
+
// <my-cmp on-Click> // listens for "Click"
|
|
316
|
+
// <my-cmp on-ionChange> // listens for "ionChange"
|
|
317
|
+
// <my-cmp on-EVENTS> // listens for "EVENTS"
|
|
318
|
+
memberName = memberName.slice(3);
|
|
319
|
+
}
|
|
320
|
+
else if (isMemberInElement(win, ln)) {
|
|
321
|
+
// standard event
|
|
322
|
+
// the JSX attribute could have been "onMouseOver" and the
|
|
323
|
+
// member name "onmouseover" is on the window's prototype
|
|
324
|
+
// so let's add the listener "mouseover", which is all lowercased
|
|
325
|
+
memberName = ln.slice(2);
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
// custom event
|
|
329
|
+
// the JSX attribute could have been "onMyCustomEvent"
|
|
330
|
+
// so let's trim off the "on" prefix and lowercase the first character
|
|
331
|
+
// and add the listener "myCustomEvent"
|
|
332
|
+
// except for the first character, we keep the event name case
|
|
333
|
+
memberName = ln[2] + memberName.slice(3);
|
|
334
|
+
}
|
|
335
|
+
if (oldValue) {
|
|
336
|
+
plt.rel(elm, memberName, oldValue, false);
|
|
337
|
+
}
|
|
338
|
+
if (newValue) {
|
|
339
|
+
plt.ael(elm, memberName, newValue, false);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
298
342
|
else {
|
|
299
343
|
// Set property if it exists and it's not a SVG
|
|
300
344
|
const isComplex = isComplexType(newValue);
|
|
@@ -780,6 +824,10 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
780
824
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
781
825
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
782
826
|
hostTagName = hostElm.tagName;
|
|
827
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
828
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
829
|
+
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
830
|
+
}
|
|
783
831
|
rootVnode.$tag$ = null;
|
|
784
832
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
785
833
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -930,6 +978,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
930
978
|
hostRef.$queuedListeners$ = null;
|
|
931
979
|
}
|
|
932
980
|
}
|
|
981
|
+
{
|
|
982
|
+
promise = safeCall(instance, 'componentWillLoad');
|
|
983
|
+
}
|
|
933
984
|
}
|
|
934
985
|
{
|
|
935
986
|
promise = then(promise, () => safeCall(instance, 'componentWillRender'));
|
|
@@ -1110,6 +1161,7 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
|
|
|
1110
1161
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1111
1162
|
// check our new property value against our internal value
|
|
1112
1163
|
const hostRef = getHostRef(ref);
|
|
1164
|
+
const elm = hostRef.$hostElement$ ;
|
|
1113
1165
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1114
1166
|
const flags = hostRef.$flags$;
|
|
1115
1167
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -1122,6 +1174,22 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1122
1174
|
// set our new value!
|
|
1123
1175
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1124
1176
|
if (instance) {
|
|
1177
|
+
// get an array of method names of watch functions to call
|
|
1178
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1179
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1180
|
+
if (watchMethods) {
|
|
1181
|
+
// this instance is watching for when this property changed
|
|
1182
|
+
watchMethods.map((watchMethodName) => {
|
|
1183
|
+
try {
|
|
1184
|
+
// fire off each of the watch methods that are watching this property
|
|
1185
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1186
|
+
}
|
|
1187
|
+
catch (e) {
|
|
1188
|
+
consoleError(e, elm);
|
|
1189
|
+
}
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1125
1193
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1126
1194
|
if (instance.componentShouldUpdate) {
|
|
1127
1195
|
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
@@ -1139,6 +1207,9 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1139
1207
|
};
|
|
1140
1208
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1141
1209
|
if (cmpMeta.$members$) {
|
|
1210
|
+
if (Cstr.watchers) {
|
|
1211
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1212
|
+
}
|
|
1142
1213
|
// It's better to have a const than two Object.entries()
|
|
1143
1214
|
const members = Object.entries(cmpMeta.$members$);
|
|
1144
1215
|
const prototype = Cstr.prototype;
|
|
@@ -1220,6 +1291,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1220
1291
|
.map(([propName, m]) => {
|
|
1221
1292
|
const attrName = m[1] || propName;
|
|
1222
1293
|
attrNameToPropName.set(attrName, propName);
|
|
1294
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
|
1295
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1296
|
+
}
|
|
1223
1297
|
return attrName;
|
|
1224
1298
|
});
|
|
1225
1299
|
}
|
|
@@ -1243,6 +1317,12 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1243
1317
|
endLoad();
|
|
1244
1318
|
}
|
|
1245
1319
|
if (!Cstr.isProxied) {
|
|
1320
|
+
// we've never proxied this Constructor before
|
|
1321
|
+
// let's add the getters/setters to its prototype before
|
|
1322
|
+
// the first time we create an instance of the implementation
|
|
1323
|
+
{
|
|
1324
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1325
|
+
}
|
|
1246
1326
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1247
1327
|
Cstr.isProxied = true;
|
|
1248
1328
|
}
|
|
@@ -1266,6 +1346,9 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1266
1346
|
{
|
|
1267
1347
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1268
1348
|
}
|
|
1349
|
+
{
|
|
1350
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1351
|
+
}
|
|
1269
1352
|
endNewInstance();
|
|
1270
1353
|
}
|
|
1271
1354
|
if (Cstr.style) {
|
|
@@ -1400,6 +1483,12 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1400
1483
|
{
|
|
1401
1484
|
cmpMeta.$listeners$ = compactMeta[3];
|
|
1402
1485
|
}
|
|
1486
|
+
{
|
|
1487
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1488
|
+
}
|
|
1489
|
+
{
|
|
1490
|
+
cmpMeta.$watchers$ = {};
|
|
1491
|
+
}
|
|
1403
1492
|
const tagName = cmpMeta.$tagName$;
|
|
1404
1493
|
const HostElement = class extends HTMLElement {
|
|
1405
1494
|
// StencilLazyHost
|
|
@@ -1494,7 +1583,128 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1494
1583
|
if (module) {
|
|
1495
1584
|
return module[exportName];
|
|
1496
1585
|
}
|
|
1497
|
-
|
|
1586
|
+
|
|
1587
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
1588
|
+
const processMod = importedModule => {
|
|
1589
|
+
cmpModules.set(bundleId, importedModule);
|
|
1590
|
+
return importedModule[exportName];
|
|
1591
|
+
}
|
|
1592
|
+
switch(bundleId) {
|
|
1593
|
+
|
|
1594
|
+
case 'p-button_3':
|
|
1595
|
+
return import(
|
|
1596
|
+
/* webpackMode: "lazy" */
|
|
1597
|
+
'./p-button_3.entry.js').then(processMod, consoleError);
|
|
1598
|
+
case 'p-avatar-group':
|
|
1599
|
+
return import(
|
|
1600
|
+
/* webpackMode: "lazy" */
|
|
1601
|
+
'./p-avatar-group.entry.js').then(processMod, consoleError);
|
|
1602
|
+
case 'p-card-body':
|
|
1603
|
+
return import(
|
|
1604
|
+
/* webpackMode: "lazy" */
|
|
1605
|
+
'./p-card-body.entry.js').then(processMod, consoleError);
|
|
1606
|
+
case 'p-card-container':
|
|
1607
|
+
return import(
|
|
1608
|
+
/* webpackMode: "lazy" */
|
|
1609
|
+
'./p-card-container.entry.js').then(processMod, consoleError);
|
|
1610
|
+
case 'p-card-header':
|
|
1611
|
+
return import(
|
|
1612
|
+
/* webpackMode: "lazy" */
|
|
1613
|
+
'./p-card-header.entry.js').then(processMod, consoleError);
|
|
1614
|
+
case 'p-dropdown':
|
|
1615
|
+
return import(
|
|
1616
|
+
/* webpackMode: "lazy" */
|
|
1617
|
+
'./p-dropdown.entry.js').then(processMod, consoleError);
|
|
1618
|
+
case 'p-dropdown-menu-item':
|
|
1619
|
+
return import(
|
|
1620
|
+
/* webpackMode: "lazy" */
|
|
1621
|
+
'./p-dropdown-menu-item.entry.js').then(processMod, consoleError);
|
|
1622
|
+
case 'p-helper':
|
|
1623
|
+
return import(
|
|
1624
|
+
/* webpackMode: "lazy" */
|
|
1625
|
+
'./p-helper.entry.js').then(processMod, consoleError);
|
|
1626
|
+
case 'p-illustration':
|
|
1627
|
+
return import(
|
|
1628
|
+
/* webpackMode: "lazy" */
|
|
1629
|
+
'./p-illustration.entry.js').then(processMod, consoleError);
|
|
1630
|
+
case 'p-info-panel':
|
|
1631
|
+
return import(
|
|
1632
|
+
/* webpackMode: "lazy" */
|
|
1633
|
+
'./p-info-panel.entry.js').then(processMod, consoleError);
|
|
1634
|
+
case 'p-modal':
|
|
1635
|
+
return import(
|
|
1636
|
+
/* webpackMode: "lazy" */
|
|
1637
|
+
'./p-modal.entry.js').then(processMod, consoleError);
|
|
1638
|
+
case 'p-navigation-item':
|
|
1639
|
+
return import(
|
|
1640
|
+
/* webpackMode: "lazy" */
|
|
1641
|
+
'./p-navigation-item.entry.js').then(processMod, consoleError);
|
|
1642
|
+
case 'p-pagination':
|
|
1643
|
+
return import(
|
|
1644
|
+
/* webpackMode: "lazy" */
|
|
1645
|
+
'./p-pagination.entry.js').then(processMod, consoleError);
|
|
1646
|
+
case 'p-profile':
|
|
1647
|
+
return import(
|
|
1648
|
+
/* webpackMode: "lazy" */
|
|
1649
|
+
'./p-profile.entry.js').then(processMod, consoleError);
|
|
1650
|
+
case 'p-segment-container':
|
|
1651
|
+
return import(
|
|
1652
|
+
/* webpackMode: "lazy" */
|
|
1653
|
+
'./p-segment-container.entry.js').then(processMod, consoleError);
|
|
1654
|
+
case 'p-segment-item':
|
|
1655
|
+
return import(
|
|
1656
|
+
/* webpackMode: "lazy" */
|
|
1657
|
+
'./p-segment-item.entry.js').then(processMod, consoleError);
|
|
1658
|
+
case 'p-status':
|
|
1659
|
+
return import(
|
|
1660
|
+
/* webpackMode: "lazy" */
|
|
1661
|
+
'./p-status.entry.js').then(processMod, consoleError);
|
|
1662
|
+
case 'p-stepper':
|
|
1663
|
+
return import(
|
|
1664
|
+
/* webpackMode: "lazy" */
|
|
1665
|
+
'./p-stepper.entry.js').then(processMod, consoleError);
|
|
1666
|
+
case 'p-tab-group':
|
|
1667
|
+
return import(
|
|
1668
|
+
/* webpackMode: "lazy" */
|
|
1669
|
+
'./p-tab-group.entry.js').then(processMod, consoleError);
|
|
1670
|
+
case 'p-tab-item':
|
|
1671
|
+
return import(
|
|
1672
|
+
/* webpackMode: "lazy" */
|
|
1673
|
+
'./p-tab-item.entry.js').then(processMod, consoleError);
|
|
1674
|
+
case 'p-avatar':
|
|
1675
|
+
return import(
|
|
1676
|
+
/* webpackMode: "lazy" */
|
|
1677
|
+
'./p-avatar.entry.js').then(processMod, consoleError);
|
|
1678
|
+
case 'p-counter':
|
|
1679
|
+
return import(
|
|
1680
|
+
/* webpackMode: "lazy" */
|
|
1681
|
+
'./p-counter.entry.js').then(processMod, consoleError);
|
|
1682
|
+
case 'p-dropdown-menu-container':
|
|
1683
|
+
return import(
|
|
1684
|
+
/* webpackMode: "lazy" */
|
|
1685
|
+
'./p-dropdown-menu-container.entry.js').then(processMod, consoleError);
|
|
1686
|
+
case 'p-modal-backdrop_5':
|
|
1687
|
+
return import(
|
|
1688
|
+
/* webpackMode: "lazy" */
|
|
1689
|
+
'./p-modal-backdrop_5.entry.js').then(processMod, consoleError);
|
|
1690
|
+
case 'p-pagination-item':
|
|
1691
|
+
return import(
|
|
1692
|
+
/* webpackMode: "lazy" */
|
|
1693
|
+
'./p-pagination-item.entry.js').then(processMod, consoleError);
|
|
1694
|
+
case 'p-stepper-line_2':
|
|
1695
|
+
return import(
|
|
1696
|
+
/* webpackMode: "lazy" */
|
|
1697
|
+
'./p-stepper-line_2.entry.js').then(processMod, consoleError);
|
|
1698
|
+
case 'p-tooltip':
|
|
1699
|
+
return import(
|
|
1700
|
+
/* webpackMode: "lazy" */
|
|
1701
|
+
'./p-tooltip.entry.js').then(processMod, consoleError);
|
|
1702
|
+
case 'p-divider':
|
|
1703
|
+
return import(
|
|
1704
|
+
/* webpackMode: "lazy" */
|
|
1705
|
+
'./p-divider.entry.js').then(processMod, consoleError);
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1498
1708
|
return import(
|
|
1499
1709
|
/* @vite-ignore */
|
|
1500
1710
|
/* webpackInclude: /\.entry\.js$/ */
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-fff70567.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -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-illustration",[[0,"p-illustration",{"variant":[1]}]]],["p-tooltip",[[1,"p-tooltip",{"
|
|
13
|
+
return bootstrapLazy([["p-modal",[[1,"p-modal",{"size":[1],"variant":[1],"header":[1],"show":[4]}]]],["p-stepper",[[1,"p-stepper",{"activeStep":[2,"active-step"],"direction":[513]}]]],["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-dropdown",[[1,"p-dropdown",{"placement":[1],"show":[4],"insideClick":[4,"inside-click"],"disableTriggerClick":[4,"disable-trigger-click"]},[[6,"click","documentClickHandler"]]]]],["p-helper",[[1,"p-helper"]]],["p-info-panel",[[1,"p-info-panel",{"variant":[1],"header":[1],"content":[1],"closeable":[4]}]]],["p-profile",[[1,"p-profile"]]],["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":[4,"inherit-text"]}]]],["p-card-container",[[1,"p-card-container",{"hoverable":[4]}]]],["p-dropdown-menu-item",[[1,"p-dropdown-menu-item",{"active":[4]}]]],["p-illustration",[[0,"p-illustration",{"variant":[1]}]]],["p-segment-container",[[4,"p-segment-container"]]],["p-tab-item",[[1,"p-tab-item",{"active":[4]}]]],["p-avatar",[[0,"p-avatar",{"variant":[513],"size":[513],"defaultImage":[1,"default-image"],"src":[1],"_src":[32]}]]],["p-counter",[[1,"p-counter"]]],["p-dropdown-menu-container",[[4,"p-dropdown-menu-container"]]],["p-pagination-item",[[1,"p-pagination-item",{"active":[4]}]]],["p-tooltip",[[1,"p-tooltip",{"variant":[1],"popover":[8],"placement":[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-divider",[[1,"p-divider"]]],["p-modal-backdrop_5",[[1,"p-modal-footer"],[1,"p-modal-backdrop"],[1,"p-modal-body",{"variant":[1]}],[4,"p-modal-container",{"size":[1]}],[1,"p-modal-header"]]],["p-button_3",[[4,"p-button",{"variant":[1],"href":[1],"target":[1],"size":[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-stepper-line_2",[[1,"p-stepper-step",{"align":[513],"direction":[513],"finished":[516],"active":[516]}],[1,"p-stepper-line",{"active":[516],"direction":[513]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-fff70567.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}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,34 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-fff70567.js';
|
|
2
|
+
|
|
3
|
+
const avatarComponentCss = ".static{position:static!important}.flex{display:flex!important}.w-10{width:2.5rem!important}.w-20{width:5rem!important}.w-28{width:7rem!important}.rounded{border-radius:.25rem!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}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:2.5rem;width:2.5rem}p-avatar[size=medium]>img{height:5rem;width:5rem}p-avatar[size=large]>img{height:7rem;width:7rem}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%}";
|
|
4
|
+
|
|
5
|
+
const Avatar = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* The variant of the avatar
|
|
10
|
+
*/
|
|
11
|
+
this.variant = 'user';
|
|
12
|
+
/**
|
|
13
|
+
* The size of the avatar
|
|
14
|
+
*/
|
|
15
|
+
this.size = 'medium';
|
|
16
|
+
this._src = this.src;
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
if (!this._src) {
|
|
20
|
+
this._setDefaultLink();
|
|
21
|
+
}
|
|
22
|
+
return (h(Host, { class: "p-avatar" }, h("img", { src: this._src, onError: () => this._setDefaultLink() })));
|
|
23
|
+
}
|
|
24
|
+
_setDefaultLink() {
|
|
25
|
+
var _a;
|
|
26
|
+
this._src =
|
|
27
|
+
(_a = this.defaultImage) !== null && _a !== void 0 ? _a : (this.variant === 'user'
|
|
28
|
+
? '/assets/images/avatar/user-default.svg'
|
|
29
|
+
: '/assets/images/avatar/company-default.svg');
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
Avatar.style = avatarComponentCss;
|
|
33
|
+
|
|
34
|
+
export { Avatar as p_avatar };
|