@paperless/core 2.0.1-beta.107 → 2.0.1-beta.108
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 +11 -0
- package/dist/build/p-0a6b03d0.entry.js +2 -0
- package/dist/build/{p-73288f5a.entry.js → p-0a6e3e6f.entry.js} +2 -2
- package/dist/build/p-0b6db18f.entry.js +2 -0
- package/dist/build/{p-761e3e45.js → p-0c74d8df.js} +1 -1
- package/dist/build/{p-9e049ea2.entry.js → p-0dc168c5.entry.js} +2 -2
- package/dist/build/{p-9b76e79f.entry.js → p-13b16981.entry.js} +2 -2
- package/dist/build/{p-46e8c0f4.entry.js → p-2046bbbd.entry.js} +2 -2
- package/dist/{paperless/p-6786c387.entry.js → build/p-21d80bbe.entry.js} +2 -2
- package/dist/build/{p-44c00c66.entry.js → p-222abd40.entry.js} +2 -2
- package/dist/{paperless/p-73baed16.entry.js → build/p-26491670.entry.js} +2 -2
- package/dist/build/{p-ba8f7d4a.entry.js → p-28152f8e.entry.js} +2 -2
- package/dist/build/{p-309acb82.entry.js → p-35b71004.entry.js} +2 -2
- package/dist/{paperless/p-732ca4f2.entry.js → build/p-427ef39b.entry.js} +2 -2
- package/dist/build/{p-14a0aea4.entry.js → p-456a3099.entry.js} +2 -2
- package/dist/{paperless/p-2c5884c2.entry.js → build/p-51b09be2.entry.js} +2 -2
- package/dist/{paperless/p-8a1b3aa7.entry.js → build/p-57acc6a7.entry.js} +2 -2
- package/dist/build/{p-9a4399ee.entry.js → p-58efc94c.entry.js} +2 -2
- package/dist/build/{p-03fc8193.entry.js → p-5dcdb2d0.entry.js} +2 -2
- package/dist/build/{p-25272030.entry.js → p-635f36c7.entry.js} +2 -2
- package/dist/build/{p-acf15cc8.entry.js → p-68b2471e.entry.js} +2 -2
- package/dist/build/p-70de0ecc.entry.js +2 -0
- package/dist/{paperless/p-947cb68e.entry.js → build/p-7b7366dc.entry.js} +2 -2
- package/dist/build/{p-bacbbe41.entry.js → p-861e6352.entry.js} +2 -2
- package/dist/build/{p-de7a4100.entry.js → p-899f7d36.entry.js} +2 -2
- package/dist/build/p-98c5649d.entry.js +2 -0
- package/dist/build/p-98c5649d.entry.js.map +1 -0
- package/dist/{paperless/p-d0644e30.entry.js → build/p-9c71c64d.entry.js} +2 -2
- package/dist/build/{p-422dfb3b.entry.js → p-9d23879b.entry.js} +2 -2
- package/dist/build/{p-e86f15a1.entry.js → p-9ef541e4.entry.js} +2 -2
- package/dist/build/{p-2930452d.entry.js → p-a6c618fb.entry.js} +2 -2
- package/dist/{paperless/p-3fcfcc66.entry.js → build/p-a8f60c0c.entry.js} +2 -2
- package/dist/{paperless/p-d6f6b10c.entry.js → build/p-acc528bf.entry.js} +2 -2
- package/dist/build/{p-41bf19a1.entry.js → p-b8797794.entry.js} +2 -2
- package/dist/build/{p-da2e0d56.entry.js → p-c2721d00.entry.js} +2 -2
- package/dist/{paperless/p-6b376f94.entry.js → build/p-c7c3d389.entry.js} +2 -2
- package/dist/build/{p-e89ae562.entry.js → p-d0ba9cdd.entry.js} +2 -2
- package/dist/{paperless/p-53b152c3.entry.js → build/p-d5cba5af.entry.js} +2 -2
- package/dist/build/p-d6e8bf36.entry.js +2 -0
- package/dist/build/{p-24dac9f4.entry.js → p-df4bda2d.entry.js} +2 -2
- package/dist/build/p-drawer-body.p-drawer-container.p-drawer-header.entry.esm.js.map +1 -1
- package/dist/build/p-drawer.entry.esm.js.map +1 -1
- package/dist/build/p-e2ee74a9.entry.js +2 -0
- package/dist/{paperless/p-c66a0ecd.entry.js → build/p-f12a4759.entry.js} +2 -2
- package/dist/{paperless/p-a4714075.entry.js → build/p-f4c0923b.entry.js} +2 -2
- package/dist/build/{p-273e9f17.entry.js → p-f9efc1e5.entry.js} +2 -2
- package/dist/build/p-fe892a0f.entry.js +2 -0
- package/dist/build/p-fe892a0f.entry.js.map +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/index-BDuPp9vl.js +4 -4
- 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-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox_4.cjs.entry.js +9 -9
- 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.p-drawer-container.p-drawer-header.entry.cjs.js.map +1 -1
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +43 -19
- package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-drawer.cjs.entry.js +19 -3
- package/dist/cjs/p-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/p-drawer.entry.cjs.js.map +1 -1
- package/dist/cjs/p-empty-state_9.cjs.entry.js +12 -12
- package/dist/cjs/p-field_2.cjs.entry.js +3 -3
- package/dist/cjs/p-helper_2.cjs.entry.js +5 -5
- 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-pages-item.cjs.entry.js +2 -2
- package/dist/cjs/p-pagination_3.cjs.entry.js +4 -4
- package/dist/cjs/p-portal.cjs.entry.js +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 +2 -2
- 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/collection-manifest.json +4 -4
- package/dist/collection/components/atoms/drawer/body/drawer-body.component.css +1 -0
- package/dist/collection/components/atoms/drawer/body/drawer-body.component.js +19 -0
- package/dist/collection/components/atoms/drawer/body/drawer-body.component.js.map +1 -0
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.css +1 -0
- package/dist/collection/components/{deprecated/atoms → atoms}/drawer/container/drawer-container.component.js +23 -9
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.js.map +1 -0
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.css +1 -0
- package/dist/collection/components/{deprecated/atoms → atoms}/drawer/header/drawer-header.component.js +14 -4
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.js.map +1 -0
- package/dist/collection/components/atoms/dropdown-menu/container/dropdown-menu-container.component.js +2 -2
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +3 -3
- 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/info-panel/info-panel.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.js +2 -2
- 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/table/actions-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +1 -1
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
- 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/deprecated/atoms/counter/counter.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/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/helpers/portal/portal.component.js +1 -1
- 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.js +4 -4
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/field/field.component.js +3 -3
- 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/select/select.component.js +1 -1
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/drawer/drawer.component.css +1 -0
- package/dist/collection/components/{deprecated/organisms → organisms}/drawer/drawer.component.js +19 -3
- package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -0
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/components/{p-CjruE70A.js → p-12mQxW6R.js} +5 -5
- package/dist/components/{p-CjruE70A.js.map → p-12mQxW6R.js.map} +1 -1
- package/dist/components/{p-C1teny1Z.js → p-4jVVUXXD.js} +9 -9
- package/dist/components/{p-C1teny1Z.js.map → p-4jVVUXXD.js.map} +1 -1
- package/dist/components/{p-kicoGsIb.js → p-8rB2Q4yP.js} +5 -5
- package/dist/components/{p-kicoGsIb.js.map → p-8rB2Q4yP.js.map} +1 -1
- package/dist/components/{p-6G9reodC.js → p-BDTPyUsH.js} +4 -4
- package/dist/components/{p-6G9reodC.js.map → p-BDTPyUsH.js.map} +1 -1
- package/dist/components/p-BFBgml7D.js +34 -0
- package/dist/components/p-BFBgml7D.js.map +1 -0
- package/dist/components/{p-DSuET-eU.js → p-BMeOy477.js} +4 -4
- package/dist/components/{p-DSuET-eU.js.map → p-BMeOy477.js.map} +1 -1
- package/dist/components/p-BONflo7Y.js +58 -0
- package/dist/components/p-BONflo7Y.js.map +1 -0
- package/dist/components/{p-B-__VvzL.js → p-BUxcWSGM.js} +3 -3
- package/dist/components/{p-B-__VvzL.js.map → p-BUxcWSGM.js.map} +1 -1
- package/dist/components/{p-CL1tVKe4.js → p-BjIAI-rM.js} +12 -12
- package/dist/components/{p-CL1tVKe4.js.map → p-BjIAI-rM.js.map} +1 -1
- package/dist/components/{p-BIictJiJ.js → p-BqhBbHGw.js} +5 -5
- package/dist/components/{p-BIictJiJ.js.map → p-BqhBbHGw.js.map} +1 -1
- package/dist/components/{p-B6vYveWX.js → p-Br_TxALn.js} +4 -4
- package/dist/components/{p-B6vYveWX.js.map → p-Br_TxALn.js.map} +1 -1
- package/dist/components/{p-D9TW62QT.js → p-BrtcZfOg.js} +9 -9
- package/dist/components/{p-D9TW62QT.js.map → p-BrtcZfOg.js.map} +1 -1
- package/dist/components/{p-DTELven3.js → p-BwFkgAPO.js} +4 -4
- package/dist/components/{p-DTELven3.js.map → p-BwFkgAPO.js.map} +1 -1
- package/dist/components/{p-C_iFBAeB.js → p-C1YLcCva.js} +5 -5
- package/dist/components/{p-C_iFBAeB.js.map → p-C1YLcCva.js.map} +1 -1
- package/dist/components/{p-ZiTaSiM1.js → p-C3gEbkrr.js} +4 -4
- package/dist/components/{p-ZiTaSiM1.js.map → p-C3gEbkrr.js.map} +1 -1
- package/dist/components/{p-Cs3hICh6.js → p-CFdbv-t4.js} +4 -4
- package/dist/components/{p-Cs3hICh6.js.map → p-CFdbv-t4.js.map} +1 -1
- package/dist/components/{p-D62EdTDF.js → p-CdQUFhNO.js} +3 -3
- package/dist/components/{p-D62EdTDF.js.map → p-CdQUFhNO.js.map} +1 -1
- package/dist/components/{p-CbAIiYBk.js → p-CgZvkWTt.js} +3 -3
- package/dist/components/{p-CbAIiYBk.js.map → p-CgZvkWTt.js.map} +1 -1
- package/dist/components/{p-B3Ewxc1y.js → p-CmfFRlg6.js} +7 -7
- package/dist/components/{p-B3Ewxc1y.js.map → p-CmfFRlg6.js.map} +1 -1
- package/dist/components/{p-BaPm4CUM.js → p-D09jozUL.js} +4 -4
- package/dist/components/{p-BaPm4CUM.js.map → p-D09jozUL.js.map} +1 -1
- package/dist/components/{p-CcHNSmM6.js → p-D82K4OiU.js} +3 -3
- package/dist/components/{p-CcHNSmM6.js.map → p-D82K4OiU.js.map} +1 -1
- package/dist/components/{p-XKsDwf68.js → p-DPJZQYRZ.js} +3 -3
- package/dist/components/{p-XKsDwf68.js.map → p-DPJZQYRZ.js.map} +1 -1
- package/dist/components/{p-SBX6d6TK.js → p-DTvsZePk.js} +12 -12
- package/dist/components/{p-SBX6d6TK.js.map → p-DTvsZePk.js.map} +1 -1
- package/dist/components/{p-CnN1TPGU.js → p-DW90RovU.js} +8 -8
- package/dist/components/{p-CnN1TPGU.js.map → p-DW90RovU.js.map} +1 -1
- package/dist/components/{p-C3jUT1uX.js → p-DWZhmPv-.js} +3 -3
- package/dist/components/{p-C3jUT1uX.js.map → p-DWZhmPv-.js.map} +1 -1
- package/dist/components/p-Da2j4Bie.js +79 -0
- package/dist/components/p-Da2j4Bie.js.map +1 -0
- package/dist/components/{p-BxKs3UTG.js → p-Dhj0ynsI.js} +4 -4
- package/dist/components/{p-BxKs3UTG.js.map → p-Dhj0ynsI.js.map} +1 -1
- package/dist/components/{p-DmWJltGE.js → p-Dk6UwJSA.js} +3 -3
- package/dist/components/{p-DmWJltGE.js.map → p-Dk6UwJSA.js.map} +1 -1
- package/dist/components/{p-MqZP1SU8.js → p-Drik7Kfv.js} +4 -4
- package/dist/components/{p-MqZP1SU8.js.map → p-Drik7Kfv.js.map} +1 -1
- package/dist/components/{p-BT5cWS85.js → p-DwXZFIvC.js} +3 -3
- package/dist/components/{p-BT5cWS85.js.map → p-DwXZFIvC.js.map} +1 -1
- package/dist/components/{p-DVg35gx9.js → p-OpZXFNRZ.js} +3 -3
- package/dist/components/{p-DVg35gx9.js.map → p-OpZXFNRZ.js.map} +1 -1
- package/dist/components/{p-CKXBGS9b.js → p-RaBHKmcm.js} +5 -5
- package/dist/components/{p-CKXBGS9b.js.map → p-RaBHKmcm.js.map} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +7 -7
- package/dist/components/{p-0oKABuW2.js → p-bIRaONwn.js} +6 -6
- package/dist/components/{p-0oKABuW2.js.map → p-bIRaONwn.js.map} +1 -1
- package/dist/components/p-button-group.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 +10 -10
- package/dist/components/p-drawer-body.js +2 -2
- package/dist/components/p-drawer-container.js +2 -2
- package/dist/components/p-drawer-header.js +2 -2
- package/dist/components/p-drawer.js +40 -18
- package/dist/components/p-drawer.js.map +1 -1
- 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-empty-state.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-label.js +3 -3
- package/dist/components/p-layout.js +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 +5 -5
- package/dist/components/p-navbar.js +1 -1
- 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-CZqz-QUW.js → p-nfMD63_1.js} +3 -3
- package/dist/components/{p-CZqz-QUW.js.map → p-nfMD63_1.js.map} +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 +1 -1
- package/dist/components/p-portal.js +1 -1
- package/dist/components/p-profile.js +3 -3
- package/dist/components/p-radio.js +3 -3
- package/dist/components/p-segment-container.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +9 -9
- 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-actions-container.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +22 -22
- package/dist/components/p-toast-container.js +2 -2
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +3 -3
- package/dist/components/p-tooltip.js +1 -1
- package/dist/components/{p-CT-FyVjy.js → p-wcD-x4l2.js} +3 -3
- package/dist/components/{p-CT-FyVjy.js.map → p-wcD-x4l2.js.map} +1 -1
- package/dist/esm/index-DhGo7hbh.js +4 -4
- 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-calendar.entry.js +1 -1
- package/dist/esm/p-checkbox_4.entry.js +9 -9
- 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.p-drawer-container.p-drawer-header.entry.js.map +1 -1
- package/dist/esm/p-drawer-body_3.entry.js +42 -18
- package/dist/esm/p-drawer-body_3.entry.js.map +1 -1
- package/dist/esm/p-drawer.entry.js +20 -4
- package/dist/esm/p-drawer.entry.js.map +1 -1
- package/dist/esm/p-empty-state_9.entry.js +12 -12
- package/dist/esm/p-field_2.entry.js +3 -3
- package/dist/esm/p-helper_2.entry.js +5 -5
- 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-pages-item.entry.js +2 -2
- package/dist/esm/p-pagination_3.entry.js +4 -4
- package/dist/esm/p-portal.entry.js +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 +2 -2
- 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-0a6b03d0.entry.js +2 -0
- package/dist/paperless/{p-73288f5a.entry.js → p-0a6e3e6f.entry.js} +2 -2
- package/dist/paperless/p-0b6db18f.entry.js +2 -0
- package/dist/paperless/{p-9e049ea2.entry.js → p-0dc168c5.entry.js} +2 -2
- package/dist/paperless/{p-9b76e79f.entry.js → p-13b16981.entry.js} +2 -2
- package/dist/paperless/{p-46e8c0f4.entry.js → p-2046bbbd.entry.js} +2 -2
- package/dist/{build/p-6786c387.entry.js → paperless/p-21d80bbe.entry.js} +2 -2
- package/dist/paperless/{p-44c00c66.entry.js → p-222abd40.entry.js} +2 -2
- package/dist/{build/p-73baed16.entry.js → paperless/p-26491670.entry.js} +2 -2
- package/dist/paperless/{p-ba8f7d4a.entry.js → p-28152f8e.entry.js} +2 -2
- package/dist/paperless/{p-309acb82.entry.js → p-35b71004.entry.js} +2 -2
- package/dist/{build/p-732ca4f2.entry.js → paperless/p-427ef39b.entry.js} +2 -2
- package/dist/paperless/{p-14a0aea4.entry.js → p-456a3099.entry.js} +2 -2
- package/dist/{build/p-2c5884c2.entry.js → paperless/p-51b09be2.entry.js} +2 -2
- package/dist/{build/p-8a1b3aa7.entry.js → paperless/p-57acc6a7.entry.js} +2 -2
- package/dist/paperless/{p-9a4399ee.entry.js → p-58efc94c.entry.js} +2 -2
- package/dist/paperless/{p-03fc8193.entry.js → p-5dcdb2d0.entry.js} +2 -2
- package/dist/paperless/{p-25272030.entry.js → p-635f36c7.entry.js} +2 -2
- package/dist/paperless/{p-acf15cc8.entry.js → p-68b2471e.entry.js} +2 -2
- package/dist/paperless/p-70de0ecc.entry.js +2 -0
- package/dist/{build/p-947cb68e.entry.js → paperless/p-7b7366dc.entry.js} +2 -2
- package/dist/paperless/{p-bacbbe41.entry.js → p-861e6352.entry.js} +2 -2
- package/dist/paperless/{p-de7a4100.entry.js → p-899f7d36.entry.js} +2 -2
- package/dist/paperless/p-98c5649d.entry.js +2 -0
- package/dist/paperless/p-98c5649d.entry.js.map +1 -0
- package/dist/{build/p-d0644e30.entry.js → paperless/p-9c71c64d.entry.js} +2 -2
- package/dist/paperless/{p-422dfb3b.entry.js → p-9d23879b.entry.js} +2 -2
- package/dist/paperless/{p-e86f15a1.entry.js → p-9ef541e4.entry.js} +2 -2
- package/dist/paperless/{p-2930452d.entry.js → p-a6c618fb.entry.js} +2 -2
- package/dist/{build/p-3fcfcc66.entry.js → paperless/p-a8f60c0c.entry.js} +2 -2
- package/dist/{build/p-d6f6b10c.entry.js → paperless/p-acc528bf.entry.js} +2 -2
- package/dist/paperless/{p-41bf19a1.entry.js → p-b8797794.entry.js} +2 -2
- package/dist/paperless/{p-da2e0d56.entry.js → p-c2721d00.entry.js} +2 -2
- package/dist/{build/p-6b376f94.entry.js → paperless/p-c7c3d389.entry.js} +2 -2
- package/dist/paperless/{p-e89ae562.entry.js → p-d0ba9cdd.entry.js} +2 -2
- package/dist/{build/p-53b152c3.entry.js → paperless/p-d5cba5af.entry.js} +2 -2
- package/dist/paperless/p-d6e8bf36.entry.js +2 -0
- package/dist/paperless/{p-24dac9f4.entry.js → p-df4bda2d.entry.js} +2 -2
- package/dist/paperless/p-drawer-body.p-drawer-container.p-drawer-header.entry.esm.js.map +1 -1
- package/dist/paperless/p-drawer.entry.esm.js.map +1 -1
- package/dist/paperless/p-e2ee74a9.entry.js +2 -0
- package/dist/{build/p-c66a0ecd.entry.js → paperless/p-f12a4759.entry.js} +2 -2
- package/dist/{build/p-a4714075.entry.js → paperless/p-f4c0923b.entry.js} +2 -2
- package/dist/paperless/{p-273e9f17.entry.js → p-f9efc1e5.entry.js} +2 -2
- package/dist/paperless/p-fe892a0f.entry.js +2 -0
- package/dist/paperless/p-fe892a0f.entry.js.map +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/atoms/drawer/body/drawer-body.component.d.ts +3 -0
- package/dist/types/components/{deprecated/atoms → atoms}/drawer/container/drawer-container.component.d.ts +1 -1
- package/dist/types/components/{deprecated/atoms → atoms}/drawer/header/drawer-header.component.d.ts +2 -2
- package/dist/types/components/{deprecated/organisms → organisms}/drawer/drawer.component.d.ts +2 -1
- package/dist/types/components.d.ts +0 -8
- package/package.json +1 -1
- package/dist/build/p-10f4dd8f.entry.js +0 -2
- package/dist/build/p-15228677.entry.js +0 -2
- package/dist/build/p-15228677.entry.js.map +0 -1
- package/dist/build/p-370caa9a.entry.js +0 -2
- package/dist/build/p-3c7fbac4.entry.js +0 -2
- package/dist/build/p-5a7996c2.entry.js +0 -2
- package/dist/build/p-5a7996c2.entry.js.map +0 -1
- package/dist/build/p-66409ba4.entry.js +0 -2
- package/dist/build/p-7018d7cf.entry.js +0 -2
- package/dist/collection/components/deprecated/atoms/drawer/body/drawer-body.component.css +0 -1
- package/dist/collection/components/deprecated/atoms/drawer/body/drawer-body.component.js +0 -47
- package/dist/collection/components/deprecated/atoms/drawer/body/drawer-body.component.js.map +0 -1
- package/dist/collection/components/deprecated/atoms/drawer/container/drawer-container.component.css +0 -1
- package/dist/collection/components/deprecated/atoms/drawer/container/drawer-container.component.js.map +0 -1
- package/dist/collection/components/deprecated/atoms/drawer/header/drawer-header.component.css +0 -1
- package/dist/collection/components/deprecated/atoms/drawer/header/drawer-header.component.js.map +0 -1
- package/dist/collection/components/deprecated/organisms/drawer/drawer.component.css +0 -1
- package/dist/collection/components/deprecated/organisms/drawer/drawer.component.js.map +0 -1
- package/dist/components/p-C-AhTmKm.js +0 -40
- package/dist/components/p-C-AhTmKm.js.map +0 -1
- package/dist/components/p-DTgWKZ3Y.js +0 -39
- package/dist/components/p-DTgWKZ3Y.js.map +0 -1
- package/dist/components/p-zJ1HDy_d.js +0 -63
- package/dist/components/p-zJ1HDy_d.js.map +0 -1
- package/dist/paperless/p-10f4dd8f.entry.js +0 -2
- package/dist/paperless/p-15228677.entry.js +0 -2
- package/dist/paperless/p-15228677.entry.js.map +0 -1
- package/dist/paperless/p-370caa9a.entry.js +0 -2
- package/dist/paperless/p-3c7fbac4.entry.js +0 -2
- package/dist/paperless/p-5a7996c2.entry.js +0 -2
- package/dist/paperless/p-5a7996c2.entry.js.map +0 -1
- package/dist/paperless/p-66409ba4.entry.js +0 -2
- package/dist/paperless/p-7018d7cf.entry.js +0 -2
- package/dist/types/components/deprecated/atoms/drawer/body/drawer-body.component.d.ts +0 -7
- /package/dist/build/{p-10f4dd8f.entry.js.map → p-0a6b03d0.entry.js.map} +0 -0
- /package/dist/build/{p-73288f5a.entry.js.map → p-0a6e3e6f.entry.js.map} +0 -0
- /package/dist/build/{p-3c7fbac4.entry.js.map → p-0b6db18f.entry.js.map} +0 -0
- /package/dist/build/{p-9e049ea2.entry.js.map → p-0dc168c5.entry.js.map} +0 -0
- /package/dist/build/{p-9b76e79f.entry.js.map → p-13b16981.entry.js.map} +0 -0
- /package/dist/build/{p-46e8c0f4.entry.js.map → p-2046bbbd.entry.js.map} +0 -0
- /package/dist/build/{p-6786c387.entry.js.map → p-21d80bbe.entry.js.map} +0 -0
- /package/dist/build/{p-44c00c66.entry.js.map → p-222abd40.entry.js.map} +0 -0
- /package/dist/build/{p-73baed16.entry.js.map → p-26491670.entry.js.map} +0 -0
- /package/dist/build/{p-ba8f7d4a.entry.js.map → p-28152f8e.entry.js.map} +0 -0
- /package/dist/build/{p-309acb82.entry.js.map → p-35b71004.entry.js.map} +0 -0
- /package/dist/build/{p-732ca4f2.entry.js.map → p-427ef39b.entry.js.map} +0 -0
- /package/dist/build/{p-14a0aea4.entry.js.map → p-456a3099.entry.js.map} +0 -0
- /package/dist/build/{p-2c5884c2.entry.js.map → p-51b09be2.entry.js.map} +0 -0
- /package/dist/build/{p-8a1b3aa7.entry.js.map → p-57acc6a7.entry.js.map} +0 -0
- /package/dist/build/{p-9a4399ee.entry.js.map → p-58efc94c.entry.js.map} +0 -0
- /package/dist/build/{p-03fc8193.entry.js.map → p-5dcdb2d0.entry.js.map} +0 -0
- /package/dist/build/{p-25272030.entry.js.map → p-635f36c7.entry.js.map} +0 -0
- /package/dist/build/{p-acf15cc8.entry.js.map → p-68b2471e.entry.js.map} +0 -0
- /package/dist/build/{p-66409ba4.entry.js.map → p-70de0ecc.entry.js.map} +0 -0
- /package/dist/build/{p-947cb68e.entry.js.map → p-7b7366dc.entry.js.map} +0 -0
- /package/dist/build/{p-bacbbe41.entry.js.map → p-861e6352.entry.js.map} +0 -0
- /package/dist/build/{p-de7a4100.entry.js.map → p-899f7d36.entry.js.map} +0 -0
- /package/dist/build/{p-d0644e30.entry.js.map → p-9c71c64d.entry.js.map} +0 -0
- /package/dist/build/{p-422dfb3b.entry.js.map → p-9d23879b.entry.js.map} +0 -0
- /package/dist/build/{p-e86f15a1.entry.js.map → p-9ef541e4.entry.js.map} +0 -0
- /package/dist/build/{p-2930452d.entry.js.map → p-a6c618fb.entry.js.map} +0 -0
- /package/dist/build/{p-3fcfcc66.entry.js.map → p-a8f60c0c.entry.js.map} +0 -0
- /package/dist/build/{p-d6f6b10c.entry.js.map → p-acc528bf.entry.js.map} +0 -0
- /package/dist/build/{p-41bf19a1.entry.js.map → p-b8797794.entry.js.map} +0 -0
- /package/dist/build/{p-da2e0d56.entry.js.map → p-c2721d00.entry.js.map} +0 -0
- /package/dist/build/{p-6b376f94.entry.js.map → p-c7c3d389.entry.js.map} +0 -0
- /package/dist/build/{p-e89ae562.entry.js.map → p-d0ba9cdd.entry.js.map} +0 -0
- /package/dist/build/{p-53b152c3.entry.js.map → p-d5cba5af.entry.js.map} +0 -0
- /package/dist/build/{p-370caa9a.entry.js.map → p-d6e8bf36.entry.js.map} +0 -0
- /package/dist/build/{p-24dac9f4.entry.js.map → p-df4bda2d.entry.js.map} +0 -0
- /package/dist/build/{p-7018d7cf.entry.js.map → p-e2ee74a9.entry.js.map} +0 -0
- /package/dist/build/{p-c66a0ecd.entry.js.map → p-f12a4759.entry.js.map} +0 -0
- /package/dist/build/{p-a4714075.entry.js.map → p-f4c0923b.entry.js.map} +0 -0
- /package/dist/build/{p-273e9f17.entry.js.map → p-f9efc1e5.entry.js.map} +0 -0
- /package/dist/paperless/{p-10f4dd8f.entry.js.map → p-0a6b03d0.entry.js.map} +0 -0
- /package/dist/paperless/{p-73288f5a.entry.js.map → p-0a6e3e6f.entry.js.map} +0 -0
- /package/dist/paperless/{p-3c7fbac4.entry.js.map → p-0b6db18f.entry.js.map} +0 -0
- /package/dist/paperless/{p-9e049ea2.entry.js.map → p-0dc168c5.entry.js.map} +0 -0
- /package/dist/paperless/{p-9b76e79f.entry.js.map → p-13b16981.entry.js.map} +0 -0
- /package/dist/paperless/{p-46e8c0f4.entry.js.map → p-2046bbbd.entry.js.map} +0 -0
- /package/dist/paperless/{p-6786c387.entry.js.map → p-21d80bbe.entry.js.map} +0 -0
- /package/dist/paperless/{p-44c00c66.entry.js.map → p-222abd40.entry.js.map} +0 -0
- /package/dist/paperless/{p-73baed16.entry.js.map → p-26491670.entry.js.map} +0 -0
- /package/dist/paperless/{p-ba8f7d4a.entry.js.map → p-28152f8e.entry.js.map} +0 -0
- /package/dist/paperless/{p-309acb82.entry.js.map → p-35b71004.entry.js.map} +0 -0
- /package/dist/paperless/{p-732ca4f2.entry.js.map → p-427ef39b.entry.js.map} +0 -0
- /package/dist/paperless/{p-14a0aea4.entry.js.map → p-456a3099.entry.js.map} +0 -0
- /package/dist/paperless/{p-2c5884c2.entry.js.map → p-51b09be2.entry.js.map} +0 -0
- /package/dist/paperless/{p-8a1b3aa7.entry.js.map → p-57acc6a7.entry.js.map} +0 -0
- /package/dist/paperless/{p-9a4399ee.entry.js.map → p-58efc94c.entry.js.map} +0 -0
- /package/dist/paperless/{p-03fc8193.entry.js.map → p-5dcdb2d0.entry.js.map} +0 -0
- /package/dist/paperless/{p-25272030.entry.js.map → p-635f36c7.entry.js.map} +0 -0
- /package/dist/paperless/{p-acf15cc8.entry.js.map → p-68b2471e.entry.js.map} +0 -0
- /package/dist/paperless/{p-66409ba4.entry.js.map → p-70de0ecc.entry.js.map} +0 -0
- /package/dist/paperless/{p-947cb68e.entry.js.map → p-7b7366dc.entry.js.map} +0 -0
- /package/dist/paperless/{p-bacbbe41.entry.js.map → p-861e6352.entry.js.map} +0 -0
- /package/dist/paperless/{p-de7a4100.entry.js.map → p-899f7d36.entry.js.map} +0 -0
- /package/dist/paperless/{p-d0644e30.entry.js.map → p-9c71c64d.entry.js.map} +0 -0
- /package/dist/paperless/{p-422dfb3b.entry.js.map → p-9d23879b.entry.js.map} +0 -0
- /package/dist/paperless/{p-e86f15a1.entry.js.map → p-9ef541e4.entry.js.map} +0 -0
- /package/dist/paperless/{p-2930452d.entry.js.map → p-a6c618fb.entry.js.map} +0 -0
- /package/dist/paperless/{p-3fcfcc66.entry.js.map → p-a8f60c0c.entry.js.map} +0 -0
- /package/dist/paperless/{p-d6f6b10c.entry.js.map → p-acc528bf.entry.js.map} +0 -0
- /package/dist/paperless/{p-41bf19a1.entry.js.map → p-b8797794.entry.js.map} +0 -0
- /package/dist/paperless/{p-da2e0d56.entry.js.map → p-c2721d00.entry.js.map} +0 -0
- /package/dist/paperless/{p-6b376f94.entry.js.map → p-c7c3d389.entry.js.map} +0 -0
- /package/dist/paperless/{p-e89ae562.entry.js.map → p-d0ba9cdd.entry.js.map} +0 -0
- /package/dist/paperless/{p-53b152c3.entry.js.map → p-d5cba5af.entry.js.map} +0 -0
- /package/dist/paperless/{p-370caa9a.entry.js.map → p-d6e8bf36.entry.js.map} +0 -0
- /package/dist/paperless/{p-24dac9f4.entry.js.map → p-df4bda2d.entry.js.map} +0 -0
- /package/dist/paperless/{p-7018d7cf.entry.js.map → p-e2ee74a9.entry.js.map} +0 -0
- /package/dist/paperless/{p-c66a0ecd.entry.js.map → p-f12a4759.entry.js.map} +0 -0
- /package/dist/paperless/{p-a4714075.entry.js.map → p-f4c0923b.entry.js.map} +0 -0
- /package/dist/paperless/{p-273e9f17.entry.js.map → p-f9efc1e5.entry.js.map} +0 -0
|
@@ -12,7 +12,7 @@ export class ButtonGroup {
|
|
|
12
12
|
this._checkButtons();
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'd27b0832ddb1678f9f35500398177049bcf9915e', class: 'p-button-group flex items-center' }, h("slot", { key: 'de335121f7ede61018901f603cc379056ffd919c' })));
|
|
16
16
|
}
|
|
17
17
|
slotchange() {
|
|
18
18
|
this._checkButtons();
|
|
@@ -157,7 +157,7 @@ export class Calendar {
|
|
|
157
157
|
.filter(date => isValid(date));
|
|
158
158
|
}
|
|
159
159
|
render() {
|
|
160
|
-
return (h(Host, { key: '
|
|
160
|
+
return (h(Host, { key: 'cd2f5ee5ccb2bcfc324a06b9b2248e816702c9d5', class: calendar({ variant: this.variant }) }, this._getView()));
|
|
161
161
|
}
|
|
162
162
|
_getView() {
|
|
163
163
|
if (this._view === 'year') {
|
|
@@ -189,9 +189,9 @@ export class Datepicker {
|
|
|
189
189
|
this.parseValue(this.value);
|
|
190
190
|
}
|
|
191
191
|
render() {
|
|
192
|
-
return (h(Host, { key: '
|
|
192
|
+
return (h(Host, { key: '81eb937a8e8db269231f5d4a25c15ee7686e0a12', class: 'p-datepicker' }, h("p-dropdown", { key: 'c625bbd563e50d0905294425e14b11c3b645fafc', strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, h("p-field", { key: '9d53e0c9aa66e9f724ae5dd301737ba71ad2665e', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, loading: this.loading, helper: this.helper, required: asBoolean(this.required), error: this.error, disabled: asBoolean(this.disabled), focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: 'b9c2c2f901761a2c9511c7781e5cfebfa2619a35', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself
|
|
193
193
|
,
|
|
194
|
-
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), h("div", { key: '
|
|
194
|
+
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), h("div", { key: '4acc20f743b77fa9ed8bea3f87b9f85cf24825b7', slot: 'items' }, h("p-calendar", { key: '657e46e60e1a0662c4096677ddbc18cbcac197d2', variant: 'embedded', value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, mode: this.mode })))));
|
|
195
195
|
}
|
|
196
196
|
documentClickHandler({ target }) {
|
|
197
197
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -133,14 +133,14 @@ export class Dropdown {
|
|
|
133
133
|
'data-strategy': this.strategy,
|
|
134
134
|
};
|
|
135
135
|
let dropdownContainer;
|
|
136
|
-
const itemsSlot = h("slot", { key: '
|
|
136
|
+
const itemsSlot = h("slot", { key: '96f3997c1e97a32d6e89b5975e7901e2371d9946', name: 'items' });
|
|
137
137
|
if (this.usePortal) {
|
|
138
|
-
dropdownContainer = (h("p-portal", { key: '
|
|
138
|
+
dropdownContainer = (h("p-portal", { key: '06378b55886a476cbf48fed529d94c38dc857952', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: 'a693c09319fcd296f55734dc8f8eaf8c14bcf49f', variant: this.variant, maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, itemsSlot)));
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
141
|
-
dropdownContainer = (h("p-dropdown-menu-container", { key: '
|
|
141
|
+
dropdownContainer = (h("p-dropdown-menu-container", { key: 'e41ba82bdfa56ee1562fe2bb4f22c09f418a8563', variant: this.variant, maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, itemsSlot));
|
|
142
142
|
}
|
|
143
|
-
return (h(Host, { key: '
|
|
143
|
+
return (h(Host, { key: '15098f07b49631d9dbf1785a4043398919c2d552', class: 'p-dropdown relative' }, h("div", { key: '98fa4f33e5d8aebc04459137e60fb26c46baf86c', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: '3df896877c0b85976cb8a7601cd5c3526aa870c9', name: 'trigger' })), h("div", { key: 'c10531089fd800e214a5fdf37d54caf50a7ada08', class: 'relative w-full' }, dropdownContainer)));
|
|
144
144
|
}
|
|
145
145
|
_checkButtons(active = false) {
|
|
146
146
|
if (!this.applyChevron) {
|
|
@@ -54,11 +54,11 @@ export class EmptyState {
|
|
|
54
54
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
55
55
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
56
56
|
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
57
|
-
return (h("div", { key: '
|
|
57
|
+
return (h("div", { key: 'a1cc31c240ae4c8dab7aff0670b25d8bffc83c62', class: emptyState({
|
|
58
58
|
enableAction: asBoolean(this.enableAction, true),
|
|
59
59
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
60
60
|
? this.action.emit(ev)
|
|
61
|
-
: undefined }, this.illustration && (h("p-illustration", { key: '
|
|
61
|
+
: undefined }, this.illustration && (h("p-illustration", { key: 'b1af77e287702388404744b128036b33ad6881d6', class: 'mb-8 text-teal', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (h("p", { class: 'my-0 text-center font-ambit text-sm font-bold text-black-teal' }, this.header))), hasContentSlot ? (h("slot", { name: 'content' })) : (this.content?.length && (h("p", { class: 'my-0 text-center text-sm text-black-teal-300' }, this.content))), this.enableAction &&
|
|
62
62
|
(hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, loading: this.actionLoading, variant: this.actionVariant }, this.actionText)))));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "p-empty-state"; }
|
|
@@ -272,21 +272,21 @@ export class Field {
|
|
|
272
272
|
}
|
|
273
273
|
render() {
|
|
274
274
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
275
|
-
return (h(Host, { key: '
|
|
275
|
+
return (h(Host, { key: 'b016bc667c01de72264fed640d5e4468aebeccf5', class: 'p-field' }, h("p-field-container", { key: '941c6b3753430b0cdcd9e92e6ee62902105fcfb3', forceShowTooltip: this.forceShowTooltip || this._focused, id: id, label: this.label, loading: this.loading, loadingSize: this.size, helper: this.helper, error: this.error, required: this.required, variant: this.variant }, hasLabelSlot && (h("slot", { key: '7bdcadcb46960cc509e7293cd94b069b1d6c7d96', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '5d5e3881e387cbf1842fc95f11a29054d4dc2d45', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'b55ffb578b0dc388f659a14fcd316f6256717715', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '6a549a27212826c7cf35b9e0f6bf13a46f55aeb8', name: 'error', slot: 'error' })), h("div", { key: '7bf0e6f1ce57e6f7e14416f6bc58c07e0c0acfc0', class: field({
|
|
276
276
|
error: !!this.error?.length,
|
|
277
277
|
disabled: asBoolean(this.disabled),
|
|
278
278
|
focused: asBoolean(this.focused) || this._focused,
|
|
279
279
|
size: this.size,
|
|
280
280
|
variant: this.variant,
|
|
281
281
|
isTextarea: this.type === 'textarea',
|
|
282
|
-
}), title: this.variant === 'read' && !hasValueSlot ? this.value : undefined, slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
282
|
+
}), title: this.variant === 'read' && !hasValueSlot ? this.value : undefined, slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '73266e48a0074bd50999b82c211bf3353b724bda', class: prefixAndSuffix({
|
|
283
283
|
error: !!this.error?.length,
|
|
284
284
|
disabled: asBoolean(this.disabled),
|
|
285
285
|
focused: asBoolean(this.focused) || this._focused,
|
|
286
286
|
isText: typeof suffix === 'string',
|
|
287
287
|
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: cn('flex', {
|
|
288
288
|
'mt-[0.125rem]': this.variant === 'read' && this.size === 'base',
|
|
289
|
-
}), variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
289
|
+
}), variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '460fe559f1bb519cd3ba605d86b04481ae6aab83', class: prefixAndSuffix({
|
|
290
290
|
error: !!this.error?.length,
|
|
291
291
|
disabled: asBoolean(this.disabled),
|
|
292
292
|
focused: asBoolean(this.focused) || this._focused,
|
|
@@ -53,14 +53,14 @@ export class Label {
|
|
|
53
53
|
*/
|
|
54
54
|
keepMobileContent = false;
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '71ee68f992cfdd738f5e975c395af6f0cd847e2e', class: 'p-label' }, h("div", { key: '39bc594fa05d7b10c0fe0c3e93d0ebc515a8f666', class: label({
|
|
57
57
|
variant: this.variant,
|
|
58
58
|
iconOnly: this.iconOnly,
|
|
59
59
|
keepMobileContent: this.keepMobileContent,
|
|
60
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
60
|
+
}) }, this.icon && (h("p-icon", { key: '29b1df63ae3678e7a935c522095f253ffeff6046', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (h("div", { key: 'f1e0bfd391b12848fc8d08efa185df9a34de6ebc', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm', {
|
|
61
61
|
hidden: !this.keepMobileContent,
|
|
62
62
|
'desktop-xs:block': !this.keepMobileContent,
|
|
63
|
-
}) }, h("slot", { key: '
|
|
63
|
+
}) }, h("slot", { key: '59bf2918ed512d0873b23955f35fedbc7c72340a' }))))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "p-label"; }
|
|
66
66
|
static get encapsulation() { return "shadow"; }
|
|
@@ -66,10 +66,10 @@ export class NavigationItem {
|
|
|
66
66
|
render() {
|
|
67
67
|
const TagType = this.as;
|
|
68
68
|
const active = asBoolean(this.active) || this.class?.includes('active');
|
|
69
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: '7ff5ea7bb9efd2e81050abf41b27d0be3794133b', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: 'b6ce8c6b8d2a7e61bd37ad7fb94b4442c251afa0', class: navigationItem({
|
|
70
70
|
icon: !!this.icon,
|
|
71
71
|
active,
|
|
72
|
-
}), href: this.href, target: this.target }, h("div", { key: '
|
|
72
|
+
}), href: this.href, target: this.target }, h("div", { key: '753aaf2cd3a0fc728557c296c54e154ab14f3059', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '58e57b38f913e95971b6fb56492e7a568bd69622', variant: this.icon })), h("span", { key: 'eccac44f523ad489977ee25bfad972fb19703bae', class: this.counter && 'has-counter' }, h("slot", { key: '2659769537c022e51aa3a223e1f57638dbe66274' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '7077e0e0a9891e7f486231a97da2100e331d938e' }, this.counter)), !!this.loading && h("p-loader", { key: '14e7a7ddc195707cfd50a71f488938dd3a7e2a32', class: 'ml-auto' }))));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "p-navigation-item"; }
|
|
75
75
|
static get originalStyleUrls() {
|
package/dist/collection/components/molecules/navigation/section/navigation-section.component.js
CHANGED
|
@@ -5,7 +5,7 @@ export class NavigationSection {
|
|
|
5
5
|
*/
|
|
6
6
|
header;
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '2d6be2c8ff3ded760dfa38814d41798e34e668bd', class: 'p-navigation-section flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '811de7004feeb785fb30bdff062e150c1733bc0f' }, this.header)), h("div", { key: '97c9e1701288c4a4e56205800eafc0638ef5252c', class: 'flex flex-col' }, h("slot", { key: '5a11e97a2c4c38393c625e626665572aea79d106' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "p-navigation-section"; }
|
|
11
11
|
static get originalStyleUrls() {
|
|
@@ -39,7 +39,7 @@ export class PaginationPages {
|
|
|
39
39
|
this._generate();
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'aa9a4c8d7f790b4ff6ed8b662581e3202f2b1d71', class: pagination({
|
|
43
43
|
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
44
44
|
}) }, this._set?.map(p => {
|
|
45
45
|
if (p.type === 'previous' || p.type === 'next') {
|
|
@@ -59,12 +59,12 @@ export class Pagination {
|
|
|
59
59
|
_hasPaginationPages = true;
|
|
60
60
|
render() {
|
|
61
61
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '8fb151e74ca287270170b26ab6dbf4e7b82b8b55', class: pagination({
|
|
63
63
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
64
64
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
65
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '
|
|
65
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '9ca0d1e33dcd8b24754b232e52802a644a1b5b81' }, h("p-pagination-size", { key: '1117e9c5fe76898f0f2a81070ea46c7ac49049fe', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
66
66
|
this.hideOnSinglePage &&
|
|
67
|
-
this._hasPaginationPages && (h("p-divider", { key: '
|
|
67
|
+
this._hasPaginationPages && (h("p-divider", { key: 'af3262c8af7bf18f90358eafb22271675535e924', variant: 'vertical', class: 'mx-0 h-4 text-human-beige-700' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: 'd95fb3064e3c7156d9ee515c37038359f68be37b', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
|
|
68
68
|
this._hasPaginationPages = detail > 1;
|
|
69
69
|
this.pagesChange.emit(detail);
|
|
70
70
|
} }))));
|
|
@@ -282,7 +282,7 @@ export class Select {
|
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
render() {
|
|
285
|
-
return (h("p-dropdown", { key: '
|
|
285
|
+
return (h("p-dropdown", { key: 'd75c32e8830d0d2c33e3fee1835079b5b959485a', disableTriggerClick: true, calculateWidth: true, insideClick: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev), usePortal: this.usePortal, strategy: this.strategy }, h("p-field-container", { key: '256fbe72c653fda4c890d39dbd2cdbfb5b3a1163', slot: 'trigger', variant: 'write', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, errorPlacement: 'top-start', forceShowTooltip: this.error?.length && this._showDropdown }, h("p-button", { key: '791f446440511f2768c5199c0853775e1baa17f8', class: 'w-full', slot: 'content', variant: 'secondary', size: this.size, chevron: this.showChevron, disabled: this.disabled, active: this._showDropdown, icon: this.icon, onClick: ev => this._onClick(ev) }, h("div", { key: '96f3a59c66cbd21b82d18ac6ee471cd026da47b2', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue))), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()));
|
|
286
286
|
}
|
|
287
287
|
documentClickHandler(event) {
|
|
288
288
|
if (!this._showDropdown || childOfComposed(event, this._el)) {
|
|
@@ -105,7 +105,7 @@ export class TableCell {
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
render() {
|
|
108
|
-
return (h(Host, { key: '
|
|
108
|
+
return (h(Host, { key: '38c0e403da7999fd01ba95cfc6df49fc647685f7', class: this._getColumnClasses() }, this.checkbox, this._getContent()));
|
|
109
109
|
}
|
|
110
110
|
_getContent() {
|
|
111
111
|
if (this.variant === 'loading') {
|
|
@@ -86,11 +86,11 @@ export class TableFooter {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return (h("div", { key: '
|
|
89
|
+
return (h("div", { key: '9f23c7ef7d4e71ab6692aa295b5e7704fa34df4e', class: footer({
|
|
90
90
|
pinned: this._isPinned,
|
|
91
91
|
hidden: this._hidden,
|
|
92
92
|
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
93
|
-
this.total > 0 && (h("p-pagination", { key: '
|
|
93
|
+
this.total > 0 && (h("p-pagination", { key: '1f2bb252d80b9ac79cdf6a362c9bfa851af45d3a', class: 'z-[2]', enablePaginationSize: this.enablePaginationSize, enablePaginationPages: this.enablePaginationPages, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, onPageSizeChange: ({ detail }) => this._changePageSize(detail), page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), total: this.total, onPagesChange: ({ detail }) => (this._hasPaginationPages = detail > 1) }))));
|
|
94
94
|
}
|
|
95
95
|
_changePageSize(s) {
|
|
96
96
|
if (!s) {
|
|
@@ -46,12 +46,12 @@ export class TableRow {
|
|
|
46
46
|
*/
|
|
47
47
|
enableHover = true;
|
|
48
48
|
render() {
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: '9bfd1509d1dd345215f61d6b7886cfb8a255d5db', class: 'flex flex-col' }, h("div", { key: '3364b244152540e4351450611e6898f37daa73a5', class: row({
|
|
50
50
|
variant: this.variant,
|
|
51
51
|
enableHover: this.enableHover,
|
|
52
|
-
}) }, h("div", { key: '
|
|
52
|
+
}) }, h("div", { key: 'e33f5810f48b92abbb7a5150863b205163d892ff', class: content({
|
|
53
53
|
variant: this.variant,
|
|
54
|
-
}) }, h("slot", { key: '
|
|
54
|
+
}) }, h("slot", { key: 'a8cb2fe679b9a681c5b6907155f5106d6744d4bf' }), h("div", { key: 'aed45dd92d81880717fd3d8046e4a0e18d4992d8', class: actions() }, h("slot", { key: 'dfd6864b51280782fca7877bc4b8d0748fc3fa9d', name: 'actions' })))), h("p-divider", { key: '423afd77506022eb33931d46ab3fe2a458c31f1b' })));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "p-table-row"; }
|
|
57
57
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,7 +48,7 @@ export class Toast {
|
|
|
48
48
|
*/
|
|
49
49
|
action;
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '73ebbcb118986b98f27bd80de6dba339e46886ca', onClick: () => this._onClick() }, h("div", { key: '946fb8b74dea9eafdc92ffcc065fe93cc1ccf924', class: indicator({ variant: this.variant }) }), h("div", { key: 'ca1a1c3611699c4afefbf44d3434389a2817b9f3', class: content() }, h("div", { key: '8e4311c973300c743c9311738d44876628cf50dd', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '9ea9e91fd13d16f82bb4e561b09385863dd371c9', class: 'm-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-white-500' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: '017efb88e26742336598561564b2519a0bc0e2ac', class: 'm-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs text-dark-teal-200' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("p-button", { key: '09b9c7cdb4aaf2674666c28a99284693544c9c7b', variant: 'transparent', iconOnly: true, icon: this.actionIcon, iconFlip: this.actionIconFlip, iconRotate: this.actionIconRotate, class: 'flex-shrink-0' })))));
|
|
52
52
|
}
|
|
53
53
|
_onClick() {
|
|
54
54
|
if (this.enableAction) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*{box-sizing:border-box}.static{position:static!important}.blur{--tw-blur:blur(8px)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}
|
package/dist/collection/components/{deprecated/organisms → organisms}/drawer/drawer.component.js
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h,
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
2
|
export class Drawer {
|
|
3
3
|
/**
|
|
4
4
|
* The Header of the drawer
|
|
@@ -51,16 +51,32 @@ export class Drawer {
|
|
|
51
51
|
}
|
|
52
52
|
const headerContent = h("slot", { name: "header" });
|
|
53
53
|
const bodyContent = h("slot", { name: "content" });
|
|
54
|
-
return (h(
|
|
54
|
+
return (h("p-backdrop", { variant: "drawer", applyBlur: this.applyBlur, onClicked: (ev) => this._backdropClick(ev.detail), closing: this._closing, scrollLock: this.scrollLock }, h("p-drawer-container", { closing: this._closing }, (this.header?.length || this._hasHeaderSlot) && (h("p-drawer-header", { "show-close": this.showClose, onClose: (ev) => this.close(ev.detail, 'close') }, this._hasHeaderSlot
|
|
55
55
|
? headerContent
|
|
56
|
-
: this.header)), h("p-drawer-body", null, bodyContent))))
|
|
56
|
+
: this.header)), h("p-drawer-body", null, bodyContent))));
|
|
57
57
|
}
|
|
58
58
|
_backdropClick(ev) {
|
|
59
59
|
if (!this.backdropClickClose) {
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
+
const modal = this._findDrawer(ev.target);
|
|
63
|
+
if (modal) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
62
66
|
this.close(ev, 'backdrop');
|
|
63
67
|
}
|
|
68
|
+
_findDrawer(el) {
|
|
69
|
+
if (!el) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
if (el.nodeName.toLowerCase() === 'p-drawer-container') {
|
|
73
|
+
return el;
|
|
74
|
+
}
|
|
75
|
+
if (el?.tagName?.toLowerCase() === 'p-drawer') {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
return this._findDrawer(el?.parentElement);
|
|
79
|
+
}
|
|
64
80
|
close(ev, source = 'unknown', force = false) {
|
|
65
81
|
if (!force) {
|
|
66
82
|
this.closeClicked.emit({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.component.js","sourceRoot":"","sources":["../../../../src/components/organisms/drawer/drawer.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,S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C,QAAQ;gBACjB,MAAM;aACZ,CAAC,CAAC;YAEH,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACpB,OAAO;YACR,CAAC;QACF,CAAC;QAED,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QAErB,UAAU,CAAC,GAAG,EAAE;YACf,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;YAClB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;YACtB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;IAGD,iBAAiB;QAChB,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3B,CAAC;IAGD,sBAAsB;QACrB,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACjC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\n\n@Component({ tag: 'p-drawer',\n\tstyleUrl: 'drawer.component.scss',\n\tshadow: true,\n})\nexport class Drawer {\n\t/**\n\t * The Header of the drawer\n\t */\n\t@Prop() header?: string;\n\n\t/**\n\t * Wether to show the drawer or not\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to apply blur to the backdrop\n\t */\n\t@Prop() applyBlur: boolean = false;\n\n\t/**\n\t * Wether to show the close on mobile in the header\n\t */\n\t@Prop() showClose = true;\n\n\t/**\n\t * Wether to hide the drawer when the backdrop is clicked\n\t */\n\t@Prop() backdropClickClose = true;\n\n\t/**\n\t * Wether the drawer can be closed\n\t */\n\t@Prop() canClose: boolean = true;\n\n\t/**\n\t * Wether we should scroll lock the body\n\t */\n\t@Prop() scrollLock: boolean = true;\n\n\t/**\n\t * Close click event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tcloseClicked: EventEmitter<{\n\t\tevent: MouseEvent;\n\t\tcanClose: boolean;\n source: 'unknown' | 'backdrop' | 'close' | 'event'\n\t}>;\n\n\t/**\n\t * Closed event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tclosed: EventEmitter<null>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasHeaderSlot = false;\n\n\t@State() private _closing = false;\n\n\tcomponentWillLoad() {\n\t\tthis._hasHeaderSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"header\"]'\n\t\t);\n\t}\n\n\trender() {\n\t\tif (!this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst headerContent = <slot name=\"header\" />;\n\t\tconst bodyContent = <slot name=\"content\" />;\n\n\t\treturn (\n\t\t\t\t<p-backdrop\n\t\t\t\t\tvariant=\"drawer\"\n\t\t\t\t\tapplyBlur={this.applyBlur}\n\t\t\t\t\tonClicked={(ev) => this._backdropClick(ev.detail)}\n\t\t\t\t\tclosing={this._closing}\n\t\t\t\t\tscrollLock={this.scrollLock}\n\t\t\t\t>\n\t\t\t\t\t<p-drawer-container closing={this._closing}>\n\t\t\t\t\t\t{(this.header?.length || this._hasHeaderSlot) && (\n\t\t\t\t\t\t\t<p-drawer-header\n\t\t\t\t\t\t\t\tshow-close={this.showClose}\n\t\t\t\t\t\t\t\tonClose={(ev) => this.close(ev.detail, 'close')}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this._hasHeaderSlot\n\t\t\t\t\t\t\t\t\t? headerContent\n\t\t\t\t\t\t\t\t\t: this.header}\n\t\t\t\t\t\t\t</p-drawer-header>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<p-drawer-body>{bodyContent}</p-drawer-body>\n\t\t\t\t\t</p-drawer-container>\n\t\t\t\t</p-backdrop>\n\t\t);\n\t}\n\n\tprivate _backdropClick(ev: MouseEvent) {\n\t\tif (!this.backdropClickClose) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst modal = this._findDrawer(ev.target as HTMLElement);\n\t\tif (modal) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.close(ev, 'backdrop');\n\t}\n\n\tprivate _findDrawer(el: HTMLElement | null): any {\n\t\tif (!el) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (el.nodeName.toLowerCase() === 'p-drawer-container') {\n\t\t\treturn el;\n\t\t}\n\n\t\tif (el?.tagName?.toLowerCase() === 'p-drawer') {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn this._findDrawer(el?.parentElement);\n\t}\n\n\tpublic close(ev?: MouseEvent, source: 'unknown' | 'backdrop' | 'close' | 'event' = 'unknown', force = false) {\n\t\tif (!force) {\n\t\t\tthis.closeClicked.emit({\n\t\t\t\tevent: ev,\n\t\t\t\tcanClose: this.canClose,\n \t\tsource\n\t\t\t});\n\n\t\t\tif (!this.canClose) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tthis._closing = true;\n\n\t\tsetTimeout(() => {\n\t\t\tthis.show = false;\n\t\t\tthis._closing = false;\n\t\t\tthis.closed.emit();\n\t\t}, 250);\n\t}\n\n\t@Listen('closeDrawer', { target: 'window' })\n\thandleCloseDrawer() {\n\t\tthis.close(null, 'event');\n\t}\n\n\t@Listen('forceCloseDrawer', { target: 'window' })\n\thandleForceCloseDrawer() {\n\t\tthis.close(null, 'event', true);\n\t}\n}\n"]}
|
|
@@ -42,7 +42,7 @@ const backdrop = cva(['z-navbar-backdrop layout-1280:hidden transition-opacity r
|
|
|
42
42
|
export class Navbar {
|
|
43
43
|
_show = false;
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '2454198616a89f6ee5be80b5015bb425a43ac1ab' }, h("p-backdrop", { key: 'edf555a9998bbe29bc6d23bb8062d2cd91a40526', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: 'f1d5ee815ca333b61adb42f47e1af62f34f81c55', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: '92079830ab45b054c49ef1d96dce3bdba16317fe', class: 'flex w-full items-center justify-between layout-1280:hidden' }, h("p-button", { key: '94bbb8bb5bd84e680bc1a19c94c600b96e624fbb', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, size: 'sm', onClick: () => (this._show = false) })), h("div", { key: '84d7b951268841ddf4afc597a95b3d7107966dc7', class: 'flex w-full flex-col items-stretch' }, h("slot", { key: 'fd5289de2edbdcfc1daeb91bea5eaf3b17939942', name: 'company' })), h("div", { key: 'dc521460a54752e679cbecb96f723ed91e919ab9', class: 'flex w-full flex-col gap-6 overflow-y-auto' }, h("slot", { key: 'c215321feb35149589a7475b7df960d357016aa1', name: 'content' })), h("div", { key: '5d67060818c2cfbbebe75392db6f6402fd17a7ef', class: 'mt-auto hidden w-full flex-col layout-1280:flex' }, h("slot", { key: '727ffeb55bf2cfc51b43727240ae48ecc285b82b', name: 'user' }))), h("div", { key: '5e9c20cd0d7ed4badced9d4d276c02b872dbb878', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: '5aef208e1bc4ebca99102e3af6cf776481bf5a30', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', size: 'sm', onClick: () => (this._show = true) }), h("slot", { key: 'bcf56977ccd76fcdca4bb32d02969f08005826e7', name: 'topbar' }))));
|
|
46
46
|
}
|
|
47
47
|
handleCloseNavbar() {
|
|
48
48
|
this._show = false;
|
|
@@ -2,11 +2,11 @@ import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Ho
|
|
|
2
2
|
import { f as formatTranslation, g as getLocaleComponentStrings } from './p-DiJj8rmO.js';
|
|
3
3
|
import { c as cva } from './p-4hDfHOnN.js';
|
|
4
4
|
import { a as asBoolean } from './p-C5CTp9IA.js';
|
|
5
|
-
import { d as defineCustomElement$5 } from './p-
|
|
5
|
+
import { d as defineCustomElement$5 } from './p-8rB2Q4yP.js';
|
|
6
6
|
import { d as defineCustomElement$4 } from './p-CQcp92mr.js';
|
|
7
7
|
import { d as defineCustomElement$3 } from './p-D8NwpELS.js';
|
|
8
|
-
import { d as defineCustomElement$2 } from './p-
|
|
9
|
-
import { d as defineCustomElement$1 } from './p-
|
|
8
|
+
import { d as defineCustomElement$2 } from './p-BUxcWSGM.js';
|
|
9
|
+
import { d as defineCustomElement$1 } from './p-CmfFRlg6.js';
|
|
10
10
|
|
|
11
11
|
const fieldContainerComponentCss = "*{box-sizing:border-box}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.h-4{height:1rem!important}.h-5{height:1.25rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.flex-col{flex-direction:column!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.rounded-lg{border-radius:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.text-black-teal-200{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.empty\\:hidden:empty{display:none!important}";
|
|
12
12
|
|
|
@@ -191,6 +191,6 @@ function defineCustomElement() {
|
|
|
191
191
|
defineCustomElement();
|
|
192
192
|
|
|
193
193
|
export { FieldContainer as F, defineCustomElement as d };
|
|
194
|
-
//# sourceMappingURL=p-
|
|
194
|
+
//# sourceMappingURL=p-12mQxW6R.js.map
|
|
195
195
|
|
|
196
|
-
//# sourceMappingURL=p-
|
|
196
|
+
//# sourceMappingURL=p-12mQxW6R.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-CjruE70A.js","mappings":";;;;;;;;;;AAAA,MAAM,0BAA0B,GAAG,qoDAAqoD;;ACoBxqD,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;AACzC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,EAAE,EAAE,IAAI;AACR,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE;AACjB,QAAA;AACC,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AACD,QAAA;AACC,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AAED,QAAA;AACC,YAAA,OAAO,EAAE,OAAO;AAChB,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AACD,QAAA;AACC,YAAA,OAAO,EAAE,OA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EAAA,EAAA,IAAI,EAAC,QAAQ,GAAG,GAAG,IAAI,CAAC,MAAM;QACnE,MAAM,KAAK,GAAG,YAAY,GAAG,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK;QAE/D,MAAM,yBAAyB,GAC9B,YAAY;AACZ,aAAC,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC;QAExE,OAAO;YACN,aAAa;YACb,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,MAAM;YACN,KAAK;YACL,yBAAyB;SACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/field/container/field-container.component.css?tag=p-field-container&encapsulation=shadow","src/components/molecules/field/container/field-container.component.tsx"],"sourcesContent":["","import {\n\tComponent,\n\tElement,\n\tEventEmitter,\n\th,\n\tHost,\n\tEvent,\n\tProp,\n\tFragment,\n\tState,\n\tListen,\n} from '@stencil/core';\nimport {\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils';\nimport { Placement } from '@floating-ui/dom';\nimport { asBoolean } from '../../../../utils/as-boolean';\nimport { cva } from 'class-variance-authority';\n\nconst loader = cva(['rounded-lg w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: null,\n\t\t\twrite: null,\n\t\t},\n\t\tsize: {\n\t\t\tbase: null,\n\t\t\tsm: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-5',\n\t\t},\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-4',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-8',\n\t\t},\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-6',\n\t\t},\n\t],\n});\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\t/**\n\t * The id for the label\n\t */\n\t@Prop() id: string;\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field container is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The size of the loader\n\t */\n\t@Prop() loadingSize: 'base' | 'sm' = 'base';\n\n\t/**\n\t * The variant of the field container\n\t */\n\t@Prop() variant: 'read' | 'write';\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string | HTMLSlotElement;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\tlet contentSlot = (\n\t\t\t<slot\n\t\t\t\tname='content'\n\t\t\t\tslot='trigger'\n\t\t\t/>\n\t\t);\n\n\t\tif (this.loading) {\n\t\t\tcontentSlot = (\n\t\t\t\t<p-loader\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclass={loader({ variant: this.variant, size: this.loadingSize })}\n\t\t\t\t\tslot='trigger'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-field-container'>\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={this.id}\n\t\t\t\t\tclass='flex w-inherit flex-col gap-1'\n\t\t\t\t>\n\t\t\t\t\t<div class='flex items-end justify-between gap-1 empty:hidden'>\n\t\t\t\t\t\t{!!label?.length && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass='text-xs font-medium text-black-teal-300'\n\t\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{(!asBoolean(this.required) || helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t<div class='flex items-center gap-1'>\n\t\t\t\t\t\t\t\t{!asBoolean(this.required) && this.variant === 'write' && (\n\t\t\t\t\t\t\t\t\t<span class='text-xs font-medium text-black-teal-200'>\n\t\t\t\t\t\t\t\t\t\t{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\t\t\t\tclass={`flex ${hasHeaderSlot ? 'ml-2' : ''}`}\n\t\t\t\t\t\t\t\t\t\t\t\tplacement='top-end'\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\tclass={this.variant === 'write' || this.loading ? 'w-full' : ''}\n\t\t\t\t\t\tvariant='error'\n\t\t\t\t\t\tcontent={this.error}\n\t\t\t\t\t\tshow={errorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip)}\n\t\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t\t>\n\t\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{contentSlot}\n\t\t\t\t\t</p-tooltip>\n\t\t\t\t</label>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"p-12mQxW6R.js","mappings":";;;;;;;;;;AAAA,MAAM,0BAA0B,GAAG,qoDAAqoD;;ACoBxqD,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;AACzC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,EAAE,EAAE,IAAI;AACR,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE;AACjB,QAAA;AACC,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AACD,QAAA;AACC,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AAED,QAAA;AACC,YAAA,OAAO,EAAE,OAAO;AAChB,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AACD,QAAA;AACC,YAAA,OAAO,EAAE,OAAO;AAChB,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AACD,KAAA;AACD,CAAA,CAAC;MASW,cAAc,iBAAAA,kBAAA,CAAA,MAAA,cAAA,SAAAC,CAAA,CAAA;;;;;;;AAClB,IAAA,wBAAwB,GAAiB,MAChD,iBAAiB,CAAC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C,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC;QAExE,OAAO;YACN,aAAa;YACb,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,MAAM;YACN,KAAK;YACL,yBAAyB;SACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/field/container/field-container.component.css?tag=p-field-container&encapsulation=shadow","src/components/molecules/field/container/field-container.component.tsx"],"sourcesContent":["","import {\n\tComponent,\n\tElement,\n\tEventEmitter,\n\th,\n\tHost,\n\tEvent,\n\tProp,\n\tFragment,\n\tState,\n\tListen,\n} from '@stencil/core';\nimport {\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils';\nimport { Placement } from '@floating-ui/dom';\nimport { asBoolean } from '../../../../utils/as-boolean';\nimport { cva } from 'class-variance-authority';\n\nconst loader = cva(['rounded-lg w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: null,\n\t\t\twrite: null,\n\t\t},\n\t\tsize: {\n\t\t\tbase: null,\n\t\t\tsm: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-5',\n\t\t},\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-4',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-8',\n\t\t},\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-6',\n\t\t},\n\t],\n});\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\t/**\n\t * The id for the label\n\t */\n\t@Prop() id: string;\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field container is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The size of the loader\n\t */\n\t@Prop() loadingSize: 'base' | 'sm' = 'base';\n\n\t/**\n\t * The variant of the field container\n\t */\n\t@Prop() variant: 'read' | 'write';\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string | HTMLSlotElement;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\tlet contentSlot = (\n\t\t\t<slot\n\t\t\t\tname='content'\n\t\t\t\tslot='trigger'\n\t\t\t/>\n\t\t);\n\n\t\tif (this.loading) {\n\t\t\tcontentSlot = (\n\t\t\t\t<p-loader\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclass={loader({ variant: this.variant, size: this.loadingSize })}\n\t\t\t\t\tslot='trigger'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-field-container'>\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={this.id}\n\t\t\t\t\tclass='flex w-inherit flex-col gap-1'\n\t\t\t\t>\n\t\t\t\t\t<div class='flex items-end justify-between gap-1 empty:hidden'>\n\t\t\t\t\t\t{!!label?.length && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass='text-xs font-medium text-black-teal-300'\n\t\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{(!asBoolean(this.required) || helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t<div class='flex items-center gap-1'>\n\t\t\t\t\t\t\t\t{!asBoolean(this.required) && this.variant === 'write' && (\n\t\t\t\t\t\t\t\t\t<span class='text-xs font-medium text-black-teal-200'>\n\t\t\t\t\t\t\t\t\t\t{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\t\t\t\tclass={`flex ${hasHeaderSlot ? 'ml-2' : ''}`}\n\t\t\t\t\t\t\t\t\t\t\t\tplacement='top-end'\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\tclass={this.variant === 'write' || this.loading ? 'w-full' : ''}\n\t\t\t\t\t\tvariant='error'\n\t\t\t\t\t\tcontent={this.error}\n\t\t\t\t\t\tshow={errorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip)}\n\t\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t\t>\n\t\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{contentSlot}\n\t\t\t\t\t</p-tooltip>\n\t\t\t\t</label>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"],"version":3}
|
|
@@ -4,15 +4,15 @@ import { f as formatTranslation, g as getLocaleComponentStrings } from './p-DiJj
|
|
|
4
4
|
import { d as defineCustomElement$c } from './p-BEuvmIBQ.js';
|
|
5
5
|
import { d as defineCustomElement$b } from './p-N1Pv54zG.js';
|
|
6
6
|
import { d as defineCustomElement$a } from './p-CEoo55FK.js';
|
|
7
|
-
import { d as defineCustomElement$9 } from './p-
|
|
8
|
-
import { d as defineCustomElement$8 } from './p-
|
|
9
|
-
import { d as defineCustomElement$7 } from './p-
|
|
7
|
+
import { d as defineCustomElement$9 } from './p-BrtcZfOg.js';
|
|
8
|
+
import { d as defineCustomElement$8 } from './p-12mQxW6R.js';
|
|
9
|
+
import { d as defineCustomElement$7 } from './p-8rB2Q4yP.js';
|
|
10
10
|
import { d as defineCustomElement$6 } from './p-CQcp92mr.js';
|
|
11
11
|
import { d as defineCustomElement$5 } from './p-D8NwpELS.js';
|
|
12
|
-
import { d as defineCustomElement$4 } from './p-
|
|
13
|
-
import { d as defineCustomElement$3 } from './p-
|
|
14
|
-
import { d as defineCustomElement$2 } from './p-
|
|
15
|
-
import { d as defineCustomElement$1 } from './p-
|
|
12
|
+
import { d as defineCustomElement$4 } from './p-BUxcWSGM.js';
|
|
13
|
+
import { d as defineCustomElement$3 } from './p-wcD-x4l2.js';
|
|
14
|
+
import { d as defineCustomElement$2 } from './p-CFdbv-t4.js';
|
|
15
|
+
import { d as defineCustomElement$1 } from './p-CmfFRlg6.js';
|
|
16
16
|
|
|
17
17
|
var cjs = {};
|
|
18
18
|
|
|
@@ -9723,6 +9723,6 @@ function defineCustomElement() {
|
|
|
9723
9723
|
defineCustomElement();
|
|
9724
9724
|
|
|
9725
9725
|
export { TableHeader as T, defineCustomElement as d };
|
|
9726
|
-
//# sourceMappingURL=p-
|
|
9726
|
+
//# sourceMappingURL=p-4jVVUXXD.js.map
|
|
9727
9727
|
|
|
9728
|
-
//# sourceMappingURL=p-
|
|
9728
|
+
//# sourceMappingURL=p-4jVVUXXD.js.map
|