@nldd/design-system 0.25.1 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +2845 -79
- package/dist/cdn/autoloader.js +141 -140
- package/dist/cdn/chunks/{accordion-B7KdKJno.js → accordion-DA4IlxS5.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-CVy8Apta.js → accordion-item-Ca1o93cq.js} +9 -7
- package/dist/cdn/chunks/{activity-indicator-CpJVlX6K.js → activity-indicator-Cj4H0Mbz.js} +5 -5
- package/dist/cdn/chunks/{admonition-C89WHJ9a.js → admonition-CdZSoO8O.js} +9 -7
- package/dist/cdn/chunks/{avatar-Bf0OfAtQ.js → avatar-Dhqn-Dmv.js} +6 -6
- package/dist/cdn/chunks/{avatar-group-BeBAv2wB.js → avatar-group-B017eF-u.js} +15 -15
- package/dist/cdn/chunks/{badge-C43FvgkK.js → badge-Bep5B0_g.js} +5 -5
- package/dist/cdn/chunks/{banner-OWK0gwFb.js → banner-DGpIXuE2.js} +7 -7
- package/dist/cdn/chunks/{bar-split-view-Dj1WycIW.js → bar-split-view-CKwJxd3e.js} +5 -5
- package/dist/cdn/chunks/{blockquote-D_5MxcSi.js → blockquote-ChMgaOuI.js} +3 -3
- package/dist/cdn/chunks/{box-BUoxiA7b.js → box-BRmziG-6.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-DXxJTACL.js → breadcrumbs-BeVO8bkQ.js} +5 -5
- package/dist/cdn/chunks/{button-bar-BSt-QQRG.js → button-bar-CLxOdalJ.js} +3 -3
- package/dist/cdn/chunks/{button-DpKyquzm.js → button-cHBkq_s7.js} +9 -9
- package/dist/cdn/chunks/{button-group-D5QJWJzh.js → button-group-BIvKtEIX.js} +2 -2
- package/dist/cdn/chunks/{card-Cz4f-dCf.js → card-B5gp9Zly.js} +8 -6
- package/dist/cdn/chunks/{cell-zFw2V9wD.js → cell-D4Nrd5Z9.js} +6 -6
- package/dist/cdn/chunks/{checkbox-BDp3O8Nc.js → checkbox-CeLTJhAc.js} +4 -4
- package/dist/cdn/chunks/checkbox-field-C8cU8fuf.js +244 -0
- package/dist/cdn/chunks/checkbox-group-CC72cq-P.js +103 -0
- package/dist/cdn/chunks/{class-map-C7ao595e.js → class-map-xzscTu4B.js} +1 -1
- package/dist/cdn/chunks/{code-editor-Chm9EG_v.js → code-editor-BNhlXTSl.js} +10 -10
- package/dist/cdn/chunks/{code-viewer-DX322d7w.js → code-viewer-D_JwouYO.js} +35 -35
- package/dist/cdn/chunks/{codemirror-input-BLMJQbHq.js → codemirror-input-DJ0wgYrc.js} +368 -368
- package/dist/cdn/chunks/{collection-Bf8HoSki.js → collection-BXvz_OtU.js} +8 -8
- package/dist/cdn/chunks/{combo-box-VuU_F54v.js → combo-box-8kbmoStb.js} +10 -9
- package/dist/cdn/chunks/{container-qVTgmbpz.js → container-Dq-2uHd5.js} +2 -2
- package/dist/cdn/chunks/{custom-element-C5yyaCZS.js → custom-element-DeaCQ2NP.js} +1 -1
- package/dist/cdn/chunks/{date-field-By9Q8151.js → date-field-CQg1_73u.js} +13 -13
- package/dist/cdn/chunks/{date-picker-DtA4PXCh.js → date-picker-CTMxGOiA.js} +10 -10
- package/dist/cdn/chunks/{decorate-CkbtFnic.js → decorate-CCYde2ES.js} +1 -1
- package/dist/cdn/chunks/described-by-mixin-BYFim7aO.js +62 -0
- package/dist/cdn/chunks/{description-cell-D2INE8A3.js → description-cell-GcVeCz2_.js} +6 -6
- package/dist/cdn/chunks/{dev-checks-UHHli7gE.js → dev-checks-CSlbfDuF.js} +43 -5
- package/dist/cdn/chunks/directive-helpers-DgaADFyY.js +24 -0
- package/dist/cdn/chunks/{dist-BG0xnVUi.js → dist-1OQdP4ho.js} +10 -10
- package/dist/cdn/chunks/{dist-C-T4uKP1.js → dist-5vPsM2aV.js} +8 -8
- package/dist/cdn/chunks/{dist-VXOtAJ-m.js → dist-B23jHvJ5.js} +15 -15
- package/dist/cdn/chunks/{dist-Cm51DQO4.js → dist-CNy2sPTt.js} +6 -6
- package/dist/cdn/chunks/{dist-B1pwN_VD.js → dist-CcpLhc4y.js} +7 -7
- package/dist/cdn/chunks/{dist-Ce38ZA7b.js → dist-CyDpBAaD.js} +7 -7
- package/dist/cdn/chunks/{dist-pCih3zzc.js → dist-D4SViUJx.js} +21 -21
- package/dist/cdn/chunks/{dist-qo8avphr.js → dist-DBxjWahH.js} +4 -4
- package/dist/cdn/chunks/{dist-BzfFo9Yu.js → dist-DLtwMUDc.js} +18 -18
- package/dist/cdn/chunks/{dist-Dg3ySzj7.js → dist-Da_liXcd.js} +124 -124
- package/dist/cdn/chunks/{dist-zxb4QZZG.js → dist-VCymi0hs.js} +250 -250
- package/dist/cdn/chunks/{divider-Cv_vyHvw.js → divider-8XD3xTbl.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-CdOxr8KC.js → document-tab-bar-RBAmckHS.js} +9 -9
- package/dist/cdn/chunks/{dropdown-DC9J6k0P.js → dropdown-DVlxPcjr.js} +5 -5
- package/dist/cdn/chunks/field-button-controller-yvICuXoE.js +26 -0
- package/dist/cdn/chunks/{file-field-CsrTk4uk.js → file-field-BrHnFplX.js} +12 -12
- package/dist/cdn/chunks/{form-ClOD1OKh.js → form-DGHeGEIr.js} +1 -1
- package/dist/cdn/chunks/{form-actions-CwaXGj43.js → form-actions-CHwWKfMM.js} +2 -2
- package/dist/cdn/chunks/{form-field-LoX9v2Pa.js → form-field-CdTSI-8h.js} +21 -16
- package/dist/cdn/chunks/{form-section-i6piyKuy.js → form-section-CjECOIiZ.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-6aAfCnez.js → full-bleed-section-CQgq4iGQ.js} +3 -3
- package/dist/cdn/chunks/{hero-CTQAayXT.js → hero-DhdcYt2N.js} +4 -4
- package/dist/cdn/chunks/{icon-button-DuEiOOoc.js → icon-button-DT_Bi4Ac.js} +17 -13
- package/dist/cdn/chunks/{icon-cell-uZkR3hZx.js → icon-cell-C-qrZAlN.js} +5 -5
- package/dist/cdn/chunks/{icon-B5kHyCz2.js → icon-qpmEfU9B.js} +2 -2
- package/dist/cdn/chunks/{identity-DR6DMjke.js → identity-DFmvuPkl.js} +6 -6
- package/dist/cdn/chunks/{if-defined-B7fJBsUt.js → if-defined-BINBE69I.js} +1 -1
- package/dist/cdn/chunks/{image-CuBUo_MQ.js → image-B4M3h1xJ.js} +8 -8
- package/dist/cdn/chunks/{inline-dialog-CZNkWJIA.js → inline-dialog-L-NvjANF.js} +6 -6
- package/dist/cdn/chunks/{just-in-time-education-qwg9hTDX.js → just-in-time-education-CWplH4r9.js} +5 -5
- package/dist/cdn/chunks/{kanban-Bkg-nZmX.js → kanban-B6Wa-2aM.js} +5 -5
- package/dist/cdn/chunks/{kanban-column-C8iRyRNY.js → kanban-column-D2-Xq79_.js} +4 -4
- package/dist/cdn/chunks/{keyboard-shortcut-Rq5IHU-e.js → keyboard-shortcut-Ci95olxF.js} +118 -47
- package/dist/cdn/chunks/{languages-DLHsACpp.js → languages-C9AGuuSS.js} +43 -32
- package/dist/cdn/chunks/{link-CgjFwaHP.js → link-BJB2a_fG.js} +36 -28
- package/dist/cdn/chunks/{link-group-5W0GAmTq.js → link-group-aNoedLZo.js} +2 -2
- package/dist/cdn/chunks/{list-BASqIKtP.js → list-CZWX62tH.js} +8 -8
- package/dist/cdn/chunks/{list-item-DTcPysIP.js → list-item-DHzsbK_S.js} +5 -5
- package/dist/cdn/chunks/{list-item-segment-CRw0y4kg.js → list-item-segment-CHLlU9Gg.js} +3 -3
- package/dist/cdn/chunks/{menu-CYILGTpB.js → menu-NGpB1SKq.js} +42 -22
- package/dist/cdn/chunks/{menu-bar-CL566HmJ.js → menu-bar-CJazkmY7.js} +6 -6
- package/dist/cdn/chunks/{menu-bar-item-C6OrUu_4.js → menu-bar-item-CSqXWNKE.js} +6 -6
- package/dist/cdn/chunks/{menu-divider-BtU9eBSb.js → menu-divider-Cn1hTpcM.js} +3 -3
- package/dist/cdn/chunks/{menu-group-r2TvdqJB.js → menu-group-C71K1Vmv.js} +4 -4
- package/dist/cdn/chunks/{menu-item-CS45jTLu.js → menu-item-TqBlQfI2.js} +4 -4
- package/dist/cdn/chunks/{menu.template-CF8Iau1s.js → menu.template-DthELYky.js} +21 -16
- package/dist/cdn/chunks/{modal-dialog-C9NBq8TO.js → modal-dialog-0V2HsrJC.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-BkxV0vqA.js → multi-line-text-field-BV4uUDoK.js} +60 -34
- package/dist/cdn/chunks/{navigation-split-view-DNrQYkg7.js → navigation-split-view-tPhkxEVD.js} +4 -4
- package/dist/cdn/chunks/{notification-Dzpy9hCc.js → notification-CZccv6qx.js} +6 -6
- package/dist/cdn/chunks/{number-field-BJCUe-bI.js → number-field-4R2blHda.js} +8 -8
- package/dist/cdn/chunks/{one-half-one-half-section-Ctw8ri5v.js → one-half-one-half-section-h2fLPQfP.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-DxUUH8lS.js → one-third-two-thirds-section-mqUAH5lK.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-DGDyqIMd.js → one-time-code-field-Bf_qymKd.js} +8 -7
- package/dist/cdn/chunks/{page-BpavFPML.js → page-Kipfvmi6.js} +4 -4
- package/dist/cdn/chunks/{page-footer-CVqmyulx.js → page-footer-DxE966Oe.js} +4 -4
- package/dist/cdn/chunks/{page-section-mixin-BHg-Wre9.js → page-section-mixin-DpF9JDpd.js} +3 -3
- package/dist/cdn/chunks/{pagination-BGZYq-eO.js → pagination-DUFFhaU8.js} +6 -6
- package/dist/cdn/chunks/{password-field-BIFfLAls.js → password-field-DdYAVmF3.js} +9 -9
- package/dist/cdn/chunks/{popover-TCW20ibN.js → popover-CRHxyhGx.js} +6 -6
- package/dist/cdn/chunks/{progress-bar-C4bLuJBa.js → progress-bar-BuYsjmSo.js} +7 -7
- package/dist/cdn/chunks/{progress-circle-BePtt89f.js → progress-circle-Cvu1bfNG.js} +7 -7
- package/dist/cdn/chunks/{radio-button-CLiuwjA1.js → radio-button-B_4AxWDx.js} +3 -3
- package/dist/cdn/chunks/{radio-button-field-BPva1mUv.js → radio-button-field-D7jIg6Oi.js} +6 -6
- package/dist/cdn/chunks/{radio-button-group-Z5s4obz6.js → radio-button-group-D_OezDhB.js} +12 -6
- package/dist/cdn/chunks/{render-marked-C3ypoEZM.js → render-marked-CIuiSS_8.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-BB9b4T_d.js → reorder-handle-cell-DNPaZjSC.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-DBjNe6Rl.js → reorder-handle-mixin-CgvWq4fF.js} +2 -2
- package/dist/cdn/chunks/repeat-DfVuWl6o.js +57 -0
- package/dist/cdn/chunks/{return-focus-BzZWhXhc.js → return-focus-D0fF2hjd.js} +1 -1
- package/dist/cdn/chunks/{rich-text-DTxHo8E_.js → rich-text-CVHlMQY6.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-BcwoEgu7.js → row-header-mixin-B25JK2B3.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-Dul0IfE1.js → scroll-fade-Dv57rTww.js} +2 -2
- package/dist/cdn/chunks/{search-field-BeZN7S8J.js → search-field-hmD_DXbG.js} +11 -11
- package/dist/cdn/chunks/{segmented-control-Dzu8xoqB.js → segmented-control-e8e-jYSw.js} +6 -6
- package/dist/cdn/chunks/{shadow-resets-Dlq8Oecv.js → shadow-resets-CRdvf-Ei.js} +2 -2
- package/dist/cdn/chunks/{sheet-DaQpfAep.js → sheet-D09y3J45.js} +4 -4
- package/dist/cdn/chunks/{shell-DSNgonKU.js → shell-CV3gooGg.js} +3 -3
- package/dist/cdn/chunks/{side-by-side-split-view-DhGbcDrs.js → side-by-side-split-view-Ckz1C9zk.js} +4 -4
- package/dist/cdn/chunks/{sidebar-section-BlJmPb9C.js → sidebar-section-CdyD-x4t.js} +7 -7
- package/dist/cdn/chunks/{simple-section-CYiTEFqN.js → simple-section-CEf38rBZ.js} +3 -3
- package/dist/cdn/chunks/{skip-link-CReOb-Ci.js → skip-link-DMRhATWw.js} +4 -4
- package/dist/cdn/chunks/{slider-DUEGol_V.js → slider-Db3FPiP6.js} +8 -8
- package/dist/cdn/chunks/{spacer-CPmyJDQq.js → spacer-BPFIYueo.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-DJEv0v6s.js → spacer-cell-kITa3CDV.js} +4 -4
- package/dist/cdn/chunks/{split-button-B3vfYAdy.js → split-button-CJs9-Nha.js} +7 -7
- package/dist/cdn/chunks/{split-view-divider-pSUpnEPX.js → split-view-divider-lHlM1Ss8.js} +2 -2
- package/dist/cdn/chunks/{split-view-pane-J1RVr_w1.js → split-view-pane-DlsbZtyo.js} +3 -3
- package/dist/cdn/chunks/{stacked-split-view-B67fT-Ch.js → stacked-split-view-uRSVhrMd.js} +4 -4
- package/dist/cdn/chunks/{static-html-BT4LOKbV.js → static-html-BahSPV_4.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CGXqgNOf.js → status-bar-DCJLVpsW.js} +4 -4
- package/dist/cdn/chunks/{step-bar-DdsA2Egs.js → step-bar-CRR2jiyo.js} +6 -6
- package/dist/cdn/chunks/{step-cell-DsTAgMCx.js → step-cell-CbtKxJNJ.js} +5 -5
- package/dist/cdn/chunks/{stepper-DPqXiLQr.js → stepper-Con1_CnB.js} +6 -6
- package/dist/cdn/chunks/{style-map-B7yv7Y8k.js → style-map-uOwLerwV.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-D9QZmbNN.js → swatch-picker-Bqn0eaC9.js} +5 -5
- package/dist/cdn/chunks/{switch-CE2glvZQ.js → switch-CMQcLEBJ.js} +4 -4
- package/dist/cdn/chunks/{switch-field-Dr2LovXc.js → switch-field-D9kWq4Kw.js} +5 -5
- package/dist/cdn/chunks/{tab-bar-DYZbToZB.js → tab-bar-DXzyZI3V.js} +8 -8
- package/dist/cdn/chunks/{table-DoQMJbSg.js → table-CWACLpHx.js} +5 -5
- package/dist/cdn/chunks/{tag-DOX5nY-Z.js → tag-Bo4yJbtF.js} +4 -4
- package/dist/cdn/chunks/{term-CxGzPnhq.js → term-CQ379ZbN.js} +12 -12
- package/dist/cdn/chunks/{text-Dqe0uTK7.js → text-D-dFoj6N.js} +3 -3
- package/dist/cdn/chunks/{text-cell-ByGrujhK.js → text-cell-Be1hStxp.js} +8 -8
- package/dist/cdn/chunks/{text-editor-DT9oWQCT.js → text-editor-BjzQEBWm.js} +1372 -904
- package/dist/cdn/chunks/{text-field-DKz5IRAU.js → text-field-DA8nirp6.js} +47 -65
- package/dist/cdn/chunks/{time-field-Dh7nTwNc.js → time-field-Dd_TxJuf.js} +15 -15
- package/dist/cdn/chunks/{time-picker-Bp-l4JfF.js → time-picker-B0-rv1qp.js} +5 -5
- package/dist/cdn/chunks/{title-CdIWXNtc.js → title-DOoPdG_i.js} +4 -4
- package/dist/cdn/chunks/{title-cell-DNbP8l_x.js → title-cell-BzCNOMGr.js} +8 -8
- package/dist/cdn/chunks/{toggle-button-CPMxB3gN.js → toggle-button-9PbDHviQ.js} +60 -42
- package/dist/cdn/chunks/{toggle-button-group-ERWVyRX5.js → toggle-button-group-C-H-xp0M.js} +11 -5
- package/dist/cdn/chunks/{token-CG8dR3EH.js → token-CMKFC3gz.js} +5 -5
- package/dist/cdn/chunks/{token-field-B8wqHKan.js → token-field-D4-XHfnG.js} +11 -11
- package/dist/cdn/chunks/{toolbar-item-xJEewchW.js → toolbar-item-ZYoyKOyy.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-C08aG67Y.js → toolbar-title-FKtQ8ZC4.js} +4 -4
- package/dist/cdn/chunks/{toolbar-CiZoecHm.js → toolbar-z9OhEE5l.js} +8 -8
- package/dist/cdn/chunks/{toolbar.styles-DmAHodW4.js → toolbar.styles-DDjpdCHV.js} +3 -3
- package/dist/cdn/chunks/{tooltip-660R32cn.js → tooltip-BvRNYRo3.js} +5 -5
- package/dist/cdn/chunks/{top-navigation-bar-B1HFShH8.js → top-navigation-bar-BHPQntER.js} +17 -17
- package/dist/cdn/chunks/{top-title-bar-BLZZd0Iu.js → top-title-bar-BVjegLlh.js} +6 -6
- package/dist/cdn/chunks/{translations-CF08wvn-.js → translations-cJjO6nQV.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-Dqz7UoSH.js → two-thirds-one-third-section-BdBHQuXc.js} +3 -3
- package/dist/cdn/chunks/{validation-list-D-bzOl5H.js → validation-list-5E3-3_95.js} +3 -3
- package/dist/cdn/chunks/{visibility-mixin-X9d6wHvR.js → visibility-mixin-DvRe3O8t.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-Cew5_ldu.js → visually-hidden-F85D_HcR.js} +2 -2
- package/dist/cdn/chunks/{window-DSgA26_c.js → window-CabW35M1.js} +5 -5
- package/dist/cdn/chunks/{with-translations-Boc5Daaj.js → with-translations-BHDG37HJ.js} +3 -3
- package/dist/components/actions/button/button.d.ts +1 -1
- package/dist/components/actions/button/button.js +1 -1
- package/dist/components/actions/button/button.template.js +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +5 -1
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +10 -5
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +1 -1
- package/dist/components/actions/menu/menu-item.js +1 -1
- package/dist/components/actions/menu/menu.d.ts +13 -1
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +53 -2
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.pointer.d.ts +6 -2
- package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.pointer.js +15 -5
- package/dist/components/actions/menu/menu.pointer.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +16 -11
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.js +1 -1
- package/dist/components/content/accordion/accordion-item.styles.d.ts.map +1 -1
- package/dist/components/content/accordion/accordion-item.styles.js +5 -3
- package/dist/components/content/accordion/accordion-item.styles.js.map +1 -1
- package/dist/components/content/admonition/admonition.styles.d.ts.map +1 -1
- package/dist/components/content/admonition/admonition.styles.js +5 -3
- package/dist/components/content/admonition/admonition.styles.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +1 -1
- package/dist/components/content/icon/icon.js +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +16 -9
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +18 -12
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +26 -12
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js +12 -3
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.js +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +3 -1
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +14 -3
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +44 -2
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +129 -9
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +6 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.template.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.template.js +18 -4
- package/dist/components/inputs/checkbox-field/checkbox-field.template.js.map +1 -1
- package/dist/components/inputs/checkbox-group/checkbox-group.d.ts +77 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.d.ts.map +1 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.js +188 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.js.map +1 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.styles.d.ts +2 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.styles.d.ts.map +1 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.styles.js +28 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.styles.js.map +1 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.template.d.ts +4 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.template.d.ts.map +1 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.template.js +9 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.template.js.map +1 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts +3 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +3 -0
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +1 -0
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +3 -0
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +3 -0
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +4 -0
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +4 -0
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +8 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +8 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +24 -2
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +3 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts +3 -0
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +3 -0
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +3 -0
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js +3 -0
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js +1 -0
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.d.ts +3 -0
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +3 -0
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.js +5 -0
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts +5 -0
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.js +19 -9
- package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +3 -0
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +3 -0
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts +5 -2
- package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.clipboard.js +23 -4
- package/dist/components/inputs/text-editor/text-editor.clipboard.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.code-copy.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.code-copy.js +38 -18
- package/dist/components/inputs/text-editor/text-editor.code-copy.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts +8 -6
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.js +23 -9
- package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +26 -0
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +165 -15
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.list-input.d.ts +17 -0
- package/dist/components/inputs/text-editor/text-editor.list-input.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.list-input.js +133 -0
- package/dist/components/inputs/text-editor/text-editor.list-input.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +28 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +4 -2
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +9 -5
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.ordered-list.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.ordered-list.js +89 -18
- package/dist/components/inputs/text-editor/text-editor.ordered-list.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.paste.d.ts +10 -0
- package/dist/components/inputs/text-editor/text-editor.paste.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.paste.js +116 -0
- package/dist/components/inputs/text-editor/text-editor.paste.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +49 -2
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.template.d.ts +1 -1
- package/dist/components/inputs/text-editor/text-editor.template.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.template.js +4 -3
- package/dist/components/inputs/text-editor/text-editor.template.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts +53 -0
- package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.toolbar.js +302 -0
- package/dist/components/inputs/text-editor/text-editor.toolbar.js.map +1 -0
- package/dist/components/inputs/text-field/text-field.d.ts +7 -13
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +8 -50
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +1 -2
- package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.template.js +2 -2
- package/dist/components/inputs/text-field/text-field.template.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +3 -0
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +3 -0
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +22 -2
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +53 -7
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +3 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +6 -2
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +6 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +20 -10
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +3 -0
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +3 -0
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +2 -0
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +5 -2
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +13 -3
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +25 -9
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +1 -1
- package/dist/css/dropdown.css +17 -0
- package/dist/css/global-open-font.css +1 -0
- package/dist/css/global.css +1 -0
- package/dist/css/rich-text.css +8 -2
- package/dist/css/variables.css +2 -1
- package/dist/nldd.min.js +941 -789
- package/dist/types/react.d.ts +151 -15
- package/dist/types/vue.d.ts +305 -45
- package/dist/utilities/autoloader.generated.d.ts.map +1 -1
- package/dist/utilities/autoloader.generated.js +1 -0
- package/dist/utilities/autoloader.generated.js.map +1 -1
- package/dist/utilities/codemirror/codemirror-element.d.ts +12 -1
- package/dist/utilities/codemirror/codemirror-element.d.ts.map +1 -1
- package/dist/utilities/codemirror/codemirror-element.js +23 -4
- package/dist/utilities/codemirror/codemirror-element.js.map +1 -1
- package/dist/utilities/codemirror/codemirror-input.d.ts +3 -0
- package/dist/utilities/codemirror/codemirror-input.d.ts.map +1 -1
- package/dist/utilities/codemirror/codemirror-input.js +14 -3
- package/dist/utilities/codemirror/codemirror-input.js.map +1 -1
- package/dist/utilities/described-by-mixin.d.ts +6 -0
- package/dist/utilities/described-by-mixin.d.ts.map +1 -1
- package/dist/utilities/described-by-mixin.js +81 -2
- package/dist/utilities/described-by-mixin.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +46 -5
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/field-button-controller.d.ts +28 -0
- package/dist/utilities/field-button-controller.d.ts.map +1 -0
- package/dist/utilities/field-button-controller.js +56 -0
- package/dist/utilities/field-button-controller.js.map +1 -0
- package/dist/utilities/return-focus.d.ts.map +1 -1
- package/dist/utilities/return-focus.js +3 -0
- package/dist/utilities/return-focus.js.map +1 -1
- package/dist/utilities/shortcut.d.ts +14 -0
- package/dist/utilities/shortcut.d.ts.map +1 -1
- package/dist/utilities/shortcut.js +37 -1
- package/dist/utilities/shortcut.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/linter.js +4 -1
- package/package.json +6 -2
- package/dist/cdn/chunks/checkbox-field-CSXV0prA.js +0 -162
- package/dist/cdn/chunks/described-by-mixin-DXC6jkCd.js +0 -35
- package/dist/cdn/chunks/repeat-s95Ixbpx.js +0 -76
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as e, o as t, t as n } from "./decorate-
|
|
2
|
-
import { a as r, r as i } from "./custom-element-
|
|
1
|
+
import { n as e, o as t, t as n } from "./decorate-CCYde2ES.js";
|
|
2
|
+
import { a as r, r as i } from "./custom-element-DeaCQ2NP.js";
|
|
3
3
|
import { t as a } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { t as o } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
-
import { a as s } from "./shadow-resets-
|
|
5
|
+
import { a as s } from "./shadow-resets-CRdvf-Ei.js";
|
|
6
6
|
// src/components/layout/box/box.styles.ts
|
|
7
7
|
var c = r`
|
|
8
8
|
:host {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
2
|
-
import { a as i, r as a } from "./custom-element-
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-CCYde2ES.js";
|
|
2
|
+
import { a as i, r as a } from "./custom-element-DeaCQ2NP.js";
|
|
3
3
|
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { t as s } from "./slot-content-2qH2vEC_.js";
|
|
5
5
|
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
-
import { t as l } from "./shadow-resets-
|
|
7
|
-
import "./icon-
|
|
6
|
+
import { t as l } from "./shadow-resets-CRdvf-Ei.js";
|
|
7
|
+
import "./icon-qpmEfU9B.js";
|
|
8
8
|
import { t as u } from "./breadcrumbs.i18n-zmO8jaTO.js";
|
|
9
|
-
import { t as d } from "./translations-
|
|
9
|
+
import { t as d } from "./translations-cJjO6nQV.js";
|
|
10
10
|
// src/components/navigation/breadcrumbs/breadcrumbs.styles.ts
|
|
11
11
|
var f = i`
|
|
12
12
|
.breadcrumbs__separator {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { n as t, o as n, t as r } from "./decorate-
|
|
3
|
-
import { a as i, n as a, r as o, t as s } from "./custom-element-
|
|
2
|
+
import { n as t, o as n, t as r } from "./decorate-CCYde2ES.js";
|
|
3
|
+
import { a as i, n as a, r as o, t as s } from "./custom-element-DeaCQ2NP.js";
|
|
4
4
|
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
5
5
|
import { t as l } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
-
import { t as u } from "./repeat-
|
|
6
|
+
import { t as u } from "./repeat-DfVuWl6o.js";
|
|
7
7
|
// src/components/actions/button-bar/button-bar.styles.ts
|
|
8
8
|
var d = i`
|
|
9
9
|
:host {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { n as t, o as n, r, t as i } from "./decorate-
|
|
3
|
-
import { a, r as o } from "./custom-element-
|
|
2
|
+
import { n as t, o as n, r, t as i } from "./decorate-CCYde2ES.js";
|
|
3
|
+
import { a, r as o } from "./custom-element-DeaCQ2NP.js";
|
|
4
4
|
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
-
import { t as c } from "./shadow-resets-
|
|
5
|
+
import { t as c } from "./shadow-resets-CRdvf-Ei.js";
|
|
6
6
|
import { t as l } from "./link-rel-DvrTEfVT.js";
|
|
7
7
|
import { r as u, t as d } from "./link-hint-KFhgr5Ng.js";
|
|
8
|
-
import { i as f, n as p, r as m } from "./keyboard-shortcut-
|
|
8
|
+
import { i as f, n as p, r as m } from "./keyboard-shortcut-Ci95olxF.js";
|
|
9
9
|
import { n as h, t as g } from "./popover-target-B25dxnmt.js";
|
|
10
|
-
import { t as _ } from "./with-translations-
|
|
10
|
+
import { t as _ } from "./with-translations-BHDG37HJ.js";
|
|
11
11
|
import { t as v } from "./reflect-non-default-Bu3rpCvg.js";
|
|
12
12
|
import { t as y } from "./button.i18n-BGFt7Z9u.js";
|
|
13
13
|
import { t as b } from "./popup-anchor-controller-VZw0bXf2.js";
|
|
14
14
|
import { t as x } from "./interest-controller-Ban-3NrX.js";
|
|
15
|
-
import "./icon-
|
|
16
|
-
import "./activity-indicator-
|
|
17
|
-
import { t as S } from "./described-by-mixin-
|
|
15
|
+
import "./icon-qpmEfU9B.js";
|
|
16
|
+
import "./activity-indicator-Cj4H0Mbz.js";
|
|
17
|
+
import { t as S } from "./described-by-mixin-BYFim7aO.js";
|
|
18
18
|
import { n as C } from "./element-state-B-44fVqq.js";
|
|
19
19
|
import { t as w } from "./defer-focus-F73ud2D9.js";
|
|
20
20
|
import { t as T } from "./owner-form-Cq8tT7ac.js";
|
|
@@ -675,7 +675,7 @@ function D(e) {
|
|
|
675
675
|
<span class="button__shortcut">
|
|
676
676
|
<nldd-keyboard-shortcut
|
|
677
677
|
size="inherit"
|
|
678
|
-
appearance="
|
|
678
|
+
appearance="text"
|
|
679
679
|
color="content"
|
|
680
680
|
keys=${e.shortcut || r}
|
|
681
681
|
mac-keys=${e.shortcutMac || r}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { n as t, o as n, t as r } from "./decorate-
|
|
3
|
-
import { a as i, r as a } from "./custom-element-
|
|
2
|
+
import { n as t, o as n, t as r } from "./decorate-CCYde2ES.js";
|
|
3
|
+
import { a as i, r as a } from "./custom-element-DeaCQ2NP.js";
|
|
4
4
|
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
5
5
|
import { t as s } from "./query-ChDzi9FQ.js";
|
|
6
6
|
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
2
|
-
import { a as i, n as a, r as o } from "./custom-element-
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-CCYde2ES.js";
|
|
2
|
+
import { a as i, n as a, r as o } from "./custom-element-DeaCQ2NP.js";
|
|
3
3
|
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
-
import { a as l } from "./shadow-resets-
|
|
5
|
+
import { a as l } from "./shadow-resets-CRdvf-Ei.js";
|
|
6
6
|
import { t as u } from "./link-rel-DvrTEfVT.js";
|
|
7
7
|
import { r as d, t as f } from "./link-hint-KFhgr5Ng.js";
|
|
8
|
-
import { t as p } from "./with-translations-
|
|
8
|
+
import { t as p } from "./with-translations-BHDG37HJ.js";
|
|
9
9
|
import { t as m } from "./card.i18n-CpafLm3i.js";
|
|
10
10
|
// src/components/layout/card/card.styles.ts
|
|
11
11
|
var h = i`
|
|
@@ -223,11 +223,13 @@ var _ = class extends p(e, m) {
|
|
|
223
223
|
constructor(...e) {
|
|
224
224
|
super(...e), this.background = "base", this.href = "", this.target = "", this.download = void 0, this.rel = "", this.button = !1, this._actionFocused = !1, this._onFocusIn = (e) => {
|
|
225
225
|
let t = e.composedPath()[0];
|
|
226
|
-
this._actionFocused = !!t?.matches?.(".card__action:focus-visible");
|
|
226
|
+
this._actionFocused = !!t?.matches?.(".card__action:focus-visible") && t.getRootNode() === this.shadowRoot;
|
|
227
227
|
}, this._onFocusOut = () => {
|
|
228
228
|
this._actionFocused = !1;
|
|
229
229
|
}, this._onPointerDown = (e) => {
|
|
230
|
-
e.button > 0
|
|
230
|
+
if (e.button > 0) return;
|
|
231
|
+
let t = e.composedPath()[0];
|
|
232
|
+
t?.matches?.(".card__action") && t.getRootNode() === this.shadowRoot && (this.toggleAttribute("data-action-pressed", !0), window.addEventListener("pointerup", this._clearPressed), window.addEventListener("pointercancel", this._clearPressed));
|
|
231
233
|
}, this._clearPressed = () => {
|
|
232
234
|
window.removeEventListener("pointerup", this._clearPressed), window.removeEventListener("pointercancel", this._clearPressed), this.removeAttribute("data-action-pressed");
|
|
233
235
|
}, this._onSlotChange = (e) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { n as t, o as n, t as r } from "./decorate-
|
|
3
|
-
import { a as i, r as a } from "./custom-element-
|
|
2
|
+
import { n as t, o as n, t as r } from "./decorate-CCYde2ES.js";
|
|
3
|
+
import { a as i, r as a } from "./custom-element-DeaCQ2NP.js";
|
|
4
4
|
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
-
import { t as s } from "./reorder-handle-mixin-
|
|
5
|
+
import { t as s } from "./reorder-handle-mixin-CgvWq4fF.js";
|
|
6
6
|
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
-
import { t as l } from "./shadow-resets-
|
|
8
|
-
import { t as u } from "./visibility-mixin-
|
|
9
|
-
import { t as d } from "./row-header-mixin-
|
|
7
|
+
import { t as l } from "./shadow-resets-CRdvf-Ei.js";
|
|
8
|
+
import { t as u } from "./visibility-mixin-DvRe3O8t.js";
|
|
9
|
+
import { t as d } from "./row-header-mixin-B25JK2B3.js";
|
|
10
10
|
// src/components/lists-and-tables/cells/cell/cell.styles.ts
|
|
11
11
|
var f = i`
|
|
12
12
|
:host {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { n as t, o as n, r, t as i } from "./decorate-
|
|
3
|
-
import { a, r as o } from "./custom-element-
|
|
2
|
+
import { n as t, o as n, r, t as i } from "./decorate-CCYde2ES.js";
|
|
3
|
+
import { a, r as o } from "./custom-element-DeaCQ2NP.js";
|
|
4
4
|
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
5
5
|
import { t as c } from "./form-associated-mixin-BtStDDYA.js";
|
|
6
|
-
import "./icon-
|
|
7
|
-
import { t as l } from "./described-by-mixin-
|
|
6
|
+
import "./icon-qpmEfU9B.js";
|
|
7
|
+
import { t as l } from "./described-by-mixin-BYFim7aO.js";
|
|
8
8
|
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
9
9
|
import { t as d } from "./defer-focus-F73ud2D9.js";
|
|
10
10
|
// src/components/inputs/checkbox/checkbox.styles.ts
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { i as e, n as t, o as n, r, t as i } from "./decorate-CCYde2ES.js";
|
|
2
|
+
import { a, n as o, r as s } from "./custom-element-DeaCQ2NP.js";
|
|
3
|
+
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { n as l, t as u } from "./form-associated-mixin-BtStDDYA.js";
|
|
5
|
+
import { t as d } from "./shadow-resets-CRdvf-Ei.js";
|
|
6
|
+
import { n as f, r as p, t as m } from "./directive-CwRgozUW.js";
|
|
7
|
+
import { i as h, r as g } from "./directive-helpers-DgaADFyY.js";
|
|
8
|
+
import "./checkbox-CeLTJhAc.js";
|
|
9
|
+
import { t as _ } from "./described-by-mixin-BYFim7aO.js";
|
|
10
|
+
import { t as v } from "./reflect-non-default-Bu3rpCvg.js";
|
|
11
|
+
import { t as y } from "./defer-focus-F73ud2D9.js";
|
|
12
|
+
// src/components/inputs/checkbox-field/checkbox-field.styles.ts
|
|
13
|
+
var b = a`
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
/* # Host */
|
|
20
|
+
|
|
21
|
+
:host {
|
|
22
|
+
--_checkbox-field-children-padding-inline-start: calc(var(--semantics-controls-xs-min-size) + var(--primitives-space-8));
|
|
23
|
+
|
|
24
|
+
${d}
|
|
25
|
+
display: block;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host([hidden]) {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
/* # Block */
|
|
34
|
+
|
|
35
|
+
.checkbox-field {
|
|
36
|
+
display: flex;
|
|
37
|
+
min-height: var(--semantics-controls-md-min-size);
|
|
38
|
+
flex-direction: row;
|
|
39
|
+
gap: var(--primitives-space-8);
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
/* ## Colors */
|
|
45
|
+
|
|
46
|
+
:host([color="content"]) .checkbox-field__label {
|
|
47
|
+
--context-content-color: inherit;
|
|
48
|
+
color: var(--context-content-color);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/* # Elements */
|
|
53
|
+
|
|
54
|
+
.checkbox-field__control {
|
|
55
|
+
display: flex;
|
|
56
|
+
min-height: var(--semantics-controls-md-min-size);
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
align-items: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.checkbox-field__label {
|
|
62
|
+
display: flex;
|
|
63
|
+
cursor: default;
|
|
64
|
+
padding-top: calc((var(--semantics-controls-md-min-size) - 1em * var(--primitives-line-height-snug)) / 2);
|
|
65
|
+
flex-grow: 1;
|
|
66
|
+
--context-content-color: var(--semantics-content-color);
|
|
67
|
+
color: var(--semantics-content-color);
|
|
68
|
+
font: var(--primitives-font-body-md-regular-snug);
|
|
69
|
+
text-wrap: pretty;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([disabled]) .checkbox-field__label {
|
|
73
|
+
opacity: var(--primitives-opacity-disabled);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.checkbox-field__children {
|
|
77
|
+
padding-inline-start: var(--_checkbox-field-children-padding-inline-start);
|
|
78
|
+
}
|
|
79
|
+
`, x = m(class extends f {
|
|
80
|
+
constructor(e) {
|
|
81
|
+
if (super(e), e.type !== p.PROPERTY && e.type !== p.ATTRIBUTE && e.type !== p.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
|
|
82
|
+
if (!h(e)) throw Error("`live` bindings can only contain a single expression");
|
|
83
|
+
}
|
|
84
|
+
render(e) {
|
|
85
|
+
return e;
|
|
86
|
+
}
|
|
87
|
+
update(t, [n]) {
|
|
88
|
+
if (n === e || n === r) return n;
|
|
89
|
+
let i = t.element, a = t.name;
|
|
90
|
+
if (t.type === p.PROPERTY) {
|
|
91
|
+
if (n === i[a]) return e;
|
|
92
|
+
} else if (t.type === p.BOOLEAN_ATTRIBUTE) {
|
|
93
|
+
if (!!n === i.hasAttribute(a)) return e;
|
|
94
|
+
} else if (t.type === p.ATTRIBUTE && i.getAttribute(a) === n + "") return e;
|
|
95
|
+
return g(t), n;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
// src/components/inputs/checkbox-field/checkbox-field.template.ts
|
|
99
|
+
function S(e) {
|
|
100
|
+
return n`
|
|
101
|
+
<div class="checkbox-field"
|
|
102
|
+
@click=${e._handleLabelClick}
|
|
103
|
+
>
|
|
104
|
+
<div class="checkbox-field__control">
|
|
105
|
+
<nldd-checkbox
|
|
106
|
+
color=${e.color || r}
|
|
107
|
+
?invalid=${e.invalid}
|
|
108
|
+
?required=${e.required && !e._inGroup}
|
|
109
|
+
?checked=${x(e.checked)}
|
|
110
|
+
?indeterminate=${x(e.indeterminate)}
|
|
111
|
+
?disabled=${e.disabled}
|
|
112
|
+
name=${e.name || r}
|
|
113
|
+
value=${e.value}
|
|
114
|
+
accessible-label=${e.label || r}
|
|
115
|
+
@change=${e._handleChange}
|
|
116
|
+
></nldd-checkbox>
|
|
117
|
+
</div>
|
|
118
|
+
<span class="checkbox-field__label"
|
|
119
|
+
id="label"
|
|
120
|
+
>
|
|
121
|
+
${e.label}
|
|
122
|
+
</span>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="checkbox-field__children"
|
|
125
|
+
role=${e._childFields.length > 0 ? "group" : r}
|
|
126
|
+
aria-labelledby=${e._childFields.length > 0 ? "label" : r}
|
|
127
|
+
>
|
|
128
|
+
<slot
|
|
129
|
+
name="children"
|
|
130
|
+
@slotchange=${e._handleChildrenSlotChange}
|
|
131
|
+
></slot>
|
|
132
|
+
</div>
|
|
133
|
+
`;
|
|
134
|
+
}
|
|
135
|
+
// src/components/inputs/checkbox-field/checkbox-field.ts
|
|
136
|
+
var C = class extends _(u(t)) {
|
|
137
|
+
constructor(...e) {
|
|
138
|
+
super(...e), this._initialChecked = !1, this.checked = !1, this.indeterminate = !1, this.disabled = !1, this.value = "on", this.name = "", this.color = "", this.label = "", this.required = !1, this._groupHasSelection = !1, this.invalid = !1, this._childFields = [], this._handleChildChange = (e) => {
|
|
139
|
+
let t = e.target;
|
|
140
|
+
t !== this && t.localName === "nldd-checkbox-field" && this._childFields.includes(t) && this._followChildren(!0);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
get _inGroup() {
|
|
144
|
+
return this._group !== null;
|
|
145
|
+
}
|
|
146
|
+
firstUpdated() {
|
|
147
|
+
this._initialChecked = this.checked;
|
|
148
|
+
}
|
|
149
|
+
connectedCallback() {
|
|
150
|
+
super.connectedCallback(), this.addEventListener("change", this._handleChildChange);
|
|
151
|
+
}
|
|
152
|
+
disconnectedCallback() {
|
|
153
|
+
super.disconnectedCallback(), this.removeEventListener("change", this._handleChildChange);
|
|
154
|
+
}
|
|
155
|
+
_handleChildrenSlotChange(e) {
|
|
156
|
+
let t = e.target;
|
|
157
|
+
this._childFields = t.assignedElements().filter((e) => e.localName === "nldd-checkbox-field"), this._followChildren(!1), this._group?._onSlotChange();
|
|
158
|
+
}
|
|
159
|
+
get _group() {
|
|
160
|
+
return this.closest("nldd-checkbox-group");
|
|
161
|
+
}
|
|
162
|
+
willUpdate(e) {
|
|
163
|
+
super.willUpdate(e), this.hasUpdated && e.has("checked") && this._group?._optionChanged();
|
|
164
|
+
}
|
|
165
|
+
_followChildren(e) {
|
|
166
|
+
let t = this._childFields;
|
|
167
|
+
if (t.length === 0) return;
|
|
168
|
+
let n = t.every((e) => e.checked), r = t.some((e) => e.checked || e.indeterminate), i = !n && r;
|
|
169
|
+
(n !== this.checked || i !== this.indeterminate) && (this.checked = n, this.indeterminate = i, this.commitFormValue(), e && this._dispatchChange());
|
|
170
|
+
}
|
|
171
|
+
_wouldChange(e) {
|
|
172
|
+
return this._childFields.some((t) => !t.disabled && (t._childFields.length > 0 ? t._wouldChange(e) : t.checked !== e));
|
|
173
|
+
}
|
|
174
|
+
_setChildren(e) {
|
|
175
|
+
this._childFields.length !== 0 && (this._childFields.forEach((t) => {
|
|
176
|
+
t.disabled || (t.checked = e, t.indeterminate = !1, t._setChildren(e), t.commitFormValue());
|
|
177
|
+
}), this._followChildren(!1));
|
|
178
|
+
}
|
|
179
|
+
_dispatchChange() {
|
|
180
|
+
this.dispatchEvent(new CustomEvent("change", {
|
|
181
|
+
detail: {
|
|
182
|
+
checked: this.checked,
|
|
183
|
+
value: this.value
|
|
184
|
+
},
|
|
185
|
+
bubbles: !0,
|
|
186
|
+
composed: !0
|
|
187
|
+
}));
|
|
188
|
+
}
|
|
189
|
+
formValue() {
|
|
190
|
+
return this.checked ? this.value : null;
|
|
191
|
+
}
|
|
192
|
+
ownValidity() {
|
|
193
|
+
return l({
|
|
194
|
+
required: this.required,
|
|
195
|
+
checked: this.checked || this._groupHasSelection,
|
|
196
|
+
disabled: this.disabled
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
formResetCallback() {
|
|
200
|
+
this.checked = this._initialChecked, this.indeterminate = !1, this._childFields.length > 0 && queueMicrotask(() => this._followChildren(!1));
|
|
201
|
+
}
|
|
202
|
+
formStateRestoreCallback(e) {
|
|
203
|
+
this.checked = e !== null;
|
|
204
|
+
}
|
|
205
|
+
_handleLabelClick(e) {
|
|
206
|
+
this.disabled || e.target.closest?.("nldd-checkbox") || (this.shadowRoot?.querySelector("nldd-checkbox"))?.toggle();
|
|
207
|
+
}
|
|
208
|
+
_handleChange(e) {
|
|
209
|
+
let { checked: t } = e.detail;
|
|
210
|
+
t && this._childFields.length > 0 && !this._wouldChange(!0) && (t = !1), this.checked = t, this.indeterminate = !1, this._setChildren(t), this.requestUpdate(), this.commitFormValue(), this._dispatchChange();
|
|
211
|
+
}
|
|
212
|
+
focus(e) {
|
|
213
|
+
y(this, e) || this.shadowRoot?.querySelector("nldd-checkbox")?.focus(e);
|
|
214
|
+
}
|
|
215
|
+
describedTarget() {
|
|
216
|
+
return this.shadowRoot?.querySelector("nldd-checkbox") ?? null;
|
|
217
|
+
}
|
|
218
|
+
render() {
|
|
219
|
+
return S(this);
|
|
220
|
+
}
|
|
221
|
+
}, w = (C.styles = b, C.isFormInput = !0, C);
|
|
222
|
+
i([s({
|
|
223
|
+
type: Boolean,
|
|
224
|
+
reflect: !0
|
|
225
|
+
})], w.prototype, "checked", void 0), i([s({
|
|
226
|
+
type: Boolean,
|
|
227
|
+
reflect: !0
|
|
228
|
+
})], w.prototype, "indeterminate", void 0), i([s({
|
|
229
|
+
type: Boolean,
|
|
230
|
+
reflect: !0
|
|
231
|
+
})], w.prototype, "disabled", void 0), i([s({ type: String })], w.prototype, "value", void 0), i([s({
|
|
232
|
+
reflect: !0,
|
|
233
|
+
converter: v("")
|
|
234
|
+
})], w.prototype, "name", void 0), i([s({
|
|
235
|
+
reflect: !0,
|
|
236
|
+
converter: v("")
|
|
237
|
+
})], w.prototype, "color", void 0), i([s({ type: String })], w.prototype, "label", void 0), i([s({
|
|
238
|
+
type: Boolean,
|
|
239
|
+
reflect: !0
|
|
240
|
+
})], w.prototype, "required", void 0), i([o()], w.prototype, "_groupHasSelection", void 0), i([s({
|
|
241
|
+
type: Boolean,
|
|
242
|
+
reflect: !0
|
|
243
|
+
})], w.prototype, "invalid", void 0), i([o()], w.prototype, "_childFields", void 0), w = i([c("nldd-checkbox-field")], w);
|
|
244
|
+
export { w as NLDDCheckboxField };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { n as e, o as t, t as n } from "./decorate-CCYde2ES.js";
|
|
2
|
+
import { a as r, r as i } from "./custom-element-DeaCQ2NP.js";
|
|
3
|
+
import { t as a } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as o } from "./shadow-resets-CRdvf-Ei.js";
|
|
5
|
+
import { t as s } from "./owned-attribute-x9OCTy_4.js";
|
|
6
|
+
import { t as c } from "./defer-focus-F73ud2D9.js";
|
|
7
|
+
// src/components/inputs/checkbox-group/checkbox-group.styles.ts
|
|
8
|
+
var l = r`
|
|
9
|
+
:host {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* # Host */
|
|
15
|
+
|
|
16
|
+
:host {
|
|
17
|
+
${o}
|
|
18
|
+
display: block;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host([hidden]) {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/* # Block */
|
|
27
|
+
|
|
28
|
+
.checkbox-group {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
// src/components/inputs/checkbox-group/checkbox-group.template.ts
|
|
34
|
+
function u(e) {
|
|
35
|
+
return t`
|
|
36
|
+
<div class="checkbox-group">
|
|
37
|
+
<slot @slotchange=${e._onSlotChange}></slot>
|
|
38
|
+
</div>
|
|
39
|
+
`;
|
|
40
|
+
}
|
|
41
|
+
// src/components/inputs/checkbox-group/checkbox-group.ts
|
|
42
|
+
var d = class extends e {
|
|
43
|
+
constructor(...e) {
|
|
44
|
+
super(...e), this.name = "", this.disabled = !1, this.required = !1, this.accessibleLabel = "", this.accessibleLabeledBy = "", this._appliedLabel = null, this._answerQueued = !1, this.invalid = !1, this._handleChange = () => {
|
|
45
|
+
this._syncAnswered();
|
|
46
|
+
}, this._onSlotChange = () => {
|
|
47
|
+
this._syncFields();
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
connectedCallback() {
|
|
51
|
+
super.connectedCallback(), this.setAttribute("role", "group"), this.addEventListener("change", this._handleChange);
|
|
52
|
+
}
|
|
53
|
+
disconnectedCallback() {
|
|
54
|
+
super.disconnectedCallback(), this.removeEventListener("change", this._handleChange);
|
|
55
|
+
}
|
|
56
|
+
updated(e) {
|
|
57
|
+
(e.has("name") || e.has("disabled") || e.has("required")) && this._syncFields(), e.has("invalid") && (this.invalid ? this.setAttribute("aria-invalid", "true") : this.removeAttribute("aria-invalid")), e.has("accessibleLabel") && (this._appliedLabel = s(this, "aria-label", this.accessibleLabel, this._appliedLabel)), e.has("accessibleLabeledBy") && (this.accessibleLabeledBy ? this.setAttribute("aria-labelledby", this.accessibleLabeledBy) : this.removeAttribute("aria-labelledby"));
|
|
58
|
+
}
|
|
59
|
+
_getFields() {
|
|
60
|
+
return Array.from(this.querySelectorAll("nldd-checkbox-field"));
|
|
61
|
+
}
|
|
62
|
+
_syncFields() {
|
|
63
|
+
this._getFields().forEach((e) => {
|
|
64
|
+
this.name && (e.name = this.name), e.required = this.required, this.disabled ? e.hasAttribute("disabled") || (e.setAttribute("group-disabled", ""), e.disabled = !0) : e.hasAttribute("group-disabled") && (e.removeAttribute("group-disabled"), e.disabled = !1);
|
|
65
|
+
}), this._syncAnswered();
|
|
66
|
+
}
|
|
67
|
+
_syncAnswered() {
|
|
68
|
+
let e = this._getFields(), t = e.some((e) => e.checked);
|
|
69
|
+
e.forEach((e) => {
|
|
70
|
+
e._groupHasSelection = t, e.commitFormValue?.();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
_optionChanged() {
|
|
74
|
+
this._answerQueued || (this._answerQueued = !0, queueMicrotask(() => {
|
|
75
|
+
this._answerQueued = !1, this._syncAnswered();
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
focus(e) {
|
|
79
|
+
if (c(this, e)) return;
|
|
80
|
+
let t = this._getFields().filter((e) => !e.disabled);
|
|
81
|
+
(t.find((e) => e.checked) ?? t[0])?.focus(e);
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
return u(this);
|
|
85
|
+
}
|
|
86
|
+
}, f = (d.styles = l, d.isFormInput = !0, d);
|
|
87
|
+
n([i({ type: String })], f.prototype, "name", void 0), n([i({
|
|
88
|
+
type: Boolean,
|
|
89
|
+
reflect: !0
|
|
90
|
+
})], f.prototype, "disabled", void 0), n([i({
|
|
91
|
+
type: Boolean,
|
|
92
|
+
reflect: !0
|
|
93
|
+
})], f.prototype, "required", void 0), n([i({
|
|
94
|
+
type: String,
|
|
95
|
+
attribute: "accessible-label"
|
|
96
|
+
})], f.prototype, "accessibleLabel", void 0), n([i({
|
|
97
|
+
type: String,
|
|
98
|
+
attribute: "accessible-labeled-by"
|
|
99
|
+
})], f.prototype, "accessibleLabeledBy", void 0), n([i({
|
|
100
|
+
type: Boolean,
|
|
101
|
+
reflect: !0
|
|
102
|
+
})], f.prototype, "invalid", void 0), f = n([a("nldd-checkbox-group")], f);
|
|
103
|
+
export { f as NLDDCheckboxGroup };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as e, r as t } from "./custom-element-
|
|
1
|
+
import { a as e, r as t } from "./custom-element-DeaCQ2NP.js";
|
|
2
2
|
import { t as n } from "./reflect-non-default-Bu3rpCvg.js";
|
|
3
|
-
import {
|
|
3
|
+
import { H as r, I as i, Q as a, W as o, j as s, r as c, t as l } from "./languages-C9AGuuSS.js";
|
|
4
4
|
import { t as u } from "./custom-element-BW8Ua4c7.js";
|
|
5
5
|
import { t as d } from "./query-ChDzi9FQ.js";
|
|
6
|
-
import { a as f, n as p, o as m, t as h } from "./codemirror-input-
|
|
7
|
-
import { o as g, t as _ } from "./decorate-
|
|
8
|
-
import { t as v } from "./shadow-resets-
|
|
6
|
+
import { a as f, n as p, o as m, t as h } from "./codemirror-input-DJ0wgYrc.js";
|
|
7
|
+
import { o as g, t as _ } from "./decorate-CCYde2ES.js";
|
|
8
|
+
import { t as v } from "./shadow-resets-CRdvf-Ei.js";
|
|
9
9
|
// src/components/inputs/code-editor/code-editor.styles.ts
|
|
10
10
|
var y = e`
|
|
11
11
|
:host {
|
|
@@ -214,7 +214,7 @@ function b(e) {
|
|
|
214
214
|
// src/components/inputs/code-editor/code-editor.ts
|
|
215
215
|
var x = class extends h {
|
|
216
216
|
constructor(...e) {
|
|
217
|
-
super(...e), this.wrap = !1, this.resize = "auto", this.embedded = !1, this.language = "", this.lineNumbers = !1, this.rowsProperty = "--_code-editor-rows", this._wrapCompartment = new
|
|
217
|
+
super(...e), this.wrap = !1, this.resize = "auto", this.embedded = !1, this.language = "", this.lineNumbers = !1, this.rowsProperty = "--_code-editor-rows", this._wrapCompartment = new a(), this._lineNumbersCompartment = new a(), this._languageCompartment = new a();
|
|
218
218
|
}
|
|
219
219
|
getEditorParent() {
|
|
220
220
|
return this._container;
|
|
@@ -224,15 +224,15 @@ var x = class extends h {
|
|
|
224
224
|
c,
|
|
225
225
|
f(),
|
|
226
226
|
i(),
|
|
227
|
-
|
|
227
|
+
r.of([...p, ...m]),
|
|
228
228
|
...this.inputExtensions(),
|
|
229
|
-
this._wrapCompartment.of(this.wrap ?
|
|
229
|
+
this._wrapCompartment.of(this.wrap ? s.lineWrapping : []),
|
|
230
230
|
this._lineNumbersCompartment.of(this._lineNumbersExtension()),
|
|
231
231
|
this._languageCompartment.of([])
|
|
232
232
|
];
|
|
233
233
|
}
|
|
234
234
|
_lineNumbersExtension() {
|
|
235
|
-
return this.lineNumbers ?
|
|
235
|
+
return this.lineNumbers ? o({ domEventHandlers: { mousedown: (e, t) => (e.dispatch({ selection: { anchor: t.from } }), e.focus(), !0) } }) : [];
|
|
236
236
|
}
|
|
237
237
|
contentAttributes() {
|
|
238
238
|
return {
|
|
@@ -244,7 +244,7 @@ var x = class extends h {
|
|
|
244
244
|
super.onEditorMounted(), this.language && this._applyLanguage();
|
|
245
245
|
}
|
|
246
246
|
updated(e) {
|
|
247
|
-
super.updated(e), this.view && (e.has("wrap") && this.reconfigure(this._wrapCompartment, this.wrap ?
|
|
247
|
+
super.updated(e), this.view && (e.has("wrap") && this.reconfigure(this._wrapCompartment, this.wrap ? s.lineWrapping : []), e.has("lineNumbers") && this.reconfigure(this._lineNumbersCompartment, this._lineNumbersExtension()), e.has("language") && this._applyLanguage());
|
|
248
248
|
}
|
|
249
249
|
async _applyLanguage() {
|
|
250
250
|
let e = this.language;
|