@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
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h
|
|
2
|
-
import {
|
|
1
|
+
import { p as proxyCustomElement, H, h } from './p-tdjn65Lz.js';
|
|
2
|
+
import { c as cva } from './p-4hDfHOnN.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './p-C1FkmkFJ.js';
|
|
3
4
|
|
|
4
|
-
const stepperComponentCss = ".flex{display:flex!important}.h-auto{height:auto!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}
|
|
5
|
+
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}";
|
|
5
6
|
|
|
7
|
+
const stepper = cva(['flex gap-2'], {
|
|
8
|
+
variants: {
|
|
9
|
+
direction: {
|
|
10
|
+
vertical: 'w-full flex-col flex-wrap items-start',
|
|
11
|
+
horizontal: 'h-auto items-center'
|
|
12
|
+
},
|
|
13
|
+
contentPosition: {
|
|
14
|
+
start: null,
|
|
15
|
+
end: null
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
compoundVariants: [{
|
|
19
|
+
direction: 'vertical',
|
|
20
|
+
contentPosition: 'start',
|
|
21
|
+
class: 'items-end'
|
|
22
|
+
}]
|
|
23
|
+
});
|
|
6
24
|
const Stepper = /*@__PURE__*/ proxyCustomElement(class Stepper extends H {
|
|
7
25
|
constructor() {
|
|
8
26
|
super();
|
|
@@ -21,6 +39,10 @@ const Stepper = /*@__PURE__*/ proxyCustomElement(class Stepper extends H {
|
|
|
21
39
|
* The direction of the stepper
|
|
22
40
|
*/
|
|
23
41
|
direction = 'horizontal';
|
|
42
|
+
/**
|
|
43
|
+
* The alignment of the content in case of vertical direction
|
|
44
|
+
*/
|
|
45
|
+
align = 'center';
|
|
24
46
|
/**
|
|
25
47
|
* The position of the content in case of vertical direction
|
|
26
48
|
*/
|
|
@@ -59,15 +81,9 @@ const Stepper = /*@__PURE__*/ proxyCustomElement(class Stepper extends H {
|
|
|
59
81
|
if (item.direction !== this.direction && !directionChanged) {
|
|
60
82
|
directionChanged = true;
|
|
61
83
|
}
|
|
84
|
+
item.number = i + 1;
|
|
62
85
|
item.direction = this.direction;
|
|
63
|
-
item.align =
|
|
64
|
-
this.direction === 'vertical'
|
|
65
|
-
? 'start'
|
|
66
|
-
: i === 0
|
|
67
|
-
? 'start'
|
|
68
|
-
: i === items?.length - 1
|
|
69
|
-
? 'end'
|
|
70
|
-
: 'center';
|
|
86
|
+
item.align = this.direction === 'vertical' ? this.align : 'start';
|
|
71
87
|
item.contentPosition = this.contentPosition;
|
|
72
88
|
}
|
|
73
89
|
if (directionChanged) {
|
|
@@ -112,14 +128,27 @@ const Stepper = /*@__PURE__*/ proxyCustomElement(class Stepper extends H {
|
|
|
112
128
|
}
|
|
113
129
|
};
|
|
114
130
|
_setStepperLineData = (stepperLine, item, nextItem, i, activeStep) => {
|
|
115
|
-
|
|
116
|
-
|
|
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
|
+
}
|
|
117
137
|
stepperLine.direction = this.direction;
|
|
118
138
|
stepperLine.active = i < activeStep;
|
|
119
139
|
if (heightDiff > 0 && this.direction === 'vertical') {
|
|
120
|
-
|
|
121
|
-
stepperLine.style.
|
|
122
|
-
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)`;
|
|
123
152
|
}
|
|
124
153
|
};
|
|
125
154
|
componentDidLoad() {
|
|
@@ -132,21 +161,32 @@ const Stepper = /*@__PURE__*/ proxyCustomElement(class Stepper extends H {
|
|
|
132
161
|
}
|
|
133
162
|
}
|
|
134
163
|
render() {
|
|
135
|
-
return (h(
|
|
164
|
+
return (h("div", { key: 'a1c7897dc9bc10124df448557ef5fdba732f6d7c', class: stepper({ direction: this.direction }) }, h("slot", { key: '92b8c3491be2d344f89cec56f35699ca2a9d42b8', onSlotchange: () => this._generateStepsOnce() })));
|
|
165
|
+
}
|
|
166
|
+
_onAlignChange() {
|
|
167
|
+
this._generateStepsOnce();
|
|
168
|
+
}
|
|
169
|
+
_onDirectionChange() {
|
|
170
|
+
this._generateStepsOnce();
|
|
136
171
|
}
|
|
137
172
|
_onActiveStepChange() {
|
|
138
173
|
this._generateStepsOnce();
|
|
139
174
|
}
|
|
140
175
|
static get watchers() { return {
|
|
176
|
+
"align": ["_onAlignChange"],
|
|
177
|
+
"direction": ["_onDirectionChange"],
|
|
141
178
|
"activeStep": ["_onActiveStepChange"]
|
|
142
179
|
}; }
|
|
143
180
|
static get style() { return stepperComponentCss; }
|
|
144
181
|
}, [1, "p-stepper", {
|
|
145
182
|
"activeStep": [2, "active-step"],
|
|
146
183
|
"enableAutoStatus": [4, "enable-auto-status"],
|
|
147
|
-
"direction": [
|
|
148
|
-
"
|
|
184
|
+
"direction": [1],
|
|
185
|
+
"align": [1],
|
|
186
|
+
"contentPosition": [1, "content-position"]
|
|
149
187
|
}, undefined, {
|
|
188
|
+
"align": ["_onAlignChange"],
|
|
189
|
+
"direction": ["_onDirectionChange"],
|
|
150
190
|
"activeStep": ["_onActiveStepChange"]
|
|
151
191
|
}]);
|
|
152
192
|
function defineCustomElement$1() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-stepper.js","mappings":";;;AAAA,MAAM,mBAAmB,GAAG,mcAAmc;;MCOld,OAAO,iBAAAA,kBAAA,CAAA,MAAA,OAAA,SAAAC,CAAA,CAAA;;;;;;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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CAAC,SAAS,KAAK,UAAU,EAAE;YACpD,WAAW,CAAC,KAAK,CAAC,SAAS,GAAG,IAAI,UAAU,GAAG,EAAE,CAAA,GAAA,CAAK;YACtD,WAAW,CAAC,KAAK,CAAC,YAAY,GAAG,IAAI,cAAc,GAAG,EAAE,CAAA,GAAA,CAAK;AAC7D,YAAA,WAAW,CAAC,KAAK,CAAC,SAAS,GAAG,CAC7B,YAAA,EAAA,CAAC,UAAU,GAAG,cAAc,IAAI,EACjC,MAAM;;AAER,KAAC;IAED,gBAAgB,GAAA;AACf,QAAA,IAAI,CAAC,eAAe,GAAG,IAAI,cAAc,CAAC,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC1E,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;;IAGvC,kBAAkB,GAAA;AACjB,QAAA,IAAI,IAAI,CAAC,eAAe,EAAE;AACzB,YAAA,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE;;;IAInC,MAAM,GAAA;AACL,QAAA,QACC,CAAC,CAAA,IAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,WAAW,EAAA,EACtB,CAAA,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":["__stencil_proxyCustomElement","HTMLElement"],"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}\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AAkB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"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}
|
|
@@ -10,7 +10,7 @@ const TabContainer = /*@__PURE__*/ proxyCustomElement(class TabContainer extends
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h("div", { key: '
|
|
13
|
+
return (h("div", { key: '43e225204eb027cd3f5f2eae92c2271def487d03', class: 'relative flex h-8 w-full flex-col' }, h("div", { key: 'ef3ac1ad190bda824b77c945f67605b995f128a0', class: 'z-10 flex w-full gap-5 overflow-x-auto scrollbar-hide' }, h("slot", { key: 'ef54021a7401f93cfc9b850e84c4aac84aab507c' })), h("p-divider", { key: 'c584d7fcd4538c65993a07e39964146a2be6ad1c', class: 'absolute bottom-0 left-0 m-0 w-full' })));
|
|
14
14
|
}
|
|
15
15
|
static get style() { return tabContainerComponentCss; }
|
|
16
16
|
}, [1, "p-tab-container"]);
|
|
@@ -26,7 +26,7 @@ const TabItem = /*@__PURE__*/ proxyCustomElement(class TabItem extends H {
|
|
|
26
26
|
*/
|
|
27
27
|
active = false;
|
|
28
28
|
render() {
|
|
29
|
-
return (h("div", { key: '
|
|
29
|
+
return (h("div", { key: '8d17525daf6b9660dd94afd4fa9041db70cf630f', class: item({ active: this.active }) }, h("slot", { key: 'f1d51698f037d577418d77df9d71da3a488b3e22' })));
|
|
30
30
|
}
|
|
31
31
|
static get style() { return tabItemComponentCss; }
|
|
32
32
|
}, [1, "p-tab-item", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TableRowActionsContainer, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { T as TableRowActionsContainer, d as defineCustomElement$1 } from './p-DdK27Obl.js';
|
|
2
2
|
|
|
3
3
|
const PTableRowActionsContainer = TableRowActionsContainer;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -3,36 +3,36 @@ import { f as isMobile, t as tableColumSizesOptions } from './p-LsrP-Unv.js';
|
|
|
3
3
|
import { f as formatTranslation, g as getLocaleComponentStrings } from './p-DiJj8rmO.js';
|
|
4
4
|
import { f as floatingMenuContainerClass } from './p-DXsCtVm-.js';
|
|
5
5
|
import { c as cn } from './p-Cb5QxFb_.js';
|
|
6
|
-
import { d as defineCustomElement$c, a as defaultSize, b as defaultSizeOptions } from './p-
|
|
6
|
+
import { d as defineCustomElement$c, a as defaultSize, b as defaultSizeOptions } from './p-DQsUJhL8.js';
|
|
7
7
|
import { d as defineCustomElement$v } from './p-BEuvmIBQ.js';
|
|
8
8
|
import { d as defineCustomElement$u } from './p-MQ5NAuIf.js';
|
|
9
9
|
import { d as defineCustomElement$t } from './p-B-dtByez.js';
|
|
10
10
|
import { d as defineCustomElement$s } from './p-CEoo55FK.js';
|
|
11
|
-
import { d as defineCustomElement$r } from './p-
|
|
11
|
+
import { d as defineCustomElement$r } from './p-D2Em0Yy7.js';
|
|
12
12
|
import { d as defineCustomElement$q } from './p-D09jozUL.js';
|
|
13
13
|
import { d as defineCustomElement$p } from './p-DlFumKvb.js';
|
|
14
|
-
import { d as defineCustomElement$o } from './p-
|
|
15
|
-
import { d as defineCustomElement$n } from './p-
|
|
16
|
-
import { d as defineCustomElement$m } from './p-
|
|
14
|
+
import { d as defineCustomElement$o } from './p-CxHSXAkq.js';
|
|
15
|
+
import { d as defineCustomElement$n } from './p-CSMO4KRK.js';
|
|
16
|
+
import { d as defineCustomElement$m } from './p-CYGYOpps.js';
|
|
17
17
|
import { d as defineCustomElement$l } from './p-DJzH_A-R.js';
|
|
18
18
|
import { d as defineCustomElement$k } from './p-CmzpquGH.js';
|
|
19
|
-
import { d as defineCustomElement$j } from './p-
|
|
19
|
+
import { d as defineCustomElement$j } from './p-ZBndlSp5.js';
|
|
20
20
|
import { d as defineCustomElement$i } from './p-CQcp92mr.js';
|
|
21
21
|
import { d as defineCustomElement$h } from './p-BpWSyLrS.js';
|
|
22
22
|
import { d as defineCustomElement$g } from './p-BFBKoX9I.js';
|
|
23
|
-
import { d as defineCustomElement$f } from './p-
|
|
24
|
-
import { d as defineCustomElement$e } from './p-
|
|
25
|
-
import { d as defineCustomElement$d } from './p-
|
|
26
|
-
import { d as defineCustomElement$b } from './p-
|
|
27
|
-
import { d as defineCustomElement$a } from './p-
|
|
28
|
-
import { d as defineCustomElement$9 } from './p-
|
|
29
|
-
import { d as defineCustomElement$8 } from './p-
|
|
30
|
-
import { d as defineCustomElement$7 } from './p-
|
|
31
|
-
import { d as defineCustomElement$6 } from './p-
|
|
32
|
-
import { d as defineCustomElement$5 } from './p-
|
|
33
|
-
import { d as defineCustomElement$4 } from './p-
|
|
34
|
-
import { d as defineCustomElement$3 } from './p-
|
|
35
|
-
import { d as defineCustomElement$2 } from './p-
|
|
23
|
+
import { d as defineCustomElement$f } from './p-tf3ZTq-9.js';
|
|
24
|
+
import { d as defineCustomElement$e } from './p-BmuXuYR6.js';
|
|
25
|
+
import { d as defineCustomElement$d } from './p-DH9lFbRX.js';
|
|
26
|
+
import { d as defineCustomElement$b } from './p-CUgIFdxM.js';
|
|
27
|
+
import { d as defineCustomElement$a } from './p-olyt1_RK.js';
|
|
28
|
+
import { d as defineCustomElement$9 } from './p-CKc3SL1J.js';
|
|
29
|
+
import { d as defineCustomElement$8 } from './p-BPkSg0bc.js';
|
|
30
|
+
import { d as defineCustomElement$7 } from './p-oN2NV1VP.js';
|
|
31
|
+
import { d as defineCustomElement$6 } from './p-BELUs4d5.js';
|
|
32
|
+
import { d as defineCustomElement$5 } from './p-CzmLJq-j.js';
|
|
33
|
+
import { d as defineCustomElement$4 } from './p-p2WG_YKz.js';
|
|
34
|
+
import { d as defineCustomElement$3 } from './p-DdK27Obl.js';
|
|
35
|
+
import { d as defineCustomElement$2 } from './p-DNuBtBUG.js';
|
|
36
36
|
|
|
37
37
|
const tableComponentCss = "*{box-sizing:border-box}.static{position:static!important}.fixed{position:fixed!important}.z-0{z-index:0!important}.my-16{margin-bottom:4rem!important;margin-top:4rem!important}.mb-8{margin-bottom:2rem!important}.flex{display:flex!important}.table{display:table!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-6{width:1.5rem!important}.flex-1{flex:1 1 0%!important}.flex-shrink-0{flex-shrink:0!important}.resize{resize:both!important}.flex-col{flex-direction:column!important}.self-center{align-self:center!important}.rounded{border-radius:.25rem!important}.opacity-0{opacity:0!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";
|
|
38
38
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Host } from './p-tdjn65Lz.js';
|
|
2
|
-
import { d as defineCustomElement$2, a as defaultSize, b as defaultSizeOptions } from './p-
|
|
2
|
+
import { d as defineCustomElement$2, a as defaultSize, b as defaultSizeOptions } from './p-DQsUJhL8.js';
|
|
3
3
|
import { c as cva } from './p-4hDfHOnN.js';
|
|
4
4
|
import { d as defineCustomElement$a } from './p-B-dtByez.js';
|
|
5
5
|
import { d as defineCustomElement$9 } from './p-CEoo55FK.js';
|
|
6
|
-
import { d as defineCustomElement$8 } from './p-
|
|
6
|
+
import { d as defineCustomElement$8 } from './p-D2Em0Yy7.js';
|
|
7
7
|
import { d as defineCustomElement$7 } from './p-D09jozUL.js';
|
|
8
8
|
import { d as defineCustomElement$6 } from './p-DlFumKvb.js';
|
|
9
9
|
import { d as defineCustomElement$5 } from './p-CQcp92mr.js';
|
|
10
|
-
import { d as defineCustomElement$4 } from './p-
|
|
11
|
-
import { d as defineCustomElement$3 } from './p-
|
|
12
|
-
import { d as defineCustomElement$1 } from './p-
|
|
10
|
+
import { d as defineCustomElement$4 } from './p-BmuXuYR6.js';
|
|
11
|
+
import { d as defineCustomElement$3 } from './p-DH9lFbRX.js';
|
|
12
|
+
import { d as defineCustomElement$1 } from './p-CUgIFdxM.js';
|
|
13
13
|
|
|
14
14
|
const paginationComponentCss = "*{box-sizing:border-box}.static{position:static!important}.mx-0{margin-left:0!important;margin-right:0!important}.flex{display:flex!important}.hidden{display:none!important}.h-4{height:1rem!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}.rounded-full{border-radius:9999px!important}.border{border-width:1px!important}.border-off-white-700{--tw-border-opacity:1!important;border-color:rgb(222 219 213/var(--tw-border-opacity,1))!important}.bg-off-white-300{--tw-bg-opacity:1!important;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))!important}.p-1{padding:.25rem!important}.text-human-beige-700{--tw-text-opacity:1!important;color:rgb(231 216 203/var(--tw-text-opacity,1))!important}";
|
|
15
15
|
|
|
@@ -78,12 +78,12 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends H {
|
|
|
78
78
|
_hasPaginationPages = true;
|
|
79
79
|
render() {
|
|
80
80
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: 'dad75f3cb1a1bb3ceb52371f3f9b336c55bd0968', class: pagination({
|
|
82
82
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
83
83
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
84
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '
|
|
84
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '84c04d7410f17ee51584a2a99c97269111f10925' }, h("p-pagination-size", { key: 'c6db1b39dca87fb29c03898bd9e0edde9a562566', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
85
85
|
this.hideOnSinglePage &&
|
|
86
|
-
this._hasPaginationPages && (h("p-divider", { key: '
|
|
86
|
+
this._hasPaginationPages && (h("p-divider", { key: '1c4c340bcf7cae54f823ef9ac0a47e217adfb5e4', variant: 'vertical', class: 'mx-0 h-4 text-human-beige-700' })))), this.enablePaginationPages && (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 }) => {
|
|
87
87
|
this._hasPaginationPages = detail > 1;
|
|
88
88
|
this.pagesChange.emit(detail);
|
|
89
89
|
} }))));
|
|
@@ -172,6 +172,6 @@ function defineCustomElement() {
|
|
|
172
172
|
defineCustomElement();
|
|
173
173
|
|
|
174
174
|
export { Pagination as P, defineCustomElement as d };
|
|
175
|
-
//# sourceMappingURL=p-
|
|
175
|
+
//# sourceMappingURL=p-tf3ZTq-9.js.map
|
|
176
176
|
|
|
177
|
-
//# sourceMappingURL=p-
|
|
177
|
+
//# sourceMappingURL=p-tf3ZTq-9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-
|
|
1
|
+
{"file":"p-tf3ZTq-9.js","mappings":";;;;;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,stBAAstB;;ACarvB,MAAM,UAAU,GAAG,GAAG,CACrB;IACC,cAAc;IACd,oBAAoB;IACpB,cAAc;IACd,8CAA8C;IAC9C,KAAK;CACL,EACD;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,MAAM,EAAE;AACP,YAAA,KAAK,EAAE,MAAM;AACb,YAAA,IAAI,EAAE,QAAQ;AACd,SAAA;AACD,KAAA;AACD,CAAA,CACD;MAMY,UAAU,iBAAAA,kBAAA,CAAA,MAAA,UAAA,SAAAC,CAAA,CAAA;;;;;;;;AACtB;;AAEG;IACK,gBAAgB,GAAY,IAAI;AAExC;;AAEG;IACK,oBAAoB,GAAY,IAAI;AAE5C;;AAEG;IACK,qBAAqB,GAAY,IAAI;AAE7C;;AAEG;IACqC,IAAI,GAAW,CAAC;AAExD;;AAEG;AACK,IAAA,KAAK;AAEb;;AAEG;IACK,QAAQ,GAAW,WAAW;AAEtC;;AAEG;IACK,eAAe,GAAa,kBAAkB;AAEtD;;AAEG;AAIH,IAAA,UAAU;AAEV;;AAEG;AAIH,IAAA,cAAc;AAEd;;AAEG;AACwB,IAAA,WAAW;IAErB,mBAAmB,GAAG,IAAI;IAE3C,MAAM,GAAA;AACL,QAAA,MAAM,kBAAkB,GACvB,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,eAAe,GAAG,CAAC,CAA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AAW,CAAC,IAAI,CAAC,MAAM,CAAC;AAC9B,aAAC,EACA,CAAA,CACF,CACK;;AAID,IAAA,eAAe,CAAC,CAAU,EAAA;QACjC,IAAI,CAAC,CAAC,EAAE;YACP;;AAGD,QAAA,IAAI,CAAC,QAAQ,GAAG,CAAC;QACjB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/pagination/pagination/pagination.component.css?tag=p-pagination","src/components/molecules/pagination/pagination/pagination.component.tsx"],"sourcesContent":["","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\tFragment,\n\th,\n\tHost,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { defaultSize, defaultSizeOptions } from '../size/constants';\nimport { cva } from 'class-variance-authority';\n\nconst pagination = cva(\n\t[\n\t\t'p-pagination',\n\t\t'items-center gap-2',\n\t\t'rounded-full',\n\t\t'bg-off-white-300 border border-off-white-700',\n\t\t'p-1',\n\t],\n\t{\n\t\tvariants: {\n\t\t\thidden: {\n\t\t\t\tfalse: 'flex',\n\t\t\t\ttrue: 'hidden',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-pagination',\n\tstyleUrl: 'pagination.component.css',\n})\nexport class Pagination {\n\t/**\n\t * Wether to hide when there is only 1 page available\n\t */\n\t@Prop() hideOnSinglePage: boolean = true;\n\n\t/**\n\t * Wether to enable pagination size select\n\t */\n\t@Prop() enablePaginationSize: boolean = true;\n\n\t/**\n\t * Wether to enable pagination pages\n\t */\n\t@Prop() enablePaginationPages: boolean = true;\n\n\t/**\n\t * The current page\n\t */\n\t@Prop({ mutable: true, reflect: true }) page: number = 1;\n\n\t/**\n\t * The total amount of items\n\t */\n\t@Prop() total!: number;\n\n\t/**\n\t * The amount of items per page\n\t */\n\t@Prop() pageSize: number = defaultSize;\n\n\t/**\n\t * The options for the page size\n\t */\n\t@Prop() pageSizeOptions: number[] = defaultSizeOptions;\n\n\t/**\n\t * Event whenever the page changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tpageChange: EventEmitter<number>;\n\n\t/**\n\t * Event whenever the page changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tpageSizeChange: EventEmitter<number>;\n\n\t/**\n\t * The pages that were generated\n\t */\n\t@Event({ bubbles: false }) pagesChange: EventEmitter<number>;\n\n\t@State() private _hasPaginationPages = true;\n\n\trender() {\n\t\tconst hidePageSizeSelect =\n\t\t\tthis.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={pagination({\n\t\t\t\t\thidden:\n\t\t\t\t\t\t(hidePageSizeSelect && !this._hasPaginationPages) ||\n\t\t\t\t\t\t(!this.enablePaginationSize && !this.enablePaginationPages),\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{this.enablePaginationPages && this.enablePaginationSize && (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<p-pagination-size\n\t\t\t\t\t\t\thidden={hidePageSizeSelect}\n\t\t\t\t\t\t\tsize={this.pageSize}\n\t\t\t\t\t\t\tsizeOptions={this.pageSizeOptions}\n\t\t\t\t\t\t\tonSizeChange={({ detail }) => this._changePageSize(detail)}\n\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t{!hidePageSizeSelect &&\n\t\t\t\t\t\t\tthis.hideOnSinglePage &&\n\t\t\t\t\t\t\tthis._hasPaginationPages && (\n\t\t\t\t\t\t\t\t<p-divider\n\t\t\t\t\t\t\t\t\tvariant='vertical'\n\t\t\t\t\t\t\t\t\tclass='mx-0 h-4 text-human-beige-700'\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t</Fragment>\n\t\t\t\t)}\n\n\t\t\t\t{this.enablePaginationPages && (\n\t\t\t\t\t<p-pagination-pages\n\t\t\t\t\t\tpageSize={this.pageSize}\n\t\t\t\t\t\ttotal={this.total}\n\t\t\t\t\t\tpage={this.page}\n\t\t\t\t\t\thideOnSinglePage={this.hideOnSinglePage}\n\t\t\t\t\t\tonPageChange={({ detail }) => this.pageChange.emit(detail)}\n\t\t\t\t\t\tonPagesChange={({ detail }) => {\n\t\t\t\t\t\t\tthis._hasPaginationPages = detail > 1;\n\t\t\t\t\t\t\tthis.pagesChange.emit(detail);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _changePageSize(s?: number) {\n\t\tif (!s) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.pageSize = s;\n\t\tthis.pageSizeChange.emit(this.pageSize);\n\t}\n}\n"],"version":3}
|
|
@@ -42,9 +42,9 @@ const ToastContainer = /*@__PURE__*/ proxyCustomElement(class ToastContainer ext
|
|
|
42
42
|
*/
|
|
43
43
|
placement = 'top-end';
|
|
44
44
|
render() {
|
|
45
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: '97a53b6f33ed71dbf5976838eb114819fd393b63', class: container({
|
|
46
46
|
placement: this.placement,
|
|
47
|
-
}) }, h("slot", { key: '
|
|
47
|
+
}) }, h("slot", { key: 'c50b78409fd2c1d6a78f7c9099a9323abe33f315' })));
|
|
48
48
|
}
|
|
49
49
|
static get style() { return toastContainerComponentCss; }
|
|
50
50
|
}, [1, "p-toast-container", {
|
|
@@ -60,7 +60,7 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends H {
|
|
|
60
60
|
*/
|
|
61
61
|
action;
|
|
62
62
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '94bb3b8bb8035eec6dc12deccf040279c805e644', onClick: () => this._onClick() }, h("div", { key: '82686867da2cb5500ad5d21410e319cf642504a8', class: indicator({ variant: this.variant }) }), h("div", { key: '37e8453d196f3f737f9b9ba125c5a021b8256162', class: content() }, h("div", { key: '04e856865d3ac8c4bd0bc87a4b84e7b85654c05f', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '93c3d8a2a364d5f5ba62159dd727ec9c19b58217', 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: '491a7fe9c6619a0cfbf2957abaf5de2c9cb690b9', 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: '07c30b20730769fbf5bd5c7ba7d02d094d391f3e', variant: 'transparent', iconOnly: true, icon: this.actionIcon, iconFlip: this.actionIconFlip, iconRotate: this.actionIconRotate, class: 'flex-shrink-0' })))));
|
|
64
64
|
}
|
|
65
65
|
_onClick() {
|
|
66
66
|
if (this.enableAction) {
|
|
@@ -95,11 +95,11 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends H {
|
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
97
|
const id = this.id?.length ? this.id : this._nonce;
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: '0a065754deda99b08f8ae159cd4e8087519fb6cf', class: 'p-checkbox' }, h("label", { key: '61fb7552c58235319632f3923fe7622c4d1f1f83', htmlFor: id, class: 'flex items-center justify-start gap-2 text-black-teal' }, h("div", { key: 'cbdb173120f6c8e7d8cd69dfba0f71b8efc409d8', class: 'group relative flex flex-shrink-0 items-center' }, h("input", { key: '50f7c7b13108c1fa423058dbd893e316627a0ae3', class: checkbox({
|
|
99
99
|
disabled: asBoolean(this.disabled),
|
|
100
|
-
}), type: 'checkbox', id: id, name: this.name, required: this.required, checked: !!this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '
|
|
100
|
+
}), type: 'checkbox', id: id, name: this.name, required: this.required, checked: !!this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), h("div", { key: '5469b37cb866cabd63eb4124eba543b2eaadff43', class: circle({
|
|
101
101
|
disabled: this.disabled,
|
|
102
|
-
}) })), h("slot", { key: '
|
|
102
|
+
}) })), h("slot", { key: '2d5fe2783703211a3e055cb2787da2f4dd1b6836' }))));
|
|
103
103
|
}
|
|
104
104
|
_onChange(ev) {
|
|
105
105
|
if (asBoolean(this.disabled)) {
|
|
@@ -163,6 +163,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
163
163
|
return import(
|
|
164
164
|
/* webpackMode: "lazy" */
|
|
165
165
|
'./p-layout.entry.js').then(processMod, consoleError);
|
|
166
|
+
case 'p-listing':
|
|
167
|
+
return import(
|
|
168
|
+
/* webpackMode: "lazy" */
|
|
169
|
+
'./p-listing.entry.js').then(processMod, consoleError);
|
|
170
|
+
case 'p-listing-item':
|
|
171
|
+
return import(
|
|
172
|
+
/* webpackMode: "lazy" */
|
|
173
|
+
'./p-listing-item.entry.js').then(processMod, consoleError);
|
|
166
174
|
case 'p-modal':
|
|
167
175
|
return import(
|
|
168
176
|
/* webpackMode: "lazy" */
|
|
@@ -251,6 +259,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
251
259
|
return import(
|
|
252
260
|
/* webpackMode: "lazy" */
|
|
253
261
|
'./p-empty-state_9.entry.js').then(processMod, consoleError);
|
|
262
|
+
case 'p-listing-line':
|
|
263
|
+
return import(
|
|
264
|
+
/* webpackMode: "lazy" */
|
|
265
|
+
'./p-listing-line.entry.js').then(processMod, consoleError);
|
|
254
266
|
case 'p-modal-body_4':
|
|
255
267
|
return import(
|
|
256
268
|
/* webpackMode: "lazy" */
|