@paperless/core 2.0.1-beta.112 → 2.0.1-beta.113
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 +12 -0
- package/dist/build/{p-456a3099.entry.js → p-05791ffa.entry.js} +2 -2
- package/dist/build/{p-899f7d36.entry.js → p-0a0ef10d.entry.js} +2 -2
- package/dist/{paperless/p-9ef541e4.entry.js → build/p-0ffe0165.entry.js} +2 -2
- package/dist/build/p-11b1e718.entry.js +2 -0
- package/dist/{paperless/p-57acc6a7.entry.js.map → build/p-11b1e718.entry.js.map} +1 -1
- package/dist/build/{p-7b7366dc.entry.js → p-1bde15ae.entry.js} +2 -2
- package/dist/build/{p-4b6b1355.entry.js → p-1c9405d8.entry.js} +2 -2
- package/dist/build/{p-f82506c3.entry.js → p-21fb542a.entry.js} +2 -2
- package/dist/build/{p-0dc168c5.entry.js → p-26b75731.entry.js} +2 -2
- package/dist/build/p-3b14bbef.entry.js +2 -0
- package/dist/build/p-3cf73b2c.js +2 -0
- package/dist/{paperless/p-5dcdb2d0.entry.js → build/p-41949138.entry.js} +2 -2
- package/dist/build/{p-dae4a24d.entry.js → p-4205f7e2.entry.js} +2 -2
- package/dist/{paperless/p-26491670.entry.js → build/p-476985ba.entry.js} +2 -2
- package/dist/build/p-4c6e5337.entry.js +2 -0
- package/dist/build/p-505650b6.entry.js +2 -0
- package/dist/build/p-53e0b8a1.entry.js +2 -0
- package/dist/build/p-53e0b8a1.entry.js.map +1 -0
- package/dist/build/{p-4fb83e8d.entry.js → p-6620dc05.entry.js} +2 -2
- package/dist/{paperless/p-f4c0923b.entry.js → build/p-697c465d.entry.js} +2 -2
- package/dist/build/{p-58efc94c.entry.js → p-6cddddb7.entry.js} +2 -2
- package/dist/build/{p-74dba9db.entry.js → p-72eb70f4.entry.js} +2 -2
- package/dist/{paperless/p-a8f60c0c.entry.js → build/p-7c7e6f26.entry.js} +2 -2
- package/dist/build/{p-17ae0ec7.entry.js → p-7f4d26c4.entry.js} +2 -2
- package/dist/build/{p-4ac9e128.entry.js → p-8cc3f69f.entry.js} +2 -2
- package/dist/build/p-922fba03.entry.js +2 -0
- package/dist/{paperless/p-73bfb4b5.entry.js.map → build/p-922fba03.entry.js.map} +1 -1
- package/dist/build/p-929b47c9.entry.js +2 -0
- package/dist/build/{p-f932bde5.entry.js → p-96cb3e48.entry.js} +2 -2
- package/dist/build/p-96cd5cff.entry.js +2 -0
- package/dist/build/p-96cd5cff.entry.js.map +1 -0
- package/dist/{paperless/p-c7c3d389.entry.js → build/p-9da1d488.entry.js} +2 -2
- package/dist/{paperless/p-d5cba5af.entry.js → build/p-a3da31c4.entry.js} +2 -2
- package/dist/build/{p-d3102227.entry.js → p-adfddeb6.entry.js} +2 -2
- package/dist/build/p-b08f490b.entry.js +2 -0
- package/dist/build/p-b08f490b.entry.js.map +1 -0
- package/dist/build/p-b1b12e88.entry.js +2 -0
- package/dist/build/p-b1b12e88.entry.js.map +1 -0
- package/dist/build/{p-c62477c2.entry.js → p-bc366236.entry.js} +2 -2
- package/dist/build/p-bce08b0e.entry.js +2 -0
- package/dist/build/{p-c585d909.entry.js → p-c9c0ae8d.entry.js} +2 -2
- package/dist/build/{p-0a6e3e6f.entry.js → p-d37e0e66.entry.js} +2 -2
- package/dist/build/p-d4f4fe62.entry.js +2 -0
- package/dist/build/p-d4f4fe62.entry.js.map +1 -0
- package/dist/build/{p-f9efc1e5.entry.js → p-d894e0b1.entry.js} +2 -2
- package/dist/build/{p-222abd40.entry.js → p-df7f9328.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-7435c88e.entry.js → p-e526cd42.entry.js} +2 -2
- package/dist/{paperless/p-b8797794.entry.js → build/p-e63adc0d.entry.js} +2 -2
- package/dist/build/p-ed2e7409.entry.js +2 -0
- package/dist/build/p-fd4a25eb.entry.js +2 -0
- package/dist/build/p-fd4a25eb.entry.js.map +1 -0
- package/dist/build/p-listing-item.entry.esm.js.map +1 -0
- package/dist/build/p-listing-line.entry.esm.js.map +1 -0
- package/dist/build/p-listing.entry.esm.js.map +1 -0
- package/dist/build/p-stepper-item.entry.esm.js.map +1 -1
- package/dist/build/p-stepper-line.entry.esm.js.map +1 -1
- package/dist/build/p-stepper.entry.esm.js.map +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/index-BDuPp9vl.js +12 -0
- 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 +4 -4
- 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 +3 -3
- package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-empty-state_9.cjs.entry.js +10 -10
- package/dist/cjs/p-field_2.cjs.entry.js +3 -3
- package/dist/cjs/p-helper_2.cjs.entry.js +4 -4
- 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-listing-item.cjs.entry.js +24 -0
- package/dist/cjs/p-listing-item.cjs.entry.js.map +1 -0
- package/dist/cjs/p-listing-item.entry.cjs.js.map +1 -0
- package/dist/cjs/p-listing-line.cjs.entry.js +20 -0
- package/dist/cjs/p-listing-line.cjs.entry.js.map +1 -0
- package/dist/cjs/p-listing-line.entry.cjs.js.map +1 -0
- package/dist/cjs/p-listing.cjs.entry.js +83 -0
- package/dist/cjs/p-listing.cjs.entry.js.map +1 -0
- package/dist/cjs/p-listing.entry.cjs.js.map +1 -0
- 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 +89 -6
- package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -1
- package/dist/cjs/p-stepper-item.entry.cjs.js.map +1 -1
- package/dist/cjs/p-stepper-line.cjs.entry.js +2 -2
- package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -1
- package/dist/cjs/p-stepper-line.entry.cjs.js.map +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +53 -15
- package/dist/cjs/p-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/p-stepper.entry.cjs.js.map +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 +7 -4
- package/dist/collection/components/atoms/drawer/body/drawer-body.component.css +1 -1
- package/dist/collection/components/atoms/drawer/container/drawer-container.component.css +1 -1
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.css +1 -1
- package/dist/collection/components/atoms/listing/item/listing-item.component.css +1 -0
- package/dist/collection/components/atoms/listing/item/listing-item.component.js +53 -0
- package/dist/collection/components/atoms/listing/item/listing-item.component.js.map +1 -0
- package/dist/collection/components/atoms/listing/line/listing-line.component.css +1 -0
- package/dist/collection/components/atoms/listing/line/listing-line.component.js +19 -0
- package/dist/collection/components/atoms/listing/line/listing-line.component.js.map +1 -0
- 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/stepper/item/stepper-item.component.css +1 -0
- package/dist/collection/components/{deprecated/atoms → atoms}/stepper/item/stepper-item.component.js +107 -25
- package/dist/collection/components/atoms/stepper/item/stepper-item.component.js.map +1 -0
- package/dist/collection/components/atoms/stepper/line/stepper-line.component.css +1 -0
- package/dist/collection/components/{deprecated/atoms → atoms}/stepper/line/stepper-line.component.js +2 -2
- package/dist/collection/components/atoms/stepper/line/stepper-line.component.js.map +1 -0
- 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/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/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/listing/listing.component.css +1 -0
- package/dist/collection/components/organisms/listing/listing.component.js +86 -0
- package/dist/collection/components/organisms/listing/listing.component.js.map +1 -0
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/components/organisms/stepper/stepper.component.css +1 -0
- package/dist/collection/components/{deprecated/molecules → organisms}/stepper/stepper.component.js +79 -18
- package/dist/collection/components/organisms/stepper/stepper.component.js.map +1 -0
- package/dist/components/{p-CzS_7d0-.js → p-BELUs4d5.js} +10 -10
- package/dist/components/{p-CzS_7d0-.js.map → p-BELUs4d5.js.map} +1 -1
- package/dist/components/{p-DAKWnFmC.js → p-BIf14u2D.js} +4 -4
- package/dist/components/{p-DAKWnFmC.js.map → p-BIf14u2D.js.map} +1 -1
- package/dist/components/{p-DPhqMOrK.js → p-BPkSg0bc.js} +3 -3
- package/dist/components/{p-DPhqMOrK.js.map → p-BPkSg0bc.js.map} +1 -1
- package/dist/components/{p-BudlHU1j.js → p-BYnq9fQl.js} +3 -3
- package/dist/components/{p-BudlHU1j.js.map → p-BYnq9fQl.js.map} +1 -1
- package/dist/components/{p-BDTPyUsH.js → p-BmuXuYR6.js} +4 -4
- package/dist/components/{p-BDTPyUsH.js.map → p-BmuXuYR6.js.map} +1 -1
- package/dist/components/{p-D82K4OiU.js → p-C0yOzPit.js} +3 -3
- package/dist/components/{p-D82K4OiU.js.map → p-C0yOzPit.js.map} +1 -1
- package/dist/components/p-C1FkmkFJ.js +45 -0
- package/dist/components/p-C1FkmkFJ.js.map +1 -0
- package/dist/components/{p-Dk6UwJSA.js → p-C7OuWaSr.js} +3 -3
- package/dist/components/{p-Dk6UwJSA.js.map → p-C7OuWaSr.js.map} +1 -1
- package/dist/components/{p-CFdbv-t4.js → p-CKc3SL1J.js} +4 -4
- package/dist/components/{p-CFdbv-t4.js.map → p-CKc3SL1J.js.map} +1 -1
- package/dist/components/{p-BFBgml7D.js → p-CSIFLNsS.js} +3 -3
- package/dist/components/{p-BFBgml7D.js.map → p-CSIFLNsS.js.map} +1 -1
- package/dist/components/{p-Y_DTiNRB.js → p-CSMO4KRK.js} +9 -9
- package/dist/components/{p-Y_DTiNRB.js.map → p-CSMO4KRK.js.map} +1 -1
- package/dist/components/{p-BUxcWSGM.js → p-CUgIFdxM.js} +3 -3
- package/dist/components/{p-BUxcWSGM.js.map → p-CUgIFdxM.js.map} +1 -1
- package/dist/components/{p-Be33-vpq.js → p-CXH4yAMZ.js} +4 -4
- package/dist/components/{p-Be33-vpq.js.map → p-CXH4yAMZ.js.map} +1 -1
- package/dist/components/{p-BbqAQmy1.js → p-CYGYOpps.js} +5 -5
- package/dist/components/{p-BbqAQmy1.js.map → p-CYGYOpps.js.map} +1 -1
- package/dist/components/{p-kF4ExBgt.js → p-C_t2sBf3.js} +3 -3
- package/dist/components/{p-kF4ExBgt.js.map → p-C_t2sBf3.js.map} +1 -1
- package/dist/components/{p-DdhFjzWp.js → p-CxHSXAkq.js} +4 -4
- package/dist/components/{p-DdhFjzWp.js.map → p-CxHSXAkq.js.map} +1 -1
- package/dist/components/{p-DzrmryZi.js → p-CzmLJq-j.js} +9 -9
- package/dist/components/{p-DzrmryZi.js.map → p-CzmLJq-j.js.map} +1 -1
- package/dist/components/{p-DW90RovU.js → p-D2Em0Yy7.js} +7 -7
- package/dist/components/{p-DW90RovU.js.map → p-D2Em0Yy7.js.map} +1 -1
- package/dist/components/{p-BMeOy477.js → p-DH9lFbRX.js} +4 -4
- package/dist/components/{p-BMeOy477.js.map → p-DH9lFbRX.js.map} +1 -1
- package/dist/components/{p-CmfFRlg6.js → p-DNuBtBUG.js} +7 -7
- package/dist/components/{p-CmfFRlg6.js.map → p-DNuBtBUG.js.map} +1 -1
- package/dist/components/{p-CScTNJWS.js → p-DQsUJhL8.js} +4 -4
- package/dist/components/{p-CScTNJWS.js.map → p-DQsUJhL8.js.map} +1 -1
- package/dist/components/{p-CgZvkWTt.js → p-DdK27Obl.js} +3 -3
- package/dist/components/{p-CgZvkWTt.js.map → p-DdK27Obl.js.map} +1 -1
- package/dist/components/{p-RaBHKmcm.js → p-DeKgadpt.js} +5 -5
- package/dist/components/{p-RaBHKmcm.js.map → p-DeKgadpt.js.map} +1 -1
- package/dist/components/{p--HfTtLkP.js → p-DoBSOpu3.js} +3 -3
- package/dist/components/{p--HfTtLkP.js.map → p-DoBSOpu3.js.map} +1 -1
- package/dist/components/p-ElOvIDKN.js +34 -0
- package/dist/components/p-ElOvIDKN.js.map +1 -0
- package/dist/components/{p-BwFkgAPO.js → p-Ma26TfrN.js} +4 -4
- package/dist/components/{p-BwFkgAPO.js.map → p-Ma26TfrN.js.map} +1 -1
- package/dist/components/{p-8rB2Q4yP.js → p-ZBndlSp5.js} +4 -4
- package/dist/components/{p-8rB2Q4yP.js.map → p-ZBndlSp5.js.map} +1 -1
- package/dist/components/{p-OpZXFNRZ.js → p-abTHpIy3.js} +3 -3
- package/dist/components/{p-OpZXFNRZ.js.map → p-abTHpIy3.js.map} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +7 -7
- 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-Dhj0ynsI.js → p-dHqdW8fy.js} +4 -4
- package/dist/components/{p-Dhj0ynsI.js.map → p-dHqdW8fy.js.map} +1 -1
- package/dist/components/p-datepicker.js +9 -9
- 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.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-helper.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-listing-item.d.ts +11 -0
- package/dist/components/p-listing-item.js +49 -0
- package/dist/components/p-listing-item.js.map +1 -0
- package/dist/components/p-listing-line.d.ts +11 -0
- package/dist/components/p-listing-line.js +9 -0
- package/dist/components/p-listing-line.js.map +1 -0
- package/dist/components/p-listing.d.ts +11 -0
- package/dist/components/p-listing.js +106 -0
- package/dist/components/p-listing.js.map +1 -0
- 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-DPJZQYRZ.js → p-oN2NV1VP.js} +3 -3
- package/dist/components/{p-DPJZQYRZ.js.map → p-oN2NV1VP.js.map} +1 -1
- package/dist/components/{p-wcD-x4l2.js → p-olyt1_RK.js} +3 -3
- package/dist/components/{p-wcD-x4l2.js.map → p-olyt1_RK.js.map} +1 -1
- package/dist/components/{p-C1YLcCva.js → p-p2WG_YKz.js} +5 -5
- package/dist/components/{p-C1YLcCva.js.map → p-p2WG_YKz.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 +2 -2
- 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 +7 -7
- 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 +95 -19
- package/dist/components/p-stepper-item.js.map +1 -1
- package/dist/components/p-stepper-line.js +1 -1
- package/dist/components/p-stepper.js +59 -19
- package/dist/components/p-stepper.js.map +1 -1
- 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 +19 -19
- package/dist/components/{p-DRQQENvx.js → p-tf3ZTq-9.js} +10 -10
- package/dist/components/{p-DRQQENvx.js.map → p-tf3ZTq-9.js.map} +1 -1
- 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/esm/index-DhGo7hbh.js +12 -0
- 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 +4 -4
- 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 +3 -3
- package/dist/esm/p-drawer-body_3.entry.js.map +1 -1
- package/dist/esm/p-empty-state_9.entry.js +10 -10
- package/dist/esm/p-field_2.entry.js +3 -3
- package/dist/esm/p-helper_2.entry.js +4 -4
- 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-listing-item.entry.js +22 -0
- package/dist/esm/p-listing-item.entry.js.map +1 -0
- package/dist/esm/p-listing-line.entry.js +18 -0
- package/dist/esm/p-listing-line.entry.js.map +1 -0
- package/dist/esm/p-listing.entry.js +81 -0
- package/dist/esm/p-listing.entry.js.map +1 -0
- 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 +90 -7
- package/dist/esm/p-stepper-item.entry.js.map +1 -1
- package/dist/esm/p-stepper-line.entry.js +2 -2
- package/dist/esm/p-stepper-line.entry.js.map +1 -1
- package/dist/esm/p-stepper.entry.js +54 -16
- package/dist/esm/p-stepper.entry.js.map +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-456a3099.entry.js → p-05791ffa.entry.js} +2 -2
- package/dist/paperless/{p-899f7d36.entry.js → p-0a0ef10d.entry.js} +2 -2
- package/dist/{build/p-9ef541e4.entry.js → paperless/p-0ffe0165.entry.js} +2 -2
- package/dist/paperless/p-11b1e718.entry.js +2 -0
- package/dist/{build/p-57acc6a7.entry.js.map → paperless/p-11b1e718.entry.js.map} +1 -1
- package/dist/paperless/{p-7b7366dc.entry.js → p-1bde15ae.entry.js} +2 -2
- package/dist/paperless/{p-4b6b1355.entry.js → p-1c9405d8.entry.js} +2 -2
- package/dist/paperless/{p-f82506c3.entry.js → p-21fb542a.entry.js} +2 -2
- package/dist/paperless/{p-0dc168c5.entry.js → p-26b75731.entry.js} +2 -2
- package/dist/paperless/p-3b14bbef.entry.js +2 -0
- package/dist/{build/p-5dcdb2d0.entry.js → paperless/p-41949138.entry.js} +2 -2
- package/dist/paperless/{p-dae4a24d.entry.js → p-4205f7e2.entry.js} +2 -2
- package/dist/{build/p-26491670.entry.js → paperless/p-476985ba.entry.js} +2 -2
- package/dist/paperless/p-4c6e5337.entry.js +2 -0
- package/dist/paperless/p-505650b6.entry.js +2 -0
- package/dist/paperless/p-53e0b8a1.entry.js +2 -0
- package/dist/paperless/p-53e0b8a1.entry.js.map +1 -0
- package/dist/paperless/{p-4fb83e8d.entry.js → p-6620dc05.entry.js} +2 -2
- package/dist/{build/p-f4c0923b.entry.js → paperless/p-697c465d.entry.js} +2 -2
- package/dist/paperless/{p-58efc94c.entry.js → p-6cddddb7.entry.js} +2 -2
- package/dist/paperless/{p-74dba9db.entry.js → p-72eb70f4.entry.js} +2 -2
- package/dist/{build/p-a8f60c0c.entry.js → paperless/p-7c7e6f26.entry.js} +2 -2
- package/dist/paperless/{p-17ae0ec7.entry.js → p-7f4d26c4.entry.js} +2 -2
- package/dist/paperless/{p-4ac9e128.entry.js → p-8cc3f69f.entry.js} +2 -2
- package/dist/paperless/p-922fba03.entry.js +2 -0
- package/dist/{build/p-73bfb4b5.entry.js.map → paperless/p-922fba03.entry.js.map} +1 -1
- package/dist/paperless/p-929b47c9.entry.js +2 -0
- package/dist/paperless/{p-f932bde5.entry.js → p-96cb3e48.entry.js} +2 -2
- package/dist/paperless/p-96cd5cff.entry.js +2 -0
- package/dist/paperless/p-96cd5cff.entry.js.map +1 -0
- package/dist/{build/p-c7c3d389.entry.js → paperless/p-9da1d488.entry.js} +2 -2
- package/dist/{build/p-d5cba5af.entry.js → paperless/p-a3da31c4.entry.js} +2 -2
- package/dist/paperless/{p-d3102227.entry.js → p-adfddeb6.entry.js} +2 -2
- package/dist/paperless/p-b08f490b.entry.js +2 -0
- package/dist/paperless/p-b08f490b.entry.js.map +1 -0
- package/dist/paperless/p-b1b12e88.entry.js +2 -0
- package/dist/paperless/p-b1b12e88.entry.js.map +1 -0
- package/dist/paperless/{p-c62477c2.entry.js → p-bc366236.entry.js} +2 -2
- package/dist/paperless/p-bce08b0e.entry.js +2 -0
- package/dist/paperless/{p-c585d909.entry.js → p-c9c0ae8d.entry.js} +2 -2
- package/dist/paperless/{p-0a6e3e6f.entry.js → p-d37e0e66.entry.js} +2 -2
- package/dist/paperless/p-d4f4fe62.entry.js +2 -0
- package/dist/paperless/p-d4f4fe62.entry.js.map +1 -0
- package/dist/paperless/{p-f9efc1e5.entry.js → p-d894e0b1.entry.js} +2 -2
- package/dist/paperless/{p-222abd40.entry.js → p-df7f9328.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-7435c88e.entry.js → p-e526cd42.entry.js} +2 -2
- package/dist/{build/p-b8797794.entry.js → paperless/p-e63adc0d.entry.js} +2 -2
- package/dist/paperless/p-ed2e7409.entry.js +2 -0
- package/dist/paperless/p-fd4a25eb.entry.js +2 -0
- package/dist/paperless/p-fd4a25eb.entry.js.map +1 -0
- package/dist/paperless/p-listing-item.entry.esm.js.map +1 -0
- package/dist/paperless/p-listing-line.entry.esm.js.map +1 -0
- package/dist/paperless/p-listing.entry.esm.js.map +1 -0
- package/dist/paperless/p-stepper-item.entry.esm.js.map +1 -1
- package/dist/paperless/p-stepper-line.entry.esm.js.map +1 -1
- package/dist/paperless/p-stepper.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/dist/types/components/atoms/listing/item/listing-item.component.d.ts +8 -0
- package/dist/types/components/atoms/listing/line/listing-line.component.d.ts +3 -0
- package/dist/types/components/{deprecated/atoms → atoms}/stepper/item/stepper-item.component.d.ts +4 -4
- package/dist/types/components/organisms/listing/listing.component.d.ts +14 -0
- package/dist/types/components/{deprecated/molecules → organisms}/stepper/stepper.component.d.ts +6 -0
- package/dist/types/components.d.ts +65 -10
- package/package.json +1 -1
- package/dist/build/p-0859bb42.entry.js +0 -2
- package/dist/build/p-0859bb42.entry.js.map +0 -1
- package/dist/build/p-0a6b03d0.entry.js +0 -2
- package/dist/build/p-0b6db18f.entry.js +0 -2
- package/dist/build/p-13b16981.entry.js +0 -2
- package/dist/build/p-13b16981.entry.js.map +0 -1
- package/dist/build/p-41f2eec6.entry.js +0 -2
- package/dist/build/p-41f2eec6.entry.js.map +0 -1
- package/dist/build/p-449cde91.js +0 -2
- package/dist/build/p-57acc6a7.entry.js +0 -2
- package/dist/build/p-70de0ecc.entry.js +0 -2
- package/dist/build/p-73bfb4b5.entry.js +0 -2
- package/dist/build/p-82751d58.entry.js +0 -2
- package/dist/build/p-d6e8bf36.entry.js +0 -2
- package/dist/build/p-e2ee74a9.entry.js +0 -2
- package/dist/collection/components/deprecated/atoms/stepper/item/stepper-item.component.css +0 -1
- package/dist/collection/components/deprecated/atoms/stepper/item/stepper-item.component.js.map +0 -1
- package/dist/collection/components/deprecated/atoms/stepper/line/stepper-line.component.css +0 -1
- package/dist/collection/components/deprecated/atoms/stepper/line/stepper-line.component.js.map +0 -1
- package/dist/collection/components/deprecated/molecules/stepper/stepper.component.css +0 -1
- package/dist/collection/components/deprecated/molecules/stepper/stepper.component.js.map +0 -1
- package/dist/components/p-RLs2w_87.js +0 -45
- package/dist/components/p-RLs2w_87.js.map +0 -1
- package/dist/paperless/p-0859bb42.entry.js +0 -2
- package/dist/paperless/p-0859bb42.entry.js.map +0 -1
- package/dist/paperless/p-0a6b03d0.entry.js +0 -2
- package/dist/paperless/p-0b6db18f.entry.js +0 -2
- package/dist/paperless/p-13b16981.entry.js +0 -2
- package/dist/paperless/p-13b16981.entry.js.map +0 -1
- package/dist/paperless/p-41f2eec6.entry.js +0 -2
- package/dist/paperless/p-41f2eec6.entry.js.map +0 -1
- package/dist/paperless/p-57acc6a7.entry.js +0 -2
- package/dist/paperless/p-70de0ecc.entry.js +0 -2
- package/dist/paperless/p-73bfb4b5.entry.js +0 -2
- package/dist/paperless/p-82751d58.entry.js +0 -2
- package/dist/paperless/p-d6e8bf36.entry.js +0 -2
- package/dist/paperless/p-e2ee74a9.entry.js +0 -2
- /package/dist/build/{p-456a3099.entry.js.map → p-05791ffa.entry.js.map} +0 -0
- /package/dist/build/{p-899f7d36.entry.js.map → p-0a0ef10d.entry.js.map} +0 -0
- /package/dist/build/{p-9ef541e4.entry.js.map → p-0ffe0165.entry.js.map} +0 -0
- /package/dist/build/{p-7b7366dc.entry.js.map → p-1bde15ae.entry.js.map} +0 -0
- /package/dist/build/{p-4b6b1355.entry.js.map → p-1c9405d8.entry.js.map} +0 -0
- /package/dist/build/{p-f82506c3.entry.js.map → p-21fb542a.entry.js.map} +0 -0
- /package/dist/build/{p-0dc168c5.entry.js.map → p-26b75731.entry.js.map} +0 -0
- /package/dist/build/{p-82751d58.entry.js.map → p-3b14bbef.entry.js.map} +0 -0
- /package/dist/build/{p-5dcdb2d0.entry.js.map → p-41949138.entry.js.map} +0 -0
- /package/dist/build/{p-dae4a24d.entry.js.map → p-4205f7e2.entry.js.map} +0 -0
- /package/dist/build/{p-26491670.entry.js.map → p-476985ba.entry.js.map} +0 -0
- /package/dist/build/{p-70de0ecc.entry.js.map → p-4c6e5337.entry.js.map} +0 -0
- /package/dist/build/{p-0a6b03d0.entry.js.map → p-505650b6.entry.js.map} +0 -0
- /package/dist/build/{p-4fb83e8d.entry.js.map → p-6620dc05.entry.js.map} +0 -0
- /package/dist/build/{p-f4c0923b.entry.js.map → p-697c465d.entry.js.map} +0 -0
- /package/dist/build/{p-58efc94c.entry.js.map → p-6cddddb7.entry.js.map} +0 -0
- /package/dist/build/{p-74dba9db.entry.js.map → p-72eb70f4.entry.js.map} +0 -0
- /package/dist/build/{p-a8f60c0c.entry.js.map → p-7c7e6f26.entry.js.map} +0 -0
- /package/dist/build/{p-17ae0ec7.entry.js.map → p-7f4d26c4.entry.js.map} +0 -0
- /package/dist/build/{p-4ac9e128.entry.js.map → p-8cc3f69f.entry.js.map} +0 -0
- /package/dist/build/{p-0b6db18f.entry.js.map → p-929b47c9.entry.js.map} +0 -0
- /package/dist/build/{p-f932bde5.entry.js.map → p-96cb3e48.entry.js.map} +0 -0
- /package/dist/build/{p-c7c3d389.entry.js.map → p-9da1d488.entry.js.map} +0 -0
- /package/dist/build/{p-d5cba5af.entry.js.map → p-a3da31c4.entry.js.map} +0 -0
- /package/dist/build/{p-d3102227.entry.js.map → p-adfddeb6.entry.js.map} +0 -0
- /package/dist/build/{p-c62477c2.entry.js.map → p-bc366236.entry.js.map} +0 -0
- /package/dist/build/{p-e2ee74a9.entry.js.map → p-bce08b0e.entry.js.map} +0 -0
- /package/dist/build/{p-c585d909.entry.js.map → p-c9c0ae8d.entry.js.map} +0 -0
- /package/dist/build/{p-0a6e3e6f.entry.js.map → p-d37e0e66.entry.js.map} +0 -0
- /package/dist/build/{p-f9efc1e5.entry.js.map → p-d894e0b1.entry.js.map} +0 -0
- /package/dist/build/{p-222abd40.entry.js.map → p-df7f9328.entry.js.map} +0 -0
- /package/dist/build/{p-7435c88e.entry.js.map → p-e526cd42.entry.js.map} +0 -0
- /package/dist/build/{p-b8797794.entry.js.map → p-e63adc0d.entry.js.map} +0 -0
- /package/dist/build/{p-d6e8bf36.entry.js.map → p-ed2e7409.entry.js.map} +0 -0
- /package/dist/paperless/{p-456a3099.entry.js.map → p-05791ffa.entry.js.map} +0 -0
- /package/dist/paperless/{p-899f7d36.entry.js.map → p-0a0ef10d.entry.js.map} +0 -0
- /package/dist/paperless/{p-9ef541e4.entry.js.map → p-0ffe0165.entry.js.map} +0 -0
- /package/dist/paperless/{p-7b7366dc.entry.js.map → p-1bde15ae.entry.js.map} +0 -0
- /package/dist/paperless/{p-4b6b1355.entry.js.map → p-1c9405d8.entry.js.map} +0 -0
- /package/dist/paperless/{p-f82506c3.entry.js.map → p-21fb542a.entry.js.map} +0 -0
- /package/dist/paperless/{p-0dc168c5.entry.js.map → p-26b75731.entry.js.map} +0 -0
- /package/dist/paperless/{p-82751d58.entry.js.map → p-3b14bbef.entry.js.map} +0 -0
- /package/dist/paperless/{p-5dcdb2d0.entry.js.map → p-41949138.entry.js.map} +0 -0
- /package/dist/paperless/{p-dae4a24d.entry.js.map → p-4205f7e2.entry.js.map} +0 -0
- /package/dist/paperless/{p-26491670.entry.js.map → p-476985ba.entry.js.map} +0 -0
- /package/dist/paperless/{p-70de0ecc.entry.js.map → p-4c6e5337.entry.js.map} +0 -0
- /package/dist/paperless/{p-0a6b03d0.entry.js.map → p-505650b6.entry.js.map} +0 -0
- /package/dist/paperless/{p-4fb83e8d.entry.js.map → p-6620dc05.entry.js.map} +0 -0
- /package/dist/paperless/{p-f4c0923b.entry.js.map → p-697c465d.entry.js.map} +0 -0
- /package/dist/paperless/{p-58efc94c.entry.js.map → p-6cddddb7.entry.js.map} +0 -0
- /package/dist/paperless/{p-74dba9db.entry.js.map → p-72eb70f4.entry.js.map} +0 -0
- /package/dist/paperless/{p-a8f60c0c.entry.js.map → p-7c7e6f26.entry.js.map} +0 -0
- /package/dist/paperless/{p-17ae0ec7.entry.js.map → p-7f4d26c4.entry.js.map} +0 -0
- /package/dist/paperless/{p-4ac9e128.entry.js.map → p-8cc3f69f.entry.js.map} +0 -0
- /package/dist/paperless/{p-0b6db18f.entry.js.map → p-929b47c9.entry.js.map} +0 -0
- /package/dist/paperless/{p-f932bde5.entry.js.map → p-96cb3e48.entry.js.map} +0 -0
- /package/dist/paperless/{p-c7c3d389.entry.js.map → p-9da1d488.entry.js.map} +0 -0
- /package/dist/paperless/{p-d5cba5af.entry.js.map → p-a3da31c4.entry.js.map} +0 -0
- /package/dist/paperless/{p-d3102227.entry.js.map → p-adfddeb6.entry.js.map} +0 -0
- /package/dist/paperless/{p-c62477c2.entry.js.map → p-bc366236.entry.js.map} +0 -0
- /package/dist/paperless/{p-e2ee74a9.entry.js.map → p-bce08b0e.entry.js.map} +0 -0
- /package/dist/paperless/{p-c585d909.entry.js.map → p-c9c0ae8d.entry.js.map} +0 -0
- /package/dist/paperless/{p-0a6e3e6f.entry.js.map → p-d37e0e66.entry.js.map} +0 -0
- /package/dist/paperless/{p-f9efc1e5.entry.js.map → p-d894e0b1.entry.js.map} +0 -0
- /package/dist/paperless/{p-222abd40.entry.js.map → p-df7f9328.entry.js.map} +0 -0
- /package/dist/paperless/{p-7435c88e.entry.js.map → p-e526cd42.entry.js.map} +0 -0
- /package/dist/paperless/{p-b8797794.entry.js.map → p-e63adc0d.entry.js.map} +0 -0
- /package/dist/paperless/{p-d6e8bf36.entry.js.map → p-ed2e7409.entry.js.map} +0 -0
- /package/dist/types/components/{deprecated/atoms → atoms}/stepper/line/stepper-line.component.d.ts +0 -0
|
@@ -75,10 +75,10 @@ const NavigationItem = class {
|
|
|
75
75
|
render() {
|
|
76
76
|
const TagType = this.as;
|
|
77
77
|
const active = asBoolean.asBoolean(this.active) || this.class?.includes('active');
|
|
78
|
-
return (index.h(index.Host, { key: '
|
|
78
|
+
return (index.h(index.Host, { key: '79994e86292f09cfc75ff2f3975030ee9e9dce06', class: cn.cn('p-navigation-item inline-block', this.class) }, index.h(TagType, { key: 'bed91b063af5892b731a872fbb0949b539f4591c', class: navigationItem({
|
|
79
79
|
icon: !!this.icon,
|
|
80
80
|
active,
|
|
81
|
-
}), href: this.href, target: this.target }, index.h("div", { key: '
|
|
81
|
+
}), href: this.href, target: this.target }, index.h("div", { key: '207d64b0404e1bbd61c01ebbe48011e3c5bb4f92', class: navigationItemIconContainer({ active }) }, index.h("p-icon", { key: 'babf7766bd3e6c4abe920e080c36d2bf940ea480', variant: this.icon })), index.h("span", { key: '64bcff00187439b6d894682f3b3b77d4f34e5865', class: this.counter && 'has-counter' }, index.h("slot", { key: '7810eb410817292b67cb540bc406aca91c07c5b3' })), !!this.counter && this.counter !== '0' && (index.h("p-badge", { key: 'b1da55a598b0e7ee9af2d8f8b5814af7ee7fc1a9' }, this.counter)), !!this.loading && index.h("p-loader", { key: '0617f2cbd8a40642ec4fd992ca0daed95c44d0bf', class: 'ml-auto' }))));
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
NavigationItem.style = navigationItemComponentCss;
|
|
@@ -13,7 +13,7 @@ const NavigationSection = class {
|
|
|
13
13
|
*/
|
|
14
14
|
header;
|
|
15
15
|
render() {
|
|
16
|
-
return (index.h(index.Host, { key: '
|
|
16
|
+
return (index.h(index.Host, { key: 'f4f2bcc2770ff5c35006c726fa8eaa766c0576c1', class: 'p-navigation-section flex flex-col gap-2' }, this.header?.length > 0 && (index.h("p-navigation-title", { key: '54a51bf17ffcc7ab14f254e22ab912d479ecf47e' }, this.header)), index.h("div", { key: '3f0d55eda9f0f0dcf6a5d12be309d9310a29d67d', class: 'flex flex-col' }, index.h("slot", { key: '47119d190320bf6e916ee65b53db59f0b7308e25' }))));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
NavigationSection.style = navigationSectionComponentCss;
|
|
@@ -9,7 +9,7 @@ const NavigationTitle = class {
|
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (index.h(index.Host, { key: '
|
|
12
|
+
return (index.h(index.Host, { key: '677084de2fb9af41886fae8c566b44e90987ad0c', class: 'p-navigation-title text-xs font-medium text-black-teal-300' }, index.h("slot", { key: 'df6ff2eaf7d781f15d3291d430526e84e87cf0c4' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
NavigationTitle.style = navigationTitleComponentCss;
|
|
@@ -86,12 +86,12 @@ const PaginationPagesItem = class {
|
|
|
86
86
|
*/
|
|
87
87
|
disabled = false;
|
|
88
88
|
render() {
|
|
89
|
-
return (index.h(index.Host, { key: '
|
|
89
|
+
return (index.h(index.Host, { key: '370f6de694de331a35e2c773fd77dffd4a433449', class: item({
|
|
90
90
|
variant: this.variant,
|
|
91
91
|
active: this.active,
|
|
92
92
|
hover: this.hover,
|
|
93
93
|
disabled: this.disabled,
|
|
94
|
-
}) }, index.h("slot", { key: '
|
|
94
|
+
}) }, index.h("slot", { key: 'ba79922cdad66e08de077e59607abc05d4a6c262' })));
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
PaginationPagesItem.style = paginationPagesItemComponentCss;
|
|
@@ -73,12 +73,12 @@ const Pagination = class {
|
|
|
73
73
|
_hasPaginationPages = true;
|
|
74
74
|
render() {
|
|
75
75
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
76
|
-
return (index.h(index.Host, { key: '
|
|
76
|
+
return (index.h(index.Host, { key: 'dad75f3cb1a1bb3ceb52371f3f9b336c55bd0968', class: pagination$1({
|
|
77
77
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
78
78
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
79
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (index.h(index.Fragment, { key: '
|
|
79
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (index.h(index.Fragment, { key: '84c04d7410f17ee51584a2a99c97269111f10925' }, index.h("p-pagination-size", { key: 'c6db1b39dca87fb29c03898bd9e0edde9a562566', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
80
80
|
this.hideOnSinglePage &&
|
|
81
|
-
this._hasPaginationPages && (index.h("p-divider", { key: '
|
|
81
|
+
this._hasPaginationPages && (index.h("p-divider", { key: '1c4c340bcf7cae54f823ef9ac0a47e217adfb5e4', variant: 'vertical', class: 'mx-0 h-4 text-human-beige-700' })))), this.enablePaginationPages && (index.h("p-pagination-pages", { key: 'd484f11908581d0b0ed8cd1415766b37de97a886', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
|
|
82
82
|
this._hasPaginationPages = detail > 1;
|
|
83
83
|
this.pagesChange.emit(detail);
|
|
84
84
|
} }))));
|
|
@@ -139,7 +139,7 @@ const PaginationPages = class {
|
|
|
139
139
|
this._generate();
|
|
140
140
|
}
|
|
141
141
|
render() {
|
|
142
|
-
return (index.h(index.Host, { key: '
|
|
142
|
+
return (index.h(index.Host, { key: '00be81f328b6fc3b6c26e8071fc1c30e588a9c58', class: pagination({
|
|
143
143
|
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
144
144
|
}) }, this._set?.map(p => {
|
|
145
145
|
if (p.type === 'previous' || p.type === 'next') {
|
|
@@ -18,7 +18,7 @@ const Portal = class {
|
|
|
18
18
|
this._moved ? this._el.remove() : (this._moved = true);
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (index.h(index.Host, { key: '
|
|
21
|
+
return (index.h(index.Host, { key: '7bb00af33aa3d9f2ce92c74b3ba8733b5aa207ca' }, index.h("slot", { key: '4ca5ee281205812eed199bb1dbeff4f4b9374f16' })));
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -104,11 +104,11 @@ const Radio = class {
|
|
|
104
104
|
}
|
|
105
105
|
render() {
|
|
106
106
|
const id = this.id?.length ? this.id : this._nonce;
|
|
107
|
-
return (index.h(index.Host, { key: '
|
|
107
|
+
return (index.h(index.Host, { key: 'cf7536ffc4b7ddf8d0e67571be7c062660c6dc36', class: 'p-radio' }, index.h("label", { key: 'f8c4a5cf6258f020eeac15c5ce14048579495c2c', htmlFor: id, class: 'flex items-center justify-start gap-2 text-black-teal' }, index.h("div", { key: 'c497684d3c4aff17a62a17682c39501c77b28c11', class: 'relative flex flex-shrink-0 items-center' }, index.h("input", { key: '4dca4f8cc1d7fbb1e3d4b2b09c7e326bf087d40e', class: radio({
|
|
108
108
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
109
|
-
}), type: 'radio', id: id, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean.asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), index.h("div", { key: '
|
|
109
|
+
}), type: 'radio', id: id, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean.asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), index.h("div", { key: 'c33272fac792dfb69ddd315f1c423f8bfd429b33', class: circle({
|
|
110
110
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
111
|
-
}) })), index.h("slot", { key: '
|
|
111
|
+
}) })), index.h("slot", { key: 'fec5314d43c8bde9fd367c004f5e417a26cfe3ab' }))));
|
|
112
112
|
}
|
|
113
113
|
_onChange(ev) {
|
|
114
114
|
if (asBoolean.asBoolean(this.disabled)) {
|
|
@@ -300,7 +300,7 @@ const Select = class {
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
render() {
|
|
303
|
-
return (index.h("p-dropdown", { key: '
|
|
303
|
+
return (index.h("p-dropdown", { key: '08a2cd3461d8d9e7acaa6572ea27246766c01185', 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 }, index.h("p-field-container", { key: '759513ea56860f6a309a3eecb789716fb235018b', 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 }, index.h("p-button", { key: '4c9879f4f95b9c8e44cd433bd23d3130c28149f6', 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) }, index.h("div", { key: 'd5e7bdf3db55e67da2ff9756d5a2118d6b3c8f70', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue))), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()));
|
|
304
304
|
}
|
|
305
305
|
documentClickHandler(event) {
|
|
306
306
|
if (!this._showDropdown || childOf.childOfComposed(event, this._el)) {
|
|
@@ -13,7 +13,7 @@ const SliderIndicator = class {
|
|
|
13
13
|
*/
|
|
14
14
|
active = false;
|
|
15
15
|
render() {
|
|
16
|
-
return (index.h(index.Host, { key: '
|
|
16
|
+
return (index.h(index.Host, { key: 'd9cc5d71cf33a58c8d43f6dab9a909c2d06f2d2f', class: `p-slider-indicator ${this.active && 'active'}` }));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
SliderIndicator.style = sliderIndicatorComponentCss;
|
|
@@ -29,7 +29,7 @@ const Smile = class {
|
|
|
29
29
|
*/
|
|
30
30
|
variant = 'modal';
|
|
31
31
|
render() {
|
|
32
|
-
return (index.h(index.Host, { key: '
|
|
32
|
+
return (index.h(index.Host, { key: 'ce399fe0541567baa86813a2d87815900c4e0ecf', class: smile({ variant: this.variant }) }, index.h("div", { key: '8779b1bcb694671d615164712511ce4e721b84ae', class: 'absolute bottom-0 left-0 h-full w-full text-off-white-500', innerHTML: smileSvg })));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
Smile.style = smileComponentCss;
|
|
@@ -25,8 +25,8 @@ const Status = class {
|
|
|
25
25
|
*/
|
|
26
26
|
iconRotate;
|
|
27
27
|
render() {
|
|
28
|
-
return (index.h(index.Host, { key: '
|
|
29
|
-
}` }, this._getIcon(), index.h("slot", { key: '
|
|
28
|
+
return (index.h(index.Host, { key: 'be9bde36193a5cb33ef365ce5cf78637f9a9ad98', class: `p-status variant-${this.variant}
|
|
29
|
+
}` }, this._getIcon(), index.h("slot", { key: '847a22130404a065832c703aec9bcc171f20050b' })));
|
|
30
30
|
}
|
|
31
31
|
_getIcon() {
|
|
32
32
|
const icon = this.icon || this._getVariantIcon();
|
|
@@ -1,21 +1,95 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-BDuPp9vl.js');
|
|
4
|
+
var index$1 = require('./index-mudu9vpz.js');
|
|
5
|
+
var asBoolean = require('./as-boolean-C1PzA22I.js');
|
|
6
|
+
require('./clsx-BtxeOLZW.js');
|
|
4
7
|
|
|
5
|
-
const stepperItemComponentCss = "
|
|
8
|
+
const stepperItemComponentCss = "*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.h-6{height:1.5rem!important}.w-6{width:1.5rem!important}.flex-row-reverse{flex-direction:row-reverse!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-full{border-radius:9999px!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-dark-teal-400{--tw-border-opacity:1!important;border-color:rgb(51 116 109/var(--tw-border-opacity,1))!important}.bg-dark-teal-400{--tw-bg-opacity:1!important;background-color:rgb(51 116 109/var(--tw-bg-opacity,1))!important}.bg-dark-teal-50{--tw-bg-opacity:1!important;background-color:rgb(229 238 237/var(--tw-bg-opacity,1))!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-medium{font-weight:500!important}.text-black-teal-400{--tw-text-opacity:1!important;color:rgb(53 85 80/var(--tw-text-opacity,1))!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-dark-teal-400{--tw-text-opacity:1!important;color:rgb(51 116 109/var(--tw-text-opacity,1))!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}";
|
|
6
9
|
|
|
10
|
+
const item = index$1.cva('flex gap-2', {
|
|
11
|
+
variants: {
|
|
12
|
+
align: {
|
|
13
|
+
start: 'items-start',
|
|
14
|
+
center: 'items-center',
|
|
15
|
+
end: 'items-end',
|
|
16
|
+
},
|
|
17
|
+
contentPosition: {
|
|
18
|
+
start: 'flex-row-reverse',
|
|
19
|
+
end: null
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const circle = index$1.cva(['h-6 w-6 flex items-center justify-center', 'text-sm text-center font-medium', 'border border-solid border-dark-teal-400', 'rounded-full'], {
|
|
24
|
+
variants: {
|
|
25
|
+
finished: {
|
|
26
|
+
true: null,
|
|
27
|
+
false: null
|
|
28
|
+
},
|
|
29
|
+
active: {
|
|
30
|
+
true: null,
|
|
31
|
+
false: null
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
compoundVariants: [
|
|
35
|
+
{
|
|
36
|
+
finished: false,
|
|
37
|
+
active: false,
|
|
38
|
+
class: 'text-dark-teal-400 bg-dark-teal-50'
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
active: true,
|
|
42
|
+
finished: false,
|
|
43
|
+
class: 'text-white bg-dark-teal-400',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
active: false,
|
|
47
|
+
finished: true,
|
|
48
|
+
class: 'text-white bg-dark-teal-400',
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
});
|
|
52
|
+
const content = index$1.cva('text-sm font-medium', {
|
|
53
|
+
variants: {
|
|
54
|
+
finished: {
|
|
55
|
+
true: null,
|
|
56
|
+
false: null
|
|
57
|
+
},
|
|
58
|
+
active: {
|
|
59
|
+
true: null,
|
|
60
|
+
false: null
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
compoundVariants: [
|
|
64
|
+
{
|
|
65
|
+
finished: false,
|
|
66
|
+
active: false,
|
|
67
|
+
class: 'text-black-teal-400'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
active: true,
|
|
71
|
+
finished: false,
|
|
72
|
+
class: 'text-black-teal-500',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
active: false,
|
|
76
|
+
finished: true,
|
|
77
|
+
class: 'text-black-teal-500',
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
});
|
|
7
81
|
const StepperItem = class {
|
|
8
82
|
constructor(hostRef) {
|
|
9
83
|
index.registerInstance(this, hostRef);
|
|
10
84
|
}
|
|
11
85
|
/**
|
|
12
|
-
* The
|
|
86
|
+
* The number of the step
|
|
13
87
|
*/
|
|
14
|
-
|
|
88
|
+
number = 1;
|
|
15
89
|
/**
|
|
16
|
-
* The
|
|
90
|
+
* The alignment of the content in case of vertical direction
|
|
17
91
|
*/
|
|
18
|
-
|
|
92
|
+
align = 'center';
|
|
19
93
|
/**
|
|
20
94
|
* The position of the content in case of vertical direction
|
|
21
95
|
*/
|
|
@@ -29,7 +103,16 @@ const StepperItem = class {
|
|
|
29
103
|
*/
|
|
30
104
|
active = false;
|
|
31
105
|
render() {
|
|
32
|
-
return (index.h(
|
|
106
|
+
return (index.h("div", { key: '31bdc65cb996e82942a2669150516d52c612a6de', class: item({
|
|
107
|
+
align: this.align,
|
|
108
|
+
contentPosition: this.contentPosition
|
|
109
|
+
}) }, index.h("div", { key: 'c8a00a2c7345508a154116f8a11fb1514b819328', class: circle({
|
|
110
|
+
active: asBoolean.asBoolean(this.active),
|
|
111
|
+
finished: asBoolean.asBoolean(this.finished)
|
|
112
|
+
}) }, this.number), index.h("div", { key: '30206086d8f9b97695071865897326bfd73cdf55', class: content({
|
|
113
|
+
active: asBoolean.asBoolean(this.active),
|
|
114
|
+
finished: asBoolean.asBoolean(this.finished)
|
|
115
|
+
}) }, index.h("slot", { key: '9235d3ad7efe5c8264177b653c713233e193eef1' }))));
|
|
33
116
|
}
|
|
34
117
|
};
|
|
35
118
|
StepperItem.style = stepperItemComponentCss;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-stepper-item.entry.cjs.js","mappings":"
|
|
1
|
+
{"file":"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;AACnB,gBAAA,MAAM,EAAEC,mBAAS,CAAC,IAAI,CAAC,MAAM,CAAC;AAC9B,gBAAA,QAAQ,EAAEA,mBAAS,CAAC,IAAI,CAAC,QAAQ;AACjC,aAAA,CAAC,EAAA,EACDD,OAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACH,CACD;;;;;;;","names":["cva","h","asBoolean"],"sources":["src/components/atoms/stepper/item/stepper-item.component.css?tag=p-stepper-item&encapsulation=shadow","src/components/atoms/stepper/item/stepper-item.component.tsx"],"sourcesContent":["","import { Component, h, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nconst item = cva(\n\t'flex gap-2',\n\t{\n\t\tvariants: {\n\t\t\talign: {\n\t\t\t\tstart: 'items-start',\n\t\t\t\tcenter: 'items-center',\n\t\t\t\tend: 'items-end',\n\t\t\t},\n\t\t\tcontentPosition: {\n\t\t\t\tstart: 'flex-row-reverse',\n\t\t\t\tend: null\n\t\t\t},\n\t\t}\n\t}\n);\n\nconst circle = cva(['h-6 w-6 flex items-center justify-center', 'text-sm text-center font-medium', 'border border-solid border-dark-teal-400', 'rounded-full'], {\n\tvariants: {\n\t\tfinished: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t},\n\t\tactive: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tfinished: false,\n\t\t\tactive: false,\n\t\t\tclass: 'text-dark-teal-400 bg-dark-teal-50'\n\t\t},\n\t\t{\n\t\t\tactive: true,\n\t\t\tfinished: false,\n\t\t\tclass: 'text-white bg-dark-teal-400',\n\t\t},\n\t\t{\n\t\t\tactive: false,\n\t\t\tfinished: true,\n\t\t\tclass: 'text-white bg-dark-teal-400',\n\n\t\t}\n\t]\n})\n\nconst content = cva('text-sm font-medium', {\n\tvariants: {\n\t\tfinished: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t},\n\t\tactive: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tfinished: false,\n\t\t\tactive: false,\n\t\t\tclass: 'text-black-teal-400'\n\t\t},\n\t\t{\n\t\t\tactive: true,\n\t\t\tfinished: false,\n\t\t\tclass: 'text-black-teal-500',\n\t\t},\n\t\t{\n\t\t\tactive: false,\n\t\t\tfinished: true,\n\t\t\tclass: 'text-black-teal-500',\n\n\t\t}\n\t]\n})\n\n@Component({\n\ttag: 'p-stepper-item',\n\tstyleUrl: 'stepper-item.component.css',\n\tshadow: true,\n})\nexport class StepperItem {\n\t/**\n\t * The number of the step\n\t */\n\t@Prop() number: number = 1;\n\n\t/**\n\t * The alignment of the content in case of vertical direction\n\t */\n\t@Prop() align: 'start' | 'center' | 'end' = 'center';\n\n\t/**\n\t * The position of the content in case of vertical direction\n\t */\n\t@Prop() contentPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Wether the step is finished\n\t */\n\t@Prop() finished: boolean = false;\n\n\t/**\n\t * Wether the step is active\n\t */\n\t@Prop() active: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<div class={item({\n\t\t\t\talign: this.align,\n\t\t\t\tcontentPosition: this.contentPosition\n\t\t\t})}>\n\t\t\t\t<div class={circle({\n\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\tfinished: asBoolean(this.finished)\n\t\t\t\t})}>\n\t\t\t\t\t{this.number}\n\t\t\t\t</div>\n\t\t\t\t<div class={content({\n\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\tfinished: asBoolean(this.finished)\n\t\t\t\t})}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-stepper-item.entry.cjs.js","sources":["src/components/
|
|
1
|
+
{"version":3,"file":"p-stepper-item.entry.cjs.js","sources":["src/components/atoms/stepper/item/stepper-item.component.css?tag=p-stepper-item&encapsulation=shadow","src/components/atoms/stepper/item/stepper-item.component.tsx"],"sourcesContent":["","import { Component, h, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nconst item = cva(\n\t'flex gap-2',\n\t{\n\t\tvariants: {\n\t\t\talign: {\n\t\t\t\tstart: 'items-start',\n\t\t\t\tcenter: 'items-center',\n\t\t\t\tend: 'items-end',\n\t\t\t},\n\t\t\tcontentPosition: {\n\t\t\t\tstart: 'flex-row-reverse',\n\t\t\t\tend: null\n\t\t\t},\n\t\t}\n\t}\n);\n\nconst circle = cva(['h-6 w-6 flex items-center justify-center', 'text-sm text-center font-medium', 'border border-solid border-dark-teal-400', 'rounded-full'], {\n\tvariants: {\n\t\tfinished: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t},\n\t\tactive: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tfinished: false,\n\t\t\tactive: false,\n\t\t\tclass: 'text-dark-teal-400 bg-dark-teal-50'\n\t\t},\n\t\t{\n\t\t\tactive: true,\n\t\t\tfinished: false,\n\t\t\tclass: 'text-white bg-dark-teal-400',\n\t\t},\n\t\t{\n\t\t\tactive: false,\n\t\t\tfinished: true,\n\t\t\tclass: 'text-white bg-dark-teal-400',\n\n\t\t}\n\t]\n})\n\nconst content = cva('text-sm font-medium', {\n\tvariants: {\n\t\tfinished: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t},\n\t\tactive: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tfinished: false,\n\t\t\tactive: false,\n\t\t\tclass: 'text-black-teal-400'\n\t\t},\n\t\t{\n\t\t\tactive: true,\n\t\t\tfinished: false,\n\t\t\tclass: 'text-black-teal-500',\n\t\t},\n\t\t{\n\t\t\tactive: false,\n\t\t\tfinished: true,\n\t\t\tclass: 'text-black-teal-500',\n\n\t\t}\n\t]\n})\n\n@Component({\n\ttag: 'p-stepper-item',\n\tstyleUrl: 'stepper-item.component.css',\n\tshadow: true,\n})\nexport class StepperItem {\n\t/**\n\t * The number of the step\n\t */\n\t@Prop() number: number = 1;\n\n\t/**\n\t * The alignment of the content in case of vertical direction\n\t */\n\t@Prop() align: 'start' | 'center' | 'end' = 'center';\n\n\t/**\n\t * The position of the content in case of vertical direction\n\t */\n\t@Prop() contentPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Wether the step is finished\n\t */\n\t@Prop() finished: boolean = false;\n\n\t/**\n\t * Wether the step is active\n\t */\n\t@Prop() active: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<div class={item({\n\t\t\t\talign: this.align,\n\t\t\t\tcontentPosition: this.contentPosition\n\t\t\t})}>\n\t\t\t\t<div class={circle({\n\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\tfinished: asBoolean(this.finished)\n\t\t\t\t})}>\n\t\t\t\t\t{this.number}\n\t\t\t\t</div>\n\t\t\t\t<div class={content({\n\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\tfinished: asBoolean(this.finished)\n\t\t\t\t})}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"names":["cva","h","asBoolean"],"mappings":";;;;;;;AAAA,MAAM,uBAAuB,GAAG,g6CAAg6C;;ACIh8C,MAAM,IAAI,GAAGA,WAAG,CACf,YAAY,EACZ;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,KAAK,EAAE;AACN,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,MAAM,EAAE,cAAc;AACtB,YAAA,GAAG,EAAE,WAAW;AAChB,SAAA;AACD,QAAA,eAAe,EAAE;AAChB,YAAA,KAAK,EAAE,kBAAkB;AACzB,YAAA,GAAG,EAAE;A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= ".
|
|
5
|
+
const stepperLineComponentCss = ".mx-\\[calc\\(0\\.75rem-1px\\)\\]{margin-left:calc(.75rem - 1px)!important;margin-right:calc(.75rem - 1px)!important}.block{display:block!important}.h-\\[1px\\]{height:1px!important}.min-h-\\[1rem\\]{min-height:1rem!important}.w-\\[1px\\]{width:1px!important}.transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.duration-500{transition-duration:.5s!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(222 219 213/var(--tw-bg-opacity,1));display:block;flex:1 1 auto;transition-duration:.5s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([direction=horizontal]){height:1px}:host([direction=vertical]){margin-left:calc(.75rem - 1px);margin-right:calc(.75rem - 1px);min-height:1rem;width:1px}:host([active=true]),:host([active]:not([active=false])){--tw-bg-opacity:1;background-color:rgb(51 116 109/var(--tw-bg-opacity,1))}.static{position:static!important}";
|
|
6
6
|
|
|
7
7
|
const StepperLine = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -17,7 +17,7 @@ const StepperLine = class {
|
|
|
17
17
|
*/
|
|
18
18
|
direction = 'horizontal';
|
|
19
19
|
render() {
|
|
20
|
-
return index.h(index.Host, { key: '
|
|
20
|
+
return index.h(index.Host, { key: 'e7dba68dafe58d56327f1d66518882c68bcdba7f' });
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
StepperLine.style = stepperLineComponentCss;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-stepper-line.entry.cjs.js","mappings":";;;;AAAA,MAAM,uBAAuB,GAAG,
|
|
1
|
+
{"file":"p-stepper-line.entry.cjs.js","mappings":";;;;AAAA,MAAM,uBAAuB,GAAG,0tCAA0tC;;MCO7uC,WAAW,GAAA,MAAA;;;;AACvB;;AAEG;IACsB,MAAM,GAAY,KAAK;AAEhD;;AAEG;IACsB,SAAS,GACjC,YAAY;IAEb,MAAM,GAAA;QACL,OAAOA,OAAA,CAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAG;;;;;;;","names":["h","Host"],"sources":["src/components/atoms/stepper/line/stepper-line.component.css?tag=p-stepper-line&encapsulation=shadow","src/components/atoms/stepper/line/stepper-line.component.tsx"],"sourcesContent":[":host {\n\t@apply flex-auto;\n\t@apply transition duration-500 ease-in-out;\n\n\t@apply block;\n\n\t@apply bg-off-white-700;\n}\n\n:host([direction='horizontal']) {\n\t@apply h-[1px];\n}\n\n:host([direction='vertical']) {\n\t@apply min-h-[1rem] w-[1px] mx-[calc(0.75rem-1px)];\n}\n\n:host([active=\"true\"]), :host([active]:not([active=\"false\"])) {\n\t@apply bg-dark-teal-400;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-stepper-line',\n\tstyleUrl: 'stepper-line.component.css',\n\tshadow: true,\n})\nexport class StepperLine {\n\t/**\n\t * Wether the line is active\n\t */\n\t@Prop({ reflect: true }) active: boolean = false;\n\n\t/**\n\t * The direction of the stepper line\n\t */\n\t@Prop({ reflect: true }) direction: 'horizontal' | 'vertical' =\n\t\t'horizontal';\n\n\trender() {\n\t\treturn <Host />;\n\t}\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-stepper-line.entry.cjs.js","sources":["src/components/
|
|
1
|
+
{"version":3,"file":"p-stepper-line.entry.cjs.js","sources":["src/components/atoms/stepper/line/stepper-line.component.css?tag=p-stepper-line&encapsulation=shadow","src/components/atoms/stepper/line/stepper-line.component.tsx"],"sourcesContent":[":host {\n\t@apply flex-auto;\n\t@apply transition duration-500 ease-in-out;\n\n\t@apply block;\n\n\t@apply bg-off-white-700;\n}\n\n:host([direction='horizontal']) {\n\t@apply h-[1px];\n}\n\n:host([direction='vertical']) {\n\t@apply min-h-[1rem] w-[1px] mx-[calc(0.75rem-1px)];\n}\n\n:host([active=\"true\"]), :host([active]:not([active=\"false\"])) {\n\t@apply bg-dark-teal-400;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-stepper-line',\n\tstyleUrl: 'stepper-line.component.css',\n\tshadow: true,\n})\nexport class StepperLine {\n\t/**\n\t * Wether the line is active\n\t */\n\t@Prop({ reflect: true }) active: boolean = false;\n\n\t/**\n\t * The direction of the stepper line\n\t */\n\t@Prop({ reflect: true }) direction: 'horizontal' | 'vertical' =\n\t\t'horizontal';\n\n\trender() {\n\t\treturn <Host />;\n\t}\n}\n"],"names":["h","Host"],"mappings":";;;;AAAA,MAAM,uBAAuB,GAAG,0tCAA0tC;;MCO7uC,WAAW,GAAA,MAAA;;;;AACvB;;AAEG;IACsB,MAAM,GAAY,KAAK;AAEhD;;AAEG;IACsB,SAAS,GACjC,YAAY;IAEb,MAAM,GAAA;QACL,OAAOA,OAAA,CAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAG;;;;;;;"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-BDuPp9vl.js');
|
|
4
|
+
var index$1 = require('./index-mudu9vpz.js');
|
|
5
|
+
require('./clsx-BtxeOLZW.js');
|
|
4
6
|
|
|
5
|
-
const stepperComponentCss = ".flex{display:flex!important}.h-auto{height:auto!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}
|
|
7
|
+
const stepperComponentCss = "*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.h-auto{height:auto!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}";
|
|
6
8
|
|
|
9
|
+
const stepper = index$1.cva(['flex gap-2'], {
|
|
10
|
+
variants: {
|
|
11
|
+
direction: {
|
|
12
|
+
vertical: 'w-full flex-col flex-wrap items-start',
|
|
13
|
+
horizontal: 'h-auto items-center'
|
|
14
|
+
},
|
|
15
|
+
contentPosition: {
|
|
16
|
+
start: null,
|
|
17
|
+
end: null
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
compoundVariants: [{
|
|
21
|
+
direction: 'vertical',
|
|
22
|
+
contentPosition: 'start',
|
|
23
|
+
class: 'items-end'
|
|
24
|
+
}]
|
|
25
|
+
});
|
|
7
26
|
const Stepper = class {
|
|
8
27
|
constructor(hostRef) {
|
|
9
28
|
index.registerInstance(this, hostRef);
|
|
@@ -20,6 +39,10 @@ const Stepper = class {
|
|
|
20
39
|
* The direction of the stepper
|
|
21
40
|
*/
|
|
22
41
|
direction = 'horizontal';
|
|
42
|
+
/**
|
|
43
|
+
* The alignment of the content in case of vertical direction
|
|
44
|
+
*/
|
|
45
|
+
align = 'center';
|
|
23
46
|
/**
|
|
24
47
|
* The position of the content in case of vertical direction
|
|
25
48
|
*/
|
|
@@ -58,15 +81,9 @@ const Stepper = class {
|
|
|
58
81
|
if (item.direction !== this.direction && !directionChanged) {
|
|
59
82
|
directionChanged = true;
|
|
60
83
|
}
|
|
84
|
+
item.number = i + 1;
|
|
61
85
|
item.direction = this.direction;
|
|
62
|
-
item.align =
|
|
63
|
-
this.direction === 'vertical'
|
|
64
|
-
? 'start'
|
|
65
|
-
: i === 0
|
|
66
|
-
? 'start'
|
|
67
|
-
: i === items?.length - 1
|
|
68
|
-
? 'end'
|
|
69
|
-
: 'center';
|
|
86
|
+
item.align = this.direction === 'vertical' ? this.align : 'start';
|
|
70
87
|
item.contentPosition = this.contentPosition;
|
|
71
88
|
}
|
|
72
89
|
if (directionChanged) {
|
|
@@ -111,14 +128,27 @@ const Stepper = class {
|
|
|
111
128
|
}
|
|
112
129
|
};
|
|
113
130
|
_setStepperLineData = (stepperLine, item, nextItem, i, activeStep) => {
|
|
114
|
-
|
|
115
|
-
|
|
131
|
+
let heightDiff = item.clientHeight - 24;
|
|
132
|
+
let heightDiffNext = nextItem.clientHeight - 24;
|
|
133
|
+
if (this.align === 'center') {
|
|
134
|
+
heightDiff = heightDiff / 2;
|
|
135
|
+
heightDiffNext = heightDiffNext / 2;
|
|
136
|
+
}
|
|
116
137
|
stepperLine.direction = this.direction;
|
|
117
138
|
stepperLine.active = i < activeStep;
|
|
118
139
|
if (heightDiff > 0 && this.direction === 'vertical') {
|
|
119
|
-
|
|
120
|
-
stepperLine.style.
|
|
121
|
-
stepperLine.style.
|
|
140
|
+
let totalHeight = 0;
|
|
141
|
+
stepperLine.style.marginTop = "0";
|
|
142
|
+
stepperLine.style.marginBottom = "0";
|
|
143
|
+
if (this.align === 'start' || this.align === 'center') {
|
|
144
|
+
stepperLine.style.marginTop = `-${heightDiff / 16}rem`;
|
|
145
|
+
totalHeight += heightDiff;
|
|
146
|
+
}
|
|
147
|
+
if (this.align === 'center' || this.align === "end") {
|
|
148
|
+
stepperLine.style.marginBottom = `-${heightDiffNext / 16}rem`;
|
|
149
|
+
totalHeight += heightDiffNext;
|
|
150
|
+
}
|
|
151
|
+
stepperLine.style.minHeight = `calc(${(totalHeight / 16)}rem)`;
|
|
122
152
|
}
|
|
123
153
|
};
|
|
124
154
|
componentDidLoad() {
|
|
@@ -131,12 +161,20 @@ const Stepper = class {
|
|
|
131
161
|
}
|
|
132
162
|
}
|
|
133
163
|
render() {
|
|
134
|
-
return (index.h(
|
|
164
|
+
return (index.h("div", { key: 'a1c7897dc9bc10124df448557ef5fdba732f6d7c', class: stepper({ direction: this.direction }) }, index.h("slot", { key: '92b8c3491be2d344f89cec56f35699ca2a9d42b8', onSlotchange: () => this._generateStepsOnce() })));
|
|
165
|
+
}
|
|
166
|
+
_onAlignChange() {
|
|
167
|
+
this._generateStepsOnce();
|
|
168
|
+
}
|
|
169
|
+
_onDirectionChange() {
|
|
170
|
+
this._generateStepsOnce();
|
|
135
171
|
}
|
|
136
172
|
_onActiveStepChange() {
|
|
137
173
|
this._generateStepsOnce();
|
|
138
174
|
}
|
|
139
175
|
static get watchers() { return {
|
|
176
|
+
"align": ["_onAlignChange"],
|
|
177
|
+
"direction": ["_onDirectionChange"],
|
|
140
178
|
"activeStep": ["_onActiveStepChange"]
|
|
141
179
|
}; }
|
|
142
180
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-stepper.entry.cjs.js","mappings":";;;;AAAA,MAAM,mBAAmB,GAAG,mcAAmc;;MCOld,OAAO,GAAA,MAAA;;;;AACnB;;AAEG;IACK,UAAU,GAAW,CAAC;AAE9B;;AAEG;IACK,gBAAgB,GAAY,IAAI;AAExC;;AAEG;IACsB,SAAS,GAA8B,YAAY;AAE5E;;AAEG;IACsB,eAAe,GAAoB,KAAK;;AAOzD,IAAA,gBAAgB;AAChB,IAAA,eAAe;IAEf,kBAAkB,GAAG,MAAK;AACjC,QAAA,IAAI,IAAI,CAAC,gBAAgB,EAAE;AAC1B,YAAA,YAAY,CAAC,IAAI,CAAC,gBAAgB,CAAC;AACnC,YAAA,IAAI,CAAC,gBAAgB,GAAG,IAAI;;AAG7B,QAAA,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,EAAE,EAAE,CAAC;AACpE,KAAC;IAEO,cAAc,GAAG,YAAW;AACnC,QAAA,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;YACd;;QAGD,IAAI,UAAU,GAAG,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC;QACzC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,gBAAgB,CAAC;QAEzD,IAAI,gBAAgB,GAAG,KAAK;AAC5B,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE;YACvC,MAAM,IAAI,GAAG,KAAK,CA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AAM,GAAA;AACL,QAAA,QACCA,OAAC,CAAAC,UAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,WAAW,EAAA,EACtBD,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,YAAY,EAAE,MAAM,IAAI,CAAC,kBAAkB,EAAE,EAAA,CAAI,CACjD;;IAKC,mBAAmB,GAAA;QAC5B,IAAI,CAAC,kBAAkB,EAAE;;;;;;;;;;","names":["h","Host"],"sources":["src/components/deprecated/molecules/stepper/stepper.component.scss?tag=p-stepper&encapsulation=shadow","src/components/deprecated/molecules/stepper/stepper.component.tsx"],"sourcesContent":[":host {\n\t@apply flex;\n}\n\n:host([direction='horizontal']) {\n\t@apply h-auto items-end;\n}\n\n:host([direction='vertical']) {\n\t@apply flex-col flex-wrap items-start;\n\t@apply w-full;\n}\n\n:host([direction='vertical'][content-position='start']) {\n\t@apply items-end;\n}\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core';\n\n@Component({\n\ttag: 'p-stepper',\n\tstyleUrl: 'stepper.component.scss',\n\tshadow: true,\n})\nexport class Stepper {\n\t/**\n\t * The currently active step\n\t */\n\t@Prop() activeStep: number = 1;\n\n\t/**\n\t * Wether to automatically apply active & finished to items\n\t */\n\t@Prop() enableAutoStatus: boolean = true;\n\n\t/**\n\t * The direction of the stepper\n\t */\n\t@Prop({ reflect: true }) direction: 'horizontal' | 'vertical' = 'horizontal';\n\n\t/**\n\t * The position of the content in case of vertical direction\n\t */\n\t@Prop({ reflect: true }) contentPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _generateTimeout: NodeJS.Timeout | undefined;\n\tprivate _resizeObserver: ResizeObserver;\n\n\tprivate _generateStepsOnce = () => {\n\t\tif (this._generateTimeout) {\n\t\t\tclearTimeout(this._generateTimeout);\n\t\t\tthis._generateTimeout = null;\n\t\t}\n\n\t\tthis._generateTimeout = setTimeout(() => this._generateSteps(), 50);\n\t};\n\n\tprivate _generateSteps = async () => {\n\t\tif (!this._el) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet activeStep = this.activeStep - 1 || 0;\n\t\tconst items = this._el.querySelectorAll('p-stepper-item');\n\n\t\tlet directionChanged = false;\n\t\tfor (let i = 0; i < items?.length; i++) {\n\t\t\tconst item = items.item(i) as any;\n\n\t\t\tif (this.enableAutoStatus) {\n\t\t\t\titem.active = i === activeStep;\n\t\t\t\titem.finished = i < activeStep;\n\t\t\t}\n\n\t\t\tif (!this.activeStep || activeStep < 0) {\n\t\t\t\tif (item.active) {\n\t\t\t\t\tactiveStep = i;\n\t\t\t\t}\n\n\t\t\t\tif (activeStep < 0 && item.finished) {\n\t\t\t\t\tactiveStep = i + 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (item.direction !== this.direction && !directionChanged) {\n\t\t\t\tdirectionChanged = true;\n\t\t\t}\n\n\t\t\titem.direction = this.direction;\n\t\t\titem.align =\n\t\t\t\tthis.direction === 'vertical'\n\t\t\t\t\t? 'start'\n\t\t\t\t\t: i === 0\n\t\t\t\t\t? 'start'\n\t\t\t\t\t: i === items?.length - 1\n\t\t\t\t\t? 'end'\n\t\t\t\t\t: 'center';\n\t\t\titem.contentPosition = this.contentPosition;\n\t\t}\n\n\t\tif (directionChanged) {\n\t\t\t// super hacky way to ensure all elements that have a direction changed are re-rendered\n\t\t\tawait new Promise(resolve => setTimeout(resolve, 200));\n\t\t}\n\n\t\tfor (let i = 0; i < items?.length; i++) {\n\t\t\tconst item = items.item(i) as any;\n\n\t\t\tif (i < items.length - 1) {\n\t\t\t\tlet nextItem = item.nextElementSibling;\n\n\t\t\t\tif (nextItem && nextItem.tagName.toLowerCase() === 'p-stepper-item') {\n\t\t\t\t\tconst stepperLine = document.createElement('p-stepper-line');\n\t\t\t\t\tthis._el.insertBefore(stepperLine, nextItem);\n\t\t\t\t\tthis._setStepperLineData(stepperLine, item, nextItem, i, activeStep);\n\n\t\t\t\t\tconst previous = stepperLine.previousElementSibling;\n\t\t\t\t\tif (previous && previous.tagName.toLowerCase() === 'p-stepper-line') {\n\t\t\t\t\t\tprevious.remove();\n\t\t\t\t\t}\n\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (nextItem && nextItem.tagName.toLowerCase() === 'p-stepper-line') {\n\t\t\t\t\tconst stepperLine = nextItem;\n\t\t\t\t\tnextItem = nextItem.nextElementSibling;\n\n\t\t\t\t\tif (nextItem && nextItem.tagName.toLowerCase() === 'p-stepper-item') {\n\t\t\t\t\t\tthis._setStepperLineData(\n\t\t\t\t\t\t\tstepperLine,\n\t\t\t\t\t\t\titem,\n\t\t\t\t\t\t\tnextItem,\n\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t\tactiveStep\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (i > 0) {\n\t\t\t\tconst previousItem = item.previousElementSibling;\n\t\t\t\tif (\n\t\t\t\t\tpreviousItem &&\n\t\t\t\t\tpreviousItem.tagName.toLowerCase() === 'p-stepper-line'\n\t\t\t\t) {\n\t\t\t\t\tpreviousItem.direction = this.direction;\n\t\t\t\t\tpreviousItem.active = item.active || item.finished;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tconst lines = this._el.querySelectorAll(\n\t\t\t'p-stepper-line:not(:has(+ p-stepper-item)), p-stepper-line:first-child'\n\t\t);\n\t\tfor (let j = lines.length - 1; j >= 0; j--) {\n\t\t\tconst line = lines.item(j);\n\t\t\tline.remove();\n\t\t}\n\t};\n\n\tprivate _setStepperLineData = (\n\t\tstepperLine: HTMLPStepperLineElement,\n\t\titem: HTMLPStepperItemElement,\n\t\tnextItem: HTMLPStepperItemElement,\n\t\ti: number,\n\t\tactiveStep: number\n\t) => {\n\t\tconst heightDiff = item.clientHeight / 2;\n\t\tconst heightDiffNext = nextItem.clientHeight / 2;\n\n\t\tstepperLine.direction = this.direction;\n\t\tstepperLine.active = i < activeStep;\n\n\t\tif (heightDiff > 0 && this.direction === 'vertical') {\n\t\t\tstepperLine.style.marginTop = `-${heightDiff / 16}rem`;\n\t\t\tstepperLine.style.marginBottom = `-${heightDiffNext / 16}rem`;\n\t\t\tstepperLine.style.minHeight = `calc(1rem + ${\n\t\t\t\t(heightDiff + heightDiffNext) / 16\n\t\t\t}rem)`;\n\t\t}\n\t};\n\n\tcomponentDidLoad() {\n\t\tthis._resizeObserver = new ResizeObserver(() => this._generateStepsOnce());\n\t\tthis._resizeObserver.observe(this._el);\n\t}\n\n\tdisconnectCallback() {\n\t\tif (this._resizeObserver) {\n\t\t\tthis._resizeObserver.disconnect();\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-stepper'>\n\t\t\t\t<slot onSlotchange={() => this._generateStepsOnce()} />\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Watch('activeStep')\n\tprotected _onActiveStepChange() {\n\t\tthis._generateStepsOnce();\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"p-stepper.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,gYAAgY;;ACG5Z,MAAM,OAAO,GAAGA,WAAG,CAClB,CAAC,YAAY,CAAC,EACd;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,SAAS,EAAE;AACV,YAAA,QAAQ,EAAE,uCAAuC;AACjD,YAAA,UAAU,EAAE;AACZ,SAAA;AACD,QAAA,eAAe,EAAE;AAChB,YAAA,KAAK,EAAE,IAAI;AACX,YAAA,GAAG,EAAE;AACL;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,CAAC;AAClB,YAAA,SAAS,EAAE,UAAU;AACrB,YAAA,eAAe,EAAE,OAAO;AACxB,YAAA,KAAK,EAAE;SACP;AACD,CAAA,CACD;MAOY,OAAO,GAAA,MAAA;;;;AACnB;;AAEG;IACK,UAAU,GAAW,CAAC;AAE9B;;AAEG;IACK,gBAAgB,GAAY,IA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jB,QAAA,IAAI,IAAI,CAAC,eAAe,EAAE;AACzB,YAAA,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE;;;IAInC,MAAM,GAAA;QACL,QACCC,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,EAAA,EACjDA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,YAAY,EAAE,MAAM,IAAI,CAAC,kBAAkB,EAAE,EAAA,CAAI,CAClD;;IAKE,cAAc,GAAA;QACvB,IAAI,CAAC,kBAAkB,EAAE;;IAIhB,kBAAkB,GAAA;QAC3B,IAAI,CAAC,kBAAkB,EAAE;;IAIhB,mBAAmB,GAAA;QAC5B,IAAI,CAAC,kBAAkB,EAAE;;;;;;;;;;;;","names":["cva","h"],"sources":["src/components/organisms/stepper/stepper.component.css?tag=p-stepper&encapsulation=shadow","src/components/organisms/stepper/stepper.component.tsx"],"sourcesContent":["","import { Component, Element, h, Prop, Watch } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst stepper = cva(\n\t['flex gap-2'],\n\t{\n\t\tvariants: {\n\t\t\tdirection: {\n\t\t\t\tvertical: 'w-full flex-col flex-wrap items-start',\n\t\t\t\thorizontal: 'h-auto items-center'\n\t\t\t},\n\t\t\tcontentPosition: {\n\t\t\t\tstart: null,\n\t\t\t\tend: null\n\t\t\t}\n\t\t},\n\t\tcompoundVariants: [{\n\t\t\tdirection: 'vertical',\n\t\t\tcontentPosition: 'start',\n\t\t\tclass: 'items-end'\n\t\t}]\n\t}\n);\n\n@Component({\n\ttag: 'p-stepper',\n\tstyleUrl: 'stepper.component.css',\n\tshadow: true,\n})\nexport class Stepper {\n\t/**\n\t * The currently active step\n\t */\n\t@Prop() activeStep: number = 1;\n\n\t/**\n\t * Wether to automatically apply active & finished to items\n\t */\n\t@Prop() enableAutoStatus: boolean = true;\n\n\t/**\n\t * The direction of the stepper\n\t */\n\t@Prop() direction: 'horizontal' | 'vertical' = 'horizontal';\n\n\t/**\n\t * The alignment of the content in case of vertical direction\n\t */\n\t@Prop() align: 'start' | 'center' | 'end' = 'center';\n\n\t/**\n\t * The position of the content in case of vertical direction\n\t */\n\t@Prop() contentPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _generateTimeout: NodeJS.Timeout | undefined;\n\tprivate _resizeObserver: ResizeObserver;\n\n\tprivate _generateStepsOnce = () => {\n\t\tif (this._generateTimeout) {\n\t\t\tclearTimeout(this._generateTimeout);\n\t\t\tthis._generateTimeout = null;\n\t\t}\n\n\t\tthis._generateTimeout = setTimeout(() => this._generateSteps(), 50);\n\t};\n\n\tprivate _generateSteps = async () => {\n\t\tif (!this._el) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet activeStep = this.activeStep - 1 || 0;\n\t\tconst items = this._el.querySelectorAll('p-stepper-item');\n\n\t\tlet directionChanged = false;\n\t\tfor (let i = 0; i < items?.length; i++) {\n\t\t\tconst item = items.item(i) as any;\n\n\t\t\tif (this.enableAutoStatus) {\n\t\t\t\titem.active = i === activeStep;\n\t\t\t\titem.finished = i < activeStep;\n\t\t\t}\n\n\t\t\tif (!this.activeStep || activeStep < 0) {\n\t\t\t\tif (item.active) {\n\t\t\t\t\tactiveStep = i;\n\t\t\t\t}\n\n\t\t\t\tif (activeStep < 0 && item.finished) {\n\t\t\t\t\tactiveStep = i + 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (item.direction !== this.direction && !directionChanged) {\n\t\t\t\tdirectionChanged = true;\n\t\t\t}\n\n\t\t\titem.number = i + 1;\n\t\t\titem.direction = this.direction;\n\t\t\titem.align = this.direction === 'vertical' ? this.align : 'start';\n\t\t\titem.contentPosition = this.contentPosition;\n\t\t}\n\n\t\tif (directionChanged) {\n\t\t\t// super hacky way to ensure all elements that have a direction changed are re-rendered\n\t\t\tawait new Promise(resolve => setTimeout(resolve, 200));\n\t\t}\n\n\t\tfor (let i = 0; i < items?.length; i++) {\n\t\t\tconst item = items.item(i) as any;\n\n\t\t\tif (i < items.length - 1) {\n\t\t\t\tlet nextItem = item.nextElementSibling;\n\n\t\t\t\tif (nextItem && nextItem.tagName.toLowerCase() === 'p-stepper-item') {\n\t\t\t\t\tconst stepperLine = document.createElement('p-stepper-line');\n\t\t\t\t\tthis._el.insertBefore(stepperLine, nextItem);\n\t\t\t\t\tthis._setStepperLineData(stepperLine, item, nextItem, i, activeStep);\n\n\t\t\t\t\tconst previous = stepperLine.previousElementSibling;\n\t\t\t\t\tif (previous && previous.tagName.toLowerCase() === 'p-stepper-line') {\n\t\t\t\t\t\tprevious.remove();\n\t\t\t\t\t}\n\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (nextItem && nextItem.tagName.toLowerCase() === 'p-stepper-line') {\n\t\t\t\t\tconst stepperLine = nextItem;\n\t\t\t\t\tnextItem = nextItem.nextElementSibling;\n\n\t\t\t\t\tif (nextItem && nextItem.tagName.toLowerCase() === 'p-stepper-item') {\n\t\t\t\t\t\tthis._setStepperLineData(\n\t\t\t\t\t\t\tstepperLine,\n\t\t\t\t\t\t\titem,\n\t\t\t\t\t\t\tnextItem,\n\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t\tactiveStep\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (i > 0) {\n\t\t\t\tconst previousItem = item.previousElementSibling;\n\t\t\t\tif (\n\t\t\t\t\tpreviousItem &&\n\t\t\t\t\tpreviousItem.tagName.toLowerCase() === 'p-stepper-line'\n\t\t\t\t) {\n\t\t\t\t\tpreviousItem.direction = this.direction;\n\t\t\t\t\tpreviousItem.active = item.active || item.finished;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tconst lines = this._el.querySelectorAll(\n\t\t\t'p-stepper-line:not(:has(+ p-stepper-item)), p-stepper-line:first-child'\n\t\t);\n\t\tfor (let j = lines.length - 1; j >= 0; j--) {\n\t\t\tconst line = lines.item(j);\n\t\t\tline.remove();\n\t\t}\n\t};\n\n\tprivate _setStepperLineData = (\n\t\tstepperLine: HTMLPStepperLineElement,\n\t\titem: HTMLPStepperItemElement,\n\t\tnextItem: HTMLPStepperItemElement,\n\t\ti: number,\n\t\tactiveStep: number\n\t) => {\n\t\tlet heightDiff = item.clientHeight - 24;\n\t\tlet heightDiffNext = nextItem.clientHeight - 24;\n\n\t\tif(this.align === 'center') {\n\t\t\theightDiff = heightDiff / 2;\n\t\t\theightDiffNext = heightDiffNext / 2;\n\t\t}\n\n\t\tstepperLine.direction = this.direction;\n\t\tstepperLine.active = i < activeStep;\n\n\t\tif (heightDiff > 0 && this.direction === 'vertical') {\n\t\t\tlet totalHeight = 0;\n\n\t\t\tstepperLine.style.marginTop = \"0\";\n\t\t\tstepperLine.style.marginBottom= \"0\";\n\n\t\t\tif(this.align === 'start' || this.align === 'center') {\n\t\t\t\tstepperLine.style.marginTop = `-${heightDiff / 16}rem`;\n\t\t\t\ttotalHeight += heightDiff;\n\t\t\t}\n\n\t\t\tif(this.align === 'center' || this.align===\"end\") {\n\t\t\t\tstepperLine.style.marginBottom = `-${heightDiffNext / 16}rem`;\n\t\t\t\ttotalHeight += heightDiffNext;\n\t\t\t}\n\n\t\t\tstepperLine.style.minHeight = `calc(${\n\t\t\t\t(totalHeight / 16)\n\t\t\t}rem)`;\n\t\t}\n\t};\n\n\tcomponentDidLoad() {\n\t\tthis._resizeObserver = new ResizeObserver(() => this._generateStepsOnce());\n\t\tthis._resizeObserver.observe(this._el);\n\t}\n\n\tdisconnectCallback() {\n\t\tif (this._resizeObserver) {\n\t\t\tthis._resizeObserver.disconnect();\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div class={stepper({ direction: this.direction })}>\n\t\t\t\t<slot onSlotchange={() => this._generateStepsOnce()} />\n\t\t\t</div>\n\t\t);\n\t}\n\n\t@Watch('align')\n\tprotected _onAlignChange() {\n\t\tthis._generateStepsOnce();\n\t}\n\n\t@Watch('direction')\n\tprotected _onDirectionChange() {\n\t\tthis._generateStepsOnce();\n\t}\n\n\t@Watch('activeStep')\n\tprotected _onActiveStepChange() {\n\t\tthis._generateStepsOnce();\n\t}\n}\n"],"version":3}
|