@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,13 +1,13 @@
|
|
|
1
|
-
import { n as e, r as t, s as n } from "./custom-element-
|
|
2
|
-
import { t as r } from "./reflect-non-default-
|
|
3
|
-
import { B as i, F as a, M as o, Q as s, V as c, W as l, et as u, i as d, it as f, j as p, k as m, r as h, t as ee } from "./languages-
|
|
1
|
+
import { n as e, r as t, s as n } from "./custom-element-CDepWGgp.js";
|
|
2
|
+
import { t as r } from "./reflect-non-default-DUOcGZKf.js";
|
|
3
|
+
import { B as i, F as a, M as o, Q as s, V as c, W as l, et as u, i as d, it as f, j as p, k as m, r as h, t as ee } from "./languages-CT6Im_c5.js";
|
|
4
4
|
import { t as g } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
-
import { o as _, r as v, t as y } from "./decorate-
|
|
6
|
-
import {
|
|
5
|
+
import { o as _, r as v, t as y } from "./decorate-CuJsiFnl.js";
|
|
6
|
+
import { s as b, t as x } from "./shadow-resets-CtbMaZlz.js";
|
|
7
7
|
import { t as te } from "./code-viewer.i18n-BHfSDRbK.js";
|
|
8
|
-
import "./icon-button-
|
|
9
|
-
import { n as ne } from "./tooltip-
|
|
10
|
-
import { t as S } from "./with-translations-
|
|
8
|
+
import "./icon-button-BLe-iiU5.js";
|
|
9
|
+
import { n as ne } from "./tooltip-yXDfEbZ1.js";
|
|
10
|
+
import { t as S } from "./with-translations-RkK-Bq8M.js";
|
|
11
11
|
import { r as C } from "./element-state-D-J_cHEV.js";
|
|
12
12
|
import { t as w } from "./defer-focus-F73ud2D9.js";
|
|
13
13
|
import { n as T, t as E } from "./layout-pass-B2ALRYc9.js";
|
|
@@ -37,6 +37,10 @@ var re = n`
|
|
|
37
37
|
--_code-viewer-actions-gap: var(--primitives-space-8);
|
|
38
38
|
--_code-viewer-actions-area-size: calc(var(--_code-viewer-actions-button-size) + var(--_code-viewer-actions-area-padding) * 2);
|
|
39
39
|
--_code-viewer-actions-z-index: 1;
|
|
40
|
+
--_code-viewer-actions-fade-color: var(--_code-viewer-background-color);
|
|
41
|
+
--_code-viewer-actions-fade-size: var(--primitives-space-24);
|
|
42
|
+
/* Extra padding at the end of the lines while the code overflows: room for the fade. */
|
|
43
|
+
--_code-viewer-overflow-padding-right: var(--primitives-space-0);
|
|
40
44
|
--_code-viewer-highlight-border-z-index: 1;
|
|
41
45
|
--_code-viewer-max-height: none;
|
|
42
46
|
--_code-viewer-diff-added-background-color: light-dark(var(--primitives-color-success-100), var(--primitives-color-success-200));
|
|
@@ -75,6 +79,7 @@ var re = n`
|
|
|
75
79
|
}
|
|
76
80
|
|
|
77
81
|
:host([appearance="simple"]) {
|
|
82
|
+
--_code-viewer-actions-fade-color: var(--context-background-color);
|
|
78
83
|
--_code-viewer-corner-radius: 0;
|
|
79
84
|
--_code-viewer-background-color: transparent;
|
|
80
85
|
--_code-viewer-highlight-border-color: transparent;
|
|
@@ -127,7 +132,7 @@ var re = n`
|
|
|
127
132
|
}
|
|
128
133
|
|
|
129
134
|
:host(:not([no-copy]):not([copy-unavailable])) .code-viewer .cm-scroller .cm-content {
|
|
130
|
-
padding-right: var(--_code-viewer-actions-area-size);
|
|
135
|
+
padding-right: calc(var(--_code-viewer-actions-area-size) + var(--_code-viewer-overflow-padding-right));
|
|
131
136
|
}
|
|
132
137
|
|
|
133
138
|
:host([appearance="simple"]:not([no-copy]):not([copy-unavailable])) {
|
|
@@ -135,7 +140,7 @@ var re = n`
|
|
|
135
140
|
}
|
|
136
141
|
|
|
137
142
|
:host([appearance="simple"]:not([no-copy]):not([copy-unavailable])) .code-viewer .cm-scroller .cm-content {
|
|
138
|
-
padding-right: calc(var(--_code-viewer-actions-area-size) + var(--_code-viewer-actions-gap));
|
|
143
|
+
padding-right: calc(var(--_code-viewer-actions-area-size) + var(--_code-viewer-actions-gap) + var(--_code-viewer-overflow-padding-right));
|
|
139
144
|
}
|
|
140
145
|
|
|
141
146
|
/* The horizontally-scrollable region is CodeMirror's scroller; it gets
|
|
@@ -202,7 +207,7 @@ var re = n`
|
|
|
202
207
|
}
|
|
203
208
|
|
|
204
209
|
:host([diff]:not([no-copy]):not([copy-unavailable])) .cm-line {
|
|
205
|
-
padding-right: var(--_code-viewer-actions-area-size);
|
|
210
|
+
padding-right: calc(var(--_code-viewer-actions-area-size) + var(--_code-viewer-overflow-padding-right));
|
|
206
211
|
}
|
|
207
212
|
|
|
208
213
|
/* The gutters stay put while the code scrolls sideways under them. The
|
|
@@ -340,6 +345,28 @@ var re = n`
|
|
|
340
345
|
z-index: var(--_code-viewer-actions-z-index);
|
|
341
346
|
}
|
|
342
347
|
|
|
348
|
+
/* Code that scrolls passes under the button. From the corner the button
|
|
349
|
+
sits in, the surface fades in over it, so a line neither runs into the
|
|
350
|
+
button nor stops short at a hard edge. Only while the code overflows:
|
|
351
|
+
otherwise no line reaches this corner, and the fade would only dim the
|
|
352
|
+
end of a line that fits. */
|
|
353
|
+
/* Scrolled to its end, a line stops before the fade, not under it. */
|
|
354
|
+
.code-viewer:has(.cm-scroller[tabindex]) {
|
|
355
|
+
--_code-viewer-overflow-padding-right: var(--_code-viewer-actions-fade-size);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.code-viewer:has(.cm-scroller[tabindex]) .code-viewer__actions::before {
|
|
359
|
+
content: '';
|
|
360
|
+
position: absolute;
|
|
361
|
+
top: calc(var(--_code-viewer-actions-area-padding) * -1);
|
|
362
|
+
right: calc(var(--_code-viewer-actions-area-padding) * -1);
|
|
363
|
+
z-index: -1;
|
|
364
|
+
width: calc(var(--_code-viewer-actions-area-size) + var(--_code-viewer-actions-fade-size));
|
|
365
|
+
height: calc(var(--_code-viewer-actions-area-size) + var(--_code-viewer-actions-fade-size));
|
|
366
|
+
background: radial-gradient(farthest-side at top right, var(--_code-viewer-actions-fade-color) 70%, transparent);
|
|
367
|
+
pointer-events: none;
|
|
368
|
+
}
|
|
369
|
+
|
|
343
370
|
.code-viewer__live-region {
|
|
344
371
|
${b}
|
|
345
372
|
}
|
|
@@ -402,7 +429,7 @@ function ae(e) {
|
|
|
402
429
|
return n.some((e, t) => e.startsWith("--- ") && n[t + 1]?.startsWith("+++ ")) ? e.slice(t) : e;
|
|
403
430
|
}
|
|
404
431
|
function k(e) {
|
|
405
|
-
let t = e.replace(/\r\n?/g, "\n").replace(/\n$/, "").split("\n"), n = t.some((e) => D.test(e)), r = n ? t : ae(t), i = [], a = 1, o = 1, s = n ? 0 :
|
|
432
|
+
let t = e.replace(/\r\n?/g, "\n").replace(/\n$/, "").split("\n"), n = t.some((e) => D.test(e)), r = n ? t : ae(t), i = [], a = 1, o = 1, s = n ? 0 : 1e400, c = n ? 0 : 1e400, l = null, u = 0, d = 0, f = !1, p = 0;
|
|
406
433
|
for (let e of r) {
|
|
407
434
|
let t = D.exec(e);
|
|
408
435
|
if (t) {
|
|
@@ -556,7 +583,7 @@ var z = .5, B = m.mark({ class: "cm-diff-removed-word" }), V = m.mark({ class: "
|
|
|
556
583
|
async function H(e) {
|
|
557
584
|
let t = A(e.lines);
|
|
558
585
|
if (t.length === 0) return [];
|
|
559
|
-
let { presentableDiff: n } = await import("./dist-
|
|
586
|
+
let { presentableDiff: n } = await import("./dist-Cr0OiT-0.js"), r = L(e.lines), i = [];
|
|
560
587
|
for (let [a, o] of t) {
|
|
561
588
|
let t = e.lines[a].text, s = e.lines[o].text, c = n(t, s);
|
|
562
589
|
if (c.length !== 0 && !(c.reduce((e, t) => e + t.toA - t.fromA, 0) + c.reduce((e, t) => e + t.toB - t.fromB, 0) > (t.length + s.length) * z)) for (let e of c) e.toA > e.fromA && i.push(B.range(r[a] + e.fromA, r[a] + e.toA)), e.toB > e.fromB && i.push(V.range(r[o] + e.fromB, r[o] + e.toB));
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as de } from "./form-associated-mixin-C1rOeFAh.js";
|
|
1
|
+
import { $ as e, A as t, C as n, E as r, K as i, O as a, Q as o, St as s, X as c, Y as l, Z as u, b as d, ct as f, et as p, ht as m, i as ee, j as h, lt as te, mt as g, o as ne, pt as re, st as ie, tt as ae, ut as _, w as oe, x as se } from "./languages-CT6Im_c5.js";
|
|
2
|
+
import { r as v } from "./custom-element-CDepWGgp.js";
|
|
3
|
+
import { n as ce, t as y } from "./decorate-CuJsiFnl.js";
|
|
4
|
+
import { t as le } from "./reflect-non-default-DUOcGZKf.js";
|
|
5
|
+
import { t as ue } from "./described-by-mixin-Ih_IoqBD.js";
|
|
6
|
+
import { t as de } from "./form-associated-mixin-YG9BXK0j.js";
|
|
8
7
|
// node_modules/@codemirror/commands/dist/index.js
|
|
9
8
|
var fe = (e) => {
|
|
10
9
|
let { state: t } = e, n = t.doc.lineAt(t.selection.main.from), r = x(e.state, n.from);
|
|
@@ -91,11 +90,11 @@ function ve(e, t, n = t.selection.ranges) {
|
|
|
91
90
|
}
|
|
92
91
|
function ye(e, t, n = t.selection.ranges) {
|
|
93
92
|
let r = [], i = -1;
|
|
94
|
-
|
|
93
|
+
e: for (let { from: e, to: a } of n) {
|
|
95
94
|
let n = r.length, o = 1e9, s;
|
|
96
95
|
for (let n = e; n <= a;) {
|
|
97
96
|
let c = t.doc.lineAt(n);
|
|
98
|
-
if (s == null && (s = x(t, c.from).line, !s)) continue
|
|
97
|
+
if (s == null && (s = x(t, c.from).line, !s)) continue e;
|
|
99
98
|
if (c.from > i && (e == a || a > c.from)) {
|
|
100
99
|
i = c.from;
|
|
101
100
|
let e = /^\s*/.exec(c.text)[0].length, t = e == c.length, n = c.text.slice(e, e + s.length) == s ? e : -1;
|
|
@@ -201,12 +200,12 @@ function Ee(e) {
|
|
|
201
200
|
return r.length - (r.length && !r[0].changes ? 1 : 0);
|
|
202
201
|
};
|
|
203
202
|
}
|
|
204
|
-
var De = /*@__PURE__*/ Ee(0), Oe = /*@__PURE__*/ Ee(1), O = class
|
|
203
|
+
var De = /*@__PURE__*/ Ee(0), Oe = /*@__PURE__*/ Ee(1), O = class t {
|
|
205
204
|
constructor(e, t, n, r, i) {
|
|
206
205
|
this.changes = e, this.effects = t, this.mapped = n, this.startSelection = r, this.selectionsAfter = i;
|
|
207
206
|
}
|
|
208
|
-
setSelAfter(
|
|
209
|
-
return new
|
|
207
|
+
setSelAfter(e) {
|
|
208
|
+
return new t(this.changes, this.effects, this.mapped, this.startSelection, e);
|
|
210
209
|
}
|
|
211
210
|
toJSON() {
|
|
212
211
|
return {
|
|
@@ -217,18 +216,18 @@ var De = /*@__PURE__*/ Ee(0), Oe = /*@__PURE__*/ Ee(1), O = class e {
|
|
|
217
216
|
};
|
|
218
217
|
}
|
|
219
218
|
static fromJSON(n) {
|
|
220
|
-
return new
|
|
219
|
+
return new t(n.changes && u.fromJSON(n.changes), [], n.mapped && c.fromJSON(n.mapped), n.startSelection && e.fromJSON(n.startSelection), n.selectionsAfter.map(e.fromJSON));
|
|
221
220
|
}
|
|
222
|
-
static fromTransaction(
|
|
221
|
+
static fromTransaction(e, n) {
|
|
223
222
|
let r = j;
|
|
224
|
-
for (let
|
|
225
|
-
let n = e
|
|
223
|
+
for (let t of e.startState.facet(xe)) {
|
|
224
|
+
let n = t(e);
|
|
226
225
|
n.length && (r = r.concat(n));
|
|
227
226
|
}
|
|
228
|
-
return !r.length &&
|
|
227
|
+
return !r.length && e.changes.empty ? null : new t(e.changes.invert(e.startState.doc), r, void 0, n || e.startState.selection, j);
|
|
229
228
|
}
|
|
230
|
-
static selection(
|
|
231
|
-
return new
|
|
229
|
+
static selection(e) {
|
|
230
|
+
return new t(void 0, j, void 0, void 0, e);
|
|
232
231
|
}
|
|
233
232
|
};
|
|
234
233
|
function k(e, t, n, r) {
|
|
@@ -362,8 +361,8 @@ var Ie = [
|
|
|
362
361
|
preventDefault: !0
|
|
363
362
|
}
|
|
364
363
|
];
|
|
365
|
-
function P(
|
|
366
|
-
return
|
|
364
|
+
function P(t, n) {
|
|
365
|
+
return e.create(t.ranges.map(n), t.mainIndex);
|
|
367
366
|
}
|
|
368
367
|
function F(e, t) {
|
|
369
368
|
return e.update({
|
|
@@ -376,14 +375,14 @@ function I({ state: e, dispatch: t }, n) {
|
|
|
376
375
|
let r = P(e.selection, n);
|
|
377
376
|
return !r.eq(e.selection, !0) && (t(F(e, r)), !0);
|
|
378
377
|
}
|
|
379
|
-
function L(
|
|
380
|
-
return
|
|
378
|
+
function L(t, n) {
|
|
379
|
+
return e.cursor(n ? t.to : t.from);
|
|
381
380
|
}
|
|
382
381
|
function Le(e, t) {
|
|
383
382
|
return I(e, (n) => n.empty ? e.moveByChar(n, t) : L(n, t));
|
|
384
383
|
}
|
|
385
384
|
function R(e) {
|
|
386
|
-
return e.textDirectionAt(e.state.selection.main.head) ==
|
|
385
|
+
return e.textDirectionAt(e.state.selection.main.head) == t.LTR;
|
|
387
386
|
}
|
|
388
387
|
var Re = (e) => Le(e, !R(e)), z = (e) => Le(e, R(e));
|
|
389
388
|
function B(e, t) {
|
|
@@ -396,15 +395,15 @@ function Ve(e, t, n) {
|
|
|
396
395
|
let r = t.to - t.from;
|
|
397
396
|
return r && (r > 2 || /[^\s,.;:]/.test(e.sliceDoc(t.from, t.to))) || t.firstChild;
|
|
398
397
|
}
|
|
399
|
-
function V(
|
|
400
|
-
let
|
|
401
|
-
for (let e =
|
|
402
|
-
let
|
|
403
|
-
if (!
|
|
404
|
-
Ve(
|
|
398
|
+
function V(t, n, i) {
|
|
399
|
+
let o = a(t).resolveInner(n.head), c = i ? s.closedBy : s.openedBy;
|
|
400
|
+
for (let e = n.head;;) {
|
|
401
|
+
let n = i ? o.childAfter(e) : o.childBefore(e);
|
|
402
|
+
if (!n) break;
|
|
403
|
+
Ve(t, n, c) ? o = n : e = i ? n.to : n.from;
|
|
405
404
|
}
|
|
406
|
-
let l =
|
|
407
|
-
return d = l && (u =
|
|
405
|
+
let l = o.type.prop(c), u, d;
|
|
406
|
+
return d = l && (u = i ? r(t, o.from, 1) : r(t, o.to, -1)) && u.matched ? i ? u.end.to : u.end.from : i ? o.to : o.from, e.cursor(d, i ? -1 : 1);
|
|
408
407
|
}
|
|
409
408
|
var He = (e) => I(e, (t) => V(e.state, t, !R(e))), Ue = (e) => I(e, (t) => V(e.state, t, R(e)));
|
|
410
409
|
function We(e, t) {
|
|
@@ -445,33 +444,33 @@ function Je(e, t) {
|
|
|
445
444
|
return e.dispatch(F(r, i), { effects: a }), !0;
|
|
446
445
|
}
|
|
447
446
|
var Ye = (e) => Je(e, !1), H = (e) => Je(e, !0);
|
|
448
|
-
function U(
|
|
449
|
-
let i =
|
|
450
|
-
if (a.head == n.head && a.head != (r ? i.to : i.from) && (a =
|
|
451
|
-
let r = /^\s*/.exec(
|
|
452
|
-
r && n.head != i.from + r && (a =
|
|
447
|
+
function U(t, n, r) {
|
|
448
|
+
let i = t.lineBlockAt(n.head), a = t.moveToLineBoundary(n, r);
|
|
449
|
+
if (a.head == n.head && a.head != (r ? i.to : i.from) && (a = t.moveToLineBoundary(n, r, !1)), !r && a.head == i.from && i.length) {
|
|
450
|
+
let r = /^\s*/.exec(t.state.sliceDoc(i.from, Math.min(i.from + 100, i.to)))[0].length;
|
|
451
|
+
r && n.head != i.from + r && (a = e.cursor(i.from + r));
|
|
453
452
|
}
|
|
454
453
|
return a;
|
|
455
454
|
}
|
|
456
455
|
var Xe = (e) => I(e, (t) => U(e, t, !0)), Ze = (e) => I(e, (t) => U(e, t, !1)), Qe = (e) => I(e, (t) => U(e, t, !R(e))), $e = (e) => I(e, (t) => U(e, t, R(e))), et = (e) => I(e, (t) => e.moveToLineBoundary(t, !1, !1)), tt = (e) => I(e, (t) => e.moveToLineBoundary(t, !0, !1));
|
|
457
|
-
function nt(
|
|
458
|
-
let a = !1, o = P(
|
|
459
|
-
let o =
|
|
456
|
+
function nt(t, n, i) {
|
|
457
|
+
let a = !1, o = P(t.selection, (n) => {
|
|
458
|
+
let o = r(t, n.head, -1) || r(t, n.head, 1) || n.head > 0 && r(t, n.head - 1, 1) || n.head < t.doc.length && r(t, n.head + 1, -1);
|
|
460
459
|
if (!o || !o.end) return n;
|
|
461
460
|
a = !0;
|
|
462
461
|
let s = o.start.from == n.head ? o.end.to : o.end.from;
|
|
463
|
-
return
|
|
462
|
+
return i ? e.range(n.anchor, s) : e.cursor(s);
|
|
464
463
|
});
|
|
465
|
-
return a ? (n(F(
|
|
464
|
+
return a ? (n(F(t, o)), !0) : !1;
|
|
466
465
|
}
|
|
467
466
|
var rt = ({ state: e, dispatch: t }) => nt(e, t, !1);
|
|
468
|
-
function W(
|
|
469
|
-
let i = P(
|
|
470
|
-
|
|
471
|
-
let i = r(
|
|
472
|
-
return
|
|
467
|
+
function W(t, n, r) {
|
|
468
|
+
let i = P(t.state.selection, (t) => {
|
|
469
|
+
t.undirectional && t.head >= t.anchor != n && (t = e.range(t.head, t.anchor));
|
|
470
|
+
let i = r(t);
|
|
471
|
+
return e.range(t.anchor, i.head, i.goalColumn, i.bidiLevel || void 0, i.assoc);
|
|
473
472
|
});
|
|
474
|
-
return !i.eq(
|
|
473
|
+
return !i.eq(t.state.selection) && (t.dispatch(F(t.state, i)), !0);
|
|
475
474
|
}
|
|
476
475
|
function it(e, t) {
|
|
477
476
|
return W(e, t, (n) => e.moveByChar(n, t));
|
|
@@ -500,7 +499,7 @@ var gt = (e) => ht(e, !1), _t = (e) => ht(e, !0), vt = (e) => W(e, !0, (t) => U(
|
|
|
500
499
|
}, xt = (e) => {
|
|
501
500
|
let t = R(e);
|
|
502
501
|
return W(e, t, (n) => U(e, n, t));
|
|
503
|
-
}, St = (
|
|
502
|
+
}, St = (t) => W(t, !1, (n) => e.cursor(t.lineBlockAt(n.head).from)), Ct = (t) => W(t, !0, (n) => e.cursor(t.lineBlockAt(n.head).to)), wt = ({ state: e, dispatch: t }) => (t(F(e, { anchor: 0 })), !0), Tt = ({ state: e, dispatch: t }) => (t(F(e, { anchor: e.doc.length })), !0), Et = ({ state: e, dispatch: t }) => (t(F(e, {
|
|
504
503
|
anchor: e.selection.main.anchor,
|
|
505
504
|
head: 0
|
|
506
505
|
})), !0), Dt = ({ state: e, dispatch: t }) => (t(F(e, {
|
|
@@ -512,64 +511,64 @@ var gt = (e) => ht(e, !1), _t = (e) => ht(e, !0), vt = (e) => W(e, !0, (t) => U(
|
|
|
512
511
|
head: e.doc.length
|
|
513
512
|
},
|
|
514
513
|
userEvent: "select"
|
|
515
|
-
})), !0), kt = ({ state:
|
|
516
|
-
let r = Y(
|
|
517
|
-
return n(
|
|
518
|
-
selection:
|
|
514
|
+
})), !0), kt = ({ state: t, dispatch: n }) => {
|
|
515
|
+
let r = Y(t).map(({ from: n, to: r }) => e.undirectionalRange(n, Math.min(r + 1, t.doc.length)));
|
|
516
|
+
return n(t.update({
|
|
517
|
+
selection: e.create(r),
|
|
519
518
|
userEvent: "select"
|
|
520
519
|
})), !0;
|
|
521
|
-
}, At = ({ state:
|
|
522
|
-
let r = P(
|
|
523
|
-
let r =
|
|
520
|
+
}, At = ({ state: t, dispatch: n }) => {
|
|
521
|
+
let r = P(t.selection, (n) => {
|
|
522
|
+
let r = a(t), i = r.resolveStack(n.from, 1);
|
|
524
523
|
if (n.empty) {
|
|
525
524
|
let e = r.resolveStack(n.from, -1);
|
|
526
525
|
e.node.from >= i.node.from && e.node.to <= i.node.to && (i = e);
|
|
527
526
|
}
|
|
528
|
-
for (let
|
|
529
|
-
let { node: r } =
|
|
530
|
-
if ((r.from < n.from && r.to >= n.to || r.to > n.to && r.from <= n.from) &&
|
|
527
|
+
for (let t = i; t; t = t.next) {
|
|
528
|
+
let { node: r } = t;
|
|
529
|
+
if ((r.from < n.from && r.to >= n.to || r.to > n.to && r.from <= n.from) && t.next) return e.undirectionalRange(r.from, r.to);
|
|
531
530
|
}
|
|
532
531
|
return n;
|
|
533
532
|
});
|
|
534
|
-
return !r.eq(
|
|
533
|
+
return !r.eq(t.selection) && (n(F(t, r)), !0);
|
|
535
534
|
};
|
|
536
|
-
function jt(
|
|
537
|
-
let { state: r } =
|
|
538
|
-
for (let
|
|
539
|
-
let i = r.doc.lineAt(
|
|
540
|
-
if (n ? i.to <
|
|
541
|
-
let
|
|
542
|
-
if (
|
|
543
|
-
a.some((
|
|
535
|
+
function jt(t, n) {
|
|
536
|
+
let { state: r } = t, i = r.selection, a = r.selection.ranges.slice();
|
|
537
|
+
for (let e of r.selection.ranges) {
|
|
538
|
+
let i = r.doc.lineAt(e.head);
|
|
539
|
+
if (n ? i.to < t.state.doc.length : i.from > 0) for (let r = e;;) {
|
|
540
|
+
let e = t.moveVertically(r, n);
|
|
541
|
+
if (e.head < i.from || e.head > i.to) {
|
|
542
|
+
a.some((t) => t.head == e.head) || a.push(e);
|
|
544
543
|
break;
|
|
545
544
|
}
|
|
546
|
-
if (
|
|
547
|
-
r =
|
|
545
|
+
if (e.head == r.head) break;
|
|
546
|
+
r = e;
|
|
548
547
|
}
|
|
549
548
|
}
|
|
550
|
-
return a.length != i.ranges.length && (
|
|
549
|
+
return a.length != i.ranges.length && (t.dispatch(F(r, e.create(a, a.length - 1))), !0);
|
|
551
550
|
}
|
|
552
|
-
var Mt = (e) => jt(e, !1), Nt = (e) => jt(e, !0), Pt = ({ state:
|
|
553
|
-
let r =
|
|
554
|
-
return r.ranges.length > 1 ? i =
|
|
551
|
+
var Mt = (e) => jt(e, !1), Nt = (e) => jt(e, !0), Pt = ({ state: t, dispatch: n }) => {
|
|
552
|
+
let r = t.selection, i = null;
|
|
553
|
+
return r.ranges.length > 1 ? i = e.create([r.main]) : r.main.empty || (i = e.create([e.cursor(r.main.head)])), i ? (n(F(t, i)), !0) : !1;
|
|
555
554
|
};
|
|
556
|
-
function G(
|
|
557
|
-
if (
|
|
558
|
-
let r = "delete.selection", { state: i } =
|
|
555
|
+
function G(t, n) {
|
|
556
|
+
if (t.state.readOnly) return !1;
|
|
557
|
+
let r = "delete.selection", { state: i } = t, a = i.changeByRange((i) => {
|
|
559
558
|
let { from: a, to: o } = i;
|
|
560
559
|
if (a == o) {
|
|
561
|
-
let
|
|
562
|
-
|
|
563
|
-
} else a = K(
|
|
560
|
+
let e = n(i);
|
|
561
|
+
e < a ? (r = "delete.backward", e = K(t, e, !1)) : e > a && (r = "delete.forward", e = K(t, e, !0)), a = Math.min(a, e), o = Math.max(o, e);
|
|
562
|
+
} else a = K(t, a, !1), o = K(t, o, !0);
|
|
564
563
|
return a == o ? { range: i } : {
|
|
565
564
|
changes: {
|
|
566
565
|
from: a,
|
|
567
566
|
to: o
|
|
568
567
|
},
|
|
569
|
-
range:
|
|
568
|
+
range: e.cursor(a, a < i.head ? -1 : 1)
|
|
570
569
|
};
|
|
571
570
|
});
|
|
572
|
-
return !a.changes.empty && (
|
|
571
|
+
return !a.changes.empty && (t.dispatch(i.update(a, {
|
|
573
572
|
scrollIntoView: !0,
|
|
574
573
|
userEvent: r,
|
|
575
574
|
effects: r == "delete.selection" ? h.announce.of(i.phrase("Selection deleted")) : void 0
|
|
@@ -611,35 +610,35 @@ var Ft = (e, t, n) => G(e, (r) => {
|
|
|
611
610
|
}), Vt = (e) => G(e, (t) => {
|
|
612
611
|
let n = e.moveToLineBoundary(t, !0).head;
|
|
613
612
|
return t.head < n ? n : Math.min(e.state.doc.length, t.head + 1);
|
|
614
|
-
}), Ht = ({ state:
|
|
615
|
-
if (
|
|
616
|
-
let r =
|
|
613
|
+
}), Ht = ({ state: t, dispatch: n }) => {
|
|
614
|
+
if (t.readOnly) return !1;
|
|
615
|
+
let r = t.changeByRange((t) => ({
|
|
617
616
|
changes: {
|
|
618
|
-
from:
|
|
619
|
-
to:
|
|
617
|
+
from: t.from,
|
|
618
|
+
to: t.to,
|
|
620
619
|
insert: te.of(["", ""])
|
|
621
620
|
},
|
|
622
|
-
range:
|
|
621
|
+
range: e.cursor(t.from)
|
|
623
622
|
}));
|
|
624
|
-
return n(
|
|
623
|
+
return n(t.update(r, {
|
|
625
624
|
scrollIntoView: !0,
|
|
626
625
|
userEvent: "input"
|
|
627
626
|
})), !0;
|
|
628
|
-
}, Ut = ({ state:
|
|
629
|
-
if (
|
|
630
|
-
let r =
|
|
631
|
-
if (!n.empty || n.from == 0 || n.from ==
|
|
632
|
-
let r = n.from, i =
|
|
627
|
+
}, Ut = ({ state: t, dispatch: n }) => {
|
|
628
|
+
if (t.readOnly) return !1;
|
|
629
|
+
let r = t.changeByRange((n) => {
|
|
630
|
+
if (!n.empty || n.from == 0 || n.from == t.doc.length) return { range: n };
|
|
631
|
+
let r = n.from, i = t.doc.lineAt(r), a = r == i.from ? r - 1 : m(i.text, r - i.from, !1) + i.from, o = r == i.to ? r + 1 : m(i.text, r - i.from, !0) + i.from;
|
|
633
632
|
return {
|
|
634
633
|
changes: {
|
|
635
634
|
from: a,
|
|
636
635
|
to: o,
|
|
637
|
-
insert:
|
|
636
|
+
insert: t.doc.slice(r, o).append(t.doc.slice(a, r))
|
|
638
637
|
},
|
|
639
|
-
range:
|
|
638
|
+
range: e.cursor(o)
|
|
640
639
|
};
|
|
641
640
|
});
|
|
642
|
-
return !r.changes.empty && (n(
|
|
641
|
+
return !r.changes.empty && (n(t.update(r, {
|
|
643
642
|
scrollIntoView: !0,
|
|
644
643
|
userEvent: "move.character"
|
|
645
644
|
})), !0);
|
|
@@ -660,36 +659,36 @@ function Y(e) {
|
|
|
660
659
|
}
|
|
661
660
|
return t;
|
|
662
661
|
}
|
|
663
|
-
function Wt(
|
|
664
|
-
if (
|
|
662
|
+
function Wt(t, n, r) {
|
|
663
|
+
if (t.readOnly) return !1;
|
|
665
664
|
let i = [], a = [];
|
|
666
|
-
for (let n of Y(
|
|
667
|
-
if (r ? n.to ==
|
|
668
|
-
let o =
|
|
665
|
+
for (let n of Y(t)) {
|
|
666
|
+
if (r ? n.to == t.doc.length : n.from == 0) continue;
|
|
667
|
+
let o = t.doc.lineAt(r ? n.to + 1 : n.from - 1), s = o.length + 1;
|
|
669
668
|
if (r) {
|
|
670
669
|
i.push({
|
|
671
670
|
from: n.to,
|
|
672
671
|
to: o.to
|
|
673
672
|
}, {
|
|
674
673
|
from: n.from,
|
|
675
|
-
insert: o.text +
|
|
674
|
+
insert: o.text + t.lineBreak
|
|
676
675
|
});
|
|
677
|
-
for (let r of n.ranges) a.push(
|
|
676
|
+
for (let r of n.ranges) a.push(e.range(Math.min(t.doc.length, r.anchor + s), Math.min(t.doc.length, r.head + s)));
|
|
678
677
|
} else {
|
|
679
678
|
i.push({
|
|
680
679
|
from: o.from,
|
|
681
680
|
to: n.from
|
|
682
681
|
}, {
|
|
683
682
|
from: n.to,
|
|
684
|
-
insert:
|
|
683
|
+
insert: t.lineBreak + o.text
|
|
685
684
|
});
|
|
686
|
-
for (let
|
|
685
|
+
for (let t of n.ranges) a.push(e.range(t.anchor - s, t.head - s));
|
|
687
686
|
}
|
|
688
687
|
}
|
|
689
|
-
return i.length ? (n(
|
|
688
|
+
return i.length ? (n(t.update({
|
|
690
689
|
changes: i,
|
|
691
690
|
scrollIntoView: !0,
|
|
692
|
-
selection:
|
|
691
|
+
selection: e.create(a, t.selection.mainIndex),
|
|
693
692
|
userEvent: "move.line"
|
|
694
693
|
})), !0) : !1;
|
|
695
694
|
}
|
|
@@ -732,69 +731,69 @@ var Jt = ({ state: e, dispatch: t }) => qt(e, t, !1), Yt = ({ state: e, dispatch
|
|
|
732
731
|
userEvent: "delete.line"
|
|
733
732
|
}), !0;
|
|
734
733
|
};
|
|
735
|
-
function Zt(
|
|
736
|
-
if (/\(\)|\[\]|\{\}/.test(
|
|
737
|
-
from:
|
|
738
|
-
to:
|
|
734
|
+
function Zt(e, t) {
|
|
735
|
+
if (/\(\)|\[\]|\{\}/.test(e.sliceDoc(t - 1, t + 1))) return {
|
|
736
|
+
from: t,
|
|
737
|
+
to: t
|
|
739
738
|
};
|
|
740
|
-
let
|
|
741
|
-
return
|
|
742
|
-
from:
|
|
743
|
-
to:
|
|
739
|
+
let n = a(e).resolveInner(t), r = n.childBefore(t), i = n.childAfter(t), o;
|
|
740
|
+
return r && i && r.to <= t && i.from >= t && (o = r.type.prop(s.closedBy)) && o.indexOf(i.name) > -1 && e.doc.lineAt(r.to).from == e.doc.lineAt(i.from).from && !/\S/.test(e.sliceDoc(r.to, i.from)) ? {
|
|
741
|
+
from: r.to,
|
|
742
|
+
to: i.from
|
|
744
743
|
} : null;
|
|
745
744
|
}
|
|
746
745
|
var X = /*@__PURE__*/ $t(!1), Qt = /*@__PURE__*/ $t(!0);
|
|
747
|
-
function $t(
|
|
748
|
-
return ({ state:
|
|
749
|
-
if (
|
|
750
|
-
let a =
|
|
751
|
-
let { from: a, to: o } = i, s =
|
|
752
|
-
|
|
753
|
-
let l = new ne(
|
|
746
|
+
function $t(t) {
|
|
747
|
+
return ({ state: r, dispatch: i }) => {
|
|
748
|
+
if (r.readOnly) return !1;
|
|
749
|
+
let a = r.changeByRange((i) => {
|
|
750
|
+
let { from: a, to: o } = i, s = r.doc.lineAt(a), c = !t && a == o && Zt(r, a);
|
|
751
|
+
t && (a = o = (o <= s.to ? s : r.doc.lineAt(o)).to);
|
|
752
|
+
let l = new ne(r, {
|
|
754
753
|
simulateBreak: a,
|
|
755
754
|
simulateDoubleBreak: !!c
|
|
756
755
|
}), u = se(l, a);
|
|
757
|
-
for (u ?? (u = g(/^\s*/.exec(
|
|
756
|
+
for (u ?? (u = g(/^\s*/.exec(r.doc.lineAt(a).text)[0], r.tabSize)); o < s.to && /\s/.test(s.text[o - s.from]);) o++;
|
|
758
757
|
c ? {from: a, to: o} = c : a > s.from && a < s.from + 100 && !/\S/.test(s.text.slice(0, a)) && (a = s.from);
|
|
759
|
-
let d = ["", r
|
|
760
|
-
return c && d.push(r
|
|
758
|
+
let d = ["", n(r, u)];
|
|
759
|
+
return c && d.push(n(r, l.lineIndent(s.from, -1))), {
|
|
761
760
|
changes: {
|
|
762
761
|
from: a,
|
|
763
762
|
to: o,
|
|
764
763
|
insert: te.of(d)
|
|
765
764
|
},
|
|
766
|
-
range:
|
|
765
|
+
range: e.cursor(a + 1 + d[1].length)
|
|
767
766
|
};
|
|
768
767
|
});
|
|
769
|
-
return i(
|
|
768
|
+
return i(r.update(a, {
|
|
770
769
|
scrollIntoView: !0,
|
|
771
770
|
userEvent: "input"
|
|
772
771
|
})), !0;
|
|
773
772
|
};
|
|
774
773
|
}
|
|
775
|
-
function Z(
|
|
774
|
+
function Z(t, n) {
|
|
776
775
|
let r = -1;
|
|
777
|
-
return
|
|
776
|
+
return t.changeByRange((i) => {
|
|
778
777
|
let a = [];
|
|
779
|
-
for (let
|
|
780
|
-
let o =
|
|
781
|
-
o.number > r && (i.empty || i.to > o.from) && (n(o, a, i), r = o.number),
|
|
778
|
+
for (let e = i.from; e <= i.to;) {
|
|
779
|
+
let o = t.doc.lineAt(e);
|
|
780
|
+
o.number > r && (i.empty || i.to > o.from) && (n(o, a, i), r = o.number), e = o.to + 1;
|
|
782
781
|
}
|
|
783
|
-
let o =
|
|
782
|
+
let o = t.changes(a);
|
|
784
783
|
return {
|
|
785
784
|
changes: a,
|
|
786
|
-
range:
|
|
785
|
+
range: e.range(o.mapPos(i.anchor, 1), o.mapPos(i.head, 1))
|
|
787
786
|
};
|
|
788
787
|
});
|
|
789
788
|
}
|
|
790
789
|
var en = ({ state: e, dispatch: t }) => {
|
|
791
790
|
if (e.readOnly) return !1;
|
|
792
|
-
let
|
|
791
|
+
let r = Object.create(null), i = new ne(e, { overrideIndentation: (e) => r[e] ?? -1 }), a = Z(e, (t, a, o) => {
|
|
793
792
|
let s = se(i, t.from);
|
|
794
793
|
if (s == null) return;
|
|
795
794
|
/\S/.test(t.text) || (s = 0);
|
|
796
|
-
let c = /^\s*/.exec(t.text)[0], l =
|
|
797
|
-
(c != l || o.from < t.from + c.length) && (
|
|
795
|
+
let c = /^\s*/.exec(t.text)[0], l = n(e, s);
|
|
796
|
+
(c != l || o.from < t.from + c.length) && (r[t.from] = s, a.push({
|
|
798
797
|
from: t.from,
|
|
799
798
|
to: t.from + c.length,
|
|
800
799
|
insert: l
|
|
@@ -806,12 +805,12 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
806
805
|
from: t.from,
|
|
807
806
|
insert: e.facet(oe)
|
|
808
807
|
});
|
|
809
|
-
}), { userEvent: "input.indent" })), !0), nn = ({ state: e, dispatch: t }) => !e.readOnly && (t(e.update(Z(e, (t,
|
|
808
|
+
}), { userEvent: "input.indent" })), !0), nn = ({ state: e, dispatch: t }) => !e.readOnly && (t(e.update(Z(e, (t, r) => {
|
|
810
809
|
let i = /^\s*/.exec(t.text)[0];
|
|
811
810
|
if (!i) return;
|
|
812
|
-
let a = g(i, e.tabSize), o = 0, s =
|
|
811
|
+
let a = g(i, e.tabSize), o = 0, s = n(e, Math.max(0, a - d(e)));
|
|
813
812
|
for (; o < i.length && o < s.length && i.charCodeAt(o) == s.charCodeAt(o);) o++;
|
|
814
|
-
|
|
813
|
+
r.push({
|
|
815
814
|
from: t.from + o,
|
|
816
815
|
to: t.from + i.length,
|
|
817
816
|
insert: s.slice(o)
|
|
@@ -1116,7 +1115,7 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1116
1115
|
}
|
|
1117
1116
|
].concat(on), Q, $ = class extends ue(de(ee)) {
|
|
1118
1117
|
constructor(...e) {
|
|
1119
|
-
super(...e), this.value = "", this.inputId = "", this.placeholder = "", this.disabled = !1, this.name = "", this.readonly = !1, this.required = !1, this.rows = 6, this.accessibleLabel = "", this.invalid = !1, this._initialValue = "", this._valueAtFocus = "", this._editableCompartment = new
|
|
1118
|
+
super(...e), this.value = "", this.inputId = "", this.placeholder = "", this.disabled = !1, this.name = "", this.readonly = !1, this.required = !1, this.rows = 6, this.accessibleLabel = "", this.invalid = !1, this._initialValue = "", this._valueAtFocus = "", this._editableCompartment = new o(), this._placeholderCompartment = new o(), this._attrsCompartment = new o(), this._onScrollerPointerDown = (e) => {
|
|
1120
1119
|
e.target === this.view?.scrollDOM && (this.focusFromPoint(e.clientX, e.clientY), e.preventDefault());
|
|
1121
1120
|
};
|
|
1122
1121
|
}
|
|
@@ -1149,7 +1148,7 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1149
1148
|
return [h.editable.of(!this.disabled), p.readOnly.of(this.disabled || this.readonly)];
|
|
1150
1149
|
}
|
|
1151
1150
|
_placeholderExtension() {
|
|
1152
|
-
return this.placeholder ?
|
|
1151
|
+
return this.placeholder ? i(this.placeholder) : [];
|
|
1153
1152
|
}
|
|
1154
1153
|
_attrsExtension() {
|
|
1155
1154
|
let e = { ...this.contentAttributes() };
|