@nldd/design-system 0.29.3 → 0.30.1
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 +464 -211
- 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-qIt44RLF.js → accordion-BcgFdNtq.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-Dc6eccrJ.js → accordion-item-DIoa4wMw.js} +7 -6
- package/dist/cdn/chunks/{activity-indicator-D3Trvd26.js → activity-indicator-BmpMwyBH.js} +8 -11
- package/dist/cdn/chunks/{admonition-SGAs1_Zu.js → admonition-DUsuT-qK.js} +7 -6
- package/dist/cdn/chunks/{avatar-vY0iiAzq.js → avatar-BFnVbTB9.js} +8 -8
- package/dist/cdn/chunks/{avatar-group-6fsYuye5.js → avatar-group-BDgLxUn9.js} +16 -16
- package/dist/cdn/chunks/{badge-D2QCPBU6.js → badge-CAN4lWcI.js} +32 -30
- package/dist/cdn/chunks/{banner-N1LY9uhq.js → banner-BncAmkYl.js} +9 -9
- package/dist/cdn/chunks/{bar-split-view-CthxhXh8.js → bar-split-view-hlmRlFit.js} +6 -6
- package/dist/cdn/chunks/{blockquote-C-oSxq4b.js → blockquote-DUAwVT6v.js} +33 -32
- package/dist/cdn/chunks/{box-B_NqS9H1.js → box-CasAZ5pk.js} +4 -4
- package/dist/cdn/chunks/{breadcrumbs-v-nEtdOp.js → breadcrumbs-DBHmoFPu.js} +7 -7
- package/dist/cdn/chunks/{button-DHLts-vo.js → button-IRm7Oibq.js} +114 -91
- package/dist/cdn/chunks/{button-bar-CPLhSKNo.js → button-bar-CocGraYA.js} +5 -5
- package/dist/cdn/chunks/{button-group-BIt4ERX1.js → button-group-BfNf2BZe.js} +4 -4
- package/dist/cdn/chunks/{card--GUIZiTn.js → card-BaomP9oB.js} +5 -5
- package/dist/cdn/chunks/{cell-Ch6VVWYl.js → cell-Dir3g5vA.js} +8 -8
- package/dist/cdn/chunks/{checkbox-BNI1xGry.js → checkbox-CIXkUW3R.js} +7 -7
- package/dist/cdn/chunks/{checkbox-field-BPtTyzq-.js → checkbox-field-DQ4MlASP.js} +9 -9
- package/dist/cdn/chunks/{checkbox-group-DYElCUgt.js → checkbox-group-C8E46V4D.js} +3 -3
- package/dist/cdn/chunks/{class-map-DwD-ilOn.js → class-map-D0fkDSLP.js} +1 -1
- package/dist/cdn/chunks/{code-editor-DEJ-KbPY.js → code-editor-C8YqZrN-.js} +16 -6
- package/dist/cdn/chunks/{code-viewer-CIiRvhkZ.js → code-viewer-Ck7wxfDo.js} +40 -13
- package/dist/cdn/chunks/{codemirror-input-y7sZIE85.js → codemirror-input-DNrSyYSw.js} +142 -143
- package/dist/cdn/chunks/{collection-Cb7Ej5Ua.js → collection-DprNdn8V.js} +9 -9
- package/dist/cdn/chunks/{combo-box-CDqddeN5.js → combo-box-B2L79FY5.js} +20 -11
- package/dist/cdn/chunks/{container-DZfSFaA9.js → container-Cg4kOUN8.js} +85 -84
- package/dist/cdn/chunks/{custom-element-aLDsY95V.js → custom-element-CDepWGgp.js} +1 -1
- package/dist/cdn/chunks/{date-field-C4xutZpO.js → date-field-Dsw2EkcZ.js} +13 -13
- package/dist/cdn/chunks/{date-picker-CtdRwpu7.js → date-picker-ugS3-VBq.js} +17 -19
- package/dist/cdn/chunks/{decorate-D28R7mwV.js → decorate-CuJsiFnl.js} +10 -12
- package/dist/cdn/chunks/described-by-mixin-Ih_IoqBD.js +106 -0
- package/dist/cdn/chunks/{description-cell-BYgUCAev.js → description-cell-DiLwKDva.js} +8 -8
- package/dist/cdn/chunks/{dev-checks-C6cMs71h.js → dev-checks-Bfy3qHxO.js} +32 -12
- package/dist/cdn/chunks/{directive-helpers-B-J-xMIs.js → directive-helpers-DEvA8txp.js} +1 -1
- package/dist/cdn/chunks/{dist-CON6NKtQ.js → dist-BEZuPWxd.js} +78 -79
- package/dist/cdn/chunks/{dist-CSUsf3Jq.js → dist-BFGGXlGI.js} +113 -114
- package/dist/cdn/chunks/{dist-Dr-gFR08.js → dist-BYPfq6x4.js} +5 -6
- package/dist/cdn/chunks/{dist-BxjZtyyd.js → dist-C8wDJyDH.js} +69 -70
- package/dist/cdn/chunks/{dist-CHuLNwDW.js → dist-CUXioD4z.js} +296 -297
- package/dist/cdn/chunks/{dist-BTUxFM2V.js → dist-Cr0OiT-0.js} +1 -1
- package/dist/cdn/chunks/{dist-BpXie73W.js → dist-CrMq7oqC.js} +2 -2
- package/dist/cdn/chunks/{dist-Bo5l49Uq.js → dist-DPnEBzju.js} +44 -45
- package/dist/cdn/chunks/{dist-Bnz9cU2A.js → dist-Djmp37M0.js} +54 -55
- package/dist/cdn/chunks/{dist-CIFs0Nqx.js → dist-DsQS8bTi.js} +33 -34
- package/dist/cdn/chunks/{dist-tBRozql6.js → dist-UpdpX10o.js} +88 -89
- package/dist/cdn/chunks/{dist-DKy1SqZx.js → dist-cg8p9qPS.js} +17 -18
- package/dist/cdn/chunks/{dist-3C80SZN9.js → dist-s2b8iJ30.js} +82 -83
- package/dist/cdn/chunks/{divider-CTKk-YoH.js → divider-DeLH4QwC.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-DY_eja8b.js → document-tab-bar-bOkWFMdJ.js} +11 -14
- package/dist/cdn/chunks/{dropdown-CruRvMW9.js → dropdown-C1NBctuB.js} +6 -6
- package/dist/cdn/chunks/{file-field-D9iNPYKY.js → file-field-DFjBl7rn.js} +110 -108
- package/dist/cdn/chunks/{floating-ui.dom-CB34tcZx.js → floating-ui.dom-DlsknQ4T.js} +3 -3
- package/dist/cdn/chunks/{form-actions-BuKwcAbF.js → form-actions-DcsN5H-J.js} +2 -2
- package/dist/cdn/chunks/{form-associated-mixin-C1rOeFAh.js → form-associated-mixin-YG9BXK0j.js} +2 -2
- package/dist/cdn/chunks/form-field-BWtox2o0.js +414 -0
- package/dist/cdn/chunks/form-field.i18n-D-3yEP-C.js +6 -0
- package/dist/cdn/chunks/{form-sQRdMSb4.js → form-mkjbjprY.js} +1 -1
- package/dist/cdn/chunks/form-section-CLuotkhm.js +78 -0
- package/dist/cdn/chunks/{full-bleed-section-DM0pv5Xt.js → full-bleed-section-CZfvZFDs.js} +4 -4
- package/dist/cdn/chunks/{hero-C8zDTYdo.js → hero-C_x5gAKl.js} +8 -8
- package/dist/cdn/chunks/{icon-CgFQSvEf.js → icon-CeybqndL.js} +6 -4
- package/dist/cdn/chunks/{icon-button-ya52TYkO.js → icon-button-BLe-iiU5.js} +67 -64
- package/dist/cdn/chunks/{icon-cell-DbqWtIl9.js → icon-cell-DUBctf2q.js} +8 -7
- package/dist/cdn/chunks/{identity-DPerpCOw.js → identity-C4FW2LCv.js} +33 -30
- package/dist/cdn/chunks/{if-defined-D5G_Kkpm.js → if-defined-DwzUaXrb.js} +1 -1
- package/dist/cdn/chunks/{image-eyP-R4JG.js → image-7aQSrryL.js} +24 -23
- package/dist/cdn/chunks/{inline-dialog-z7jzLiRx.js → inline-dialog-B9o9ckxL.js} +26 -25
- package/dist/cdn/chunks/{just-in-time-education-2O-UcSq5.js → just-in-time-education-C-3THmVJ.js} +7 -7
- package/dist/cdn/chunks/{kanban-Dz3KcfW2.js → kanban-BemPSLk8.js} +9 -10
- package/dist/cdn/chunks/{kanban-column-DQeIGacj.js → kanban-column-CYZjUBUd.js} +40 -41
- package/dist/cdn/chunks/{keyboard-shortcut-CUxShTHr.js → keyboard-shortcut-BK35aEeR.js} +5 -5
- package/dist/cdn/chunks/{languages-D_vPs_jY.js → languages-CT6Im_c5.js} +3475 -1841
- package/dist/cdn/chunks/{link-emVjLq3i.js → link-Lbw4Ut52.js} +7 -7
- package/dist/cdn/chunks/{link-group-Cygt2XBP.js → link-group-B1XXP70E.js} +3 -3
- package/dist/cdn/chunks/{list-TKhlBlV_.js → list-D2vWEpYC.js} +11 -11
- package/dist/cdn/chunks/{list-item-D2On2ug1.js → list-item-Y0wOQqRa.js} +14 -15
- package/dist/cdn/chunks/{list-item-segment-XERq2wPj.js → list-item-segment-BamNSRcL.js} +5 -5
- package/dist/cdn/chunks/{menu-b2UFN5q8.js → menu-Cvwt6mA5.js} +13 -13
- package/dist/cdn/chunks/{menu-bar-BJ6PjqmT.js → menu-bar-D9Etcq_r.js} +7 -7
- package/dist/cdn/chunks/{menu-bar-item-kRxuNXj5.js → menu-bar-item-BUVqi3o-.js} +7 -7
- package/dist/cdn/chunks/{menu-divider-Cpa6JbxR.js → menu-divider-BqRMxjF3.js} +4 -4
- package/dist/cdn/chunks/{menu-group-DrwvnJ1C.js → menu-group-BSnRGQgm.js} +6 -6
- package/dist/cdn/chunks/{menu-item-D7CoiS88.js → menu-item-UQoejlK0.js} +6 -6
- package/dist/cdn/chunks/{menu.template-BAqqSWm-.js → menu.template-CewvJO-Y.js} +10 -7
- package/dist/cdn/chunks/{modal-dialog-DOZuUmOi.js → modal-dialog-C6XUoI95.js} +5 -5
- package/dist/cdn/chunks/{multi-line-text-field-CB-rGXUh.js → multi-line-text-field-4Vn5Nrjo.js} +7 -7
- package/dist/cdn/chunks/{navigation-split-view-Bc5AUAmC.js → navigation-split-view-BEwcAHWu.js} +7 -13
- package/dist/cdn/chunks/{nl.generated-B194RR-y.js → nl.generated-CrkPlg69.js} +2 -2
- package/dist/cdn/chunks/{notification-Cs-f2gLW.js → notification-DxsARz6U.js} +8 -8
- package/dist/cdn/chunks/{number-field-DqQOrvOA.js → number-field-wFK_taVU.js} +10 -10
- package/dist/cdn/chunks/{one-half-one-half-section-BqiqGK-m.js → one-half-one-half-section-CyedWMlH.js} +4 -4
- package/dist/cdn/chunks/{one-third-two-thirds-section-3LPjeo2n.js → one-third-two-thirds-section-LRJlzoAZ.js} +4 -4
- package/dist/cdn/chunks/{one-time-code-field-CZxm-CQt.js → one-time-code-field-BYQfRePV.js} +11 -12
- package/dist/cdn/chunks/{overflow-menu-DkyYNSg3.js → overflow-menu-BdEHECvL.js} +1 -1
- package/dist/cdn/chunks/{page-DYzfOL9K.js → page-DpGgV58g.js} +47 -46
- package/dist/cdn/chunks/{page-footer-ChNrnN3t.js → page-footer-DxaWwS8U.js} +6 -6
- package/dist/cdn/chunks/{page-section-mixin-7d4JVDUI.js → page-section-mixin-DigQhtVE.js} +4 -4
- package/dist/cdn/chunks/{pagination-CYl78pZT.js → pagination-Ch0EdxDX.js} +37 -36
- package/dist/cdn/chunks/{password-field-Bg1lsru6.js → password-field-Dm8ah1v8.js} +37 -36
- package/dist/cdn/chunks/{popover-jP9P86r3.js → popover-Bhr3Nbst.js} +9 -9
- package/dist/cdn/chunks/{progress-bar-C08-J2b3.js → progress-bar-BBpNc1Wm.js} +11 -12
- package/dist/cdn/chunks/{progress-circle-_NDiM4Vw.js → progress-circle-DfbawfeQ.js} +9 -9
- package/dist/cdn/chunks/{radio-button-OdrY0lUT.js → radio-button-D_KTcIAN.js} +6 -6
- package/dist/cdn/chunks/{radio-button-field-C8XD59fa.js → radio-button-field-H_NQqcZp.js} +8 -8
- package/dist/cdn/chunks/{radio-button-group-C7ntRQO7.js → radio-button-group-kbaWn4YY.js} +3 -3
- package/dist/cdn/chunks/{reflect-non-default-Bu3rpCvg.js → reflect-non-default-DUOcGZKf.js} +1 -1
- package/dist/cdn/chunks/{render-marked-Cdt8DyWh.js → render-marked-DnJwRVpy.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-C6q1_RaE.js → reorder-handle-cell-BI4CugME.js} +5 -5
- package/dist/cdn/chunks/{reorder-handle-mixin-mJLOiHhZ.js → reorder-handle-mixin-LPcbGhhD.js} +2 -2
- package/dist/cdn/chunks/{repeat-DLQZAi6Q.js → repeat-BBqtniIo.js} +2 -2
- package/dist/cdn/chunks/{rich-text-CR5iRjCn.js → rich-text-xlU1NiF6.js} +4 -4
- package/dist/cdn/chunks/{rolldown-runtime-CGnMp29N.js → rolldown-runtime-BMBA7GOT.js} +2 -2
- package/dist/cdn/chunks/{row-header-mixin-BUn7AC4_.js → row-header-mixin-CyqWb67i.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-B7Gy3Bmm.js → scroll-fade-CTn6QJuM.js} +2 -2
- package/dist/cdn/chunks/{search-field-B62sYRtl.js → search-field-OpYujGwS.js} +41 -38
- package/dist/cdn/chunks/{segmented-control-VU38x7xX.js → segmented-control-8NtY_sU6.js} +8 -8
- package/dist/cdn/chunks/{shadow-resets-uUyDr3ia.js → shadow-resets-CtbMaZlz.js} +26 -11
- package/dist/cdn/chunks/{sheet-jMZkPdlu.js → sheet-C_biEFcb.js} +4 -4
- package/dist/cdn/chunks/{shell-2Wa4Waez.js → shell-OXRr3zFb.js} +4 -4
- package/dist/cdn/chunks/{side-by-side-split-view-v6riuRqk.js → side-by-side-split-view-DVXrHULp.js} +6 -6
- package/dist/cdn/chunks/{sidebar-section-D3Zy_9y1.js → sidebar-section-DYa_6OWF.js} +9 -9
- package/dist/cdn/chunks/{simple-section-kCKeHqmt.js → simple-section-CGUSyUAl.js} +4 -4
- package/dist/cdn/chunks/{skip-link-BeoObN4D.js → skip-link-Dl2ouKZk.js} +6 -6
- package/dist/cdn/chunks/{slider-BSALXKxX.js → slider-Do-LOJNR.js} +13 -17
- package/dist/cdn/chunks/{spacer-CXXmb3su.js → spacer-BgHrBz2X.js} +4 -4
- package/dist/cdn/chunks/{spacer-cell-BV9uv10a.js → spacer-cell-CiQ8Ufpp.js} +6 -6
- package/dist/cdn/chunks/{split-button-DE4NaJZs.js → split-button-Sd_-qYSD.js} +8 -8
- package/dist/cdn/chunks/{split-view-divider-BqLSYIwg.js → split-view-divider-D1TzV2VR.js} +4 -4
- package/dist/cdn/chunks/{stacked-split-view-CPCCQhHV.js → stacked-split-view-Ctlqwe0S.js} +6 -6
- package/dist/cdn/chunks/{static-html-DtH5-I4g.js → static-html-C8oeEnJZ.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CBi4aCqy.js → status-bar-u2SmYnKZ.js} +14 -6
- package/dist/cdn/chunks/{step-bar-BFzioHLn.js → step-bar-BA852p33.js} +7 -7
- package/dist/cdn/chunks/{step-cell-fNIdX1cI.js → step-cell-DF9xadrF.js} +6 -6
- package/dist/cdn/chunks/{stepper-CgmgV0qw.js → stepper-dRpkKCse.js} +9 -9
- package/dist/cdn/chunks/{style-map-DhI1E0EI.js → style-map-eCE91iAi.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-BYb0cq8H.js → swatch-picker-Bjv3Yyk1.js} +7 -7
- package/dist/cdn/chunks/{switch-fRxqZBKc.js → switch-DJBzXPfD.js} +7 -7
- package/dist/cdn/chunks/{switch-field-BH6xhWUz.js → switch-field-uMAxSz6L.js} +8 -8
- package/dist/cdn/chunks/{tab-bar-B66obS2x.js → tab-bar-DLHqLs6Y.js} +21 -17
- package/dist/cdn/chunks/tab-bar.i18n-9sChoP56.js +6 -0
- package/dist/cdn/chunks/{table-s8GDKuuW.js → table-BLvkO5AG.js} +6 -6
- package/dist/cdn/chunks/{tag-TE8mlX1U.js → tag-DYhl2u2I.js} +6 -6
- package/dist/cdn/chunks/{term-Cm9BrUtJ.js → term-D79d-lz3.js} +12 -12
- package/dist/cdn/chunks/{text-cell-DxzojZsc.js → text-cell-BbVoThab.js} +42 -39
- package/dist/cdn/chunks/{text-editor-C_8jEhF2.js → text-editor-dZhei5Gg.js} +24 -14
- package/dist/cdn/chunks/{text-field-BgPlCLFl.js → text-field-DmKGVJvm.js} +7 -7
- package/dist/cdn/chunks/{text-DEk52Hq2.js → text-kRZ3cyId.js} +5 -5
- package/dist/cdn/chunks/{text-wrap-DjzB16-4.js → text-wrap-C6QQbSuj.js} +13 -5
- package/dist/cdn/chunks/{time-field-Sde0_8NH.js → time-field-BXVxhV80.js} +15 -15
- package/dist/cdn/chunks/{time-picker-CZbLW9ap.js → time-picker-BjJfPmir.js} +9 -9
- package/dist/cdn/chunks/{title-v-FXk0hs.js → title-DsOLSMHj.js} +6 -6
- package/dist/cdn/chunks/{title-cell-Bv9b6G_p.js → title-cell-DXcur6Eb.js} +52 -49
- package/dist/cdn/chunks/{toggle-button-DWlS9Rbg.js → toggle-button-7fasRpr1.js} +73 -57
- package/dist/cdn/chunks/{toggle-button-group-CetB0Cio.js → toggle-button-group-B9No_FIj.js} +3 -3
- package/dist/cdn/chunks/{token-BXJXjQwc.js → token-BYCl-dDP.js} +7 -7
- package/dist/cdn/chunks/{token-field-CsxYfu8b.js → token-field-C9fGsIxB.js} +11 -11
- package/dist/cdn/chunks/{toolbar-CUWVCKM6.js → toolbar-CBs6yMNd.js} +70 -69
- package/dist/cdn/chunks/{toolbar-item-BxzbSJdv.js → toolbar-item-DYVo5I60.js} +5 -8
- package/dist/cdn/chunks/{toolbar-title-C4qJ_fkM.js → toolbar-title-Bu5PbFPP.js} +5 -5
- package/dist/cdn/chunks/{toolbar.styles-D9FuZFnd.js → toolbar.styles-BUS-XIdr.js} +4 -3
- package/dist/cdn/chunks/{tooltip-D5XT5lRe.js → tooltip-yXDfEbZ1.js} +8 -8
- package/dist/cdn/chunks/{top-navigation-bar-C3azLUd1.js → top-navigation-bar-DW6xYKY0.js} +19 -19
- package/dist/cdn/chunks/{top-title-bar-D1m-dREA.js → top-title-bar-Fk4jzs8I.js} +12 -9
- package/dist/cdn/chunks/{two-thirds-one-third-section-D3VEGv6P.js → two-thirds-one-third-section-B9a1YYXm.js} +4 -4
- package/dist/cdn/chunks/{validation-list-D7tDyaoK.js → validation-list-BAyP6Ccd.js} +61 -49
- package/dist/cdn/chunks/{visibility-mixin-D2VzUDfE.js → visibility-mixin-9Nr_J68Z.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-CSYlyubF.js → visually-hidden-BN6jVrRE.js} +2 -2
- package/dist/cdn/chunks/{window-6IQfu4dU.js → window-D4rLzdHo.js} +5 -5
- package/dist/cdn/chunks/{with-translations-Dr6Z41n9.js → with-translations-RkK-Bq8M.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/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +4 -1
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.js +1 -7
- package/dist/components/actions/toolbar/toolbar-item.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +1 -0
- package/dist/components/actions/toolbar/toolbar.styles.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.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 +4 -0
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +14 -5
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +14 -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 +6 -3
- 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 +8 -6
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +8 -6
- 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 +27 -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 +8 -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.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/split-views/bar-split-view/bar-split-view.d.ts +1 -0
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -0
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.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/icon-cell/icon-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +2 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.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/tab-bar/tab-bar.d.ts +8 -0
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.i18n.js +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.i18n.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +16 -0
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +3 -2
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +1 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +6 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.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/status-bar/status-bar.d.ts +12 -6
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +28 -7
- package/dist/components/status-and-feedback/status-bar/status-bar.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 +21 -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 +1926 -1804
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +2 -0
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +2 -0
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +2 -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 +2 -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 +2 -0
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/react.d.ts +20 -25
- package/dist/types/vue.d.ts +79 -84
- 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/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 +33 -14
- 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/reflect-non-default.d.ts +2 -1
- package/dist/utilities/reflect-non-default.d.ts.map +1 -1
- package/dist/utilities/reflect-non-default.js +3 -2
- package/dist/utilities/reflect-non-default.js.map +1 -1
- 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/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 +7 -6
- package/dist/cdn/chunks/described-by-mixin-k3KNxaZ2.js +0 -62
- package/dist/cdn/chunks/form-field-BF-6cws6.js +0 -434
- package/dist/cdn/chunks/form-field.i18n-B-UZduXL.js +0 -3
- package/dist/cdn/chunks/form-section-Cp9xiFew.js +0 -64
- package/dist/cdn/chunks/style-mod-DGMhzWuk.js +0 -1583
- package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +0 -3
- package/dist/css/form-section.css +0 -104
|
@@ -1,21 +1,21 @@
|
|
|
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-CuJsiFnl.js";
|
|
2
|
+
import { n as i, r as a, s as o } from "./custom-element-CDepWGgp.js";
|
|
3
3
|
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { t as c } from "./css-time-DmkAFd1y.js";
|
|
5
|
-
import { t as l } from "./reflect-non-default-
|
|
6
|
-
import {
|
|
7
|
-
import { t as f } from "./class-map-
|
|
8
|
-
import "./icon-button-
|
|
9
|
-
import "./icon-
|
|
5
|
+
import { t as l } from "./reflect-non-default-DUOcGZKf.js";
|
|
6
|
+
import { s as u, t as d } from "./shadow-resets-CtbMaZlz.js";
|
|
7
|
+
import { t as f } from "./class-map-D0fkDSLP.js";
|
|
8
|
+
import "./icon-button-BLe-iiU5.js";
|
|
9
|
+
import "./icon-CeybqndL.js";
|
|
10
10
|
import { t as p } from "./sanitize-url-EEu5iGkI.js";
|
|
11
|
-
import "./tooltip-
|
|
12
|
-
import { t as m } from "./with-translations-
|
|
11
|
+
import "./tooltip-yXDfEbZ1.js";
|
|
12
|
+
import { t as m } from "./with-translations-RkK-Bq8M.js";
|
|
13
13
|
import { t as h } from "./after-parse-BSKUm67Q.js";
|
|
14
14
|
import { n as g, t as _ } from "./layout-pass-B2ALRYc9.js";
|
|
15
15
|
import { t as v } from "./frame-pass-C0RUoFMc.js";
|
|
16
16
|
import { t as y } from "./document-tab-bar.i18n-DKrA9TnB.js";
|
|
17
17
|
import { n as b } from "./input-modality-XE0B7yCn.js";
|
|
18
|
-
import { t as x } from "./overflow-menu-
|
|
18
|
+
import { t as x } from "./overflow-menu-BdEHECvL.js";
|
|
19
19
|
import { t as S } from "./defer-focus-F73ud2D9.js";
|
|
20
20
|
// src/components/navigation/document-tab-bar/document-tab-bar.styles.ts
|
|
21
21
|
var C = o`
|
|
@@ -504,10 +504,7 @@ function T(e) {
|
|
|
504
504
|
>
|
|
505
505
|
<slot @slotchange=${e._onSlotChange}></slot>
|
|
506
506
|
</div>
|
|
507
|
-
<div class
|
|
508
|
-
"document-tab-bar__overflow-button": !0,
|
|
509
|
-
"is-hidden": !r
|
|
510
|
-
})}>
|
|
507
|
+
<div class="document-tab-bar__overflow-button ${f({ "is-hidden": !r })}">
|
|
511
508
|
<nldd-icon-button
|
|
512
509
|
text=${e._t("components.document-tab-bar.show-more-tabs-action")}
|
|
513
510
|
appearance="neutral-tinted"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
2
|
-
import { r as i, s as a } from "./custom-element-
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-CuJsiFnl.js";
|
|
2
|
+
import { r as i, s as a } from "./custom-element-CDepWGgp.js";
|
|
3
3
|
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
-
import { t as s } from "./reflect-non-default-
|
|
5
|
-
import { i as c, t as l } from "./shadow-resets-
|
|
6
|
-
import "./icon-
|
|
4
|
+
import { t as s } from "./reflect-non-default-DUOcGZKf.js";
|
|
5
|
+
import { i as c, t as l } from "./shadow-resets-CtbMaZlz.js";
|
|
6
|
+
import "./icon-CeybqndL.js";
|
|
7
7
|
import { n as u } from "./input-modality-XE0B7yCn.js";
|
|
8
8
|
import { t as d } from "./owned-attribute-x9OCTy_4.js";
|
|
9
|
-
import { t as f } from "./described-by-mixin-
|
|
9
|
+
import { t as f } from "./described-by-mixin-Ih_IoqBD.js";
|
|
10
10
|
import { r as p } from "./element-state-D-J_cHEV.js";
|
|
11
11
|
import { t as m } from "./defer-focus-F73ud2D9.js";
|
|
12
12
|
// src/components/inputs/dropdown/dropdown.styles.ts
|
|
@@ -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-CuJsiFnl.js";
|
|
2
|
+
import { n as i, r as a, s as o } from "./custom-element-CDepWGgp.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-
|
|
6
|
-
import { t as u } from "./reflect-non-default-
|
|
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-
|
|
5
|
+
import { t as l } from "./form-associated-mixin-YG9BXK0j.js";
|
|
6
|
+
import { t as u } from "./reflect-non-default-DUOcGZKf.js";
|
|
7
|
+
import { s as d, t as f } from "./shadow-resets-CtbMaZlz.js";
|
|
8
|
+
import { a as p, o as m } from "./text-wrap-C6QQbSuj.js";
|
|
9
|
+
import { t as h } from "./class-map-D0fkDSLP.js";
|
|
10
|
+
import "./button-IRm7Oibq.js";
|
|
11
|
+
import "./icon-button-BLe-iiU5.js";
|
|
12
|
+
import "./icon-CeybqndL.js";
|
|
13
|
+
import "./tooltip-yXDfEbZ1.js";
|
|
14
|
+
import "./menu-Cvwt6mA5.js";
|
|
15
|
+
import "./activity-indicator-BmpMwyBH.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-Ih_IoqBD.js";
|
|
18
|
+
import { t as te } from "./with-translations-RkK-Bq8M.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",
|
|
@@ -696,11 +708,11 @@ var w = {
|
|
|
696
708
|
odg: "file-odg",
|
|
697
709
|
odf: "file-odf"
|
|
698
710
|
};
|
|
699
|
-
function
|
|
711
|
+
function ue(e) {
|
|
700
712
|
let t = e.files;
|
|
701
|
-
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";
|
|
702
714
|
}
|
|
703
|
-
function
|
|
715
|
+
function T(e) {
|
|
704
716
|
return !e.invalid && !e.valid ? n : t`
|
|
705
717
|
<div class="file-field__validation-icon-area">
|
|
706
718
|
<nldd-icon class="file-field__validation-icon"
|
|
@@ -710,7 +722,7 @@ function E(e) {
|
|
|
710
722
|
</div>
|
|
711
723
|
`;
|
|
712
724
|
}
|
|
713
|
-
function
|
|
725
|
+
function E(e, n) {
|
|
714
726
|
return t`
|
|
715
727
|
<span class="file-field__${e}">${n.map((e) => t`
|
|
716
728
|
<span class=${h({
|
|
@@ -720,7 +732,7 @@ function D(e, n) {
|
|
|
720
732
|
`)}</span>
|
|
721
733
|
`;
|
|
722
734
|
}
|
|
723
|
-
function
|
|
735
|
+
function D(e, t, n) {
|
|
724
736
|
let r = e._dragRejection ?? e._rejection, i = !r && e._drag !== "none";
|
|
725
737
|
return [
|
|
726
738
|
{
|
|
@@ -733,10 +745,10 @@ function O(e, t, n) {
|
|
|
733
745
|
kind: "drop",
|
|
734
746
|
active: i && e._drag === "over"
|
|
735
747
|
},
|
|
736
|
-
...
|
|
748
|
+
...de(e, r)
|
|
737
749
|
];
|
|
738
750
|
}
|
|
739
|
-
function
|
|
751
|
+
function O(e) {
|
|
740
752
|
if (e.variant === "area") return [];
|
|
741
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>`;
|
|
742
754
|
return [
|
|
@@ -767,7 +779,7 @@ function k(e) {
|
|
|
767
779
|
active: !1
|
|
768
780
|
}));
|
|
769
781
|
}
|
|
770
|
-
function
|
|
782
|
+
function de(e, t) {
|
|
771
783
|
return (e._multiple ? [
|
|
772
784
|
"type",
|
|
773
785
|
"empty-folder",
|
|
@@ -782,7 +794,7 @@ function oe(e, t) {
|
|
|
782
794
|
active: t === n
|
|
783
795
|
}));
|
|
784
796
|
}
|
|
785
|
-
function
|
|
797
|
+
function k(e) {
|
|
786
798
|
let n = e.variant === "area", r = e.size === "sm";
|
|
787
799
|
return t`<nldd-activity-indicator class="file-field__reading-indicator"
|
|
788
800
|
timing="instant"
|
|
@@ -790,7 +802,7 @@ function A(e) {
|
|
|
790
802
|
?show-text=${n}
|
|
791
803
|
></nldd-activity-indicator>`;
|
|
792
804
|
}
|
|
793
|
-
function
|
|
805
|
+
function A(e) {
|
|
794
806
|
return t`
|
|
795
807
|
<nldd-menu-item
|
|
796
808
|
icon="files"
|
|
@@ -804,7 +816,7 @@ function j(e) {
|
|
|
804
816
|
></nldd-menu-item>
|
|
805
817
|
`;
|
|
806
818
|
}
|
|
807
|
-
function
|
|
819
|
+
function j(e, r) {
|
|
808
820
|
return t`
|
|
809
821
|
<nldd-button class="file-field__change-button"
|
|
810
822
|
appearance="neutral-tinted"
|
|
@@ -819,7 +831,7 @@ function M(e, r) {
|
|
|
819
831
|
></nldd-button>
|
|
820
832
|
`;
|
|
821
833
|
}
|
|
822
|
-
function
|
|
834
|
+
function fe(e) {
|
|
823
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");
|
|
824
836
|
return t`
|
|
825
837
|
<div class="file-field__choose-button-group">
|
|
@@ -844,8 +856,8 @@ function se(e) {
|
|
|
844
856
|
</div>
|
|
845
857
|
`;
|
|
846
858
|
}
|
|
847
|
-
function
|
|
848
|
-
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", [
|
|
849
861
|
{
|
|
850
862
|
content: s,
|
|
851
863
|
kind: "idle",
|
|
@@ -853,12 +865,12 @@ function ce(e) {
|
|
|
853
865
|
},
|
|
854
866
|
...r,
|
|
855
867
|
...i ? [] : [{
|
|
856
|
-
content: d ?
|
|
868
|
+
content: d ? k(e) : "",
|
|
857
869
|
kind: "reading",
|
|
858
870
|
active: d
|
|
859
871
|
}],
|
|
860
|
-
...
|
|
861
|
-
]), 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)}`;
|
|
862
874
|
return a ? t`<div class="file-field__drop-area" ?inert=${e._refused}>${g}</div>` : t`
|
|
863
875
|
<button class="file-field__choose-button"
|
|
864
876
|
type="button"
|
|
@@ -871,19 +883,16 @@ function ce(e) {
|
|
|
871
883
|
>${g}</button>
|
|
872
884
|
`;
|
|
873
885
|
}
|
|
874
|
-
function
|
|
875
|
-
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>`;
|
|
876
888
|
return t`
|
|
877
889
|
<nldd-tooltip text=${r} timing=${e._nameTruncated ? "delay" : "never"}>
|
|
878
|
-
<span class
|
|
879
|
-
"file-field__name": !0,
|
|
880
|
-
"is-wrapped": e._nameLines > 1
|
|
881
|
-
})} aria-hidden="true">${o}</span>
|
|
890
|
+
<span class="file-field__name ${h({ "is-wrapped": e._nameLines > 1 })}" aria-hidden="true">${o}</span>
|
|
882
891
|
</nldd-tooltip>
|
|
883
892
|
<span class="file-field__full-name">${r}</span>
|
|
884
893
|
`;
|
|
885
894
|
}
|
|
886
|
-
function
|
|
895
|
+
function he(e, r) {
|
|
887
896
|
let i = e._valueLabel(), a = e._t("components.file-field.folder-count-short-text", {
|
|
888
897
|
folder: r,
|
|
889
898
|
count: e.files.length
|
|
@@ -891,7 +900,7 @@ function ue(e, r) {
|
|
|
891
900
|
let s = i.indexOf(r);
|
|
892
901
|
if (o) {
|
|
893
902
|
let n = s < 0 ? i : i.slice(0, s) + (e._fittedFolder ?? r) + i.slice(s + r.length);
|
|
894
|
-
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>`;
|
|
895
904
|
}
|
|
896
905
|
let [c, l, u] = s < 0 ? [
|
|
897
906
|
"",
|
|
@@ -906,7 +915,7 @@ function ue(e, r) {
|
|
|
906
915
|
};
|
|
907
916
|
return t`${s(i, "full")}${s(a, "short")}<span class="file-field__full-name">${i}</span>`;
|
|
908
917
|
}
|
|
909
|
-
function
|
|
918
|
+
function ge(e, n) {
|
|
910
919
|
return t`
|
|
911
920
|
<nldd-icon-button class="file-field__more-button"
|
|
912
921
|
appearance="neutral-tinted"
|
|
@@ -918,7 +927,7 @@ function de(e, n) {
|
|
|
918
927
|
?disabled=${e.disabled}
|
|
919
928
|
>
|
|
920
929
|
<nldd-menu slot="popup">
|
|
921
|
-
${e.directory ?
|
|
930
|
+
${e.directory ? A(e) : t`
|
|
922
931
|
<nldd-menu-item
|
|
923
932
|
icon="edit"
|
|
924
933
|
text=${e._t("components.file-field.to-change-action")}
|
|
@@ -936,26 +945,23 @@ function de(e, n) {
|
|
|
936
945
|
</nldd-icon-button>
|
|
937
946
|
`;
|
|
938
947
|
}
|
|
939
|
-
function
|
|
940
|
-
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) => ({
|
|
941
950
|
...e,
|
|
942
951
|
active: e.active && a
|
|
943
|
-
})), s = e._folderName(), c = s ?
|
|
952
|
+
})), s = e._folderName(), c = s ? he(e, s) : n.length === 1 ? me(e, n[0].name) : e._valueLabel();
|
|
944
953
|
return t`
|
|
945
954
|
<div class="file-field__chosen-area" ?inert=${e._refused}>
|
|
946
|
-
<div class
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
})}>
|
|
950
|
-
<nldd-icon class="file-field__file-icon" icon=${T(e)} aria-hidden="true"></nldd-icon>
|
|
951
|
-
${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", [{
|
|
952
958
|
content: c,
|
|
953
959
|
kind: "idle",
|
|
954
960
|
active: !0
|
|
955
961
|
}])}
|
|
956
962
|
${r ? t`
|
|
957
963
|
<div class="file-field__edit-button-group">
|
|
958
|
-
${
|
|
964
|
+
${j(e, e.size)}
|
|
959
965
|
<nldd-button
|
|
960
966
|
appearance="neutral-base"
|
|
961
967
|
size=${e.size}
|
|
@@ -967,7 +973,7 @@ function fe(e) {
|
|
|
967
973
|
</div>
|
|
968
974
|
` : t`
|
|
969
975
|
<div class="file-field__edit-button-group">
|
|
970
|
-
${
|
|
976
|
+
${j(e, i)}
|
|
971
977
|
<nldd-icon-button class="file-field__clear-button"
|
|
972
978
|
appearance="neutral-transparent"
|
|
973
979
|
size=${i}
|
|
@@ -978,18 +984,15 @@ function fe(e) {
|
|
|
978
984
|
?disabled=${e.disabled}
|
|
979
985
|
@click=${e._handleClear}
|
|
980
986
|
></nldd-icon-button>
|
|
981
|
-
${
|
|
987
|
+
${ge(e, i)}
|
|
982
988
|
</div>
|
|
983
989
|
`}
|
|
984
|
-
${
|
|
990
|
+
${T(e)}
|
|
985
991
|
</div>
|
|
986
|
-
<div class
|
|
987
|
-
"file-field__replace-area": !0,
|
|
988
|
-
"is-active": a
|
|
989
|
-
})}>
|
|
992
|
+
<div class="file-field__replace-area ${h({ "is-active": a })}">
|
|
990
993
|
<nldd-icon class="file-field__upload-icon" icon="upload-to-cloud" aria-hidden="true"></nldd-icon>
|
|
991
|
-
${
|
|
992
|
-
${
|
|
994
|
+
${E("text", [...o, ...O(e)])}
|
|
995
|
+
${T(e)}
|
|
993
996
|
</div>
|
|
994
997
|
</div>
|
|
995
998
|
`;
|
|
@@ -997,13 +1000,12 @@ function fe(e) {
|
|
|
997
1000
|
function N(e) {
|
|
998
1001
|
let r = e.files.length > 0 && !e._reading;
|
|
999
1002
|
return t`
|
|
1000
|
-
<div aria-busy=${e._reading ? "true" : n} class
|
|
1001
|
-
"file-field": !0,
|
|
1003
|
+
<div aria-busy=${e._reading ? "true" : n} class="file-field ${h({
|
|
1002
1004
|
"file-field--area": e.variant === "area",
|
|
1003
1005
|
"has-files": r,
|
|
1004
1006
|
"is-refused": e._refused,
|
|
1005
1007
|
[`is-drag-${e._drag}`]: e._drag !== "none"
|
|
1006
|
-
})}>
|
|
1008
|
+
})}">
|
|
1007
1009
|
<input class="file-field__input"
|
|
1008
1010
|
type="file"
|
|
1009
1011
|
id=${e.inputId || n}
|
|
@@ -1025,9 +1027,9 @@ function N(e) {
|
|
|
1025
1027
|
<span class="file-field__menu-anchor"></span>
|
|
1026
1028
|
<nldd-menu class="file-field__choose-menu"
|
|
1027
1029
|
@beforetoggle=${(t) => e._handleMenuToggle(t)}
|
|
1028
|
-
>${
|
|
1030
|
+
>${A(e)}</nldd-menu>
|
|
1029
1031
|
` : n}
|
|
1030
|
-
${r ?
|
|
1032
|
+
${r ? M(e) : pe(e)}
|
|
1031
1033
|
${e._refused ? t`
|
|
1032
1034
|
<button class="file-field__dismiss-button"
|
|
1033
1035
|
type="button"
|
|
@@ -1102,7 +1104,7 @@ function B(e, t) {
|
|
|
1102
1104
|
let r = t.name.toLowerCase(), i = t.type.toLowerCase() || P[r.slice(r.lastIndexOf(".") + 1)]?.[0] || "", a = L(r.slice(r.lastIndexOf(".") + 1));
|
|
1103
1105
|
return n.some((e) => e.startsWith(".") ? L(e.slice(1)) === a : z(e, i));
|
|
1104
1106
|
}
|
|
1105
|
-
function
|
|
1107
|
+
function _e(e, t) {
|
|
1106
1108
|
let n = R(e);
|
|
1107
1109
|
if (n.length === 0 || !t) return !1;
|
|
1108
1110
|
let r = t.toLowerCase();
|
|
@@ -1115,7 +1117,7 @@ function pe(e, t) {
|
|
|
1115
1117
|
function V(e) {
|
|
1116
1118
|
return Array.from(e.items).some((e) => e.kind === "file" && e.webkitGetAsEntry?.()?.isDirectory);
|
|
1117
1119
|
}
|
|
1118
|
-
function
|
|
1120
|
+
function ve(e) {
|
|
1119
1121
|
let t = Array.from(e.items).filter((e) => e.kind === "file").map((e) => e.webkitGetAsEntry?.()).filter((e) => !!e);
|
|
1120
1122
|
return Promise.all(t.map(H)).then((e) => e.flat());
|
|
1121
1123
|
}
|
|
@@ -1137,7 +1139,7 @@ function W(e) {
|
|
|
1137
1139
|
let t = e[0];
|
|
1138
1140
|
return t instanceof HTMLElement ? t.isContentEditable || t instanceof HTMLTextAreaElement || t instanceof HTMLInputElement && t.type === "file" : !1;
|
|
1139
1141
|
}
|
|
1140
|
-
var G = /* @__PURE__ */ new Set(),
|
|
1142
|
+
var G = /* @__PURE__ */ new Set(), ye = 1e3, K;
|
|
1141
1143
|
function q() {
|
|
1142
1144
|
clearTimeout(K);
|
|
1143
1145
|
for (let e of G) e._setDrag("none", null);
|
|
@@ -1146,20 +1148,20 @@ function J(e) {
|
|
|
1146
1148
|
if (!U(e.dataTransfer)) return;
|
|
1147
1149
|
let t = e.composedPath();
|
|
1148
1150
|
for (let n of G) n._setDrag(t.includes(n) ? "over" : "page", e.dataTransfer);
|
|
1149
|
-
clearTimeout(K), K = setTimeout(q,
|
|
1151
|
+
clearTimeout(K), K = setTimeout(q, ye), e.defaultPrevented || W(t) || (e.preventDefault(), e.dataTransfer.dropEffect = "none");
|
|
1150
1152
|
}
|
|
1151
1153
|
function Y(e) {
|
|
1152
1154
|
U(e.dataTransfer) && (!e.defaultPrevented && !W(e.composedPath()) && e.preventDefault(), q());
|
|
1153
1155
|
}
|
|
1154
|
-
function
|
|
1156
|
+
function be(e) {
|
|
1155
1157
|
G.size === 0 && (window.addEventListener("dragover", J), window.addEventListener("drop", Y), window.addEventListener("dragend", q)), G.add(e);
|
|
1156
1158
|
}
|
|
1157
|
-
function
|
|
1159
|
+
function xe(e) {
|
|
1158
1160
|
G.delete(e), G.size > 0 || (window.removeEventListener("dragover", J), window.removeEventListener("drop", Y), window.removeEventListener("dragend", q), clearTimeout(K));
|
|
1159
1161
|
}
|
|
1160
1162
|
// src/utilities/file-drag-and-drop.ts
|
|
1161
1163
|
var X = "(hover: none)";
|
|
1162
|
-
function
|
|
1164
|
+
function Se() {
|
|
1163
1165
|
return typeof matchMedia != "function" || !matchMedia(X).matches;
|
|
1164
1166
|
}
|
|
1165
1167
|
var Z = class {
|
|
@@ -1172,13 +1174,13 @@ var Z = class {
|
|
|
1172
1174
|
hostDisconnected() {
|
|
1173
1175
|
this._query?.removeEventListener("change", this._handleChange);
|
|
1174
1176
|
}
|
|
1175
|
-
}, Q,
|
|
1177
|
+
}, Q, Ce = 4e3, we = 1e3, Te = 300, Ee = {
|
|
1176
1178
|
image: "components.file-field.image-lowercase",
|
|
1177
1179
|
video: "components.file-field.video-lowercase",
|
|
1178
1180
|
audio: "components.file-field.audio-file-lowercase"
|
|
1179
1181
|
}, $ = (Q = class extends ee(l(te(e, g))) {
|
|
1180
1182
|
constructor(...e) {
|
|
1181
|
-
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._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 = -
|
|
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._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 = -1e400, this._fileDrag = new Z(this), this._action = 0, this._handleDragOver = (e) => {
|
|
1182
1184
|
!this.disabled && e.dataTransfer && U(e.dataTransfer) && (this._judge(e.dataTransfer) || (e.preventDefault(), e.dataTransfer.dropEffect = "copy"));
|
|
1183
1185
|
}, this._handleDrop = (e) => {
|
|
1184
1186
|
if (!e.dataTransfer || !U(e.dataTransfer) || (e.preventDefault(), this.disabled)) return;
|
|
@@ -1187,7 +1189,7 @@ var Z = class {
|
|
|
1187
1189
|
let n = Array.from(e.dataTransfer.files), r = this._judge(e.dataTransfer, n);
|
|
1188
1190
|
r ? this._refuse(r) : V(e.dataTransfer) ? (this._readingTimer = setTimeout(() => {
|
|
1189
1191
|
this._reading = !0;
|
|
1190
|
-
},
|
|
1192
|
+
}, we), ve(e.dataTransfer).then((e) => {
|
|
1191
1193
|
t === this._action && (this._stopReading(), e.length ? this._takeDrop(e) : this._refuse("empty-folder"));
|
|
1192
1194
|
}, () => {
|
|
1193
1195
|
t === this._action && (this._stopReading(), this._refuse("unreadable-folder"));
|
|
@@ -1218,7 +1220,7 @@ var Z = class {
|
|
|
1218
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");
|
|
1219
1221
|
}
|
|
1220
1222
|
_chooseAccessibleLabel() {
|
|
1221
|
-
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;
|
|
1222
1224
|
return [
|
|
1223
1225
|
e ? `${this._chooseLabel()} ${e}` : this._chooseLabel(),
|
|
1224
1226
|
t ? this._t("components.file-field.accepted-types-text", { types: t }) : "",
|
|
@@ -1238,7 +1240,7 @@ var Z = class {
|
|
|
1238
1240
|
_acceptTypes() {
|
|
1239
1241
|
let e = I(this.accept);
|
|
1240
1242
|
if (!e) return null;
|
|
1241
|
-
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]));
|
|
1242
1244
|
return t.length === 1 ? t[0] : this._t("components.file-field.list-lowercase-text", {
|
|
1243
1245
|
items: t.slice(0, -1).join(", "),
|
|
1244
1246
|
last: t[t.length - 1]
|
|
@@ -1267,12 +1269,12 @@ var Z = class {
|
|
|
1267
1269
|
return e.size === 1 && t ? t : null;
|
|
1268
1270
|
}
|
|
1269
1271
|
connectedCallback() {
|
|
1270
|
-
super.connectedCallback(),
|
|
1272
|
+
super.connectedCallback(), be(this), this._resizeObserver ?? (this._resizeObserver = new ResizeObserver(() => this._fitName())), this._resizeObserver.observe(this), document.fonts?.ready.then(() => {
|
|
1271
1273
|
this.isConnected && this._fitName();
|
|
1272
1274
|
}), this.addEventListener("dragover", this._handleDragOver), this.addEventListener("drop", this._handleDrop), this.addEventListener("keydown", this._handleKeydown);
|
|
1273
1275
|
}
|
|
1274
1276
|
disconnectedCallback() {
|
|
1275
|
-
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);
|
|
1276
1278
|
}
|
|
1277
1279
|
updated(e) {
|
|
1278
1280
|
(e.has("_files") || e.has("size") || e.has("variant") || e.has("_drag")) && this._fitNameAfterRender();
|
|
@@ -1308,9 +1310,9 @@ var Z = class {
|
|
|
1308
1310
|
}
|
|
1309
1311
|
let s = this._files[0].name;
|
|
1310
1312
|
if (o === 1) {
|
|
1311
|
-
let { measure: e, done: t } =
|
|
1313
|
+
let { measure: e, done: t } = ce(r);
|
|
1312
1314
|
try {
|
|
1313
|
-
let { text: t, truncated: n } =
|
|
1315
|
+
let { text: t, truncated: n } = C(s, a, e);
|
|
1314
1316
|
this._fittedName = t, this._nameTruncated = n;
|
|
1315
1317
|
} finally {
|
|
1316
1318
|
t();
|
|
@@ -1321,9 +1323,9 @@ var Z = class {
|
|
|
1321
1323
|
this._fittedName = c, this._nameTruncated = l;
|
|
1322
1324
|
}
|
|
1323
1325
|
_cutToLines(e, t, n, r, i = (e) => e, a = !0) {
|
|
1324
|
-
let { fits: o, done: s } =
|
|
1326
|
+
let { fits: o, done: s } = se(e, t, n);
|
|
1325
1327
|
try {
|
|
1326
|
-
return
|
|
1328
|
+
return w(r, (e) => o(i(e)), { keepExtension: a });
|
|
1327
1329
|
} finally {
|
|
1328
1330
|
s();
|
|
1329
1331
|
}
|
|
@@ -1348,7 +1350,7 @@ var Z = class {
|
|
|
1348
1350
|
t.hidePopover();
|
|
1349
1351
|
return;
|
|
1350
1352
|
}
|
|
1351
|
-
if (performance.now() - this._menuClosedAt <
|
|
1353
|
+
if (performance.now() - this._menuClosedAt < Te) return;
|
|
1352
1354
|
t.anchorElement = e.currentTarget.classList.contains("file-field__choose-button") && this._pointAt(e) || e.currentTarget, t.showPopover();
|
|
1353
1355
|
} else this._input?.click();
|
|
1354
1356
|
}
|
|
@@ -1379,7 +1381,7 @@ var Z = class {
|
|
|
1379
1381
|
_judge(e, t) {
|
|
1380
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";
|
|
1381
1383
|
let n = Array.from(e.items).filter((e) => e.kind === "file");
|
|
1382
|
-
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;
|
|
1383
1385
|
}
|
|
1384
1386
|
_setDrag(e, t) {
|
|
1385
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);
|
|
@@ -1397,7 +1399,7 @@ var Z = class {
|
|
|
1397
1399
|
let t = this.matches(":focus-within");
|
|
1398
1400
|
this._rejection = e, clearTimeout(this._rejectionTimer), this._rejectionTimer = setTimeout(() => {
|
|
1399
1401
|
this._clearRejection(), this._announcement = this._rejectionText(e);
|
|
1400
|
-
},
|
|
1402
|
+
}, Ce), t && this.updateComplete.then(() => this.focus());
|
|
1401
1403
|
}
|
|
1402
1404
|
_stopReading() {
|
|
1403
1405
|
clearTimeout(this._readingTimer), this._reading = !1;
|
|
@@ -1450,7 +1452,7 @@ var Z = class {
|
|
|
1450
1452
|
return Array.from(t).find((e) => !e.matches(".file-field__change-button, .file-field__more-button") || (e.checkVisibility?.() ?? !0)) ?? t[0] ?? null;
|
|
1451
1453
|
}
|
|
1452
1454
|
focus(e) {
|
|
1453
|
-
|
|
1455
|
+
ne(this, e) || this._chooseButton()?.focus(e);
|
|
1454
1456
|
}
|
|
1455
1457
|
describedTarget() {
|
|
1456
1458
|
return this._chooseButton();
|
|
@@ -1458,7 +1460,7 @@ var Z = class {
|
|
|
1458
1460
|
render() {
|
|
1459
1461
|
return N(this);
|
|
1460
1462
|
}
|
|
1461
|
-
}, Q.styles =
|
|
1463
|
+
}, Q.styles = _, Q.isFormInput = !0, Q);
|
|
1462
1464
|
r([a({
|
|
1463
1465
|
reflect: !0,
|
|
1464
1466
|
converter: u("control")
|
|
@@ -719,14 +719,14 @@ function Fe(e, t) {
|
|
|
719
719
|
return r && G(r) && Ne(r) && !U(r) ? n : r || me(e) || n;
|
|
720
720
|
}
|
|
721
721
|
var Ie = async function(e) {
|
|
722
|
-
let t = this.getOffsetParent || Fe, n = this.getDimensions
|
|
722
|
+
let t = this.getOffsetParent || Fe, n = await (0, this.getDimensions)(e.floating);
|
|
723
723
|
return {
|
|
724
724
|
reference: Me(e.reference, await t(e.floating), e.strategy),
|
|
725
725
|
floating: {
|
|
726
726
|
x: 0,
|
|
727
727
|
y: 0,
|
|
728
|
-
width:
|
|
729
|
-
height:
|
|
728
|
+
width: n.width,
|
|
729
|
+
height: n.height
|
|
730
730
|
}
|
|
731
731
|
};
|
|
732
732
|
};
|
|
@@ -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-CuJsiFnl.js";
|
|
2
|
+
import { c as r, r as i, s as a } from "./custom-element-CDepWGgp.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";
|