@luzmo/lucero 2.7.1 → 2.8.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/components/accordion/index.cjs +1 -1
- package/components/accordion/index.js +1 -1
- package/components/{accordion-BJLsCC-2.js → accordion-C9cVd8A8.js} +1 -1
- package/components/{accordion-OQ0RoC_7.cjs → accordion-DulsAsi7.cjs} +1 -1
- package/components/action-bar/index.cjs +1 -1
- package/components/action-bar/index.js +1 -1
- package/components/{action-bar-Dyt2tyjr.cjs → action-bar-BjTUUATD.cjs} +1 -1
- package/components/{action-bar-B-Y-gJ8B.js → action-bar-XpNzXzkl.js} +4 -4
- package/components/action-button/index.cjs +1 -1
- package/components/action-button/index.js +1 -1
- package/components/{action-button-CL4ZlryE.cjs → action-button-Cz4jSv__.cjs} +1 -1
- package/components/{action-button-BB3ZZFNN.js → action-button-LmKtPKfe.js} +1 -1
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -1
- package/components/{action-group-HECoPCas.js → action-group-CPxKx_oR.js} +1 -1
- package/components/{action-group-Doll-3Bf.cjs → action-group-DBxQJRLs.cjs} +1 -1
- package/components/action-menu/index.cjs +1 -1
- package/components/action-menu/index.js +1 -1
- package/components/{action-menu-DphCCjvX.cjs → action-menu-BFy0mEyu.cjs} +1 -1
- package/components/{action-menu-Bv9EA7__.js → action-menu-CT0OYS56.js} +3 -3
- package/components/avatar/index.cjs +1 -1
- package/components/avatar/index.js +1 -1
- package/components/{avatar-CVRQDsx6.js → avatar-BEk23sDA.js} +1 -1
- package/components/{avatar-DFzJbtId.cjs → avatar-C9EAInfy.cjs} +1 -1
- package/components/badge/index.cjs +1 -1
- package/components/badge/index.js +1 -1
- package/components/{badge-DzElGOcl.cjs → badge-CPpKOWh2.cjs} +1 -1
- package/components/{badge-BSfzmBRf.js → badge-bODlaAG_.js} +1 -1
- package/components/button/index.cjs +1 -1
- package/components/button/index.js +2 -2
- package/components/{button-CpaltgRZ.js → button-5jzMIMLW.js} +3 -3
- package/components/{button-BGEWdRbY.cjs → button-CjgL13CD.cjs} +1 -1
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +1 -1
- package/components/{button-group-DMsT6N0P.js → button-group-B59rXxDn.js} +1 -1
- package/components/{button-group-C23OtGC0.cjs → button-group-DxMfPmBg.cjs} +1 -1
- package/components/calendar/index.cjs +1 -1
- package/components/calendar/index.js +1 -1
- package/components/{calendar-BqyGW8gU.cjs → calendar-4h_Fe-mw.cjs} +1 -1
- package/components/{calendar-D4x5gp_0.js → calendar-5V1hrKWy.js} +2 -2
- package/components/chat-message/index.cjs +1 -1
- package/components/chat-message/index.js +1 -1
- package/components/{chat-message-5gP_qbiz.js → chat-message--nzqHl6e.js} +1 -1
- package/components/{chat-message-Dn5GKsSD.cjs → chat-message-BzSel33p.cjs} +1 -1
- package/components/chat-message-group/index.cjs +1 -1
- package/components/chat-message-group/index.js +1 -1
- package/components/{chat-message-group-Bp4mshBY.js → chat-message-group-BIXlrlYi.js} +1 -1
- package/components/{chat-message-group-CJddlS85.cjs → chat-message-group-DLkSlQah.cjs} +1 -1
- package/components/checkbox/checkbox.d.ts +2 -0
- package/components/checkbox/index.cjs +1 -1
- package/components/checkbox/index.js +1 -1
- package/components/{checkbox-NSSgVzJg.cjs → checkbox-CFQqGnDX.cjs} +1 -1
- package/components/{checkbox-fW7WI915.js → checkbox-D884zXBt.js} +1 -1
- package/components/{close-button-7zS6PUzh.js → close-button-Bw8knwnc.js} +1 -1
- package/components/{close-button-B06i2hJn.cjs → close-button-DhHKKvHu.cjs} +1 -1
- package/components/color-field/index.cjs +1 -1
- package/components/color-field/index.js +1 -1
- package/components/{color-field-l-aJ6O4a.cjs → color-field-B-GC4H0K.cjs} +1 -1
- package/components/{color-field-BZljmVHt.js → color-field-vmTnlDec.js} +1 -1
- package/components/color-menu/index.cjs +1 -1
- package/components/color-menu/index.js +1 -1
- package/components/{color-menu-C56xj5Oe.cjs → color-menu-a_TXvQLC.cjs} +1 -1
- package/components/{color-menu-CEtmpeN7.js → color-menu-tt_e0XSY.js} +5 -5
- package/components/color-palette/index.cjs +1 -1
- package/components/color-palette/index.js +1 -1
- package/components/{color-palette-D5NZDz5I.cjs → color-palette-C4Y8VU9j.cjs} +1 -1
- package/components/{color-palette-UU7Feiwh.js → color-palette-UnwRum-W.js} +1 -1
- package/components/color-palette-group/index.cjs +1 -1
- package/components/color-palette-group/index.js +1 -1
- package/components/{color-palette-group-DhGh0Db8.cjs → color-palette-group-BiPNlMgu.cjs} +1 -1
- package/components/{color-palette-group-CwmC9iR1.js → color-palette-group-jhNz9Gto.js} +1 -1
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.js +1 -1
- package/components/{color-picker-BDqJodTR.js → color-picker-C6-8JGHh.js} +4 -4
- package/components/{color-picker-CLGNQIkK.cjs → color-picker-D6KSj7M_.cjs} +1 -1
- package/components/date-range-picker/index.cjs +1 -1
- package/components/date-range-picker/index.js +1 -1
- package/components/{date-range-picker-DyJdcFiA.cjs → date-range-picker-B7J_RFW6.cjs} +1 -1
- package/components/{date-range-picker-CoCz3uDz.js → date-range-picker-BilkNV82.js} +4 -4
- package/components/date-time-picker/index.cjs +1 -1
- package/components/date-time-picker/index.js +1 -1
- package/components/{date-time-picker-CEEeMXGn.cjs → date-time-picker-BNUIfpzG.cjs} +1 -1
- package/components/{date-time-picker-CsgO17tA.js → date-time-picker-DOsLR0EN.js} +4 -4
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +1 -1
- package/components/{divider-fWGUxO6A.cjs → divider-BS5chsgx.cjs} +1 -1
- package/components/{divider-Bt0NIqfu.js → divider-CJRCMeKA.js} +1 -1
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -1
- package/components/{field-label-B3IsGUTv.cjs → field-label-61lILUqu.cjs} +1 -1
- package/components/{field-label-DOUnHwwh.js → field-label-B_VLKIJn.js} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +72 -71
- package/components/infield-button/index.cjs +1 -1
- package/components/infield-button/index.js +1 -1
- package/components/{infield-button-uD1GqTLW.cjs → infield-button-B0qcV4gq.cjs} +1 -1
- package/components/{infield-button-CeE_JxR6.js → infield-button-CcaKuxAs.js} +1 -1
- package/components/menu/index.cjs +1 -1
- package/components/menu/index.js +1 -1
- package/components/{menu-f2S0m6h9.js → menu-CM-ZA_ZM.js} +1 -1
- package/components/{menu-CoJ5oERs.cjs → menu-tDMNLuND.cjs} +1 -1
- package/components/multi-language-field/index.cjs +1 -1
- package/components/multi-language-field/index.js +1 -1
- package/components/{multi-language-field-SZObnneZ.js → multi-language-field-B6Ne8_Yw.js} +2 -2
- package/components/{multi-language-field-nJmWDtPL.cjs → multi-language-field-C5C5yS94.cjs} +1 -1
- package/components/notice/index.cjs +1 -1
- package/components/notice/index.js +1 -1
- package/components/{notice-CrLVNmqL.js → notice-62Wpb7BH.js} +2 -2
- package/components/{notice-f0p0TiGw.cjs → notice-DrrmwMlw.cjs} +1 -1
- package/components/number-field/index.cjs +1 -1
- package/components/number-field/index.js +1 -1
- package/components/{number-field-BEt0cfcB.js → number-field-CMM5MC2R.js} +2 -2
- package/components/{number-field-DrarDCm4.cjs → number-field-N6nInW0X.cjs} +1 -1
- package/components/options/index.cjs +1 -1
- package/components/options/index.js +1 -1
- package/components/{options-BH_Y3UB6.cjs → options-CsRLHwaY.cjs} +1 -1
- package/components/{options-BiA2h1-i.js → options-DtJTjiP8.js} +2 -2
- package/components/{pending-state-A6NrvaQj.cjs → pending-state-CQuz9Qiv.cjs} +1 -1
- package/components/{pending-state-BuYmUP6G.js → pending-state-KsPO-6Ei.js} +1 -1
- package/components/permission-box/index.cjs +18 -0
- package/components/permission-box/index.d.ts +9 -0
- package/components/permission-box/index.js +19 -0
- package/components/permission-box/permission-box.d.ts +157 -0
- package/components/permission-box/types.d.ts +73 -0
- package/components/permission-box-BsmcqGnU.cjs +176 -0
- package/components/permission-box-yUZKSyS9.js +405 -0
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +1 -1
- package/components/picker-button/index.cjs +1 -1
- package/components/picker-button/index.js +1 -1
- package/components/{picker-button-BWDfzx38.cjs → picker-button-CEo39nlA.cjs} +1 -1
- package/components/{picker-button-BhfY9gyk.js → picker-button-svME8NW2.js} +1 -1
- package/components/{picker-Dd25S3rP.cjs → picker-h0nO2GgS.cjs} +1 -1
- package/components/{picker-JhsRAtSd.js → picker-nWTz5f1J.js} +5 -5
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -1
- package/components/{popover-CFzz83f8.cjs → popover-6Qy-GpJj.cjs} +1 -1
- package/components/{popover-CWrRLzOL.js → popover-BdoJqBC5.js} +1 -1
- package/components/progress-bar/index.cjs +1 -1
- package/components/progress-bar/index.js +1 -1
- package/components/{progress-bar-D6wIZV5l.js → progress-bar-Bc5zjNDp.js} +1 -1
- package/components/{progress-bar-9Qg0PYAq.cjs → progress-bar-BsBnhg4r.cjs} +1 -1
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -1
- package/components/{progress-circle-DcGKwBTC.js → progress-circle-C5UOMP96.js} +1 -1
- package/components/{progress-circle-C_9UZs2Y.cjs → progress-circle-D-JW7zZS.cjs} +1 -1
- package/components/progress-steps/index.cjs +1 -1
- package/components/progress-steps/index.js +1 -1
- package/components/{progress-steps-Byem5ieS.js → progress-steps-BwV4fEcH.js} +1 -1
- package/components/{progress-steps-5MhpnGKv.cjs → progress-steps-l0tbGl3P.cjs} +1 -1
- package/components/prompt-box/index.cjs +1 -1
- package/components/prompt-box/index.js +1 -1
- package/components/{prompt-box-B1rmo4DX.cjs → prompt-box-B3gDbsQo.cjs} +1 -1
- package/components/{prompt-box-CL0ld3Na.js → prompt-box-BUMtyCsa.js} +4 -4
- package/components/question-box/index.cjs +1 -1
- package/components/question-box/index.js +1 -1
- package/components/question-box/question-box-templates.d.ts +1 -1
- package/components/{question-box-DmTWFlRn.cjs → question-box-C7oXNWje.cjs} +59 -59
- package/components/{question-box-CxzEveid.js → question-box-wYSFkVoP.js} +171 -179
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.js +1 -1
- package/components/{radio-CyxICbLM.js → radio-B_oHwHgO.js} +1 -1
- package/components/{radio-Dd-GgUMm.cjs → radio-DJmITM2m.cjs} +1 -1
- package/components/search/index.cjs +1 -1
- package/components/search/index.js +1 -1
- package/components/{search-1KUNWKWg.cjs → search-CXuXsgJt.cjs} +1 -1
- package/components/{search-_NUUJLz0.js → search-Dl5y1IqM.js} +2 -2
- package/components/select/index.cjs +1 -1
- package/components/select/index.js +1 -1
- package/components/{select-ChM3Zfxd.cjs → select-Dm7rf5Un.cjs} +1 -1
- package/components/{select-8gtm46qA.js → select-lS54kKFO.js} +6 -6
- package/components/{sized-mixin-CSajkMro.cjs → sized-mixin-BqV6ywDw.cjs} +1 -1
- package/components/{sized-mixin-BmxIAuoH.js → sized-mixin-Cb-47MjG.js} +17 -1
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +1 -1
- package/components/{slider-CD-aGN9I.js → slider-CRe19ziU.js} +2 -2
- package/components/{slider-B1cCAj1x.cjs → slider-CotjHgw-.cjs} +1 -1
- package/components/split-view/controllers/pane-visibility-controller.d.ts +22 -0
- package/components/split-view/controllers/size-memory-controller.d.ts +27 -0
- package/components/split-view/index.cjs +1 -1
- package/components/split-view/index.d.ts +1 -0
- package/components/split-view/index.js +1 -1
- package/components/split-view/split-view-model.d.ts +2 -0
- package/components/split-view/split-view.d.ts +63 -6
- package/components/split-view-B8CDMni5.js +547 -0
- package/components/split-view-vqTtsWjc.cjs +45 -0
- package/components/status-light/index.cjs +1 -1
- package/components/status-light/index.js +1 -1
- package/components/{status-light-Do6z53mM.cjs → status-light-CtETRd_o.cjs} +1 -1
- package/components/{status-light-DqHhhZed.js → status-light-kt3QBqrC.js} +1 -1
- package/components/swatch/index.cjs +1 -1
- package/components/swatch/index.js +1 -1
- package/components/{swatch-DiNMN-SZ.cjs → swatch-BX6GGDBs.cjs} +1 -1
- package/components/{swatch-BBVsuSAV.js → swatch-bXSCI96I.js} +1 -1
- package/components/switch/index.cjs +1 -1
- package/components/switch/index.js +1 -1
- package/components/{switch-DMhCYTgq.cjs → switch-CnnJrKpy.cjs} +1 -1
- package/components/{switch-BBtewLDD.js → switch-Do9jl9ur.js} +1 -1
- package/components/table/index.cjs +1 -1
- package/components/table/index.js +1 -1
- package/components/{table-Bf-00FYb.cjs → table-CF5do4qb.cjs} +1 -1
- package/components/{table-CfFwBCp1.js → table-FWX6kbpt.js} +2 -2
- package/components/tabs/index.cjs +1 -1
- package/components/tabs/index.js +1 -1
- package/components/{tabs-Dkt0B_-A.js → tabs-CODc4EYJ.js} +2 -2
- package/components/{tabs-B0WHKMuF.cjs → tabs-sIusiEWI.cjs} +1 -1
- package/components/tags/index.cjs +1 -1
- package/components/tags/index.js +1 -1
- package/components/{tags-Be4yrNPw.js → tags-BEfsznJy.js} +3 -3
- package/components/{tags-CHDNXpxh.cjs → tags-CWJqZufu.cjs} +1 -1
- package/components/text-field/index.cjs +1 -1
- package/components/text-field/index.js +2 -2
- package/components/{text-field-CBsx1CVo.js → text-field-5Ilezggg.js} +1 -1
- package/components/{text-field-CZixBD87.cjs → text-field-8IQu5JLQ.cjs} +1 -1
- package/components/{text-field-DwvDSctG.cjs → text-field-CLUvzUDH.cjs} +1 -1
- package/components/{text-field-SNbvQYOj.js → text-field-Cn51A87k.js} +2 -2
- package/components/toast/index.cjs +1 -1
- package/components/toast/index.js +1 -1
- package/components/{toast-CXZUVaYz.js → toast-B6x2SjM8.js} +1 -1
- package/components/{toast-B6yesIcI.cjs → toast-CpOVCCix.cjs} +1 -1
- package/components/tooltip/index.cjs +1 -1
- package/components/tooltip/index.js +1 -1
- package/components/{tooltip-BE01O3Sg.cjs → tooltip-CjfQup1K.cjs} +1 -1
- package/components/{tooltip-g2jd5Wsv.js → tooltip-ElTGebA9.js} +1 -1
- package/components/top-nav/index.cjs +1 -1
- package/components/top-nav/index.js +1 -1
- package/components/{top-nav-B0E1K_zf.cjs → top-nav-BG6vbFst.cjs} +1 -1
- package/components/{top-nav-DiUCsUpZ.js → top-nav-BMFB1WB0.js} +1 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +8 -8
- package/custom-elements.json +1 -1
- package/index.d.ts +1 -0
- package/package.json +7 -1
- package/standalone/accordion.js +3 -3
- package/standalone/action-bar.js +4 -4
- package/standalone/action-button.js +1 -1
- package/standalone/action-group.js +1 -1
- package/standalone/action-menu.js +6 -6
- package/standalone/avatar.js +5 -5
- package/standalone/badge.js +1 -1
- package/standalone/button-group.js +1 -1
- package/standalone/button.js +1 -1
- package/standalone/calendar.js +1 -1
- package/standalone/chat-message-group.js +2 -2
- package/standalone/chat-message.js +3 -3
- package/standalone/checkbox.js +1 -1
- package/standalone/chunks/{action-button-C946JGIA.js → action-button-CFXQ66x-.js} +1 -1
- package/standalone/chunks/{action-group-DlClwXLO.js → action-group-CX3Dg0Bu.js} +2 -2
- package/standalone/chunks/{badge-DPFbBRCY.js → badge-C1_QvLsq.js} +1 -1
- package/standalone/chunks/{button-COqfQNJv.js → button-DFVs4O1S.js} +1 -1
- package/standalone/chunks/{button-BhSe7abg.js → button-PsWOoEKo.js} +1 -1
- package/standalone/chunks/{button-base-DLYrzCSm.js → button-base-BuAaSi-H.js} +2 -2
- package/standalone/chunks/{calendar-BVrT8uqP.js → calendar-C8QpCEII.js} +5 -5
- package/standalone/chunks/{checkbox-4PoS7Uft.js → checkbox-DYjPiIwY.js} +1 -1
- package/standalone/chunks/{checkbox-mixin-HnfmivU3.js → checkbox-mixin-BRuj7--C.js} +2 -2
- package/standalone/chunks/{clear-button-qIMg8hR4.js → clear-button-BfZbJISP.js} +1 -1
- package/standalone/chunks/{close-button-DEiL5kEh.js → close-button-DdAb7Vyz.js} +1 -1
- package/standalone/chunks/color-area-DKqadIPQ.js +66 -0
- package/standalone/chunks/{color-field-BKDaLJQo.js → color-field-DlZIotvM.js} +1 -1
- package/standalone/chunks/{color-handle-DO7dxFGx.js → color-handle-h3fYn_2h.js} +1 -1
- package/standalone/chunks/{color-loupe-_dC69K1Z.js → color-loupe-ceV5LQbI.js} +1 -1
- package/standalone/chunks/{color-menu-6LhE-qWn.js → color-menu-BSYeKpnw.js} +2 -2
- package/standalone/chunks/{color-slider-MSADvkPC.js → color-slider-w5flr8ev.js} +2 -2
- package/standalone/chunks/{divider-vAjIOfo1.js → divider-BLhmxGvJ.js} +1 -1
- package/standalone/chunks/{field-group-C1oDgW9m.js → field-group-Pc_Pu61V.js} +1 -1
- package/standalone/chunks/{field-label-Djcst_hn.js → field-label-CYs6sh7M.js} +3 -3
- package/standalone/chunks/icon-CYZJZELU.js +2 -0
- package/standalone/chunks/{infield-button-B8EkjwP9.js → infield-button-umqY7wh3.js} +1 -1
- package/standalone/chunks/lucero-runtime-BkqJ2L5f.js +18 -0
- package/standalone/chunks/luzmoCheck-BQw4HZFw.js +2 -0
- package/standalone/chunks/{manage-help-text-DO3PkWgh.js → manage-help-text-CrQxXqBH.js} +1 -1
- package/standalone/chunks/{menu-DtUgXalL.js → menu-BQ1vUHja.js} +6 -6
- package/standalone/chunks/{number-field-aOOuxxRh.js → number-field-Cujj8njt.js} +2 -2
- package/standalone/chunks/{observe-slot-presence-BxmG6A0m.js → observe-slot-presence-CITwnhtc.js} +1 -1
- package/standalone/chunks/{options-CPaX-OWy.js → options-BlDY_bJv.js} +12 -12
- package/standalone/chunks/{overlay-CgQMEmrM.js → overlay-Bcwu868u.js} +6 -6
- package/standalone/chunks/{pending-state-DnTXKvtm.js → pending-state-BbjpQDWR.js} +1 -1
- package/standalone/chunks/{picker-5IvNnimu.js → picker-BOuknvzl.js} +7 -7
- package/standalone/chunks/{picker-button-BIqlIkET.js → picker-button-B7gJZHYC.js} +1 -1
- package/standalone/chunks/{popover-Ca-FBqiU.js → popover-Dum9nObN.js} +2 -2
- package/standalone/chunks/progress-circle-CZodXLYe.js +17 -0
- package/standalone/chunks/property-BsZepKFj.js +2 -0
- package/standalone/chunks/{radio-BJ3RhyUD.js → radio-fCBCSuw9.js} +2 -2
- package/standalone/chunks/{segments-factory-DWNY1AUE.js → segments-factory-PfCggJk6.js} +1 -1
- package/standalone/chunks/{skeleton-loader-CymPdQl3.js → skeleton-loader-zvitohC5.js} +1 -1
- package/standalone/chunks/swatch-BL10VQ4z.js +33 -0
- package/standalone/chunks/{template-property-CyrkVY0Q.js → template-property-BeYccnca.js} +1 -1
- package/standalone/chunks/{text-field-C4D5FNRe.js → text-field-KnOMaj3Y.js} +1 -1
- package/standalone/chunks/{text-field-DwD97PEo.js → text-field-pIdOTrtY.js} +15 -15
- package/standalone/chunks/tooltip-CYQLlhx8.js +41 -0
- package/standalone/clear-button.js +1 -1
- package/standalone/close-button.js +1 -1
- package/standalone/color-area.js +1 -1
- package/standalone/color-field.js +1 -1
- package/standalone/color-handle.js +1 -1
- package/standalone/color-loupe.js +1 -1
- package/standalone/color-menu.js +1 -1
- package/standalone/color-palette-group.js +3 -3
- package/standalone/color-palette.js +1 -1
- package/standalone/color-picker.js +2 -2
- package/standalone/color-slider.js +1 -1
- package/standalone/date-range-picker.js +7 -7
- package/standalone/date-time-picker.js +8 -8
- package/standalone/divider.js +1 -1
- package/standalone/field-group.js +1 -1
- package/standalone/field-label.js +1 -1
- package/standalone/icon.js +1 -1
- package/standalone/infield-button.js +1 -1
- package/standalone/label.js +1 -1
- package/standalone/lit.js +1 -1
- package/standalone/manifest.json +45 -43
- package/standalone/menu.js +1 -1
- package/standalone/multi-language-field.js +1 -1
- package/standalone/notice.js +2 -2
- package/standalone/number-field.js +1 -1
- package/standalone/options.js +1 -1
- package/standalone/overlay.js +1 -1
- package/standalone/permission-box.js +178 -0
- package/standalone/picker-button.js +1 -1
- package/standalone/picker.js +1 -1
- package/standalone/popover.js +1 -1
- package/standalone/progress-bar.js +2 -2
- package/standalone/progress-circle.js +1 -1
- package/standalone/progress-steps.js +2 -2
- package/standalone/prompt-box.js +3 -3
- package/standalone/question-box.js +33 -33
- package/standalone/radio.js +1 -1
- package/standalone/search.js +2 -2
- package/standalone/select.js +9 -9
- package/standalone/skeleton-loader.js +1 -1
- package/standalone/slider.js +11 -11
- package/standalone/split-view.js +5 -3
- package/standalone/status-light.js +1 -1
- package/standalone/swatch.js +1 -1
- package/standalone/switch.js +1 -1
- package/standalone/table.js +24 -24
- package/standalone/tabs.js +7 -7
- package/standalone/tags.js +2 -2
- package/standalone/text-field.js +1 -1
- package/standalone/toast.js +1 -1
- package/standalone/tooltip.js +1 -1
- package/standalone/top-nav.js +10 -10
- package/standalone/utils.js +1 -1
- package/styles/mixins/tests/visually-hidden.test.d.ts +1 -0
- package/utils/sized-mixin.d.ts +8 -0
- package/components/split-view-DDwpoN2O.js +0 -357
- package/components/split-view-DNVlr5VD.cjs +0 -43
- package/standalone/chunks/color-area-D-AVcZza.js +0 -66
- package/standalone/chunks/icon-D69mOw1X.js +0 -2
- package/standalone/chunks/lucero-runtime-DMlHjBe_.js +0 -18
- package/standalone/chunks/progress-circle-CFtVq9Ou.js +0 -17
- package/standalone/chunks/property-BsDbx7Z2.js +0 -2
- package/standalone/chunks/swatch-zFOV4NtM.js +0 -33
- package/standalone/chunks/tooltip-B-j8PrNl.js +0 -41
|
@@ -4,15 +4,28 @@ import { Focusable } from '../../utils/focusable';
|
|
|
4
4
|
* Divides two panes with an optionally interactive separator.
|
|
5
5
|
*
|
|
6
6
|
* @element luzmo-split-view
|
|
7
|
-
* @slot - The first two elements are rendered as panes.
|
|
7
|
+
* @slot - The first two elements are rendered as panes. A `hidden` or
|
|
8
|
+
* `display: none` element among them is not a pane. Visibility is re-checked
|
|
9
|
+
* when a pane's own `hidden`, `style` or `class` changes and when the view
|
|
10
|
+
* resizes; a style change from an ancestor that resizes nothing is not
|
|
11
|
+
* picked up.
|
|
8
12
|
* @attr primary-min - Minimum primary pane size in pixels.
|
|
9
13
|
* @attr primary-max - Maximum primary pane size in pixels.
|
|
10
14
|
* @attr secondary-min - Minimum secondary pane size in pixels.
|
|
11
15
|
* @attr secondary-max - Maximum secondary pane size in pixels.
|
|
12
16
|
* @attr primary-size - Initial primary pane size in pixels, percent, or `auto`.
|
|
17
|
+
* @attr secondary-size - Initial secondary pane size in pixels, percent, or
|
|
18
|
+
* `auto`. When set, the secondary pane keeps its size as the view resizes.
|
|
13
19
|
* @attr splitter-pos - Current primary pane size in pixels.
|
|
20
|
+
* @attr stack-below - Inline size in pixels below which the panes stack.
|
|
14
21
|
* @fires input - The splitter position changes during interaction.
|
|
15
22
|
* @fires change - A splitter position change is committed.
|
|
23
|
+
* @fires {CustomEvent<InteractionEventDetail>} luzmo-interaction-start - A
|
|
24
|
+
* pointer drag or held key starts, before the first position change.
|
|
25
|
+
* @fires {CustomEvent<InteractionEventDetail>} luzmo-interaction-end - The
|
|
26
|
+
* interaction ends, after its last `input`/`change`.
|
|
27
|
+
* @fires {CustomEvent<InteractionEventDetail>} luzmo-interaction-cancel - A
|
|
28
|
+
* pointer drag is cancelled and its position restored.
|
|
16
29
|
* @cssprop --luzmo-split-view-divider-color - Divider color.
|
|
17
30
|
* @cssprop --luzmo-split-view-divider-color-hover - Hovered divider color.
|
|
18
31
|
* @cssprop --luzmo-split-view-divider-color-active - Active divider color.
|
|
@@ -44,6 +57,25 @@ export declare class LuzmoSplitView extends Focusable {
|
|
|
44
57
|
get secondaryMax(): number;
|
|
45
58
|
/** Initial primary pane size in pixels, percentage, or `auto`. */
|
|
46
59
|
primarySize: string;
|
|
60
|
+
/**
|
|
61
|
+
* Initial secondary pane size in pixels, percentage, or `auto`. When set,
|
|
62
|
+
* the secondary pane keeps its size as the view resizes and takes
|
|
63
|
+
* precedence over `primarySize`.
|
|
64
|
+
*/
|
|
65
|
+
secondarySize?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Inline size in pixels below which the panes stack. `0` never stacks. The
|
|
68
|
+
* view is expected to fill its container: a content-sized view can change
|
|
69
|
+
* its own width when it stacks and flip back.
|
|
70
|
+
*/
|
|
71
|
+
set stackBelow(value: number);
|
|
72
|
+
get stackBelow(): number;
|
|
73
|
+
/**
|
|
74
|
+
* Read-only. Whether the panes are currently stacked by `stackBelow`.
|
|
75
|
+
* Reflected as the `stacked` attribute for styling; a consumer write to the
|
|
76
|
+
* attribute is undone on the next update.
|
|
77
|
+
*/
|
|
78
|
+
get stacked(): boolean;
|
|
47
79
|
/** Current primary pane size in pixels. */
|
|
48
80
|
set splitterPos(value: number);
|
|
49
81
|
get splitterPos(): number;
|
|
@@ -53,50 +85,75 @@ export declare class LuzmoSplitView extends Focusable {
|
|
|
53
85
|
private _primaryMax;
|
|
54
86
|
private _secondaryMin;
|
|
55
87
|
private _secondaryMax;
|
|
88
|
+
private _stackBelow;
|
|
89
|
+
private _stacked;
|
|
56
90
|
private _resizable;
|
|
57
91
|
private _splitterPos;
|
|
58
92
|
private _viewSize;
|
|
93
|
+
private _viewOrientation?;
|
|
59
94
|
private _minPos;
|
|
60
95
|
private _maxPos;
|
|
61
96
|
private _enoughChildren;
|
|
62
97
|
private _positionInitialized;
|
|
63
98
|
private _initialSplitterPosSupplied;
|
|
64
|
-
|
|
99
|
+
/** The secondary size a layout asked for before bounds clamped it. */
|
|
100
|
+
private _clampedSecondarySize?;
|
|
65
101
|
private _restorePositionOnReconnect;
|
|
66
|
-
private
|
|
102
|
+
private _pendingSource?;
|
|
67
103
|
private _controlledElement?;
|
|
68
104
|
private _controlledElementGeneratedId?;
|
|
69
105
|
private _resizeObserver?;
|
|
106
|
+
private _observedInlineSize?;
|
|
70
107
|
private _dragStartPosition?;
|
|
71
108
|
private _dragPointerId?;
|
|
72
109
|
private _dragChanged;
|
|
73
110
|
private _capturedPointer?;
|
|
74
|
-
private
|
|
111
|
+
private readonly _interaction;
|
|
112
|
+
private readonly _panes;
|
|
113
|
+
private readonly _memory;
|
|
75
114
|
get focusElement(): HTMLElement;
|
|
76
115
|
connectedCallback(): void;
|
|
77
116
|
disconnectedCallback(): void;
|
|
117
|
+
private get _orientation();
|
|
118
|
+
private get _secondaryFixed();
|
|
78
119
|
private _normalizeBound;
|
|
79
120
|
private _measureView;
|
|
121
|
+
private _updateStacked;
|
|
122
|
+
private _handleResize;
|
|
80
123
|
private _calculateBounds;
|
|
81
124
|
private _clampPosition;
|
|
82
125
|
private _resolveInitialPosition;
|
|
126
|
+
private _resolvePaneSize;
|
|
127
|
+
private _fixedSizeFromPosition;
|
|
128
|
+
private _positionFromFixedSize;
|
|
129
|
+
private _rememberPosition;
|
|
130
|
+
private _resolveRememberedPosition;
|
|
83
131
|
private _applyPaneSizes;
|
|
84
|
-
private _restorePaneStyles;
|
|
85
|
-
private _setActivePanes;
|
|
86
132
|
private _recalculate;
|
|
87
133
|
private _syncAriaControls;
|
|
88
134
|
private _clearControlledElementId;
|
|
89
135
|
private handleSlotChange;
|
|
90
136
|
private _dispatchValueEvent;
|
|
137
|
+
private _commitChange;
|
|
91
138
|
private _setPosition;
|
|
92
139
|
private handleKeydown;
|
|
140
|
+
private handleKeyup;
|
|
141
|
+
private handleFocusOut;
|
|
93
142
|
private _capturePointer;
|
|
94
143
|
private _releasePointer;
|
|
95
144
|
private handlePointerDown;
|
|
145
|
+
private _snapshotDragStart;
|
|
96
146
|
private _pointerPosition;
|
|
97
147
|
private handlePointerMove;
|
|
98
148
|
private _finishDrag;
|
|
99
149
|
private handlePointerUp;
|
|
150
|
+
private _releaseDrag;
|
|
151
|
+
/**
|
|
152
|
+
* Finishes the pointer drag or held-key interaction in progress as if the
|
|
153
|
+
* user released it, so a host can settle the position before it removes or
|
|
154
|
+
* hides the view. Does nothing when no interaction is in progress.
|
|
155
|
+
*/
|
|
156
|
+
endInteraction(): void;
|
|
100
157
|
private _cancelDrag;
|
|
101
158
|
private handlePointerCancel;
|
|
102
159
|
protected render(): TemplateResult;
|
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2026 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
import "./tokens.js";
|
|
19
|
+
import { t as e } from "./decorate-CpKsOs9z.js";
|
|
20
|
+
import { t } from "./focusable-xjv79E40.js";
|
|
21
|
+
import { n, t as r } from "./interaction-BpCLJ1OV.js";
|
|
22
|
+
import { html as i, nothing as a, unsafeCSS as o } from "lit";
|
|
23
|
+
import { property as s, query as c } from "lit/decorators.js";
|
|
24
|
+
// src/components/split-view/controllers/pane-visibility-controller.ts
|
|
25
|
+
var l = class {
|
|
26
|
+
constructor(e, t) {
|
|
27
|
+
this._options = t, this._candidates = [], this._active = [], this._inlineStyles = /* @__PURE__ */ new Map(), e.addController(this);
|
|
28
|
+
}
|
|
29
|
+
hostDisconnected() {
|
|
30
|
+
this._observer?.disconnect(), this.restoreStyles(), this._active = [], this._candidates = [];
|
|
31
|
+
}
|
|
32
|
+
get active() {
|
|
33
|
+
return this._active;
|
|
34
|
+
}
|
|
35
|
+
observe(e) {
|
|
36
|
+
if (this._candidates = e, typeof MutationObserver < "u") {
|
|
37
|
+
this._observer ??= new MutationObserver(() => {
|
|
38
|
+
this.sync(), this._observer?.takeRecords();
|
|
39
|
+
}), this._observer.disconnect();
|
|
40
|
+
for (let t of e) this._observer.observe(t, {
|
|
41
|
+
attributes: !0,
|
|
42
|
+
attributeFilter: [
|
|
43
|
+
"class",
|
|
44
|
+
"hidden",
|
|
45
|
+
"style"
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
isShown(e) {
|
|
51
|
+
if (e.hidden) return !1;
|
|
52
|
+
let t = this._inlineStyles.get(e);
|
|
53
|
+
if (t?.appliedDisplay !== "none" || e.style.display !== "none") return getComputedStyle(e).display !== "none";
|
|
54
|
+
e.style.display = t.display;
|
|
55
|
+
let n = getComputedStyle(e).display !== "none";
|
|
56
|
+
return e.style.display = "none", n;
|
|
57
|
+
}
|
|
58
|
+
sync() {
|
|
59
|
+
let e = this._candidates.filter((e) => this.isShown(e));
|
|
60
|
+
(e.length !== this._active.length || e.some((e, t) => e !== this._active[t])) && this._options.onChange();
|
|
61
|
+
}
|
|
62
|
+
setActive(e) {
|
|
63
|
+
let t = e.slice(0, 2), n = t.length !== this._active.length || t.some((e, t) => e !== this._active[t]);
|
|
64
|
+
if (n && (this.restoreStyles(), this._active = t), n || this._inlineStyles.size === 0) for (let e of t) this._inlineStyles.set(e, {
|
|
65
|
+
display: e.style.display,
|
|
66
|
+
flex: e.style.flex
|
|
67
|
+
});
|
|
68
|
+
return n;
|
|
69
|
+
}
|
|
70
|
+
write(e) {
|
|
71
|
+
let t = this._observer?.takeRecords() ?? [];
|
|
72
|
+
e(), this._observer?.takeRecords(), t.length > 0 && queueMicrotask(() => this.sync());
|
|
73
|
+
}
|
|
74
|
+
applyDisplay(e, t) {
|
|
75
|
+
let n = this._inlineStyles.get(e);
|
|
76
|
+
n?.appliedDisplay !== void 0 && e.style.display !== n.appliedDisplay && (n.display = e.style.display);
|
|
77
|
+
let r = t ? "none" : n?.display ?? "";
|
|
78
|
+
e.style.display = r, n && (n.appliedDisplay = r);
|
|
79
|
+
}
|
|
80
|
+
restoreStyles() {
|
|
81
|
+
for (let [e, t] of this._inlineStyles) e.style.display === (t.appliedDisplay ?? t.display) && (e.style.display = t.display), e.style.flex = t.flex;
|
|
82
|
+
this._inlineStyles.clear();
|
|
83
|
+
}
|
|
84
|
+
}, u = class {
|
|
85
|
+
constructor(e) {
|
|
86
|
+
this._rememberedSizes = {}, this._lastExpandedPositions = {}, e.addController(this);
|
|
87
|
+
}
|
|
88
|
+
hostConnected() {}
|
|
89
|
+
get dragStartMemory() {
|
|
90
|
+
return this._dragStartMemory;
|
|
91
|
+
}
|
|
92
|
+
rememberedSize(e) {
|
|
93
|
+
return this._rememberedSizes[e];
|
|
94
|
+
}
|
|
95
|
+
remember(e, t) {
|
|
96
|
+
this._rememberedSizes[e] = t;
|
|
97
|
+
}
|
|
98
|
+
forget() {
|
|
99
|
+
this._rememberedSizes = {};
|
|
100
|
+
}
|
|
101
|
+
lastExpandedPosition(e) {
|
|
102
|
+
return this._lastExpandedPositions[e];
|
|
103
|
+
}
|
|
104
|
+
rememberExpanded(e, t) {
|
|
105
|
+
this._lastExpandedPositions[e] = t;
|
|
106
|
+
}
|
|
107
|
+
snapshotDragStart(e) {
|
|
108
|
+
this._dragStartMemory = {
|
|
109
|
+
orientation: e,
|
|
110
|
+
rememberedSizes: { ...this._rememberedSizes },
|
|
111
|
+
lastExpandedPositions: { ...this._lastExpandedPositions }
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
clearDragStart() {
|
|
115
|
+
this._dragStartMemory = void 0;
|
|
116
|
+
}
|
|
117
|
+
restoreRememberedSizes(e) {
|
|
118
|
+
this._rememberedSizes = { ...e?.rememberedSizes };
|
|
119
|
+
}
|
|
120
|
+
restoreLastExpandedPositions(e) {
|
|
121
|
+
this._lastExpandedPositions = { ...e?.lastExpandedPositions };
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
// src/components/split-view/split-view-model.ts
|
|
125
|
+
function d(e, t) {
|
|
126
|
+
let n = Math.max(0, t.primaryMin, e - t.secondaryMax), r = Math.min(e, t.primaryMax, e - t.secondaryMin);
|
|
127
|
+
if (n <= r) return {
|
|
128
|
+
min: n,
|
|
129
|
+
max: r
|
|
130
|
+
};
|
|
131
|
+
let i = Math.min(e, Math.max(0, e / 2));
|
|
132
|
+
return {
|
|
133
|
+
min: i,
|
|
134
|
+
max: i
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function f(e, t) {
|
|
138
|
+
return Math.min(t.max, Math.max(t.min, e));
|
|
139
|
+
}
|
|
140
|
+
function p(e, t) {
|
|
141
|
+
return t > 0 && e < t;
|
|
142
|
+
}
|
|
143
|
+
// src/components/split-view/split-view.module.scss?inline
|
|
144
|
+
var m = ":host{min-block-size:0;min-inline-size:0;display:flex;position:relative}:host(:is([vertical],[stacked])){flex-direction:column}slot{display:contents}::slotted(*){min-block-size:0;min-inline-size:0}::slotted(:nth-child(n+3)){display:none!important}.separator{cursor:col-resize;block-size:100%;inline-size:var(--split-view-target-size);touch-action:none;z-index:1;outline:none;justify-content:center;align-items:center;display:flex;position:absolute;inset-block-start:0;inset-inline-start:calc(var(--splitter-position,0) * 1px - var(--split-view-target-size) / 2)}:host(:is([vertical],[stacked])) .separator{block-size:var(--split-view-target-size);cursor:row-resize;inline-size:100%;inset-block-start:calc(var(--splitter-position,0) * 1px - var(--split-view-target-size) / 2);inset-inline-start:0}.separator .divider{background-color:var(--luzmo-split-view-divider-color,var(--split-view-divider-color));block-size:100%;inline-size:var(--luzmo-split-view-divider-thickness,var(--split-view-divider-thickness));pointer-events:none}.separator .handle{background-color:var(--luzmo-split-view-divider-color,var(--split-view-handle-color));block-size:var(--split-view-handle-length);border-radius:var(--split-view-handle-radius);inline-size:var(--split-view-handle-thickness);pointer-events:none;display:none;position:absolute}:host([resizable]) .separator .handle{display:block}:host(:is([vertical],[stacked])) .separator .divider{block-size:var(--luzmo-split-view-divider-thickness,var(--split-view-divider-thickness));inline-size:100%}:host(:is([vertical],[stacked])) .separator .handle{block-size:var(--split-view-handle-thickness);inline-size:var(--split-view-handle-length)}:host(:not([vertical],[stacked])) .separator.start-edge{inset-inline-start:0}:host(:not([vertical],[stacked])) .separator.end-edge{inset-inline-start:calc(100% - var(--split-view-target-size))}.separator.start-edge .divider,.separator.end-edge .divider{position:absolute}:host(:not([vertical],[stacked])) .separator.start-edge .divider{inset-inline-start:0}:host(:not([vertical],[stacked])) .separator.start-edge .handle{inset-inline-start:calc(var(--split-view-focus-width) + var(--split-view-focus-offset))}:host(:not([vertical],[stacked])) .separator.end-edge .divider{inset-inline-end:0}:host(:not([vertical],[stacked])) .separator.end-edge .handle{inset-inline-end:calc(var(--split-view-focus-width) + var(--split-view-focus-offset))}:host(:is([vertical],[stacked])) .separator.start-edge{inset-block-start:0}:host(:is([vertical],[stacked])) .separator.end-edge{inset-block-start:calc(100% - var(--split-view-target-size))}:host(:is([vertical],[stacked])) .separator.start-edge .divider{inset-block-start:0}:host(:is([vertical],[stacked])) .separator.start-edge .handle{inset-block-start:calc(var(--split-view-focus-width) + var(--split-view-focus-offset))}:host(:is([vertical],[stacked])) .separator.end-edge .divider{inset-block-end:0}:host(:is([vertical],[stacked])) .separator.end-edge .handle{inset-block-end:calc(var(--split-view-focus-width) + var(--split-view-focus-offset))}:host([resizable]:not([disabled])) .separator:hover .divider,:host([resizable]:not([disabled])) .separator:hover .handle{background-color:var(--luzmo-split-view-divider-color-hover,var(--split-view-divider-color-hover))}:host([dragging]) .separator .divider,:host([dragging]) .separator .handle{background-color:var(--luzmo-split-view-divider-color-active,var(--split-view-divider-color-active))}.separator:focus-visible .divider{background-color:var(--luzmo-split-view-focus-color,var(--split-view-focus-color))}.separator:focus-visible .handle{outline:var(--split-view-focus-width) solid var(--luzmo-split-view-focus-color,var(--split-view-focus-color));outline-offset:var(--split-view-focus-offset)}:host(:not([resizable])) .separator,:host([disabled]) .separator{cursor:default}@media (forced-colors:active){:host{--highcontrast-split-view-divider-color:CanvasText;--highcontrast-split-view-focus-color:Highlight}.separator .divider,.separator .handle{background-color:var(--highcontrast-split-view-divider-color,var(--luzmo-split-view-divider-color,var(--split-view-divider-color)))}:host([resizable]:not([disabled])) .separator:hover .divider,:host([resizable]:not([disabled])) .separator:hover .handle,:host([dragging]) .separator .divider,:host([dragging]) .separator .handle{background-color:highlight}.separator:focus-visible .divider{background-color:var(--highcontrast-split-view-focus-color,var(--luzmo-split-view-focus-color,var(--split-view-focus-color)))}.separator:focus-visible .handle{outline-color:var(--highcontrast-split-view-focus-color,var(--luzmo-split-view-focus-color,var(--split-view-focus-color)))}}:host{--split-view-divider-color:var(--luzmo-border-color-full);--split-view-divider-color-hover:var(--luzmo-primary-hover);--split-view-divider-color-active:var(--luzmo-primary-down);--split-view-divider-thickness:var(--luzmo-border-width);--split-view-focus-color:var(--luzmo-primary-focus);--split-view-target-size:var(--luzmo-component-height-xs);--split-view-focus-offset:var(--luzmo-border-width);--split-view-focus-width:var(--luzmo-indicator-width,1px);--split-view-handle-color:var(--luzmo-font-color-extra-dimmed);--split-view-handle-length:var(--luzmo-component-height);--split-view-handle-thickness:var(--luzmo-spacing-2);--split-view-handle-radius:var(--luzmo-border-radius-full)}", h = 3840, g = 10, _ = 50, v = 50, y = 0, b = class extends t {
|
|
145
|
+
constructor(...e) {
|
|
146
|
+
super(...e), this.vertical = !1, this.collapsible = !1, this.label = "Resize panels", this.primarySize = "50%", this._primaryMin = 0, this._primaryMax = h, this._secondaryMin = 0, this._secondaryMax = h, this._stackBelow = 0, this._stacked = !1, this._resizable = !1, this._splitterPos = 0, this._viewSize = 0, this._minPos = 0, this._maxPos = 0, this._enoughChildren = !1, this._positionInitialized = !1, this._initialSplitterPosSupplied = !1, this._restorePositionOnReconnect = !1, this._dragChanged = !1, this._interaction = new r(this, { value: () => this.splitterPos }), this._panes = new l(this, { onChange: () => this.handleSlotChange() }), this._memory = new u(this);
|
|
147
|
+
}
|
|
148
|
+
static get styles() {
|
|
149
|
+
let e = super.styles;
|
|
150
|
+
return [...Array.isArray(e) ? e : e ? [e] : [], o(m)];
|
|
151
|
+
}
|
|
152
|
+
set resizable(e) {
|
|
153
|
+
let t = !!e;
|
|
154
|
+
if (t === this._resizable) return;
|
|
155
|
+
let n = this._resizable;
|
|
156
|
+
this._resizable = t, t || this._cancelDrag(), this.requestUpdate("resizable", n);
|
|
157
|
+
}
|
|
158
|
+
get resizable() {
|
|
159
|
+
return this._resizable;
|
|
160
|
+
}
|
|
161
|
+
set primaryMin(e) {
|
|
162
|
+
let t = this._normalizeBound(e, 0);
|
|
163
|
+
if (t === this._primaryMin) return;
|
|
164
|
+
let n = this._primaryMin;
|
|
165
|
+
this._primaryMin = t, this.requestUpdate("primaryMin", n);
|
|
166
|
+
}
|
|
167
|
+
get primaryMin() {
|
|
168
|
+
return this._primaryMin;
|
|
169
|
+
}
|
|
170
|
+
set primaryMax(e) {
|
|
171
|
+
let t = this._normalizeBound(e, h);
|
|
172
|
+
if (t === this._primaryMax) return;
|
|
173
|
+
let n = this._primaryMax;
|
|
174
|
+
this._primaryMax = t, this.requestUpdate("primaryMax", n);
|
|
175
|
+
}
|
|
176
|
+
get primaryMax() {
|
|
177
|
+
return this._primaryMax;
|
|
178
|
+
}
|
|
179
|
+
set secondaryMin(e) {
|
|
180
|
+
let t = this._normalizeBound(e, 0);
|
|
181
|
+
if (t === this._secondaryMin) return;
|
|
182
|
+
let n = this._secondaryMin;
|
|
183
|
+
this._secondaryMin = t, this.requestUpdate("secondaryMin", n);
|
|
184
|
+
}
|
|
185
|
+
get secondaryMin() {
|
|
186
|
+
return this._secondaryMin;
|
|
187
|
+
}
|
|
188
|
+
set secondaryMax(e) {
|
|
189
|
+
let t = this._normalizeBound(e, h);
|
|
190
|
+
if (t === this._secondaryMax) return;
|
|
191
|
+
let n = this._secondaryMax;
|
|
192
|
+
this._secondaryMax = t, this.requestUpdate("secondaryMax", n);
|
|
193
|
+
}
|
|
194
|
+
get secondaryMax() {
|
|
195
|
+
return this._secondaryMax;
|
|
196
|
+
}
|
|
197
|
+
set stackBelow(e) {
|
|
198
|
+
let t = this._normalizeBound(e, 0);
|
|
199
|
+
if (t === this._stackBelow) return;
|
|
200
|
+
let n = this._stackBelow;
|
|
201
|
+
this._stackBelow = t, this.requestUpdate("stackBelow", n);
|
|
202
|
+
}
|
|
203
|
+
get stackBelow() {
|
|
204
|
+
return this._stackBelow;
|
|
205
|
+
}
|
|
206
|
+
get stacked() {
|
|
207
|
+
return this._stacked;
|
|
208
|
+
}
|
|
209
|
+
set splitterPos(e) {
|
|
210
|
+
this._positionInitialized || (this._initialSplitterPosSupplied = !0);
|
|
211
|
+
let t = Number.isFinite(e) ? e : 0, n = this.collapsible && (t === 0 || t === this._viewSize), r = this._positionInitialized && !n ? this._clampPosition(t) : t;
|
|
212
|
+
if (r === this._splitterPos) return;
|
|
213
|
+
let i = this._splitterPos;
|
|
214
|
+
this._splitterPos = r, this.requestUpdate("splitterPos", i);
|
|
215
|
+
}
|
|
216
|
+
get splitterPos() {
|
|
217
|
+
return this._splitterPos;
|
|
218
|
+
}
|
|
219
|
+
get focusElement() {
|
|
220
|
+
return this._separator ?? this;
|
|
221
|
+
}
|
|
222
|
+
connectedCallback() {
|
|
223
|
+
this._positionInitialized || (this._initialSplitterPosSupplied = this._initialSplitterPosSupplied || this.hasAttribute("splitter-pos")), super.connectedCallback(), typeof ResizeObserver < "u" && (this._resizeObserver ??= new ResizeObserver(([e]) => {
|
|
224
|
+
this._observedInlineSize = e.contentBoxSize?.[0]?.inlineSize ?? e.contentRect.width, this._handleResize();
|
|
225
|
+
}), this._resizeObserver.observe(this)), this.updateComplete.then(() => {
|
|
226
|
+
this.isConnected && this.handleSlotChange();
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
disconnectedCallback() {
|
|
230
|
+
this._cancelDrag(!1), this._resizeObserver?.disconnect(), this._observedInlineSize = void 0, this._restorePositionOnReconnect = !0, this._clearControlledElementId(), this._controlledElement = void 0, super.disconnectedCallback();
|
|
231
|
+
}
|
|
232
|
+
get _orientation() {
|
|
233
|
+
return this.vertical || this._stacked ? "vertical" : "horizontal";
|
|
234
|
+
}
|
|
235
|
+
get _secondaryFixed() {
|
|
236
|
+
return !!this.secondarySize?.trim();
|
|
237
|
+
}
|
|
238
|
+
_normalizeBound(e, t) {
|
|
239
|
+
return Number.isFinite(e) && e >= 0 ? e : t;
|
|
240
|
+
}
|
|
241
|
+
_measureView() {
|
|
242
|
+
let e = this.getBoundingClientRect();
|
|
243
|
+
return this._orientation === "vertical" ? e.height : e.width;
|
|
244
|
+
}
|
|
245
|
+
_updateStacked() {
|
|
246
|
+
let e = this._observedInlineSize ?? this.getBoundingClientRect().width;
|
|
247
|
+
if (e <= 0) return !1;
|
|
248
|
+
let t = !this.vertical && p(e, this.stackBelow);
|
|
249
|
+
return t !== this._stacked && (this._stacked = t, this.toggleAttribute("stacked", t), this.requestUpdate(), !0);
|
|
250
|
+
}
|
|
251
|
+
_handleResize() {
|
|
252
|
+
this._panes.sync();
|
|
253
|
+
let e = this._updateStacked();
|
|
254
|
+
this._recalculate(e ? "remembered" : "current");
|
|
255
|
+
}
|
|
256
|
+
_calculateBounds() {
|
|
257
|
+
this._viewSize = this._measureView();
|
|
258
|
+
let e = d(this._viewSize, {
|
|
259
|
+
primaryMin: this.primaryMin,
|
|
260
|
+
primaryMax: this.primaryMax,
|
|
261
|
+
secondaryMin: this.secondaryMin,
|
|
262
|
+
secondaryMax: this.secondaryMax
|
|
263
|
+
});
|
|
264
|
+
this._minPos = e.min, this._maxPos = e.max;
|
|
265
|
+
}
|
|
266
|
+
_clampPosition(e) {
|
|
267
|
+
return f(e, {
|
|
268
|
+
min: this._minPos,
|
|
269
|
+
max: this._maxPos
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
_resolveInitialPosition() {
|
|
273
|
+
return this._secondaryFixed ? this._positionFromFixedSize(this._resolvePaneSize(this.secondarySize ?? "", this._panes.active[1])) : this._resolvePaneSize(this.primarySize, this._controlledElement);
|
|
274
|
+
}
|
|
275
|
+
_resolvePaneSize(e, t) {
|
|
276
|
+
let n = e.trim(), r = this._orientation === "vertical";
|
|
277
|
+
if (/^\d+(?:\.\d+)?(?:px)?$/.test(n)) return Number.parseFloat(n);
|
|
278
|
+
if (/^\d+(?:\.\d+)?%$/.test(n)) return Number.parseFloat(n) / 100 * this._viewSize;
|
|
279
|
+
if (n === "auto" && t) {
|
|
280
|
+
let e = Number.parseFloat(t.style.getPropertyValue(r ? "block-size" : "inline-size"));
|
|
281
|
+
if (Number.isFinite(e) && e > 0) return e;
|
|
282
|
+
let n = Number.parseFloat(getComputedStyle(t).getPropertyValue(r ? "height" : "width"));
|
|
283
|
+
if (Number.isFinite(n) && n > 0) return n;
|
|
284
|
+
let i = t.getBoundingClientRect(), a = r ? i.height : i.width;
|
|
285
|
+
if (Number.isFinite(a) && a > 0) return a;
|
|
286
|
+
}
|
|
287
|
+
return this._viewSize / 2;
|
|
288
|
+
}
|
|
289
|
+
_fixedSizeFromPosition(e) {
|
|
290
|
+
return this._secondaryFixed ? this._viewSize - e : e;
|
|
291
|
+
}
|
|
292
|
+
_positionFromFixedSize(e) {
|
|
293
|
+
return this._secondaryFixed ? this._viewSize - e : e;
|
|
294
|
+
}
|
|
295
|
+
_rememberPosition() {
|
|
296
|
+
this.splitterPos <= 0 || this.splitterPos >= this._viewSize || this._memory.remember(this._orientation, this._fixedSizeFromPosition(this.splitterPos));
|
|
297
|
+
}
|
|
298
|
+
_resolveRememberedPosition() {
|
|
299
|
+
let e = this._memory.rememberedSize(this._orientation);
|
|
300
|
+
return e === void 0 ? this._resolveInitialPosition() : this._positionFromFixedSize(e);
|
|
301
|
+
}
|
|
302
|
+
_applyPaneSizes() {
|
|
303
|
+
let [e, t] = this._panes.active, n = Math.round(this.splitterPos), r = Math.round(this._viewSize), i = `0 0 ${Math.round(this._fixedSizeFromPosition(n))}px`;
|
|
304
|
+
this._panes.write(() => {
|
|
305
|
+
e && (e.style.flex = this._secondaryFixed ? "1 1 0" : i, this._panes.applyDisplay(e, r > 0 && n <= 0)), t && (t.style.flex = this._secondaryFixed ? i : "1 1 0", this._panes.applyDisplay(t, r > 0 && n >= r));
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
_recalculate(e) {
|
|
309
|
+
let t = e === "current" ? this._pendingSource ?? e : e;
|
|
310
|
+
if (!this.isConnected || !this._enoughChildren || this._measureView() <= 0) {
|
|
311
|
+
t !== "current" && (this._pendingSource = t);
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
this._pendingSource = void 0;
|
|
315
|
+
let n = this._viewSize, r = this._viewOrientation, i = this._positionInitialized && this.collapsible && this.splitterPos === 0, a = this._positionInitialized && this.collapsible && n > 0 && this.splitterPos === n;
|
|
316
|
+
this._calculateBounds(), this._viewOrientation = this._orientation;
|
|
317
|
+
let o, s;
|
|
318
|
+
if (!this._positionInitialized) o = this._initialSplitterPosSupplied ? this.splitterPos : this._resolveInitialPosition(), this._positionInitialized = !0;
|
|
319
|
+
else if (t === "initial") o = this._resolveInitialPosition();
|
|
320
|
+
else if (t === "remembered") o = this._resolveRememberedPosition();
|
|
321
|
+
else if (i) o = 0;
|
|
322
|
+
else if (a) o = this._viewSize;
|
|
323
|
+
else if (this._secondaryFixed && n > 0 && r === this._orientation) {
|
|
324
|
+
let e = this._clampedSecondarySize;
|
|
325
|
+
s = e?.position === this.splitterPos ? e.size : n - this.splitterPos, o = this._clampPosition(this._viewSize - s);
|
|
326
|
+
} else o = this._clampPosition(this.splitterPos);
|
|
327
|
+
this.splitterPos = o, s ??= this._viewSize - o, this._clampedSecondarySize = this._secondaryFixed && this._viewSize - this.splitterPos !== s ? {
|
|
328
|
+
position: this.splitterPos,
|
|
329
|
+
size: s
|
|
330
|
+
} : void 0, this._applyPaneSizes();
|
|
331
|
+
}
|
|
332
|
+
_syncAriaControls() {
|
|
333
|
+
this._separator && this._controlledElement && (this._separator.ariaControlsElements = [this._controlledElement]);
|
|
334
|
+
}
|
|
335
|
+
_clearControlledElementId() {
|
|
336
|
+
this._controlledElement && this._controlledElement.id === this._controlledElementGeneratedId && this._controlledElement.removeAttribute("id"), this._controlledElementGeneratedId = void 0;
|
|
337
|
+
}
|
|
338
|
+
handleSlotChange() {
|
|
339
|
+
let e = (this._paneSlot?.assignedElements() ?? []).slice(0, 2);
|
|
340
|
+
this._panes.observe(e);
|
|
341
|
+
let t = e.filter((e) => this._panes.isShown(e)), n = this._panes.setActive(t), r = t[0];
|
|
342
|
+
r !== this._controlledElement && (this._clearControlledElementId(), this._controlledElement = r), this._controlledElement && !this._controlledElement.id && (y += 1, this._controlledElementGeneratedId = `luzmo-split-view-pane-${y}`, this._controlledElement.id = this._controlledElementGeneratedId);
|
|
343
|
+
let i = this._enoughChildren, a = t.length >= 2;
|
|
344
|
+
if (a !== this._enoughChildren && (this._enoughChildren = a, this.requestUpdate()), a) {
|
|
345
|
+
let e = !i || n && !this._restorePositionOnReconnect;
|
|
346
|
+
this._restorePositionOnReconnect = !1, this.updateComplete.then(() => {
|
|
347
|
+
let t = this._updateStacked();
|
|
348
|
+
this._recalculate(e || t ? "remembered" : "current"), this._syncAriaControls();
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
_dispatchValueEvent(e) {
|
|
353
|
+
this.dispatchEvent(new Event(e, {
|
|
354
|
+
bubbles: !0,
|
|
355
|
+
composed: !0
|
|
356
|
+
}));
|
|
357
|
+
}
|
|
358
|
+
_commitChange() {
|
|
359
|
+
this._rememberPosition(), this._dispatchValueEvent("change");
|
|
360
|
+
}
|
|
361
|
+
_setPosition(e, t = {}) {
|
|
362
|
+
let n = this._clampPosition(e);
|
|
363
|
+
return this.collapsible && t.collapse && (e <= 0 && (n = 0), e >= this._viewSize && (n = this._viewSize)), n !== this.splitterPos && (this.splitterPos > 0 && this.splitterPos < this._viewSize && this._memory.rememberExpanded(this._orientation, this.splitterPos), this.splitterPos = n, this._applyPaneSizes(), (t.emit ?? !0) && this._dispatchValueEvent("input"), !0);
|
|
364
|
+
}
|
|
365
|
+
handleKeydown(e) {
|
|
366
|
+
if (!this.resizable || this.disabled) return;
|
|
367
|
+
let t = this._orientation === "vertical", n;
|
|
368
|
+
switch (e.key) {
|
|
369
|
+
case "ArrowLeft":
|
|
370
|
+
t || (n = this.splitterPos + (this.isLTR ? -10 : g));
|
|
371
|
+
break;
|
|
372
|
+
case "ArrowRight":
|
|
373
|
+
t || (n = this.splitterPos + (this.isLTR ? g : -10));
|
|
374
|
+
break;
|
|
375
|
+
case "ArrowUp":
|
|
376
|
+
t && (n = this.splitterPos - g);
|
|
377
|
+
break;
|
|
378
|
+
case "ArrowDown":
|
|
379
|
+
t && (n = this.splitterPos + g);
|
|
380
|
+
break;
|
|
381
|
+
case "PageUp":
|
|
382
|
+
n = this.splitterPos + (t ? -50 : _);
|
|
383
|
+
break;
|
|
384
|
+
case "PageDown":
|
|
385
|
+
n = this.splitterPos + (t ? _ : -50);
|
|
386
|
+
break;
|
|
387
|
+
case "Home":
|
|
388
|
+
n = this.collapsible ? 0 : this._minPos;
|
|
389
|
+
break;
|
|
390
|
+
case "End":
|
|
391
|
+
n = this.collapsible ? this._viewSize : this._maxPos;
|
|
392
|
+
break;
|
|
393
|
+
case "Enter":
|
|
394
|
+
if (!this.collapsible) return;
|
|
395
|
+
n = this.splitterPos === 0 ? this._memory.lastExpandedPosition(this._orientation) ?? this._viewSize / 2 : 0;
|
|
396
|
+
break;
|
|
397
|
+
default: return;
|
|
398
|
+
}
|
|
399
|
+
n !== void 0 && (e.preventDefault(), this._interaction.keyDown(e.key) && (!this.resizable || this.disabled ? this._interaction.end() : this._setPosition(n, {
|
|
400
|
+
collapse: !0,
|
|
401
|
+
emit: !1
|
|
402
|
+
}) && this._interaction.commit(() => this._dispatchValueEvent("input"), () => this._commitChange())));
|
|
403
|
+
}
|
|
404
|
+
handleKeyup(e) {
|
|
405
|
+
this._interaction.keyUp(e.key);
|
|
406
|
+
}
|
|
407
|
+
handleFocusOut() {
|
|
408
|
+
this._interaction.endKeyboard();
|
|
409
|
+
}
|
|
410
|
+
_capturePointer(e, t) {
|
|
411
|
+
try {
|
|
412
|
+
e.setPointerCapture(t), this._capturedPointer = {
|
|
413
|
+
target: e,
|
|
414
|
+
pointerId: t
|
|
415
|
+
};
|
|
416
|
+
} catch {
|
|
417
|
+
this._capturedPointer = void 0;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
_releasePointer() {
|
|
421
|
+
let e = this._capturedPointer;
|
|
422
|
+
this._capturedPointer = void 0, e?.target.hasPointerCapture(e.pointerId) && e.target.releasePointerCapture(e.pointerId);
|
|
423
|
+
}
|
|
424
|
+
handlePointerDown(e) {
|
|
425
|
+
this.resizable && !this.disabled && e.button === 0 && this._dragStartPosition === void 0 && this._interaction.start(n(e)) && (!this.resizable || this.disabled ? this._interaction.end() : (this._dragPointerId = e.pointerId, this._snapshotDragStart(), this.toggleAttribute("dragging", !0), this._capturePointer(e.currentTarget, e.pointerId)));
|
|
426
|
+
}
|
|
427
|
+
_snapshotDragStart() {
|
|
428
|
+
this._dragStartPosition = this.splitterPos, this._memory.snapshotDragStart(this._orientation), this._dragChanged = !1;
|
|
429
|
+
}
|
|
430
|
+
_pointerPosition(e) {
|
|
431
|
+
let t = this.getBoundingClientRect();
|
|
432
|
+
return this._orientation === "vertical" ? e.clientY - t.top : this.isLTR ? e.clientX - t.left : t.right - e.clientX;
|
|
433
|
+
}
|
|
434
|
+
handlePointerMove(e) {
|
|
435
|
+
if (this._dragPointerId !== e.pointerId || this._dragStartPosition === void 0 || !this.resizable || this.disabled) return;
|
|
436
|
+
let t = this._pointerPosition(e);
|
|
437
|
+
this.collapsible && t < this._minPos - v && (t = 0), this.collapsible && t > this._maxPos + v && (t = this._viewSize), this._setPosition(t, { collapse: !0 }) && (this._dragChanged = !0);
|
|
438
|
+
}
|
|
439
|
+
_finishDrag() {
|
|
440
|
+
this._dragPointerId = void 0, this._releasePointer(), this._dragStartPosition = void 0, this._memory.clearDragStart(), this._dragChanged = !1, this.toggleAttribute("dragging", !1);
|
|
441
|
+
}
|
|
442
|
+
handlePointerUp(e) {
|
|
443
|
+
this._dragPointerId === e.pointerId && this._dragStartPosition !== void 0 && (this._releaseDrag(), this._interaction.end());
|
|
444
|
+
}
|
|
445
|
+
_releaseDrag() {
|
|
446
|
+
if (this._dragStartPosition === void 0) return;
|
|
447
|
+
let e = this._dragChanged;
|
|
448
|
+
this._finishDrag(), e && this._commitChange();
|
|
449
|
+
}
|
|
450
|
+
endInteraction() {
|
|
451
|
+
this._releaseDrag(), this._interaction.end();
|
|
452
|
+
}
|
|
453
|
+
_cancelDrag(e = !0) {
|
|
454
|
+
if (this._dragStartPosition === void 0) return;
|
|
455
|
+
let t = this._dragStartPosition, n = this._memory.dragStartMemory;
|
|
456
|
+
this._finishDrag(), e && (this._memory.restoreRememberedSizes(n), this._setPosition(n?.orientation === this._orientation ? t : this._resolveRememberedPosition(), { collapse: !0 }), this._memory.restoreLastExpandedPositions(n), this._interaction.cancel());
|
|
457
|
+
}
|
|
458
|
+
handlePointerCancel(e) {
|
|
459
|
+
this._dragPointerId === e.pointerId && this._cancelDrag();
|
|
460
|
+
}
|
|
461
|
+
render() {
|
|
462
|
+
return i`
|
|
463
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
464
|
+
${this._enoughChildren ? i`
|
|
465
|
+
<div
|
|
466
|
+
class="separator ${this.splitterPos <= 0 ? "start-edge" : this._viewSize > 0 && this.splitterPos >= this._viewSize ? "end-edge" : ""}"
|
|
467
|
+
role="separator"
|
|
468
|
+
aria-label=${this.label}
|
|
469
|
+
aria-disabled=${this.resizable ? this.disabled ? "true" : "false" : a}
|
|
470
|
+
aria-orientation=${this._orientation === "vertical" ? "horizontal" : "vertical"}
|
|
471
|
+
aria-valuemin=${this.resizable ? this._positionAsPercentage(this.collapsible ? 0 : this._minPos) : a}
|
|
472
|
+
aria-valuemax=${this.resizable ? this._positionAsPercentage(this.collapsible ? this._viewSize : this._maxPos) : a}
|
|
473
|
+
aria-valuenow=${this.resizable ? this._positionAsPercentage(this.splitterPos) : a}
|
|
474
|
+
tabindex=${this.resizable ? this.disabled ? "-1" : "0" : a}
|
|
475
|
+
style=${`--splitter-position: ${this.splitterPos}`}
|
|
476
|
+
@keydown=${this.handleKeydown}
|
|
477
|
+
@keyup=${this.handleKeyup}
|
|
478
|
+
@focusout=${this.handleFocusOut}
|
|
479
|
+
@pointerdown=${this.handlePointerDown}
|
|
480
|
+
@pointermove=${this.handlePointerMove}
|
|
481
|
+
@pointerup=${this.handlePointerUp}
|
|
482
|
+
@pointercancel=${this.handlePointerCancel}
|
|
483
|
+
@lostpointercapture=${this.handlePointerCancel}
|
|
484
|
+
>
|
|
485
|
+
<span class="divider" aria-hidden="true"></span>
|
|
486
|
+
<span class="handle" aria-hidden="true"></span>
|
|
487
|
+
</div>
|
|
488
|
+
` : a}
|
|
489
|
+
`;
|
|
490
|
+
}
|
|
491
|
+
_positionAsPercentage(e) {
|
|
492
|
+
return String(this._viewSize > 0 ? Math.round(e / this._viewSize * 100) : 0);
|
|
493
|
+
}
|
|
494
|
+
willUpdate(e) {
|
|
495
|
+
super.willUpdate(e), (e.has("vertical") || e.has("stackBelow")) && this._updateStacked() ? this._recalculate("remembered") : (e.has("vertical") || e.has("primaryMin") || e.has("primaryMax") || e.has("secondaryMin") || e.has("secondaryMax") || e.has("collapsible")) && this._recalculate("current"), (e.has("primarySize") || e.has("secondarySize")) && (this._memory.forget(), this._recalculate("initial"), this._dragStartPosition !== void 0 && this._snapshotDragStart());
|
|
496
|
+
}
|
|
497
|
+
updated(e) {
|
|
498
|
+
super.updated(e), this.hasAttribute("stacked") !== this._stacked && this.toggleAttribute("stacked", this._stacked), e.has("splitterPos") && this._applyPaneSizes(), this._syncAriaControls(), e.has("disabled") && this.disabled && this._cancelDrag();
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
// src/components/split-view/index.ts
|
|
502
|
+
e([s({
|
|
503
|
+
type: Boolean,
|
|
504
|
+
reflect: !0
|
|
505
|
+
})], b.prototype, "vertical", void 0), e([s({
|
|
506
|
+
type: Boolean,
|
|
507
|
+
reflect: !0
|
|
508
|
+
})], b.prototype, "resizable", null), e([s({
|
|
509
|
+
type: Boolean,
|
|
510
|
+
reflect: !0
|
|
511
|
+
})], b.prototype, "collapsible", void 0), e([s({
|
|
512
|
+
type: String,
|
|
513
|
+
reflect: !0
|
|
514
|
+
})], b.prototype, "label", void 0), e([s({
|
|
515
|
+
type: Number,
|
|
516
|
+
reflect: !0,
|
|
517
|
+
attribute: "primary-min"
|
|
518
|
+
})], b.prototype, "primaryMin", null), e([s({
|
|
519
|
+
type: Number,
|
|
520
|
+
reflect: !0,
|
|
521
|
+
attribute: "primary-max"
|
|
522
|
+
})], b.prototype, "primaryMax", null), e([s({
|
|
523
|
+
type: Number,
|
|
524
|
+
reflect: !0,
|
|
525
|
+
attribute: "secondary-min"
|
|
526
|
+
})], b.prototype, "secondaryMin", null), e([s({
|
|
527
|
+
type: Number,
|
|
528
|
+
reflect: !0,
|
|
529
|
+
attribute: "secondary-max"
|
|
530
|
+
})], b.prototype, "secondaryMax", null), e([s({
|
|
531
|
+
type: String,
|
|
532
|
+
reflect: !0,
|
|
533
|
+
attribute: "primary-size"
|
|
534
|
+
})], b.prototype, "primarySize", void 0), e([s({
|
|
535
|
+
type: String,
|
|
536
|
+
reflect: !0,
|
|
537
|
+
attribute: "secondary-size"
|
|
538
|
+
})], b.prototype, "secondarySize", void 0), e([s({
|
|
539
|
+
type: Number,
|
|
540
|
+
reflect: !0,
|
|
541
|
+
attribute: "stack-below"
|
|
542
|
+
})], b.prototype, "stackBelow", null), e([s({
|
|
543
|
+
type: Number,
|
|
544
|
+
reflect: !0,
|
|
545
|
+
attribute: "splitter-pos"
|
|
546
|
+
})], b.prototype, "splitterPos", null), e([c("slot")], b.prototype, "_paneSlot", void 0), e([c("[role=\"separator\"]")], b.prototype, "_separator", void 0), typeof customElements < "u" && !customElements.get("luzmo-split-view") && customElements.define("luzmo-split-view", b);
|
|
547
|
+
export { b as t };
|