@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,23 +1,23 @@
|
|
|
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 "./query-ChDzi9FQ.js";
|
|
6
|
-
import { t as l } from "./
|
|
7
|
-
import { t as u } from "./
|
|
8
|
-
import "./
|
|
9
|
-
import { t as
|
|
10
|
-
import "./
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
5
|
+
import { t as l } from "./form-associated-mixin-BtStDDYA.js";
|
|
6
|
+
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
+
import { t as d } from "./shadow-resets-BeVmf7ky.js";
|
|
8
|
+
import { t as f } from "./class-map-DKd4N9Wz.js";
|
|
9
|
+
import "./button-XtEOeBEq.js";
|
|
10
|
+
import "./icon-button-DtxIRaQy.js";
|
|
11
|
+
import "./icon-D5dJm51v.js";
|
|
12
|
+
import "./tooltip-B6XDYQNn.js";
|
|
13
|
+
import "./menu-uOExHS1i.js";
|
|
14
|
+
import "./activity-indicator-BTnpfsIt.js";
|
|
15
|
+
import { t as p } from "./file-field.i18n-pDM7Utud.js";
|
|
16
|
+
import { t as m } from "./described-by-mixin-CPultP0p.js";
|
|
17
|
+
import { t as h } from "./translations-wxBSz213.js";
|
|
18
|
+
import { t as g } from "./defer-focus-F73ud2D9.js";
|
|
19
19
|
// src/components/inputs/file-field/file-field.styles.ts
|
|
20
|
-
var ee =
|
|
20
|
+
var ee = i`
|
|
21
21
|
:host {
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
}
|
|
@@ -66,7 +66,7 @@ var ee = e`
|
|
|
66
66
|
--_file-field-accepted-types-color: var(--semantics-content-secondary-color);
|
|
67
67
|
--_file-field-accepted-types-font: var(--primitives-font-body-sm-regular-tight);
|
|
68
68
|
|
|
69
|
-
${
|
|
69
|
+
${d}
|
|
70
70
|
display: block;
|
|
71
71
|
width: var(--_file-field-width);
|
|
72
72
|
max-width: 100%;
|
|
@@ -685,7 +685,7 @@ function ie(e) {
|
|
|
685
685
|
return e._folderName() ? "folder" : t.length > 1 ? "file-on-file" : re[v(t[0].name)[1].slice(1).toLowerCase()] ?? "file";
|
|
686
686
|
}
|
|
687
687
|
function w(e) {
|
|
688
|
-
return !e.invalid && !e.valid ?
|
|
688
|
+
return !e.invalid && !e.valid ? n : t`
|
|
689
689
|
<div class="file-field__validation-icon-area">
|
|
690
690
|
<nldd-icon class="file-field__validation-icon"
|
|
691
691
|
icon=${e.invalid ? "invalid" : "valid"}
|
|
@@ -694,9 +694,9 @@ function w(e) {
|
|
|
694
694
|
</div>
|
|
695
695
|
`;
|
|
696
696
|
}
|
|
697
|
-
function T(e,
|
|
698
|
-
return
|
|
699
|
-
<span class="file-field__${e}">${
|
|
697
|
+
function T(e, n) {
|
|
698
|
+
return t`
|
|
699
|
+
<span class="file-field__${e}">${n.map((e) => t`
|
|
700
700
|
<span class=${f({
|
|
701
701
|
[`file-field__${e.kind}-text`]: !0,
|
|
702
702
|
"is-active": e.active
|
|
@@ -722,21 +722,21 @@ function E(e, t, n) {
|
|
|
722
722
|
}
|
|
723
723
|
function D(e) {
|
|
724
724
|
if (e.variant === "area") return [];
|
|
725
|
-
let
|
|
725
|
+
let n = (t) => e._t(`components.file-field.${t}`), r = (e, r) => t`<span class="file-field__choose-text">${n(e)}</span> <span class="file-field__drop-hint-text">${n(r)}</span>`;
|
|
726
726
|
return [
|
|
727
|
-
[
|
|
728
|
-
[
|
|
729
|
-
...e.directory ? [[
|
|
727
|
+
[r("to-choose-file-action", "drop-hint-lowercase-text"), "idle"],
|
|
728
|
+
[r("to-choose-files-action", "drop-hint-multiple-lowercase-text"), "idle"],
|
|
729
|
+
...e.directory ? [[r("to-choose-files-or-folder-action", "drop-hint-multiple-lowercase-text"), "idle"]] : [],
|
|
730
730
|
...[
|
|
731
731
|
"drag-here-text",
|
|
732
732
|
"drag-here-multiple-text",
|
|
733
733
|
"replace-drag-text"
|
|
734
|
-
].map((e) => [
|
|
734
|
+
].map((e) => [n(e), "drag"]),
|
|
735
735
|
...[
|
|
736
736
|
"drop-here-text",
|
|
737
737
|
"drop-here-multiple-text",
|
|
738
738
|
"replace-drop-text"
|
|
739
|
-
].map((e) => [
|
|
739
|
+
].map((e) => [n(e), "drop"]),
|
|
740
740
|
...[
|
|
741
741
|
"type",
|
|
742
742
|
"count",
|
|
@@ -744,7 +744,7 @@ function D(e) {
|
|
|
744
744
|
"empty-folder",
|
|
745
745
|
"unreadable-folder"
|
|
746
746
|
].map((t) => [e._rejectionText(t), "rejected"]),
|
|
747
|
-
[
|
|
747
|
+
[n("wrong-file-type-error-text"), "rejected"]
|
|
748
748
|
].map(([e, t]) => ({
|
|
749
749
|
content: e,
|
|
750
750
|
kind: t,
|
|
@@ -767,15 +767,15 @@ function O(e, t) {
|
|
|
767
767
|
}));
|
|
768
768
|
}
|
|
769
769
|
function k(e) {
|
|
770
|
-
let
|
|
771
|
-
return
|
|
770
|
+
let n = e.variant === "area", r = e.size === "sm";
|
|
771
|
+
return t`<nldd-activity-indicator class="file-field__reading-indicator"
|
|
772
772
|
timing="instant"
|
|
773
|
-
size=${
|
|
774
|
-
?show-text=${
|
|
773
|
+
size=${n ? r ? "24" : "32" : r ? "20" : "24"}
|
|
774
|
+
?show-text=${n}
|
|
775
775
|
></nldd-activity-indicator>`;
|
|
776
776
|
}
|
|
777
777
|
function A(e) {
|
|
778
|
-
return
|
|
778
|
+
return t`
|
|
779
779
|
<nldd-menu-item
|
|
780
780
|
icon="files"
|
|
781
781
|
text=${e._t("components.file-field.to-choose-files-menu-action")}
|
|
@@ -788,31 +788,31 @@ function A(e) {
|
|
|
788
788
|
></nldd-menu-item>
|
|
789
789
|
`;
|
|
790
790
|
}
|
|
791
|
-
function j(e,
|
|
792
|
-
return
|
|
791
|
+
function j(e, r) {
|
|
792
|
+
return t`
|
|
793
793
|
<nldd-button class="file-field__change-button"
|
|
794
794
|
appearance="neutral-tinted"
|
|
795
|
-
size=${
|
|
795
|
+
size=${r}
|
|
796
796
|
text=${e._t("components.file-field.to-change-action")}
|
|
797
|
-
popup-type=${e.directory ? "menu" :
|
|
797
|
+
popup-type=${e.directory ? "menu" : n}
|
|
798
798
|
?expandable=${e.directory}
|
|
799
799
|
?expanded=${e._menuOpen}
|
|
800
|
-
accessible-label=${e._changeAccessibleLabel() ||
|
|
800
|
+
accessible-label=${e._changeAccessibleLabel() || n}
|
|
801
801
|
?disabled=${e.disabled}
|
|
802
802
|
@click=${(t) => e._handleChoose(t)}
|
|
803
803
|
></nldd-button>
|
|
804
804
|
`;
|
|
805
805
|
}
|
|
806
806
|
function ae(e) {
|
|
807
|
-
let
|
|
808
|
-
return
|
|
807
|
+
let n = (t) => [t, e.accessibleLabel].filter(Boolean).join(", "), r = e._t("components.file-field.to-choose-files-action"), i = e._t("components.file-field.to-choose-folder-action");
|
|
808
|
+
return t`
|
|
809
809
|
<div class="file-field__choose-button-group">
|
|
810
810
|
<nldd-button
|
|
811
811
|
appearance="neutral-tinted"
|
|
812
812
|
size=${e.size}
|
|
813
813
|
start-icon="files"
|
|
814
|
-
text=${
|
|
815
|
-
accessible-label=${
|
|
814
|
+
text=${r}
|
|
815
|
+
accessible-label=${n(r)}
|
|
816
816
|
?disabled=${e.disabled}
|
|
817
817
|
@click=${e._chooseFiles}
|
|
818
818
|
></nldd-button>
|
|
@@ -820,8 +820,8 @@ function ae(e) {
|
|
|
820
820
|
appearance="neutral-tinted"
|
|
821
821
|
size=${e.size}
|
|
822
822
|
start-icon="folder"
|
|
823
|
-
text=${
|
|
824
|
-
accessible-label=${
|
|
823
|
+
text=${i}
|
|
824
|
+
accessible-label=${n(i)}
|
|
825
825
|
?disabled=${e.disabled}
|
|
826
826
|
@click=${e._chooseFolder}
|
|
827
827
|
></nldd-button>
|
|
@@ -829,72 +829,72 @@ function ae(e) {
|
|
|
829
829
|
`;
|
|
830
830
|
}
|
|
831
831
|
function oe(e) {
|
|
832
|
-
let
|
|
832
|
+
let r = E(e, e._multiple ? e._t("components.file-field.drag-here-multiple-text") : e._t("components.file-field.drag-here-text"), e._multiple ? e._t("components.file-field.drop-here-multiple-text") : e._t("components.file-field.drop-here-text")), i = e.variant === "area", a = i && e.directory, o = t`<span class="file-field__drop-hint-text">${e._multiple ? e._t("components.file-field.drop-hint-multiple-lowercase-text") : e._t("components.file-field.drop-hint-lowercase-text")}</span>`, s = a ? o : t`<span class="file-field__choose-text">${e._chooseLabel()}</span> ${o}`, c = i && e._refused, l = i && !c ? e._acceptTypes() : null, u = r.some((e) => e.active), d = e._reading && !u, f = T("text", [
|
|
833
833
|
{
|
|
834
834
|
content: s,
|
|
835
835
|
kind: "idle",
|
|
836
836
|
active: !d && !u
|
|
837
837
|
},
|
|
838
|
-
...
|
|
839
|
-
...
|
|
838
|
+
...r,
|
|
839
|
+
...i ? [] : [{
|
|
840
840
|
content: d ? k(e) : "",
|
|
841
841
|
kind: "reading",
|
|
842
842
|
active: d
|
|
843
843
|
}],
|
|
844
844
|
...D(e)
|
|
845
|
-
]), p =
|
|
846
|
-
return
|
|
845
|
+
]), p = t`<nldd-icon class="file-field__upload-icon" icon="upload-to-cloud" aria-hidden="true"></nldd-icon>`, m = a && !c ? ae(e) : n, h = l ? t`<span class="file-field__accepted-types">${e._t("components.file-field.accepted-types-text", { types: l })}</span>` : n, g = i && d ? t`${k(e)}${w(e)}` : t`${p}${m}${f}${h}${w(e)}`;
|
|
846
|
+
return a ? t`<div class="file-field__drop-area" ?inert=${e._refused}>${g}</div>` : t`
|
|
847
847
|
<button class="file-field__choose-button"
|
|
848
848
|
type="button"
|
|
849
849
|
?inert=${e._refused}
|
|
850
850
|
aria-label=${e._chooseAccessibleLabel()}
|
|
851
|
-
aria-haspopup=${e.directory ? "menu" :
|
|
852
|
-
aria-expanded=${e.directory ? String(e._menuOpen) :
|
|
851
|
+
aria-haspopup=${e.directory ? "menu" : n}
|
|
852
|
+
aria-expanded=${e.directory ? String(e._menuOpen) : n}
|
|
853
853
|
?disabled=${e.disabled}
|
|
854
854
|
@click=${(t) => e._handleChoose(t)}
|
|
855
855
|
>${g}</button>
|
|
856
856
|
`;
|
|
857
857
|
}
|
|
858
|
-
function se(e,
|
|
859
|
-
let [
|
|
860
|
-
return
|
|
861
|
-
<nldd-tooltip text=${
|
|
858
|
+
function se(e, r) {
|
|
859
|
+
let [i, a] = b(r), o = e._fittedName === null ? t`<span class="file-field__name-start">${i}</span>${a ? t`<span class="file-field__name-end">${a}</span>` : n}` : t`<span class="file-field__name-start">${e._fittedName}</span>`;
|
|
860
|
+
return t`
|
|
861
|
+
<nldd-tooltip text=${r} timing=${e._nameTruncated ? "delay" : "never"}>
|
|
862
862
|
<span class=${f({
|
|
863
863
|
"file-field__name": !0,
|
|
864
864
|
"is-wrapped": e._nameLines > 1
|
|
865
865
|
})} aria-hidden="true">${o}</span>
|
|
866
866
|
</nldd-tooltip>
|
|
867
|
-
<span class="file-field__full-name">${
|
|
867
|
+
<span class="file-field__full-name">${r}</span>
|
|
868
868
|
`;
|
|
869
869
|
}
|
|
870
|
-
function ce(e,
|
|
871
|
-
let
|
|
872
|
-
folder:
|
|
870
|
+
function ce(e, r) {
|
|
871
|
+
let i = e._valueLabel(), a = e._t("components.file-field.folder-count-short-text", {
|
|
872
|
+
folder: r,
|
|
873
873
|
count: e.files.length
|
|
874
|
-
}), o = e._nameLines > 1, s = (
|
|
875
|
-
let s =
|
|
874
|
+
}), o = e._nameLines > 1, s = (i, a) => {
|
|
875
|
+
let s = i.indexOf(r);
|
|
876
876
|
if (o) {
|
|
877
|
-
let
|
|
878
|
-
return
|
|
877
|
+
let n = s < 0 ? i : i.slice(0, s) + (e._fittedFolder ?? r) + i.slice(s + r.length);
|
|
878
|
+
return t`<span class="file-field__folder file-field__folder--${a} is-wrapped" aria-hidden="true">${n}</span>`;
|
|
879
879
|
}
|
|
880
880
|
let [c, l, u] = s < 0 ? [
|
|
881
881
|
"",
|
|
882
|
-
|
|
882
|
+
i,
|
|
883
883
|
""
|
|
884
884
|
] : [
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
885
|
+
i.slice(0, s),
|
|
886
|
+
r,
|
|
887
|
+
i.slice(s + r.length)
|
|
888
888
|
];
|
|
889
|
-
return
|
|
889
|
+
return t`<span class="file-field__folder file-field__folder--${a}" aria-hidden="true">${c ? t`<span class="file-field__folder-rest">${c}</span>` : n}<span class="file-field__folder-name">${l}</span>${u ? t`<span class="file-field__folder-rest">${u}</span>` : n}</span>`;
|
|
890
890
|
};
|
|
891
|
-
return
|
|
891
|
+
return t`${s(i, "full")}${s(a, "short")}<span class="file-field__full-name">${i}</span>`;
|
|
892
892
|
}
|
|
893
|
-
function le(e,
|
|
894
|
-
return
|
|
893
|
+
function le(e, n) {
|
|
894
|
+
return t`
|
|
895
895
|
<nldd-icon-button class="file-field__more-button"
|
|
896
896
|
appearance="neutral-tinted"
|
|
897
|
-
size=${
|
|
897
|
+
size=${n}
|
|
898
898
|
icon="more"
|
|
899
899
|
text=${e._t("components.file-field.show-options-action")}
|
|
900
900
|
tooltip-timing="never"
|
|
@@ -902,7 +902,7 @@ function le(e, t) {
|
|
|
902
902
|
?disabled=${e.disabled}
|
|
903
903
|
>
|
|
904
904
|
<nldd-menu slot="popup">
|
|
905
|
-
${e.directory ? A(e) :
|
|
905
|
+
${e.directory ? A(e) : t`
|
|
906
906
|
<nldd-menu-item
|
|
907
907
|
icon="edit"
|
|
908
908
|
text=${e._t("components.file-field.to-change-action")}
|
|
@@ -921,11 +921,11 @@ function le(e, t) {
|
|
|
921
921
|
`;
|
|
922
922
|
}
|
|
923
923
|
function ue(e) {
|
|
924
|
-
let
|
|
924
|
+
let n = e.files, r = e.variant === "area", i = e.size === "sm" ? "xs" : "sm", a = e._drag !== "none" || e._rejection !== null, o = E(e, e._t("components.file-field.replace-drag-text"), e._t("components.file-field.replace-drop-text")).map((e) => ({
|
|
925
925
|
...e,
|
|
926
926
|
active: e.active && a
|
|
927
|
-
})), s = e._folderName(), c = s ? ce(e, s) :
|
|
928
|
-
return
|
|
927
|
+
})), s = e._folderName(), c = s ? ce(e, s) : n.length === 1 ? se(e, n[0].name) : e._valueLabel();
|
|
928
|
+
return t`
|
|
929
929
|
<div class="file-field__chosen-area" ?inert=${e._refused}>
|
|
930
930
|
<div class=${f({
|
|
931
931
|
"file-field__chosen-file": !0,
|
|
@@ -937,7 +937,7 @@ function ue(e) {
|
|
|
937
937
|
kind: "idle",
|
|
938
938
|
active: !0
|
|
939
939
|
}])}
|
|
940
|
-
${
|
|
940
|
+
${r ? t`
|
|
941
941
|
<div class="file-field__edit-button-group">
|
|
942
942
|
${j(e, e.size)}
|
|
943
943
|
<nldd-button
|
|
@@ -949,12 +949,12 @@ function ue(e) {
|
|
|
949
949
|
@click=${e._handleClear}
|
|
950
950
|
></nldd-button>
|
|
951
951
|
</div>
|
|
952
|
-
` :
|
|
952
|
+
` : t`
|
|
953
953
|
<div class="file-field__edit-button-group">
|
|
954
|
-
${j(e,
|
|
954
|
+
${j(e, i)}
|
|
955
955
|
<nldd-icon-button class="file-field__clear-button"
|
|
956
956
|
appearance="neutral-transparent"
|
|
957
|
-
size=${
|
|
957
|
+
size=${i}
|
|
958
958
|
icon="dismiss"
|
|
959
959
|
text=${e._t("components.file-field.clear-action")}
|
|
960
960
|
accessible-label=${e._clearAccessibleLabel()}
|
|
@@ -962,7 +962,7 @@ function ue(e) {
|
|
|
962
962
|
?disabled=${e.disabled}
|
|
963
963
|
@click=${e._handleClear}
|
|
964
964
|
></nldd-icon-button>
|
|
965
|
-
${le(e,
|
|
965
|
+
${le(e, i)}
|
|
966
966
|
</div>
|
|
967
967
|
`}
|
|
968
968
|
${w(e)}
|
|
@@ -979,26 +979,26 @@ function ue(e) {
|
|
|
979
979
|
`;
|
|
980
980
|
}
|
|
981
981
|
function de(e) {
|
|
982
|
-
let
|
|
983
|
-
return
|
|
984
|
-
<div aria-busy=${e._reading ? "true" :
|
|
982
|
+
let r = e.files.length > 0 && !e._reading;
|
|
983
|
+
return t`
|
|
984
|
+
<div aria-busy=${e._reading ? "true" : n} class=${f({
|
|
985
985
|
"file-field": !0,
|
|
986
986
|
"file-field--area": e.variant === "area",
|
|
987
|
-
"has-files":
|
|
987
|
+
"has-files": r,
|
|
988
988
|
"is-refused": e._refused,
|
|
989
989
|
[`is-drag-${e._drag}`]: e._drag !== "none"
|
|
990
990
|
})}>
|
|
991
991
|
<input class="file-field__input"
|
|
992
992
|
type="file"
|
|
993
|
-
id=${e.inputId ||
|
|
994
|
-
accept=${e.accept ||
|
|
993
|
+
id=${e.inputId || n}
|
|
994
|
+
accept=${e.accept || n}
|
|
995
995
|
?multiple=${e._multiple}
|
|
996
996
|
?disabled=${e.disabled}
|
|
997
997
|
?required=${e.required}
|
|
998
|
-
aria-label=${e.accessibleLabel ||
|
|
998
|
+
aria-label=${e.accessibleLabel || n}
|
|
999
999
|
@change=${e._handleInputChange}
|
|
1000
1000
|
>
|
|
1001
|
-
${e.directory ?
|
|
1001
|
+
${e.directory ? t`
|
|
1002
1002
|
<input class="file-field__folder-input"
|
|
1003
1003
|
type="file"
|
|
1004
1004
|
webkitdirectory
|
|
@@ -1010,15 +1010,15 @@ function de(e) {
|
|
|
1010
1010
|
<nldd-menu class="file-field__choose-menu"
|
|
1011
1011
|
@beforetoggle=${(t) => e._handleMenuToggle(t)}
|
|
1012
1012
|
>${A(e)}</nldd-menu>
|
|
1013
|
-
` :
|
|
1014
|
-
${
|
|
1015
|
-
${e._refused ?
|
|
1013
|
+
` : n}
|
|
1014
|
+
${r ? ue(e) : oe(e)}
|
|
1015
|
+
${e._refused ? t`
|
|
1016
1016
|
<button class="file-field__dismiss-button"
|
|
1017
1017
|
type="button"
|
|
1018
1018
|
aria-label=${e._dismissAccessibleLabel()}
|
|
1019
1019
|
@click=${() => e._handleDismiss()}
|
|
1020
1020
|
></button>
|
|
1021
|
-
` :
|
|
1021
|
+
` : n}
|
|
1022
1022
|
<span class="file-field__status" role="status">${e._rejection ? e._rejectionText(e._rejection) : e._announcement}</span>
|
|
1023
1023
|
</div>
|
|
1024
1024
|
`;
|
|
@@ -1130,7 +1130,7 @@ function J(e) {
|
|
|
1130
1130
|
if (!U(e.dataTransfer)) return;
|
|
1131
1131
|
let t = e.composedPath();
|
|
1132
1132
|
for (let n of G) n._setDrag(t.includes(n) ? "over" : "page", e.dataTransfer);
|
|
1133
|
-
clearTimeout(K), K = setTimeout(q, fe),
|
|
1133
|
+
clearTimeout(K), K = setTimeout(q, fe), e.defaultPrevented || W(t) || (e.preventDefault(), e.dataTransfer.dropEffect = "none");
|
|
1134
1134
|
}
|
|
1135
1135
|
function Y(e) {
|
|
1136
1136
|
U(e.dataTransfer) && (!e.defaultPrevented && !W(e.composedPath()) && e.preventDefault(), q());
|
|
@@ -1139,7 +1139,7 @@ function pe(e) {
|
|
|
1139
1139
|
G.size === 0 && (window.addEventListener("dragover", J), window.addEventListener("drop", Y), window.addEventListener("dragend", q)), G.add(e);
|
|
1140
1140
|
}
|
|
1141
1141
|
function me(e) {
|
|
1142
|
-
G.delete(e),
|
|
1142
|
+
G.delete(e), G.size > 0 || (window.removeEventListener("dragover", J), window.removeEventListener("drop", Y), window.removeEventListener("dragend", q), clearTimeout(K));
|
|
1143
1143
|
}
|
|
1144
1144
|
// src/utilities/file-drag-and-drop.ts
|
|
1145
1145
|
var X = "(hover: none)";
|
|
@@ -1160,7 +1160,7 @@ var Z = class {
|
|
|
1160
1160
|
image: "components.file-field.image-lowercase",
|
|
1161
1161
|
video: "components.file-field.video-lowercase",
|
|
1162
1162
|
audio: "components.file-field.audio-file-lowercase"
|
|
1163
|
-
}, $ = (Q = class extends
|
|
1163
|
+
}, $ = (Q = class extends m(l(e)) {
|
|
1164
1164
|
constructor(...e) {
|
|
1165
1165
|
super(...e), this.variant = "control", this.size = "md", this.accept = "", this.multiple = !1, this.directory = !1, this.accessibleLabel = "", this.inputId = "", this.valid = !1, this.invalid = !1, this.disabled = !1, this.name = "", this.required = !1, this.translations = {}, this._files = [], this._paths = [], this._drag = "none", this._dragRejection = null, this._fittedName = null, this._nameTruncated = !1, this._fittedFolder = null, this._nameLines = 1, this._announcement = "", this._reading = !1, this._rejection = null, this._menuOpen = !1, this._menuClosedAt = -Infinity, this._fileDrag = new Z(this), this._action = 0, this._handleDragOver = (e) => {
|
|
1166
1166
|
!this.disabled && e.dataTransfer && U(e.dataTransfer) && (this._judge(e.dataTransfer) || (e.preventDefault(), e.dataTransfer.dropEffect = "copy"));
|
|
@@ -1199,7 +1199,7 @@ var Z = class {
|
|
|
1199
1199
|
return this._rejection !== null && this._drag === "none";
|
|
1200
1200
|
}
|
|
1201
1201
|
_t(e, t) {
|
|
1202
|
-
return
|
|
1202
|
+
return h(this.translations, p, e, t);
|
|
1203
1203
|
}
|
|
1204
1204
|
_chooseLabel() {
|
|
1205
1205
|
return this.directory ? this._t("components.file-field.to-choose-files-or-folder-action") : this._multiple ? this._t("components.file-field.to-choose-files-action") : this._t("components.file-field.to-choose-file-action");
|
|
@@ -1435,7 +1435,7 @@ var Z = class {
|
|
|
1435
1435
|
return Array.from(t).find((e) => e.checkVisibility?.() ?? !0) ?? t[0] ?? null;
|
|
1436
1436
|
}
|
|
1437
1437
|
focus(e) {
|
|
1438
|
-
|
|
1438
|
+
g(this, e) || this._chooseButton()?.focus(e);
|
|
1439
1439
|
}
|
|
1440
1440
|
describedTarget() {
|
|
1441
1441
|
return this._chooseButton();
|
|
@@ -1444,41 +1444,41 @@ var Z = class {
|
|
|
1444
1444
|
return de(this);
|
|
1445
1445
|
}
|
|
1446
1446
|
}, Q.styles = ee, Q.isFormInput = !0, Q);
|
|
1447
|
-
|
|
1447
|
+
r([a({
|
|
1448
1448
|
reflect: !0,
|
|
1449
|
-
converter:
|
|
1450
|
-
})], $.prototype, "variant", void 0),
|
|
1449
|
+
converter: u("control")
|
|
1450
|
+
})], $.prototype, "variant", void 0), r([a({
|
|
1451
1451
|
reflect: !0,
|
|
1452
|
-
converter:
|
|
1453
|
-
})], $.prototype, "size", void 0),
|
|
1452
|
+
converter: u("md")
|
|
1453
|
+
})], $.prototype, "size", void 0), r([a({
|
|
1454
1454
|
reflect: !0,
|
|
1455
|
-
converter:
|
|
1456
|
-
})], $.prototype, "accept", void 0),
|
|
1455
|
+
converter: u("")
|
|
1456
|
+
})], $.prototype, "accept", void 0), r([a({
|
|
1457
1457
|
type: Boolean,
|
|
1458
1458
|
reflect: !0
|
|
1459
|
-
})], $.prototype, "multiple", void 0),
|
|
1459
|
+
})], $.prototype, "multiple", void 0), r([a({
|
|
1460
1460
|
type: Boolean,
|
|
1461
1461
|
reflect: !0
|
|
1462
|
-
})], $.prototype, "directory", void 0),
|
|
1462
|
+
})], $.prototype, "directory", void 0), r([a({
|
|
1463
1463
|
type: String,
|
|
1464
1464
|
attribute: "accessible-label"
|
|
1465
|
-
})], $.prototype, "accessibleLabel", void 0),
|
|
1465
|
+
})], $.prototype, "accessibleLabel", void 0), r([a({
|
|
1466
1466
|
type: String,
|
|
1467
1467
|
attribute: "input-id"
|
|
1468
|
-
})], $.prototype, "inputId", void 0),
|
|
1468
|
+
})], $.prototype, "inputId", void 0), r([a({
|
|
1469
1469
|
type: Boolean,
|
|
1470
1470
|
reflect: !0
|
|
1471
|
-
})], $.prototype, "valid", void 0),
|
|
1471
|
+
})], $.prototype, "valid", void 0), r([a({
|
|
1472
1472
|
type: Boolean,
|
|
1473
1473
|
reflect: !0
|
|
1474
|
-
})], $.prototype, "invalid", void 0),
|
|
1474
|
+
})], $.prototype, "invalid", void 0), r([a({
|
|
1475
1475
|
type: Boolean,
|
|
1476
1476
|
reflect: !0
|
|
1477
|
-
})], $.prototype, "disabled", void 0),
|
|
1477
|
+
})], $.prototype, "disabled", void 0), r([a({
|
|
1478
1478
|
reflect: !0,
|
|
1479
|
-
converter:
|
|
1480
|
-
})], $.prototype, "name", void 0),
|
|
1479
|
+
converter: u("")
|
|
1480
|
+
})], $.prototype, "name", void 0), r([a({
|
|
1481
1481
|
type: Boolean,
|
|
1482
1482
|
reflect: !0
|
|
1483
|
-
})], $.prototype, "required", void 0),
|
|
1483
|
+
})], $.prototype, "required", void 0), r([a({ type: Object })], $.prototype, "translations", void 0), r([o()], $.prototype, "_files", void 0), r([o()], $.prototype, "_drag", void 0), r([o()], $.prototype, "_dragRejection", void 0), r([o()], $.prototype, "_fittedName", void 0), r([o()], $.prototype, "_nameTruncated", void 0), r([o()], $.prototype, "_fittedFolder", void 0), r([o()], $.prototype, "_nameLines", void 0), r([o()], $.prototype, "_announcement", void 0), r([o()], $.prototype, "_reading", void 0), r([o()], $.prototype, "_rejection", void 0), r([o()], $.prototype, "_menuOpen", void 0), r([c(".file-field__input")], $.prototype, "_input", void 0), r([c(".file-field__folder-input")], $.prototype, "_folderInput", void 0), r([c(".file-field__choose-menu")], $.prototype, "_chooseMenu", void 0), r([c(".file-field__menu-anchor")], $.prototype, "_menuAnchor", void 0), $ = r([s("nldd-file-field")], $);
|
|
1484
1484
|
export { $ as NLDDFileField };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./custom-element-
|
|
1
|
+
import "./custom-element-DsfOrnOD.js";
|
|
2
2
|
// src/components/forms/form/form.ts
|
|
3
3
|
var e = [
|
|
4
4
|
"name",
|
|
@@ -15,26 +15,40 @@ var e = [
|
|
|
15
15
|
let t = e.target;
|
|
16
16
|
if (t) {
|
|
17
17
|
for (let e of this._form?.elements ?? []) this._judged.add(e);
|
|
18
|
-
this._judged.add(t), t.toggleAttribute("invalid", !0),
|
|
18
|
+
this._judged.add(t), t.toggleAttribute("invalid", !0), this._syncGroup(t), this._focusTarget || (this._focusTarget = t, queueMicrotask(() => {
|
|
19
19
|
this._focusTarget?.focus?.(), this._focusTarget = null;
|
|
20
20
|
}));
|
|
21
21
|
}
|
|
22
22
|
}, this._focusTarget = null, this._handleReset = () => {
|
|
23
23
|
queueMicrotask(() => {
|
|
24
24
|
this._judged = /* @__PURE__ */ new WeakSet();
|
|
25
|
-
for (let e of this._form?.elements ?? []) e.removeAttribute("invalid");
|
|
25
|
+
for (let e of this._form?.elements ?? []) e.removeAttribute("invalid"), this._syncGroup(e);
|
|
26
26
|
for (let e of this.querySelectorAll("nldd-validation-list")) e.removeAttribute("judging");
|
|
27
27
|
});
|
|
28
28
|
}, this._handleInput = (e) => {
|
|
29
29
|
let t = e.target;
|
|
30
|
-
if (!t || !this._judged.has(t)) return;
|
|
31
|
-
let n = t.
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
if (!t || !this._judged.has(t) || this._pending.has(t)) return;
|
|
31
|
+
let n = t.getAttribute("name"), r = n ? this._form?.elements.namedItem(n) : null, i = r instanceof RadioNodeList ? Array.from(r) : [t], a = () => {
|
|
32
|
+
for (let e of i) {
|
|
33
|
+
if (!this._judged.has(e)) continue;
|
|
34
|
+
let { internals: t, validity: n } = e, r = t?.validity ?? n;
|
|
35
|
+
r && e.toggleAttribute("invalid", !r.valid);
|
|
36
|
+
}
|
|
37
|
+
this._syncGroup(t);
|
|
38
|
+
}, o = i.map((e) => e.updateComplete).filter(Boolean);
|
|
39
|
+
if (o.length === 0) return a();
|
|
40
|
+
this._pending.add(t), Promise.all(o).then(a).finally(() => this._pending.delete(t));
|
|
41
|
+
}, this._pending = /* @__PURE__ */ new WeakSet(), this._judged = /* @__PURE__ */ new WeakSet(), this._userProvidedForm = !1;
|
|
34
42
|
}
|
|
35
43
|
static get observedAttributes() {
|
|
36
44
|
return [...e, "label-alignment"];
|
|
37
45
|
}
|
|
46
|
+
_syncGroup(e) {
|
|
47
|
+
for (let t = e.parentElement; t && t !== this; t = t.parentElement) if (t.constructor.isFormInput === !0) {
|
|
48
|
+
t.toggleAttribute("invalid", t.querySelector("[invalid]") !== null);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
38
52
|
connectedCallback() {
|
|
39
53
|
if (!this._form) {
|
|
40
54
|
let e = this.querySelector(":scope > form");
|
|
@@ -59,10 +73,10 @@ var e = [
|
|
|
59
73
|
subtree: !0
|
|
60
74
|
});
|
|
61
75
|
}
|
|
62
|
-
this.addEventListener("invalid", this._handleInvalid, !0), this.addEventListener("input", this._handleInput), this.addEventListener("reset", this._handleReset), this._propagateLabelAlignment(this.getAttribute("label-alignment"));
|
|
76
|
+
this.addEventListener("invalid", this._handleInvalid, !0), this.addEventListener("input", this._handleInput), this.addEventListener("change", this._handleInput), this.addEventListener("reset", this._handleReset), this._propagateLabelAlignment(this.getAttribute("label-alignment"));
|
|
63
77
|
}
|
|
64
78
|
disconnectedCallback() {
|
|
65
|
-
this._observer?.disconnect(), this._observer = null, this.removeEventListener("invalid", this._handleInvalid, !0), this.removeEventListener("input", this._handleInput), this.removeEventListener("reset", this._handleReset);
|
|
79
|
+
this._observer?.disconnect(), this._observer = null, this.removeEventListener("invalid", this._handleInvalid, !0), this.removeEventListener("input", this._handleInput), this.removeEventListener("change", this._handleInput), this.removeEventListener("reset", this._handleReset);
|
|
66
80
|
}
|
|
67
81
|
attributeChangedCallback(e, t, n) {
|
|
68
82
|
e === "label-alignment" ? this._propagateLabelAlignment(n) : this._form && (n === null ? this._form.removeAttribute(e) : this._form.setAttribute(e, n));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as e, o as t, t as n } from "./decorate-CJCfz_g6.js";
|
|
2
|
+
import { a as r, i, n as a } from "./custom-element-DsfOrnOD.js";
|
|
3
3
|
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { n as s } from "./breakpoints-Cwor8TRP.js";
|
|
5
5
|
// src/components/forms/form-actions/form-actions.styles.ts
|
|
6
|
-
var c =
|
|
6
|
+
var c = r(s.mdMin), l = i`
|
|
7
7
|
:host {
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
}
|
|
@@ -65,7 +65,7 @@ var c = e(s.mdMin), l = t`
|
|
|
65
65
|
`;
|
|
66
66
|
// src/components/forms/form-actions/form-actions.template.ts
|
|
67
67
|
function u() {
|
|
68
|
-
return
|
|
68
|
+
return t`
|
|
69
69
|
<div class="form-actions">
|
|
70
70
|
<div class="form-actions__main">
|
|
71
71
|
<slot></slot>
|
|
@@ -74,7 +74,7 @@ function u() {
|
|
|
74
74
|
`;
|
|
75
75
|
}
|
|
76
76
|
// src/components/forms/form-actions/form-actions.ts
|
|
77
|
-
var d = class extends
|
|
77
|
+
var d = class extends e {
|
|
78
78
|
constructor(...e) {
|
|
79
79
|
super(...e), this.labelAlignment = void 0;
|
|
80
80
|
}
|
|
@@ -82,9 +82,9 @@ var d = class extends r {
|
|
|
82
82
|
return u();
|
|
83
83
|
}
|
|
84
84
|
}, f = (d.styles = l, d);
|
|
85
|
-
|
|
85
|
+
n([a({
|
|
86
86
|
type: String,
|
|
87
87
|
reflect: !0,
|
|
88
88
|
attribute: "label-alignment"
|
|
89
|
-
})], f.prototype, "labelAlignment", void 0), f =
|
|
89
|
+
})], f.prototype, "labelAlignment", void 0), f = n([o("nldd-form-actions")], f);
|
|
90
90
|
export { f as NLDDFormActions };
|
package/dist/cdn/chunks/{form-associated-mixin--GIbl98p.js → form-associated-mixin-BtStDDYA.js}
RENAMED
|
@@ -11,8 +11,19 @@ var t = [
|
|
|
11
11
|
"tooShort",
|
|
12
12
|
"typeMismatch",
|
|
13
13
|
"valueMissing"
|
|
14
|
-
];
|
|
15
|
-
function
|
|
14
|
+
], n = "";
|
|
15
|
+
function r(e) {
|
|
16
|
+
if (!e.required || e.checked || e.disabled) return null;
|
|
17
|
+
if (!n) {
|
|
18
|
+
let e = document.createElement("input");
|
|
19
|
+
e.type = "checkbox", e.required = !0, n = e.validationMessage || "Check this box.";
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
flags: { valueMissing: !0 },
|
|
23
|
+
message: n
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function i(n) {
|
|
16
27
|
var r;
|
|
17
28
|
class i extends n {
|
|
18
29
|
constructor(...t) {
|
|
@@ -59,4 +70,4 @@ function n(n) {
|
|
|
59
70
|
}
|
|
60
71
|
return r = i, r.formAssociated = !0, i;
|
|
61
72
|
}
|
|
62
|
-
export { n as t };
|
|
73
|
+
export { r as n, i as t };
|