@paperless/core 2.0.1-beta.2 → 2.0.1-beta.21
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 +300 -0
- package/dist/assets/i18n/field-container.i18n.en.json +3 -0
- package/dist/assets/i18n/field-container.i18n.nl.json +3 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/build/p-020a97e3.entry.js +2 -0
- package/dist/build/p-020a97e3.entry.js.map +1 -0
- package/dist/build/p-036bb6f4.entry.js +2 -0
- package/dist/build/p-036bb6f4.entry.js.map +1 -0
- package/dist/build/p-0413fcd0.entry.js +2 -0
- package/dist/build/p-0413fcd0.entry.js.map +1 -0
- package/dist/build/p-0bbd4d1c.entry.js +2 -0
- package/dist/build/p-0bbd4d1c.entry.js.map +1 -0
- package/dist/build/p-0c040d86.entry.js +2 -0
- package/dist/build/p-0c040d86.entry.js.map +1 -0
- package/dist/build/p-0e1935d5.entry.js +2 -0
- package/dist/build/p-0e1935d5.entry.js.map +1 -0
- package/dist/build/p-14e63599.entry.js +2 -0
- package/dist/build/p-14e63599.entry.js.map +1 -0
- package/dist/build/p-170077a4.js +2 -0
- package/dist/build/p-170077a4.js.map +1 -0
- package/dist/build/p-1b5ec2b1.entry.js +2 -0
- package/dist/build/p-1b5ec2b1.entry.js.map +1 -0
- package/dist/build/p-1d80e042.js +2 -0
- package/dist/build/p-1d80e042.js.map +1 -0
- package/dist/build/p-1ed4a75e.entry.js +3 -0
- package/dist/build/p-1ed4a75e.entry.js.map +1 -0
- package/dist/build/p-1f464c93.entry.js +2 -0
- package/dist/build/p-1f464c93.entry.js.map +1 -0
- package/dist/build/p-214a2978.entry.js +2 -0
- package/dist/build/p-214a2978.entry.js.map +1 -0
- package/dist/build/p-291573c4.entry.js +2 -0
- package/dist/build/p-291573c4.entry.js.map +1 -0
- package/dist/build/p-2bd123f4.entry.js +2 -0
- package/dist/build/p-2bd123f4.entry.js.map +1 -0
- package/dist/build/p-3a428a06.entry.js +2 -0
- package/dist/build/p-3a428a06.entry.js.map +1 -0
- package/dist/build/p-3b5242e9.entry.js +2 -0
- package/dist/build/p-3b5242e9.entry.js.map +1 -0
- package/dist/build/p-3b8209bc.js +2 -0
- package/dist/build/p-3b8209bc.js.map +1 -0
- package/dist/build/p-3e393301.entry.js +2 -0
- package/dist/build/p-3e393301.entry.js.map +1 -0
- package/dist/build/p-45ded510.js +3 -0
- package/dist/build/p-45ded510.js.map +1 -0
- package/dist/build/p-46362798.entry.js +2 -0
- package/dist/build/p-46362798.entry.js.map +1 -0
- package/dist/build/p-48efb6e4.entry.js +2 -0
- package/dist/build/p-48efb6e4.entry.js.map +1 -0
- package/dist/build/p-50134fa1.entry.js +2 -0
- package/dist/build/p-50134fa1.entry.js.map +1 -0
- package/dist/build/p-562029b4.entry.js +2 -0
- package/dist/build/p-562029b4.entry.js.map +1 -0
- package/dist/build/p-62843ca0.entry.js +2 -0
- package/dist/build/p-62843ca0.entry.js.map +1 -0
- package/dist/build/p-62b14ab7.entry.js +2 -0
- package/dist/build/p-62b14ab7.entry.js.map +1 -0
- package/dist/build/p-638d2138.entry.js +2 -0
- package/dist/build/p-638d2138.entry.js.map +1 -0
- package/dist/build/p-65d9a61f.entry.js +2 -0
- package/dist/build/p-65d9a61f.entry.js.map +1 -0
- package/dist/build/p-6d8852ca.entry.js +2 -0
- package/dist/build/p-6d8852ca.entry.js.map +1 -0
- package/dist/build/p-7aecc5f3.entry.js +2 -0
- package/dist/build/p-7aecc5f3.entry.js.map +1 -0
- package/dist/build/p-83b79ff9.js +2 -0
- package/dist/build/p-83b79ff9.js.map +1 -0
- package/dist/build/p-889eb696.js +2 -0
- package/dist/build/p-8a1a6e56.js.map +1 -1
- package/dist/build/p-8a5b8196.js.map +1 -1
- package/dist/build/p-958f3c09.entry.js +2 -0
- package/dist/build/p-958f3c09.entry.js.map +1 -0
- package/dist/build/p-9a613c80.entry.js +2 -0
- package/dist/build/p-9a613c80.entry.js.map +1 -0
- package/dist/build/p-9ab34fee.js +2 -0
- package/dist/build/p-9ab34fee.js.map +1 -0
- package/dist/build/p-9cac28b6.js +2 -0
- package/dist/build/p-9cac28b6.js.map +1 -0
- package/dist/build/p-a56474ea.entry.js +2 -0
- package/dist/build/p-a56474ea.entry.js.map +1 -0
- package/dist/build/p-a5934232.entry.js +2 -0
- package/dist/build/p-a5934232.entry.js.map +1 -0
- package/dist/build/p-a6ccc70e.entry.js +2 -0
- package/dist/build/p-a6ccc70e.entry.js.map +1 -0
- package/dist/build/p-adcded4d.entry.js +2 -0
- package/dist/build/p-adcded4d.entry.js.map +1 -0
- package/dist/build/p-af468e9f.entry.js +2 -0
- package/dist/build/p-af468e9f.entry.js.map +1 -0
- package/dist/build/p-b082e123.js +2 -0
- package/dist/build/p-b082e123.js.map +1 -0
- package/dist/build/p-bf261165.entry.js +2 -0
- package/dist/build/p-bf261165.entry.js.map +1 -0
- package/dist/build/p-c3ba61ac.entry.js +2 -0
- package/dist/build/p-c3ba61ac.entry.js.map +1 -0
- package/dist/build/p-c605a1c1.js +2 -0
- package/dist/build/p-c605a1c1.js.map +1 -0
- package/dist/build/p-c8e79e30.entry.js +2 -0
- package/dist/build/p-c8e79e30.entry.js.map +1 -0
- package/dist/build/p-cc3445fc.entry.js +2 -0
- package/dist/build/p-cc3445fc.entry.js.map +1 -0
- package/dist/build/p-cfe6ec9a.entry.js +2 -0
- package/dist/build/p-cfe6ec9a.entry.js.map +1 -0
- package/dist/build/p-d044f441.entry.js +2 -0
- package/dist/build/p-d044f441.entry.js.map +1 -0
- package/dist/build/p-d3878a79.entry.js +2 -0
- package/dist/build/p-d3878a79.entry.js.map +1 -0
- package/dist/build/p-d63066b0.css +1 -0
- package/dist/build/p-d6ca5bce.entry.js +2 -0
- package/dist/build/p-d6ca5bce.entry.js.map +1 -0
- package/dist/build/p-d70b3539.entry.js +2 -0
- package/dist/build/p-d70b3539.entry.js.map +1 -0
- package/dist/build/p-d8eb3b7b.entry.js +2 -0
- package/dist/build/p-d8eb3b7b.entry.js.map +1 -0
- package/dist/build/p-d9d8c17c.entry.js +2 -0
- package/dist/build/p-d9d8c17c.entry.js.map +1 -0
- package/dist/build/p-d9fae6bd.entry.js +2 -0
- package/dist/build/p-d9fae6bd.entry.js.map +1 -0
- package/dist/build/p-da7b6f2c.js.map +1 -1
- package/dist/build/p-de74e07c.js +2 -0
- package/dist/build/p-de74e07c.js.map +1 -0
- package/dist/build/p-dfce711d.entry.js +2 -0
- package/dist/build/p-dfce711d.entry.js.map +1 -0
- package/dist/build/p-e1255160.js +2 -0
- package/dist/build/p-e1255160.js.map +1 -0
- package/dist/build/p-e15305dc.entry.js +2 -0
- package/dist/build/p-e15305dc.entry.js.map +1 -0
- package/dist/build/p-ea577bae.entry.js +2 -0
- package/dist/build/p-ea577bae.entry.js.map +1 -0
- package/dist/build/p-eec56c71.entry.js +2 -0
- package/dist/build/p-eec56c71.entry.js.map +1 -0
- package/dist/build/p-f26a3049.js +2 -0
- package/dist/build/p-f26a3049.js.map +1 -0
- package/dist/build/p-f3d0ea94.entry.js +2 -0
- package/dist/build/p-f3d0ea94.entry.js.map +1 -0
- package/dist/build/p-f40f89a7.entry.js +2 -0
- package/dist/build/p-f40f89a7.entry.js.map +1 -0
- package/dist/build/p-fd53acd3.entry.js +2 -0
- package/dist/build/p-fd53acd3.entry.js.map +1 -0
- package/dist/build/p-fdf020c9.entry.js +2 -0
- package/dist/build/p-fdf020c9.entry.js.map +1 -0
- package/dist/build/p-fe66cde8.js +2 -0
- package/dist/build/p-fe66cde8.js.map +1 -0
- package/dist/build/paperless.css +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/build/paperless.js +24 -24
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/child-of-8fbd3ebe.js +11 -0
- package/dist/cjs/child-of-8fbd3ebe.js.map +1 -0
- package/dist/cjs/cn-b70f9965.js +2818 -0
- package/dist/cjs/cn-b70f9965.js.map +1 -0
- package/dist/cjs/floating-ui.dom.esm-ef421825.js +2072 -0
- package/dist/cjs/floating-ui.dom.esm-ef421825.js.map +1 -0
- package/dist/cjs/iban-ab94c561.js +16 -0
- package/dist/cjs/iban-ab94c561.js.map +1 -0
- package/dist/cjs/icons-10aa18f0.js +1549 -0
- package/dist/cjs/icons-10aa18f0.js.map +1 -0
- package/dist/cjs/icons-deprecated-4c476f5a.js +1123 -0
- package/dist/cjs/icons-deprecated-4c476f5a.js.map +1 -0
- package/dist/cjs/index-08db8a87.js +2333 -0
- package/dist/cjs/index-08db8a87.js.map +1 -0
- package/dist/cjs/index-3f9bbc0c.js +2359 -0
- package/dist/cjs/index-3f9bbc0c.js.map +1 -0
- package/dist/cjs/index.cjs.js +484 -500
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/localization-3a0a71db.js +61 -0
- package/dist/cjs/localization-3a0a71db.js.map +1 -0
- package/dist/cjs/nonce-0feefc04.js +17 -0
- package/dist/cjs/nonce-0feefc04.js.map +1 -0
- package/dist/cjs/object-get-by-path-49caea95.js +130 -0
- package/dist/cjs/object-get-by-path-49caea95.js.map +1 -0
- package/dist/cjs/p-accordion.cjs.entry.js +26 -21
- package/dist/cjs/p-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +28 -20
- package/dist/cjs/p-attachment.cjs.entry.js.map +1 -1
- package/dist/cjs/p-avatar-group.cjs.entry.js +10 -9
- package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +46 -45
- package/dist/cjs/p-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js +73 -68
- package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -1
- package/dist/cjs/p-badge.cjs.entry.js +9 -8
- package/dist/cjs/p-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/p-button-group.cjs.entry.js +33 -33
- package/dist/cjs/p-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +404 -322
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +351 -297
- package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-card-body.cjs.entry.js +10 -9
- package/dist/cjs/p-card-body.cjs.entry.js.map +1 -1
- package/dist/cjs/p-card-container.cjs.entry.js +11 -10
- package/dist/cjs/p-card-container.cjs.entry.js.map +1 -1
- package/dist/cjs/p-card-header.cjs.entry.js +21 -21
- package/dist/cjs/p-card-header.cjs.entry.js.map +1 -1
- package/dist/cjs/p-checkbox_3.cjs.entry.js +444 -0
- package/dist/cjs/p-checkbox_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-content-slider.cjs.entry.js +205 -199
- package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/p-counter.cjs.entry.js +11 -10
- package/dist/cjs/p-counter.cjs.entry.js.map +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js +404 -265
- package/dist/cjs/p-cropper.cjs.entry.js.map +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +283 -306
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/p-divider.cjs.entry.js +12 -12
- package/dist/cjs/p-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +33 -26
- package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-drawer.cjs.entry.js +66 -58
- package/dist/cjs/p-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +48 -47
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -1
- package/dist/cjs/p-field_3.cjs.entry.js +316 -0
- package/dist/cjs/p-field_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +263 -211
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
- package/dist/cjs/p-iban-icon.cjs.entry.js +33 -34
- package/dist/cjs/p-iban-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/p-icon-deprecated.cjs.entry.js +49 -48
- package/dist/cjs/p-icon-deprecated.cjs.entry.js.map +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +23 -18
- package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/p-input-error.cjs.entry.js +21 -0
- package/dist/cjs/p-input-error.cjs.entry.js.map +1 -0
- package/dist/cjs/p-label_3.cjs.entry.js +50 -47
- package/dist/cjs/p-label_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-layout.cjs.entry.js +10 -9
- package/dist/cjs/p-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +51 -43
- package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -1
- package/dist/cjs/p-modal.cjs.entry.js +59 -52
- package/dist/cjs/p-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +45 -45
- package/dist/cjs/p-navbar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +45 -40
- package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navigation-section.cjs.entry.js +23 -0
- package/dist/cjs/p-navigation-section.cjs.entry.js.map +1 -0
- package/dist/cjs/p-navigation-title.cjs.entry.js +9 -8
- package/dist/cjs/p-navigation-title.cjs.entry.js.map +1 -1
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +203 -195
- package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-portal_2.cjs.entry.js +233 -0
- package/dist/cjs/p-portal_2.cjs.entry.js.map +1 -0
- package/dist/cjs/p-profile.cjs.entry.js +48 -47
- package/dist/cjs/p-profile.cjs.entry.js.map +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +102 -0
- package/dist/cjs/p-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/p-select.cjs.entry.js +418 -370
- package/dist/cjs/p-select.cjs.entry.js.map +1 -1
- package/dist/cjs/p-slider-indicator.cjs.entry.js +10 -9
- package/dist/cjs/p-slider-indicator.cjs.entry.js.map +1 -1
- package/dist/cjs/p-status.cjs.entry.js +37 -36
- package/dist/cjs/p-status.cjs.entry.js.map +1 -1
- package/dist/cjs/p-stepper-item.cjs.entry.js +14 -13
- package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -1
- package/dist/cjs/p-stepper-line.cjs.entry.js +11 -10
- package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +91 -90
- package/dist/cjs/p-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/p-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/p-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +10 -9
- package/dist/cjs/p-tab-item.cjs.entry.js.map +1 -1
- package/dist/cjs/p-table-column.cjs.entry.js +24 -20
- package/dist/cjs/p-table-column.cjs.entry.js.map +1 -1
- package/dist/cjs/p-table-row-action.cjs.entry.js +17 -17
- package/dist/cjs/p-table-row-action.cjs.entry.js.map +1 -1
- package/dist/cjs/p-table.cjs.entry.js +583 -542
- package/dist/cjs/p-table.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +10 -9
- package/dist/cjs/p-toast-container.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +25 -21
- package/dist/cjs/p-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +148 -0
- package/dist/cjs/p-toggle.cjs.entry.js.map +1 -0
- package/dist/cjs/paperless.cjs.js +13 -11
- package/dist/cjs/paperless.cjs.js.map +1 -1
- package/dist/cjs/screens-e5439aeb.js +67 -0
- package/dist/cjs/screens-e5439aeb.js.map +1 -0
- package/dist/collection/collection-manifest.json +9 -3
- package/dist/collection/components/atoms/avatar/avatar.component.css +1 -1
- package/dist/collection/components/atoms/avatar/avatar.component.js +142 -135
- package/dist/collection/components/atoms/avatar/avatar.component.js.map +1 -1
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +40 -38
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js.map +1 -1
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +217 -199
- package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -1
- package/dist/collection/components/atoms/badge/badge.component.js +14 -14
- package/dist/collection/components/atoms/badge/badge.component.js.map +1 -1
- package/dist/collection/components/atoms/card-body/card-body.component.js +41 -39
- package/dist/collection/components/atoms/card-body/card-body.component.js.map +1 -1
- package/dist/collection/components/atoms/card-container/card-container.component.js +63 -59
- package/dist/collection/components/atoms/card-container/card-container.component.js.map +1 -1
- package/dist/collection/components/atoms/card-header/card-header.component.js +75 -68
- package/dist/collection/components/atoms/card-header/card-header.component.js.map +1 -1
- package/dist/collection/components/atoms/checkbox/checkbox.component.css +1 -0
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +283 -0
- package/dist/collection/components/atoms/checkbox/checkbox.component.js.map +1 -0
- package/dist/collection/components/atoms/counter/counter.component.js +63 -59
- package/dist/collection/components/atoms/counter/counter.component.js.map +1 -1
- package/dist/collection/components/atoms/divider/divider.component.js +48 -43
- package/dist/collection/components/atoms/divider/divider.component.js.map +1 -1
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +42 -40
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js.map +1 -1
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +41 -39
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js.map +1 -1
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +68 -62
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +157 -147
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +286 -181
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.js +42 -40
- package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js +63 -59
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/helper/helper.component.css +1 -1
- package/dist/collection/components/atoms/helper/helper.component.js +74 -70
- package/dist/collection/components/atoms/helper/helper.component.js.map +1 -1
- package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +79 -76
- package/dist/collection/components/atoms/iban-icon/iban-icon.component.js.map +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +149 -141
- package/dist/collection/components/atoms/icon/icon.component.js.map +1 -1
- package/dist/collection/components/atoms/icon-deprecated/icon.component.js +161 -153
- package/dist/collection/components/atoms/icon-deprecated/icon.component.js.map +1 -1
- package/dist/collection/components/atoms/illustration/illustration.component.js +36 -34
- package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.js +134 -118
- package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -1
- package/dist/collection/components/atoms/label/label.component.js +204 -188
- package/dist/collection/components/atoms/label/label.component.js.map +1 -1
- package/dist/collection/components/atoms/layout/layout.component.js +42 -40
- package/dist/collection/components/atoms/layout/layout.component.js.map +1 -1
- package/dist/collection/components/atoms/loader/loader.component.js +156 -144
- package/dist/collection/components/atoms/loader/loader.component.js.map +1 -1
- package/dist/collection/components/atoms/modal-body/modal-body.component.js +105 -97
- package/dist/collection/components/atoms/modal-body/modal-body.component.js.map +1 -1
- package/dist/collection/components/atoms/modal-container/modal-container.component.js +68 -64
- package/dist/collection/components/atoms/modal-container/modal-container.component.js.map +1 -1
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +15 -15
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js.map +1 -1
- package/dist/collection/components/atoms/modal-header/modal-header.component.js +68 -62
- package/dist/collection/components/atoms/modal-header/modal-header.component.js.map +1 -1
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +14 -14
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js.map +1 -1
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +42 -40
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js.map +1 -1
- package/dist/collection/components/atoms/portal/portal.component.js +23 -0
- package/dist/collection/components/atoms/portal/portal.component.js.map +1 -0
- package/dist/collection/components/atoms/radio/radio.component.css +1 -0
- package/dist/collection/components/atoms/radio/radio.component.js +262 -0
- package/dist/collection/components/atoms/radio/radio.component.js.map +1 -0
- package/dist/collection/components/atoms/segment-container/segment-container.component.js +14 -14
- package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -1
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +175 -159
- package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -1
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +42 -40
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js.map +1 -1
- package/dist/collection/components/atoms/status/status.component.js +142 -134
- package/dist/collection/components/atoms/status/status.component.js.map +1 -1
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +126 -116
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js.map +1 -1
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +63 -59
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js.map +1 -1
- package/dist/collection/components/atoms/tab-group/tab-group.component.js +5 -5
- package/dist/collection/components/atoms/tab-group/tab-group.component.js.map +1 -1
- package/dist/collection/components/atoms/tab-item/tab-item.component.js +42 -40
- package/dist/collection/components/atoms/tab-item/tab-item.component.js.map +1 -1
- package/dist/collection/components/atoms/table-container/table-container.component.js +42 -40
- package/dist/collection/components/atoms/table-container/table-container.component.js.map +1 -1
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +42 -40
- package/dist/collection/components/atoms/toast-container/toast-container.component.js.map +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.css +1 -0
- package/dist/collection/components/atoms/toggle/toggle.component.js +321 -0
- package/dist/collection/components/atoms/toggle/toggle.component.js.map +1 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +448 -363
- package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
- package/dist/collection/components/helpers/table-column/table-column.component.js +228 -206
- package/dist/collection/components/helpers/table-column/table-column.component.js.map +1 -1
- package/dist/collection/components/helpers/table-row-action/table-row-action.component.js +239 -219
- package/dist/collection/components/helpers/table-row-action/table-row-action.component.js.map +1 -1
- package/dist/collection/components/molecules/accordion/accordion.component.js +133 -121
- package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -1
- package/dist/collection/components/molecules/attachment/attachment.component.js +149 -134
- package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -1
- package/dist/collection/components/molecules/button/button.component.css +1 -1
- package/dist/collection/components/molecules/button/button.component.js +774 -622
- package/dist/collection/components/molecules/button/button.component.js.map +1 -1
- package/dist/collection/components/molecules/button-group/button-group.component.js +70 -64
- package/dist/collection/components/molecules/button-group/button-group.component.js.map +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.css +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +577 -506
- package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -1
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +309 -292
- package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -1
- package/dist/collection/components/molecules/cropper/cropper.component.css +1 -1
- package/dist/collection/components/molecules/cropper/cropper.component.js +242 -228
- package/dist/collection/components/molecules/cropper/cropper.component.js.map +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +635 -582
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +520 -433
- package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -1
- package/dist/collection/components/molecules/field/field.component.css +1 -0
- package/dist/collection/components/molecules/field/field.component.js +775 -0
- package/dist/collection/components/molecules/field/field.component.js.map +1 -0
- package/dist/collection/components/molecules/field-container/field-container.component.css +1 -0
- package/dist/collection/components/molecules/field-container/field-container.component.js +259 -0
- package/dist/collection/components/molecules/field-container/field-container.component.js.map +1 -0
- package/dist/collection/components/molecules/input-error/input-error.component.js +58 -54
- package/dist/collection/components/molecules/input-error/input-error.component.js.map +1 -1
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -1
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +215 -160
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -1
- package/dist/collection/components/molecules/navigation-section/navigation-section.component.css +1 -0
- package/dist/collection/components/molecules/navigation-section/navigation-section.component.js +44 -0
- package/dist/collection/components/molecules/navigation-section/navigation-section.component.js.map +1 -0
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +223 -201
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js.map +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.js +265 -255
- package/dist/collection/components/molecules/pagination/pagination.component.js.map +1 -1
- package/dist/collection/components/molecules/profile/profile.component.css +1 -1
- package/dist/collection/components/molecules/profile/profile.component.js +97 -100
- package/dist/collection/components/molecules/profile/profile.component.js.map +1 -1
- package/dist/collection/components/molecules/select/select.component.css +1 -1
- package/dist/collection/components/molecules/select/select.component.js +1261 -1134
- package/dist/collection/components/molecules/select/select.component.js.map +1 -1
- package/dist/collection/components/molecules/stepper/stepper.component.js +175 -165
- package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -1
- package/dist/collection/components/molecules/table-cell/table-cell.component.js +246 -225
- package/dist/collection/components/molecules/table-cell/table-cell.component.js.map +1 -1
- package/dist/collection/components/molecules/table-footer/table-footer.component.js +299 -266
- package/dist/collection/components/molecules/table-footer/table-footer.component.js.map +1 -1
- package/dist/collection/components/molecules/table-header/table-header.component.js +515 -463
- package/dist/collection/components/molecules/table-header/table-header.component.js.map +1 -1
- package/dist/collection/components/molecules/table-row/table-row.component.js +65 -61
- package/dist/collection/components/molecules/table-row/table-row.component.js.map +1 -1
- package/dist/collection/components/molecules/toast/toast.component.js +212 -195
- package/dist/collection/components/molecules/toast/toast.component.js.map +1 -1
- package/dist/collection/components/organisms/drawer/drawer.component.js +275 -250
- package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -1
- package/dist/collection/components/organisms/modal/modal.component.js +314 -283
- package/dist/collection/components/organisms/modal/modal.component.js.map +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.css +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +72 -95
- package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -1
- package/dist/collection/components/organisms/table/table.component.css +1 -1
- package/dist/collection/components/organisms/table/table.component.js +1718 -1586
- package/dist/collection/components/organisms/table/table.component.js.map +1 -1
- package/dist/collection/tailwind/paperless.js +33 -33
- package/dist/collection/tailwind/paperless.js.map +1 -1
- package/dist/collection/tailwind/plugins/hover.js +20 -20
- package/dist/collection/tailwind/plugins/hover.js.map +1 -1
- package/dist/collection/tailwind/plugins/safe-area.js +85 -85
- package/dist/collection/tailwind/plugins/safe-area.js.map +1 -1
- package/dist/collection/tailwind/theme/animation.js +83 -83
- package/dist/collection/tailwind/theme/animation.js.map +1 -1
- package/dist/collection/tailwind/theme/colors.js +176 -176
- package/dist/collection/tailwind/theme/colors.js.map +1 -1
- package/dist/collection/tailwind/theme/height.js +4 -4
- package/dist/collection/tailwind/theme/height.js.map +1 -1
- package/dist/collection/tailwind/theme/rotate.js +2 -2
- package/dist/collection/tailwind/theme/rotate.js.map +1 -1
- package/dist/collection/tailwind/theme/scale.js +1 -1
- package/dist/collection/tailwind/theme/scale.js.map +1 -1
- package/dist/collection/tailwind/theme/screens.js +13 -13
- package/dist/collection/tailwind/theme/screens.js.map +1 -1
- package/dist/collection/tailwind/theme/shadows.js +15 -14
- package/dist/collection/tailwind/theme/shadows.js.map +1 -1
- package/dist/collection/tailwind/theme/spacing.js +6 -6
- package/dist/collection/tailwind/theme/spacing.js.map +1 -1
- package/dist/collection/tailwind/theme/typography.js +15 -15
- package/dist/collection/tailwind/theme/typography.js.map +1 -1
- package/dist/collection/tailwind/theme/width.js +13 -13
- package/dist/collection/tailwind/theme/width.js.map +1 -1
- package/dist/collection/tailwind/theme/z-index.js +11 -11
- package/dist/collection/tailwind/theme/z-index.js.map +1 -1
- package/dist/collection/tailwind.config.js +7 -7
- package/dist/collection/tailwind.config.js.map +1 -1
- package/dist/collection/types/constants.js +7 -7
- package/dist/collection/types/constants.js.map +1 -1
- package/dist/collection/types/iban.js +8 -8
- package/dist/collection/types/iban.js.map +1 -1
- package/dist/collection/types/table.js +1 -1
- package/dist/collection/types/table.js.map +1 -1
- package/dist/collection/utils/child-of.js +3 -3
- package/dist/collection/utils/child-of.js.map +1 -1
- package/dist/collection/utils/cn.js +1 -1
- package/dist/collection/utils/cn.js.map +1 -1
- package/dist/collection/utils/icons-deprecated.js +66 -66
- package/dist/collection/utils/icons-deprecated.js.map +1 -1
- package/dist/collection/utils/icons.js +127 -127
- package/dist/collection/utils/icons.js.map +1 -1
- package/dist/collection/utils/illustrations.js +12 -12
- package/dist/collection/utils/illustrations.js.map +1 -1
- package/dist/collection/utils/localization.js +44 -45
- package/dist/collection/utils/localization.js.map +1 -1
- package/dist/collection/utils/nonce.js +12 -0
- package/dist/collection/utils/nonce.js.map +1 -0
- package/dist/collection/utils/object-get-by-path.js +6 -6
- package/dist/collection/utils/object-get-by-path.js.map +1 -1
- package/dist/collection/utils/screens.js +9 -9
- package/dist/collection/utils/screens.js.map +1 -1
- package/dist/collection/utils/table-helpers.js +96 -86
- package/dist/collection/utils/table-helpers.js.map +1 -1
- package/dist/collection/utils/transformers.js +2 -2
- package/dist/collection/utils/transformers.js.map +1 -1
- package/dist/components/avatar.component.js +66 -65
- package/dist/components/avatar.component.js.map +1 -1
- package/dist/components/backdrop.component.js +90 -85
- package/dist/components/backdrop.component.js.map +1 -1
- package/dist/components/badge.component.js +20 -19
- package/dist/components/badge.component.js.map +1 -1
- package/dist/components/button.component.js +364 -284
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/calendar.component.js +435 -362
- package/dist/components/calendar.component.js.map +1 -1
- package/dist/components/checkbox.component.js +134 -0
- package/dist/components/checkbox.component.js.map +1 -0
- package/dist/components/child-of.js +3 -3
- package/dist/components/child-of.js.map +1 -1
- package/dist/components/cn.js +2816 -0
- package/dist/components/cn.js.map +1 -0
- package/dist/components/divider.component.js +26 -26
- package/dist/components/divider.component.js.map +1 -1
- package/dist/components/drawer-body.component.js +24 -23
- package/dist/components/drawer-body.component.js.map +1 -1
- package/dist/components/drawer-container.component.js +23 -22
- package/dist/components/drawer-container.component.js.map +1 -1
- package/dist/components/drawer-header.component.js +44 -39
- package/dist/components/drawer-header.component.js.map +1 -1
- package/dist/components/dropdown-menu-container.component.js +65 -64
- package/dist/components/dropdown-menu-container.component.js.map +1 -1
- package/dist/components/dropdown-menu-item.component.js +162 -81
- package/dist/components/dropdown-menu-item.component.js.map +1 -1
- package/dist/components/dropdown.component.js +224 -181
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/field-container.component.js +99 -0
- package/dist/components/field-container.component.js.map +1 -0
- package/dist/components/field.component.js +311 -0
- package/dist/components/field.component.js.map +1 -0
- package/dist/components/floating-menu-container.component.js +24 -23
- package/dist/components/floating-menu-container.component.js.map +1 -1
- package/dist/components/floating-menu-item.component.js +26 -25
- package/dist/components/floating-menu-item.component.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +1205 -466
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/helper.component.js +38 -31
- package/dist/components/helper.component.js.map +1 -1
- package/dist/components/iban.js +8 -8
- package/dist/components/iban.js.map +1 -1
- package/dist/components/icon.component.js +58 -57
- package/dist/components/icon.component.js.map +1 -1
- package/dist/components/icons-deprecated.js +66 -66
- package/dist/components/icons-deprecated.js.map +1 -1
- package/dist/components/icons.js +127 -127
- package/dist/components/icons.js.map +1 -1
- package/dist/components/illustration.component.js +34 -34
- package/dist/components/illustration.component.js.map +1 -1
- package/dist/components/index.js +477 -493
- package/dist/components/index.js.map +1 -1
- package/dist/components/input-error.component.js +43 -37
- package/dist/components/input-error.component.js.map +1 -1
- package/dist/components/label.component.js +44 -43
- package/dist/components/label.component.js.map +1 -1
- package/dist/components/loader.component.js +59 -56
- package/dist/components/loader.component.js.map +1 -1
- package/dist/components/localization.js +44 -45
- package/dist/components/localization.js.map +1 -1
- package/dist/components/modal-body.component.js +30 -29
- package/dist/components/modal-body.component.js.map +1 -1
- package/dist/components/modal-container.component.js +31 -30
- package/dist/components/modal-container.component.js.map +1 -1
- package/dist/components/modal-footer.component.js +26 -25
- package/dist/components/modal-footer.component.js.map +1 -1
- package/dist/components/modal-header.component.js +44 -39
- package/dist/components/modal-header.component.js.map +1 -1
- package/dist/components/navigation-title.component.js +32 -0
- package/dist/components/navigation-title.component.js.map +1 -0
- package/dist/components/nonce.js +15 -0
- package/dist/components/nonce.js.map +1 -0
- package/dist/components/object-get-by-path.js +103 -93
- package/dist/components/object-get-by-path.js.map +1 -1
- package/dist/components/p-accordion.d.ts +2 -2
- package/dist/components/p-accordion.js +53 -48
- package/dist/components/p-accordion.js.map +1 -1
- package/dist/components/p-attachment.d.ts +2 -2
- package/dist/components/p-attachment.js +80 -66
- package/dist/components/p-attachment.js.map +1 -1
- package/dist/components/p-avatar-group.d.ts +2 -2
- package/dist/components/p-avatar-group.js +23 -22
- package/dist/components/p-avatar-group.js.map +1 -1
- package/dist/components/p-avatar.d.ts +2 -2
- package/dist/components/p-backdrop.d.ts +2 -2
- package/dist/components/p-badge.d.ts +2 -2
- package/dist/components/p-button-group.d.ts +2 -2
- package/dist/components/p-button-group.js +47 -47
- package/dist/components/p-button-group.js.map +1 -1
- package/dist/components/p-button.d.ts +2 -2
- package/dist/components/p-calendar.d.ts +2 -2
- package/dist/components/p-card-body.d.ts +2 -2
- package/dist/components/p-card-body.js +23 -22
- package/dist/components/p-card-body.js.map +1 -1
- package/dist/components/p-card-container.d.ts +2 -2
- package/dist/components/p-card-container.js +26 -25
- package/dist/components/p-card-container.js.map +1 -1
- package/dist/components/p-card-header.d.ts +2 -2
- package/dist/components/p-card-header.js +40 -40
- package/dist/components/p-card-header.js.map +1 -1
- package/dist/components/p-checkbox.d.ts +11 -0
- package/dist/components/p-checkbox.js +8 -0
- package/dist/components/p-checkbox.js.map +1 -0
- package/dist/components/p-content-slider.d.ts +2 -2
- package/dist/components/p-content-slider.js +231 -225
- package/dist/components/p-content-slider.js.map +1 -1
- package/dist/components/p-counter.d.ts +2 -2
- package/dist/components/p-counter.js +26 -25
- package/dist/components/p-counter.js.map +1 -1
- package/dist/components/p-cropper.d.ts +2 -2
- package/dist/components/p-cropper.js +427 -288
- package/dist/components/p-cropper.js.map +1 -1
- package/dist/components/p-datepicker.d.ts +2 -2
- package/dist/components/p-datepicker.js +389 -394
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/components/p-divider.d.ts +2 -2
- package/dist/components/p-drawer-body.d.ts +2 -2
- package/dist/components/p-drawer-container.d.ts +2 -2
- package/dist/components/p-drawer-header.d.ts +2 -2
- package/dist/components/p-drawer.d.ts +2 -2
- package/dist/components/p-drawer.js +122 -114
- package/dist/components/p-drawer.js.map +1 -1
- package/dist/components/p-dropdown-menu-container.d.ts +2 -2
- package/dist/components/p-dropdown-menu-item.d.ts +2 -2
- package/dist/components/p-dropdown.d.ts +2 -2
- package/dist/components/p-field-container.d.ts +11 -0
- package/dist/components/p-field-container.js +8 -0
- package/dist/components/p-field-container.js.map +1 -0
- package/dist/components/p-field.d.ts +11 -0
- package/dist/components/p-field.js +8 -0
- package/dist/components/p-field.js.map +1 -0
- package/dist/components/p-floating-menu-container.d.ts +2 -2
- package/dist/components/p-floating-menu-item.d.ts +2 -2
- package/dist/components/p-helper.d.ts +2 -2
- package/dist/components/p-iban-icon.d.ts +2 -2
- package/dist/components/p-iban-icon.js +47 -48
- package/dist/components/p-iban-icon.js.map +1 -1
- package/dist/components/p-icon-deprecated.d.ts +2 -2
- package/dist/components/p-icon-deprecated.js +64 -63
- package/dist/components/p-icon-deprecated.js.map +1 -1
- package/dist/components/p-icon.d.ts +2 -2
- package/dist/components/p-illustration.d.ts +2 -2
- package/dist/components/p-info-panel.d.ts +2 -2
- package/dist/components/p-info-panel.js +45 -40
- package/dist/components/p-info-panel.js.map +1 -1
- package/dist/components/p-input-error.d.ts +2 -2
- package/dist/components/p-label.d.ts +2 -2
- package/dist/components/p-layout.d.ts +2 -2
- package/dist/components/p-layout.js +24 -23
- package/dist/components/p-layout.js.map +1 -1
- package/dist/components/p-loader.d.ts +2 -2
- package/dist/components/p-modal-body.d.ts +2 -2
- package/dist/components/p-modal-container.d.ts +2 -2
- package/dist/components/p-modal-footer.d.ts +2 -2
- package/dist/components/p-modal-header.d.ts +2 -2
- package/dist/components/p-modal.d.ts +2 -2
- package/dist/components/p-modal.js +128 -121
- package/dist/components/p-modal.js.map +1 -1
- package/dist/components/p-navbar.d.ts +2 -2
- package/dist/components/p-navbar.js +79 -80
- package/dist/components/p-navbar.js.map +1 -1
- package/dist/components/p-navigation-item.d.ts +2 -2
- package/dist/components/p-navigation-item.js +83 -70
- package/dist/components/p-navigation-item.js.map +1 -1
- package/dist/components/p-navigation-section.d.ts +11 -0
- package/dist/components/p-navigation-section.js +44 -0
- package/dist/components/p-navigation-section.js.map +1 -0
- package/dist/components/p-navigation-title.d.ts +2 -2
- package/dist/components/p-navigation-title.js +1 -27
- package/dist/components/p-navigation-title.js.map +1 -1
- package/dist/components/p-page-size-select.d.ts +2 -2
- package/dist/components/p-pagination-item.d.ts +2 -2
- package/dist/components/p-pagination.d.ts +2 -2
- package/dist/components/p-portal.d.ts +11 -0
- package/dist/components/p-portal.js +8 -0
- package/dist/components/p-portal.js.map +1 -0
- package/dist/components/p-profile.d.ts +2 -2
- package/dist/components/p-profile.js +98 -80
- package/dist/components/p-profile.js.map +1 -1
- package/dist/components/p-radio.d.ts +11 -0
- package/dist/components/p-radio.js +123 -0
- package/dist/components/p-radio.js.map +1 -0
- package/dist/components/p-segment-container.d.ts +2 -2
- package/dist/components/p-segment-item.d.ts +2 -2
- package/dist/components/p-select.d.ts +2 -2
- package/dist/components/p-select.js +552 -487
- package/dist/components/p-select.js.map +1 -1
- package/dist/components/p-slider-indicator.d.ts +2 -2
- package/dist/components/p-status.d.ts +2 -2
- package/dist/components/p-status.js +58 -57
- package/dist/components/p-status.js.map +1 -1
- package/dist/components/p-stepper-item.d.ts +2 -2
- package/dist/components/p-stepper-item.js +37 -36
- package/dist/components/p-stepper-item.js.map +1 -1
- package/dist/components/p-stepper-line.d.ts +2 -2
- package/dist/components/p-stepper.d.ts +2 -2
- package/dist/components/p-stepper.js +115 -114
- package/dist/components/p-stepper.js.map +1 -1
- package/dist/components/p-tab-group.d.ts +2 -2
- package/dist/components/p-tab-group.js +24 -24
- package/dist/components/p-tab-group.js.map +1 -1
- package/dist/components/p-tab-item.d.ts +2 -2
- package/dist/components/p-tab-item.js +24 -23
- package/dist/components/p-tab-item.js.map +1 -1
- package/dist/components/p-table-cell.d.ts +2 -2
- package/dist/components/p-table-column.d.ts +2 -2
- package/dist/components/p-table-column.js +45 -41
- package/dist/components/p-table-column.js.map +1 -1
- package/dist/components/p-table-container.d.ts +2 -2
- package/dist/components/p-table-footer.d.ts +2 -2
- package/dist/components/p-table-header.d.ts +2 -2
- package/dist/components/p-table-row-action.d.ts +2 -2
- package/dist/components/p-table-row-action.js +39 -39
- package/dist/components/p-table-row-action.js.map +1 -1
- package/dist/components/p-table-row.d.ts +2 -2
- package/dist/components/p-table.d.ts +2 -2
- package/dist/components/p-table.js +802 -750
- package/dist/components/p-table.js.map +1 -1
- package/dist/components/p-toast-container.d.ts +2 -2
- package/dist/components/p-toast-container.js +24 -23
- package/dist/components/p-toast-container.js.map +1 -1
- package/dist/components/p-toast.d.ts +2 -2
- package/dist/components/p-toast.js +60 -56
- package/dist/components/p-toast.js.map +1 -1
- package/dist/components/p-toggle.d.ts +11 -0
- package/dist/components/p-toggle.js +169 -0
- package/dist/components/p-toggle.js.map +1 -0
- package/dist/components/p-tooltip.d.ts +2 -2
- package/dist/components/page-size-select.component.js +108 -92
- package/dist/components/page-size-select.component.js.map +1 -1
- package/dist/components/pagination-item.component.js +24 -23
- package/dist/components/pagination-item.component.js.map +1 -1
- package/dist/components/pagination.component.js +185 -182
- package/dist/components/pagination.component.js.map +1 -1
- package/dist/components/portal.component.js +39 -0
- package/dist/components/portal.component.js.map +1 -0
- package/dist/components/screens.js +29 -29
- package/dist/components/screens.js.map +1 -1
- package/dist/components/segment-container.component.js +20 -19
- package/dist/components/segment-container.component.js.map +1 -1
- package/dist/components/segment-item.component.js +49 -48
- package/dist/components/segment-item.component.js.map +1 -1
- package/dist/components/slider-indicator.component.js +24 -23
- package/dist/components/slider-indicator.component.js.map +1 -1
- package/dist/components/stepper-line.component.js +26 -25
- package/dist/components/stepper-line.component.js.map +1 -1
- package/dist/components/table-cell.component.js +75 -71
- package/dist/components/table-cell.component.js.map +1 -1
- package/dist/components/table-container.component.js +24 -23
- package/dist/components/table-container.component.js.map +1 -1
- package/dist/components/table-footer.component.js +137 -113
- package/dist/components/table-footer.component.js.map +1 -1
- package/dist/components/table-header.component.js +196 -158
- package/dist/components/table-header.component.js.map +1 -1
- package/dist/components/table-row.component.js +33 -32
- package/dist/components/table-row.component.js.map +1 -1
- package/dist/components/tooltip.component.js +214 -160
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/child-of-2e1cac22.js +9 -0
- package/dist/esm/child-of-2e1cac22.js.map +1 -0
- package/dist/esm/cn-efefe9a7.js +2816 -0
- package/dist/esm/cn-efefe9a7.js.map +1 -0
- package/dist/esm/floating-ui.dom.esm-1ee67651.js +2066 -0
- package/dist/esm/floating-ui.dom.esm-1ee67651.js.map +1 -0
- package/dist/esm/iban-2645d629.js +14 -0
- package/dist/esm/iban-2645d629.js.map +1 -0
- package/dist/esm/icons-a3270aaf.js +1546 -0
- package/dist/esm/icons-a3270aaf.js.map +1 -0
- package/dist/esm/icons-deprecated-5df272a7.js +1121 -0
- package/dist/esm/icons-deprecated-5df272a7.js.map +1 -0
- package/dist/esm/index-2ef94580.js +2329 -0
- package/dist/esm/index-2ef94580.js.map +1 -0
- package/dist/esm/index-538f1fd8.js +2309 -0
- package/dist/esm/index-538f1fd8.js.map +1 -0
- package/dist/esm/index.js +485 -501
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +6 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/localization-339ba26d.js +58 -0
- package/dist/esm/localization-339ba26d.js.map +1 -0
- package/dist/esm/nonce-a9254eb4.js +15 -0
- package/dist/esm/nonce-a9254eb4.js.map +1 -0
- package/dist/esm/object-get-by-path-b28a1923.js +124 -0
- package/dist/esm/object-get-by-path-b28a1923.js.map +1 -0
- package/dist/esm/p-accordion.entry.js +26 -21
- package/dist/esm/p-accordion.entry.js.map +1 -1
- package/dist/esm/p-attachment.entry.js +28 -20
- package/dist/esm/p-attachment.entry.js.map +1 -1
- package/dist/esm/p-avatar-group.entry.js +10 -9
- package/dist/esm/p-avatar-group.entry.js.map +1 -1
- package/dist/esm/p-avatar.entry.js +46 -45
- package/dist/esm/p-avatar.entry.js.map +1 -1
- package/dist/esm/p-backdrop.entry.js +73 -68
- package/dist/esm/p-backdrop.entry.js.map +1 -1
- package/dist/esm/p-badge.entry.js +9 -8
- package/dist/esm/p-badge.entry.js.map +1 -1
- package/dist/esm/p-button-group.entry.js +33 -33
- package/dist/esm/p-button-group.entry.js.map +1 -1
- package/dist/esm/p-button_3.entry.js +404 -322
- package/dist/esm/p-button_3.entry.js.map +1 -1
- package/dist/esm/p-calendar.entry.js +351 -297
- package/dist/esm/p-calendar.entry.js.map +1 -1
- package/dist/esm/p-card-body.entry.js +10 -9
- package/dist/esm/p-card-body.entry.js.map +1 -1
- package/dist/esm/p-card-container.entry.js +11 -10
- package/dist/esm/p-card-container.entry.js.map +1 -1
- package/dist/esm/p-card-header.entry.js +21 -21
- package/dist/esm/p-card-header.entry.js.map +1 -1
- package/dist/esm/p-checkbox_3.entry.js +438 -0
- package/dist/esm/p-checkbox_3.entry.js.map +1 -0
- package/dist/esm/p-content-slider.entry.js +205 -199
- package/dist/esm/p-content-slider.entry.js.map +1 -1
- package/dist/esm/p-counter.entry.js +11 -10
- package/dist/esm/p-counter.entry.js.map +1 -1
- package/dist/esm/p-cropper.entry.js +404 -265
- package/dist/esm/p-cropper.entry.js.map +1 -1
- package/dist/esm/p-datepicker.entry.js +287 -310
- package/dist/esm/p-datepicker.entry.js.map +1 -1
- package/dist/esm/p-divider.entry.js +12 -12
- package/dist/esm/p-divider.entry.js.map +1 -1
- package/dist/esm/p-drawer-body_3.entry.js +33 -26
- package/dist/esm/p-drawer-body_3.entry.js.map +1 -1
- package/dist/esm/p-drawer.entry.js +66 -58
- package/dist/esm/p-drawer.entry.js.map +1 -1
- package/dist/esm/p-dropdown-menu-container.entry.js +48 -47
- package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -1
- package/dist/esm/p-field_3.entry.js +310 -0
- package/dist/esm/p-field_3.entry.js.map +1 -0
- package/dist/esm/p-floating-menu-container_8.entry.js +263 -211
- package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
- package/dist/esm/p-iban-icon.entry.js +33 -34
- package/dist/esm/p-iban-icon.entry.js.map +1 -1
- package/dist/esm/p-icon-deprecated.entry.js +49 -48
- package/dist/esm/p-icon-deprecated.entry.js.map +1 -1
- package/dist/esm/p-info-panel.entry.js +23 -18
- package/dist/esm/p-info-panel.entry.js.map +1 -1
- package/dist/esm/p-input-error.entry.js +17 -0
- package/dist/esm/p-input-error.entry.js.map +1 -0
- package/dist/esm/p-label_3.entry.js +50 -47
- package/dist/esm/p-label_3.entry.js.map +1 -1
- package/dist/esm/p-layout.entry.js +10 -9
- package/dist/esm/p-layout.entry.js.map +1 -1
- package/dist/esm/p-modal-body_4.entry.js +51 -43
- package/dist/esm/p-modal-body_4.entry.js.map +1 -1
- package/dist/esm/p-modal.entry.js +59 -52
- package/dist/esm/p-modal.entry.js.map +1 -1
- package/dist/esm/p-navbar.entry.js +45 -45
- package/dist/esm/p-navbar.entry.js.map +1 -1
- package/dist/esm/p-navigation-item.entry.js +45 -40
- package/dist/esm/p-navigation-item.entry.js.map +1 -1
- package/dist/esm/p-navigation-section.entry.js +19 -0
- package/dist/esm/p-navigation-section.entry.js.map +1 -0
- package/dist/esm/p-navigation-title.entry.js +9 -8
- package/dist/esm/p-navigation-title.entry.js.map +1 -1
- package/dist/esm/p-page-size-select_3.entry.js +203 -195
- package/dist/esm/p-page-size-select_3.entry.js.map +1 -1
- package/dist/esm/p-portal_2.entry.js +228 -0
- package/dist/esm/p-portal_2.entry.js.map +1 -0
- package/dist/esm/p-profile.entry.js +48 -47
- package/dist/esm/p-profile.entry.js.map +1 -1
- package/dist/esm/p-radio.entry.js +98 -0
- package/dist/esm/p-radio.entry.js.map +1 -0
- package/dist/esm/p-select.entry.js +418 -370
- package/dist/esm/p-select.entry.js.map +1 -1
- package/dist/esm/p-slider-indicator.entry.js +10 -9
- package/dist/esm/p-slider-indicator.entry.js.map +1 -1
- package/dist/esm/p-status.entry.js +37 -36
- package/dist/esm/p-status.entry.js.map +1 -1
- package/dist/esm/p-stepper-item.entry.js +14 -13
- package/dist/esm/p-stepper-item.entry.js.map +1 -1
- package/dist/esm/p-stepper-line.entry.js +11 -10
- package/dist/esm/p-stepper-line.entry.js.map +1 -1
- package/dist/esm/p-stepper.entry.js +91 -90
- package/dist/esm/p-stepper.entry.js.map +1 -1
- package/dist/esm/p-tab-group.entry.js +2 -2
- package/dist/esm/p-tab-group.entry.js.map +1 -1
- package/dist/esm/p-tab-item.entry.js +10 -9
- package/dist/esm/p-tab-item.entry.js.map +1 -1
- package/dist/esm/p-table-column.entry.js +24 -20
- package/dist/esm/p-table-column.entry.js.map +1 -1
- package/dist/esm/p-table-row-action.entry.js +17 -17
- package/dist/esm/p-table-row-action.entry.js.map +1 -1
- package/dist/esm/p-table.entry.js +583 -542
- package/dist/esm/p-table.entry.js.map +1 -1
- package/dist/esm/p-toast-container.entry.js +10 -9
- package/dist/esm/p-toast-container.entry.js.map +1 -1
- package/dist/esm/p-toast.entry.js +25 -21
- package/dist/esm/p-toast.entry.js.map +1 -1
- package/dist/esm/p-toggle.entry.js +144 -0
- package/dist/esm/p-toggle.entry.js.map +1 -0
- package/dist/esm/paperless.js +14 -12
- package/dist/esm/paperless.js.map +1 -1
- package/dist/esm/screens-8702d56f.js +54 -0
- package/dist/esm/screens-8702d56f.js.map +1 -0
- package/dist/index.html +13 -13
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/index.esm.js.map +1 -1
- package/dist/paperless/p-020a97e3.entry.js +2 -0
- package/dist/paperless/p-020a97e3.entry.js.map +1 -0
- package/dist/paperless/p-036bb6f4.entry.js +2 -0
- package/dist/paperless/p-036bb6f4.entry.js.map +1 -0
- package/dist/paperless/p-0413fcd0.entry.js +2 -0
- package/dist/paperless/p-0413fcd0.entry.js.map +1 -0
- package/dist/paperless/p-0bbd4d1c.entry.js +2 -0
- package/dist/paperless/p-0bbd4d1c.entry.js.map +1 -0
- package/dist/paperless/p-0c040d86.entry.js +2 -0
- package/dist/paperless/p-0c040d86.entry.js.map +1 -0
- package/dist/paperless/p-0e1935d5.entry.js +2 -0
- package/dist/paperless/p-0e1935d5.entry.js.map +1 -0
- package/dist/paperless/p-14e63599.entry.js +2 -0
- package/dist/paperless/p-14e63599.entry.js.map +1 -0
- package/dist/paperless/p-170077a4.js +2 -0
- package/dist/paperless/p-170077a4.js.map +1 -0
- package/dist/paperless/p-1b5ec2b1.entry.js +2 -0
- package/dist/paperless/p-1b5ec2b1.entry.js.map +1 -0
- package/dist/paperless/p-1d80e042.js +2 -0
- package/dist/paperless/p-1d80e042.js.map +1 -0
- package/dist/paperless/p-1ed4a75e.entry.js +3 -0
- package/dist/paperless/p-1ed4a75e.entry.js.map +1 -0
- package/dist/paperless/p-1f464c93.entry.js +2 -0
- package/dist/paperless/p-1f464c93.entry.js.map +1 -0
- package/dist/paperless/p-214a2978.entry.js +2 -0
- package/dist/paperless/p-214a2978.entry.js.map +1 -0
- package/dist/paperless/p-291573c4.entry.js +2 -0
- package/dist/paperless/p-291573c4.entry.js.map +1 -0
- package/dist/paperless/p-2bd123f4.entry.js +2 -0
- package/dist/paperless/p-2bd123f4.entry.js.map +1 -0
- package/dist/paperless/p-3a428a06.entry.js +2 -0
- package/dist/paperless/p-3a428a06.entry.js.map +1 -0
- package/dist/paperless/p-3b5242e9.entry.js +2 -0
- package/dist/paperless/p-3b5242e9.entry.js.map +1 -0
- package/dist/paperless/p-3b8209bc.js +2 -0
- package/dist/paperless/p-3b8209bc.js.map +1 -0
- package/dist/paperless/p-3e393301.entry.js +2 -0
- package/dist/paperless/p-3e393301.entry.js.map +1 -0
- package/dist/paperless/p-45ded510.js +3 -0
- package/dist/paperless/p-45ded510.js.map +1 -0
- package/dist/paperless/p-46362798.entry.js +2 -0
- package/dist/paperless/p-46362798.entry.js.map +1 -0
- package/dist/paperless/p-48efb6e4.entry.js +2 -0
- package/dist/paperless/p-48efb6e4.entry.js.map +1 -0
- package/dist/paperless/p-50134fa1.entry.js +2 -0
- package/dist/paperless/p-50134fa1.entry.js.map +1 -0
- package/dist/paperless/p-562029b4.entry.js +2 -0
- package/dist/paperless/p-562029b4.entry.js.map +1 -0
- package/dist/paperless/p-62843ca0.entry.js +2 -0
- package/dist/paperless/p-62843ca0.entry.js.map +1 -0
- package/dist/paperless/p-62b14ab7.entry.js +2 -0
- package/dist/paperless/p-62b14ab7.entry.js.map +1 -0
- package/dist/paperless/p-638d2138.entry.js +2 -0
- package/dist/paperless/p-638d2138.entry.js.map +1 -0
- package/dist/paperless/p-65d9a61f.entry.js +2 -0
- package/dist/paperless/p-65d9a61f.entry.js.map +1 -0
- package/dist/paperless/p-6d8852ca.entry.js +2 -0
- package/dist/paperless/p-6d8852ca.entry.js.map +1 -0
- package/dist/paperless/p-7aecc5f3.entry.js +2 -0
- package/dist/paperless/p-7aecc5f3.entry.js.map +1 -0
- package/dist/paperless/p-83b79ff9.js +2 -0
- package/dist/paperless/p-83b79ff9.js.map +1 -0
- package/dist/paperless/p-8a1a6e56.js.map +1 -1
- package/dist/paperless/p-8a5b8196.js.map +1 -1
- package/dist/paperless/p-958f3c09.entry.js +2 -0
- package/dist/paperless/p-958f3c09.entry.js.map +1 -0
- package/dist/paperless/p-9a613c80.entry.js +2 -0
- package/dist/paperless/p-9a613c80.entry.js.map +1 -0
- package/dist/paperless/p-9ab34fee.js +2 -0
- package/dist/paperless/p-9ab34fee.js.map +1 -0
- package/dist/paperless/p-9cac28b6.js +2 -0
- package/dist/paperless/p-9cac28b6.js.map +1 -0
- package/dist/paperless/p-a56474ea.entry.js +2 -0
- package/dist/paperless/p-a56474ea.entry.js.map +1 -0
- package/dist/paperless/p-a5934232.entry.js +2 -0
- package/dist/paperless/p-a5934232.entry.js.map +1 -0
- package/dist/paperless/p-a6ccc70e.entry.js +2 -0
- package/dist/paperless/p-a6ccc70e.entry.js.map +1 -0
- package/dist/paperless/p-adcded4d.entry.js +2 -0
- package/dist/paperless/p-adcded4d.entry.js.map +1 -0
- package/dist/paperless/p-af468e9f.entry.js +2 -0
- package/dist/paperless/p-af468e9f.entry.js.map +1 -0
- package/dist/paperless/p-b082e123.js +2 -0
- package/dist/paperless/p-b082e123.js.map +1 -0
- package/dist/paperless/p-bf261165.entry.js +2 -0
- package/dist/paperless/p-bf261165.entry.js.map +1 -0
- package/dist/paperless/p-c3ba61ac.entry.js +2 -0
- package/dist/paperless/p-c3ba61ac.entry.js.map +1 -0
- package/dist/paperless/p-c605a1c1.js +2 -0
- package/dist/paperless/p-c605a1c1.js.map +1 -0
- package/dist/paperless/p-c8e79e30.entry.js +2 -0
- package/dist/paperless/p-c8e79e30.entry.js.map +1 -0
- package/dist/paperless/p-cc3445fc.entry.js +2 -0
- package/dist/paperless/p-cc3445fc.entry.js.map +1 -0
- package/dist/paperless/p-cfe6ec9a.entry.js +2 -0
- package/dist/paperless/p-cfe6ec9a.entry.js.map +1 -0
- package/dist/paperless/p-d044f441.entry.js +2 -0
- package/dist/paperless/p-d044f441.entry.js.map +1 -0
- package/dist/paperless/p-d3878a79.entry.js +2 -0
- package/dist/paperless/p-d3878a79.entry.js.map +1 -0
- package/dist/paperless/p-d6ca5bce.entry.js +2 -0
- package/dist/paperless/p-d6ca5bce.entry.js.map +1 -0
- package/dist/paperless/p-d70b3539.entry.js +2 -0
- package/dist/paperless/p-d70b3539.entry.js.map +1 -0
- package/dist/paperless/p-d8eb3b7b.entry.js +2 -0
- package/dist/paperless/p-d8eb3b7b.entry.js.map +1 -0
- package/dist/paperless/p-d9d8c17c.entry.js +2 -0
- package/dist/paperless/p-d9d8c17c.entry.js.map +1 -0
- package/dist/paperless/p-d9fae6bd.entry.js +2 -0
- package/dist/paperless/p-d9fae6bd.entry.js.map +1 -0
- package/dist/paperless/p-da7b6f2c.js.map +1 -1
- package/dist/paperless/p-de74e07c.js +2 -0
- package/dist/paperless/p-de74e07c.js.map +1 -0
- package/dist/paperless/p-dfce711d.entry.js +2 -0
- package/dist/paperless/p-dfce711d.entry.js.map +1 -0
- package/dist/paperless/p-e1255160.js +2 -0
- package/dist/paperless/p-e1255160.js.map +1 -0
- package/dist/paperless/p-e15305dc.entry.js +2 -0
- package/dist/paperless/p-e15305dc.entry.js.map +1 -0
- package/dist/paperless/p-ea577bae.entry.js +2 -0
- package/dist/paperless/p-ea577bae.entry.js.map +1 -0
- package/dist/paperless/p-eec56c71.entry.js +2 -0
- package/dist/paperless/p-eec56c71.entry.js.map +1 -0
- package/dist/paperless/p-f26a3049.js +2 -0
- package/dist/paperless/p-f26a3049.js.map +1 -0
- package/dist/paperless/p-f3d0ea94.entry.js +2 -0
- package/dist/paperless/p-f3d0ea94.entry.js.map +1 -0
- package/dist/paperless/p-f40f89a7.entry.js +2 -0
- package/dist/paperless/p-f40f89a7.entry.js.map +1 -0
- package/dist/paperless/p-fd53acd3.entry.js +2 -0
- package/dist/paperless/p-fd53acd3.entry.js.map +1 -0
- package/dist/paperless/p-fdf020c9.entry.js +2 -0
- package/dist/paperless/p-fdf020c9.entry.js.map +1 -0
- package/dist/paperless/p-fe66cde8.js +2 -0
- package/dist/paperless/p-fe66cde8.js.map +1 -0
- package/dist/paperless/paperless.css +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/style/_fonts.scss +4 -0
- package/dist/style/paperless.scss +0 -2
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/tailwind/theme/shadows.ts +2 -1
- package/dist/types/components/atoms/avatar/avatar.component.d.ts +22 -22
- package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +5 -5
- package/dist/types/components/atoms/backdrop/backdrop.component.d.ts +33 -33
- package/dist/types/components/atoms/badge/badge.component.d.ts +1 -1
- package/dist/types/components/atoms/card-body/card-body.component.d.ts +5 -5
- package/dist/types/components/atoms/card-container/card-container.component.d.ts +9 -9
- package/dist/types/components/atoms/card-header/card-header.component.d.ts +16 -16
- package/dist/types/components/atoms/checkbox/checkbox.component.d.ts +42 -0
- package/dist/types/components/atoms/counter/counter.component.d.ts +9 -9
- package/dist/types/components/atoms/divider/divider.component.d.ts +9 -9
- package/dist/types/components/atoms/drawer-body/drawer-body.component.d.ts +5 -5
- package/dist/types/components/atoms/drawer-container/drawer-container.component.d.ts +5 -5
- package/dist/types/components/atoms/drawer-header/drawer-header.component.d.ts +9 -9
- package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +21 -21
- package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +29 -25
- package/dist/types/components/atoms/floating-menu-container/floating-menu-container.component.d.ts +5 -5
- package/dist/types/components/atoms/floating-menu-item/floating-menu-item.component.d.ts +9 -9
- package/dist/types/components/atoms/helper/helper.component.d.ts +9 -9
- package/dist/types/components/atoms/iban-icon/iban-icon.component.d.ts +10 -10
- package/dist/types/components/atoms/icon/icon.component.d.ts +17 -17
- package/dist/types/components/atoms/icon-deprecated/icon.component.d.ts +17 -17
- package/dist/types/components/atoms/illustration/illustration.component.d.ts +5 -5
- package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +26 -26
- package/dist/types/components/atoms/label/label.component.d.ts +33 -33
- package/dist/types/components/atoms/layout/layout.component.d.ts +5 -5
- package/dist/types/components/atoms/loader/loader.component.d.ts +27 -27
- package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +17 -17
- package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +9 -9
- package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +1 -1
- package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +9 -9
- package/dist/types/components/atoms/navigation-title/navigation-title.component.d.ts +1 -1
- package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +5 -5
- package/dist/types/components/atoms/portal/portal.component.d.ts +11 -0
- package/dist/types/components/atoms/radio/radio.component.d.ts +38 -0
- package/dist/types/components/atoms/segment-container/segment-container.component.d.ts +1 -1
- package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +32 -32
- package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +5 -5
- package/dist/types/components/atoms/status/status.component.d.ts +19 -19
- package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +21 -21
- package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +9 -9
- package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +1 -1
- package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +5 -5
- package/dist/types/components/atoms/table-container/table-container.component.d.ts +2 -2
- package/dist/types/components/atoms/toast-container/toast-container.component.d.ts +5 -5
- package/dist/types/components/atoms/toggle/toggle.component.d.ts +42 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +61 -57
- package/dist/types/components/helpers/table-column/table-column.component.d.ts +44 -44
- package/dist/types/components/helpers/table-row-action/table-row-action.component.d.ts +47 -47
- package/dist/types/components/molecules/accordion/accordion.component.d.ts +22 -22
- package/dist/types/components/molecules/attachment/attachment.component.d.ts +25 -25
- package/dist/types/components/molecules/button/button.component.d.ts +87 -79
- package/dist/types/components/molecules/button-group/button-group.component.d.ts +12 -12
- package/dist/types/components/molecules/calendar/calendar.component.d.ts +74 -73
- package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +51 -51
- package/dist/types/components/molecules/cropper/cropper.component.d.ts +34 -34
- package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +108 -107
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +88 -83
- package/dist/types/components/molecules/field/field.component.d.ts +118 -0
- package/dist/types/components/molecules/field-container/field-container.component.d.ts +47 -0
- package/dist/types/components/molecules/input-error/input-error.component.d.ts +10 -10
- package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +33 -25
- package/dist/types/components/molecules/navigation-section/navigation-section.component.d.ts +7 -0
- package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +46 -46
- package/dist/types/components/molecules/pagination/pagination.component.d.ts +32 -32
- package/dist/types/components/molecules/profile/profile.component.d.ts +17 -20
- package/dist/types/components/molecules/select/select.component.d.ts +217 -216
- package/dist/types/components/molecules/stepper/stepper.component.d.ts +24 -24
- package/dist/types/components/molecules/table-cell/table-cell.component.d.ts +42 -42
- package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +60 -60
- package/dist/types/components/molecules/table-header/table-header.component.d.ts +97 -97
- package/dist/types/components/molecules/table-row/table-row.component.d.ts +9 -9
- package/dist/types/components/molecules/toast/toast.component.d.ts +34 -34
- package/dist/types/components/organisms/drawer/drawer.component.d.ts +51 -51
- package/dist/types/components/organisms/modal/modal.component.d.ts +60 -60
- package/dist/types/components/organisms/navbar/navbar.component.d.ts +4 -8
- package/dist/types/components/organisms/table/table.component.d.ts +267 -268
- package/dist/types/components.d.ts +978 -211
- package/dist/types/stencil-public-runtime.d.ts +38 -10
- package/dist/types/tailwind/paperless.d.ts +2 -2
- package/dist/types/tailwind/plugins/hover.d.ts +1 -1
- package/dist/types/tailwind/plugins/safe-area.d.ts +1 -1
- package/dist/types/tailwind/theme/animation.d.ts +147 -147
- package/dist/types/tailwind/theme/colors.d.ts +175 -175
- package/dist/types/tailwind/theme/height.d.ts +4 -4
- package/dist/types/tailwind/theme/scale.d.ts +1 -1
- package/dist/types/tailwind/theme/screens.d.ts +12 -12
- package/dist/types/tailwind/theme/shadows.d.ts +7 -6
- package/dist/types/tailwind/theme/spacing.d.ts +5 -5
- package/dist/types/tailwind/theme/typography.d.ts +15 -15
- package/dist/types/tailwind/theme/width.d.ts +11 -11
- package/dist/types/tailwind/theme/z-index.d.ts +11 -11
- package/dist/types/tailwind.config.d.ts +2 -2
- package/dist/types/types/table.d.ts +24 -24
- package/dist/types/utils/icons-deprecated.d.ts +66 -66
- package/dist/types/utils/icons.d.ts +120 -120
- package/dist/types/utils/illustrations.d.ts +12 -12
- package/dist/types/utils/nonce.d.ts +1 -0
- package/dist/types/utils/table-helpers.d.ts +8 -8
- package/dist/workbox-d13932f0.js +2 -0
- package/dist/workbox-d13932f0.js.map +1 -0
- package/hydrate/index.d.ts +37 -13
- package/hydrate/index.js +32946 -16430
- package/hydrate/index.mjs +43465 -0
- package/hydrate/package.json +7 -1
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +7 -7
- package/dist/build/p-013cd7f9.entry.js +0 -2
- package/dist/build/p-013cd7f9.entry.js.map +0 -1
- package/dist/build/p-0348e450.entry.js +0 -2
- package/dist/build/p-0348e450.entry.js.map +0 -1
- package/dist/build/p-047c1c6f.entry.js +0 -2
- package/dist/build/p-047c1c6f.entry.js.map +0 -1
- package/dist/build/p-08ea38ad.entry.js +0 -2
- package/dist/build/p-08ea38ad.entry.js.map +0 -1
- package/dist/build/p-16a18649.entry.js +0 -2
- package/dist/build/p-16a18649.entry.js.map +0 -1
- package/dist/build/p-1fc0a8b4.entry.js +0 -2
- package/dist/build/p-1fc0a8b4.entry.js.map +0 -1
- package/dist/build/p-221dbb71.entry.js +0 -2
- package/dist/build/p-221dbb71.entry.js.map +0 -1
- package/dist/build/p-23ca3688.entry.js +0 -2
- package/dist/build/p-23ca3688.entry.js.map +0 -1
- package/dist/build/p-2e3b9db4.js +0 -2
- package/dist/build/p-2e3b9db4.js.map +0 -1
- package/dist/build/p-2f9e9197.entry.js +0 -2
- package/dist/build/p-2f9e9197.entry.js.map +0 -1
- package/dist/build/p-32056913.entry.js +0 -2
- package/dist/build/p-32056913.entry.js.map +0 -1
- package/dist/build/p-33fa21e3.js +0 -2
- package/dist/build/p-33fa21e3.js.map +0 -1
- package/dist/build/p-385943b2.entry.js +0 -2
- package/dist/build/p-385943b2.entry.js.map +0 -1
- package/dist/build/p-393eba2f.entry.js +0 -2
- package/dist/build/p-393eba2f.entry.js.map +0 -1
- package/dist/build/p-3d867690.entry.js +0 -2
- package/dist/build/p-3d867690.entry.js.map +0 -1
- package/dist/build/p-3e9d994a.entry.js +0 -2
- package/dist/build/p-3e9d994a.entry.js.map +0 -1
- package/dist/build/p-45463125.entry.js +0 -2
- package/dist/build/p-45463125.entry.js.map +0 -1
- package/dist/build/p-4d330cfc.js +0 -2
- package/dist/build/p-4d330cfc.js.map +0 -1
- package/dist/build/p-5e789bb1.entry.js +0 -2
- package/dist/build/p-5e789bb1.entry.js.map +0 -1
- package/dist/build/p-64b53130.entry.js +0 -2
- package/dist/build/p-64b53130.entry.js.map +0 -1
- package/dist/build/p-64b68231.js +0 -3
- package/dist/build/p-64b68231.js.map +0 -1
- package/dist/build/p-6cddc325.js +0 -2
- package/dist/build/p-6cddc325.js.map +0 -1
- package/dist/build/p-6e71ebca.entry.js +0 -2
- package/dist/build/p-6e71ebca.entry.js.map +0 -1
- package/dist/build/p-6f7721eb.entry.js +0 -2
- package/dist/build/p-6f7721eb.entry.js.map +0 -1
- package/dist/build/p-6fed974c.entry.js +0 -2
- package/dist/build/p-6fed974c.entry.js.map +0 -1
- package/dist/build/p-75006522.js +0 -2
- package/dist/build/p-75006522.js.map +0 -1
- package/dist/build/p-79cc09c0.entry.js +0 -2
- package/dist/build/p-79cc09c0.entry.js.map +0 -1
- package/dist/build/p-7a577384.entry.js +0 -2
- package/dist/build/p-7a577384.entry.js.map +0 -1
- package/dist/build/p-7beb3401.entry.js +0 -2
- package/dist/build/p-7beb3401.entry.js.map +0 -1
- package/dist/build/p-7d5f6497.entry.js +0 -2
- package/dist/build/p-7d5f6497.entry.js.map +0 -1
- package/dist/build/p-851a7662.entry.js +0 -2
- package/dist/build/p-851a7662.entry.js.map +0 -1
- package/dist/build/p-909879e3.entry.js +0 -3
- package/dist/build/p-909879e3.entry.js.map +0 -1
- package/dist/build/p-937b2d74.entry.js +0 -2
- package/dist/build/p-937b2d74.entry.js.map +0 -1
- package/dist/build/p-95eadadd.entry.js +0 -2
- package/dist/build/p-95eadadd.entry.js.map +0 -1
- package/dist/build/p-9fa5d08a.entry.js +0 -2
- package/dist/build/p-9fa5d08a.entry.js.map +0 -1
- package/dist/build/p-a587ff9f.entry.js +0 -2
- package/dist/build/p-a587ff9f.entry.js.map +0 -1
- package/dist/build/p-a7b8e22f.entry.js +0 -2
- package/dist/build/p-a7b8e22f.entry.js.map +0 -1
- package/dist/build/p-aa058967.entry.js +0 -2
- package/dist/build/p-aa058967.entry.js.map +0 -1
- package/dist/build/p-af4aedaf.entry.js +0 -2
- package/dist/build/p-af4aedaf.entry.js.map +0 -1
- package/dist/build/p-b5430fae.entry.js +0 -2
- package/dist/build/p-b5430fae.entry.js.map +0 -1
- package/dist/build/p-b8e718c7.entry.js +0 -2
- package/dist/build/p-b8e718c7.entry.js.map +0 -1
- package/dist/build/p-b9a7e240.entry.js +0 -2
- package/dist/build/p-b9a7e240.entry.js.map +0 -1
- package/dist/build/p-bc46f89a.entry.js +0 -2
- package/dist/build/p-bc46f89a.entry.js.map +0 -1
- package/dist/build/p-be0c925e.entry.js +0 -2
- package/dist/build/p-be0c925e.entry.js.map +0 -1
- package/dist/build/p-bfbab545.entry.js +0 -2
- package/dist/build/p-bfbab545.entry.js.map +0 -1
- package/dist/build/p-c6bcbcbf.entry.js +0 -2
- package/dist/build/p-c6bcbcbf.entry.js.map +0 -1
- package/dist/build/p-cb7c509e.entry.js +0 -2
- package/dist/build/p-cb7c509e.entry.js.map +0 -1
- package/dist/build/p-cc321a7b.entry.js +0 -2
- package/dist/build/p-cc321a7b.entry.js.map +0 -1
- package/dist/build/p-d3d8468b.js +0 -2
- package/dist/build/p-d3d8468b.js.map +0 -1
- package/dist/build/p-d5d413a1.js +0 -2
- package/dist/build/p-d5d413a1.js.map +0 -1
- package/dist/build/p-d81a30f6.entry.js +0 -2
- package/dist/build/p-d81a30f6.entry.js.map +0 -1
- package/dist/build/p-dce95c92.entry.js +0 -2
- package/dist/build/p-dce95c92.entry.js.map +0 -1
- package/dist/build/p-dd6d3839.entry.js +0 -2
- package/dist/build/p-dd6d3839.entry.js.map +0 -1
- package/dist/build/p-e10cf2d3.entry.js +0 -2
- package/dist/build/p-e10cf2d3.entry.js.map +0 -1
- package/dist/build/p-ea3bce45.entry.js +0 -2
- package/dist/build/p-ea3bce45.entry.js.map +0 -1
- package/dist/build/p-f78afad9.entry.js +0 -2
- package/dist/build/p-f78afad9.entry.js.map +0 -1
- package/dist/build/p-f8544f0c.js +0 -2
- package/dist/build/p-f8544f0c.js.map +0 -1
- package/dist/build/p-fcaa0539.entry.js +0 -2
- package/dist/build/p-fcaa0539.entry.js.map +0 -1
- package/dist/build/p-fef32402.js +0 -2
- package/dist/build/p-fef32402.js.map +0 -1
- package/dist/cjs/child-of-af405fc2.js +0 -11
- package/dist/cjs/child-of-af405fc2.js.map +0 -1
- package/dist/cjs/floating-ui.dom.esm-62336770.js +0 -1334
- package/dist/cjs/floating-ui.dom.esm-62336770.js.map +0 -1
- package/dist/cjs/iban-71055b2d.js +0 -16
- package/dist/cjs/iban-71055b2d.js.map +0 -1
- package/dist/cjs/icons-deprecated-d4fd5f3e.js +0 -1123
- package/dist/cjs/icons-deprecated-d4fd5f3e.js.map +0 -1
- package/dist/cjs/icons-e50d4119.js +0 -1549
- package/dist/cjs/icons-e50d4119.js.map +0 -1
- package/dist/cjs/index-02e05522.js +0 -2653
- package/dist/cjs/index-02e05522.js.map +0 -1
- package/dist/cjs/index-b59a0544.js +0 -2324
- package/dist/cjs/index-b59a0544.js.map +0 -1
- package/dist/cjs/localization-9132fab0.js +0 -62
- package/dist/cjs/localization-9132fab0.js.map +0 -1
- package/dist/cjs/object-get-by-path-c2e8bf29.js +0 -120
- package/dist/cjs/object-get-by-path-c2e8bf29.js.map +0 -1
- package/dist/cjs/p-dropdown_2.cjs.entry.js +0 -234
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +0 -1
- package/dist/cjs/p-helper_3.cjs.entry.js +0 -156
- package/dist/cjs/p-helper_3.cjs.entry.js.map +0 -1
- package/dist/cjs/p-tooltip.cjs.entry.js +0 -164
- package/dist/cjs/p-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/screens-eb3a3232.js +0 -67
- package/dist/cjs/screens-eb3a3232.js.map +0 -1
- package/dist/collection/components/atoms/avatar/test/avatar.component.e2e.js +0 -26
- package/dist/collection/components/atoms/avatar/test/avatar.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/avatar/test/avatar.component.spec.js +0 -35
- package/dist/collection/components/atoms/avatar/test/avatar.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/avatar-group/test/avatar-group.component.e2e.js +0 -26
- package/dist/collection/components/atoms/avatar-group/test/avatar-group.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/avatar-group/test/avatar-group.component.spec.js +0 -17
- package/dist/collection/components/atoms/avatar-group/test/avatar-group.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/backdrop/test/backdrop.component.e2e.js +0 -26
- package/dist/collection/components/atoms/backdrop/test/backdrop.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/backdrop/test/backdrop.component.spec.js +0 -17
- package/dist/collection/components/atoms/backdrop/test/backdrop.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/badge/test/badge.component.e2e.js +0 -26
- package/dist/collection/components/atoms/badge/test/badge.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/badge/test/badge.component.spec.js +0 -17
- package/dist/collection/components/atoms/badge/test/badge.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/card-body/test/card-body.component.e2e.js +0 -26
- package/dist/collection/components/atoms/card-body/test/card-body.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/card-body/test/card-body.component.spec.js +0 -18
- package/dist/collection/components/atoms/card-body/test/card-body.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/card-container/test/card-container.component.e2e.js +0 -26
- package/dist/collection/components/atoms/card-container/test/card-container.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/card-container/test/card-container.component.spec.js +0 -18
- package/dist/collection/components/atoms/card-container/test/card-container.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/card-header/test/card-header.component.e2e.js +0 -26
- package/dist/collection/components/atoms/card-header/test/card-header.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/card-header/test/card-header.component.spec.js +0 -18
- package/dist/collection/components/atoms/card-header/test/card-header.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/counter/test/counter.component.e2e.js +0 -26
- package/dist/collection/components/atoms/counter/test/counter.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/counter/test/counter.component.spec.js +0 -18
- package/dist/collection/components/atoms/counter/test/counter.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/divider/test/divider.component.e2e.js +0 -26
- package/dist/collection/components/atoms/divider/test/divider.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/divider/test/divider.component.spec.js +0 -17
- package/dist/collection/components/atoms/divider/test/divider.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/drawer-body/test/drawer-body.component.e2e.js +0 -26
- package/dist/collection/components/atoms/drawer-body/test/drawer-body.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/drawer-body/test/drawer-body.component.spec.js +0 -17
- package/dist/collection/components/atoms/drawer-body/test/drawer-body.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/drawer-container/test/drawer-container.component.e2e.js +0 -26
- package/dist/collection/components/atoms/drawer-container/test/drawer-container.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/drawer-container/test/drawer-container.component.spec.js +0 -17
- package/dist/collection/components/atoms/drawer-container/test/drawer-container.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/drawer-header/test/drawer-header.component.e2e.js +0 -26
- package/dist/collection/components/atoms/drawer-header/test/drawer-header.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/drawer-header/test/drawer-header.component.spec.js +0 -17
- package/dist/collection/components/atoms/drawer-header/test/drawer-header.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/dropdown-menu-container/test/dropdown-menu-container.component.e2e.js +0 -26
- package/dist/collection/components/atoms/dropdown-menu-container/test/dropdown-menu-container.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/dropdown-menu-container/test/dropdown-menu-item.component.spec.js +0 -17
- package/dist/collection/components/atoms/dropdown-menu-container/test/dropdown-menu-item.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/dropdown-menu-item/test/dropdown-menu-item.component.e2e.js +0 -26
- package/dist/collection/components/atoms/dropdown-menu-item/test/dropdown-menu-item.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/dropdown-menu-item/test/dropdown-menu-item.component.spec.js +0 -18
- package/dist/collection/components/atoms/dropdown-menu-item/test/dropdown-menu-item.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/floating-menu-container/test/floating-menu-container.component.e2e.js +0 -26
- package/dist/collection/components/atoms/floating-menu-container/test/floating-menu-container.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/floating-menu-container/test/floating-menu-container.component.spec.js +0 -17
- package/dist/collection/components/atoms/floating-menu-container/test/floating-menu-container.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/floating-menu-item/test/floating-menu-container.component.e2e.js +0 -26
- package/dist/collection/components/atoms/floating-menu-item/test/floating-menu-container.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/floating-menu-item/test/floating-menu-container.component.spec.js +0 -17
- package/dist/collection/components/atoms/floating-menu-item/test/floating-menu-container.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/helper/test/helper.component.e2e.js +0 -26
- package/dist/collection/components/atoms/helper/test/helper.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/helper/test/helper.component.spec.js +0 -35
- package/dist/collection/components/atoms/helper/test/helper.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/iban-icon/test/iban-icon.component.e2e.js +0 -26
- package/dist/collection/components/atoms/iban-icon/test/iban-icon.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/iban-icon/test/iban-icon.component.spec.js +0 -17
- package/dist/collection/components/atoms/iban-icon/test/iban-icon.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/icon/test/icon.component.e2e.js +0 -37
- package/dist/collection/components/atoms/icon/test/icon.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/icon/test/icon.component.spec.js +0 -47
- package/dist/collection/components/atoms/icon/test/icon.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/icon-deprecated/test/icon.component.e2e.js +0 -37
- package/dist/collection/components/atoms/icon-deprecated/test/icon.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/icon-deprecated/test/icon.component.spec.js +0 -47
- package/dist/collection/components/atoms/icon-deprecated/test/icon.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/illustration/test/illustration.component.e2e.js +0 -37
- package/dist/collection/components/atoms/illustration/test/illustration.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/illustration/test/illustration.component.spec.js +0 -47
- package/dist/collection/components/atoms/illustration/test/illustration.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/info-panel/test/info-panel.component.e2e.js +0 -26
- package/dist/collection/components/atoms/info-panel/test/info-panel.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/info-panel/test/info-panel.component.spec.js +0 -18
- package/dist/collection/components/atoms/info-panel/test/info-panel.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/label/test/label.component.e2e.js +0 -26
- package/dist/collection/components/atoms/label/test/label.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/label/test/label.component.spec.js +0 -17
- package/dist/collection/components/atoms/label/test/label.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/layout/test/layout.component.e2e.js +0 -26
- package/dist/collection/components/atoms/layout/test/layout.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/layout/test/layout.component.spec.js +0 -17
- package/dist/collection/components/atoms/layout/test/layout.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/loader/test/loader.component.e2e.js +0 -37
- package/dist/collection/components/atoms/loader/test/loader.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/loader/test/loader.component.spec.js +0 -47
- package/dist/collection/components/atoms/loader/test/loader.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/modal-body/test/modal-body.component.e2e.js +0 -26
- package/dist/collection/components/atoms/modal-body/test/modal-body.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/modal-body/test/modal-body.component.spec.js +0 -17
- package/dist/collection/components/atoms/modal-body/test/modal-body.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/modal-container/test/modal-container.component.e2e.js +0 -26
- package/dist/collection/components/atoms/modal-container/test/modal-container.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/modal-container/test/modal-container.component.spec.js +0 -17
- package/dist/collection/components/atoms/modal-container/test/modal-container.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/modal-footer/test/modal-footer.component.e2e.js +0 -26
- package/dist/collection/components/atoms/modal-footer/test/modal-footer.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/modal-footer/test/modal-footer.component.spec.js +0 -17
- package/dist/collection/components/atoms/modal-footer/test/modal-footer.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/modal-header/test/modal-header.component.e2e.js +0 -26
- package/dist/collection/components/atoms/modal-header/test/modal-header.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/modal-header/test/modal-header.component.spec.js +0 -17
- package/dist/collection/components/atoms/modal-header/test/modal-header.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/navigation-title/test/navigation-title.component.e2e.js +0 -26
- package/dist/collection/components/atoms/navigation-title/test/navigation-title.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/navigation-title/test/navigation-title.component.spec.js +0 -17
- package/dist/collection/components/atoms/navigation-title/test/navigation-title.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/pagination-item/test/pagination-item.component.e2e.js +0 -26
- package/dist/collection/components/atoms/pagination-item/test/pagination-item.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/pagination-item/test/pagination-item.component.spec.js +0 -18
- package/dist/collection/components/atoms/pagination-item/test/pagination-item.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/segment-container/test/segment-container.component.e2e.js +0 -26
- package/dist/collection/components/atoms/segment-container/test/segment-container.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/segment-container/test/segment-container.component.spec.js +0 -17
- package/dist/collection/components/atoms/segment-container/test/segment-container.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/segment-item/test/segment-item.component.e2e.js +0 -26
- package/dist/collection/components/atoms/segment-item/test/segment-item.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/segment-item/test/segment-item.component.spec.js +0 -17
- package/dist/collection/components/atoms/segment-item/test/segment-item.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/slider-indicator/test/slider-indicator.component.e2e.js +0 -26
- package/dist/collection/components/atoms/slider-indicator/test/slider-indicator.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/slider-indicator/test/slider-indicator.component.spec.js +0 -17
- package/dist/collection/components/atoms/slider-indicator/test/slider-indicator.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/status/test/status.component.e2e.js +0 -26
- package/dist/collection/components/atoms/status/test/status.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/status/test/status.component.spec.js +0 -17
- package/dist/collection/components/atoms/status/test/status.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/stepper-item/test/stepper-item.component.e2e.js +0 -26
- package/dist/collection/components/atoms/stepper-item/test/stepper-item.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/stepper-item/test/stepper-item.component.spec.js +0 -17
- package/dist/collection/components/atoms/stepper-item/test/stepper-item.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/stepper-line/test/stepper-line.component.e2e.js +0 -26
- package/dist/collection/components/atoms/stepper-line/test/stepper-line.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/stepper-line/test/stepper-line.component.spec.js +0 -17
- package/dist/collection/components/atoms/stepper-line/test/stepper-line.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/tab-group/test/tab-group.component.e2e.js +0 -26
- package/dist/collection/components/atoms/tab-group/test/tab-group.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/tab-group/test/tab-group.component.spec.js +0 -17
- package/dist/collection/components/atoms/tab-group/test/tab-group.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/tab-item/test/tab-item.component.e2e.js +0 -26
- package/dist/collection/components/atoms/tab-item/test/tab-item.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/tab-item/test/tab-item.component.spec.js +0 -17
- package/dist/collection/components/atoms/tab-item/test/tab-item.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/table-container/test/table-container.component.e2e.js +0 -26
- package/dist/collection/components/atoms/table-container/test/table-container.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/table-container/test/table-container.component.spec.js +0 -17
- package/dist/collection/components/atoms/table-container/test/table-container.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/toast-container/test/toast-container.component.e2e.js +0 -26
- package/dist/collection/components/atoms/toast-container/test/toast-container.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/toast-container/test/toast-container.component.spec.js +0 -17
- package/dist/collection/components/atoms/toast-container/test/toast-container.component.spec.js.map +0 -1
- package/dist/collection/components/atoms/tooltip/test/tooltip.component.e2e.js +0 -37
- package/dist/collection/components/atoms/tooltip/test/tooltip.component.e2e.js.map +0 -1
- package/dist/collection/components/atoms/tooltip/test/tooltip.component.spec.js +0 -12
- package/dist/collection/components/atoms/tooltip/test/tooltip.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/accordion/test/accordion.component.e2e.js +0 -26
- package/dist/collection/components/molecules/accordion/test/accordion.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/accordion/test/accordion.component.spec.js +0 -17
- package/dist/collection/components/molecules/accordion/test/accordion.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/attachment/test/attachment.component.e2e.js +0 -26
- package/dist/collection/components/molecules/attachment/test/attachment.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/attachment/test/attachment.component.spec.js +0 -17
- package/dist/collection/components/molecules/attachment/test/attachment.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/button/test/button.component.e2e.js +0 -26
- package/dist/collection/components/molecules/button/test/button.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/button/test/button.component.spec.js +0 -35
- package/dist/collection/components/molecules/button/test/button.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/button-group/test/button-group.component.e2e.js +0 -26
- package/dist/collection/components/molecules/button-group/test/button-group.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/button-group/test/button-group.component.spec.js +0 -35
- package/dist/collection/components/molecules/button-group/test/button-group.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/calendar/test/calendar.component.e2e.js +0 -26
- package/dist/collection/components/molecules/calendar/test/calendar.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/calendar/test/calendar.component.spec.js +0 -17
- package/dist/collection/components/molecules/calendar/test/calendar.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/content-slider/test/content-slider.component.e2e.js +0 -26
- package/dist/collection/components/molecules/content-slider/test/content-slider.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/content-slider/test/content-slider.component.spec.js +0 -17
- package/dist/collection/components/molecules/content-slider/test/content-slider.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/cropper/test/cropper.component.e2e.js +0 -26
- package/dist/collection/components/molecules/cropper/test/cropper.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/cropper/test/cropper.component.spec.js +0 -17
- package/dist/collection/components/molecules/cropper/test/cropper.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/datepicker/test/datepicker.component.e2e.js +0 -26
- package/dist/collection/components/molecules/datepicker/test/datepicker.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/datepicker/test/datepicker.component.spec.js +0 -17
- package/dist/collection/components/molecules/datepicker/test/datepicker.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/dropdown/test/dropdown.component.e2e.js +0 -26
- package/dist/collection/components/molecules/dropdown/test/dropdown.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/dropdown/test/dropdown.component.spec.js +0 -17
- package/dist/collection/components/molecules/dropdown/test/dropdown.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/input-error/test/input-error.component.e2e.js +0 -26
- package/dist/collection/components/molecules/input-error/test/input-error.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/input-error/test/input-error.component.spec.js +0 -17
- package/dist/collection/components/molecules/input-error/test/input-error.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/input-group/input-group.component.css +0 -1
- package/dist/collection/components/molecules/input-group/input-group.component.js +0 -449
- package/dist/collection/components/molecules/input-group/input-group.component.js.map +0 -1
- package/dist/collection/components/molecules/input-group/test/input-group.component.e2e.js +0 -26
- package/dist/collection/components/molecules/input-group/test/input-group.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/input-group/test/input-group.component.spec.js +0 -17
- package/dist/collection/components/molecules/input-group/test/input-group.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/navigation-item/test/navigation-item.component.e2e.js +0 -26
- package/dist/collection/components/molecules/navigation-item/test/navigation-item.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/navigation-item/test/navigation-item.component.spec.js +0 -18
- package/dist/collection/components/molecules/navigation-item/test/navigation-item.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/page-size-select/test/page-size-select.component.e2e.js +0 -26
- package/dist/collection/components/molecules/page-size-select/test/page-size-select.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/page-size-select/test/page-size-select.component.spec.js +0 -17
- package/dist/collection/components/molecules/page-size-select/test/page-size-select.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/pagination/test/pagination.component.e2e.js +0 -27
- package/dist/collection/components/molecules/pagination/test/pagination.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/pagination/test/pagination.component.spec.js +0 -18
- package/dist/collection/components/molecules/pagination/test/pagination.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/profile/test/profile.component.e2e.js +0 -26
- package/dist/collection/components/molecules/profile/test/profile.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/profile/test/profile.component.spec.js +0 -17
- package/dist/collection/components/molecules/profile/test/profile.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/select/test/select.component.e2e.js +0 -26
- package/dist/collection/components/molecules/select/test/select.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/select/test/select.component.spec.js +0 -17
- package/dist/collection/components/molecules/select/test/select.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/stepper/test/stepper.component.e2e.js +0 -26
- package/dist/collection/components/molecules/stepper/test/stepper.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/stepper/test/stepper.component.spec.js +0 -17
- package/dist/collection/components/molecules/stepper/test/stepper.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/table-cell/test/table-cell.component.e2e.js +0 -26
- package/dist/collection/components/molecules/table-cell/test/table-cell.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/table-cell/test/table-cell.component.spec.js +0 -17
- package/dist/collection/components/molecules/table-cell/test/table-cell.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/table-footer/test/table-footer.component.e2e.js +0 -26
- package/dist/collection/components/molecules/table-footer/test/table-footer.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/table-footer/test/table-footer.component.spec.js +0 -17
- package/dist/collection/components/molecules/table-footer/test/table-footer.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/table-header/test/table-header.component.e2e.js +0 -26
- package/dist/collection/components/molecules/table-header/test/table-header.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/table-header/test/table-header.component.spec.js +0 -17
- package/dist/collection/components/molecules/table-header/test/table-header.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/table-row/test/table-row.component.e2e.js +0 -26
- package/dist/collection/components/molecules/table-row/test/table-row.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/table-row/test/table-row.component.spec.js +0 -17
- package/dist/collection/components/molecules/table-row/test/table-row.component.spec.js.map +0 -1
- package/dist/collection/components/molecules/toast/test/toast.component.e2e.js +0 -26
- package/dist/collection/components/molecules/toast/test/toast.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/toast/test/toast.component.spec.js +0 -17
- package/dist/collection/components/molecules/toast/test/toast.component.spec.js.map +0 -1
- package/dist/collection/components/organisms/drawer/test/drawer.component.e2e.js +0 -26
- package/dist/collection/components/organisms/drawer/test/drawer.component.e2e.js.map +0 -1
- package/dist/collection/components/organisms/drawer/test/drawer.component.spec.js +0 -17
- package/dist/collection/components/organisms/drawer/test/drawer.component.spec.js.map +0 -1
- package/dist/collection/components/organisms/modal/test/modal.component.e2e.js +0 -26
- package/dist/collection/components/organisms/modal/test/modal.component.e2e.js.map +0 -1
- package/dist/collection/components/organisms/modal/test/modal.component.spec.js +0 -17
- package/dist/collection/components/organisms/modal/test/modal.component.spec.js.map +0 -1
- package/dist/collection/components/organisms/navbar/test/navbar.component.e2e.js +0 -26
- package/dist/collection/components/organisms/navbar/test/navbar.component.e2e.js.map +0 -1
- package/dist/collection/components/organisms/navbar/test/navbar.component.spec.js +0 -17
- package/dist/collection/components/organisms/navbar/test/navbar.component.spec.js.map +0 -1
- package/dist/collection/components/organisms/table/test/table.component.e2e.js +0 -26
- package/dist/collection/components/organisms/table/test/table.component.e2e.js.map +0 -1
- package/dist/collection/components/organisms/table/test/table.component.spec.js +0 -18
- package/dist/collection/components/organisms/table/test/table.component.spec.js.map +0 -1
- package/dist/components/input-group.component.js +0 -181
- package/dist/components/input-group.component.js.map +0 -1
- package/dist/components/p-input-group.d.ts +0 -11
- package/dist/components/p-input-group.js +0 -8
- package/dist/components/p-input-group.js.map +0 -1
- package/dist/esm/child-of-fec6ab3a.js +0 -9
- package/dist/esm/child-of-fec6ab3a.js.map +0 -1
- package/dist/esm/floating-ui.dom.esm-314a52b2.js +0 -1327
- package/dist/esm/floating-ui.dom.esm-314a52b2.js.map +0 -1
- package/dist/esm/iban-c412c889.js +0 -14
- package/dist/esm/iban-c412c889.js.map +0 -1
- package/dist/esm/icons-cf12e4d2.js +0 -1546
- package/dist/esm/icons-cf12e4d2.js.map +0 -1
- package/dist/esm/icons-deprecated-2e1d124f.js +0 -1121
- package/dist/esm/icons-deprecated-2e1d124f.js.map +0 -1
- package/dist/esm/index-5fa2e728.js +0 -2300
- package/dist/esm/index-5fa2e728.js.map +0 -1
- package/dist/esm/index-f99096d4.js +0 -2624
- package/dist/esm/index-f99096d4.js.map +0 -1
- package/dist/esm/localization-2c641f90.js +0 -59
- package/dist/esm/localization-2c641f90.js.map +0 -1
- package/dist/esm/object-get-by-path-273a7106.js +0 -114
- package/dist/esm/object-get-by-path-273a7106.js.map +0 -1
- package/dist/esm/p-dropdown_2.entry.js +0 -229
- package/dist/esm/p-dropdown_2.entry.js.map +0 -1
- package/dist/esm/p-helper_3.entry.js +0 -150
- package/dist/esm/p-helper_3.entry.js.map +0 -1
- package/dist/esm/p-tooltip.entry.js +0 -160
- package/dist/esm/p-tooltip.entry.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/screens-c0e0dee2.js +0 -54
- package/dist/esm/screens-c0e0dee2.js.map +0 -1
- package/dist/paperless/p-013cd7f9.entry.js +0 -2
- package/dist/paperless/p-013cd7f9.entry.js.map +0 -1
- package/dist/paperless/p-0348e450.entry.js +0 -2
- package/dist/paperless/p-0348e450.entry.js.map +0 -1
- package/dist/paperless/p-047c1c6f.entry.js +0 -2
- package/dist/paperless/p-047c1c6f.entry.js.map +0 -1
- package/dist/paperless/p-08ea38ad.entry.js +0 -2
- package/dist/paperless/p-08ea38ad.entry.js.map +0 -1
- package/dist/paperless/p-16a18649.entry.js +0 -2
- package/dist/paperless/p-16a18649.entry.js.map +0 -1
- package/dist/paperless/p-1fc0a8b4.entry.js +0 -2
- package/dist/paperless/p-1fc0a8b4.entry.js.map +0 -1
- package/dist/paperless/p-221dbb71.entry.js +0 -2
- package/dist/paperless/p-221dbb71.entry.js.map +0 -1
- package/dist/paperless/p-23ca3688.entry.js +0 -2
- package/dist/paperless/p-23ca3688.entry.js.map +0 -1
- package/dist/paperless/p-2e3b9db4.js +0 -2
- package/dist/paperless/p-2e3b9db4.js.map +0 -1
- package/dist/paperless/p-2f9e9197.entry.js +0 -2
- package/dist/paperless/p-2f9e9197.entry.js.map +0 -1
- package/dist/paperless/p-32056913.entry.js +0 -2
- package/dist/paperless/p-32056913.entry.js.map +0 -1
- package/dist/paperless/p-33fa21e3.js +0 -2
- package/dist/paperless/p-33fa21e3.js.map +0 -1
- package/dist/paperless/p-385943b2.entry.js +0 -2
- package/dist/paperless/p-385943b2.entry.js.map +0 -1
- package/dist/paperless/p-393eba2f.entry.js +0 -2
- package/dist/paperless/p-393eba2f.entry.js.map +0 -1
- package/dist/paperless/p-3d867690.entry.js +0 -2
- package/dist/paperless/p-3d867690.entry.js.map +0 -1
- package/dist/paperless/p-3e9d994a.entry.js +0 -2
- package/dist/paperless/p-3e9d994a.entry.js.map +0 -1
- package/dist/paperless/p-45463125.entry.js +0 -2
- package/dist/paperless/p-45463125.entry.js.map +0 -1
- package/dist/paperless/p-4d330cfc.js +0 -2
- package/dist/paperless/p-4d330cfc.js.map +0 -1
- package/dist/paperless/p-5e789bb1.entry.js +0 -2
- package/dist/paperless/p-5e789bb1.entry.js.map +0 -1
- package/dist/paperless/p-64b53130.entry.js +0 -2
- package/dist/paperless/p-64b53130.entry.js.map +0 -1
- package/dist/paperless/p-64b68231.js +0 -3
- package/dist/paperless/p-64b68231.js.map +0 -1
- package/dist/paperless/p-6cddc325.js +0 -2
- package/dist/paperless/p-6cddc325.js.map +0 -1
- package/dist/paperless/p-6e71ebca.entry.js +0 -2
- package/dist/paperless/p-6e71ebca.entry.js.map +0 -1
- package/dist/paperless/p-6f7721eb.entry.js +0 -2
- package/dist/paperless/p-6f7721eb.entry.js.map +0 -1
- package/dist/paperless/p-6fed974c.entry.js +0 -2
- package/dist/paperless/p-6fed974c.entry.js.map +0 -1
- package/dist/paperless/p-75006522.js +0 -2
- package/dist/paperless/p-75006522.js.map +0 -1
- package/dist/paperless/p-79cc09c0.entry.js +0 -2
- package/dist/paperless/p-79cc09c0.entry.js.map +0 -1
- package/dist/paperless/p-7a577384.entry.js +0 -2
- package/dist/paperless/p-7a577384.entry.js.map +0 -1
- package/dist/paperless/p-7beb3401.entry.js +0 -2
- package/dist/paperless/p-7beb3401.entry.js.map +0 -1
- package/dist/paperless/p-7d5f6497.entry.js +0 -2
- package/dist/paperless/p-7d5f6497.entry.js.map +0 -1
- package/dist/paperless/p-851a7662.entry.js +0 -2
- package/dist/paperless/p-851a7662.entry.js.map +0 -1
- package/dist/paperless/p-909879e3.entry.js +0 -3
- package/dist/paperless/p-909879e3.entry.js.map +0 -1
- package/dist/paperless/p-937b2d74.entry.js +0 -2
- package/dist/paperless/p-937b2d74.entry.js.map +0 -1
- package/dist/paperless/p-95eadadd.entry.js +0 -2
- package/dist/paperless/p-95eadadd.entry.js.map +0 -1
- package/dist/paperless/p-9fa5d08a.entry.js +0 -2
- package/dist/paperless/p-9fa5d08a.entry.js.map +0 -1
- package/dist/paperless/p-a587ff9f.entry.js +0 -2
- package/dist/paperless/p-a587ff9f.entry.js.map +0 -1
- package/dist/paperless/p-a7b8e22f.entry.js +0 -2
- package/dist/paperless/p-a7b8e22f.entry.js.map +0 -1
- package/dist/paperless/p-aa058967.entry.js +0 -2
- package/dist/paperless/p-aa058967.entry.js.map +0 -1
- package/dist/paperless/p-af4aedaf.entry.js +0 -2
- package/dist/paperless/p-af4aedaf.entry.js.map +0 -1
- package/dist/paperless/p-b5430fae.entry.js +0 -2
- package/dist/paperless/p-b5430fae.entry.js.map +0 -1
- package/dist/paperless/p-b8e718c7.entry.js +0 -2
- package/dist/paperless/p-b8e718c7.entry.js.map +0 -1
- package/dist/paperless/p-b9a7e240.entry.js +0 -2
- package/dist/paperless/p-b9a7e240.entry.js.map +0 -1
- package/dist/paperless/p-bc46f89a.entry.js +0 -2
- package/dist/paperless/p-bc46f89a.entry.js.map +0 -1
- package/dist/paperless/p-be0c925e.entry.js +0 -2
- package/dist/paperless/p-be0c925e.entry.js.map +0 -1
- package/dist/paperless/p-bfbab545.entry.js +0 -2
- package/dist/paperless/p-bfbab545.entry.js.map +0 -1
- package/dist/paperless/p-c6bcbcbf.entry.js +0 -2
- package/dist/paperless/p-c6bcbcbf.entry.js.map +0 -1
- package/dist/paperless/p-cb7c509e.entry.js +0 -2
- package/dist/paperless/p-cb7c509e.entry.js.map +0 -1
- package/dist/paperless/p-cc321a7b.entry.js +0 -2
- package/dist/paperless/p-cc321a7b.entry.js.map +0 -1
- package/dist/paperless/p-d3d8468b.js +0 -2
- package/dist/paperless/p-d3d8468b.js.map +0 -1
- package/dist/paperless/p-d5d413a1.js +0 -2
- package/dist/paperless/p-d5d413a1.js.map +0 -1
- package/dist/paperless/p-d81a30f6.entry.js +0 -2
- package/dist/paperless/p-d81a30f6.entry.js.map +0 -1
- package/dist/paperless/p-dce95c92.entry.js +0 -2
- package/dist/paperless/p-dce95c92.entry.js.map +0 -1
- package/dist/paperless/p-dd6d3839.entry.js +0 -2
- package/dist/paperless/p-dd6d3839.entry.js.map +0 -1
- package/dist/paperless/p-e10cf2d3.entry.js +0 -2
- package/dist/paperless/p-e10cf2d3.entry.js.map +0 -1
- package/dist/paperless/p-ea3bce45.entry.js +0 -2
- package/dist/paperless/p-ea3bce45.entry.js.map +0 -1
- package/dist/paperless/p-f78afad9.entry.js +0 -2
- package/dist/paperless/p-f78afad9.entry.js.map +0 -1
- package/dist/paperless/p-f8544f0c.js +0 -2
- package/dist/paperless/p-f8544f0c.js.map +0 -1
- package/dist/paperless/p-fcaa0539.entry.js +0 -2
- package/dist/paperless/p-fcaa0539.entry.js.map +0 -1
- package/dist/paperless/p-fef32402.js +0 -2
- package/dist/paperless/p-fef32402.js.map +0 -1
- package/dist/style/form/_checkbox.scss +0 -135
- package/dist/style/form/_input.scss +0 -31
- package/dist/style/form/_mixins.scss +0 -129
- package/dist/style/form/_radio.scss +0 -58
- package/dist/style/form/_range.scss +0 -20
- package/dist/style/form/_textarea.scss +0 -31
- package/dist/style/form/index.scss +0 -5
- package/dist/types/components/molecules/input-group/input-group.component.d.ts +0 -81
- package/dist/workbox-bc53c9ad.js +0 -2
- package/dist/workbox-bc53c9ad.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-slider.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/content-slider/content-slider.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,OAAO,EACP,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AAOvB,MAAM,OAAO,aAAa;;IA+BjB,WAAM,GAAkB,EAAE,CAAC;IAQ3B,yBAAoB,GAAG,KAAK,CAAC;+BAnCE,KAAK;uBAKb,KAAK;6BAKC,KAAK;iCAKD,KAAK;;wBAQd,CAAC;uBACF,CAAC;qBAYH,KAAK;;EAElC,mBAAmB;IAClB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACtD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAkB,CAAC;EAClD,CAAC;EAED,gBAAgB;IACf,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;IAClE,IAAI,CAAC,eAAe,EAAE,CAAC;IACvB,IAAI,CAAC,mBAAmB,EAAE,CAAC;EAC5B,CAAC;EAED,oBAAoB;IACnB,IAAI,IAAI,CAAC,0BAA0B,EAAE;MACpC,IAAI,CAAC,0BAA0B,CAAC,UAAU,EAAE,CAAC;KAC7C;EACF,CAAC;EAED,M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tElement,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\n\n@Component({\n\ttag: 'p-content-slider',\n\tstyleUrl: 'content-slider.component.scss',\n\tshadow: true,\n})\nexport class ContentSlider {\n\t/**\n\t * Wether to hide the indicator on mobile\n\t */\n\t@Prop() hideMobileIndicator: boolean = false;\n\n\t/**\n\t * Wether to disable dragging the content\n\t */\n\t@Prop() disableDrag: boolean = false;\n\n\t/**\n\t * Wether to disable auto centering the content\n\t */\n\t@Prop() disableAutoCenter: boolean = false;\n\n\t/**\n\t * Wether to disable clicking the indicator scrolls content\n\t */\n\t@Prop() disableIndicatorClick: boolean = false;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _visibleIndex: number;\n\t@State() private _outerHeight = 0;\n\t@State() private _totalWidth = 0;\n\tprivate _sliderRef: HTMLElement;\n\tprivate _innerSliderRef: HTMLElement;\n\tprivate _items: HTMLElement[] = [];\n\tprivate _innerSliderResizeObserver: ResizeObserver;\n\n\t// mouse movement stuff\n\tprivate _startX: number;\n\tprivate _startMouseX: number;\n\tprivate _lastMouseX: number;\n\tprivate _lastIndex: number;\n\tprivate _shouldCheckLocation = false;\n\t@State() private _dragging = false;\n\n\tcomponentWillRender() {\n\t\tconst items = this._el.querySelectorAll(':scope > *');\n\t\tthis._items = Array.from(items) as HTMLElement[];\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n\t\tthis._calculateWidth();\n\t\tthis._calculateIndicator();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._innerSliderResizeObserver) {\n\t\t\tthis._innerSliderResizeObserver.disconnect();\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-content-slider\">\n\t\t\t\t<div\n\t\t\t\t\tclass={`slider ${!this.disableDrag && 'draggable'} ${\n\t\t\t\t\t\tthis._dragging && 'dragging'\n\t\t\t\t\t}`}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\theight: `${this._outerHeight}px`,\n\t\t\t\t\t}}\n\t\t\t\t\tref={(el) => (this._sliderRef = el)}\n\t\t\t\t\tonMouseDown={(e) => this._mouseDownHandler(e)}\n\t\t\t\t\tonTouchStart={(e) => this._mouseDownHandler(e)}\n\t\t\t\t\tonMouseMove={(e) => this._mouseMoveHandler(e)}\n\t\t\t\t\tonTouchMove={(e) => this._mouseMoveHandler(e)}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"inner-slider\"\n\t\t\t\t\t\tref={(ref) => this._setInnerSliderReft(ref)}\n\t\t\t\t\t\tonTransitionEnd={() => this._transitionEndHandler()}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div\n\t\t\t\t\tclass={`indicator ${this.hideMobileIndicator && 'hidden'}`}\n\t\t\t\t>\n\t\t\t\t\t{this._items.map((_, i) => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tonClick={() => this._scrollTo(i, true)}\n\t\t\t\t\t\t\tclass={`item ${\n\t\t\t\t\t\t\t\t!this.disableIndicatorClick && 'cursor-pointer'\n\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p-slider-indicator\n\t\t\t\t\t\t\t\tactive={i === this._visibleIndex}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _mouseDownHandler(e) {\n\t\tif (this.disableDrag || this._dragging) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst innerSliderStyle = getComputedStyle(this._innerSliderRef);\n\t\tif (innerSliderStyle.flexWrap === 'wrap') {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._startMouseX = e.x;\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\t\tif (e.type === 'touchstart') {\n\t\t\tthis._startMouseX = e.touches?.[0].clientX;\n\t\t}\n\n\t\tconst innerSliderRect = this._innerSliderRef.getBoundingClientRect();\n\t\tconst offsetLeft = innerSliderRect.x - sliderRect.x;\n\n\t\tthis._startX = this._startMouseX - sliderRect.x - offsetLeft;\n\t\tthis._lastIndex = this._visibleIndex;\n\t\tthis._dragging = true;\n\t}\n\n\tprivate _mouseMoveHandler(e) {\n\t\tif (!e || !this._dragging || this.disableDrag) {\n\t\t\treturn;\n\t\t}\n\n\t\te.preventDefault();\n\n\t\tthis._shouldCheckLocation = true;\n\n\t\tif (\n\t\t\tthis._innerSliderRef.style.getPropertyValue('pointer-events') === ''\n\t\t) {\n\t\t\tthis._innerSliderRef.style.pointerEvents = 'none';\n\t\t}\n\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\t\tlet x = e.clientX - sliderRect.left;\n\t\tthis._lastMouseX = e.x;\n\t\tif (e.type === 'touchmove') {\n\t\t\tx = e.touches?.[0].clientX - sliderRect.left;\n\t\t\tthis._lastMouseX = e.touches?.[0].clientX;\n\t\t}\n\n\t\tthis._innerSliderRef.style.setProperty(\n\t\t\t'--tw-translate-x',\n\t\t\t`${x - this._startX}px`\n\t\t);\n\n\t\tthis._checkBoundary();\n\t\tthis._calculateIndicator();\n\t}\n\n\tprivate _transitionEndHandler() {\n\t\tthis._calculateIndicator();\n\t}\n\n\t@Listen('mouseup', { target: 'window' })\n\t@Listen('touchend', { target: 'window' })\n\tmouseUpHandler() {\n\t\tthis._dragging = false;\n\t\tthis._innerSliderRef.style.removeProperty('pointer-events');\n\n\t\tthis._checkLocation();\n\t}\n\n\t@Listen('resize', { target: 'window' })\n\tresizeHandler() {\n\t\tif (this._innerSliderRef) {\n\t\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', '0px');\n\t\t\tthis._calculateWidth();\n\t\t\tthis._calculateIndicator();\n\t\t}\n\t}\n\n\tprivate _setInnerSliderReft(ref) {\n\t\tthis._innerSliderRef = ref;\n\t\tthis._innerSliderResizeObserver = new ResizeObserver(() =>\n\t\t\tthis._calculateHeight()\n\t\t);\n\t\tthis._innerSliderResizeObserver.observe(this._innerSliderRef);\n\t}\n\n\tprivate _scrollTo(i: number, manual = false) {\n\t\tif (this.disableIndicatorClick && manual) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst el = this._items[i];\n\n\t\tif (i === 0) {\n\t\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n\t\t\treturn;\n\t\t}\n\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\t\tconst innerSliderRect = this._innerSliderRef.getBoundingClientRect();\n\t\tconst elRect = el.getBoundingClientRect();\n\n\t\tconst offsetLeft = elRect.x - innerSliderRect.x;\n\n\t\tconst centerOffset =\n\t\t\toffsetLeft + elRect.width / 2 - sliderRect.width / 2;\n\n\t\tthis._innerSliderRef.style.setProperty(\n\t\t\t'--tw-translate-x',\n\t\t\t`-${centerOffset}px`\n\t\t);\n\n\t\tthis._checkBoundary();\n\t\tthis._calculateIndicator();\n\t}\n\n\tprivate _checkBoundary() {\n\t\tlet outer = this._sliderRef.getBoundingClientRect();\n\n\t\tconst left = parseInt(\n\t\t\tthis._innerSliderRef.style.getPropertyValue('--tw-translate-x')\n\t\t);\n\t\tif (left > 0) {\n\t\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n\t\t}\n\n\t\tconst maxLeft = (this._totalWidth - outer.width) * -1;\n\t\tif (left < maxLeft) {\n\t\t\tthis._innerSliderRef.style.setProperty(\n\t\t\t\t'--tw-translate-x',\n\t\t\t\t`${maxLeft}px`\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate _calculateIndicator() {\n\t\tfor (let i = 0; i < this._items.length; i++) {\n\t\t\tconst item = this._items[i];\n\t\t\tconst visible = this._isVisible(item);\n\n\t\t\tif (visible) {\n\t\t\t\tthis._visibleIndex = i;\n\t\t\t}\n\n\t\t\tif (i === 0 && visible) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _checkLocation() {\n\t\tif (!this._shouldCheckLocation) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet scrollToIndex = null;\n\t\tif (this._lastIndex !== this._visibleIndex) {\n\t\t\tscrollToIndex = this._visibleIndex;\n\t\t}\n\n\t\tif (this._lastIndex === this._visibleIndex) {\n\t\t\tif (this._lastMouseX > this._startMouseX && this._lastIndex !== 0) {\n\t\t\t\tscrollToIndex = this._lastIndex - 1;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tthis._lastMouseX < this._startMouseX &&\n\t\t\t\tthis._lastIndex !== this._items?.length - 1\n\t\t\t) {\n\t\t\t\tscrollToIndex = this._lastIndex + 1;\n\t\t\t}\n\t\t}\n\n\t\tif (scrollToIndex !== null) {\n\t\t\tthis._shouldCheckLocation = false;\n\t\t\tsetTimeout(() => this._scrollTo(scrollToIndex), 100);\n\t\t}\n\t}\n\n\tprivate _isVisible(el: HTMLElement) {\n\t\tif (!this._el || !el) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst elRect = el.getBoundingClientRect();\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\n\t\treturn (\n\t\t\t(elRect.left >= sliderRect.left &&\n\t\t\t\telRect.right <= sliderRect.right) ||\n\t\t\t(this._isMobile(el) &&\n\t\t\t\telRect.left + elRect.width / 2 >= sliderRect.left &&\n\t\t\t\telRect.left + elRect.width / 2 <= sliderRect.right)\n\t\t);\n\t}\n\n\tprivate _calculateWidth() {\n\t\tlet totalWidth = 0;\n\n\t\tfor (let item of this._items) {\n\t\t\tconst rect = item.getBoundingClientRect();\n\t\t\ttotalWidth += rect.width;\n\t\t}\n\n\t\tconst sliderStyle = getComputedStyle(this._sliderRef);\n\t\tconst padding = parseInt(sliderStyle.padding) * 2;\n\n\t\tconst innerSliderStyle = getComputedStyle(this._innerSliderRef);\n\t\tconst gap = parseInt(innerSliderStyle.gap) * (this._items.length - 1);\n\n\t\ttotalWidth += padding + gap;\n\n\t\tthis._totalWidth = totalWidth;\n\t}\n\n\tprivate _calculateHeight() {\n\t\tconst outerHeight = this._items.at(0).getBoundingClientRect().height;\n\t\tif (outerHeight != this._outerHeight) {\n\t\t\tthis._outerHeight = outerHeight;\n\t\t}\n\t}\n\n\tprivate _isMobile(el?: HTMLElement) {\n\t\tif (!el) {\n\t\t\tel = this._items.at(0);\n\t\t}\n\n\t\tconst elRect = el.getBoundingClientRect();\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\n\t\treturn sliderRect.width - elRect.width < 10;\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"content-slider.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/content-slider/content-slider.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,OAAO,EACP,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AAOvB,MAAM,OAAO,aAAa;;mCAIc,KAAK;2BAKb,KAAK;iCAKC,KAAK;qCAKD,KAAK;;4BAQd,CAAC;2BACF,CAAC;yBAYH,KAAK;;IAnBlC;;OAEG;IACgB,GAAG,CAAc;IAK5B,UAAU,CAAc;IACxB,eAAe,CAAc;IAC7B,MAAM,GAAkB,EAAE,CAAC;IAC3B,0BAA0B,CAAiB;IAEnD,uBAAuB;IACf,OAAO,CAAS;IAChB,YAAY,CAAS;IACrB,WAAW,CAAS;IACpB,UAAU,CAAS;IACnB,oBAAoB,GAAG,KAAK,CAAC;IAGrC,mBAAmB;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;QACtD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAkB,CAAC;IAClD,CAAC;IAED,gBAAgB;QACf,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;QAClE,IAA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C;IAEO,SAAS,CAAC,EAAgB;QACjC,IAAI,CAAC,EAAE,EAAE,CAAC;YACT,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACxB,CAAC;QAED,MAAM,MAAM,GAAG,EAAE,CAAC,qBAAqB,EAAE,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAC;QAE3D,OAAO,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,GAAG,EAAE,CAAC;IAC7C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tElement,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\n\n@Component({\n\ttag: 'p-content-slider',\n\tstyleUrl: 'content-slider.component.scss',\n\tshadow: true,\n})\nexport class ContentSlider {\n\t/**\n\t * Wether to hide the indicator on mobile\n\t */\n\t@Prop() hideMobileIndicator: boolean = false;\n\n\t/**\n\t * Wether to disable dragging the content\n\t */\n\t@Prop() disableDrag: boolean = false;\n\n\t/**\n\t * Wether to disable auto centering the content\n\t */\n\t@Prop() disableAutoCenter: boolean = false;\n\n\t/**\n\t * Wether to disable clicking the indicator scrolls content\n\t */\n\t@Prop() disableIndicatorClick: boolean = false;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _visibleIndex: number;\n\t@State() private _outerHeight = 0;\n\t@State() private _totalWidth = 0;\n\tprivate _sliderRef: HTMLElement;\n\tprivate _innerSliderRef: HTMLElement;\n\tprivate _items: HTMLElement[] = [];\n\tprivate _innerSliderResizeObserver: ResizeObserver;\n\n\t// mouse movement stuff\n\tprivate _startX: number;\n\tprivate _startMouseX: number;\n\tprivate _lastMouseX: number;\n\tprivate _lastIndex: number;\n\tprivate _shouldCheckLocation = false;\n\t@State() private _dragging = false;\n\n\tcomponentWillRender() {\n\t\tconst items = this._el.querySelectorAll(':scope > *');\n\t\tthis._items = Array.from(items) as HTMLElement[];\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n\t\tthis._calculateWidth();\n\t\tthis._calculateIndicator();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._innerSliderResizeObserver) {\n\t\t\tthis._innerSliderResizeObserver.disconnect();\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-content-slider\">\n\t\t\t\t<div\n\t\t\t\t\tclass={`slider ${!this.disableDrag && 'draggable'} ${\n\t\t\t\t\t\tthis._dragging && 'dragging'\n\t\t\t\t\t}`}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\theight: `${this._outerHeight}px`,\n\t\t\t\t\t}}\n\t\t\t\t\tref={(el) => (this._sliderRef = el)}\n\t\t\t\t\tonMouseDown={(e) => this._mouseDownHandler(e)}\n\t\t\t\t\tonTouchStart={(e) => this._mouseDownHandler(e)}\n\t\t\t\t\tonMouseMove={(e) => this._mouseMoveHandler(e)}\n\t\t\t\t\tonTouchMove={(e) => this._mouseMoveHandler(e)}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"inner-slider\"\n\t\t\t\t\t\tref={(ref) => this._setInnerSliderReft(ref)}\n\t\t\t\t\t\tonTransitionEnd={() => this._transitionEndHandler()}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div\n\t\t\t\t\tclass={`indicator ${this.hideMobileIndicator && 'hidden'}`}\n\t\t\t\t>\n\t\t\t\t\t{this._items.map((_, i) => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tonClick={() => this._scrollTo(i, true)}\n\t\t\t\t\t\t\tclass={`item ${\n\t\t\t\t\t\t\t\t!this.disableIndicatorClick && 'cursor-pointer'\n\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p-slider-indicator\n\t\t\t\t\t\t\t\tactive={i === this._visibleIndex}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _mouseDownHandler(e) {\n\t\tif (this.disableDrag || this._dragging) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst innerSliderStyle = getComputedStyle(this._innerSliderRef);\n\t\tif (innerSliderStyle.flexWrap === 'wrap') {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._startMouseX = e.x;\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\t\tif (e.type === 'touchstart') {\n\t\t\tthis._startMouseX = e.touches?.[0].clientX;\n\t\t}\n\n\t\tconst innerSliderRect = this._innerSliderRef.getBoundingClientRect();\n\t\tconst offsetLeft = innerSliderRect.x - sliderRect.x;\n\n\t\tthis._startX = this._startMouseX - sliderRect.x - offsetLeft;\n\t\tthis._lastIndex = this._visibleIndex;\n\t\tthis._dragging = true;\n\t}\n\n\tprivate _mouseMoveHandler(e) {\n\t\tif (!e || !this._dragging || this.disableDrag) {\n\t\t\treturn;\n\t\t}\n\n\t\te.preventDefault();\n\n\t\tthis._shouldCheckLocation = true;\n\n\t\tif (\n\t\t\tthis._innerSliderRef.style.getPropertyValue('pointer-events') === ''\n\t\t) {\n\t\t\tthis._innerSliderRef.style.pointerEvents = 'none';\n\t\t}\n\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\t\tlet x = e.clientX - sliderRect.left;\n\t\tthis._lastMouseX = e.x;\n\t\tif (e.type === 'touchmove') {\n\t\t\tx = e.touches?.[0].clientX - sliderRect.left;\n\t\t\tthis._lastMouseX = e.touches?.[0].clientX;\n\t\t}\n\n\t\tthis._innerSliderRef.style.setProperty(\n\t\t\t'--tw-translate-x',\n\t\t\t`${x - this._startX}px`\n\t\t);\n\n\t\tthis._checkBoundary();\n\t\tthis._calculateIndicator();\n\t}\n\n\tprivate _transitionEndHandler() {\n\t\tthis._calculateIndicator();\n\t}\n\n\t@Listen('mouseup', { target: 'window' })\n\t@Listen('touchend', { target: 'window' })\n\tmouseUpHandler() {\n\t\tthis._dragging = false;\n\t\tthis._innerSliderRef.style.removeProperty('pointer-events');\n\n\t\tthis._checkLocation();\n\t}\n\n\t@Listen('resize', { target: 'window' })\n\tresizeHandler() {\n\t\tif (this._innerSliderRef) {\n\t\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', '0px');\n\t\t\tthis._calculateWidth();\n\t\t\tthis._calculateIndicator();\n\t\t}\n\t}\n\n\tprivate _setInnerSliderReft(ref) {\n\t\tthis._innerSliderRef = ref;\n\t\tthis._innerSliderResizeObserver = new ResizeObserver(() =>\n\t\t\tthis._calculateHeight()\n\t\t);\n\t\tthis._innerSliderResizeObserver.observe(this._innerSliderRef);\n\t}\n\n\tprivate _scrollTo(i: number, manual = false) {\n\t\tif (this.disableIndicatorClick && manual) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst el = this._items[i];\n\n\t\tif (i === 0) {\n\t\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n\t\t\treturn;\n\t\t}\n\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\t\tconst innerSliderRect = this._innerSliderRef.getBoundingClientRect();\n\t\tconst elRect = el.getBoundingClientRect();\n\n\t\tconst offsetLeft = elRect.x - innerSliderRect.x;\n\n\t\tconst centerOffset =\n\t\t\toffsetLeft + elRect.width / 2 - sliderRect.width / 2;\n\n\t\tthis._innerSliderRef.style.setProperty(\n\t\t\t'--tw-translate-x',\n\t\t\t`-${centerOffset}px`\n\t\t);\n\n\t\tthis._checkBoundary();\n\t\tthis._calculateIndicator();\n\t}\n\n\tprivate _checkBoundary() {\n\t\tlet outer = this._sliderRef.getBoundingClientRect();\n\n\t\tconst left = parseInt(\n\t\t\tthis._innerSliderRef.style.getPropertyValue('--tw-translate-x')\n\t\t);\n\t\tif (left > 0) {\n\t\t\tthis._innerSliderRef.style.setProperty('--tw-translate-x', `0px`);\n\t\t}\n\n\t\tconst maxLeft = (this._totalWidth - outer.width) * -1;\n\t\tif (left < maxLeft) {\n\t\t\tthis._innerSliderRef.style.setProperty(\n\t\t\t\t'--tw-translate-x',\n\t\t\t\t`${maxLeft}px`\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate _calculateIndicator() {\n\t\tfor (let i = 0; i < this._items.length; i++) {\n\t\t\tconst item = this._items[i];\n\t\t\tconst visible = this._isVisible(item);\n\n\t\t\tif (visible) {\n\t\t\t\tthis._visibleIndex = i;\n\t\t\t}\n\n\t\t\tif (i === 0 && visible) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _checkLocation() {\n\t\tif (!this._shouldCheckLocation) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet scrollToIndex = null;\n\t\tif (this._lastIndex !== this._visibleIndex) {\n\t\t\tscrollToIndex = this._visibleIndex;\n\t\t}\n\n\t\tif (this._lastIndex === this._visibleIndex) {\n\t\t\tif (this._lastMouseX > this._startMouseX && this._lastIndex !== 0) {\n\t\t\t\tscrollToIndex = this._lastIndex - 1;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tthis._lastMouseX < this._startMouseX &&\n\t\t\t\tthis._lastIndex !== this._items?.length - 1\n\t\t\t) {\n\t\t\t\tscrollToIndex = this._lastIndex + 1;\n\t\t\t}\n\t\t}\n\n\t\tif (scrollToIndex !== null) {\n\t\t\tthis._shouldCheckLocation = false;\n\t\t\tsetTimeout(() => this._scrollTo(scrollToIndex), 100);\n\t\t}\n\t}\n\n\tprivate _isVisible(el: HTMLElement) {\n\t\tif (!this._el || !el) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst elRect = el.getBoundingClientRect();\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\n\t\treturn (\n\t\t\t(elRect.left >= sliderRect.left &&\n\t\t\t\telRect.right <= sliderRect.right) ||\n\t\t\t(this._isMobile(el) &&\n\t\t\t\telRect.left + elRect.width / 2 >= sliderRect.left &&\n\t\t\t\telRect.left + elRect.width / 2 <= sliderRect.right)\n\t\t);\n\t}\n\n\tprivate _calculateWidth() {\n\t\tlet totalWidth = 0;\n\n\t\tfor (let item of this._items) {\n\t\t\tconst rect = item.getBoundingClientRect();\n\t\t\ttotalWidth += rect.width;\n\t\t}\n\n\t\tconst sliderStyle = getComputedStyle(this._sliderRef);\n\t\tconst padding = parseInt(sliderStyle.padding) * 2;\n\n\t\tconst innerSliderStyle = getComputedStyle(this._innerSliderRef);\n\t\tconst gap = parseInt(innerSliderStyle.gap) * (this._items.length - 1);\n\n\t\ttotalWidth += padding + gap;\n\n\t\tthis._totalWidth = totalWidth;\n\t}\n\n\tprivate _calculateHeight() {\n\t\tconst outerHeight = this._items.at(0).getBoundingClientRect().height;\n\t\tif (outerHeight != this._outerHeight) {\n\t\t\tthis._outerHeight = outerHeight;\n\t\t}\n\t}\n\n\tprivate _isMobile(el?: HTMLElement) {\n\t\tif (!el) {\n\t\t\tel = this._items.at(0);\n\t\t}\n\n\t\tconst elRect = el.getBoundingClientRect();\n\t\tconst sliderRect = this._sliderRef.getBoundingClientRect();\n\n\t\treturn sliderRect.width - elRect.width < 10;\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.mb-6{margin-bottom:1.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}*{box-sizing:border-box}:host{align-items:center;display:flex;flex-direction:column;gap:1.5rem;justify-content:space-between;margin-bottom:1.5rem;width:100%}.static{position:static!important}.hidden{display:none!important}.h-\[17\.5rem\]{height:17.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}.resize{resize:both!important}.gap-2{gap:.5rem!important}.rounded{border-radius:.25rem!important}.border-0{border-width:0!important}.border-b{border-bottom-width:1px!important}.border-solid{border-style:solid!important}.border-mystic-medium{--tw-border-opacity:1!important;border-color:rgb(227 236 243/var(--tw-border-opacity,1))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.px-14{padding-left:3.5rem!important;padding-right:3.5rem!important}.text-storm-vague{--tw-text-opacity:1!important;color:rgb(152 154 183/var(--tw-text-opacity,1))!important}@media (min-width:40rem){.tablet\:max-w-xs{max-width:20rem!important}.tablet\:px-1{padding-left:.25rem!important;padding-right:.25rem!important}}
|
|
@@ -2,234 +2,248 @@ import { Host, h, } from "@stencil/core";
|
|
|
2
2
|
import { clsx } from "clsx";
|
|
3
3
|
import "cropperjs";
|
|
4
4
|
export class Cropper {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
if (current === this._maxScale) {
|
|
98
|
-
this._currentScale = 100;
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
const minMaxDiff = this._maxScale - this._minScale;
|
|
102
|
-
const currentDiff = current - this._minScale;
|
|
103
|
-
const percentage = (currentDiff / minMaxDiff) * 100;
|
|
104
|
-
this._currentScale = percentage;
|
|
105
|
-
}
|
|
106
|
-
_onInput(value) {
|
|
107
|
-
const transform = this._imageRef.$getTransform();
|
|
108
|
-
const current = transform[0];
|
|
109
|
-
const minMaxDiff = this._maxScale - this._minScale;
|
|
110
|
-
const toSet = minMaxDiff * (value / 100);
|
|
111
|
-
if (toSet === current) {
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
this._setScale(toSet + this._minScale, false, false);
|
|
115
|
-
this._currentScale = value;
|
|
116
|
-
this._toCanvas();
|
|
117
|
-
}
|
|
118
|
-
_toCanvas() {
|
|
119
|
-
if (this._toCanvasDebounceTimeout) {
|
|
120
|
-
clearTimeout(this._toCanvasDebounceTimeout);
|
|
121
|
-
}
|
|
122
|
-
this._toCanvasDebounceTimeout = setTimeout(async () => {
|
|
123
|
-
const canvas = await this._selectionRef.$toCanvas();
|
|
124
|
-
if (this.returnType === 'canvas') {
|
|
125
|
-
this.valueChange.emit(canvas);
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
const data = canvas.toDataURL('image/png');
|
|
129
|
-
this.valueChange.emit(data);
|
|
130
|
-
}, 200);
|
|
131
|
-
}
|
|
132
|
-
static get is() { return "p-cropper"; }
|
|
133
|
-
static get encapsulation() { return "shadow"; }
|
|
134
|
-
static get originalStyleUrls() {
|
|
135
|
-
return {
|
|
136
|
-
"$": ["cropper.component.scss"]
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
static get styleUrls() {
|
|
140
|
-
return {
|
|
141
|
-
"$": ["cropper.component.css"]
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
static get properties() {
|
|
145
|
-
return {
|
|
146
|
-
"variant": {
|
|
147
|
-
"type": "string",
|
|
148
|
-
"mutable": false,
|
|
149
|
-
"complexType": {
|
|
150
|
-
"original": "'user' | 'company'",
|
|
151
|
-
"resolved": "\"company\" | \"user\"",
|
|
152
|
-
"references": {}
|
|
153
|
-
},
|
|
154
|
-
"required": false,
|
|
155
|
-
"optional": false,
|
|
156
|
-
"docs": {
|
|
157
|
-
"tags": [],
|
|
158
|
-
"text": "Variant of the image that's being cropped"
|
|
159
|
-
},
|
|
160
|
-
"attribute": "variant",
|
|
161
|
-
"reflect": true,
|
|
162
|
-
"defaultValue": "'user'"
|
|
163
|
-
},
|
|
164
|
-
"value": {
|
|
165
|
-
"type": "any",
|
|
166
|
-
"mutable": false,
|
|
167
|
-
"complexType": {
|
|
168
|
-
"original": "any",
|
|
169
|
-
"resolved": "any",
|
|
170
|
-
"references": {}
|
|
171
|
-
},
|
|
172
|
-
"required": false,
|
|
173
|
-
"optional": false,
|
|
174
|
-
"docs": {
|
|
175
|
-
"tags": [],
|
|
176
|
-
"text": "The image to crop (url or base64)"
|
|
177
|
-
},
|
|
178
|
-
"attribute": "value",
|
|
179
|
-
"reflect": false
|
|
180
|
-
},
|
|
181
|
-
"returnType": {
|
|
182
|
-
"type": "string",
|
|
183
|
-
"mutable": false,
|
|
184
|
-
"complexType": {
|
|
185
|
-
"original": "'canvas' | 'base64'",
|
|
186
|
-
"resolved": "\"base64\" | \"canvas\"",
|
|
187
|
-
"references": {}
|
|
188
|
-
},
|
|
189
|
-
"required": false,
|
|
190
|
-
"optional": false,
|
|
191
|
-
"docs": {
|
|
192
|
-
"tags": [],
|
|
193
|
-
"text": "The return type of the onchange"
|
|
194
|
-
},
|
|
195
|
-
"attribute": "return-type",
|
|
196
|
-
"reflect": false,
|
|
197
|
-
"defaultValue": "'base64'"
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
static get states() {
|
|
202
|
-
return {
|
|
203
|
-
"_loaded": {},
|
|
204
|
-
"_currentScale": {}
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
static get events() {
|
|
208
|
-
return [{
|
|
209
|
-
"method": "valueChange",
|
|
210
|
-
"name": "valueChange",
|
|
211
|
-
"bubbles": false,
|
|
212
|
-
"cancelable": true,
|
|
213
|
-
"composed": true,
|
|
214
|
-
"docs": {
|
|
215
|
-
"tags": [],
|
|
216
|
-
"text": "Event when the value changes"
|
|
217
|
-
},
|
|
218
|
-
"complexType": {
|
|
219
|
-
"original": "any",
|
|
220
|
-
"resolved": "any",
|
|
221
|
-
"references": {}
|
|
5
|
+
constructor() {
|
|
6
|
+
this.variant = 'user';
|
|
7
|
+
this.value = undefined;
|
|
8
|
+
this.returnType = 'base64';
|
|
9
|
+
this._loaded = false;
|
|
10
|
+
this._currentScale = 0;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Event when the value changes
|
|
14
|
+
*/
|
|
15
|
+
valueChange;
|
|
16
|
+
_imageRef;
|
|
17
|
+
_selectionRef;
|
|
18
|
+
_maxScale = 0;
|
|
19
|
+
_minScale = 0;
|
|
20
|
+
_resizeDebounceTimeout;
|
|
21
|
+
_toCanvasDebounceTimeout;
|
|
22
|
+
onResize() {
|
|
23
|
+
if (this._resizeDebounceTimeout) {
|
|
24
|
+
clearTimeout(this._resizeDebounceTimeout);
|
|
25
|
+
}
|
|
26
|
+
this._resizeDebounceTimeout = setTimeout(() => {
|
|
27
|
+
this._selectionRef.$center();
|
|
28
|
+
this._imageRef.$center();
|
|
29
|
+
}, 200);
|
|
30
|
+
}
|
|
31
|
+
componentDidLoad() {
|
|
32
|
+
setTimeout(() => {
|
|
33
|
+
this._loaded = true;
|
|
34
|
+
}, 200);
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (h(Host, { key: 'afd5e10b35660436241cd4bf34804ff18d38e63c', class: 'p-cropper' }, this._loaded && (h("cropper-canvas", { key: 'b83a601fdc5e6dd0bdab4091dce8536dd8098abd', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white', onAction: () => this._onAction() }, h("cropper-image", { key: '92f70e3d205a72e87c4454f6f2ffb3ecb7c2a2c4', src: this.value, alt: 'Picture', ref: ref => this._setImageRef(ref), scalable: true, crossorigin: 'anonymous' }), h("cropper-shade", { key: 'cb819b4d9a2e28263555c888b4db913d6d8d9f45', class: clsx({
|
|
38
|
+
'rounded-round': this.variant === 'user',
|
|
39
|
+
rounded: this.variant === 'company',
|
|
40
|
+
}), "theme-color": 'rgba(255, 255, 255, 0.5)', hidden: true }), h("cropper-selection", { key: '65e6df8e4166009cc27e83c173203c7dfe163bd8', "initial-coverage": '0.7', "aspect-ratio": '1', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: '2c7e8c3b91c7bf71ac9ab34f12d7533ac32686d1', action: 'move', plain: true }))), h("div", { key: 'f8bdfafaebb8ec4da34b01bbbefc8a56f34a9696', class: 'flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1' }, h("p-icon", { key: '883df6ef54a39ab1fbc2b1d3e1940aaec0f0d97f', variant: 'minus' }), h("input", { key: '8d39562d4df89cf00479cc3ff97194c14622fd31', class: 'p-input w-full', type: 'range', min: '0', max: '100', value: this._currentScale, onInput: ev => this._onInput(ev.target.value), step: '0.5' }), h("p-icon", { key: '9b0ba4eae79add1f148a884013f8ad3f8d7d75cd', variant: 'plus' }))));
|
|
41
|
+
}
|
|
42
|
+
_setImageRef(ref) {
|
|
43
|
+
if (this._imageRef) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
this._imageRef = ref;
|
|
47
|
+
this._imageRef.$ready(image => setTimeout(() => this._setInitialState(image), 200));
|
|
48
|
+
}
|
|
49
|
+
_setInitialState(image) {
|
|
50
|
+
let scale;
|
|
51
|
+
if (image.naturalWidth > image.naturalHeight) {
|
|
52
|
+
// set scale by height
|
|
53
|
+
scale = 200 / image.naturalHeight;
|
|
54
|
+
}
|
|
55
|
+
if (image.naturalHeight >= image.naturalWidth) {
|
|
56
|
+
// set scale by width
|
|
57
|
+
scale = 200 / image.naturalWidth;
|
|
58
|
+
}
|
|
59
|
+
const current = this._imageRef.$getTransform();
|
|
60
|
+
this._minScale = scale;
|
|
61
|
+
this._maxScale = current[0];
|
|
62
|
+
this._selectionRef.$resize('nw-resize', 200, 200, 1);
|
|
63
|
+
this._selectionRef.$center();
|
|
64
|
+
this._setScale(scale);
|
|
65
|
+
this._toCanvas();
|
|
66
|
+
}
|
|
67
|
+
_onAction() {
|
|
68
|
+
this._setCurrentScale();
|
|
69
|
+
this._toCanvas();
|
|
70
|
+
}
|
|
71
|
+
_setScale(scale, setCenter = true, setCurrentScale = true) {
|
|
72
|
+
const transform = this._imageRef.$getTransform();
|
|
73
|
+
this._imageRef.$setTransform([
|
|
74
|
+
scale,
|
|
75
|
+
0,
|
|
76
|
+
0,
|
|
77
|
+
scale,
|
|
78
|
+
transform[4],
|
|
79
|
+
transform[5],
|
|
80
|
+
]);
|
|
81
|
+
if (setCenter) {
|
|
82
|
+
this._imageRef.$center();
|
|
83
|
+
}
|
|
84
|
+
if (setCurrentScale) {
|
|
85
|
+
this._setCurrentScale();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
_setCurrentScale() {
|
|
89
|
+
const transform = this._imageRef.$getTransform();
|
|
90
|
+
const current = transform[0];
|
|
91
|
+
if (current < this._minScale) {
|
|
92
|
+
this._setScale(this._minScale, true, false);
|
|
93
|
+
this._currentScale = 0;
|
|
94
|
+
return;
|
|
222
95
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
96
|
+
if (current > this._maxScale) {
|
|
97
|
+
this._setScale(this._maxScale, true, false);
|
|
98
|
+
this._currentScale = 100;
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (current === this._minScale) {
|
|
102
|
+
this._currentScale = 0;
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (current === this._maxScale) {
|
|
106
|
+
this._currentScale = 100;
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const minMaxDiff = this._maxScale - this._minScale;
|
|
110
|
+
const currentDiff = current - this._minScale;
|
|
111
|
+
const percentage = (currentDiff / minMaxDiff) * 100;
|
|
112
|
+
this._currentScale = percentage;
|
|
113
|
+
}
|
|
114
|
+
_onInput(value) {
|
|
115
|
+
const transform = this._imageRef.$getTransform();
|
|
116
|
+
const current = transform[0];
|
|
117
|
+
const minMaxDiff = this._maxScale - this._minScale;
|
|
118
|
+
const toSet = minMaxDiff * (value / 100);
|
|
119
|
+
if (toSet === current) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
this._setScale(toSet + this._minScale, false, false);
|
|
123
|
+
this._currentScale = value;
|
|
124
|
+
this._toCanvas();
|
|
125
|
+
}
|
|
126
|
+
_toCanvas() {
|
|
127
|
+
if (this._toCanvasDebounceTimeout) {
|
|
128
|
+
clearTimeout(this._toCanvasDebounceTimeout);
|
|
129
|
+
}
|
|
130
|
+
this._toCanvasDebounceTimeout = setTimeout(async () => {
|
|
131
|
+
const canvas = await this._selectionRef.$toCanvas();
|
|
132
|
+
if (this.returnType === 'canvas') {
|
|
133
|
+
this.valueChange.emit(canvas);
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
const data = canvas.toDataURL('image/png');
|
|
137
|
+
this.valueChange.emit(data);
|
|
138
|
+
}, 200);
|
|
139
|
+
}
|
|
140
|
+
static get is() { return "p-cropper"; }
|
|
141
|
+
static get encapsulation() { return "shadow"; }
|
|
142
|
+
static get originalStyleUrls() {
|
|
143
|
+
return {
|
|
144
|
+
"$": ["cropper.component.scss"]
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
static get styleUrls() {
|
|
148
|
+
return {
|
|
149
|
+
"$": ["cropper.component.css"]
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
static get properties() {
|
|
153
|
+
return {
|
|
154
|
+
"variant": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "'user' | 'company'",
|
|
159
|
+
"resolved": "\"company\" | \"user\"",
|
|
160
|
+
"references": {}
|
|
161
|
+
},
|
|
162
|
+
"required": false,
|
|
163
|
+
"optional": false,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [],
|
|
166
|
+
"text": "Variant of the image that's being cropped"
|
|
167
|
+
},
|
|
168
|
+
"getter": false,
|
|
169
|
+
"setter": false,
|
|
170
|
+
"attribute": "variant",
|
|
171
|
+
"reflect": true,
|
|
172
|
+
"defaultValue": "'user'"
|
|
173
|
+
},
|
|
174
|
+
"value": {
|
|
175
|
+
"type": "any",
|
|
176
|
+
"mutable": false,
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "any",
|
|
179
|
+
"resolved": "any",
|
|
180
|
+
"references": {}
|
|
181
|
+
},
|
|
182
|
+
"required": false,
|
|
183
|
+
"optional": false,
|
|
184
|
+
"docs": {
|
|
185
|
+
"tags": [],
|
|
186
|
+
"text": "The image to crop (url or base64)"
|
|
187
|
+
},
|
|
188
|
+
"getter": false,
|
|
189
|
+
"setter": false,
|
|
190
|
+
"attribute": "value",
|
|
191
|
+
"reflect": false
|
|
192
|
+
},
|
|
193
|
+
"returnType": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"mutable": false,
|
|
196
|
+
"complexType": {
|
|
197
|
+
"original": "'canvas' | 'base64'",
|
|
198
|
+
"resolved": "\"base64\" | \"canvas\"",
|
|
199
|
+
"references": {}
|
|
200
|
+
},
|
|
201
|
+
"required": false,
|
|
202
|
+
"optional": false,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": "The return type of the onchange"
|
|
206
|
+
},
|
|
207
|
+
"getter": false,
|
|
208
|
+
"setter": false,
|
|
209
|
+
"attribute": "return-type",
|
|
210
|
+
"reflect": false,
|
|
211
|
+
"defaultValue": "'base64'"
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
static get states() {
|
|
216
|
+
return {
|
|
217
|
+
"_loaded": {},
|
|
218
|
+
"_currentScale": {}
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
static get events() {
|
|
222
|
+
return [{
|
|
223
|
+
"method": "valueChange",
|
|
224
|
+
"name": "valueChange",
|
|
225
|
+
"bubbles": false,
|
|
226
|
+
"cancelable": true,
|
|
227
|
+
"composed": true,
|
|
228
|
+
"docs": {
|
|
229
|
+
"tags": [],
|
|
230
|
+
"text": "Event when the value changes"
|
|
231
|
+
},
|
|
232
|
+
"complexType": {
|
|
233
|
+
"original": "any",
|
|
234
|
+
"resolved": "any",
|
|
235
|
+
"references": {}
|
|
236
|
+
}
|
|
237
|
+
}];
|
|
238
|
+
}
|
|
239
|
+
static get listeners() {
|
|
240
|
+
return [{
|
|
241
|
+
"name": "resize",
|
|
242
|
+
"method": "onResize",
|
|
243
|
+
"target": "window",
|
|
244
|
+
"capture": false,
|
|
245
|
+
"passive": true
|
|
246
|
+
}];
|
|
247
|
+
}
|
|
234
248
|
}
|
|
235
249
|
//# sourceMappingURL=cropper.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cropper.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/cropper/cropper.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,GACD,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,WAAW,CAAC;AAQnB,MAAM,OAAO,OAAO;;IA2BX,cAAS,GAAG,CAAC,CAAC;IACd,cAAS,GAAG,CAAC,CAAC;mBAxBiC,MAAM;;sBAUnB,QAAQ;mBAoBhC,KAAK;yBAGC,CAAC;;EAGzB,QAAQ;IACP,IAAI,IAAI,CAAC,sBAAsB,EAAE;MAChC,YAAY,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;KAC1C;IAED,IAAI,CAAC,sBAAsB,GAAG,UAAU,CAAC,GAAG,EAAE;MAC7C,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;MAC7B,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC,EAAE,GAAG,CAAC,CAAC;EACT,CAAC;EAED,gBAAgB;IACf,UAAU,CAAC,GAAG,EAAE;MACf,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACrB,CAAC,EAAE,GAAG,CAAC,CAAC;EACT,CAAC;EAED,MAAM;IACL,OAAO,CACN,EAAC,IAAI,IAAC,KAAK,EAAC,WAAW;MACrB,IAAI,CAAC,OAAO,IAAI,CAChB,sBACC,KAAK,EAAC,iFAAiF,EACvF,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE;QAEhC,qBACC,GAAG,EAAE,IAAI,CAAC,KAAK,EACf,GAAG,EAA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,CAAC,SAAS,CAAC;IAEnD,MAAM,KAAK,GAAG,UAAU,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;IAEzC,IAAI,KAAK,KAAK,OAAO,EAAE;MACtB,OAAO;KACP;IAED,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACrD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;IAE3B,IAAI,CAAC,SAAS,EAAE,CAAC;EAClB,CAAC;EAEO,SAAS;IAChB,IAAI,IAAI,CAAC,wBAAwB,EAAE;MAClC,YAAY,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;KAC5C;IAED,IAAI,CAAC,wBAAwB,GAAG,UAAU,CAAC,KAAK,IAAI,EAAE;MACrD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC;MACpD,IAAI,IAAI,CAAC,UAAU,KAAK,QAAQ,EAAE;QACjC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9B,OAAO;OACP;MAED,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;MAC3C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC,EAAE,GAAG,CAAC,CAAC;EACT,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n\th,\n} from '@stencil/core';\nimport { clsx } from 'clsx';\nimport 'cropperjs';\nimport { CropperImage, CropperSelection } from 'cropperjs';\n\n@Component({\n\ttag: 'p-cropper',\n\tstyleUrl: 'cropper.component.scss',\n\tshadow: true,\n})\nexport class Cropper {\n\t/**\n\t * Variant of the image that's being cropped\n\t */\n\t@Prop({ reflect: true }) variant: 'user' | 'company' = 'user';\n\n\t/**\n\t * The image to crop (url or base64)\n\t */\n\t@Prop() value: any;\n\n\t/**\n\t * The return type of the onchange\n\t */\n\t@Prop() returnType: 'canvas' | 'base64' = 'base64';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\tprivate _imageRef: CropperImage;\n\tprivate _selectionRef: CropperSelection;\n\n\tprivate _maxScale = 0;\n\tprivate _minScale = 0;\n\n\tprivate _resizeDebounceTimeout: NodeJS.Timer;\n\tprivate _toCanvasDebounceTimeout: NodeJS.Timer;\n\n\t@State()\n\tprivate _loaded = false;\n\n\t@State()\n\tprivate _currentScale = 0;\n\n\t@Listen('resize', { target: 'window' })\n\tonResize() {\n\t\tif (this._resizeDebounceTimeout) {\n\t\t\tclearTimeout(this._resizeDebounceTimeout);\n\t\t}\n\n\t\tthis._resizeDebounceTimeout = setTimeout(() => {\n\t\t\tthis._selectionRef.$center();\n\t\t\tthis._imageRef.$center();\n\t\t}, 200);\n\t}\n\n\tcomponentDidLoad() {\n\t\tsetTimeout(() => {\n\t\t\tthis._loaded = true;\n\t\t}, 200);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-cropper\">\n\t\t\t\t{this._loaded && (\n\t\t\t\t\t<cropper-canvas\n\t\t\t\t\t\tclass=\"h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white\"\n\t\t\t\t\t\tonAction={() => this._onAction()}\n\t\t\t\t\t>\n\t\t\t\t\t\t<cropper-image\n\t\t\t\t\t\t\tsrc={this.value}\n\t\t\t\t\t\t\talt=\"Picture\"\n\t\t\t\t\t\t\tref={(ref) =>\n\t\t\t\t\t\t\t\tthis._setImageRef(ref as CropperImage)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tscalable\n\t\t\t\t\t\t\tcrossorigin=\"anonymous\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<cropper-shade\n\t\t\t\t\t\t\tclass={clsx({\n\t\t\t\t\t\t\t\t'rounded-round': this.variant === 'user',\n\t\t\t\t\t\t\t\trounded: this.variant === 'company',\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\ttheme-color=\"rgba(255, 255, 255, 0.5)\"\n\t\t\t\t\t\t\thidden\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<cropper-selection\n\t\t\t\t\t\t\tinitial-coverage=\"0.7\"\n\t\t\t\t\t\t\taspect-ratio=\"1\"\n\t\t\t\t\t\t\tref={(ref) =>\n\t\t\t\t\t\t\t\t(this._selectionRef = ref as CropperSelection)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t<cropper-handle action=\"move\" plain></cropper-handle>\n\t\t\t\t\t</cropper-canvas>\n\t\t\t\t)}\n\n\t\t\t\t<div class=\"flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1\">\n\t\t\t\t\t<p-icon variant=\"minus\" />\n\t\t\t\t\t<input\n\t\t\t\t\t\tclass=\"p-input w-full\"\n\t\t\t\t\t\ttype=\"range\"\n\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\tmax=\"100\"\n\t\t\t\t\t\tvalue={this._currentScale}\n\t\t\t\t\t\tonInput={(ev) =>\n\t\t\t\t\t\t\tthis._onInput((ev.target as HTMLInputElement).value)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstep=\"0.5\"\n\t\t\t\t\t/>\n\t\t\t\t\t<p-icon variant=\"plus\" />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _setImageRef(ref: CropperImage) {\n\t\tif (this._imageRef) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._imageRef = ref;\n\t\tthis._imageRef.$ready((image) =>\n\t\t\tsetTimeout(() => this._setInitialState(image), 200)\n\t\t);\n\t}\n\n\tprivate _setInitialState(image) {\n\t\tlet scale: number;\n\t\tif (image.naturalWidth > image.naturalHeight) {\n\t\t\t// set scale by height\n\t\t\tscale = 200 / image.naturalHeight;\n\t\t}\n\n\t\tif (image.naturalHeight >= image.naturalWidth) {\n\t\t\t// set scale by width\n\t\t\tscale = 200 / image.naturalWidth;\n\t\t}\n\n\t\tconst current = this._imageRef.$getTransform();\n\n\t\tthis._minScale = scale;\n\t\tthis._maxScale = current[0];\n\n\t\tthis._selectionRef.$resize('nw-resize', 200, 200, 1);\n\t\tthis._selectionRef.$center();\n\n\t\tthis._setScale(scale);\n\t\tthis._toCanvas();\n\t}\n\n\tprivate _onAction() {\n\t\tthis._setCurrentScale();\n\t\tthis._toCanvas();\n\t}\n\n\tprivate _setScale(\n\t\tscale: number,\n\t\tsetCenter: boolean = true,\n\t\tsetCurrentScale: boolean = true\n\t) {\n\t\tconst transform = this._imageRef.$getTransform();\n\t\tthis._imageRef.$setTransform([\n\t\t\tscale,\n\t\t\t0,\n\t\t\t0,\n\t\t\tscale,\n\t\t\ttransform[4],\n\t\t\ttransform[5],\n\t\t]);\n\n\t\tif (setCenter) {\n\t\t\tthis._imageRef.$center();\n\t\t}\n\n\t\tif (setCurrentScale) {\n\t\t\tthis._setCurrentScale();\n\t\t}\n\t}\n\n\tprivate _setCurrentScale() {\n\t\tconst transform = this._imageRef.$getTransform();\n\t\tconst current = transform[0];\n\n\t\tif (current < this._minScale) {\n\t\t\tthis._setScale(this._minScale, true, false);\n\t\t\tthis._currentScale = 0;\n\t\t\treturn;\n\t\t}\n\n\t\tif (current > this._maxScale) {\n\t\t\tthis._setScale(this._maxScale, true, false);\n\t\t\tthis._currentScale = 100;\n\t\t\treturn;\n\t\t}\n\n\t\tif (current === this._minScale) {\n\t\t\tthis._currentScale = 0;\n\t\t\treturn;\n\t\t}\n\n\t\tif (current === this._maxScale) {\n\t\t\tthis._currentScale = 100;\n\t\t\treturn;\n\t\t}\n\n\t\tconst minMaxDiff = this._maxScale - this._minScale;\n\t\tconst currentDiff = current - this._minScale;\n\n\t\tconst percentage = (currentDiff / minMaxDiff) * 100;\n\t\tthis._currentScale = percentage;\n\t}\n\n\tprivate _onInput(value) {\n\t\tconst transform = this._imageRef.$getTransform();\n\t\tconst current = transform[0];\n\t\tconst minMaxDiff = this._maxScale - this._minScale;\n\n\t\tconst toSet = minMaxDiff * (value / 100);\n\n\t\tif (toSet === current) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setScale(toSet + this._minScale, false, false);\n\t\tthis._currentScale = value;\n\n\t\tthis._toCanvas();\n\t}\n\n\tprivate _toCanvas() {\n\t\tif (this._toCanvasDebounceTimeout) {\n\t\t\tclearTimeout(this._toCanvasDebounceTimeout);\n\t\t}\n\n\t\tthis._toCanvasDebounceTimeout = setTimeout(async () => {\n\t\t\tconst canvas = await this._selectionRef.$toCanvas();\n\t\t\tif (this.returnType === 'canvas') {\n\t\t\t\tthis.valueChange.emit(canvas);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst data = canvas.toDataURL('image/png');\n\t\t\tthis.valueChange.emit(data);\n\t\t}, 200);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"cropper.component.js","sourceRoot":"","sources":["../../../../src/components/molecules/cropper/cropper.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,GACD,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,WAAW,CAAC;AAQnB,MAAM,OAAO,OAAO;;uBAIoC,MAAM;;0BAUnB,QAAQ;uBAoBhC,KAAK;6BAGC,CAAC;;IArBzB;;OAEG;IAIH,WAAW,CAAoB;IAEvB,SAAS,CAAe;IACxB,aAAa,CAAmB;IAEhC,SAAS,GAAG,CAAC,CAAC;IACd,SAAS,GAAG,CAAC,CAAC;IAEd,sBAAsB,CAA6B;I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AAI,CAAC,wBAAwB,CAAC,CAAC;QAC7C,CAAC;QAED,IAAI,CAAC,wBAAwB,GAAG,UAAU,CAAC,KAAK,IAAI,EAAE;YACrD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC;YACpD,IAAI,IAAI,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;gBAClC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBAC9B,OAAO;YACR,CAAC;YAED,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YAC3C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n\th,\n} from '@stencil/core';\nimport { clsx } from 'clsx';\nimport 'cropperjs';\nimport { CropperImage, CropperSelection } from 'cropperjs';\n\n@Component({\n\ttag: 'p-cropper',\n\tstyleUrl: 'cropper.component.scss',\n\tshadow: true,\n})\nexport class Cropper {\n\t/**\n\t * Variant of the image that's being cropped\n\t */\n\t@Prop({ reflect: true }) variant: 'user' | 'company' = 'user';\n\n\t/**\n\t * The image to crop (url or base64)\n\t */\n\t@Prop() value: any;\n\n\t/**\n\t * The return type of the onchange\n\t */\n\t@Prop() returnType: 'canvas' | 'base64' = 'base64';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\tprivate _imageRef: CropperImage;\n\tprivate _selectionRef: CropperSelection;\n\n\tprivate _maxScale = 0;\n\tprivate _minScale = 0;\n\n\tprivate _resizeDebounceTimeout: NodeJS.Timeout | undefined;\n\tprivate _toCanvasDebounceTimeout: NodeJS.Timeout | undefined;\n\n\t@State()\n\tprivate _loaded = false;\n\n\t@State()\n\tprivate _currentScale = 0;\n\n\t@Listen('resize', { target: 'window' })\n\tonResize() {\n\t\tif (this._resizeDebounceTimeout) {\n\t\t\tclearTimeout(this._resizeDebounceTimeout);\n\t\t}\n\n\t\tthis._resizeDebounceTimeout = setTimeout(() => {\n\t\t\tthis._selectionRef.$center();\n\t\t\tthis._imageRef.$center();\n\t\t}, 200);\n\t}\n\n\tcomponentDidLoad() {\n\t\tsetTimeout(() => {\n\t\t\tthis._loaded = true;\n\t\t}, 200);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-cropper'>\n\t\t\t\t{this._loaded && (\n\t\t\t\t\t<cropper-canvas\n\t\t\t\t\t\tclass='h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white'\n\t\t\t\t\t\tonAction={() => this._onAction()}\n\t\t\t\t\t>\n\t\t\t\t\t\t<cropper-image\n\t\t\t\t\t\t\tsrc={this.value}\n\t\t\t\t\t\t\talt='Picture'\n\t\t\t\t\t\t\tref={ref => this._setImageRef(ref as CropperImage)}\n\t\t\t\t\t\t\tscalable\n\t\t\t\t\t\t\tcrossorigin='anonymous'\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<cropper-shade\n\t\t\t\t\t\t\tclass={clsx({\n\t\t\t\t\t\t\t\t'rounded-round': this.variant === 'user',\n\t\t\t\t\t\t\t\trounded: this.variant === 'company',\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\ttheme-color='rgba(255, 255, 255, 0.5)'\n\t\t\t\t\t\t\thidden\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<cropper-selection\n\t\t\t\t\t\t\tinitial-coverage='0.7'\n\t\t\t\t\t\t\taspect-ratio='1'\n\t\t\t\t\t\t\tref={ref => (this._selectionRef = ref as CropperSelection)}\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t<cropper-handle\n\t\t\t\t\t\t\taction='move'\n\t\t\t\t\t\t\tplain\n\t\t\t\t\t\t></cropper-handle>\n\t\t\t\t\t</cropper-canvas>\n\t\t\t\t)}\n\n\t\t\t\t<div class='flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1'>\n\t\t\t\t\t<p-icon variant='minus' />\n\t\t\t\t\t<input\n\t\t\t\t\t\tclass='p-input w-full'\n\t\t\t\t\t\ttype='range'\n\t\t\t\t\t\tmin='0'\n\t\t\t\t\t\tmax='100'\n\t\t\t\t\t\tvalue={this._currentScale}\n\t\t\t\t\t\tonInput={ev => this._onInput((ev.target as HTMLInputElement).value)}\n\t\t\t\t\t\tstep='0.5'\n\t\t\t\t\t/>\n\t\t\t\t\t<p-icon variant='plus' />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _setImageRef(ref: CropperImage) {\n\t\tif (this._imageRef) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._imageRef = ref;\n\t\tthis._imageRef.$ready(image =>\n\t\t\tsetTimeout(() => this._setInitialState(image), 200)\n\t\t);\n\t}\n\n\tprivate _setInitialState(image) {\n\t\tlet scale: number;\n\t\tif (image.naturalWidth > image.naturalHeight) {\n\t\t\t// set scale by height\n\t\t\tscale = 200 / image.naturalHeight;\n\t\t}\n\n\t\tif (image.naturalHeight >= image.naturalWidth) {\n\t\t\t// set scale by width\n\t\t\tscale = 200 / image.naturalWidth;\n\t\t}\n\n\t\tconst current = this._imageRef.$getTransform();\n\n\t\tthis._minScale = scale;\n\t\tthis._maxScale = current[0];\n\n\t\tthis._selectionRef.$resize('nw-resize', 200, 200, 1);\n\t\tthis._selectionRef.$center();\n\n\t\tthis._setScale(scale);\n\t\tthis._toCanvas();\n\t}\n\n\tprivate _onAction() {\n\t\tthis._setCurrentScale();\n\t\tthis._toCanvas();\n\t}\n\n\tprivate _setScale(\n\t\tscale: number,\n\t\tsetCenter: boolean = true,\n\t\tsetCurrentScale: boolean = true\n\t) {\n\t\tconst transform = this._imageRef.$getTransform();\n\t\tthis._imageRef.$setTransform([\n\t\t\tscale,\n\t\t\t0,\n\t\t\t0,\n\t\t\tscale,\n\t\t\ttransform[4],\n\t\t\ttransform[5],\n\t\t]);\n\n\t\tif (setCenter) {\n\t\t\tthis._imageRef.$center();\n\t\t}\n\n\t\tif (setCurrentScale) {\n\t\t\tthis._setCurrentScale();\n\t\t}\n\t}\n\n\tprivate _setCurrentScale() {\n\t\tconst transform = this._imageRef.$getTransform();\n\t\tconst current = transform[0];\n\n\t\tif (current < this._minScale) {\n\t\t\tthis._setScale(this._minScale, true, false);\n\t\t\tthis._currentScale = 0;\n\t\t\treturn;\n\t\t}\n\n\t\tif (current > this._maxScale) {\n\t\t\tthis._setScale(this._maxScale, true, false);\n\t\t\tthis._currentScale = 100;\n\t\t\treturn;\n\t\t}\n\n\t\tif (current === this._minScale) {\n\t\t\tthis._currentScale = 0;\n\t\t\treturn;\n\t\t}\n\n\t\tif (current === this._maxScale) {\n\t\t\tthis._currentScale = 100;\n\t\t\treturn;\n\t\t}\n\n\t\tconst minMaxDiff = this._maxScale - this._minScale;\n\t\tconst currentDiff = current - this._minScale;\n\n\t\tconst percentage = (currentDiff / minMaxDiff) * 100;\n\t\tthis._currentScale = percentage;\n\t}\n\n\tprivate _onInput(value) {\n\t\tconst transform = this._imageRef.$getTransform();\n\t\tconst current = transform[0];\n\t\tconst minMaxDiff = this._maxScale - this._minScale;\n\n\t\tconst toSet = minMaxDiff * (value / 100);\n\n\t\tif (toSet === current) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._setScale(toSet + this._minScale, false, false);\n\t\tthis._currentScale = value;\n\n\t\tthis._toCanvas();\n\t}\n\n\tprivate _toCanvas() {\n\t\tif (this._toCanvasDebounceTimeout) {\n\t\t\tclearTimeout(this._toCanvasDebounceTimeout);\n\t\t}\n\n\t\tthis._toCanvasDebounceTimeout = setTimeout(async () => {\n\t\t\tconst canvas = await this._selectionRef.$toCanvas();\n\t\t\tif (this.returnType === 'canvas') {\n\t\t\t\tthis.valueChange.emit(canvas);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst data = canvas.toDataURL('image/png');\n\t\t\tthis.valueChange.emit(data);\n\t\t}, 200);\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.flex{display:flex!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column}:host input.read-only{text-overflow:ellipsis}.static{position:static!important}.absolute{position:absolute!important}.
|
|
1
|
+
.flex{display:flex!important}*{box-sizing:border-box}:host{display:flex;flex-direction:column}:host input.read-only{text-overflow:ellipsis}.static{position:static!important}.absolute{position:absolute!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}
|