@nldd/design-system 0.26.4 → 0.27.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 +428 -37
- package/dist/cdn/autoloader.js +141 -141
- package/dist/cdn/chunks/{accordion-qXirmNBj.js → accordion-DBM4AcGb.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-BXEHwzcv.js → accordion-item-D90CmJyl.js} +4 -4
- package/dist/cdn/chunks/{activity-indicator-DP61AhsJ.js → activity-indicator-B6m9h0oa.js} +5 -5
- package/dist/cdn/chunks/{admonition-RnRSNAri.js → admonition-B-YTkCjn.js} +4 -4
- package/dist/cdn/chunks/after-parse-BSKUm67Q.js +9 -0
- package/dist/cdn/chunks/{avatar-DsexiOhH.js → avatar-CfBP9UZZ.js} +75 -41
- package/dist/cdn/chunks/{avatar-group-BrfrpXvd.js → avatar-group-DW_xMwb_.js} +71 -49
- package/dist/cdn/chunks/{badge-BiQFOq2l.js → badge-DnAuIhp1.js} +5 -5
- package/dist/cdn/chunks/{banner-42zIYAEN.js → banner-CRk2ARtC.js} +7 -7
- package/dist/cdn/chunks/{bar-split-view-CjYEp276.js → bar-split-view-DDgOYs7Z.js} +28 -21
- package/dist/cdn/chunks/{blockquote-qf4hJYvm.js → blockquote-DlfhBScg.js} +3 -3
- package/dist/cdn/chunks/{box-CWyg7sbR.js → box-DdU13yI4.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-BaHjYdz8.js → breadcrumbs-CqkR_6XN.js} +5 -5
- package/dist/cdn/chunks/{button-bar-DeJ81759.js → button-bar-BKkap9nk.js} +3 -3
- package/dist/cdn/chunks/{button-group-CuRkiHR5.js → button-group-D-YTmErV.js} +2 -2
- package/dist/cdn/chunks/{button-CKV-jwGY.js → button-muXGJHlo.js} +8 -8
- package/dist/cdn/chunks/{card-DxeUNE3V.js → card-Dvqz83fC.js} +4 -4
- package/dist/cdn/chunks/{cell-QaG8b-Qk.js → cell-C0O8tZbX.js} +6 -6
- package/dist/cdn/chunks/{checkbox-V0YerUKf.js → checkbox-CNWROiHV.js} +5 -5
- package/dist/cdn/chunks/{checkbox-field-DeySECgv.js → checkbox-field-DCYpRJfz.js} +7 -7
- package/dist/cdn/chunks/{checkbox-group-DFNy1y-A.js → checkbox-group-DxWAYp_b.js} +3 -3
- package/dist/cdn/chunks/{class-map-CmgI2Tu-.js → class-map-D720ceWJ.js} +1 -1
- package/dist/cdn/chunks/{code-editor-BBMbUJ4d.js → code-editor-DlnTXkHx.js} +5 -5
- package/dist/cdn/chunks/{code-viewer-B8jse0-5.js → code-viewer-DyJzo36-.js} +94 -87
- package/dist/cdn/chunks/{codemirror-input-BEotDTtZ.js → codemirror-input-DPSOMYZ4.js} +5 -5
- package/dist/cdn/chunks/{collection-DRoS7Ona.js → collection-i7H8zkQ8.js} +61 -42
- package/dist/cdn/chunks/{combo-box-DA1ZQJJS.js → combo-box-CpNl_us0.js} +20 -14
- package/dist/cdn/chunks/{container-F1i2pmko.js → container-YWW7mHNa.js} +14 -10
- package/dist/cdn/chunks/{custom-element-DD4ffKRs.js → custom-element-D8yf5dqU.js} +1 -1
- package/dist/cdn/chunks/{date-field-DVgisQnm.js → date-field-DzhUp4Rk.js} +12 -12
- package/dist/cdn/chunks/{date-picker-BaDTota3.js → date-picker-CGvsvK3g.js} +21 -15
- package/dist/cdn/chunks/{decorate-CeGXihRM.js → decorate-1aEyfetK.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-qFatR9dF.js → described-by-mixin-DffYoaxu.js} +2 -2
- package/dist/cdn/chunks/{description-cell-D45N4P1X.js → description-cell-DEw6xc2o.js} +6 -6
- package/dist/cdn/chunks/{dev-checks-CkCD0tPh.js → dev-checks-CTopJcdE.js} +12 -0
- package/dist/cdn/chunks/{directive-helpers-B9pcQxsE.js → directive-helpers-BQml5ahH.js} +1 -1
- package/dist/cdn/chunks/{dist-BS_pQgb6.js → dist-B5t9fS8q.js} +2 -2
- package/dist/cdn/chunks/{dist-DjlGttcc.js → dist-B87Ag4L-.js} +1 -1
- package/dist/cdn/chunks/{dist-v62GtoI6.js → dist-BKnqQxdv.js} +1 -1
- package/dist/cdn/chunks/{dist-Dsyc1RGG.js → dist-BYbLHkMP.js} +1 -1
- package/dist/cdn/chunks/{dist-Cl-rXzh7.js → dist-C8ZY_QIK.js} +1 -1
- package/dist/cdn/chunks/{dist-v7yvd26H.js → dist-CIX4JLW1.js} +3 -3
- package/dist/cdn/chunks/{dist-DJQUgOKW.js → dist-Cr8NctvS.js} +3 -3
- package/dist/cdn/chunks/{dist-mxb0NzAU.js → dist-D59Ae7dj.js} +1 -1
- package/dist/cdn/chunks/{dist-n8aCu6Kg.js → dist-DAf6EMuK.js} +2 -2
- package/dist/cdn/chunks/{dist-rjQNj-KZ.js → dist-DevfJ4Mu.js} +2 -2
- package/dist/cdn/chunks/{dist-jTL_Kil1.js → dist-qHSPGfTO.js} +1 -1
- package/dist/cdn/chunks/{divider-CtMx3Byp.js → divider-44rkHLYj.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-SKSf69FX.js → document-tab-bar-CcSKzhEy.js} +95 -56
- package/dist/cdn/chunks/{dropdown-se1zjYlw.js → dropdown-CJPjI-p1.js} +5 -5
- package/dist/cdn/chunks/{file-field-DW_Xt5O3.js → file-field-B4HQKpkI.js} +14 -14
- package/dist/cdn/chunks/{form-actions-Cy5tH1nk.js → form-actions-HaBfh6vm.js} +2 -2
- package/dist/cdn/chunks/{form-associated-mixin-CA0F9CPx.js → form-associated-mixin-BByNH679.js} +2 -2
- package/dist/cdn/chunks/{form-field-BMWm8VGS.js → form-field-CwYXsuvv.js} +6 -6
- package/dist/cdn/chunks/{form-C9-eW3zc.js → form-obggZEpt.js} +1 -1
- package/dist/cdn/chunks/{form-section-DrrXc4wZ.js → form-section-B2UZx_-z.js} +1 -1
- package/dist/cdn/chunks/frame-pass-C0RUoFMc.js +17 -0
- package/dist/cdn/chunks/{full-bleed-section-6QL0av4x.js → full-bleed-section-BSnWghWY.js} +9 -10
- package/dist/cdn/chunks/{hero-BThWV3MR.js → hero-CzbuEAUM.js} +73 -68
- package/dist/cdn/chunks/{icon-CVM6X_F1.js → icon-CkCT7sPE.js} +2 -2
- package/dist/cdn/chunks/{icon-button-h_sEz0Ia.js → icon-button-BBGwCfYp.js} +9 -9
- package/dist/cdn/chunks/{icon-cell-C3Ygercd.js → icon-cell-DcHnXV-8.js} +5 -5
- package/dist/cdn/chunks/{identity-BR0KxjM5.js → identity-C0fujsxK.js} +6 -6
- package/dist/cdn/chunks/{if-defined-CvQli6P0.js → if-defined-CL4nn-Q-.js} +1 -1
- package/dist/cdn/chunks/{image-D8H73DIj.js → image-BgtqLXfM.js} +8 -8
- package/dist/cdn/chunks/{inline-dialog-Dlu3bneh.js → inline-dialog-BYRIWhkm.js} +6 -6
- package/dist/cdn/chunks/{just-in-time-education-DG0teV5g.js → just-in-time-education-DwH3ubhZ.js} +5 -5
- package/dist/cdn/chunks/{kanban-MNLyqki_.js → kanban-BIZUoBj-.js} +35 -30
- package/dist/cdn/chunks/{kanban-column-CGF_4Q0N.js → kanban-column-CtjCIgaR.js} +37 -25
- package/dist/cdn/chunks/{keyboard-shortcut-DZDtndhS.js → keyboard-shortcut-BHylGMNu.js} +3 -3
- package/dist/cdn/chunks/{languages-BCn4J5Ck.js → languages-DghCYmiz.js} +12 -12
- package/dist/cdn/chunks/layout-pass-Cq85kSHX.js +45 -0
- package/dist/cdn/chunks/{link-CTj3dTmJ.js → link-S53veJpD.js} +6 -6
- package/dist/cdn/chunks/{link-group--C486tYV.js → link-group-B2_vdANe.js} +2 -2
- package/dist/cdn/chunks/{list-DApLHKj-.js → list-C8hY4uGW.js} +48 -34
- package/dist/cdn/chunks/{list-item-BN9uuvXr.js → list-item-CK1Rli4F.js} +5 -6
- package/dist/cdn/chunks/{list-item-segment-CvdZT9Ni.js → list-item-segment-KyrcOFDA.js} +3 -3
- package/dist/cdn/chunks/{menu-bar-g-O3_TNl.js → menu-bar-BRoqy5zp.js} +62 -46
- package/dist/cdn/chunks/{menu-bar-item-tOFEx-lS.js → menu-bar-item-DKW198ZW.js} +6 -6
- package/dist/cdn/chunks/{menu-divider-Dmv0lMHV.js → menu-divider-DDPBPK-o.js} +3 -3
- package/dist/cdn/chunks/{menu-group-Ci9QUUwZ.js → menu-group-uZXsE-uu.js} +4 -4
- package/dist/cdn/chunks/{menu-item-BnIbV4yo.js → menu-item-BOvb4QLd.js} +16 -12
- package/dist/cdn/chunks/{menu-2-9LtMLY.js → menu-m67vk1Z4.js} +20 -19
- package/dist/cdn/chunks/{menu.template-sPjaMfc8.js → menu.template-v6VnRUNJ.js} +105 -76
- package/dist/cdn/chunks/{modal-dialog-D-jAbabe.js → modal-dialog-BNq0r-1L.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-uBZqAdr6.js → multi-line-text-field-Bfq47I3P.js} +6 -6
- package/dist/cdn/chunks/{navigation-split-view-DARbBPq-.js → navigation-split-view-BiPoxCLL.js} +59 -47
- package/dist/cdn/chunks/{notification-CntIGoYh.js → notification-DjZXBv4J.js} +6 -6
- package/dist/cdn/chunks/{number-field-C0MTabLP.js → number-field-tqoQLrgZ.js} +8 -8
- package/dist/cdn/chunks/{one-half-one-half-section-DYzf6LtU.js → one-half-one-half-section-CyIm21PD.js} +15 -16
- package/dist/cdn/chunks/{one-third-two-thirds-section-AAiaxCHH.js → one-third-two-thirds-section-CpnK0vzB.js} +15 -16
- package/dist/cdn/chunks/{one-time-code-field-CCILuCy1.js → one-time-code-field-6sMEfzoY.js} +103 -64
- package/dist/cdn/chunks/{overflow-menu-DFoh3xL_.js → overflow-menu-IfYEX8tm.js} +1 -1
- package/dist/cdn/chunks/{page-footer-BsVMZCXs.js → page-footer-ET6j1N2Z.js} +4 -4
- package/dist/cdn/chunks/{page-section-mixin-L0bl3wCm.js → page-section-mixin-D9JL2q9A.js} +3 -3
- package/dist/cdn/chunks/{page-BDXLREou.js → page-w4XAfBWD.js} +76 -54
- package/dist/cdn/chunks/{pagination-DLwbSZdO.js → pagination-D7QFUu8x.js} +6 -6
- package/dist/cdn/chunks/{password-field-DKTJgEyb.js → password-field-Ck5wx6pg.js} +8 -8
- package/dist/cdn/chunks/{popover-RB7uLASo.js → popover-DOmi5m85.js} +5 -5
- package/dist/cdn/chunks/{progress-bar-DnXWbmiw.js → progress-bar-BDNcB06i.js} +10 -7
- package/dist/cdn/chunks/{progress-circle-S89MUtU8.js → progress-circle-BAMztpb3.js} +10 -7
- package/dist/cdn/chunks/{radio-button-B31lAjlk.js → radio-button-DAps6n0Q.js} +92 -51
- package/dist/cdn/chunks/{radio-button-field-BF4MHiOQ.js → radio-button-field-BbPk0nM_.js} +8 -7
- package/dist/cdn/chunks/{radio-button-group-BQUqV8wJ.js → radio-button-group-lxzwku00.js} +3 -3
- package/dist/cdn/chunks/{render-marked-ChJNzktf.js → render-marked-ClMFyNu0.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-SEERkeh7.js → reorder-handle-cell-Cap2u2zx.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-tWe9XTjZ.js → reorder-handle-mixin-CnRKPVqU.js} +2 -2
- package/dist/cdn/chunks/{repeat-CdCK17GF.js → repeat-CIyCvHHQ.js} +2 -2
- package/dist/cdn/chunks/{rich-text-vVWOndD2.js → rich-text-CblFmHY-.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-6MoJ5Mjq.js → row-header-mixin-C8z9StDU.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-Cr7_IXpU.js → scroll-fade-C_L9CJrR.js} +2 -2
- package/dist/cdn/chunks/scroll-mode-controller-Dl5hddJo.js +52 -0
- package/dist/cdn/chunks/{search-field-C9urWH_J.js → search-field-JeUPcBjZ.js} +10 -10
- package/dist/cdn/chunks/{segmented-control-DkILAMOJ.js → segmented-control-DtycvVyp.js} +7 -7
- package/dist/cdn/chunks/{shadow-resets-9v6K-Fie.js → shadow-resets-DgR56wQK.js} +2 -2
- package/dist/cdn/chunks/{sheet-D89xI-KY.js → sheet-XtRs26hN.js} +3 -3
- package/dist/cdn/chunks/{shell-CFmfUD0_.js → shell-CCaEEGna.js} +4 -4
- package/dist/cdn/chunks/{side-by-side-split-view-ir9c0mwZ.js → side-by-side-split-view-mhXD4Lde.js} +38 -29
- package/dist/cdn/chunks/{sidebar-section-BhJXels3.js → sidebar-section-Cwd4LSE6.js} +70 -48
- package/dist/cdn/chunks/{simple-section-CMoYuLYV.js → simple-section-BuiaCGks.js} +9 -10
- package/dist/cdn/chunks/{skip-link-rUQq0D-l.js → skip-link-nTlmioFt.js} +4 -4
- package/dist/cdn/chunks/{slider-CIQqjKUo.js → slider-C0rNQEIY.js} +9 -9
- package/dist/cdn/chunks/{spacer-CD85egxE.js → spacer-CeSO9CP1.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-B33mGdru.js → spacer-cell-NhlxEdhA.js} +4 -4
- package/dist/cdn/chunks/{split-button-COL7r-wa.js → split-button-BR-ccA6_.js} +7 -7
- package/dist/cdn/chunks/{split-view-divider-DVBuBzeO.js → split-view-divider-HcIV0yli.js} +2 -2
- package/dist/cdn/chunks/{split-view-pane-CSvIzeBg.js → split-view-pane-BgFUL3BV.js} +4 -4
- package/dist/cdn/chunks/{stacked-split-view-onSk2QEi.js → stacked-split-view-j77p3uE2.js} +29 -25
- package/dist/cdn/chunks/{static-html-Cyhp44gp.js → static-html-CGoLwgpW.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CjYXOQAX.js → status-bar-ByJ21hV2.js} +29 -17
- package/dist/cdn/chunks/{step-bar-D-To0TEw.js → step-bar-CRxF0S42.js} +5 -5
- package/dist/cdn/chunks/{step-cell-B7sVGixc.js → step-cell-C-gOxNA6.js} +5 -5
- package/dist/cdn/chunks/{stepper-h6boMOhz.js → stepper-Dmljb7Qc.js} +7 -7
- package/dist/cdn/chunks/{style-map-BrdTV34-.js → style-map-CK811FGv.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-gQ3m3y9U.js → swatch-picker-DtAgTXLo.js} +6 -6
- package/dist/cdn/chunks/{switch-DC-BTi9E.js → switch-Bqion92b.js} +5 -5
- package/dist/cdn/chunks/{switch-field-D82mLobj.js → switch-field-CWobTcEn.js} +6 -6
- package/dist/cdn/chunks/{tab-bar-sKiFzvfj.js → tab-bar-DPtRjP8Z.js} +85 -49
- package/dist/cdn/chunks/{table-CuxZfCZD.js → table-C4CFiDgr.js} +111 -54
- package/dist/cdn/chunks/{tag-DP_ome5l.js → tag-Bo23A60g.js} +4 -4
- package/dist/cdn/chunks/{term-BdiTV-Jk.js → term-DPMEWR-t.js} +12 -12
- package/dist/cdn/chunks/{text-C-b1ygHI.js → text-CuiMvMZQ.js} +3 -3
- package/dist/cdn/chunks/{text-cell-DfRh7JqZ.js → text-cell-E3yc99xw.js} +8 -8
- package/dist/cdn/chunks/{text-editor-DuT9Rrpv.js → text-editor-BVmHiq_b.js} +191 -191
- package/dist/cdn/chunks/{text-field-kAbXzkUj.js → text-field-DOv1aI_F.js} +6 -6
- package/dist/cdn/chunks/{time-field-DUz9ifmn.js → time-field-BhlLk6tt.js} +14 -14
- package/dist/cdn/chunks/{time-picker-DGOKwC9T.js → time-picker-A4-HeVas.js} +170 -99
- package/dist/cdn/chunks/{title-BA-SUyAq.js → title-EMt-SYKV.js} +4 -4
- package/dist/cdn/chunks/{title-cell-Cu5NFNUu.js → title-cell--EE-L_8a.js} +8 -8
- package/dist/cdn/chunks/{toggle-button-J6UapeqB.js → toggle-button-BLwpxmQs.js} +8 -8
- package/dist/cdn/chunks/{toggle-button-group-wrps-tL9.js → toggle-button-group-scdxolJt.js} +2 -2
- package/dist/cdn/chunks/{token-DJkyJz-k.js → token-DVgXuCRO.js} +5 -5
- package/dist/cdn/chunks/{token-field-SiBFPD8-.js → token-field-CICQXLlO.js} +12 -12
- package/dist/cdn/chunks/toolbar-Des2gaH2.js +441 -0
- package/dist/cdn/chunks/{toolbar-item-DPizdgYi.js → toolbar-item-CkwQ2UyY.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-CB4IJFGv.js → toolbar-title-PoOf794l.js} +4 -4
- package/dist/cdn/chunks/{toolbar.styles-vmMPyzS_.js → toolbar.styles-DzreUGTp.js} +3 -3
- package/dist/cdn/chunks/{tooltip-Bg2ovCCg.js → tooltip-CMCT2iiD.js} +4 -4
- package/dist/cdn/chunks/{top-navigation-bar-vA8wpJXS.js → top-navigation-bar-BfMGgTIy.js} +121 -104
- package/dist/cdn/chunks/{top-title-bar-BAJGmgnj.js → top-title-bar-CvvldlNt.js} +43 -30
- package/dist/cdn/chunks/{translations-Cjd13Xb6.js → translations-C5JpcNNC.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-D1FvorKO.js → two-thirds-one-third-section-BTkeIiHm.js} +15 -16
- package/dist/cdn/chunks/{validation-list-D3rKnfTu.js → validation-list-BasB3ZaT.js} +3 -3
- package/dist/cdn/chunks/{visibility-mixin-BRMACV1l.js → visibility-mixin-BxhcJG-x.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-BukWRiJA.js → visually-hidden-ByHY8pKl.js} +2 -2
- package/dist/cdn/chunks/{window-C9njVzzK.js → window-B5blEfMR.js} +4 -4
- package/dist/cdn/chunks/{with-translations-BLzHPSUF.js → with-translations-QDhHJYMT.js} +3 -3
- package/dist/components/actions/menu/menu-item.d.ts +11 -0
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +28 -13
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +6 -0
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +14 -4
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +63 -3
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +18 -47
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +56 -16
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +263 -95
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.steps.d.ts +16 -0
- package/dist/components/actions/toolbar/toolbar.steps.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar.steps.js +33 -0
- package/dist/components/actions/toolbar/toolbar.steps.js.map +1 -0
- package/dist/components/content/avatar/avatar.d.ts +22 -10
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +122 -29
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +25 -10
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +97 -26
- package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.js +5 -4
- package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +4 -2
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +35 -32
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +4 -0
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +8 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +28 -9
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +11 -0
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +23 -0
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js +4 -2
- package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +6 -1
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +27 -5
- 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 +128 -30
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +5 -2
- package/dist/components/inputs/radio-button/radio-button.js.map +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 -2
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotations.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotations.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.selection.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.selection.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.toolbar.js +18 -12
- package/dist/components/inputs/text-editor/text-editor.toolbar.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +23 -0
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +132 -12
- 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 +27 -6
- 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/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/collection/collection.d.ts +9 -1
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +96 -38
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +1 -0
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +22 -16
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/kanban/kanban-column.d.ts +7 -2
- package/dist/components/layout/kanban/kanban-column.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban-column.js +49 -17
- package/dist/components/layout/kanban/kanban-column.js.map +1 -1
- package/dist/components/layout/kanban/kanban.d.ts +4 -1
- package/dist/components/layout/kanban/kanban.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.js +25 -7
- package/dist/components/layout/kanban/kanban.js.map +1 -1
- package/dist/components/layout/kanban/kanban.template.js +1 -1
- package/dist/components/layout/kanban/kanban.template.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +39 -12
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +112 -66
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +3 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +3 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +6 -7
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.js +24 -1
- package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js +22 -22
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +2 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +2 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.js +8 -11
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +4 -2
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +4 -2
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +12 -13
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +4 -2
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +4 -2
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +12 -13
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +12 -9
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +66 -21
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +23 -17
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +5 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +4 -3
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +4 -3
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +6 -7
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +4 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +4 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +12 -13
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +2 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +30 -17
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +8 -3
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +35 -20
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +6 -2
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +30 -15
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts +6 -3
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +28 -16
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +19 -0
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +47 -15
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.roving.d.ts +2 -1
- package/dist/components/lists-and-tables/list/list.roving.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.roving.js +7 -3
- package/dist/components/lists-and-tables/list/list.roving.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +0 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +34 -6
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +143 -40
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +13 -0
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.js +6 -0
- package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +33 -2
- 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 +136 -38
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.d.ts +21 -3
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +61 -29
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +26 -4
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +99 -24
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +23 -14
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +126 -83
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +28 -28
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +5 -1
- 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 +36 -13
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +6 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +1 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +6 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +0 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +26 -6
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/nldd.min.js +880 -814
- package/dist/types/react.d.ts +8 -8
- package/dist/types/vue.d.ts +8 -8
- package/dist/utilities/after-parse.d.ts +30 -0
- package/dist/utilities/after-parse.d.ts.map +1 -0
- package/dist/utilities/after-parse.js +44 -0
- package/dist/utilities/after-parse.js.map +1 -0
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +12 -0
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/frame-pass.d.ts +28 -0
- package/dist/utilities/frame-pass.d.ts.map +1 -0
- package/dist/utilities/frame-pass.js +41 -0
- package/dist/utilities/frame-pass.js.map +1 -0
- package/dist/utilities/layout-pass.d.ts +49 -0
- package/dist/utilities/layout-pass.d.ts.map +1 -0
- package/dist/utilities/layout-pass.js +103 -0
- package/dist/utilities/layout-pass.js.map +1 -0
- package/dist/utilities/radio-grouping.d.ts +30 -4
- package/dist/utilities/radio-grouping.d.ts.map +1 -1
- package/dist/utilities/radio-grouping.js +98 -17
- package/dist/utilities/radio-grouping.js.map +1 -1
- package/dist/utilities/scroll-mode-controller.d.ts +13 -6
- package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
- package/dist/utilities/scroll-mode-controller.js +47 -21
- package/dist/utilities/scroll-mode-controller.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/format.js +7 -4
- package/lint/frontends.js +347 -0
- package/lint/linter.js +1 -1
- package/lint/main.js +1 -0
- package/lint/project.js +8 -1
- package/lint/session.js +30 -8
- package/package.json +1 -1
- package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +0 -42
- package/dist/cdn/chunks/toolbar-be8hoSAz.js +0 -364
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
2
|
-
import { n as i, r as a, s as o } from "./custom-element-
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-1aEyfetK.js";
|
|
2
|
+
import { n as i, r as a, s as o } from "./custom-element-D8yf5dqU.js";
|
|
3
3
|
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { t as c } from "./overlay-invoker-Dj6MQAtF.js";
|
|
5
|
-
import { t as l } from "./form-associated-mixin-
|
|
6
|
-
import { t as u } from "./shadow-resets-
|
|
7
|
-
import { t as d } from "./repeat-
|
|
8
|
-
import "./token-
|
|
9
|
-
import "./icon-
|
|
10
|
-
import "./icon-button-
|
|
11
|
-
import "./menu-
|
|
5
|
+
import { t as l } from "./form-associated-mixin-BByNH679.js";
|
|
6
|
+
import { t as u } from "./shadow-resets-DgR56wQK.js";
|
|
7
|
+
import { t as d } from "./repeat-CIyCvHHQ.js";
|
|
8
|
+
import "./token-DVgXuCRO.js";
|
|
9
|
+
import "./icon-CkCT7sPE.js";
|
|
10
|
+
import "./icon-button-BBGwCfYp.js";
|
|
11
|
+
import "./menu-m67vk1Z4.js";
|
|
12
12
|
import { t as f } from "./token-field.i18n-BclzoR8F.js";
|
|
13
13
|
import { t as p } from "./implicit-submission-Csbcor_E.js";
|
|
14
|
-
import { t as m } from "./described-by-mixin-
|
|
15
|
-
import { t as h } from "./translations-
|
|
14
|
+
import { t as m } from "./described-by-mixin-DffYoaxu.js";
|
|
15
|
+
import { t as h } from "./translations-C5JpcNNC.js";
|
|
16
16
|
import { t as g } from "./defer-focus-F73ud2D9.js";
|
|
17
17
|
// src/components/inputs/token-field/token-field.styles.ts
|
|
18
18
|
var _ = o`
|
|
@@ -367,7 +367,7 @@ var C = class extends m(l(e)) {
|
|
|
367
367
|
subtree: !0,
|
|
368
368
|
attributes: !0,
|
|
369
369
|
characterData: !0
|
|
370
|
-
});
|
|
370
|
+
}), this.hasUpdated && this._onSlotChange();
|
|
371
371
|
}
|
|
372
372
|
disconnectedCallback() {
|
|
373
373
|
super.disconnectedCallback(), this._resizeObserver?.disconnect(), this._resizeObserver = null, this._menuObserver?.disconnect(), this._menuObserver = null, this._templateObserver?.disconnect(), this._templateObserver = null, window.removeEventListener("scroll", this._handleScrollOrResize, !0), window.removeEventListener("resize", this._handleScrollOrResize), this.removeEventListener("focusout", this._handleFocusOut), this._menu && (this._menu.removeEventListener("toggle", this._handleMenuToggle), this._menu.removeEventListener("select", this._handleMenuSelect), this._menu.removeEventListener("keydown", this._handleMenuKeydown), this._menu = null);
|
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-1aEyfetK.js";
|
|
2
|
+
import { n as i, r as a } from "./custom-element-D8yf5dqU.js";
|
|
3
|
+
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as s } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
+
import { n as c } from "./toolbar.styles-DzreUGTp.js";
|
|
6
|
+
import "./icon-button-BBGwCfYp.js";
|
|
7
|
+
import { t as l } from "./toolbar.i18n-QwS37CBC.js";
|
|
8
|
+
import { t as u } from "./translations-C5JpcNNC.js";
|
|
9
|
+
import { t as d } from "./overflow-menu-IfYEX8tm.js";
|
|
10
|
+
import { t as f } from "./after-parse-BSKUm67Q.js";
|
|
11
|
+
import { t as p } from "./layout-pass-Cq85kSHX.js";
|
|
12
|
+
import { NLDDToolbarItem as m } from "./toolbar-item-CkwQ2UyY.js";
|
|
13
|
+
import { NLDDToolbarTitle as h } from "./toolbar-title-PoOf794l.js";
|
|
14
|
+
// src/components/actions/toolbar/toolbar.template.ts
|
|
15
|
+
function g(e, r, i, a, o, s, c, l, u, d) {
|
|
16
|
+
return t`
|
|
17
|
+
<div class="toolbar"
|
|
18
|
+
role="toolbar"
|
|
19
|
+
aria-label=${l || n}
|
|
20
|
+
>
|
|
21
|
+
<div class="toolbar__items">
|
|
22
|
+
<slot name="start"></slot>
|
|
23
|
+
${r ? t`
|
|
24
|
+
${u ? t`
|
|
25
|
+
<div class="toolbar__center-fill">
|
|
26
|
+
<slot name="center"></slot>
|
|
27
|
+
</div>
|
|
28
|
+
` : t`
|
|
29
|
+
${i ? n : t`<div class="toolbar__left-spacer"></div>`}
|
|
30
|
+
<slot name="center"></slot>
|
|
31
|
+
${a ? n : t`<div class="toolbar__right-spacer"></div>`}
|
|
32
|
+
`}
|
|
33
|
+
` : o ? n : t`
|
|
34
|
+
<div class="toolbar__flexible-spacer"></div>
|
|
35
|
+
`}
|
|
36
|
+
<slot name="end"></slot>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="toolbar__overflow-button ${s ? "" : "is-hidden"}">
|
|
39
|
+
<nldd-icon-button
|
|
40
|
+
size=${e.size}
|
|
41
|
+
icon="ellipsis"
|
|
42
|
+
text=${d("components.toolbar.overflow-action")}
|
|
43
|
+
tooltip-timing="never"
|
|
44
|
+
popup-type="menu"
|
|
45
|
+
?expanded=${c}
|
|
46
|
+
></nldd-icon-button>
|
|
47
|
+
<span class="toolbar__overflow-button-label">${d("components.toolbar.overflow-action")}</span>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
`;
|
|
51
|
+
}
|
|
52
|
+
// src/components/actions/toolbar/toolbar.steps.ts
|
|
53
|
+
function _(e) {
|
|
54
|
+
let t = e.map((e) => ({
|
|
55
|
+
steps: e,
|
|
56
|
+
next: "read",
|
|
57
|
+
done: !1
|
|
58
|
+
}));
|
|
59
|
+
try {
|
|
60
|
+
let e = t;
|
|
61
|
+
for (; e.length;) {
|
|
62
|
+
for (let t of ["read", "write"]) for (let n of e) {
|
|
63
|
+
if (n.done || n.next !== t) continue;
|
|
64
|
+
let e = n.steps.next();
|
|
65
|
+
e.done ? n.done = !0 : n.next = e.value;
|
|
66
|
+
}
|
|
67
|
+
e = e.filter((e) => !e.done);
|
|
68
|
+
}
|
|
69
|
+
} finally {
|
|
70
|
+
for (let e of t) e.done || e.steps.return();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// src/components/actions/toolbar/toolbar.layout.ts
|
|
74
|
+
function v(e) {
|
|
75
|
+
return e.filter((e) => e.type === "item");
|
|
76
|
+
}
|
|
77
|
+
function y(e, t, n) {
|
|
78
|
+
return [
|
|
79
|
+
...v(n).map((e, t) => ({
|
|
80
|
+
item: e,
|
|
81
|
+
areaOrder: 0,
|
|
82
|
+
index: t
|
|
83
|
+
})),
|
|
84
|
+
...v(t).map((e, t) => ({
|
|
85
|
+
item: e,
|
|
86
|
+
areaOrder: 1,
|
|
87
|
+
index: t
|
|
88
|
+
})),
|
|
89
|
+
...v(e).map((e, t) => ({
|
|
90
|
+
item: e,
|
|
91
|
+
areaOrder: 2,
|
|
92
|
+
index: t
|
|
93
|
+
}))
|
|
94
|
+
].sort((e, t) => e.item.priority === t.item.priority ? e.areaOrder === t.areaOrder ? t.index - e.index : e.areaOrder - t.areaOrder : e.item.priority - t.item.priority).map(({ item: e }) => e);
|
|
95
|
+
}
|
|
96
|
+
function b(e) {
|
|
97
|
+
let t = [], n = /* @__PURE__ */ new Map();
|
|
98
|
+
for (let r of e) {
|
|
99
|
+
if (!r.hasPriority) {
|
|
100
|
+
t.push([r]);
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
let e = n.get(r.priority);
|
|
104
|
+
if (e) {
|
|
105
|
+
e.push(r);
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
let i = [r];
|
|
109
|
+
n.set(r.priority, i), t.push(i);
|
|
110
|
+
}
|
|
111
|
+
return t;
|
|
112
|
+
}
|
|
113
|
+
function x(e, t, n, r) {
|
|
114
|
+
let i = e.filter((e) => !t.has(e.id));
|
|
115
|
+
return Math.max(0, i.length - 1) * r + i.reduce((e, t) => t.type === "item" || t.type === "title" ? e + (n.get(t.id) ?? 0) : e, 0);
|
|
116
|
+
}
|
|
117
|
+
function S(e, t, n, r, i, a) {
|
|
118
|
+
if (r === 0 && a === 0) return {
|
|
119
|
+
leftZero: !0,
|
|
120
|
+
rightZero: !0
|
|
121
|
+
};
|
|
122
|
+
let o = e / 2 - r - i / 2 - t, s = e / 2 - a - i / 2 - t - n;
|
|
123
|
+
return {
|
|
124
|
+
leftZero: o <= 0,
|
|
125
|
+
rightZero: s <= 0
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function C(e) {
|
|
129
|
+
if (e.length !== 1) return !1;
|
|
130
|
+
let [t] = e;
|
|
131
|
+
return t.type === "title" || t.type === "item" && t.isFluid;
|
|
132
|
+
}
|
|
133
|
+
// src/components/actions/toolbar/toolbar.ts
|
|
134
|
+
var w;
|
|
135
|
+
function T(e) {
|
|
136
|
+
let t = Array.from(e.children).find((e) => e.getAttribute("slot") !== "overflow");
|
|
137
|
+
return typeof t?._toolbarWidths == "function" ? t : null;
|
|
138
|
+
}
|
|
139
|
+
var E = new p((e) => _(e.filter((e) => e.isConnected).map((e) => e._measureSteps()))), D = new p((e) => _(e.filter((e) => e.isConnected && !e._hasMeasured).map((e) => e._areaSteps()))), O = /* @__PURE__ */ new WeakMap(), k = null;
|
|
140
|
+
function A(e, t) {
|
|
141
|
+
k ?? (k = new ResizeObserver((e) => {
|
|
142
|
+
let t = /* @__PURE__ */ new Set();
|
|
143
|
+
for (let n of e) {
|
|
144
|
+
let e = O.get(n.target);
|
|
145
|
+
e?._resized(n) && t.add(e);
|
|
146
|
+
}
|
|
147
|
+
t.size && (t.forEach((e) => E.schedule(e, e.ownerDocument)), E.flush());
|
|
148
|
+
})), O.set(e, t), k.observe(e);
|
|
149
|
+
}
|
|
150
|
+
function j(e, t) {
|
|
151
|
+
O.get(e) === t && (k?.unobserve(e), O.delete(e));
|
|
152
|
+
}
|
|
153
|
+
var M = /* @__PURE__ */ new Set(), N = null;
|
|
154
|
+
function P(e) {
|
|
155
|
+
M.add(e), N ?? (N = setTimeout(() => {
|
|
156
|
+
N = null;
|
|
157
|
+
let e = [...M];
|
|
158
|
+
M.clear(), e.forEach((e) => e._buildChildren());
|
|
159
|
+
}, 0));
|
|
160
|
+
}
|
|
161
|
+
var F = /* @__PURE__ */ new Set(), I = () => {
|
|
162
|
+
let e = [...F].filter((e) => e._hasMeasured);
|
|
163
|
+
e.length && (e.forEach((e) => E.schedule(e, e.ownerDocument)), E.flush());
|
|
164
|
+
}, L = (w = class extends e {
|
|
165
|
+
constructor(...e) {
|
|
166
|
+
super(...e), this.size = "md", this.showItemLabels = !1, this.accessibleLabel = "", this.translations = {}, this._overflowMenu = new d(this, { id: "nldd-toolbar-overflow-menu" }), this._startChildren = [], this._centerChildren = [], this._endChildren = [], this._overflowIds = /* @__PURE__ */ new Set(), this._leftSpacerZero = !1, this._rightSpacerZero = !1, this._centerOnly = !1, this._soloFluid = !1, this._pinnedOverflowItems = [], this._childIds = /* @__PURE__ */ new WeakMap(), this._idCounter = 0, this._itemWidths = /* @__PURE__ */ new Map(), this._observer = null, this._isMeasuring = !1, this._sizedChildren = /* @__PURE__ */ new Set(), this._lastChildWidths = /* @__PURE__ */ new WeakMap(), this._isBuilding = !1, this._rebuildPending = !1, this._built = !1, this._lastWidth = null, this._hasMeasured = !1, this._prioritizedItemsCache = null;
|
|
167
|
+
}
|
|
168
|
+
_t(e) {
|
|
169
|
+
return u(this.translations, l, e);
|
|
170
|
+
}
|
|
171
|
+
_getId(e) {
|
|
172
|
+
return this._childIds.has(e) || this._childIds.set(e, this._idCounter++), this._childIds.get(e);
|
|
173
|
+
}
|
|
174
|
+
connectedCallback() {
|
|
175
|
+
super.connectedCallback(), this._observer = new MutationObserver((e) => {
|
|
176
|
+
if (this._isBuilding) return;
|
|
177
|
+
let t = !1, n = !1;
|
|
178
|
+
for (let r of e) if (r.type === "attributes") {
|
|
179
|
+
let e = r.target, i = e.tagName.toLowerCase();
|
|
180
|
+
i === "nldd-toolbar-item" || i === "nldd-toolbar-title" ? t = !0 : e.closest?.("[slot=\"overflow\"]") && (n = !0);
|
|
181
|
+
} else t = !0;
|
|
182
|
+
t ? this._rebuild() : n && this._syncMenuItems();
|
|
183
|
+
}), A(this, this), P(this), F.size || document.fonts?.addEventListener("loadingdone", I), F.add(this);
|
|
184
|
+
}
|
|
185
|
+
disconnectedCallback() {
|
|
186
|
+
super.disconnectedCallback(), F.delete(this), F.size || document.fonts?.removeEventListener("loadingdone", I), M.delete(this), E.cancel(this), D.cancel(this), this._observer?.disconnect(), this._observer = null, j(this, this), this._lastWidth = null, this._sizedChildren.forEach((e) => j(e, this)), this._sizedChildren.clear();
|
|
187
|
+
}
|
|
188
|
+
_rebuild() {
|
|
189
|
+
if (this._rebuildPending) return;
|
|
190
|
+
let e = () => {
|
|
191
|
+
this._rebuildPending = !1, this.isConnected && this._buildChildren();
|
|
192
|
+
};
|
|
193
|
+
this._rebuildPending = f(e, this.ownerDocument), this._rebuildPending || this._buildChildren();
|
|
194
|
+
}
|
|
195
|
+
_scheduleMeasure() {
|
|
196
|
+
E.schedule(this, this.ownerDocument);
|
|
197
|
+
}
|
|
198
|
+
_resized(e) {
|
|
199
|
+
if (this._isMeasuring) return !1;
|
|
200
|
+
if (e.target === this) {
|
|
201
|
+
let t = e.borderBoxSize?.[0]?.inlineSize ?? e.contentRect.width;
|
|
202
|
+
return t !== this._lastWidth && (this._lastWidth = t, this._overflowMenu.hide(), !0);
|
|
203
|
+
}
|
|
204
|
+
if (this._isBuilding) return !1;
|
|
205
|
+
let t = e.target;
|
|
206
|
+
if (t.hasAttribute("hidden")) return !1;
|
|
207
|
+
let n = e.contentRect.width;
|
|
208
|
+
return Math.abs((this._lastChildWidths.get(t) ?? -1) - n) < .5 ? !1 : (this._lastChildWidths.set(t, n), !0);
|
|
209
|
+
}
|
|
210
|
+
firstUpdated() {
|
|
211
|
+
this._syncHosts();
|
|
212
|
+
}
|
|
213
|
+
updated(e) {
|
|
214
|
+
(e.has("size") || e.has("showItemLabels")) && this._syncHosts(), this._built && (e.has("_startChildren") || e.has("_centerChildren") || e.has("_endChildren")) && this.updateComplete.then(() => this._scheduleMeasure()), (e.has("_overflowIds") || e.has("_pinnedOverflowItems")) && (this._syncMenuItems(), this._syncMenuAnchor(), this._hasMeasured || this.updateComplete.then(() => D.schedule(this, this.ownerDocument)));
|
|
215
|
+
}
|
|
216
|
+
_syncMenuAnchor() {
|
|
217
|
+
this._overflowMenu.anchorTo(this.shadowRoot?.querySelector(".toolbar__overflow-button nldd-icon-button") ?? null);
|
|
218
|
+
}
|
|
219
|
+
_syncMenuItems() {
|
|
220
|
+
let e = this._getPrioritizedItems().toReversed().filter((e) => this._overflowIds.has(e.id)).flatMap((e) => e.overflowItems);
|
|
221
|
+
this._overflowMenu.mirror([...e, ...this._pinnedOverflowItems]);
|
|
222
|
+
}
|
|
223
|
+
_syncHosts() {
|
|
224
|
+
this._allHostChildren().forEach((e) => {
|
|
225
|
+
if (e.type === "item") {
|
|
226
|
+
let t = e.element;
|
|
227
|
+
t.setAttribute("size", this.size), t.toggleAttribute("show-item-labels", this.showItemLabels), t.toggleAttribute("fluid", e.isFluid), e.isFluid && e.minWidth ? t.style.setProperty("--_toolbar-item-min-width", e.minWidth) : t.style.removeProperty("--_toolbar-item-min-width"), e.isFluid && e.width ? t.style.setProperty("--_toolbar-item-width", e.width) : t.style.removeProperty("--_toolbar-item-width"), e.isFluid && e.maxWidth ? t.style.setProperty("--_toolbar-item-max-width", e.maxWidth) : t.style.removeProperty("--_toolbar-item-max-width"), Array.from(t.children).forEach((e) => {
|
|
228
|
+
e.getAttribute("slot") !== "overflow" && e.setAttribute("size", this.size);
|
|
229
|
+
});
|
|
230
|
+
} else e.type === "title" && e.element.setAttribute("size", this.size);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
_getPrioritizedItems() {
|
|
234
|
+
return this._prioritizedItemsCache ?? (this._prioritizedItemsCache = y(this._startChildren, this._centerChildren, this._endChildren)), this._prioritizedItemsCache;
|
|
235
|
+
}
|
|
236
|
+
_allHostChildren() {
|
|
237
|
+
return [
|
|
238
|
+
...this._startChildren,
|
|
239
|
+
...this._centerChildren,
|
|
240
|
+
...this._endChildren
|
|
241
|
+
];
|
|
242
|
+
}
|
|
243
|
+
_hostFor(e) {
|
|
244
|
+
let t = this._allHostChildren().find((t) => t.id === e);
|
|
245
|
+
return t && (t.type === "item" || t.type === "title") ? t.element : null;
|
|
246
|
+
}
|
|
247
|
+
_measureItemWidths() {
|
|
248
|
+
this._allHostChildren().forEach((e) => {
|
|
249
|
+
if (e.type === "item" || e.type === "title") {
|
|
250
|
+
let t = e.element, n = t.getBoundingClientRect().width;
|
|
251
|
+
this._itemWidths.set(e.id, n), t.hidden || this._lastChildWidths.set(t, n);
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
*_areaSteps() {
|
|
256
|
+
let e = this.shadowRoot?.querySelector(".toolbar__items");
|
|
257
|
+
if (!e) return;
|
|
258
|
+
let t = this.getBoundingClientRect().width, n = parseFloat(getComputedStyle(e).gap ?? "0"), r = parseFloat(getComputedStyle(this).gap ?? "0"), i = this.shadowRoot?.querySelector(".toolbar__overflow-button"), a = this.shadowRoot?.querySelector(".toolbar__overflow-button nldd-icon-button"), o = i && !i.classList.contains("is-hidden") && a ? a.getBoundingClientRect().width + r : 0, s = this._isCenterOnly(), c = this._allHostChildren().filter((e) => !this._overflowIds.has(e.id) && e.element.getClientRects().length > 0);
|
|
259
|
+
yield "write", this.style.setProperty("--_toolbar-overflow-button-width", `${o}px`);
|
|
260
|
+
let l = x(this._startChildren, this._overflowIds, this._itemWidths, n), u = x(this._centerChildren, this._overflowIds, this._itemWidths, n), d = x(this._endChildren, this._overflowIds, this._itemWidths, n);
|
|
261
|
+
this.style.setProperty("--_toolbar-start-width", `${l}px`), this.style.setProperty("--_toolbar-center-width", `${u}px`), this.style.setProperty("--_toolbar-end-width", `${d}px`), this.style.setProperty("--_toolbar-left-spacer-gap", l > 0 ? `${n}px` : "0px"), this.style.setProperty("--_toolbar-right-spacer-gap", d > 0 ? `${n}px` : "0px");
|
|
262
|
+
let { leftZero: f, rightZero: p } = S(t, n, o, l, u, d);
|
|
263
|
+
f !== this._leftSpacerZero && (this._leftSpacerZero = f), p !== this._rightSpacerZero && (this._rightSpacerZero = p), s !== this._centerOnly && (this._centerOnly = s);
|
|
264
|
+
let m = C(c);
|
|
265
|
+
m !== this._soloFluid && (this._soloFluid = m);
|
|
266
|
+
}
|
|
267
|
+
_isCenterOnly() {
|
|
268
|
+
return !this._hasPresentChild(this._startChildren) && !this._hasPresentChild(this._endChildren) && this._centerChildren.length > 0;
|
|
269
|
+
}
|
|
270
|
+
_hasRenderedChild(e) {
|
|
271
|
+
return e.some((e) => e.element.getClientRects().length > 0);
|
|
272
|
+
}
|
|
273
|
+
_hasPresentChild(e) {
|
|
274
|
+
return e.some((e) => this._overflowIds.has(e.id)) || this._hasRenderedChild(e);
|
|
275
|
+
}
|
|
276
|
+
_measureAndUpdate() {
|
|
277
|
+
E.cancel(this), _([this._measureSteps()]);
|
|
278
|
+
}
|
|
279
|
+
*_measureSteps() {
|
|
280
|
+
if (this._isMeasuring) return;
|
|
281
|
+
let e = this.shadowRoot?.querySelector(".toolbar__items");
|
|
282
|
+
if (e) {
|
|
283
|
+
this._isMeasuring = !0;
|
|
284
|
+
try {
|
|
285
|
+
let t = this.getBoundingClientRect().width;
|
|
286
|
+
this._lastWidth = t, yield "write", this.style.setProperty("--_toolbar-width", `${t}px`), yield* this._overflowSteps(e), this._hasMeasured = !0;
|
|
287
|
+
} finally {
|
|
288
|
+
this._isMeasuring = !1;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
*_overflowSteps(e) {
|
|
293
|
+
let t = this.shadowRoot?.querySelector(".toolbar__overflow-button"), n = this._allHostChildren(), r = v(n), i = n.filter((e) => e.type === "title"), a = /* @__PURE__ */ new Map();
|
|
294
|
+
if (r.forEach((e) => {
|
|
295
|
+
let t = e.element;
|
|
296
|
+
t.hidden = !1, t.removeAttribute("shrunk");
|
|
297
|
+
let n = T(t);
|
|
298
|
+
n && a.set(t, n);
|
|
299
|
+
}), a.size) {
|
|
300
|
+
a.forEach((e) => e._setMeasuring?.(!0)), yield "read";
|
|
301
|
+
let e = new Map([...a].map(([e, t]) => [e, t._toolbarWidths()]));
|
|
302
|
+
yield "write", a.forEach((e) => e._setMeasuring?.(!1)), r.forEach((t) => this._syncShrinkable(t.element, e.get(t.element) ?? null));
|
|
303
|
+
} else r.forEach((e) => this._syncShrinkable(e.element, null));
|
|
304
|
+
r.forEach((e) => {
|
|
305
|
+
let t = e.element;
|
|
306
|
+
t.hasAttribute("solo-fluid") && (t.removeAttribute("solo-fluid"), t.toggleAttribute("fluid", e.isFluid), e.isFluid && e.minWidth && t.style.setProperty("--_toolbar-item-min-width", e.minWidth));
|
|
307
|
+
}), i.forEach((e) => {
|
|
308
|
+
let t = e.element;
|
|
309
|
+
t.removeAttribute("solo-fluid"), t.style.removeProperty("min-width");
|
|
310
|
+
}), this._pinnedOverflowItems.length > 0 ? t?.classList.remove("is-hidden") : t?.classList.add("is-hidden"), yield "read";
|
|
311
|
+
let o = this._isCenterOnly(), s = () => e.scrollWidth > e.clientWidth + 1;
|
|
312
|
+
if (!s()) {
|
|
313
|
+
this._overflowIds.size > 0 && (this._overflowIds = /* @__PURE__ */ new Set()), yield* this._promoteSoloFluidSteps(e, r, i, o), this._measureItemWidths(), yield* this._areaSteps();
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
yield "write", t?.classList.remove("is-hidden"), yield "read";
|
|
317
|
+
let c = this._getPrioritizedItems(), l = /* @__PURE__ */ new Set(), u = b(c);
|
|
318
|
+
for (let e of u) {
|
|
319
|
+
if (!s()) break;
|
|
320
|
+
if (e.some((e) => e.isFluid)) {
|
|
321
|
+
let t = new Set(e.map((e) => e.id));
|
|
322
|
+
if (r.filter((e) => {
|
|
323
|
+
let n = e.element;
|
|
324
|
+
return !n.hidden && !n.hasAttribute("fluid") && !n.hasAttribute("solo-fluid") && !t.has(e.id);
|
|
325
|
+
}).length === 0) break;
|
|
326
|
+
}
|
|
327
|
+
let t = e.map((e) => e.element).filter((e) => e.hasAttribute("shrinkable"));
|
|
328
|
+
if (t.length > 0 && (yield "write", t.forEach((e) => e.toggleAttribute("shrunk", !0)), yield "read", !s())) break;
|
|
329
|
+
yield "write";
|
|
330
|
+
for (let t of e) {
|
|
331
|
+
l.add(t.id);
|
|
332
|
+
let e = t.element;
|
|
333
|
+
e.hidden = !0, e.removeAttribute("shrunk");
|
|
334
|
+
}
|
|
335
|
+
yield "read";
|
|
336
|
+
}
|
|
337
|
+
l.size === 0 && this._pinnedOverflowItems.length === 0 && (yield "write", t?.classList.add("is-hidden"), yield "read"), yield* this._promoteSoloFluidSteps(e, r, i, o), (l.size !== this._overflowIds.size || [...l].some((e) => !this._overflowIds.has(e))) && (this._overflowIds = l), this._measureItemWidths(), yield* this._areaSteps();
|
|
338
|
+
}
|
|
339
|
+
_syncShrinkable(e, t) {
|
|
340
|
+
e.toggleAttribute("shrinkable", !!t), t ? (e.style.setProperty("--_toolbar-item-preferred-width", `${t.preferred}px`), e.style.setProperty("--_toolbar-item-shrunk-min-width", `${t.minimum}px`)) : (e.style.removeProperty("--_toolbar-item-preferred-width"), e.style.removeProperty("--_toolbar-item-shrunk-min-width"));
|
|
341
|
+
}
|
|
342
|
+
*_promoteSoloFluidSteps(e, t, n, r) {
|
|
343
|
+
let i = t.filter((e) => e.element.getClientRects().length > 0);
|
|
344
|
+
if (!r && i.length === 1 && i[0].element.hasAttribute("fluid")) {
|
|
345
|
+
yield "write";
|
|
346
|
+
let e = i[0].element;
|
|
347
|
+
e.removeAttribute("fluid"), e.setAttribute("solo-fluid", ""), e.style.removeProperty("--_toolbar-item-min-width"), yield "read";
|
|
348
|
+
}
|
|
349
|
+
let a = n.filter((e) => !e.element.hidden);
|
|
350
|
+
if (i.length === 0 && a.length === 1) {
|
|
351
|
+
yield "write";
|
|
352
|
+
let e = a[0].element;
|
|
353
|
+
e.setAttribute("solo-fluid", ""), e.style.setProperty("min-width", "0px"), yield "read";
|
|
354
|
+
}
|
|
355
|
+
e.scrollWidth > e.clientWidth + 1 && (yield "write", a.forEach((e) => e.element.style.setProperty("min-width", "0px")), yield "read");
|
|
356
|
+
}
|
|
357
|
+
_buildChildrenForSlot(e) {
|
|
358
|
+
return Array.from(this.children).filter((t) => t.getAttribute("slot") === e).map((e) => {
|
|
359
|
+
let t = e.tagName.toLowerCase();
|
|
360
|
+
if (t === "nldd-toolbar-title") return {
|
|
361
|
+
type: "title",
|
|
362
|
+
element: e,
|
|
363
|
+
id: this._getId(e)
|
|
364
|
+
};
|
|
365
|
+
if (t === "nldd-toolbar-item") {
|
|
366
|
+
let t = this._getId(e), n = e.getAttribute("label") ?? "", r = e.priority ?? 0, i = r !== 0, a = e, o = a.minWidth || "", s = a.maxWidth || "", c = a.width || "", l = !!(o || s || c), u = Array.from(e.children).filter((e) => {
|
|
367
|
+
let t = e.tagName.toLowerCase();
|
|
368
|
+
return t === "nldd-menu-item" || t === "nldd-menu-divider" || t === "nldd-menu-group";
|
|
369
|
+
});
|
|
370
|
+
return u.forEach((e) => e.setAttribute("slot", "overflow")), {
|
|
371
|
+
type: "item",
|
|
372
|
+
element: e,
|
|
373
|
+
label: n,
|
|
374
|
+
id: t,
|
|
375
|
+
priority: r,
|
|
376
|
+
hasPriority: i,
|
|
377
|
+
overflowItems: u,
|
|
378
|
+
minWidth: o,
|
|
379
|
+
maxWidth: s,
|
|
380
|
+
width: c,
|
|
381
|
+
isFluid: l
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
return {
|
|
385
|
+
type: "other",
|
|
386
|
+
element: e,
|
|
387
|
+
id: this._getId(e)
|
|
388
|
+
};
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
_buildPinnedOverflowItems() {
|
|
392
|
+
this._pinnedOverflowItems = Array.from(this.children).filter((e) => {
|
|
393
|
+
let t = e.tagName.toLowerCase();
|
|
394
|
+
return e.getAttribute("slot") === "overflow" && (t === "nldd-menu-item" || t === "nldd-menu-divider" || t === "nldd-menu-group");
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
_buildChildren() {
|
|
398
|
+
this._isBuilding || (this._isBuilding = !0, this._observer?.disconnect(), this._startChildren = this._buildChildrenForSlot("start"), this._centerChildren = this._buildChildrenForSlot("center"), this._endChildren = this._buildChildrenForSlot("end"), this._buildPinnedOverflowItems(), this._built = !0, this._prioritizedItemsCache = null, this._syncHosts(), this._observer?.observe(this, {
|
|
399
|
+
childList: !0,
|
|
400
|
+
attributes: !0,
|
|
401
|
+
subtree: !0,
|
|
402
|
+
attributeFilter: [
|
|
403
|
+
"label",
|
|
404
|
+
"priority",
|
|
405
|
+
"min-width",
|
|
406
|
+
"max-width",
|
|
407
|
+
"width",
|
|
408
|
+
"text",
|
|
409
|
+
"disabled",
|
|
410
|
+
"selected",
|
|
411
|
+
"type"
|
|
412
|
+
]
|
|
413
|
+
}), this._watchChildSizes(), this._isBuilding = !1);
|
|
414
|
+
}
|
|
415
|
+
_watchChildSizes() {
|
|
416
|
+
this._sizedChildren.forEach((e) => j(e, this)), this._sizedChildren = new Set(this._hostChildElements()), this._lastChildWidths = /* @__PURE__ */ new WeakMap(), this._sizedChildren.forEach((e) => A(e, this));
|
|
417
|
+
}
|
|
418
|
+
_hostChildElements() {
|
|
419
|
+
return Array.from(this.children).filter((e) => {
|
|
420
|
+
let t = e.tagName.toLowerCase();
|
|
421
|
+
return t === "nldd-toolbar-item" || t === "nldd-toolbar-title";
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
render() {
|
|
425
|
+
let e = this._soloFluid || C(this._allHostChildren().filter((e) => !this._overflowIds.has(e.id)));
|
|
426
|
+
return g(this, this._centerChildren.length > 0, this._leftSpacerZero, this._rightSpacerZero, e, this._pinnedOverflowItems.length > 0 || this._overflowIds.size > 0, this._overflowMenu.open, this.accessibleLabel, this._centerOnly, (e) => this._t(e));
|
|
427
|
+
}
|
|
428
|
+
}, w.styles = c, w);
|
|
429
|
+
r([a({
|
|
430
|
+
reflect: !0,
|
|
431
|
+
converter: s("md")
|
|
432
|
+
})], L.prototype, "size", void 0), r([a({
|
|
433
|
+
type: Boolean,
|
|
434
|
+
reflect: !0,
|
|
435
|
+
attribute: "show-item-labels"
|
|
436
|
+
})], L.prototype, "showItemLabels", void 0), r([a({
|
|
437
|
+
reflect: !0,
|
|
438
|
+
attribute: "accessible-label",
|
|
439
|
+
converter: s("")
|
|
440
|
+
})], L.prototype, "accessibleLabel", void 0), r([a({ type: Object })], L.prototype, "translations", void 0), r([i()], L.prototype, "_startChildren", void 0), r([i()], L.prototype, "_centerChildren", void 0), r([i()], L.prototype, "_endChildren", void 0), r([i()], L.prototype, "_overflowIds", void 0), r([i()], L.prototype, "_leftSpacerZero", void 0), r([i()], L.prototype, "_rightSpacerZero", void 0), r([i()], L.prototype, "_centerOnly", void 0), r([i()], L.prototype, "_soloFluid", void 0), r([i()], L.prototype, "_pinnedOverflowItems", void 0), L = r([o("nldd-toolbar")], L);
|
|
441
|
+
export { L as NLDDToolbar, m as NLDDToolbarItem, h as NLDDToolbarTitle, b as groupForOverflow };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
2
|
-
import { r as i } from "./custom-element-
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-1aEyfetK.js";
|
|
2
|
+
import { r as i } from "./custom-element-D8yf5dqU.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 { t as s } from "./toolbar.styles-
|
|
5
|
+
import { t as s } from "./toolbar.styles-DzreUGTp.js";
|
|
6
6
|
// src/components/actions/toolbar/toolbar-item.template.ts
|
|
7
7
|
function c(e) {
|
|
8
8
|
return t`
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
2
|
-
import { r as i } from "./custom-element-
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-1aEyfetK.js";
|
|
2
|
+
import { r as i } from "./custom-element-D8yf5dqU.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 { r as s } from "./toolbar.styles-
|
|
5
|
+
import { r as s } from "./toolbar.styles-DzreUGTp.js";
|
|
6
6
|
import { t as c } from "./link-rel-DvrTEfVT.js";
|
|
7
7
|
import { n as l } from "./link-hint-KFhgr5Ng.js";
|
|
8
8
|
import { t as u } from "./toolbar.i18n-QwS37CBC.js";
|
|
9
|
-
import { t as d } from "./translations-
|
|
9
|
+
import { t as d } from "./translations-C5JpcNNC.js";
|
|
10
10
|
// src/components/actions/toolbar/toolbar-title.template.ts
|
|
11
11
|
function f(e) {
|
|
12
12
|
let r = t`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as e } from "./custom-element-
|
|
2
|
-
import "./decorate-
|
|
3
|
-
import { t } from "./shadow-resets-
|
|
1
|
+
import { s as e } from "./custom-element-D8yf5dqU.js";
|
|
2
|
+
import "./decorate-1aEyfetK.js";
|
|
3
|
+
import { t } from "./shadow-resets-DgR56wQK.js";
|
|
4
4
|
// src/components/actions/toolbar/toolbar.styles.ts
|
|
5
5
|
var n = e`
|
|
6
6
|
:host {
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { n as a, r as o, s } from "./custom-element-
|
|
2
|
+
import { n as t, o as n, r, t as i } from "./decorate-1aEyfetK.js";
|
|
3
|
+
import { n as a, r as o, s } from "./custom-element-D8yf5dqU.js";
|
|
4
4
|
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
5
5
|
import { a as l, i as u, l as d, n as f, o as p, r as m, s as h } from "./floating-ui.dom-CB34tcZx.js";
|
|
6
6
|
import { t as g } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
-
import { n as _, t as v } from "./shadow-resets-
|
|
8
|
-
import { i as y, n as b, r as x } from "./keyboard-shortcut-
|
|
7
|
+
import { n as _, t as v } from "./shadow-resets-DgR56wQK.js";
|
|
8
|
+
import { i as y, n as b, r as x } from "./keyboard-shortcut-BHylGMNu.js";
|
|
9
9
|
import { t as S } from "./interest-intent-Bk3i_upv.js";
|
|
10
10
|
import { t as C } from "./carried-context-DlMSujiJ.js";
|
|
11
11
|
import { t as w } from "./css-time-DmkAFd1y.js";
|