@paperless/core 3.17.3 → 3.19.0
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/dist/assets/icons/time/history.svg +12 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/{paperless/p-be576419.entry.js → build/p-0273292b.entry.js} +1 -1
- package/dist/{paperless/p-0aa7e5d2.entry.js → build/p-037f42f8.entry.js} +1 -1
- package/dist/build/{p-fbabae11.entry.js → p-062847ab.entry.js} +1 -1
- package/dist/{paperless/p-fca492f6.entry.js → build/p-06a28485.entry.js} +1 -1
- package/dist/build/{p-3557f8b1.entry.js → p-0cea7ced.entry.js} +1 -1
- package/dist/build/{p-3376af98.entry.js → p-0e224ef5.entry.js} +1 -1
- package/dist/{paperless/p-9c440af8.entry.js → build/p-16ba08a8.entry.js} +2 -2
- package/dist/build/{p-791d33e5.entry.js → p-1c74a638.entry.js} +1 -1
- package/dist/build/{p-a00541cc.entry.js → p-2db23f7c.entry.js} +1 -1
- package/dist/build/{p-2907111a.entry.js → p-38fdeb6a.entry.js} +1 -1
- package/dist/build/{p-3fb95d2b.entry.js → p-401dc066.entry.js} +1 -1
- package/dist/{paperless/p-11d65b3d.entry.js → build/p-474b1c2a.entry.js} +1 -1
- package/dist/build/{p-344ab157.entry.js → p-4a15aeb1.entry.js} +1 -1
- package/dist/{paperless/p-66eaca48.entry.js → build/p-4afb2057.entry.js} +1 -1
- package/dist/{paperless/p-41326183.entry.js → build/p-4d1490bb.entry.js} +1 -1
- package/dist/build/{p-c5085825.entry.js → p-5f56c9d8.entry.js} +1 -1
- package/dist/{paperless/p-9c4c942e.entry.js → build/p-64ddcf35.entry.js} +1 -1
- package/dist/build/{p-e1a16ec5.entry.js → p-6ae81fb4.entry.js} +1 -1
- package/dist/build/{p-fa7c3951.entry.js → p-715c9e03.entry.js} +1 -1
- package/dist/{paperless/p-7afccf96.entry.js → build/p-743b2cbf.entry.js} +1 -1
- package/dist/build/{p-a1a4a39e.entry.js → p-74d930a5.entry.js} +1 -1
- package/dist/{paperless/p-6dff428b.entry.js → build/p-79aaceba.entry.js} +1 -1
- package/dist/build/{p-2e850d9d.entry.js → p-852141f3.entry.js} +1 -1
- package/dist/build/{p-7fa2bbee.entry.js → p-8f669fe3.entry.js} +1 -1
- package/dist/{paperless/p-bec66e8f.entry.js → build/p-9909d12e.entry.js} +1 -1
- package/dist/{paperless/p-9a9f0cd0.entry.js → build/p-9f837fff.entry.js} +1 -1
- package/dist/{paperless/p-C8Ju8eG_.js → build/p-C8RpJKnN.js} +1 -1
- package/dist/build/{p-6XOzWrsN.js → p-R-AUQmDD.js} +1 -1
- package/dist/build/{p-043b91f5.entry.js → p-a29292dd.entry.js} +1 -1
- package/dist/build/{p-bdda2ffc.entry.js → p-ab95bbbe.entry.js} +1 -1
- package/dist/build/{p-2e61871a.entry.js → p-af902e1e.entry.js} +1 -1
- package/dist/build/{p-186454b1.entry.js → p-bae636cb.entry.js} +1 -1
- package/dist/build/{p-c6056657.entry.js → p-bafbc266.entry.js} +1 -1
- package/dist/build/p-c6e99b4e.entry.js +1 -0
- package/dist/build/{p-282b2776.entry.js → p-c7eb064e.entry.js} +1 -1
- package/dist/build/p-c9afeeb8.entry.js +1 -0
- package/dist/build/{p-5e4343f3.entry.js → p-d2240c4f.entry.js} +1 -1
- package/dist/build/{p-9232a310.entry.js → p-dc368259.entry.js} +1 -1
- package/dist/{paperless/p-faad66c1.entry.js → build/p-dca7f25c.entry.js} +1 -1
- package/dist/build/{p-7fb843e7.entry.js → p-e74337b8.entry.js} +1 -1
- package/dist/{paperless/p-34b81a42.entry.js → build/p-e756ae7b.entry.js} +1 -1
- package/dist/build/{p-a4a66b93.entry.js → p-ec3e77cd.entry.js} +1 -1
- package/dist/build/p-fcd8d2ec.js +1 -0
- package/dist/build/p-kefpJPJT.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{icons-DIczdKrP.js → icons-DOXVTo-k.js} +16 -0
- package/dist/cjs/index-BGtpSJv_.js +8 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +2 -2
- package/dist/cjs/p-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/p-badge_3.cjs.entry.js +2 -2
- package/dist/cjs/p-button_3.cjs.entry.js +3 -3
- package/dist/cjs/p-calendar.cjs.entry.js +2 -2
- package/dist/cjs/p-card-body.cjs.entry.js +2 -2
- package/dist/cjs/p-card-container.cjs.entry.js +2 -2
- package/dist/cjs/p-card-header.cjs.entry.js +2 -2
- package/dist/cjs/p-checkbox_3.cjs.entry.js +2 -2
- package/dist/cjs/p-cropper.cjs.entry.js +2 -2
- package/dist/cjs/p-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/p-divider.cjs.entry.js +2 -2
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +2 -2
- package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +2 -2
- package/dist/cjs/p-dropzone.cjs.entry.js +2 -2
- package/dist/cjs/p-empty-state_8.cjs.entry.js +8 -8
- package/dist/cjs/p-field_3.cjs.entry.js +2 -2
- package/dist/cjs/p-floating-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/p-info-panel.cjs.entry.js +2 -2
- package/dist/cjs/p-label.cjs.entry.js +2 -2
- package/dist/cjs/p-listing-item.cjs.entry.js +2 -2
- package/dist/cjs/p-listing-line.cjs.entry.js +2 -2
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-modal-body_4.cjs.entry.js +2 -2
- package/dist/cjs/p-navbar.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-section.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-title.cjs.entry.js +2 -2
- package/dist/cjs/p-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/p-profile.cjs.entry.js +2 -2
- package/dist/cjs/p-radio.cjs.entry.js +2 -2
- package/dist/cjs/p-range.cjs.entry.js +2 -2
- package/dist/cjs/p-select.cjs.entry.js +2 -2
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +2 -2
- package/dist/cjs/p-submenu-item.cjs.entry.js +44 -0
- package/dist/cjs/p-submenu.cjs.entry.js +138 -0
- package/dist/cjs/p-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/p-toast.cjs.entry.js +3 -3
- package/dist/cjs/p-toggle.cjs.entry.js +2 -2
- package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/cjs/{state-DM8SZBNO.js → state-iDWWYScu.js} +1 -1
- package/dist/cjs/{themed-host.component-BeeT9Ite.js → themed-host.component-B64rmI9X.js} +1 -1
- package/dist/collection/assets/icons/time/history.svg +12 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/atoms/card/header/card-header.component.js +1 -1
- package/dist/collection/components/atoms/dropdown-menu/item/dropdown-menu-item.component.js +1 -1
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +1 -1
- package/dist/collection/components/atoms/listing/item/listing-item.component.js +1 -1
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +1 -1
- package/dist/collection/components/helpers/table/row-action/table-row-action.component.js +1 -1
- package/dist/collection/components/molecules/accordion/accordion.component.js +1 -1
- package/dist/collection/components/molecules/button/button.component.js +1 -1
- package/dist/collection/components/molecules/dropzone/dropzone.component.js +1 -1
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +1 -1
- package/dist/collection/components/molecules/field/field/field.component.js +1 -1
- package/dist/collection/components/molecules/label/label.component.js +1 -1
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +1 -1
- package/dist/collection/components/molecules/select/select.component.js +2 -2
- package/dist/collection/components/molecules/submenu/item/submenu-item.component.css +1 -0
- package/dist/collection/components/molecules/submenu/item/submenu-item.component.js +94 -0
- package/dist/collection/components/molecules/submenu/item/submenu-item.stories.js +20 -0
- package/dist/collection/components/molecules/submenu/menu/submenu.component.css +1 -0
- package/dist/collection/components/molecules/submenu/menu/submenu.component.js +265 -0
- package/dist/collection/components/molecules/submenu/menu/submenu.stories.js +35 -0
- 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/header/table-header.component.js +1 -1
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +2 -2
- package/dist/collection/components/organisms/listing/listing.component.js +2 -2
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/components/organisms/table/table.component.js +1 -1
- package/dist/collection/state.js +1 -1
- package/dist/collection/utils/icons.js +3 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Dkr0Ta5m.js → p-1fwqR3M8.js} +1 -1
- package/dist/components/{p-CTI55iY5.js → p-3RpDMSup.js} +1 -1
- package/dist/components/{p-GYxEYTaZ.js → p-5lCEImmh.js} +1 -1
- package/dist/components/{p-BEo__1-X.js → p-7126PGGO.js} +1 -1
- package/dist/components/p-7Rfc1ojx.js +1 -0
- package/dist/components/{p-DpmybwXO.js → p-A3pxcjAg.js} +1 -1
- package/dist/components/{p-BBiGYjKk.js → p-Af4nLBaC.js} +1 -1
- package/dist/components/{p-C1Z78Vu0.js → p-B14dOrqN.js} +1 -1
- package/dist/components/{p-DM-VvZXT.js → p-B2CXe_gV.js} +1 -1
- package/dist/components/{p-BANLejQ8.js → p-BDLTMUwe.js} +1 -1
- package/dist/components/{p-B-YBFRbB.js → p-BFwIDu60.js} +1 -1
- package/dist/components/{p-C7rLlb8m.js → p-BeiwMWEL.js} +1 -1
- package/dist/components/{p-C9B5DTYx.js → p-Bi9qGen-.js} +1 -1
- package/dist/components/p-BkR9S859.js +1 -0
- package/dist/components/{p-Da9Ao_Ve.js → p-BmTrLfTO.js} +1 -1
- package/dist/components/{p-D5P9pJhK.js → p-BoWT9yqt.js} +1 -1
- package/dist/components/{p-D3wJam1N.js → p-Bwd_xz-V.js} +1 -1
- package/dist/components/{p-Bk5wUwrW.js → p-ByVFnBJQ.js} +1 -1
- package/dist/components/{p-Dz2_k8-X.js → p-BzL5UoRE.js} +1 -1
- package/dist/components/{p-BNMkjAgS.js → p-C216JB0f.js} +1 -1
- package/dist/{build/p-C8Ju8eG_.js → components/p-C8RpJKnN.js} +1 -1
- package/dist/components/{p-mLlgASil.js → p-C9okGmiF.js} +1 -1
- package/dist/components/{p-DU-stXqd.js → p-CDu9AR8v.js} +1 -1
- package/dist/components/{p-BSCgVJQ9.js → p-CLRy-4ol.js} +1 -1
- package/dist/components/{p-SUrtpFuE.js → p-CQbdPtw3.js} +1 -1
- package/dist/components/{p-CQ6JEZg6.js → p-CipXZt6g.js} +1 -1
- package/dist/components/{p-Dv2ILejF.js → p-CyuT-Yjz.js} +1 -1
- package/dist/components/{p-CjhbgGH8.js → p-CzaAM-R9.js} +1 -1
- package/dist/components/p-DhdlSO_S.js +1 -0
- package/dist/components/{p-xkXCC7GI.js → p-Dor8zrST.js} +1 -1
- package/dist/components/{p-CRBPo2To.js → p-DsbU_tk9.js} +1 -1
- package/dist/components/{p-B6hIbVwt.js → p-DwH51xRQ.js} +1 -1
- package/dist/components/{p-DHJ6_2xS.js → p-E-Q2KO4x.js} +1 -1
- package/dist/components/{p-D8faiybE.js → p-FOyqA_qR.js} +1 -1
- package/dist/components/{p-B91CxVcz.js → p-IpgRKSDU.js} +1 -1
- package/dist/components/{p-CtnPrlBW.js → p-Rp5EpePo.js} +1 -1
- package/dist/components/{p-BOJwTddb.js → p-Sl3w6Zuw.js} +1 -1
- package/dist/components/{p-7-twKt34.js → p-WnyHedyk.js} +1 -1
- package/dist/components/{p-C-ljhNrW.js → p-aF3D0pOv.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-backdrop.js +1 -1
- package/dist/components/p-badge.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-body.js +1 -1
- package/dist/components/p-card-container.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-divider.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 +1 -1
- package/dist/components/p-dropdown-menu-container.js +1 -1
- package/dist/components/p-dropdown-menu-item.js +1 -1
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-dropzone.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-listing-item.js +1 -1
- package/dist/components/p-listing-line.js +1 -1
- package/dist/components/p-listing.js +1 -1
- package/dist/components/p-loader.js +1 -1
- package/dist/components/p-modal-body.js +1 -1
- package/dist/components/p-modal-container.js +1 -1
- package/dist/components/p-modal-footer.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +1 -1
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-navigation-title.js +1 -1
- package/dist/components/{p-COuYu8I6.js → p-nh0qWjvv.js} +1 -1
- package/dist/components/{p-Dp4CjRib.js → p-nr6mSWVU.js} +1 -1
- package/dist/components/{p-D6g8cYWI.js → p-p5xtufj9.js} +1 -1
- package/dist/components/p-pagination-pages-item.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-radio.js +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-segment-container.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper-line.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-submenu-item.d.ts +11 -0
- package/dist/components/p-submenu-item.js +1 -0
- package/dist/components/p-submenu.d.ts +11 -0
- package/dist/components/p-submenu.js +1 -0
- 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-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 +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/components/{p-C0cLQxQE.js → p-uJi0kAXM.js} +1 -1
- package/dist/components/{p-1HCkK9Pf.js → p-uMOTwHO0.js} +1 -1
- package/dist/esm/{icons-C8Ju8eG_.js → icons-C8RpJKnN.js} +16 -0
- package/dist/esm/index-yFtRjnrU.js +8 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-accordion.entry.js +2 -2
- package/dist/esm/p-backdrop.entry.js +2 -2
- package/dist/esm/p-badge_3.entry.js +2 -2
- package/dist/esm/p-button_3.entry.js +3 -3
- package/dist/esm/p-calendar.entry.js +2 -2
- package/dist/esm/p-card-body.entry.js +2 -2
- package/dist/esm/p-card-container.entry.js +2 -2
- package/dist/esm/p-card-header.entry.js +2 -2
- package/dist/esm/p-checkbox_3.entry.js +2 -2
- package/dist/esm/p-cropper.entry.js +2 -2
- package/dist/esm/p-datepicker.entry.js +1 -1
- package/dist/esm/p-divider.entry.js +2 -2
- package/dist/esm/p-drawer-body_3.entry.js +2 -2
- package/dist/esm/p-dropdown-menu-item_2.entry.js +2 -2
- package/dist/esm/p-dropzone.entry.js +2 -2
- package/dist/esm/p-empty-state_8.entry.js +8 -8
- package/dist/esm/p-field_3.entry.js +2 -2
- package/dist/esm/p-floating-menu-item.entry.js +2 -2
- package/dist/esm/p-info-panel.entry.js +2 -2
- package/dist/esm/p-label.entry.js +2 -2
- package/dist/esm/p-listing-item.entry.js +2 -2
- package/dist/esm/p-listing-line.entry.js +2 -2
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-modal-body_4.entry.js +2 -2
- package/dist/esm/p-navbar.entry.js +3 -3
- package/dist/esm/p-navigation-item.entry.js +2 -2
- package/dist/esm/p-navigation-section.entry.js +2 -2
- package/dist/esm/p-navigation-title.entry.js +2 -2
- package/dist/esm/p-pagination_3.entry.js +2 -2
- package/dist/esm/p-profile.entry.js +2 -2
- package/dist/esm/p-radio.entry.js +2 -2
- package/dist/esm/p-range.entry.js +2 -2
- package/dist/esm/p-select.entry.js +2 -2
- package/dist/esm/p-stepper-item_2.entry.js +2 -2
- package/dist/esm/p-submenu-item.entry.js +42 -0
- package/dist/esm/p-submenu.entry.js +136 -0
- package/dist/esm/p-tab-item.entry.js +2 -2
- package/dist/esm/p-toast.entry.js +3 -3
- package/dist/esm/p-toggle.entry.js +2 -2
- package/dist/esm/p-tooltip.entry.js +2 -2
- package/dist/esm/paperless.js +1 -1
- package/dist/esm/{state-BJbOyUuL.js → state-CbdSr-Je.js} +1 -1
- package/dist/esm/{themed-host.component-CUNsbvgN.js → themed-host.component-DQK0_ZY1.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/{build/p-be576419.entry.js → paperless/p-0273292b.entry.js} +1 -1
- package/dist/{build/p-0aa7e5d2.entry.js → paperless/p-037f42f8.entry.js} +1 -1
- package/dist/paperless/{p-fbabae11.entry.js → p-062847ab.entry.js} +1 -1
- package/dist/{build/p-fca492f6.entry.js → paperless/p-06a28485.entry.js} +1 -1
- package/dist/paperless/{p-3557f8b1.entry.js → p-0cea7ced.entry.js} +1 -1
- package/dist/paperless/{p-3376af98.entry.js → p-0e224ef5.entry.js} +1 -1
- package/dist/{build/p-9c440af8.entry.js → paperless/p-16ba08a8.entry.js} +2 -2
- package/dist/paperless/{p-791d33e5.entry.js → p-1c74a638.entry.js} +1 -1
- package/dist/paperless/{p-a00541cc.entry.js → p-2db23f7c.entry.js} +1 -1
- package/dist/paperless/{p-2907111a.entry.js → p-38fdeb6a.entry.js} +1 -1
- package/dist/paperless/{p-3fb95d2b.entry.js → p-401dc066.entry.js} +1 -1
- package/dist/{build/p-11d65b3d.entry.js → paperless/p-474b1c2a.entry.js} +1 -1
- package/dist/paperless/{p-344ab157.entry.js → p-4a15aeb1.entry.js} +1 -1
- package/dist/{build/p-66eaca48.entry.js → paperless/p-4afb2057.entry.js} +1 -1
- package/dist/{build/p-41326183.entry.js → paperless/p-4d1490bb.entry.js} +1 -1
- package/dist/paperless/{p-c5085825.entry.js → p-5f56c9d8.entry.js} +1 -1
- package/dist/{build/p-9c4c942e.entry.js → paperless/p-64ddcf35.entry.js} +1 -1
- package/dist/paperless/{p-e1a16ec5.entry.js → p-6ae81fb4.entry.js} +1 -1
- package/dist/paperless/{p-fa7c3951.entry.js → p-715c9e03.entry.js} +1 -1
- package/dist/{build/p-7afccf96.entry.js → paperless/p-743b2cbf.entry.js} +1 -1
- package/dist/paperless/{p-a1a4a39e.entry.js → p-74d930a5.entry.js} +1 -1
- package/dist/{build/p-6dff428b.entry.js → paperless/p-79aaceba.entry.js} +1 -1
- package/dist/paperless/{p-2e850d9d.entry.js → p-852141f3.entry.js} +1 -1
- package/dist/paperless/{p-7fa2bbee.entry.js → p-8f669fe3.entry.js} +1 -1
- package/dist/{build/p-bec66e8f.entry.js → paperless/p-9909d12e.entry.js} +1 -1
- package/dist/{build/p-9a9f0cd0.entry.js → paperless/p-9f837fff.entry.js} +1 -1
- package/dist/{components/p-C8Ju8eG_.js → paperless/p-C8RpJKnN.js} +1 -1
- package/dist/paperless/{p-6XOzWrsN.js → p-R-AUQmDD.js} +1 -1
- package/dist/paperless/{p-043b91f5.entry.js → p-a29292dd.entry.js} +1 -1
- package/dist/paperless/{p-bdda2ffc.entry.js → p-ab95bbbe.entry.js} +1 -1
- package/dist/paperless/{p-2e61871a.entry.js → p-af902e1e.entry.js} +1 -1
- package/dist/paperless/{p-186454b1.entry.js → p-bae636cb.entry.js} +1 -1
- package/dist/paperless/{p-c6056657.entry.js → p-bafbc266.entry.js} +1 -1
- package/dist/paperless/p-c6e99b4e.entry.js +1 -0
- package/dist/paperless/{p-282b2776.entry.js → p-c7eb064e.entry.js} +1 -1
- package/dist/paperless/p-c9afeeb8.entry.js +1 -0
- package/dist/paperless/{p-5e4343f3.entry.js → p-d2240c4f.entry.js} +1 -1
- package/dist/paperless/{p-9232a310.entry.js → p-dc368259.entry.js} +1 -1
- package/dist/{build/p-faad66c1.entry.js → paperless/p-dca7f25c.entry.js} +1 -1
- package/dist/paperless/{p-7fb843e7.entry.js → p-e74337b8.entry.js} +1 -1
- package/dist/{build/p-34b81a42.entry.js → paperless/p-e756ae7b.entry.js} +1 -1
- package/dist/paperless/{p-a4a66b93.entry.js → p-ec3e77cd.entry.js} +1 -1
- package/dist/paperless/p-kefpJPJT.js +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/submenu/item/submenu-item.component.d.ts +12 -0
- package/dist/types/components/molecules/submenu/item/submenu-item.stories.d.ts +21 -0
- package/dist/types/components/molecules/submenu/menu/submenu.component.d.ts +32 -0
- package/dist/types/components/molecules/submenu/menu/submenu.stories.d.ts +28 -0
- package/dist/types/components.d.ts +106 -0
- package/dist/types/utils/icons.d.ts +2 -0
- package/hydrate/index.js +234 -29
- package/hydrate/index.mjs +234 -29
- package/package.json +9 -1
- package/dist/build/p-05f7279a.js +0 -1
- package/dist/build/p-CSySY6aC.js +0 -1
- package/dist/components/p-Au2WuEGF.js +0 -1
- package/dist/components/p-BO7NYfW5.js +0 -1
- package/dist/components/p-wYHaAjO_.js +0 -1
- package/dist/paperless/p-CSySY6aC.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as i,H as e,c as a,h as s,d as n}from"./p-CySg37XO.js";import{a as o,c as h,o as r,f as d,s as l}from"./p-CeBIrPPx.js";import{c}from"./p-CBWjHURv.js";import{a as m}from"./p-TyZ7uPES.js";import{c as p}from"./p-xs4N_Y-0.js";import{d as w}from"./p-
|
|
1
|
+
import{t,p as i,H as e,c as a,h as s,d as n}from"./p-CySg37XO.js";import{a as o,c as h,o as r,f as d,s as l}from"./p-CeBIrPPx.js";import{c}from"./p-CBWjHURv.js";import{a as m}from"./p-TyZ7uPES.js";import{c as p}from"./p-xs4N_Y-0.js";import{d as w}from"./p-C216JB0f.js";const u=c(["hidden"],{variants:{strategy:{absolute:"absolute",fixed:"fixed"},fullWidth:{false:null,true:"w-full"},maxWidth:{false:null,true:"max-w-[13.875rem]"},isDatepicker:{false:"z-dropdown",true:"z-datepicker"}},compoundVariants:[{fullWidth:!1,maxWidth:!0,class:"w-auto"}]}),f=i(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isOpen=a(this,"isOpen",3)}variant="default";placement="bottom-start";offset=8;strategy="absolute";show=!1;applyMaxWidth=!0;applyFullWidth=!0;allowOverflow=!1;scrollable=!1;insideClick=!1;disableTriggerClick=!1;manual=!1;applyChevron=!0;manualChevron=!1;chevronPosition="end";chevronDirection;containerClass;isDatepicker=!1;get _el(){return this}isOpen;_loaded=!1;_menu;_trigger;_cleanup;componentShouldUpdate(){this._update()}componentDidLoad(){this._checkButtons()}disconnectedCallback(){this._cleanup&&(this._cleanup(),this._cleanup=null)}componentDidRender(){this._checkButtons(),this._checkItems()}render(){return s(n,{key:"1c060fa3b674315b449445bc12cb7914ff809f42",class:"relative"},s("div",{key:"526090a21972996fe865c251ab109170b3031f2d",class:"trigger",ref:t=>this._trigger=t,onClick:()=>this._triggerClickHandler()},s("slot",{key:"c77c6b4e01d5f8192aada325f62d416f08ef50d5",name:"trigger"})),s("div",{key:"49300cd262ccd3f58aaea3abec9a00d210c340b8",class:"relative w-full"},s("p-dropdown-menu-container",{key:"c084d5a6d26f1c47b38ddcca5eae7727bc12e0e2",allowOverflow:this.allowOverflow,class:p(u({strategy:this.strategy,maxWidth:this.applyMaxWidth,fullWidth:this.applyFullWidth&&!this.applyMaxWidth,isDatepicker:this.isDatepicker}),this.containerClass),"data-placement":this.placement,"data-strategy":this.strategy,fullWidth:this.applyFullWidth&&!this.applyMaxWidth,maxWidth:this.applyMaxWidth,ref:t=>this._load(t),role:"popover",scrollable:this.scrollable,variant:this.variant,onClick:()=>this._containerClickHandler()},s("slot",{key:"8e05aa667dbad7c2a443dcb7c513b5049ae966e5",name:"items"}))))}_checkButtons(t=!1){const i=this._el.querySelectorAll('p-button[slot="trigger"]'),e="true"===this._menu.dataset.show;for(let a of i)a.disabled=this.disableTriggerClick,a.active=t,a.iconOnly||(!1!==this.applyChevron&&!0!==this.manualChevron?(a.chevronPosition=this.chevronPosition,a.chevron=this.chevronDirection??(this.placement.includes("top")?e?"down":"up":e?"up":"down")):!1===this.manualChevron&&(a.chevron=!1))}_checkItems(){const t=this._el.querySelectorAll("p-dropdown-menu-item");for(let i of t)"pagination"!==i.variant&&"negative"!==i.variant&&(i.variant=this.variant)}onShowChange(t){this._loaded&&(t?this._show():this._hide())}documentClickHandler(t){"false"===this._menu.dataset.show||m(t,this._menu)||m(t,this._trigger)||this._hide()}_containerClickHandler(){this.insideClick||Object.hasOwn(this._menu.dataset,"show")&&this._hide()}_triggerClickHandler(){this.disableTriggerClick||this.manual||("true"===this._menu.dataset.show?this._hide():this._show())}_load(t){this._menu=t,t&&(this._update(),this._loaded=!0,this.show&&setTimeout((()=>this._show()),100))}_show(){this._loaded&&(this._cleanup=o(this._el,this._menu,(()=>this._update())),this._menu.dataset.show="true",this._menu.classList.remove("hidden"),this._menu.classList.add("block"),this.isOpen.emit(!0),this._checkButtons(!0))}_hide(){this._loaded&&!this.show&&(this._cleanup&&(this._cleanup(),this._cleanup=null),this._menu.dataset.show="false",this._menu.classList.remove("block"),this._menu.classList.add("hidden"),this.isOpen.emit(!1),this._checkButtons(!1))}_update(){this._menu&&h(this._el,this._menu,{placement:this.placement,strategy:this.strategy,middleware:[r(this.offset),d(),l()]}).then((({x:t,y:i,placement:e})=>{this._menu.dataset.placement=e,Object.assign(this._menu.style,{top:`${i}px`,left:`${t}px`})}))}static get watchers(){return{show:[{onShowChange:0}]}}static get style(){return"*{box-sizing:border-box}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.z-datepicker{z-index:401}.z-dropdown{z-index:200}.block{display:block}.hidden{display:none}.w-auto{width:auto}.w-full{width:100%}.max-w-\\[13\\.875rem\\]{max-width:13.875rem}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}"}},[769,"p-dropdown",{variant:[1],placement:[513],offset:[2],strategy:[1],show:[4],applyMaxWidth:[4,"apply-max-width"],applyFullWidth:[4,"apply-full-width"],allowOverflow:[4,"allow-overflow"],scrollable:[8],insideClick:[4,"inside-click"],disableTriggerClick:[4,"disable-trigger-click"],manual:[4],applyChevron:[4,"apply-chevron"],manualChevron:[4,"manual-chevron"],chevronPosition:[1,"chevron-position"],chevronDirection:[1,"chevron-direction"],containerClass:[1,"container-class"],isDatepicker:[4,"is-datepicker"]},[[6,"click","documentClickHandler"]],{show:[{onShowChange:0}]}]);function x(){"undefined"!=typeof customElements&&["p-dropdown","p-dropdown-menu-container"].forEach((i=>{switch(i){case"p-dropdown":customElements.get(t(i))||customElements.define(t(i),f);break;case"p-dropdown-menu-container":customElements.get(t(i))||w()}}))}x();export{f as D,x as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as a,c as r,h as o}from"./p-CySg37XO.js";import{c as i}from"./p-CBWjHURv.js";import{T as d}from"./p-
|
|
1
|
+
import{t as e,p as t,H as a,c as r,h as o}from"./p-CySg37XO.js";import{c as i}from"./p-CBWjHURv.js";import{T as d}from"./p-7Rfc1ojx.js";import{d as c}from"./p-p5xtufj9.js";import{d as s}from"./p-Sl3w6Zuw.js";import{d as n}from"./p-FOyqA_qR.js";import{d as l}from"./p-a_De3Rd1.js";const h=i(["relative z-[1] min-h-18 w-full flex-col overflow-hidden rounded-t-2xl","\n bg-white\n dark:bg-hurricane-600\n ","inline-flex"]),m=i(["flex justify-between","min-h-12 w-full p-4 pb-0"]),f=i(["flex-1 text-center","\n font-ambit text-2xl font-bold text-storm-500\n dark:text-white\n "]),b=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.close=r(this,"close",3)}showClose=!0;close;render(){return o(d,{key:"f0cc21f420fc9ede8f37b703e2bdc05b0494fdfb"},o("div",{key:"e90c5f4e51592b3dd5aabddc4cdf394a44afc4d6",class:h()},o("div",{key:"7c34db9d5c88f715dc67663c4bd59292f4d5f465",class:m()},this.showClose&&o("p-button",{key:"65d62aac568049c275aaf0da50927aa162375291",icon:"negative",iconOnly:!0,variant:"secondary",onClick:e=>this.close.emit(e)}),o("div",{key:"7e1809baea3e11b781292e5948dcd88de22adcbf",class:f()},o("slot",{key:"a197919fc325a031824cc187d9f01c02047c3cce"})),this.showClose&&o("div",{key:"a89a2a5c054a83c7998f8e3537294bb0d9a3654a",class:"size-8"})),o("p-smile",{key:"b6247f9b0f7dd88fe13b507507a5802bef0b518f",class:"dark:text-hurricane-400"})))}static get style(){return"*{box-sizing:border-box}.static{position:static}.relative{position:relative}.z-\\[1\\]{z-index:1}.flex{display:flex}.inline-flex{display:inline-flex}.size-8{height:2rem;width:2rem}.min-h-12{min-height:3rem}.min-h-18{min-height:4.5rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.overflow-hidden{overflow:hidden}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-4{padding:1rem}.pb-0{padding-bottom:0}.text-center{text-align:center}.font-ambit{font-family:Ambit,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.font-bold{font-weight:700}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-drawer-header",{showClose:[4,"show-close"]}]);function p(){"undefined"!=typeof customElements&&["p-drawer-header","p-button","p-icon","p-loader","p-smile"].forEach((t=>{switch(t){case"p-drawer-header":customElements.get(e(t))||customElements.define(e(t),b);break;case"p-button":customElements.get(e(t))||c();break;case"p-icon":customElements.get(e(t))||s();break;case"p-loader":customElements.get(e(t))||n();break;case"p-smile":customElements.get(e(t))||l()}}))}p();export{b as D,p as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as a,c as r,h as i}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as s}from"./p-
|
|
1
|
+
import{t as e,p as t,H as a,c as r,h as i}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as s}from"./p-7Rfc1ojx.js";import{f as n,g as l}from"./p-CwQG70_4.js";import{c as d}from"./p-xs4N_Y-0.js";import{a as h}from"./p-C5CTp9IA.js";import{d as m}from"./p-3RpDMSup.js";import{d as c}from"./p-Sl3w6Zuw.js";import{d as p}from"./p-FOyqA_qR.js";import{d as w}from"./p-5lCEImmh.js";const x=o(["w-full rounded-lg"],{variants:{variant:{read:null,write:null},size:{base:null,sm:null}},compoundVariants:[{variant:"read",size:"base",class:"h-5"},{variant:"read",size:"sm",class:"h-4"},{variant:"write",size:"base",class:"h-8"},{variant:"write",size:"sm",class:"h-6"}]}),f=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.focus=r(this,"focus",7)}_defaultOptionalTemplate=()=>n(this._locales.optional);id;align="start";label;loading=!1;loadingSize="base";variant;helper;required;showOptional=!0;error;errorPlacement;forceShowTooltip=!1;optionalTemplate=this._defaultOptionalTemplate;get _el(){return this}focus;_locales={};componentWillLoad(){this._setLocales()}render(){const{hasHeaderSlot:e,hasErrorSlot:t,helper:a,label:r,errorAndErrorIsNotBoolean:o}=this._getSlotInfo();let n=i("slot",{key:"ee38d5be02a899e0d63749e4b13c17cae4711637",name:"content",slot:"trigger"});return this.loading&&(n=i("p-loader",{key:"5e445ed28e4ff1254b6c724d5bb859d37ed669b3",class:x({variant:this.variant,size:this.loadingSize}),slot:"trigger",variant:"ghost"})),i(s,{key:"b9e499d2dc7e962d706997c8d16f61c5252f118d"},i("label",{key:"4233b212952fa641e2509ea1c942453e77ec5f82",class:d("flex h-inherit w-inherit flex-col gap-1",{"cursor-auto":"read"===this.variant}),htmlFor:this.id},i("div",{key:"20e48d5f03656193a1b837070ae750a8d4296465",class:d("\n flex items-end justify-between gap-1\n empty:hidden\n ",{"flex-row-reverse":"end"===this.align})},(!!r?.length||!!a?.length)&&i("div",{key:"ee34ef249bb30262496793d5f8417e137313cf03",class:"flex min-w-0 gap-2",onClick:()=>this.focus.emit()},i("span",{key:"1a73b8c8c753253a46be784bbd03aaf515c33d3d",class:"\n min-w-0 overflow-hidden text-ellipsis text-xs font-medium\n text-storm-300\n dark:text-hurricane-200\n "},r),a&&i("p-helper",{key:"fe0c268b0fee3a855bcc44ef844ca8a2a727dee2",class:"flex flex-shrink-0",placement:"top"},a)),(!h(this.required)&&h(this.showOptional)||e)&&i("div",{key:"14466e8a589be9b1b599750e9d94fdd507e63637",class:"flex items-center gap-1"},!h(this.required)&&h(this.showOptional)&&"write"===this.variant&&i("span",{key:"2103c58a2d6283a3776386fc48b817b0a6c11775",class:"\n text-xs font-medium text-storm-200\n dark:text-hurricane-300\n "},this.optionalTemplate()),e&&i("slot",{key:"daa792f0973fb224b65694b2b3da0bce094bc013",name:"header"}))),i("p-tooltip",{key:"f5a7db0a4adf1b122a1297e3216c67abd4dc824e",class:d({"w-full":"write"===this.variant||this.loading,"ml-auto":"end"===this.align,"font-normal":"read"===this.variant,"text-storm-500 dark:text-white":"read"===this.variant}),content:this.error,enableUserInput:!1,placement:this.errorPlacement,show:o&&h(this.forceShowTooltip,!1),variant:"error"},t&&i("slot",{key:"38ce560479de40f7b704bf9f7736f217286a39b8",name:"error",slot:"content"}),n)))}async _setLocales(){this._locales=await l(this._el)}_getSlotInfo(){const e=!!this._el.querySelector(':scope > [slot="helper"]'),t=!!this._el.querySelector(':scope > [slot="label"]'),a=!!this._el.querySelector(':scope > [slot="header"]'),r=!!this._el.querySelector(':scope > [slot="error"]');return{hasHelperSlot:e,hasLabelSlot:t,hasHeaderSlot:a,hasErrorSlot:r,helper:e?i("slot",{name:"helper"}):this.helper,label:t?i("slot",{name:"label"}):this.label,errorAndErrorIsNotBoolean:r||this.error&&"string"==typeof this.error&&"true"!==this.error}}static get style(){return"*{box-sizing:border-box}.static{position:static}.ml-auto{margin-left:auto}.flex{display:flex}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-inherit{height:inherit}.w-full{width:100%}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-shrink-0{flex-shrink:0}.cursor-auto{cursor:auto}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.empty\\:hidden:empty{display:none}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-field-container",{id:[1],align:[1],label:[1],loading:[4],loadingSize:[1,"loading-size"],variant:[1],helper:[1],required:[516],showOptional:[516,"show-optional"],error:[513],errorPlacement:[1,"error-placement"],forceShowTooltip:[516,"force-show-tooltip"],optionalTemplate:[16],_locales:[32]},[[16,"localeChanged","_setLocales"]]]);function b(){"undefined"!=typeof customElements&&["p-field-container","p-helper","p-icon","p-loader","p-tooltip"].forEach((t=>{switch(t){case"p-field-container":customElements.get(e(t))||customElements.define(e(t),f);break;case"p-helper":customElements.get(e(t))||m();break;case"p-icon":customElements.get(e(t))||c();break;case"p-loader":customElements.get(e(t))||p();break;case"p-tooltip":customElements.get(e(t))||w()}}))}b();export{f as F,b as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as a,c as i,h as
|
|
1
|
+
import{t as e,p as t,H as a,c as i,h as o,F as r}from"./p-CySg37XO.js";import{c as n}from"./p-CBWjHURv.js";import{T as m}from"./p-7Rfc1ojx.js";import{f as d,g as s}from"./p-CwQG70_4.js";import{d as c}from"./p-BDLTMUwe.js";import{d as l}from"./p-WnyHedyk.js";import{d as p}from"./p-Sl3w6Zuw.js";import{d as h}from"./p-FOyqA_qR.js";const w=n(["floating-menu-container z-floating-menu","shadow-3","bg-storm-500","dark:bg-hurricane-400","h-10 w-auto py-1","rounded-lg","text-sm","flex items-center gap-2"],{variants:{enableAmountSelected:{false:"px-1",true:"pl-3 pr-1"}}}),x=n(["text-storm-100","min-w-0","overflow-hidden text-ellipsis text-nowrap"]),b=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.close=i(this,"close",7)}usedInTable=!1;enableAmountSelected=!0;amount=0;enableClose=!0;amountSelectedTemplate=e=>d((1===e?this._locales.amount_selected:this._locales.amount_selected_plural)?.replace("{{amount}}",e));close;get _el(){return this}_locales={};componentWillLoad(){this._setLocales()}render(){return o(m,{key:"39fda8b74e11a3b1ee40aeee4101301a7680a6ee"},o("div",{key:"d26f65768d8c61b632577a00f5415710b73b8e74",class:w({enableAmountSelected:this.enableAmountSelected})},this.enableAmountSelected&&o(r,{key:"f298ab688db30acc900482c15034790a5dd4ca04"},o("p",{key:"1133975449226656f722e67897c66d38c62893d1",class:x()},this.amountSelectedTemplate(this.amount)),o("p-divider",{key:"83fa0bb59baed26780d634825fa2a43e8538d9f6",class:"mx-0 h-4 text-storm-400",variant:"vertical"})),o("div",{key:"27cecf5983e3f86fe52c7e3554f716a51ca77acc",class:"flex items-center"},o("slot",this.usedInTable?{name:"floating-menu-item"}:null),this.enableClose&&o("p-floating-menu-item",{key:"98fd091b04cd2b5eb16482ee2bad9078c4dfb42b",icon:"negative",onClick:e=>this.close.emit(e)}))))}async _setLocales(){this._locales=await s(this._el)}static get style(){return"*{box-sizing:border-box}:host(.preload){animation:none}.static{position:static}.z-floating-menu{z-index:190}.mx-0{margin-left:0;margin-right:0}.flex{display:flex}.table{display:table}.h-10{height:2.5rem}.h-4{height:1rem}.w-auto{width:auto}.min-w-0{min-width:0}.items-center{align-items:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.text-nowrap{text-wrap:nowrap}.rounded-lg{border-radius:.5rem}.bg-storm-500{--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.px-1{padding-left:.25rem;padding-right:.25rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pl-3{padding-left:.75rem}.pr-1{padding-right:.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.shadow-3{--tw-shadow:0 1px 1px rgba(0,2,2,.08),0 2px 2px rgba(0,2,2,.08),0 4px 4px rgba(0,2,2,.08);--tw-shadow-colored:0 1px 1px var(--tw-shadow-color),0 2px 2px var(--tw-shadow-color),0 4px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.dark\\:bg-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}"}},[769,"p-floating-menu-container",{usedInTable:[4,"used-in-table"],enableAmountSelected:[4,"enable-amount-selected"],amount:[2],enableClose:[4,"enable-close"],amountSelectedTemplate:[16],_locales:[32]},[[16,"localeChanged","_setLocales"]]]);function g(){"undefined"!=typeof customElements&&["p-floating-menu-container","p-divider","p-floating-menu-item","p-icon","p-loader"].forEach((t=>{switch(t){case"p-floating-menu-container":customElements.get(e(t))||customElements.define(e(t),b);break;case"p-divider":customElements.get(e(t))||c();break;case"p-floating-menu-item":customElements.get(e(t))||l();break;case"p-icon":customElements.get(e(t))||p();break;case"p-loader":customElements.get(e(t))||h()}}))}g();export{b as F,g as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as a,c as r,h as o}from"./p-CySg37XO.js";import{T as i}from"./p-
|
|
1
|
+
import{t,p as e,H as a,c as r,h as o}from"./p-CySg37XO.js";import{T as i}from"./p-7Rfc1ojx.js";import{d as c}from"./p-Sl3w6Zuw.js";const n=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChange=r(this,"valueChange",3)}min=0;max=100;step=.5;value=0;valueChange;render(){const t=Math.round(this.value/(this.max-this.min)*100);return o(i,{key:"7ae1d611a44308f1112f9dea967961056219b2d6"},o("div",{key:"9bd92e5e01cb76148a2e3a8fe1a232f751820870",class:"\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n "},o("p-icon",{key:"3ba3b7e3d9b2f9a3a96dadffdb83771f7267c4c8",variant:"minus"}),o("div",{key:"510d47e53583cb2aebe6acca953a9cd920533f7e",class:"relative h-6 flex-1"},o("input",{key:"4b25bff4c5807c58518921640ee389783db570e1",max:this.max,min:this.min,step:this.step,type:"range",value:this.value,onInput:t=>{const e=t.target.value;this.value=Number.parseFloat(e),this.valueChange.emit(e)}}),o("div",{key:"1006c5ebbc20a7515d71351c07b19592c1b0005e",class:"\n absolute left-0 top-1/2 z-[1] h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ",style:{width:`calc(${t}% - (1rem * ${t} / 100))`}})),o("p-icon",{key:"80ae3d942bec909938eca84c2fb3379733e0e5c6",variant:"plus"})))}static get style(){return".m-0{margin:0}.mt-\\[calc\\(\\(0\\.5rem-1px\\)\\*-1\\)\\]{margin-top:calc(-.5rem + 1px)}.h-4{height:1rem}.h-6{height:1.5rem}.h-\\[2px\\]{height:2px}.w-4{width:1rem}.w-full{width:100%}.appearance-none{appearance:none}.rounded-full{border-radius:9999px}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}*{box-sizing:border-box}:host{input{appearance:none;background-color:transparent;height:1.5rem;margin:0;width:100%}input::-webkit-slider-runnable-track{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1));height:2px}input:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::-webkit-slider-runnable-track{background-color:hsla(0,0%,100%,.15)}input:where([data-theme=dark],[data-theme=dark] *)::-webkit-slider-runnable-track{background-color:hsla(0,0%,100%,.15)}input::-moz-range-track{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1));height:2px}input:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::-moz-range-track{background-color:hsla(0,0%,100%,.15)}input:where([data-theme=dark],[data-theme=dark] *)::-moz-range-track{background-color:hsla(0,0%,100%,.15)}input::-webkit-slider-thumb{--tw-bg-opacity:1;appearance:none;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));border-radius:9999px;border-width:0;height:1rem;margin-top:calc(-.5rem + 1px);width:1rem}input::-webkit-slider-thumb:hover{cursor:grab}input::-webkit-slider-thumb:active,input::-webkit-slider-thumb:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}input::-webkit-slider-thumb:active{cursor:grabbing}input::-moz-range-thumb{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));border-radius:9999px;border-width:0;height:1rem;width:1rem}input::-moz-range-thumb:hover{cursor:grab}input::-moz-range-thumb:active,input::-moz-range-thumb:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}input::-moz-range-thumb:active{cursor:grabbing}}.hover\\:cursor-grab:hover{cursor:grab}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}.active\\:cursor-grabbing:active{cursor:grabbing}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-1\\/2{top:50%}.z-\\[1\\]{z-index:1}.flex{display:flex}.w-inherit{width:inherit}.flex-1{flex:1 1 0%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.gap-2{gap:.5rem}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}"}},[513,"p-range",{min:[2],max:[2],step:[2],value:[2]}]);function s(){"undefined"!=typeof customElements&&["p-range","p-icon"].forEach((e=>{switch(e){case"p-range":customElements.get(t(e))||customElements.define(t(e),n);break;case"p-icon":customElements.get(t(e))||c()}}))}s();export{n as R,s as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as a,c as r,h as o}from"./p-CySg37XO.js";import{c as s}from"./p-CBWjHURv.js";import{T as c}from"./p-
|
|
1
|
+
import{t,p as e,H as a,c as r,h as o}from"./p-CySg37XO.js";import{c as s}from"./p-CBWjHURv.js";import{T as c}from"./p-7Rfc1ojx.js";import{d as i}from"./p-p5xtufj9.js";import{d}from"./p-Sl3w6Zuw.js";import{d as l}from"./p-FOyqA_qR.js";import{d as n}from"./p-a_De3Rd1.js";const f=s(["\n relative z-[1] w-full flex-col overflow-hidden rounded-t-2xl bg-white\n dark:bg-hurricane-600\n ","inline-flex aspect-[7/1] max-h-28"]),m=s(["flex justify-end","h-12 w-full p-4 pb-0"]),p=s(["flex-1 text-center","w-[calc(100%-7rem)]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","\n font-ambit text-2xl font-bold text-storm-500\n dark:text-white\n "]),h=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.close=r(this,"close",3)}showClose=!0;close;render(){return o(c,{key:"6ff888c25d7455ffd6baf7e1dd046d8446555739"},o("div",{key:"9b9fa9ee81f4174df2f880965afa9cc72b63e800",class:f()},o("div",{key:"b58b6b353afa85c5e45f71abf9c4d59b5fa42eeb",class:m()},o("div",{key:"576edc988821e2ae50b8a11c8fc4b81fea137cb8",class:p()},o("slot",{key:"b9906b5af7dc8542f3d046d8ca9dccc0f8310e9d"})),this.showClose&&o("p-button",{key:"c5da895fc9b1e6ef042a5f9d829d6e584ff23ab8",icon:"negative",iconOnly:!0,variant:"secondary",onClick:t=>this.close.emit(t)})),o("p-smile",{key:"e0390b852e9ae3633185cdb5441d9172a07f7986",class:"dark:text-hurricane-400"})))}static get style(){return"*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.z-\\[1\\]{z-index:1}.flex{display:flex}.inline-flex{display:inline-flex}.aspect-\\[7\\/1\\]{aspect-ratio:7/1}.h-12{height:3rem}.max-h-28{max-height:7rem}.w-\\[calc\\(100\\%-7rem\\)\\]{width:calc(100% - 7rem)}.w-full{width:100%}.flex-1{flex:1 1 0%}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.flex-col{flex-direction:column}.justify-end{justify-content:flex-end}.overflow-hidden{overflow:hidden}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-4{padding:1rem}.pb-0{padding-bottom:0}.text-center{text-align:center}.font-ambit{font-family:Ambit,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.font-bold{font-weight:700}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}"}},[769,"p-modal-header",{showClose:[4,"show-close"]}]);function b(){"undefined"!=typeof customElements&&["p-modal-header","p-button","p-icon","p-loader","p-smile"].forEach((e=>{switch(e){case"p-modal-header":customElements.get(t(e))||customElements.define(t(e),h);break;case"p-button":customElements.get(t(e))||i();break;case"p-icon":customElements.get(t(e))||d();break;case"p-loader":customElements.get(t(e))||l();break;case"p-smile":customElements.get(t(e))||n()}}))}b();export{h as M,b as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as e,H as a,h as r}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as i}from"./p-7Rfc1ojx.js";import{a as n}from"./p-C5CTp9IA.js";import{d as c}from"./p-BDLTMUwe.js";const d=o(["flex min-w-[calc(100%-0.5rem)] flex-col","group","relative"],{variants:{variant:{default:["m-1 px-3","text-sm text-storm-500","dark:text-white"],header:null,"header-secondary":"mb-4",secondary:["px-4","font-ambit text-lg font-bold"]},enableHover:{true:null,false:null},checked:{true:null,false:null}},compoundVariants:[{variant:"default",enableHover:!0,class:["rounded-lg transition-colors","hover:cursor-pointer"]},{variant:"default",enableHover:!0,checked:!1,class:["hover:bg-off-white-300","dark:hover:bg-hurricane-600"]},{variant:"default",checked:!0,class:["rounded-lg transition-colors","\n bg-off-white-300\n dark:bg-hurricane-400\n dark:hover:bg-hurricane-400\n "]},{variant:["secondary","header-secondary"],class:["rounded-lg bg-off-white-300","dark:bg-hurricane-400"]},{variant:["header","header-secondary"],class:["px-4","text-xs font-normal text-storm-400","dark:text-hurricane-200"]}]}),s=o("relative flex min-w-full flex-nowrap items-stretch justify-between",{variants:{variant:{default:null,secondary:null,header:"pb-4","header-secondary":"py-2"}},compoundVariants:[{variant:["default","secondary"],class:"\n min-h-14 py-2\n tablet:py-4\n "},{variant:["header","header-secondary"],class:"min-h-0"}]}),h=o(["absolute -right-4 top-1 z-[2]","h-[calc(100%-0.5rem)]","\n opacity-0 transition-opacity\n group-hover:opacity-100\n ","empty:hidden"]),l=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}variant="default";enableHover=!0;checked=!1;isLast=!1;render(){return r(i,{key:"98252cd216cba353cf4e169a7f9850b7f373b93e"},r("div",{key:"de85352410756fa4b6d555763d5811ff8e70ce67",class:"flex flex-col"},r("div",{key:"c56a01847cde5b860524169165c5f44c78de9d1a",class:d({variant:this.variant,enableHover:this.enableHover,checked:this.checked})},r("div",{key:"8074d9c5617995d40dd06cc8f1e0d53f51db7fa7",class:s({variant:this.variant})},r("slot",{key:"c981dfaaa4e3f9c7ba350650e8239bf2b0f77780"}),r("div",{key:"b51eabcfe145dc6fe263750e9a49ef84ae3ec9df",class:h()},r("slot",{key:"a558a1b83cbcc339dd6223502adf978b5fd46e16",name:"actions"})))),!n(this.isLast)&&"secondary"!==this.variant&&r("p-divider",{key:"b5ca42d03270067f116206c9d291b520ff4db796"})))}static get style(){return'.relative{position:relative}*{box-sizing:border-box}:host{--tw-content:"";position:relative}.static{position:static}.absolute{position:absolute}.-right-4{right:-1rem}.top-1{top:.25rem}.z-\\[2\\]{z-index:2}.m-1{margin:.25rem}.mb-4{margin-bottom:1rem}.flex{display:flex}.table-row{display:table-row}.h-\\[calc\\(100\\%-0\\.5rem\\)\\]{height:calc(100% - .5rem)}.min-h-0{min-height:0}.min-h-14{min-height:3.5rem}.min-w-\\[calc\\(100\\%-0\\.5rem\\)\\]{min-width:calc(100% - .5rem)}.min-w-full{min-width:100%}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.rounded-lg{border-radius:.5rem}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.pb-4{padding-bottom:1rem}.font-ambit{font-family:Ambit,sans-serif}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.empty\\:hidden:empty{display:none}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:bg-off-white-300:hover{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width:40rem){.tablet\\:py-4{padding-bottom:1rem;padding-top:1rem}}.dark\\:bg-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-hurricane-400:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:hover\\:bg-hurricane-600:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-hurricane-400:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:hover\\:bg-hurricane-600:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}'}},[769,"p-table-row",{variant:[1],enableHover:[4,"enable-hover"],checked:[4],isLast:[4,"is-last"]}]);function b(){"undefined"!=typeof customElements&&["p-table-row","p-divider"].forEach((e=>{switch(e){case"p-table-row":customElements.get(t(e))||customElements.define(t(e),l);break;case"p-divider":customElements.get(t(e))||c()}}))}b();export{l as T,b as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as r,c as a,h as i}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as s}from"./p-Au2WuEGF.js";import{a as n}from"./p-C5CTp9IA.js";import{c as d}from"./p-xs4N_Y-0.js";import{n as h}from"./p-D9kEjsvZ.js";import{d as l}from"./p-D6g8cYWI.js";import{d as c}from"./p-SUrtpFuE.js";import{d as p}from"./p-CTI55iY5.js";import{d as w}from"./p-BOJwTddb.js";import{d as m}from"./p-D8faiybE.js";import{d as b}from"./p-GYxEYTaZ.js";const u=o(["flex gap-2","w-inherit","rounded-lg border-solid","relative"],{variants:{variant:{read:"flex-wrap items-start hyphens-auto break-normal border-0 leading-6",write:"border px-2"},size:{sm:null,base:null},disabled:{false:null,true:null},focused:{false:null,true:null},error:{false:null,true:null},isTextarea:{false:null,true:"items-start"}},compoundVariants:[{size:"sm",variant:"write",isTextarea:!1,class:"h-6"},{size:"base",variant:"write",isTextarea:!1,class:"h-8"},{size:"sm",variant:"read",class:"min-h-4 text-xs"},{size:"base",variant:"read",class:"min-h-5 text-sm"},{variant:"write",focused:!1,error:!1,class:"\n border-storm-100\n dark:border-hurricane-400\n "},{variant:"write",disabled:!1,focused:!0,error:!1,class:"\n border-indigo-600 ring ring-indigo-100\n selection:bg-indigo-500\n dark:ring-0\n "},{variant:"write",disabled:!1,class:"\n bg-white\n dark:bg-hurricane-500\n "},{variant:"write",disabled:!0,class:"\n cursor-not-allowed bg-white-600\n dark:border-hurricane-500 dark:bg-hurricane-600\n "},{disabled:!1,error:!0,class:"border-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"\n ring ring-negative-red-50\n selection:bg-negative-red-50\n dark:ring-0\n "}]}),g=o(["\n text-sm\n placeholder:text-sm placeholder:text-storm-500/40\n dark:placeholder:text-hurricane-200\n ","min-w-0 flex-1 border-none bg-transparent p-0","\n outline-none\n focus:outline-none\n ","font-geist"],{variants:{isTextarea:{false:"h-full",true:"mt-1"},disabled:{false:null,true:"cursor-not-allowed"},error:{false:"\n text-storm-500\n dark:text-white\n ",true:"text-negative-red-500"}}}),f=o(["flex flex-shrink-0 items-center justify-center text-center"],{variants:{variant:{read:"leading-6",write:null},disabled:{false:null,true:"\n text-storm-100\n dark:text-hurricane-400\n "},focused:{false:null,true:null},error:{false:null,true:null},isText:{false:null,true:"text-sm"},isTextarea:{false:null,true:"mt-2"}},compoundVariants:[{disabled:!1,focused:!1,error:!1,class:"\n text-storm-300\n dark:text-hurricane-200\n "},{disabled:!1,focused:!0,error:!1,class:"\n text-storm-500\n dark:text-white\n "},{disabled:!1,focused:!1,error:!0,class:"text-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"text-negative-red-800"}]}),x=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChange=a(this,"valueChange",3),this.inputRefChange=a(this,"inputRefChange",7),this.add=a(this,"add",3),this.enter=a(this,"enter",3),this._internals=this.attachInternals()}align="start";variant="write";id;size="base";type="text";properties={};prefix;suffix;icon;iconFlip;iconRotate;iconPosition="start";value;label;loading=!1;enablePasswordEye=!0;placeholder;helper;required=!0;showOptional=!0;showAddOnEmpty=!1;addText="Add";autofocus=!1;error;autoShowError=!0;errorPlacement;disabled=!1;focused=!1;forceShowTooltip=!1;selectAllOnFocus=!0;focusMethod="focus";optionalTemplate;valueChange;inputRefChange;add;enter;get _el(){return this}_focused=!1;_nonce=h(5);_type="text";_internals;_inputRef;_lastValue;componentDidLoad(){this._checkAutoFocus(),this._type=this.type}formResetCallback(){this.value=null,this.valueChange.emit(null)}formDisabledCallback(t){this._internals.form&&(this.disabled=t)}render(){const{id:t,prefix:e,suffix:r,hasHeaderSlot:a,hasLabelSlot:o,hasHelperSlot:h,hasErrorSlot:l,hasValueSlot:c}=this._getSlotInfo();return i(s,{key:"26ead7c05e6305596106f154754986a05237c454"},i("p-field-container",{key:"8828b6378d5a3e5c7c98dd52c0bc34ff7500ba02",align:this.align,error:this.error,forceShowTooltip:!!this.error?.length&&!this._focused&&this.autoShowError||!!this.error?.length&&this.forceShowTooltip,helper:this.helper,id:t,label:this.label,loading:this.loading,loadingSize:this.size,required:this.required,showOptional:this.showOptional,variant:this.variant},o&&i("slot",{key:"c7a0344e9aec6a7e1c30e173fd5ceaf65268a912",name:"label",slot:"label"}),a&&i("slot",{key:"9a0bdbb419369c6d658d5e1b855913ffe4dd42b0",name:"header",slot:"header"}),h&&i("slot",{key:"dc417538960faecaa20898f52138042b52fc0232",name:"helper",slot:"helper"}),l&&i("slot",{key:"9e7659556f4bb3888d63ee6ca9b7d59bd7201db9",name:"error",slot:"error"}),i("div",{key:"e0f979932fd5afb26e60df3656c503475bbfb43e",class:u({error:!!this.error?.length,disabled:n(this.disabled),focused:n(this.focused)||this._focused,size:this.size,variant:this.variant,isTextarea:"textarea"===this.type}),slot:"content",title:"read"!==this.variant||c?void 0:`${this.value}`},(this.error?.length||e||this.icon&&"start"===this.iconPosition)&&i("div",{key:"60384a989f7f7ce43dff577e5275d12d955f85ff",class:f({variant:this.variant,error:!!this.error?.length,disabled:n(this.disabled),focused:n(this.focused)||this._focused,isText:"string"==typeof r,isTextarea:"textarea"===this.type}),onClick:()=>this._focusInput()},this.icon&&"start"===this.iconPosition||this.error?.length?i("p-icon",{class:d("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.error?.length?"warning":this.icon}):e),this._getContent(c,t),(r||"password"===this.type&&this.enablePasswordEye||this.icon&&"end"===this.iconPosition)&&i("div",{key:"7bfc680f8dff73606785066d9e3ad3fbf7ad5e83",class:d(f({variant:this.variant,error:!!this.error?.length,disabled:n(this.disabled),focused:n(this.focused)||this._focused,isText:"string"==typeof r&&"password"!==this.type,isTextarea:"textarea"===this.type}),{"cursor-pointer":"password"===this.type&&this.enablePasswordEye,"hover:text-indigo-700 dark:hover:text-indigo-300":"password"===this.type}),onClick:()=>this._focusInput()},this.icon&&"end"===this.iconPosition||"password"===this.type&&this.enablePasswordEye?i("p-icon",{class:d("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:"password"===this.type?"text"===this._type?"eye-closed":"eye":this.icon,onClick:()=>{"password"===this.type&&this.enablePasswordEye&&(this._type="text"===this._type?"password":"text")}}):r))))}watchvalue(t){this._inputRef&&t!==this._lastValue&&(this._lastValue=t,this._inputRef.value=t)}handleFocusIn(){this.disabled||(this._focused=!0,this._selectAll())}handleFocusOut(){this.disabled||(this._focused=!1)}handleKeyup(t){this.disabled?t.preventDefault():this._internals?.form&&"textarea"!==this.type&&"Enter"===t.key&&this._internals.form.requestSubmit()}handleKeydown(t){this.disabled||"Enter"===t.key&&this.enter.emit(this.value)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]'),e=!!this._el.querySelector(':scope > [slot="label"]'),r=!!this._el.querySelector(':scope > [slot="prefix"]'),a=!!this._el.querySelector(':scope > [slot="suffix"]'),o=!!this._el.querySelector(':scope > [slot="header"]'),s=!!this._el.querySelector(':scope > [slot="error"]'),n=!!this._el.querySelector(':scope > [slot="value"]'),d=r?i("slot",{name:"prefix"}):this.prefix,h=a?i("slot",{name:"suffix"}):this.suffix,l=this.error&&"string"==typeof this.error&&"true"!==this.error;return{id:this.id?.length?this.id:this._nonce,hasHelperSlot:t,hasLabelSlot:e,hasPrefixSlot:r,hasSuffixSlot:a,hasHeaderSlot:o,hasErrorSlot:s,hasValueSlot:n,prefix:d,suffix:h,errorAndErrorIsNotBoolean:l}}_getContent(t=!1,e){if("read"===this.variant)return t?i("slot",{name:"value"}):this.value&&`${this.value}`.length>0?this.value:this.showAddOnEmpty?i("p-button",{icon:"plus",size:"sm",variant:"text",onClick:()=>this.add.emit()},this.addText):"—";if("slot"===this.type)return i("slot",{name:"input"});const r={id:e,class:g({disabled:n(this.disabled),isTextarea:"textarea"===this.type,error:!!this.error?.length}),value:this.value,placeholder:this.placeholder,disabled:this.disabled,onInput:t=>this._valueChange(t)};let a=this.properties??{};return"string"==typeof a&&(a=JSON.parse(this.properties)),"textarea"===this.type?i("textarea",{ref:t=>this._setInputRef(t),...r,...a}):i("input",{ref:t=>this._setInputRef(t),type:this._type,...r,...a})}_setInputRef(t){this._inputRef=t,this.inputRefChange.emit(t)}_focusInput(){this._inputRef?this._inputRef.focus():this._el.querySelector(':scope > [slot="input"]')[this.focusMethod]()}_selectAll(){this._inputRef&&this.selectAllOnFocus&&this._inputRef.select()}_valueChange(t){t.stopPropagation();const e=t.originalTarget??t.target,r=e.value;this._lastValue=r,this.value=r,this.valueChange.emit(r),this._internals.setFormValue(e.value)}_checkAutoFocus(){this.autofocus&&(this._inputRef?this._focusInput():setTimeout((()=>this._checkAutoFocus()),100))}static get formAssociated(){return!0}static get watchers(){return{value:[{watchvalue:0}]}}static get style(){return"*{box-sizing:border-box}:host{input[type=number]{-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;display:none}}.static{position:static}.relative{position:relative}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.flex{display:flex}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.min-h-4{min-height:1rem}.min-h-5{min-height:1.25rem}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.hyphens-auto{hyphens:auto}.break-normal{overflow-wrap:normal;word-break:normal}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-solid{border-style:solid}.border-none{border-style:none}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-0{padding:0}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.font-geist{font-family:Geist,serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.leading-6{line-height:1.5rem}.text-indigo-300{--tw-text-opacity:1;color:rgb(187 209 253/var(--tw-text-opacity,1))}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-indigo-100{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.ring-negative-red-50{--tw-ring-opacity:1;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.selection\\:bg-indigo-500 ::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50 ::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.selection\\:bg-indigo-500::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:text-storm-500\\/40::placeholder{color:rgba(24,30,41,.4)}.hover\\:text-indigo-700:hover{--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-indigo-300:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(187 209 253/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-indigo-300:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(187 209 253/var(--tw-text-opacity,1))}"}},[833,"p-field",{align:[1],variant:[1],id:[1],size:[1],type:[1],properties:[8],prefix:[1],suffix:[1],icon:[1],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"],iconPosition:[1,"icon-position"],value:[8],label:[1],loading:[4],enablePasswordEye:[4,"enable-password-eye"],placeholder:[1],helper:[1],required:[516],showOptional:[516,"show-optional"],showAddOnEmpty:[516,"show-add-on-empty"],addText:[513,"add-text"],autofocus:[516],error:[513],autoShowError:[516,"auto-show-error"],errorPlacement:[1,"error-placement"],disabled:[516],focused:[516],forceShowTooltip:[516,"force-show-tooltip"],selectAllOnFocus:[516,"select-all-on-focus"],focusMethod:[1,"focus-method"],optionalTemplate:[16],_focused:[32],_nonce:[32],_type:[32]},[[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[2,"keyup","handleKeyup"],[2,"keydown","handleKeydown"]],{value:[{watchvalue:0}]}]);function v(){"undefined"!=typeof customElements&&["p-field","p-button","p-field-container","p-helper","p-icon","p-loader","p-tooltip"].forEach((e=>{switch(e){case"p-field":customElements.get(t(e))||customElements.define(t(e),x);break;case"p-button":customElements.get(t(e))||l();break;case"p-field-container":customElements.get(t(e))||c();break;case"p-helper":customElements.get(t(e))||p();break;case"p-icon":customElements.get(t(e))||w();break;case"p-loader":customElements.get(t(e))||m();break;case"p-tooltip":customElements.get(t(e))||b()}}))}v();export{x as F,v as d}
|
|
1
|
+
import{t,p as e,H as r,c as a,h as i}from"./p-CySg37XO.js";import{c as o}from"./p-CBWjHURv.js";import{T as s}from"./p-7Rfc1ojx.js";import{a as n}from"./p-C5CTp9IA.js";import{c as d}from"./p-xs4N_Y-0.js";import{n as h}from"./p-D9kEjsvZ.js";import{d as l}from"./p-p5xtufj9.js";import{d as c}from"./p-CQbdPtw3.js";import{d as p}from"./p-3RpDMSup.js";import{d as w}from"./p-Sl3w6Zuw.js";import{d as m}from"./p-FOyqA_qR.js";import{d as b}from"./p-5lCEImmh.js";const u=o(["flex gap-2","w-inherit","rounded-lg border-solid","relative"],{variants:{variant:{read:"flex-wrap items-start hyphens-auto break-normal border-0 leading-6",write:"border px-2"},size:{sm:null,base:null},disabled:{false:null,true:null},focused:{false:null,true:null},error:{false:null,true:null},isTextarea:{false:null,true:"items-start"}},compoundVariants:[{size:"sm",variant:"write",isTextarea:!1,class:"h-6"},{size:"base",variant:"write",isTextarea:!1,class:"h-8"},{size:"sm",variant:"read",class:"min-h-4 text-xs"},{size:"base",variant:"read",class:"min-h-5 text-sm"},{variant:"write",focused:!1,error:!1,class:"\n border-storm-100\n dark:border-hurricane-400\n "},{variant:"write",disabled:!1,focused:!0,error:!1,class:"\n border-indigo-600 ring ring-indigo-100\n selection:bg-indigo-500\n dark:ring-0\n "},{variant:"write",disabled:!1,class:"\n bg-white\n dark:bg-hurricane-500\n "},{variant:"write",disabled:!0,class:"\n cursor-not-allowed bg-white-600\n dark:border-hurricane-500 dark:bg-hurricane-600\n "},{disabled:!1,error:!0,class:"border-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"\n ring ring-negative-red-50\n selection:bg-negative-red-50\n dark:ring-0\n "}]}),g=o(["\n text-sm\n placeholder:text-sm placeholder:text-storm-500/40\n dark:placeholder:text-hurricane-200\n ","min-w-0 flex-1 border-none bg-transparent p-0","\n outline-none\n focus:outline-none\n ","font-geist"],{variants:{isTextarea:{false:"h-full",true:"mt-1"},disabled:{false:null,true:"cursor-not-allowed"},error:{false:"\n text-storm-500\n dark:text-white\n ",true:"text-negative-red-500"}}}),f=o(["flex flex-shrink-0 items-center justify-center text-center"],{variants:{variant:{read:"leading-6",write:null},disabled:{false:null,true:"\n text-storm-100\n dark:text-hurricane-400\n "},focused:{false:null,true:null},error:{false:null,true:null},isText:{false:null,true:"text-sm"},isTextarea:{false:null,true:"mt-2"}},compoundVariants:[{disabled:!1,focused:!1,error:!1,class:"\n text-storm-300\n dark:text-hurricane-200\n "},{disabled:!1,focused:!0,error:!1,class:"\n text-storm-500\n dark:text-white\n "},{disabled:!1,focused:!1,error:!0,class:"text-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"text-negative-red-800"}]}),x=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.valueChange=a(this,"valueChange",3),this.inputRefChange=a(this,"inputRefChange",7),this.add=a(this,"add",3),this.enter=a(this,"enter",3),this._internals=this.attachInternals()}align="start";variant="write";id;size="base";type="text";properties={};prefix;suffix;icon;iconFlip;iconRotate;iconPosition="start";value;label;loading=!1;enablePasswordEye=!0;placeholder;helper;required=!0;showOptional=!0;showAddOnEmpty=!1;addText="Add";autofocus=!1;error;autoShowError=!0;errorPlacement;disabled=!1;focused=!1;forceShowTooltip=!1;selectAllOnFocus=!0;focusMethod="focus";optionalTemplate;valueChange;inputRefChange;add;enter;get _el(){return this}_focused=!1;_nonce=h(5);_type="text";_internals;_inputRef;_lastValue;componentDidLoad(){this._checkAutoFocus(),this._type=this.type}formResetCallback(){this.value=null,this.valueChange.emit(null)}formDisabledCallback(t){this._internals.form&&(this.disabled=t)}render(){const{id:t,prefix:e,suffix:r,hasHeaderSlot:a,hasLabelSlot:o,hasHelperSlot:h,hasErrorSlot:l,hasValueSlot:c}=this._getSlotInfo();return i(s,{key:"26ead7c05e6305596106f154754986a05237c454"},i("p-field-container",{key:"8828b6378d5a3e5c7c98dd52c0bc34ff7500ba02",align:this.align,error:this.error,forceShowTooltip:!!this.error?.length&&!this._focused&&this.autoShowError||!!this.error?.length&&this.forceShowTooltip,helper:this.helper,id:t,label:this.label,loading:this.loading,loadingSize:this.size,required:this.required,showOptional:this.showOptional,variant:this.variant},o&&i("slot",{key:"c7a0344e9aec6a7e1c30e173fd5ceaf65268a912",name:"label",slot:"label"}),a&&i("slot",{key:"9a0bdbb419369c6d658d5e1b855913ffe4dd42b0",name:"header",slot:"header"}),h&&i("slot",{key:"dc417538960faecaa20898f52138042b52fc0232",name:"helper",slot:"helper"}),l&&i("slot",{key:"9e7659556f4bb3888d63ee6ca9b7d59bd7201db9",name:"error",slot:"error"}),i("div",{key:"e0f979932fd5afb26e60df3656c503475bbfb43e",class:u({error:!!this.error?.length,disabled:n(this.disabled),focused:n(this.focused)||this._focused,size:this.size,variant:this.variant,isTextarea:"textarea"===this.type}),slot:"content",title:"read"!==this.variant||c?void 0:`${this.value}`},(this.error?.length||e||this.icon&&"start"===this.iconPosition)&&i("div",{key:"60384a989f7f7ce43dff577e5275d12d955f85ff",class:f({variant:this.variant,error:!!this.error?.length,disabled:n(this.disabled),focused:n(this.focused)||this._focused,isText:"string"==typeof r,isTextarea:"textarea"===this.type}),onClick:()=>this._focusInput()},this.icon&&"start"===this.iconPosition||this.error?.length?i("p-icon",{class:d("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.error?.length?"warning":this.icon}):e),this._getContent(c,t),(r||"password"===this.type&&this.enablePasswordEye||this.icon&&"end"===this.iconPosition)&&i("div",{key:"7bfc680f8dff73606785066d9e3ad3fbf7ad5e83",class:d(f({variant:this.variant,error:!!this.error?.length,disabled:n(this.disabled),focused:n(this.focused)||this._focused,isText:"string"==typeof r&&"password"!==this.type,isTextarea:"textarea"===this.type}),{"cursor-pointer":"password"===this.type&&this.enablePasswordEye,"hover:text-indigo-700 dark:hover:text-indigo-300":"password"===this.type}),onClick:()=>this._focusInput()},this.icon&&"end"===this.iconPosition||"password"===this.type&&this.enablePasswordEye?i("p-icon",{class:d("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:"password"===this.type?"text"===this._type?"eye-closed":"eye":this.icon,onClick:()=>{"password"===this.type&&this.enablePasswordEye&&(this._type="text"===this._type?"password":"text")}}):r))))}watchvalue(t){this._inputRef&&t!==this._lastValue&&(this._lastValue=t,this._inputRef.value=t)}handleFocusIn(){this.disabled||(this._focused=!0,this._selectAll())}handleFocusOut(){this.disabled||(this._focused=!1)}handleKeyup(t){this.disabled?t.preventDefault():this._internals?.form&&"textarea"!==this.type&&"Enter"===t.key&&this._internals.form.requestSubmit()}handleKeydown(t){this.disabled||"Enter"===t.key&&this.enter.emit(this.value)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]'),e=!!this._el.querySelector(':scope > [slot="label"]'),r=!!this._el.querySelector(':scope > [slot="prefix"]'),a=!!this._el.querySelector(':scope > [slot="suffix"]'),o=!!this._el.querySelector(':scope > [slot="header"]'),s=!!this._el.querySelector(':scope > [slot="error"]'),n=!!this._el.querySelector(':scope > [slot="value"]'),d=r?i("slot",{name:"prefix"}):this.prefix,h=a?i("slot",{name:"suffix"}):this.suffix,l=this.error&&"string"==typeof this.error&&"true"!==this.error;return{id:this.id?.length?this.id:this._nonce,hasHelperSlot:t,hasLabelSlot:e,hasPrefixSlot:r,hasSuffixSlot:a,hasHeaderSlot:o,hasErrorSlot:s,hasValueSlot:n,prefix:d,suffix:h,errorAndErrorIsNotBoolean:l}}_getContent(t=!1,e){if("read"===this.variant)return t?i("slot",{name:"value"}):this.value&&`${this.value}`.length>0?this.value:this.showAddOnEmpty?i("p-button",{icon:"plus",size:"sm",variant:"text",onClick:()=>this.add.emit()},this.addText):"—";if("slot"===this.type)return i("slot",{name:"input"});const r={id:e,class:g({disabled:n(this.disabled),isTextarea:"textarea"===this.type,error:!!this.error?.length}),value:this.value,placeholder:this.placeholder,disabled:this.disabled,onInput:t=>this._valueChange(t)};let a=this.properties??{};return"string"==typeof a&&(a=JSON.parse(this.properties)),"textarea"===this.type?i("textarea",{ref:t=>this._setInputRef(t),...r,...a}):i("input",{ref:t=>this._setInputRef(t),type:this._type,...r,...a})}_setInputRef(t){this._inputRef=t,this.inputRefChange.emit(t)}_focusInput(){this._inputRef?this._inputRef.focus():this._el.querySelector(':scope > [slot="input"]')[this.focusMethod]()}_selectAll(){this._inputRef&&this.selectAllOnFocus&&this._inputRef.select()}_valueChange(t){t.stopPropagation();const e=t.originalTarget??t.target,r=e.value;this._lastValue=r,this.value=r,this.valueChange.emit(r),this._internals.setFormValue(e.value)}_checkAutoFocus(){this.autofocus&&(this._inputRef?this._focusInput():setTimeout((()=>this._checkAutoFocus()),100))}static get formAssociated(){return!0}static get watchers(){return{value:[{watchvalue:0}]}}static get style(){return"*{box-sizing:border-box}:host{input[type=number]{-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;display:none}}.static{position:static}.relative{position:relative}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.flex{display:flex}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.min-h-4{min-height:1rem}.min-h-5{min-height:1.25rem}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.hyphens-auto{hyphens:auto}.break-normal{overflow-wrap:normal;word-break:normal}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-solid{border-style:solid}.border-none{border-style:none}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-0{padding:0}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.font-geist{font-family:Geist,serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.leading-6{line-height:1.5rem}.text-indigo-300{--tw-text-opacity:1;color:rgb(187 209 253/var(--tw-text-opacity,1))}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-indigo-100{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.ring-negative-red-50{--tw-ring-opacity:1;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.selection\\:bg-indigo-500 ::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50 ::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.selection\\:bg-indigo-500::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:text-storm-500\\/40::placeholder{color:rgba(24,30,41,.4)}.hover\\:text-indigo-700:hover{--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-indigo-300:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(187 209 253/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-indigo-300:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(187 209 253/var(--tw-text-opacity,1))}"}},[833,"p-field",{align:[1],variant:[1],id:[1],size:[1],type:[1],properties:[8],prefix:[1],suffix:[1],icon:[1],iconFlip:[1,"icon-flip"],iconRotate:[2,"icon-rotate"],iconPosition:[1,"icon-position"],value:[8],label:[1],loading:[4],enablePasswordEye:[4,"enable-password-eye"],placeholder:[1],helper:[1],required:[516],showOptional:[516,"show-optional"],showAddOnEmpty:[516,"show-add-on-empty"],addText:[513,"add-text"],autofocus:[516],error:[513],autoShowError:[516,"auto-show-error"],errorPlacement:[1,"error-placement"],disabled:[516],focused:[516],forceShowTooltip:[516,"force-show-tooltip"],selectAllOnFocus:[516,"select-all-on-focus"],focusMethod:[1,"focus-method"],optionalTemplate:[16],_focused:[32],_nonce:[32],_type:[32]},[[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[2,"keyup","handleKeyup"],[2,"keydown","handleKeydown"]],{value:[{watchvalue:0}]}]);function v(){"undefined"!=typeof customElements&&["p-field","p-button","p-field-container","p-helper","p-icon","p-loader","p-tooltip"].forEach((e=>{switch(e){case"p-field":customElements.get(t(e))||customElements.define(t(e),x);break;case"p-button":customElements.get(t(e))||l();break;case"p-field-container":customElements.get(t(e))||c();break;case"p-helper":customElements.get(t(e))||p();break;case"p-icon":customElements.get(t(e))||w();break;case"p-loader":customElements.get(t(e))||m();break;case"p-tooltip":customElements.get(t(e))||b()}}))}v();export{x as F,v as d}
|