@paperless/core 2.0.1-beta.12 → 2.0.1-beta.14
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 +76 -0
- package/dist/build/{p-60492c98.entry.js → p-04f2c445.entry.js} +2 -2
- package/dist/build/{p-2f9e9197.entry.js → p-0b5a9b3b.entry.js} +2 -2
- package/dist/{paperless/p-dce95c92.entry.js → build/p-0fb58b95.entry.js} +2 -2
- package/dist/{paperless/p-64b53130.entry.js → build/p-12f5d6c1.entry.js} +2 -2
- package/dist/build/{p-5ab354bf.entry.js → p-14f3312f.entry.js} +2 -2
- package/dist/build/{p-d81a30f6.entry.js → p-15abe9ab.entry.js} +2 -2
- package/dist/build/{p-b8e718c7.entry.js → p-1926e607.entry.js} +2 -2
- package/dist/{paperless/p-385943b2.entry.js → build/p-195ede81.entry.js} +2 -2
- package/dist/build/{p-32056913.entry.js → p-198b4653.entry.js} +2 -2
- package/dist/build/{p-221dbb71.entry.js → p-1c97ddaa.entry.js} +2 -2
- package/dist/build/{p-bc46f89a.entry.js → p-285babdd.entry.js} +2 -2
- package/dist/build/{p-b9a7e240.entry.js → p-28fee2e1.entry.js} +2 -2
- package/dist/build/{p-dd6d3839.entry.js → p-2bedd43c.entry.js} +2 -2
- package/dist/build/{p-5e789bb1.entry.js → p-36d0d0e6.entry.js} +2 -2
- package/dist/build/{p-e10cf2d3.entry.js → p-3885d19b.entry.js} +2 -2
- package/dist/build/{p-bfbab545.entry.js → p-3b9d77dc.entry.js} +2 -2
- package/dist/build/{p-7a577384.entry.js → p-3dba9a43.entry.js} +2 -2
- package/dist/build/{p-c6bcbcbf.entry.js → p-43cdfda1.entry.js} +2 -2
- package/dist/build/{p-fcaa0539.entry.js → p-4c3cdddf.entry.js} +2 -2
- package/dist/{paperless/p-6fed974c.entry.js → build/p-51b3884b.entry.js} +2 -2
- package/dist/build/{p-ea3bce45.entry.js → p-55752ba9.entry.js} +2 -2
- package/dist/build/p-57fd5974.entry.js +2 -0
- package/dist/build/p-57fd5974.entry.js.map +1 -0
- package/dist/build/{p-6f7721eb.entry.js → p-5a072ae3.entry.js} +2 -2
- package/dist/build/{p-3d867690.entry.js → p-5a7c004d.entry.js} +2 -2
- package/dist/build/{p-3e9d994a.entry.js → p-5afd99f1.entry.js} +2 -2
- package/dist/build/{p-16a18649.entry.js → p-5df485b9.entry.js} +2 -2
- package/dist/build/{p-9fa5d08a.entry.js → p-648c33b9.entry.js} +2 -2
- package/dist/build/{p-047c1c6f.entry.js → p-6521a730.entry.js} +2 -2
- package/dist/{paperless/p-909879e3.entry.js → build/p-6d6bb913.entry.js} +2 -2
- package/dist/build/{p-45463125.entry.js → p-75330470.entry.js} +2 -2
- package/dist/{paperless/p-a7b8e22f.entry.js → build/p-7eb4689d.entry.js} +2 -2
- package/dist/{paperless/p-7beb3401.entry.js → build/p-82c79faa.entry.js} +2 -2
- package/dist/build/p-88f72088.entry.js +2 -0
- package/dist/build/p-88f72088.entry.js.map +1 -0
- package/dist/build/{p-6e71ebca.entry.js → p-9d112705.entry.js} +2 -2
- package/dist/build/{p-937b2d74.entry.js → p-a26e1c6d.entry.js} +2 -2
- package/dist/build/p-a3853fc7.js +3 -0
- package/dist/build/p-a3853fc7.js.map +1 -0
- package/dist/build/{p-be0c925e.entry.js → p-a5995873.entry.js} +2 -2
- package/dist/{paperless/p-cb8a454c.entry.js → build/p-aa4ebfcd.entry.js} +2 -2
- package/dist/build/{p-a587ff9f.entry.js → p-b18ef00d.entry.js} +2 -2
- package/dist/build/p-b7a45a0a.entry.js +2 -0
- package/dist/build/p-b7a45a0a.entry.js.map +1 -0
- package/dist/build/{p-393eba2f.entry.js → p-b9cdcb32.entry.js} +2 -2
- package/dist/{paperless/p-aab1cda1.entry.js → build/p-b9e42e93.entry.js} +2 -2
- package/dist/build/{p-851a7662.entry.js → p-bf9965ea.entry.js} +2 -2
- package/dist/build/p-bf9965ea.entry.js.map +1 -0
- package/dist/build/{p-013cd7f9.entry.js → p-cada312c.entry.js} +2 -2
- package/dist/{paperless/p-f78afad9.entry.js → build/p-d8498647.entry.js} +2 -2
- package/dist/build/p-d8498647.entry.js.map +1 -0
- package/dist/{paperless/p-0348e450.entry.js → build/p-dc9bf641.entry.js} +2 -2
- package/dist/build/{p-aa058967.entry.js → p-e18e29aa.entry.js} +2 -2
- package/dist/build/{p-ece8998b.entry.js → p-e4ab1d73.entry.js} +2 -2
- package/dist/build/{p-08ea38ad.entry.js → p-e74bd898.entry.js} +2 -2
- package/dist/build/{p-23ca3688.entry.js → p-e78945ad.entry.js} +2 -2
- package/dist/build/{p-cb7c509e.entry.js → p-ea329388.entry.js} +2 -2
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/{index-02e05522.js → index-6d3f569b.js} +79 -6
- package/dist/cjs/{index-02e05522.js.map → index-6d3f569b.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-accordion.cjs.entry.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/p-badge.cjs.entry.js +1 -1
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-card-body.cjs.entry.js +1 -1
- package/dist/cjs/p-card-container.cjs.entry.js +1 -1
- package/dist/cjs/p-card-header.cjs.entry.js +1 -1
- package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
- package/dist/cjs/p-counter.cjs.entry.js +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/p-divider.cjs.entry.js +1 -1
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +1 -1
- package/dist/cjs/p-drawer.cjs.entry.js +1 -1
- package/dist/cjs/{p-dropdown-menu-container.cjs.entry.js → p-dropdown-menu-container_2.cjs.entry.js} +24 -2
- package/dist/cjs/p-dropdown-menu-container_2.cjs.entry.js.map +1 -0
- package/dist/cjs/p-dropdown_2.cjs.entry.js +36 -12
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +1 -1
- package/dist/cjs/p-helper_3.cjs.entry.js +15 -16
- package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
- package/dist/cjs/p-icon-deprecated.cjs.entry.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
- package/dist/cjs/p-label_3.cjs.entry.js +1 -1
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +1 -1
- package/dist/cjs/p-modal.cjs.entry.js +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +1 -1
- package/dist/cjs/p-profile.cjs.entry.js +3 -3
- package/dist/cjs/p-profile.cjs.entry.js.map +1 -1
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-select.cjs.entry.js.map +1 -1
- package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
- package/dist/cjs/p-status.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/p-table-column.cjs.entry.js +1 -1
- package/dist/cjs/p-table-row-action.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/paperless.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/portal/portal.component.js +43 -0
- package/dist/collection/components/atoms/portal/portal.component.js.map +1 -0
- package/dist/collection/components/atoms/portal/test/portal.component.e2e.js +26 -0
- package/dist/collection/components/atoms/portal/test/portal.component.e2e.js.map +1 -0
- package/dist/collection/components/atoms/portal/test/portal.component.spec.js +17 -0
- package/dist/collection/components/atoms/portal/test/portal.component.spec.js.map +1 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +52 -10
- package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -1
- package/dist/collection/components/molecules/input-group/input-group.component.js +15 -16
- package/dist/collection/components/molecules/input-group/input-group.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 +1 -1
- package/dist/collection/components/molecules/profile/profile.component.js.map +1 -1
- package/dist/collection/components/molecules/select/select.component.js.map +1 -1
- package/dist/components/dropdown.component.js +44 -13
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/input-group.component.js +14 -15
- package/dist/components/input-group.component.js.map +1 -1
- package/dist/components/p-datepicker.js +20 -14
- package/dist/components/p-datepicker.js.map +1 -1
- 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.js +18 -12
- package/dist/components/p-profile.js.map +1 -1
- package/dist/components/p-select.js +24 -18
- package/dist/components/p-select.js.map +1 -1
- package/dist/components/p-table.js +40 -34
- package/dist/components/p-table.js.map +1 -1
- package/dist/components/page-size-select.component.js +18 -12
- package/dist/components/page-size-select.component.js.map +1 -1
- package/dist/components/portal.component.js +42 -0
- package/dist/components/portal.component.js.map +1 -0
- package/dist/components/table-footer.component.js +24 -18
- package/dist/components/table-footer.component.js.map +1 -1
- package/dist/esm/{index-f99096d4.js → index-7f8d27cf.js} +79 -6
- package/dist/esm/{index-f99096d4.js.map → index-7f8d27cf.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/p-accordion.entry.js +1 -1
- package/dist/esm/p-attachment.entry.js +1 -1
- package/dist/esm/p-avatar-group.entry.js +1 -1
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-backdrop.entry.js +1 -1
- package/dist/esm/p-badge.entry.js +1 -1
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +1 -1
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-card-body.entry.js +1 -1
- package/dist/esm/p-card-container.entry.js +1 -1
- package/dist/esm/p-card-header.entry.js +1 -1
- package/dist/esm/p-content-slider.entry.js +1 -1
- package/dist/esm/p-counter.entry.js +1 -1
- package/dist/esm/p-cropper.entry.js +1 -1
- package/dist/esm/p-datepicker.entry.js +1 -1
- package/dist/esm/p-divider.entry.js +1 -1
- package/dist/esm/p-drawer-body_3.entry.js +1 -1
- package/dist/esm/p-drawer.entry.js +1 -1
- package/dist/esm/{p-dropdown-menu-container.entry.js → p-dropdown-menu-container_2.entry.js} +24 -3
- package/dist/esm/p-dropdown-menu-container_2.entry.js.map +1 -0
- package/dist/esm/p-dropdown_2.entry.js +36 -12
- package/dist/esm/p-dropdown_2.entry.js.map +1 -1
- package/dist/esm/p-floating-menu-container_8.entry.js +1 -1
- package/dist/esm/p-helper_3.entry.js +15 -16
- package/dist/esm/p-helper_3.entry.js.map +1 -1
- package/dist/esm/p-iban-icon.entry.js +1 -1
- package/dist/esm/p-icon-deprecated.entry.js +1 -1
- package/dist/esm/p-info-panel.entry.js +1 -1
- package/dist/esm/p-label_3.entry.js +1 -1
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-modal-body_4.entry.js +1 -1
- package/dist/esm/p-modal.entry.js +1 -1
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +1 -1
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-navigation-title.entry.js +1 -1
- package/dist/esm/p-page-size-select_3.entry.js +1 -1
- package/dist/esm/p-profile.entry.js +3 -3
- package/dist/esm/p-profile.entry.js.map +1 -1
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-select.entry.js.map +1 -1
- package/dist/esm/p-slider-indicator.entry.js +1 -1
- package/dist/esm/p-status.entry.js +1 -1
- package/dist/esm/p-stepper-item.entry.js +1 -1
- package/dist/esm/p-stepper-line.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-tab-group.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +1 -1
- package/dist/esm/p-table-column.entry.js +1 -1
- package/dist/esm/p-table-row-action.entry.js +1 -1
- package/dist/esm/p-table.entry.js +1 -1
- package/dist/esm/p-toast-container.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-tooltip.entry.js +1 -1
- package/dist/esm/paperless.js +3 -3
- package/dist/index.html +1 -1
- package/dist/paperless/{p-60492c98.entry.js → p-04f2c445.entry.js} +2 -2
- package/dist/paperless/{p-2f9e9197.entry.js → p-0b5a9b3b.entry.js} +2 -2
- package/dist/{build/p-dce95c92.entry.js → paperless/p-0fb58b95.entry.js} +2 -2
- package/dist/{build/p-64b53130.entry.js → paperless/p-12f5d6c1.entry.js} +2 -2
- package/dist/paperless/{p-5ab354bf.entry.js → p-14f3312f.entry.js} +2 -2
- package/dist/paperless/{p-d81a30f6.entry.js → p-15abe9ab.entry.js} +2 -2
- package/dist/paperless/{p-b8e718c7.entry.js → p-1926e607.entry.js} +2 -2
- package/dist/{build/p-385943b2.entry.js → paperless/p-195ede81.entry.js} +2 -2
- package/dist/paperless/{p-32056913.entry.js → p-198b4653.entry.js} +2 -2
- package/dist/paperless/{p-221dbb71.entry.js → p-1c97ddaa.entry.js} +2 -2
- package/dist/paperless/{p-bc46f89a.entry.js → p-285babdd.entry.js} +2 -2
- package/dist/paperless/{p-b9a7e240.entry.js → p-28fee2e1.entry.js} +2 -2
- package/dist/paperless/{p-dd6d3839.entry.js → p-2bedd43c.entry.js} +2 -2
- package/dist/paperless/{p-5e789bb1.entry.js → p-36d0d0e6.entry.js} +2 -2
- package/dist/paperless/{p-e10cf2d3.entry.js → p-3885d19b.entry.js} +2 -2
- package/dist/paperless/{p-bfbab545.entry.js → p-3b9d77dc.entry.js} +2 -2
- package/dist/paperless/{p-7a577384.entry.js → p-3dba9a43.entry.js} +2 -2
- package/dist/paperless/{p-c6bcbcbf.entry.js → p-43cdfda1.entry.js} +2 -2
- package/dist/paperless/{p-fcaa0539.entry.js → p-4c3cdddf.entry.js} +2 -2
- package/dist/{build/p-6fed974c.entry.js → paperless/p-51b3884b.entry.js} +2 -2
- package/dist/paperless/{p-ea3bce45.entry.js → p-55752ba9.entry.js} +2 -2
- package/dist/paperless/p-57fd5974.entry.js +2 -0
- package/dist/paperless/p-57fd5974.entry.js.map +1 -0
- package/dist/paperless/{p-6f7721eb.entry.js → p-5a072ae3.entry.js} +2 -2
- package/dist/paperless/{p-3d867690.entry.js → p-5a7c004d.entry.js} +2 -2
- package/dist/paperless/{p-3e9d994a.entry.js → p-5afd99f1.entry.js} +2 -2
- package/dist/paperless/{p-16a18649.entry.js → p-5df485b9.entry.js} +2 -2
- package/dist/paperless/{p-9fa5d08a.entry.js → p-648c33b9.entry.js} +2 -2
- package/dist/paperless/{p-047c1c6f.entry.js → p-6521a730.entry.js} +2 -2
- package/dist/{build/p-909879e3.entry.js → paperless/p-6d6bb913.entry.js} +2 -2
- package/dist/paperless/{p-45463125.entry.js → p-75330470.entry.js} +2 -2
- package/dist/{build/p-a7b8e22f.entry.js → paperless/p-7eb4689d.entry.js} +2 -2
- package/dist/{build/p-7beb3401.entry.js → paperless/p-82c79faa.entry.js} +2 -2
- package/dist/paperless/p-88f72088.entry.js +2 -0
- package/dist/paperless/p-88f72088.entry.js.map +1 -0
- package/dist/paperless/{p-6e71ebca.entry.js → p-9d112705.entry.js} +2 -2
- package/dist/paperless/{p-937b2d74.entry.js → p-a26e1c6d.entry.js} +2 -2
- package/dist/paperless/p-a3853fc7.js +3 -0
- package/dist/paperless/p-a3853fc7.js.map +1 -0
- package/dist/paperless/{p-be0c925e.entry.js → p-a5995873.entry.js} +2 -2
- package/dist/{build/p-cb8a454c.entry.js → paperless/p-aa4ebfcd.entry.js} +2 -2
- package/dist/paperless/{p-a587ff9f.entry.js → p-b18ef00d.entry.js} +2 -2
- package/dist/paperless/p-b7a45a0a.entry.js +2 -0
- package/dist/paperless/p-b7a45a0a.entry.js.map +1 -0
- package/dist/paperless/{p-393eba2f.entry.js → p-b9cdcb32.entry.js} +2 -2
- package/dist/{build/p-aab1cda1.entry.js → paperless/p-b9e42e93.entry.js} +2 -2
- package/dist/paperless/{p-851a7662.entry.js → p-bf9965ea.entry.js} +2 -2
- package/dist/paperless/p-bf9965ea.entry.js.map +1 -0
- package/dist/paperless/{p-013cd7f9.entry.js → p-cada312c.entry.js} +2 -2
- package/dist/{build/p-f78afad9.entry.js → paperless/p-d8498647.entry.js} +2 -2
- package/dist/paperless/p-d8498647.entry.js.map +1 -0
- package/dist/{build/p-0348e450.entry.js → paperless/p-dc9bf641.entry.js} +2 -2
- package/dist/paperless/{p-aa058967.entry.js → p-e18e29aa.entry.js} +2 -2
- package/dist/paperless/{p-ece8998b.entry.js → p-e4ab1d73.entry.js} +2 -2
- package/dist/paperless/{p-08ea38ad.entry.js → p-e74bd898.entry.js} +2 -2
- package/dist/paperless/{p-23ca3688.entry.js → p-e78945ad.entry.js} +2 -2
- package/dist/paperless/{p-cb7c509e.entry.js → p-ea329388.entry.js} +2 -2
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/atoms/portal/portal.component.d.ts +9 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +6 -1
- package/dist/types/components.d.ts +23 -0
- package/hydrate/index.js +105 -40
- package/package.json +1 -1
- package/dist/build/p-28d14744.entry.js +0 -2
- package/dist/build/p-28d14744.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-851a7662.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-d7dbd13e.entry.js +0 -2
- package/dist/build/p-d7dbd13e.entry.js.map +0 -1
- package/dist/build/p-f78afad9.entry.js.map +0 -1
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +0 -1
- package/dist/esm/p-dropdown-menu-container.entry.js.map +0 -1
- package/dist/paperless/p-28d14744.entry.js +0 -2
- package/dist/paperless/p-28d14744.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-851a7662.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-d7dbd13e.entry.js +0 -2
- package/dist/paperless/p-d7dbd13e.entry.js.map +0 -1
- package/dist/paperless/p-f78afad9.entry.js.map +0 -1
- /package/dist/build/{p-60492c98.entry.js.map → p-04f2c445.entry.js.map} +0 -0
- /package/dist/build/{p-2f9e9197.entry.js.map → p-0b5a9b3b.entry.js.map} +0 -0
- /package/dist/build/{p-dce95c92.entry.js.map → p-0fb58b95.entry.js.map} +0 -0
- /package/dist/build/{p-64b53130.entry.js.map → p-12f5d6c1.entry.js.map} +0 -0
- /package/dist/build/{p-5ab354bf.entry.js.map → p-14f3312f.entry.js.map} +0 -0
- /package/dist/build/{p-d81a30f6.entry.js.map → p-15abe9ab.entry.js.map} +0 -0
- /package/dist/build/{p-b8e718c7.entry.js.map → p-1926e607.entry.js.map} +0 -0
- /package/dist/build/{p-385943b2.entry.js.map → p-195ede81.entry.js.map} +0 -0
- /package/dist/build/{p-32056913.entry.js.map → p-198b4653.entry.js.map} +0 -0
- /package/dist/build/{p-221dbb71.entry.js.map → p-1c97ddaa.entry.js.map} +0 -0
- /package/dist/build/{p-bc46f89a.entry.js.map → p-285babdd.entry.js.map} +0 -0
- /package/dist/build/{p-b9a7e240.entry.js.map → p-28fee2e1.entry.js.map} +0 -0
- /package/dist/build/{p-dd6d3839.entry.js.map → p-2bedd43c.entry.js.map} +0 -0
- /package/dist/build/{p-5e789bb1.entry.js.map → p-36d0d0e6.entry.js.map} +0 -0
- /package/dist/build/{p-e10cf2d3.entry.js.map → p-3885d19b.entry.js.map} +0 -0
- /package/dist/build/{p-bfbab545.entry.js.map → p-3b9d77dc.entry.js.map} +0 -0
- /package/dist/build/{p-7a577384.entry.js.map → p-3dba9a43.entry.js.map} +0 -0
- /package/dist/build/{p-c6bcbcbf.entry.js.map → p-43cdfda1.entry.js.map} +0 -0
- /package/dist/build/{p-fcaa0539.entry.js.map → p-4c3cdddf.entry.js.map} +0 -0
- /package/dist/build/{p-6fed974c.entry.js.map → p-51b3884b.entry.js.map} +0 -0
- /package/dist/build/{p-ea3bce45.entry.js.map → p-55752ba9.entry.js.map} +0 -0
- /package/dist/build/{p-6f7721eb.entry.js.map → p-5a072ae3.entry.js.map} +0 -0
- /package/dist/build/{p-3d867690.entry.js.map → p-5a7c004d.entry.js.map} +0 -0
- /package/dist/build/{p-3e9d994a.entry.js.map → p-5afd99f1.entry.js.map} +0 -0
- /package/dist/build/{p-16a18649.entry.js.map → p-5df485b9.entry.js.map} +0 -0
- /package/dist/build/{p-9fa5d08a.entry.js.map → p-648c33b9.entry.js.map} +0 -0
- /package/dist/build/{p-047c1c6f.entry.js.map → p-6521a730.entry.js.map} +0 -0
- /package/dist/build/{p-909879e3.entry.js.map → p-6d6bb913.entry.js.map} +0 -0
- /package/dist/build/{p-45463125.entry.js.map → p-75330470.entry.js.map} +0 -0
- /package/dist/build/{p-a7b8e22f.entry.js.map → p-7eb4689d.entry.js.map} +0 -0
- /package/dist/build/{p-7beb3401.entry.js.map → p-82c79faa.entry.js.map} +0 -0
- /package/dist/build/{p-6e71ebca.entry.js.map → p-9d112705.entry.js.map} +0 -0
- /package/dist/build/{p-937b2d74.entry.js.map → p-a26e1c6d.entry.js.map} +0 -0
- /package/dist/build/{p-be0c925e.entry.js.map → p-a5995873.entry.js.map} +0 -0
- /package/dist/build/{p-cb8a454c.entry.js.map → p-aa4ebfcd.entry.js.map} +0 -0
- /package/dist/build/{p-a587ff9f.entry.js.map → p-b18ef00d.entry.js.map} +0 -0
- /package/dist/build/{p-393eba2f.entry.js.map → p-b9cdcb32.entry.js.map} +0 -0
- /package/dist/build/{p-aab1cda1.entry.js.map → p-b9e42e93.entry.js.map} +0 -0
- /package/dist/build/{p-013cd7f9.entry.js.map → p-cada312c.entry.js.map} +0 -0
- /package/dist/build/{p-0348e450.entry.js.map → p-dc9bf641.entry.js.map} +0 -0
- /package/dist/build/{p-aa058967.entry.js.map → p-e18e29aa.entry.js.map} +0 -0
- /package/dist/build/{p-ece8998b.entry.js.map → p-e4ab1d73.entry.js.map} +0 -0
- /package/dist/build/{p-08ea38ad.entry.js.map → p-e74bd898.entry.js.map} +0 -0
- /package/dist/build/{p-23ca3688.entry.js.map → p-e78945ad.entry.js.map} +0 -0
- /package/dist/build/{p-cb7c509e.entry.js.map → p-ea329388.entry.js.map} +0 -0
- /package/dist/paperless/{p-60492c98.entry.js.map → p-04f2c445.entry.js.map} +0 -0
- /package/dist/paperless/{p-2f9e9197.entry.js.map → p-0b5a9b3b.entry.js.map} +0 -0
- /package/dist/paperless/{p-dce95c92.entry.js.map → p-0fb58b95.entry.js.map} +0 -0
- /package/dist/paperless/{p-64b53130.entry.js.map → p-12f5d6c1.entry.js.map} +0 -0
- /package/dist/paperless/{p-5ab354bf.entry.js.map → p-14f3312f.entry.js.map} +0 -0
- /package/dist/paperless/{p-d81a30f6.entry.js.map → p-15abe9ab.entry.js.map} +0 -0
- /package/dist/paperless/{p-b8e718c7.entry.js.map → p-1926e607.entry.js.map} +0 -0
- /package/dist/paperless/{p-385943b2.entry.js.map → p-195ede81.entry.js.map} +0 -0
- /package/dist/paperless/{p-32056913.entry.js.map → p-198b4653.entry.js.map} +0 -0
- /package/dist/paperless/{p-221dbb71.entry.js.map → p-1c97ddaa.entry.js.map} +0 -0
- /package/dist/paperless/{p-bc46f89a.entry.js.map → p-285babdd.entry.js.map} +0 -0
- /package/dist/paperless/{p-b9a7e240.entry.js.map → p-28fee2e1.entry.js.map} +0 -0
- /package/dist/paperless/{p-dd6d3839.entry.js.map → p-2bedd43c.entry.js.map} +0 -0
- /package/dist/paperless/{p-5e789bb1.entry.js.map → p-36d0d0e6.entry.js.map} +0 -0
- /package/dist/paperless/{p-e10cf2d3.entry.js.map → p-3885d19b.entry.js.map} +0 -0
- /package/dist/paperless/{p-bfbab545.entry.js.map → p-3b9d77dc.entry.js.map} +0 -0
- /package/dist/paperless/{p-7a577384.entry.js.map → p-3dba9a43.entry.js.map} +0 -0
- /package/dist/paperless/{p-c6bcbcbf.entry.js.map → p-43cdfda1.entry.js.map} +0 -0
- /package/dist/paperless/{p-fcaa0539.entry.js.map → p-4c3cdddf.entry.js.map} +0 -0
- /package/dist/paperless/{p-6fed974c.entry.js.map → p-51b3884b.entry.js.map} +0 -0
- /package/dist/paperless/{p-ea3bce45.entry.js.map → p-55752ba9.entry.js.map} +0 -0
- /package/dist/paperless/{p-6f7721eb.entry.js.map → p-5a072ae3.entry.js.map} +0 -0
- /package/dist/paperless/{p-3d867690.entry.js.map → p-5a7c004d.entry.js.map} +0 -0
- /package/dist/paperless/{p-3e9d994a.entry.js.map → p-5afd99f1.entry.js.map} +0 -0
- /package/dist/paperless/{p-16a18649.entry.js.map → p-5df485b9.entry.js.map} +0 -0
- /package/dist/paperless/{p-9fa5d08a.entry.js.map → p-648c33b9.entry.js.map} +0 -0
- /package/dist/paperless/{p-047c1c6f.entry.js.map → p-6521a730.entry.js.map} +0 -0
- /package/dist/paperless/{p-909879e3.entry.js.map → p-6d6bb913.entry.js.map} +0 -0
- /package/dist/paperless/{p-45463125.entry.js.map → p-75330470.entry.js.map} +0 -0
- /package/dist/paperless/{p-a7b8e22f.entry.js.map → p-7eb4689d.entry.js.map} +0 -0
- /package/dist/paperless/{p-7beb3401.entry.js.map → p-82c79faa.entry.js.map} +0 -0
- /package/dist/paperless/{p-6e71ebca.entry.js.map → p-9d112705.entry.js.map} +0 -0
- /package/dist/paperless/{p-937b2d74.entry.js.map → p-a26e1c6d.entry.js.map} +0 -0
- /package/dist/paperless/{p-be0c925e.entry.js.map → p-a5995873.entry.js.map} +0 -0
- /package/dist/paperless/{p-cb8a454c.entry.js.map → p-aa4ebfcd.entry.js.map} +0 -0
- /package/dist/paperless/{p-a587ff9f.entry.js.map → p-b18ef00d.entry.js.map} +0 -0
- /package/dist/paperless/{p-393eba2f.entry.js.map → p-b9cdcb32.entry.js.map} +0 -0
- /package/dist/paperless/{p-aab1cda1.entry.js.map → p-b9e42e93.entry.js.map} +0 -0
- /package/dist/paperless/{p-013cd7f9.entry.js.map → p-cada312c.entry.js.map} +0 -0
- /package/dist/paperless/{p-0348e450.entry.js.map → p-dc9bf641.entry.js.map} +0 -0
- /package/dist/paperless/{p-aa058967.entry.js.map → p-e18e29aa.entry.js.map} +0 -0
- /package/dist/paperless/{p-ece8998b.entry.js.map → p-e4ab1d73.entry.js.map} +0 -0
- /package/dist/paperless/{p-08ea38ad.entry.js.map → p-e74bd898.entry.js.map} +0 -0
- /package/dist/paperless/{p-23ca3688.entry.js.map → p-e78945ad.entry.js.map} +0 -0
- /package/dist/paperless/{p-cb7c509e.entry.js.map → p-ea329388.entry.js.map} +0 -0
|
@@ -36,14 +36,11 @@ const InputGroup = /*@__PURE__*/ proxyCustomElement(class InputGroup extends HTM
|
|
|
36
36
|
render() {
|
|
37
37
|
var _a;
|
|
38
38
|
const { hasHeaderSlot, helper, label, prefix, suffix, errorAndErrorIsNotBoolean, errorVariant, } = this._getSlotInfo();
|
|
39
|
-
return (h(Host, { class: `p-input-group ${((_a = this.error) === null || _a === void 0 ? void 0 : _a.length) && 'error'} ${this.disabled && 'disabled'} ${this.focused && 'focused'} size-${this.size}` }, h("div", { class:
|
|
39
|
+
return (h(Host, { class: `p-input-group ${((_a = this.error) === null || _a === void 0 ? void 0 : _a.length) && 'error'} ${this.disabled && 'disabled'} ${this.focused && 'focused'} size-${this.size}` }, h("div", { class: 'flex items-end justify-between' }, label && (h("div", { class: 'input-label', onClick: () => this._focusInput() }, label, this.required && h("span", { class: 'ml-1 text-negative' }, "*"))), (helper || hasHeaderSlot) && (h("div", { class: 'input-header' }, hasHeaderSlot && h("slot", { name: 'header' }), helper && (h("p-helper", { class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))), h("p-tooltip", { class: 'w-full', variant: 'error-element', content: this.error, show: errorAndErrorIsNotBoolean &&
|
|
40
40
|
errorVariant === 'element' &&
|
|
41
|
-
(this.forceShowTooltip || this._forceShowTooltip), enableUserInput: false }, h("div", { class:
|
|
42
|
-
(
|
|
43
|
-
(errorAndErrorIsNotBoolean &&
|
|
44
|
-
errorVariant === 'icon') ||
|
|
45
|
-
(this.icon && this.iconPosition === 'end')) && (h("div", { class: `suffix size-${this.size}`, onClick: () => this._focusInput() }, errorAndErrorIsNotBoolean &&
|
|
46
|
-
errorVariant === 'icon' ? (h("p-input-error", { error: this.error, forceShowTooltip: this.forceShowTooltip || this._forceShowTooltip })) : this.icon && this.iconPosition === 'end' ? (h("p-icon", { class: "flex", variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix))), h("slot", { name: "input" })))));
|
|
41
|
+
(this.forceShowTooltip || this._forceShowTooltip), enableUserInput: false }, h("div", { class: 'content', slot: 'trigger' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { class: `prefix size-${this.size}`, onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), (suffix ||
|
|
42
|
+
(errorAndErrorIsNotBoolean && errorVariant === 'icon') ||
|
|
43
|
+
(this.icon && this.iconPosition === 'end')) && (h("div", { class: `suffix size-${this.size}`, onClick: () => this._focusInput() }, errorAndErrorIsNotBoolean && errorVariant === 'icon' ? (h("p-input-error", { error: this.error, forceShowTooltip: this.forceShowTooltip || this._forceShowTooltip })) : this.icon && this.iconPosition === 'end' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix))), h("slot", { name: 'input' })))));
|
|
47
44
|
}
|
|
48
45
|
handleFocusIn() {
|
|
49
46
|
this._forceShowTooltip = true;
|
|
@@ -96,13 +93,11 @@ const InputGroup = /*@__PURE__*/ proxyCustomElement(class InputGroup extends HTM
|
|
|
96
93
|
const hasPrefixSlot = !!this._el.querySelector(':scope > [slot="prefix"]');
|
|
97
94
|
const hasSuffixSlot = !!this._el.querySelector(':scope > [slot="suffix"]');
|
|
98
95
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
99
|
-
const helper = hasHelperSlot ? h("slot", { name:
|
|
100
|
-
const label = hasLabelSlot ? h("slot", { name:
|
|
101
|
-
const prefix = hasPrefixSlot ? h("slot", { name:
|
|
102
|
-
const suffix = hasSuffixSlot ? h("slot", { name:
|
|
103
|
-
const errorAndErrorIsNotBoolean = this.error &&
|
|
104
|
-
typeof this.error === 'string' &&
|
|
105
|
-
this.error !== 'true';
|
|
96
|
+
const helper = hasHelperSlot ? h("slot", { name: 'helper' }) : this.helper;
|
|
97
|
+
const label = hasLabelSlot ? h("slot", { name: 'label' }) : this.label;
|
|
98
|
+
const prefix = hasPrefixSlot ? h("slot", { name: 'prefix' }) : this.prefix;
|
|
99
|
+
const suffix = hasSuffixSlot ? h("slot", { name: 'suffix' }) : this.suffix;
|
|
100
|
+
const errorAndErrorIsNotBoolean = this.error && typeof this.error === 'string' && this.error !== 'true';
|
|
106
101
|
return {
|
|
107
102
|
hasHelperSlot,
|
|
108
103
|
hasLabelSlot,
|
|
@@ -114,7 +109,11 @@ const InputGroup = /*@__PURE__*/ proxyCustomElement(class InputGroup extends HTM
|
|
|
114
109
|
prefix,
|
|
115
110
|
suffix,
|
|
116
111
|
errorAndErrorIsNotBoolean,
|
|
117
|
-
errorVariant: this.errorVariant === 'auto'
|
|
112
|
+
errorVariant: this.errorVariant === 'auto'
|
|
113
|
+
? this._el.offsetWidth <= 72
|
|
114
|
+
? 'element'
|
|
115
|
+
: 'icon'
|
|
116
|
+
: this.errorVariant,
|
|
118
117
|
};
|
|
119
118
|
}
|
|
120
119
|
_focusInput() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"input-group.component.js","mappings":";;;;;;AAAA,MAAM,sBAAsB,GAAG,usuDAAusuD;;MCiBztuD,UAAU;;;;;IAwFd,qBAAgB,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;gBApFd,QAAQ;;;;;;wBA8BH,OAAO;;;;;oBAyBF,KAAK;mBAKN,KAAK;4BAKI,KAAK;uBAKjB,OAAO;wBAKM,MAAM;6BAOvB,KAAK;;EAI1C,mBAAmB;IAClB,IAAI,CAAC,gBAAgB,EAAE,CAAC;GACxB;EAED,MAAM;;IACL,MAAM,EACL,aAAa,EACb,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,EACN,yBAAyB,EACzB,YAAY,GACZ,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAExB,QACC,EAAC,IAAI,IACJ,KAAK,EAAE,iBA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I,IAAI,CAAC,YAAY;KAClH,CAAC;GACF;EAEO,WAAW;IAClB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC/D,KAAqB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;GAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/molecules/input-group/input-group.component.scss?tag=p-input-group&encapsulation=shadow","src/components/molecules/input-group/input-group.component.tsx"],"sourcesContent":["@import '../../../style/form/mixins';\n\n@mixin slottedItems($prefix: false) {\n\t@include inputs($prefix, true) {\n\t\t@content;\n\t}\n}\n\n:host {\n\t@apply flex w-full flex-col;\n\t@apply outline-none #{!important};\n\n\t.input-label {\n\t\t@apply mb-[2px] text-xs font-semibold uppercase tracking-wider text-storm-vague;\n\t}\n\n\t.input-header {\n\t\t@apply mb-[2px] flex items-end gap-2;\n\t}\n\n\t.content {\n\t\t@apply flex w-full;\n\n\t\t.prefix,\n\t\t.suffix {\n\t\t\t@include inputDefaultState(false);\n\t\t\t@apply box-border flex-1 text-storm;\n\t\t\t@apply h-full;\n\t\t}\n\n\t\t.prefix {\n\t\t\t@apply rounded-br-none rounded-tr-none;\n\t\t\t@apply border-r-0 #{!important};\n\t\t\t@apply order-1;\n\t\t\t@apply pr-2;\n\t\t}\n\n\t\t.suffix {\n\t\t\t@apply rounded-bl-none rounded-tl-none;\n\t\t\t@apply order-3;\n\t\t\t@apply pl-2;\n\t\t\t@apply border-l-0 #{!important};\n\t\t}\n\n\t\t@include slottedItems() {\n\t\t\t@include inputDefaultState();\n\t\t\t@apply order-2;\n\t\t}\n\n\t\t@include slottedItems('.prefix') {\n\t\t\t@apply rounded-bl-none rounded-tl-none #{!important};\n\t\t\t@apply flex-auto;\n\t\t\t@apply border-l-0 pl-0 #{!important};\n\t\t}\n\n\t\t@include slottedItems('.suffix') {\n\t\t\t@apply rounded-br-none rounded-tr-none #{!important};\n\t\t\t@apply flex-auto;\n\t\t\t@apply border-r-0 pr-0 #{!important};\n\t\t}\n\t}\n}\n\n:host(.focused),\n:host([focused]),\n:host(:focus-within),\n:host(:focus) {\n\t@apply outline-none #{!important};\n\n\t.prefix,\n\t.suffix {\n\t\t@include inputFocusState();\n\t\t@apply text-indigo;\n\t}\n\n\t@include slottedItems() {\n\t\t@include inputFocusState();\n\t}\n}\n\n:host(.error),\n:host([error]) {\n\t.prefix,\n\t.suffix {\n\t\t@include inputErrorState();\n\t\t@apply text-negative;\n\t}\n\n\t.suffix {\n\t\t@apply items-start py-[calc(0.75rem-1px)];\n\t}\n\n\t@include slottedItems() {\n\t\t@include inputErrorState();\n\n\t\t&:focus,\n\t\t&:focus-within,\n\t\t&:focus-visible,\n\t\t&.focus,\n\t\t&[active],\n\t\t&.active {\n\t\t\t@include inputErrorState();\n\t\t}\n\t}\n}\n\n:host(.disabled),\n:host([disabled]) {\n\t.prefix,\n\t.suffix {\n\t\t@include inputDisabledState();\n\t}\n\n\t@include slottedItems() {\n\t\t@include inputDisabledState();\n\t\tpointer-events: none;\n\t}\n}\n\n:host(.size-small) {\n\t@include slottedItems() {\n\t\t@include inputSizeSmall();\n\t}\n}\n\n:host(.size-small.error),\n:host(.size-small[error]) {\n\t.suffix {\n\t\t@apply py-2;\n\t}\n}\n","import {\n Component,\n Element,\n h,\n Host,\n Listen,\n Prop,\n State\n} from '@stencil/core';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\n\n@Component({\n\ttag: 'p-input-group',\n\tstyleUrl: './input-group.component.scss',\n\tshadow: true,\n})\nexport class InputGroup {\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() size: 'small' | 'medium' = 'medium';\n\n\t/**\n\t * The prefix of the input group\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the input group\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the input group\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip\n\t */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * Wether the input group is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the input group is focused\n\t */\n\t@Prop({ reflect: true }) focused: boolean = false;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The method to use when focusing the input\n\t */\n\t@Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n\t/**\n\t * The error variant to use\n\t */\n\t@Prop() errorVariant: 'auto' | 'suffix' | 'element' = 'auto';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _forceShowTooltip = false;\n\n\tprivate _whitelistedTags = ['input', 'textarea'];\n\n\tcomponentWillRender() {\n\t\tthis._setInputClasses();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t\terrorVariant,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-input-group ${this.error?.length && 'error'} ${\n\t\t\t\t\tthis.disabled && 'disabled'\n\t\t\t\t} ${this.focused && 'focused'} size-${this.size}`}\n\t\t\t>\n\t\t\t\t<div class=\"flex items-end justify-between\">\n\t\t\t\t\t{label && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"input-label\"\n\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t{this.required && (\n\t\t\t\t\t\t\t\t<span class=\"ml-1 text-negative\">*</span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t<div class=\"input-header\">\n\t\t\t\t\t\t\t{hasHeaderSlot && <slot name=\"header\" />}\n\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\tclass={`flex ${\n\t\t\t\t\t\t\t\t\t\thasHeaderSlot ? 'ml-2' : ''\n\t\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t\t\tplacement=\"top-end\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t</p-helper>\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\t<p-tooltip\n\t\t\t\t\tclass=\"w-full\"\n\t\t\t\t\tvariant=\"error-element\"\n\t\t\t\t\tcontent={this.error}\n\t\t\t\t\tshow={\n\t\t\t\t\t\terrorAndErrorIsNotBoolean &&\n\t\t\t\t\t\terrorVariant === 'element' &&\n\t\t\t\t\t\t(this.forceShowTooltip || this._forceShowTooltip)\n\t\t\t\t\t}\n\t\t\t\t\tenableUserInput={false}\n\t\t\t\t>\n\t\t\t\t\t<div class=\"content\" slot=\"trigger\">\n\t\t\t\t\t\t{(prefix ||\n\t\t\t\t\t\t\t(this.icon && this.iconPosition === 'start')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={`prefix size-${this.size}`}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'start' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass=\"flex\"\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tprefix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{(suffix ||\n\t\t\t\t\t\t\t(errorAndErrorIsNotBoolean &&\n\t\t\t\t\t\t\t\terrorVariant === 'icon') ||\n\t\t\t\t\t\t\t(this.icon && this.iconPosition === 'end')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={`suffix size-${this.size}`}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{errorAndErrorIsNotBoolean &&\n\t\t\t\t\t\t\t\terrorVariant === 'icon' ? (\n\t\t\t\t\t\t\t\t\t<p-input-error\n\t\t\t\t\t\t\t\t\t\terror={this.error}\n\t\t\t\t\t\t\t\t\t\tforceShowTooltip={\n\t\t\t\t\t\t\t\t\t\t\tthis.forceShowTooltip || this._forceShowTooltip\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : this.icon && this.iconPosition === 'end' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass=\"flex\"\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tsuffix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<slot name=\"input\" />\n\t\t\t\t\t</div>\n\t\t\t\t</p-tooltip>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('focusin')\n\thandleFocusIn() {\n\t\tthis._forceShowTooltip = true;\n\t}\n\n\t@Listen('focusout')\n\thandleFocusOut() {\n\t\tthis._forceShowTooltip = false;\n\t}\n\t/*\n With this, we shall hack the system in ways no one would ever have thought.\n\n <div class=\"pl-0 pr-0 border-l-0 border-r-0 rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none\"></div>\n */\n\tprivate _setInputClasses() {\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\n\t\tif (!input) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst tagName = input.tagName.toLowerCase();\n\t\tif (this._whitelistedTags.indexOf(tagName) === -1) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!input.classList.contains('p-input')) {\n\t\t\tinput.classList.add('p-input');\n\t\t}\n\n\t\tconst { prefix, suffix, errorAndErrorIsNotBoolean, errorVariant } =\n\t\t\tthis._getSlotInfo();\n\n\t\tif (\n\t\t\tsuffix ||\n\t\t\t(errorAndErrorIsNotBoolean && errorVariant === 'icon') ||\n\t\t\t(this.icon && this.iconPosition === 'end')\n\t\t) {\n\t\t\tinput.classList.add(\n\t\t\t\t'border-r-0',\n\t\t\t\t'rounded-tr-none',\n\t\t\t\t'rounded-br-none',\n\t\t\t\t'pr-0'\n\t\t\t);\n\t\t} else {\n\t\t\tinput.classList.remove(\n\t\t\t\t'border-r-0',\n\t\t\t\t'rounded-tr-none',\n\t\t\t\t'rounded-br-none',\n\t\t\t\t'pr-0'\n\t\t\t);\n\t\t}\n\n\t\tif (prefix || (this.icon && this.iconPosition === 'start')) {\n\t\t\tinput.classList.add(\n\t\t\t\t'border-l-0',\n\t\t\t\t'rounded-tl-none',\n\t\t\t\t'rounded-bl-none',\n\t\t\t\t'pl-0'\n\t\t\t);\n\t\t} else {\n\t\t\tinput.classList.remove(\n\t\t\t\t'border-l-0',\n\t\t\t\t'rounded-tl-none',\n\t\t\t\t'rounded-bl-none',\n\t\t\t\t'pl-0'\n\t\t\t);\n\t\t}\n\n\t\tif (this.size === 'small' && !input.classList.contains('size-small')) {\n\t\t\tinput.classList.add('size-small');\n\t\t}\n\n\t\tif (this.size !== 'small' && input.classList.contains('size-small')) {\n\t\t\tinput.classList.remove('size-small');\n\t\t}\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"helper\"]'\n\t\t);\n\t\tconst hasLabelSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"label\"]'\n\t\t);\n\t\tconst hasPrefixSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"prefix\"]'\n\t\t);\n\t\tconst hasSuffixSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"suffix\"]'\n\t\t);\n\t\tconst hasHeaderSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"header\"]'\n\t\t);\n\n\t\tconst helper = hasHelperSlot ? <slot name=\"helper\" /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name=\"label\" /> : this.label;\n\t\tconst prefix = hasPrefixSlot ? <slot name=\"prefix\" /> : this.prefix;\n\t\tconst suffix = hasSuffixSlot ? <slot name=\"suffix\" /> : this.suffix;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\tthis.error &&\n\t\t\ttypeof this.error === 'string' &&\n\t\t\tthis.error !== 'true';\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasPrefixSlot,\n\t\t\thasSuffixSlot,\n\t\t\thasHeaderSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t\terrorVariant: this.errorVariant === 'auto' ? (this._el.offsetWidth <= 72 ? 'element' : 'icon') : this.errorVariant,\n\t\t};\n\t}\n\n\tprivate _focusInput() {\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\t\t(input as HTMLElement)[this.focusMethod]();\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"input-group.component.js","mappings":";;;;;;AAAA,MAAM,sBAAsB,GAAG,usuDAAusuD;;MCiBztuD,UAAU;;;;;IAwFd,qBAAgB,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;gBApFd,QAAQ;;;;;;wBA8BH,OAAO;;;;;oBAyBF,KAAK;mBAKN,KAAK;4BAKI,KAAK;uBAKjB,OAAO;wBAKM,MAAM;6BAOvB,KAAK;;EAI1C,mBAAmB;IAClB,IAAI,CAAC,gBAAgB,EAAE,CAAC;GACxB;EAED,MAAM;;IACL,MAAM,EACL,aAAa,EACb,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,EACN,yBAAyB,EACzB,YAAY,GACZ,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAExB,QACC,EAAC,IAAI,IACJ,KAAK,EAAE,iBAAiB,CAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,MAAM,KAAI,OAAO,IACpD,IAAI,CAAC,QAAQ,IAAI,UAClB,IAAI,IAAI,CAAC,OAAO,IAAI,SAAS,SAAS,IAAI,CAAC,IAAI,EAAE,IAEjD,WAAK,KAAK,EAAC,gCAAgC,IACzC,KAAK,KACL,WACC,KAAK,EAAC,aAAa,EACnB,OAAO,EAAE,MAAM,IAAI,CAAC,WAAW,EAAE,IAEhC,KAAK,EACL,IAAI,CAAC,QAAQ,IAAI,YAAM,KAAK,EAAC,oBAAoB,QAAS,CACtD,CACN,EAEA,CAAC,MAAM,IAAI,aAAa,MACxB,WAAK,KAAK,EAAC,cAAc,IACvB,a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A0B,CAAC,CAAC;IAE3E,MAAM,MAAM,GAAG,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;IACpE,MAAM,KAAK,GAAG,YAAY,GAAG,YAAM,IAAI,EAAC,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;IAChE,MAAM,MAAM,GAAG,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;IACpE,MAAM,MAAM,GAAG,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;IAEpE,MAAM,yBAAyB,GAC9B,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC;IAEvE,OAAO;MACN,aAAa;MACb,YAAY;MACZ,aAAa;MACb,aAAa;MACb,aAAa;MACb,MAAM;MACN,KAAK;MACL,MAAM;MACN,MAAM;MACN,yBAAyB;MACzB,YAAY,EACX,IAAI,CAAC,YAAY,KAAK,MAAM;UACzB,IAAI,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE;YACzB,SAAS;YACT,MAAM;UACP,IAAI,CAAC,YAAY;KACrB,CAAC;GACF;EAEO,WAAW;IAClB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC/D,KAAqB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;GAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/molecules/input-group/input-group.component.scss?tag=p-input-group&encapsulation=shadow","src/components/molecules/input-group/input-group.component.tsx"],"sourcesContent":["@import '../../../style/form/mixins';\n\n@mixin slottedItems($prefix: false) {\n\t@include inputs($prefix, true) {\n\t\t@content;\n\t}\n}\n\n:host {\n\t@apply flex w-full flex-col;\n\t@apply outline-none #{!important};\n\n\t.input-label {\n\t\t@apply mb-[2px] text-xs font-semibold uppercase tracking-wider text-storm-vague;\n\t}\n\n\t.input-header {\n\t\t@apply mb-[2px] flex items-end gap-2;\n\t}\n\n\t.content {\n\t\t@apply flex w-full;\n\n\t\t.prefix,\n\t\t.suffix {\n\t\t\t@include inputDefaultState(false);\n\t\t\t@apply box-border flex-1 text-storm;\n\t\t\t@apply h-full;\n\t\t}\n\n\t\t.prefix {\n\t\t\t@apply rounded-br-none rounded-tr-none;\n\t\t\t@apply border-r-0 #{!important};\n\t\t\t@apply order-1;\n\t\t\t@apply pr-2;\n\t\t}\n\n\t\t.suffix {\n\t\t\t@apply rounded-bl-none rounded-tl-none;\n\t\t\t@apply order-3;\n\t\t\t@apply pl-2;\n\t\t\t@apply border-l-0 #{!important};\n\t\t}\n\n\t\t@include slottedItems() {\n\t\t\t@include inputDefaultState();\n\t\t\t@apply order-2;\n\t\t}\n\n\t\t@include slottedItems('.prefix') {\n\t\t\t@apply rounded-bl-none rounded-tl-none #{!important};\n\t\t\t@apply flex-auto;\n\t\t\t@apply border-l-0 pl-0 #{!important};\n\t\t}\n\n\t\t@include slottedItems('.suffix') {\n\t\t\t@apply rounded-br-none rounded-tr-none #{!important};\n\t\t\t@apply flex-auto;\n\t\t\t@apply border-r-0 pr-0 #{!important};\n\t\t}\n\t}\n}\n\n:host(.focused),\n:host([focused]),\n:host(:focus-within),\n:host(:focus) {\n\t@apply outline-none #{!important};\n\n\t.prefix,\n\t.suffix {\n\t\t@include inputFocusState();\n\t\t@apply text-indigo;\n\t}\n\n\t@include slottedItems() {\n\t\t@include inputFocusState();\n\t}\n}\n\n:host(.error),\n:host([error]) {\n\t.prefix,\n\t.suffix {\n\t\t@include inputErrorState();\n\t\t@apply text-negative;\n\t}\n\n\t.suffix {\n\t\t@apply items-start py-[calc(0.75rem-1px)];\n\t}\n\n\t@include slottedItems() {\n\t\t@include inputErrorState();\n\n\t\t&:focus,\n\t\t&:focus-within,\n\t\t&:focus-visible,\n\t\t&.focus,\n\t\t&[active],\n\t\t&.active {\n\t\t\t@include inputErrorState();\n\t\t}\n\t}\n}\n\n:host(.disabled),\n:host([disabled]) {\n\t.prefix,\n\t.suffix {\n\t\t@include inputDisabledState();\n\t}\n\n\t@include slottedItems() {\n\t\t@include inputDisabledState();\n\t\tpointer-events: none;\n\t}\n}\n\n:host(.size-small) {\n\t@include slottedItems() {\n\t\t@include inputSizeSmall();\n\t}\n}\n\n:host(.size-small.error),\n:host(.size-small[error]) {\n\t.suffix {\n\t\t@apply py-2;\n\t}\n}\n","import {\n\tComponent,\n\tElement,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\n\n@Component({\n\ttag: 'p-input-group',\n\tstyleUrl: './input-group.component.scss',\n\tshadow: true,\n})\nexport class InputGroup {\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() size: 'small' | 'medium' = 'medium';\n\n\t/**\n\t * The prefix of the input group\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the input group\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the input group\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip\n\t */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * Wether the input group is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the input group is focused\n\t */\n\t@Prop({ reflect: true }) focused: boolean = false;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The method to use when focusing the input\n\t */\n\t@Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n\t/**\n\t * The error variant to use\n\t */\n\t@Prop() errorVariant: 'auto' | 'suffix' | 'element' = 'auto';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _forceShowTooltip = false;\n\n\tprivate _whitelistedTags = ['input', 'textarea'];\n\n\tcomponentWillRender() {\n\t\tthis._setInputClasses();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t\terrorVariant,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-input-group ${this.error?.length && 'error'} ${\n\t\t\t\t\tthis.disabled && 'disabled'\n\t\t\t\t} ${this.focused && 'focused'} size-${this.size}`}\n\t\t\t>\n\t\t\t\t<div class='flex items-end justify-between'>\n\t\t\t\t\t{label && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass='input-label'\n\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t{this.required && <span class='ml-1 text-negative'>*</span>}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t<div class='input-header'>\n\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\tclass={`flex ${hasHeaderSlot ? 'ml-2' : ''}`}\n\t\t\t\t\t\t\t\t\tplacement='top-end'\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t</p-helper>\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\t<p-tooltip\n\t\t\t\t\tclass='w-full'\n\t\t\t\t\tvariant='error-element'\n\t\t\t\t\tcontent={this.error}\n\t\t\t\t\tshow={\n\t\t\t\t\t\terrorAndErrorIsNotBoolean &&\n\t\t\t\t\t\terrorVariant === 'element' &&\n\t\t\t\t\t\t(this.forceShowTooltip || this._forceShowTooltip)\n\t\t\t\t\t}\n\t\t\t\t\tenableUserInput={false}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass='content'\n\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t>\n\t\t\t\t\t\t{(prefix || (this.icon && this.iconPosition === 'start')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={`prefix size-${this.size}`}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'start' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tprefix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{(suffix ||\n\t\t\t\t\t\t\t(errorAndErrorIsNotBoolean && errorVariant === 'icon') ||\n\t\t\t\t\t\t\t(this.icon && this.iconPosition === 'end')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={`suffix size-${this.size}`}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{errorAndErrorIsNotBoolean && errorVariant === 'icon' ? (\n\t\t\t\t\t\t\t\t\t<p-input-error\n\t\t\t\t\t\t\t\t\t\terror={this.error}\n\t\t\t\t\t\t\t\t\t\tforceShowTooltip={\n\t\t\t\t\t\t\t\t\t\t\tthis.forceShowTooltip || this._forceShowTooltip\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : this.icon && this.iconPosition === 'end' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tsuffix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<slot name='input' />\n\t\t\t\t\t</div>\n\t\t\t\t</p-tooltip>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('focusin')\n\thandleFocusIn() {\n\t\tthis._forceShowTooltip = true;\n\t}\n\n\t@Listen('focusout')\n\thandleFocusOut() {\n\t\tthis._forceShowTooltip = false;\n\t}\n\t/*\n With this, we shall hack the system in ways no one would ever have thought.\n\n <div class=\"pl-0 pr-0 border-l-0 border-r-0 rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none\"></div>\n */\n\tprivate _setInputClasses() {\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\n\t\tif (!input) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst tagName = input.tagName.toLowerCase();\n\t\tif (this._whitelistedTags.indexOf(tagName) === -1) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!input.classList.contains('p-input')) {\n\t\t\tinput.classList.add('p-input');\n\t\t}\n\n\t\tconst { prefix, suffix, errorAndErrorIsNotBoolean, errorVariant } =\n\t\t\tthis._getSlotInfo();\n\n\t\tif (\n\t\t\tsuffix ||\n\t\t\t(errorAndErrorIsNotBoolean && errorVariant === 'icon') ||\n\t\t\t(this.icon && this.iconPosition === 'end')\n\t\t) {\n\t\t\tinput.classList.add(\n\t\t\t\t'border-r-0',\n\t\t\t\t'rounded-tr-none',\n\t\t\t\t'rounded-br-none',\n\t\t\t\t'pr-0'\n\t\t\t);\n\t\t} else {\n\t\t\tinput.classList.remove(\n\t\t\t\t'border-r-0',\n\t\t\t\t'rounded-tr-none',\n\t\t\t\t'rounded-br-none',\n\t\t\t\t'pr-0'\n\t\t\t);\n\t\t}\n\n\t\tif (prefix || (this.icon && this.iconPosition === 'start')) {\n\t\t\tinput.classList.add(\n\t\t\t\t'border-l-0',\n\t\t\t\t'rounded-tl-none',\n\t\t\t\t'rounded-bl-none',\n\t\t\t\t'pl-0'\n\t\t\t);\n\t\t} else {\n\t\t\tinput.classList.remove(\n\t\t\t\t'border-l-0',\n\t\t\t\t'rounded-tl-none',\n\t\t\t\t'rounded-bl-none',\n\t\t\t\t'pl-0'\n\t\t\t);\n\t\t}\n\n\t\tif (this.size === 'small' && !input.classList.contains('size-small')) {\n\t\t\tinput.classList.add('size-small');\n\t\t}\n\n\t\tif (this.size !== 'small' && input.classList.contains('size-small')) {\n\t\t\tinput.classList.remove('size-small');\n\t\t}\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasPrefixSlot = !!this._el.querySelector(':scope > [slot=\"prefix\"]');\n\t\tconst hasSuffixSlot = !!this._el.querySelector(':scope > [slot=\"suffix\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\t\tconst prefix = hasPrefixSlot ? <slot name='prefix' /> : this.prefix;\n\t\tconst suffix = hasSuffixSlot ? <slot name='suffix' /> : this.suffix;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\tthis.error && typeof this.error === 'string' && this.error !== 'true';\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasPrefixSlot,\n\t\t\thasSuffixSlot,\n\t\t\thasHeaderSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t\terrorVariant:\n\t\t\t\tthis.errorVariant === 'auto'\n\t\t\t\t\t? this._el.offsetWidth <= 72\n\t\t\t\t\t\t? 'element'\n\t\t\t\t\t\t: 'icon'\n\t\t\t\t\t: this.errorVariant,\n\t\t};\n\t}\n\n\tprivate _focusInput() {\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\t\t(input as HTMLElement)[this.focusMethod]();\n\t}\n}\n"],"version":3}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as childOf } from './child-of.js';
|
|
3
|
-
import { _ as _typeof, g as getUTCWeekYear, s as startOfUTCWeek, a as startOfUTCISOWeek, r as requiredArgs, t as toDate, b as getUTCWeek, c as toInteger, e as getUTCISOWeek, f as getDefaultOptions, l as longFormatters, h as subMilliseconds, i as getTimezoneOffsetInMilliseconds, j as locale, k as isProtectedWeekYearToken, m as throwProtectedError, n as isProtectedDayOfYearToken, o as isValid, p as isBefore, q as isAfter, u as startOfDay, v as isSameDay, w as format, d as defineCustomElement$
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
3
|
+
import { _ as _typeof, g as getUTCWeekYear, s as startOfUTCWeek, a as startOfUTCISOWeek, r as requiredArgs, t as toDate, b as getUTCWeek, c as toInteger, e as getUTCISOWeek, f as getDefaultOptions, l as longFormatters, h as subMilliseconds, i as getTimezoneOffsetInMilliseconds, j as locale, k as isProtectedWeekYearToken, m as throwProtectedError, n as isProtectedDayOfYearToken, o as isValid, p as isBefore, q as isAfter, u as startOfDay, v as isSameDay, w as format, d as defineCustomElement$a } from './calendar.component.js';
|
|
4
|
+
import { d as defineCustomElement$9 } from './dropdown.component.js';
|
|
5
|
+
import { d as defineCustomElement$8 } from './dropdown-menu-container.component.js';
|
|
6
|
+
import { d as defineCustomElement$7 } from './helper.component.js';
|
|
7
|
+
import { d as defineCustomElement$6 } from './icon.component.js';
|
|
8
|
+
import { d as defineCustomElement$5 } from './input-error.component.js';
|
|
9
|
+
import { d as defineCustomElement$4 } from './input-group.component.js';
|
|
10
|
+
import { d as defineCustomElement$3 } from './portal.component.js';
|
|
10
11
|
import { d as defineCustomElement$2 } from './tooltip.component.js';
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -3084,7 +3085,7 @@ function defineCustomElement$1() {
|
|
|
3084
3085
|
if (typeof customElements === "undefined") {
|
|
3085
3086
|
return;
|
|
3086
3087
|
}
|
|
3087
|
-
const components = ["p-datepicker", "p-calendar", "p-dropdown", "p-dropdown-menu-container", "p-helper", "p-icon", "p-input-error", "p-input-group", "p-tooltip"];
|
|
3088
|
+
const components = ["p-datepicker", "p-calendar", "p-dropdown", "p-dropdown-menu-container", "p-helper", "p-icon", "p-input-error", "p-input-group", "p-portal", "p-tooltip"];
|
|
3088
3089
|
components.forEach(tagName => { switch (tagName) {
|
|
3089
3090
|
case "p-datepicker":
|
|
3090
3091
|
if (!customElements.get(tagName)) {
|
|
@@ -3093,35 +3094,40 @@ function defineCustomElement$1() {
|
|
|
3093
3094
|
break;
|
|
3094
3095
|
case "p-calendar":
|
|
3095
3096
|
if (!customElements.get(tagName)) {
|
|
3096
|
-
defineCustomElement$
|
|
3097
|
+
defineCustomElement$a();
|
|
3097
3098
|
}
|
|
3098
3099
|
break;
|
|
3099
3100
|
case "p-dropdown":
|
|
3100
3101
|
if (!customElements.get(tagName)) {
|
|
3101
|
-
defineCustomElement$
|
|
3102
|
+
defineCustomElement$9();
|
|
3102
3103
|
}
|
|
3103
3104
|
break;
|
|
3104
3105
|
case "p-dropdown-menu-container":
|
|
3105
3106
|
if (!customElements.get(tagName)) {
|
|
3106
|
-
defineCustomElement$
|
|
3107
|
+
defineCustomElement$8();
|
|
3107
3108
|
}
|
|
3108
3109
|
break;
|
|
3109
3110
|
case "p-helper":
|
|
3110
3111
|
if (!customElements.get(tagName)) {
|
|
3111
|
-
defineCustomElement$
|
|
3112
|
+
defineCustomElement$7();
|
|
3112
3113
|
}
|
|
3113
3114
|
break;
|
|
3114
3115
|
case "p-icon":
|
|
3115
3116
|
if (!customElements.get(tagName)) {
|
|
3116
|
-
defineCustomElement$
|
|
3117
|
+
defineCustomElement$6();
|
|
3117
3118
|
}
|
|
3118
3119
|
break;
|
|
3119
3120
|
case "p-input-error":
|
|
3120
3121
|
if (!customElements.get(tagName)) {
|
|
3121
|
-
defineCustomElement$
|
|
3122
|
+
defineCustomElement$5();
|
|
3122
3123
|
}
|
|
3123
3124
|
break;
|
|
3124
3125
|
case "p-input-group":
|
|
3126
|
+
if (!customElements.get(tagName)) {
|
|
3127
|
+
defineCustomElement$4();
|
|
3128
|
+
}
|
|
3129
|
+
break;
|
|
3130
|
+
case "p-portal":
|
|
3125
3131
|
if (!customElements.get(tagName)) {
|
|
3126
3132
|
defineCustomElement$3();
|
|
3127
3133
|
}
|