@luzmo/lucero 0.0.4 → 0.0.6
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/components/accordion/accordion-item.d.ts +24 -0
- package/components/accordion/accordion.d.ts +42 -0
- package/components/accordion/index.cjs +43 -0
- package/components/accordion/index.d.ts +10 -0
- package/{lib → components}/accordion/index.js +10 -11
- package/components/action-bar/action-bar.d.ts +42 -0
- package/components/action-bar/index.cjs +39 -0
- package/components/action-bar/index.d.ts +7 -0
- package/{lib → components}/action-bar/index.js +9 -10
- package/components/action-button/action-button.d.ts +81 -0
- package/components/action-button/index.cjs +24 -0
- package/components/action-button/index.d.ts +7 -0
- package/{lib → components}/action-button/index.js +6 -7
- package/components/action-group/action-group.d.ts +50 -0
- package/{lib → components}/action-group/index.cjs +1 -1
- package/components/action-group/index.d.ts +7 -0
- package/{lib → components}/action-group/index.js +1 -1
- package/{lib/action-group-BoIH8s8R.js → components/action-group-B7oQXv30.js} +11 -12
- package/components/action-group-C8YUQzt8.cjs +20 -0
- package/components/action-menu/action-menu.d.ts +40 -0
- package/{lib → components}/action-menu/index.cjs +5 -5
- package/components/action-menu/index.d.ts +7 -0
- package/{lib → components}/action-menu/index.js +10 -11
- package/{lib/async-directive-FGzMycjH.js → components/async-directive-BhRGSTWB.js} +1 -1
- package/{lib/async-directive-CV2MII86.cjs → components/async-directive-_65ULPLK.cjs} +1 -1
- package/components/avatar/avatar.d.ts +31 -0
- package/components/avatar/index.cjs +24 -0
- package/components/avatar/index.d.ts +7 -0
- package/{lib → components}/avatar/index.js +13 -14
- package/components/base-CxUap9HL.js +665 -0
- package/components/base-rtxi7uaR.cjs +40 -0
- package/components/button/button-base.d.ts +44 -0
- package/components/button/button.d.ts +59 -0
- package/components/button/clear-button.d.ts +22 -0
- package/components/button/close-button.d.ts +24 -0
- package/components/button/index.cjs +20 -0
- package/components/button/index.d.ts +13 -0
- package/{lib → components}/button/index.js +11 -12
- package/{lib/button-base-DgtT6sU5.js → components/button-base-CgrTYVgq.js} +11 -12
- package/components/button-base-DjqSZyn2.cjs +25 -0
- package/components/button-group/button-group.d.ts +19 -0
- package/components/button-group/index.cjs +18 -0
- package/components/button-group/index.d.ts +7 -0
- package/{lib → components}/button-group/index.js +7 -8
- package/components/checkbox/checkbox-base.d.ts +9 -0
- package/components/checkbox/checkbox-mixin.d.ts +14 -0
- package/components/checkbox/checkbox.d.ts +54 -0
- package/components/checkbox/index.cjs +25 -0
- package/components/checkbox/index.d.ts +7 -0
- package/{lib → components}/checkbox/index.js +5 -6
- package/{lib/checkbox-mixin-DegQlk5C.js → components/checkbox-mixin-BRluTF9s.js} +15 -16
- package/{lib/checkbox-mixin-H0Hm-VLk.cjs → components/checkbox-mixin-iB-0ivgo.cjs} +3 -3
- package/{lib/clear-button-Ap5H3UyH.js → components/clear-button-CyLF5dx_.js} +6 -7
- package/components/clear-button-DFXE6MLx.cjs +18 -0
- package/components/close-button-CcD-aVqh.cjs +18 -0
- package/{lib/close-button-CGISEF33.js → components/close-button-CzpdWCWI.js} +8 -9
- package/components/color-area/color-area.d.ts +67 -0
- package/components/color-area/index.cjs +80 -0
- package/components/color-area/index.d.ts +7 -0
- package/{lib → components}/color-area/index.js +9 -10
- package/components/color-field/color-field.d.ts +20 -0
- package/components/color-field/index.cjs +23 -0
- package/components/color-field/index.d.ts +7 -0
- package/{lib → components}/color-field/index.js +2 -3
- package/components/color-handle/color-handle.d.ts +13 -0
- package/components/color-handle/index.cjs +24 -0
- package/components/color-handle/index.d.ts +7 -0
- package/{lib → components}/color-handle/index.js +2 -3
- package/components/color-loupe/color-loupe.d.ts +7 -0
- package/{lib → components}/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.d.ts +7 -0
- package/{lib → components}/color-loupe/index.js +1 -1
- package/components/color-loupe-BN3k1ACF.cjs +56 -0
- package/{lib/color-loupe-DBEApMDT.js → components/color-loupe-CD-dhmB1.js} +3 -4
- package/components/color-menu/color-menu.d.ts +54 -0
- package/components/color-menu/index.cjs +86 -0
- package/components/color-menu/index.d.ts +7 -0
- package/{lib → components}/color-menu/index.js +9 -10
- package/components/color-picker/color-picker.d.ts +39 -0
- package/components/color-picker/index.cjs +48 -0
- package/components/color-picker/index.d.ts +7 -0
- package/{lib → components}/color-picker/index.js +33 -34
- package/components/color-slider/color-slider.d.ts +57 -0
- package/components/color-slider/index.cjs +57 -0
- package/components/color-slider/index.d.ts +7 -0
- package/{lib → components}/color-slider/index.js +5 -6
- package/{lib/directive-helpers-C2vOfhFx.cjs → components/directive-helpers-C3pAxRR3.cjs} +1 -1
- package/{lib/directive-helpers-BLDZnGQv.js → components/directive-helpers-D0vm0gvF.js} +1 -1
- package/components/divider/divider.d.ts +24 -0
- package/components/divider/index.cjs +18 -0
- package/components/divider/index.d.ts +7 -0
- package/{lib → components}/divider/index.js +5 -6
- package/components/field-group/field-group.d.ts +24 -0
- package/{lib → components}/field-group/index.cjs +1 -1
- package/components/field-group/index.d.ts +7 -0
- package/{lib → components}/field-group/index.js +1 -1
- package/{lib/field-group-CBWafIUV.js → components/field-group-DAImvhSF.js} +2 -3
- package/components/field-group-d5Hkb8UW.cjs +23 -0
- package/components/field-label/field-label.d.ts +50 -0
- package/{lib → components}/field-label/index.cjs +1 -1
- package/components/field-label/index.d.ts +7 -0
- package/{lib → components}/field-label/index.js +1 -1
- package/components/field-label-D1zKXSG6.cjs +25 -0
- package/{lib/field-label-BK_tk8vP.js → components/field-label-DY9iRmRI.js} +14 -15
- package/{lib/focusable-DbUg-3Vp.js → components/focusable-Bze9xE25.js} +1 -1
- package/{lib/focusable-Dv_6CFaY.cjs → components/focusable-DyyBr-J-.cjs} +1 -1
- package/components/icon/icon-base.d.ts +11 -0
- package/components/icon/icon.d.ts +12 -0
- package/components/icon/index.cjs +18 -0
- package/components/icon/index.d.ts +7 -0
- package/{lib → components}/icon/index.js +4 -5
- package/{lib/if-defined-Cv6xanXh.cjs → components/if-defined-C-8FyBSN.cjs} +2 -2
- package/{lib/if-defined-CYpcjGCb.js → components/if-defined-XzWkhMhg.js} +1 -1
- package/{lib/index-yNcLzjhM.cjs → components/index-CNtoBntg.cjs} +15 -15
- package/{lib/index-ovT-qVzf.js → components/index-Ci6Jnhu4.js} +8 -9
- package/components/index.cjs +27 -0
- package/{lib/legend-position → components}/index.js +150 -28
- package/components/infield-button/index.cjs +22 -0
- package/components/infield-button/index.d.ts +7 -0
- package/{lib → components}/infield-button/index.js +3 -4
- package/components/infield-button/infield-button.d.ts +25 -0
- package/components/label/index.cjs +18 -0
- package/components/label/index.d.ts +7 -0
- package/{lib → components}/label/index.js +1 -2
- package/components/label/label.d.ts +7 -0
- package/components/legend-position/index.d.ts +7 -0
- package/components/legend-position/legend-position.d.ts +10 -0
- package/{lib/like-anchor-K8W0QYwC.cjs → components/like-anchor-DKuw8fJA.cjs} +4 -4
- package/{lib/like-anchor-cDeGGeHh.js → components/like-anchor-DnsAwo_O.js} +8 -9
- package/{lib/manage-help-text-2mSEy-AD.js → components/manage-help-text-B-FXFXgT.js} +8 -8
- package/{lib/manage-help-text-iOk-zmy8.cjs → components/manage-help-text-I5aYDAKT.cjs} +3 -3
- package/{lib → components}/menu/index.cjs +1 -1
- package/components/menu/index.d.ts +16 -0
- package/{lib → components}/menu/index.js +1 -1
- package/components/menu/menu-divider.d.ts +14 -0
- package/components/menu/menu-group.d.ts +17 -0
- package/components/menu/menu-item.d.ts +125 -0
- package/components/menu/menu.d.ts +119 -0
- package/components/multi-language-field/index.cjs +39 -0
- package/components/multi-language-field/index.d.ts +7 -0
- package/{lib → components}/multi-language-field/index.js +6 -7
- package/components/multi-language-field/multi-language-field.d.ts +41 -0
- package/components/number-field/index.cjs +57 -0
- package/components/number-field/index.d.ts +7 -0
- package/{lib → components}/number-field/index.js +23 -24
- package/components/number-field/number-field.d.ts +113 -0
- package/{lib/observe-slot-text-BmsCNJig.cjs → components/observe-slot-text-DeSKIzvP.cjs} +1 -1
- package/{lib/observe-slot-text-BoFRF-VI.js → components/observe-slot-text-DrM71me1.js} +1 -1
- package/components/overlay/abstract-overlay.d.ts +72 -0
- package/components/overlay/click-controller.d.ts +14 -0
- package/components/overlay/events.d.ts +23 -0
- package/components/overlay/full-size-plugin.d.ts +12 -0
- package/components/overlay/hover-controller.d.ts +20 -0
- package/components/overlay/index.cjs +73 -0
- package/components/overlay/index.d.ts +22 -0
- package/{lib → components}/overlay/index.js +53 -36
- package/components/overlay/interaction-controller.d.ts +38 -0
- package/components/overlay/loader.d.ts +4 -0
- package/components/overlay/longpress-controller.d.ts +21 -0
- package/components/overlay/overlay-dialog.d.ts +4 -0
- package/components/overlay/overlay-events.d.ts +11 -0
- package/components/overlay/overlay-no-popover.d.ts +4 -0
- package/components/overlay/overlay-popover.d.ts +4 -0
- package/components/overlay/overlay-stack.d.ts +44 -0
- package/components/overlay/overlay-timer.d.ts +21 -0
- package/components/overlay/overlay-trigger-directive.d.ts +26 -0
- package/components/overlay/overlay-trigger.d.ts +53 -0
- package/components/overlay/overlay-types.d.ts +50 -0
- package/components/overlay/overlay.d.ts +464 -0
- package/components/overlay/placement-controller.d.ts +157 -0
- package/components/overlay/slottable-request-directive.d.ts +17 -0
- package/components/overlay/slottable-request-event.d.ts +12 -0
- package/components/overlay/strategies.d.ts +8 -0
- package/components/overlay/virtual-trigger.d.ts +7 -0
- package/{lib/overlay-C7QKFqRc.js → components/overlay-C2Cck0Az.js} +53 -43
- package/components/overlay-dn6Xe_vz.cjs +47 -0
- package/{lib/pending-state-D5KTK4_1.js → components/pending-state--XOfTjzE.js} +2 -2
- package/{lib/pending-state-Dbc2HIM2.cjs → components/pending-state-BeJ7iP-O.cjs} +2 -2
- package/components/picker/desktop-controller.d.ts +7 -0
- package/{lib → components}/picker/index.cjs +1 -1
- package/components/picker/index.d.ts +7 -0
- package/{lib → components}/picker/index.js +2 -2
- package/components/picker/interaction-controller.d.ts +43 -0
- package/components/picker/mobile-controller.d.ts +9 -0
- package/components/picker/picker.d.ts +154 -0
- package/components/picker/strategies.d.ts +6 -0
- package/components/picker-8cOc-jjh.cjs +127 -0
- package/components/picker-BZAWrSDk.js +655 -0
- package/{lib → components}/popover/index.cjs +1 -1
- package/components/popover/index.d.ts +7 -0
- package/{lib → components}/popover/index.js +1 -1
- package/components/popover/popover.d.ts +29 -0
- package/components/popover-CCzs4VH8.cjs +30 -0
- package/{lib/popover-ZRVxogyp.js → components/popover-D0EliN0L.js} +7 -8
- package/{lib → components}/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.d.ts +7 -0
- package/{lib → components}/progress-circle/index.js +1 -1
- package/components/progress-circle/progress-circle.d.ts +35 -0
- package/components/progress-circle-DYSSkjlY.cjs +33 -0
- package/{lib/progress-circle-DpXiqW6a.js → components/progress-circle-_-9sAlMM.js} +5 -6
- package/components/radio/index.cjs +22 -0
- package/components/radio/index.d.ts +10 -0
- package/{lib → components}/radio/index.js +10 -11
- package/components/radio/radio-group.d.ts +27 -0
- package/components/radio/radio.d.ts +39 -0
- package/components/search/index.cjs +45 -0
- package/components/search/index.d.ts +7 -0
- package/{lib → components}/search/index.js +3 -4
- package/components/search/search.d.ts +27 -0
- package/{lib/sized-mixin-BSYHt8nT.cjs → components/sized-mixin-BAI6NiE2.cjs} +1 -1
- package/{lib/sized-mixin-Dl0KoEcV.js → components/sized-mixin-DcJTTohI.js} +1 -1
- package/components/slider/index.cjs +18 -0
- package/components/slider/index.d.ts +7 -0
- package/{lib → components}/slider/index.js +5 -6
- package/components/slider/slider.d.ts +24 -0
- package/{lib/state-BAO-13Bs.js → components/state-D8vot9IB.js} +1 -1
- package/{lib/state-DReJ3hB6.cjs → components/state-WWHLNMRG.cjs} +1 -1
- package/{lib/streaming-listener-DLo0wkMc.js → components/streaming-listener-BbmNyKWO.js} +2 -2
- package/components/streaming-listener-C2A7ZJZP.cjs +18 -0
- package/{lib/style-map-BqvQDFJt.js → components/style-map-CoBJRbvu.js} +1 -1
- package/{lib/style-map-BjBGQ_u3.cjs → components/style-map-DH0jkl7s.cjs} +2 -2
- package/components/swatch/index.cjs +49 -0
- package/components/swatch/index.d.ts +10 -0
- package/{lib → components}/swatch/index.js +9 -10
- package/components/swatch/swatch-group.d.ts +41 -0
- package/components/swatch/swatch.d.ts +40 -0
- package/components/switch/index.cjs +22 -0
- package/components/switch/index.d.ts +7 -0
- package/{lib → components}/switch/index.js +6 -7
- package/components/switch/switch.d.ts +27 -0
- package/components/tags/index.cjs +32 -0
- package/components/tags/index.d.ts +10 -0
- package/{lib → components}/tags/index.js +17 -18
- package/components/tags/tag.d.ts +29 -0
- package/components/tags/tags.d.ts +28 -0
- package/components/text-field/help-text-manager.d.ts +19 -0
- package/components/text-field/help-text.d.ts +20 -0
- package/components/text-field/index.cjs +21 -0
- package/components/text-field/index.d.ts +14 -0
- package/{lib → components}/text-field/index.js +9 -9
- package/components/text-field/manage-help-text.d.ts +13 -0
- package/components/text-field/text-field.d.ts +142 -0
- package/{lib/text-field-DPk332j9.js → components/text-field-05QNK_Lj.js} +28 -30
- package/{lib/text-field-C6Aa7XOb.cjs → components/text-field-BU7yxiOR.cjs} +15 -15
- package/components/toast/index.cjs +51 -0
- package/components/toast/index.d.ts +7 -0
- package/{lib → components}/toast/index.js +2 -3
- package/components/toast/toast.d.ts +77 -0
- package/components/tooltip/index.cjs +45 -0
- package/components/tooltip/index.d.ts +8 -0
- package/{lib → components}/tooltip/index.js +10 -11
- package/components/tooltip/tooltip-directive.d.ts +5 -0
- package/components/tooltip/tooltip.d.ts +55 -0
- package/components/unit-input/index.cjs +43 -0
- package/components/unit-input/index.d.ts +7 -0
- package/{lib → components}/unit-input/index.js +5 -6
- package/components/unit-input/unit-input.d.ts +33 -0
- package/index.d.ts +39 -0
- package/package.json +139 -101
- package/utils/base.d.ts +16 -0
- package/utils/condition-attribute-with-id.d.ts +2 -0
- package/utils/first-focusable-in.d.ts +3 -0
- package/utils/focus-visible.d.ts +29 -0
- package/utils/focusable-selectors.d.ts +2 -0
- package/utils/focusable.d.ts +58 -0
- package/utils/get-css-variable.d.ts +1 -0
- package/utils/get-label-from-slot.d.ts +1 -0
- package/utils/like-anchor.d.ts +23 -0
- package/utils/observe-slot-presence.d.ts +12 -0
- package/utils/observe-slot-text.d.ts +11 -0
- package/utils/platform.d.ts +10 -0
- package/utils/random-id.d.ts +1 -0
- package/utils/reactive-controllers/color.d.ts +54 -0
- package/utils/reactive-controllers/dependency-manger.d.ts +26 -0
- package/utils/reactive-controllers/element-resolution.d.ts +23 -0
- package/utils/reactive-controllers/focus-group.d.ts +62 -0
- package/utils/reactive-controllers/language-resolution.d.ts +11 -0
- package/utils/reactive-controllers/match-media.d.ts +13 -0
- package/utils/reactive-controllers/pending-state.d.ts +41 -0
- package/utils/reactive-controllers/roving-tabindex.d.ts +19 -0
- package/utils/reparent-child.d.ts +4 -0
- package/utils/sized-mixin.d.ts +17 -0
- package/utils/streaming-listener.d.ts +48 -0
- package/lib/accordion/index.cjs +0 -43
- package/lib/action-bar/index.cjs +0 -39
- package/lib/action-button/index.cjs +0 -24
- package/lib/action-group-D4MxBrq8.cjs +0 -20
- package/lib/avatar/index.cjs +0 -24
- package/lib/base-BCmA9Wxv.cjs +0 -30
- package/lib/base-nYalvNMy.js +0 -390
- package/lib/button/index.cjs +0 -20
- package/lib/button-base-B0iB_JTv.cjs +0 -25
- package/lib/button-group/index.cjs +0 -18
- package/lib/checkbox/index.cjs +0 -25
- package/lib/clear-button-D0djuaLb.cjs +0 -18
- package/lib/close-button-BrfeZvjk.cjs +0 -18
- package/lib/color-area/index.cjs +0 -80
- package/lib/color-field/index.cjs +0 -23
- package/lib/color-handle/index.cjs +0 -24
- package/lib/color-loupe-BICpNqFs.cjs +0 -56
- package/lib/color-menu/index.cjs +0 -86
- package/lib/color-picker/index.cjs +0 -48
- package/lib/color-slider/index.cjs +0 -57
- package/lib/divider/index.cjs +0 -18
- package/lib/field-group-TUFvhJkk.cjs +0 -23
- package/lib/field-label-BrJaeORz.cjs +0 -25
- package/lib/icon/index.cjs +0 -18
- package/lib/index.cjs +0 -18
- package/lib/index.js +0 -133
- package/lib/infield-button/index.cjs +0 -22
- package/lib/label/index.cjs +0 -18
- package/lib/legend-position/index.cjs +0 -27
- package/lib/lit-html-B3ugcwD9.js +0 -248
- package/lib/lit-html-p4Oxv2-5.cjs +0 -24
- package/lib/multi-language-field/index.cjs +0 -39
- package/lib/number-field/index.cjs +0 -57
- package/lib/overlay/index.cjs +0 -73
- package/lib/overlay-DScraBAi.cjs +0 -47
- package/lib/picker--2OCYWnV.js +0 -657
- package/lib/picker-B9W7Haf4.cjs +0 -127
- package/lib/popover-CVbjhSnx.cjs +0 -30
- package/lib/progress-circle-CiJoS8J7.cjs +0 -33
- package/lib/radio/index.cjs +0 -22
- package/lib/search/index.cjs +0 -45
- package/lib/slider/index.cjs +0 -18
- package/lib/streaming-listener-Bw4jE33f.cjs +0 -18
- package/lib/swatch/index.cjs +0 -49
- package/lib/switch/index.cjs +0 -22
- package/lib/tags/index.cjs +0 -32
- package/lib/text-field/index.cjs +0 -21
- package/lib/toast/index.cjs +0 -51
- package/lib/tooltip/index.cjs +0 -45
- package/lib/unit-input/index.cjs +0 -43
- /package/{lib → components}/base-BjTwmyRF.cjs +0 -0
- /package/{lib → components}/base-D76d76ww.js +0 -0
- /package/{lib → components}/color-Bg3tYsAQ.js +0 -0
- /package/{lib → components}/color-DphK4hwx.cjs +0 -0
- /package/{lib → components}/condition-attribute-with-id-DrQYZzFS.cjs +0 -0
- /package/{lib → components}/condition-attribute-with-id-Dv4lSRbe.js +0 -0
- /package/{lib → components}/dependency-manger-C5HCkMMB.cjs +0 -0
- /package/{lib → components}/dependency-manger-CEXvGQUV.js +0 -0
- /package/{lib → components}/directive-C7oCP5Bh.cjs +0 -0
- /package/{lib → components}/directive-oAbCiebi.js +0 -0
- /package/{lib → components}/divider.module-CXMNveQc.cjs +0 -0
- /package/{lib → components}/divider.module-DwOuLGU3.js +0 -0
- /package/{lib → components}/element-resolution-BvRLGqIU.cjs +0 -0
- /package/{lib → components}/element-resolution-FCUT-wql.js +0 -0
- /package/{lib → components}/focus-group-DHeTq18L.js +0 -0
- /package/{lib → components}/focus-group-DnxZUBhQ.cjs +0 -0
- /package/{lib → components}/focus-visible-B0P9aY_G.cjs +0 -0
- /package/{lib → components}/focus-visible-DBlJGoEW.js +0 -0
- /package/{lib → components}/focusable-selectors-B4YgbghQ.js +0 -0
- /package/{lib → components}/focusable-selectors-BgFlyFcY.cjs +0 -0
- /package/{lib → components}/index-C1chwzNp.js +0 -0
- /package/{lib → components}/index-DCKCHDTt.cjs +0 -0
- /package/{lib → components}/mutation-controller-DH7YOCyj.js +0 -0
- /package/{lib → components}/mutation-controller-DkOMCW-c.cjs +0 -0
- /package/{lib → components}/platform-CQzYNWKq.cjs +0 -0
- /package/{lib → components}/platform-DQYMG7JI.js +0 -0
- /package/{lib → components}/query-BL-TJj7K.cjs +0 -0
- /package/{lib → components}/query-D_KR_GUc.js +0 -0
- /package/{lib → components}/query-assigned-elements-DjfhL1cl.js +0 -0
- /package/{lib → components}/query-assigned-elements-DsKsfk7G.cjs +0 -0
- /package/{lib → components}/query-assigned-nodes-BcKWmGzy.cjs +0 -0
- /package/{lib → components}/query-assigned-nodes-C76XVPWY.js +0 -0
- /package/{lib → components}/random-id-ByCz1xaq.js +0 -0
- /package/{lib → components}/random-id-CqvckpWe.cjs +0 -0
- /package/{lib → components}/roving-tabindex-By_fCy_e.cjs +0 -0
- /package/{lib → components}/roving-tabindex-DOg4z6ZU.js +0 -0
- /package/{lib → components}/slottable-request-event-BfUUt1Mh.cjs +0 -0
- /package/{lib → components}/slottable-request-event-DggLA4Rx.js +0 -0
- /package/{lib → components}/when-CDK1Tt5Y.js +0 -0
- /package/{lib → components}/when-CDZyJPvd.cjs +0 -0
|
@@ -15,35 +15,34 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
import { O as f, I as
|
|
19
|
-
import {
|
|
20
|
-
import { L as
|
|
21
|
-
import {
|
|
22
|
-
import { r as h } from "../state-BAO-13Bs.js";
|
|
18
|
+
import { O as f, I as O, s as $, A as S } from "../overlay-C2Cck0Az.js";
|
|
19
|
+
import { C as G, H as M, b as J, L as K, c as Q, P as W, V as X, g as Y, a as Z, n as ee, o as te, p as oe } from "../overlay-C2Cck0Az.js";
|
|
20
|
+
import { L as E, r as w, x as c, n as u, E as z, B as b } from "../base-CxUap9HL.js";
|
|
21
|
+
import { r as h } from "../state-D8vot9IB.js";
|
|
23
22
|
import { e as g } from "../query-D_KR_GUc.js";
|
|
24
|
-
import "../
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
const
|
|
23
|
+
import { e as v } from "../directive-oAbCiebi.js";
|
|
24
|
+
import { f as A } from "../async-directive-BhRGSTWB.js";
|
|
25
|
+
import { r as y } from "../slottable-request-event-DggLA4Rx.js";
|
|
26
|
+
import { S as le } from "../slottable-request-event-DggLA4Rx.js";
|
|
27
|
+
const k = () => {
|
|
29
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
30
29
|
const i = document.createElement("style");
|
|
31
30
|
i.setAttribute("data-luzmo-vars", ""), i.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(i);
|
|
32
31
|
}
|
|
33
32
|
};
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
var
|
|
33
|
+
k();
|
|
34
|
+
const F = ":host([disabled]) ::slotted([slot=trigger]){pointer-events:none}slot[name=longpress-describedby-descriptor]{display:none}";
|
|
35
|
+
var T = Object.defineProperty, s = (i, e, t, o) => {
|
|
37
36
|
for (var r = void 0, n = i.length - 1, a; n >= 0; n--)
|
|
38
37
|
(a = i[n]) && (r = a(e, t, r) || r);
|
|
39
|
-
return r &&
|
|
38
|
+
return r && T(e, t, r), r;
|
|
40
39
|
};
|
|
41
|
-
class l extends
|
|
40
|
+
class l extends E {
|
|
42
41
|
constructor() {
|
|
43
42
|
super(...arguments), this.content = "click hover longpress", this.offset = 6, this.disabled = !1, this.receivesFocus = "auto", this.clickContent = [], this.longpressContent = [], this.hoverContent = [], this.targetContent = [];
|
|
44
43
|
}
|
|
45
44
|
static get styles() {
|
|
46
|
-
return [
|
|
45
|
+
return [w(F)];
|
|
47
46
|
}
|
|
48
47
|
getAssignedElementsFromSlot(e) {
|
|
49
48
|
return e.assignedElements({ flatten: !0 });
|
|
@@ -90,7 +89,7 @@ class l extends $ {
|
|
|
90
89
|
`;
|
|
91
90
|
}
|
|
92
91
|
renderClickOverlay() {
|
|
93
|
-
import("../overlay-
|
|
92
|
+
import("../overlay-C2Cck0Az.js").then((t) => t.d);
|
|
94
93
|
const e = this.renderSlot("click-content");
|
|
95
94
|
return this.clickContent.length === 0 ? e : c`
|
|
96
95
|
<luzmo-overlay
|
|
@@ -110,7 +109,7 @@ class l extends $ {
|
|
|
110
109
|
`;
|
|
111
110
|
}
|
|
112
111
|
renderHoverOverlay() {
|
|
113
|
-
import("../overlay-
|
|
112
|
+
import("../overlay-C2Cck0Az.js").then((t) => t.d);
|
|
114
113
|
const e = this.renderSlot("hover-content");
|
|
115
114
|
return this.hoverContent.length === 0 ? e : c`
|
|
116
115
|
<luzmo-overlay
|
|
@@ -130,7 +129,7 @@ class l extends $ {
|
|
|
130
129
|
`;
|
|
131
130
|
}
|
|
132
131
|
renderLongpressOverlay() {
|
|
133
|
-
import("../overlay-
|
|
132
|
+
import("../overlay-C2Cck0Az.js").then((t) => t.d);
|
|
134
133
|
const e = this.renderSlot("longpress-content");
|
|
135
134
|
return this.longpressContent.length === 0 ? e : c`
|
|
136
135
|
<luzmo-overlay
|
|
@@ -217,7 +216,7 @@ s([
|
|
|
217
216
|
s([
|
|
218
217
|
g("#hover-overlay", !0)
|
|
219
218
|
], l.prototype, "hoverOverlayElement");
|
|
220
|
-
function
|
|
219
|
+
function U(i, e, t, o) {
|
|
221
220
|
return f.open(
|
|
222
221
|
i,
|
|
223
222
|
e,
|
|
@@ -225,7 +224,7 @@ function j(i, e, t, o) {
|
|
|
225
224
|
o
|
|
226
225
|
);
|
|
227
226
|
}
|
|
228
|
-
class
|
|
227
|
+
class x extends A {
|
|
229
228
|
/* c8 ignore next 9 */
|
|
230
229
|
render(e) {
|
|
231
230
|
return z;
|
|
@@ -236,8 +235,8 @@ class I extends E {
|
|
|
236
235
|
handleSlottableRequest(e) {
|
|
237
236
|
if (e.target !== e.currentTarget)
|
|
238
237
|
return;
|
|
239
|
-
const t = e.data ===
|
|
240
|
-
|
|
238
|
+
const t = e.data === y;
|
|
239
|
+
b(t ? void 0 : this.template(), this.target, {
|
|
241
240
|
renderBefore: this.renderBefore
|
|
242
241
|
});
|
|
243
242
|
}
|
|
@@ -260,7 +259,8 @@ class I extends E {
|
|
|
260
259
|
this.init();
|
|
261
260
|
}
|
|
262
261
|
}
|
|
263
|
-
|
|
262
|
+
const N = v(x);
|
|
263
|
+
class I extends x {
|
|
264
264
|
constructor() {
|
|
265
265
|
super(...arguments), this.defaultOptions = {
|
|
266
266
|
triggerInteraction: "click",
|
|
@@ -283,11 +283,11 @@ class T extends I {
|
|
|
283
283
|
...o == null ? void 0 : o.overlayOptions
|
|
284
284
|
}, this.insertionOptions = o == null ? void 0 : o.insertionOptions, this.template = t, this.host = (m = e.options) == null ? void 0 : m.host;
|
|
285
285
|
let r = !1;
|
|
286
|
-
const n = (o == null ? void 0 : o.triggerInteraction) || this.defaultOptions.triggerInteraction, a =
|
|
287
|
-
this.target !== e.element && (this.target = e.element, r = !0), (r || a) && ((p = this.strategy) == null || p.abort(), this.strategy = new
|
|
286
|
+
const n = (o == null ? void 0 : o.triggerInteraction) || this.defaultOptions.triggerInteraction, a = O[(d = this.strategy) == null ? void 0 : d.type] !== n;
|
|
287
|
+
this.target !== e.element && (this.target = e.element, r = !0), (r || a) && ((p = this.strategy) == null || p.abort(), this.strategy = new $[n](this.target, {
|
|
288
288
|
isPersistent: !0,
|
|
289
|
-
handleOverlayReady: (
|
|
290
|
-
this.listenerHost = this.overlay =
|
|
289
|
+
handleOverlayReady: (C) => {
|
|
290
|
+
this.listenerHost = this.overlay = C, this.init();
|
|
291
291
|
}
|
|
292
292
|
})), this.strategy.open = (o == null ? void 0 : o.open) ?? !1;
|
|
293
293
|
}
|
|
@@ -295,15 +295,15 @@ class T extends I {
|
|
|
295
295
|
var r, n;
|
|
296
296
|
if (e.target !== e.currentTarget)
|
|
297
297
|
return;
|
|
298
|
-
const t = e.data ===
|
|
299
|
-
if (this.host && (o.host = this.host),
|
|
298
|
+
const t = e.data === y, o = {};
|
|
299
|
+
if (this.host && (o.host = this.host), b(
|
|
300
300
|
t ? void 0 : this.template(),
|
|
301
301
|
this.overlay,
|
|
302
302
|
o
|
|
303
303
|
), t)
|
|
304
304
|
this.overlay.remove();
|
|
305
305
|
else {
|
|
306
|
-
|
|
306
|
+
S.applyOptions(this.overlay, {
|
|
307
307
|
...this.options,
|
|
308
308
|
trigger: this.target
|
|
309
309
|
});
|
|
@@ -312,14 +312,31 @@ class T extends I {
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
const
|
|
315
|
+
const V = v(I);
|
|
316
316
|
customElements.get("luzmo-overlay") || customElements.define("luzmo-overlay", f);
|
|
317
317
|
customElements.get("luzmo-overlay-trigger") || customElements.define("luzmo-overlay-trigger", l);
|
|
318
318
|
export {
|
|
319
|
+
S as AbstractOverlay,
|
|
320
|
+
G as ClickController,
|
|
321
|
+
M as HoverController,
|
|
322
|
+
J as InteractionController,
|
|
323
|
+
O as InteractionTypes,
|
|
324
|
+
K as LONGPRESS_INSTRUCTIONS,
|
|
325
|
+
Q as LongpressController,
|
|
319
326
|
f as Overlay,
|
|
320
327
|
l as OverlayTrigger,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
328
|
+
I as OverlayTriggerDirective,
|
|
329
|
+
W as PlacementController,
|
|
330
|
+
x as SlottableRequestDirective,
|
|
331
|
+
le as SlottableRequestEvent,
|
|
332
|
+
X as VirtualTrigger,
|
|
333
|
+
Y as guaranteedAllTransitionend,
|
|
334
|
+
Z as nextFrame,
|
|
335
|
+
ee as noop,
|
|
336
|
+
U as openOverlay,
|
|
337
|
+
te as overlayTimer,
|
|
338
|
+
oe as placementUpdatedSymbol,
|
|
339
|
+
y as removeSlottableRequest,
|
|
340
|
+
N as slottableRequest,
|
|
341
|
+
V as trigger
|
|
325
342
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ReactiveController } from 'lit';
|
|
2
|
+
import { AbstractOverlay } from './abstract-overlay';
|
|
3
|
+
export declare enum InteractionTypes {
|
|
4
|
+
'click' = 0,
|
|
5
|
+
'hover' = 1,
|
|
6
|
+
'longpress' = 2
|
|
7
|
+
}
|
|
8
|
+
export type ControllerOptions = {
|
|
9
|
+
overlay?: AbstractOverlay;
|
|
10
|
+
handleOverlayReady?: (overlay: AbstractOverlay) => void;
|
|
11
|
+
isPersistent?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare class InteractionController implements ReactiveController {
|
|
14
|
+
target: HTMLElement;
|
|
15
|
+
abortController: AbortController;
|
|
16
|
+
get activelyOpening(): boolean;
|
|
17
|
+
private handleOverlayReady?;
|
|
18
|
+
private isLazilyOpen;
|
|
19
|
+
get open(): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Set `open` against the associated Overlay lazily.
|
|
22
|
+
*/
|
|
23
|
+
set open(open: boolean);
|
|
24
|
+
get overlay(): AbstractOverlay;
|
|
25
|
+
set overlay(overlay: AbstractOverlay | undefined);
|
|
26
|
+
private _overlay;
|
|
27
|
+
protected isPersistent: boolean;
|
|
28
|
+
type: InteractionTypes;
|
|
29
|
+
constructor(target: HTMLElement, { overlay, isPersistent, handleOverlayReady }: ControllerOptions);
|
|
30
|
+
prepareDescription(_: HTMLElement): void;
|
|
31
|
+
releaseDescription(): void;
|
|
32
|
+
shouldCompleteOpen(): void;
|
|
33
|
+
init(): void;
|
|
34
|
+
initOverlay(): void;
|
|
35
|
+
abort(): void;
|
|
36
|
+
hostConnected(): void;
|
|
37
|
+
hostDisconnected(): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Overlay } from './overlay';
|
|
2
|
+
import type { OverlayOptions, OverlayOptionsV1, TriggerInteractionsV1 } from './overlay-types';
|
|
3
|
+
export declare function openOverlay(trigger: HTMLElement, interaction: TriggerInteractionsV1, content: HTMLElement, optionsV1: OverlayOptionsV1): Promise<() => void>;
|
|
4
|
+
export declare function openOverlay(content: HTMLElement, options?: OverlayOptions): Promise<Overlay>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { InteractionController, InteractionTypes } from './interaction-controller';
|
|
2
|
+
export declare const LONGPRESS_INSTRUCTIONS: {
|
|
3
|
+
touch: string;
|
|
4
|
+
keyboard: string;
|
|
5
|
+
mouse: string;
|
|
6
|
+
};
|
|
7
|
+
export declare class LongpressController extends InteractionController {
|
|
8
|
+
type: InteractionTypes;
|
|
9
|
+
get activelyOpening(): boolean;
|
|
10
|
+
protected longpressState: null | 'potential' | 'opening' | 'pressed';
|
|
11
|
+
releaseDescription: () => void;
|
|
12
|
+
private timeout;
|
|
13
|
+
handleLongpress(): void;
|
|
14
|
+
handlePointerdown(event: PointerEvent): void;
|
|
15
|
+
private handlePointerup;
|
|
16
|
+
private handleKeydown;
|
|
17
|
+
private handleKeyup;
|
|
18
|
+
prepareDescription(trigger: HTMLElement): void;
|
|
19
|
+
shouldCompleteOpen(): void;
|
|
20
|
+
init(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LuzmoElement } from '../../utils/base';
|
|
2
|
+
import { AbstractOverlay } from './abstract-overlay';
|
|
3
|
+
import { Constructor } from './overlay-types';
|
|
4
|
+
export declare function OverlayDialog<T extends Constructor<AbstractOverlay>>(constructor: T): T & Constructor<LuzmoElement>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class OverlayCloseEvent extends Event {
|
|
2
|
+
root?: HTMLElement;
|
|
3
|
+
constructor({ root }: {
|
|
4
|
+
root?: HTMLElement;
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
interface GlobalEventHandlersEventMap {
|
|
9
|
+
'luzmo-overlay-close': CustomEvent<OverlayCloseEvent>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LuzmoElement } from '../../utils/base';
|
|
2
|
+
import { AbstractOverlay } from './abstract-overlay';
|
|
3
|
+
import { Constructor } from './overlay-types';
|
|
4
|
+
export declare function OverlayNoPopover<T extends Constructor<AbstractOverlay>>(constructor: T): T & Constructor<LuzmoElement>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LuzmoElement } from '../../utils/base';
|
|
2
|
+
import { AbstractOverlay } from './abstract-overlay';
|
|
3
|
+
import { Constructor } from './overlay-types';
|
|
4
|
+
export declare function OverlayPopover<T extends Constructor<AbstractOverlay>>(constructor: T): T & Constructor<LuzmoElement>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Overlay } from './overlay';
|
|
2
|
+
declare class OverlayStack {
|
|
3
|
+
private get document();
|
|
4
|
+
private pointerdownPath?;
|
|
5
|
+
private lastOverlay?;
|
|
6
|
+
private root;
|
|
7
|
+
stack: Overlay[];
|
|
8
|
+
constructor();
|
|
9
|
+
bindEvents(): void;
|
|
10
|
+
private closeOverlay;
|
|
11
|
+
/**
|
|
12
|
+
* Cach the `pointerdownTarget` for later testing
|
|
13
|
+
*
|
|
14
|
+
* @param event {ClickEvent}
|
|
15
|
+
*/
|
|
16
|
+
handlePointerdown: (event: Event) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Close all overlays that are not ancestors of this click event
|
|
19
|
+
*
|
|
20
|
+
* @param event {ClickEvent}
|
|
21
|
+
*/
|
|
22
|
+
handlePointerup: () => void;
|
|
23
|
+
handleBeforetoggle: (event: Event) => void;
|
|
24
|
+
private handleKeydown;
|
|
25
|
+
/**
|
|
26
|
+
* Get an array of Overlays that all share the same trigger element.
|
|
27
|
+
*
|
|
28
|
+
* @param triggerElement {HTMLELement}
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
31
|
+
overlaysByTriggerElement(triggerElement: HTMLElement): Overlay[];
|
|
32
|
+
/**
|
|
33
|
+
* When overlays are added manage the open state of exisiting overlays appropriately:
|
|
34
|
+
* - 'modal': should close other non-'modal' and non-'manual' overlays
|
|
35
|
+
* - 'page': should close other non-'modal' and non-'manual' overlays
|
|
36
|
+
* - 'auto': should close other 'auto' overlays and other 'hint' overlays, but not 'manual' overlays
|
|
37
|
+
* - 'manual': shouldn't close other overlays
|
|
38
|
+
* - 'hint': shouldn't close other overlays and give way to all other overlays on a trigger
|
|
39
|
+
*/
|
|
40
|
+
add(overlay: Overlay): void;
|
|
41
|
+
remove(overlay: Overlay): void;
|
|
42
|
+
}
|
|
43
|
+
export declare const overlayStack: OverlayStack;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A timer to help with implementation of warnup/cooldown behavior as described here:
|
|
3
|
+
*/
|
|
4
|
+
export declare class OverlayTimer {
|
|
5
|
+
private warmUpDelay;
|
|
6
|
+
private coolDownDelay;
|
|
7
|
+
private isWarm;
|
|
8
|
+
private cooldownTimeout?;
|
|
9
|
+
private component?;
|
|
10
|
+
private timeout;
|
|
11
|
+
private promise?;
|
|
12
|
+
private resolve?;
|
|
13
|
+
constructor(options?: {
|
|
14
|
+
warmUpDelay?: number;
|
|
15
|
+
coolDownDelay?: number;
|
|
16
|
+
});
|
|
17
|
+
openTimer(component: HTMLElement): Promise<boolean>;
|
|
18
|
+
close(component: HTMLElement): void;
|
|
19
|
+
private resetCooldownTimer;
|
|
20
|
+
private cancelCooldownTimer;
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ElementPart, TemplateResult } from 'lit';
|
|
2
|
+
import { OverlayOptions, TriggerInteraction } from './overlay-types';
|
|
3
|
+
import { SlottableRequestDirective } from './slottable-request-directive';
|
|
4
|
+
import { SlottableRequestEvent } from './slottable-request-event';
|
|
5
|
+
export type InsertionOptions = {
|
|
6
|
+
el: HTMLElement | (() => HTMLElement);
|
|
7
|
+
where: InsertPosition;
|
|
8
|
+
};
|
|
9
|
+
export type OverlayTriggerOptions = {
|
|
10
|
+
open?: boolean;
|
|
11
|
+
triggerInteraction: TriggerInteraction;
|
|
12
|
+
overlayOptions: OverlayOptions;
|
|
13
|
+
insertionOptions?: InsertionOptions;
|
|
14
|
+
};
|
|
15
|
+
export declare class OverlayTriggerDirective extends SlottableRequestDirective {
|
|
16
|
+
private host?;
|
|
17
|
+
private overlay;
|
|
18
|
+
private strategy;
|
|
19
|
+
protected defaultOptions: OverlayTriggerOptions;
|
|
20
|
+
protected options: OverlayOptions;
|
|
21
|
+
protected insertionOptions?: InsertionOptions;
|
|
22
|
+
render(_template: () => TemplateResult, _options?: Partial<OverlayTriggerOptions>): unknown;
|
|
23
|
+
update(part: ElementPart, [template, options]: Parameters<this['render']>): void;
|
|
24
|
+
handleSlottableRequest(event: SlottableRequestEvent): void;
|
|
25
|
+
}
|
|
26
|
+
export declare const trigger: (_template: () => TemplateResult, _options?: Partial<OverlayTriggerOptions> | undefined) => import("lit-html/directive.js").DirectiveResult<typeof OverlayTriggerDirective>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/dom';
|
|
2
|
+
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { LuzmoElement } from '../../utils/base';
|
|
4
|
+
import { Overlay } from './overlay';
|
|
5
|
+
import { OverlayTriggerInteractions } from './overlay-types';
|
|
6
|
+
export type OverlayContentTypes = 'click' | 'hover' | 'longpress';
|
|
7
|
+
/**
|
|
8
|
+
* @element overlay-trigger
|
|
9
|
+
*
|
|
10
|
+
* @slot trigger - The content that will trigger the various overlays
|
|
11
|
+
* @slot hover-content - The content that will be displayed on hover
|
|
12
|
+
* @slot click-content - The content that will be displayed on click
|
|
13
|
+
* @slot longpress-content - The content that will be displayed on click
|
|
14
|
+
*
|
|
15
|
+
* @fires luzmo-opened - Announces that the overlay has been opened
|
|
16
|
+
* @fires luzmo-closed - Announces that the overlay has been closed
|
|
17
|
+
*/
|
|
18
|
+
export declare class OverlayTrigger extends LuzmoElement {
|
|
19
|
+
static get styles(): CSSResultArray;
|
|
20
|
+
content: string;
|
|
21
|
+
/**
|
|
22
|
+
* @type {"top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end"}
|
|
23
|
+
* @attr
|
|
24
|
+
*/
|
|
25
|
+
placement?: Placement;
|
|
26
|
+
type?: OverlayTriggerInteractions;
|
|
27
|
+
offset: number;
|
|
28
|
+
open?: OverlayContentTypes;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
receivesFocus: 'true' | 'false' | 'auto';
|
|
31
|
+
private clickContent;
|
|
32
|
+
private clickPlacement?;
|
|
33
|
+
private longpressContent;
|
|
34
|
+
private longpressPlacement?;
|
|
35
|
+
private hoverContent;
|
|
36
|
+
private hoverPlacement?;
|
|
37
|
+
private targetContent;
|
|
38
|
+
clickOverlayElement: Overlay;
|
|
39
|
+
longpressOverlayElement: Overlay;
|
|
40
|
+
hoverOverlayElement: Overlay;
|
|
41
|
+
private getAssignedElementsFromSlot;
|
|
42
|
+
private handleTriggerContent;
|
|
43
|
+
private handleSlotContent;
|
|
44
|
+
private handleBeforetoggle;
|
|
45
|
+
protected update(changes: PropertyValues): void;
|
|
46
|
+
protected renderSlot(name: string): TemplateResult;
|
|
47
|
+
protected renderClickOverlay(): TemplateResult;
|
|
48
|
+
protected renderHoverOverlay(): TemplateResult;
|
|
49
|
+
protected renderLongpressOverlay(): TemplateResult;
|
|
50
|
+
protected render(): TemplateResult;
|
|
51
|
+
protected updated(changes: PropertyValues): void;
|
|
52
|
+
protected getUpdateComplete(): Promise<boolean>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Placement } from '@floating-ui/dom';
|
|
2
|
+
import type { VirtualTrigger } from './virtual-trigger';
|
|
3
|
+
export type Constructor<T = Record<string, unknown>> = {
|
|
4
|
+
new (...args: any[]): T;
|
|
5
|
+
prototype: T;
|
|
6
|
+
};
|
|
7
|
+
export type OverlayTypes = 'auto' | 'hint' | 'manual' | 'modal' | 'page';
|
|
8
|
+
export type TriggerInteraction = 'click' | 'longpress' | 'hover';
|
|
9
|
+
export type TriggerInteractions = OverlayTypes;
|
|
10
|
+
export type TriggerInteractionsV1 = 'click' | 'longpress' | 'hover' | 'custom' | 'replace' | 'inline' | 'modal';
|
|
11
|
+
export type OverlayTriggerInteractions = Extract<TriggerInteractions, 'inline' | 'modal' | 'replace'>;
|
|
12
|
+
export interface OverlayOpenCloseDetail {
|
|
13
|
+
interaction: TriggerInteractions;
|
|
14
|
+
reason?: 'external-click';
|
|
15
|
+
}
|
|
16
|
+
export interface OverlayCloseReasonDetail {
|
|
17
|
+
reason?: 'external-click';
|
|
18
|
+
}
|
|
19
|
+
export type OverlayOptions = {
|
|
20
|
+
delayed?: boolean;
|
|
21
|
+
notImmediatelyClosable?: boolean;
|
|
22
|
+
offset?: number | [number, number];
|
|
23
|
+
placement?: Placement;
|
|
24
|
+
receivesFocus?: 'auto' | 'true' | 'false';
|
|
25
|
+
trigger?: HTMLElement | VirtualTrigger;
|
|
26
|
+
type?: 'modal' | 'page' | 'hint' | 'auto' | 'manual';
|
|
27
|
+
};
|
|
28
|
+
export type OverlayOptionsV1 = {
|
|
29
|
+
root?: HTMLElement;
|
|
30
|
+
delayed?: boolean;
|
|
31
|
+
placement?: Placement;
|
|
32
|
+
offset?: number;
|
|
33
|
+
receivesFocus?: 'true' | 'false' | 'auto';
|
|
34
|
+
notImmediatelyClosable?: boolean;
|
|
35
|
+
abortPromise?: Promise<boolean>;
|
|
36
|
+
virtualTrigger?: VirtualTrigger;
|
|
37
|
+
};
|
|
38
|
+
declare global {
|
|
39
|
+
interface GlobalEventHandlersEventMap {
|
|
40
|
+
'luzmo-opened': CustomEvent<OverlayOpenCloseDetail>;
|
|
41
|
+
'luzmo-closed': CustomEvent<OverlayOpenCloseDetail>;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export type OpenableElement = HTMLElement & {
|
|
45
|
+
open: boolean;
|
|
46
|
+
tipElement?: HTMLElement;
|
|
47
|
+
updateComplete?: Promise<void>;
|
|
48
|
+
};
|
|
49
|
+
export type OverlayState = 'closed' | 'opening' | 'opened' | 'closing';
|
|
50
|
+
export { type Placement } from '@floating-ui/dom';
|