@nldd/design-system 0.21.0 → 0.22.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 +864 -232
- package/dist/cdn/autoloader.js +136 -136
- package/dist/cdn/chunks/{activity-indicator-JglZJ8dh.js → activity-indicator-BTnpfsIt.js} +22 -22
- package/dist/cdn/chunks/{avatar-ASqePVhU.js → avatar--5c37XVW.js} +44 -43
- package/dist/cdn/chunks/{avatar-group-rknt4FBO.js → avatar-group-BNfmY5CU.js} +41 -41
- package/dist/cdn/chunks/{badge-Cc2Nufoc.js → badge-YAvIVoRy.js} +28 -28
- package/dist/cdn/chunks/{banner-BLVKM07M.js → banner-BpCK57yd.js} +41 -37
- package/dist/cdn/chunks/{bar-split-view-Clbg-p9H.js → bar-split-view-BgYo4YJw.js} +27 -27
- package/dist/cdn/chunks/blockquote-BOu-31f3.js +240 -0
- package/dist/cdn/chunks/{box-WkhyjQVy.js → box-YipFNjJh.js} +7 -7
- package/dist/cdn/chunks/{breadcrumbs-D9YxZzRj.js → breadcrumbs-DSVAVozW.js} +33 -33
- package/dist/cdn/chunks/{button-DO90Lo6q.js → button-XtEOeBEq.js} +101 -100
- package/dist/cdn/chunks/{button-bar-Bxgdbyh3.js → button-bar-D1i71rRQ.js} +13 -13
- package/dist/cdn/chunks/{button-group-BYGPPLmZ.js → button-group-un5QDbqK.js} +10 -10
- package/dist/cdn/chunks/{card-BP0jfOkS.js → card-D5yTAdts.js} +22 -22
- package/dist/cdn/chunks/{cell-BRD2ilQh.js → cell-BbtB9C2Z.js} +24 -23
- package/dist/cdn/chunks/{checkbox-field-DDZ-B6vH.js → checkbox-field-Cmc6Aagc.js} +33 -30
- package/dist/cdn/chunks/{checkbox-Cazx8CQn.js → checkbox-oYX8b8iy.js} +28 -27
- package/dist/cdn/chunks/{class-map-CXSdNjt8.js → class-map-DKd4N9Wz.js} +1 -1
- package/dist/cdn/chunks/{code-editor-D6Q55oaY.js → code-editor-BZwpTu4O.js} +55 -57
- package/dist/cdn/chunks/{code-viewer-DspLH2T1.js → code-viewer-C4XDF03i.js} +75 -75
- package/dist/cdn/chunks/{codemirror-input-Db65x22n.js → codemirror-input-Sen5OmAF.js} +5 -5
- package/dist/cdn/chunks/{collection-NVtkvDls.js → collection-BnZstW7U.js} +36 -36
- package/dist/cdn/chunks/{combo-box-DyBQSaQl.js → combo-box-BpaGeypm.js} +68 -68
- package/dist/cdn/chunks/{container-rrbwk0z4.js → container-DuV5d7Eb.js} +51 -51
- package/dist/cdn/chunks/{custom-element-q6NzoL5b.js → custom-element-DsfOrnOD.js} +1 -1
- package/dist/cdn/chunks/{date-field-Clti_wKN.js → date-field-FactdbhC.js} +125 -117
- package/dist/cdn/chunks/{date-picker-2TCQLd5D.js → date-picker-BtlBTKvh.js} +78 -78
- package/dist/cdn/chunks/{decorate-TduJMFD_.js → decorate-CJCfz_g6.js} +2 -2
- package/dist/cdn/chunks/{described-by-mixin-daRE7orX.js → described-by-mixin-CPultP0p.js} +2 -2
- package/dist/cdn/chunks/{description-cell-CQwOj_rN.js → description-cell-DFc0_dWI.js} +24 -23
- package/dist/cdn/chunks/{dev-checks-zW_W-hnh.js → dev-checks-DGwOQoR3.js} +76 -26
- package/dist/cdn/chunks/{dist-EgIBI-FG.js → dist-6xUfJUfa.js} +26 -26
- package/dist/cdn/chunks/{dist-A7_1pHX0.js → dist-AQ1Gehx3.js} +25 -25
- package/dist/cdn/chunks/{dist-DPUBF0MZ.js → dist-BUqkX3a-.js} +362 -371
- package/dist/cdn/chunks/{dist-Rm6FvrSR.js → dist-BWSiWu4t.js} +55 -55
- package/dist/cdn/chunks/{dist-CP3G1pSK.js → dist-Bmb_H8Sp.js} +1 -1
- package/dist/cdn/chunks/{dist-DrTzvgE7.js → dist-BuquxOFD.js} +178 -188
- package/dist/cdn/chunks/{dist-EM4MWLQq.js → dist-CM5DHMaz.js} +120 -125
- package/dist/cdn/chunks/{dist-C_dGY6zR.js → dist-ClsiJytN.js} +43 -43
- package/dist/cdn/chunks/{dist-D2qap2OY.js → dist-CtdONv3x.js} +13 -13
- package/dist/cdn/chunks/{dist-ChmCRv39.js → dist-CxdoWiwX.js} +50 -50
- package/dist/cdn/chunks/{dist-BEfLdOvy.js → dist-D-9cbJjq.js} +190 -196
- package/dist/cdn/chunks/{divider-CCNbnplA.js → divider-CZ8Hn1om.js} +6 -6
- package/dist/cdn/chunks/{document-tab-bar-CUc4WWY3.js → document-tab-bar-BBnyyiEA.js} +56 -56
- package/dist/cdn/chunks/{dropdown-DZTZtkm5.js → dropdown-Bbbgy8mT.js} +31 -31
- package/dist/cdn/chunks/{file-field-Bff6_1pp.js → file-field-CddG_e0F.js} +116 -116
- package/dist/cdn/chunks/{form-hXLgy_tY.js → form-DIIMIq0q.js} +23 -9
- package/dist/cdn/chunks/{form-actions-C_7hINq-.js → form-actions-BICy0Sgp.js} +7 -7
- package/dist/cdn/chunks/{form-associated-mixin--GIbl98p.js → form-associated-mixin-BtStDDYA.js} +14 -3
- package/dist/cdn/chunks/{form-field--4nWJ_DK.js → form-field-Bnei2EQO.js} +36 -36
- package/dist/cdn/chunks/{form-section-By-D4un0.js → form-section-Cv0tr0pm.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-Dg4sIJG1.js → full-bleed-section-LOfo_1Aj.js} +10 -10
- package/dist/cdn/chunks/{hero-CQQMNCT_.js → hero-BABWpYs5.js} +48 -48
- package/dist/cdn/chunks/{icon-BORlalt0.js → icon-D5dJm51v.js} +41 -47
- package/dist/cdn/chunks/{icon-button-rKiIHs7A.js → icon-button-DtxIRaQy.js} +80 -79
- package/dist/cdn/chunks/{icon-cell-rk4NQid2.js → icon-cell-Be5awZV7.js} +26 -24
- package/dist/cdn/chunks/{identity-Cg1l0HhB.js → identity-B4KtbT8h.js} +26 -26
- package/dist/cdn/chunks/{if-defined-CaKKERku.js → if-defined-BirFs11D.js} +1 -1
- package/dist/cdn/chunks/{image-DZMW6JgL.js → image-BpVEir6U.js} +66 -61
- package/dist/cdn/chunks/{inline-dialog-WlqtPBPJ.js → inline-dialog-B627fZmT.js} +29 -28
- package/dist/cdn/chunks/{just-in-time-education-DRcb5g7x.js → just-in-time-education-Nw5ido3N.js} +44 -48
- package/dist/cdn/chunks/{kanban-Ca_mfqsA.js → kanban-9HGexCJx.js} +24 -24
- package/dist/cdn/chunks/{kanban-column-fgIMc7pw.js → kanban-column-v5rfv8fN.js} +13 -13
- package/dist/cdn/chunks/{keyboard-shortcut-EknnW7Ub.js → keyboard-shortcut-CVNilmgr.js} +20 -20
- package/dist/cdn/chunks/{languages-yKikVFv_.js → languages-Ce4h7R1-.js} +12 -12
- package/dist/cdn/chunks/{link-FBSAJ3UC.js → link-BQQwp17j.js} +36 -36
- package/dist/cdn/chunks/{link-group-90qVfKa0.js → link-group-CQhEcQIV.js} +11 -11
- package/dist/cdn/chunks/{list-CaWl3q0Z.js → list-DDxjOe38.js} +41 -39
- package/dist/cdn/chunks/{list-item-Cagnf6eG.js → list-item-Da6-fFDs.js} +131 -77
- package/dist/cdn/chunks/{list-item-segment-BRzBF1y_.js → list-item-segment-CnGHU6G-.js} +44 -44
- package/dist/cdn/chunks/{menu-bar-0NFXvq-v.js → menu-bar-MPNB2ovW.js} +21 -21
- package/dist/cdn/chunks/{menu-bar-item-DGSC_ETi.js → menu-bar-item-BuZ-VvnR.js} +34 -34
- package/dist/cdn/chunks/{menu-divider-CLLRgMll.js → menu-divider-CcOTQxx5.js} +6 -6
- package/dist/cdn/chunks/{menu-group-BL24ChpR.js → menu-group-DGgbYejF.js} +8 -8
- package/dist/cdn/chunks/{menu-item-CooKfrFa.js → menu-item-DgM4RmyD.js} +28 -28
- package/dist/cdn/chunks/{menu-BOu_pD1Q.js → menu-uOExHS1i.js} +58 -57
- package/dist/cdn/chunks/{menu.template-C6rbfI-u.js → menu.template-DkbfQRQ6.js} +3 -3
- package/dist/cdn/chunks/{modal-dialog-BrUMP4Jm.js → modal-dialog-BRYfJ7Vf.js} +26 -26
- package/dist/cdn/chunks/{multi-line-text-field-D7hXhyOn.js → multi-line-text-field-CWOPY6sF.js} +47 -47
- package/dist/cdn/chunks/{navigation-split-view-B2ZQhxEb.js → navigation-split-view-BRiplUXM.js} +37 -37
- package/dist/cdn/chunks/nl.generated-fkFCex7n.js +112 -0
- package/dist/cdn/chunks/{notification-DSGP14d1.js → notification-DhnzrUQp.js} +25 -25
- package/dist/cdn/chunks/{number-field-B8op14Y_.js → number-field-DgRrXCiv.js} +39 -39
- package/dist/cdn/chunks/{one-half-one-half-section-ZYmHYf4Q.js → one-half-one-half-section-D7tzDw-p.js} +11 -11
- package/dist/cdn/chunks/{one-third-two-thirds-section-Ds10K6AS.js → one-third-two-thirds-section-E8xOdcsf.js} +11 -11
- package/dist/cdn/chunks/{one-time-code-field-Cgy_tTS4.js → one-time-code-field-BoJdVvNN.js} +54 -54
- package/dist/cdn/chunks/{page-CBf_Decp.js → page-DDm193hL.js} +27 -27
- package/dist/cdn/chunks/{page-footer-CSv1dU7M.js → page-footer-32oZSwvG.js} +46 -61
- package/dist/cdn/chunks/{page-section-mixin-Dp6X8GKd.js → page-section-mixin-CmsW9L1S.js} +2 -2
- package/dist/cdn/chunks/{pagination-CMUcFB53.js → pagination-Co1BlFTP.js} +45 -45
- package/dist/cdn/chunks/{password-field-C76Vm3rm.js → password-field-BxKQRE4K.js} +54 -54
- package/dist/cdn/chunks/{popover-C-CVVtfl.js → popover-DpCE_XjR.js} +92 -58
- package/dist/cdn/chunks/{progress-bar-BLiHaRUS.js → progress-bar-5WAVf0HV.js} +53 -53
- package/dist/cdn/chunks/{progress-circle-CjkovRbL.js → progress-circle-D7Mn6WZv.js} +55 -55
- package/dist/cdn/chunks/{radio-button-field-C-Z6Lnd4.js → radio-button-field-Dxnahic-.js} +25 -25
- package/dist/cdn/chunks/{radio-button-group-ChTqBCnQ.js → radio-button-group-D_4lI2U-.js} +18 -18
- package/dist/cdn/chunks/{radio-button-GHyO-GQB.js → radio-button-pd8lwtEO.js} +29 -29
- package/dist/cdn/chunks/{render-marked-DX_5ISZE.js → render-marked-CAskRZMx.js} +1 -1
- package/dist/cdn/chunks/{drag-handle-cell-CbzDYebG.js → reorder-handle-cell-BL8ECfi5.js} +38 -37
- package/dist/cdn/chunks/reorder-handle-cell.i18n-DlH2aVwd.js +3 -0
- package/dist/cdn/chunks/reorder-handle-mixin-BDRPLv58.js +16 -0
- package/dist/cdn/chunks/{repeat-Ch_5OsXE.js → repeat-D5W3dDCY.js} +1 -1
- package/dist/cdn/chunks/{return-focus-Xmagtk6r.js → return-focus-BzZWhXhc.js} +21 -16
- package/dist/cdn/chunks/rich-text-diNxNddp.js +61 -0
- package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
- package/dist/cdn/chunks/{row-header-mixin-CgqvREoV.js → row-header-mixin-Dj6t4nYI.js} +2 -2
- package/dist/cdn/chunks/{search-field-BGNfERhn.js → search-field-CLuQnvBU.js} +67 -67
- package/dist/cdn/chunks/{segmented-control-BYAG4VRp.js → segmented-control-B0z5J7r9.js} +86 -82
- package/dist/cdn/chunks/{shadow-resets-6SToDsPu.js → shadow-resets-BeVmf7ky.js} +2 -2
- package/dist/cdn/chunks/{sheet-BdVCqm2H.js → sheet-CKfFzUCu.js} +22 -22
- package/dist/cdn/chunks/{shell-C9rds_D9.js → shell-CglPjEWB.js} +7 -7
- package/dist/cdn/chunks/{side-by-side-split-view-C5oX4c6Z.js → side-by-side-split-view-DU4ODEBX.js} +21 -21
- package/dist/cdn/chunks/{sidebar-section-DP4jnS7g.js → sidebar-section-DzJw-MHs.js} +29 -29
- package/dist/cdn/chunks/{simple-section-qrCqXeBa.js → simple-section-BfhBYqMa.js} +12 -12
- package/dist/cdn/chunks/{skip-link-DWh4W6-J.js → skip-link-DwVvD9XL.js} +19 -19
- package/dist/cdn/chunks/{slider--hODfOwh.js → slider-BBxKxr-H.js} +86 -82
- package/dist/cdn/chunks/{spacer-CFzq_JCh.js → spacer-CqK1xVh2.js} +11 -11
- package/dist/cdn/chunks/{spacer-cell-DuVOgIj8.js → spacer-cell-DS7Tphdm.js} +13 -12
- package/dist/cdn/chunks/{split-button-BeXnOUTt.js → split-button-Brh7EmIA.js} +32 -32
- package/dist/cdn/chunks/{split-view-divider-jzcPmnMh.js → split-view-divider-Bh3XLobi.js} +10 -10
- package/dist/cdn/chunks/{split-view-pane-BLsZz263.js → split-view-pane-BPKlAR4d.js} +13 -13
- package/dist/cdn/chunks/{stacked-split-view-CcOR8LrJ.js → stacked-split-view-SrIHWkKW.js} +20 -20
- package/dist/cdn/chunks/{static-html-Cf4ccUIg.js → static-html-OvWm15yg.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CINbOihq.js → status-bar-IqyLnoMx.js} +24 -24
- package/dist/cdn/chunks/{step-bar-6FvZL1Ti.js → step-bar-DltkU-AG.js} +56 -56
- package/dist/cdn/chunks/{step-cell-CejRisgS.js → step-cell-BHW3t6nn.js} +40 -39
- package/dist/cdn/chunks/{stepper-CY2rJWOJ.js → stepper-DMlk7A-Y.js} +30 -30
- package/dist/cdn/chunks/{style-map-DsIw6lkq.js → style-map-CNYX1L3t.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-BY3DBIl6.js → swatch-picker-BAKkJFgt.js} +47 -47
- package/dist/cdn/chunks/{switch-DDSsZFwK.js → switch-B3d_1Leh.js} +27 -26
- package/dist/cdn/chunks/{switch-field-CMoM9I38.js → switch-field-BXJj1PHC.js} +47 -28
- package/dist/cdn/chunks/{tab-bar-DmslEoPD.js → tab-bar-C7T0XL0u.js} +70 -70
- package/dist/cdn/chunks/{table-DwXjCSD5.js → table-CVyPmXfX.js} +31 -31
- package/dist/cdn/chunks/{tag-DM3APy3B.js → tag-KdbJbRcK.js} +25 -25
- package/dist/cdn/chunks/{text-cell-BkEsGI3g.js → text-cell-CUH5Tf5F.js} +43 -42
- package/dist/cdn/chunks/{text-editor-BvTiMeNV.js → text-editor-Bsfygq28.js} +71 -71
- package/dist/cdn/chunks/{text-field-CUyh1-V8.js → text-field-BQxQe0ch.js} +56 -56
- package/dist/cdn/chunks/{text-B1CatNR1.js → text-lQLJJw1m.js} +45 -45
- package/dist/cdn/chunks/{time-field-Cj5WojfO.js → time-field-kdMQ7qaa.js} +123 -113
- package/dist/cdn/chunks/{time-picker-W0xYXLy8.js → time-picker-T1bZ4zxP.js} +86 -79
- package/dist/cdn/chunks/{title-cell-8d8psUBX.js → title-cell-CyJr9OiV.js} +61 -63
- package/dist/cdn/chunks/{title-BuT7tWqN.js → title-yXmufzsm.js} +110 -74
- package/dist/cdn/chunks/{toggle-button-DNXWXZpE.js → toggle-button-DiZaFEAk.js} +74 -74
- package/dist/cdn/chunks/{toggle-button-group-ByowJYgs.js → toggle-button-group-DRai7q0C.js} +20 -20
- package/dist/cdn/chunks/{token-CnkEB3hB.js → token-C6EudIjw.js} +30 -30
- package/dist/cdn/chunks/{token-field-hvDB3l6O.js → token-field-OCw3wLIW.js} +69 -69
- package/dist/cdn/chunks/{toolbar-iNd1VmuG.js → toolbar-K5UY_y15.js} +26 -26
- package/dist/cdn/chunks/{toolbar-item-DpPfPxCi.js → toolbar-item-CI3OVQuq.js} +13 -13
- package/dist/cdn/chunks/{toolbar-title-KBMpfL9d.js → toolbar-title-xvfrEhvQ.js} +31 -31
- package/dist/cdn/chunks/{toolbar.styles-BQkG4gVc.js → toolbar.styles-BBj5j7Iq.js} +3 -3
- package/dist/cdn/chunks/{tooltip-BsAHJjci.js → tooltip-B6XDYQNn.js} +42 -45
- package/dist/cdn/chunks/{top-navigation-bar-D1hjWIF3.js → top-navigation-bar-D7JkgCQi.js} +86 -86
- package/dist/cdn/chunks/{top-title-bar-iNFB2zQL.js → top-title-bar-BMSTl1Z7.js} +50 -44
- package/dist/cdn/chunks/{two-thirds-one-third-section-D-UANbHC.js → two-thirds-one-third-section-Cc1Mh9TT.js} +11 -11
- package/dist/cdn/chunks/{validation-list-C5BhHZIG.js → validation-list-xF6yTpz8.js} +19 -19
- package/dist/cdn/chunks/{visibility-mixin-COAZ9pON.js → visibility-mixin-LkgEnUqn.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-BPgATaH0.js → visually-hidden-CMo9yGtA.js} +6 -6
- package/dist/cdn/chunks/{window-t5iFkMLY.js → window-CclQ8SHn.js} +37 -37
- package/dist/cdn/chunks/with-translations-DdCPcavT.js +16 -0
- package/dist/components/actions/toolbar/toolbar.story-sync.js +1 -1
- package/dist/components/actions/toolbar/toolbar.story-sync.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts +10 -1
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +24 -7
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +51 -10
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +4 -0
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +1 -0
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +1 -0
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/image/image.d.ts +7 -2
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +29 -15
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +1 -2
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +10 -0
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +41 -2
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/text/text.d.ts +1 -0
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +1 -0
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/title/title.d.ts +26 -10
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +38 -11
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +74 -43
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +5 -3
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/forms/form/form.d.ts +11 -0
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +57 -4
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +1 -0
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +1 -0
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +4 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +6 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts +9 -11
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +3 -3
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +23 -25
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +9 -4
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +20 -7
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +1 -0
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +1 -0
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +1 -0
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +3 -3
- 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 +4 -4
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +4 -0
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.styles.js +4 -0
- package/dist/components/inputs/slider/slider.styles.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts +12 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.js +24 -2
- package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +2 -3
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +18 -17
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +19 -19
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +4 -0
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +17 -2
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +1 -0
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +28 -19
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +78 -51
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.js +2 -1
- package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.template.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.template.js +1 -0
- package/dist/components/inputs/time-picker/time-picker.template.js.map +1 -1
- package/dist/components/layout/kanban/kanban-column.d.ts +1 -1
- package/dist/components/layout/kanban/kanban-column.js +1 -1
- package/dist/components/layout/kanban/kanban.d.ts +7 -7
- package/dist/components/layout/kanban/kanban.js +9 -9
- package/dist/components/layout/kanban/kanban.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +4 -0
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +7 -12
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.js +4 -19
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +1 -4
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +1 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +24 -2
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +110 -13
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +6 -0
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.js +2 -1
- package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts +46 -0
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts.map +1 -0
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.d.ts +5 -0
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.d.ts.map +1 -0
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.js +4 -0
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.js.map +1 -0
- package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.js → reorder-handle-cell/reorder-handle-cell.js} +24 -24
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js.map +1 -0
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.d.ts.map +1 -0
- package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.styles.js → reorder-handle-cell/reorder-handle-cell.styles.js} +14 -14
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.js.map +1 -0
- package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.template.d.ts → reorder-handle-cell/reorder-handle-cell.template.d.ts} +1 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.template.d.ts.map +1 -0
- package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.template.js → reorder-handle-cell/reorder-handle-cell.template.js} +4 -4
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.template.js.map +1 -0
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +7 -5
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +4 -3
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +5 -5
- package/dist/components/lists-and-tables/list/list.d.ts +3 -2
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +15 -21
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +30 -14
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +107 -154
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +3 -3
- package/dist/components/lists-and-tables/table/table.d.ts +4 -4
- package/dist/components/lists-and-tables/table/table.js +5 -5
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +6 -6
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +16 -24
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +2 -2
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +4 -4
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +1 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +12 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +6 -2
- package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +2 -2
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +5 -7
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +1 -1
- package/dist/css/global-open-font.css +1 -0
- package/dist/css/global.css +1 -0
- package/dist/css/title.css +88 -0
- package/dist/css/variables.css +2 -3
- package/dist/nldd.min.js +942 -866
- package/dist/translations/en-US.js +1 -1
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.js +1 -1
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +1 -1
- package/dist/translations/nl.generated.js +2 -2
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.js +1 -1
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.js +1 -1
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/react.d.ts +45 -37
- package/dist/types/vue.d.ts +74 -59
- package/dist/utilities/autoloader.generated.js +1 -1
- package/dist/utilities/autoloader.generated.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +75 -25
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/form-associated-mixin.d.ts +10 -0
- package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
- package/dist/utilities/form-associated-mixin.js +17 -0
- package/dist/utilities/form-associated-mixin.js.map +1 -1
- package/dist/utilities/reorder-handle-mixin.d.ts +21 -0
- package/dist/utilities/reorder-handle-mixin.d.ts.map +1 -0
- package/dist/utilities/reorder-handle-mixin.js +34 -0
- package/dist/utilities/reorder-handle-mixin.js.map +1 -0
- package/dist/utilities/return-focus.d.ts +14 -0
- package/dist/utilities/return-focus.d.ts.map +1 -1
- package/dist/utilities/return-focus.js +26 -8
- package/dist/utilities/return-focus.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/engine.js +53 -1
- package/lint/fix.js +11 -0
- package/lint/format.js +6 -5
- package/lint/frontends.js +224 -16
- package/lint/linter.js +10 -4
- package/lint/main.js +36 -9
- package/lint/project.js +73 -4
- package/lint/rule-data.js +17 -2
- package/lint/rule.schema.json +1 -0
- package/lint/tree.js +3 -0
- package/package.json +6 -6
- package/dist/cdn/chunks/blockquote-BoOqbGdm.js +0 -189
- package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +0 -3
- package/dist/cdn/chunks/nl.generated-D6T41jG3.js +0 -112
- package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +0 -47
- package/dist/cdn/chunks/with-translations-XX14GKFh.js +0 -16
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts +0 -44
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts.map +0 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts +0 -5
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts.map +0 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js +0 -4
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js.map +0 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js.map +0 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts +0 -2
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts.map +0 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js.map +0 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.d.ts.map +0 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js.map +0 -1
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
+
import { n as t, o as n, r, t as i } from "./decorate-CJCfz_g6.js";
|
|
3
|
+
import { i as a, n as o, t as s } from "./custom-element-DsfOrnOD.js";
|
|
4
4
|
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
5
5
|
import { t as l } from "./query-ChDzi9FQ.js";
|
|
6
6
|
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import "./
|
|
10
|
-
import "./inline-dialog-
|
|
11
|
-
import
|
|
12
|
-
import
|
|
7
|
+
import { t as d } from "./if-defined-BirFs11D.js";
|
|
8
|
+
import "./list-item-Da6-fFDs.js";
|
|
9
|
+
import { t as f } from "./list.i18n-C40ltgdI.js";
|
|
10
|
+
import "./inline-dialog-B627fZmT.js";
|
|
11
|
+
import "./icon-D5dJm51v.js";
|
|
12
|
+
import "./icon-button-DtxIRaQy.js";
|
|
13
|
+
import { t as p } from "./translations-wxBSz213.js";
|
|
14
|
+
import { r as m } from "./element-state-B-44fVqq.js";
|
|
13
15
|
// src/components/lists-and-tables/list/list.styles.ts
|
|
14
|
-
var h =
|
|
16
|
+
var h = a`
|
|
15
17
|
:host {
|
|
16
18
|
box-sizing: border-box;
|
|
17
19
|
}
|
|
@@ -306,12 +308,12 @@ var h = t`
|
|
|
306
308
|
border: 1px solid CanvasText;
|
|
307
309
|
}
|
|
308
310
|
}
|
|
309
|
-
`, g = ({ itemsLabel: e, hasToolbar: t, type:
|
|
310
|
-
let u =
|
|
311
|
-
return
|
|
311
|
+
`, g = ({ itemsLabel: e, hasToolbar: t, type: i, isEmpty: a, hasItems: o, hasEmptyState: s, hasNoResultsState: c, listbox: l }) => {
|
|
312
|
+
let u = i === "navigation", f = i === "listbox", p = u || f, m = f ? "listbox" : i === "tree" ? "tree" : i === "radiogroup" ? "radiogroup" : "list", h = a && o, g = f && l.searchValue === "", _ = h && !c && s, v = h && c && !g, y = (!h && a && s || _) && !g, b = !a || y || v, x = o || f;
|
|
313
|
+
return n`
|
|
312
314
|
<div class="list">
|
|
313
315
|
<div class="list__header">
|
|
314
|
-
${
|
|
316
|
+
${f ? n`
|
|
315
317
|
<div class="list__search-bar"
|
|
316
318
|
?hidden=${!x}
|
|
317
319
|
>
|
|
@@ -326,9 +328,9 @@ var h = t`
|
|
|
326
328
|
type="text"
|
|
327
329
|
role="combobox"
|
|
328
330
|
aria-controls=${l.listboxId}
|
|
329
|
-
aria-expanded=${!
|
|
331
|
+
aria-expanded=${!a}
|
|
330
332
|
aria-autocomplete="list"
|
|
331
|
-
aria-activedescendant=${l.activeId ||
|
|
333
|
+
aria-activedescendant=${l.activeId || r}
|
|
332
334
|
aria-label=${l.searchAccessibleLabel}
|
|
333
335
|
placeholder=${l.searchPlaceholder}
|
|
334
336
|
.value=${l.searchValue}
|
|
@@ -338,7 +340,7 @@ var h = t`
|
|
|
338
340
|
@blur=${l.onSearchBlur}
|
|
339
341
|
>
|
|
340
342
|
</label>
|
|
341
|
-
${l.searchValue ?
|
|
343
|
+
${l.searchValue ? n`
|
|
342
344
|
<div class="list__search-field-end">
|
|
343
345
|
<div class="list__search-field-clear">
|
|
344
346
|
<nldd-icon-button
|
|
@@ -351,7 +353,7 @@ var h = t`
|
|
|
351
353
|
></nldd-icon-button>
|
|
352
354
|
</div>
|
|
353
355
|
</div>
|
|
354
|
-
` :
|
|
356
|
+
` : r}
|
|
355
357
|
</div>
|
|
356
358
|
<div class="list__search-bar-end"
|
|
357
359
|
?hidden=${!l.hasSearchBarEnd}
|
|
@@ -362,7 +364,7 @@ var h = t`
|
|
|
362
364
|
></slot>
|
|
363
365
|
</div>
|
|
364
366
|
</div>
|
|
365
|
-
` :
|
|
367
|
+
` : r}
|
|
366
368
|
<div class="list__toolbar"
|
|
367
369
|
?hidden=${!t || !x}
|
|
368
370
|
>
|
|
@@ -373,10 +375,10 @@ var h = t`
|
|
|
373
375
|
?hidden=${!b}
|
|
374
376
|
>
|
|
375
377
|
<div class="list__items"
|
|
376
|
-
id=${
|
|
378
|
+
id=${d(f ? l.listboxId : void 0)}
|
|
377
379
|
role=${m}
|
|
378
|
-
aria-label=${p
|
|
379
|
-
?hidden=${
|
|
380
|
+
aria-label=${d(p ? void 0 : e)}
|
|
381
|
+
?hidden=${a}
|
|
380
382
|
>
|
|
381
383
|
<slot></slot>
|
|
382
384
|
</div>
|
|
@@ -405,7 +407,7 @@ var h = t`
|
|
|
405
407
|
aria-atomic="true"
|
|
406
408
|
></div>
|
|
407
409
|
`;
|
|
408
|
-
}, _ = /* @__PURE__ */ e({ NLDDList: () => x }), v, y, b = ":is(a[href], button, input, select, textarea, [tabindex]):not([tabindex^=\"-\"]):not(:disabled)", x = (v = class extends
|
|
410
|
+
}, _ = /* @__PURE__ */ e({ NLDDList: () => x }), v, y, b = ":is(a[href], button, input, select, textarea, [tabindex]):not([tabindex^=\"-\"]):not(:disabled)", x = (v = class extends t {
|
|
409
411
|
constructor(...e) {
|
|
410
412
|
super(...e), this.appearance = "simple", this.type = "list", this.dividers = "always", this.height = "", this.accessibleLabel = "", this.translations = {}, this.reorderable = !1, this._hasToolbar = !1, this._hasSearchBarEnd = !1, this._hasEmptyState = !1, this._hasNoResultsState = !1, this._hasItems = !1, this._isEmpty = !1, this._searchValue = "", this._activeId = "", this._searchFocused = !1, this._listboxId = `nldd-list-listbox-${y._idCounter++}`, this._draggingEl = null, this._draggingFromIndex = -1, this._placeholder = null, this._currentDropIndex = -1, this._pointerId = null, this._clone = null, this._cloneOffsetY = 0, this._listRect = null, this._itemsObserver = null, this._autoLabel = null, this._contextScheduled = !1, this._listboxScheduled = !1, this._onSearchInput = (e) => {
|
|
411
413
|
e.stopPropagation();
|
|
@@ -466,7 +468,7 @@ var h = t`
|
|
|
466
468
|
}, this._unmanagedCheckScheduled = !1, this._onPointerDown = (e) => {
|
|
467
469
|
if (!this.reorderable || this.type !== "list") return;
|
|
468
470
|
let t = e.composedPath();
|
|
469
|
-
if (!t.some((e) => e instanceof Element && e.hasAttribute("
|
|
471
|
+
if (!t.some((e) => e instanceof Element && e.hasAttribute("reorder-handle"))) return;
|
|
470
472
|
let n = t.find((e) => e instanceof Element && e.tagName.toLowerCase() === "nldd-list-item");
|
|
471
473
|
n && (e.preventDefault(), this._lastPointerY = e.clientY, this._startDrag(n, e.clientY), t.find((e) => e instanceof HTMLButtonElement)?.focus(), this._pointerId = e.pointerId, this.setPointerCapture(e.pointerId), this.addEventListener("pointermove", this._onPointerMove), this.addEventListener("pointerup", this._onPointerUp), this.addEventListener("pointercancel", this._onPointerCancel));
|
|
472
474
|
}, this._lastPointerY = 0, this._onPointerMove = (e) => {
|
|
@@ -497,7 +499,7 @@ var h = t`
|
|
|
497
499
|
return;
|
|
498
500
|
}
|
|
499
501
|
if (!this.reorderable || this.type !== "list" || e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
|
|
500
|
-
let t = e.composedPath(), n = t.find((e) => e instanceof HTMLElement && e.hasAttribute("
|
|
502
|
+
let t = e.composedPath(), n = t.find((e) => e instanceof HTMLElement && e.hasAttribute("reorder-handle"));
|
|
501
503
|
if (!n) return;
|
|
502
504
|
let r = t.find((e) => e instanceof Element && e.tagName.toLowerCase() === "nldd-list-item");
|
|
503
505
|
if (!r) return;
|
|
@@ -507,7 +509,7 @@ var h = t`
|
|
|
507
509
|
if (o < 0 || o >= i.length) return;
|
|
508
510
|
e.preventDefault();
|
|
509
511
|
let s = this._getDeepActiveElement() ?? n;
|
|
510
|
-
this.dispatchEvent(new CustomEvent("
|
|
512
|
+
this.dispatchEvent(new CustomEvent("reorder", {
|
|
511
513
|
detail: {
|
|
512
514
|
fromIndex: a,
|
|
513
515
|
toIndex: o
|
|
@@ -598,7 +600,7 @@ var h = t`
|
|
|
598
600
|
let e = this.hasUpdated ? this._getItems() : Array.from(this.querySelectorAll(":scope > nldd-list-item"));
|
|
599
601
|
this._isEmpty = e.length === 0 || e.every((e) => e.hasAttribute("hidden")), this._hasItems = e.length > 0, this._hasEmptyState = !!this.querySelector(":scope > [slot=\"empty\"]"), this._hasNoResultsState = !!this.querySelector(":scope > [slot=\"no-results\"]"), this.classList.toggle("is-blank", this._isEmpty && !this._hasItems && !this._hasEmptyState && this.type !== "listbox");
|
|
600
602
|
let t = this._isEmpty && !(this.type === "listbox" && !this._searchValue);
|
|
601
|
-
|
|
603
|
+
m(this, "empty", t && !this._hasItems), m(this, "filtered", t && this._hasItems);
|
|
602
604
|
}
|
|
603
605
|
_ensureOptionId(e) {
|
|
604
606
|
return e.id || (e.id = `nldd-list-option-${y._optionIdCounter++}`), e.id;
|
|
@@ -757,8 +759,8 @@ var h = t`
|
|
|
757
759
|
if (t) break;
|
|
758
760
|
t = await this._holdsUnmanagedControl(n);
|
|
759
761
|
}
|
|
760
|
-
|
|
761
|
-
})()) :
|
|
762
|
+
m(this, "control-keeps-tab-stop", t);
|
|
763
|
+
})()) : m(this, "control-keeps-tab-stop", !1));
|
|
762
764
|
}
|
|
763
765
|
async _holdsUnmanagedControl(e) {
|
|
764
766
|
for (let t of Array.from(e.querySelectorAll("*"))) {
|
|
@@ -797,7 +799,7 @@ var h = t`
|
|
|
797
799
|
_endDrag() {
|
|
798
800
|
if (!this._draggingEl) return;
|
|
799
801
|
let e = this._draggingFromIndex, t = this._getDropIndex(), n = this._draggingEl;
|
|
800
|
-
this._cleanupDrag(), e === t ? this._announce(this._t("components.list.reorder-no-change-text")) : (this.dispatchEvent(new CustomEvent("
|
|
802
|
+
this._cleanupDrag(), e === t ? this._announce(this._t("components.list.reorder-no-change-text")) : (this.dispatchEvent(new CustomEvent("reorder", {
|
|
801
803
|
detail: {
|
|
802
804
|
fromIndex: e,
|
|
803
805
|
toIndex: t
|
|
@@ -805,7 +807,7 @@ var h = t`
|
|
|
805
807
|
bubbles: !0,
|
|
806
808
|
composed: !0
|
|
807
809
|
})), this._announce(this._t("components.list.reorder-dropped-text", { position: t + 1 })), requestAnimationFrame(() => {
|
|
808
|
-
(n.querySelector("[
|
|
810
|
+
(n.querySelector("[reorder-handle]")?.shadowRoot?.querySelector("button"))?.focus();
|
|
809
811
|
}));
|
|
810
812
|
}
|
|
811
813
|
_cancelDrag() {
|
|
@@ -823,7 +825,7 @@ var h = t`
|
|
|
823
825
|
this.removeEventListener("pointermove", this._onPointerMove), this.removeEventListener("pointerup", this._onPointerUp), this.removeEventListener("pointercancel", this._onPointerCancel), this._draggingEl = null, this._draggingFromIndex = -1, this._placeholder = null, this._clone = null, this._cloneOffsetY = 0, this._listRect = null, this._currentDropIndex = -1;
|
|
824
826
|
}
|
|
825
827
|
_t(e, t) {
|
|
826
|
-
return
|
|
828
|
+
return p(this.translations, f, e, t);
|
|
827
829
|
}
|
|
828
830
|
_announce(e, t = !1) {
|
|
829
831
|
let n = t ? ".list__assertive-announcer" : ".list__polite-announcer", r = this.shadowRoot?.querySelector(n);
|
|
@@ -858,23 +860,23 @@ var h = t`
|
|
|
858
860
|
});
|
|
859
861
|
}
|
|
860
862
|
}, y = v, v.styles = [h], v._idCounter = 0, v._optionIdCounter = 0, v);
|
|
861
|
-
|
|
863
|
+
i([o({
|
|
862
864
|
reflect: !0,
|
|
863
865
|
converter: u("simple")
|
|
864
|
-
})], x.prototype, "appearance", void 0),
|
|
866
|
+
})], x.prototype, "appearance", void 0), i([o({
|
|
865
867
|
reflect: !0,
|
|
866
868
|
converter: u("list")
|
|
867
|
-
})], x.prototype, "type", void 0),
|
|
869
|
+
})], x.prototype, "type", void 0), i([o({
|
|
868
870
|
reflect: !0,
|
|
869
871
|
converter: u("always")
|
|
870
|
-
})], x.prototype, "dividers", void 0),
|
|
872
|
+
})], x.prototype, "dividers", void 0), i([o({
|
|
871
873
|
reflect: !0,
|
|
872
874
|
converter: u("")
|
|
873
|
-
})], x.prototype, "height", void 0),
|
|
875
|
+
})], x.prototype, "height", void 0), i([o({
|
|
874
876
|
type: String,
|
|
875
877
|
attribute: "accessible-label"
|
|
876
|
-
})], x.prototype, "accessibleLabel", void 0),
|
|
878
|
+
})], x.prototype, "accessibleLabel", void 0), i([o({ type: Object })], x.prototype, "translations", void 0), i([o({
|
|
877
879
|
type: Boolean,
|
|
878
880
|
reflect: !0
|
|
879
|
-
})], x.prototype, "reorderable", void 0),
|
|
881
|
+
})], x.prototype, "reorderable", void 0), i([s(), s()], x.prototype, "_hasToolbar", void 0), i([s()], x.prototype, "_hasSearchBarEnd", void 0), i([s()], x.prototype, "_hasEmptyState", void 0), i([s()], x.prototype, "_hasNoResultsState", void 0), i([s()], x.prototype, "_hasItems", void 0), i([s()], x.prototype, "_isEmpty", void 0), i([s()], x.prototype, "_searchValue", void 0), i([s()], x.prototype, "_activeId", void 0), i([s()], x.prototype, "_searchFocused", void 0), i([l(".list__search-field-input")], x.prototype, "_searchInput", void 0), x = y = i([c("nldd-list")], x);
|
|
880
882
|
export { _ as t };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
+
import { n as t, o as n, r, t as i } from "./decorate-CJCfz_g6.js";
|
|
3
|
+
import { i as a, n as o, t as s } from "./custom-element-DsfOrnOD.js";
|
|
4
4
|
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
5
5
|
import { t as l } from "./query-ChDzi9FQ.js";
|
|
6
6
|
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
-
import {
|
|
7
|
+
import { t as d } from "./class-map-DKd4N9Wz.js";
|
|
8
8
|
import { t as f } from "./link-rel-DvrTEfVT.js";
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as _ } from "./
|
|
13
|
-
import {
|
|
14
|
-
import { t as y } from "./
|
|
9
|
+
import { n as p } from "./input-modality-XE0B7yCn.js";
|
|
10
|
+
import { t as m } from "./with-translations-DdCPcavT.js";
|
|
11
|
+
import { t as h } from "./list-item.i18n-Br6J5Ev9.js";
|
|
12
|
+
import { r as g, t as _ } from "./link-hint-KFhgr5Ng.js";
|
|
13
|
+
import { r as v } from "./element-state-B-44fVqq.js";
|
|
14
|
+
import { t as y } from "./defer-focus-F73ud2D9.js";
|
|
15
15
|
// src/components/lists-and-tables/list-item/list-item.styles.ts
|
|
16
|
-
var b =
|
|
16
|
+
var b = a`
|
|
17
17
|
:host {
|
|
18
18
|
box-sizing: border-box;
|
|
19
19
|
}
|
|
@@ -99,16 +99,16 @@ var b = t`
|
|
|
99
99
|
display: none;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
:host(:not([reorderable])) ::slotted([
|
|
102
|
+
:host(:not([reorderable])) ::slotted([reorder-handle]) {
|
|
103
103
|
display: none;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
:host([reorderable]) ::slotted([
|
|
106
|
+
:host([reorderable]) ::slotted([reorder-handle]) {
|
|
107
107
|
cursor: grab;
|
|
108
108
|
touch-action: none;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
:host(.is-dragging) ::slotted([
|
|
111
|
+
:host(.is-dragging) ::slotted([reorder-handle]) {
|
|
112
112
|
cursor: grabbing;
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -440,62 +440,62 @@ var b = t`
|
|
|
440
440
|
:host([data-nldd-clone]) .list-item__divider {
|
|
441
441
|
display: none;
|
|
442
442
|
}
|
|
443
|
-
`, x =
|
|
444
|
-
let w = C ? [C, s].filter(Boolean).join(", ") :
|
|
443
|
+
`, x = n`<slot></slot>`, S = n`<div class="list-item__divider"></div>`, C = (e, t, i, a, o, s, c, l = !1, u = !1, p = !1, m = !1, h, g = !1, _ = !1, v = !1, y = "group", b = h === !0, C = "") => {
|
|
444
|
+
let w = C ? [C, s].filter(Boolean).join(", ") : r, T = h === void 0 ? r : String(h), E = g ? n`<div class="list-item__children"
|
|
445
445
|
role=${y}
|
|
446
446
|
?hidden=${!b}
|
|
447
|
-
><slot name="children"></slot></div>` :
|
|
447
|
+
><slot name="children"></slot></div>` : n`<slot name="children" hidden></slot>`, D = d({
|
|
448
448
|
"list-item": !0,
|
|
449
449
|
"is-highlighted": l,
|
|
450
450
|
"is-action-checked": _
|
|
451
451
|
});
|
|
452
|
-
return t ?
|
|
452
|
+
return t ? n`<div class=${D}>
|
|
453
453
|
<a class="list-item__action"
|
|
454
454
|
href=${t}
|
|
455
|
-
target=${
|
|
456
|
-
rel=${f(
|
|
457
|
-
download=${
|
|
455
|
+
target=${i ?? r}
|
|
456
|
+
rel=${f(a, i) || r}
|
|
457
|
+
download=${o ?? r}
|
|
458
458
|
aria-label=${w}
|
|
459
|
-
aria-disabled=${v ? "true" :
|
|
459
|
+
aria-disabled=${v ? "true" : r}
|
|
460
460
|
aria-expanded=${T}
|
|
461
|
-
tabindex=${c ??
|
|
462
|
-
>${x}${s && !C ?
|
|
461
|
+
tabindex=${c ?? r}
|
|
462
|
+
>${x}${s && !C ? n`<span class="list-item__link-hint">, ${s}</span>` : r}</a>
|
|
463
463
|
${S}
|
|
464
|
-
</div>${E}` : u ?
|
|
464
|
+
</div>${E}` : u ? n`<div class=${D}>
|
|
465
465
|
<button class="list-item__action"
|
|
466
466
|
type="button"
|
|
467
467
|
role="checkbox"
|
|
468
468
|
aria-label=${w}
|
|
469
469
|
?disabled=${v}
|
|
470
|
-
aria-checked=${String(
|
|
470
|
+
aria-checked=${String(m)}
|
|
471
471
|
aria-expanded=${T}
|
|
472
|
-
tabindex=${c ??
|
|
472
|
+
tabindex=${c ?? r}
|
|
473
473
|
>${x}</button>
|
|
474
474
|
${S}
|
|
475
|
-
</div>${E}` :
|
|
475
|
+
</div>${E}` : p ? n`<div class=${D}>
|
|
476
476
|
<button class="list-item__action"
|
|
477
477
|
type="button"
|
|
478
478
|
role="radio"
|
|
479
479
|
aria-label=${w}
|
|
480
480
|
?disabled=${v}
|
|
481
|
-
aria-checked=${String(
|
|
482
|
-
tabindex=${c ??
|
|
481
|
+
aria-checked=${String(m)}
|
|
482
|
+
tabindex=${c ?? r}
|
|
483
483
|
>${x}</button>
|
|
484
484
|
${S}
|
|
485
|
-
</div>${E}` : e ?
|
|
485
|
+
</div>${E}` : e ? n`<div class=${D}>
|
|
486
486
|
<button class="list-item__action"
|
|
487
487
|
type="button"
|
|
488
488
|
aria-label=${w}
|
|
489
489
|
?disabled=${v}
|
|
490
490
|
aria-expanded=${T}
|
|
491
|
-
tabindex=${c ??
|
|
491
|
+
tabindex=${c ?? r}
|
|
492
492
|
>${x}</button>
|
|
493
493
|
${S}
|
|
494
|
-
</div>${E}` :
|
|
494
|
+
</div>${E}` : n`<div class=${D}>
|
|
495
495
|
${x}
|
|
496
496
|
${S}
|
|
497
497
|
</div>${E}`;
|
|
498
|
-
}, w = /* @__PURE__ */ e({ NLDDListItem: () =>
|
|
498
|
+
}, w = /* @__PURE__ */ e({ NLDDListItem: () => V }), T, E, D = "a[href], button, input, select, textarea, [contenteditable]:not([contenteditable=\"false\"]), [tabindex]", O = /* @__PURE__ */ new WeakMap();
|
|
499
499
|
function k(e) {
|
|
500
500
|
let t = O.get(e);
|
|
501
501
|
return t || (t = {
|
|
@@ -514,12 +514,34 @@ function M(e) {
|
|
|
514
514
|
let t = O.get(e);
|
|
515
515
|
t && (A(e, t), O.delete(e));
|
|
516
516
|
}
|
|
517
|
-
var N = "nldd-list-item-segment, nldd-button, nldd-icon-button, nldd-link, nldd-checkbox, nldd-radio-button, nldd-switch, a[href], button, input, select, textarea", P = (
|
|
517
|
+
var N = "nldd-list-item-segment, nldd-button, nldd-icon-button, nldd-link, nldd-checkbox, nldd-radio-button, nldd-switch, a[href], button, input, select, textarea", P = /* @__PURE__ */ new Set(), F = 0, I = /* @__PURE__ */ new WeakMap(), L = null;
|
|
518
|
+
function R(e) {
|
|
519
|
+
let t = [...e].filter((e) => e.isConnected), n = t.map((e) => e._readDividerInsets());
|
|
520
|
+
t.forEach((e, t) => e._writeDividerInsets(n[t]));
|
|
521
|
+
}
|
|
522
|
+
function z(e) {
|
|
523
|
+
P.add(e), F || (F = requestAnimationFrame(() => {
|
|
524
|
+
F = 0;
|
|
525
|
+
let e = [...P];
|
|
526
|
+
P.clear(), R(e);
|
|
527
|
+
}));
|
|
528
|
+
}
|
|
529
|
+
function B() {
|
|
530
|
+
return L ?? (L = new ResizeObserver((e) => {
|
|
531
|
+
let t = /* @__PURE__ */ new Set();
|
|
532
|
+
for (let n of e) {
|
|
533
|
+
let e = I.get(n.target);
|
|
534
|
+
e && t.add(e);
|
|
535
|
+
}
|
|
536
|
+
R(t);
|
|
537
|
+
}));
|
|
538
|
+
}
|
|
539
|
+
var V = (T = class extends m(t, h) {
|
|
518
540
|
constructor(...e) {
|
|
519
|
-
super(...e), this.size = "md", this.download = void 0, this.button = !1, this.checkbox = !1, this.radio = !1, this.expandable = !1, this.accessibleLabel = "", this.reorderable = !1, this.selected = !1, this.checked = !1, this.current = !1, this.currentType = "page", this.disabled = !1, this._showChildren = !1, this._parentType = "list", this._arrowNavigation = !1, this._rovingActive = !1, this._highlighted = !1, this._isBoxed = !1, this._hasCheckedSegment = !1, this._lightDomObserver = null, this._rovingControlsCache = null, this.
|
|
541
|
+
super(...e), this.size = "md", this.download = void 0, this.button = !1, this.checkbox = !1, this.radio = !1, this.expandable = !1, this.accessibleLabel = "", this.reorderable = !1, this.selected = !1, this.checked = !1, this.current = !1, this.currentType = "page", this.disabled = !1, this._showChildren = !1, this._parentType = "list", this._arrowNavigation = !1, this._rovingActive = !1, this._highlighted = !1, this._isBoxed = !1, this._hasCheckedSegment = !1, this._lightDomObserver = null, this._rovingControlsCache = null, this._observedMarkerTargets = [], this._dividerStarts = [], this._dividerEnds = [], this._ownCellSize = /* @__PURE__ */ new WeakMap(), this._onSlotChange = (e) => {
|
|
520
542
|
if (!import.meta.env?.DEV) return;
|
|
521
543
|
let t = e.target;
|
|
522
|
-
t.name || (
|
|
544
|
+
t.name || (v(this, "bare-text", t.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.TEXT_NODE && (e.textContent ?? "").trim() !== "")), this._syncNestedControl());
|
|
523
545
|
}, this._handleClick = (e) => {
|
|
524
546
|
this.disabled ? (e.preventDefault(), e.stopPropagation()) : (this._action?.focus(), this.checkbox && !this.href && e.composedPath().includes(this._action) && (this.checked = !this.checked, this.dispatchEvent(new CustomEvent("change", {
|
|
525
547
|
detail: { checked: this.checked },
|
|
@@ -531,7 +553,7 @@ var N = "nldd-list-item-segment, nldd-button, nldd-icon-button, nldd-link, nldd-
|
|
|
531
553
|
composed: !0
|
|
532
554
|
}))));
|
|
533
555
|
}, this._handleFocusIn = () => {
|
|
534
|
-
this._action?.classList.toggle("is-pointer-focus",
|
|
556
|
+
this._action?.classList.toggle("is-pointer-focus", p());
|
|
535
557
|
}, this._handleFocusOut = () => {
|
|
536
558
|
this._action?.classList.remove("is-pointer-focus");
|
|
537
559
|
}, this._onMouseDown = (e) => {
|
|
@@ -543,7 +565,7 @@ var N = "nldd-list-item-segment, nldd-button, nldd-icon-button, nldd-link, nldd-
|
|
|
543
565
|
};
|
|
544
566
|
}
|
|
545
567
|
connectedCallback() {
|
|
546
|
-
super.connectedCallback(), this._captureAuthoredCellSizes(),
|
|
568
|
+
super.connectedCallback(), this._captureAuthoredCellSizes(), this.hasAttribute("data-nldd-clone") || (this.setAttribute("role", "listitem"), this.addEventListener("focusin", this._handleFocusIn), this.addEventListener("focusout", this._handleFocusOut), this.addEventListener("click", this._handleClick), this.addEventListener("pointerdown", this._onPointerDown), this.addEventListener("mousedown", this._onMouseDown), this._lightDomObserver = new MutationObserver(() => this._onLightDomChange()), this._lightDomObserver.observe(this, {
|
|
547
569
|
subtree: !0,
|
|
548
570
|
childList: !0,
|
|
549
571
|
attributes: !0,
|
|
@@ -556,13 +578,14 @@ var N = "nldd-list-item-segment, nldd-button, nldd-icon-button, nldd-link, nldd-
|
|
|
556
578
|
}), this._onLightDomChange());
|
|
557
579
|
}
|
|
558
580
|
disconnectedCallback() {
|
|
559
|
-
super.disconnectedCallback(), this.removeEventListener("focusin", this._handleFocusIn), this.removeEventListener("focusout", this._handleFocusOut), this.removeEventListener("click", this._handleClick), this.removeEventListener("pointerdown", this._onPointerDown), this.removeEventListener("mousedown", this._onMouseDown), this._clearPressed(), this._lightDomObserver?.disconnect(), this._lightDomObserver = null, this.
|
|
581
|
+
super.disconnectedCallback(), this.removeEventListener("focusin", this._handleFocusIn), this.removeEventListener("focusout", this._handleFocusOut), this.removeEventListener("click", this._handleClick), this.removeEventListener("pointerdown", this._onPointerDown), this.removeEventListener("mousedown", this._onMouseDown), this._clearPressed(), this._lightDomObserver?.disconnect(), this._lightDomObserver = null, this._watchMarkers([]), P.delete(this);
|
|
560
582
|
}
|
|
561
583
|
_onLightDomChange() {
|
|
562
584
|
this._updateCheckedSegment(), this._updateCurrentSegment(), this._updateInteractive(), this._measureDividerMarkers(), this._rovingControlsCache = null, this._arrowNavigation && (this._syncRovingTabStops(), this._parentList?._updateRoving());
|
|
563
585
|
}
|
|
564
586
|
get _parentList() {
|
|
565
|
-
|
|
587
|
+
let e = this.closest("nldd-list");
|
|
588
|
+
return e?.matches(":defined") ? e : null;
|
|
566
589
|
}
|
|
567
590
|
_rovingControls() {
|
|
568
591
|
if (this._rovingControlsCache) return this._rovingControlsCache;
|
|
@@ -592,7 +615,7 @@ var N = "nldd-list-item-segment, nldd-button, nldd-icon-button, nldd-link, nldd-
|
|
|
592
615
|
this.classList.toggle("has-leading-segment", n(t[0])), this.classList.toggle("has-trailing-segment", n(t[t.length - 1]));
|
|
593
616
|
}
|
|
594
617
|
willUpdate(e) {
|
|
595
|
-
super.willUpdate(e),
|
|
618
|
+
super.willUpdate(e), this.hasUpdated || this.hasAttribute("data-nldd-clone") || this._syncWithList();
|
|
596
619
|
}
|
|
597
620
|
firstUpdated() {
|
|
598
621
|
this.hasAttribute("data-nldd-clone") || (this._observeChildrenSlot(), this.renderRoot.addEventListener("slotchange", this._onSlotChange), queueMicrotask(() => this._updateChildren()), this._relayExpanded(), this._measureDividerMarkers());
|
|
@@ -626,23 +649,23 @@ var N = "nldd-list-item-segment, nldd-button, nldd-icon-button, nldd-link, nldd-
|
|
|
626
649
|
}
|
|
627
650
|
_syncLabelFacts() {
|
|
628
651
|
let e = this._ownDescendants("nldd-title-cell, nldd-text-cell")[0], t = (e) => e.replace(/\*\*/g, "").replace(/\s+/g, " ").trim().toLowerCase(), n = t(e?.getAttribute("text") ?? e?.textContent ?? ""), r = !!this.accessibleLabel && !!n && !t(this.accessibleLabel).startsWith(n);
|
|
629
|
-
|
|
652
|
+
v(this, "label-without-title", r);
|
|
630
653
|
}
|
|
631
654
|
_syncExpandedFacts() {
|
|
632
655
|
if (!import.meta.env?.DEV) return;
|
|
633
656
|
let e = this.expanded !== void 0 || this.expandable, t = e && this._showChildren && this._parentType === "navigation";
|
|
634
|
-
|
|
657
|
+
v(this, "expanded-in-navigation", t), v(this, "expanded-without-control", e && !t && !this.href && !this.button && !this.checkbox && this._ownDescendants("nldd-list-item-segment[disclosure]").length === 0);
|
|
635
658
|
}
|
|
636
659
|
_syncNestedControl() {
|
|
637
660
|
if (!import.meta.env?.DEV || this.hasAttribute("data-nldd-clone")) return;
|
|
638
661
|
let e = !!(this.href || this.button || this.checkbox || this.radio);
|
|
639
|
-
|
|
662
|
+
v(this, "nested-control", e && [...this.children].filter((e) => !e.slot).flatMap((e) => [e, ...e.querySelectorAll("*")]).some((e) => e.matches(N) && !e.matches("[decorative]") && !e.closest("[aria-hidden=\"true\"], [inert]")));
|
|
640
663
|
}
|
|
641
664
|
get _isListboxOption() {
|
|
642
665
|
return this._parentType === "listbox";
|
|
643
666
|
}
|
|
644
667
|
_syncWithList() {
|
|
645
|
-
let e = this.
|
|
668
|
+
let e = this._parentList;
|
|
646
669
|
e && (this._applyAppearance(e.appearance), this._applyParentType(e.type));
|
|
647
670
|
}
|
|
648
671
|
_applyAppearance(e) {
|
|
@@ -667,21 +690,52 @@ var N = "nldd-list-item-segment, nldd-button, nldd-icon-button, nldd-link, nldd-
|
|
|
667
690
|
}
|
|
668
691
|
_measureDividerMarkers() {
|
|
669
692
|
if (this.hasAttribute("data-nldd-clone")) return;
|
|
670
|
-
let e = this._parentList?.getAttribute("dividers") !== "never", t = e ? this._ownDescendants("[divider-start]") : []
|
|
693
|
+
let e = this._parentList?.getAttribute("dividers") !== "never", t = e ? this._ownDescendants("[divider-start]") : [];
|
|
694
|
+
this._dividerStarts = e ? t.length ? t : this._implicitDividerStart() : [], this._dividerEnds = e ? this._ownDescendants("[divider-end]") : [];
|
|
695
|
+
let n = this._dividerStarts.length || this._dividerEnds.length ? [
|
|
671
696
|
this,
|
|
672
|
-
...
|
|
673
|
-
...
|
|
697
|
+
...this._dividerStarts,
|
|
698
|
+
...this._dividerEnds
|
|
674
699
|
] : [];
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
if (
|
|
683
|
-
|
|
684
|
-
|
|
700
|
+
n.length === 0 ? (this._watchMarkers([]), this._writeDividerInsets({
|
|
701
|
+
degenerate: !1,
|
|
702
|
+
start: null,
|
|
703
|
+
end: null
|
|
704
|
+
})) : this._watchMarkers(n) || z(this);
|
|
705
|
+
}
|
|
706
|
+
_watchMarkers(e) {
|
|
707
|
+
if (e.length === this._observedMarkerTargets.length && e.every((e, t) => e === this._observedMarkerTargets[t])) return !1;
|
|
708
|
+
for (let e of this._observedMarkerTargets) L?.unobserve(e), I.get(e) === this && I.delete(e);
|
|
709
|
+
this._observedMarkerTargets = e;
|
|
710
|
+
for (let t of e) I.set(t, this), B().observe(t);
|
|
711
|
+
return !0;
|
|
712
|
+
}
|
|
713
|
+
_readDividerInsets() {
|
|
714
|
+
let e = this._dividerStarts, t = this._dividerEnds;
|
|
715
|
+
if (!e.length && !t.length) return {
|
|
716
|
+
degenerate: !1,
|
|
717
|
+
start: null,
|
|
718
|
+
end: null
|
|
719
|
+
};
|
|
720
|
+
let n = this.shadowRoot?.querySelector(".list-item");
|
|
721
|
+
if (!n) return null;
|
|
722
|
+
let r = n.getBoundingClientRect();
|
|
723
|
+
if (r.width === 0) return null;
|
|
724
|
+
let i = getComputedStyle(this).direction === "rtl", a = (e) => i ? r.right - e.right : e.left - r.left, o = (e) => i ? e.left - r.left : r.right - e.right, s = (e) => e.getClientRects().length > 0, c = e.filter(s), l = t.filter(s), u = c.length ? Math.min(...c.map((e) => a(e.getBoundingClientRect()))) : null, d = l.length ? Math.min(...l.map((e) => o(e.getBoundingClientRect()))) : null;
|
|
725
|
+
return {
|
|
726
|
+
degenerate: u !== null && d !== null && r.width - u - d <= 0,
|
|
727
|
+
start: u,
|
|
728
|
+
end: d
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
_writeDividerInsets(e) {
|
|
732
|
+
if (!e) return;
|
|
733
|
+
v(this, "degenerate-divider", e.degenerate);
|
|
734
|
+
let { start: t, end: n } = e.degenerate ? {
|
|
735
|
+
start: null,
|
|
736
|
+
end: null
|
|
737
|
+
} : e;
|
|
738
|
+
t === null ? this.style.removeProperty("--_list-item-divider-inset-start") : this.style.setProperty("--_list-item-divider-inset-start", `${t}px`), n === null ? this.style.removeProperty("--_list-item-divider-inset-end") : this.style.setProperty("--_list-item-divider-inset-end", `${n}px`);
|
|
685
739
|
}
|
|
686
740
|
_observeChildrenSlot() {
|
|
687
741
|
(this.shadowRoot?.querySelector("slot[name=\"children\"]"))?.addEventListener("slotchange", () => this._updateChildren());
|
|
@@ -698,7 +752,7 @@ var N = "nldd-list-item-segment, nldd-button, nldd-icon-button, nldd-link, nldd-
|
|
|
698
752
|
return t.slice(0, n === -1 ? t.length : n).some((e) => e instanceof Element && e.localName === "nldd-list-item");
|
|
699
753
|
}
|
|
700
754
|
focus(e) {
|
|
701
|
-
|
|
755
|
+
y(this, e) || (this._action ? this._action.focus(e) : super.focus(e));
|
|
702
756
|
}
|
|
703
757
|
_syncRovingTabStops() {
|
|
704
758
|
let e = this._ownSegments();
|
|
@@ -752,51 +806,51 @@ var N = "nldd-list-item-segment, nldd-button, nldd-icon-button, nldd-link, nldd-
|
|
|
752
806
|
if (e && e.tagName.toLowerCase() === "nldd-list-item") return e;
|
|
753
807
|
}
|
|
754
808
|
render() {
|
|
755
|
-
let e =
|
|
756
|
-
this.href &&
|
|
809
|
+
let e = _(this.href, this.target, this.download);
|
|
810
|
+
this.href && g(this, this.download, this.target);
|
|
757
811
|
let t = e ? this._t(`components.list-item.${e}`) : void 0, n = this._isListboxOption ? "-1" : this._arrowNavigation ? this._rovingActive ? "0" : "-1" : void 0;
|
|
758
812
|
return C(this.button, this.href, this.target, this.rel, this.download, t, n, this._highlighted, this.checkbox, this.radio, this.checked, this._resolvedExpanded, this._showChildren, this._hasCheckedSegment, this.disabled, this._parentType === "navigation" ? "list" : "group", this._childrenOpen, this.accessibleLabel);
|
|
759
813
|
}
|
|
760
|
-
}, E = T, T.styles = [b], T.SIZED_CELLS = "nldd-text-cell, nldd-
|
|
761
|
-
|
|
814
|
+
}, E = T, T.styles = [b], T.SIZED_CELLS = "nldd-text-cell, nldd-reorder-handle-cell", T);
|
|
815
|
+
i([o({
|
|
762
816
|
reflect: !0,
|
|
763
817
|
converter: u("md")
|
|
764
|
-
})],
|
|
818
|
+
})], V.prototype, "size", void 0), i([o({ reflect: !0 })], V.prototype, "href", void 0), i([o({ reflect: !0 })], V.prototype, "target", void 0), i([o({ type: String })], V.prototype, "download", void 0), i([o({ reflect: !0 })], V.prototype, "rel", void 0), i([o({
|
|
765
819
|
type: Boolean,
|
|
766
820
|
reflect: !0
|
|
767
|
-
})],
|
|
821
|
+
})], V.prototype, "button", void 0), i([o({
|
|
768
822
|
type: Boolean,
|
|
769
823
|
reflect: !0
|
|
770
|
-
})],
|
|
824
|
+
})], V.prototype, "checkbox", void 0), i([o({
|
|
771
825
|
type: Boolean,
|
|
772
826
|
reflect: !0
|
|
773
|
-
})],
|
|
827
|
+
})], V.prototype, "radio", void 0), i([o({
|
|
774
828
|
type: Boolean,
|
|
775
829
|
reflect: !0
|
|
776
|
-
})],
|
|
830
|
+
})], V.prototype, "expandable", void 0), i([o({
|
|
777
831
|
type: String,
|
|
778
832
|
attribute: "accessible-label"
|
|
779
|
-
})],
|
|
833
|
+
})], V.prototype, "accessibleLabel", void 0), i([o({
|
|
780
834
|
type: Boolean,
|
|
781
835
|
reflect: !0
|
|
782
|
-
})],
|
|
836
|
+
})], V.prototype, "reorderable", void 0), i([o({
|
|
783
837
|
type: Boolean,
|
|
784
838
|
reflect: !0
|
|
785
|
-
})],
|
|
839
|
+
})], V.prototype, "selected", void 0), i([o({
|
|
786
840
|
type: Boolean,
|
|
787
841
|
reflect: !0
|
|
788
|
-
})],
|
|
842
|
+
})], V.prototype, "checked", void 0), i([o({
|
|
789
843
|
type: Boolean,
|
|
790
844
|
reflect: !0
|
|
791
|
-
})],
|
|
845
|
+
})], V.prototype, "expanded", void 0), i([o({
|
|
792
846
|
type: Boolean,
|
|
793
847
|
reflect: !0
|
|
794
|
-
})],
|
|
848
|
+
})], V.prototype, "current", void 0), i([o({
|
|
795
849
|
reflect: !0,
|
|
796
850
|
attribute: "current-type",
|
|
797
851
|
converter: u("page")
|
|
798
|
-
})],
|
|
852
|
+
})], V.prototype, "currentType", void 0), i([o({
|
|
799
853
|
type: Boolean,
|
|
800
854
|
reflect: !0
|
|
801
|
-
})],
|
|
855
|
+
})], V.prototype, "disabled", void 0), i([s()], V.prototype, "_showChildren", void 0), i([s()], V.prototype, "_parentType", void 0), i([s()], V.prototype, "_arrowNavigation", void 0), i([s()], V.prototype, "_rovingActive", void 0), i([s()], V.prototype, "_highlighted", void 0), i([l(".list-item__action")], V.prototype, "_action", void 0), i([s()], V.prototype, "_hasCheckedSegment", void 0), V = E = i([c("nldd-list-item")], V);
|
|
802
856
|
export { w as t };
|