@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,17 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { i
|
|
3
|
-
import { n as r, o as i, r as a, t as o } from "./decorate-TduJMFD_.js";
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-CJCfz_g6.js";
|
|
2
|
+
import { i, n as a, t as o } from "./custom-element-DsfOrnOD.js";
|
|
4
3
|
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
5
4
|
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as f } from "./
|
|
9
|
-
import { t as p } from "./
|
|
10
|
-
import { t as m } from "./
|
|
11
|
-
import
|
|
12
|
-
import { t as
|
|
5
|
+
import { n as l, t as u } from "./shadow-resets-BeVmf7ky.js";
|
|
6
|
+
import { t as d } from "./class-map-DKd4N9Wz.js";
|
|
7
|
+
import { t as f } from "./if-defined-BirFs11D.js";
|
|
8
|
+
import { t as p } from "./style-map-CNYX1L3t.js";
|
|
9
|
+
import { t as m } from "./image.i18n-ONcm1h7o.js";
|
|
10
|
+
import "./icon-D5dJm51v.js";
|
|
11
|
+
import { t as h } from "./translations-wxBSz213.js";
|
|
12
|
+
import { r as g } from "./element-state-B-44fVqq.js";
|
|
13
13
|
// src/components/content/image/image.styles.ts
|
|
14
|
-
var _ =
|
|
14
|
+
var _ = i`
|
|
15
15
|
:host {
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
}
|
|
@@ -37,13 +37,12 @@ var _ = e`
|
|
|
37
37
|
--_image-empty-icon-color: light-dark(var(--primitives-color-neutral-450), var(--primitives-color-neutral-550));
|
|
38
38
|
--_image-object-fit: cover;
|
|
39
39
|
--_image-object-position: center;
|
|
40
|
-
--_image-max-width: 100%;
|
|
41
40
|
--_image-media-height: var(--context-image-height, auto);
|
|
42
41
|
|
|
43
|
-
${
|
|
42
|
+
${u}
|
|
44
43
|
box-sizing: border-box;
|
|
45
44
|
display: block;
|
|
46
|
-
max-width:
|
|
45
|
+
max-width: 100%;
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
:host([hidden]) {
|
|
@@ -122,7 +121,7 @@ var _ = e`
|
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
::slotted(img) {
|
|
125
|
-
${
|
|
124
|
+
${l}
|
|
126
125
|
display: block !important;
|
|
127
126
|
width: 100% !important;
|
|
128
127
|
height: 100% !important;
|
|
@@ -135,7 +134,7 @@ var _ = e`
|
|
|
135
134
|
same slot. It sizes like <picture>: width and height apply to it, object-fit
|
|
136
135
|
does not, so its own viewBox does the fitting. */
|
|
137
136
|
::slotted(svg) {
|
|
138
|
-
${
|
|
137
|
+
${l}
|
|
139
138
|
display: block !important;
|
|
140
139
|
width: 100% !important;
|
|
141
140
|
height: 100% !important;
|
|
@@ -147,7 +146,7 @@ var _ = e`
|
|
|
147
146
|
Size it so the slotted picture fills the media wrapper, then let the
|
|
148
147
|
consumer style the inner <img> for fit/position. */
|
|
149
148
|
::slotted(picture) {
|
|
150
|
-
${
|
|
149
|
+
${l}
|
|
151
150
|
display: block !important;
|
|
152
151
|
width: 100% !important;
|
|
153
152
|
height: 100% !important;
|
|
@@ -464,62 +463,62 @@ var _ = e`
|
|
|
464
463
|
`;
|
|
465
464
|
// src/components/content/image/image.template.ts
|
|
466
465
|
function v(e) {
|
|
467
|
-
let
|
|
468
|
-
e._cssAspectRatio && (
|
|
469
|
-
|
|
466
|
+
let r = e._parsedLqip, i = r !== null, a = {};
|
|
467
|
+
e._cssAspectRatio && (a.aspectRatio = e._cssAspectRatio), i && (a["--context-lqip-base"] = String(r.base), r.cells.forEach((e, t) => {
|
|
468
|
+
a[`--context-lqip-c${t + 1}`] = String(e);
|
|
470
469
|
}));
|
|
471
|
-
let o = e._isEmpty, s =
|
|
470
|
+
let o = e._isEmpty, s = d({
|
|
472
471
|
image__media: !0,
|
|
473
472
|
"image__media--empty": o,
|
|
474
|
-
"is-loading": !o && !
|
|
475
|
-
"image__media--lqip":
|
|
476
|
-
}), c =
|
|
473
|
+
"is-loading": !o && !i && !e._hasSlottedMedia && !e._imageLoaded && !e._imageErrored,
|
|
474
|
+
"image__media--lqip": i && !e._imageErrored
|
|
475
|
+
}), c = t`
|
|
477
476
|
<img class="image__img"
|
|
478
|
-
src=${e.src ||
|
|
477
|
+
src=${e.src || n}
|
|
479
478
|
alt=${e.decorative ? "" : e.alt}
|
|
480
|
-
aria-hidden=${e.decorative ? "true" :
|
|
481
|
-
srcset=${e.srcset ||
|
|
482
|
-
sizes=${e.sizes ||
|
|
483
|
-
width=${
|
|
484
|
-
height=${
|
|
479
|
+
aria-hidden=${e.decorative ? "true" : n}
|
|
480
|
+
srcset=${e.srcset || n}
|
|
481
|
+
sizes=${e.sizes || n}
|
|
482
|
+
width=${f(e._numericWidth)}
|
|
483
|
+
height=${f(e.height)}
|
|
485
484
|
loading=${e.loading}
|
|
486
485
|
decoding=${e.decoding}
|
|
487
|
-
fetchpriority=${
|
|
486
|
+
fetchpriority=${f(e.fetchPriority)}
|
|
488
487
|
@load=${e._onImageLoad}
|
|
489
488
|
@error=${e._onImageError}
|
|
490
489
|
>
|
|
491
|
-
`, l = e._imageErrored ?
|
|
490
|
+
`, l = e._imageErrored ? t`
|
|
492
491
|
<div class="image__error"
|
|
493
|
-
aria-hidden=${e.decorative ? "true" :
|
|
492
|
+
aria-hidden=${e.decorative ? "true" : n}
|
|
494
493
|
>
|
|
495
494
|
<nldd-icon
|
|
496
495
|
icon="broken-image"
|
|
497
496
|
size="32"
|
|
498
497
|
color="secondary-content"
|
|
499
498
|
></nldd-icon>
|
|
500
|
-
${e.decorative ?
|
|
499
|
+
${e.decorative ? n : t`<span class="image__error-text">${e.alt}</span>`}
|
|
501
500
|
</div>
|
|
502
|
-
` :
|
|
501
|
+
` : n, u = e._t("components.image.error-text"), m = e._imageErrored && !e.decorative ? e.alt ? `${u}: ${e.alt}` : u : "", h = t`<span class="image__status"
|
|
503
502
|
aria-live="polite"
|
|
504
|
-
>${
|
|
503
|
+
>${m}</span>`, g = t`
|
|
505
504
|
<div class=${s}
|
|
506
|
-
style=${
|
|
507
|
-
aria-hidden=${o ? "true" :
|
|
505
|
+
style=${p(a)}
|
|
506
|
+
aria-hidden=${o ? "true" : n}
|
|
508
507
|
>
|
|
509
|
-
<slot @slotchange=${e._onMediaSlotChange}>${o ?
|
|
510
|
-
${o ?
|
|
508
|
+
<slot @slotchange=${e._onMediaSlotChange}>${o ? n : c}</slot>
|
|
509
|
+
${o ? t`<span class="image__empty-icon"><nldd-icon icon="image"></nldd-icon></span>` : n}
|
|
511
510
|
${l}
|
|
512
|
-
${
|
|
511
|
+
${h}
|
|
513
512
|
</div>
|
|
514
513
|
`;
|
|
515
|
-
return e._hasCaption ?
|
|
514
|
+
return e._hasCaption ? t`
|
|
516
515
|
<figure class="image__figure">
|
|
517
516
|
${g}
|
|
518
517
|
<figcaption class="image__caption">
|
|
519
518
|
<slot
|
|
520
519
|
name="caption" @slotchange=${e._onCaptionSlotChange}
|
|
521
520
|
>${e.caption}</slot>
|
|
522
|
-
${e.credit ?
|
|
521
|
+
${e.credit ? t`<span class="image__credit">${e.credit}</span>` : n}
|
|
523
522
|
</figcaption>
|
|
524
523
|
</figure>
|
|
525
524
|
` : g;
|
|
@@ -542,9 +541,9 @@ function b(e) {
|
|
|
542
541
|
function x(e) {
|
|
543
542
|
return !!(e.getAttribute("aria-label")?.trim() || e.getAttribute("aria-labelledby")?.trim());
|
|
544
543
|
}
|
|
545
|
-
var S = (y = class extends
|
|
544
|
+
var S = (y = class extends e {
|
|
546
545
|
constructor(...e) {
|
|
547
|
-
super(...e), this.src = "", this.alt = "", this.srcset = "", this.sizes = "", this.width = "full", this.loading = "lazy", this.decoding = "async", this.aspectRatio = "", this.objectFit = "cover", this.objectPosition = "center", this.shape = "square", this.caption = "", this.credit = "", this.decorative = !1, this.lqip = "", this.translations = {}, this._parsedLqipValue = null, this._hasSlottedCaption = !1, this._imageLoaded = !1, this._imageErrored = !1, this._onMediaSlotChange = () => {
|
|
546
|
+
super(...e), this.src = "", this.alt = "", this.srcset = "", this.sizes = "", this.width = "full", this.loading = "lazy", this.decoding = "async", this.aspectRatio = "", this.objectFit = "cover", this.objectPosition = "center", this.shape = "square", this.caption = "", this.credit = "", this.decorative = !1, this.lqip = "", this.translations = {}, this._parsedLqipValue = null, this._hasSlottedCaption = !1, this._imageLoaded = !1, this._imageErrored = !1, this._ownMaxWidth = "", this._onMediaSlotChange = () => {
|
|
548
547
|
this.requestUpdate(), this._syncAlternative();
|
|
549
548
|
}, this._onImageLoad = () => {
|
|
550
549
|
this._imageLoaded = !0, this._imageErrored = !1;
|
|
@@ -555,7 +554,7 @@ var S = (y = class extends r {
|
|
|
555
554
|
};
|
|
556
555
|
}
|
|
557
556
|
_t(e) {
|
|
558
|
-
return
|
|
557
|
+
return h(this.translations, m, e);
|
|
559
558
|
}
|
|
560
559
|
get _parsedLqip() {
|
|
561
560
|
if (this._parsedLqipKey === this.lqip) return this._parsedLqipValue;
|
|
@@ -579,6 +578,12 @@ var S = (y = class extends r {
|
|
|
579
578
|
let e = Number(this.width);
|
|
580
579
|
if (Number.isFinite(e) && e > 0) return e;
|
|
581
580
|
}
|
|
581
|
+
get _cssWidth() {
|
|
582
|
+
let e = this._numericWidth;
|
|
583
|
+
if (e !== void 0) return `${e}px`;
|
|
584
|
+
let t = String(this.width ?? "").trim();
|
|
585
|
+
if (t && !Number.isFinite(Number(t)) && typeof CSS < "u" && CSS.supports("width", t)) return CSS.supports("max-width", `min(${t}, 100%)`) ? t : void 0;
|
|
586
|
+
}
|
|
582
587
|
get _hasCaption() {
|
|
583
588
|
return !!this.caption || !!this.credit || this._hasSlottedCaption;
|
|
584
589
|
}
|
|
@@ -587,15 +592,15 @@ var S = (y = class extends r {
|
|
|
587
592
|
}
|
|
588
593
|
updated(e) {
|
|
589
594
|
if (e.has("width")) {
|
|
590
|
-
let e = this.
|
|
591
|
-
e === void 0 ? this.style.
|
|
595
|
+
let e = this._cssWidth;
|
|
596
|
+
e === void 0 ? this._ownMaxWidth && this.style.maxWidth === this._ownMaxWidth && (this.style.maxWidth = "") : this.style.maxWidth = `min(${e}, 100%)`, this._ownMaxWidth = e === void 0 ? "" : this.style.maxWidth, g(this, "invalid-width", e === void 0 && this.width !== "full" && this.width !== null && this.width !== void 0 && String(this.width) !== "");
|
|
592
597
|
}
|
|
593
598
|
this._syncAlternative(), this.toggleAttribute("loaded", this._imageLoaded), this.toggleAttribute("errored", this._imageErrored);
|
|
594
599
|
}
|
|
595
600
|
_syncAlternative() {
|
|
596
601
|
if (!import.meta.env?.DEV) return;
|
|
597
602
|
let e = this._slottedMedia(), t = !this.decorative && (e.length > 0 ? !e.every(b) : !!(this.src || this.srcset) && !this.alt.trim());
|
|
598
|
-
|
|
603
|
+
g(this, "slotted-without-alternative", t && e.length > 0), g(this, "no-alt", t && e.length === 0);
|
|
599
604
|
}
|
|
600
605
|
_slottedMedia() {
|
|
601
606
|
return ((this.shadowRoot?.querySelector("slot:not([name])"))?.assignedElements() ?? []).flatMap((e) => e instanceof HTMLSlotElement ? e.assignedElements({ flatten: !0 }) : [e]);
|
|
@@ -619,41 +624,41 @@ var S = (y = class extends r {
|
|
|
619
624
|
return v(this);
|
|
620
625
|
}
|
|
621
626
|
}, y.styles = _, y);
|
|
622
|
-
|
|
627
|
+
r([a({
|
|
623
628
|
reflect: !0,
|
|
624
629
|
converter: c("")
|
|
625
|
-
})], S.prototype, "src", void 0),
|
|
630
|
+
})], S.prototype, "src", void 0), r([a({ type: String })], S.prototype, "alt", void 0), r([a({ type: String })], S.prototype, "srcset", void 0), r([a({ type: String })], S.prototype, "sizes", void 0), r([a({
|
|
626
631
|
reflect: !0,
|
|
627
632
|
converter: c("full")
|
|
628
|
-
})], S.prototype, "width", void 0),
|
|
633
|
+
})], S.prototype, "width", void 0), r([a({
|
|
629
634
|
type: Number,
|
|
630
635
|
reflect: !0
|
|
631
|
-
})], S.prototype, "height", void 0),
|
|
636
|
+
})], S.prototype, "height", void 0), r([a({ type: String })], S.prototype, "loading", void 0), r([a({ type: String })], S.prototype, "decoding", void 0), r([a({
|
|
632
637
|
type: String,
|
|
633
638
|
attribute: "fetchpriority"
|
|
634
|
-
})], S.prototype, "fetchPriority", void 0),
|
|
639
|
+
})], S.prototype, "fetchPriority", void 0), r([a({
|
|
635
640
|
reflect: !0,
|
|
636
641
|
attribute: "aspect-ratio",
|
|
637
642
|
converter: c("")
|
|
638
|
-
})], S.prototype, "aspectRatio", void 0),
|
|
643
|
+
})], S.prototype, "aspectRatio", void 0), r([a({
|
|
639
644
|
reflect: !0,
|
|
640
645
|
attribute: "object-fit",
|
|
641
646
|
converter: c("cover")
|
|
642
|
-
})], S.prototype, "objectFit", void 0),
|
|
647
|
+
})], S.prototype, "objectFit", void 0), r([a({
|
|
643
648
|
reflect: !0,
|
|
644
649
|
attribute: "object-position",
|
|
645
650
|
converter: c("center")
|
|
646
|
-
})], S.prototype, "objectPosition", void 0),
|
|
651
|
+
})], S.prototype, "objectPosition", void 0), r([a({
|
|
647
652
|
reflect: !0,
|
|
648
653
|
converter: c("square")
|
|
649
|
-
})], S.prototype, "shape", void 0),
|
|
654
|
+
})], S.prototype, "shape", void 0), r([a({
|
|
650
655
|
reflect: !0,
|
|
651
656
|
converter: c("")
|
|
652
|
-
})], S.prototype, "caption", void 0),
|
|
657
|
+
})], S.prototype, "caption", void 0), r([a({
|
|
653
658
|
reflect: !0,
|
|
654
659
|
converter: c("")
|
|
655
|
-
})], S.prototype, "credit", void 0),
|
|
660
|
+
})], S.prototype, "credit", void 0), r([a({
|
|
656
661
|
type: Boolean,
|
|
657
662
|
reflect: !0
|
|
658
|
-
})], S.prototype, "decorative", void 0),
|
|
663
|
+
})], S.prototype, "decorative", void 0), r([a({ type: String })], S.prototype, "lqip", void 0), r([a({ type: Object })], S.prototype, "translations", void 0), r([o()], S.prototype, "_hasSlottedCaption", void 0), r([o()], S.prototype, "_imageLoaded", void 0), r([o()], S.prototype, "_imageErrored", void 0), S = r([s("nldd-image")], S);
|
|
659
664
|
export { S as NLDDImage };
|
|
@@ -1,13 +1,14 @@
|
|
|
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 "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import "./
|
|
6
|
+
import { t as u } from "./shadow-resets-BeVmf7ky.js";
|
|
7
|
+
import "./icon-D5dJm51v.js";
|
|
8
|
+
import "./button-group-un5QDbqK.js";
|
|
9
|
+
import "./activity-indicator-BTnpfsIt.js";
|
|
9
10
|
// src/components/status-and-feedback/inline-dialog/inline-dialog.styles.ts
|
|
10
|
-
var d =
|
|
11
|
+
var d = a`
|
|
11
12
|
:host {
|
|
12
13
|
box-sizing: border-box;
|
|
13
14
|
}
|
|
@@ -164,28 +165,28 @@ var d = t`
|
|
|
164
165
|
`;
|
|
165
166
|
// src/components/status-and-feedback/inline-dialog/inline-dialog.template.ts
|
|
166
167
|
function f(e) {
|
|
167
|
-
let t = e._resolvedHorizontalAlignment,
|
|
168
|
-
return
|
|
169
|
-
<div class=${
|
|
168
|
+
let t = e._resolvedHorizontalAlignment, i = ["inline-dialog", t === "left" ? "inline-dialog--left-aligned" : ""].filter(Boolean).join(" ");
|
|
169
|
+
return n`
|
|
170
|
+
<div class=${i}>
|
|
170
171
|
<div class="inline-dialog__main">
|
|
171
|
-
${e.variant === "loading" ?
|
|
172
|
+
${e.variant === "loading" ? n`
|
|
172
173
|
<div class="inline-dialog__icon">
|
|
173
174
|
<nldd-activity-indicator
|
|
174
175
|
size=${e.size === "lg" ? "48" : "40"}
|
|
175
176
|
timing="instant"
|
|
176
177
|
></nldd-activity-indicator>
|
|
177
178
|
</div>
|
|
178
|
-
` : e._resolvedIconName ?
|
|
179
|
+
` : e._resolvedIconName ? n`
|
|
179
180
|
<div class="inline-dialog__icon">
|
|
180
181
|
<nldd-icon icon=${e._resolvedIconName}></nldd-icon>
|
|
181
182
|
</div>
|
|
182
|
-
` :
|
|
183
|
-
${e.text ?
|
|
184
|
-
${e.headingLevel === 1 ?
|
|
185
|
-
` :
|
|
186
|
-
${e.supportingText ?
|
|
183
|
+
` : r}
|
|
184
|
+
${e.text ? n`
|
|
185
|
+
${e.headingLevel === 1 ? n`<h1 class="inline-dialog__text">${e.text}</h1>` : e.headingLevel === 2 ? n`<h2 class="inline-dialog__text">${e.text}</h2>` : e.headingLevel === 3 ? n`<h3 class="inline-dialog__text">${e.text}</h3>` : e.headingLevel === 4 ? n`<h4 class="inline-dialog__text">${e.text}</h4>` : e.headingLevel === 5 ? n`<h5 class="inline-dialog__text">${e.text}</h5>` : e.headingLevel === 6 ? n`<h6 class="inline-dialog__text">${e.text}</h6>` : n`<p class="inline-dialog__text">${e.text}</p>`}
|
|
186
|
+
` : r}
|
|
187
|
+
${e.supportingText ? n`
|
|
187
188
|
<p class="inline-dialog__supporting-text">${e.supportingText}</p>
|
|
188
|
-
` :
|
|
189
|
+
` : r}
|
|
189
190
|
<div class="inline-dialog__content"
|
|
190
191
|
?hidden=${!e._hasContent}
|
|
191
192
|
>
|
|
@@ -203,7 +204,7 @@ function f(e) {
|
|
|
203
204
|
`;
|
|
204
205
|
}
|
|
205
206
|
// src/components/status-and-feedback/inline-dialog/inline-dialog.ts
|
|
206
|
-
var p = /* @__PURE__ */ e({ NLDDInlineDialog: () => h }), m = class extends
|
|
207
|
+
var p = /* @__PURE__ */ e({ NLDDInlineDialog: () => h }), m = class extends t {
|
|
207
208
|
constructor(...e) {
|
|
208
209
|
super(...e), this.variant = "", this.size = "md", this.icon = "", this.iconColor = "", this.text = "", this.supportingText = "", this.headingLevel = null, this.horizontalAlignment = "", this._hasContent = !1, this._hasActions = !1;
|
|
209
210
|
}
|
|
@@ -227,33 +228,33 @@ var p = /* @__PURE__ */ e({ NLDDInlineDialog: () => h }), m = class extends i {
|
|
|
227
228
|
return f(this);
|
|
228
229
|
}
|
|
229
230
|
}, h = (m.styles = d, m);
|
|
230
|
-
|
|
231
|
+
i([o({
|
|
231
232
|
reflect: !0,
|
|
232
233
|
converter: l("")
|
|
233
|
-
})], h.prototype, "variant", void 0),
|
|
234
|
+
})], h.prototype, "variant", void 0), i([o({
|
|
234
235
|
reflect: !0,
|
|
235
236
|
converter: l("md")
|
|
236
|
-
})], h.prototype, "size", void 0),
|
|
237
|
+
})], h.prototype, "size", void 0), i([o({
|
|
237
238
|
reflect: !0,
|
|
238
239
|
converter: l("")
|
|
239
|
-
})], h.prototype, "icon", void 0),
|
|
240
|
+
})], h.prototype, "icon", void 0), i([o({
|
|
240
241
|
reflect: !0,
|
|
241
242
|
attribute: "icon-color",
|
|
242
243
|
converter: l("")
|
|
243
|
-
})], h.prototype, "iconColor", void 0),
|
|
244
|
+
})], h.prototype, "iconColor", void 0), i([o({
|
|
244
245
|
reflect: !0,
|
|
245
246
|
converter: l("")
|
|
246
|
-
})], h.prototype, "text", void 0),
|
|
247
|
+
})], h.prototype, "text", void 0), i([o({
|
|
247
248
|
reflect: !0,
|
|
248
249
|
attribute: "supporting-text",
|
|
249
250
|
converter: l("")
|
|
250
|
-
})], h.prototype, "supportingText", void 0),
|
|
251
|
+
})], h.prototype, "supportingText", void 0), i([o({
|
|
251
252
|
type: Number,
|
|
252
253
|
reflect: !0,
|
|
253
254
|
attribute: "heading-level"
|
|
254
|
-
})], h.prototype, "headingLevel", void 0),
|
|
255
|
+
})], h.prototype, "headingLevel", void 0), i([o({
|
|
255
256
|
reflect: !0,
|
|
256
257
|
attribute: "horizontal-alignment",
|
|
257
258
|
converter: l("")
|
|
258
|
-
})], h.prototype, "horizontalAlignment", void 0),
|
|
259
|
+
})], h.prototype, "horizontalAlignment", void 0), i([s()], h.prototype, "_hasContent", void 0), i([s()], h.prototype, "_hasActions", void 0), h = i([c("nldd-inline-dialog")], h);
|
|
259
260
|
export { p as t };
|
package/dist/cdn/chunks/{just-in-time-education-DRcb5g7x.js → just-in-time-education-Nw5ido3N.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-CJCfz_g6.js";
|
|
2
|
+
import { i, n as a } from "./custom-element-DsfOrnOD.js";
|
|
3
3
|
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import { n as m } from "./input-modality-XE0B7yCn.js";
|
|
4
|
+
import { a as s, i as c, n as l, t as u } from "./floating-ui.dom-B8J1rV2c.js";
|
|
5
|
+
import { t as d } from "./with-translations-DdCPcavT.js";
|
|
6
|
+
import { t as f } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
+
import { n as p } from "./input-modality-XE0B7yCn.js";
|
|
8
|
+
import { t as m } from "./shadow-resets-BeVmf7ky.js";
|
|
10
9
|
import { t as h } from "./just-in-time-education.i18n-CW_dsaxf.js";
|
|
10
|
+
import "./icon-button-DtxIRaQy.js";
|
|
11
11
|
// src/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.ts
|
|
12
|
-
var g =
|
|
12
|
+
var g = i`
|
|
13
13
|
:host {
|
|
14
14
|
box-sizing: border-box;
|
|
15
15
|
}
|
|
@@ -43,7 +43,7 @@ var g = e`
|
|
|
43
43
|
--_just-in-time-education-supporting-text-font: var(--primitives-font-body-md-regular-tight);
|
|
44
44
|
--_just-in-time-education-arrow-color: var(--semantics-content-color);
|
|
45
45
|
|
|
46
|
-
${
|
|
46
|
+
${m}
|
|
47
47
|
display: contents;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -339,7 +339,7 @@ var g = e`
|
|
|
339
339
|
`;
|
|
340
340
|
// src/components/status-and-feedback/just-in-time-education/just-in-time-education.template.ts
|
|
341
341
|
function _(e) {
|
|
342
|
-
return
|
|
342
|
+
return t`
|
|
343
343
|
<slot
|
|
344
344
|
@slotchange=${e._handleSlotChange}
|
|
345
345
|
@focusin=${e._handleAdvisedInteraction}
|
|
@@ -352,24 +352,24 @@ function _(e) {
|
|
|
352
352
|
<div class="just-in-time-education"
|
|
353
353
|
popover="manual"
|
|
354
354
|
role=${e.dismissable ? "dialog" : "region"}
|
|
355
|
-
tabindex=${e.dismissable ? "-1" :
|
|
355
|
+
tabindex=${e.dismissable ? "-1" : n}
|
|
356
356
|
aria-label=${e.text || e._t("components.just-in-time-education.accessible-label")}
|
|
357
357
|
@keydown=${e._handleCalloutKeydown}
|
|
358
358
|
>
|
|
359
359
|
<div class="just-in-time-education__main">
|
|
360
360
|
<div class="just-in-time-education__text-area">
|
|
361
|
-
${e.text ?
|
|
361
|
+
${e.text ? t`
|
|
362
362
|
<p class="just-in-time-education__text">
|
|
363
363
|
${e.text}
|
|
364
364
|
</p>
|
|
365
|
-
` :
|
|
366
|
-
${e.supportingText ?
|
|
365
|
+
` : n}
|
|
366
|
+
${e.supportingText ? t`
|
|
367
367
|
<p class="just-in-time-education__supporting-text">
|
|
368
368
|
${e.supportingText}
|
|
369
369
|
</p>
|
|
370
|
-
` :
|
|
370
|
+
` : n}
|
|
371
371
|
</div>
|
|
372
|
-
${e.dismissable ?
|
|
372
|
+
${e.dismissable ? t`
|
|
373
373
|
<div class="just-in-time-education__dismiss-button">
|
|
374
374
|
<nldd-icon-button
|
|
375
375
|
icon="dismiss"
|
|
@@ -379,9 +379,9 @@ function _(e) {
|
|
|
379
379
|
@click=${e._handleDismiss}
|
|
380
380
|
></nldd-icon-button>
|
|
381
381
|
</div>
|
|
382
|
-
` :
|
|
382
|
+
` : n}
|
|
383
383
|
</div>
|
|
384
|
-
${e.noArrow ?
|
|
384
|
+
${e.noArrow ? n : t`
|
|
385
385
|
<svg class="just-in-time-education__arrow"
|
|
386
386
|
aria-hidden="true"
|
|
387
387
|
>
|
|
@@ -409,7 +409,7 @@ function _(e) {
|
|
|
409
409
|
`;
|
|
410
410
|
}
|
|
411
411
|
// src/components/status-and-feedback/just-in-time-education/just-in-time-education.ts
|
|
412
|
-
var v, y, b = 0, x = (v = class extends
|
|
412
|
+
var v, y, b = 0, x = (v = class extends d(e, h) {
|
|
413
413
|
constructor(...e) {
|
|
414
414
|
super(...e), this.active = !1, this.text = "", this.supportingText = "", this.placement = "auto", this.dismissable = !1, this.arrowLength = "", this.noArrow = !1, this._cleanupAutoUpdate = null, this._attachTimeout = null, this._revealTimeout = null, this._attributeObserver = null, this._boundDocumentInteraction = (e) => this._handleDocumentInteraction(e), this._resolvedSide = null, this._lastViewportWidth = 0, this._lastViewportHeight = 0, this._arrowMarkerId = `nldd-jite-arrow-${++b}`;
|
|
415
415
|
}
|
|
@@ -451,7 +451,7 @@ var v, y, b = 0, x = (v = class extends l(n, h) {
|
|
|
451
451
|
this._revealTimeout = null, this.active && e.setAttribute("positioned", "");
|
|
452
452
|
}, 200)) : e.setAttribute("positioned", "");
|
|
453
453
|
let t = this._announcerEl;
|
|
454
|
-
t && (t.textContent = [this.text, this.supportingText].filter(Boolean).join(". ")), this.dismissable && (e.classList.toggle("is-pointer-focus",
|
|
454
|
+
t && (t.textContent = [this.text, this.supportingText].filter(Boolean).join(". ")), this.dismissable && (e.classList.toggle("is-pointer-focus", p()), e.focus(), this._attachTimeout && clearTimeout(this._attachTimeout), this._attachTimeout = setTimeout(() => {
|
|
455
455
|
this._attachTimeout = null, this.active && (document.addEventListener("click", this._boundDocumentInteraction, !0), document.addEventListener("keydown", this._boundDocumentInteraction, !0));
|
|
456
456
|
}, 0));
|
|
457
457
|
}
|
|
@@ -463,7 +463,7 @@ var v, y, b = 0, x = (v = class extends l(n, h) {
|
|
|
463
463
|
}
|
|
464
464
|
_startPositioning() {
|
|
465
465
|
let e = this._getControl(), t = this._containerEl;
|
|
466
|
-
e && t && (this._stopPositioning(), this._cleanupAutoUpdate =
|
|
466
|
+
e && t && (this._stopPositioning(), this._cleanupAutoUpdate = u(e, t, () => this._updatePosition(e, t)));
|
|
467
467
|
}
|
|
468
468
|
_stopPositioning() {
|
|
469
469
|
this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = null, this._resolvedSide = null;
|
|
@@ -471,22 +471,22 @@ var v, y, b = 0, x = (v = class extends l(n, h) {
|
|
|
471
471
|
async _updatePosition(e, t) {
|
|
472
472
|
let n = getComputedStyle(this), r = parseInt(n.getPropertyValue("--_just-in-time-education-offset"), 10), i = parseInt(n.getPropertyValue("--_just-in-time-education-shift-padding"), 10), a = window.innerWidth, o = window.innerHeight;
|
|
473
473
|
(this._resolvedSide === null || a !== this._lastViewportWidth || o !== this._lastViewportHeight) && (this._resolvedSide = this._chooseSide(e), this._lastViewportWidth = a, this._lastViewportHeight = o);
|
|
474
|
-
let
|
|
475
|
-
this.getAttribute("data-arrow-side") !==
|
|
476
|
-
let
|
|
477
|
-
|
|
478
|
-
let m =
|
|
474
|
+
let u = this._resolvedSide;
|
|
475
|
+
this.getAttribute("data-arrow-side") !== u && this.setAttribute("data-arrow-side", u);
|
|
476
|
+
let d = this._cardEl?.getBoundingClientRect().height ?? 0, f = e.getBoundingClientRect(), p = "9999px";
|
|
477
|
+
u === "top" ? p = `${Math.max(0, f.top + window.scrollY - d)}px` : u === "bottom" ? p = `${Math.max(0, document.documentElement.scrollHeight - (f.bottom + window.scrollY) - d)}px` : u === "left" ? p = `${Math.max(0, f.left)}px` : u === "right" && (p = `${Math.max(0, window.innerWidth - f.right)}px`), this.style.setProperty("--_just-in-time-education-available-distance", p);
|
|
478
|
+
let m = u === "top" || u === "bottom", h = parseFloat(n.getPropertyValue("--primitives-space-40")) || 40, g = parseFloat(p);
|
|
479
479
|
if (!m) {
|
|
480
480
|
let e = (parseFloat(n.getPropertyValue("--_just-in-time-education-text-width")) || 320) + (this.dismissable ? parseFloat(n.getPropertyValue("--_just-in-time-education-dismiss-width")) || 44 : 0);
|
|
481
481
|
g -= e;
|
|
482
482
|
}
|
|
483
483
|
let _ = !this.noArrow && g < h;
|
|
484
484
|
this.toggleAttribute("data-arrow-collapsed", _);
|
|
485
|
-
let { x: v, y } = await
|
|
486
|
-
placement:
|
|
487
|
-
middleware: m ? [
|
|
485
|
+
let { x: v, y } = await l(e, t, {
|
|
486
|
+
placement: u,
|
|
487
|
+
middleware: m ? [c(r), s({ padding: i })] : [c(r)]
|
|
488
488
|
});
|
|
489
|
-
t.style.left = `${v}px`, t.style.top = `${y}px`, this._revealTimeout && (clearTimeout(this._revealTimeout), this._revealTimeout = null), t.setAttribute("positioned", ""), this._updateArrow(e, t,
|
|
489
|
+
t.style.left = `${v}px`, t.style.top = `${y}px`, this._revealTimeout && (clearTimeout(this._revealTimeout), this._revealTimeout = null), t.setAttribute("positioned", ""), this._updateArrow(e, t, u);
|
|
490
490
|
}
|
|
491
491
|
_chooseSide(e) {
|
|
492
492
|
if (this.placement !== "auto") return this.placement;
|
|
@@ -548,11 +548,7 @@ var v, y, b = 0, x = (v = class extends l(n, h) {
|
|
|
548
548
|
this.active && this._close("completed");
|
|
549
549
|
}
|
|
550
550
|
_close(e) {
|
|
551
|
-
this.active = !1, this.dispatchEvent(new CustomEvent("
|
|
552
|
-
detail: { reason: e },
|
|
553
|
-
bubbles: !0,
|
|
554
|
-
composed: !0
|
|
555
|
-
}));
|
|
551
|
+
this.active = !1, this.dispatchEvent(new CustomEvent("close", { detail: { reason: e } }));
|
|
556
552
|
}
|
|
557
553
|
connectedCallback() {
|
|
558
554
|
super.connectedCallback(), this._attributeObserver || (this._attributeObserver = new MutationObserver((e) => {
|
|
@@ -583,29 +579,29 @@ var v, y, b = 0, x = (v = class extends l(n, h) {
|
|
|
583
579
|
"slot",
|
|
584
580
|
"hidden"
|
|
585
581
|
]), v);
|
|
586
|
-
|
|
582
|
+
r([a({
|
|
587
583
|
type: Boolean,
|
|
588
584
|
reflect: !0
|
|
589
|
-
})], x.prototype, "active", void 0),
|
|
585
|
+
})], x.prototype, "active", void 0), r([a({
|
|
590
586
|
reflect: !0,
|
|
591
|
-
converter:
|
|
592
|
-
})], x.prototype, "text", void 0),
|
|
587
|
+
converter: f("")
|
|
588
|
+
})], x.prototype, "text", void 0), r([a({
|
|
593
589
|
reflect: !0,
|
|
594
590
|
attribute: "supporting-text",
|
|
595
|
-
converter:
|
|
596
|
-
})], x.prototype, "supportingText", void 0),
|
|
591
|
+
converter: f("")
|
|
592
|
+
})], x.prototype, "supportingText", void 0), r([a({
|
|
597
593
|
reflect: !0,
|
|
598
|
-
converter:
|
|
599
|
-
})], x.prototype, "placement", void 0),
|
|
594
|
+
converter: f("auto")
|
|
595
|
+
})], x.prototype, "placement", void 0), r([a({
|
|
600
596
|
type: Boolean,
|
|
601
597
|
reflect: !0
|
|
602
|
-
})], x.prototype, "dismissable", void 0),
|
|
598
|
+
})], x.prototype, "dismissable", void 0), r([a({
|
|
603
599
|
reflect: !0,
|
|
604
600
|
attribute: "arrow-length",
|
|
605
|
-
converter:
|
|
606
|
-
})], x.prototype, "arrowLength", void 0),
|
|
601
|
+
converter: f("")
|
|
602
|
+
})], x.prototype, "arrowLength", void 0), r([a({
|
|
607
603
|
type: Boolean,
|
|
608
604
|
reflect: !0,
|
|
609
605
|
attribute: "no-arrow"
|
|
610
|
-
})], x.prototype, "noArrow", void 0), x = y =
|
|
606
|
+
})], x.prototype, "noArrow", void 0), x = y = r([o("nldd-just-in-time-education")], x);
|
|
611
607
|
export { x as NLDDJustInTimeEducation };
|