@nldd/design-system 0.28.1 → 0.29.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/README.md +1 -1
- package/custom-elements.json +237 -170
- package/dist/assets/styles/text-wrap.d.ts +78 -0
- package/dist/assets/styles/text-wrap.d.ts.map +1 -0
- package/dist/assets/styles/text-wrap.fixtures.d.ts +6 -0
- package/dist/assets/styles/text-wrap.fixtures.d.ts.map +1 -0
- package/dist/assets/styles/text-wrap.fixtures.js +25 -0
- package/dist/assets/styles/text-wrap.fixtures.js.map +1 -0
- package/dist/assets/styles/text-wrap.js +102 -0
- package/dist/assets/styles/text-wrap.js.map +1 -0
- package/dist/cdn/autoloader.js +140 -140
- package/dist/cdn/chunks/{accordion-qNc04J73.js → accordion-Eyvvbt4L.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-C6M7whqP.js → accordion-item-tTwSzJIR.js} +15 -14
- package/dist/cdn/chunks/{activity-indicator-NvfhYycS.js → activity-indicator-DPQNZQDO.js} +5 -5
- package/dist/cdn/chunks/{admonition-CrFn5dn8.js → admonition-BRmILQsf.js} +21 -20
- package/dist/cdn/chunks/{avatar-De4nVQAy.js → avatar-D3gM-JHI.js} +14 -14
- package/dist/cdn/chunks/{avatar-group-cS_7WjsC.js → avatar-group-B_d8PyyP.js} +15 -15
- package/dist/cdn/chunks/{badge-BNmnWgNJ.js → badge-Bh665MoY.js} +5 -10
- package/dist/cdn/chunks/{banner-CJ0VfDQl.js → banner-DChycHh5.js} +27 -30
- package/dist/cdn/chunks/{bar-split-view-DJZ_RMrc.js → bar-split-view-DakaOexc.js} +5 -5
- package/dist/cdn/chunks/{blockquote-Fbk-Cz-z.js → blockquote-BqBNTgop.js} +32 -29
- package/dist/cdn/chunks/{box-DUjTdMwj.js → box-B3zUs9dD.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-DvQfnS-r.js → breadcrumbs-CNRmh93a.js} +43 -47
- package/dist/cdn/chunks/{button-BiZEK2qo.js → button-3oNu2JqC.js} +76 -74
- package/dist/cdn/chunks/{button-bar-BD8YYSya.js → button-bar-Bw46AWOo.js} +3 -3
- package/dist/cdn/chunks/{button-group-BDgwtxiB.js → button-group-Bd5CZm4t.js} +2 -2
- package/dist/cdn/chunks/{card-7YW4G3mN.js → card-BVW0oCKu.js} +4 -4
- package/dist/cdn/chunks/{cell-D4rzlHiL.js → cell-C2vZmYOL.js} +6 -6
- package/dist/cdn/chunks/{checkbox-BAXC8LxT.js → checkbox-LCfb8_rn.js} +5 -5
- package/dist/cdn/chunks/{checkbox-field-DokK3uET.js → checkbox-field-BeIbKEWd.js} +44 -41
- package/dist/cdn/chunks/{checkbox-group-dYi8Qw-Z.js → checkbox-group-DezaH0Mb.js} +3 -3
- package/dist/cdn/chunks/{class-map-Dk5rXpmX.js → class-map-07EioFee.js} +1 -1
- package/dist/cdn/chunks/{code-editor-Uc5WnSyE.js → code-editor-BP9eNQVl.js} +5 -5
- package/dist/cdn/chunks/{code-viewer-DmaSO8TW.js → code-viewer-DJ3TJWD_.js} +7 -7
- package/dist/cdn/chunks/{codemirror-input-yuu4_CF5.js → codemirror-input-D4u8naKh.js} +5 -5
- package/dist/cdn/chunks/{collection-DRkMikEK.js → collection-CTa6APvK.js} +8 -8
- package/dist/cdn/chunks/{combo-box-BfgDCM9z.js → combo-box-BcUXaJuO.js} +9 -9
- package/dist/cdn/chunks/{container-Ce02W6bB.js → container-BxfHTSXb.js} +2 -2
- package/dist/cdn/chunks/{custom-element-B7CAmse4.js → custom-element-7tLnKgZE.js} +1 -1
- package/dist/cdn/chunks/{date-field-D0qFC7IW.js → date-field-3AJMYQ6k.js} +89 -99
- package/dist/cdn/chunks/{date-picker-DwXIznN6.js → date-picker-Ho8Mkvcv.js} +10 -10
- package/dist/cdn/chunks/{decorate-CrwTiRI4.js → decorate-CIC8fGPN.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-Dks9Tazd.js → described-by-mixin-DSeADwWP.js} +2 -2
- package/dist/cdn/chunks/{description-cell-vdXLTWdM.js → description-cell-DnyCIOZd.js} +42 -26
- package/dist/cdn/chunks/{dev-checks-C7AQOQdy.js → dev-checks-DE09CTk9.js} +20 -5
- package/dist/cdn/chunks/{directive-helpers-DhYhHq0V.js → directive-helpers-DUlH8eNt.js} +1 -1
- package/dist/cdn/chunks/{dist-BF_HsA1F.js → dist-3XSbEdbz.js} +1 -1
- package/dist/cdn/chunks/{dist-fQWTQex_.js → dist-BV06hHwA.js} +3 -3
- package/dist/cdn/chunks/{dist-CpFmom1e.js → dist-CLyXDlop.js} +1 -1
- package/dist/cdn/chunks/{dist-BO8LBhZ9.js → dist-CanlbdZP.js} +1 -1
- package/dist/cdn/chunks/{dist-Ef-Tq6YF.js → dist-Cku1NQ9X.js} +2 -2
- package/dist/cdn/chunks/{dist-DKwVzsKb.js → dist-DJ_2VKiG.js} +3 -3
- package/dist/cdn/chunks/{dist-DA8xWaRD.js → dist-Dpc1YfbE.js} +1 -1
- package/dist/cdn/chunks/{dist-C3SPGWp1.js → dist-DsE-63gX.js} +1 -1
- package/dist/cdn/chunks/{dist-DsI2zIZX.js → dist-DtpgX9L8.js} +2 -2
- package/dist/cdn/chunks/{dist-BStcClNc.js → dist-DuaPU_hA.js} +2 -2
- package/dist/cdn/chunks/{dist-L5MKtblc.js → dist-lUsXGXhR.js} +1 -1
- package/dist/cdn/chunks/{divider-DtcYfGdC.js → divider-BixGehzs.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-C16nriDX.js → document-tab-bar-CqjLOpKx.js} +9 -9
- package/dist/cdn/chunks/{dropdown-imPdtMWv.js → dropdown-DHlIJDc9.js} +12 -11
- package/dist/cdn/chunks/{file-field-KvBiDQDG.js → file-field-B-R605PQ.js} +123 -122
- package/dist/cdn/chunks/{form-D1EnbYQi.js → form-DDB03czp.js} +1 -1
- package/dist/cdn/chunks/{form-actions-BVb12cWB.js → form-actions-DZgcVawx.js} +2 -2
- package/dist/cdn/chunks/{form-associated-mixin-1aHgl6CN.js → form-associated-mixin-9cC5HSCG.js} +2 -2
- package/dist/cdn/chunks/{form-field-C7IKuhqV.js → form-field-CiWFS40A.js} +62 -54
- package/dist/cdn/chunks/{form-section-C3EY5PYR.js → form-section-J2if8kVt.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-D0Eg6xrZ.js → full-bleed-section-Q4drn-q0.js} +3 -3
- package/dist/cdn/chunks/{hero-CLt5Cw5O.js → hero-CiPeHBJi.js} +4 -4
- package/dist/cdn/chunks/{icon-Dm2x9BcO.js → icon-C_xeQP4j.js} +2 -2
- package/dist/cdn/chunks/{icon-button-CBEWhco-.js → icon-button-CCiDTx3_.js} +9 -9
- package/dist/cdn/chunks/{icon-cell-DXxd6Nry.js → icon-cell-qieQ2vyq.js} +26 -27
- package/dist/cdn/chunks/{identity-BeTWWEj8.js → identity-xlk5m8S9.js} +24 -21
- package/dist/cdn/chunks/{if-defined-mF0X0Rdi.js → if-defined-BG5WQE1B.js} +1 -1
- package/dist/cdn/chunks/{image-COSXwiWa.js → image--hemIqn_.js} +53 -45
- package/dist/cdn/chunks/{inline-dialog-DIOgk8bK.js → inline-dialog-TetcCCuR.js} +26 -20
- package/dist/cdn/chunks/{just-in-time-education-BZNVdvuU.js → just-in-time-education-B5veXLNI.js} +5 -5
- package/dist/cdn/chunks/{kanban-Cck2OXzv.js → kanban-D_rUckwT.js} +5 -5
- package/dist/cdn/chunks/{kanban-column--KK3DP8d.js → kanban-column-DXhOQ64A.js} +4 -4
- package/dist/cdn/chunks/{keyboard-shortcut-CuyFIf1M.js → keyboard-shortcut-CtLlBcQg.js} +3 -3
- package/dist/cdn/chunks/{languages-AgQxW3ST.js → languages-BrBEUYzL.js} +12 -12
- package/dist/cdn/chunks/{link-Dwx2iVe3.js → link-ChRCGtWP.js} +6 -6
- package/dist/cdn/chunks/{link-group-C1W4fywA.js → link-group-pbOW9KCb.js} +2 -2
- package/dist/cdn/chunks/{list-DLzBphoL.js → list-Bfh3X6o8.js} +8 -8
- package/dist/cdn/chunks/{list-item-C_ehVVWB.js → list-item-BcEWw55r.js} +5 -5
- package/dist/cdn/chunks/{list-item-segment-BSKAGZX1.js → list-item-segment-ChGSqurx.js} +3 -3
- package/dist/cdn/chunks/{menu-C1PAGWta.js → menu-Dj1cdu5O.js} +10 -13
- package/dist/cdn/chunks/{menu-bar-0nenrPh7.js → menu-bar-DCkLwYES.js} +6 -6
- package/dist/cdn/chunks/{menu-bar-item-CxwtcbeA.js → menu-bar-item-eLhyoBaG.js} +6 -6
- package/dist/cdn/chunks/{menu-divider-FTcoHy0o.js → menu-divider-BUNkdRG6.js} +3 -3
- package/dist/cdn/chunks/{menu-group-CbuJhLxI.js → menu-group-rgTyUCIY.js} +4 -4
- package/dist/cdn/chunks/{menu-item-BMblp58r.js → menu-item-CttLz526.js} +4 -4
- package/dist/cdn/chunks/{menu.template-DVwVuOZ7.js → menu.template-D6Y2bQao.js} +57 -42
- package/dist/cdn/chunks/{modal-dialog-Bd0UpTKp.js → modal-dialog-CUb8QrtP.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-C_Mrqdc7.js → multi-line-text-field-Db8a2YIL.js} +6 -6
- package/dist/cdn/chunks/{navigation-split-view-DI6bkyO8.js → navigation-split-view-D8ATWcAf.js} +5 -5
- package/dist/cdn/chunks/{notification-DlP3Jqyg.js → notification-DHvaRREb.js} +102 -101
- package/dist/cdn/chunks/{number-field-BJ6CkhId.js → number-field-C_rgYWIM.js} +66 -48
- package/dist/cdn/chunks/{one-half-one-half-section-DHCUh_wz.js → one-half-one-half-section-DFYjUF3h.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-DYTm8bKQ.js → one-third-two-thirds-section-DovKfHkM.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-DHuL7IM1.js → one-time-code-field-BBg30doG.js} +27 -22
- package/dist/cdn/chunks/{overflow-menu-ziAYinfd.js → overflow-menu-CAIY3hk-.js} +1 -1
- package/dist/cdn/chunks/{page-CN9aT0-o.js → page-DpcervFE.js} +13 -6
- package/dist/cdn/chunks/{page-footer-BHk3XPcl.js → page-footer-B0JJvSf7.js} +45 -43
- package/dist/cdn/chunks/{page-section-mixin-BCWdaBe-.js → page-section-mixin-B98EwIts.js} +3 -3
- package/dist/cdn/chunks/{pagination-TG6S64c8.js → pagination-D1o7xN9-.js} +6 -6
- package/dist/cdn/chunks/{password-field-WlBkV6Zk.js → password-field-CWneSaEV.js} +8 -8
- package/dist/cdn/chunks/{popover-SPjzHEBv.js → popover-Bm7Kc6Ep.js} +5 -5
- package/dist/cdn/chunks/{progress-bar-y1V2-yVB.js → progress-bar-3eU3rFW6.js} +48 -43
- package/dist/cdn/chunks/{progress-circle-CmHdUkXN.js → progress-circle-CHMKX8uz.js} +51 -49
- package/dist/cdn/chunks/{radio-button-0w_6MBnr.js → radio-button-B45WY4fZ.js} +4 -4
- package/dist/cdn/chunks/{radio-button-field-DRxHUlU-.js → radio-button-field-CsJ0DMrB.js} +36 -33
- package/dist/cdn/chunks/{radio-button-group-BOSrS8Cw.js → radio-button-group-CdDmgzn3.js} +3 -3
- package/dist/cdn/chunks/{render-marked-B37AmEcK.js → render-marked-vXU387IN.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-DNexvOly.js → reorder-handle-cell-M_xNSghw.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-DR6s48h0.js → reorder-handle-mixin-DIkeFpRU.js} +2 -2
- package/dist/cdn/chunks/{repeat-DmJWskI3.js → repeat-Cy1a-r4p.js} +2 -2
- package/dist/cdn/chunks/{rich-text-Dt9MNeaN.js → rich-text-B8ANpryO.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-CACRXO0G.js → row-header-mixin-CnCxMteQ.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-CnG9vdGO.js → scroll-fade-BoXGZJeO.js} +2 -2
- package/dist/cdn/chunks/{search-field-DHwGMif1.js → search-field-1zFx-owG.js} +10 -10
- package/dist/cdn/chunks/{segmented-control-DhEmavt0.js → segmented-control-CRRWCyFW.js} +7 -7
- package/dist/cdn/chunks/{shadow-resets-B5O9JTmC.js → shadow-resets-B6C3rG8q.js} +2 -2
- package/dist/cdn/chunks/{sheet-BLe_3_DE.js → sheet-ChPeBrfk.js} +3 -3
- package/dist/cdn/chunks/{shell-DqPhGCqs.js → shell-DpKdCX0m.js} +3 -3
- package/dist/cdn/chunks/{side-by-side-split-view-DCAuNLWx.js → side-by-side-split-view-BoJ6fcJg.js} +4 -4
- package/dist/cdn/chunks/{sidebar-section-nC17BdDf.js → sidebar-section-D1fyh0uU.js} +7 -7
- package/dist/cdn/chunks/{simple-section-C2XC7_dY.js → simple-section-CyDYDeg_.js} +3 -3
- package/dist/cdn/chunks/{skip-link-DVUTni1o.js → skip-link-Dzz1lV-5.js} +28 -26
- package/dist/cdn/chunks/{slider-D6bcOyZe.js → slider-K7ylsn0X.js} +9 -9
- package/dist/cdn/chunks/{spacer-D39nYCkZ.js → spacer-BDRDeRQr.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-BWIkzpvO.js → spacer-cell-DvUxqmbS.js} +4 -4
- package/dist/cdn/chunks/{split-button-QFO3hzQ4.js → split-button-BYqftEp3.js} +9 -7
- package/dist/cdn/chunks/{split-view-divider-BwBUUVjD.js → split-view-divider-BQdN8I8c.js} +2 -2
- package/dist/cdn/chunks/{stacked-split-view-yNPky0NT.js → stacked-split-view-BG0kRfdn.js} +4 -4
- package/dist/cdn/chunks/{static-html-CTzABBaH.js → static-html-ooiG7-by.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CLC37EL9.js → status-bar-oyMa4uJG.js} +4 -4
- package/dist/cdn/chunks/{step-bar-BhgHHkDX.js → step-bar-CQd9nSub.js} +32 -29
- package/dist/cdn/chunks/{step-cell-DC2qTAyk.js → step-cell-3yG-UCmv.js} +5 -5
- package/dist/cdn/chunks/{stepper-B-cc2_Sm.js → stepper-d-usvzY0.js} +7 -7
- package/dist/cdn/chunks/{style-map-HtOjYtU6.js → style-map-DP8rklU9.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-k_4WmoQz.js → swatch-picker-CDCUnY72.js} +6 -6
- package/dist/cdn/chunks/{switch-CkeeQxIb.js → switch-BMGaGKGr.js} +5 -5
- package/dist/cdn/chunks/{switch-field-Bz3JEf0A.js → switch-field-BaKICGGz.js} +26 -23
- package/dist/cdn/chunks/{tab-bar-A1J5hAqM.js → tab-bar-BFDYrnsi.js} +8 -8
- package/dist/cdn/chunks/{table-D_AIkENk.js → table-DZx86t9S.js} +7 -5
- package/dist/cdn/chunks/{tag-CSEVQj4T.js → tag-BcfNqWxs.js} +21 -19
- package/dist/cdn/chunks/{term-DuVHCQcO.js → term-BgyQFHrz.js} +12 -12
- package/dist/cdn/chunks/{text-CBH-FTlq.js → text-ChSJGujM.js} +41 -39
- package/dist/cdn/chunks/{text-cell-D60E-KiB.js → text-cell-fnnbWR_Y.js} +55 -42
- package/dist/cdn/chunks/{text-editor-CFesnlv8.js → text-editor-D9K1Z87u.js} +20 -17
- package/dist/cdn/chunks/{text-field-ClvBNmw_.js → text-field-DzNb872n.js} +6 -6
- package/dist/cdn/chunks/text-wrap-DJ9PcwZ4.js +29 -0
- package/dist/cdn/chunks/{time-field-D1ueoBOt.js → time-field-DiJhXcaX.js} +14 -14
- package/dist/cdn/chunks/{time-picker-ttlWNV2I.js → time-picker-DZlD7fVz.js} +5 -5
- package/dist/cdn/chunks/{title-D2otK52V.js → title-BUC_Asb4.js} +81 -93
- package/dist/cdn/chunks/{title-cell-BOolNM8K.js → title-cell-jmBvTRwY.js} +66 -53
- package/dist/cdn/chunks/{toggle-button-CzWCZusb.js → toggle-button-UssRHIiz.js} +8 -8
- package/dist/cdn/chunks/{toggle-button-group-BUKU9xiy.js → toggle-button-group-Bj8Rjd93.js} +2 -2
- package/dist/cdn/chunks/{token-HxBj8tdv.js → token-DTjIKIJl.js} +11 -10
- package/dist/cdn/chunks/{token-field-DHAfga9R.js → token-field-CEtnrqKT.js} +13 -13
- package/dist/cdn/chunks/{toolbar-CR6uWzjc.js → toolbar-CvinP7R9.js} +8 -8
- package/dist/cdn/chunks/{toolbar-item-M5kEBN_1.js → toolbar-item-CiCs-MqI.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-2XyAXFDG.js → toolbar-title-YdFqO0Xq.js} +4 -4
- package/dist/cdn/chunks/{toolbar.styles-SLbsPK33.js → toolbar.styles-DO1jDSfb.js} +3 -3
- package/dist/cdn/chunks/{tooltip-yN6v0-a6.js → tooltip-CGSe6rYu.js} +41 -40
- package/dist/cdn/chunks/{top-navigation-bar-DSv3hYF4.js → top-navigation-bar-akJzlepM.js} +116 -109
- package/dist/cdn/chunks/{top-title-bar-Cs93GAbh.js → top-title-bar-CuU2kYrc.js} +13 -6
- package/dist/cdn/chunks/{translations-1C8iw2u1.js → translations-tgPL1Hx3.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-DtrkuHxs.js → two-thirds-one-third-section-BE40gzfe.js} +3 -3
- package/dist/cdn/chunks/{validation-list-BrEOIlrc.js → validation-list-B_VwBQD0.js} +30 -28
- package/dist/cdn/chunks/{visibility-mixin-CklY4qL7.js → visibility-mixin-BgnkZDZM.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-Clb3JvVO.js → visually-hidden-B4_jKNA7.js} +2 -2
- package/dist/cdn/chunks/{window-CVRtBBjQ.js → window-CJybFUUG.js} +4 -4
- package/dist/cdn/chunks/{with-translations-CaLhynTn.js → with-translations-CZaQOZ9L.js} +3 -3
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +3 -1
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +1 -4
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +1 -4
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +22 -3
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +3 -7
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.js +2 -0
- package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
- package/dist/components/content/accordion/accordion-item.styles.d.ts.map +1 -1
- package/dist/components/content/accordion/accordion-item.styles.js +3 -2
- package/dist/components/content/accordion/accordion-item.styles.js.map +1 -1
- package/dist/components/content/accordion/accordion.d.ts +1 -1
- package/dist/components/content/accordion/accordion.js +1 -1
- package/dist/components/content/admonition/admonition.d.ts +2 -2
- package/dist/components/content/admonition/admonition.js +2 -2
- package/dist/components/content/admonition/admonition.styles.d.ts.map +1 -1
- package/dist/components/content/admonition/admonition.styles.js +3 -2
- package/dist/components/content/admonition/admonition.styles.js.map +1 -1
- package/dist/components/content/avatar/avatar.d.ts +9 -9
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +16 -16
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar/avatar.styles.js +1 -1
- package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +3 -0
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +3 -0
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +3 -3
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/icon/icon-categories.d.ts +2 -0
- package/dist/components/content/icon/icon-categories.d.ts.map +1 -0
- package/dist/components/content/icon/icon-categories.js +454 -0
- package/dist/components/content/icon/icon-categories.js.map +1 -0
- package/dist/components/content/identity/identity.styles.d.ts.map +1 -1
- package/dist/components/content/identity/identity.styles.js +3 -0
- package/dist/components/content/identity/identity.styles.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +9 -1
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +11 -10
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +16 -16
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/content/tag/tag.styles.js +3 -1
- package/dist/components/content/tag/tag.styles.js.map +1 -1
- package/dist/components/content/text/text.d.ts +8 -0
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +11 -0
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +7 -8
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/title/title.d.ts +3 -1
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +3 -1
- 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 +7 -19
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/token/token.d.ts +2 -2
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +5 -5
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/token/token.template.js +1 -1
- package/dist/components/content/token/token.template.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +2 -1
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +8 -0
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.template.js +1 -1
- package/dist/components/forms/form-field/form-field.template.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.styles.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.styles.js +2 -0
- package/dist/components/forms/validation-list/validation-list.styles.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +4 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +1 -12
- package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +2 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +7 -7
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.js +3 -2
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts +3 -2
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +5 -5
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +20 -8
- package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.template.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.template.js +33 -25
- package/dist/components/inputs/number-field/number-field.template.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +6 -4
- 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 +30 -15
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +4 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.styles.js +4 -1
- package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.js +6 -3
- package/dist/components/inputs/text-editor/text-editor.links.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.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +2 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.js +2 -2
- package/dist/components/layout/page/page.d.ts +10 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +19 -1
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +2 -1
- package/dist/components/layout/page/page.styles.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 +2 -0
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts +23 -1
- 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 +26 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +16 -3
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +32 -1
- 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 +35 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +16 -6
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +18 -1
- 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 +21 -1
- 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.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +16 -6
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +2 -0
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +4 -2
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +4 -2
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +15 -15
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +9 -8
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.js +6 -0
- package/dist/components/navigation/skip-link/skip-link.styles.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.js +2 -6
- package/dist/components/navigation/skip-link/skip-link.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +8 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +2 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +14 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +14 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +0 -5
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +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 +3 -6
- package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +6 -0
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.js +3 -2
- package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +6 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +2 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +4 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +4 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +5 -2
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
- package/dist/css/rich-text.css +38 -40
- package/dist/css/text.css +2 -0
- package/dist/css/title.css +2 -0
- package/dist/css/variables.css +5 -1
- package/dist/nldd.min.js +1593 -1492
- package/dist/types/react.d.ts +33 -30
- package/dist/types/vue.d.ts +39 -37
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +20 -5
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/fix.js +6 -3
- package/package.json +1 -1
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
2
|
-
import { n as i, r as a, s as o } from "./custom-element-
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-CIC8fGPN.js";
|
|
2
|
+
import { n as i, r as a, s as o } from "./custom-element-7tLnKgZE.js";
|
|
3
3
|
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { t as c } from "./query-ChDzi9FQ.js";
|
|
5
|
-
import { t as l } from "./form-associated-mixin-
|
|
5
|
+
import { t as l } from "./form-associated-mixin-9cC5HSCG.js";
|
|
6
6
|
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
-
import { t as d } from "./shadow-resets-
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./icon-
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
15
|
-
import
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
7
|
+
import { t as d } from "./shadow-resets-B6C3rG8q.js";
|
|
8
|
+
import { i as f, o as p } from "./text-wrap-DJ9PcwZ4.js";
|
|
9
|
+
import { t as m } from "./class-map-07EioFee.js";
|
|
10
|
+
import "./button-3oNu2JqC.js";
|
|
11
|
+
import "./icon-button-CCiDTx3_.js";
|
|
12
|
+
import "./icon-C_xeQP4j.js";
|
|
13
|
+
import "./tooltip-CGSe6rYu.js";
|
|
14
|
+
import "./menu-Dj1cdu5O.js";
|
|
15
|
+
import "./activity-indicator-DPQNZQDO.js";
|
|
16
|
+
import { t as h } from "./file-field.i18n-pDM7Utud.js";
|
|
17
|
+
import { t as g } from "./described-by-mixin-DSeADwWP.js";
|
|
18
|
+
import { t as ee } from "./translations-tgPL1Hx3.js";
|
|
19
|
+
import { t as _ } from "./defer-focus-F73ud2D9.js";
|
|
19
20
|
// src/components/inputs/file-field/file-field.styles.ts
|
|
20
|
-
var
|
|
21
|
+
var te = o`
|
|
21
22
|
:host {
|
|
22
23
|
box-sizing: border-box;
|
|
23
24
|
}
|
|
@@ -258,7 +259,7 @@ var ee = o`
|
|
|
258
259
|
.file-field__text {
|
|
259
260
|
padding-block: var(--primitives-space-8);
|
|
260
261
|
white-space: normal;
|
|
261
|
-
|
|
262
|
+
${p}
|
|
262
263
|
text-wrap: balance;
|
|
263
264
|
}
|
|
264
265
|
|
|
@@ -447,7 +448,7 @@ var ee = o`
|
|
|
447
448
|
:is(.file-field__name, .file-field__folder).is-wrapped {
|
|
448
449
|
display: block;
|
|
449
450
|
white-space: normal;
|
|
450
|
-
|
|
451
|
+
${f}
|
|
451
452
|
text-wrap: balance;
|
|
452
453
|
}
|
|
453
454
|
|
|
@@ -630,23 +631,23 @@ var ee = o`
|
|
|
630
631
|
border-style: dashed;
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
|
-
`,
|
|
634
|
+
`, ne = "…";
|
|
634
635
|
function v(e) {
|
|
635
636
|
let t = e.lastIndexOf(".");
|
|
636
637
|
return t > 0 ? [e.slice(0, t), e.slice(t)] : [e, ""];
|
|
637
638
|
}
|
|
638
|
-
var
|
|
639
|
-
function
|
|
640
|
-
let [t, n] = v(e), r = Math.max(0, t.length -
|
|
639
|
+
var re = 8;
|
|
640
|
+
function ie(e) {
|
|
641
|
+
let [t, n] = v(e), r = Math.max(0, t.length - re);
|
|
641
642
|
return [t.slice(0, r), t.slice(r) + n];
|
|
642
643
|
}
|
|
643
|
-
function
|
|
644
|
-
return `${e.slice(0, Math.ceil(n / 2)).trimEnd()}${
|
|
644
|
+
function y(e, t, n) {
|
|
645
|
+
return `${e.slice(0, Math.ceil(n / 2)).trimEnd()}${ne}${e.slice(e.length - Math.floor(n / 2)).trimStart()}${t}`;
|
|
645
646
|
}
|
|
646
|
-
function
|
|
647
|
-
return
|
|
647
|
+
function ae(e, t, n) {
|
|
648
|
+
return b(e, (e) => n(e) <= t);
|
|
648
649
|
}
|
|
649
|
-
function
|
|
650
|
+
function b(e, t, { keepExtension: n = !0 } = {}) {
|
|
650
651
|
if (t(e)) return {
|
|
651
652
|
text: e,
|
|
652
653
|
truncated: !1
|
|
@@ -654,14 +655,14 @@ function C(e, t, { keepExtension: n = !0 } = {}) {
|
|
|
654
655
|
let [r, i] = n ? v(e) : [e, ""], a = 0, o = r.length - 1;
|
|
655
656
|
for (; a < o;) {
|
|
656
657
|
let e = Math.ceil((a + o) / 2);
|
|
657
|
-
t(
|
|
658
|
+
t(y(r, i, e)) ? a = e : o = e - 1;
|
|
658
659
|
}
|
|
659
660
|
return {
|
|
660
|
-
text:
|
|
661
|
+
text: y(r, i, a),
|
|
661
662
|
truncated: !0
|
|
662
663
|
};
|
|
663
664
|
}
|
|
664
|
-
function
|
|
665
|
+
function x(e, t, n) {
|
|
665
666
|
let r = document.createElement("span");
|
|
666
667
|
r.style.cssText = `position: absolute; visibility: hidden; display: block; width: ${t}px; white-space: normal; overflow-wrap: anywhere;`, e.append(r);
|
|
667
668
|
let i = parseFloat(getComputedStyle(r).lineHeight);
|
|
@@ -670,7 +671,7 @@ function te(e, t, n) {
|
|
|
670
671
|
done: () => r.remove()
|
|
671
672
|
};
|
|
672
673
|
}
|
|
673
|
-
function
|
|
674
|
+
function S(e) {
|
|
674
675
|
let t = document.createElement("span");
|
|
675
676
|
return t.style.cssText = "position: absolute; visibility: hidden; white-space: pre;", e.append(t), {
|
|
676
677
|
measure: (e) => (t.textContent = e, t.getBoundingClientRect().width),
|
|
@@ -678,7 +679,7 @@ function ne(e) {
|
|
|
678
679
|
};
|
|
679
680
|
}
|
|
680
681
|
// src/components/inputs/file-field/file-field.template.ts
|
|
681
|
-
var
|
|
682
|
+
var C = {
|
|
682
683
|
pdf: "file-pdf",
|
|
683
684
|
png: "file-png",
|
|
684
685
|
jpg: "file-jpg",
|
|
@@ -698,11 +699,11 @@ var re = {
|
|
|
698
699
|
odg: "file-odg",
|
|
699
700
|
odf: "file-odf"
|
|
700
701
|
};
|
|
701
|
-
function
|
|
702
|
+
function w(e) {
|
|
702
703
|
let t = e.files;
|
|
703
|
-
return e._folderName() ? "folder" : t.length > 1 ? "file-on-file" :
|
|
704
|
+
return e._folderName() ? "folder" : t.length > 1 ? "file-on-file" : C[v(t[0].name)[1].slice(1).toLowerCase()] ?? "file";
|
|
704
705
|
}
|
|
705
|
-
function
|
|
706
|
+
function T(e) {
|
|
706
707
|
return !e.invalid && !e.valid ? n : t`
|
|
707
708
|
<div class="file-field__validation-icon-area">
|
|
708
709
|
<nldd-icon class="file-field__validation-icon"
|
|
@@ -712,17 +713,17 @@ function w(e) {
|
|
|
712
713
|
</div>
|
|
713
714
|
`;
|
|
714
715
|
}
|
|
715
|
-
function
|
|
716
|
+
function E(e, n) {
|
|
716
717
|
return t`
|
|
717
718
|
<span class="file-field__${e}">${n.map((e) => t`
|
|
718
|
-
<span class=${
|
|
719
|
+
<span class=${m({
|
|
719
720
|
[`file-field__${e.kind}-text`]: !0,
|
|
720
721
|
"is-active": e.active
|
|
721
722
|
})}>${e.content}</span>
|
|
722
723
|
`)}</span>
|
|
723
724
|
`;
|
|
724
725
|
}
|
|
725
|
-
function
|
|
726
|
+
function D(e, t, n) {
|
|
726
727
|
let r = e._dragRejection ?? e._rejection, i = !r && e._drag !== "none";
|
|
727
728
|
return [
|
|
728
729
|
{
|
|
@@ -735,10 +736,10 @@ function E(e, t, n) {
|
|
|
735
736
|
kind: "drop",
|
|
736
737
|
active: i && e._drag === "over"
|
|
737
738
|
},
|
|
738
|
-
...
|
|
739
|
+
...k(e, r)
|
|
739
740
|
];
|
|
740
741
|
}
|
|
741
|
-
function
|
|
742
|
+
function O(e) {
|
|
742
743
|
if (e.variant === "area") return [];
|
|
743
744
|
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>`;
|
|
744
745
|
return [
|
|
@@ -769,7 +770,7 @@ function D(e) {
|
|
|
769
770
|
active: !1
|
|
770
771
|
}));
|
|
771
772
|
}
|
|
772
|
-
function
|
|
773
|
+
function k(e, t) {
|
|
773
774
|
return (e._multiple ? [
|
|
774
775
|
"type",
|
|
775
776
|
"empty-folder",
|
|
@@ -784,7 +785,7 @@ function O(e, t) {
|
|
|
784
785
|
active: t === n
|
|
785
786
|
}));
|
|
786
787
|
}
|
|
787
|
-
function
|
|
788
|
+
function A(e) {
|
|
788
789
|
let n = e.variant === "area", r = e.size === "sm";
|
|
789
790
|
return t`<nldd-activity-indicator class="file-field__reading-indicator"
|
|
790
791
|
timing="instant"
|
|
@@ -792,7 +793,7 @@ function k(e) {
|
|
|
792
793
|
?show-text=${n}
|
|
793
794
|
></nldd-activity-indicator>`;
|
|
794
795
|
}
|
|
795
|
-
function
|
|
796
|
+
function j(e) {
|
|
796
797
|
return t`
|
|
797
798
|
<nldd-menu-item
|
|
798
799
|
icon="files"
|
|
@@ -806,7 +807,7 @@ function A(e) {
|
|
|
806
807
|
></nldd-menu-item>
|
|
807
808
|
`;
|
|
808
809
|
}
|
|
809
|
-
function
|
|
810
|
+
function M(e, r) {
|
|
810
811
|
return t`
|
|
811
812
|
<nldd-button class="file-field__change-button"
|
|
812
813
|
appearance="neutral-tinted"
|
|
@@ -821,7 +822,7 @@ function j(e, r) {
|
|
|
821
822
|
></nldd-button>
|
|
822
823
|
`;
|
|
823
824
|
}
|
|
824
|
-
function
|
|
825
|
+
function oe(e) {
|
|
825
826
|
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");
|
|
826
827
|
return t`
|
|
827
828
|
<div class="file-field__choose-button-group">
|
|
@@ -846,8 +847,8 @@ function ae(e) {
|
|
|
846
847
|
</div>
|
|
847
848
|
`;
|
|
848
849
|
}
|
|
849
|
-
function
|
|
850
|
-
let r =
|
|
850
|
+
function se(e) {
|
|
851
|
+
let r = D(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 = E("text", [
|
|
851
852
|
{
|
|
852
853
|
content: s,
|
|
853
854
|
kind: "idle",
|
|
@@ -855,12 +856,12 @@ function oe(e) {
|
|
|
855
856
|
},
|
|
856
857
|
...r,
|
|
857
858
|
...i ? [] : [{
|
|
858
|
-
content: d ?
|
|
859
|
+
content: d ? A(e) : "",
|
|
859
860
|
kind: "reading",
|
|
860
861
|
active: d
|
|
861
862
|
}],
|
|
862
|
-
...
|
|
863
|
-
]), p = t`<nldd-icon class="file-field__upload-icon" icon="upload-to-cloud" aria-hidden="true"></nldd-icon>`, m = a && !c ?
|
|
863
|
+
...O(e)
|
|
864
|
+
]), p = t`<nldd-icon class="file-field__upload-icon" icon="upload-to-cloud" aria-hidden="true"></nldd-icon>`, m = a && !c ? oe(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`${A(e)}${T(e)}` : t`${p}${m}${f}${h}${T(e)}`;
|
|
864
865
|
return a ? t`<div class="file-field__drop-area" ?inert=${e._refused}>${g}</div>` : t`
|
|
865
866
|
<button class="file-field__choose-button"
|
|
866
867
|
type="button"
|
|
@@ -873,11 +874,11 @@ function oe(e) {
|
|
|
873
874
|
>${g}</button>
|
|
874
875
|
`;
|
|
875
876
|
}
|
|
876
|
-
function
|
|
877
|
-
let [i, a] =
|
|
877
|
+
function ce(e, r) {
|
|
878
|
+
let [i, a] = ie(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>`;
|
|
878
879
|
return t`
|
|
879
880
|
<nldd-tooltip text=${r} timing=${e._nameTruncated ? "delay" : "never"}>
|
|
880
|
-
<span class=${
|
|
881
|
+
<span class=${m({
|
|
881
882
|
"file-field__name": !0,
|
|
882
883
|
"is-wrapped": e._nameLines > 1
|
|
883
884
|
})} aria-hidden="true">${o}</span>
|
|
@@ -885,7 +886,7 @@ function se(e, r) {
|
|
|
885
886
|
<span class="file-field__full-name">${r}</span>
|
|
886
887
|
`;
|
|
887
888
|
}
|
|
888
|
-
function
|
|
889
|
+
function le(e, r) {
|
|
889
890
|
let i = e._valueLabel(), a = e._t("components.file-field.folder-count-short-text", {
|
|
890
891
|
folder: r,
|
|
891
892
|
count: e.files.length
|
|
@@ -908,7 +909,7 @@ function ce(e, r) {
|
|
|
908
909
|
};
|
|
909
910
|
return t`${s(i, "full")}${s(a, "short")}<span class="file-field__full-name">${i}</span>`;
|
|
910
911
|
}
|
|
911
|
-
function
|
|
912
|
+
function ue(e, n) {
|
|
912
913
|
return t`
|
|
913
914
|
<nldd-icon-button class="file-field__more-button"
|
|
914
915
|
appearance="neutral-tinted"
|
|
@@ -920,7 +921,7 @@ function le(e, n) {
|
|
|
920
921
|
?disabled=${e.disabled}
|
|
921
922
|
>
|
|
922
923
|
<nldd-menu slot="popup">
|
|
923
|
-
${e.directory ?
|
|
924
|
+
${e.directory ? j(e) : t`
|
|
924
925
|
<nldd-menu-item
|
|
925
926
|
icon="edit"
|
|
926
927
|
text=${e._t("components.file-field.to-change-action")}
|
|
@@ -938,26 +939,26 @@ function le(e, n) {
|
|
|
938
939
|
</nldd-icon-button>
|
|
939
940
|
`;
|
|
940
941
|
}
|
|
941
|
-
function
|
|
942
|
-
let n = e.files, r = e.variant === "area", i = e.size === "sm" ? "xs" : "sm", a = e._drag !== "none" || e._rejection !== null, o =
|
|
942
|
+
function de(e) {
|
|
943
|
+
let n = e.files, r = e.variant === "area", i = e.size === "sm" ? "xs" : "sm", a = e._drag !== "none" || e._rejection !== null, o = D(e, e._t("components.file-field.replace-drag-text"), e._t("components.file-field.replace-drop-text")).map((e) => ({
|
|
943
944
|
...e,
|
|
944
945
|
active: e.active && a
|
|
945
|
-
})), s = e._folderName(), c = s ?
|
|
946
|
+
})), s = e._folderName(), c = s ? le(e, s) : n.length === 1 ? ce(e, n[0].name) : e._valueLabel();
|
|
946
947
|
return t`
|
|
947
948
|
<div class="file-field__chosen-area" ?inert=${e._refused}>
|
|
948
|
-
<div class=${
|
|
949
|
+
<div class=${m({
|
|
949
950
|
"file-field__chosen-file": !0,
|
|
950
951
|
"is-active": !a
|
|
951
952
|
})}>
|
|
952
|
-
<nldd-icon class="file-field__file-icon" icon=${
|
|
953
|
-
${
|
|
953
|
+
<nldd-icon class="file-field__file-icon" icon=${w(e)} aria-hidden="true"></nldd-icon>
|
|
954
|
+
${E("value", [{
|
|
954
955
|
content: c,
|
|
955
956
|
kind: "idle",
|
|
956
957
|
active: !0
|
|
957
958
|
}])}
|
|
958
959
|
${r ? t`
|
|
959
960
|
<div class="file-field__edit-button-group">
|
|
960
|
-
${
|
|
961
|
+
${M(e, e.size)}
|
|
961
962
|
<nldd-button
|
|
962
963
|
appearance="neutral-base"
|
|
963
964
|
size=${e.size}
|
|
@@ -969,7 +970,7 @@ function ue(e) {
|
|
|
969
970
|
</div>
|
|
970
971
|
` : t`
|
|
971
972
|
<div class="file-field__edit-button-group">
|
|
972
|
-
${
|
|
973
|
+
${M(e, i)}
|
|
973
974
|
<nldd-icon-button class="file-field__clear-button"
|
|
974
975
|
appearance="neutral-transparent"
|
|
975
976
|
size=${i}
|
|
@@ -980,26 +981,26 @@ function ue(e) {
|
|
|
980
981
|
?disabled=${e.disabled}
|
|
981
982
|
@click=${e._handleClear}
|
|
982
983
|
></nldd-icon-button>
|
|
983
|
-
${
|
|
984
|
+
${ue(e, i)}
|
|
984
985
|
</div>
|
|
985
986
|
`}
|
|
986
|
-
${
|
|
987
|
+
${T(e)}
|
|
987
988
|
</div>
|
|
988
|
-
<div class=${
|
|
989
|
+
<div class=${m({
|
|
989
990
|
"file-field__replace-area": !0,
|
|
990
991
|
"is-active": a
|
|
991
992
|
})}>
|
|
992
993
|
<nldd-icon class="file-field__upload-icon" icon="upload-to-cloud" aria-hidden="true"></nldd-icon>
|
|
993
|
-
${
|
|
994
|
-
${
|
|
994
|
+
${E("text", [...o, ...O(e)])}
|
|
995
|
+
${T(e)}
|
|
995
996
|
</div>
|
|
996
997
|
</div>
|
|
997
998
|
`;
|
|
998
999
|
}
|
|
999
|
-
function
|
|
1000
|
+
function fe(e) {
|
|
1000
1001
|
let r = e.files.length > 0 && !e._reading;
|
|
1001
1002
|
return t`
|
|
1002
|
-
<div aria-busy=${e._reading ? "true" : n} class=${
|
|
1003
|
+
<div aria-busy=${e._reading ? "true" : n} class=${m({
|
|
1003
1004
|
"file-field": !0,
|
|
1004
1005
|
"file-field--area": e.variant === "area",
|
|
1005
1006
|
"has-files": r,
|
|
@@ -1027,9 +1028,9 @@ function de(e) {
|
|
|
1027
1028
|
<span class="file-field__menu-anchor"></span>
|
|
1028
1029
|
<nldd-menu class="file-field__choose-menu"
|
|
1029
1030
|
@beforetoggle=${(t) => e._handleMenuToggle(t)}
|
|
1030
|
-
>${
|
|
1031
|
+
>${j(e)}</nldd-menu>
|
|
1031
1032
|
` : n}
|
|
1032
|
-
${r ?
|
|
1033
|
+
${r ? de(e) : se(e)}
|
|
1033
1034
|
${e._refused ? t`
|
|
1034
1035
|
<button class="file-field__dismiss-button"
|
|
1035
1036
|
type="button"
|
|
@@ -1042,7 +1043,7 @@ function de(e) {
|
|
|
1042
1043
|
`;
|
|
1043
1044
|
}
|
|
1044
1045
|
// src/components/inputs/file-field/file-field.drop.ts
|
|
1045
|
-
var
|
|
1046
|
+
var N = {
|
|
1046
1047
|
pdf: ["application/pdf"],
|
|
1047
1048
|
png: ["image/png"],
|
|
1048
1049
|
jpg: ["image/jpeg"],
|
|
@@ -1061,18 +1062,18 @@ var M = {
|
|
|
1061
1062
|
odp: ["application/vnd.oasis.opendocument.presentation"],
|
|
1062
1063
|
docx: ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
|
|
1063
1064
|
xlsx: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]
|
|
1064
|
-
},
|
|
1065
|
+
}, P = {
|
|
1065
1066
|
jpeg: "JPG",
|
|
1066
1067
|
tif: "TIFF"
|
|
1067
1068
|
};
|
|
1068
|
-
function
|
|
1069
|
+
function F(e) {
|
|
1069
1070
|
let t = [], n = (e) => {
|
|
1070
1071
|
t.some((t) => JSON.stringify(t) === JSON.stringify(e)) || t.push(e);
|
|
1071
1072
|
};
|
|
1072
|
-
for (let t of
|
|
1073
|
+
for (let t of L(e)) {
|
|
1073
1074
|
if (t.startsWith(".")) {
|
|
1074
1075
|
let e = t.slice(1);
|
|
1075
|
-
n(
|
|
1076
|
+
n(P[e] ?? e.toUpperCase());
|
|
1076
1077
|
continue;
|
|
1077
1078
|
}
|
|
1078
1079
|
let e = /^(image|video|audio)\/\*$/.exec(t)?.[1];
|
|
@@ -1080,44 +1081,44 @@ function P(e) {
|
|
|
1080
1081
|
n({ family: e });
|
|
1081
1082
|
continue;
|
|
1082
1083
|
}
|
|
1083
|
-
let r = Object.keys(
|
|
1084
|
+
let r = Object.keys(N).find((e) => N[e].includes(t));
|
|
1084
1085
|
if (!r) return null;
|
|
1085
|
-
n(
|
|
1086
|
+
n(P[r] ?? r.toUpperCase());
|
|
1086
1087
|
}
|
|
1087
1088
|
return t.length > 0 ? t : null;
|
|
1088
1089
|
}
|
|
1089
|
-
function
|
|
1090
|
+
function I(e) {
|
|
1090
1091
|
return {
|
|
1091
1092
|
jpeg: "jpg",
|
|
1092
1093
|
tif: "tiff"
|
|
1093
1094
|
}[e] ?? e;
|
|
1094
1095
|
}
|
|
1095
|
-
function
|
|
1096
|
+
function L(e) {
|
|
1096
1097
|
return e.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
|
|
1097
1098
|
}
|
|
1098
|
-
function
|
|
1099
|
+
function R(e, t) {
|
|
1099
1100
|
return e.endsWith("/*") ? t.startsWith(e.slice(0, -1)) : e === t;
|
|
1100
1101
|
}
|
|
1101
|
-
function
|
|
1102
|
-
let n =
|
|
1102
|
+
function z(e, t) {
|
|
1103
|
+
let n = L(e);
|
|
1103
1104
|
if (n.length === 0) return !0;
|
|
1104
|
-
let r = t.name.toLowerCase(), i = t.type.toLowerCase() ||
|
|
1105
|
-
return n.some((e) => e.startsWith(".") ?
|
|
1105
|
+
let r = t.name.toLowerCase(), i = t.type.toLowerCase() || N[r.slice(r.lastIndexOf(".") + 1)]?.[0] || "", a = I(r.slice(r.lastIndexOf(".") + 1));
|
|
1106
|
+
return n.some((e) => e.startsWith(".") ? I(e.slice(1)) === a : R(e, i));
|
|
1106
1107
|
}
|
|
1107
|
-
function
|
|
1108
|
-
let n =
|
|
1108
|
+
function B(e, t) {
|
|
1109
|
+
let n = L(e);
|
|
1109
1110
|
if (n.length === 0 || !t) return !1;
|
|
1110
1111
|
let r = t.toLowerCase();
|
|
1111
1112
|
return n.every((e) => {
|
|
1112
|
-
if (!e.startsWith(".")) return !
|
|
1113
|
-
let t =
|
|
1113
|
+
if (!e.startsWith(".")) return !R(e, r);
|
|
1114
|
+
let t = N[e.slice(1)];
|
|
1114
1115
|
return t !== void 0 && !t.includes(r);
|
|
1115
1116
|
});
|
|
1116
1117
|
}
|
|
1117
|
-
function
|
|
1118
|
+
function V(e) {
|
|
1118
1119
|
return Array.from(e.items).some((e) => e.kind === "file" && e.webkitGetAsEntry?.()?.isDirectory);
|
|
1119
1120
|
}
|
|
1120
|
-
function
|
|
1121
|
+
function pe(e) {
|
|
1121
1122
|
let t = Array.from(e.items).filter((e) => e.kind === "file").map((e) => e.webkitGetAsEntry?.()).filter((e) => !!e);
|
|
1122
1123
|
return Promise.all(t.map(H)).then((e) => e.flat());
|
|
1123
1124
|
}
|
|
@@ -1139,7 +1140,7 @@ function W(e) {
|
|
|
1139
1140
|
let t = e[0];
|
|
1140
1141
|
return t instanceof HTMLElement ? t.isContentEditable || t instanceof HTMLTextAreaElement || t instanceof HTMLInputElement && t.type === "file" : !1;
|
|
1141
1142
|
}
|
|
1142
|
-
var G = /* @__PURE__ */ new Set(),
|
|
1143
|
+
var G = /* @__PURE__ */ new Set(), me = 1e3, K;
|
|
1143
1144
|
function q() {
|
|
1144
1145
|
clearTimeout(K);
|
|
1145
1146
|
for (let e of G) e._setDrag("none", null);
|
|
@@ -1148,23 +1149,23 @@ function J(e) {
|
|
|
1148
1149
|
if (!U(e.dataTransfer)) return;
|
|
1149
1150
|
let t = e.composedPath();
|
|
1150
1151
|
for (let n of G) n._setDrag(t.includes(n) ? "over" : "page", e.dataTransfer);
|
|
1151
|
-
clearTimeout(K), K = setTimeout(q,
|
|
1152
|
+
clearTimeout(K), K = setTimeout(q, me), e.defaultPrevented || W(t) || (e.preventDefault(), e.dataTransfer.dropEffect = "none");
|
|
1152
1153
|
}
|
|
1153
1154
|
function Y(e) {
|
|
1154
1155
|
U(e.dataTransfer) && (!e.defaultPrevented && !W(e.composedPath()) && e.preventDefault(), q());
|
|
1155
1156
|
}
|
|
1156
|
-
function
|
|
1157
|
+
function he(e) {
|
|
1157
1158
|
G.size === 0 && (window.addEventListener("dragover", J), window.addEventListener("drop", Y), window.addEventListener("dragend", q)), G.add(e);
|
|
1158
1159
|
}
|
|
1159
|
-
function
|
|
1160
|
+
function ge(e) {
|
|
1160
1161
|
G.delete(e), G.size > 0 || (window.removeEventListener("dragover", J), window.removeEventListener("drop", Y), window.removeEventListener("dragend", q), clearTimeout(K));
|
|
1161
1162
|
}
|
|
1162
1163
|
// src/utilities/file-drag-and-drop.ts
|
|
1163
1164
|
var X = "(hover: none)";
|
|
1164
|
-
function
|
|
1165
|
+
function Z() {
|
|
1165
1166
|
return typeof matchMedia != "function" || !matchMedia(X).matches;
|
|
1166
1167
|
}
|
|
1167
|
-
var
|
|
1168
|
+
var _e = class {
|
|
1168
1169
|
constructor(e, t) {
|
|
1169
1170
|
this._query = typeof matchMedia == "function" ? matchMedia(X) : null, this._handleChange = () => this._onChange(), this._onChange = t ?? (() => e.requestUpdate()), e.addController(this);
|
|
1170
1171
|
}
|
|
@@ -1174,22 +1175,22 @@ var Z = class {
|
|
|
1174
1175
|
hostDisconnected() {
|
|
1175
1176
|
this._query?.removeEventListener("change", this._handleChange);
|
|
1176
1177
|
}
|
|
1177
|
-
}, Q,
|
|
1178
|
+
}, Q, ve = 4e3, ye = 1e3, be = 300, xe = {
|
|
1178
1179
|
image: "components.file-field.image-lowercase",
|
|
1179
1180
|
video: "components.file-field.video-lowercase",
|
|
1180
1181
|
audio: "components.file-field.audio-file-lowercase"
|
|
1181
|
-
}, $ = (Q = class extends
|
|
1182
|
+
}, $ = (Q = class extends g(l(e)) {
|
|
1182
1183
|
constructor(...e) {
|
|
1183
|
-
super(...e), this.variant = "control", this.size = "md", this.accessibleLabel = "", this.valid = !1, this.invalid = !1, this.name = "", this.inputId = "", this.accept = "", this.multiple = !1, this.directory = !1, this.required = !1, this.disabled = !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
|
|
1184
|
+
super(...e), this.variant = "control", this.size = "md", this.accessibleLabel = "", this.valid = !1, this.invalid = !1, this.name = "", this.inputId = "", this.accept = "", this.multiple = !1, this.directory = !1, this.required = !1, this.disabled = !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 _e(this), this._action = 0, this._handleDragOver = (e) => {
|
|
1184
1185
|
!this.disabled && e.dataTransfer && U(e.dataTransfer) && (this._judge(e.dataTransfer) || (e.preventDefault(), e.dataTransfer.dropEffect = "copy"));
|
|
1185
1186
|
}, this._handleDrop = (e) => {
|
|
1186
1187
|
if (!e.dataTransfer || !U(e.dataTransfer) || (e.preventDefault(), this.disabled)) return;
|
|
1187
1188
|
let t = ++this._action;
|
|
1188
1189
|
this._stopReading();
|
|
1189
1190
|
let n = Array.from(e.dataTransfer.files), r = this._judge(e.dataTransfer, n);
|
|
1190
|
-
r ? this._refuse(r) :
|
|
1191
|
+
r ? this._refuse(r) : V(e.dataTransfer) ? (this._readingTimer = setTimeout(() => {
|
|
1191
1192
|
this._reading = !0;
|
|
1192
|
-
},
|
|
1193
|
+
}, ye), pe(e.dataTransfer).then((e) => {
|
|
1193
1194
|
t === this._action && (this._stopReading(), e.length ? this._takeDrop(e) : this._refuse("empty-folder"));
|
|
1194
1195
|
}, () => {
|
|
1195
1196
|
t === this._action && (this._stopReading(), this._refuse("unreadable-folder"));
|
|
@@ -1217,13 +1218,13 @@ var Z = class {
|
|
|
1217
1218
|
return this._rejection !== null && this._drag === "none";
|
|
1218
1219
|
}
|
|
1219
1220
|
_t(e, t) {
|
|
1220
|
-
return
|
|
1221
|
+
return ee(this.translations, h, e, t);
|
|
1221
1222
|
}
|
|
1222
1223
|
_chooseLabel() {
|
|
1223
1224
|
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");
|
|
1224
1225
|
}
|
|
1225
1226
|
_chooseAccessibleLabel() {
|
|
1226
|
-
let e =
|
|
1227
|
+
let e = Z() ? this._multiple ? this._t("components.file-field.drop-hint-multiple-lowercase-text") : this._t("components.file-field.drop-hint-lowercase-text") : "", t = this.variant === "area" ? this._acceptTypes() : null;
|
|
1227
1228
|
return [
|
|
1228
1229
|
e ? `${this._chooseLabel()} ${e}` : this._chooseLabel(),
|
|
1229
1230
|
t ? this._t("components.file-field.accepted-types-text", { types: t }) : "",
|
|
@@ -1241,9 +1242,9 @@ var Z = class {
|
|
|
1241
1242
|
return `${this._t("components.file-field.clear-action")}, ${this._valueLabel()}`;
|
|
1242
1243
|
}
|
|
1243
1244
|
_acceptTypes() {
|
|
1244
|
-
let e =
|
|
1245
|
+
let e = F(this.accept);
|
|
1245
1246
|
if (!e) return null;
|
|
1246
|
-
let t = e.map((e) => typeof e == "string" ? e : this._t(
|
|
1247
|
+
let t = e.map((e) => typeof e == "string" ? e : this._t(xe[e.family]));
|
|
1247
1248
|
return t.length === 1 ? t[0] : this._t("components.file-field.list-lowercase-text", {
|
|
1248
1249
|
items: t.slice(0, -1).join(", "),
|
|
1249
1250
|
last: t[t.length - 1]
|
|
@@ -1272,12 +1273,12 @@ var Z = class {
|
|
|
1272
1273
|
return e.size === 1 && t ? t : null;
|
|
1273
1274
|
}
|
|
1274
1275
|
connectedCallback() {
|
|
1275
|
-
super.connectedCallback(),
|
|
1276
|
+
super.connectedCallback(), he(this), this._resizeObserver ?? (this._resizeObserver = new ResizeObserver(() => this._fitName())), this._resizeObserver.observe(this), document.fonts?.ready.then(() => {
|
|
1276
1277
|
this.isConnected && this._fitName();
|
|
1277
1278
|
}), this.addEventListener("dragover", this._handleDragOver), this.addEventListener("drop", this._handleDrop), this.addEventListener("keydown", this._handleKeydown);
|
|
1278
1279
|
}
|
|
1279
1280
|
disconnectedCallback() {
|
|
1280
|
-
super.disconnectedCallback(),
|
|
1281
|
+
super.disconnectedCallback(), ge(this), this._resizeObserver?.disconnect(), clearTimeout(this._rejectionTimer), this._stopReading(), this._observedValue = void 0, this.removeEventListener("dragover", this._handleDragOver), this.removeEventListener("drop", this._handleDrop), this.removeEventListener("keydown", this._handleKeydown);
|
|
1281
1282
|
}
|
|
1282
1283
|
updated(e) {
|
|
1283
1284
|
(e.has("_files") || e.has("size") || e.has("variant") || e.has("_drag")) && this._fitNameAfterRender();
|
|
@@ -1313,9 +1314,9 @@ var Z = class {
|
|
|
1313
1314
|
}
|
|
1314
1315
|
let s = this._files[0].name;
|
|
1315
1316
|
if (o === 1) {
|
|
1316
|
-
let { measure: e, done: t } =
|
|
1317
|
+
let { measure: e, done: t } = S(r);
|
|
1317
1318
|
try {
|
|
1318
|
-
let { text: t, truncated: n } =
|
|
1319
|
+
let { text: t, truncated: n } = ae(s, a, e);
|
|
1319
1320
|
this._fittedName = t, this._nameTruncated = n;
|
|
1320
1321
|
} finally {
|
|
1321
1322
|
t();
|
|
@@ -1326,9 +1327,9 @@ var Z = class {
|
|
|
1326
1327
|
this._fittedName = c, this._nameTruncated = l;
|
|
1327
1328
|
}
|
|
1328
1329
|
_cutToLines(e, t, n, r, i = (e) => e, a = !0) {
|
|
1329
|
-
let { fits: o, done: s } =
|
|
1330
|
+
let { fits: o, done: s } = x(e, t, n);
|
|
1330
1331
|
try {
|
|
1331
|
-
return
|
|
1332
|
+
return b(r, (e) => o(i(e)), { keepExtension: a });
|
|
1332
1333
|
} finally {
|
|
1333
1334
|
s();
|
|
1334
1335
|
}
|
|
@@ -1353,7 +1354,7 @@ var Z = class {
|
|
|
1353
1354
|
t.hidePopover();
|
|
1354
1355
|
return;
|
|
1355
1356
|
}
|
|
1356
|
-
if (performance.now() - this._menuClosedAt <
|
|
1357
|
+
if (performance.now() - this._menuClosedAt < be) return;
|
|
1357
1358
|
t.anchorElement = e.currentTarget.classList.contains("file-field__choose-button") && this._pointAt(e) || e.currentTarget, t.showPopover();
|
|
1358
1359
|
} else this._input?.click();
|
|
1359
1360
|
}
|
|
@@ -1382,15 +1383,15 @@ var Z = class {
|
|
|
1382
1383
|
this._files = t.files ? Array.from(t.files) : [], this._paths = this._files.map((e) => e.webkitRelativePath || e.name), this._clearRejection(), this._commit(), r && this.updateComplete.then(() => this.focus());
|
|
1383
1384
|
}
|
|
1384
1385
|
_judge(e, t) {
|
|
1385
|
-
if (t) return !this._multiple && t.length > 1 ? "count" :
|
|
1386
|
+
if (t) return !this._multiple && t.length > 1 ? "count" : V(e) ? this._multiple ? null : "folder" : t.every((e) => z(this.accept, e)) ? null : "type";
|
|
1386
1387
|
let n = Array.from(e.items).filter((e) => e.kind === "file");
|
|
1387
|
-
return !this._multiple && n.length > 1 ? "count" : n.some((e) =>
|
|
1388
|
+
return !this._multiple && n.length > 1 ? "count" : n.some((e) => B(this.accept, e.type)) ? "type" : null;
|
|
1388
1389
|
}
|
|
1389
1390
|
_setDrag(e, t) {
|
|
1390
1391
|
this.disabled && (e = "none"), (e === "over" || e !== this._drag) && (e !== "none" && this._drag === "none" && this._clearRejection(), this._dragRejection = e === "over" && t ? this._judge(t) : null, this._drag = this._dragRejection ? "rejected" : e);
|
|
1391
1392
|
}
|
|
1392
1393
|
_takeDrop(e) {
|
|
1393
|
-
if (!e.every(({ file: e }) =>
|
|
1394
|
+
if (!e.every(({ file: e }) => z(this.accept, e))) {
|
|
1394
1395
|
this._refuse("type");
|
|
1395
1396
|
return;
|
|
1396
1397
|
}
|
|
@@ -1402,7 +1403,7 @@ var Z = class {
|
|
|
1402
1403
|
let t = this.matches(":focus-within");
|
|
1403
1404
|
this._rejection = e, clearTimeout(this._rejectionTimer), this._rejectionTimer = setTimeout(() => {
|
|
1404
1405
|
this._clearRejection(), this._announcement = this._rejectionText(e);
|
|
1405
|
-
},
|
|
1406
|
+
}, ve), t && this.updateComplete.then(() => this.focus());
|
|
1406
1407
|
}
|
|
1407
1408
|
_stopReading() {
|
|
1408
1409
|
clearTimeout(this._readingTimer), this._reading = !1;
|
|
@@ -1455,15 +1456,15 @@ var Z = class {
|
|
|
1455
1456
|
return Array.from(t).find((e) => !e.matches(".file-field__change-button, .file-field__more-button") || (e.checkVisibility?.() ?? !0)) ?? t[0] ?? null;
|
|
1456
1457
|
}
|
|
1457
1458
|
focus(e) {
|
|
1458
|
-
|
|
1459
|
+
_(this, e) || this._chooseButton()?.focus(e);
|
|
1459
1460
|
}
|
|
1460
1461
|
describedTarget() {
|
|
1461
1462
|
return this._chooseButton();
|
|
1462
1463
|
}
|
|
1463
1464
|
render() {
|
|
1464
|
-
return
|
|
1465
|
+
return fe(this);
|
|
1465
1466
|
}
|
|
1466
|
-
}, Q.styles =
|
|
1467
|
+
}, Q.styles = te, Q.isFormInput = !0, Q);
|
|
1467
1468
|
r([a({
|
|
1468
1469
|
reflect: !0,
|
|
1469
1470
|
converter: u("control")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, o as t, t as n } from "./decorate-
|
|
2
|
-
import { c as r, r as i, s as a } from "./custom-element-
|
|
1
|
+
import { n as e, o as t, t as n } from "./decorate-CIC8fGPN.js";
|
|
2
|
+
import { c as r, r as i, s as a } from "./custom-element-7tLnKgZE.js";
|
|
3
3
|
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { a as s } from "./element-state-D-J_cHEV.js";
|
|
5
5
|
import { n as c } from "./breakpoints-Cwor8TRP.js";
|