@luzmo/lucero 2.2.1 → 2.4.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/LICENSE +1 -1
- package/README.md +34 -1
- package/components/accordion/index.cjs +2 -2
- package/components/accordion/index.js +3 -8
- package/components/{accordion-DpsYMoeb.cjs → accordion-BK0LfhmL.cjs} +2 -2
- package/components/{accordion-BDchhAjE.js → accordion-ciplqKwM.js} +2 -1
- package/components/action-bar/action-bar.d.ts +3 -3
- package/components/action-bar/index.cjs +2 -2
- package/components/action-bar/index.js +3 -8
- package/components/{action-bar-2FGCCKMW.js → action-bar-BZBIeGo7.js} +6 -5
- package/components/action-bar-DAqG_7VG.cjs +39 -0
- package/components/action-button/index.cjs +2 -2
- package/components/action-button/index.js +3 -8
- package/components/{action-button-OB5MM04X.js → action-button-BRijXjEz.js} +2 -1
- package/components/action-button-CX1uYbQp.cjs +22 -0
- package/components/action-group/index.cjs +2 -2
- package/components/action-group/index.js +3 -11
- package/components/{action-group-BQ-fyPYS.js → action-group-DSiruuF0.js} +5 -2
- package/components/action-group-oo7YV0EW.cjs +20 -0
- package/components/action-menu/index.cjs +2 -2
- package/components/action-menu/index.js +3 -8
- package/components/{action-menu-Diehg1Kc.js → action-menu-C0sHNsjG.js} +7 -6
- package/components/{action-menu-CtMswuyc.cjs → action-menu-CwzRbF61.cjs} +2 -2
- package/components/avatar/index.cjs +2 -2
- package/components/avatar/index.js +3 -8
- package/components/{avatar-Nb0368Wi.js → avatar-CwSyYAKV.js} +2 -1
- package/components/avatar-DHS5UGTJ.cjs +34 -0
- package/components/badge/index.cjs +2 -2
- package/components/badge/index.js +3 -8
- package/components/{badge-DP1uxXaZ.js → badge-D2Hjf-Ww.js} +2 -1
- package/components/badge-D8pIDEoq.cjs +23 -0
- package/components/button/index.cjs +2 -2
- package/components/button/index.js +4 -9
- package/components/button-Bvnidb4x.cjs +20 -0
- package/components/{button-DXWWEbir.js → button-DIV_j_U3.js} +4 -3
- package/components/button-base-DiNxrttk.cjs +1 -1
- package/components/button-base-DiPzVpp4.js +1 -1
- package/components/button-group/index.cjs +2 -2
- package/components/button-group/index.js +3 -8
- package/components/button-group-Du7R4SxZ.cjs +18 -0
- package/components/{button-group-DaANSInm.js → button-group-Duf-Igst.js} +2 -1
- package/components/calendar/index.cjs +2 -2
- package/components/calendar/index.js +3 -8
- package/components/{calendar-C8u_88jX.js → calendar-D1UtHvpY.js} +4 -3
- package/components/calendar-pQxEWdYC.cjs +138 -0
- package/components/chat-message/index.cjs +2 -2
- package/components/chat-message/index.js +3 -8
- package/components/chat-message-Dgo6h0rD.cjs +148 -0
- package/components/{chat-message-CXq0Trjx.js → chat-message-T6QIK2Bl.js} +528 -563
- package/components/chat-message-group/index.cjs +2 -2
- package/components/chat-message-group/index.js +3 -8
- package/components/chat-message-group-CvxdX3jt.cjs +24 -0
- package/components/{chat-message-group-D7vdn2gG.js → chat-message-group-k9lo-ZqD.js} +2 -1
- package/components/checkbox/index.cjs +2 -2
- package/components/checkbox/index.js +3 -8
- package/components/{checkbox-6YzkdHR4.js → checkbox-BEjvkjfc.js} +2 -1
- package/components/checkbox-ClVrkeLp.cjs +25 -0
- package/components/checkbox-mixin-jqmrh48O.js +1 -1
- package/components/checkbox-mixin-rFRXqyrK.cjs +1 -1
- package/components/{close-button-BntGLAcp.cjs → close-button-BAELImQY.cjs} +2 -2
- package/components/{close-button-D12zZ9zC.js → close-button-Dlvtf9lB.js} +3 -3
- package/components/color-area/index.cjs +2 -2
- package/components/color-area/index.js +3 -8
- package/components/color-area-CmKlQG1i.cjs +80 -0
- package/components/{color-area-DMpXKgPY.js → color-area-lbg8wwZG.js} +3 -2
- package/components/color-controller-DbyPc33Y.cjs +1 -1
- package/components/color-controller-Rg_Zl0sT.js +1 -1
- package/components/color-field/index.cjs +2 -2
- package/components/color-field/index.js +3 -8
- package/components/{color-field-BNGnBRSO.cjs → color-field-BH9x46k_.cjs} +2 -2
- package/components/{color-field-CUdHxonc.js → color-field-C9S-Fv46.js} +2 -1
- package/components/color-handle/color-handle.d.ts +1 -1
- package/components/color-handle/index.cjs +2 -2
- package/components/color-handle/index.js +3 -8
- package/components/color-handle-2iFLp9FN.cjs +24 -0
- package/components/{color-handle-TKbLs1ax.js → color-handle-BEDQ1RcS.js} +3 -2
- package/components/color-loupe/index.cjs +2 -2
- package/components/color-loupe/index.js +3 -11
- package/components/color-loupe-6NcLbFco.cjs +56 -0
- package/components/{color-loupe-DAxrNPJz.js → color-loupe-CqHyyvjQ.js} +5 -2
- package/components/color-menu/index.cjs +2 -2
- package/components/color-menu/index.js +3 -8
- package/components/color-menu-BYTgxLQG.cjs +89 -0
- package/components/{color-menu-jkdcr5ir.js → color-menu-qJK_clDq.js} +9 -8
- package/components/color-palette/index.cjs +2 -2
- package/components/color-palette/index.js +3 -8
- package/components/{color-palette-FQyIMSwP.js → color-palette-CqiO5ohz.js} +2 -1
- package/components/color-palette-group/index.cjs +2 -2
- package/components/color-palette-group/index.js +3 -8
- package/components/color-palette-group-D4k_7pW6.cjs +28 -0
- package/components/{color-palette-group-o6bnF-Ir.js → color-palette-group-zByrO_qb.js} +2 -1
- package/components/color-palette-x6W09EBL.cjs +18 -0
- package/components/color-picker/index.cjs +2 -2
- package/components/color-picker/index.js +3 -8
- package/components/{color-picker-C4pvkA2k.cjs → color-picker-BAikpqUT.cjs} +2 -2
- package/components/{color-picker-DF3gBQvH.js → color-picker-CSuAPo5X.js} +6 -5
- package/components/color-slider/index.cjs +2 -2
- package/components/color-slider/index.js +3 -8
- package/components/{color-slider-DejvUYrW.js → color-slider-0JzdSRTy.js} +3 -2
- package/components/color-slider-CMW8gJ0Z.cjs +57 -0
- package/components/condition-attribute-with-id-BdnTdWKz.js +1 -1
- package/components/condition-attribute-with-id-Cw92IbcP.cjs +1 -1
- package/components/date-range-picker/index.cjs +2 -2
- package/components/date-range-picker/index.js +3 -8
- package/components/date-range-picker-D149LIGC.cjs +180 -0
- package/components/{date-range-picker-DCOv5PYH.js → date-range-picker-DKVmGpUC.js} +7 -6
- package/components/date-time-picker/index.cjs +2 -2
- package/components/date-time-picker/index.js +3 -8
- package/components/{date-time-picker-ClgATXBy.js → date-time-picker-6c19YzwF.js} +7 -6
- package/components/date-time-picker-CRpvRk9T.cjs +105 -0
- package/components/decorate-CkCg3wfh.js +1 -1
- package/components/decorate-Dq34MBGe.cjs +1 -1
- package/components/dependency-manger-BSaHw9ju.cjs +1 -1
- package/components/dependency-manger-wHEXoU92.js +1 -1
- package/components/divider/index.cjs +2 -2
- package/components/divider/index.js +3 -8
- package/components/divider-BcE8D-pH.cjs +18 -0
- package/components/{divider-CGbT-CL8.js → divider-Cz5nyvP9.js} +2 -1
- package/components/divider.module-BV6tmpOY.cjs +1 -1
- package/components/divider.module-CPEKsaqR.js +1 -1
- package/components/element-resolution-BjaAlqwX.cjs +1 -1
- package/components/element-resolution-gap51AVo.js +1 -1
- package/components/field-group/index.cjs +2 -2
- package/components/field-group/index.js +2 -7
- package/components/field-group-C_kRq7pJ.js +1 -1
- package/components/field-group-Dd5xYczm.cjs +1 -1
- package/components/field-label/index.cjs +2 -2
- package/components/field-label/index.js +3 -11
- package/components/field-label-C0vfY1b6.cjs +25 -0
- package/components/{field-label-B9S41b7c.js → field-label-C28wWqC5.js} +5 -2
- package/components/focus-group-C8lOjbi9.cjs +1 -1
- package/components/focus-group-DVPa1zxz.js +1 -1
- package/components/focus-visible-Bt2uDmuM.js +1 -1
- package/components/focus-visible-DNHNlrty.cjs +1 -1
- package/components/focusable-B6h03pAe.cjs +1 -1
- package/components/focusable-DuP0-Kuy.js +1 -1
- package/components/focusable-selectors-BWpiuXz5.js +1 -1
- package/components/focusable-selectors-DJqGLTJo.cjs +1 -1
- package/components/get-label-from-slot-Bo9mqYCZ.js +1 -1
- package/components/get-label-from-slot-TV4APBYs.cjs +1 -1
- package/components/icon/index.cjs +2 -2
- package/components/icon/index.js +3 -8
- package/components/{icon-DB1DRieA.js → icon-CsJZMhIm.js} +2 -1
- package/components/icon-zOPAWCdx.cjs +18 -0
- package/components/index.cjs +2 -2
- package/components/index.js +64 -75
- package/components/infield-button/index.cjs +2 -2
- package/components/infield-button/index.js +3 -8
- package/components/{infield-button-C1mz69Qf.js → infield-button-DiE8R6ol.js} +2 -1
- package/components/infield-button-kilVRjwB.cjs +22 -0
- package/components/label/index.cjs +2 -2
- package/components/label/index.js +3 -8
- package/components/{label-DPG13Ib0.cjs → label-B3zs6OX0.cjs} +2 -2
- package/components/{label-B1HYQ4Pp.js → label-e6Y13vrS.js} +2 -1
- package/components/language-resolution-BaKYDD1a.js +1 -1
- package/components/language-resolution-CSjktYg5.cjs +1 -1
- package/components/like-anchor-BX4PSB3d.cjs +1 -1
- package/components/like-anchor-DXCaEv7O.js +1 -1
- package/components/manage-help-text-ByLb0QYX.js +1 -1
- package/components/manage-help-text-DtFJsl0k.cjs +1 -1
- package/components/menu/index.cjs +2 -2
- package/components/menu/index.js +3 -8
- package/components/{menu-Cq7BEv5Y.cjs → menu-CrhA2iPZ.cjs} +3 -3
- package/components/{menu-DY8q8qyn.js → menu-fdJseu1y.js} +3 -2
- package/components/multi-language-field/index.cjs +2 -2
- package/components/multi-language-field/index.js +3 -8
- package/components/{multi-language-field-Cfy3M_ZS.cjs → multi-language-field-BndVikur.cjs} +2 -2
- package/components/{multi-language-field-DhQ98r2D.js → multi-language-field-vJMK-osi.js} +3 -2
- package/components/notice/index.cjs +2 -2
- package/components/notice/index.js +3 -8
- package/components/notice-CsWaqcq3.cjs +60 -0
- package/components/{notice-s6QHF_tq.js → notice-N0-lxEf_.js} +4 -3
- package/components/number-field/index.cjs +2 -2
- package/components/number-field/index.js +3 -8
- package/components/{number-field-BqnZS9Gx.js → number-field-DAOy_AvQ.js} +3 -2
- package/components/number-field-xxXgR70l.cjs +57 -0
- package/components/observe-slot-presence-BKY6n06-.js +1 -1
- package/components/observe-slot-presence-CS8pMePk.cjs +1 -1
- package/components/observe-slot-text-CvL-2ey3.cjs +1 -1
- package/components/observe-slot-text-Db8Kx3P-.js +1 -1
- package/components/options/index.cjs +2 -2
- package/components/options/index.js +3 -8
- package/components/options/options.d.ts +1 -0
- package/components/{options-Bd6Uly5_.cjs → options-CP9V2CSJ.cjs} +2 -2
- package/components/{options-CpaaBaxn.js → options-D_ifU0DH.js} +4 -2
- package/components/overlay/index.cjs +2 -2
- package/components/overlay/index.js +4 -10
- package/components/overlay/placement-controller.d.ts +2 -1
- package/components/overlay-Dn7EbA_W.cjs +102 -0
- package/components/{overlay-CyBsHuOL.js → overlay-DpHIYJtd.js} +282 -77
- package/components/{pending-state-a527YMWV.cjs → pending-state-CGHvTtKR.cjs} +2 -2
- package/components/{pending-state-BeG7qBDP.js → pending-state-D_b45qvi.js} +2 -2
- package/components/picker/index.cjs +2 -2
- package/components/picker/index.js +3 -8
- package/components/picker-BliQJlY_.cjs +124 -0
- package/components/{picker-f4fSGZX8.js → picker-D0fMBZLb.js} +6 -6
- package/components/picker-button/index.cjs +2 -2
- package/components/picker-button/index.js +3 -8
- package/components/picker-button-B8Jbf9jK.cjs +37 -0
- package/components/{picker-button-DVzLeTq8.js → picker-button-CJQJshbo.js} +3 -2
- package/components/platform-BAjeJp2W.cjs +1 -1
- package/components/platform-Ce9pNsR9.js +1 -1
- package/components/popover/index.cjs +2 -2
- package/components/popover/index.js +3 -11
- package/components/popover-BsdqkvKI.cjs +30 -0
- package/components/{popover-DTsrgH-f.js → popover-DC8tkee-.js} +17 -15
- package/components/progress-bar/index.cjs +2 -2
- package/components/progress-bar/index.js +3 -8
- package/components/progress-bar-CrodWzcc.cjs +34 -0
- package/components/{progress-bar-BJO8j1aX.js → progress-bar-D4iFHkp7.js} +2 -1
- package/components/progress-circle/index.cjs +2 -2
- package/components/progress-circle/index.js +3 -11
- package/components/{progress-circle-BVToDWX8.js → progress-circle-By6qUQYe.js} +5 -2
- package/components/progress-circle-bO_VAX3N.cjs +33 -0
- package/components/progress-steps/index.cjs +2 -2
- package/components/progress-steps/index.d.ts +2 -1
- package/components/progress-steps/index.js +4 -9
- package/components/progress-steps/progress-steps-model.d.ts +23 -0
- package/components/progress-steps/progress-steps.d.ts +82 -109
- package/components/progress-steps/types.d.ts +18 -3
- package/components/progress-steps-Y-Tgh_fQ.cjs +98 -0
- package/components/progress-steps-ohguJaPa.js +368 -0
- package/components/prompt-box/index.cjs +2 -2
- package/components/prompt-box/index.js +3 -8
- package/components/{prompt-box-BY1xKFZO.js → prompt-box-Cz_m2wso.js} +8 -8
- package/components/{prompt-box-Dg9S0C5x.cjs → prompt-box-sp9_-Hnx.cjs} +3 -3
- package/components/question-box/index.cjs +2 -2
- package/components/question-box/index.js +3 -8
- package/components/{question-box-CZxQTeS9.cjs → question-box-Bdtsgv1k.cjs} +2 -2
- package/components/{question-box-CyojSIop.js → question-box-D7YSi_6c.js} +9 -8
- package/components/radio/index.cjs +2 -2
- package/components/radio/index.js +3 -8
- package/components/{radio-DRI4on-W.js → radio-B6hX9Klr.js} +2 -1
- package/components/radio-CRTfoEX_.cjs +22 -0
- package/components/random-id-BcUJAxUZ.cjs +1 -1
- package/components/random-id-CiMDyX7v.js +1 -1
- package/components/rolldown-runtime-Dy4uBu1J.js +1 -1
- package/components/roving-tabindex-BoPao4td.cjs +1 -1
- package/components/roving-tabindex-pomAn3z-.js +1 -1
- package/components/scaled-indicator-C-TupV4L.js +1 -1
- package/components/scaled-indicator-DLJIztx0.cjs +1 -1
- package/components/search/index.cjs +2 -2
- package/components/search/index.js +3 -8
- package/components/{search-C-EPZmTG.js → search-DEjLSJ96.js} +4 -3
- package/components/search-PxJEuwHt.cjs +47 -0
- package/components/segments-factory-BCRi1NKb.js +1 -1
- package/components/segments-factory-DtPyN5sh.cjs +1 -1
- package/components/select/index.cjs +2 -2
- package/components/select/index.js +3 -8
- package/components/{select-BbFG38ag.js → select-BUgHi69P.js} +9 -8
- package/components/select-DsGVB01K.cjs +158 -0
- package/components/sized-mixin-BT7cv-fT.cjs +1 -1
- package/components/sized-mixin-DzQTebN-.js +1 -1
- package/components/skeleton-loader/index.cjs +2 -2
- package/components/skeleton-loader/index.js +3 -8
- package/components/{skeleton-loader-C0LH3prK.js → skeleton-loader-BeCsYADg.js} +2 -1
- package/components/skeleton-loader-CNcwCh4V.cjs +18 -0
- package/components/slider/index.cjs +2 -2
- package/components/slider/index.js +3 -8
- package/components/{slider-B7QAhDTM.js → slider-Bsl8Xrme.js} +3 -2
- package/components/{slider-DxliwjT6.cjs → slider-C_8pSK4N.cjs} +2 -2
- package/components/slottable-request-event-C6eb7Ch3.cjs +1 -1
- package/components/slottable-request-event-MRSZbgTu.js +1 -1
- package/components/split-view/index.cjs +2 -2
- package/components/split-view/index.js +3 -8
- package/components/split-view-BwCFYey6.cjs +43 -0
- package/components/{split-view-FxpiSCem.js → split-view-CDwHDmII.js} +2 -1
- package/components/status-light/index.cjs +2 -2
- package/components/status-light/index.js +3 -8
- package/components/status-light-D3hdx8Pd.cjs +21 -0
- package/components/{status-light-DC8qqO8q.js → status-light-DwUnjE3t.js} +2 -1
- package/components/strategies-BwNbUXYS.cjs +1 -1
- package/components/strategies-Cl59wdNZ.js +1 -1
- package/components/streaming-listener-Bfyk6Fsx.cjs +1 -1
- package/components/streaming-listener-CtcMpYfS.js +1 -1
- package/components/swatch/index.cjs +2 -2
- package/components/swatch/index.js +3 -8
- package/components/{swatch-C2ty27bJ.js → swatch-Bj2FARl1.js} +2 -1
- package/components/{swatch-DUmBmg4S.cjs → swatch-CQ0inIHK.cjs} +2 -2
- package/components/switch/index.cjs +2 -2
- package/components/switch/index.js +3 -8
- package/components/{switch-DOuXlFwI.js → switch-CpG-hSWY.js} +2 -1
- package/components/switch-qwpYXVnO.cjs +22 -0
- package/components/tabs/index.cjs +2 -2
- package/components/tabs/index.js +3 -8
- package/components/{tabs-CjY4eX9W.js → tabs-BD_ATrBg.js} +4 -3
- package/components/{tabs-ZwcVrVub.cjs → tabs-DxOD4QNt.cjs} +2 -2
- package/components/tags/index.cjs +2 -2
- package/components/tags/index.js +3 -8
- package/components/{tags-BCKNzEaH.js → tags-BIpFgOYy.js} +4 -3
- package/components/tags-fLCGajv_.cjs +47 -0
- package/components/text-field/index.cjs +2 -2
- package/components/text-field/index.js +3 -8
- package/components/text-field-3fDtTQkR.cjs +1 -1
- package/components/text-field-CbN4nydd.cjs +21 -0
- package/components/text-field-CmSym2QK.js +1 -1
- package/components/{text-field-C2MHZbTp.js → text-field-CmyqQxq0.js} +2 -1
- package/components/text-field.module-BHhBReKL.js +1 -1
- package/components/text-field.module-l8CaTCwE.cjs +1 -1
- package/components/toast/index.cjs +2 -2
- package/components/toast/index.js +3 -8
- package/components/toast-DRrGgznK.cjs +51 -0
- package/components/{toast-DlOeMDCI.js → toast-KwHx-agn.js} +3 -2
- package/components/tokens.cjs +18 -0
- package/components/tokens.css +18 -0
- package/components/tokens.js +23 -0
- package/components/tooltip/index.cjs +2 -2
- package/components/tooltip/index.js +3 -8
- package/components/tooltip-DjOW52n2.cjs +45 -0
- package/components/{tooltip-Byl1h4nN.js → tooltip-xTa9Q5JW.js} +2 -1
- package/components/top-nav/index.cjs +2 -2
- package/components/top-nav/index.js +3 -8
- package/components/top-nav-81IKEGjR.cjs +41 -0
- package/components/{top-nav-B9YKdtFB.js → top-nav-CXjnpdFR.js} +2 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +1 -1
- package/components/voice-recorder-B1tBrGTV.cjs +1 -1
- package/components/voice-recorder-CTg3kRxx.js +1 -1
- package/custom-elements.json +1 -1
- package/package.json +11 -2
- package/standalone/accordion.js +45 -0
- package/standalone/action-bar.js +41 -0
- package/standalone/action-button.js +20 -0
- package/standalone/action-group.js +20 -0
- package/standalone/action-menu.js +58 -0
- package/standalone/avatar.js +36 -0
- package/standalone/badge.js +20 -0
- package/standalone/button-group.js +20 -0
- package/standalone/button.js +20 -0
- package/standalone/calendar.js +20 -0
- package/standalone/chat-message-group.js +26 -0
- package/standalone/chat-message.js +150 -0
- package/standalone/checkbox.js +20 -0
- package/standalone/chunks/NumberFormatter-DMCfW685.js +2 -0
- package/standalone/chunks/NumberParser-r_jv94LA.js +2 -0
- package/standalone/chunks/action-button-BzzPBqt5.js +6 -0
- package/standalone/chunks/action-group-DTxf-0tP.js +4 -0
- package/standalone/chunks/async-directive-BA2_dM-5.js +2 -0
- package/standalone/chunks/async-directive-CPdA0BOw.js +2 -0
- package/standalone/chunks/badge-DD-tMgzi.js +7 -0
- package/standalone/chunks/button-Bv3v7VbN.js +4 -0
- package/standalone/chunks/button-Dykw3TSO.js +2 -0
- package/standalone/chunks/button-base-C7jeeyLp.js +9 -0
- package/standalone/chunks/calendar-ZwUYkzVq.js +122 -0
- package/standalone/chunks/checkbox-OQtakoP8.js +9 -0
- package/standalone/chunks/checkbox-mixin-BAQWmwps.js +11 -0
- package/standalone/chunks/class-map-CxQ0PcQP.js +2 -0
- package/standalone/chunks/clear-button-pVGfwye8.js +2 -0
- package/standalone/chunks/close-button-RpPiwBdf.js +2 -0
- package/standalone/chunks/color-area-Cj8oPsIF.js +64 -0
- package/standalone/chunks/color-controller-fJNWRHVI.js +2 -0
- package/standalone/chunks/color-field-CrCF4kqZ.js +7 -0
- package/standalone/chunks/color-handle-BHrAxEG2.js +8 -0
- package/standalone/chunks/color-loupe-C34cms5t.js +40 -0
- package/standalone/chunks/color-menu-B5UOMYmX.js +73 -0
- package/standalone/chunks/color-slider-CAqvxsgS.js +41 -0
- package/standalone/chunks/condition-attribute-with-id-Dv8Yd-N1.js +2 -0
- package/standalone/chunks/dependency-manger-BPrqqTnJ.js +2 -0
- package/standalone/chunks/directive-Du_3lDov.js +2 -0
- package/standalone/chunks/directive-helpers-Bu8icI7Y.js +2 -0
- package/standalone/chunks/divider-Bf9Drp2z.js +2 -0
- package/standalone/chunks/divider.module-sYekRHno.js +2 -0
- package/standalone/chunks/element-resolution-DX0ea-Cd.js +2 -0
- package/standalone/chunks/field-group-D8EjgC6F.js +7 -0
- package/standalone/chunks/field-label-VWHDlW9_.js +9 -0
- package/standalone/chunks/flow-aCcJ5kgi.js +2 -0
- package/standalone/chunks/focus-group-Cl6MLy-C.js +2 -0
- package/standalone/chunks/focusable-selectors-D5e0OxNL.js +2 -0
- package/standalone/chunks/get-label-from-slot-Dfoiptqo.js +2 -0
- package/standalone/chunks/icon-Dy6J1QeX.js +2 -0
- package/{components/infield-button-CYO9V1eX.cjs → standalone/chunks/infield-button-D03MpU_s.js} +3 -19
- package/standalone/chunks/keyed-CNWmQd2J.js +2 -0
- package/standalone/chunks/language-resolution-BWHk9A73.js +2 -0
- package/standalone/chunks/lit-BN_lRQbJ.js +3 -0
- package/standalone/chunks/lucero-runtime-DGJ9-isg.js +16 -0
- package/standalone/chunks/luzmo-icons-CJa-aByT.js +13 -0
- package/standalone/chunks/manage-help-text-Cl9OJ2xf.js +14 -0
- package/standalone/chunks/menu-nolJetlp.js +92 -0
- package/standalone/chunks/number-field-C3DYfl1s.js +41 -0
- package/standalone/chunks/observe-slot-presence-DWPtw22K.js +2 -0
- package/standalone/chunks/options-BjRSj630.js +89 -0
- package/standalone/chunks/overlay-C4ir0iyC.js +31 -0
- package/standalone/chunks/overlay-C_XW8yry.js +57 -0
- package/standalone/chunks/pending-state-DxeRqe6Q.js +11 -0
- package/standalone/chunks/picker-button-BeXTIgUt.js +21 -0
- package/standalone/chunks/picker-hbMQOkUX.js +108 -0
- package/standalone/chunks/platform-BfrBbd97.js +2 -0
- package/standalone/chunks/popover-BsB3dmQe.js +14 -0
- package/standalone/chunks/progress-circle-CEx1b5Sv.js +17 -0
- package/standalone/chunks/property-CLXrnTGx.js +2 -0
- package/standalone/chunks/radio-2vHhfmHw.js +6 -0
- package/standalone/chunks/random-id-CeLe5NEk.js +2 -0
- package/standalone/chunks/repeat-CZdNcszA.js +2 -0
- package/standalone/chunks/rolldown-runtime-DWK5is8u.js +2 -0
- package/standalone/chunks/roving-tabindex-CB4xC55P.js +2 -0
- package/standalone/chunks/scaled-indicator-k-1JmS0b.js +10 -0
- package/standalone/chunks/segments-factory-Ch3AAizU.js +2 -0
- package/standalone/chunks/skeleton-loader-BxYcRRJr.js +2 -0
- package/standalone/chunks/slottable-request-event-D9FhiqH1.js +2 -0
- package/standalone/chunks/strategies-kad_0dTB.js +2 -0
- package/standalone/chunks/streaming-listener-DFczLm8I.js +2 -0
- package/standalone/chunks/style-map-D4QeV3m0.js +2 -0
- package/standalone/chunks/swatch-m_4GcO2_.js +33 -0
- package/standalone/chunks/text-field-BnZtyodU.js +5 -0
- package/standalone/chunks/text-field-BrlDeJsx.js +65 -0
- package/standalone/chunks/text-field.module-ClDE7laI.js +2 -0
- package/standalone/chunks/tooltip-DB6jRVyB.js +29 -0
- package/standalone/chunks/unsafe-html-BPQaWy0v.js +2 -0
- package/standalone/chunks/voice-recorder--d34tYNu.js +2 -0
- package/standalone/chunks/when-BWvpqCBs.js +2 -0
- package/standalone/clear-button.js +20 -0
- package/standalone/close-button.js +20 -0
- package/standalone/color-area.js +20 -0
- package/standalone/color-field.js +20 -0
- package/standalone/color-handle.js +20 -0
- package/standalone/color-loupe.js +20 -0
- package/standalone/color-menu.js +20 -0
- package/standalone/color-palette-group.js +30 -0
- package/standalone/color-palette.js +20 -0
- package/standalone/color-picker.js +50 -0
- package/standalone/color-slider.js +20 -0
- package/standalone/date-range-picker.js +182 -0
- package/standalone/date-time-picker.js +107 -0
- package/standalone/divider.js +20 -0
- package/standalone/field-group.js +20 -0
- package/standalone/field-label.js +20 -0
- package/standalone/icon.js +20 -0
- package/standalone/infield-button.js +20 -0
- package/standalone/label.js +20 -0
- package/standalone/lit.js +20 -0
- package/standalone/manifest.json +152 -0
- package/standalone/menu.js +20 -0
- package/standalone/multi-language-field.js +42 -0
- package/standalone/notice.js +62 -0
- package/standalone/number-field.js +20 -0
- package/standalone/options.js +20 -0
- package/standalone/overlay.js +20 -0
- package/standalone/picker-button.js +20 -0
- package/standalone/picker.js +20 -0
- package/standalone/popover.js +20 -0
- package/standalone/progress-bar.js +36 -0
- package/standalone/progress-circle.js +20 -0
- package/standalone/progress-steps.js +100 -0
- package/standalone/prompt-box.js +316 -0
- package/standalone/question-box.js +403 -0
- package/standalone/radio.js +20 -0
- package/standalone/search.js +49 -0
- package/standalone/select.js +160 -0
- package/standalone/skeleton-loader.js +20 -0
- package/standalone/slider.js +137 -0
- package/standalone/split-view.js +45 -0
- package/standalone/status-light.js +23 -0
- package/standalone/swatch.js +20 -0
- package/standalone/switch.js +24 -0
- package/standalone/tabs.js +78 -0
- package/standalone/tags.js +49 -0
- package/standalone/text-field.js +20 -0
- package/standalone/toast.js +53 -0
- package/standalone/tokens.css +1 -0
- package/standalone/tokens.js +20 -0
- package/standalone/tooltip.js +20 -0
- package/standalone/top-nav.js +43 -0
- package/standalone/utils.js +20 -0
- package/styles/tokens.d.ts +1 -0
- package/utils/reactive-controllers/pending-state.d.ts +1 -1
- package/components/action-bar-CXT4lT30.cjs +0 -39
- package/components/action-button-BKnzGQR6.cjs +0 -22
- package/components/action-group-D1G30Iir.cjs +0 -20
- package/components/avatar-Cu9c0sCS.cjs +0 -34
- package/components/badge-XJP3sZhB.cjs +0 -23
- package/components/button-group-6M8M-TUI.cjs +0 -18
- package/components/button-l0fRopSN.cjs +0 -20
- package/components/calendar-DZkKMs2L.cjs +0 -138
- package/components/chat-message-group-CzCwyW7F.cjs +0 -24
- package/components/chat-message-t4a0r3R6.cjs +0 -148
- package/components/checkbox-DdatW4xE.cjs +0 -25
- package/components/color-area-B_pRu9Vf.cjs +0 -80
- package/components/color-handle-DIoVrLRF.cjs +0 -24
- package/components/color-loupe-sY1wOisV.cjs +0 -56
- package/components/color-menu-CdETqhbP.cjs +0 -89
- package/components/color-palette-CidHsmE0.cjs +0 -18
- package/components/color-palette-group-B4r4tPfY.cjs +0 -28
- package/components/color-slider-DLEM1nGA.cjs +0 -57
- package/components/date-range-picker-9ioTuDZq.cjs +0 -180
- package/components/date-time-picker-DRjQTyGS.cjs +0 -105
- package/components/divider-wana0uPI.cjs +0 -18
- package/components/field-label-C5vdJ1ys.cjs +0 -25
- package/components/icon-CSqR-OOO.cjs +0 -18
- package/components/notice-xgrLOiC0.cjs +0 -60
- package/components/number-field-04RFqrUa.cjs +0 -57
- package/components/overlay-B-gaxspw.cjs +0 -47
- package/components/overlay-CPZvL0Ic.cjs +0 -73
- package/components/overlay-DdIs4w5M.js +0 -227
- package/components/picker-D225VAbx.cjs +0 -124
- package/components/picker-button-BR7oM7_M.cjs +0 -37
- package/components/popover-DWWYpY-k.cjs +0 -30
- package/components/progress-bar-C7wJ5bxS.cjs +0 -34
- package/components/progress-circle-DyApSKdm.cjs +0 -33
- package/components/progress-steps-Ba4VbAKR.cjs +0 -96
- package/components/progress-steps-nJ8Xw-nG.js +0 -262
- package/components/radio-O3a1rmCe.cjs +0 -22
- package/components/search-BhMhfCBh.cjs +0 -47
- package/components/select-D5fQgPPj.cjs +0 -158
- package/components/skeleton-loader-Cm50Ztzk.cjs +0 -18
- package/components/split-view-5uMSU_b7.cjs +0 -43
- package/components/status-light-BYBYorYy.cjs +0 -21
- package/components/switch-B-gu-War.cjs +0 -22
- package/components/tags-B28zWEic.cjs +0 -47
- package/components/text-field-wJK2bzMT.cjs +0 -21
- package/components/toast-COQ7Xl5T.cjs +0 -51
- package/components/tooltip-Sm0pruxL.cjs +0 -45
- package/components/top-nav-BcZLCBP_.cjs +0 -41
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! * Lucero - The design system for Luzmo.
|
|
2
2
|
*
|
|
3
|
-
* Copyright ©
|
|
3
|
+
* Copyright © 2026 Luzmo
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
6
|
* This license allows users with a current active Luzmo account to use Lucero.
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
18
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
19
|
+
import "./tokens.js";
|
|
19
20
|
import { n as t, t as n } from "./decorate-CkCg3wfh.js";
|
|
20
21
|
import { t as r } from "./condition-attribute-with-id-BdnTdWKz.js";
|
|
21
22
|
import { t as i } from "./random-id-CiMDyX7v.js";
|
|
@@ -23,20 +24,21 @@ import { n as a, t as o } from "./element-resolution-gap51AVo.js";
|
|
|
23
24
|
import { n as s, t as c } from "./slottable-request-event-MRSZbgTu.js";
|
|
24
25
|
import { n as l } from "./focusable-selectors-BWpiuXz5.js";
|
|
25
26
|
import { a as u, t as d, u as f } from "./platform-Ce9pNsR9.js";
|
|
26
|
-
import { html as p,
|
|
27
|
-
import { property as
|
|
28
|
-
import { ifDefined as
|
|
29
|
-
import { styleMap as
|
|
30
|
-
import { arrow as te, autoUpdate as
|
|
27
|
+
import { html as p, nothing as m, render as h, unsafeCSS as g } from "lit";
|
|
28
|
+
import { property as _, query as v, queryAssignedElements as ee, state as y } from "lit/decorators.js";
|
|
29
|
+
import { ifDefined as b } from "lit/directives/if-defined.js";
|
|
30
|
+
import { styleMap as x } from "lit/directives/style-map.js";
|
|
31
|
+
import { arrow as te, autoUpdate as S, computePosition as ne, flip as re, offset as ie, shift as ae, size as oe } from "@floating-ui/dom";
|
|
32
|
+
import { AsyncDirective as se, directive as C } from "lit/async-directive.js";
|
|
31
33
|
//#region src/utils/reparent-child.ts
|
|
32
|
-
function
|
|
34
|
+
function ce(e, t, n = []) {
|
|
33
35
|
for (let [r, i] of t.entries()) {
|
|
34
36
|
let t = e[r], a = t.parentElement || t.getRootNode();
|
|
35
37
|
n[r] && n[r](i), a && a !== t && t.replaceWith(i), delete e[r];
|
|
36
38
|
}
|
|
37
39
|
return t;
|
|
38
40
|
}
|
|
39
|
-
var
|
|
41
|
+
var le = (e, t, { position: n, prepareCallback: r } = { position: "beforeend" }) => {
|
|
40
42
|
let { length: i } = e;
|
|
41
43
|
if (i === 0) return () => e;
|
|
42
44
|
let a = 1, o = 0;
|
|
@@ -53,11 +55,11 @@ var oe = (e, t, { position: n, prepareCallback: r } = { position: "beforeend" })
|
|
|
53
55
|
u && u !== i && i.replaceWith(s[o]), t.insertAdjacentElement(n, i), o += a;
|
|
54
56
|
} while (--i > 0);
|
|
55
57
|
return function() {
|
|
56
|
-
return
|
|
58
|
+
return ce(s, e, c);
|
|
57
59
|
};
|
|
58
|
-
},
|
|
60
|
+
}, ue = 1e3, de = 1e3, w = new class {
|
|
59
61
|
constructor(e = {}) {
|
|
60
|
-
this.warmUpDelay =
|
|
62
|
+
this.warmUpDelay = ue, this.coolDownDelay = de, this.isWarm = !1, this.timeout = 0, Object.assign(this, e);
|
|
61
63
|
}
|
|
62
64
|
openTimer(e) {
|
|
63
65
|
if (this.cancelCooldownTimer(), !this.component || e !== this.component) return this.component && (this.close(this.component), this.cancelCooldownTimer()), this.component = e, this.isWarm ? Promise.resolve(!1) : (this.promise = new Promise((e) => {
|
|
@@ -161,8 +163,8 @@ var O = class e extends t {
|
|
|
161
163
|
document.dispatchEvent(e);
|
|
162
164
|
}
|
|
163
165
|
static async open(t, n, r, i) {
|
|
164
|
-
await Promise.resolve().then(() =>
|
|
165
|
-
let a = arguments.length === 2, o = r || t, s = new this(), c = !1, l =
|
|
166
|
+
await Promise.resolve().then(() => Ce);
|
|
167
|
+
let a = arguments.length === 2, o = r || t, s = new this(), c = !1, l = le([o], s, {
|
|
166
168
|
position: "beforeend",
|
|
167
169
|
prepareCallback: (e) => {
|
|
168
170
|
let t = e.slot;
|
|
@@ -246,7 +248,7 @@ var O = class e extends t {
|
|
|
246
248
|
};
|
|
247
249
|
//#endregion
|
|
248
250
|
//#region src/components/overlay/overlay-dialog.ts
|
|
249
|
-
function
|
|
251
|
+
function fe(e) {
|
|
250
252
|
class t extends e {
|
|
251
253
|
async manageDialogOpen() {
|
|
252
254
|
let e = this.open;
|
|
@@ -307,7 +309,7 @@ function ce(e) {
|
|
|
307
309
|
}
|
|
308
310
|
//#endregion
|
|
309
311
|
//#region src/components/overlay/overlay-no-popover.ts
|
|
310
|
-
function
|
|
312
|
+
function pe(e) {
|
|
311
313
|
class t extends e {
|
|
312
314
|
async managePopoverOpen() {
|
|
313
315
|
await this.managePosition();
|
|
@@ -356,7 +358,7 @@ function le(e) {
|
|
|
356
358
|
}
|
|
357
359
|
//#endregion
|
|
358
360
|
//#region src/components/overlay/overlay-popover.ts
|
|
359
|
-
var
|
|
361
|
+
var me = typeof CSS < "u" && CSS.supports("(overlay: auto)");
|
|
360
362
|
function F(e) {
|
|
361
363
|
let t = !1;
|
|
362
364
|
try {
|
|
@@ -368,7 +370,7 @@ function F(e) {
|
|
|
368
370
|
} catch {}
|
|
369
371
|
return t || n;
|
|
370
372
|
}
|
|
371
|
-
function
|
|
373
|
+
function he(e) {
|
|
372
374
|
class t extends e {
|
|
373
375
|
async manageDelay(e) {
|
|
374
376
|
if (e === !1 || e !== this.open) {
|
|
@@ -400,7 +402,7 @@ function de(e) {
|
|
|
400
402
|
e && this.open === e && !t && !n && this.isConnected && (this.dialogEl.showPopover(), this.managePosition());
|
|
401
403
|
}
|
|
402
404
|
async ensureOnDOM(e) {
|
|
403
|
-
|
|
405
|
+
me || await this.shouldHidePopover(e), this.shouldShowPopover(e), await D();
|
|
404
406
|
}
|
|
405
407
|
makeTransition(e) {
|
|
406
408
|
if (this.open !== e) return null;
|
|
@@ -452,7 +454,7 @@ function de(e) {
|
|
|
452
454
|
}
|
|
453
455
|
//#endregion
|
|
454
456
|
//#region src/components/overlay/overlay-stack.ts
|
|
455
|
-
var
|
|
457
|
+
var ge = typeof document < "u" && "showPopover" in document.createElement("div"), I = new class {
|
|
456
458
|
get document() {
|
|
457
459
|
return this.root.ownerDocument || document;
|
|
458
460
|
}
|
|
@@ -492,7 +494,7 @@ var fe = typeof document < "u" && "showPopover" in document.createElement("div")
|
|
|
492
494
|
this.closeOverlay(t);
|
|
493
495
|
return;
|
|
494
496
|
}
|
|
495
|
-
|
|
497
|
+
ge || t && this.closeOverlay(t);
|
|
496
498
|
}, typeof document < "u" && this.bindEvents();
|
|
497
499
|
}
|
|
498
500
|
bindEvents() {
|
|
@@ -538,15 +540,15 @@ var fe = typeof document < "u" && "showPopover" in document.createElement("div")
|
|
|
538
540
|
remove(e) {
|
|
539
541
|
this.closeOverlay(e);
|
|
540
542
|
}
|
|
541
|
-
}(),
|
|
543
|
+
}(), _e = ":host{pointer-events:none;--luzmo-overlay-animation-distance:.5rem;display:contents}:host(:has(>luzmo-tooltip)){--luzmo-overlay-animation-distance:var(--luzmo-tooltip-animation-distance,4px)}.dialog{box-sizing:border-box;--luzmo-overlay-open:true;background:0 0;border:0;max-width:calc(100vw - 16px);height:auto;max-height:calc(100dvh - 16px);margin:0;padding:0;display:flex;position:fixed;inset:0 auto auto 0;overflow:visible;opacity:1!important}.dialog:not([is-visible]){display:none}.dialog:focus{outline:none}dialog:modal{--luzmo-popover-filter:drop-shadow(0px 2px 6px var(--luzmo-shadow-color))}:host(:not([open])) .dialog{--luzmo-overlay-open:false}.dialog::backdrop{display:none}.dialog:before{content:\"\";position:absolute;inset:-999em;pointer-events:auto!important}.dialog:not(.not-immediately-closable):before{display:none}.dialog>div{width:100%}::slotted(*){pointer-events:auto;visibility:visible!important}::slotted(luzmo-popover){position:static}.dialog:not([actual-placement])[placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog:not([actual-placement])[placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=top]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:var(--luzmo-overlay-animation-distance)}.dialog[actual-placement*=right]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=bottom]{padding-block:var(--luzmo-overlay-animation-distance);margin-top:calc(-1 * var(--luzmo-overlay-animation-distance))}.dialog[actual-placement*=left]{padding-inline:var(--luzmo-overlay-animation-distance);margin-left:var(--luzmo-overlay-animation-distance)}slot[name=longpress-describedby-descriptor]{display:none}@supports selector(:open){.dialog{opacity:0}.dialog:open{opacity:1;--luzmo-popover-filter:drop-shadow(0px 2px 6px var(--luzmo-shadow-color))}}@supports selector(:popover-open){.dialog{opacity:0}.dialog:popover-open{opacity:1;--luzmo-popover-filter:drop-shadow(0px 2px 6px var(--luzmo-shadow-color))}}@supports (overlay:auto){.dialog{transition:all var(--luzmo-overlay-animation-duration,.13s), translate 0s, display var(--luzmo-overlay-animation-duration,.13s);transition-behavior:allow-discrete;display:none}:is(.dialog:popover-open,.dialog:modal){display:flex}}@supports (not selector(:open)) and (not selector(:popover-open)){:host:not([open]) .dialog{pointer-events:none}.dialog[actual-placement]{z-index:calc(var(--luzmo-overlay-z-index-base,1000) + var(--luzmo-overlay-open-count))}}";
|
|
542
544
|
//#endregion
|
|
543
545
|
//#region src/components/overlay/placement-controller.ts
|
|
544
|
-
function
|
|
546
|
+
function L(e) {
|
|
545
547
|
if (e === void 0) return 0;
|
|
546
548
|
let t = window.devicePixelRatio || 1;
|
|
547
549
|
return Math.round(e * t) / t;
|
|
548
550
|
}
|
|
549
|
-
var
|
|
551
|
+
var R = 8, ve = 100, ye = (e) => ({
|
|
550
552
|
left: [
|
|
551
553
|
"right",
|
|
552
554
|
"bottom",
|
|
@@ -607,10 +609,10 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
607
609
|
"left",
|
|
608
610
|
"right"
|
|
609
611
|
]
|
|
610
|
-
})[e] ?? [e],
|
|
612
|
+
})[e] ?? [e], be = Symbol("placement updated"), z = class {
|
|
611
613
|
constructor(e) {
|
|
612
|
-
this.originalPlacements = /* @__PURE__ */ new WeakMap(), this.placementGeneration = 0, this.allowPlacementUpdate = !1, this.closeForAncestorUpdate = () => {
|
|
613
|
-
!this.allowPlacementUpdate && this.options.type !== "modal" && this.cleanup && this.target.dispatchEvent(new Event("close", { bubbles: !0 })), this.allowPlacementUpdate = !1;
|
|
614
|
+
this.originalPlacements = /* @__PURE__ */ new WeakMap(), this.placementGeneration = 0, this.allowPlacementUpdate = !1, this.closeForAncestorUpdate = (e) => {
|
|
615
|
+
f() && e?.currentTarget === window.visualViewport || (!this.allowPlacementUpdate && this.options.type !== "modal" && this.cleanup && this.target.dispatchEvent(new Event("close", { bubbles: !0 })), this.allowPlacementUpdate = !1);
|
|
614
616
|
}, this.updatePlacement = () => {
|
|
615
617
|
this.computePlacement();
|
|
616
618
|
}, this.resetOverlayPosition = () => {
|
|
@@ -619,11 +621,11 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
619
621
|
}
|
|
620
622
|
placeOverlay(e = this.target, t = this.options) {
|
|
621
623
|
if (this.cleanup?.(), this.cleanup = void 0, this.target = e, this.options = t, !e || !t) return;
|
|
622
|
-
let n =
|
|
624
|
+
let n = S(t.trigger, e, this.closeForAncestorUpdate, {
|
|
623
625
|
ancestorResize: !1,
|
|
624
626
|
elementResize: !1,
|
|
625
627
|
layoutShift: !1
|
|
626
|
-
}), r =
|
|
628
|
+
}), r = S(t.trigger, e, this.updatePlacement, { ancestorScroll: !1 }), i = window.visualViewport, a = 0, o = !1, s = () => {
|
|
627
629
|
o || a || (a = requestAnimationFrame(() => {
|
|
628
630
|
a = 0, !o && this.updatePlacement();
|
|
629
631
|
}));
|
|
@@ -640,20 +642,20 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
640
642
|
async computePlacement() {
|
|
641
643
|
let { options: e, target: t } = this, n = this.placementGeneration, r = () => this.placementGeneration === n && !!this.target && this.target === t;
|
|
642
644
|
if (await (document.fonts ? document.fonts.ready : Promise.resolve()), !r() || f() && (await new Promise((e) => requestAnimationFrame(e)), !r())) return;
|
|
643
|
-
let i = e.trigger instanceof HTMLElement ?
|
|
644
|
-
padding:
|
|
645
|
-
fallbackPlacements:
|
|
645
|
+
let i = e.trigger instanceof HTMLElement ? re() : re({
|
|
646
|
+
padding: R,
|
|
647
|
+
fallbackPlacements: ye(e.placement)
|
|
646
648
|
}), [a = 0, o = 0] = Array.isArray(e?.offset) ? e.offset : [e.offset, 0], s = this.host.elements.find((e) => e.tipElement)?.tipElement, c = [
|
|
647
|
-
|
|
649
|
+
ie({
|
|
648
650
|
mainAxis: a,
|
|
649
651
|
crossAxis: o
|
|
650
652
|
}),
|
|
651
|
-
|
|
653
|
+
ae({ padding: R }),
|
|
652
654
|
i,
|
|
653
|
-
|
|
654
|
-
padding:
|
|
655
|
+
oe({
|
|
656
|
+
padding: R,
|
|
655
657
|
apply: ({ availableWidth: e, availableHeight: n, rects: { floating: r } }) => {
|
|
656
|
-
let i = Math.max(
|
|
658
|
+
let i = Math.max(ve, Math.floor(n)), a = r.height;
|
|
657
659
|
this.initialHeight = this.isConstrained && this.initialHeight || a, this.isConstrained = a < this.initialHeight || i <= a;
|
|
658
660
|
let o = this.isConstrained ? `${i}px` : "";
|
|
659
661
|
Object.assign(t.style, {
|
|
@@ -664,9 +666,9 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
664
666
|
}),
|
|
665
667
|
...s ? [te({
|
|
666
668
|
element: s,
|
|
667
|
-
padding: e.tipPadding ||
|
|
669
|
+
padding: e.tipPadding || R
|
|
668
670
|
})] : []
|
|
669
|
-
], { x: l, y: u, placement: d, middlewareData: p } = await
|
|
671
|
+
], { x: l, y: u, placement: d, middlewareData: p } = await ne(e.trigger, t, {
|
|
670
672
|
placement: e.placement,
|
|
671
673
|
middleware: c,
|
|
672
674
|
strategy: "fixed"
|
|
@@ -676,7 +678,7 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
676
678
|
if (g && f() && (m -= g.offsetLeft, h -= g.offsetTop), Object.assign(t.style, {
|
|
677
679
|
top: "0px",
|
|
678
680
|
left: "0px",
|
|
679
|
-
translate: `${
|
|
681
|
+
translate: `${L(m)}px ${L(h)}px`
|
|
680
682
|
}), t.setAttribute("actual-placement", d), this.host.elements?.forEach((e) => {
|
|
681
683
|
this.originalPlacements.has(e) || this.originalPlacements.set(e, e.getAttribute("placement")), e.setAttribute("placement", d);
|
|
682
684
|
}), s && p.arrow) {
|
|
@@ -684,7 +686,7 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
684
686
|
Object.assign(s.style, {
|
|
685
687
|
top: d.startsWith("right") || d.startsWith("left") ? "0px" : "",
|
|
686
688
|
left: d.startsWith("bottom") || d.startsWith("top") ? "0px" : "",
|
|
687
|
-
translate: `${
|
|
689
|
+
translate: `${L(e)}px ${L(t)}px`
|
|
688
690
|
});
|
|
689
691
|
}
|
|
690
692
|
}
|
|
@@ -700,9 +702,9 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
700
702
|
hostDisconnected() {
|
|
701
703
|
this.cleanup?.(), this.cleanup = void 0, document.removeEventListener("luzmo-update-overlays", this.resetOverlayPosition);
|
|
702
704
|
}
|
|
703
|
-
},
|
|
705
|
+
}, B = /* @__PURE__ */ function(e) {
|
|
704
706
|
return e.click = "click", e.hover = "hover", e.longpress = "longpress", e;
|
|
705
|
-
}({}),
|
|
707
|
+
}({}), V = Symbol("lastInteractionType"), H = "remove-focus-ring-safari-hack", U = class {
|
|
706
708
|
get activelyOpening() {
|
|
707
709
|
return !1;
|
|
708
710
|
}
|
|
@@ -712,11 +714,11 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
712
714
|
set open(e) {
|
|
713
715
|
if (e !== this.open) {
|
|
714
716
|
if (this.isLazilyOpen = e, this.overlay) {
|
|
715
|
-
this.overlay.open = e, this.target[
|
|
717
|
+
this.overlay.open = e, this.target[V] = this.type;
|
|
716
718
|
return;
|
|
717
719
|
}
|
|
718
720
|
e && import("./overlay/index.js").then(() => {
|
|
719
|
-
this.overlay = document.createElement("luzmo-overlay"), this.overlay.open = !0, this.target[
|
|
721
|
+
this.overlay = document.createElement("luzmo-overlay"), this.overlay.open = !0, this.target[V] = this.type;
|
|
720
722
|
});
|
|
721
723
|
}
|
|
722
724
|
}
|
|
@@ -745,9 +747,9 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
745
747
|
hostDisconnected() {
|
|
746
748
|
this.isPersistent || this.abort();
|
|
747
749
|
}
|
|
748
|
-
},
|
|
750
|
+
}, W = class extends U {
|
|
749
751
|
constructor(...e) {
|
|
750
|
-
super(...e), this.type =
|
|
752
|
+
super(...e), this.type = B.click, this.preventNextToggle = !1;
|
|
751
753
|
}
|
|
752
754
|
handleClick() {
|
|
753
755
|
this.preventNextToggle || (this.open = !this.open), this.preventNextToggle = !1;
|
|
@@ -760,17 +762,17 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
760
762
|
let { signal: e } = this.abortController;
|
|
761
763
|
this.target.addEventListener("click", () => this.handleClick(), { signal: e }), this.target.addEventListener("pointerdown", () => this.handlePointerdown(), { signal: e });
|
|
762
764
|
}
|
|
763
|
-
},
|
|
765
|
+
}, xe = 300, G = class extends U {
|
|
764
766
|
constructor(...e) {
|
|
765
|
-
super(...e), this.type =
|
|
767
|
+
super(...e), this.type = B.hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
|
|
766
768
|
}
|
|
767
769
|
handleKeyup(e) {
|
|
768
770
|
(e.code === "Tab" || e.code === "Escape") && (this.open = !0, this.removeSafariFocusRingClass());
|
|
769
771
|
}
|
|
770
772
|
handleTargetFocusin() {
|
|
771
773
|
if (this.target.matches(":focus-visible")) {
|
|
772
|
-
if (f() && this.target[
|
|
773
|
-
this.target.classList.add(
|
|
774
|
+
if (f() && this.target[V] === B.click) {
|
|
775
|
+
this.target.classList.add(H);
|
|
774
776
|
return;
|
|
775
777
|
}
|
|
776
778
|
this.open = !0, this.focusedin = !0, this.removeSafariFocusRingClass();
|
|
@@ -817,7 +819,7 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
817
819
|
let e = this.target;
|
|
818
820
|
this.focusedin && e.matches(":focus-visible") || (this.hoverTimeout = setTimeout(() => {
|
|
819
821
|
this.open = !1;
|
|
820
|
-
},
|
|
822
|
+
}, xe));
|
|
821
823
|
}
|
|
822
824
|
init() {
|
|
823
825
|
this.abortController?.abort(), this.abortController = new AbortController();
|
|
@@ -830,15 +832,15 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
830
832
|
this.overlay.addEventListener("pointerenter", () => this.handleHostPointerenter(), { signal: e }), this.overlay.addEventListener("pointerleave", () => this.handleHostPointerleave(), { signal: e });
|
|
831
833
|
}
|
|
832
834
|
removeSafariFocusRingClass() {
|
|
833
|
-
f() && this.target.classList.contains("remove-focus-ring-safari-hack") && this.target.classList.remove(
|
|
835
|
+
f() && this.target.classList.contains("remove-focus-ring-safari-hack") && this.target.classList.remove(H);
|
|
834
836
|
}
|
|
835
|
-
},
|
|
837
|
+
}, Se = 300, K = {
|
|
836
838
|
touch: "Double tap and long press for additional options",
|
|
837
839
|
keyboard: "Press Space or Alt+Down Arrow for additional options",
|
|
838
840
|
mouse: "Click and hold for additional options"
|
|
839
|
-
},
|
|
841
|
+
}, q = class extends U {
|
|
840
842
|
constructor(...e) {
|
|
841
|
-
super(...e), this.type =
|
|
843
|
+
super(...e), this.type = B.longpress, this.longpressState = null, this.releaseDescription = T, this.handlePointerup = () => {
|
|
842
844
|
clearTimeout(this.timeout), this.target && (this.longpressState = this.overlay?.state === "opening" ? "pressed" : null, document.removeEventListener("pointerup", this.handlePointerup), document.removeEventListener("pointercancel", this.handlePointerup));
|
|
843
845
|
};
|
|
844
846
|
}
|
|
@@ -855,7 +857,7 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
855
857
|
composed: !0,
|
|
856
858
|
detail: { source: "pointer" }
|
|
857
859
|
}));
|
|
858
|
-
},
|
|
860
|
+
}, Se)));
|
|
859
861
|
}
|
|
860
862
|
handleKeydown(e) {
|
|
861
863
|
let { code: t, altKey: n } = e;
|
|
@@ -877,7 +879,7 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
877
879
|
prepareDescription(e) {
|
|
878
880
|
if (this.releaseDescription !== T || this.overlay.elements.length === 0) return;
|
|
879
881
|
let t = document.createElement("div");
|
|
880
|
-
t.id = `longpress-describedby-descriptor-${i()}`, t.textContent =
|
|
882
|
+
t.id = `longpress-describedby-descriptor-${i()}`, t.textContent = K[u() || d() ? "touch" : "keyboard"], t.slot = "longpress-describedby-descriptor";
|
|
881
883
|
let n = e.getRootNode();
|
|
882
884
|
n === this.overlay.getRootNode() ? this.overlay.append(t) : (t.hidden = !("host" in n), e.after(t));
|
|
883
885
|
let a = r(e, "aria-describedby", [t.id]);
|
|
@@ -893,13 +895,13 @@ var z = 8, B = 100, pe = (e) => ({
|
|
|
893
895
|
let { signal: e } = this.abortController;
|
|
894
896
|
this.target.addEventListener("longpress", () => this.handleLongpress(), { signal: e }), this.target.addEventListener("pointerdown", (e) => this.handlePointerdown(e), { signal: e }), this.prepareDescription(this.target), !this.target.holdAffordance && (this.target.addEventListener("keydown", (e) => this.handleKeydown(e), { signal: e }), this.target.addEventListener("keyup", (e) => this.handleKeyup(e), { signal: e }));
|
|
895
897
|
}
|
|
896
|
-
},
|
|
897
|
-
click:
|
|
898
|
-
longpress:
|
|
899
|
-
hover:
|
|
900
|
-
},
|
|
901
|
-
|
|
902
|
-
var
|
|
898
|
+
}, J = {
|
|
899
|
+
click: W,
|
|
900
|
+
longpress: q,
|
|
901
|
+
hover: G
|
|
902
|
+
}, Ce = /* @__PURE__ */ e({ LuzmoOverlay: () => X }), we = typeof document < "u" && "showPopover" in document.createElement("div"), Y = fe(O);
|
|
903
|
+
Y = we ? he(Y) : pe(Y);
|
|
904
|
+
var X = class e extends Y {
|
|
903
905
|
constructor(...e) {
|
|
904
906
|
super(...e), this._delayed = !1, this._disabled = !1, this.offset = 0, this._open = !1, this.lastRequestSlottableState = !1, this.receivesFocus = "auto", this._state = "closed", this.triggerElement = null, this.type = "auto", this.wasOpen = !1, this.closeOnFocusOut = (e) => {
|
|
905
907
|
if (!e.relatedTarget) return;
|
|
@@ -913,7 +915,7 @@ var $ = class e extends Q {
|
|
|
913
915
|
};
|
|
914
916
|
}
|
|
915
917
|
static {
|
|
916
|
-
this.styles = [
|
|
918
|
+
this.styles = [g(_e)];
|
|
917
919
|
}
|
|
918
920
|
get delayed() {
|
|
919
921
|
return this.elements.at(-1)?.hasAttribute("delayed") || this._delayed;
|
|
@@ -931,7 +933,7 @@ var $ = class e extends Q {
|
|
|
931
933
|
return !!this.triggerElement && !(this.triggerElement instanceof P);
|
|
932
934
|
}
|
|
933
935
|
get placementController() {
|
|
934
|
-
return this._placementController ||= new
|
|
936
|
+
return this._placementController ||= new z(this), this._placementController;
|
|
935
937
|
}
|
|
936
938
|
get open() {
|
|
937
939
|
return this._open;
|
|
@@ -1014,7 +1016,7 @@ var $ = class e extends Q {
|
|
|
1014
1016
|
}
|
|
1015
1017
|
}
|
|
1016
1018
|
bindEvents() {
|
|
1017
|
-
this.strategy?.abort(), this.strategy = void 0, this.hasNonVirtualTrigger && this.triggerInteraction && (this.strategy = new
|
|
1019
|
+
this.strategy?.abort(), this.strategy = void 0, this.hasNonVirtualTrigger && this.triggerInteraction && (this.strategy = new J[this.triggerInteraction](this.triggerElement, { overlay: this }));
|
|
1018
1020
|
}
|
|
1019
1021
|
handleBeforetoggle(e) {
|
|
1020
1022
|
e.newState !== "open" && this.handleBrowserClose(e);
|
|
@@ -1068,8 +1070,8 @@ var $ = class e extends Q {
|
|
|
1068
1070
|
<dialog
|
|
1069
1071
|
class="dialog"
|
|
1070
1072
|
part="dialog"
|
|
1071
|
-
placement=${
|
|
1072
|
-
style=${
|
|
1073
|
+
placement=${b(this.requiresPositioning ? this.placement || "right" : void 0)}
|
|
1074
|
+
style=${x(this.dialogStyleMap)}
|
|
1073
1075
|
@close=${this.handleBrowserClose}
|
|
1074
1076
|
@cancel=${this.handleDialogCancel}
|
|
1075
1077
|
@beforetoggle=${this.handleBeforetoggle}
|
|
@@ -1084,9 +1086,9 @@ var $ = class e extends Q {
|
|
|
1084
1086
|
<div
|
|
1085
1087
|
class="dialog"
|
|
1086
1088
|
part="dialog"
|
|
1087
|
-
placement=${
|
|
1088
|
-
popover=${
|
|
1089
|
-
style=${
|
|
1089
|
+
placement=${b(this.requiresPositioning ? this.placement || "right" : void 0)}
|
|
1090
|
+
popover=${b(this.popoverValue)}
|
|
1091
|
+
style=${x(this.dialogStyleMap)}
|
|
1090
1092
|
@beforetoggle=${this.handleBeforetoggle}
|
|
1091
1093
|
@close=${this.handleBrowserClose}
|
|
1092
1094
|
?is-visible=${this.state !== "closed"}
|
|
@@ -1112,15 +1114,218 @@ var $ = class e extends Q {
|
|
|
1112
1114
|
this.strategy?.releaseDescription(), this.open = !1, super.disconnectedCallback();
|
|
1113
1115
|
}
|
|
1114
1116
|
};
|
|
1115
|
-
n([
|
|
1117
|
+
n([_({ type: Boolean })], X.prototype, "delayed", null), n([v(".dialog")], X.prototype, "dialogEl", void 0), n([_({ type: Boolean })], X.prototype, "disabled", null), n([ee({
|
|
1116
1118
|
flatten: !0,
|
|
1117
1119
|
selector: ":not([slot=\"longpress-describedby-descriptor\"], slot)"
|
|
1118
|
-
})],
|
|
1120
|
+
})], X.prototype, "elements", void 0), n([_({ type: Number })], X.prototype, "offset", void 0), n([_({
|
|
1119
1121
|
type: Boolean,
|
|
1120
1122
|
reflect: !0
|
|
1121
|
-
})],
|
|
1123
|
+
})], X.prototype, "open", null), n([_()], X.prototype, "placement", void 0), n([_({ attribute: "receives-focus" })], X.prototype, "receivesFocus", void 0), n([v("slot")], X.prototype, "slotEl", void 0), n([y()], X.prototype, "state", null), n([_({
|
|
1122
1124
|
type: Number,
|
|
1123
1125
|
attribute: "tip-padding"
|
|
1124
|
-
})],
|
|
1126
|
+
})], X.prototype, "tipPadding", void 0), n([_()], X.prototype, "trigger", void 0), n([_({ attribute: !1 })], X.prototype, "triggerElement", void 0), n([_({ attribute: !1 })], X.prototype, "triggerInteraction", void 0), n([_()], X.prototype, "type", void 0);
|
|
1127
|
+
//#endregion
|
|
1128
|
+
//#region src/components/overlay/overlay-trigger.module.scss?inline
|
|
1129
|
+
var Te = ":host([disabled]) ::slotted([slot=trigger]){pointer-events:none}slot[name=longpress-describedby-descriptor]{display:none}", Z = class extends t {
|
|
1130
|
+
constructor(...e) {
|
|
1131
|
+
super(...e), this.content = "click hover longpress", this.offset = 6, this.disabled = !1, this.receivesFocus = "auto", this.clickContent = [], this.longpressContent = [], this.hoverContent = [], this.targetContent = [];
|
|
1132
|
+
}
|
|
1133
|
+
static get styles() {
|
|
1134
|
+
return [g(Te)];
|
|
1135
|
+
}
|
|
1136
|
+
getAssignedElementsFromSlot(e) {
|
|
1137
|
+
return e.assignedElements({ flatten: !0 });
|
|
1138
|
+
}
|
|
1139
|
+
handleTriggerContent(e) {
|
|
1140
|
+
this.targetContent = this.getAssignedElementsFromSlot(e.target);
|
|
1141
|
+
}
|
|
1142
|
+
handleSlotContent(e) {
|
|
1143
|
+
switch (e.target.name) {
|
|
1144
|
+
case "click-content":
|
|
1145
|
+
this.clickContent = this.getAssignedElementsFromSlot(e.target);
|
|
1146
|
+
break;
|
|
1147
|
+
case "longpress-content":
|
|
1148
|
+
this.longpressContent = this.getAssignedElementsFromSlot(e.target);
|
|
1149
|
+
break;
|
|
1150
|
+
case "hover-content":
|
|
1151
|
+
this.hoverContent = this.getAssignedElementsFromSlot(e.target);
|
|
1152
|
+
break;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
handleBeforetoggle(e) {
|
|
1156
|
+
let { target: t } = e, n;
|
|
1157
|
+
if (t === this.clickOverlayElement) n = "click";
|
|
1158
|
+
else if (t === this.longpressOverlayElement) n = "longpress";
|
|
1159
|
+
else if (t === this.hoverOverlayElement) n = "hover";
|
|
1160
|
+
else return;
|
|
1161
|
+
e.newState === "open" ? this.open = n : this.open === n && (this.open = void 0);
|
|
1162
|
+
}
|
|
1163
|
+
update(e) {
|
|
1164
|
+
e.has("clickContent") && (this.clickPlacement = this.clickContent[0]?.getAttribute("placement") || this.clickContent[0]?.getAttribute("direction") || void 0), e.has("hoverContent") && (this.hoverPlacement = this.hoverContent[0]?.getAttribute("placement") || this.hoverContent[0]?.getAttribute("direction") || void 0), e.has("longpressContent") && (this.longpressPlacement = this.longpressContent[0]?.getAttribute("placement") || this.longpressContent[0]?.getAttribute("direction") || void 0), super.update(e);
|
|
1165
|
+
}
|
|
1166
|
+
renderSlot(e) {
|
|
1167
|
+
return p`
|
|
1168
|
+
<slot name=${e} @slotchange=${this.handleSlotContent}></slot>
|
|
1169
|
+
`;
|
|
1170
|
+
}
|
|
1171
|
+
renderClickOverlay() {
|
|
1172
|
+
let e = this.renderSlot("click-content"), t = p`
|
|
1173
|
+
<luzmo-overlay
|
|
1174
|
+
id="click-overlay"
|
|
1175
|
+
?disabled=${this.disabled || this.clickContent.length === 0}
|
|
1176
|
+
?open=${this.open === "click" && this.clickContent.length > 0}
|
|
1177
|
+
.offset=${this.offset}
|
|
1178
|
+
.placement=${this.clickPlacement || this.placement}
|
|
1179
|
+
.triggerElement=${this.targetContent[0]}
|
|
1180
|
+
.triggerInteraction=${"click"}
|
|
1181
|
+
.type=${this.type === "modal" ? "modal" : "auto"}
|
|
1182
|
+
@beforetoggle=${this.handleBeforetoggle}
|
|
1183
|
+
.receivesFocus=${this.receivesFocus}
|
|
1184
|
+
>
|
|
1185
|
+
${e}
|
|
1186
|
+
</luzmo-overlay>
|
|
1187
|
+
`;
|
|
1188
|
+
return this.triggeredBy?.includes("click") ? t : this.clickContent.length === 0 ? e : t;
|
|
1189
|
+
}
|
|
1190
|
+
renderHoverOverlay() {
|
|
1191
|
+
let e = this.renderSlot("hover-content"), t = p`
|
|
1192
|
+
<luzmo-overlay
|
|
1193
|
+
id="hover-overlay"
|
|
1194
|
+
?open=${this.open === "hover" && this.hoverContent.length > 0}
|
|
1195
|
+
?disabled=${this.disabled || this.hoverContent.length === 0 || !!this.open && this.open !== "hover"}
|
|
1196
|
+
.offset=${this.offset}
|
|
1197
|
+
.placement=${this.hoverPlacement || this.placement}
|
|
1198
|
+
.triggerElement=${this.targetContent[0]}
|
|
1199
|
+
.triggerInteraction=${"hover"}
|
|
1200
|
+
.type=${"hint"}
|
|
1201
|
+
@beforetoggle=${this.handleBeforetoggle}
|
|
1202
|
+
.receivesFocus=${this.receivesFocus}
|
|
1203
|
+
>
|
|
1204
|
+
${e}
|
|
1205
|
+
</luzmo-overlay>
|
|
1206
|
+
`;
|
|
1207
|
+
return this.triggeredBy?.includes("hover") ? t : this.hoverContent.length === 0 ? e : t;
|
|
1208
|
+
}
|
|
1209
|
+
renderLongpressOverlay() {
|
|
1210
|
+
let e = this.renderSlot("longpress-content"), t = p`
|
|
1211
|
+
<luzmo-overlay
|
|
1212
|
+
id="longpress-overlay"
|
|
1213
|
+
?disabled=${this.disabled || this.longpressContent.length === 0}
|
|
1214
|
+
?open=${this.open === "longpress" && this.longpressContent.length > 0}
|
|
1215
|
+
.offset=${this.offset}
|
|
1216
|
+
.placement=${this.longpressPlacement || this.placement}
|
|
1217
|
+
.triggerElement=${this.targetContent[0]}
|
|
1218
|
+
.triggerInteraction=${"longpress"}
|
|
1219
|
+
.type=${"auto"}
|
|
1220
|
+
@beforetoggle=${this.handleBeforetoggle}
|
|
1221
|
+
.receivesFocus=${this.receivesFocus}
|
|
1222
|
+
>
|
|
1223
|
+
${e}
|
|
1224
|
+
</luzmo-overlay>
|
|
1225
|
+
<slot name="longpress-describedby-descriptor"></slot>
|
|
1226
|
+
`;
|
|
1227
|
+
return this.triggeredBy?.includes("longpress") ? t : this.longpressContent.length === 0 ? e : t;
|
|
1228
|
+
}
|
|
1229
|
+
render() {
|
|
1230
|
+
return p`
|
|
1231
|
+
<slot
|
|
1232
|
+
id="trigger"
|
|
1233
|
+
name="trigger"
|
|
1234
|
+
@slotchange=${this.handleTriggerContent}
|
|
1235
|
+
></slot>
|
|
1236
|
+
${[
|
|
1237
|
+
this.renderClickOverlay(),
|
|
1238
|
+
this.renderHoverOverlay(),
|
|
1239
|
+
this.renderLongpressOverlay()
|
|
1240
|
+
]}
|
|
1241
|
+
`;
|
|
1242
|
+
}
|
|
1243
|
+
updated(e) {
|
|
1244
|
+
if (super.updated(e), this.disabled && e.has("disabled")) {
|
|
1245
|
+
this.open = void 0;
|
|
1246
|
+
return;
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
async getUpdateComplete() {
|
|
1250
|
+
return await super.getUpdateComplete();
|
|
1251
|
+
}
|
|
1252
|
+
};
|
|
1253
|
+
n([_()], Z.prototype, "content", void 0), n([_({ attribute: "triggered-by" })], Z.prototype, "triggeredBy", void 0), n([_({ reflect: !0 })], Z.prototype, "placement", void 0), n([_()], Z.prototype, "type", void 0), n([_({ type: Number })], Z.prototype, "offset", void 0), n([_({ reflect: !0 })], Z.prototype, "open", void 0), n([_({
|
|
1254
|
+
type: Boolean,
|
|
1255
|
+
reflect: !0
|
|
1256
|
+
})], Z.prototype, "disabled", void 0), n([_({ attribute: "receives-focus" })], Z.prototype, "receivesFocus", void 0), n([y()], Z.prototype, "clickContent", void 0), n([y()], Z.prototype, "longpressContent", void 0), n([y()], Z.prototype, "hoverContent", void 0), n([y()], Z.prototype, "targetContent", void 0), n([v("#click-overlay", !0)], Z.prototype, "clickOverlayElement", void 0), n([v("#longpress-overlay", !0)], Z.prototype, "longpressOverlayElement", void 0), n([v("#hover-overlay", !0)], Z.prototype, "hoverOverlayElement", void 0);
|
|
1257
|
+
//#endregion
|
|
1258
|
+
//#region src/components/overlay/loader.ts
|
|
1259
|
+
function Ee(e, t, n, r) {
|
|
1260
|
+
return X.open(e, t, n, r);
|
|
1261
|
+
}
|
|
1262
|
+
//#endregion
|
|
1263
|
+
//#region src/components/overlay/slottable-request-directive.ts
|
|
1264
|
+
var Q = class extends se {
|
|
1265
|
+
/* c8 ignore next 9 */
|
|
1266
|
+
render(e) {
|
|
1267
|
+
return m;
|
|
1268
|
+
}
|
|
1269
|
+
update(e, [t]) {
|
|
1270
|
+
this.template = t, this.target !== e.element && (this.target = e.element, this.renderBefore = this.target.children[0]), this.listenerHost = this.target, this.init();
|
|
1271
|
+
}
|
|
1272
|
+
handleSlottableRequest(e) {
|
|
1273
|
+
e.target === e.currentTarget && h(e.data === s ? void 0 : this.template(), this.target, { renderBefore: this.renderBefore });
|
|
1274
|
+
}
|
|
1275
|
+
init() {
|
|
1276
|
+
this.listeners?.abort(), this.listeners = new AbortController();
|
|
1277
|
+
let { signal: e } = this.listeners;
|
|
1278
|
+
this.listenerHost.addEventListener("slottable-request", (e) => this.handleSlottableRequest(e), { signal: e });
|
|
1279
|
+
}
|
|
1280
|
+
disconnected() {
|
|
1281
|
+
this.listeners?.abort();
|
|
1282
|
+
}
|
|
1283
|
+
/* c8 ignore next 3 */
|
|
1284
|
+
reconnected() {
|
|
1285
|
+
this.init();
|
|
1286
|
+
}
|
|
1287
|
+
}, De = C(Q), $ = class extends Q {
|
|
1288
|
+
constructor(...e) {
|
|
1289
|
+
super(...e), this.defaultOptions = {
|
|
1290
|
+
triggerInteraction: "click",
|
|
1291
|
+
overlayOptions: {
|
|
1292
|
+
type: "auto",
|
|
1293
|
+
offset: 0
|
|
1294
|
+
}
|
|
1295
|
+
}, this.options = { ...this.defaultOptions.overlayOptions };
|
|
1296
|
+
}
|
|
1297
|
+
/* c8 ignore next 9 */
|
|
1298
|
+
render(e, t) {
|
|
1299
|
+
return m;
|
|
1300
|
+
}
|
|
1301
|
+
update(e, [t, n]) {
|
|
1302
|
+
this.options = {
|
|
1303
|
+
...this.defaultOptions.overlayOptions,
|
|
1304
|
+
...n?.overlayOptions
|
|
1305
|
+
}, this.insertionOptions = n?.insertionOptions, this.template = t, this.host = e.options?.host;
|
|
1306
|
+
let r = !1, i = n?.triggerInteraction || this.defaultOptions.triggerInteraction, a = B[this.strategy?.type] !== i;
|
|
1307
|
+
this.target !== e.element && (this.target = e.element, r = !0), (r || a) && (this.strategy?.abort(), this.strategy = new J[i](this.target, {
|
|
1308
|
+
isPersistent: !0,
|
|
1309
|
+
handleOverlayReady: (e) => {
|
|
1310
|
+
this.listenerHost = this.overlay = e, this.init();
|
|
1311
|
+
}
|
|
1312
|
+
})), this.strategy.open = n?.open ?? !1;
|
|
1313
|
+
}
|
|
1314
|
+
handleSlottableRequest(e) {
|
|
1315
|
+
/* c8 ignore next 1 */
|
|
1316
|
+
if (e.target !== e.currentTarget) return;
|
|
1317
|
+
let t = e.data === s, n = {};
|
|
1318
|
+
if (this.host && (n.host = this.host), h(t ? void 0 : this.template(), this.overlay, n), t) this.overlay.remove();
|
|
1319
|
+
else {
|
|
1320
|
+
O.applyOptions(this.overlay, {
|
|
1321
|
+
...this.options,
|
|
1322
|
+
trigger: this.target
|
|
1323
|
+
});
|
|
1324
|
+
let e = typeof this.insertionOptions?.el == "function" ? this.insertionOptions.el() : this.insertionOptions?.el || this.target, { where: t = "afterend" } = this.insertionOptions || {};
|
|
1325
|
+
e.insertAdjacentElement(t, this.overlay);
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
}, Oe = C($);
|
|
1329
|
+
customElements.get("luzmo-overlay") || customElements.define("luzmo-overlay", X), customElements.get("luzmo-overlay-trigger") || customElements.define("luzmo-overlay-trigger", Z);
|
|
1125
1330
|
//#endregion
|
|
1126
|
-
export {
|
|
1331
|
+
export { w as C, T as S, be as _, Ee as a, E as b, K as c, W as d, U as f, z as g, V as h, De as i, q as l, H as m, Oe as n, Z as o, B as p, Q as r, X as s, $ as t, G as u, P as v, D as x, O as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! * Lucero - The design system for Luzmo.
|
|
2
2
|
*
|
|
3
|
-
* Copyright ©
|
|
3
|
+
* Copyright © 2026 Luzmo
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
6
|
* This license allows users with a current active Luzmo account to use Lucero.
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
require("./progress-circle-
|
|
18
|
+
require("./progress-circle-bO_VAX3N.cjs");let e=require("lit");var t=class{constructor(e){this.cachedAriaLabel=null,this.host=e,this.host.addController(this)}renderPendingState(){let t=this.host.pendingLabel||`Pending`;return this.host.pending?e.html`
|
|
19
19
|
<luzmo-progress-circle
|
|
20
20
|
id="loader"
|
|
21
21
|
size="s"
|