@paperless/core 2.0.1-beta.63 → 2.0.1-beta.65
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 +19 -0
- package/dist/build/{p-beb2f576.entry.js → p-00db68f0.entry.js} +2 -2
- package/dist/build/{p-080030a3.entry.js → p-09ee06f2.entry.js} +2 -2
- package/dist/build/{p-1b1de15b.entry.js → p-0a249d42.entry.js} +2 -2
- package/dist/build/p-0a249d42.entry.js.map +1 -0
- package/dist/build/{p-b98c09cc.entry.js → p-0d877ea2.entry.js} +2 -2
- package/dist/build/{p-e6275ef7.entry.js → p-1dc8b749.entry.js} +2 -2
- package/dist/build/p-1dc8b749.entry.js.map +1 -0
- package/dist/build/{p-727a9fd3.entry.js → p-2588c4db.entry.js} +2 -2
- package/dist/{paperless/p-c25e65dc.entry.js → build/p-26d8aace.entry.js} +2 -2
- package/dist/build/{p-03bf9ae8.entry.js → p-2c0d62fb.entry.js} +2 -2
- package/dist/build/p-322cc192.entry.js +2 -0
- package/dist/build/{p-dba6b57e.entry.js → p-38c4f906.entry.js} +2 -2
- package/dist/{paperless/p-d657dfff.entry.js → build/p-49650464.entry.js} +2 -2
- package/dist/build/p-4e286f43.entry.js +2 -0
- package/dist/build/{p-de983ac6.entry.js → p-518ae25b.entry.js} +2 -2
- package/dist/build/p-54ce327a.entry.js +2 -0
- package/dist/build/{p-bc5ea786.entry.js.map → p-54ce327a.entry.js.map} +1 -1
- package/dist/build/{p-1bcab63c.entry.js → p-558831b8.entry.js} +2 -2
- package/dist/{paperless/p-c1b25e59.entry.js → build/p-6642233d.entry.js} +2 -2
- package/dist/build/p-6be7dc53.entry.js +2 -0
- package/dist/build/p-6be7dc53.entry.js.map +1 -0
- package/dist/build/{p-355cbd7b.entry.js → p-6f07f37e.entry.js} +2 -2
- package/dist/build/{p-49e9d948.js → p-70daf62e.js} +1 -1
- package/dist/build/{p-14fe29ab.entry.js → p-70e9cd3b.entry.js} +2 -2
- package/dist/{paperless/p-01011a86.entry.js → build/p-727c7908.entry.js} +2 -2
- package/dist/build/{p-c98b14bd.entry.js → p-74338d94.entry.js} +2 -2
- package/dist/build/{p-008e9556.entry.js → p-83017ce4.entry.js} +2 -2
- package/dist/build/{p-637c2056.entry.js → p-84714aa2.entry.js} +2 -2
- package/dist/build/p-856d3eb4.entry.js +2 -0
- package/dist/build/{p-f4575636.entry.js → p-8730f1e9.entry.js} +2 -2
- package/dist/build/p-8fb95bd7.entry.js +2 -0
- package/dist/build/p-8fb95bd7.entry.js.map +1 -0
- package/dist/build/{p-e4cbcec7.entry.js → p-976c82ec.entry.js} +2 -2
- package/dist/{paperless/p-744ea9a0.entry.js → build/p-9bd484cf.entry.js} +2 -2
- package/dist/build/{p-74be7084.entry.js → p-a3786a55.entry.js} +2 -2
- package/dist/build/p-b41b10f7.entry.js +2 -0
- package/dist/build/{p-0f9f0120.entry.js → p-b80d7614.entry.js} +2 -2
- package/dist/build/p-b8fac549.entry.js +2 -0
- package/dist/build/{p-0cdd9a34.entry.js → p-b93b52e6.entry.js} +2 -2
- package/dist/{paperless/p-5769eaeb.entry.js → build/p-b9525461.entry.js} +2 -2
- package/dist/build/{p-e5cc9902.entry.js → p-bcd6ba78.entry.js} +2 -2
- package/dist/build/{p-94a69631.entry.js → p-c0580f90.entry.js} +2 -2
- package/dist/build/{p-e4e1c19d.entry.js → p-cbe4dac4.entry.js} +2 -2
- package/dist/build/p-checkbox.p-dropdown.entry.esm.js.map +1 -1
- package/dist/build/p-d17a23b0.entry.js +2 -0
- package/dist/build/p-d17a23b0.entry.js.map +1 -0
- package/dist/{paperless/p-813c1744.entry.js → build/p-d5e0949a.entry.js} +2 -2
- package/dist/{paperless/p-cb08d5db.entry.js → build/p-d8ba8d04.entry.js} +2 -2
- package/dist/build/{p-7ad4fe38.entry.js → p-d8c4125f.entry.js} +2 -2
- package/dist/build/{p-309c0f0b.entry.js → p-daa2e1ef.entry.js} +2 -2
- package/dist/build/p-dd0be018.entry.js +2 -0
- package/dist/build/p-dd0be018.entry.js.map +1 -0
- package/dist/build/p-dropdown-menu-container.entry.esm.js.map +1 -1
- package/dist/build/p-dropdown-menu-item.p-pagination-pages.p-pagination-pages-item.p-pagination-size.entry.esm.js.map +1 -1
- package/dist/build/{p-e2269c0d.entry.js → p-e7c68fb4.entry.js} +2 -2
- package/dist/build/p-field.p-field-container.entry.esm.js.map +1 -1
- package/dist/build/p-helper.p-tooltip.entry.esm.js.map +1 -1
- package/dist/build/p-profile.entry.esm.js.map +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +4 -4
- package/dist/cjs/p-badge_3.cjs.entry.js +3 -3
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +3 -3
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox.p-dropdown.entry.cjs.js.map +1 -1
- package/dist/cjs/p-checkbox_2.cjs.entry.js +22 -5
- package/dist/cjs/p-checkbox_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-counter.cjs.entry.js +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js +2 -2
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +3 -3
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +8 -8
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -1
- package/dist/cjs/p-dropdown-menu-container.entry.cjs.js.map +1 -1
- package/dist/cjs/p-dropdown-menu-item.p-pagination-pages.p-pagination-pages-item.p-pagination-size.entry.cjs.js.map +1 -1
- package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js +16 -16
- package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js.map +1 -1
- package/dist/cjs/p-field.p-field-container.entry.cjs.js.map +1 -1
- package/dist/cjs/p-field_2.cjs.entry.js +6 -6
- package/dist/cjs/p-field_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +7 -7
- package/dist/cjs/p-helper.p-tooltip.entry.cjs.js.map +1 -1
- package/dist/cjs/p-helper_2.cjs.entry.js +5 -5
- package/dist/cjs/p-helper_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
- package/dist/cjs/p-input-error.cjs.entry.js +1 -1
- package/dist/cjs/p-input-group.cjs.entry.js +3 -3
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +6 -6
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
- 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-pagination.cjs.entry.js +3 -3
- package/dist/cjs/p-portal.cjs.entry.js +1 -1
- package/dist/cjs/p-profile.cjs.entry.js +2 -2
- package/dist/cjs/p-profile.cjs.entry.js.map +1 -1
- package/dist/cjs/p-profile.entry.cjs.js.map +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +3 -3
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
- package/dist/cjs/p-smile.cjs.entry.js +1 -1
- package/dist/cjs/p-status.cjs.entry.js +2 -2
- 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-container.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.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-toggle.cjs.entry.js +3 -3
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +9 -8
- 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 +6 -6
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +2 -2
- package/dist/collection/components/atoms/helper/helper.component.js +1 -1
- package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +1 -1
- package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
- package/dist/collection/components/atoms/modal/container/modal-container.component.js +2 -2
- package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
- package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
- package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
- package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.css +1 -1
- package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +5 -5
- package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js.map +1 -1
- package/dist/collection/components/atoms/radio/radio.component.js +3 -3
- package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
- package/dist/collection/components/atoms/smile/smile.component.js +1 -1
- package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
- package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +4 -4
- package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
- package/dist/collection/components/deprecated/atoms/counter/counter.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/drawer/body/drawer-body.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/drawer/container/drawer-container.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/drawer/header/drawer-header.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/info-panel/info-panel.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/layout/layout.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/slider-indicator/slider-indicator.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/status/status.component.js +2 -2
- package/dist/collection/components/deprecated/atoms/stepper/item/stepper-item.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/stepper/line/stepper-line.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/table/container/table-container.component.js +1 -1
- package/dist/collection/components/deprecated/atoms/toast-container/toast-container.component.js +1 -1
- package/dist/collection/components/deprecated/molecules/accordion/accordion.component.js +1 -1
- package/dist/collection/components/deprecated/molecules/attachment/attachment.component.js +4 -4
- package/dist/collection/components/deprecated/molecules/content-slider/content-slider.component.js +2 -2
- package/dist/collection/components/deprecated/molecules/cropper/cropper.component.js +2 -2
- package/dist/collection/components/deprecated/molecules/input/error/input-error.component.js +1 -1
- package/dist/collection/components/deprecated/molecules/input/group/input-group.component.js +3 -3
- package/dist/collection/components/deprecated/molecules/stepper/stepper.component.js +1 -1
- package/dist/collection/components/deprecated/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/deprecated/molecules/table/footer/table-footer.component.js +1 -1
- package/dist/collection/components/deprecated/molecules/table/row/table-row.component.js +2 -2
- package/dist/collection/components/deprecated/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/helpers/portal/portal.component.js +1 -1
- package/dist/collection/components/molecules/button/button.component.js +3 -3
- package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +21 -4
- package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -1
- package/dist/collection/components/molecules/field/field/field.component.js +6 -6
- package/dist/collection/components/molecules/field/field/field.component.js.map +1 -1
- package/dist/collection/components/molecules/label/label.component.js +3 -3
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +2 -2
- package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
- package/dist/collection/components/molecules/pagination/size/pagination-size.component.css +1 -1
- package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +2 -2
- package/dist/collection/components/molecules/pagination/size/pagination-size.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 +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/components/{p-Jn1disKz.js → p-B6jfZryN.js} +4 -4
- package/dist/components/{p-Jn1disKz.js.map → p-B6jfZryN.js.map} +1 -1
- package/dist/components/{p-DvULyX7I.js → p-BAiUXMDn.js} +7 -7
- package/dist/components/{p-DvULyX7I.js.map → p-BAiUXMDn.js.map} +1 -1
- package/dist/components/{p-DH8d75aS.js → p-BEOw8Cww.js} +4 -4
- package/dist/components/{p-DH8d75aS.js.map → p-BEOw8Cww.js.map} +1 -1
- package/dist/components/{p-Bz6McjV2.js → p-BHsxyPvY.js} +3 -3
- package/dist/components/{p-Bz6McjV2.js.map → p-BHsxyPvY.js.map} +1 -1
- package/dist/components/{p-Xa-E5Gqm.js → p-BW3Jh7dz.js} +3 -3
- package/dist/components/{p-Xa-E5Gqm.js.map → p-BW3Jh7dz.js.map} +1 -1
- package/dist/components/{p-C9JtldoW.js → p-B_WpyKGD.js} +3 -3
- package/dist/components/{p-C9JtldoW.js.map → p-B_WpyKGD.js.map} +1 -1
- package/dist/components/{p-DlSYFpal.js → p-BfE0xg12.js} +3 -3
- package/dist/components/{p-DlSYFpal.js.map → p-BfE0xg12.js.map} +1 -1
- package/dist/components/{p-BzTCgxsR.js → p-CGTfySxU.js} +4 -4
- package/dist/components/{p-BzTCgxsR.js.map → p-CGTfySxU.js.map} +1 -1
- package/dist/components/{p-BxmFB53M.js → p-CKdnfAon.js} +5 -5
- package/dist/components/{p-BxmFB53M.js.map → p-CKdnfAon.js.map} +1 -1
- package/dist/components/{p-VvFdEXYw.js → p-CLIWayjP.js} +8 -8
- package/dist/components/{p-VvFdEXYw.js.map → p-CLIWayjP.js.map} +1 -1
- package/dist/components/{p-swYFtOs2.js → p-CNVyCL-e.js} +26 -9
- package/dist/components/p-CNVyCL-e.js.map +1 -0
- package/dist/components/{p-DyEKeWcm.js → p-CPdlAl8h.js} +9 -9
- package/dist/components/p-CPdlAl8h.js.map +1 -0
- package/dist/components/{p-CAmdslHC.js → p-CVEaR80C.js} +12 -12
- package/dist/components/p-CVEaR80C.js.map +1 -0
- package/dist/components/{p-b58meLHc.js → p-Cdv_rF7b.js} +5 -5
- package/dist/components/{p-b58meLHc.js.map → p-Cdv_rF7b.js.map} +1 -1
- package/dist/components/{p-DzKgvS22.js → p-CeIejYlK.js} +3 -3
- package/dist/components/{p-DzKgvS22.js.map → p-CeIejYlK.js.map} +1 -1
- package/dist/components/{p-DV-XACGy.js → p-Co45jCOc.js} +3 -3
- package/dist/components/{p-DV-XACGy.js.map → p-Co45jCOc.js.map} +1 -1
- package/dist/components/{p-EbcwAVic.js → p-CpTXv4Vc.js} +4 -4
- package/dist/components/{p-EbcwAVic.js.map → p-CpTXv4Vc.js.map} +1 -1
- package/dist/components/{p-BfI2YZrh.js → p-CswIZXBK.js} +3 -3
- package/dist/components/{p-BfI2YZrh.js.map → p-CswIZXBK.js.map} +1 -1
- package/dist/components/{p-C29uSkwR.js → p-DFgYipCU.js} +5 -5
- package/dist/components/{p-C29uSkwR.js.map → p-DFgYipCU.js.map} +1 -1
- package/dist/components/{p-DUNfb2X8.js → p-Dftz1aTS.js} +3 -3
- package/dist/components/{p-DUNfb2X8.js.map → p-Dftz1aTS.js.map} +1 -1
- package/dist/components/{p-CV1ND9Ew.js → p-DiiV6dxw.js} +4 -4
- package/dist/components/{p-CV1ND9Ew.js.map → p-DiiV6dxw.js.map} +1 -1
- package/dist/components/{p-C7_AiY7m.js → p-DxL6wYFs.js} +9 -9
- package/dist/components/{p-C7_AiY7m.js.map → p-DxL6wYFs.js.map} +1 -1
- package/dist/components/{p-BQb5Fem8.js → p-ShHkXaRk.js} +11 -11
- package/dist/components/{p-BQb5Fem8.js.map → p-ShHkXaRk.js.map} +1 -1
- package/dist/components/{p-BVE9SgcU.js → p-Vz7bgn45.js} +4 -4
- package/dist/components/{p-BVE9SgcU.js.map → p-Vz7bgn45.js.map} +1 -1
- package/dist/components/{p-DyX13N0o.js → p-Xn8g2YN3.js} +4 -4
- package/dist/components/{p-DyX13N0o.js.map → p-Xn8g2YN3.js.map} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +8 -8
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-content-slider.js +3 -3
- package/dist/components/p-counter.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +11 -11
- package/dist/components/{p-zMzGpgVX.js → p-di3EXQ4I.js} +3 -3
- package/dist/components/{p-zMzGpgVX.js.map → p-di3EXQ4I.js.map} +1 -1
- package/dist/components/p-drawer-body.js +1 -1
- package/dist/components/p-drawer-container.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +4 -4
- package/dist/components/p-dropdown-menu-container.js +1 -1
- package/dist/components/p-dropdown-menu-item.js +1 -1
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-iban-icon.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-input-error.js +1 -1
- package/dist/components/p-input-group.js +7 -7
- package/dist/components/{p-DLn2pEjF.js → p-jndj5KM_.js} +4 -4
- package/dist/components/{p-DLn2pEjF.js.map → p-jndj5KM_.js.map} +1 -1
- package/dist/components/p-label.js +3 -3
- package/dist/components/p-layout.js +1 -1
- package/dist/components/{p-C2eJgPKh.js → p-mBUMykVL.js} +3 -3
- package/dist/components/{p-C2eJgPKh.js.map → p-mBUMykVL.js.map} +1 -1
- package/dist/components/p-modal-body.js +1 -1
- package/dist/components/p-modal-container.js +1 -1
- package/dist/components/p-modal-footer.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +6 -6
- package/dist/components/p-navbar.js +2 -2
- package/dist/components/p-navigation-item.js +2 -2
- package/dist/components/p-navigation-section.js +2 -2
- package/dist/components/p-navigation-title.js +1 -1
- package/dist/components/p-pagination-pages-item.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +10 -10
- package/dist/components/p-portal.js +1 -1
- package/dist/components/p-profile.js +6 -6
- package/dist/components/p-profile.js.map +1 -1
- package/dist/components/{p-CGF6m01Z.js → p-qKwZ79SO.js} +13 -12
- package/dist/components/p-qKwZ79SO.js.map +1 -0
- package/dist/components/{p-BPozrAXh.js → p-qUS7w0Hc.js} +10 -10
- package/dist/components/{p-BPozrAXh.js.map → p-qUS7w0Hc.js.map} +1 -1
- package/dist/components/{p-CJv2-U4v.js → p-qqY4rj9S.js} +5 -5
- package/dist/components/{p-CJv2-U4v.js.map → p-qqY4rj9S.js.map} +1 -1
- package/dist/components/{p-CdmkgaiY.js → p-rFsjRJgs.js} +5 -5
- package/dist/components/{p-CdmkgaiY.js.map → p-rFsjRJgs.js.map} +1 -1
- package/dist/components/p-radio.js +3 -3
- package/dist/components/{p-ByUK5grd.js → p-remL-vvB.js} +3 -3
- package/dist/components/{p-ByUK5grd.js.map → p-remL-vvB.js.map} +1 -1
- package/dist/components/p-segment-container.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +10 -10
- package/dist/components/p-slider-indicator.js +1 -1
- package/dist/components/p-smile.js +1 -1
- package/dist/components/p-status.js +2 -2
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper-line.js +1 -1
- package/dist/components/p-stepper.js +2 -2
- package/dist/components/p-tab-container.js +1 -1
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-container.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +20 -20
- package/dist/components/p-toast-container.js +1 -1
- package/dist/components/p-toast.js +2 -2
- package/dist/components/p-toggle.js +3 -3
- package/dist/components/p-tooltip.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-accordion.entry.js +1 -1
- package/dist/esm/p-attachment.entry.js +4 -4
- package/dist/esm/p-badge_3.entry.js +3 -3
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +3 -3
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-checkbox.p-dropdown.entry.js.map +1 -1
- package/dist/esm/p-checkbox_2.entry.js +22 -5
- package/dist/esm/p-checkbox_2.entry.js.map +1 -1
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-counter.entry.js +1 -1
- package/dist/esm/p-cropper.entry.js +2 -2
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-drawer-body_3.entry.js +3 -3
- package/dist/esm/p-dropdown-menu-container.entry.js +9 -9
- package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -1
- package/dist/esm/p-dropdown-menu-item.p-pagination-pages.p-pagination-pages-item.p-pagination-size.entry.js.map +1 -1
- package/dist/esm/p-dropdown-menu-item_4.entry.js +17 -17
- package/dist/esm/p-dropdown-menu-item_4.entry.js.map +1 -1
- package/dist/esm/p-field.p-field-container.entry.js.map +1 -1
- package/dist/esm/p-field_2.entry.js +6 -6
- package/dist/esm/p-field_2.entry.js.map +1 -1
- package/dist/esm/p-floating-menu-container_8.entry.js +7 -7
- package/dist/esm/p-helper.p-tooltip.entry.js.map +1 -1
- package/dist/esm/p-helper_2.entry.js +5 -5
- package/dist/esm/p-helper_2.entry.js.map +1 -1
- package/dist/esm/p-iban-icon.entry.js +1 -1
- package/dist/esm/p-info-panel.entry.js +1 -1
- package/dist/esm/p-input-error.entry.js +1 -1
- package/dist/esm/p-input-group.entry.js +3 -3
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-modal-body_4.entry.js +6 -6
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +2 -2
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-navigation-title.entry.js +1 -1
- package/dist/esm/p-pagination.entry.js +3 -3
- package/dist/esm/p-portal.entry.js +1 -1
- package/dist/esm/p-profile.entry.js +2 -2
- package/dist/esm/p-profile.entry.js.map +1 -1
- package/dist/esm/p-radio.entry.js +3 -3
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-slider-indicator.entry.js +1 -1
- package/dist/esm/p-smile.entry.js +1 -1
- package/dist/esm/p-status.entry.js +2 -2
- 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-container.entry.js +1 -1
- package/dist/esm/p-tab-item.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-toggle.entry.js +3 -3
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/{p-beb2f576.entry.js → p-00db68f0.entry.js} +2 -2
- package/dist/paperless/{p-080030a3.entry.js → p-09ee06f2.entry.js} +2 -2
- package/dist/paperless/{p-1b1de15b.entry.js → p-0a249d42.entry.js} +2 -2
- package/dist/paperless/p-0a249d42.entry.js.map +1 -0
- package/dist/paperless/{p-b98c09cc.entry.js → p-0d877ea2.entry.js} +2 -2
- package/dist/paperless/{p-e6275ef7.entry.js → p-1dc8b749.entry.js} +2 -2
- package/dist/paperless/p-1dc8b749.entry.js.map +1 -0
- package/dist/paperless/{p-727a9fd3.entry.js → p-2588c4db.entry.js} +2 -2
- package/dist/{build/p-c25e65dc.entry.js → paperless/p-26d8aace.entry.js} +2 -2
- package/dist/paperless/{p-03bf9ae8.entry.js → p-2c0d62fb.entry.js} +2 -2
- package/dist/paperless/p-322cc192.entry.js +2 -0
- package/dist/paperless/{p-dba6b57e.entry.js → p-38c4f906.entry.js} +2 -2
- package/dist/{build/p-d657dfff.entry.js → paperless/p-49650464.entry.js} +2 -2
- package/dist/paperless/p-4e286f43.entry.js +2 -0
- package/dist/paperless/{p-de983ac6.entry.js → p-518ae25b.entry.js} +2 -2
- package/dist/paperless/p-54ce327a.entry.js +2 -0
- package/dist/paperless/{p-bc5ea786.entry.js.map → p-54ce327a.entry.js.map} +1 -1
- package/dist/paperless/{p-1bcab63c.entry.js → p-558831b8.entry.js} +2 -2
- package/dist/{build/p-c1b25e59.entry.js → paperless/p-6642233d.entry.js} +2 -2
- package/dist/paperless/p-6be7dc53.entry.js +2 -0
- package/dist/paperless/p-6be7dc53.entry.js.map +1 -0
- package/dist/paperless/{p-355cbd7b.entry.js → p-6f07f37e.entry.js} +2 -2
- package/dist/paperless/{p-14fe29ab.entry.js → p-70e9cd3b.entry.js} +2 -2
- package/dist/{build/p-01011a86.entry.js → paperless/p-727c7908.entry.js} +2 -2
- package/dist/paperless/{p-c98b14bd.entry.js → p-74338d94.entry.js} +2 -2
- package/dist/paperless/{p-008e9556.entry.js → p-83017ce4.entry.js} +2 -2
- package/dist/paperless/{p-637c2056.entry.js → p-84714aa2.entry.js} +2 -2
- package/dist/paperless/p-856d3eb4.entry.js +2 -0
- package/dist/paperless/{p-f4575636.entry.js → p-8730f1e9.entry.js} +2 -2
- package/dist/paperless/p-8fb95bd7.entry.js +2 -0
- package/dist/paperless/p-8fb95bd7.entry.js.map +1 -0
- package/dist/paperless/{p-e4cbcec7.entry.js → p-976c82ec.entry.js} +2 -2
- package/dist/{build/p-744ea9a0.entry.js → paperless/p-9bd484cf.entry.js} +2 -2
- package/dist/paperless/{p-74be7084.entry.js → p-a3786a55.entry.js} +2 -2
- package/dist/paperless/p-b41b10f7.entry.js +2 -0
- package/dist/paperless/{p-0f9f0120.entry.js → p-b80d7614.entry.js} +2 -2
- package/dist/paperless/p-b8fac549.entry.js +2 -0
- package/dist/paperless/{p-0cdd9a34.entry.js → p-b93b52e6.entry.js} +2 -2
- package/dist/{build/p-5769eaeb.entry.js → paperless/p-b9525461.entry.js} +2 -2
- package/dist/paperless/{p-e5cc9902.entry.js → p-bcd6ba78.entry.js} +2 -2
- package/dist/paperless/{p-94a69631.entry.js → p-c0580f90.entry.js} +2 -2
- package/dist/paperless/{p-e4e1c19d.entry.js → p-cbe4dac4.entry.js} +2 -2
- package/dist/paperless/p-checkbox.p-dropdown.entry.esm.js.map +1 -1
- package/dist/paperless/p-d17a23b0.entry.js +2 -0
- package/dist/paperless/p-d17a23b0.entry.js.map +1 -0
- package/dist/{build/p-813c1744.entry.js → paperless/p-d5e0949a.entry.js} +2 -2
- package/dist/{build/p-cb08d5db.entry.js → paperless/p-d8ba8d04.entry.js} +2 -2
- package/dist/paperless/{p-7ad4fe38.entry.js → p-d8c4125f.entry.js} +2 -2
- package/dist/paperless/{p-309c0f0b.entry.js → p-daa2e1ef.entry.js} +2 -2
- package/dist/paperless/p-dd0be018.entry.js +2 -0
- package/dist/paperless/p-dd0be018.entry.js.map +1 -0
- package/dist/paperless/p-dropdown-menu-container.entry.esm.js.map +1 -1
- package/dist/paperless/p-dropdown-menu-item.p-pagination-pages.p-pagination-pages-item.p-pagination-size.entry.esm.js.map +1 -1
- package/dist/paperless/{p-e2269c0d.entry.js → p-e7c68fb4.entry.js} +2 -2
- package/dist/paperless/p-field.p-field-container.entry.esm.js.map +1 -1
- package/dist/paperless/p-helper.p-tooltip.entry.esm.js.map +1 -1
- package/dist/paperless/p-profile.entry.esm.js.map +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/package.json +1 -1
- package/dist/build/p-1b1de15b.entry.js.map +0 -1
- package/dist/build/p-39515ee1.entry.js +0 -2
- package/dist/build/p-39515ee1.entry.js.map +0 -1
- package/dist/build/p-4e704926.entry.js +0 -2
- package/dist/build/p-69bf2e8a.entry.js +0 -2
- package/dist/build/p-6b9ae643.entry.js +0 -2
- package/dist/build/p-8035bea4.entry.js +0 -2
- package/dist/build/p-bbfb067c.entry.js +0 -2
- package/dist/build/p-bc5ea786.entry.js +0 -2
- package/dist/build/p-c4d49657.entry.js +0 -2
- package/dist/build/p-c4d49657.entry.js.map +0 -1
- package/dist/build/p-d2bc9a74.entry.js +0 -2
- package/dist/build/p-d2bc9a74.entry.js.map +0 -1
- package/dist/build/p-e6275ef7.entry.js.map +0 -1
- package/dist/build/p-f316ca4a.entry.js +0 -2
- package/dist/build/p-f316ca4a.entry.js.map +0 -1
- package/dist/components/p-CAmdslHC.js.map +0 -1
- package/dist/components/p-CGF6m01Z.js.map +0 -1
- package/dist/components/p-DyEKeWcm.js.map +0 -1
- package/dist/components/p-swYFtOs2.js.map +0 -1
- package/dist/paperless/p-1b1de15b.entry.js.map +0 -1
- package/dist/paperless/p-39515ee1.entry.js +0 -2
- package/dist/paperless/p-39515ee1.entry.js.map +0 -1
- package/dist/paperless/p-4e704926.entry.js +0 -2
- package/dist/paperless/p-69bf2e8a.entry.js +0 -2
- package/dist/paperless/p-6b9ae643.entry.js +0 -2
- package/dist/paperless/p-8035bea4.entry.js +0 -2
- package/dist/paperless/p-bbfb067c.entry.js +0 -2
- package/dist/paperless/p-bc5ea786.entry.js +0 -2
- package/dist/paperless/p-c4d49657.entry.js +0 -2
- package/dist/paperless/p-c4d49657.entry.js.map +0 -1
- package/dist/paperless/p-d2bc9a74.entry.js +0 -2
- package/dist/paperless/p-d2bc9a74.entry.js.map +0 -1
- package/dist/paperless/p-e6275ef7.entry.js.map +0 -1
- package/dist/paperless/p-f316ca4a.entry.js +0 -2
- package/dist/paperless/p-f316ca4a.entry.js.map +0 -1
- /package/dist/build/{p-beb2f576.entry.js.map → p-00db68f0.entry.js.map} +0 -0
- /package/dist/build/{p-080030a3.entry.js.map → p-09ee06f2.entry.js.map} +0 -0
- /package/dist/build/{p-b98c09cc.entry.js.map → p-0d877ea2.entry.js.map} +0 -0
- /package/dist/build/{p-727a9fd3.entry.js.map → p-2588c4db.entry.js.map} +0 -0
- /package/dist/build/{p-c25e65dc.entry.js.map → p-26d8aace.entry.js.map} +0 -0
- /package/dist/build/{p-03bf9ae8.entry.js.map → p-2c0d62fb.entry.js.map} +0 -0
- /package/dist/build/{p-69bf2e8a.entry.js.map → p-322cc192.entry.js.map} +0 -0
- /package/dist/build/{p-dba6b57e.entry.js.map → p-38c4f906.entry.js.map} +0 -0
- /package/dist/build/{p-d657dfff.entry.js.map → p-49650464.entry.js.map} +0 -0
- /package/dist/build/{p-8035bea4.entry.js.map → p-4e286f43.entry.js.map} +0 -0
- /package/dist/build/{p-de983ac6.entry.js.map → p-518ae25b.entry.js.map} +0 -0
- /package/dist/build/{p-1bcab63c.entry.js.map → p-558831b8.entry.js.map} +0 -0
- /package/dist/build/{p-c1b25e59.entry.js.map → p-6642233d.entry.js.map} +0 -0
- /package/dist/build/{p-355cbd7b.entry.js.map → p-6f07f37e.entry.js.map} +0 -0
- /package/dist/build/{p-14fe29ab.entry.js.map → p-70e9cd3b.entry.js.map} +0 -0
- /package/dist/build/{p-01011a86.entry.js.map → p-727c7908.entry.js.map} +0 -0
- /package/dist/build/{p-c98b14bd.entry.js.map → p-74338d94.entry.js.map} +0 -0
- /package/dist/build/{p-008e9556.entry.js.map → p-83017ce4.entry.js.map} +0 -0
- /package/dist/build/{p-637c2056.entry.js.map → p-84714aa2.entry.js.map} +0 -0
- /package/dist/build/{p-4e704926.entry.js.map → p-856d3eb4.entry.js.map} +0 -0
- /package/dist/build/{p-f4575636.entry.js.map → p-8730f1e9.entry.js.map} +0 -0
- /package/dist/build/{p-e4cbcec7.entry.js.map → p-976c82ec.entry.js.map} +0 -0
- /package/dist/build/{p-744ea9a0.entry.js.map → p-9bd484cf.entry.js.map} +0 -0
- /package/dist/build/{p-74be7084.entry.js.map → p-a3786a55.entry.js.map} +0 -0
- /package/dist/build/{p-6b9ae643.entry.js.map → p-b41b10f7.entry.js.map} +0 -0
- /package/dist/build/{p-0f9f0120.entry.js.map → p-b80d7614.entry.js.map} +0 -0
- /package/dist/build/{p-bbfb067c.entry.js.map → p-b8fac549.entry.js.map} +0 -0
- /package/dist/build/{p-0cdd9a34.entry.js.map → p-b93b52e6.entry.js.map} +0 -0
- /package/dist/build/{p-5769eaeb.entry.js.map → p-b9525461.entry.js.map} +0 -0
- /package/dist/build/{p-e5cc9902.entry.js.map → p-bcd6ba78.entry.js.map} +0 -0
- /package/dist/build/{p-94a69631.entry.js.map → p-c0580f90.entry.js.map} +0 -0
- /package/dist/build/{p-e4e1c19d.entry.js.map → p-cbe4dac4.entry.js.map} +0 -0
- /package/dist/build/{p-813c1744.entry.js.map → p-d5e0949a.entry.js.map} +0 -0
- /package/dist/build/{p-cb08d5db.entry.js.map → p-d8ba8d04.entry.js.map} +0 -0
- /package/dist/build/{p-7ad4fe38.entry.js.map → p-d8c4125f.entry.js.map} +0 -0
- /package/dist/build/{p-309c0f0b.entry.js.map → p-daa2e1ef.entry.js.map} +0 -0
- /package/dist/build/{p-e2269c0d.entry.js.map → p-e7c68fb4.entry.js.map} +0 -0
- /package/dist/paperless/{p-beb2f576.entry.js.map → p-00db68f0.entry.js.map} +0 -0
- /package/dist/paperless/{p-080030a3.entry.js.map → p-09ee06f2.entry.js.map} +0 -0
- /package/dist/paperless/{p-b98c09cc.entry.js.map → p-0d877ea2.entry.js.map} +0 -0
- /package/dist/paperless/{p-727a9fd3.entry.js.map → p-2588c4db.entry.js.map} +0 -0
- /package/dist/paperless/{p-c25e65dc.entry.js.map → p-26d8aace.entry.js.map} +0 -0
- /package/dist/paperless/{p-03bf9ae8.entry.js.map → p-2c0d62fb.entry.js.map} +0 -0
- /package/dist/paperless/{p-69bf2e8a.entry.js.map → p-322cc192.entry.js.map} +0 -0
- /package/dist/paperless/{p-dba6b57e.entry.js.map → p-38c4f906.entry.js.map} +0 -0
- /package/dist/paperless/{p-d657dfff.entry.js.map → p-49650464.entry.js.map} +0 -0
- /package/dist/paperless/{p-8035bea4.entry.js.map → p-4e286f43.entry.js.map} +0 -0
- /package/dist/paperless/{p-de983ac6.entry.js.map → p-518ae25b.entry.js.map} +0 -0
- /package/dist/paperless/{p-1bcab63c.entry.js.map → p-558831b8.entry.js.map} +0 -0
- /package/dist/paperless/{p-c1b25e59.entry.js.map → p-6642233d.entry.js.map} +0 -0
- /package/dist/paperless/{p-355cbd7b.entry.js.map → p-6f07f37e.entry.js.map} +0 -0
- /package/dist/paperless/{p-14fe29ab.entry.js.map → p-70e9cd3b.entry.js.map} +0 -0
- /package/dist/paperless/{p-01011a86.entry.js.map → p-727c7908.entry.js.map} +0 -0
- /package/dist/paperless/{p-c98b14bd.entry.js.map → p-74338d94.entry.js.map} +0 -0
- /package/dist/paperless/{p-008e9556.entry.js.map → p-83017ce4.entry.js.map} +0 -0
- /package/dist/paperless/{p-637c2056.entry.js.map → p-84714aa2.entry.js.map} +0 -0
- /package/dist/paperless/{p-4e704926.entry.js.map → p-856d3eb4.entry.js.map} +0 -0
- /package/dist/paperless/{p-f4575636.entry.js.map → p-8730f1e9.entry.js.map} +0 -0
- /package/dist/paperless/{p-e4cbcec7.entry.js.map → p-976c82ec.entry.js.map} +0 -0
- /package/dist/paperless/{p-744ea9a0.entry.js.map → p-9bd484cf.entry.js.map} +0 -0
- /package/dist/paperless/{p-74be7084.entry.js.map → p-a3786a55.entry.js.map} +0 -0
- /package/dist/paperless/{p-6b9ae643.entry.js.map → p-b41b10f7.entry.js.map} +0 -0
- /package/dist/paperless/{p-0f9f0120.entry.js.map → p-b80d7614.entry.js.map} +0 -0
- /package/dist/paperless/{p-bbfb067c.entry.js.map → p-b8fac549.entry.js.map} +0 -0
- /package/dist/paperless/{p-0cdd9a34.entry.js.map → p-b93b52e6.entry.js.map} +0 -0
- /package/dist/paperless/{p-5769eaeb.entry.js.map → p-b9525461.entry.js.map} +0 -0
- /package/dist/paperless/{p-e5cc9902.entry.js.map → p-bcd6ba78.entry.js.map} +0 -0
- /package/dist/paperless/{p-94a69631.entry.js.map → p-c0580f90.entry.js.map} +0 -0
- /package/dist/paperless/{p-e4e1c19d.entry.js.map → p-cbe4dac4.entry.js.map} +0 -0
- /package/dist/paperless/{p-813c1744.entry.js.map → p-d5e0949a.entry.js.map} +0 -0
- /package/dist/paperless/{p-cb08d5db.entry.js.map → p-d8ba8d04.entry.js.map} +0 -0
- /package/dist/paperless/{p-7ad4fe38.entry.js.map → p-d8c4125f.entry.js.map} +0 -0
- /package/dist/paperless/{p-309c0f0b.entry.js.map → p-daa2e1ef.entry.js.map} +0 -0
- /package/dist/paperless/{p-e2269c0d.entry.js.map → p-e7c68fb4.entry.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { asBoolean } from "../../../../utils/as-boolean";
|
|
4
4
|
const dropdownMenuItem = cva([
|
|
@@ -64,12 +64,12 @@ const dropdownMenuItem = cva([
|
|
|
64
64
|
active: false,
|
|
65
65
|
enableHover: true,
|
|
66
66
|
disabled: false,
|
|
67
|
-
class: 'hover:bg-dark-teal-
|
|
67
|
+
class: 'hover:bg-dark-teal-500',
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
variant: 'dark-teal',
|
|
71
71
|
active: true,
|
|
72
|
-
class: 'text-white bg-dark-teal-
|
|
72
|
+
class: 'text-white bg-dark-teal-600',
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
variant: 'dark-teal',
|
|
@@ -180,16 +180,16 @@ export class DropdownMenuItem {
|
|
|
180
180
|
*/
|
|
181
181
|
useContainer = true;
|
|
182
182
|
render() {
|
|
183
|
-
return (h(
|
|
183
|
+
return (h("div", { key: '5d781748ff7e24bd1db86225ba17f496537942ce', class: dropdownMenuItem({
|
|
184
184
|
variant: this.variant,
|
|
185
185
|
active: asBoolean(this.active),
|
|
186
186
|
enableHover: asBoolean(this.enableHover ?? true, true),
|
|
187
187
|
disabled: asBoolean(this.disabled),
|
|
188
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
188
|
+
}) }, this.icon && (h("p-icon", { key: '5c1446131c8b0b45a85e5ea7260b4743bc3177d5', class: dropdownMenuItemIcon({
|
|
189
189
|
variant: this.variant,
|
|
190
190
|
active: asBoolean(this.active),
|
|
191
191
|
disabled: asBoolean(this.disabled),
|
|
192
|
-
}), variant: this.icon })), this.checkbox && (h("p-checkbox", { key: '
|
|
192
|
+
}), variant: this.icon })), this.checkbox && (h("p-checkbox", { key: '2791f6fc1a2366dba4a8af5bd4591b80bc48fed3', checked: this.active, disabled: this.disabled })), this.useContainer ? (h("div", { class: 'block w-full overflow-hidden text-ellipsis whitespace-nowrap text-start' }, h("slot", null))) : (h("slot", null))));
|
|
193
193
|
}
|
|
194
194
|
static get is() { return "p-dropdown-menu-item"; }
|
|
195
195
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu-item.component.js","sourceRoot":"","sources":["../../../../../src/components/atoms/dropdown-menu/item/dropdown-menu-item.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"dropdown-menu-item.component.js","sourceRoot":"","sources":["../../../../../src/components/atoms/dropdown-menu/item/dropdown-menu-item.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAGzD,MAAM,gBAAgB,GAAG,GAAG,CAC3B;IACC,4GAA4G;CAC5G,EACD;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,IAAI;YACjB,QAAQ,EAAE,IAAI;SACd;QACD,MAAM,EAAE;YACP,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,oBAAoB;SAC1B;QACD,WAAW,EAAE;YACZ,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,IAAI;YACjB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,8BAA8B;SACrC;QACD;YACC,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE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,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;gBAC9B,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE,IAAI,CAAC;gBACtD,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;aAClC,CAAC;YAED,IAAI,CAAC,IAAI,IAAI,CACb,+DACC,KAAK,EAAE,oBAAoB,CAAC;oBAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;oBACrB,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;oBAC9B,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;iBAClC,CAAC,EACF,OAAO,EAAE,IAAI,CAAC,IAAI,GACjB,CACF;YAEA,IAAI,CAAC,QAAQ,IAAI,CACjB,mEACC,OAAO,EAAE,IAAI,CAAC,MAAM,EACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACtB,CACF;YAEA,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CACpB,WAAK,KAAK,EAAC,yEAAyE;gBACnF,eAAQ,CACH,CACN,CAAC,CAAC,CAAC,CACH,eAAQ,CACR,CACI,CACN,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Prop, h } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { asBoolean } from '../../../../utils/as-boolean';\nimport { IconVariant } from '../../icon/icon.component';\n\nconst dropdownMenuItem = cva(\n\t[\n\t\t'p-dropdown-menu-item flex px-2 py-1 gap-2 text-sm font-medium group rounded-lg items-center h-8 max-w-full',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: null,\n\t\t\t\t'dark-teal': null,\n\t\t\t\tnegative: null,\n\t\t\t},\n\t\t\tactive: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: 'cursor-pointer',\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t\tenableHover: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: false,\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'hover:bg-supportive-lilac-50',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-supportive-lilac-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-black-teal',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-black-teal-200',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tdisabled: true,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'bg-supportive-lilac-100',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'dark-teal',\n\t\t\t\tactive: false,\n\t\t\t\tenableHover: true,\n\t\t\t\tclass: 'text-white',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'dark-teal',\n\t\t\t\tactive: false,\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'hover:bg-dark-teal-500',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'dark-teal',\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'text-white bg-dark-teal-600',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'dark-teal',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'opacity-40',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tactive: false,\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-negative-red hover:bg-negative-red-50',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tactive: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-negative-red-100 text-negative-red',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-negative-red-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tdisabled: true,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'bg-negative-red-50',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'cursor-pointer',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst dropdownMenuItemIcon = cva(['text-base'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: null,\n\t\t\t'dark-teal': null,\n\t\t\tnegative: null,\n\t\t},\n\t\tactive: {\n\t\t\tfalse: null,\n\t\t\ttrue: null,\n\t\t},\n\t\tdisabled: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'text-black-teal-100',\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'default',\n\t\t\tactive: false,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-black-teal-300 group-hover:text-black-teal',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'dark-teal',\n\t\t\tactive: false,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-dark-teal-100 group-hover:text-white',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'negative',\n\t\t\tactive: false,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-negative-red group-hover:text-negative-red-800',\n\t\t},\n\t\t{\n\t\t\tvariant: 'negative',\n\t\t\tactive: true,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-negative-red-800',\n\t\t},\n\t],\n});\n\n@Component({\n\ttag: 'p-dropdown-menu-item',\n\tstyleUrl: 'dropdown-menu-item.component.css',\n\tshadow: true,\n})\nexport class DropdownMenuItem {\n\t/**\n\t * Wether the dropdown menu item is active\n\t */\n\t@Prop() active: boolean = false;\n\n\t/**\n\t * Wether the dropdown menu item has a checkbox\n\t */\n\t@Prop() checkbox: boolean = false;\n\n\t/**\n\t * The variant of the item\n\t */\n\t@Prop() variant: 'default' | 'dark-teal' | 'negative' = 'default';\n\n\t/**\n\t * Wether to enable the hover state\n\t */\n\t@Prop() enableHover?: boolean = true;\n\n\t/**\n\t * Wether the item is disabled\n\t */\n\t@Prop() disabled: boolean = false;\n\n\t/**\n\t * Icon of the navigation item\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * wether to use the container for text\n\t */\n\t@Prop() useContainer = true;\n\n\trender() {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={dropdownMenuItem({\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\tenableHover: asBoolean(this.enableHover ?? true, true),\n\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{this.icon && (\n\t\t\t\t\t<p-icon\n\t\t\t\t\t\tclass={dropdownMenuItemIcon({\n\t\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t{this.checkbox && (\n\t\t\t\t\t<p-checkbox\n\t\t\t\t\t\tchecked={this.active}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t{this.useContainer ? (\n\t\t\t\t\t<div class='block w-full overflow-hidden text-ellipsis whitespace-nowrap text-start'>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<slot />\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n}\n"]}
|
|
@@ -73,10 +73,10 @@ export class FloatingMenuItem {
|
|
|
73
73
|
*/
|
|
74
74
|
iconRotate;
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: 'deace63755f5100ca60c518b062c8626ce1088d8', class: item({
|
|
77
77
|
hover: asBoolean(this.hover) && !asBoolean(this.loading),
|
|
78
78
|
disabled: asBoolean(this.disabled),
|
|
79
|
-
}) }, this._getIcon(), h("p", { key: '
|
|
79
|
+
}) }, this._getIcon(), h("p", { key: '4b30fd925f7890a7a23e854af080589c01263dbb', class: 'min-w-0 overflow-hidden text-ellipsis text-nowrap font-semibold' }, h("slot", { key: 'f3e582baddd191417c30da09dbc77833fce7c0b3' }))));
|
|
80
80
|
}
|
|
81
81
|
_getIcon() {
|
|
82
82
|
if (!this.icon && !this.loading) {
|
|
@@ -9,7 +9,7 @@ export class Helper {
|
|
|
9
9
|
*/
|
|
10
10
|
placement = 'top';
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '70a6dc59dc7c4367c091fa1cb69a6f9ab7936108', class: 'p-helper' }, h("p-tooltip", { key: '58bf78f9c19fa5724e8488dbcc40e84be724649a', placement: this.placement, strategy: this.strategy }, h("div", { key: '75fe3d4c3571b4034e8561510b44cb4335a03869', slot: 'content' }, h("slot", { key: '2b28897ed7b15eabfd7f74905e75a08be446bded' })), h("p-icon", { key: 'c70b4daa963262ccc596a252ae100c6d0eb5f57d', size: 'sm', class: 'cursor-pointer text-black-teal-300 hover:text-black-teal', variant: 'question-circle', slot: 'trigger' }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "p-helper"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,7 +15,7 @@ export class IbanIcon {
|
|
|
15
15
|
variant = this.iban.slice(4, 8).toLowerCase();
|
|
16
16
|
}
|
|
17
17
|
const exists = IBAN_ICON_VARIANTS_ARRAY.includes(variant);
|
|
18
|
-
return (exists && (h(Host, { key: '
|
|
18
|
+
return (exists && (h(Host, { key: 'b9a849436e4b7cc425c80643bd9f9afeab43c880', class: 'p-iban-icon' }, this._getIcon(variant))));
|
|
19
19
|
}
|
|
20
20
|
_getIcon(variant) {
|
|
21
21
|
switch (variant) {
|
|
@@ -22,10 +22,10 @@ export class ModalBody {
|
|
|
22
22
|
*/
|
|
23
23
|
roundedTop = false;
|
|
24
24
|
render() {
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: 'b8954019e9c370a9fade4ef7a90b54b5afd3db20', class: body({
|
|
26
26
|
roundedBottom: this.roundedBottom,
|
|
27
27
|
roundedTop: this.roundedTop,
|
|
28
|
-
}) }, h("slot", { key: '
|
|
28
|
+
}) }, h("slot", { key: 'e9a92be0127906a358b75ea0ee2d94aac0ccf188' })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "p-modal-body"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,10 +31,10 @@ export class ModalContainer {
|
|
|
31
31
|
*/
|
|
32
32
|
closing = false;
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: '983f38b0406b16a993e4de1e7cd7dbd4f150d872', class: container({
|
|
35
35
|
size: this.size,
|
|
36
36
|
closing: asBoolean(this.closing),
|
|
37
|
-
}) }, h("slot", { key: '
|
|
37
|
+
}) }, h("slot", { key: '1445ce5ea1038d51532e9666a410837acaedb276' })));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "p-modal-container"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class ModalFooter {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("div", { key: '
|
|
4
|
+
return (h("div", { key: '802e0ad9d49d5b6f0c1320a7a39c0ee0d91d85ea', class: 'flex flex-col rounded-b-none bg-white pb-4 desktop-xs:rounded-b-2xl' }, h("p-divider", { key: 'e48e575453d8ec83fc3d82854b3da594970323da', class: 'mb-4 hidden desktop-xs:inline-block' }), h("div", { key: '08f305bd1d7761784234414a564f33e21b4af4c1', class: 'flex flex-col gap-4 px-4 tablet:flex-row' }, h("slot", { key: '77fbc714f68ab2a7aec5b92dd8dbad2b7dba5912' }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "p-modal-footer"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -20,7 +20,7 @@ export class ModalHeader {
|
|
|
20
20
|
*/
|
|
21
21
|
close;
|
|
22
22
|
render() {
|
|
23
|
-
return (h("div", { key: '
|
|
23
|
+
return (h("div", { key: 'fa7d65ee0b6e3c258139dc03884a72ffc21cb8f4', class: header() }, h("div", { key: '063bcaa9a7109e5f0a8949afa1c4b2d1a0dd75f4', class: content() }, h("div", { key: 'bfee4a3b9c6e230b2b6c888bb73845580559d07b', class: title() }, h("slot", { key: '95bcb6be54d86be0b84bd60328017539ce063b15' })), this.showClose && (h("p-button", { key: 'b1c0d135268f2ac2503ef84f40f9d8b511c6f4dc', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: ev => this.close.emit(ev) }))), h("p-smile", { key: 'd7cb386320f56929310674f5e8add9e21121c082' })));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "p-modal-header"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class NavigationTitle {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '1673e0585dbdd07cfab2d1c118db14a498148006', class: 'p-navigation-title text-xs font-medium text-black-teal-300' }, h("slot", { key: '77db6034a744c3b0b28a76815cd076fbad8bb59c' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "p-navigation-title"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.h-6{height:1.5rem!important}.w-6{width:1.5rem!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.rounded{border-radius:.25rem!important}.rounded-full{border-radius:9999px!important}.bg-dark-teal-
|
|
1
|
+
*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.h-6{height:1.5rem!important}.w-6{width:1.5rem!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.rounded{border-radius:.25rem!important}.rounded-full{border-radius:9999px!important}.bg-dark-teal-400{--tw-bg-opacity:1!important;background-color:rgb(51 116 109/var(--tw-bg-opacity,1))!important}.bg-off-white-300{--tw-bg-opacity:1!important;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))!important}.bg-off-white-700{--tw-bg-opacity:1!important;background-color:rgb(222 219 213/var(--tw-bg-opacity,1))!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.opacity-20{opacity:.2!important}.hover\:bg-dark-teal-500:hover{--tw-bg-opacity:1!important;background-color:rgb(0 81 72/var(--tw-bg-opacity,1))!important}.hover\:bg-off-white-500:hover{--tw-bg-opacity:1!important;background-color:rgb(243 241 237/var(--tw-bg-opacity,1))!important}.focus\:bg-dark-teal-600:focus{--tw-bg-opacity:1!important;background-color:rgb(0 72 64/var(--tw-bg-opacity,1))!important}
|
package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js
CHANGED
|
@@ -44,18 +44,18 @@ const item = cva([
|
|
|
44
44
|
{
|
|
45
45
|
variant: 'carousel',
|
|
46
46
|
disabled: false,
|
|
47
|
-
class: 'bg-dark-teal-
|
|
47
|
+
class: 'bg-dark-teal-400',
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
variant: 'carousel',
|
|
51
51
|
disabled: false,
|
|
52
52
|
hover: true,
|
|
53
|
-
class: 'hover:bg-dark-teal-
|
|
53
|
+
class: 'hover:bg-dark-teal-500 focus:bg-dark-teal-600 cursor-pointer',
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
variant: 'carousel',
|
|
57
57
|
disabled: true,
|
|
58
|
-
class: 'bg-dark-teal-
|
|
58
|
+
class: 'bg-dark-teal-400 opacity-20',
|
|
59
59
|
},
|
|
60
60
|
],
|
|
61
61
|
});
|
|
@@ -77,12 +77,12 @@ export class PaginationPagesItem {
|
|
|
77
77
|
*/
|
|
78
78
|
disabled = false;
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: 'b951bd1e9fc7fb023827243894155fd0f865cc78', class: item({
|
|
81
81
|
variant: this.variant,
|
|
82
82
|
active: this.active,
|
|
83
83
|
hover: this.hover,
|
|
84
84
|
disabled: this.disabled,
|
|
85
|
-
}) }, h("slot", { key: '
|
|
85
|
+
}) }, h("slot", { key: 'a45fdccc3574cd3034f80e247d5f491494b2404d' })));
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "p-pagination-pages-item"; }
|
|
88
88
|
static get originalStyleUrls() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-pages-item.component.js","sourceRoot":"","sources":["../../../../../src/components/atoms/pagination/pages-item/pagination-pages-item.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,IAAI,GAAG,GAAG,CACf;IACC,mBAAmB;IACnB,UAAU;IACV,SAAS;IACT,8CAA8C;CAC9C,EACD;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,6BAA6B;YACtC,QAAQ,EAAE,yBAAyB;SACnC;QACD,MAAM,EAAE;YACP,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,KAAK,EAAE;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,oBAAoB;SAC1B;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,kBAAkB;SACzB;QACD;YACC,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,uCAAuC;SAC9C;QACD;YACC,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,gCAAgC;SACvC;QAED;YACC,OAAO,EAAE,UAAU;YACnB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,kBAAkB;SACzB;QACD;YACC,OAAO,EAAE,UAAU;YACnB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,8DAA8D;SACrE;QACD;YACC,OAAO,EAAE,UAAU;YACnB,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,6BAA6B;SACpC;KACD;CACD,CACD,CAAC;AAMF,MAAM,OAAO,mBAAmB;IAC/B;;OAEG;IACK,OAAO,GAA2B,SAAS,CAAC;IAEpD;;OAEG;IACK,MAAM,GAAY,KAAK,CAAC;IAEhC;;OAEG;IACK,KAAK,GAAY,IAAI,CAAC;IAE9B;;OAEG;IACK,QAAQ,GAAY,KAAK,CAAC;IAElC,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDACJ,KAAK,EAAE,IAAI,CAAC;gBACX,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACvB,CAAC;YAEF,8DAAQ,CACF,CACP,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Host, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst item = cva(\n\t[\n\t\t'p-pagination-item',\n\t\t'text-sm ',\n\t\t'h-6 w-6',\n\t\t'flex items-center justify-center text-center',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: 'rounded text-black-teal-500',\n\t\t\t\tcarousel: 'rounded-full text-white',\n\t\t\t},\n\t\t\tactive: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\thover: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: false,\n\t\t\t\tclass: 'bg-off-white-300',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: false,\n\t\t\t\thover: true,\n\t\t\t\tclass: 'hover:bg-off-white-500 cursor-pointer',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'bg-off-white-700 font-semibold',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'carousel',\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-dark-teal-
|
|
1
|
+
{"version":3,"file":"pagination-pages-item.component.js","sourceRoot":"","sources":["../../../../../src/components/atoms/pagination/pages-item/pagination-pages-item.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,IAAI,GAAG,GAAG,CACf;IACC,mBAAmB;IACnB,UAAU;IACV,SAAS;IACT,8CAA8C;CAC9C,EACD;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,6BAA6B;YACtC,QAAQ,EAAE,yBAAyB;SACnC;QACD,MAAM,EAAE;YACP,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,KAAK,EAAE;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,oBAAoB;SAC1B;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,kBAAkB;SACzB;QACD;YACC,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,uCAAuC;SAC9C;QACD;YACC,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,gCAAgC;SACvC;QAED;YACC,OAAO,EAAE,UAAU;YACnB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,kBAAkB;SACzB;QACD;YACC,OAAO,EAAE,UAAU;YACnB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,8DAA8D;SACrE;QACD;YACC,OAAO,EAAE,UAAU;YACnB,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,6BAA6B;SACpC;KACD;CACD,CACD,CAAC;AAMF,MAAM,OAAO,mBAAmB;IAC/B;;OAEG;IACK,OAAO,GAA2B,SAAS,CAAC;IAEpD;;OAEG;IACK,MAAM,GAAY,KAAK,CAAC;IAEhC;;OAEG;IACK,KAAK,GAAY,IAAI,CAAC;IAE9B;;OAEG;IACK,QAAQ,GAAY,KAAK,CAAC;IAElC,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDACJ,KAAK,EAAE,IAAI,CAAC;gBACX,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACvB,CAAC;YAEF,8DAAQ,CACF,CACP,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Host, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst item = cva(\n\t[\n\t\t'p-pagination-item',\n\t\t'text-sm ',\n\t\t'h-6 w-6',\n\t\t'flex items-center justify-center text-center',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: 'rounded text-black-teal-500',\n\t\t\t\tcarousel: 'rounded-full text-white',\n\t\t\t},\n\t\t\tactive: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\thover: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: false,\n\t\t\t\tclass: 'bg-off-white-300',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: false,\n\t\t\t\thover: true,\n\t\t\t\tclass: 'hover:bg-off-white-500 cursor-pointer',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'bg-off-white-700 font-semibold',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'carousel',\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-dark-teal-400',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'carousel',\n\t\t\t\tdisabled: false,\n\t\t\t\thover: true,\n\t\t\t\tclass: 'hover:bg-dark-teal-500 focus:bg-dark-teal-600 cursor-pointer',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'carousel',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'bg-dark-teal-400 opacity-20',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-pagination-pages-item',\n\tstyleUrl: 'pagination-pages-item.component.css',\n})\nexport class PaginationPagesItem {\n\t/**\n\t * The variant of the item\n\t */\n\t@Prop() variant: 'default' | 'carousel' = 'default';\n\n\t/**\n\t * Wether the pagination item is active\n\t */\n\t@Prop() active: boolean = false;\n\n\t/**\n\t * Wether the pagination item has hover\n\t */\n\t@Prop() hover: boolean = true;\n\n\t/**\n\t * Wether the pagination item is disabled\n\t */\n\t@Prop() disabled: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={item({\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tactive: this.active,\n\t\t\t\t\thover: this.hover,\n\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"]}
|
|
@@ -76,11 +76,11 @@ export class Radio {
|
|
|
76
76
|
checkedChange;
|
|
77
77
|
_nonce = nonce(5);
|
|
78
78
|
render() {
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '626fde36ff40f6985bfa380023288845dc5b053e', class: 'p-radio' }, h("label", { key: 'f3c16bc543800d9f8fd3af7c8909c6a0db7e3823', htmlFor: this.id?.length ? this.id : this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, h("div", { key: 'f4dfb883c3b61d4e0f5853032b735bae12b3c4df', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: 'c42e5e0fc0bb1622971a51f97754266572e7ca0e', class: radio({
|
|
80
80
|
disabled: asBoolean(this.disabled),
|
|
81
|
-
}), type: 'radio', id: this.id?.length ? this.id : this._nonce, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '
|
|
81
|
+
}), type: 'radio', id: this.id?.length ? this.id : this._nonce, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '792778c5ff960548528c41d76de739d6b2e66ee5', class: circle({
|
|
82
82
|
disabled: asBoolean(this.disabled),
|
|
83
|
-
}) })), h("slot", { key: '
|
|
83
|
+
}) })), h("slot", { key: 'bba9e3adbda677dcacfbb96fc08141d06d72e83a' }))));
|
|
84
84
|
}
|
|
85
85
|
_onChange(ev) {
|
|
86
86
|
if (asBoolean(this.disabled)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class SegmentContainer {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: 'eec5b238f3e1096566204e6795167c54e3ced911', class: 'p-segment-container flex rounded-2xl border border-solid border-off-white-700 bg-off-white-300 p-1' }, h("slot", { key: 'b1a60feb1f4ffc761401f323270e194937ae74cf' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "p-segment-container"; }
|
|
7
7
|
static get originalStyleUrls() {
|
|
@@ -49,11 +49,11 @@ export class SegmentItem {
|
|
|
49
49
|
iconRotate;
|
|
50
50
|
render() {
|
|
51
51
|
const descriptionSlot = this.variant === 'block' ? h("slot", { name: 'description' }) : null;
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '805af8d153977915bae6aaee07f32e02c4f9f999', class: segmentItem({
|
|
53
53
|
variant: this.variant,
|
|
54
54
|
active: asBoolean(this.active),
|
|
55
55
|
iconOnly: asBoolean(this.iconOnly),
|
|
56
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
56
|
+
}) }, this.icon && (h("p-icon", { key: 'ccd663d4754891a0510fbf82082ef72f59dfd779', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), this.variant === 'default' ? (h("slot", null)) : (h("div", { class: 'flex flex-col items-center gap-1' }, h("p", { class: 'font-semibold empty:hidden' }, h("slot", { name: 'title' })), descriptionSlot && h("p", { class: 'text-xs' }, descriptionSlot)))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "p-segment-item"; }
|
|
59
59
|
static get originalStyleUrls() {
|
|
@@ -15,7 +15,7 @@ export class Smile {
|
|
|
15
15
|
*/
|
|
16
16
|
variant = 'modal';
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '5b59c91f7a8185516bf18a8192df30e63f0216a3', class: smile({ variant: this.variant }) }, h("div", { key: 'b92b3d41b4c022af61e5e797ac64e98089949c58', class: 'absolute bottom-0 left-0 h-full w-full text-off-white-500', innerHTML: smileSvg })));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "p-smile"; }
|
|
21
21
|
static get originalStyleUrls() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class TabContainer {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("div", { key: '
|
|
4
|
+
return (h("div", { key: '8c0dd218f0a595a2822b368814eb44009ad82e46', class: 'relative flex h-8 w-full flex-col' }, h("div", { key: '29f65c3c1c5ceccbe1805098b7a98a27750e0c0d', class: 'z-10 flex w-full gap-5 overflow-x-auto scrollbar-hide' }, h("slot", { key: '3127b28c98e1b89f84e60b2f5768d8152ee44557' })), h("p-divider", { key: 'd41c6b8a3f3d947b3543f81d2b3321f98c18e4c3', class: 'absolute bottom-0 left-0 m-0 w-full' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "p-tab-container"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,7 @@ export class TabItem {
|
|
|
18
18
|
*/
|
|
19
19
|
active = false;
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: '1ec28d8e3fa3d13224247d561f10460c6ead3298', class: item({ active: this.active }) }, h("slot", { key: '8fb91e0c4f822895709d2856115f8fc570048b21' })));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "p-tab-item"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -78,11 +78,11 @@ export class Toggle {
|
|
|
78
78
|
indeterminateChange;
|
|
79
79
|
_nonce = nonce(5);
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: 'cc18ab9b736b7b9f988928a63f6c5a0ba1c54b1d', class: 'p-checkbox' }, h("label", { key: 'e2094a2717dcd042d163443a79104a4a26dd9806', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, h("div", { key: '6d80056de23eb7b5f963a07caf34eb7b489d83fe', class: 'group relative flex flex-shrink-0 items-center' }, h("input", { key: 'c218919cc052a3fe31d84f033f735f954bbf1d1a', class: checkbox({
|
|
82
82
|
disabled: asBoolean(this.disabled),
|
|
83
|
-
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '
|
|
83
|
+
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '9f6fe7e1ba6cf111db571c61f2d8f3af6fa30a7f', class: circle({
|
|
84
84
|
disabled: this.disabled,
|
|
85
|
-
}) })), h("slot", { key: '
|
|
85
|
+
}) })), h("slot", { key: '05c354affb2702d43214e83543add591853fb641' }))));
|
|
86
86
|
}
|
|
87
87
|
_onChange(ev) {
|
|
88
88
|
if (asBoolean(this.disabled)) {
|
|
@@ -108,19 +108,19 @@ export class Tooltip {
|
|
|
108
108
|
ref: el => this._load(el),
|
|
109
109
|
};
|
|
110
110
|
let tooltip;
|
|
111
|
-
const tooltipElement = (h("div", { key: '
|
|
111
|
+
const tooltipElement = (h("div", { key: '964d08f12cd4b08114dc3873e17cca96ce4fb3c0', class: popover({
|
|
112
112
|
variant: this.variant,
|
|
113
113
|
strategy: this.usePortal ? 'none' : this.strategy,
|
|
114
|
-
}), ...(this.usePortal ? {} : tooltipProps) }, h("div", { key: '
|
|
114
|
+
}), ...(this.usePortal ? {} : tooltipProps) }, h("div", { key: '684fbb0cb4ba63decb6064edb973660a0fd66be8', class: 'flex gap-2' }, this.variant === 'error' && (h("div", { key: 'fb0dcc801a5dd16e7aa314463a682e1dfcf87654', class: 'w-[2px] bg-negative-red' })), this.content ? this.content : h("slot", { name: 'content' }))));
|
|
115
115
|
if (this.usePortal) {
|
|
116
|
-
tooltip = (h("p-portal", { key: '
|
|
116
|
+
tooltip = (h("p-portal", { key: 'cc04657d297ff62df0bd0ffe649299d1904ad0c5', class: portal({
|
|
117
117
|
strategy: this.strategy,
|
|
118
118
|
}), ...tooltipProps }, tooltipElement));
|
|
119
119
|
}
|
|
120
120
|
else {
|
|
121
121
|
tooltip = tooltipElement;
|
|
122
122
|
}
|
|
123
|
-
return (h(Host, { key: '
|
|
123
|
+
return (h(Host, { key: '087eb065cece95a021feefa03f3382c78e7d420e', class: 'p-popover flex cursor-pointer' }, h("div", { key: '0ed8dd7933c461a4767669e3007ebcadfe67e530', class: 'relative h-inherit w-inherit max-w-full' }, h("slot", { key: 'fbdb4661aac46d4535899fc8cff83f3c22773ef8', name: 'trigger' }), tooltip)));
|
|
124
124
|
}
|
|
125
125
|
clickHandler() {
|
|
126
126
|
if (this.variant === 'hover' || !this.enableUserInput) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.component.js","sourceRoot":"","sources":["../../../../src/components/atoms/tooltip/tooltip.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,eAAe,EACf,IAAI,EACJ,MAAM,EAEN,KAAK,GAEL,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,OAAO,GAAG,GAAG,CAClB;IACC,mBAAmB;IACnB,SAAS;IACT,4CAA4C;IAC5C,YAAY;IAEZ,WAAW;IACX,qBAAqB;CACrB,EACD;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,KAAK,EAAE,+BAA+B;YACtC,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,mBAAmB;SAC1B;QACD,QAAQ,EAAE;YACT,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;SACpB;KACD;IACD,gBAAgB,EAAE;QACjB;Y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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst popover = cva(\n\t[\n\t\t'inline-block px-2',\n\t\t'text-xs',\n\t\t'opacity-0 drop-shadow-3 transition-opacity',\n\t\t'rounded-lg',\n\n\t\t'z-tooltip',\n\t\t'pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\thover: 'bg-black-teal text-white py-1',\n\t\t\t\tclick: null,\n\t\t\t\terror: 'max-w-full w-full',\n\t\t\t},\n\t\t\tstrategy: {\n\t\t\t\tnone: null,\n\t\t\t\tfixed: 'fixed',\n\t\t\t\tabsolute: 'absolute',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: ['hover', 'click'],\n\t\t\t\tclass: 'max-w-[14.5rem] w-max',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['click', 'error'],\n\t\t\t\tclass: 'bg-white text-black-teal-300 py-2',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst portal = cva('', {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tfixed: 'fixed',\n\t\t\tabsolute: 'absolute',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-tooltip',\n\tstyleUrl: 'tooltip.component.css',\n\tshadow: true,\n})\nexport class Tooltip {\n\t/**\n\t * The variant of the popover\n\t */\n\t@Prop() variant: 'hover' | 'click' | 'error' = 'hover';\n\n\t/**\n\t * The content of the popover\n\t */\n\t@Prop() content: any = null;\n\n\t/**\n\t * The placement of the popover\n\t */\n\t@Prop() placement: Placement;\n\n\t/**\n\t * The offset of the popover\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the popover placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether the tooltip can be shown by user input\n\t */\n\t@Prop() enableUserInput: boolean = true;\n\n\t/**\n\t * Wether to show the popover\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to use a portal for the tooltip\n\t */\n\t@Prop() usePortal: boolean = false;\n\n\t/**\n\t * Wether to someone can manually close the popover\n\t */\n\t@Prop() canManuallyClose: boolean = true;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasContentSlot = false;\n\n\tprivate _loaded = false;\n\tprivate _popover: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentWillLoad() {\n\t\tthis._hasContentSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"content\"]'\n\t\t);\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\t}\n\n\trender() {\n\t\tconst tooltipProps = {\n\t\t\trole: 'popover',\n\t\t\t'data-placement': this.placement,\n\t\t\tref: el => this._load(el),\n\t\t};\n\n\t\tlet tooltip: HTMLElement;\n\n\t\tconst tooltipElement = (\n\t\t\t<div\n\t\t\t\tclass={popover({\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tstrategy: this.usePortal ? 'none' : this.strategy,\n\t\t\t\t})}\n\t\t\t\t{...(this.usePortal ? {} : tooltipProps)}\n\t\t\t>\n\t\t\t\t<div class='flex gap-2'>\n\t\t\t\t\t{this.variant === 'error' && (\n\t\t\t\t\t\t<div class='w-[2px] bg-negative-red'></div>\n\t\t\t\t\t)}\n\t\t\t\t\t{this.content ? this.content : <slot name='content' />}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\n\t\tif (this.usePortal) {\n\t\t\ttooltip = (\n\t\t\t\t<p-portal\n\t\t\t\t\tclass={portal({\n\t\t\t\t\t\tstrategy: this.strategy,\n\t\t\t\t\t})}\n\t\t\t\t\t{...tooltipProps}\n\t\t\t\t>\n\t\t\t\t\t{tooltipElement}\n\t\t\t\t</p-portal>\n\t\t\t);\n\t\t} else {\n\t\t\ttooltip = tooltipElement;\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-popover flex cursor-pointer'>\n\t\t\t\t<div class='relative h-inherit w-inherit'>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t\t{tooltip}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { capture: true })\n\tprotected clickHandler() {\n\t\tif (this.variant === 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler() {\n\t\tif (this.variant === 'hover' || !this.canManuallyClose || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Listen('mouseenter')\n\t@Listen('focus')\n\tprotected mouseEnterHandler() {\n\t\tif (this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('mouseleave')\n\t@Listen('blur')\n\tprotected mouseLeaveHandler() {\n\t\tif (this.show || this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Watch('show')\n\tonShowChange(show: boolean) {\n\t\tif (show && !this._popover.hasAttribute('data-show')) {\n\t\t\treturn this._show();\n\t\t}\n\n\t\treturn this._hide();\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.content?.length && !this._hasContentSlot) {\n\t\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\t\tthis._hide();\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._popover, () => this._update());\n\t\t// Make the popover visible\n\t\tthis._popover.setAttribute('data-show', '');\n\n\t\tthis._popover.classList.remove('opacity-0', 'pointer-events-none');\n\t\tthis._popover.classList.add('opacity-100', 'pointer-events-auto');\n\n\t\t// Update its position\n\t\tthis.isOpen.emit(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._popover.removeAttribute('data-show');\n\n\t\tthis._popover.classList.remove('opacity-100', 'pointer-events-auto');\n\t\tthis._popover.classList.add('opacity-0', 'pointer-events-none');\n\n\t\tthis.isOpen.emit(false);\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._popover = popover;\n\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _update() {\n\t\tif (!this._popover) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._popover, {\n\t\t\tplacement:\n\t\t\t\tthis.variant === 'error' && !this.placement\n\t\t\t\t\t? 'bottom-start'\n\t\t\t\t\t: this.placement ?? 'top',\n\t\t\tstrategy: this.strategy,\n\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._popover.dataset.placement = placement;\n\t\t\tObject.assign(this._popover.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"tooltip.component.js","sourceRoot":"","sources":["../../../../src/components/atoms/tooltip/tooltip.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,eAAe,EACf,IAAI,EACJ,MAAM,EAEN,KAAK,GAEL,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,OAAO,GAAG,GAAG,CAClB;IACC,mBAAmB;IACnB,SAAS;IACT,4CAA4C;IAC5C,YAAY;IAEZ,WAAW;IACX,qBAAqB;CACrB,EACD;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,KAAK,EAAE,+BAA+B;YACtC,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,mBAAmB;SAC1B;QACD,QAAQ,EAAE;YACT,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;SACpB;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC3B,KAAK,EAAE,uBAAuB;SAC9B;QACD;YACC,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC3B,KAAK,EAAE,mCAAmC;SAC1C;KACD;CACD,CACD,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG,CAA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;;;;;;;;;CACD","sourcesContent":["import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst popover = cva(\n\t[\n\t\t'inline-block px-2',\n\t\t'text-xs',\n\t\t'opacity-0 drop-shadow-3 transition-opacity',\n\t\t'rounded-lg',\n\n\t\t'z-tooltip',\n\t\t'pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\thover: 'bg-black-teal text-white py-1',\n\t\t\t\tclick: null,\n\t\t\t\terror: 'max-w-full w-full',\n\t\t\t},\n\t\t\tstrategy: {\n\t\t\t\tnone: null,\n\t\t\t\tfixed: 'fixed',\n\t\t\t\tabsolute: 'absolute',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: ['hover', 'click'],\n\t\t\t\tclass: 'max-w-[14.5rem] w-max',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['click', 'error'],\n\t\t\t\tclass: 'bg-white text-black-teal-300 py-2',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst portal = cva('', {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tfixed: 'fixed',\n\t\t\tabsolute: 'absolute',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-tooltip',\n\tstyleUrl: 'tooltip.component.css',\n\tshadow: true,\n})\nexport class Tooltip {\n\t/**\n\t * The variant of the popover\n\t */\n\t@Prop() variant: 'hover' | 'click' | 'error' = 'hover';\n\n\t/**\n\t * The content of the popover\n\t */\n\t@Prop() content: any = null;\n\n\t/**\n\t * The placement of the popover\n\t */\n\t@Prop() placement: Placement;\n\n\t/**\n\t * The offset of the popover\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the popover placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether the tooltip can be shown by user input\n\t */\n\t@Prop() enableUserInput: boolean = true;\n\n\t/**\n\t * Wether to show the popover\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to use a portal for the tooltip\n\t */\n\t@Prop() usePortal: boolean = false;\n\n\t/**\n\t * Wether to someone can manually close the popover\n\t */\n\t@Prop() canManuallyClose: boolean = true;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasContentSlot = false;\n\n\tprivate _loaded = false;\n\tprivate _popover: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentWillLoad() {\n\t\tthis._hasContentSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"content\"]'\n\t\t);\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\t}\n\n\trender() {\n\t\tconst tooltipProps = {\n\t\t\trole: 'popover',\n\t\t\t'data-placement': this.placement,\n\t\t\tref: el => this._load(el),\n\t\t};\n\n\t\tlet tooltip: HTMLElement;\n\n\t\tconst tooltipElement = (\n\t\t\t<div\n\t\t\t\tclass={popover({\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tstrategy: this.usePortal ? 'none' : this.strategy,\n\t\t\t\t})}\n\t\t\t\t{...(this.usePortal ? {} : tooltipProps)}\n\t\t\t>\n\t\t\t\t<div class='flex gap-2'>\n\t\t\t\t\t{this.variant === 'error' && (\n\t\t\t\t\t\t<div class='w-[2px] bg-negative-red'></div>\n\t\t\t\t\t)}\n\t\t\t\t\t{this.content ? this.content : <slot name='content' />}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\n\t\tif (this.usePortal) {\n\t\t\ttooltip = (\n\t\t\t\t<p-portal\n\t\t\t\t\tclass={portal({\n\t\t\t\t\t\tstrategy: this.strategy,\n\t\t\t\t\t})}\n\t\t\t\t\t{...tooltipProps}\n\t\t\t\t>\n\t\t\t\t\t{tooltipElement}\n\t\t\t\t</p-portal>\n\t\t\t);\n\t\t} else {\n\t\t\ttooltip = tooltipElement;\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-popover flex cursor-pointer'>\n\t\t\t\t<div class='relative h-inherit w-inherit max-w-full'>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t\t{tooltip}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { capture: true })\n\tprotected clickHandler() {\n\t\tif (this.variant === 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler() {\n\t\tif (this.variant === 'hover' || !this.canManuallyClose || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Listen('mouseenter')\n\t@Listen('focus')\n\tprotected mouseEnterHandler() {\n\t\tif (this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('mouseleave')\n\t@Listen('blur')\n\tprotected mouseLeaveHandler() {\n\t\tif (this.show || this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Watch('show')\n\tonShowChange(show: boolean) {\n\t\tif (show && !this._popover.hasAttribute('data-show')) {\n\t\t\treturn this._show();\n\t\t}\n\n\t\treturn this._hide();\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.content?.length && !this._hasContentSlot) {\n\t\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\t\tthis._hide();\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._popover, () => this._update());\n\t\t// Make the popover visible\n\t\tthis._popover.setAttribute('data-show', '');\n\n\t\tthis._popover.classList.remove('opacity-0', 'pointer-events-none');\n\t\tthis._popover.classList.add('opacity-100', 'pointer-events-auto');\n\n\t\t// Update its position\n\t\tthis.isOpen.emit(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._popover.removeAttribute('data-show');\n\n\t\tthis._popover.classList.remove('opacity-100', 'pointer-events-auto');\n\t\tthis._popover.classList.add('opacity-0', 'pointer-events-none');\n\n\t\tthis.isOpen.emit(false);\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._popover = popover;\n\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _update() {\n\t\tif (!this._popover) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._popover, {\n\t\t\tplacement:\n\t\t\t\tthis.variant === 'error' && !this.placement\n\t\t\t\t\t? 'bottom-start'\n\t\t\t\t\t: this.placement ?? 'top',\n\t\t\tstrategy: this.strategy,\n\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._popover.dataset.placement = placement;\n\t\t\tObject.assign(this._popover.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"]}
|
|
@@ -9,7 +9,7 @@ export class Counter {
|
|
|
9
9
|
*/
|
|
10
10
|
size = 'default';
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'c7ba578506ee54636d7526bc359ec071ce6d7bf2', class: `p-counter variant-${this.variant} size-${this.size}` }, h("slot", { key: '1b8ef072130d4daf41677988fa9b6e93668f0111' })));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "p-counter"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class ModalBody {
|
|
|
5
5
|
*/
|
|
6
6
|
variant = 'default';
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '2520795b8635b88fd4689805c93f724e98090c1c', class: `p-drawer-body variant-${this.variant}` }, h("slot", { key: '3ac28d7812ce85a34c4a59b19e25fc444c7d37ef' })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "p-drawer-body"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/deprecated/atoms/drawer/container/drawer-container.component.js
CHANGED
|
@@ -10,7 +10,7 @@ export class ModalContainer {
|
|
|
10
10
|
*/
|
|
11
11
|
closing = false;
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '0e327d7518acec308ff91585147416bb7fcf6f6d', class: `p-drawer-container ${this.closing && 'closing'}` }, h("slot", { key: 'ee496c398318f1b604f86042b96980a2319a6bfa' })));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "p-drawer-container"; }
|
|
16
16
|
static get originalStyleUrls() {
|
package/dist/collection/components/deprecated/atoms/drawer/header/drawer-header.component.js
CHANGED
|
@@ -9,7 +9,7 @@ export class ModalHeader {
|
|
|
9
9
|
*/
|
|
10
10
|
close;
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'ee62292c64b405694277ab012e03a1375e7e7b17', class: 'p-drawer-header' }, this.showClose && (h("p-button", { key: 'c35b79735bfe18188d3105f8336eaae908036a5e', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: () => this.close.emit(), size: 'sm' })), h("slot", { key: 'd734ec1fcdd792cf3867953e2598f9fa954144a9' })));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "p-drawer-header"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,7 @@ export class InfoPanel {
|
|
|
25
25
|
*/
|
|
26
26
|
_el;
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '9eb262cfcdbbc7c81884559f22efb9d4b670b75a', class: `p-info-panel variant-${this.variant} ${this.closeable && 'has-close'}` }, h("div", { key: 'b30b7f2e842e75874b62c461cd75e18533c3bf5a', class: 'header' }, h("slot", { key: '9af70b307f1d81b79dc2b273a9e621e06c1bd114', name: 'header' })), h("div", { key: 'ad69ae0d77d63b78c7f52614e47bbad4fdd25c38', class: 'content' }, h("slot", { key: '950b5647d6c65065fd87166796a07f6ee828cf80', name: 'content' })), this.closeable && (h("div", { key: 'bb12dab296d4248e49036e8d57ad3c86634bcd83', class: 'close', onClick: () => this._close() }, h("p-icon", { key: '9c32de9ae095efb917fd4e7a0300242dc0bdef79', variant: 'negative' })))));
|
|
29
29
|
}
|
|
30
30
|
_close() {
|
|
31
31
|
this.closed.emit();
|
|
@@ -5,7 +5,7 @@ export class Layout {
|
|
|
5
5
|
*/
|
|
6
6
|
variant = 'default';
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '83bf2d744371af578658fab1d60bdc99ba219283', class: `p-layout variant-${this.variant}` }, h("div", { key: '683fb2c8b73ba2b9b32762e860bc9c0a7164c47b', class: 'content' }, h("div", { key: '920ec6b59fbcd19a98f8384915ea266e0ebec0d6', class: 'inner-content' }, h("slot", { key: 'd1760fc61e715e1a6966e11ed9db730ccb72d7ef', name: 'content' }))), h("div", { key: 'a9e52f6b1a7905340ce8d749e088192a88fe8da5', class: 'sidebar' }, h("slot", { key: '36ad035653a8f49788db9651c5b0ae62ef660b32', name: 'sidebar' })), h("div", { key: '3b3ab5e7ec6a114296b8e699567cb41631ffedd2', class: 'topbar' }, h("slot", { key: 'cfae23c07360d1a6a9c49830239761e334212320', name: 'topbar' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "p-layout"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/deprecated/atoms/slider-indicator/slider-indicator.component.js
CHANGED
|
@@ -5,7 +5,7 @@ export class SliderIndicator {
|
|
|
5
5
|
*/
|
|
6
6
|
active = false;
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'cbcda587cd65ad2fd9d52013336a9e4a46fae855', class: `p-slider-indicator ${this.active && 'active'}` }));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "p-slider-indicator"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,8 +17,8 @@ export class Status {
|
|
|
17
17
|
*/
|
|
18
18
|
iconRotate;
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
21
|
-
}` }, this._getIcon(), h("slot", { key: '
|
|
20
|
+
return (h(Host, { key: '56166f20d5b90b89ded4570d0671978f15a79d69', class: `p-status variant-${this.variant}
|
|
21
|
+
}` }, this._getIcon(), h("slot", { key: '91b5a16cb729b8f538b8c31964b1ec0094360643' })));
|
|
22
22
|
}
|
|
23
23
|
_getIcon() {
|
|
24
24
|
const icon = this.icon || this._getVariantIcon();
|
|
@@ -21,7 +21,7 @@ export class StepperItem {
|
|
|
21
21
|
*/
|
|
22
22
|
active = false;
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '5530f6c741575ff1d139f5ecaf7c843ce5fb319a', class: "p-stepper-item" }, h("div", { key: '0b34dc9d11a253db66cd4caff2cecb37e9a52d23', class: "circle" }, this.finished && h("p-icon", { key: 'a1f32db164e705ee95bb4f53470132c5e633c297', variant: "checkmark" })), h("div", { key: 'f4055e42d9ab92299ff14680c14b5d600cc2142f', class: "content" }, h("slot", { key: '6080dea3f48628d7695fa637388c42b5af5b0a94', name: "content" }))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "p-stepper-item"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class StepperLine {
|
|
|
9
9
|
*/
|
|
10
10
|
direction = 'horizontal';
|
|
11
11
|
render() {
|
|
12
|
-
return h(Host, { key: '
|
|
12
|
+
return h(Host, { key: 'ffc0cbfb4c34dfd63323ec045e915b78e2a1fc27', class: "p-stepper-line" });
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "p-stepper-line"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/deprecated/atoms/table/container/table-container.component.js
CHANGED
|
@@ -5,7 +5,7 @@ export class TableContainer {
|
|
|
5
5
|
*/
|
|
6
6
|
shadow = true;
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '6f3f3c1d957438e6ee63262f7d6c0710956ef61b', class: `p-table-container ${!this.shadow && 'no-shadow'}` }, h("slot", { key: '3d639a3534b7edf3ff5953ca4d6ceb06245d4794' })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "p-table-container"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|