@nldd/design-system 0.29.2 → 0.30.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 +486 -214
- package/dist/assets/styles/shadow-resets.d.ts +22 -7
- package/dist/assets/styles/shadow-resets.d.ts.map +1 -1
- package/dist/assets/styles/shadow-resets.js +30 -1
- package/dist/assets/styles/shadow-resets.js.map +1 -1
- package/dist/assets/styles/text-wrap.d.ts +20 -4
- package/dist/assets/styles/text-wrap.d.ts.map +1 -1
- package/dist/assets/styles/text-wrap.js +27 -5
- package/dist/assets/styles/text-wrap.js.map +1 -1
- package/dist/cdn/autoloader.js +139 -140
- package/dist/cdn/chunks/{accordion-BIgPiBgT.js → accordion-DgR70Lf-.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-YHiK4fhb.js → accordion-item-BDevWF9t.js} +6 -5
- package/dist/cdn/chunks/{activity-indicator-BiuU--e6.js → activity-indicator-B-iqA8XF.js} +6 -9
- package/dist/cdn/chunks/{admonition-CpxxWW6f.js → admonition-PKX7ePb3.js} +6 -5
- package/dist/cdn/chunks/{avatar-DeeEjbzl.js → avatar-Bm_cbn5X.js} +6 -6
- package/dist/cdn/chunks/{avatar-group-Ey17PhOt.js → avatar-group-5XxwtbbC.js} +15 -15
- package/dist/cdn/chunks/{badge-B0K1AVec.js → badge-CpxDQfHS.js} +31 -29
- package/dist/cdn/chunks/{banner-YQpzU7Yz.js → banner-Ccc9LgDk.js} +8 -8
- package/dist/cdn/chunks/{bar-split-view-DNWrGLv3.js → bar-split-view-0yxggCZe.js} +5 -5
- package/dist/cdn/chunks/{blockquote-zBgtNbdZ.js → blockquote-CmbDjlPB.js} +32 -31
- package/dist/cdn/chunks/{box-CLEd1Y-1.js → box-DQjgR2YI.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-DCwiSLxQ.js → breadcrumbs-C8yzb9pA.js} +6 -6
- package/dist/cdn/chunks/{button-DpSJe6ns.js → button-D_KfPyHS.js} +113 -90
- package/dist/cdn/chunks/{button-bar-Bw46AWOo.js → button-bar-f-qcw_zA.js} +3 -3
- package/dist/cdn/chunks/{button-group-Bd5CZm4t.js → button-group-Dq3q44jB.js} +2 -2
- package/dist/cdn/chunks/{card-xq9jqLek.js → card-CDT7nkKG.js} +4 -4
- package/dist/cdn/chunks/{cell-CNGu9Srs.js → cell-B7ksoCyd.js} +6 -6
- package/dist/cdn/chunks/{checkbox-DJU2ntYs.js → checkbox-CUReiYVg.js} +5 -5
- package/dist/cdn/chunks/{checkbox-field-36mh4uD-.js → checkbox-field-CkQ8WLSq.js} +8 -8
- package/dist/cdn/chunks/{checkbox-group-CaoyYQC1.js → checkbox-group-BpDzGuFk.js} +3 -3
- package/dist/cdn/chunks/{class-map-07EioFee.js → class-map-BQWXee9F.js} +1 -1
- package/dist/cdn/chunks/{code-editor-CqHXUdbC.js → code-editor-CwLcukqn.js} +15 -5
- package/dist/cdn/chunks/{code-viewer-ro55V04o.js → code-viewer-CvSF5fyg.js} +37 -10
- package/dist/cdn/chunks/{codemirror-input-D4u8naKh.js → codemirror-input-CcaHTu9u.js} +5 -5
- package/dist/cdn/chunks/{collection-DVED8Kff.js → collection-DqqkdrVS.js} +8 -8
- package/dist/cdn/chunks/{combo-box-CMdGMQ8q.js → combo-box-BQ9jS1fP.js} +19 -10
- package/dist/cdn/chunks/{container-BxfHTSXb.js → container-BC5PiMvR.js} +83 -82
- package/dist/cdn/chunks/{custom-element-7tLnKgZE.js → custom-element-DGdiDiuN.js} +1 -1
- package/dist/cdn/chunks/{date-field-KrAEvvJg.js → date-field-Dmli_GlI.js} +12 -12
- package/dist/cdn/chunks/{date-picker-CeyTd4Mj.js → date-picker-BCHBh6vd.js} +15 -17
- package/dist/cdn/chunks/{decorate-CIC8fGPN.js → decorate-D2snH_th.js} +1 -1
- package/dist/cdn/chunks/described-by-mixin-Doan1yj6.js +106 -0
- package/dist/cdn/chunks/{description-cell-DDjPf92m.js → description-cell-QL0CUcxH.js} +7 -7
- package/dist/cdn/chunks/{dev-checks-DE09CTk9.js → dev-checks-BQsZ10CZ.js} +41 -11
- package/dist/cdn/chunks/{directive-helpers-DUlH8eNt.js → directive-helpers-BtIbEaBv.js} +1 -1
- package/dist/cdn/chunks/{dist-DJ_2VKiG.js → dist-0sEOO4c9.js} +3 -3
- package/dist/cdn/chunks/{dist-CanlbdZP.js → dist-BX-aE56q.js} +1 -1
- package/dist/cdn/chunks/{dist-Cku1NQ9X.js → dist-CJ-hLN4o.js} +2 -2
- package/dist/cdn/chunks/{dist-DuaPU_hA.js → dist-CUCs0edm.js} +2 -2
- package/dist/cdn/chunks/{dist-BV06hHwA.js → dist-CeovKDYB.js} +3 -3
- package/dist/cdn/chunks/{dist-Dpc1YfbE.js → dist-CoM5yDHD.js} +1 -1
- package/dist/cdn/chunks/{dist-DtpgX9L8.js → dist-DM49yEzE.js} +2 -2
- package/dist/cdn/chunks/{dist-3XSbEdbz.js → dist-DizTxYTi.js} +1 -1
- package/dist/cdn/chunks/{dist-lUsXGXhR.js → dist-Dj0pXI2B.js} +1 -1
- package/dist/cdn/chunks/{dist-DsE-63gX.js → dist-Dtn2rsM6.js} +1 -1
- package/dist/cdn/chunks/{dist-CLyXDlop.js → dist-QheJD595.js} +1 -1
- package/dist/cdn/chunks/{divider-BixGehzs.js → divider-D8o0JPE2.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-BlP7NEb9.js → document-tab-bar-BX6UhFBl.js} +10 -13
- package/dist/cdn/chunks/{dropdown-DpCdMFod.js → dropdown-afozwXVW.js} +5 -5
- package/dist/cdn/chunks/{file-field-CYjsw4xy.js → file-field-BKhUYcHf.js} +109 -106
- package/dist/cdn/chunks/{form-DDB03czp.js → form-DnZIiX9b.js} +1 -1
- package/dist/cdn/chunks/{form-actions-DZgcVawx.js → form-actions-Ddg9vIVq.js} +2 -2
- package/dist/cdn/chunks/{form-associated-mixin-9cC5HSCG.js → form-associated-mixin-BMQQpMlL.js} +2 -2
- package/dist/cdn/chunks/form-field-DDBYuAl_.js +405 -0
- package/dist/cdn/chunks/form-field.i18n-D-3yEP-C.js +6 -0
- package/dist/cdn/chunks/form-section-Co0TM35-.js +78 -0
- package/dist/cdn/chunks/{full-bleed-section-enjghRsm.js → full-bleed-section-DD8ibmsa.js} +3 -3
- package/dist/cdn/chunks/{hero-AHBPM3ks.js → hero-BYrY2MZc.js} +7 -7
- package/dist/cdn/chunks/{icon-C_xeQP4j.js → icon-BzeHXcdi.js} +26 -9
- package/dist/cdn/chunks/{icon-button-CkNgX7Ra.js → icon-button-BErQf42w.js} +65 -62
- package/dist/cdn/chunks/{icon-cell-qieQ2vyq.js → icon-cell-DGIMXKxK.js} +5 -5
- package/dist/cdn/chunks/{identity-CnYwgyF7.js → identity-Cq-WnU6u.js} +30 -27
- package/dist/cdn/chunks/{if-defined-BG5WQE1B.js → if-defined-CuY6t6gH.js} +1 -1
- package/dist/cdn/chunks/{image--K2M19ce.js → image-BjjyqV0V.js} +23 -22
- package/dist/cdn/chunks/{inline-dialog-CfiC1tbk.js → inline-dialog-Bk2G7f5r.js} +24 -23
- package/dist/cdn/chunks/{just-in-time-education-Dxca2LqF.js → just-in-time-education-Dxh5DNCy.js} +5 -5
- package/dist/cdn/chunks/{kanban-Dwb93dgS.js → kanban-BvmtB9D9.js} +7 -8
- package/dist/cdn/chunks/{kanban-column-Br4GovWU.js → kanban-column-CJ2g7pgA.js} +9 -11
- package/dist/cdn/chunks/{keyboard-shortcut-a-CkABX1.js → keyboard-shortcut-BV5DFQtT.js} +3 -3
- package/dist/cdn/chunks/{languages-BrBEUYzL.js → languages-DJjHEjGl.js} +1603 -1602
- package/dist/cdn/chunks/{link-CROYAF4K.js → link-BcukwT5Y.js} +6 -6
- package/dist/cdn/chunks/{link-group-pbOW9KCb.js → link-group-Ci1q3uEd.js} +2 -2
- package/dist/cdn/chunks/{list-D_BWUBh4.js → list-CFFHWUSC.js} +9 -9
- package/dist/cdn/chunks/{list-item-DeFrncLo.js → list-item-Bg1NyOXd.js} +12 -13
- package/dist/cdn/chunks/{list-item-segment-C1X5v2_Z.js → list-item-segment-DJ8pk08-.js} +4 -4
- package/dist/cdn/chunks/{menu-CkMJUE0H.js → menu-BEjqhn1-.js} +10 -10
- package/dist/cdn/chunks/{menu-bar-B3F-QjLV.js → menu-bar-DkjXy-TE.js} +6 -6
- package/dist/cdn/chunks/{menu-bar-item-CyixR7Fi.js → menu-bar-item-3cJS29Ey.js} +6 -6
- package/dist/cdn/chunks/{menu-divider-uBPiSPsv.js → menu-divider-CYmEimsb.js} +3 -3
- package/dist/cdn/chunks/{menu-group-BXS5r-lc.js → menu-group-ggwAcgis.js} +4 -4
- package/dist/cdn/chunks/{menu-item-CORxUt3u.js → menu-item-BzH9H87h.js} +4 -4
- package/dist/cdn/chunks/{menu.template-NyA_JtUm.js → menu.template-PG82-P20.js} +6 -6
- package/dist/cdn/chunks/{modal-dialog-Dt5uenA0.js → modal-dialog-Bu7ETELf.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-CkCvyJov.js → multi-line-text-field-CQTKNBN7.js} +6 -6
- package/dist/cdn/chunks/{navigation-split-view-Clp3Camr.js → navigation-split-view-elMoUjHh.js} +13 -15
- package/dist/cdn/chunks/{nl.generated-B194RR-y.js → nl.generated-Lu29XEF3.js} +1 -1
- package/dist/cdn/chunks/{notification-B36JO2cS.js → notification-DCjXGfbY.js} +7 -7
- package/dist/cdn/chunks/{number-field-Cjrwd3G0.js → number-field-BUQUcG--.js} +8 -8
- package/dist/cdn/chunks/{one-half-one-half-section-Bc4rFjtM.js → one-half-one-half-section-DiGkeUVr.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-DikIdU3X.js → one-third-two-thirds-section-q_AP4qIJ.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-CqNmLld4.js → one-time-code-field-BybS_l6h.js} +9 -10
- package/dist/cdn/chunks/{overflow-menu-6tdlRjhY.js → overflow-menu-Duey_XJs.js} +1 -1
- package/dist/cdn/chunks/{page-CpdGz0K6.js → page-BrIeWp1b.js} +112 -46
- package/dist/cdn/chunks/{page-footer-_W5dGcQt.js → page-footer-DPQg9Qbw.js} +5 -5
- package/dist/cdn/chunks/{page-section-mixin-DSdHIkwR.js → page-section-mixin-B8FbeXaK.js} +3 -3
- package/dist/cdn/chunks/{pagination-DJqmp7nt.js → pagination-CfLJwflH.js} +37 -36
- package/dist/cdn/chunks/{password-field-JKBHK_MQ.js → password-field-CmoopbNF.js} +36 -35
- package/dist/cdn/chunks/{popover-LljgfgHS.js → popover-CPAR4N_a.js} +5 -5
- package/dist/cdn/chunks/{progress-bar-fILD82bn.js → progress-bar-vKGXvxfe.js} +10 -11
- package/dist/cdn/chunks/{progress-circle-72YbT9v1.js → progress-circle-dweisHzt.js} +8 -8
- package/dist/cdn/chunks/{radio-button-B45WY4fZ.js → radio-button-DE1K49_2.js} +4 -4
- package/dist/cdn/chunks/{radio-button-field-CG2ljZ-j.js → radio-button-field-DCrWiVoA.js} +7 -7
- package/dist/cdn/chunks/{radio-button-group-DgQHIiXR.js → radio-button-group-oLP_1cGy.js} +3 -3
- package/dist/cdn/chunks/{render-marked-vXU387IN.js → render-marked-BE3kBc1D.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-Bc0LM08A.js → reorder-handle-cell-COCN6knt.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-DIkeFpRU.js → reorder-handle-mixin-CG-KhmuT.js} +2 -2
- package/dist/cdn/chunks/{repeat-Cy1a-r4p.js → repeat-D69H_dsv.js} +2 -2
- package/dist/cdn/chunks/{rich-text-BZ6J0VNi.js → rich-text-jEyIU58i.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-CnCxMteQ.js → row-header-mixin-BejxhOCs.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-BoXGZJeO.js → scroll-fade-Cae9xqXr.js} +2 -2
- package/dist/cdn/chunks/{search-field-BaPPorsw.js → search-field-B8woxFh-.js} +40 -37
- package/dist/cdn/chunks/{segmented-control-CY7eFebV.js → segmented-control-DbOi6Wk6.js} +7 -7
- package/dist/cdn/chunks/{shadow-resets-kAFcguCG.js → shadow-resets-CNmJbdJw.js} +26 -11
- package/dist/cdn/chunks/{sheet-EvUuqzd5.js → sheet-bK663_K4.js} +4 -4
- package/dist/cdn/chunks/{shell-ZiZriusi.js → shell-DLu1fHOH.js} +3 -3
- package/dist/cdn/chunks/{side-by-side-split-view-qj871uv2.js → side-by-side-split-view-vNhUmTiE.js} +4 -4
- package/dist/cdn/chunks/{sidebar-section-C2KLgpwu.js → sidebar-section-CoE5F_h5.js} +8 -8
- package/dist/cdn/chunks/{simple-section-CVQRynxS.js → simple-section-1v7a_ZgI.js} +3 -3
- package/dist/cdn/chunks/{skip-link-CpxEwJKH.js → skip-link-C6B6mMkA.js} +5 -5
- package/dist/cdn/chunks/{slider-DHY89yV6.js → slider-BT-q6SP2.js} +12 -16
- package/dist/cdn/chunks/{spacer-BDRDeRQr.js → spacer-DlFn3NtV.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-DvUxqmbS.js → spacer-cell-Dy_twSDQ.js} +4 -4
- package/dist/cdn/chunks/{split-button-DGzX2W4w.js → split-button-URHM5eTx.js} +7 -7
- package/dist/cdn/chunks/{split-view-divider-BQdN8I8c.js → split-view-divider-DeLyeDBx.js} +2 -2
- package/dist/cdn/chunks/{stacked-split-view-CdXyXpzb.js → stacked-split-view-D0kiQJmL.js} +4 -4
- package/dist/cdn/chunks/{static-html-ooiG7-by.js → static-html-CAKb1-Ht.js} +1 -1
- package/dist/cdn/chunks/{status-bar-S5IvBhAD.js → status-bar-Bov-LrPy.js} +4 -4
- package/dist/cdn/chunks/{step-bar-pkYf_gF8.js → step-bar-BLtsl_S_.js} +6 -6
- package/dist/cdn/chunks/{step-cell-3yG-UCmv.js → step-cell-cxM7vhtH.js} +5 -5
- package/dist/cdn/chunks/{stepper-DIufBp3c.js → stepper-DeIcLT7G.js} +7 -7
- package/dist/cdn/chunks/{style-map-DP8rklU9.js → style-map-CQX4CmTz.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-uyMsXHeI.js → swatch-picker-A7AU6Agu.js} +6 -6
- package/dist/cdn/chunks/{switch-DQ3UDIy5.js → switch-D0UPsKws.js} +5 -5
- package/dist/cdn/chunks/{switch-field-BXH62I0E.js → switch-field-D63lc5C0.js} +7 -7
- package/dist/cdn/chunks/{tab-bar-B2m7RGKe.js → tab-bar-CzGSRfKd.js} +8 -8
- package/dist/cdn/chunks/{table-Dtg4t_dM.js → table-DfunY2Dn.js} +5 -5
- package/dist/cdn/chunks/{tag-BdB8MDQQ.js → tag-DSWjjDBo.js} +5 -5
- package/dist/cdn/chunks/{term-DD2K8Qqb.js → term-Bk9cdlCz.js} +12 -12
- package/dist/cdn/chunks/{text-C8iP63bA.js → text-CDBiVulh.js} +4 -4
- package/dist/cdn/chunks/{text-cell-1pWwBLLI.js → text-cell-DUOJAXZo.js} +40 -37
- package/dist/cdn/chunks/{text-editor-DjNky4l-.js → text-editor-BIbYF0AB.js} +22 -12
- package/dist/cdn/chunks/{text-field-ClVrHYGz.js → text-field-CAnQNcXB.js} +6 -6
- package/dist/cdn/chunks/{text-wrap-DJ9PcwZ4.js → text-wrap-COu7AY91.js} +13 -5
- package/dist/cdn/chunks/{time-field-CrwLpzZp.js → time-field-xriXgFMl.js} +14 -14
- package/dist/cdn/chunks/{time-picker-BYhEzGJL.js → time-picker-D3_KbYUW.js} +6 -6
- package/dist/cdn/chunks/{title-DdqeERnM.js → title-HPn4c-s5.js} +5 -5
- package/dist/cdn/chunks/title-bar-label-controller-DHJwXI9W.js +27 -0
- package/dist/cdn/chunks/{title-cell-C4U3rN33.js → title-cell-BXMZkbXf.js} +51 -48
- package/dist/cdn/chunks/{toggle-button-CknaEM8j.js → toggle-button-DY22KEwY.js} +72 -56
- package/dist/cdn/chunks/{toggle-button-group-CxyhERqD.js → toggle-button-group-DsjZofEG.js} +2 -2
- package/dist/cdn/chunks/{token-I0vH42iy.js → token-DwT2i71b.js} +5 -5
- package/dist/cdn/chunks/{token-field-B1sAqN0B.js → token-field-CQxSARGi.js} +11 -11
- package/dist/cdn/chunks/{toolbar-DRIyU8-Z.js → toolbar-CaDvhCqm.js} +69 -68
- package/dist/cdn/chunks/{toolbar-item-D1JDaFal.js → toolbar-item-BDl4ys-w.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-D7CCOmDz.js → toolbar-title-yGR8Hzhp.js} +4 -4
- package/dist/cdn/chunks/{toolbar.styles-CXjPigMk.js → toolbar.styles-DlyfZkRq.js} +3 -3
- package/dist/cdn/chunks/{tooltip-5clp5S3T.js → tooltip-BDiYghAz.js} +5 -5
- package/dist/cdn/chunks/{top-navigation-bar-CEuIAOoy.js → top-navigation-bar-ibsjezN_.js} +18 -18
- package/dist/cdn/chunks/{top-title-bar-M3NiRgr_.js → top-title-bar-BKdwEZfj.js} +15 -12
- package/dist/cdn/chunks/{two-thirds-one-third-section-BJGAw7Mq.js → two-thirds-one-third-section-DmumCsGo.js} +3 -3
- package/dist/cdn/chunks/{validation-list-CTb7X_Gq.js → validation-list-CXcJfvOJ.js} +61 -49
- package/dist/cdn/chunks/{visibility-mixin-BgnkZDZM.js → visibility-mixin-C7s59UlL.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-B4_jKNA7.js → visually-hidden-CMzKHcSc.js} +2 -2
- package/dist/cdn/chunks/{window-BmxrtW9P.js → window-CSNx5wt1.js} +5 -5
- package/dist/cdn/chunks/{with-translations-DSfo7eL-.js → with-translations-0oyNXfdD.js} +3 -3
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +26 -7
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +7 -5
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +4 -2
- package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +4 -2
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +2 -1
- package/dist/components/actions/toolbar/toolbar.template.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 +1 -0
- package/dist/components/content/accordion/accordion-item.styles.js.map +1 -1
- package/dist/components/content/admonition/admonition.d.ts +1 -1
- package/dist/components/content/admonition/admonition.js +1 -1
- package/dist/components/content/admonition/admonition.styles.d.ts.map +1 -1
- package/dist/components/content/admonition/admonition.styles.js +1 -0
- package/dist/components/content/admonition/admonition.styles.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.template.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.template.js +2 -1
- package/dist/components/content/blockquote/blockquote.template.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +30 -3
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +10 -2
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-categories.d.ts.map +1 -1
- package/dist/components/content/icon/icon-categories.js +13 -0
- package/dist/components/content/icon/icon-categories.js.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.js +25 -52
- package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
- package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
- package/dist/components/content/icon/icon-registry.js +19 -6
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +8 -5
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +8 -5
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/identity/identity.styles.d.ts.map +1 -1
- package/dist/components/content/identity/identity.styles.js +4 -1
- package/dist/components/content/identity/identity.styles.js.map +1 -1
- package/dist/components/content/image/image.template.d.ts.map +1 -1
- package/dist/components/content/image/image.template.js +9 -8
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +4 -2
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +4 -2
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/text/text.d.ts +2 -0
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +2 -0
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +138 -73
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.i18n.d.ts +1 -0
- package/dist/components/forms/form-field/form-field.i18n.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.i18n.js +2 -0
- package/dist/components/forms/form-field/form-field.i18n.js.map +1 -1
- package/dist/components/forms/form-field/form-field.js +317 -149
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.d.ts +0 -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 +18 -97
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.template.d.ts +0 -2
- package/dist/components/forms/form-field/form-field.template.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.template.js +22 -15
- package/dist/components/forms/form-field/form-field.template.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts +40 -16
- package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
- package/dist/components/forms/form-section/form-section.js +47 -183
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/forms/form-section/form-section.styles.d.ts +2 -0
- package/dist/components/forms/form-section/form-section.styles.d.ts.map +1 -0
- package/dist/components/forms/form-section/form-section.styles.js +44 -0
- package/dist/components/forms/form-section/form-section.styles.js.map +1 -0
- package/dist/components/forms/form-section/form-section.template.d.ts +4 -0
- package/dist/components/forms/form-section/form-section.template.d.ts.map +1 -0
- package/dist/components/forms/form-section/form-section.template.js +19 -0
- package/dist/components/forms/form-section/form-section.template.js.map +1 -0
- package/dist/components/forms/validation-list/validation-list.d.ts +36 -6
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +75 -15
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.template.d.ts +1 -1
- package/dist/components/forms/validation-list/validation-list.template.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.template.js +2 -2
- package/dist/components/forms/validation-list/validation-list.template.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 +10 -0
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +10 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js +4 -6
- package/dist/components/inputs/date-picker/date-picker.template.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/file-field/file-field.template.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.js +9 -8
- package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.truncate.d.ts +4 -3
- package/dist/components/inputs/file-field/file-field.truncate.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.truncate.js +8 -5
- package/dist/components/inputs/file-field/file-field.truncate.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.template.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.template.js +2 -1
- package/dist/components/inputs/password-field/password-field.template.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +3 -0
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +7 -6
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/slider/slider.template.js +2 -2
- package/dist/components/inputs/slider/slider.template.js.map +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 -1
- 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 +10 -0
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +18 -3
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +7 -3
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/layout/container/container.template.d.ts.map +1 -1
- package/dist/components/layout/container/container.template.js +2 -1
- package/dist/components/layout/container/container.template.js.map +1 -1
- package/dist/components/layout/kanban/kanban-column.template.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban-column.template.js +5 -7
- package/dist/components/layout/kanban/kanban-column.template.js.map +1 -1
- package/dist/components/layout/kanban/kanban.template.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.template.js +2 -3
- package/dist/components/layout/kanban/kanban.template.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +42 -0
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +108 -3
- 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 +5 -0
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page/page.template.d.ts.map +1 -1
- package/dist/components/layout/page/page.template.js +3 -2
- package/dist/components/layout/page/page.template.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +11 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +11 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +3 -0
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +3 -0
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +2 -2
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js +2 -2
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts +3 -2
- 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 +3 -2
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +1 -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 +1 -0
- 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 +13 -13
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +13 -13
- 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 +4 -1
- 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 +8 -4
- 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 +8 -4
- 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 +4 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +7 -8
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.js +3 -2
- package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +7 -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 +12 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js +4 -4
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js +2 -3
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.template.js +3 -7
- package/dist/components/status-and-feedback/badge/badge.template.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +3 -4
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js +2 -3
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +1 -1
- package/dist/css/form.css +14 -0
- package/dist/css/global-open-font.css +0 -1
- package/dist/css/global.css +0 -1
- package/dist/css/rich-text.css +16 -4
- package/dist/css/text.css +3 -1
- package/dist/css/title.css +3 -1
- package/dist/css/variables.css +5 -0
- package/dist/nldd.min.js +1900 -1766
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +1 -0
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +1 -0
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +1 -0
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +1 -0
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +1 -0
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/react.d.ts +24 -27
- package/dist/types/vue.d.ts +84 -87
- package/dist/utilities/autoloader.generated.d.ts.map +1 -1
- package/dist/utilities/autoloader.generated.js +0 -1
- package/dist/utilities/autoloader.generated.js.map +1 -1
- package/dist/utilities/codemirror/codemirror-element.d.ts +3 -2
- package/dist/utilities/codemirror/codemirror-element.d.ts.map +1 -1
- package/dist/utilities/codemirror/codemirror-element.js +6 -2
- package/dist/utilities/codemirror/codemirror-element.js.map +1 -1
- package/dist/utilities/described-by-mixin.d.ts +36 -1
- package/dist/utilities/described-by-mixin.d.ts.map +1 -1
- package/dist/utilities/described-by-mixin.js +132 -8
- package/dist/utilities/described-by-mixin.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +42 -13
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/file-name-breaks.d.ts +13 -0
- package/dist/utilities/file-name-breaks.d.ts.map +1 -0
- package/dist/utilities/file-name-breaks.js +27 -0
- package/dist/utilities/file-name-breaks.js.map +1 -0
- package/dist/utilities/same-items.d.ts +10 -0
- package/dist/utilities/same-items.d.ts.map +1 -0
- package/dist/utilities/same-items.js +14 -0
- package/dist/utilities/same-items.js.map +1 -0
- package/dist/utilities/title-bar-label-controller.d.ts +3 -0
- package/dist/utilities/title-bar-label-controller.d.ts.map +1 -1
- package/dist/utilities/title-bar-label-controller.js +19 -3
- package/dist/utilities/title-bar-label-controller.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/fix.js +49 -6
- package/lint/rule-compiler.js +7 -3
- package/lint/rule.schema.json +12 -0
- package/package.json +3 -3
- package/dist/cdn/chunks/described-by-mixin-DSeADwWP.js +0 -62
- package/dist/cdn/chunks/form-field-CuTa78j4.js +0 -434
- package/dist/cdn/chunks/form-field.i18n-B-UZduXL.js +0 -3
- package/dist/cdn/chunks/form-section-J2if8kVt.js +0 -64
- package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +0 -24
- package/dist/css/form-section.css +0 -104
|
@@ -1,24 +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-D2snH_th.js";
|
|
2
|
+
import { n as i, r as a, s as o } from "./custom-element-DGdiDiuN.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-BMQQpMlL.js";
|
|
6
6
|
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as h } from "./class-map-
|
|
10
|
-
import "./button-
|
|
11
|
-
import "./icon-button-
|
|
12
|
-
import "./icon-
|
|
13
|
-
import "./tooltip-
|
|
14
|
-
import "./menu-
|
|
15
|
-
import "./activity-indicator-
|
|
7
|
+
import { s as d, t as f } from "./shadow-resets-CNmJbdJw.js";
|
|
8
|
+
import { a as p, o as m } from "./text-wrap-COu7AY91.js";
|
|
9
|
+
import { t as h } from "./class-map-BQWXee9F.js";
|
|
10
|
+
import "./button-D_KfPyHS.js";
|
|
11
|
+
import "./icon-button-BErQf42w.js";
|
|
12
|
+
import "./icon-BzeHXcdi.js";
|
|
13
|
+
import "./tooltip-BDiYghAz.js";
|
|
14
|
+
import "./menu-BEjqhn1-.js";
|
|
15
|
+
import "./activity-indicator-B-iqA8XF.js";
|
|
16
16
|
import { t as g } from "./file-field.i18n-pDM7Utud.js";
|
|
17
|
-
import { t as ee } from "./described-by-mixin-
|
|
18
|
-
import { t as te } from "./with-translations-
|
|
19
|
-
import { t as
|
|
17
|
+
import { t as ee } from "./described-by-mixin-Doan1yj6.js";
|
|
18
|
+
import { t as te } from "./with-translations-0oyNXfdD.js";
|
|
19
|
+
import { t as ne } from "./defer-focus-F73ud2D9.js";
|
|
20
20
|
// src/components/inputs/file-field/file-field.styles.ts
|
|
21
|
-
var
|
|
21
|
+
var _ = o`
|
|
22
22
|
:host {
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
}
|
|
@@ -152,6 +152,7 @@ var v = o`
|
|
|
152
152
|
|
|
153
153
|
.file-field.is-refused {
|
|
154
154
|
cursor: default;
|
|
155
|
+
-webkit-user-select: none;
|
|
155
156
|
user-select: none;
|
|
156
157
|
}
|
|
157
158
|
|
|
@@ -627,47 +628,58 @@ var v = o`
|
|
|
627
628
|
border-style: dashed;
|
|
628
629
|
}
|
|
629
630
|
}
|
|
630
|
-
`,
|
|
631
|
+
`, v = /(?<=[^._/])(?=\.)|(?<=[_/])(?=[^._/])/;
|
|
631
632
|
function y(e) {
|
|
633
|
+
return e.split(v);
|
|
634
|
+
}
|
|
635
|
+
function b(e) {
|
|
636
|
+
return t`${y(e).map((e, n) => n ? t`<wbr>${e}` : e)}`;
|
|
637
|
+
}
|
|
638
|
+
function re(e, t) {
|
|
639
|
+
e.replaceChildren(...y(t).flatMap((e, t) => t ? [document.createElement("wbr"), e] : [e]));
|
|
640
|
+
}
|
|
641
|
+
// src/components/inputs/file-field/file-field.truncate.ts
|
|
642
|
+
var ie = "…";
|
|
643
|
+
function x(e) {
|
|
632
644
|
let t = e.lastIndexOf(".");
|
|
633
645
|
return t > 0 ? [e.slice(0, t), e.slice(t)] : [e, ""];
|
|
634
646
|
}
|
|
635
|
-
var
|
|
636
|
-
function
|
|
637
|
-
let [t, n] =
|
|
647
|
+
var ae = 8;
|
|
648
|
+
function oe(e) {
|
|
649
|
+
let [t, n] = x(e), r = Math.max(0, t.length - ae);
|
|
638
650
|
return [t.slice(0, r), t.slice(r) + n];
|
|
639
651
|
}
|
|
640
|
-
function
|
|
641
|
-
return `${e.slice(0, Math.ceil(n / 2)).trimEnd()}${
|
|
652
|
+
function S(e, t, n) {
|
|
653
|
+
return `${e.slice(0, Math.ceil(n / 2)).trimEnd()}${ie}${e.slice(e.length - Math.floor(n / 2)).trimStart()}${t}`;
|
|
642
654
|
}
|
|
643
|
-
function
|
|
644
|
-
return
|
|
655
|
+
function C(e, t, n) {
|
|
656
|
+
return w(e, (e) => n(e) <= t);
|
|
645
657
|
}
|
|
646
|
-
function
|
|
658
|
+
function w(e, t, { keepExtension: n = !0 } = {}) {
|
|
647
659
|
if (t(e)) return {
|
|
648
660
|
text: e,
|
|
649
661
|
truncated: !1
|
|
650
662
|
};
|
|
651
|
-
let [r, i] = n ?
|
|
663
|
+
let [r, i] = n ? x(e) : [e, ""], a = 0, o = r.length - 1;
|
|
652
664
|
for (; a < o;) {
|
|
653
665
|
let e = Math.ceil((a + o) / 2);
|
|
654
|
-
t(
|
|
666
|
+
t(S(r, i, e)) ? a = e : o = e - 1;
|
|
655
667
|
}
|
|
656
668
|
return {
|
|
657
|
-
text:
|
|
669
|
+
text: S(r, i, a),
|
|
658
670
|
truncated: !0
|
|
659
671
|
};
|
|
660
672
|
}
|
|
661
|
-
function
|
|
673
|
+
function se(e, t, n) {
|
|
662
674
|
let r = document.createElement("span");
|
|
663
|
-
r.style.cssText = `position: absolute; visibility: hidden; display: block; width: ${t}px; white-space: normal;
|
|
675
|
+
r.style.cssText = `position: absolute; visibility: hidden; display: block; width: ${t}px; white-space: normal; ${p.cssText}`, e.append(r);
|
|
664
676
|
let i = parseFloat(getComputedStyle(r).lineHeight);
|
|
665
677
|
return {
|
|
666
|
-
fits: (e) => (r
|
|
678
|
+
fits: (e) => (re(r, e), r.getBoundingClientRect().height <= n * i + .5),
|
|
667
679
|
done: () => r.remove()
|
|
668
680
|
};
|
|
669
681
|
}
|
|
670
|
-
function
|
|
682
|
+
function ce(e) {
|
|
671
683
|
let t = document.createElement("span");
|
|
672
684
|
return t.style.cssText = "position: absolute; visibility: hidden; white-space: pre;", e.append(t), {
|
|
673
685
|
measure: (e) => (t.textContent = e, t.getBoundingClientRect().width),
|
|
@@ -675,7 +687,7 @@ function C(e) {
|
|
|
675
687
|
};
|
|
676
688
|
}
|
|
677
689
|
// src/components/inputs/file-field/file-field.template.ts
|
|
678
|
-
var
|
|
690
|
+
var le = {
|
|
679
691
|
pdf: "file-pdf",
|
|
680
692
|
png: "file-png",
|
|
681
693
|
jpg: "file-jpg",
|
|
@@ -686,6 +698,7 @@ var w = {
|
|
|
686
698
|
heic: "file-heic",
|
|
687
699
|
tif: "file-tiff",
|
|
688
700
|
tiff: "file-tiff",
|
|
701
|
+
csv: "file-csv",
|
|
689
702
|
md: "file-markdown",
|
|
690
703
|
markdown: "file-markdown",
|
|
691
704
|
txt: "file-text",
|
|
@@ -695,11 +708,11 @@ var w = {
|
|
|
695
708
|
odg: "file-odg",
|
|
696
709
|
odf: "file-odf"
|
|
697
710
|
};
|
|
698
|
-
function
|
|
711
|
+
function ue(e) {
|
|
699
712
|
let t = e.files;
|
|
700
|
-
return e._folderName() ? "folder" : t.length > 1 ? "file-on-file" :
|
|
713
|
+
return e._folderName() ? "folder" : t.length > 1 ? "file-on-file" : le[x(t[0].name)[1].slice(1).toLowerCase()] ?? "file";
|
|
701
714
|
}
|
|
702
|
-
function
|
|
715
|
+
function T(e) {
|
|
703
716
|
return !e.invalid && !e.valid ? n : t`
|
|
704
717
|
<div class="file-field__validation-icon-area">
|
|
705
718
|
<nldd-icon class="file-field__validation-icon"
|
|
@@ -709,7 +722,7 @@ function E(e) {
|
|
|
709
722
|
</div>
|
|
710
723
|
`;
|
|
711
724
|
}
|
|
712
|
-
function
|
|
725
|
+
function E(e, n) {
|
|
713
726
|
return t`
|
|
714
727
|
<span class="file-field__${e}">${n.map((e) => t`
|
|
715
728
|
<span class=${h({
|
|
@@ -719,7 +732,7 @@ function D(e, n) {
|
|
|
719
732
|
`)}</span>
|
|
720
733
|
`;
|
|
721
734
|
}
|
|
722
|
-
function
|
|
735
|
+
function D(e, t, n) {
|
|
723
736
|
let r = e._dragRejection ?? e._rejection, i = !r && e._drag !== "none";
|
|
724
737
|
return [
|
|
725
738
|
{
|
|
@@ -732,10 +745,10 @@ function O(e, t, n) {
|
|
|
732
745
|
kind: "drop",
|
|
733
746
|
active: i && e._drag === "over"
|
|
734
747
|
},
|
|
735
|
-
...
|
|
748
|
+
...de(e, r)
|
|
736
749
|
];
|
|
737
750
|
}
|
|
738
|
-
function
|
|
751
|
+
function O(e) {
|
|
739
752
|
if (e.variant === "area") return [];
|
|
740
753
|
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>`;
|
|
741
754
|
return [
|
|
@@ -766,7 +779,7 @@ function k(e) {
|
|
|
766
779
|
active: !1
|
|
767
780
|
}));
|
|
768
781
|
}
|
|
769
|
-
function
|
|
782
|
+
function de(e, t) {
|
|
770
783
|
return (e._multiple ? [
|
|
771
784
|
"type",
|
|
772
785
|
"empty-folder",
|
|
@@ -781,7 +794,7 @@ function oe(e, t) {
|
|
|
781
794
|
active: t === n
|
|
782
795
|
}));
|
|
783
796
|
}
|
|
784
|
-
function
|
|
797
|
+
function k(e) {
|
|
785
798
|
let n = e.variant === "area", r = e.size === "sm";
|
|
786
799
|
return t`<nldd-activity-indicator class="file-field__reading-indicator"
|
|
787
800
|
timing="instant"
|
|
@@ -789,7 +802,7 @@ function A(e) {
|
|
|
789
802
|
?show-text=${n}
|
|
790
803
|
></nldd-activity-indicator>`;
|
|
791
804
|
}
|
|
792
|
-
function
|
|
805
|
+
function A(e) {
|
|
793
806
|
return t`
|
|
794
807
|
<nldd-menu-item
|
|
795
808
|
icon="files"
|
|
@@ -803,7 +816,7 @@ function j(e) {
|
|
|
803
816
|
></nldd-menu-item>
|
|
804
817
|
`;
|
|
805
818
|
}
|
|
806
|
-
function
|
|
819
|
+
function j(e, r) {
|
|
807
820
|
return t`
|
|
808
821
|
<nldd-button class="file-field__change-button"
|
|
809
822
|
appearance="neutral-tinted"
|
|
@@ -818,7 +831,7 @@ function M(e, r) {
|
|
|
818
831
|
></nldd-button>
|
|
819
832
|
`;
|
|
820
833
|
}
|
|
821
|
-
function
|
|
834
|
+
function fe(e) {
|
|
822
835
|
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");
|
|
823
836
|
return t`
|
|
824
837
|
<div class="file-field__choose-button-group">
|
|
@@ -843,8 +856,8 @@ function se(e) {
|
|
|
843
856
|
</div>
|
|
844
857
|
`;
|
|
845
858
|
}
|
|
846
|
-
function
|
|
847
|
-
let r =
|
|
859
|
+
function pe(e) {
|
|
860
|
+
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", [
|
|
848
861
|
{
|
|
849
862
|
content: s,
|
|
850
863
|
kind: "idle",
|
|
@@ -852,12 +865,12 @@ function ce(e) {
|
|
|
852
865
|
},
|
|
853
866
|
...r,
|
|
854
867
|
...i ? [] : [{
|
|
855
|
-
content: d ?
|
|
868
|
+
content: d ? k(e) : "",
|
|
856
869
|
kind: "reading",
|
|
857
870
|
active: d
|
|
858
871
|
}],
|
|
859
|
-
...
|
|
860
|
-
]), p = t`<nldd-icon class="file-field__upload-icon" icon="upload-to-cloud" aria-hidden="true"></nldd-icon>`, m = a && !c ?
|
|
872
|
+
...O(e)
|
|
873
|
+
]), p = t`<nldd-icon class="file-field__upload-icon" icon="upload-to-cloud" aria-hidden="true"></nldd-icon>`, m = a && !c ? fe(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)}${T(e)}` : t`${p}${m}${f}${h}${T(e)}`;
|
|
861
874
|
return a ? t`<div class="file-field__drop-area" ?inert=${e._refused}>${g}</div>` : t`
|
|
862
875
|
<button class="file-field__choose-button"
|
|
863
876
|
type="button"
|
|
@@ -870,19 +883,16 @@ function ce(e) {
|
|
|
870
883
|
>${g}</button>
|
|
871
884
|
`;
|
|
872
885
|
}
|
|
873
|
-
function
|
|
874
|
-
let [i, a] =
|
|
886
|
+
function me(e, r) {
|
|
887
|
+
let [i, a] = oe(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._nameLines > 1 ? b(e._fittedName) : e._fittedName}</span>`;
|
|
875
888
|
return t`
|
|
876
889
|
<nldd-tooltip text=${r} timing=${e._nameTruncated ? "delay" : "never"}>
|
|
877
|
-
<span class
|
|
878
|
-
"file-field__name": !0,
|
|
879
|
-
"is-wrapped": e._nameLines > 1
|
|
880
|
-
})} aria-hidden="true">${o}</span>
|
|
890
|
+
<span class="file-field__name ${h({ "is-wrapped": e._nameLines > 1 })}" aria-hidden="true">${o}</span>
|
|
881
891
|
</nldd-tooltip>
|
|
882
892
|
<span class="file-field__full-name">${r}</span>
|
|
883
893
|
`;
|
|
884
894
|
}
|
|
885
|
-
function
|
|
895
|
+
function he(e, r) {
|
|
886
896
|
let i = e._valueLabel(), a = e._t("components.file-field.folder-count-short-text", {
|
|
887
897
|
folder: r,
|
|
888
898
|
count: e.files.length
|
|
@@ -890,7 +900,7 @@ function ue(e, r) {
|
|
|
890
900
|
let s = i.indexOf(r);
|
|
891
901
|
if (o) {
|
|
892
902
|
let n = s < 0 ? i : i.slice(0, s) + (e._fittedFolder ?? r) + i.slice(s + r.length);
|
|
893
|
-
return t`<span class="file-field__folder file-field__folder--${a} is-wrapped" aria-hidden="true">${n}</span>`;
|
|
903
|
+
return t`<span class="file-field__folder file-field__folder--${a} is-wrapped" aria-hidden="true">${b(n)}</span>`;
|
|
894
904
|
}
|
|
895
905
|
let [c, l, u] = s < 0 ? [
|
|
896
906
|
"",
|
|
@@ -905,7 +915,7 @@ function ue(e, r) {
|
|
|
905
915
|
};
|
|
906
916
|
return t`${s(i, "full")}${s(a, "short")}<span class="file-field__full-name">${i}</span>`;
|
|
907
917
|
}
|
|
908
|
-
function
|
|
918
|
+
function ge(e, n) {
|
|
909
919
|
return t`
|
|
910
920
|
<nldd-icon-button class="file-field__more-button"
|
|
911
921
|
appearance="neutral-tinted"
|
|
@@ -917,7 +927,7 @@ function de(e, n) {
|
|
|
917
927
|
?disabled=${e.disabled}
|
|
918
928
|
>
|
|
919
929
|
<nldd-menu slot="popup">
|
|
920
|
-
${e.directory ?
|
|
930
|
+
${e.directory ? A(e) : t`
|
|
921
931
|
<nldd-menu-item
|
|
922
932
|
icon="edit"
|
|
923
933
|
text=${e._t("components.file-field.to-change-action")}
|
|
@@ -935,26 +945,23 @@ function de(e, n) {
|
|
|
935
945
|
</nldd-icon-button>
|
|
936
946
|
`;
|
|
937
947
|
}
|
|
938
|
-
function
|
|
939
|
-
let n = e.files, r = e.variant === "area", i = e.size === "sm" ? "xs" : "sm", a = e._drag !== "none" || e._rejection !== null, o =
|
|
948
|
+
function M(e) {
|
|
949
|
+
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) => ({
|
|
940
950
|
...e,
|
|
941
951
|
active: e.active && a
|
|
942
|
-
})), s = e._folderName(), c = s ?
|
|
952
|
+
})), s = e._folderName(), c = s ? he(e, s) : n.length === 1 ? me(e, n[0].name) : e._valueLabel();
|
|
943
953
|
return t`
|
|
944
954
|
<div class="file-field__chosen-area" ?inert=${e._refused}>
|
|
945
|
-
<div class
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
})}>
|
|
949
|
-
<nldd-icon class="file-field__file-icon" icon=${T(e)} aria-hidden="true"></nldd-icon>
|
|
950
|
-
${D("value", [{
|
|
955
|
+
<div class="file-field__chosen-file ${h({ "is-active": !a })}">
|
|
956
|
+
<nldd-icon class="file-field__file-icon" icon=${ue(e)} aria-hidden="true"></nldd-icon>
|
|
957
|
+
${E("value", [{
|
|
951
958
|
content: c,
|
|
952
959
|
kind: "idle",
|
|
953
960
|
active: !0
|
|
954
961
|
}])}
|
|
955
962
|
${r ? t`
|
|
956
963
|
<div class="file-field__edit-button-group">
|
|
957
|
-
${
|
|
964
|
+
${j(e, e.size)}
|
|
958
965
|
<nldd-button
|
|
959
966
|
appearance="neutral-base"
|
|
960
967
|
size=${e.size}
|
|
@@ -966,7 +973,7 @@ function fe(e) {
|
|
|
966
973
|
</div>
|
|
967
974
|
` : t`
|
|
968
975
|
<div class="file-field__edit-button-group">
|
|
969
|
-
${
|
|
976
|
+
${j(e, i)}
|
|
970
977
|
<nldd-icon-button class="file-field__clear-button"
|
|
971
978
|
appearance="neutral-transparent"
|
|
972
979
|
size=${i}
|
|
@@ -977,18 +984,15 @@ function fe(e) {
|
|
|
977
984
|
?disabled=${e.disabled}
|
|
978
985
|
@click=${e._handleClear}
|
|
979
986
|
></nldd-icon-button>
|
|
980
|
-
${
|
|
987
|
+
${ge(e, i)}
|
|
981
988
|
</div>
|
|
982
989
|
`}
|
|
983
|
-
${
|
|
990
|
+
${T(e)}
|
|
984
991
|
</div>
|
|
985
|
-
<div class
|
|
986
|
-
"file-field__replace-area": !0,
|
|
987
|
-
"is-active": a
|
|
988
|
-
})}>
|
|
992
|
+
<div class="file-field__replace-area ${h({ "is-active": a })}">
|
|
989
993
|
<nldd-icon class="file-field__upload-icon" icon="upload-to-cloud" aria-hidden="true"></nldd-icon>
|
|
990
|
-
${
|
|
991
|
-
${
|
|
994
|
+
${E("text", [...o, ...O(e)])}
|
|
995
|
+
${T(e)}
|
|
992
996
|
</div>
|
|
993
997
|
</div>
|
|
994
998
|
`;
|
|
@@ -996,13 +1000,12 @@ function fe(e) {
|
|
|
996
1000
|
function N(e) {
|
|
997
1001
|
let r = e.files.length > 0 && !e._reading;
|
|
998
1002
|
return t`
|
|
999
|
-
<div aria-busy=${e._reading ? "true" : n} class
|
|
1000
|
-
"file-field": !0,
|
|
1003
|
+
<div aria-busy=${e._reading ? "true" : n} class="file-field ${h({
|
|
1001
1004
|
"file-field--area": e.variant === "area",
|
|
1002
1005
|
"has-files": r,
|
|
1003
1006
|
"is-refused": e._refused,
|
|
1004
1007
|
[`is-drag-${e._drag}`]: e._drag !== "none"
|
|
1005
|
-
})}>
|
|
1008
|
+
})}">
|
|
1006
1009
|
<input class="file-field__input"
|
|
1007
1010
|
type="file"
|
|
1008
1011
|
id=${e.inputId || n}
|
|
@@ -1024,9 +1027,9 @@ function N(e) {
|
|
|
1024
1027
|
<span class="file-field__menu-anchor"></span>
|
|
1025
1028
|
<nldd-menu class="file-field__choose-menu"
|
|
1026
1029
|
@beforetoggle=${(t) => e._handleMenuToggle(t)}
|
|
1027
|
-
>${
|
|
1030
|
+
>${A(e)}</nldd-menu>
|
|
1028
1031
|
` : n}
|
|
1029
|
-
${r ?
|
|
1032
|
+
${r ? M(e) : pe(e)}
|
|
1030
1033
|
${e._refused ? t`
|
|
1031
1034
|
<button class="file-field__dismiss-button"
|
|
1032
1035
|
type="button"
|
|
@@ -1101,7 +1104,7 @@ function B(e, t) {
|
|
|
1101
1104
|
let r = t.name.toLowerCase(), i = t.type.toLowerCase() || P[r.slice(r.lastIndexOf(".") + 1)]?.[0] || "", a = L(r.slice(r.lastIndexOf(".") + 1));
|
|
1102
1105
|
return n.some((e) => e.startsWith(".") ? L(e.slice(1)) === a : z(e, i));
|
|
1103
1106
|
}
|
|
1104
|
-
function
|
|
1107
|
+
function _e(e, t) {
|
|
1105
1108
|
let n = R(e);
|
|
1106
1109
|
if (n.length === 0 || !t) return !1;
|
|
1107
1110
|
let r = t.toLowerCase();
|
|
@@ -1114,7 +1117,7 @@ function pe(e, t) {
|
|
|
1114
1117
|
function V(e) {
|
|
1115
1118
|
return Array.from(e.items).some((e) => e.kind === "file" && e.webkitGetAsEntry?.()?.isDirectory);
|
|
1116
1119
|
}
|
|
1117
|
-
function
|
|
1120
|
+
function ve(e) {
|
|
1118
1121
|
let t = Array.from(e.items).filter((e) => e.kind === "file").map((e) => e.webkitGetAsEntry?.()).filter((e) => !!e);
|
|
1119
1122
|
return Promise.all(t.map(H)).then((e) => e.flat());
|
|
1120
1123
|
}
|
|
@@ -1136,7 +1139,7 @@ function W(e) {
|
|
|
1136
1139
|
let t = e[0];
|
|
1137
1140
|
return t instanceof HTMLElement ? t.isContentEditable || t instanceof HTMLTextAreaElement || t instanceof HTMLInputElement && t.type === "file" : !1;
|
|
1138
1141
|
}
|
|
1139
|
-
var G = /* @__PURE__ */ new Set(),
|
|
1142
|
+
var G = /* @__PURE__ */ new Set(), ye = 1e3, K;
|
|
1140
1143
|
function q() {
|
|
1141
1144
|
clearTimeout(K);
|
|
1142
1145
|
for (let e of G) e._setDrag("none", null);
|
|
@@ -1145,20 +1148,20 @@ function J(e) {
|
|
|
1145
1148
|
if (!U(e.dataTransfer)) return;
|
|
1146
1149
|
let t = e.composedPath();
|
|
1147
1150
|
for (let n of G) n._setDrag(t.includes(n) ? "over" : "page", e.dataTransfer);
|
|
1148
|
-
clearTimeout(K), K = setTimeout(q,
|
|
1151
|
+
clearTimeout(K), K = setTimeout(q, ye), e.defaultPrevented || W(t) || (e.preventDefault(), e.dataTransfer.dropEffect = "none");
|
|
1149
1152
|
}
|
|
1150
1153
|
function Y(e) {
|
|
1151
1154
|
U(e.dataTransfer) && (!e.defaultPrevented && !W(e.composedPath()) && e.preventDefault(), q());
|
|
1152
1155
|
}
|
|
1153
|
-
function
|
|
1156
|
+
function be(e) {
|
|
1154
1157
|
G.size === 0 && (window.addEventListener("dragover", J), window.addEventListener("drop", Y), window.addEventListener("dragend", q)), G.add(e);
|
|
1155
1158
|
}
|
|
1156
|
-
function
|
|
1159
|
+
function xe(e) {
|
|
1157
1160
|
G.delete(e), G.size > 0 || (window.removeEventListener("dragover", J), window.removeEventListener("drop", Y), window.removeEventListener("dragend", q), clearTimeout(K));
|
|
1158
1161
|
}
|
|
1159
1162
|
// src/utilities/file-drag-and-drop.ts
|
|
1160
1163
|
var X = "(hover: none)";
|
|
1161
|
-
function
|
|
1164
|
+
function Se() {
|
|
1162
1165
|
return typeof matchMedia != "function" || !matchMedia(X).matches;
|
|
1163
1166
|
}
|
|
1164
1167
|
var Z = class {
|
|
@@ -1171,7 +1174,7 @@ var Z = class {
|
|
|
1171
1174
|
hostDisconnected() {
|
|
1172
1175
|
this._query?.removeEventListener("change", this._handleChange);
|
|
1173
1176
|
}
|
|
1174
|
-
}, Q,
|
|
1177
|
+
}, Q, Ce = 4e3, we = 1e3, Te = 300, Ee = {
|
|
1175
1178
|
image: "components.file-field.image-lowercase",
|
|
1176
1179
|
video: "components.file-field.video-lowercase",
|
|
1177
1180
|
audio: "components.file-field.audio-file-lowercase"
|
|
@@ -1186,7 +1189,7 @@ var Z = class {
|
|
|
1186
1189
|
let n = Array.from(e.dataTransfer.files), r = this._judge(e.dataTransfer, n);
|
|
1187
1190
|
r ? this._refuse(r) : V(e.dataTransfer) ? (this._readingTimer = setTimeout(() => {
|
|
1188
1191
|
this._reading = !0;
|
|
1189
|
-
},
|
|
1192
|
+
}, we), ve(e.dataTransfer).then((e) => {
|
|
1190
1193
|
t === this._action && (this._stopReading(), e.length ? this._takeDrop(e) : this._refuse("empty-folder"));
|
|
1191
1194
|
}, () => {
|
|
1192
1195
|
t === this._action && (this._stopReading(), this._refuse("unreadable-folder"));
|
|
@@ -1217,7 +1220,7 @@ var Z = class {
|
|
|
1217
1220
|
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");
|
|
1218
1221
|
}
|
|
1219
1222
|
_chooseAccessibleLabel() {
|
|
1220
|
-
let e =
|
|
1223
|
+
let e = Se() ? 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;
|
|
1221
1224
|
return [
|
|
1222
1225
|
e ? `${this._chooseLabel()} ${e}` : this._chooseLabel(),
|
|
1223
1226
|
t ? this._t("components.file-field.accepted-types-text", { types: t }) : "",
|
|
@@ -1237,7 +1240,7 @@ var Z = class {
|
|
|
1237
1240
|
_acceptTypes() {
|
|
1238
1241
|
let e = I(this.accept);
|
|
1239
1242
|
if (!e) return null;
|
|
1240
|
-
let t = e.map((e) => typeof e == "string" ? e : this._t(
|
|
1243
|
+
let t = e.map((e) => typeof e == "string" ? e : this._t(Ee[e.family]));
|
|
1241
1244
|
return t.length === 1 ? t[0] : this._t("components.file-field.list-lowercase-text", {
|
|
1242
1245
|
items: t.slice(0, -1).join(", "),
|
|
1243
1246
|
last: t[t.length - 1]
|
|
@@ -1266,12 +1269,12 @@ var Z = class {
|
|
|
1266
1269
|
return e.size === 1 && t ? t : null;
|
|
1267
1270
|
}
|
|
1268
1271
|
connectedCallback() {
|
|
1269
|
-
super.connectedCallback(),
|
|
1272
|
+
super.connectedCallback(), be(this), this._resizeObserver ?? (this._resizeObserver = new ResizeObserver(() => this._fitName())), this._resizeObserver.observe(this), document.fonts?.ready.then(() => {
|
|
1270
1273
|
this.isConnected && this._fitName();
|
|
1271
1274
|
}), this.addEventListener("dragover", this._handleDragOver), this.addEventListener("drop", this._handleDrop), this.addEventListener("keydown", this._handleKeydown);
|
|
1272
1275
|
}
|
|
1273
1276
|
disconnectedCallback() {
|
|
1274
|
-
super.disconnectedCallback(),
|
|
1277
|
+
super.disconnectedCallback(), xe(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);
|
|
1275
1278
|
}
|
|
1276
1279
|
updated(e) {
|
|
1277
1280
|
(e.has("_files") || e.has("size") || e.has("variant") || e.has("_drag")) && this._fitNameAfterRender();
|
|
@@ -1307,9 +1310,9 @@ var Z = class {
|
|
|
1307
1310
|
}
|
|
1308
1311
|
let s = this._files[0].name;
|
|
1309
1312
|
if (o === 1) {
|
|
1310
|
-
let { measure: e, done: t } =
|
|
1313
|
+
let { measure: e, done: t } = ce(r);
|
|
1311
1314
|
try {
|
|
1312
|
-
let { text: t, truncated: n } =
|
|
1315
|
+
let { text: t, truncated: n } = C(s, a, e);
|
|
1313
1316
|
this._fittedName = t, this._nameTruncated = n;
|
|
1314
1317
|
} finally {
|
|
1315
1318
|
t();
|
|
@@ -1320,9 +1323,9 @@ var Z = class {
|
|
|
1320
1323
|
this._fittedName = c, this._nameTruncated = l;
|
|
1321
1324
|
}
|
|
1322
1325
|
_cutToLines(e, t, n, r, i = (e) => e, a = !0) {
|
|
1323
|
-
let { fits: o, done: s } =
|
|
1326
|
+
let { fits: o, done: s } = se(e, t, n);
|
|
1324
1327
|
try {
|
|
1325
|
-
return
|
|
1328
|
+
return w(r, (e) => o(i(e)), { keepExtension: a });
|
|
1326
1329
|
} finally {
|
|
1327
1330
|
s();
|
|
1328
1331
|
}
|
|
@@ -1347,7 +1350,7 @@ var Z = class {
|
|
|
1347
1350
|
t.hidePopover();
|
|
1348
1351
|
return;
|
|
1349
1352
|
}
|
|
1350
|
-
if (performance.now() - this._menuClosedAt <
|
|
1353
|
+
if (performance.now() - this._menuClosedAt < Te) return;
|
|
1351
1354
|
t.anchorElement = e.currentTarget.classList.contains("file-field__choose-button") && this._pointAt(e) || e.currentTarget, t.showPopover();
|
|
1352
1355
|
} else this._input?.click();
|
|
1353
1356
|
}
|
|
@@ -1378,7 +1381,7 @@ var Z = class {
|
|
|
1378
1381
|
_judge(e, t) {
|
|
1379
1382
|
if (t) return !this._multiple && t.length > 1 ? "count" : V(e) ? this._multiple ? null : "folder" : t.every((e) => B(this.accept, e)) ? null : "type";
|
|
1380
1383
|
let n = Array.from(e.items).filter((e) => e.kind === "file");
|
|
1381
|
-
return !this._multiple && n.length > 1 ? "count" : n.some((e) =>
|
|
1384
|
+
return !this._multiple && n.length > 1 ? "count" : n.some((e) => _e(this.accept, e.type)) ? "type" : null;
|
|
1382
1385
|
}
|
|
1383
1386
|
_setDrag(e, t) {
|
|
1384
1387
|
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);
|
|
@@ -1396,7 +1399,7 @@ var Z = class {
|
|
|
1396
1399
|
let t = this.matches(":focus-within");
|
|
1397
1400
|
this._rejection = e, clearTimeout(this._rejectionTimer), this._rejectionTimer = setTimeout(() => {
|
|
1398
1401
|
this._clearRejection(), this._announcement = this._rejectionText(e);
|
|
1399
|
-
},
|
|
1402
|
+
}, Ce), t && this.updateComplete.then(() => this.focus());
|
|
1400
1403
|
}
|
|
1401
1404
|
_stopReading() {
|
|
1402
1405
|
clearTimeout(this._readingTimer), this._reading = !1;
|
|
@@ -1449,7 +1452,7 @@ var Z = class {
|
|
|
1449
1452
|
return Array.from(t).find((e) => !e.matches(".file-field__change-button, .file-field__more-button") || (e.checkVisibility?.() ?? !0)) ?? t[0] ?? null;
|
|
1450
1453
|
}
|
|
1451
1454
|
focus(e) {
|
|
1452
|
-
|
|
1455
|
+
ne(this, e) || this._chooseButton()?.focus(e);
|
|
1453
1456
|
}
|
|
1454
1457
|
describedTarget() {
|
|
1455
1458
|
return this._chooseButton();
|
|
@@ -1457,7 +1460,7 @@ var Z = class {
|
|
|
1457
1460
|
render() {
|
|
1458
1461
|
return N(this);
|
|
1459
1462
|
}
|
|
1460
|
-
}, Q.styles =
|
|
1463
|
+
}, Q.styles = _, Q.isFormInput = !0, Q);
|
|
1461
1464
|
r([a({
|
|
1462
1465
|
reflect: !0,
|
|
1463
1466
|
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-D2snH_th.js";
|
|
2
|
+
import { c as r, r as i, s as a } from "./custom-element-DGdiDiuN.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";
|
package/dist/cdn/chunks/{form-associated-mixin-9cC5HSCG.js → form-associated-mixin-BMQQpMlL.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e } from "./custom-element-
|
|
2
|
-
import "./decorate-
|
|
1
|
+
import { i as e } from "./custom-element-DGdiDiuN.js";
|
|
2
|
+
import "./decorate-D2snH_th.js";
|
|
3
3
|
import { n as t } from "./element-state-D-J_cHEV.js";
|
|
4
4
|
// src/utilities/form-associated-mixin.ts
|
|
5
5
|
var n = [
|