@luzmo/lucero 2.5.0 → 2.5.2
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 -2
- package/components/{accordion-ciplqKwM.js → accordion-BJLsCC-2.js} +7 -8
- package/components/{accordion-BK0LfhmL.cjs → accordion-OQ0RoC_7.cjs} +1 -1
- package/components/action-bar/index.cjs +1 -1
- package/components/action-bar/index.js +1 -2
- package/components/{action-bar-BZBIeGo7.js → action-bar-B-Y-gJ8B.js} +9 -17
- package/components/{action-bar-DAqG_7VG.cjs → action-bar-Dyt2tyjr.cjs} +1 -1
- package/components/action-button/action-button.d.ts +3 -2
- package/components/action-button/index.cjs +1 -1
- package/components/action-button/index.js +1 -2
- package/components/action-button-BB3ZZFNN.js +136 -0
- package/components/action-button-CL4ZlryE.cjs +22 -0
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -2
- package/components/{action-group-oo7YV0EW.cjs → action-group-Doll-3Bf.cjs} +1 -1
- package/components/{action-group-DSiruuF0.js → action-group-HECoPCas.js} +7 -9
- package/components/action-menu/action-menu.d.ts +16 -1
- package/components/action-menu/index.cjs +1 -1
- package/components/action-menu/index.d.ts +1 -0
- package/components/action-menu/index.js +1 -2
- package/components/action-menu-BW-XpCVO.cjs +58 -0
- package/components/{action-menu-D1hTsg9A.js → action-menu-LnXQ7reF.js} +47 -31
- package/components/avatar/index.cjs +1 -1
- package/components/avatar/index.js +1 -2
- package/components/{avatar-CwSyYAKV.js → avatar-CVRQDsx6.js} +7 -9
- package/components/{avatar-DHS5UGTJ.cjs → avatar-DFzJbtId.cjs} +1 -1
- package/components/badge/index.cjs +1 -1
- package/components/badge/index.js +1 -2
- package/components/badge-BSfzmBRf.js +94 -0
- package/components/badge-DzElGOcl.cjs +23 -0
- package/components/button/index.cjs +1 -1
- package/components/button/index.js +2 -2
- package/components/button-BGEWdRbY.cjs +20 -0
- package/components/button-CpaltgRZ.js +125 -0
- package/components/{button-base-DiPzVpp4.js → button-base-BzakIKd0.js} +12 -35
- package/components/{button-base-DiNxrttk.cjs → button-base-CpK2ktvQ.cjs} +3 -3
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +1 -2
- package/components/{button-group-Du7R4SxZ.cjs → button-group-C23OtGC0.cjs} +1 -1
- package/components/{button-group-Duf-Igst.js → button-group-DMsT6N0P.js} +4 -6
- package/components/calendar/index.cjs +1 -1
- package/components/calendar/index.js +1 -2
- package/components/{calendar-pQxEWdYC.cjs → calendar-BqyGW8gU.cjs} +3 -3
- package/components/{calendar-D1UtHvpY.js → calendar-D4x5gp_0.js} +14 -33
- package/components/chat-message/index.cjs +1 -1
- package/components/chat-message/index.js +1 -2
- package/components/{chat-message-D6U-sprD.js → chat-message-5gP_qbiz.js} +665 -654
- package/components/chat-message-Dn5GKsSD.cjs +148 -0
- package/components/chat-message-group/index.cjs +1 -1
- package/components/chat-message-group/index.js +1 -2
- package/components/{chat-message-group-k9lo-ZqD.js → chat-message-group-Bp4mshBY.js} +18 -18
- package/components/{chat-message-group-CvxdX3jt.cjs → chat-message-group-CJddlS85.cjs} +1 -1
- package/components/checkbox/index.cjs +1 -1
- package/components/checkbox/index.js +1 -2
- package/components/checkbox-CVi4GMoo.cjs +25 -0
- package/components/{checkbox-CydI9yXG.js → checkbox-CvRvgRzh.js} +7 -13
- package/components/{checkbox-mixin-jqmrh48O.js → checkbox-mixin-BIuvxtEt.js} +2 -3
- package/components/{checkbox-mixin-rFRXqyrK.cjs → checkbox-mixin-DAdnTm-F.cjs} +1 -1
- package/components/{close-button-Dlvtf9lB.js → close-button-7zS6PUzh.js} +5 -6
- package/components/{close-button-BAELImQY.cjs → close-button-B06i2hJn.cjs} +1 -1
- package/components/color-area/index.cjs +1 -1
- package/components/color-area/index.js +1 -2
- package/components/{color-area-CmKlQG1i.cjs → color-area-D1fRozE0.cjs} +1 -1
- package/components/{color-area-lbg8wwZG.js → color-area-qlEAp8ZN.js} +10 -20
- package/components/color-controller-BpdydwTO.cjs +18 -0
- package/components/{color-controller-Rg_Zl0sT.js → color-controller-CauSxC_r.js} +1 -2
- package/components/color-field/index.cjs +1 -1
- package/components/color-field/index.js +1 -2
- package/components/{color-field-BH9x46k_.cjs → color-field-CN8shDl_.cjs} +1 -1
- package/components/{color-field-C9S-Fv46.js → color-field-CVyDNZ4b.js} +5 -7
- package/components/color-handle/index.cjs +1 -1
- package/components/color-handle/index.js +1 -2
- package/components/{color-handle-2iFLp9FN.cjs → color-handle-BE0Z1gTU.cjs} +1 -1
- package/components/{color-handle-BEDQ1RcS.js → color-handle-Dc0uLgkf.js} +4 -6
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +1 -2
- package/components/{color-loupe-6NcLbFco.cjs → color-loupe-2X1bCYU9.cjs} +1 -1
- package/components/{color-loupe-CqHyyvjQ.js → color-loupe-Bu37Uwk6.js} +3 -5
- package/components/color-menu/index.cjs +1 -1
- package/components/color-menu/index.js +1 -2
- package/components/{color-menu-qJK_clDq.js → color-menu-BxFQnH79.js} +12 -14
- package/components/{color-menu-BYTgxLQG.cjs → color-menu-Cus3S-Re.cjs} +1 -1
- package/components/color-palette/index.cjs +1 -1
- package/components/color-palette/index.js +1 -2
- package/components/{color-palette-x6W09EBL.cjs → color-palette-D5NZDz5I.cjs} +1 -1
- package/components/{color-palette-CqiO5ohz.js → color-palette-UU7Feiwh.js} +7 -8
- package/components/color-palette-group/index.cjs +1 -1
- package/components/color-palette-group/index.js +1 -2
- package/components/{color-palette-group-zByrO_qb.js → color-palette-group-CwmC9iR1.js} +5 -7
- package/components/{color-palette-group-D4k_7pW6.cjs → color-palette-group-DhGh0Db8.cjs} +1 -1
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.js +1 -2
- package/components/{color-picker-BAikpqUT.cjs → color-picker-BTT1O-76.cjs} +1 -1
- package/components/{color-picker-CSuAPo5X.js → color-picker-orFSIqoZ.js} +9 -11
- package/components/color-slider/index.cjs +1 -1
- package/components/color-slider/index.js +1 -2
- package/components/{color-slider-CMW8gJ0Z.cjs → color-slider-9Ck28Qdk.cjs} +1 -1
- package/components/{color-slider-0JzdSRTy.js → color-slider-X1EArAnx.js} +8 -14
- package/components/{condition-attribute-with-id-BdnTdWKz.js → condition-attribute-with-id-v1wjKZc3.js} +1 -2
- package/components/date-range-picker/index.cjs +1 -1
- package/components/date-range-picker/index.js +1 -2
- package/components/{date-range-picker-DKVmGpUC.js → date-range-picker-CoCz3uDz.js} +28 -29
- package/components/{date-range-picker-D149LIGC.cjs → date-range-picker-DyJdcFiA.cjs} +3 -3
- package/components/date-time-picker/index.cjs +1 -1
- package/components/date-time-picker/index.js +1 -2
- package/components/{date-time-picker-CRpvRk9T.cjs → date-time-picker-CEEeMXGn.cjs} +3 -3
- package/components/{date-time-picker-6c19YzwF.js → date-time-picker-CsgO17tA.js} +23 -36
- package/components/{decorate-CkCg3wfh.js → decorate-CpKsOs9z.js} +18 -19
- package/components/{decorate-Dq34MBGe.cjs → decorate-SO02l0A6.cjs} +1 -1
- package/components/{dependency-manger-wHEXoU92.js → dependency-manger-BneVBZQi.js} +1 -2
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +1 -2
- package/components/{divider-Cz5nyvP9.js → divider-Bt0NIqfu.js} +5 -7
- package/components/{divider-BcE8D-pH.cjs → divider-fWGUxO6A.cjs} +1 -1
- package/components/{divider.module-CPEKsaqR.js → divider.module-B_GRUJ4d.js} +1 -2
- package/components/{element-resolution-gap51AVo.js → element-resolution-BYvcpZwK.js} +1 -2
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +2 -3
- package/components/{field-group-Dd5xYczm.cjs → field-group-B8mhEhNJ.cjs} +1 -1
- package/components/{field-group-C_kRq7pJ.js → field-group-CdDcdMO1.js} +3 -4
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -2
- package/components/{field-label-C0vfY1b6.cjs → field-label-B3IsGUTv.cjs} +2 -2
- package/components/{field-label-C28wWqC5.js → field-label-DOUnHwwh.js} +9 -15
- package/components/focus-group-C0ncbmUD.cjs +18 -0
- package/components/{focus-group-DVPa1zxz.js → focus-group-lQqPbdDl.js} +5 -7
- package/components/{focus-visible-DNHNlrty.cjs → focus-visible-BQAhwoxi.cjs} +1 -1
- package/components/{focus-visible-Bt2uDmuM.js → focus-visible-D6TRtUd7.js} +2 -3
- package/components/focusable-BIHTrJd6.cjs +18 -0
- package/components/{focusable-selectors-BWpiuXz5.js → focusable-selectors-BDNeWxbe.js} +1 -2
- package/components/{focusable-DuP0-Kuy.js → focusable-xjv79E40.js} +9 -17
- package/components/{get-label-from-slot-Bo9mqYCZ.js → get-label-from-slot-Bw5crGFw.js} +1 -2
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +1 -2
- package/components/{icon-zOPAWCdx.cjs → icon-BlbMP3mJ.cjs} +1 -1
- package/components/{icon-CsJZMhIm.js → icon-DADJww_a.js} +4 -7
- 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 -2
- package/components/{infield-button-DiE8R6ol.js → infield-button-CeE_JxR6.js} +5 -7
- package/components/{infield-button-kilVRjwB.cjs → infield-button-uD1GqTLW.cjs} +1 -1
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +1 -2
- package/components/{label-e6Y13vrS.js → label-D1v4e6mN.js} +3 -5
- package/components/{label-B3zs6OX0.cjs → label-uuwIy_Ge.cjs} +1 -1
- package/components/{language-resolution-BaKYDD1a.js → language-resolution-7rc0khIK.js} +3 -4
- package/components/{language-resolution-CSjktYg5.cjs → language-resolution-B7D3hQ6_.cjs} +1 -1
- package/components/{like-anchor-DXCaEv7O.js → like-anchor-DcFv8rEo.js} +2 -3
- package/components/{like-anchor-BX4PSB3d.cjs → like-anchor-De9STeWr.cjs} +1 -1
- package/components/{manage-help-text-ByLb0QYX.js → manage-help-text-CFUaqINN.js} +4 -6
- package/components/{match-media-C5X2OZiD.js → match-media-UNh23w4s.js} +1 -2
- package/components/menu/index.cjs +1 -1
- package/components/menu/index.js +1 -2
- package/components/menu-BKwt6rnv.cjs +108 -0
- package/components/{menu-fdJseu1y.js → menu-L5qYivn6.js} +43 -67
- package/components/multi-language-field/index.cjs +1 -1
- package/components/multi-language-field/index.js +1 -2
- package/components/{multi-language-field-vJMK-osi.js → multi-language-field-NY2XwK2M.js} +6 -8
- package/components/{multi-language-field-BndVikur.cjs → multi-language-field-djoM4Okc.cjs} +1 -1
- package/components/notice/index.cjs +1 -1
- package/components/notice/index.js +1 -2
- package/components/{notice-N0-lxEf_.js → notice-CrLVNmqL.js} +6 -8
- package/components/{notice-CsWaqcq3.cjs → notice-f0p0TiGw.cjs} +1 -1
- package/components/number-field/index.cjs +1 -1
- package/components/number-field/index.js +1 -2
- package/components/{number-field-xxXgR70l.cjs → number-field-Ceeli_mh.cjs} +2 -2
- package/components/{number-field-DAOy_AvQ.js → number-field-D9UqpqpW.js} +12 -20
- package/components/{observe-slot-presence-BKY6n06-.js → observe-slot-presence-t2N_C6Ud.js} +1 -2
- package/components/{observe-slot-text-CvL-2ey3.cjs → observe-slot-text-BqwCIv2a.cjs} +1 -1
- package/components/{observe-slot-text-Db8Kx3P-.js → observe-slot-text-Dzkb_VqN.js} +2 -3
- package/components/options/index.cjs +1 -1
- package/components/options/index.js +1 -2
- package/components/{options-D_ifU0DH.js → options-BHDesKbF.js} +20 -31
- package/components/{options-CP9V2CSJ.cjs → options-Dk1uFeUT.cjs} +5 -5
- package/components/overlay/index.cjs +1 -1
- package/components/overlay/index.js +2 -2
- package/components/overlay-DAOyrYJL.cjs +102 -0
- package/components/{overlay-DpHIYJtd.js → overlay-D_Xfq92b.js} +62 -118
- package/components/{pending-state-CGHvTtKR.cjs → pending-state-A6NrvaQj.cjs} +1 -1
- package/components/{pending-state-D_b45qvi.js → pending-state-BuYmUP6G.js} +2 -3
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -3
- package/components/{picker-uKcRswTQ.js → picker-C5eX5WBl.js} +25 -41
- package/components/picker-CQCAt4Mx.cjs +124 -0
- package/components/picker-button/index.cjs +1 -1
- package/components/picker-button/index.js +1 -2
- package/components/{picker-button-B8Jbf9jK.cjs → picker-button-BWDfzx38.cjs} +2 -2
- package/components/{picker-button-CJQJshbo.js → picker-button-BhfY9gyk.js} +11 -12
- package/components/{platform-Ce9pNsR9.js → platform-CDW-WdXN.js} +1 -2
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -2
- package/components/{popover-BsdqkvKI.cjs → popover-CFzz83f8.cjs} +1 -1
- package/components/{popover-DC8tkee-.js → popover-CWrRLzOL.js} +4 -6
- package/components/progress-bar/index.cjs +1 -1
- package/components/progress-bar/index.js +1 -2
- package/components/{progress-bar-CrodWzcc.cjs → progress-bar-9Qg0PYAq.cjs} +2 -2
- package/components/{progress-bar-D4iFHkp7.js → progress-bar-D6wIZV5l.js} +16 -22
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -2
- package/components/{progress-circle-bO_VAX3N.cjs → progress-circle-C_9UZs2Y.cjs} +1 -1
- package/components/{progress-circle-By6qUQYe.js → progress-circle-DcGKwBTC.js} +5 -7
- package/components/progress-steps/index.cjs +1 -1
- package/components/progress-steps/index.js +1 -2
- package/components/progress-steps/progress-steps-model.d.ts +5 -0
- package/components/progress-steps/progress-steps.d.ts +4 -8
- package/components/progress-steps-5MhpnGKv.cjs +98 -0
- package/components/{progress-steps-BvCzsq9Z.js → progress-steps-Byem5ieS.js} +43 -54
- package/components/prompt-box/index.cjs +1 -1
- package/components/prompt-box/index.js +1 -2
- package/components/{prompt-box-Cz_m2wso.js → prompt-box-CrtFGmjm.js} +80 -112
- package/components/{prompt-box-sp9_-Hnx.cjs → prompt-box-D7owyhfG.cjs} +15 -15
- package/components/question-box/index.cjs +1 -1
- package/components/question-box/index.js +1 -2
- package/components/{question-box-Bcm-P-UV.js → question-box-BJYYLghb.js} +40 -86
- package/components/{question-box-DZnuGMBB.cjs → question-box-ym1eakXA.cjs} +3 -3
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.js +1 -2
- package/components/{radio-B6hX9Klr.js → radio-CyxICbLM.js} +9 -15
- package/components/{radio-CRTfoEX_.cjs → radio-Dd-GgUMm.cjs} +2 -2
- package/components/{random-id-CiMDyX7v.js → random-id-CO3s9i3n.js} +1 -2
- package/components/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/components/{roving-tabindex-pomAn3z-.js → roving-tabindex-BKMkfzY0.js} +2 -3
- package/components/{roving-tabindex-BoPao4td.cjs → roving-tabindex-BUFR8hPH.cjs} +1 -1
- package/components/{scaled-indicator-C-TupV4L.js → scaled-indicator-CsfzvTDr.js} +1 -2
- package/components/search/index.cjs +1 -1
- package/components/search/index.js +1 -2
- package/components/{search-DEjLSJ96.js → search-C5uFmm6S.js} +7 -9
- package/components/{search-PxJEuwHt.cjs → search-DiCwSHFf.cjs} +1 -1
- package/components/segments-factory-BFgL5o9K.cjs +18 -0
- package/components/{segments-factory-BCRi1NKb.js → segments-factory-B_IBjpdp.js} +5 -12
- package/components/select/index.cjs +1 -1
- package/components/select/index.js +1 -2
- package/components/{select-CKMCEJf7.cjs → select-2Fvb7tpj.cjs} +6 -6
- package/components/{select-B86uAHme.js → select-HqF3tcHz.js} +31 -56
- package/components/{sized-mixin-DzQTebN-.js → sized-mixin-BmxIAuoH.js} +2 -3
- package/components/{sized-mixin-BT7cv-fT.cjs → sized-mixin-CSajkMro.cjs} +1 -1
- package/components/skeleton-loader/index.cjs +1 -1
- package/components/skeleton-loader/index.js +1 -2
- package/components/{skeleton-loader-CNcwCh4V.cjs → skeleton-loader-CEca0cqz.cjs} +1 -1
- package/components/{skeleton-loader-BeCsYADg.js → skeleton-loader-tin9y3xc.js} +3 -5
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +1 -2
- package/components/{slider-C_8pSK4N.cjs → slider-C1AdDTfB.cjs} +2 -2
- package/components/{slider-Bsl8Xrme.js → slider-Ch7OgTdj.js} +13 -26
- package/components/{slottable-request-event-MRSZbgTu.js → slottable-request-event-24jJOhbh.js} +1 -2
- package/components/split-view/index.cjs +1 -1
- package/components/split-view/index.js +1 -2
- package/components/{split-view-CDwHDmII.js → split-view-DDwpoN2O.js} +8 -11
- package/components/{split-view-BwCFYey6.cjs → split-view-DNVlr5VD.cjs} +1 -1
- package/components/status-light/index.cjs +1 -1
- package/components/status-light/index.js +1 -2
- package/components/status-light-Do6z53mM.cjs +21 -0
- package/components/{status-light-DwUnjE3t.js → status-light-DqHhhZed.js} +6 -8
- package/components/strategies-C6hzAW86.cjs +18 -0
- package/components/{strategies-COS7mShJ.js → strategies-DgPG-vNk.js} +6 -13
- package/components/{streaming-listener-CtcMpYfS.js → streaming-listener-B6mDl4pZ.js} +1 -2
- package/components/swatch/index.cjs +1 -1
- package/components/swatch/index.js +1 -2
- package/components/{swatch-Bj2FARl1.js → swatch-BBVsuSAV.js} +25 -44
- package/components/{swatch-CQ0inIHK.cjs → swatch-DiNMN-SZ.cjs} +3 -3
- package/components/switch/index.cjs +1 -1
- package/components/switch/index.js +1 -2
- package/components/{switch-CpG-hSWY.js → switch-BBtewLDD.js} +6 -8
- package/components/{switch-qwpYXVnO.cjs → switch-DMhCYTgq.cjs} +1 -1
- package/components/table/index.cjs +1 -1
- package/components/table/index.js +1 -2
- package/components/table-CLMLGloR.cjs +180 -0
- package/components/{table-B75GjBhD.js → table-DlOWqm5C.js} +217 -264
- package/components/tabs/index.cjs +1 -1
- package/components/tabs/index.js +1 -2
- package/components/{tabs-DxOD4QNt.cjs → tabs-B0WHKMuF.cjs} +2 -2
- package/components/{tabs-BD_ATrBg.js → tabs-Dkt0B_-A.js} +17 -22
- package/components/tags/index.cjs +1 -1
- package/components/tags/index.js +1 -2
- package/components/tags-Be4yrNPw.js +206 -0
- package/components/tags-CHDNXpxh.cjs +47 -0
- package/components/template-property-Bks4Db5C.js +46 -0
- package/components/template-property-yhcAmPXk.cjs +18 -0
- package/components/text-field/index.cjs +1 -1
- package/components/text-field/index.js +2 -2
- package/components/{text-field-3fDtTQkR.cjs → text-field-BVl-HWzb.cjs} +1 -1
- package/components/{text-field-CmyqQxq0.js → text-field-D49lAD7L.js} +4 -5
- package/components/{text-field-CbN4nydd.cjs → text-field-DCcOZSvY.cjs} +1 -1
- package/components/{text-field-CmSym2QK.js → text-field-DpvP_tCP.js} +7 -10
- package/components/{text-field.module-BHhBReKL.js → text-field.module-hEHhPVFf.js} +1 -2
- package/components/toast/index.cjs +1 -1
- package/components/toast/index.js +1 -2
- package/components/{toast-DRrGgznK.cjs → toast-B6yesIcI.cjs} +1 -1
- package/components/{toast-KwHx-agn.js → toast-CXZUVaYz.js} +5 -7
- package/components/tokens.js +1 -2
- package/components/tooltip/index.cjs +1 -1
- package/components/tooltip/index.js +1 -2
- package/components/{tooltip-DjOW52n2.cjs → tooltip-BE01O3Sg.cjs} +1 -1
- package/components/{tooltip-xTa9Q5JW.js → tooltip-g2jd5Wsv.js} +19 -24
- package/components/top-nav/index.cjs +1 -1
- package/components/top-nav/index.js +1 -2
- package/components/{top-nav-81IKEGjR.cjs → top-nav-B0E1K_zf.cjs} +1 -1
- package/components/{top-nav-CXjnpdFR.js → top-nav-DiUCsUpZ.js} +9 -11
- package/components/utils.cjs +1 -1
- package/components/utils.js +9 -8
- package/components/{voice-recorder-CTg3kRxx.js → voice-recorder-BXY_l_78.js} +1 -2
- package/custom-elements.json +1 -1
- package/package.json +1 -1
- package/standalone/accordion.js +6 -2
- package/standalone/action-bar.js +1 -1
- package/standalone/action-button.js +1 -1
- package/standalone/action-group.js +1 -1
- package/standalone/action-menu.js +5 -3
- package/standalone/avatar.js +1 -1
- 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 +1 -1
- package/standalone/chat-message.js +31 -31
- package/standalone/checkbox.js +1 -1
- package/standalone/chunks/NumberFormatter-COykocAS.js +2 -0
- package/standalone/chunks/NumberParser--1Rm0Yk7.js +2 -0
- package/standalone/chunks/action-button-0d4u0dWv.js +6 -0
- package/standalone/chunks/{action-group-DTxf-0tP.js → action-group-DlClwXLO.js} +5 -1
- package/standalone/chunks/async-directive-ByLzVnWY.js +2 -0
- package/standalone/chunks/async-directive-DNgXlN7F.js +2 -0
- package/standalone/chunks/badge-DPFbBRCY.js +7 -0
- package/standalone/chunks/{button-Q1n9DH9a.js → button-Bgc3zdEa.js} +1 -1
- package/standalone/chunks/button-BhSe7abg.js +4 -0
- package/standalone/chunks/button-base-DLYrzCSm.js +9 -0
- package/standalone/chunks/calendar-BxARYymw.js +122 -0
- package/standalone/chunks/checkbox-Cl6YBcGA.js +9 -0
- package/standalone/chunks/{checkbox-mixin-BAQWmwps.js → checkbox-mixin-HnfmivU3.js} +1 -1
- package/standalone/chunks/class-map-E9JVium5.js +2 -0
- package/standalone/chunks/{clear-button-3zpCVxG5.js → clear-button-B4r_oxfc.js} +1 -1
- package/standalone/chunks/{close-button-C96dazyi.js → close-button-DVCeu3_f.js} +1 -1
- package/standalone/chunks/{color-area-Cj8oPsIF.js → color-area-BCI2oMGd.js} +3 -1
- package/standalone/chunks/color-controller-BlFueK6Y.js +2 -0
- package/standalone/chunks/{color-field-BFvUGE4L.js → color-field-BaVvupq0.js} +1 -1
- package/standalone/chunks/{color-handle-BHrAxEG2.js → color-handle-BLQiuRSS.js} +1 -1
- package/standalone/chunks/{color-loupe-C34cms5t.js → color-loupe-_dC69K1Z.js} +1 -1
- package/standalone/chunks/{color-menu-BIKuitbH.js → color-menu-BDZh85nX.js} +1 -1
- package/standalone/chunks/color-slider-Bipcekrc.js +49 -0
- package/standalone/chunks/{directive-helpers-Bu8icI7Y.js → directive-helpers-DM8VtBpR.js} +1 -1
- package/standalone/chunks/{divider-Bf9Drp2z.js → divider-vAjIOfo1.js} +1 -1
- package/standalone/chunks/{field-group-D8EjgC6F.js → field-group-C1oDgW9m.js} +1 -1
- package/standalone/chunks/{field-label-VWHDlW9_.js → field-label-Djcst_hn.js} +2 -2
- package/standalone/chunks/flow-CL5kBpdV.js +2 -0
- package/standalone/chunks/focus-group-xdTxdfaB.js +4 -0
- package/standalone/chunks/{icon-BypO7M7G.js → icon-6P1RsbD1.js} +1 -1
- package/standalone/chunks/{infield-button-D03MpU_s.js → infield-button-B8EkjwP9.js} +1 -1
- package/standalone/chunks/keyed-DYJaQjip.js +2 -0
- package/standalone/chunks/{language-resolution-BWHk9A73.js → language-resolution-BwIkGyuH.js} +1 -1
- package/standalone/chunks/lit-DWANyjiY.js +3 -0
- package/standalone/chunks/lucero-runtime-DMlHjBe_.js +18 -0
- package/standalone/chunks/{luzmo-icons-B-pCv-xg.js → luzmo-icons-vtQE0BSI.js} +1 -1
- package/standalone/chunks/{manage-help-text-Cl9OJ2xf.js → manage-help-text-DO3PkWgh.js} +1 -1
- package/standalone/chunks/menu-CefrRBIS.js +100 -0
- package/standalone/chunks/{number-field-B6BDXkL7.js → number-field-Dc4nBa6l.js} +2 -2
- package/standalone/chunks/observe-slot-presence-BxmG6A0m.js +2 -0
- package/standalone/chunks/options-rb_zaAJ6.js +89 -0
- package/standalone/chunks/overlay-CgQMEmrM.js +122 -0
- package/standalone/chunks/{pending-state-DxeRqe6Q.js → pending-state-DnTXKvtm.js} +1 -1
- package/standalone/chunks/picker-HoERLlkx.js +108 -0
- package/standalone/chunks/{picker-button-BZWqDoNQ.js → picker-button-DbamPU-T.js} +2 -2
- package/standalone/chunks/platform-wNs7qaiE.js +10 -0
- package/standalone/chunks/{popover-BsB3dmQe.js → popover-Ca-FBqiU.js} +1 -1
- package/standalone/chunks/{progress-circle-CEx1b5Sv.js → progress-circle-CFtVq9Ou.js} +1 -1
- package/standalone/chunks/property-BsDbx7Z2.js +2 -0
- package/standalone/chunks/{radio-2vHhfmHw.js → radio-BJ3RhyUD.js} +2 -2
- package/standalone/chunks/random-id-0GBXy8EY.js +2 -0
- package/standalone/chunks/repeat-CtNle5_O.js +2 -0
- package/standalone/chunks/{roving-tabindex-CB4xC55P.js → roving-tabindex-CivopiNn.js} +1 -1
- package/standalone/chunks/scaled-indicator-Do5uhz24.js +10 -0
- package/standalone/chunks/segments-factory-B6oGyosS.js +2 -0
- package/standalone/chunks/{skeleton-loader-BxYcRRJr.js → skeleton-loader-CymPdQl3.js} +1 -1
- package/standalone/chunks/strategies-yujlVHBS.js +4 -0
- package/standalone/chunks/streaming-listener-DbMoHlSj.js +8 -0
- package/standalone/chunks/style-map-DmBaq1-c.js +2 -0
- package/standalone/chunks/{swatch-CGR_GWqO.js → swatch-DivHeYOK.js} +4 -4
- package/standalone/chunks/template-property-CyrkVY0Q.js +2 -0
- package/standalone/chunks/{text-field-4OKvLOXG.js → text-field-D5ncaa2n.js} +1 -1
- package/standalone/chunks/{text-field-C2oROxum.js → text-field-DXzpM1Qn.js} +1 -1
- package/standalone/chunks/{tooltip-DB6jRVyB.js → tooltip-B-j8PrNl.js} +13 -1
- package/standalone/chunks/{unsafe-html-BPQaWy0v.js → unsafe-html-BeDipvu3.js} +1 -1
- 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 +1 -1
- package/standalone/color-palette.js +1 -1
- package/standalone/color-picker.js +1 -1
- package/standalone/color-slider.js +1 -1
- package/standalone/date-range-picker.js +3 -3
- package/standalone/date-time-picker.js +3 -3
- 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 +65 -65
- package/standalone/menu.js +1 -1
- package/standalone/multi-language-field.js +1 -1
- package/standalone/notice.js +1 -1
- package/standalone/number-field.js +1 -1
- package/standalone/options.js +1 -1
- package/standalone/overlay.js +1 -1
- 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 +10 -10
- package/standalone/prompt-box.js +17 -17
- package/standalone/question-box.js +3 -3
- package/standalone/radio.js +1 -1
- package/standalone/search.js +1 -1
- package/standalone/select.js +6 -6
- package/standalone/skeleton-loader.js +1 -1
- package/standalone/slider.js +2 -2
- package/standalone/split-view.js +1 -1
- package/standalone/status-light.js +1 -1
- package/standalone/swatch.js +1 -1
- package/standalone/switch.js +1 -1
- package/standalone/table.js +32 -32
- package/standalone/tabs.js +2 -2
- package/standalone/tags.js +1 -1
- package/standalone/text-field.js +1 -1
- package/standalone/toast.js +1 -1
- package/standalone/tooltip.js +1 -1
- package/standalone/top-nav.js +1 -1
- package/standalone/utils.js +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/template-property.d.ts +13 -0
- package/components/action-button-BRijXjEz.js +0 -138
- package/components/action-button-CX1uYbQp.cjs +0 -22
- package/components/action-menu-BNZWjeDd.cjs +0 -56
- package/components/badge-D2Hjf-Ww.js +0 -96
- package/components/badge-D8pIDEoq.cjs +0 -23
- package/components/button-Bvnidb4x.cjs +0 -20
- package/components/button-DIV_j_U3.js +0 -126
- package/components/chat-message-BDfomRm-.cjs +0 -148
- package/components/checkbox-JCvBro0K.cjs +0 -25
- package/components/color-controller-DbyPc33Y.cjs +0 -18
- package/components/focus-group-C8lOjbi9.cjs +0 -18
- package/components/focusable-B6h03pAe.cjs +0 -18
- package/components/menu-CrhA2iPZ.cjs +0 -108
- package/components/overlay-Dn7EbA_W.cjs +0 -102
- package/components/picker-COeWCv60.cjs +0 -124
- package/components/progress-steps-CvdQQwHc.cjs +0 -98
- package/components/segments-factory-DtPyN5sh.cjs +0 -18
- package/components/status-light-D3hdx8Pd.cjs +0 -21
- package/components/strategies-Bb7zEjrU.cjs +0 -18
- package/components/table-CHrAaVU1.cjs +0 -180
- package/components/tags-BIpFgOYy.js +0 -208
- package/components/tags-fLCGajv_.cjs +0 -47
- package/standalone/chunks/NumberFormatter-DMCfW685.js +0 -2
- package/standalone/chunks/NumberParser-r_jv94LA.js +0 -2
- package/standalone/chunks/action-button-FSsfXYe9.js +0 -6
- package/standalone/chunks/async-directive-BA2_dM-5.js +0 -2
- package/standalone/chunks/async-directive-CPdA0BOw.js +0 -2
- package/standalone/chunks/badge-DD-tMgzi.js +0 -7
- package/standalone/chunks/button-Bv3v7VbN.js +0 -4
- package/standalone/chunks/button-base-C7jeeyLp.js +0 -9
- package/standalone/chunks/calendar-DcFjY2tw.js +0 -122
- package/standalone/chunks/checkbox-DQ4wPgG_.js +0 -9
- package/standalone/chunks/class-map-CxQ0PcQP.js +0 -2
- package/standalone/chunks/color-controller-fJNWRHVI.js +0 -2
- package/standalone/chunks/color-slider-CAqvxsgS.js +0 -41
- package/standalone/chunks/flow-aCcJ5kgi.js +0 -2
- package/standalone/chunks/focus-group-Cl6MLy-C.js +0 -2
- package/standalone/chunks/keyed-CNWmQd2J.js +0 -2
- package/standalone/chunks/lit-BN_lRQbJ.js +0 -3
- package/standalone/chunks/lucero-runtime-DGJ9-isg.js +0 -16
- package/standalone/chunks/menu-DSMoQt1w.js +0 -92
- package/standalone/chunks/observe-slot-presence-DWPtw22K.js +0 -2
- package/standalone/chunks/options-CkmITqgV.js +0 -89
- package/standalone/chunks/overlay-C4ir0iyC.js +0 -31
- package/standalone/chunks/overlay-C_XW8yry.js +0 -57
- package/standalone/chunks/picker-FCQK0vdE.js +0 -108
- package/standalone/chunks/platform-BfrBbd97.js +0 -2
- package/standalone/chunks/property-CLXrnTGx.js +0 -2
- package/standalone/chunks/random-id-CeLe5NEk.js +0 -2
- package/standalone/chunks/repeat-CZdNcszA.js +0 -2
- package/standalone/chunks/scaled-indicator-k-1JmS0b.js +0 -10
- package/standalone/chunks/segments-factory-eS38mJRz.js +0 -2
- package/standalone/chunks/strategies-C-vW4MlK.js +0 -2
- package/standalone/chunks/streaming-listener-DFczLm8I.js +0 -2
- package/standalone/chunks/style-map-D4QeV3m0.js +0 -2
|
@@ -16,25 +16,26 @@
|
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
18
|
import "./tokens.js";
|
|
19
|
-
import { n as e, t } from "./decorate-
|
|
20
|
-
import { n } from "./sized-mixin-
|
|
21
|
-
import { t as r } from "./roving-tabindex-
|
|
22
|
-
import { r as i, t as a } from "./language-resolution-
|
|
23
|
-
import { r as o } from "./match-media-
|
|
24
|
-
import "./checkbox-
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
19
|
+
import { n as e, t } from "./decorate-CpKsOs9z.js";
|
|
20
|
+
import { n } from "./sized-mixin-BmxIAuoH.js";
|
|
21
|
+
import { t as r } from "./roving-tabindex-BKMkfzY0.js";
|
|
22
|
+
import { r as i, t as a } from "./language-resolution-7rc0khIK.js";
|
|
23
|
+
import { r as o } from "./match-media-UNh23w4s.js";
|
|
24
|
+
import "./checkbox-CvRvgRzh.js";
|
|
25
|
+
import { n as s } from "./template-property-Bks4Db5C.js";
|
|
26
|
+
import { html as c, nothing as l, unsafeCSS as u } from "lit";
|
|
27
|
+
import { property as d, query as f, state as p } from "lit/decorators.js";
|
|
28
|
+
import { luzmoAngleDown as m, luzmoArrowDown as h, luzmoArrowUp as g, luzmoIcon as _ } from "@luzmo/icons";
|
|
29
|
+
import { ifDefined as v } from "lit/directives/if-defined.js";
|
|
30
|
+
import { classMap as y } from "lit/directives/class-map.js";
|
|
31
|
+
import { styleMap as b } from "lit/directives/style-map.js";
|
|
31
32
|
import { repeat as ee } from "lit/directives/repeat.js";
|
|
32
33
|
import { createTable as te, getCoreRowModel as ne, getSortedRowModel as re } from "@tanstack/table-core";
|
|
33
|
-
import { Virtualizer as ie, elementScroll as
|
|
34
|
-
|
|
35
|
-
var
|
|
34
|
+
import { Virtualizer as ie, elementScroll as ae, observeElementOffset as oe, observeElementRect as se } from "@tanstack/virtual-core";
|
|
35
|
+
// src/components/table/controllers/table-announcer.ts
|
|
36
|
+
var ce = "data-luzmo-table-announcer", x, S = 0, C = 0, le = () => {
|
|
36
37
|
let e = document.createElement("div");
|
|
37
|
-
return e.setAttribute(
|
|
38
|
+
return e.setAttribute(ce, ""), e.setAttribute("aria-live", "polite"), e.setAttribute("aria-atomic", "true"), Object.assign(e.style, {
|
|
38
39
|
position: "absolute",
|
|
39
40
|
inlineSize: "1px",
|
|
40
41
|
blockSize: "1px",
|
|
@@ -45,13 +46,13 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
45
46
|
clipPath: "inset(50%)",
|
|
46
47
|
whiteSpace: "nowrap"
|
|
47
48
|
}), e;
|
|
48
|
-
},
|
|
49
|
+
}, ue = class {
|
|
49
50
|
constructor(e) {
|
|
50
51
|
e.addController(this);
|
|
51
52
|
}
|
|
52
53
|
announce(e) {
|
|
53
54
|
if (typeof document > "u" || !C) return;
|
|
54
|
-
x ??=
|
|
55
|
+
x ??= le(), x.isConnected || document.body.append(x);
|
|
55
56
|
let t = x;
|
|
56
57
|
t.textContent = "", cancelAnimationFrame(S), S = requestAnimationFrame(() => {
|
|
57
58
|
t.textContent = e;
|
|
@@ -63,25 +64,25 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
63
64
|
hostDisconnected() {
|
|
64
65
|
--C, C === 0 && (cancelAnimationFrame(S), x?.remove(), x = void 0);
|
|
65
66
|
}
|
|
66
|
-
}, w = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, T = (e) => `luzmo-table-details-${[...e].map((e) => /^[A-Za-z0-9]$/.test(e) ? e : `_${e.codePointAt(0).toString(16)}_`).join("")}`, E = (e) => w(e.minWidth) ?? (e.resizable ? 48 : 0), D = (e) => w(e.maxWidth) ?? 1e4, O = (e, t) => Math.min(D(t), Math.max(E(t), Math.round(e))),
|
|
67
|
+
}, w = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, T = (e) => `luzmo-table-details-${[...e].map((e) => /^[A-Za-z0-9]$/.test(e) ? e : `_${e.codePointAt(0).toString(16)}_`).join("")}`, E = (e) => w(e.minWidth) ?? (e.resizable ? 48 : 0), D = (e) => w(e.maxWidth) ?? 1e4, O = (e, t) => Math.min(D(t), Math.max(E(t), Math.round(e))), de = (e, t) => {
|
|
67
68
|
let n = w(t) ?? w(e.width);
|
|
68
69
|
if (n !== void 0) return `${O(n, e)}px`;
|
|
69
70
|
let r = w(e.minWidth) ?? (e.resizable ? 48 : 0), i = w(e.maxWidth);
|
|
70
71
|
return i === void 0 ? r > 0 ? `minmax(${r}px, 1fr)` : "minmax(0px, 1fr)" : `minmax(${r}px, ${i}px)`;
|
|
71
|
-
},
|
|
72
|
+
}, fe = (e, t, n) => {
|
|
72
73
|
let r = [];
|
|
73
74
|
n.selects && r.push("var(--table-checkbox-cell-inline-size)"), n.expandable && r.push("var(--table-disclosure-cell-inline-size)");
|
|
74
|
-
for (let n of e) r.push(
|
|
75
|
+
for (let n of e) r.push(de(n, w(t[n.id])));
|
|
75
76
|
return r.join(" ");
|
|
76
|
-
},
|
|
77
|
+
}, pe = (e, t) => {
|
|
77
78
|
let n = w(t) ?? w(e.width);
|
|
78
79
|
return n === void 0 ? w(e.minWidth) ?? (e.resizable ? 48 : 0) : O(n, e);
|
|
79
|
-
},
|
|
80
|
+
}, me = (e, t, n) => {
|
|
80
81
|
let r = [];
|
|
81
82
|
n.selects && r.push("var(--table-checkbox-cell-inline-size)"), n.expandable && r.push("var(--table-disclosure-cell-inline-size)");
|
|
82
|
-
let i = e.reduce((e, n) => e +
|
|
83
|
+
let i = e.reduce((e, n) => e + pe(n, w(t[n.id])), 0);
|
|
83
84
|
return r.push(`${i}px`), `calc(${r.join(" + ")})`;
|
|
84
|
-
},
|
|
85
|
+
}, he = (e) => ({
|
|
85
86
|
id: e.id,
|
|
86
87
|
header: typeof e.header == "string" ? e.header : e.id,
|
|
87
88
|
width: w(e.width),
|
|
@@ -89,7 +90,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
89
90
|
maxWidth: w(e.maxWidth),
|
|
90
91
|
resizable: e.resizable !== !1,
|
|
91
92
|
lineClamp: w(e.lineClamp)
|
|
92
|
-
}),
|
|
93
|
+
}), ge = (e, t) => {
|
|
93
94
|
let n = e === "PageDown" || e === "PageUp";
|
|
94
95
|
switch (e) {
|
|
95
96
|
case "ArrowRight":
|
|
@@ -112,7 +113,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
112
113
|
};
|
|
113
114
|
default: return;
|
|
114
115
|
}
|
|
115
|
-
},
|
|
116
|
+
}, _e = (e, t, n) => t.action === "min" ? E(n) : t.action === "max" ? D(n) : O(e + (t.action === "increase" ? 1 : -1) * t.amount, n), k = {
|
|
116
117
|
selectAll: "Select All",
|
|
117
118
|
selectRow: "Select row {index}",
|
|
118
119
|
sortAscending: "Sorted by {column}, ascending",
|
|
@@ -121,7 +122,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
121
122
|
collapseRow: "Collapse {label}",
|
|
122
123
|
resizeColumn: "Resize {column}",
|
|
123
124
|
columnWidth: "{column}, {width} pixels"
|
|
124
|
-
},
|
|
125
|
+
}, ve = (e) => e.rowType === "information" || e._$rowType$ === 1, ye = (e) => e === "asc" ? "ascending" : e === "desc" ? "descending" : "none", be = (e) => e === "asc" ? "desc" : "asc", A = (e = {}, t) => {
|
|
125
126
|
let n = Object.fromEntries(Object.entries(e).filter(([, e]) => typeof e == "string" && e !== "")), r = {
|
|
126
127
|
...k,
|
|
127
128
|
...n
|
|
@@ -131,12 +132,12 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
131
132
|
let n = e;
|
|
132
133
|
for (let [e, r] of Object.entries(t)) n = n.replaceAll(`{${e}}`, r);
|
|
133
134
|
return n;
|
|
134
|
-
},
|
|
135
|
+
}, xe = (e, t) => e.map((e, n) => ({
|
|
135
136
|
item: e,
|
|
136
137
|
value: t ? t(e, n) : String(n),
|
|
137
138
|
index: n,
|
|
138
|
-
information:
|
|
139
|
-
})),
|
|
139
|
+
information: ve(e)
|
|
140
|
+
})), Se = (e, t) => typeof e == "function" ? e(t) : e, Ce = class {
|
|
140
141
|
constructor() {
|
|
141
142
|
this.records = [], this.sorting = [], this.manualSorting = !1, this.rowSelection = {}, this.selectedOrder = [], this.columns = [], this.table = te({
|
|
142
143
|
data: [],
|
|
@@ -150,9 +151,9 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
150
151
|
enableRowSelection: (e) => !!this.selects && !e.original.information,
|
|
151
152
|
enableMultiRowSelection: () => this.selects === "multiple",
|
|
152
153
|
onRowSelectionChange: (e) => {
|
|
153
|
-
this.pendingSelection =
|
|
154
|
+
this.pendingSelection = Se(e, this.rowSelection);
|
|
154
155
|
}
|
|
155
|
-
}), this.compare = (e, t) => typeof e == "number" && typeof t == "number" ? e - t : (
|
|
156
|
+
}), this.compare = (e, t) => typeof e == "number" && typeof t == "number" ? e - t : (this.collator && this.collatorLocale === this.locale || (this.collatorLocale = this.locale, this.collator = new Intl.Collator(this.locale, {
|
|
156
157
|
numeric: !0,
|
|
157
158
|
sensitivity: "base"
|
|
158
159
|
})), this.collator.compare(String(e), String(t)));
|
|
@@ -164,14 +165,10 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
164
165
|
this.selectedOrder = [...e], this.rowSelection = Object.fromEntries(e.map((e) => [e, !0]));
|
|
165
166
|
}
|
|
166
167
|
setSorting(e, t = !1) {
|
|
167
|
-
|
|
168
|
-
this.sorting = [];
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
this.columns.some((t) => t.id === e.key) || (this.columns = [...this.columns, this.createSortColumn(e.key)]), this.sorting = [{
|
|
168
|
+
this.manualSorting = t, e ? (this.columns.some((t) => t.id === e.key) || (this.columns = [...this.columns, this.createSortColumn(e.key)]), this.sorting = [{
|
|
172
169
|
id: e.key,
|
|
173
170
|
desc: e.direction === "desc"
|
|
174
|
-
}];
|
|
171
|
+
}]) : this.sorting = [];
|
|
175
172
|
}
|
|
176
173
|
get rows() {
|
|
177
174
|
this.sync();
|
|
@@ -230,11 +227,11 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
230
227
|
}
|
|
231
228
|
}));
|
|
232
229
|
}
|
|
233
|
-
},
|
|
230
|
+
}, we = /* @__PURE__ */ new Set([
|
|
234
231
|
"luzmo-table-cell",
|
|
235
232
|
"luzmo-table-head-cell",
|
|
236
233
|
"luzmo-table-checkbox-cell"
|
|
237
|
-
]), M = (e) => e.find((e) => e instanceof HTMLElement && e.classList.contains("resize-handle")),
|
|
234
|
+
]), M = (e) => e.find((e) => e instanceof HTMLElement && e.classList.contains("resize-handle")), Te = class {
|
|
238
235
|
constructor(e, t) {
|
|
239
236
|
this.handlePointerDown = (e) => {
|
|
240
237
|
if (!this.options.owns(e) || e.button !== 0) return;
|
|
@@ -278,12 +275,12 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
278
275
|
if (e.defaultPrevented || !this.options.owns(e)) return;
|
|
279
276
|
let t = e.composedPath();
|
|
280
277
|
if (!M(t)) return;
|
|
281
|
-
let n =
|
|
278
|
+
let n = ge(e.code, this.options.isLTR()), r = this.cellFromPath(t);
|
|
282
279
|
n && r?.localName === "luzmo-table-head-cell" && (e.preventDefault(), e.stopPropagation(), this.resizeColumn(r, n));
|
|
283
280
|
}
|
|
284
281
|
resizeColumn(e, t) {
|
|
285
282
|
let n = this.options.headCells().indexOf(e), r = e.toLayout(Math.max(n, 0)), i = e.currentWidth || Math.round(e.getBoundingClientRect().width);
|
|
286
|
-
this.setColumnWidth(r,
|
|
283
|
+
this.setColumnWidth(r, _e(i, t, r), !0);
|
|
287
284
|
}
|
|
288
285
|
setColumnWidth(e, t, n) {
|
|
289
286
|
let r = O(t, e), i = {
|
|
@@ -309,12 +306,12 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
309
306
|
}
|
|
310
307
|
formatWidth(e) {
|
|
311
308
|
let t = this.options.language();
|
|
312
|
-
return
|
|
309
|
+
return this.widthFormatter && this.formatterLanguage === t || (this.formatterLanguage = t, this.widthFormatter = new Intl.NumberFormat(t)), this.widthFormatter.format(e);
|
|
313
310
|
}
|
|
314
311
|
cellFromPath(e) {
|
|
315
|
-
return e.find((e) => e instanceof HTMLElement &&
|
|
312
|
+
return e.find((e) => e instanceof HTMLElement && we.has(e.localName));
|
|
316
313
|
}
|
|
317
|
-
},
|
|
314
|
+
}, Ee = "textarea, select, [contenteditable=\"\"], [contenteditable=\"true\"], input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"button\"]):not([type=\"submit\"]):not([type=\"reset\"])", De = class extends r {
|
|
318
315
|
constructor(e, { rows: t, isLTR: n, ...r }) {
|
|
319
316
|
super(e, r), this.handleFocusout = (e) => {
|
|
320
317
|
let t = e.relatedTarget;
|
|
@@ -324,7 +321,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
324
321
|
}, this.handleKeydown = (e) => {
|
|
325
322
|
if (e.defaultPrevented || !this.acceptsEventCode(e.code) || !this.owns(e)) return;
|
|
326
323
|
let t = e.composedPath()[0];
|
|
327
|
-
if (t instanceof HTMLElement && t.matches(
|
|
324
|
+
if (t instanceof HTMLElement && t.matches(Ee)) return;
|
|
328
325
|
let n = this.cellFromPath(e.composedPath());
|
|
329
326
|
if (!n) return;
|
|
330
327
|
let r = this.navigationTarget(n, e);
|
|
@@ -390,7 +387,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
390
387
|
}, N = Symbol("table-details-closing"), P = (e) => {
|
|
391
388
|
let t = e.nextElementSibling;
|
|
392
389
|
return t?.localName === "luzmo-table-row-details" ? t : null;
|
|
393
|
-
}, F = (e) => e instanceof HTMLElement,
|
|
390
|
+
}, F = (e) => e instanceof HTMLElement, Oe = class {
|
|
394
391
|
constructor(e, t) {
|
|
395
392
|
this.closingDetails = /* @__PURE__ */ new Set(), this.handleDetailsCollapsed = (e) => {
|
|
396
393
|
if (!this.options.owns(e)) return;
|
|
@@ -468,7 +465,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
468
465
|
rows() {
|
|
469
466
|
return this.isDataMode() ? [...this.host.shadowRoot?.querySelectorAll("luzmo-table-row") ?? []] : this.declarativeRows();
|
|
470
467
|
}
|
|
471
|
-
}, I = (e) => e instanceof HTMLElement,
|
|
468
|
+
}, I = (e) => e instanceof HTMLElement, ke = class {
|
|
472
469
|
constructor(e, t) {
|
|
473
470
|
this.handleBodyScroll = (e) => {
|
|
474
471
|
this.options.owns(e) && e.composedPath().find((e) => I(e) && e.localName === "luzmo-table-body") && this.host.requestUpdate();
|
|
@@ -487,7 +484,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
487
484
|
return this.isDataMode() ? typeof this.host.renderDetails == "function" : this.declarativeRows().some((e) => e.nextElementSibling?.localName === "luzmo-table-row-details");
|
|
488
485
|
}
|
|
489
486
|
layouts() {
|
|
490
|
-
return this.isDataMode() && !this.slottedHead() ? this.host.columns.map(
|
|
487
|
+
return this.isDataMode() && !this.slottedHead() ? this.host.columns.map(he) : this.headCells().map((e, t) => e.toLayout(t));
|
|
491
488
|
}
|
|
492
489
|
headCells() {
|
|
493
490
|
return [...this.head()?.querySelectorAll(":scope > luzmo-table-head-cell") ?? []];
|
|
@@ -497,7 +494,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
497
494
|
selects: !!this.host.selects,
|
|
498
495
|
expandable: this.hasExpansion()
|
|
499
496
|
}, t = this.layouts();
|
|
500
|
-
this.host.style.setProperty("--table-grid-columns",
|
|
497
|
+
this.host.style.setProperty("--table-grid-columns", fe(t, this.host.columnWidths, e) || "none"), this.host.style.setProperty("--table-min-inline-size", me(t, this.host.columnWidths, e));
|
|
501
498
|
}
|
|
502
499
|
syncPresentation() {
|
|
503
500
|
this.syncHead(), this.syncColumns(), this.isDataMode() || this.syncDeclarativeRows();
|
|
@@ -520,7 +517,7 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
520
517
|
}
|
|
521
518
|
watchBodyScrollbar() {
|
|
522
519
|
let e = this.body();
|
|
523
|
-
|
|
520
|
+
e && e !== this.observedBody && (this.bodyObserver?.disconnect(), this.observedBody = e, this.bodyObserver ??= new ResizeObserver(() => {
|
|
524
521
|
this.syncHeadScroll();
|
|
525
522
|
}), this.bodyObserver.observe(e, { box: "content-box" }));
|
|
526
523
|
}
|
|
@@ -582,21 +579,15 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
582
579
|
rows() {
|
|
583
580
|
return this.isDataMode() ? [...this.host.shadowRoot?.querySelectorAll("luzmo-table-row") ?? []] : this.declarativeRows();
|
|
584
581
|
}
|
|
585
|
-
}, L = Symbol("table-virtual-range-updated"),
|
|
582
|
+
}, L = Symbol("table-virtual-range-updated"), Ae = 40, je = 4, R = (e) => e.getBoundingClientRect().height, Me = class {
|
|
586
583
|
constructor(e, t) {
|
|
587
|
-
this.connected = !1, this.keys = [], this.estimatedSize =
|
|
584
|
+
this.connected = !1, this.keys = [], this.estimatedSize = Ae, this.host = e, this.options = t, e.addController(this);
|
|
588
585
|
}
|
|
589
586
|
get enabled() {
|
|
590
587
|
return !!this.virtualizer;
|
|
591
588
|
}
|
|
592
589
|
set enabled(e) {
|
|
593
|
-
|
|
594
|
-
if (e) {
|
|
595
|
-
this.virtualizer = new ie(this.createOptions()), this.connected && (this.cleanup = this.virtualizer._didMount());
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
this.cleanup?.(), this.cleanup = void 0, this.virtualizer = void 0, this.range = void 0;
|
|
599
|
-
}
|
|
590
|
+
e !== this.enabled && (e ? (this.virtualizer = new ie(this.createOptions()), this.connected && (this.cleanup = this.virtualizer._didMount())) : (this.cleanup?.(), this.cleanup = void 0, this.virtualizer = void 0, this.range = void 0));
|
|
600
591
|
}
|
|
601
592
|
sync(e) {
|
|
602
593
|
return this.virtualizer ? (e !== this.keys && (this.keys = e, this.virtualizer.setOptions(this.createOptions())), this.virtualizer.getVirtualItems()) : [];
|
|
@@ -632,11 +623,11 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
632
623
|
getScrollElement: this.options.getScrollElement,
|
|
633
624
|
estimateSize: () => this.estimatedSize,
|
|
634
625
|
getItemKey: (e) => this.keys[e] ?? e,
|
|
635
|
-
overscan:
|
|
626
|
+
overscan: je,
|
|
636
627
|
useAnimationFrameWithResizeObserver: !0,
|
|
637
|
-
scrollToFn:
|
|
638
|
-
observeElementRect:
|
|
639
|
-
observeElementOffset:
|
|
628
|
+
scrollToFn: ae,
|
|
629
|
+
observeElementRect: se,
|
|
630
|
+
observeElementOffset: oe,
|
|
640
631
|
measureElement: (e) => this.options.isRendered(e) && R(e) || this.estimatedSize,
|
|
641
632
|
onChange: (e) => {
|
|
642
633
|
let t = this.reportRange(e);
|
|
@@ -658,14 +649,12 @@ var se = "data-luzmo-table-announcer", x, S = 0, C = 0, ce = () => {
|
|
|
658
649
|
last: r
|
|
659
650
|
}), !0);
|
|
660
651
|
}
|
|
661
|
-
},
|
|
662
|
-
|
|
663
|
-
//#region src/components/table/table-styles.ts
|
|
652
|
+
}, Ne = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:var(--table-min-inline-size,0);box-sizing:border-box;display:grid;overflow:hidden;border-block-start:none!important;border-inline:none!important;border-block-end-width:var(--table-row-divider-width)!important;border-block-end-style:solid!important;border-block-end-color:var(--highcontrast-table-row-divider-color,var(--luzmo-table-border-color,var(--table-row-divider-color)))!important}:host([data-last-row]){border-block-end-width:0!important}:host([hidden]){display:none!important}.cell{outline:none;grid-column:1/-1;grid-template-rows:1fr;min-inline-size:0;display:grid;overflow:hidden}:host([data-last-row]) .cell{--table-focus-end-start-radius:var(--table-corner-radius);--table-focus-end-end-radius:var(--table-corner-radius)}.cell:focus-visible{outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-details-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}.content{padding-block:var(--table-details-padding-block);padding-inline:var(--table-details-padding-inline);overflow:hidden}:host([opening]) .content,:host([closing]) .content{min-block-size:0}:host([opening]) .cell{animation:table-details-open var(--luzmo-animation-duration) ease-out}:host([closing]) .cell{animation:table-details-close var(--luzmo-animation-duration) ease-in}@keyframes table-details-open{0%{opacity:0;grid-template-rows:0fr}}@keyframes table-details-close{to{opacity:0;grid-template-rows:0fr}}@media (prefers-reduced-motion:reduce){:host([opening]) .cell,:host([closing]) .cell{animation:none}}:host{--table-row-divider-color:var(--luzmo-border-color);--table-row-divider-width:var(--luzmo-border-width);--table-details-padding-block:var(--luzmo-spacing-4);--table-details-padding-inline:var(--luzmo-table-cell-padding-inline,var(--table-cell-padding-inline))}@media (forced-colors:active){:host{--highcontrast-table-row-divider-color:CanvasText;--highcontrast-table-details-focus-indicator-color:Highlight}}";
|
|
653
|
+
// src/components/table/table-styles.ts
|
|
664
654
|
function z(e, t) {
|
|
665
|
-
return [...Array.isArray(e) ? e : e ? [e] : [],
|
|
655
|
+
return [...Array.isArray(e) ? e : e ? [e] : [], u(t)];
|
|
666
656
|
}
|
|
667
|
-
|
|
668
|
-
//#region src/components/table/table-row-details.ts
|
|
657
|
+
// src/components/table/table-row-details.ts
|
|
669
658
|
var B = class extends e {
|
|
670
659
|
constructor(...e) {
|
|
671
660
|
super(...e), this.role = "row", this.open = !1, this._phase = "closed", this.reducedMotion = new o(this, "(prefers-reduced-motion: reduce)"), this.handleAnimationEnd = (e) => {
|
|
@@ -678,26 +667,16 @@ var B = class extends e {
|
|
|
678
667
|
};
|
|
679
668
|
}
|
|
680
669
|
static get styles() {
|
|
681
|
-
return z(super.styles,
|
|
670
|
+
return z(super.styles, Ne);
|
|
682
671
|
}
|
|
683
672
|
disconnectedCallback() {
|
|
684
673
|
window.clearTimeout(this._closeFallback), super.disconnectedCallback();
|
|
685
674
|
}
|
|
686
675
|
willUpdate(e) {
|
|
687
|
-
|
|
688
|
-
if (this.open) {
|
|
689
|
-
this.hidden = !1, this._phase = this.hasUpdated && !this.reducedMotion.matches ? "opening" : "open";
|
|
690
|
-
return;
|
|
691
|
-
}
|
|
692
|
-
if (!this.hasUpdated || this.reducedMotion.matches || this._phase === "closed") {
|
|
693
|
-
this._phase = "closed", this.hidden = !0;
|
|
694
|
-
return;
|
|
695
|
-
}
|
|
696
|
-
this._phase = "closing";
|
|
697
|
-
}
|
|
676
|
+
super.willUpdate(e), (e.has("open") || !this.hasUpdated) && (this.open ? (this.hidden = !1, this._phase = this.hasUpdated && !this.reducedMotion.matches ? "opening" : "open") : !this.hasUpdated || this.reducedMotion.matches || this._phase === "closed" ? (this._phase = "closed", this.hidden = !0) : this._phase = "closing");
|
|
698
677
|
}
|
|
699
678
|
render() {
|
|
700
|
-
return
|
|
679
|
+
return c`
|
|
701
680
|
<div
|
|
702
681
|
class="cell"
|
|
703
682
|
role="gridcell"
|
|
@@ -711,19 +690,18 @@ var B = class extends e {
|
|
|
711
690
|
super.updated(e), e.has("_phase") && (this.toggleAttribute("opening", this._phase === "opening"), this.toggleAttribute("closing", this._phase === "closing"), window.clearTimeout(this._closeFallback), this._phase === "closing" && (this._closeFallback = window.setTimeout(this._finishClosing, 200)));
|
|
712
691
|
}
|
|
713
692
|
};
|
|
714
|
-
t([
|
|
693
|
+
t([d({ reflect: !0 })], B.prototype, "role", void 0), t([d({
|
|
715
694
|
type: Boolean,
|
|
716
695
|
reflect: !0
|
|
717
|
-
})], B.prototype, "open", void 0), t([
|
|
718
|
-
|
|
719
|
-
//#region src/components/table/table-templates.ts
|
|
696
|
+
})], B.prototype, "open", void 0), t([p()], B.prototype, "_phase", void 0);
|
|
697
|
+
// src/components/table/table-templates.ts
|
|
720
698
|
var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
721
699
|
let n = t[e.accessorKey ?? e.id];
|
|
722
700
|
return typeof n == "string" || typeof n == "number" ? String(n) : "";
|
|
723
|
-
},
|
|
701
|
+
}, Pe = (e, t, n) => {
|
|
724
702
|
let r = e.map((e) => {
|
|
725
703
|
let r = V(e), i = typeof e.header == "string" ? e.header : e.id;
|
|
726
|
-
return
|
|
704
|
+
return c`
|
|
727
705
|
<luzmo-table-head-cell
|
|
728
706
|
column-id=${e.id}
|
|
729
707
|
?sortable=${!!e.sortable}
|
|
@@ -739,68 +717,68 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
739
717
|
>
|
|
740
718
|
`;
|
|
741
719
|
});
|
|
742
|
-
return
|
|
720
|
+
return c`
|
|
743
721
|
<luzmo-table-head .expandable=${n.expandable}
|
|
744
722
|
>${r}</luzmo-table-head
|
|
745
723
|
>
|
|
746
724
|
`;
|
|
747
|
-
},
|
|
725
|
+
}, Fe = (e, t, n) => {
|
|
748
726
|
let { item: r, index: i } = e;
|
|
749
|
-
return n ? n(r, i) : e.information ?
|
|
727
|
+
return n ? n(r, i) : e.information ? c`<luzmo-table-cell span-all
|
|
750
728
|
>${t[0] ? H(t[0], r) : ""}</luzmo-table-cell
|
|
751
|
-
>` : t.map((e) =>
|
|
729
|
+
>` : t.map((e) => c`
|
|
752
730
|
<luzmo-table-cell .columnLineClamp=${e.lineClamp}
|
|
753
731
|
>${e.cell ? e.cell(r, i) : H(e, r)}</luzmo-table-cell
|
|
754
732
|
>
|
|
755
733
|
`);
|
|
756
|
-
},
|
|
734
|
+
}, Ie = (e, t, { columns: n, renderItem: r, itemLabel: i, selectRowLabel: a }) => i ? i(e.item, e.index) : (!r && n[0] ? H(n[0], e.item) : "") || j(a, { index: String(t + 1) }), U = (e) => c`
|
|
757
735
|
<div
|
|
758
736
|
class="virtual-spacer"
|
|
759
737
|
aria-hidden="true"
|
|
760
|
-
style=${
|
|
738
|
+
style=${b({ blockSize: `${e}px` })}
|
|
761
739
|
></div>
|
|
762
|
-
`,
|
|
740
|
+
`, Le = (e) => {
|
|
763
741
|
let { rows: t, columns: n, renderItem: r, selects: i, rowIndexOffset: a } = e, o = a !== void 0;
|
|
764
|
-
return
|
|
742
|
+
return c`
|
|
765
743
|
<luzmo-table-body>
|
|
766
|
-
${o ? U(e.paddingStart) :
|
|
767
|
-
${ee(t, ({ record: e }) => e.value, ({ record: t, position:
|
|
768
|
-
let u = !!i && !t.information, d = e.expandable && !t.information, f = d && e.isExpanded(t.value), p =
|
|
744
|
+
${o ? U(e.paddingStart) : l}
|
|
745
|
+
${ee(t, ({ record: e }) => e.value, ({ record: t, position: s }) => {
|
|
746
|
+
let u = !!i && !t.information, d = e.expandable && !t.information, f = d && e.isExpanded(t.value), p = s === e.rowCount - 1, m = e.ariaIndexes?.get(t.value), h = m?.row ?? (a === void 0 ? void 0 : s + a), g = c`
|
|
769
747
|
<luzmo-table-row
|
|
770
748
|
value=${t.value}
|
|
771
|
-
data-index=${
|
|
772
|
-
aria-rowindex=${
|
|
749
|
+
data-index=${v(o ? void 0 : s)}
|
|
750
|
+
aria-rowindex=${v(h)}
|
|
773
751
|
?data-last-row=${p}
|
|
774
752
|
.selectable=${u}
|
|
775
753
|
.selected=${u && e.isSelected(t.value)}
|
|
776
754
|
.selectionColumn=${!!i}
|
|
777
755
|
.selectsSingle=${i === "single"}
|
|
778
756
|
.emphasized=${e.emphasized}
|
|
779
|
-
.checkboxLabel=${u ?
|
|
757
|
+
.checkboxLabel=${u ? Ie(t, s, e) : ""}
|
|
780
758
|
.checkboxSize=${e.checkboxSize}
|
|
781
759
|
.expandable=${d}
|
|
782
760
|
.expanded=${f}
|
|
783
761
|
.expansionColumn=${e.expandable && !d}
|
|
784
762
|
.spanAll=${t.information}
|
|
785
|
-
.disclosureLabel=${d ? e.expandLabel(t,
|
|
763
|
+
.disclosureLabel=${d ? e.expandLabel(t, s) : ""}
|
|
786
764
|
.detailsId=${d ? T(t.value) : ""}
|
|
787
|
-
>${
|
|
765
|
+
>${Fe(t, n, r)}</luzmo-table-row
|
|
788
766
|
>
|
|
789
|
-
|
|
767
|
+
`, _ = d ? c`
|
|
790
768
|
<luzmo-table-row-details
|
|
791
769
|
id=${T(t.value)}
|
|
792
770
|
.open=${f}
|
|
793
|
-
aria-rowindex=${
|
|
771
|
+
aria-rowindex=${v(m?.details)}
|
|
794
772
|
?data-last-row=${p}
|
|
795
773
|
>${e.renderDetails?.(t.item, t.index)}</luzmo-table-row-details
|
|
796
774
|
>
|
|
797
|
-
` : c}`;
|
|
798
|
-
return o ?
|
|
775
|
+
` : l, y = c`${g}${_}`;
|
|
776
|
+
return o ? c`<div class="row-group" data-index=${s}>${y}</div>` : y;
|
|
799
777
|
})}
|
|
800
|
-
${o ? U(e.paddingEnd) :
|
|
778
|
+
${o ? U(e.paddingEnd) : l}
|
|
801
779
|
</luzmo-table-body>
|
|
802
780
|
`;
|
|
803
|
-
},
|
|
781
|
+
}, Re = ":host{box-sizing:border-box;font-family:var(--luzmo-font-family);font-size:var(--table-font-size);line-height:var(--luzmo-line-height);color:var(--table-font-color);background-color:var(--luzmo-table-background-color,var(--table-background-color));border-radius:var(--luzmo-table-border-radius,var(--table-border-radius));flex-direction:column;display:flex;position:relative;overflow:hidden;border-width:var(--table-border-width)!important;border-style:solid!important;border-color:var(--highcontrast-table-border-color,var(--luzmo-table-border-color,var(--table-border-color)))!important}slot.data::slotted(luzmo-table-body){display:none}:host{--table-font-size:var(--luzmo-font-size-m);--table-font-color:var(--luzmo-font-color);--table-background-color:var(--luzmo-background-color);--table-border-width:var(--luzmo-border-width);--table-border-color:var(--luzmo-border-color);--table-column-divider-width:0px;--table-column-divider-color:var(--table-border-color);--table-border-radius:var(--luzmo-border-radius);--table-row-min-block-size:calc(var(--luzmo-component-height) + var(--luzmo-spacing-3));--table-row-density-offset:0px;--table-cell-padding-block:var(--luzmo-spacing-2);--table-cell-padding-inline:var(--luzmo-spacing-4);--table-checkbox-cell-inline-size:calc(var(--luzmo-icon-size-m) + var(--luzmo-spacing-4) * 2);--table-disclosure-cell-inline-size:var(--table-checkbox-cell-inline-size);--table-sort-icon-size:var(--luzmo-icon-size-m);--table-row-selected-background-color:var(--luzmo-background-color-highlight);--table-row-selected-hover-background-color:var(--luzmo-background-color-highlight-hover);--table-body-overflow:hidden;--table-corner-radius:max(0px, calc(var(--luzmo-table-border-radius,var(--table-border-radius)) - var(--table-border-width)))}:host([size=s]){--table-font-size:var(--luzmo-font-size-s);--table-row-min-block-size:calc(var(--luzmo-component-height-s) + var(--luzmo-spacing-2));--table-cell-padding-inline:var(--luzmo-spacing-3);--table-checkbox-cell-inline-size:calc(var(--luzmo-icon-size-s) + var(--luzmo-spacing-3) * 2);--table-sort-icon-size:var(--luzmo-icon-size-s)}:host([size=l]){--table-font-size:var(--luzmo-font-size-l);--table-row-min-block-size:calc(var(--luzmo-component-height-l) + var(--luzmo-spacing-3));--table-cell-padding-inline:var(--luzmo-spacing-5);--table-checkbox-cell-inline-size:calc(var(--luzmo-icon-size-l) + var(--luzmo-spacing-5) * 2);--table-sort-icon-size:var(--luzmo-icon-size-l)}:host([size=xl]){--table-font-size:var(--luzmo-font-size-xl);--table-row-min-block-size:calc(var(--luzmo-component-height-xl) + var(--luzmo-spacing-5));--table-cell-padding-inline:var(--luzmo-spacing-5);--table-checkbox-cell-inline-size:calc(var(--luzmo-icon-size-xl) + var(--luzmo-spacing-5) * 2);--table-sort-icon-size:var(--luzmo-icon-size-xl)}:host([density=compact]){--table-row-density-offset:calc(var(--luzmo-spacing-3) * -1);--table-cell-padding-block:var(--luzmo-spacing-1)}:host([density=spacious]){--table-row-density-offset:var(--luzmo-spacing-3);--table-cell-padding-block:var(--luzmo-spacing-3)}:host([emphasized]){--table-row-selected-background-color:rgba(var(--luzmo-primary-rgb), .1);--table-row-selected-hover-background-color:rgba(var(--luzmo-primary-rgb), .16)}:host([quiet]){--table-border-width:0px;--table-background-color:rgba(var(--luzmo-background-color-rgb), 0);--table-border-radius:0px}:host([scroller]),:host([virtualized]){--table-body-overflow:auto}@media (forced-colors:active){:host{--highcontrast-table-border-color:CanvasText;--highcontrast-table-column-divider-color:CanvasText}}", ze = [
|
|
804
782
|
"items",
|
|
805
783
|
"itemValue",
|
|
806
784
|
"selects",
|
|
@@ -814,7 +792,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
814
792
|
"_lightDomVersion",
|
|
815
793
|
N,
|
|
816
794
|
i
|
|
817
|
-
],
|
|
795
|
+
], Be = [
|
|
818
796
|
"labels",
|
|
819
797
|
"selectAllLabel",
|
|
820
798
|
"emphasized",
|
|
@@ -823,22 +801,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
823
801
|
"luzmo-table-cell",
|
|
824
802
|
"luzmo-table-head-cell",
|
|
825
803
|
"luzmo-table-checkbox-cell"
|
|
826
|
-
]),
|
|
827
|
-
"a[href]",
|
|
828
|
-
"button",
|
|
829
|
-
"input",
|
|
830
|
-
"select",
|
|
831
|
-
"textarea",
|
|
832
|
-
"label",
|
|
833
|
-
"summary",
|
|
834
|
-
"[contenteditable=\"\"]",
|
|
835
|
-
"[contenteditable=\"true\"]",
|
|
836
|
-
"[role=\"button\"]",
|
|
837
|
-
"[role=\"link\"]",
|
|
838
|
-
"[role=\"checkbox\"]",
|
|
839
|
-
"[role=\"switch\"]",
|
|
840
|
-
"[role=\"menuitem\"]"
|
|
841
|
-
].join(","), Ve = "textarea, select, [contenteditable=\"\"], [contenteditable=\"true\"], input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"button\"]):not([type=\"submit\"]):not([type=\"reset\"])", He = [
|
|
804
|
+
]), Ve = "a[href],button,input,select,textarea,label,summary,[contenteditable=\"\"],[contenteditable=\"true\"],[role=\"button\"],[role=\"link\"],[role=\"checkbox\"],[role=\"switch\"],[role=\"menuitem\"]", He = "textarea, select, [contenteditable=\"\"], [contenteditable=\"true\"], input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"button\"]):not([type=\"submit\"]):not([type=\"reset\"])", Ue = [
|
|
842
805
|
"columns",
|
|
843
806
|
"columnWidths",
|
|
844
807
|
"selects",
|
|
@@ -847,13 +810,13 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
847
810
|
"_lightDomVersion"
|
|
848
811
|
], G = (e) => e instanceof HTMLElement, K = class extends n(e) {
|
|
849
812
|
static get styles() {
|
|
850
|
-
return z(super.styles,
|
|
813
|
+
return z(super.styles, Re);
|
|
851
814
|
}
|
|
852
815
|
constructor() {
|
|
853
|
-
super(), this.role = "grid", this.emphasized = !1, this.quiet = !1, this.scroller = !1, this.selected = [], this.expanded = [], this.columnWidths = {}, this.columns = [], this.virtualized = !1, this.labels = {}, this._clientSort = !0, this._mode = "declarative", this._rows = [], this._rowKeys = [], this._warnedSlottedRows = !1, this.model = new
|
|
816
|
+
super(), this.role = "grid", this.emphasized = !1, this.quiet = !1, this.scroller = !1, this.selected = [], this.expanded = [], this.columnWidths = {}, this.columns = [], this.virtualized = !1, this.labels = {}, this._clientSort = !0, this._mode = "declarative", this._rows = [], this._rowKeys = [], this._warnedSlottedRows = !1, this.model = new Ce(), this.language = new a(this), this.announcer = new ue(this), this.layout = new ke(this, {
|
|
854
817
|
model: this.model,
|
|
855
818
|
owns: (e) => this._owns(e)
|
|
856
|
-
}), this.resize = new
|
|
819
|
+
}), this.resize = new Te(this, {
|
|
857
820
|
owns: (e) => this._owns(e),
|
|
858
821
|
isLTR: () => this.isLTR,
|
|
859
822
|
language: () => this.language.language,
|
|
@@ -864,7 +827,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
864
827
|
announce: (e) => {
|
|
865
828
|
this.announcer.announce(e);
|
|
866
829
|
}
|
|
867
|
-
}), this.expansion = new
|
|
830
|
+
}), this.expansion = new Oe(this, {
|
|
868
831
|
owns: (e) => this._owns(e),
|
|
869
832
|
focusDisclosure: (e) => {
|
|
870
833
|
this._activeCell = e, this.navigation.focusElement(e);
|
|
@@ -873,13 +836,13 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
873
836
|
this._lightDomVersion += 1;
|
|
874
837
|
}), this.directionManaged = /* @__PURE__ */ new Set(), this.directionObserver = new MutationObserver(() => {
|
|
875
838
|
for (let e of this.directionManaged) this._syncDirection(e);
|
|
876
|
-
}), this.navigation = new
|
|
839
|
+
}), this.navigation = new De(this, {
|
|
877
840
|
direction: "grid",
|
|
878
841
|
elements: () => this._gridRows().flat(),
|
|
879
842
|
rows: () => this._gridRows(),
|
|
880
843
|
isLTR: () => this.isLTR,
|
|
881
844
|
focusInIndex: (e) => this._gridEntryIndex(e)
|
|
882
|
-
}), this.virtualizer = new
|
|
845
|
+
}), this.virtualizer = new Me(this, {
|
|
883
846
|
getScrollElement: () => this.shadowRoot?.querySelector("luzmo-table-body") ?? null,
|
|
884
847
|
getRowElements: () => this.virtualizer.enabled ? [...this.shadowRoot?.querySelectorAll(".row-group") ?? []] : this._rowElements(),
|
|
885
848
|
isRendered: (e) => !!e.querySelector("luzmo-table-row")?.hasUpdated,
|
|
@@ -907,13 +870,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
907
870
|
}
|
|
908
871
|
if (!r) return;
|
|
909
872
|
let i = t.indexOf(r);
|
|
910
|
-
|
|
911
|
-
if (this.selects) {
|
|
912
|
-
this._toggleRow(r);
|
|
913
|
-
return;
|
|
914
|
-
}
|
|
915
|
-
r.expandable && this.expansion.toggle(r);
|
|
916
|
-
}
|
|
873
|
+
t.slice(0, i).some((e) => G(e) && (e.localName === "luzmo-table-checkbox-cell" || e.localName === "luzmo-table-disclosure-cell" || e.matches(Ve))) || (this.selects ? this._toggleRow(r) : r.expandable && this.expansion.toggle(r));
|
|
917
874
|
}, this.handleFocusin = (e) => {
|
|
918
875
|
if (!this._owns(e)) return;
|
|
919
876
|
let t = this._gridElementFromPath(e.composedPath());
|
|
@@ -921,7 +878,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
921
878
|
}, this.handleKeydown = (e) => {
|
|
922
879
|
if (e.defaultPrevented || !this._owns(e)) return;
|
|
923
880
|
let t = e.composedPath(), n = this._cellFromPath(t), r = this._gridElementFromPath(t), i = t[0], a = i === r;
|
|
924
|
-
if (!a && G(i) && i.matches(
|
|
881
|
+
if (!a && G(i) && i.matches(He)) return;
|
|
925
882
|
if (e.code === "Escape") {
|
|
926
883
|
this.expansion.collapseFromPath(t);
|
|
927
884
|
return;
|
|
@@ -931,11 +888,8 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
931
888
|
return;
|
|
932
889
|
}
|
|
933
890
|
let o = this._virtualNavigationTarget(e);
|
|
934
|
-
if (o)
|
|
935
|
-
|
|
936
|
-
return;
|
|
937
|
-
}
|
|
938
|
-
if (r && (e.code === "Space" || e.code === "Enter" || e.code === "NumpadEnter")) {
|
|
891
|
+
if (o) e.preventDefault(), e.stopImmediatePropagation(), this._focusVirtualCell(o.index, o.column);
|
|
892
|
+
else if (r && (e.code === "Space" || e.code === "Enter" || e.code === "NumpadEnter")) {
|
|
939
893
|
if (e.repeat) {
|
|
940
894
|
a && e.preventDefault();
|
|
941
895
|
return;
|
|
@@ -968,11 +922,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
968
922
|
n && this.navigation.focusElement(n, e);
|
|
969
923
|
}
|
|
970
924
|
scrollToIndex(e) {
|
|
971
|
-
|
|
972
|
-
this.virtualizer.scrollToIndex(e);
|
|
973
|
-
return;
|
|
974
|
-
}
|
|
975
|
-
this._rowElements()[e]?.scrollIntoView({ block: "nearest" });
|
|
925
|
+
this.virtualizer.enabled ? this.virtualizer.scrollToIndex(e) : this._rowElements()[e]?.scrollIntoView({ block: "nearest" });
|
|
976
926
|
}
|
|
977
927
|
startManagingContentDirection(e) {
|
|
978
928
|
this.directionManaged.add(e), this._syncDirection(e);
|
|
@@ -1010,26 +960,28 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
1010
960
|
let t = e;
|
|
1011
961
|
e.has("selects") && this.selects !== "single" && this.selects !== "multiple" && (this.selects = void 0);
|
|
1012
962
|
let n = Array.isArray(this.items) ? "data" : "declarative", r = n !== this._mode;
|
|
1013
|
-
if (r && (this._mode = n, this._sort = void 0, this._clientSort = !0, this._activeCell = void 0, this._warnedSlottedRows = !1, this.hasUpdated && !e.has("selected") && (this.selected = []), this.hasUpdated && !e.has("expanded") && (this.expanded = []), this.expansion.clear()), this._isDataMode && !this._sort && (this._sort = this._initialSort()), this.virtualizer.enabled = this._isDataMode && this.virtualized, (!this.hasUpdated || r ||
|
|
963
|
+
if (r && (this._mode = n, this._sort = void 0, this._clientSort = !0, this._activeCell = void 0, this._warnedSlottedRows = !1, this.hasUpdated && !e.has("selected") && (this.selected = []), this.hasUpdated && !e.has("expanded") && (this.expanded = []), this.expansion.clear()), this._isDataMode && !this._sort && (this._sort = this._initialSort()), this.virtualizer.enabled = this._isDataMode && this.virtualized, (!this.hasUpdated || r || Ue.some((e) => t.has(e))) && this.layout.applyGridMetrics(), this._modelSynced = !this.hasUpdated || r || ze.some((e) => t.has(e)), !this._modelSynced) return;
|
|
1014
964
|
this.model.selects = this.selects, this.model.locale = this.language.language, this.model.setRecords(this._createRecords()), this.model.setSelected(this.selected), this.model.setSorting(this._isDataMode ? this._sort : void 0, !this._clientSort);
|
|
1015
965
|
let i = this.model.rows;
|
|
1016
966
|
(i.length !== this._rows.length || i.some((e, t) => e.value !== this._rows[t]?.value)) && (this._rowKeys = i.map((e) => e.value)), this._rows = i;
|
|
1017
967
|
}
|
|
1018
968
|
render() {
|
|
1019
|
-
return
|
|
969
|
+
return c`
|
|
1020
970
|
<slot class=${this._mode}></slot>
|
|
1021
|
-
${this._isDataMode ? this._renderData() :
|
|
971
|
+
${this._isDataMode ? this._renderData() : l}
|
|
1022
972
|
`;
|
|
1023
973
|
}
|
|
1024
974
|
updated(e) {
|
|
1025
975
|
super.updated(e), e.has("selects") && (this.selects === "multiple" ? this.setAttribute("aria-multiselectable", "true") : this.removeAttribute("aria-multiselectable"));
|
|
1026
976
|
let t = this._modelSynced;
|
|
1027
|
-
if (this._modelSynced = !1, t || e.has("virtualized"))
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
977
|
+
if (this._modelSynced = !1, t || e.has("virtualized")) {
|
|
978
|
+
if (this.virtualizer.enabled) {
|
|
979
|
+
let e = this._rows.filter((e) => this.expanded.includes(e.value)).length;
|
|
980
|
+
this.setAttribute("aria-rowcount", String(this._rows.length + e + +!!this._head()));
|
|
981
|
+
} else this.removeAttribute("aria-rowcount");
|
|
982
|
+
}
|
|
1031
983
|
let n = e;
|
|
1032
|
-
(t ||
|
|
984
|
+
(t || Be.some((e) => n.has(e))) && (this.layout.syncPresentation(), this._isDataMode && this._warnSlottedRows()), (t || n.has("columnWidths") || n.has("virtualized") || n.has("renderItem") || n.has(L)) && this._refreshNavigation();
|
|
1033
985
|
}
|
|
1034
986
|
_renderData() {
|
|
1035
987
|
let e = A(this.labels, this.selectAllLabel), t = this._slottedHead(), n = !!t || this.columns.length > 0, r = this.virtualizer.enabled ? this.virtualizer.sync(this._rowKeys) : void 0, i = r ? r.filter((e) => this._rows[e.index]).map((e) => ({
|
|
@@ -1039,12 +991,12 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
1039
991
|
record: e,
|
|
1040
992
|
position: t
|
|
1041
993
|
})), a = r?.[0], o = r?.at(-1);
|
|
1042
|
-
return
|
|
1043
|
-
${t || this.columns.length === 0 ?
|
|
994
|
+
return c`
|
|
995
|
+
${t || this.columns.length === 0 ? l : Pe(this.columns, this._sort, {
|
|
1044
996
|
expandable: this.layout.hasExpansion(),
|
|
1045
997
|
resizeLabel: (t) => j(e.resizeColumn, { column: t })
|
|
1046
998
|
})}
|
|
1047
|
-
${
|
|
999
|
+
${Le({
|
|
1048
1000
|
rows: i,
|
|
1049
1001
|
rowCount: this._rows.length,
|
|
1050
1002
|
columns: this.columns,
|
|
@@ -1103,7 +1055,7 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
1103
1055
|
};
|
|
1104
1056
|
}
|
|
1105
1057
|
_createRecords() {
|
|
1106
|
-
return this._isDataMode ?
|
|
1058
|
+
return this._isDataMode ? xe(this.items ?? [], this.itemValue) : this._declarativeRows().map((e, t) => ({
|
|
1107
1059
|
item: {},
|
|
1108
1060
|
value: e.value || String(t),
|
|
1109
1061
|
index: t,
|
|
@@ -1238,27 +1190,34 @@ var V = (e) => e.sortKey ?? e.accessorKey ?? e.id, H = (e, t) => {
|
|
|
1238
1190
|
return M(e) ?? e.find((e) => G(e) && (e.localName === "luzmo-table-disclosure-cell" || e.classList.contains("cell") && e.getAttribute("role") === "gridcell")) ?? this._cellFromPath(e);
|
|
1239
1191
|
}
|
|
1240
1192
|
};
|
|
1241
|
-
t([
|
|
1193
|
+
t([d({ reflect: !0 })], K.prototype, "role", void 0), t([d({ reflect: !0 })], K.prototype, "density", void 0), t([d({
|
|
1242
1194
|
type: Boolean,
|
|
1243
1195
|
reflect: !0
|
|
1244
|
-
})], K.prototype, "emphasized", void 0), t([
|
|
1196
|
+
})], K.prototype, "emphasized", void 0), t([d({
|
|
1245
1197
|
type: Boolean,
|
|
1246
1198
|
reflect: !0
|
|
1247
|
-
})], K.prototype, "quiet", void 0), t([
|
|
1199
|
+
})], K.prototype, "quiet", void 0), t([d({
|
|
1248
1200
|
type: Boolean,
|
|
1249
1201
|
reflect: !0
|
|
1250
|
-
})], K.prototype, "scroller", void 0), t([
|
|
1202
|
+
})], K.prototype, "scroller", void 0), t([d({ reflect: !0 })], K.prototype, "selects", void 0), t([d({ attribute: !1 })], K.prototype, "selected", void 0), t([d({
|
|
1251
1203
|
reflect: !0,
|
|
1252
1204
|
attribute: "select-all-label"
|
|
1253
|
-
})], K.prototype, "selectAllLabel", void 0), t([
|
|
1205
|
+
})], K.prototype, "selectAllLabel", void 0), t([d({ attribute: !1 })], K.prototype, "items", void 0), t([d({ attribute: !1 })], K.prototype, "itemValue", void 0), t([d({ attribute: !1 })], K.prototype, "itemLabel", void 0), t([s({
|
|
1206
|
+
slot: "row",
|
|
1207
|
+
context: ["item", "index"],
|
|
1208
|
+
implicit: "item"
|
|
1209
|
+
})], K.prototype, "renderItem", void 0), t([d({ attribute: !1 })], K.prototype, "expanded", void 0), t([s({
|
|
1210
|
+
slot: "details",
|
|
1211
|
+
context: ["item", "index"],
|
|
1212
|
+
implicit: "item"
|
|
1213
|
+
})], K.prototype, "renderDetails", void 0), t([d({ attribute: !1 })], K.prototype, "columnWidths", void 0), t([d({ attribute: !1 })], K.prototype, "columns", void 0), t([d({
|
|
1254
1214
|
type: Boolean,
|
|
1255
1215
|
reflect: !0
|
|
1256
|
-
})], K.prototype, "virtualized", void 0), t([
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
var Ue = ":host{box-sizing:border-box;min-block-size:0;min-inline-size:0;overflow-x:auto;overflow-y:var(--table-body-overflow,visible);overflow-anchor:none;outline:none;flex:auto;display:block}:host::-webkit-scrollbar{width:var(--luzmo-table-scrollbar-width,var(--table-body-scrollbar-width));height:var(--luzmo-table-scrollbar-width,var(--table-body-scrollbar-width))}:host::-webkit-scrollbar-track{background:var(--luzmo-table-scrollbar-track-background,var(--table-body-scrollbar-track-background));border-radius:var(--luzmo-table-scrollbar-track-border-radius,var(--table-body-scrollbar-track-border-radius))}:host::-webkit-scrollbar-thumb{background:var(--luzmo-table-scrollbar-thumb-background,var(--table-body-scrollbar-thumb-background));border-radius:var(--luzmo-table-scrollbar-thumb-border-radius,var(--table-body-scrollbar-thumb-border-radius))}:host::-webkit-scrollbar-thumb:hover{background:var(--luzmo-table-scrollbar-thumb-hover-background,var(--table-body-scrollbar-thumb-hover-background))}:host{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-table-scrollbar-thumb-background,var(--table-body-scrollbar-thumb-background)) var(--luzmo-table-scrollbar-track-background,var(--table-body-scrollbar-track-background))}::slotted(.row-group),::slotted(.virtual-spacer){min-inline-size:var(--table-min-inline-size,0);overflow-anchor:none;display:flow-root}:host(:focus-visible){outline:var(--table-body-focus-indicator-width) solid var(--highcontrast-table-body-focus-indicator-color,var(--table-body-focus-indicator-color));outline-offset:calc(var(--table-body-focus-indicator-width) * -1);border-end-end-radius:var(--table-corner-radius,0);border-end-start-radius:var(--table-corner-radius,0)}:host{--table-body-scrollbar-width:var(--luzmo-scrollbar-size);--table-body-scrollbar-track-background:var(--luzmo-scrollbar-track-background);--table-body-scrollbar-track-border-radius:var(--luzmo-scrollbar-track-border-radius);--table-body-scrollbar-thumb-background:var(--luzmo-scrollbar-thumb-background);--table-body-scrollbar-thumb-border-radius:var(--luzmo-scrollbar-thumb-border-radius);--table-body-scrollbar-thumb-hover-background:var(--luzmo-scrollbar-thumb-hover-background);--table-body-focus-indicator-width:calc(var(--luzmo-indicator-width) * 2);--table-body-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-body-focus-indicator-color:Highlight}}", q = class extends e {
|
|
1216
|
+
})], K.prototype, "virtualized", void 0), t([d({ attribute: !1 })], K.prototype, "labels", void 0), t([p()], K.prototype, "_sort", void 0), t([p()], K.prototype, "_clientSort", void 0), t([p()], K.prototype, "_lightDomVersion", void 0);
|
|
1217
|
+
// src/components/table/table-body.module.scss?inline
|
|
1218
|
+
var We = ":host{box-sizing:border-box;min-block-size:0;min-inline-size:0;overflow-x:auto;overflow-y:var(--table-body-overflow,visible);overflow-anchor:none;outline:none;flex:auto;display:block}:host::-webkit-scrollbar{width:var(--luzmo-table-scrollbar-width,var(--table-body-scrollbar-width));height:var(--luzmo-table-scrollbar-width,var(--table-body-scrollbar-width))}:host::-webkit-scrollbar-track{background:var(--luzmo-table-scrollbar-track-background,var(--table-body-scrollbar-track-background));border-radius:var(--luzmo-table-scrollbar-track-border-radius,var(--table-body-scrollbar-track-border-radius))}:host::-webkit-scrollbar-thumb{background:var(--luzmo-table-scrollbar-thumb-background,var(--table-body-scrollbar-thumb-background));border-radius:var(--luzmo-table-scrollbar-thumb-border-radius,var(--table-body-scrollbar-thumb-border-radius))}:host::-webkit-scrollbar-thumb:hover{background:var(--luzmo-table-scrollbar-thumb-hover-background,var(--table-body-scrollbar-thumb-hover-background))}:host{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-table-scrollbar-thumb-background,var(--table-body-scrollbar-thumb-background)) var(--luzmo-table-scrollbar-track-background,var(--table-body-scrollbar-track-background))}::slotted(.row-group),::slotted(.virtual-spacer){min-inline-size:var(--table-min-inline-size,0);overflow-anchor:none;display:flow-root}:host(:focus-visible){outline:var(--table-body-focus-indicator-width) solid var(--highcontrast-table-body-focus-indicator-color,var(--table-body-focus-indicator-color));outline-offset:calc(var(--table-body-focus-indicator-width) * -1);border-end-end-radius:var(--table-corner-radius,0);border-end-start-radius:var(--table-corner-radius,0)}:host{--table-body-scrollbar-width:var(--luzmo-scrollbar-size);--table-body-scrollbar-track-background:var(--luzmo-scrollbar-track-background);--table-body-scrollbar-track-border-radius:var(--luzmo-scrollbar-track-border-radius);--table-body-scrollbar-thumb-background:var(--luzmo-scrollbar-thumb-background);--table-body-scrollbar-thumb-border-radius:var(--luzmo-scrollbar-thumb-border-radius);--table-body-scrollbar-thumb-hover-background:var(--luzmo-scrollbar-thumb-hover-background);--table-body-focus-indicator-width:calc(var(--luzmo-indicator-width) * 2);--table-body-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-body-focus-indicator-color:Highlight}}", q = class extends e {
|
|
1260
1219
|
static get styles() {
|
|
1261
|
-
return z(super.styles,
|
|
1220
|
+
return z(super.styles, We);
|
|
1262
1221
|
}
|
|
1263
1222
|
constructor() {
|
|
1264
1223
|
super(), this.role = "rowgroup", this._handleScroll = () => {
|
|
@@ -1275,62 +1234,60 @@ var Ue = ":host{box-sizing:border-box;min-block-size:0;min-inline-size:0;overflo
|
|
|
1275
1234
|
this.resizeObserver?.disconnect(), this.mutationObserver?.disconnect(), super.disconnectedCallback();
|
|
1276
1235
|
}
|
|
1277
1236
|
render() {
|
|
1278
|
-
return
|
|
1237
|
+
return c`<slot @slotchange=${this._syncTabStop}></slot>`;
|
|
1279
1238
|
}
|
|
1280
1239
|
_syncTabStop() {
|
|
1281
1240
|
this.scrollHeight > this.clientHeight || this.scrollWidth > this.clientWidth ? this.setAttribute("tabindex", "0") : this.removeAttribute("tabindex");
|
|
1282
1241
|
}
|
|
1283
1242
|
};
|
|
1284
|
-
t([
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
var We = ":host{box-sizing:border-box;min-inline-size:0;padding-block:var(--table-cell-padding-block);padding-inline:var(--luzmo-table-cell-padding-inline,var(--table-cell-padding-inline));outline:none;align-self:stretch;align-items:center;display:flex;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host([span-all]){grid-column:1/-1;border-inline-end-width:0!important}:host(:last-of-type){border-inline-end-width:0!important}.content{overflow-wrap:anywhere;min-inline-size:0;overflow:hidden}.content.clamped{-webkit-line-clamp:var(--table-cell-line-clamp);line-clamp:var(--table-cell-line-clamp);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:host(:focus-visible){outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-cell-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}:host{--table-cell-focus-indicator-width:var(--luzmo-indicator-width);--table-cell-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-cell-focus-indicator-color:Highlight}}", J = class extends e {
|
|
1243
|
+
t([d({ reflect: !0 })], q.prototype, "role", void 0);
|
|
1244
|
+
// src/components/table/table-cell.module.scss?inline
|
|
1245
|
+
var Ge = ":host{box-sizing:border-box;min-inline-size:0;padding-block:var(--table-cell-padding-block);padding-inline:var(--luzmo-table-cell-padding-inline,var(--table-cell-padding-inline));outline:none;align-self:stretch;align-items:center;display:flex;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host([span-all]){grid-column:1/-1;border-inline-end-width:0!important}:host(:last-of-type){border-inline-end-width:0!important}.content{overflow-wrap:anywhere;min-inline-size:0;overflow:hidden}.content.clamped{-webkit-line-clamp:var(--table-cell-line-clamp);line-clamp:var(--table-cell-line-clamp);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:host(:focus-visible){outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-cell-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}:host{--table-cell-focus-indicator-width:var(--luzmo-indicator-width);--table-cell-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-cell-focus-indicator-color:Highlight}}", J = class extends e {
|
|
1288
1246
|
constructor(...e) {
|
|
1289
1247
|
super(...e), this.role = "gridcell", this.spanAll = !1;
|
|
1290
1248
|
}
|
|
1291
1249
|
static get styles() {
|
|
1292
|
-
return z(super.styles,
|
|
1250
|
+
return z(super.styles, Ge);
|
|
1293
1251
|
}
|
|
1294
1252
|
willUpdate(e) {
|
|
1295
1253
|
super.willUpdate(e), e.has("lineClamp") && !w(this.lineClamp) && (this.lineClamp = void 0);
|
|
1296
1254
|
}
|
|
1297
1255
|
render() {
|
|
1298
1256
|
let e = w(this.lineClamp) ?? w(this.columnLineClamp);
|
|
1299
|
-
return
|
|
1257
|
+
return c`
|
|
1300
1258
|
<div
|
|
1301
|
-
class=${
|
|
1259
|
+
class=${y({
|
|
1302
1260
|
content: !0,
|
|
1303
1261
|
clamped: e !== void 0
|
|
1304
1262
|
})}
|
|
1305
|
-
style=${
|
|
1263
|
+
style=${b(e ? { "--table-cell-line-clamp": String(e) } : {})}
|
|
1306
1264
|
>
|
|
1307
1265
|
<slot></slot>
|
|
1308
1266
|
</div>
|
|
1309
1267
|
`;
|
|
1310
1268
|
}
|
|
1311
1269
|
};
|
|
1312
|
-
t([
|
|
1270
|
+
t([d({ reflect: !0 })], J.prototype, "role", void 0), t([d({
|
|
1313
1271
|
type: Number,
|
|
1314
1272
|
reflect: !0,
|
|
1315
1273
|
attribute: "line-clamp"
|
|
1316
|
-
})], J.prototype, "lineClamp", void 0), t([
|
|
1274
|
+
})], J.prototype, "lineClamp", void 0), t([d({
|
|
1317
1275
|
type: Boolean,
|
|
1318
1276
|
reflect: !0,
|
|
1319
1277
|
attribute: "span-all"
|
|
1320
|
-
})], J.prototype, "spanAll", void 0), t([
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
var Ge = ":host{flex:0 0 var(--table-checkbox-cell-inline-size);box-sizing:border-box;padding-block:var(--table-cell-padding-block);outline:none;justify-content:center;align-self:stretch;align-items:center;display:flex;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host(:focus-visible){outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-checkbox-cell-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}.checkbox{margin:0}.label{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}:host{--table-checkbox-cell-focus-indicator-width:var(--luzmo-indicator-width);--table-checkbox-cell-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-checkbox-cell-focus-indicator-color:Highlight}}", Y = class extends e {
|
|
1278
|
+
})], J.prototype, "spanAll", void 0), t([p()], J.prototype, "columnLineClamp", void 0);
|
|
1279
|
+
// src/components/table/table-checkbox-cell.module.scss?inline
|
|
1280
|
+
var Ke = ":host{flex:0 0 var(--table-checkbox-cell-inline-size);box-sizing:border-box;padding-block:var(--table-cell-padding-block);outline:none;justify-content:center;align-self:stretch;align-items:center;display:flex;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host(:focus-visible){outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-checkbox-cell-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}.checkbox{margin:0}.label{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}:host{--table-checkbox-cell-focus-indicator-width:var(--luzmo-indicator-width);--table-checkbox-cell-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-checkbox-cell-focus-indicator-color:Highlight}}", Y = class extends e {
|
|
1324
1281
|
static get styles() {
|
|
1325
|
-
return z(super.styles,
|
|
1282
|
+
return z(super.styles, Ke);
|
|
1326
1283
|
}
|
|
1327
1284
|
constructor() {
|
|
1328
1285
|
super(), this.role = "gridcell", this.headCell = !1, this.checked = !1, this.indeterminate = !1, this.disabled = !1, this.selectsSingle = !1, this.emphasized = !1, this.label = "", this.size = "m", this.handleClick = (e) => {
|
|
1329
|
-
|
|
1286
|
+
this.checkbox && !e.composedPath().includes(this.checkbox) && this.checkbox.click();
|
|
1330
1287
|
}, this.addEventListener("click", this.handleClick);
|
|
1331
1288
|
}
|
|
1332
1289
|
render() {
|
|
1333
|
-
return this.headCell && this.selectsSingle ?
|
|
1290
|
+
return this.headCell && this.selectsSingle ? l : c`
|
|
1334
1291
|
<luzmo-checkbox
|
|
1335
1292
|
class="checkbox"
|
|
1336
1293
|
tabindex="-1"
|
|
@@ -1339,9 +1296,9 @@ var Ge = ":host{flex:0 0 var(--table-checkbox-cell-inline-size);box-sizing:borde
|
|
|
1339
1296
|
.indeterminate=${this.indeterminate}
|
|
1340
1297
|
?disabled=${this.disabled}
|
|
1341
1298
|
?emphasized=${this.emphasized}
|
|
1342
|
-
aria-hidden=${
|
|
1299
|
+
aria-hidden=${v(this.selectsSingle ? "true" : void 0)}
|
|
1343
1300
|
>
|
|
1344
|
-
${this.label ?
|
|
1301
|
+
${this.label ? c`<span class="label">${this.label}</span>` : l}
|
|
1345
1302
|
</luzmo-checkbox>
|
|
1346
1303
|
`;
|
|
1347
1304
|
}
|
|
@@ -1349,32 +1306,31 @@ var Ge = ":host{flex:0 0 var(--table-checkbox-cell-inline-size);box-sizing:borde
|
|
|
1349
1306
|
super.willUpdate(e), (e.has("headCell") || e.has("selectsSingle")) && (this.role = this.headCell && !this.selectsSingle ? "columnheader" : "gridcell"), e.has("selectsSingle") && (this.selectsSingle ? (this.setAttribute("aria-hidden", "true"), this.tabIndex = -1) : this.removeAttribute("aria-hidden"));
|
|
1350
1307
|
}
|
|
1351
1308
|
};
|
|
1352
|
-
t([
|
|
1309
|
+
t([d({ reflect: !0 })], Y.prototype, "role", void 0), t([d({
|
|
1353
1310
|
type: Boolean,
|
|
1354
1311
|
reflect: !0,
|
|
1355
1312
|
attribute: "head-cell"
|
|
1356
|
-
})], Y.prototype, "headCell", void 0), t([
|
|
1313
|
+
})], Y.prototype, "headCell", void 0), t([d({
|
|
1357
1314
|
type: Boolean,
|
|
1358
1315
|
reflect: !0
|
|
1359
|
-
})], Y.prototype, "checked", void 0), t([
|
|
1316
|
+
})], Y.prototype, "checked", void 0), t([d({
|
|
1360
1317
|
type: Boolean,
|
|
1361
1318
|
reflect: !0
|
|
1362
|
-
})], Y.prototype, "indeterminate", void 0), t([
|
|
1319
|
+
})], Y.prototype, "indeterminate", void 0), t([d({
|
|
1363
1320
|
type: Boolean,
|
|
1364
1321
|
reflect: !0
|
|
1365
|
-
})], Y.prototype, "disabled", void 0), t([
|
|
1322
|
+
})], Y.prototype, "disabled", void 0), t([d({
|
|
1366
1323
|
type: Boolean,
|
|
1367
1324
|
reflect: !0,
|
|
1368
1325
|
attribute: "selects-single"
|
|
1369
|
-
})], Y.prototype, "selectsSingle", void 0), t([
|
|
1326
|
+
})], Y.prototype, "selectsSingle", void 0), t([d({
|
|
1370
1327
|
type: Boolean,
|
|
1371
1328
|
reflect: !0
|
|
1372
|
-
})], Y.prototype, "emphasized", void 0), t([
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
var Ke = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:var(--table-min-inline-size,0);box-sizing:border-box;min-block-size:calc(var(--luzmo-table-row-min-block-size,var(--table-row-min-block-size)) + var(--table-row-density-offset));background-color:var(--table-head-background-color);flex:none;align-items:stretch;display:grid;border-block-start:none!important;border-inline:none!important;border-block-end-width:var(--table-head-divider-width)!important;border-block-end-style:solid!important;border-block-end-color:var(--highcontrast-table-head-divider-color,var(--luzmo-table-border-color,var(--table-head-divider-color)))!important}luzmo-table-checkbox-cell,.leading::slotted(luzmo-table-head-cell:first-of-type){--table-focus-start-start-radius:var(--table-corner-radius)}.disclosure-spacer{box-sizing:border-box;inline-size:var(--table-disclosure-cell-inline-size);align-self:stretch;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host{--table-head-background-color:rgba(var(--luzmo-background-color-rgb), 0);--table-head-divider-color:var(--luzmo-border-color);--table-head-divider-width:var(--luzmo-border-width)}@media (forced-colors:active){:host{--highcontrast-table-head-divider-color:CanvasText}}", X = class extends e {
|
|
1329
|
+
})], Y.prototype, "emphasized", void 0), t([d({ reflect: !0 })], Y.prototype, "label", void 0), t([p()], Y.prototype, "size", void 0), t([f("luzmo-checkbox")], Y.prototype, "checkbox", void 0);
|
|
1330
|
+
// src/components/table/table-head.module.scss?inline
|
|
1331
|
+
var qe = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:var(--table-min-inline-size,0);box-sizing:border-box;min-block-size:calc(var(--luzmo-table-row-min-block-size,var(--table-row-min-block-size)) + var(--table-row-density-offset));background-color:var(--table-head-background-color);flex:none;align-items:stretch;display:grid;border-block-start:none!important;border-inline:none!important;border-block-end-width:var(--table-head-divider-width)!important;border-block-end-style:solid!important;border-block-end-color:var(--highcontrast-table-head-divider-color,var(--luzmo-table-border-color,var(--table-head-divider-color)))!important}luzmo-table-checkbox-cell,.leading::slotted(luzmo-table-head-cell:first-of-type){--table-focus-start-start-radius:var(--table-corner-radius)}.disclosure-spacer{box-sizing:border-box;inline-size:var(--table-disclosure-cell-inline-size);align-self:stretch;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host{--table-head-background-color:rgba(var(--luzmo-background-color-rgb), 0);--table-head-divider-color:var(--luzmo-border-color);--table-head-divider-width:var(--luzmo-border-width)}@media (forced-colors:active){:host{--highcontrast-table-head-divider-color:CanvasText}}", X = class extends e {
|
|
1376
1332
|
static get styles() {
|
|
1377
|
-
return z(super.styles,
|
|
1333
|
+
return z(super.styles, qe);
|
|
1378
1334
|
}
|
|
1379
1335
|
constructor() {
|
|
1380
1336
|
super(), this.role = "row", this.selected = !1, this.checked = !1, this.indeterminate = !1, this.emphasized = !1, this.checkboxLabel = "", this.checkboxSize = "m", this.expandable = !1, this.handleSorted = (e) => {
|
|
@@ -1384,7 +1340,7 @@ var Ke = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:
|
|
|
1384
1340
|
}, this.addEventListener("luzmo-table-sorted", this.handleSorted);
|
|
1385
1341
|
}
|
|
1386
1342
|
render() {
|
|
1387
|
-
|
|
1343
|
+
let e = this.selects ? c`
|
|
1388
1344
|
<luzmo-table-checkbox-cell
|
|
1389
1345
|
head-cell
|
|
1390
1346
|
.checked=${this.checked}
|
|
@@ -1394,28 +1350,28 @@ var Ke = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:
|
|
|
1394
1350
|
.label=${this.checkboxLabel}
|
|
1395
1351
|
.size=${this.checkboxSize}
|
|
1396
1352
|
></luzmo-table-checkbox-cell>
|
|
1397
|
-
` :
|
|
1398
|
-
|
|
1353
|
+
` : l, t = this.expandable ? c`<span class="disclosure-spacer" role="gridcell"></span>` : l, n = !this.selects && !this.expandable;
|
|
1354
|
+
return c`${e}${t}<slot
|
|
1355
|
+
class=${n ? "leading" : ""}
|
|
1399
1356
|
></slot>`;
|
|
1400
1357
|
}
|
|
1401
1358
|
};
|
|
1402
|
-
t([
|
|
1359
|
+
t([d({ reflect: !0 })], X.prototype, "role", void 0), t([d({
|
|
1403
1360
|
type: Boolean,
|
|
1404
1361
|
reflect: !0
|
|
1405
|
-
})], X.prototype, "selected", void 0), t([
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
var qe = ":host{align-self:stretch;align-items:center;gap:var(--luzmo-spacing-2);box-sizing:border-box;min-inline-size:0;padding-block:var(--table-cell-padding-block);padding-inline:var(--luzmo-table-cell-padding-inline,var(--table-cell-padding-inline));font-weight:var(--table-head-cell-font-weight);color:var(--table-head-cell-font-color);text-align:start;outline:none;display:flex;position:relative;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host(:last-of-type){--table-focus-start-end-radius:var(--table-corner-radius);border-inline-end-width:0!important}.content{overflow-wrap:anywhere;flex:auto;min-inline-size:0;overflow:hidden}.content.clamped{-webkit-line-clamp:var(--table-cell-line-clamp);line-clamp:var(--table-cell-line-clamp);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.resize-handle{z-index:1;inline-size:var(--luzmo-component-height-xs);box-sizing:border-box;cursor:col-resize;touch-action:none;justify-content:center;align-items:stretch;display:flex;position:absolute;inset-block:0;inset-inline-end:calc(var(--luzmo-spacing-4) * -1)}.resize-handle:before{content:\"\";inline-size:var(--luzmo-indicator-gap,2px);background:var(--luzmo-indicator-color,currentColor);opacity:0}.resize-handle:hover:before,.resize-handle:active:before,.resize-handle:focus-visible:before{opacity:1}:host(:last-of-type) .resize-handle{justify-content:flex-end;inset-inline-end:0}.resize-handle:focus,.resize-handle:focus-visible{outline:none}:host([sortable]){cursor:pointer;-webkit-user-select:none;user-select:none}:host([sortable]:hover){color:var(--table-head-cell-font-color-hover)}:host([active]){color:var(--table-head-cell-font-color-down)}:host(:focus-visible){outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-head-cell-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}.sort-icon{inline-size:var(--table-sort-icon-size);block-size:var(--table-sort-icon-size);flex:none;display:inline-flex}.sort-icon svg{fill:currentColor;block-size:100%;inline-size:100%}@media (forced-colors:active){.resize-handle:before{background:canvastext}}:host{--table-head-cell-font-weight:var(--luzmo-font-weight-bold);--table-head-cell-font-color:var(--luzmo-font-color);--table-head-cell-font-color-hover:var(--luzmo-font-color-hover);--table-head-cell-font-color-down:var(--luzmo-font-color-down);--table-head-cell-focus-indicator-width:var(--luzmo-indicator-width);--table-head-cell-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-head-cell-focus-indicator-color:Highlight}}", Z = class extends e {
|
|
1362
|
+
})], X.prototype, "selected", void 0), t([p()], X.prototype, "selects", void 0), t([p()], X.prototype, "checked", void 0), t([p()], X.prototype, "indeterminate", void 0), t([p()], X.prototype, "emphasized", void 0), t([p()], X.prototype, "checkboxLabel", void 0), t([p()], X.prototype, "checkboxSize", void 0), t([p()], X.prototype, "expandable", void 0);
|
|
1363
|
+
// src/components/table/table-head-cell.module.scss?inline
|
|
1364
|
+
var Je = ":host{align-self:stretch;align-items:center;gap:var(--luzmo-spacing-2);box-sizing:border-box;min-inline-size:0;padding-block:var(--table-cell-padding-block);padding-inline:var(--luzmo-table-cell-padding-inline,var(--table-cell-padding-inline));font-weight:var(--table-head-cell-font-weight);color:var(--table-head-cell-font-color);text-align:start;outline:none;display:flex;position:relative;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host(:last-of-type){--table-focus-start-end-radius:var(--table-corner-radius);border-inline-end-width:0!important}.content{overflow-wrap:anywhere;flex:auto;min-inline-size:0;overflow:hidden}.content.clamped{-webkit-line-clamp:var(--table-cell-line-clamp);line-clamp:var(--table-cell-line-clamp);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.resize-handle{z-index:1;inline-size:var(--luzmo-component-height-xs);box-sizing:border-box;cursor:col-resize;touch-action:none;justify-content:center;align-items:stretch;display:flex;position:absolute;inset-block:0;inset-inline-end:calc(var(--luzmo-spacing-4) * -1)}.resize-handle:before{content:\"\";inline-size:var(--luzmo-indicator-gap,2px);background:var(--luzmo-indicator-color,currentColor);opacity:0}.resize-handle:hover:before,.resize-handle:active:before,.resize-handle:focus-visible:before{opacity:1}:host(:last-of-type) .resize-handle{justify-content:flex-end;inset-inline-end:0}.resize-handle:focus,.resize-handle:focus-visible{outline:none}:host([sortable]){cursor:pointer;-webkit-user-select:none;user-select:none}:host([sortable]:hover){color:var(--table-head-cell-font-color-hover)}:host([active]){color:var(--table-head-cell-font-color-down)}:host(:focus-visible){outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-head-cell-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}.sort-icon{inline-size:var(--table-sort-icon-size);block-size:var(--table-sort-icon-size);flex:none;display:inline-flex}.sort-icon svg{fill:currentColor;block-size:100%;inline-size:100%}@media (forced-colors:active){.resize-handle:before{background:canvastext}}:host{--table-head-cell-font-weight:var(--luzmo-font-weight-bold);--table-head-cell-font-color:var(--luzmo-font-color);--table-head-cell-font-color-hover:var(--luzmo-font-color-hover);--table-head-cell-font-color-down:var(--luzmo-font-color-down);--table-head-cell-focus-indicator-width:var(--luzmo-indicator-width);--table-head-cell-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-head-cell-focus-indicator-color:Highlight}}", Z = class extends e {
|
|
1409
1365
|
static get styles() {
|
|
1410
|
-
return z(super.styles,
|
|
1366
|
+
return z(super.styles, Je);
|
|
1411
1367
|
}
|
|
1412
1368
|
constructor() {
|
|
1413
1369
|
super(), this.role = "columnheader", this.active = !1, this.sortable = !1, this.sortKey = "", this.columnId = "", this.resizable = !1, this.currentWidth = 0, this.resizeLabel = "", this.handleClick = (e) => {
|
|
1414
1370
|
e.composedPath().some((e) => e instanceof HTMLElement && e.classList.contains("resize-handle")) || this._sort();
|
|
1415
1371
|
}, this.handleKeydown = (e) => {
|
|
1416
|
-
|
|
1372
|
+
this.sortable && e.composedPath()[0] === this && (e.code === "Enter" || e.code === "NumpadEnter" ? (e.preventDefault(), this._sort()) : e.code === "Space" && (e.preventDefault(), this.active = !0));
|
|
1417
1373
|
}, this.handleKeyup = (e) => {
|
|
1418
|
-
e.code
|
|
1374
|
+
e.code === "Space" && this.active && (this.active = !1, this._sort());
|
|
1419
1375
|
}, this.handleBlur = () => {
|
|
1420
1376
|
this.active = !1;
|
|
1421
1377
|
}, this.addEventListener("click", this.handleClick), this.addEventListener("keydown", this.handleKeydown), this.addEventListener("keyup", this.handleKeyup), this.addEventListener("blur", this.handleBlur);
|
|
@@ -1432,9 +1388,9 @@ var qe = ":host{align-self:stretch;align-items:center;gap:var(--luzmo-spacing-2)
|
|
|
1432
1388
|
};
|
|
1433
1389
|
}
|
|
1434
1390
|
render() {
|
|
1435
|
-
let e = w(this.lineClamp), t = this.sortable && this.sortDirection ?
|
|
1436
|
-
>${
|
|
1437
|
-
>` :
|
|
1391
|
+
let e = w(this.lineClamp), t = this.sortable && this.sortDirection ? c`<span class="sort-icon" aria-hidden="true"
|
|
1392
|
+
>${_(this.sortDirection === "asc" ? g : h)}</span
|
|
1393
|
+
>` : l, n = this.toLayout(0), r = this.resizable ? c`
|
|
1438
1394
|
<div
|
|
1439
1395
|
class="resize-handle"
|
|
1440
1396
|
tabindex="0"
|
|
@@ -1443,17 +1399,17 @@ var qe = ":host{align-self:stretch;align-items:center;gap:var(--luzmo-spacing-2)
|
|
|
1443
1399
|
aria-valuemin=${E(n)}
|
|
1444
1400
|
aria-valuemax=${D(n)}
|
|
1445
1401
|
aria-valuenow=${Math.round(this.currentWidth)}
|
|
1446
|
-
aria-label=${
|
|
1402
|
+
aria-label=${v(this.resizeLabel || void 0)}
|
|
1447
1403
|
aria-keyshortcuts="ArrowLeft ArrowRight PageUp PageDown Home End"
|
|
1448
1404
|
></div>
|
|
1449
|
-
` :
|
|
1450
|
-
return
|
|
1405
|
+
` : l;
|
|
1406
|
+
return c`
|
|
1451
1407
|
<div
|
|
1452
|
-
class=${
|
|
1408
|
+
class=${y({
|
|
1453
1409
|
content: !0,
|
|
1454
1410
|
clamped: e !== void 0
|
|
1455
1411
|
})}
|
|
1456
|
-
style=${
|
|
1412
|
+
style=${b(e ? { "--table-cell-line-clamp": String(e) } : {})}
|
|
1457
1413
|
>
|
|
1458
1414
|
<slot></slot>
|
|
1459
1415
|
</div>
|
|
@@ -1461,10 +1417,10 @@ var qe = ":host{align-self:stretch;align-items:center;gap:var(--luzmo-spacing-2)
|
|
|
1461
1417
|
`;
|
|
1462
1418
|
}
|
|
1463
1419
|
updated(e) {
|
|
1464
|
-
super.updated(e), (e.has("sortable") || e.has("sortDirection")) && (this.sortable ? this.setAttribute("aria-sort",
|
|
1420
|
+
super.updated(e), (e.has("sortable") || e.has("sortDirection")) && (this.sortable ? this.setAttribute("aria-sort", ye(this.sortDirection)) : this.removeAttribute("aria-sort"));
|
|
1465
1421
|
}
|
|
1466
1422
|
_sort() {
|
|
1467
|
-
this.sortable && (this.sortDirection =
|
|
1423
|
+
this.sortable && (this.sortDirection = be(this.sortDirection), this.dispatchEvent(new CustomEvent("luzmo-table-sorted", {
|
|
1468
1424
|
bubbles: !0,
|
|
1469
1425
|
composed: !0,
|
|
1470
1426
|
cancelable: !0,
|
|
@@ -1475,82 +1431,80 @@ var qe = ":host{align-self:stretch;align-items:center;gap:var(--luzmo-spacing-2)
|
|
|
1475
1431
|
})));
|
|
1476
1432
|
}
|
|
1477
1433
|
};
|
|
1478
|
-
t([
|
|
1434
|
+
t([d({ reflect: !0 })], Z.prototype, "role", void 0), t([d({
|
|
1479
1435
|
type: Boolean,
|
|
1480
1436
|
reflect: !0
|
|
1481
|
-
})], Z.prototype, "active", void 0), t([
|
|
1437
|
+
})], Z.prototype, "active", void 0), t([d({
|
|
1482
1438
|
type: Boolean,
|
|
1483
1439
|
reflect: !0
|
|
1484
|
-
})], Z.prototype, "sortable", void 0), t([
|
|
1440
|
+
})], Z.prototype, "sortable", void 0), t([d({
|
|
1485
1441
|
reflect: !0,
|
|
1486
1442
|
attribute: "sort-direction"
|
|
1487
|
-
})], Z.prototype, "sortDirection", void 0), t([
|
|
1443
|
+
})], Z.prototype, "sortDirection", void 0), t([d({
|
|
1488
1444
|
reflect: !0,
|
|
1489
1445
|
attribute: "sort-key"
|
|
1490
|
-
})], Z.prototype, "sortKey", void 0), t([
|
|
1446
|
+
})], Z.prototype, "sortKey", void 0), t([d({
|
|
1491
1447
|
reflect: !0,
|
|
1492
1448
|
attribute: "column-id"
|
|
1493
|
-
})], Z.prototype, "columnId", void 0), t([
|
|
1449
|
+
})], Z.prototype, "columnId", void 0), t([d({
|
|
1494
1450
|
type: Number,
|
|
1495
1451
|
reflect: !0
|
|
1496
|
-
})], Z.prototype, "width", void 0), t([
|
|
1452
|
+
})], Z.prototype, "width", void 0), t([d({
|
|
1497
1453
|
type: Number,
|
|
1498
1454
|
reflect: !0,
|
|
1499
1455
|
attribute: "min-width"
|
|
1500
|
-
})], Z.prototype, "minWidth", void 0), t([
|
|
1456
|
+
})], Z.prototype, "minWidth", void 0), t([d({
|
|
1501
1457
|
type: Number,
|
|
1502
1458
|
reflect: !0,
|
|
1503
1459
|
attribute: "max-width"
|
|
1504
|
-
})], Z.prototype, "maxWidth", void 0), t([
|
|
1460
|
+
})], Z.prototype, "maxWidth", void 0), t([d({
|
|
1505
1461
|
type: Boolean,
|
|
1506
1462
|
reflect: !0
|
|
1507
|
-
})], Z.prototype, "resizable", void 0), t([
|
|
1463
|
+
})], Z.prototype, "resizable", void 0), t([d({
|
|
1508
1464
|
type: Number,
|
|
1509
1465
|
reflect: !0,
|
|
1510
1466
|
attribute: "line-clamp"
|
|
1511
|
-
})], Z.prototype, "lineClamp", void 0), t([
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
var Je = ":host{flex:0 0 var(--table-disclosure-cell-inline-size);box-sizing:border-box;min-inline-size:var(--table-disclosure-cell-inline-size);outline:none;justify-content:center;align-self:stretch;align-items:center;display:flex;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host(:focus-visible){outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-disclosure-cell-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}.button{block-size:100%;inline-size:100%;min-inline-size:var(--luzmo-component-height-xs);min-block-size:var(--luzmo-component-height-xs);background:rgba(var(--luzmo-background-color-rgb), 0);color:inherit;cursor:pointer;border:0;outline:none;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex}.icon{inline-size:var(--table-sort-icon-size);block-size:var(--table-sort-icon-size);display:inline-flex;transform:rotate(-90deg)}.icon svg{fill:currentColor;block-size:100%;inline-size:100%}:host([expanded]) .icon{transform:rotate(0)}:host([dir=rtl]:not([expanded])) .icon{transform:rotate(90deg)}@media (prefers-reduced-motion:no-preference){.icon{transition:transform var(--luzmo-animation-duration) ease}}:host{--table-disclosure-cell-focus-indicator-width:var(--luzmo-indicator-width);--table-disclosure-cell-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-disclosure-cell-focus-indicator-color:Highlight}}", Q = class extends e {
|
|
1467
|
+
})], Z.prototype, "lineClamp", void 0), t([p()], Z.prototype, "currentWidth", void 0), t([p()], Z.prototype, "resizeLabel", void 0);
|
|
1468
|
+
// src/components/table/table-disclosure-cell.module.scss?inline
|
|
1469
|
+
var Ye = ":host{flex:0 0 var(--table-disclosure-cell-inline-size);box-sizing:border-box;min-inline-size:var(--table-disclosure-cell-inline-size);outline:none;justify-content:center;align-self:stretch;align-items:center;display:flex;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}:host(:focus-visible){outline:var(--luzmo-indicator-width,2px) solid var(--highcontrast-table-disclosure-cell-focus-indicator-color,var(--luzmo-indicator-color,currentColor));outline-offset:calc(var(--luzmo-indicator-width,2px) * -1);border-start-start-radius:var(--table-focus-start-start-radius,0);border-start-end-radius:var(--table-focus-start-end-radius,0);border-end-end-radius:var(--table-focus-end-end-radius,0);border-end-start-radius:var(--table-focus-end-start-radius,0)}.button{block-size:100%;inline-size:100%;min-inline-size:var(--luzmo-component-height-xs);min-block-size:var(--luzmo-component-height-xs);background:rgba(var(--luzmo-background-color-rgb), 0);color:inherit;cursor:pointer;border:0;outline:none;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex}.icon{inline-size:var(--table-sort-icon-size);block-size:var(--table-sort-icon-size);display:inline-flex;transform:rotate(-90deg)}.icon svg{fill:currentColor;block-size:100%;inline-size:100%}:host([expanded]) .icon{transform:rotate(0)}:host([dir=rtl]:not([expanded])) .icon{transform:rotate(90deg)}@media (prefers-reduced-motion:no-preference){.icon{transition:transform var(--luzmo-animation-duration) ease}}:host{--table-disclosure-cell-focus-indicator-width:var(--luzmo-indicator-width);--table-disclosure-cell-focus-indicator-color:var(--luzmo-indicator-color)}@media (forced-colors:active){:host{--highcontrast-table-disclosure-cell-focus-indicator-color:Highlight}}", Q = class extends e {
|
|
1515
1470
|
constructor(...e) {
|
|
1516
1471
|
super(...e), this.role = "gridcell", this.expanded = !1, this.label = "";
|
|
1517
1472
|
}
|
|
1518
1473
|
static get styles() {
|
|
1519
|
-
return z(super.styles,
|
|
1474
|
+
return z(super.styles, Ye);
|
|
1520
1475
|
}
|
|
1521
1476
|
render() {
|
|
1522
|
-
return
|
|
1477
|
+
return c`
|
|
1523
1478
|
<button
|
|
1524
1479
|
type="button"
|
|
1525
1480
|
class="button"
|
|
1526
1481
|
tabindex="-1"
|
|
1527
1482
|
aria-expanded=${String(this.expanded)}
|
|
1528
|
-
aria-label=${
|
|
1483
|
+
aria-label=${v(this.label || void 0)}
|
|
1529
1484
|
>
|
|
1530
1485
|
<span class="icon" aria-hidden="true"
|
|
1531
|
-
>${
|
|
1486
|
+
>${_(m)}</span
|
|
1532
1487
|
>
|
|
1533
1488
|
</button>
|
|
1534
1489
|
`;
|
|
1535
1490
|
}
|
|
1536
1491
|
};
|
|
1537
|
-
t([
|
|
1492
|
+
t([d({ reflect: !0 })], Q.prototype, "role", void 0), t([d({
|
|
1538
1493
|
type: Boolean,
|
|
1539
1494
|
reflect: !0
|
|
1540
|
-
})], Q.prototype, "expanded", void 0), t([
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
var Ye = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:var(--table-min-inline-size,0);box-sizing:border-box;min-block-size:calc(var(--luzmo-table-row-min-block-size,var(--table-row-min-block-size)) + var(--table-row-density-offset));align-items:stretch;display:grid;border-block-start:none!important;border-inline:none!important;border-block-end-width:var(--table-row-divider-width)!important;border-block-end-style:solid!important;border-block-end-color:var(--highcontrast-table-row-divider-color,var(--luzmo-table-border-color,var(--table-row-divider-color)))!important}:host([data-last-row]:not([expanded])){border-block-end-width:0!important}:host([data-last-row]:not([expanded])) .leading:not(slot),:host([data-last-row]:not([expanded])) slot.leading::slotted(luzmo-table-cell:first-of-type){--table-focus-end-start-radius:var(--table-corner-radius)}:host([data-last-row]:not([expanded])) ::slotted(luzmo-table-cell:last-of-type){--table-focus-end-end-radius:var(--table-corner-radius)}:host([selectable]){cursor:pointer}:host([selectable]:hover){background-color:var(--table-row-hover-background-color)}:host([selected]){background-color:var(--luzmo-table-row-selected-background-color,var(--table-row-selected-background-color))}:host([selected]:hover){background-color:var(--luzmo-table-row-selected-background-color,var(--table-row-selected-hover-background-color))}.selection-spacer{inline-size:var(--table-checkbox-cell-inline-size)}.selection-spacer,.disclosure-spacer{box-sizing:border-box;align-self:stretch;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}.disclosure-spacer{inline-size:var(--table-disclosure-cell-inline-size)}@media (forced-colors:active){:host([selected]){forced-color-adjust:none;color:highlighttext;background-color:highlight}}:host{--table-row-divider-color:var(--luzmo-border-color);--table-row-divider-width:var(--luzmo-border-width);--table-row-hover-background-color:var(--luzmo-background-color-hover)}@media (forced-colors:active){:host{--highcontrast-table-row-divider-color:CanvasText}}", $ = class extends e {
|
|
1495
|
+
})], Q.prototype, "expanded", void 0), t([d({ reflect: !0 })], Q.prototype, "label", void 0);
|
|
1496
|
+
// src/components/table/table-row.module.scss?inline
|
|
1497
|
+
var Xe = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:var(--table-min-inline-size,0);box-sizing:border-box;min-block-size:calc(var(--luzmo-table-row-min-block-size,var(--table-row-min-block-size)) + var(--table-row-density-offset));align-items:stretch;display:grid;border-block-start:none!important;border-inline:none!important;border-block-end-width:var(--table-row-divider-width)!important;border-block-end-style:solid!important;border-block-end-color:var(--highcontrast-table-row-divider-color,var(--luzmo-table-border-color,var(--table-row-divider-color)))!important}:host([data-last-row]:not([expanded])){border-block-end-width:0!important}:host([data-last-row]:not([expanded])) .leading:not(slot),:host([data-last-row]:not([expanded])) slot.leading::slotted(luzmo-table-cell:first-of-type){--table-focus-end-start-radius:var(--table-corner-radius)}:host([data-last-row]:not([expanded])) ::slotted(luzmo-table-cell:last-of-type){--table-focus-end-end-radius:var(--table-corner-radius)}:host([selectable]){cursor:pointer}:host([selectable]:hover){background-color:var(--table-row-hover-background-color)}:host([selected]){background-color:var(--luzmo-table-row-selected-background-color,var(--table-row-selected-background-color))}:host([selected]:hover){background-color:var(--luzmo-table-row-selected-background-color,var(--table-row-selected-hover-background-color))}.selection-spacer{inline-size:var(--table-checkbox-cell-inline-size)}.selection-spacer,.disclosure-spacer{box-sizing:border-box;align-self:stretch;border-block:none!important;border-inline-start:none!important;border-inline-end-width:var(--luzmo-table-column-divider-width,var(--table-column-divider-width))!important;border-inline-end-style:solid!important;border-inline-end-color:var(--highcontrast-table-column-divider-color,var(--luzmo-table-column-divider-color,var(--table-column-divider-color)))!important}.disclosure-spacer{inline-size:var(--table-disclosure-cell-inline-size)}@media (forced-colors:active){:host([selected]){forced-color-adjust:none;color:highlighttext;background-color:highlight}}:host{--table-row-divider-color:var(--luzmo-border-color);--table-row-divider-width:var(--luzmo-border-width);--table-row-hover-background-color:var(--luzmo-background-color-hover)}@media (forced-colors:active){:host{--highcontrast-table-row-divider-color:CanvasText}}", $ = class extends e {
|
|
1544
1498
|
constructor(...e) {
|
|
1545
1499
|
super(...e), this.role = "row", this.value = "", this.selected = !1, this.selectable = !1, this.expanded = !1, this.expandable = !1, this.selectsSingle = !1, this.emphasized = !1, this.selectionColumn = !1, this.expansionColumn = !1, this.spanAll = !1, this.checkboxLabel = "", this.disclosureLabel = "", this.detailsId = "", this.checkboxSize = "m";
|
|
1546
1500
|
}
|
|
1547
1501
|
static get styles() {
|
|
1548
|
-
return z(super.styles,
|
|
1502
|
+
return z(super.styles, Xe);
|
|
1549
1503
|
}
|
|
1550
1504
|
render() {
|
|
1551
|
-
if (this.spanAll) return
|
|
1552
|
-
let e = this.selectable || this.selectionColumn, t = !e && (this.expandable || this.expansionColumn), n =
|
|
1553
|
-
this.selectable ? n =
|
|
1505
|
+
if (this.spanAll) return c`<slot class="leading"></slot>`;
|
|
1506
|
+
let e = this.selectable || this.selectionColumn, t = !e && (this.expandable || this.expansionColumn), n = l;
|
|
1507
|
+
this.selectable ? n = c`
|
|
1554
1508
|
<luzmo-table-checkbox-cell
|
|
1555
1509
|
class="leading"
|
|
1556
1510
|
.checked=${this.selected}
|
|
@@ -1559,15 +1513,15 @@ var Ye = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:
|
|
|
1559
1513
|
.label=${this.checkboxLabel}
|
|
1560
1514
|
.size=${this.checkboxSize}
|
|
1561
1515
|
></luzmo-table-checkbox-cell>
|
|
1562
|
-
` : this.selectionColumn && (n =
|
|
1563
|
-
let r =
|
|
1564
|
-
return this.expandable ? r =
|
|
1516
|
+
` : this.selectionColumn && (n = c`<span class="selection-spacer"></span>`);
|
|
1517
|
+
let r = l;
|
|
1518
|
+
return this.expandable ? r = c`
|
|
1565
1519
|
<luzmo-table-disclosure-cell
|
|
1566
1520
|
class=${t ? "leading" : ""}
|
|
1567
1521
|
.expanded=${this.expanded}
|
|
1568
1522
|
.label=${this.disclosureLabel}
|
|
1569
1523
|
></luzmo-table-disclosure-cell>
|
|
1570
|
-
` : this.expansionColumn && (r =
|
|
1524
|
+
` : this.expansionColumn && (r = c`<span class="disclosure-spacer"></span>`), c`${n}${r}<slot
|
|
1571
1525
|
class=${!e && !t ? "leading" : ""}
|
|
1572
1526
|
></slot>`;
|
|
1573
1527
|
}
|
|
@@ -1575,18 +1529,17 @@ var Ye = ":host{grid-template-columns:var(--table-grid-columns);min-inline-size:
|
|
|
1575
1529
|
super.updated(e), (e.has("selectable") || e.has("selected")) && (this.selectable ? this.setAttribute("aria-selected", String(this.selected)) : this.removeAttribute("aria-selected")), (e.has("expandable") || e.has("expanded") || e.has("detailsId")) && (this.expandable && this.detailsId ? this.setAttribute("aria-controls", this.detailsId) : this.removeAttribute("aria-controls"));
|
|
1576
1530
|
}
|
|
1577
1531
|
};
|
|
1578
|
-
t([
|
|
1532
|
+
t([d({ reflect: !0 })], $.prototype, "role", void 0), t([d({ reflect: !0 })], $.prototype, "value", void 0), t([d({
|
|
1579
1533
|
type: Boolean,
|
|
1580
1534
|
reflect: !0
|
|
1581
|
-
})], $.prototype, "selected", void 0), t([
|
|
1535
|
+
})], $.prototype, "selected", void 0), t([d({
|
|
1582
1536
|
type: Boolean,
|
|
1583
1537
|
reflect: !0
|
|
1584
|
-
})], $.prototype, "selectable", void 0), t([
|
|
1538
|
+
})], $.prototype, "selectable", void 0), t([d({
|
|
1585
1539
|
type: Boolean,
|
|
1586
1540
|
reflect: !0
|
|
1587
|
-
})], $.prototype, "expanded", void 0), t([
|
|
1541
|
+
})], $.prototype, "expanded", void 0), t([d({
|
|
1588
1542
|
type: Boolean,
|
|
1589
1543
|
reflect: !0
|
|
1590
|
-
})], $.prototype, "expandable", void 0), t([
|
|
1591
|
-
//#endregion
|
|
1544
|
+
})], $.prototype, "expandable", void 0), t([p()], $.prototype, "selectsSingle", void 0), t([p()], $.prototype, "emphasized", void 0), t([p()], $.prototype, "selectionColumn", void 0), t([p()], $.prototype, "expansionColumn", void 0), t([p()], $.prototype, "spanAll", void 0), t([p()], $.prototype, "checkboxLabel", void 0), t([p()], $.prototype, "disclosureLabel", void 0), t([p()], $.prototype, "detailsId", void 0), t([p()], $.prototype, "checkboxSize", void 0), typeof customElements < "u" && !customElements.get("luzmo-table") && customElements.define("luzmo-table", K), typeof customElements < "u" && !customElements.get("luzmo-table-head") && customElements.define("luzmo-table-head", X), typeof customElements < "u" && !customElements.get("luzmo-table-head-cell") && customElements.define("luzmo-table-head-cell", Z), typeof customElements < "u" && !customElements.get("luzmo-table-body") && customElements.define("luzmo-table-body", q), typeof customElements < "u" && !customElements.get("luzmo-table-row") && customElements.define("luzmo-table-row", $), typeof customElements < "u" && !customElements.get("luzmo-table-cell") && customElements.define("luzmo-table-cell", J), typeof customElements < "u" && !customElements.get("luzmo-table-checkbox-cell") && customElements.define("luzmo-table-checkbox-cell", Y), typeof customElements < "u" && !customElements.get("luzmo-table-disclosure-cell") && customElements.define("luzmo-table-disclosure-cell", Q), typeof customElements < "u" && !customElements.get("luzmo-table-row-details") && customElements.define("luzmo-table-row-details", B);
|
|
1592
1545
|
export { Y as a, K as c, X as i, B as l, Q as n, J as o, Z as r, q as s, $ as t, k as u };
|