@nldd/design-system 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +521 -57
- package/dist/cdn/autoloader.js +181 -0
- package/dist/cdn/chunks/activity-indicator-JglZJ8dh.js +356 -0
- package/dist/cdn/chunks/activity-indicator.i18n-D7mCy6d2.js +3 -0
- package/dist/cdn/chunks/avatar-ASqePVhU.js +308 -0
- package/dist/cdn/chunks/avatar-group-rknt4FBO.js +338 -0
- package/dist/cdn/chunks/avatar-group.i18n-BYw_9wt_.js +7 -0
- package/dist/cdn/chunks/avatar.i18n-CMwQjBkS.js +7 -0
- package/dist/cdn/chunks/badge-Cc2Nufoc.js +323 -0
- package/dist/cdn/chunks/badge.i18n-DqW7hLQj.js +3 -0
- package/dist/cdn/chunks/banner-BLVKM07M.js +325 -0
- package/dist/cdn/chunks/banner.i18n-BOCM9rGN.js +3 -0
- package/dist/cdn/chunks/bar-split-view-Clbg-p9H.js +259 -0
- package/dist/cdn/chunks/base-CfuoYRhN.js +3 -0
- package/dist/cdn/chunks/blockquote-BoOqbGdm.js +189 -0
- package/dist/cdn/chunks/box-WkhyjQVy.js +88 -0
- package/dist/cdn/chunks/breadcrumbs-D9YxZzRj.js +162 -0
- package/dist/cdn/chunks/breadcrumbs.i18n-zmO8jaTO.js +3 -0
- package/dist/cdn/chunks/breakpoints-Cwor8TRP.js +15 -0
- package/dist/cdn/chunks/button-DO90Lo6q.js +863 -0
- package/dist/cdn/chunks/button-bar-Bxgdbyh3.js +225 -0
- package/dist/cdn/chunks/button-group-BYGPPLmZ.js +205 -0
- package/dist/{components/button.i18n-DiDGynnq.js → cdn/chunks/button.i18n-BGFt7Z9u.js} +2 -2
- package/dist/cdn/chunks/card-BP0jfOkS.js +262 -0
- package/dist/cdn/chunks/card.i18n-CpafLm3i.js +8 -0
- package/dist/cdn/chunks/carried-context-DlMSujiJ.js +37 -0
- package/dist/cdn/chunks/cell-BRD2ilQh.js +144 -0
- package/dist/cdn/chunks/checkbox-Cazx8CQn.js +296 -0
- package/dist/cdn/chunks/checkbox-field-DDZ-B6vH.js +157 -0
- package/dist/cdn/chunks/class-map-CXSdNjt8.js +26 -0
- package/dist/cdn/chunks/code-editor-D6Q55oaY.js +286 -0
- package/dist/cdn/chunks/code-viewer-DspLH2T1.js +766 -0
- package/dist/cdn/chunks/code-viewer.i18n-BHfSDRbK.js +13 -0
- package/dist/cdn/chunks/codemirror-input-Db65x22n.js +1232 -0
- package/dist/cdn/chunks/collection-NVtkvDls.js +396 -0
- package/dist/cdn/chunks/collection.i18n-DqWPGnZO.js +8 -0
- package/dist/cdn/chunks/combo-box-DyBQSaQl.js +512 -0
- package/dist/cdn/chunks/combo-box.i18n-BorzYnJ2.js +6 -0
- package/dist/cdn/chunks/container-rrbwk0z4.js +602 -0
- package/dist/cdn/chunks/custom-element-BW8Ua4c7.js +7 -0
- package/dist/cdn/chunks/custom-element-q6NzoL5b.js +301 -0
- package/dist/cdn/chunks/custom-font-size-D7KNr84p.js +57 -0
- package/dist/cdn/chunks/date-field-Clti_wKN.js +654 -0
- package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
- package/dist/cdn/chunks/date-picker-2TCQLd5D.js +993 -0
- package/dist/cdn/chunks/date-picker.i18n-Dsc_M5QK.js +82 -0
- package/dist/cdn/chunks/decorate-TduJMFD_.js +280 -0
- package/dist/cdn/chunks/defer-focus-F73ud2D9.js +9 -0
- package/dist/cdn/chunks/described-by-mixin-daRE7orX.js +32 -0
- package/dist/cdn/chunks/description-cell-CQwOj_rN.js +166 -0
- package/dist/cdn/chunks/dev-checks-zW_W-hnh.js +2695 -0
- package/dist/cdn/chunks/directive-CwRgozUW.js +27 -0
- package/dist/cdn/chunks/dismiss-from-title-bar-C6mP7sWP.js +5 -0
- package/dist/cdn/chunks/dist-3C80SZN9.js +849 -0
- package/dist/cdn/chunks/dist-A7_1pHX0.js +379 -0
- package/dist/cdn/chunks/dist-BEfLdOvy.js +1346 -0
- package/dist/cdn/chunks/dist-BTUxFM2V.js +268 -0
- package/dist/cdn/chunks/dist-CP3G1pSK.js +1037 -0
- package/dist/cdn/chunks/dist-C_dGY6zR.js +468 -0
- package/dist/{components/dist-B9YBOGFW.js → cdn/chunks/dist-ChmCRv39.js} +109 -153
- package/dist/{components/dist-CJm4tkNC.js → cdn/chunks/dist-D2qap2OY.js} +23 -31
- package/dist/cdn/chunks/dist-DPUBF0MZ.js +1593 -0
- package/dist/{components/dist-4g23YHP0.js → cdn/chunks/dist-DrTzvgE7.js} +291 -404
- package/dist/cdn/chunks/dist-EM4MWLQq.js +385 -0
- package/dist/cdn/chunks/dist-EgIBI-FG.js +293 -0
- package/dist/{components/dist-Bf823YyL.js → cdn/chunks/dist-Rm6FvrSR.js} +272 -551
- package/dist/cdn/chunks/divider-CCNbnplA.js +53 -0
- package/dist/cdn/chunks/document-tab-bar-CUc4WWY3.js +973 -0
- package/dist/cdn/chunks/document-tab-bar.i18n-DKrA9TnB.js +9 -0
- package/dist/cdn/chunks/drag-handle-cell-CbzDYebG.js +206 -0
- package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +3 -0
- package/dist/cdn/chunks/dropdown-DZTZtkm5.js +350 -0
- package/dist/cdn/chunks/element-state-B-44fVqq.js +20 -0
- package/dist/cdn/chunks/file-field-Bff6_1pp.js +1484 -0
- package/dist/cdn/chunks/file-field.i18n-pDM7Utud.js +40 -0
- package/dist/cdn/chunks/floating-ui.dom-B8J1rV2c.js +753 -0
- package/dist/cdn/chunks/focus-target-DSLGcCWq.js +24 -0
- package/dist/cdn/chunks/form-actions-C_7hINq-.js +90 -0
- package/dist/cdn/chunks/form-associated-mixin--GIbl98p.js +62 -0
- package/dist/cdn/chunks/form-field--4nWJ_DK.js +364 -0
- package/dist/cdn/chunks/form-hXLgy_tY.js +84 -0
- package/dist/cdn/chunks/form-section-By-D4un0.js +64 -0
- package/dist/cdn/chunks/full-bleed-section-Dg4sIJG1.js +161 -0
- package/dist/cdn/chunks/gherkin-eseYvsxh.js +29 -0
- package/dist/cdn/chunks/hero-CQQMNCT_.js +761 -0
- package/dist/{components/icon-CrBk3W-t.js → cdn/chunks/icon-BORlalt0.js} +298 -309
- package/dist/cdn/chunks/icon-button-rKiIHs7A.js +632 -0
- package/dist/{components/icon-button.i18n-1_N-wN6x.js → cdn/chunks/icon-button.i18n-DpZOfIS4.js} +2 -4
- package/dist/cdn/chunks/icon-cell-rk4NQid2.js +156 -0
- package/dist/cdn/chunks/identity-Cg1l0HhB.js +187 -0
- package/dist/cdn/chunks/if-defined-CaKKERku.js +4 -0
- package/dist/cdn/chunks/image-DZMW6JgL.js +659 -0
- package/dist/cdn/chunks/image.i18n-ONcm1h7o.js +3 -0
- package/dist/cdn/chunks/implicit-submission-Csbcor_E.js +27 -0
- package/dist/cdn/chunks/inline-dialog-WlqtPBPJ.js +259 -0
- package/dist/cdn/chunks/input-modality-XE0B7yCn.js +42 -0
- package/dist/cdn/chunks/just-in-time-education-DRcb5g7x.js +611 -0
- package/dist/cdn/chunks/just-in-time-education.i18n-CW_dsaxf.js +6 -0
- package/dist/cdn/chunks/kanban-Ca_mfqsA.js +400 -0
- package/dist/cdn/chunks/kanban-column-fgIMc7pw.js +375 -0
- package/dist/cdn/chunks/kanban.i18n-CWqc3e0B.js +11 -0
- package/dist/cdn/chunks/keyboard-shortcut-EknnW7Ub.js +267 -0
- package/dist/cdn/chunks/languages-yKikVFv_.js +8893 -0
- package/dist/cdn/chunks/link-FBSAJ3UC.js +229 -0
- package/dist/cdn/chunks/link-group-90qVfKa0.js +111 -0
- package/dist/cdn/chunks/link-hint-KFhgr5Ng.js +24 -0
- package/dist/cdn/chunks/link-rel-DvrTEfVT.js +8 -0
- package/dist/cdn/chunks/link.i18n-DJPobGmu.js +8 -0
- package/dist/cdn/chunks/list-CaWl3q0Z.js +880 -0
- package/dist/cdn/chunks/list-item-Cagnf6eG.js +802 -0
- package/dist/cdn/chunks/list-item-segment-BRzBF1y_.js +315 -0
- package/dist/cdn/chunks/list-item-segment.i18n-DHnrQL4V.js +8 -0
- package/dist/{components/list-item.i18n-89uqlBMK.js → cdn/chunks/list-item.i18n-Br6J5Ev9.js} +2 -2
- package/dist/cdn/chunks/list-items-Du0RCWsY.js +6 -0
- package/dist/{components/list.i18n-CKqbhFQ_.js → cdn/chunks/list.i18n-C40ltgdI.js} +2 -2
- package/dist/cdn/chunks/loading-tags-DtUr-DR7.js +3 -0
- package/dist/cdn/chunks/menu-BOu_pD1Q.js +719 -0
- package/dist/cdn/chunks/menu-bar-0NFXvq-v.js +253 -0
- package/dist/cdn/chunks/menu-bar-item-DGSC_ETi.js +365 -0
- package/dist/cdn/chunks/menu-bar.i18n-BoMu4Eoz.js +3 -0
- package/dist/cdn/chunks/menu-divider-CLLRgMll.js +15 -0
- package/dist/cdn/chunks/menu-group-BL24ChpR.js +23 -0
- package/dist/cdn/chunks/menu-item-CooKfrFa.js +140 -0
- package/dist/cdn/chunks/menu.i18n-C6uYJsG3.js +10 -0
- package/dist/cdn/chunks/menu.template-C6rbfI-u.js +642 -0
- package/dist/cdn/chunks/modal-dialog-BrUMP4Jm.js +240 -0
- package/dist/cdn/chunks/multi-line-text-field-D7hXhyOn.js +318 -0
- package/dist/cdn/chunks/navigation-split-view-B2ZQhxEb.js +621 -0
- package/dist/cdn/chunks/nl.generated-D6T41jG3.js +112 -0
- package/dist/cdn/chunks/notification-DSGP14d1.js +492 -0
- package/dist/cdn/chunks/notification.i18n-BKUSLN5c.js +6 -0
- package/dist/cdn/chunks/number-field-B8op14Y_.js +301 -0
- package/dist/cdn/chunks/number-field.i18n-BS0bINWY.js +7 -0
- package/dist/cdn/chunks/one-half-one-half-section-ZYmHYf4Q.js +213 -0
- package/dist/cdn/chunks/one-third-two-thirds-section-Ds10K6AS.js +213 -0
- package/dist/cdn/chunks/one-time-code-field-Cgy_tTS4.js +693 -0
- package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +20 -0
- package/dist/cdn/chunks/owned-attribute-x9OCTy_4.js +6 -0
- package/dist/cdn/chunks/owner-form-Cq8tT7ac.js +7 -0
- package/dist/cdn/chunks/page-CBf_Decp.js +431 -0
- package/dist/cdn/chunks/page-footer-CSv1dU7M.js +396 -0
- package/dist/cdn/chunks/page-footer.i18n-pbdr4lN3.js +3 -0
- package/dist/cdn/chunks/page-section-mixin-Dp6X8GKd.js +132 -0
- package/dist/cdn/chunks/pagination-CMUcFB53.js +485 -0
- package/dist/cdn/chunks/pagination.i18n-QQMx14CQ.js +9 -0
- package/dist/cdn/chunks/password-field-C76Vm3rm.js +368 -0
- package/dist/cdn/chunks/password-field.i18n-CzdBn-1b.js +8 -0
- package/dist/cdn/chunks/popover-C-CVVtfl.js +334 -0
- package/dist/cdn/chunks/popover-target-B25dxnmt.js +10 -0
- package/dist/cdn/chunks/popover.i18n-DmFBHUvB.js +3 -0
- package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +30 -0
- package/dist/cdn/chunks/progress-bar-BLiHaRUS.js +674 -0
- package/dist/cdn/chunks/progress-bar.i18n-Cr5miGTx.js +8 -0
- package/dist/cdn/chunks/progress-circle-CjkovRbL.js +667 -0
- package/dist/cdn/chunks/progress-circle.i18n-CRrXuY4V.js +8 -0
- package/dist/cdn/chunks/query-ChDzi9FQ.js +28 -0
- package/dist/cdn/chunks/radio-button-GHyO-GQB.js +338 -0
- package/dist/cdn/chunks/radio-button-field-C-Z6Lnd4.js +192 -0
- package/dist/cdn/chunks/radio-button-group-ChTqBCnQ.js +118 -0
- package/dist/cdn/chunks/radio-position-CXWYAjaz.js +10 -0
- package/dist/cdn/chunks/reflect-non-default-Bu3rpCvg.js +9 -0
- package/dist/cdn/chunks/render-marked-DX_5ISZE.js +37 -0
- package/dist/cdn/chunks/repeat-Ch_5OsXE.js +76 -0
- package/dist/cdn/chunks/return-focus-Xmagtk6r.js +52 -0
- package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +47 -0
- package/dist/cdn/chunks/rich-text.i18n-BlJ68YuU.js +3 -0
- package/dist/cdn/chunks/row-header-mixin-CgqvREoV.js +16 -0
- package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +7 -0
- package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +42 -0
- package/dist/cdn/chunks/search-field-BGNfERhn.js +396 -0
- package/dist/cdn/chunks/search-field.i18n-B_Oc7hc-.js +6 -0
- package/dist/cdn/chunks/segmented-control-BYAG4VRp.js +671 -0
- package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +12 -0
- package/dist/cdn/chunks/sheet-BdVCqm2H.js +340 -0
- package/dist/cdn/chunks/shell-C9rds_D9.js +146 -0
- package/dist/cdn/chunks/shell-DmJOYhyF.js +108 -0
- package/dist/cdn/chunks/side-by-side-split-view-C5oX4c6Z.js +166 -0
- package/dist/cdn/chunks/sidebar-section-DP4jnS7g.js +353 -0
- package/dist/cdn/chunks/sidebar-section.i18n-BuGfRMpD.js +6 -0
- package/dist/cdn/chunks/simple-section-qrCqXeBa.js +192 -0
- package/dist/cdn/chunks/skip-link-DWh4W6-J.js +161 -0
- package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +3 -0
- package/dist/cdn/chunks/slider--hODfOwh.js +772 -0
- package/dist/cdn/chunks/slider.i18n-DVw0c8AG.js +6 -0
- package/dist/cdn/chunks/slot-content-BLuPqVXw.js +13 -0
- package/dist/cdn/chunks/spacer-CFzq_JCh.js +237 -0
- package/dist/cdn/chunks/spacer-cell-DuVOgIj8.js +68 -0
- package/dist/cdn/chunks/spacing-scale-SufIjHeN.js +28 -0
- package/dist/cdn/chunks/split-button-BeXnOUTt.js +268 -0
- package/dist/cdn/chunks/split-button.i18n-DtClSMga.js +3 -0
- package/dist/cdn/chunks/split-view-divider-jzcPmnMh.js +100 -0
- package/dist/cdn/chunks/split-view-pane-BLsZz263.js +128 -0
- package/dist/cdn/chunks/stacked-split-view-CcOR8LrJ.js +157 -0
- package/dist/cdn/chunks/static-html-Cf4ccUIg.js +26 -0
- package/dist/cdn/chunks/status-bar-CINbOihq.js +284 -0
- package/dist/cdn/chunks/status-bar-change-CR9l0Gyk.js +3 -0
- package/dist/cdn/chunks/step-bar-6FvZL1Ti.js +474 -0
- package/dist/cdn/chunks/step-bar.i18n-DocExlD7.js +9 -0
- package/dist/cdn/chunks/step-cell-CejRisgS.js +287 -0
- package/dist/cdn/chunks/stepper-CY2rJWOJ.js +223 -0
- package/dist/cdn/chunks/stepper.i18n-COOAkaBl.js +7 -0
- package/dist/cdn/chunks/style-map-DsIw6lkq.js +29 -0
- package/dist/cdn/chunks/style-mod-DGMhzWuk.js +1583 -0
- package/dist/cdn/chunks/swatch-picker-BY3DBIl6.js +430 -0
- package/dist/cdn/chunks/swatch-picker.i18n-_G0nmnGe.js +22 -0
- package/dist/cdn/chunks/switch-DDSsZFwK.js +275 -0
- package/dist/cdn/chunks/switch-field-CMoM9I38.js +137 -0
- package/dist/cdn/chunks/tab-bar-DmslEoPD.js +697 -0
- package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +3 -0
- package/dist/cdn/chunks/table-DwXjCSD5.js +308 -0
- package/dist/cdn/chunks/table.i18n-Bmb_uw_w.js +3 -0
- package/dist/cdn/chunks/tag-DM3APy3B.js +306 -0
- package/dist/cdn/chunks/text-B1CatNR1.js +421 -0
- package/dist/cdn/chunks/text-cell-BkEsGI3g.js +299 -0
- package/dist/cdn/chunks/text-editor-BvTiMeNV.js +3743 -0
- package/dist/cdn/chunks/text-editor.i18n-sJKiRQ4i.js +17 -0
- package/dist/cdn/chunks/text-field-CUyh1-V8.js +398 -0
- package/dist/cdn/chunks/time-field-Cj5WojfO.js +597 -0
- package/dist/cdn/chunks/time-field.i18n-CLH5vmS7.js +11 -0
- package/dist/cdn/chunks/time-picker-W0xYXLy8.js +508 -0
- package/dist/cdn/chunks/time-picker.i18n-BilOCXlS.js +7 -0
- package/dist/cdn/chunks/title-BuT7tWqN.js +437 -0
- package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +24 -0
- package/dist/cdn/chunks/title-cell-8d8psUBX.js +327 -0
- package/dist/cdn/chunks/toggle-button-DNXWXZpE.js +528 -0
- package/dist/cdn/chunks/toggle-button-group-ByowJYgs.js +156 -0
- package/dist/cdn/chunks/token-CnkEB3hB.js +266 -0
- package/dist/cdn/chunks/token-field-hvDB3l6O.js +664 -0
- package/dist/cdn/chunks/token-field.i18n-BclzoR8F.js +9 -0
- package/dist/cdn/chunks/token.i18n-RGD5zAtl.js +7 -0
- package/dist/cdn/chunks/toml-w97zZfFO.js +27 -0
- package/dist/cdn/chunks/toolbar-iNd1VmuG.js +408 -0
- package/dist/cdn/chunks/toolbar-item-DpPfPxCi.js +50 -0
- package/dist/cdn/chunks/toolbar-title-KBMpfL9d.js +84 -0
- package/dist/cdn/chunks/toolbar.i18n-QwS37CBC.js +8 -0
- package/dist/cdn/chunks/toolbar.styles-BQkG4gVc.js +383 -0
- package/dist/cdn/chunks/tooltip-BsAHJjci.js +325 -0
- package/dist/cdn/chunks/top-navigation-bar-D1hjWIF3.js +925 -0
- package/dist/cdn/chunks/top-navigation-bar.i18n-C-lcH1nB.js +10 -0
- package/dist/cdn/chunks/top-title-bar-iNFB2zQL.js +344 -0
- package/dist/cdn/chunks/translations-wxBSz213.js +8 -0
- package/dist/cdn/chunks/two-thirds-one-third-section-D-UANbHC.js +213 -0
- package/dist/cdn/chunks/validation-list-C5BhHZIG.js +202 -0
- package/dist/cdn/chunks/validation-list.i18n-CM6In8zD.js +12 -0
- package/dist/cdn/chunks/visibility-mixin-COAZ9pON.js +74 -0
- package/dist/cdn/chunks/visually-hidden-BPgATaH0.js +43 -0
- package/dist/cdn/chunks/window-t5iFkMLY.js +227 -0
- package/dist/cdn/chunks/window.i18n-CsEnUPAk.js +3 -0
- package/dist/cdn/chunks/with-translations-XX14GKFh.js +16 -0
- package/dist/components/actions/button/button.d.ts +5 -5
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +6 -6
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +6 -8
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +15 -4
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +7 -1
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +2 -2
- package/dist/components/actions/icon-button/icon-button.d.ts +3 -3
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +4 -4
- package/dist/components/actions/icon-button/icon-button.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 +2 -4
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +12 -3
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +27 -6
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +31 -8
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +108 -32
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.pointer.d.ts +7 -0
- package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.pointer.js +17 -0
- package/dist/components/actions/menu/menu.pointer.js.map +1 -1
- package/dist/components/actions/menu/menu.safe-triangle.d.ts +6 -5
- package/dist/components/actions/menu/menu.safe-triangle.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.safe-triangle.js +3 -3
- package/dist/components/actions/menu/menu.safe-triangle.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +6 -0
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +17 -9
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.js +2 -2
- package/dist/components/actions/toolbar/toolbar-title.js.map +1 -1
- package/dist/components/content/avatar/avatar.js +1 -1
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +2 -1
- package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
- package/dist/components/content/image/image.js +1 -1
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/tag/tag.d.ts +3 -3
- package/dist/components/content/tag/tag.js +3 -3
- package/dist/components/content/tag/tag.template.js +3 -3
- package/dist/components/content/tag/tag.template.js.map +1 -1
- package/dist/components/content/title/title.js +1 -1
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/token/token.d.ts +6 -4
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +6 -4
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/token/token.template.js +1 -1
- package/dist/components/content/token/token.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +22 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +67 -11
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +1 -1
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js +4 -2
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js +2 -2
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +2 -2
- package/dist/components/inputs/segmented-control/segmented-control.js +4 -4
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.js +2 -2
- package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +1 -1
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +2 -2
- package/dist/components/inputs/toggle-button/toggle-button.js +3 -3
- package/dist/components/inputs/toggle-button/toggle-button.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 -10
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js +3 -3
- package/dist/components/layout/card/card.js +1 -1
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +3 -1
- package/dist/components/layout/card/card.styles.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +15 -2
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +38 -3
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.js +1 -1
- package/dist/components/layout/container/container.template.js +1 -1
- package/dist/components/layout/container/container.template.js.map +1 -1
- package/dist/components/layout/kanban/kanban.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.js +2 -1
- package/dist/components/layout/kanban/kanban.js.map +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +3 -2
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +3 -2
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +5 -2
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +5 -2
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +2 -4
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +2 -2
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +2 -2
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +2 -2
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +2 -2
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +1 -1
- 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 +4 -4
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +2 -2
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +2 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +1 -2
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +10 -12
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +1 -0
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +6 -1
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/spacer/spacer.js +1 -1
- package/dist/components/layout/spacer/spacer.js.map +1 -1
- 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 +2 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +3 -2
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +2 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +3 -2
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +1 -0
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +7 -1
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +5 -2
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +7 -4
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js +3 -3
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +2 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +2 -2
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +4 -1
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +19 -9
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +30 -14
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +20 -0
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +19 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +6 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +5 -5
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +5 -2
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +5 -2
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +2 -4
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +7 -4
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +7 -4
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.template.js +5 -5
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +3 -2
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +18 -2
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +51 -3
- 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 +5 -3
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +2 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts +4 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +26 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +1 -1
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +2 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +2 -2
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +4 -4
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +4 -4
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +5 -2
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +6 -3
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -1
- package/dist/css/variables.css +6 -0
- package/dist/nldd.min.js +784 -728
- package/dist/types/react.d.ts +3323 -0
- package/dist/types/vue.d.ts +26 -14
- package/dist/utilities/autoloader.d.ts +33 -0
- package/dist/utilities/autoloader.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.d.ts +3 -0
- package/dist/utilities/autoloader.generated.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.js +141 -0
- package/dist/utilities/autoloader.generated.js.map +1 -0
- package/dist/utilities/autoloader.js +94 -0
- package/dist/utilities/autoloader.js.map +1 -0
- package/dist/utilities/dev-checks.d.ts +9 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +45 -3
- package/dist/utilities/dev-checks.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +17 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/input-modality.d.ts.map +1 -1
- package/dist/utilities/input-modality.js +4 -2
- package/dist/utilities/input-modality.js.map +1 -1
- package/dist/utilities/loading-tags.d.ts +7 -0
- package/dist/utilities/loading-tags.d.ts.map +1 -0
- package/dist/utilities/loading-tags.js +7 -0
- package/dist/utilities/loading-tags.js.map +1 -0
- package/dist/utilities/owner-form.d.ts +3 -3
- package/dist/utilities/owner-form.d.ts.map +1 -1
- package/dist/utilities/owner-form.js +6 -3
- package/dist/utilities/owner-form.js.map +1 -1
- package/dist/utilities/page-section-mixin.d.ts +10 -4
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +29 -23
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/return-focus.d.ts +44 -0
- package/dist/utilities/return-focus.d.ts.map +1 -0
- package/dist/utilities/return-focus.js +99 -0
- package/dist/utilities/return-focus.js.map +1 -0
- package/dist/utilities/slot-content.d.ts +30 -0
- package/dist/utilities/slot-content.d.ts.map +1 -0
- package/dist/utilities/slot-content.js +38 -0
- package/dist/utilities/slot-content.js.map +1 -0
- package/lint/data.generated.json +1 -1
- package/package.json +50 -11
- package/dist/components/breakpoints-DtL62nLI.js +0 -45
- package/dist/components/components.js +0 -67895
- package/dist/components/decorate-C7khEuc7.js +0 -16
- package/dist/components/defer-focus-BQ3c4mzj.js +0 -176
- package/dist/components/dev-checks-lQ-gHUjV.js +0 -2706
- package/dist/components/dist-245LaK9m.js +0 -1479
- package/dist/components/dist-BFZM0YsR.js +0 -15772
- package/dist/components/dist-BNkeFjc3.js +0 -1180
- package/dist/components/dist-CSC1dG3L.js +0 -365
- package/dist/components/dist-CeMOOqgP.js +0 -1509
- package/dist/components/dist-DFjwTlJV.js +0 -624
- package/dist/components/dist-DHhnz3Gv.js +0 -381
- package/dist/components/dist-PeUX4vPq.js +0 -2857
- package/dist/components/dist-m70B83qb.js +0 -463
- package/dist/components/element-state-BnarBv0M.js +0 -42
- package/dist/components/gherkin-DzYbEwDO.js +0 -107
- package/dist/components/icon-button-CfpnGzYQ.js +0 -2308
- package/dist/components/input-modality-CiPLYYMN.js +0 -42
- package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
- package/dist/components/nl.generated-DzZkOgnP.js +0 -64
- package/dist/components/reflect-non-default-B9wQcnne.js +0 -36
- package/dist/components/rolldown-runtime-D8jQpDG7.js +0 -12
- package/dist/components/shadow-resets-BwOyyZFH.js +0 -60
- package/dist/components/shell-Dh5IwHd-.js +0 -222
- package/dist/components/toml-D0Pix_8Q.js +0 -58
- package/dist/components/visibility-mixin-BMtETgjk.js +0 -153
|
@@ -0,0 +1,1037 @@
|
|
|
1
|
+
import { A as e, C as t, D as n, J as r, K as i, N as a, O as o, P as s, Q as c, R as l, V as u, W as d, at as f, ct as p, dt as m, et as h, ft as g, ht as _, k as v, lt as y, nt as b, ot as x, st as S, tt as C, ut as w } from "./languages-yKikVFv_.js";
|
|
2
|
+
// node_modules/@codemirror/autocomplete/dist/index.js
|
|
3
|
+
var T = class {
|
|
4
|
+
constructor(e, t, n, r) {
|
|
5
|
+
this.state = e, this.pos = t, this.explicit = n, this.view = r, this.abortListeners = [], this.abortOnDocChange = !1;
|
|
6
|
+
}
|
|
7
|
+
tokenBefore(e) {
|
|
8
|
+
let t = n(this.state).resolveInner(this.pos, -1);
|
|
9
|
+
for (; t && e.indexOf(t.name) < 0;) t = t.parent;
|
|
10
|
+
return t ? {
|
|
11
|
+
from: t.from,
|
|
12
|
+
to: this.pos,
|
|
13
|
+
text: this.state.sliceDoc(t.from, this.pos),
|
|
14
|
+
type: t.type
|
|
15
|
+
} : null;
|
|
16
|
+
}
|
|
17
|
+
matchBefore(e) {
|
|
18
|
+
let t = this.state.doc.lineAt(this.pos), n = Math.max(t.from, this.pos - 250), r = t.text.slice(n - t.from, this.pos - t.from), i = r.search(k(e, !1));
|
|
19
|
+
return i < 0 ? null : {
|
|
20
|
+
from: n + i,
|
|
21
|
+
to: this.pos,
|
|
22
|
+
text: r.slice(i)
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
get aborted() {
|
|
26
|
+
return this.abortListeners == null;
|
|
27
|
+
}
|
|
28
|
+
addEventListener(e, t, n) {
|
|
29
|
+
e == "abort" && this.abortListeners && (this.abortListeners.push(t), n && n.onDocChange && (this.abortOnDocChange = !0));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
function ee(e) {
|
|
33
|
+
let t = Object.keys(e).join(""), n = /\w/.test(t);
|
|
34
|
+
return n && (t = t.replace(/\w/g, "")), `[${n ? "\\w" : ""}${t.replace(/[^\w\s]/g, "\\$&")}]`;
|
|
35
|
+
}
|
|
36
|
+
function te(e) {
|
|
37
|
+
let t = Object.create(null), n = Object.create(null);
|
|
38
|
+
for (let { label: r } of e) {
|
|
39
|
+
t[r[0]] = !0;
|
|
40
|
+
for (let e = 1; e < r.length; e++) n[r[e]] = !0;
|
|
41
|
+
}
|
|
42
|
+
let r = ee(t) + ee(n) + "*$";
|
|
43
|
+
return [RegExp("^" + r), new RegExp(r)];
|
|
44
|
+
}
|
|
45
|
+
function E(e) {
|
|
46
|
+
let t = e.map((e) => typeof e == "string" ? { label: e } : e), [n, r] = t.every((e) => /^\w+$/.test(e.label)) ? [/\w*$/, /\w+$/] : te(t);
|
|
47
|
+
return (e) => {
|
|
48
|
+
let i = e.matchBefore(r);
|
|
49
|
+
return i || e.explicit ? {
|
|
50
|
+
from: i ? i.from : e.pos,
|
|
51
|
+
options: t,
|
|
52
|
+
validFor: n
|
|
53
|
+
} : null;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function ne(e, t) {
|
|
57
|
+
return (r) => {
|
|
58
|
+
for (let t = n(r.state).resolveInner(r.pos, -1); t; t = t.parent) {
|
|
59
|
+
if (e.indexOf(t.name) > -1) return null;
|
|
60
|
+
if (t.type.isTop) break;
|
|
61
|
+
}
|
|
62
|
+
return t(r);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
var D = class {
|
|
66
|
+
constructor(e, t, n, r) {
|
|
67
|
+
this.completion = e, this.source = t, this.match = n, this.score = r;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
function O(e) {
|
|
71
|
+
return e.selection.main.from;
|
|
72
|
+
}
|
|
73
|
+
function k(e, t) {
|
|
74
|
+
let { source: n } = e, r = t && n[0] != "^", i = n[n.length - 1] != "$";
|
|
75
|
+
return !r && !i ? e : RegExp(`${r ? "^" : ""}(?:${n})${i ? "$" : ""}`, e.flags ?? (e.ignoreCase ? "i" : ""));
|
|
76
|
+
}
|
|
77
|
+
var A = /*@__PURE__*/ r.define();
|
|
78
|
+
function re(e, t, n, r) {
|
|
79
|
+
let { main: i } = e.selection, a = n - i.from, o = r - i.from;
|
|
80
|
+
return {
|
|
81
|
+
...e.changeByRange((s) => {
|
|
82
|
+
if (s != i && n != r && e.sliceDoc(s.from + a, s.from + o) != e.sliceDoc(n, r)) return { range: s };
|
|
83
|
+
let l = e.toText(t);
|
|
84
|
+
return {
|
|
85
|
+
changes: {
|
|
86
|
+
from: s.from + a,
|
|
87
|
+
to: r == i.from ? s.to : s.from + o,
|
|
88
|
+
insert: l
|
|
89
|
+
},
|
|
90
|
+
range: c.cursor(s.from + a + l.length)
|
|
91
|
+
};
|
|
92
|
+
}),
|
|
93
|
+
scrollIntoView: !0,
|
|
94
|
+
userEvent: "input.complete"
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
var j = /*@__PURE__*/ new WeakMap();
|
|
98
|
+
function ie(e) {
|
|
99
|
+
if (!Array.isArray(e)) return e;
|
|
100
|
+
let t = j.get(e);
|
|
101
|
+
return t || j.set(e, t = E(e)), t;
|
|
102
|
+
}
|
|
103
|
+
var M = /*@__PURE__*/ x.define(), N = /*@__PURE__*/ x.define(), ae = class {
|
|
104
|
+
constructor(e) {
|
|
105
|
+
this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
|
|
106
|
+
for (let t = 0; t < e.length;) {
|
|
107
|
+
let n = w(e, t), r = m(n);
|
|
108
|
+
this.chars.push(n);
|
|
109
|
+
let i = e.slice(t, t + r), a = i.toUpperCase();
|
|
110
|
+
this.folded.push(w(a == i ? i.toLowerCase() : a, 0)), t += r;
|
|
111
|
+
}
|
|
112
|
+
this.astral = e.length != this.chars.length;
|
|
113
|
+
}
|
|
114
|
+
ret(e, t) {
|
|
115
|
+
return this.score = e, this.matched = t, this;
|
|
116
|
+
}
|
|
117
|
+
match(e) {
|
|
118
|
+
if (this.pattern.length == 0) return this.ret(-100, []);
|
|
119
|
+
if (e.length < this.pattern.length) return null;
|
|
120
|
+
let { chars: t, folded: n, any: r, precise: i, byWord: a } = this;
|
|
121
|
+
if (t.length == 1) {
|
|
122
|
+
let r = w(e, 0), i = m(r), a = i == e.length ? 0 : -100;
|
|
123
|
+
if (r != t[0]) {
|
|
124
|
+
if (r == n[0]) a += -200;
|
|
125
|
+
else return null;
|
|
126
|
+
}
|
|
127
|
+
return this.ret(a, [0, i]);
|
|
128
|
+
}
|
|
129
|
+
let o = e.indexOf(this.pattern);
|
|
130
|
+
if (o == 0) return this.ret(e.length == this.pattern.length ? 0 : -100, [0, this.pattern.length]);
|
|
131
|
+
let s = t.length, c = 0;
|
|
132
|
+
if (o < 0) {
|
|
133
|
+
for (let i = 0, a = Math.min(e.length, 200); i < a && c < s;) {
|
|
134
|
+
let a = w(e, i);
|
|
135
|
+
(a == t[c] || a == n[c]) && (r[c++] = i), i += m(a);
|
|
136
|
+
}
|
|
137
|
+
if (c < s) return null;
|
|
138
|
+
}
|
|
139
|
+
let l = 0, u = 0, d = !1, f = 0, p = -1, h = -1, g = /[a-z]/.test(e), v = !0;
|
|
140
|
+
for (let r = 0, c = Math.min(e.length, 200), y = 0; r < c && u < s;) {
|
|
141
|
+
let c = w(e, r);
|
|
142
|
+
o < 0 && (l < s && c == t[l] && (i[l++] = r), f < s && (c == t[f] || c == n[f] ? (f == 0 && (p = r), h = r + 1, f++) : f = 0));
|
|
143
|
+
let b, x = c < 255 ? c >= 48 && c <= 57 || c >= 97 && c <= 122 ? 2 : +(c >= 65 && c <= 90) : (b = _(c)) == b.toLowerCase() ? b == b.toUpperCase() ? 0 : 2 : 1;
|
|
144
|
+
(!r || x == 1 && g || y == 0 && x != 0) && (t[u] == c || n[u] == c && (d = !0) ? a[u++] = r : a.length && (v = !1)), y = x, r += m(c);
|
|
145
|
+
}
|
|
146
|
+
return u == s && a[0] == 0 && v ? this.result(-100 + (d ? -200 : 0), a, e) : f == s && p == 0 ? this.ret(-200 - e.length + (h == e.length ? 0 : -100), [0, h]) : o > -1 ? this.ret(-700 - e.length, [o, o + this.pattern.length]) : f == s ? this.ret(-900 - e.length, [p, h]) : u == s ? this.result(-100 + (d ? -200 : 0) + -700 + (v ? 0 : -1100), a, e) : t.length == 2 ? null : this.result((r[0] ? -700 : 0) + -200 + -1100, r, e);
|
|
147
|
+
}
|
|
148
|
+
result(e, t, n) {
|
|
149
|
+
let r = [], i = 0;
|
|
150
|
+
for (let e of t) {
|
|
151
|
+
let t = e + (this.astral ? m(w(n, e)) : 1);
|
|
152
|
+
i && r[i - 1] == e ? r[i - 1] = t : (r[i++] = e, r[i++] = t);
|
|
153
|
+
}
|
|
154
|
+
return this.ret(e - n.length, r);
|
|
155
|
+
}
|
|
156
|
+
}, oe = class {
|
|
157
|
+
constructor(e) {
|
|
158
|
+
this.pattern = e, this.matched = [], this.score = 0, this.folded = e.toLowerCase();
|
|
159
|
+
}
|
|
160
|
+
match(e) {
|
|
161
|
+
if (e.length < this.pattern.length) return null;
|
|
162
|
+
let t = e.slice(0, this.pattern.length), n = t == this.pattern ? 0 : t.toLowerCase() == this.folded ? -200 : null;
|
|
163
|
+
return n == null ? null : (this.matched = [0, t.length], this.score = n + (e.length == this.pattern.length ? 0 : -100), this);
|
|
164
|
+
}
|
|
165
|
+
}, P = /*@__PURE__*/ h.define({ combine(e) {
|
|
166
|
+
return g(e, {
|
|
167
|
+
activateOnTyping: !0,
|
|
168
|
+
activateOnCompletion: () => !1,
|
|
169
|
+
activateOnTypingDelay: 100,
|
|
170
|
+
selectOnOpen: !0,
|
|
171
|
+
override: null,
|
|
172
|
+
closeOnBlur: !0,
|
|
173
|
+
maxRenderedOptions: 100,
|
|
174
|
+
defaultKeymap: !0,
|
|
175
|
+
tooltipClass: () => "",
|
|
176
|
+
optionClass: () => "",
|
|
177
|
+
aboveCursor: !1,
|
|
178
|
+
icons: !0,
|
|
179
|
+
addToOptions: [],
|
|
180
|
+
positionInfo: se,
|
|
181
|
+
filterStrict: !1,
|
|
182
|
+
compareCompletions: (e, t) => (e.sortText || e.label).localeCompare(t.sortText || t.label),
|
|
183
|
+
interactionDelay: 75,
|
|
184
|
+
updateSyncTime: 100
|
|
185
|
+
}, {
|
|
186
|
+
defaultKeymap: (e, t) => e && t,
|
|
187
|
+
closeOnBlur: (e, t) => e && t,
|
|
188
|
+
icons: (e, t) => e && t,
|
|
189
|
+
tooltipClass: (e, t) => (n) => F(e(n), t(n)),
|
|
190
|
+
optionClass: (e, t) => (n) => F(e(n), t(n)),
|
|
191
|
+
addToOptions: (e, t) => e.concat(t),
|
|
192
|
+
filterStrict: (e, t) => e || t
|
|
193
|
+
});
|
|
194
|
+
} });
|
|
195
|
+
function F(e, t) {
|
|
196
|
+
return e ? t ? e + " " + t : e : t;
|
|
197
|
+
}
|
|
198
|
+
function se(e, t, n, r, i, a) {
|
|
199
|
+
let o = e.textDirection == v.RTL, s = o, c = !1, l = "top", u, d, f = t.left - i.left, p = i.right - t.right, m = r.right - r.left, h = r.bottom - r.top;
|
|
200
|
+
if (s && f < Math.min(m, p) ? s = !1 : !s && p < Math.min(m, f) && (s = !0), m <= (s ? f : p)) u = Math.max(i.top, Math.min(n.top, i.bottom - h)) - t.top, d = Math.min(400, s ? f : p);
|
|
201
|
+
else {
|
|
202
|
+
c = !0, d = Math.min(400, (o ? t.right : i.right - t.left) - 30);
|
|
203
|
+
let e = i.bottom - t.bottom;
|
|
204
|
+
e >= h || e > t.top ? u = n.bottom - t.top : (l = "bottom", u = t.bottom - n.top);
|
|
205
|
+
}
|
|
206
|
+
let g = (t.bottom - t.top) / a.offsetHeight, _ = (t.right - t.left) / a.offsetWidth;
|
|
207
|
+
return {
|
|
208
|
+
style: `${l}: ${u / g}px; max-width: ${d / _}px`,
|
|
209
|
+
class: "cm-completionInfo-" + (c ? o ? "left-narrow" : "right-narrow" : s ? "left" : "right")
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
var I = /*@__PURE__*/ x.define();
|
|
213
|
+
function ce(e) {
|
|
214
|
+
let t = e.addToOptions.slice();
|
|
215
|
+
return e.icons && t.push({
|
|
216
|
+
render(e) {
|
|
217
|
+
let t = document.createElement("div");
|
|
218
|
+
return t.classList.add("cm-completionIcon"), e.type && t.classList.add(...e.type.split(/\s+/g).map((e) => "cm-completionIcon-" + e)), t.setAttribute("aria-hidden", "true"), t;
|
|
219
|
+
},
|
|
220
|
+
position: 20
|
|
221
|
+
}), t.push({
|
|
222
|
+
render(e, t, n, r) {
|
|
223
|
+
let i = document.createElement("span");
|
|
224
|
+
i.className = "cm-completionLabel";
|
|
225
|
+
let a = e.displayLabel || e.label, o = 0;
|
|
226
|
+
for (let e = 0; e < r.length;) {
|
|
227
|
+
let t = r[e++], n = r[e++];
|
|
228
|
+
t > o && i.appendChild(document.createTextNode(a.slice(o, t)));
|
|
229
|
+
let s = i.appendChild(document.createElement("span"));
|
|
230
|
+
s.appendChild(document.createTextNode(a.slice(t, n))), s.className = "cm-completionMatchedText", o = n;
|
|
231
|
+
}
|
|
232
|
+
return o < a.length && i.appendChild(document.createTextNode(a.slice(o))), i;
|
|
233
|
+
},
|
|
234
|
+
position: 50
|
|
235
|
+
}, {
|
|
236
|
+
render(e) {
|
|
237
|
+
if (!e.detail) return null;
|
|
238
|
+
let t = document.createElement("span");
|
|
239
|
+
return t.className = "cm-completionDetail", t.textContent = e.detail, t;
|
|
240
|
+
},
|
|
241
|
+
position: 80
|
|
242
|
+
}), t.sort((e, t) => e.position - t.position).map((e) => e.render);
|
|
243
|
+
}
|
|
244
|
+
function L(e, t, n) {
|
|
245
|
+
if (e <= n) return {
|
|
246
|
+
from: 0,
|
|
247
|
+
to: e
|
|
248
|
+
};
|
|
249
|
+
if (t < 0 && (t = 0), t <= e >> 1) {
|
|
250
|
+
let e = Math.floor(t / n);
|
|
251
|
+
return {
|
|
252
|
+
from: e * n,
|
|
253
|
+
to: (e + 1) * n
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
let r = Math.ceil((e - t) / n);
|
|
257
|
+
return {
|
|
258
|
+
from: e - r * n,
|
|
259
|
+
to: e - (r - 1) * n
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
var le = class {
|
|
263
|
+
constructor(e, t, n) {
|
|
264
|
+
this.view = e, this.stateField = t, this.applyCompletion = n, this.info = null, this.infoDestroy = null, this.placeInfoReq = {
|
|
265
|
+
read: () => this.measureInfo(),
|
|
266
|
+
write: (e) => this.placeInfo(e),
|
|
267
|
+
key: this
|
|
268
|
+
}, this.space = null, this.currentClass = "";
|
|
269
|
+
let r = e.state.field(t), { options: i, selected: a } = r.open, o = e.state.facet(P);
|
|
270
|
+
this.optionContent = ce(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = L(i.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (n) => {
|
|
271
|
+
let { options: r } = e.state.field(t).open;
|
|
272
|
+
for (let t = n.target, i; t && t != this.dom; t = t.parentNode) if (t.nodeName == "LI" && (i = /-(\d+)$/.exec(t.id)) && +i[1] < r.length) {
|
|
273
|
+
this.applyCompletion(e, r[+i[1]]), n.preventDefault();
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
if (n.target == this.list) {
|
|
277
|
+
let t = this.list.classList.contains("cm-completionListIncompleteTop") && n.clientY < this.list.firstChild.getBoundingClientRect().top ? this.range.from - 1 : this.list.classList.contains("cm-completionListIncompleteBottom") && n.clientY > this.list.lastChild.getBoundingClientRect().bottom ? this.range.to : null;
|
|
278
|
+
t != null && (e.dispatch({ effects: I.of(t) }), n.preventDefault());
|
|
279
|
+
}
|
|
280
|
+
}), this.dom.addEventListener("focusout", (t) => {
|
|
281
|
+
let n = e.state.field(this.stateField, !1);
|
|
282
|
+
n && n.tooltip && e.state.facet(P).closeOnBlur && t.relatedTarget != e.contentDOM && e.dispatch({ effects: N.of(null) });
|
|
283
|
+
}), this.showOptions(i, r.id);
|
|
284
|
+
}
|
|
285
|
+
mount() {
|
|
286
|
+
this.updateSel();
|
|
287
|
+
}
|
|
288
|
+
showOptions(e, t) {
|
|
289
|
+
this.list && this.list.remove(), this.list = this.dom.appendChild(this.createListBox(e, t, this.range)), this.list.addEventListener("scroll", () => {
|
|
290
|
+
this.info && this.view.requestMeasure(this.placeInfoReq);
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
update(e) {
|
|
294
|
+
let t = e.state.field(this.stateField), n = e.startState.field(this.stateField);
|
|
295
|
+
if (this.updateTooltipClass(e.state), t != n) {
|
|
296
|
+
let { options: r, selected: i, disabled: a } = t.open;
|
|
297
|
+
n.open && n.open.options == r || (this.range = L(r.length, i, e.state.facet(P).maxRenderedOptions), this.showOptions(r, t.id)), this.updateSel(), a != n.open?.disabled && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!a);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
updateTooltipClass(e) {
|
|
301
|
+
let t = this.tooltipClass(e);
|
|
302
|
+
if (t != this.currentClass) {
|
|
303
|
+
for (let e of this.currentClass.split(" ")) e && this.dom.classList.remove(e);
|
|
304
|
+
for (let e of t.split(" ")) e && this.dom.classList.add(e);
|
|
305
|
+
this.currentClass = t;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
positioned(e) {
|
|
309
|
+
this.space = e, this.info && this.view.requestMeasure(this.placeInfoReq);
|
|
310
|
+
}
|
|
311
|
+
updateSel() {
|
|
312
|
+
let e = this.view.state.field(this.stateField), t = e.open;
|
|
313
|
+
(t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = L(t.options.length, t.selected, this.view.state.facet(P).maxRenderedOptions), this.showOptions(t.options, e.id));
|
|
314
|
+
let n = this.updateSelectedOption(t.selected);
|
|
315
|
+
if (n) {
|
|
316
|
+
this.destroyInfo();
|
|
317
|
+
let { completion: r } = t.options[t.selected], { info: i } = r;
|
|
318
|
+
if (!i) return;
|
|
319
|
+
let a = typeof i == "string" ? document.createTextNode(i) : i(r);
|
|
320
|
+
if (!a) return;
|
|
321
|
+
"then" in a ? a.then((t) => {
|
|
322
|
+
t && this.view.state.field(this.stateField, !1) == e && this.addInfoPane(t, r);
|
|
323
|
+
}).catch((e) => d(this.view.state, e, "completion info")) : (this.addInfoPane(a, r), n.setAttribute("aria-describedby", this.info.id));
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
addInfoPane(e, t) {
|
|
327
|
+
this.destroyInfo();
|
|
328
|
+
let n = this.info = document.createElement("div");
|
|
329
|
+
if (n.className = "cm-tooltip cm-completionInfo", n.id = "cm-completionInfo-" + Math.floor(Math.random() * 65535).toString(16), e.nodeType != null) n.appendChild(e), this.infoDestroy = null;
|
|
330
|
+
else {
|
|
331
|
+
let { dom: t, destroy: r } = e;
|
|
332
|
+
n.appendChild(t), this.infoDestroy = r || null;
|
|
333
|
+
}
|
|
334
|
+
this.dom.appendChild(n), this.view.requestMeasure(this.placeInfoReq);
|
|
335
|
+
}
|
|
336
|
+
updateSelectedOption(e) {
|
|
337
|
+
let t = null;
|
|
338
|
+
for (let n = this.list.firstChild, r = this.range.from; n; n = n.nextSibling, r++) n.nodeName != "LI" || !n.id ? r-- : r == e ? n.hasAttribute("aria-selected") || (n.setAttribute("aria-selected", "true"), t = n) : n.hasAttribute("aria-selected") && (n.removeAttribute("aria-selected"), n.removeAttribute("aria-describedby"));
|
|
339
|
+
return t && de(this.list, t), t;
|
|
340
|
+
}
|
|
341
|
+
measureInfo() {
|
|
342
|
+
let e = this.dom.querySelector("[aria-selected]");
|
|
343
|
+
if (!e || !this.info) return null;
|
|
344
|
+
let t = this.dom.getBoundingClientRect(), n = this.info.getBoundingClientRect(), r = e.getBoundingClientRect(), i = this.space;
|
|
345
|
+
if (!i) {
|
|
346
|
+
let e = this.dom.ownerDocument.documentElement;
|
|
347
|
+
i = {
|
|
348
|
+
left: 0,
|
|
349
|
+
top: 0,
|
|
350
|
+
right: e.clientWidth,
|
|
351
|
+
bottom: e.clientHeight
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
return r.top > Math.min(i.bottom, t.bottom) - 10 || r.bottom < Math.max(i.top, t.top) + 10 ? null : this.view.state.facet(P).positionInfo(this.view, t, r, n, i, this.dom);
|
|
355
|
+
}
|
|
356
|
+
placeInfo(e) {
|
|
357
|
+
this.info && (e ? (e.style && (this.info.style.cssText = e.style), this.info.className = "cm-tooltip cm-completionInfo " + (e.class || "")) : this.info.style.cssText = "top: -1e6px");
|
|
358
|
+
}
|
|
359
|
+
createListBox(e, t, n) {
|
|
360
|
+
let r = document.createElement("ul");
|
|
361
|
+
r.id = t, r.setAttribute("role", "listbox"), r.setAttribute("aria-expanded", "true"), r.setAttribute("aria-label", this.view.state.phrase("Completions")), r.addEventListener("mousedown", (e) => {
|
|
362
|
+
e.target == r && e.preventDefault();
|
|
363
|
+
});
|
|
364
|
+
let i = null;
|
|
365
|
+
for (let a = n.from; a < n.to; a++) {
|
|
366
|
+
let { completion: o, match: s } = e[a], { section: c } = o;
|
|
367
|
+
if (c) {
|
|
368
|
+
let e = typeof c == "string" ? c : c.name;
|
|
369
|
+
if (e != i && (a > n.from || n.from == 0)) {
|
|
370
|
+
if (i = e, typeof c != "string" && c.header) r.appendChild(c.header(c));
|
|
371
|
+
else {
|
|
372
|
+
let t = r.appendChild(document.createElement("completion-section"));
|
|
373
|
+
t.textContent = e;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
let l = r.appendChild(document.createElement("li"));
|
|
378
|
+
l.id = t + "-" + a, l.setAttribute("role", "option");
|
|
379
|
+
let u = this.optionClass(o);
|
|
380
|
+
u && (l.className = u);
|
|
381
|
+
for (let e of this.optionContent) {
|
|
382
|
+
let t = e(o, this.view.state, this.view, s);
|
|
383
|
+
t && l.appendChild(t);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return n.from && r.classList.add("cm-completionListIncompleteTop"), n.to < e.length && r.classList.add("cm-completionListIncompleteBottom"), r;
|
|
387
|
+
}
|
|
388
|
+
destroyInfo() {
|
|
389
|
+
this.info && (this.infoDestroy && this.infoDestroy(), this.info.remove(), this.info = null);
|
|
390
|
+
}
|
|
391
|
+
destroy() {
|
|
392
|
+
this.destroyInfo();
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
function ue(e, t) {
|
|
396
|
+
return (n) => new le(n, e, t);
|
|
397
|
+
}
|
|
398
|
+
function de(e, t) {
|
|
399
|
+
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = n.height / e.offsetHeight;
|
|
400
|
+
r.top < n.top ? e.scrollTop -= (n.top - r.top) / i : r.bottom > n.bottom && (e.scrollTop += (r.bottom - n.bottom) / i);
|
|
401
|
+
}
|
|
402
|
+
function R(e) {
|
|
403
|
+
return (e.boost || 0) * 100 + (e.apply ? 10 : 0) + (e.info ? 5 : 0) + +!!e.type;
|
|
404
|
+
}
|
|
405
|
+
function fe(e, t) {
|
|
406
|
+
let n = [], r = null, i = null, a = (e) => {
|
|
407
|
+
n.push(e);
|
|
408
|
+
let { section: t } = e.completion;
|
|
409
|
+
if (t) {
|
|
410
|
+
r || (r = []);
|
|
411
|
+
let e = typeof t == "string" ? t : t.name;
|
|
412
|
+
r.some((t) => t.name == e) || r.push(typeof t == "string" ? { name: e } : t);
|
|
413
|
+
}
|
|
414
|
+
}, o = t.facet(P);
|
|
415
|
+
for (let r of e) if (r.hasResult()) {
|
|
416
|
+
let e = r.result.getMatch;
|
|
417
|
+
if (r.result.filter === !1) for (let t of r.result.options) a(new D(t, r.source, e ? e(t) : [], 1e9 - n.length));
|
|
418
|
+
else {
|
|
419
|
+
let n = t.sliceDoc(r.from, r.to), s, c = o.filterStrict ? new oe(n) : new ae(n);
|
|
420
|
+
for (let t of r.result.options) if (s = c.match(t.label)) {
|
|
421
|
+
let n = t.displayLabel ? e ? e(t, s.matched) : [] : s.matched, o = s.score + (t.boost || 0);
|
|
422
|
+
if (a(new D(t, r.source, n, o)), typeof t.section == "object" && t.section.rank === "dynamic") {
|
|
423
|
+
let { name: e } = t.section;
|
|
424
|
+
i || (i = Object.create(null)), i[e] = Math.max(o, i[e] || -1e9);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
if (r) {
|
|
430
|
+
let e = Object.create(null), t = 0, a = (e, t) => (e.rank === "dynamic" && t.rank === "dynamic" ? i[t.name] - i[e.name] : 0) || (typeof e.rank == "number" ? e.rank : 1e9) - (typeof t.rank == "number" ? t.rank : 1e9) || (e.name < t.name ? -1 : 1);
|
|
431
|
+
for (let n of r.sort(a)) t -= 1e5, e[n.name] = t;
|
|
432
|
+
for (let t of n) {
|
|
433
|
+
let { section: n } = t.completion;
|
|
434
|
+
n && (t.score += e[typeof n == "string" ? n : n.name]);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
let s = [], c = null, l = o.compareCompletions;
|
|
438
|
+
for (let e of n.sort((e, t) => t.score - e.score || l(e.completion, t.completion))) {
|
|
439
|
+
let t = e.completion;
|
|
440
|
+
!c || c.label != t.label || c.detail != t.detail || c.type != null && t.type != null && c.type != t.type || c.apply != t.apply || c.boost != t.boost ? s.push(e) : R(e.completion) > R(c) && (s[s.length - 1] = e), c = e.completion;
|
|
441
|
+
}
|
|
442
|
+
return s;
|
|
443
|
+
}
|
|
444
|
+
var pe = class e {
|
|
445
|
+
constructor(e, t, n, r, i, a) {
|
|
446
|
+
this.options = e, this.attrs = t, this.tooltip = n, this.timestamp = r, this.selected = i, this.disabled = a;
|
|
447
|
+
}
|
|
448
|
+
setSelected(t, n) {
|
|
449
|
+
return t == this.selected || t >= this.options.length ? this : new e(this.options, z(n, t), this.tooltip, this.timestamp, t, this.disabled);
|
|
450
|
+
}
|
|
451
|
+
static build(t, n, r, i, a, o) {
|
|
452
|
+
if (i && !o && t.some((e) => e.isPending)) return i.setDisabled();
|
|
453
|
+
let s = fe(t, n);
|
|
454
|
+
if (!s.length) return i && t.some((e) => e.isPending) ? i.setDisabled() : null;
|
|
455
|
+
let c = n.facet(P).selectOnOpen ? 0 : -1;
|
|
456
|
+
if (i && i.selected != c && i.selected != -1) {
|
|
457
|
+
let e = i.options[i.selected].completion;
|
|
458
|
+
for (let t = 0; t < s.length; t++) if (s[t].completion == e) {
|
|
459
|
+
c = t;
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
return new e(s, z(r, c), {
|
|
464
|
+
pos: t.reduce((e, t) => t.hasResult() ? Math.min(e, t.from) : e, 1e8),
|
|
465
|
+
create: be,
|
|
466
|
+
above: a.aboveCursor
|
|
467
|
+
}, i ? i.timestamp : Date.now(), c, !1);
|
|
468
|
+
}
|
|
469
|
+
map(t) {
|
|
470
|
+
return new e(this.options, this.attrs, {
|
|
471
|
+
...this.tooltip,
|
|
472
|
+
pos: t.mapPos(this.tooltip.pos)
|
|
473
|
+
}, this.timestamp, this.selected, this.disabled);
|
|
474
|
+
}
|
|
475
|
+
setDisabled() {
|
|
476
|
+
return new e(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
|
|
477
|
+
}
|
|
478
|
+
}, me = class e {
|
|
479
|
+
constructor(e, t, n) {
|
|
480
|
+
this.active = e, this.id = t, this.open = n;
|
|
481
|
+
}
|
|
482
|
+
static start() {
|
|
483
|
+
return new e(ve, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
|
|
484
|
+
}
|
|
485
|
+
update(t) {
|
|
486
|
+
let { state: n } = t, r = n.facet(P), i = (r.override || n.languageDataAt("autocomplete", O(n)).map(ie)).map((e) => (this.active.find((t) => t.source == e) || new V(e, +!!this.active.some((e) => e.state != 0))).update(t, r));
|
|
487
|
+
i.length == this.active.length && i.every((e, t) => e == this.active[t]) && (i = this.active);
|
|
488
|
+
let a = this.open, o = t.effects.some((e) => e.is(U));
|
|
489
|
+
a && t.docChanged && (a = a.map(t.changes)), t.selection || i.some((e) => e.hasResult() && t.changes.touchesRange(e.from, e.to)) || !he(i, this.active) || o ? a = pe.build(i, n, this.id, a, r, o) : a && a.disabled && !i.some((e) => e.isPending) && (a = null), !a && i.every((e) => !e.isPending) && i.some((e) => e.hasResult()) && (i = i.map((e) => e.hasResult() ? new V(e.source, 0) : e));
|
|
490
|
+
for (let e of t.effects) e.is(I) && (a = a && a.setSelected(e.value, this.id));
|
|
491
|
+
return i == this.active && a == this.open ? this : new e(i, this.id, a);
|
|
492
|
+
}
|
|
493
|
+
get tooltip() {
|
|
494
|
+
return this.open ? this.open.tooltip : null;
|
|
495
|
+
}
|
|
496
|
+
get attrs() {
|
|
497
|
+
return this.open ? this.open.attrs : this.active.length ? ge : _e;
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
function he(e, t) {
|
|
501
|
+
if (e == t) return !0;
|
|
502
|
+
for (let n = 0, r = 0;;) {
|
|
503
|
+
for (; n < e.length && !e[n].hasResult();) n++;
|
|
504
|
+
for (; r < t.length && !t[r].hasResult();) r++;
|
|
505
|
+
let i = n == e.length, a = r == t.length;
|
|
506
|
+
if (i || a) return i == a;
|
|
507
|
+
if (e[n++].result != t[r++].result) return !1;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
var ge = { "aria-autocomplete": "list" }, _e = {};
|
|
511
|
+
function z(e, t) {
|
|
512
|
+
let n = {
|
|
513
|
+
"aria-autocomplete": "list",
|
|
514
|
+
"aria-haspopup": "listbox",
|
|
515
|
+
"aria-controls": e
|
|
516
|
+
};
|
|
517
|
+
return t > -1 && (n["aria-activedescendant"] = e + "-" + t), n;
|
|
518
|
+
}
|
|
519
|
+
var ve = [];
|
|
520
|
+
function B(e, t) {
|
|
521
|
+
if (e.isUserEvent("input.complete")) {
|
|
522
|
+
let n = e.annotation(A);
|
|
523
|
+
if (n && t.activateOnCompletion(n)) return 12;
|
|
524
|
+
}
|
|
525
|
+
let n = e.isUserEvent("input.type");
|
|
526
|
+
return n && t.activateOnTyping ? 5 : n ? 1 : e.isUserEvent("delete.backward") ? 2 : e.selection ? 8 : e.docChanged ? 16 : 0;
|
|
527
|
+
}
|
|
528
|
+
var V = class e {
|
|
529
|
+
constructor(e, t, n = !1) {
|
|
530
|
+
this.source = e, this.state = t, this.explicit = n;
|
|
531
|
+
}
|
|
532
|
+
hasResult() {
|
|
533
|
+
return !1;
|
|
534
|
+
}
|
|
535
|
+
get isPending() {
|
|
536
|
+
return this.state == 1;
|
|
537
|
+
}
|
|
538
|
+
update(t, n) {
|
|
539
|
+
let r = B(t, n), i = this;
|
|
540
|
+
(r & 8 || r & 16 && this.touches(t)) && (i = new e(i.source, 0)), r & 4 && i.state == 0 && (i = new e(this.source, 1)), i = i.updateFor(t, r);
|
|
541
|
+
for (let n of t.effects) if (n.is(M)) i = new e(i.source, 1, n.value);
|
|
542
|
+
else if (n.is(N)) i = new e(i.source, 0);
|
|
543
|
+
else if (n.is(U)) for (let e of n.value) e.source == i.source && (i = e);
|
|
544
|
+
return i;
|
|
545
|
+
}
|
|
546
|
+
updateFor(e, t) {
|
|
547
|
+
return this.map(e.changes);
|
|
548
|
+
}
|
|
549
|
+
map(e) {
|
|
550
|
+
return this;
|
|
551
|
+
}
|
|
552
|
+
touches(e) {
|
|
553
|
+
return e.changes.touchesRange(O(e.state));
|
|
554
|
+
}
|
|
555
|
+
}, H = class e extends V {
|
|
556
|
+
constructor(e, t, n, r, i, a) {
|
|
557
|
+
super(e, 3, t), this.limit = n, this.result = r, this.from = i, this.to = a;
|
|
558
|
+
}
|
|
559
|
+
hasResult() {
|
|
560
|
+
return !0;
|
|
561
|
+
}
|
|
562
|
+
updateFor(t, n) {
|
|
563
|
+
if (!(n & 3)) return this.map(t.changes);
|
|
564
|
+
let r = this.result;
|
|
565
|
+
r.map && !t.changes.empty && (r = r.map(r, t.changes));
|
|
566
|
+
let i = t.changes.mapPos(this.from), a = t.changes.mapPos(this.to, 1), o = O(t.state);
|
|
567
|
+
if (o > a || !r || n & 2 && (O(t.startState) == this.from || o < this.limit)) return new V(this.source, n & 4 ? 1 : 0);
|
|
568
|
+
let s = t.changes.mapPos(this.limit);
|
|
569
|
+
return ye(r.validFor, t.state, i, a) ? new e(this.source, this.explicit, s, r, i, a) : r.update && (r = r.update(r, i, a, new T(t.state, o, !1))) ? new e(this.source, this.explicit, s, r, r.from, r.to ?? O(t.state)) : new V(this.source, 1, this.explicit);
|
|
570
|
+
}
|
|
571
|
+
map(t) {
|
|
572
|
+
if (t.empty) return this;
|
|
573
|
+
let n = this.result.map ? this.result.map(this.result, t) : this.result;
|
|
574
|
+
return n ? new e(this.source, this.explicit, t.mapPos(this.limit), n, t.mapPos(this.from), t.mapPos(this.to, 1)) : new V(this.source, 0);
|
|
575
|
+
}
|
|
576
|
+
touches(e) {
|
|
577
|
+
return e.changes.touchesRange(this.from, this.to);
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
function ye(e, t, n, r) {
|
|
581
|
+
if (!e) return !1;
|
|
582
|
+
let i = t.sliceDoc(n, r);
|
|
583
|
+
return typeof e == "function" ? e(i, n, r, t) : k(e, !0).test(i);
|
|
584
|
+
}
|
|
585
|
+
var U = /*@__PURE__*/ x.define({ map(e, t) {
|
|
586
|
+
return e.map((e) => e.map(t));
|
|
587
|
+
} }), W = /*@__PURE__*/ S.define({
|
|
588
|
+
create() {
|
|
589
|
+
return me.start();
|
|
590
|
+
},
|
|
591
|
+
update(e, t) {
|
|
592
|
+
return e.update(t);
|
|
593
|
+
},
|
|
594
|
+
provide: (t) => [i.from(t, (e) => e.tooltip), e.contentAttributes.from(t, (e) => e.attrs)]
|
|
595
|
+
});
|
|
596
|
+
function G(e, t) {
|
|
597
|
+
let n = t.completion.apply || t.completion.label, r = e.state.field(W).active.find((e) => e.source == t.source);
|
|
598
|
+
return r instanceof H && (typeof n == "string" ? e.dispatch({
|
|
599
|
+
...re(e.state, n, r.from, r.to),
|
|
600
|
+
annotations: A.of(t.completion)
|
|
601
|
+
}) : n(e, t.completion, r.from, r.to), !0);
|
|
602
|
+
}
|
|
603
|
+
var be = /*@__PURE__*/ ue(W, G);
|
|
604
|
+
function K(e, t = "option") {
|
|
605
|
+
return (n) => {
|
|
606
|
+
let r = n.state.field(W, !1);
|
|
607
|
+
if (!r || !r.open || r.open.disabled || Date.now() - r.open.timestamp < n.state.facet(P).interactionDelay) return !1;
|
|
608
|
+
let i = 1, a;
|
|
609
|
+
t == "page" && (a = l(n, r.open.tooltip)) && (i = Math.max(2, Math.floor(a.dom.offsetHeight / a.dom.querySelector("li").offsetHeight) - 1));
|
|
610
|
+
let { length: o } = r.open.options, s = r.open.selected > -1 ? r.open.selected + i * (e ? 1 : -1) : e ? 0 : o - 1;
|
|
611
|
+
return s < 0 ? s = t == "page" ? 0 : o - 1 : s >= o && (s = t == "page" ? o - 1 : 0), n.dispatch({ effects: I.of(s) }), !0;
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
var xe = (e) => {
|
|
615
|
+
let t = e.state.field(W, !1);
|
|
616
|
+
return e.state.readOnly || !t || !t.open || t.open.selected < 0 || t.open.disabled || Date.now() - t.open.timestamp < e.state.facet(P).interactionDelay ? !1 : G(e, t.open.options[t.open.selected]);
|
|
617
|
+
}, q = (e) => e.state.field(W, !1) ? (e.dispatch({ effects: M.of(!0) }), !0) : !1, Se = (e) => {
|
|
618
|
+
let t = e.state.field(W, !1);
|
|
619
|
+
return !t || !t.active.some((e) => e.state != 0) ? !1 : (e.dispatch({ effects: N.of(null) }), !0);
|
|
620
|
+
}, Ce = class {
|
|
621
|
+
constructor(e, t) {
|
|
622
|
+
this.active = e, this.context = t, this.time = Date.now(), this.updates = [], this.done = void 0;
|
|
623
|
+
}
|
|
624
|
+
}, we = 50, Te = 1e3, Ee = /*@__PURE__*/ a.fromClass(class {
|
|
625
|
+
constructor(e) {
|
|
626
|
+
this.view = e, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
|
|
627
|
+
for (let t of e.state.field(W).active) t.isPending && this.startQuery(t);
|
|
628
|
+
}
|
|
629
|
+
update(e) {
|
|
630
|
+
let t = e.state.field(W), n = e.state.facet(P);
|
|
631
|
+
if (!e.selectionSet && !e.docChanged && e.startState.field(W) == t) return;
|
|
632
|
+
let r = e.transactions.some((e) => {
|
|
633
|
+
let t = B(e, n);
|
|
634
|
+
return t & 8 || (e.selection || e.docChanged) && !(t & 3);
|
|
635
|
+
});
|
|
636
|
+
for (let t = 0; t < this.running.length; t++) {
|
|
637
|
+
let n = this.running[t];
|
|
638
|
+
if (r || n.context.abortOnDocChange && e.docChanged || n.updates.length + e.transactions.length > we && Date.now() - n.time > Te) {
|
|
639
|
+
for (let e of n.context.abortListeners) try {
|
|
640
|
+
e();
|
|
641
|
+
} catch (e) {
|
|
642
|
+
d(this.view.state, e);
|
|
643
|
+
}
|
|
644
|
+
n.context.abortListeners = null, this.running.splice(t--, 1);
|
|
645
|
+
} else n.updates.push(...e.transactions);
|
|
646
|
+
}
|
|
647
|
+
this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), e.transactions.some((e) => e.effects.some((e) => e.is(M))) && (this.pendingStart = !0);
|
|
648
|
+
let i = this.pendingStart ? 50 : n.activateOnTypingDelay;
|
|
649
|
+
if (this.debounceUpdate = t.active.some((e) => e.isPending && !this.running.some((t) => t.active.source == e.source)) ? setTimeout(() => this.startUpdate(), i) : -1, this.composing != 0) for (let t of e.transactions) t.isUserEvent("input.type") ? this.composing = 2 : this.composing == 2 && t.selection && (this.composing = 3);
|
|
650
|
+
}
|
|
651
|
+
startUpdate() {
|
|
652
|
+
this.debounceUpdate = -1, this.pendingStart = !1;
|
|
653
|
+
let { state: e } = this.view, t = e.field(W);
|
|
654
|
+
for (let e of t.active) e.isPending && !this.running.some((t) => t.active.source == e.source) && this.startQuery(e);
|
|
655
|
+
this.running.length && t.open && t.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(P).updateSyncTime));
|
|
656
|
+
}
|
|
657
|
+
startQuery(e) {
|
|
658
|
+
let { state: t } = this.view, n = new T(t, O(t), e.explicit, this.view), r = new Ce(e, n);
|
|
659
|
+
this.running.push(r), Promise.resolve(e.source(n)).then((e) => {
|
|
660
|
+
r.context.aborted || (r.done = e || null, this.scheduleAccept());
|
|
661
|
+
}, (e) => {
|
|
662
|
+
this.view.dispatch({ effects: N.of(null) }), d(this.view.state, e);
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
scheduleAccept() {
|
|
666
|
+
this.running.every((e) => e.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(P).updateSyncTime));
|
|
667
|
+
}
|
|
668
|
+
accept() {
|
|
669
|
+
this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
|
|
670
|
+
let e = [], t = this.view.state.facet(P), n = this.view.state.field(W);
|
|
671
|
+
for (let r = 0; r < this.running.length; r++) {
|
|
672
|
+
let i = this.running[r];
|
|
673
|
+
if (i.done === void 0) continue;
|
|
674
|
+
if (this.running.splice(r--, 1), i.done) {
|
|
675
|
+
let n = O(i.updates.length ? i.updates[0].startState : this.view.state), r = Math.min(n, i.done.from + +!i.active.explicit), a = new H(i.active.source, i.active.explicit, r, i.done, i.done.from, i.done.to ?? n);
|
|
676
|
+
for (let e of i.updates) a = a.update(e, t);
|
|
677
|
+
if (a.hasResult()) {
|
|
678
|
+
e.push(a);
|
|
679
|
+
continue;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
let a = n.active.find((e) => e.source == i.active.source);
|
|
683
|
+
if (a && a.isPending) {
|
|
684
|
+
if (i.done == null) {
|
|
685
|
+
let n = new V(i.active.source, 0);
|
|
686
|
+
for (let e of i.updates) n = n.update(e, t);
|
|
687
|
+
n.isPending || e.push(n);
|
|
688
|
+
} else this.startQuery(a);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
(e.length || n.open && n.open.disabled) && this.view.dispatch({ effects: U.of(e) });
|
|
692
|
+
}
|
|
693
|
+
}, { eventHandlers: {
|
|
694
|
+
blur(e) {
|
|
695
|
+
let t = this.view.state.field(W, !1);
|
|
696
|
+
if (t && t.tooltip && this.view.state.facet(P).closeOnBlur) {
|
|
697
|
+
let n = t.open && l(this.view, t.open.tooltip);
|
|
698
|
+
n && n.dom.contains(e.relatedTarget) || setTimeout(() => this.view.dispatch({ effects: N.of(null) }), 10);
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
compositionstart() {
|
|
702
|
+
this.composing = 1;
|
|
703
|
+
},
|
|
704
|
+
compositionend() {
|
|
705
|
+
this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: M.of(!1) }), 20), this.composing = 0;
|
|
706
|
+
}
|
|
707
|
+
} }), De = typeof navigator == "object" && /*@__PURE__*/ /Win/.test(navigator.platform), Oe = /*@__PURE__*/ b.highest(/*@__PURE__*/ e.domEventHandlers({ keydown(e, t) {
|
|
708
|
+
let n = t.state.field(W, !1);
|
|
709
|
+
if (!n || !n.open || n.open.disabled || n.open.selected < 0 || !e.key || e.key.length > 1 || e.ctrlKey && !(De && e.altKey) || e.metaKey) return !1;
|
|
710
|
+
let r = n.open.options[n.open.selected], i = n.active.find((e) => e.source == r.source), a = r.completion.commitCharacters || i.result.commitCharacters;
|
|
711
|
+
return a && a.indexOf(e.key) > -1 && G(t, r), !1;
|
|
712
|
+
} })), J = /*@__PURE__*/ e.baseTheme({
|
|
713
|
+
".cm-tooltip.cm-tooltip-autocomplete": { "& > ul": {
|
|
714
|
+
fontFamily: "monospace",
|
|
715
|
+
whiteSpace: "nowrap",
|
|
716
|
+
overflow: "hidden auto",
|
|
717
|
+
maxWidth_fallback: "700px",
|
|
718
|
+
maxWidth: "min(700px, 95vw)",
|
|
719
|
+
minWidth: "250px",
|
|
720
|
+
maxHeight: "10em",
|
|
721
|
+
height: "100%",
|
|
722
|
+
listStyle: "none",
|
|
723
|
+
margin: 0,
|
|
724
|
+
padding: 0,
|
|
725
|
+
"& > li, & > completion-section": {
|
|
726
|
+
padding: "1px 3px",
|
|
727
|
+
lineHeight: 1.2
|
|
728
|
+
},
|
|
729
|
+
"& > li": {
|
|
730
|
+
overflowX: "hidden",
|
|
731
|
+
textOverflow: "ellipsis",
|
|
732
|
+
cursor: "pointer"
|
|
733
|
+
},
|
|
734
|
+
"& > completion-section": {
|
|
735
|
+
display: "list-item",
|
|
736
|
+
borderBottom: "1px solid silver",
|
|
737
|
+
paddingLeft: "0.5em",
|
|
738
|
+
opacity: .7
|
|
739
|
+
}
|
|
740
|
+
} },
|
|
741
|
+
"&light .cm-tooltip-autocomplete ul li[aria-selected]": {
|
|
742
|
+
background: "#17c",
|
|
743
|
+
color: "white"
|
|
744
|
+
},
|
|
745
|
+
"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]": { background: "#777" },
|
|
746
|
+
"&dark .cm-tooltip-autocomplete ul li[aria-selected]": {
|
|
747
|
+
background: "#347",
|
|
748
|
+
color: "white"
|
|
749
|
+
},
|
|
750
|
+
"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]": { background: "#444" },
|
|
751
|
+
".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after": {
|
|
752
|
+
content: "\"···\"",
|
|
753
|
+
opacity: .5,
|
|
754
|
+
display: "block",
|
|
755
|
+
textAlign: "center",
|
|
756
|
+
cursor: "pointer"
|
|
757
|
+
},
|
|
758
|
+
".cm-tooltip.cm-completionInfo": {
|
|
759
|
+
position: "absolute",
|
|
760
|
+
padding: "3px 9px",
|
|
761
|
+
width: "max-content",
|
|
762
|
+
maxWidth: "400px",
|
|
763
|
+
boxSizing: "border-box",
|
|
764
|
+
whiteSpace: "pre-line"
|
|
765
|
+
},
|
|
766
|
+
".cm-completionInfo.cm-completionInfo-left": { right: "100%" },
|
|
767
|
+
".cm-completionInfo.cm-completionInfo-right": { left: "100%" },
|
|
768
|
+
".cm-completionInfo.cm-completionInfo-left-narrow": { right: "30px" },
|
|
769
|
+
".cm-completionInfo.cm-completionInfo-right-narrow": { left: "30px" },
|
|
770
|
+
"&light .cm-snippetField": { backgroundColor: "#00000022" },
|
|
771
|
+
"&dark .cm-snippetField": { backgroundColor: "#ffffff22" },
|
|
772
|
+
".cm-snippetFieldPosition": {
|
|
773
|
+
verticalAlign: "text-top",
|
|
774
|
+
width: 0,
|
|
775
|
+
height: "1.15em",
|
|
776
|
+
display: "inline-block",
|
|
777
|
+
margin: "0 -0.7px -.7em",
|
|
778
|
+
borderLeft: "1.4px dotted #888"
|
|
779
|
+
},
|
|
780
|
+
".cm-completionMatchedText": { textDecoration: "underline" },
|
|
781
|
+
".cm-completionDetail": {
|
|
782
|
+
marginLeft: "0.5em",
|
|
783
|
+
fontStyle: "italic"
|
|
784
|
+
},
|
|
785
|
+
".cm-completionIcon": {
|
|
786
|
+
fontSize: "90%",
|
|
787
|
+
width: ".8em",
|
|
788
|
+
display: "inline-block",
|
|
789
|
+
textAlign: "center",
|
|
790
|
+
paddingRight: ".6em",
|
|
791
|
+
opacity: "0.6",
|
|
792
|
+
boxSizing: "content-box"
|
|
793
|
+
},
|
|
794
|
+
".cm-completionIcon-function, .cm-completionIcon-method": { "&:after": { content: "'ƒ'" } },
|
|
795
|
+
".cm-completionIcon-class": { "&:after": { content: "'○'" } },
|
|
796
|
+
".cm-completionIcon-interface": { "&:after": { content: "'◌'" } },
|
|
797
|
+
".cm-completionIcon-variable": { "&:after": { content: "'𝑥'" } },
|
|
798
|
+
".cm-completionIcon-constant": { "&:after": { content: "'𝐶'" } },
|
|
799
|
+
".cm-completionIcon-type": { "&:after": { content: "'𝑡'" } },
|
|
800
|
+
".cm-completionIcon-enum": { "&:after": { content: "'∪'" } },
|
|
801
|
+
".cm-completionIcon-property": { "&:after": { content: "'□'" } },
|
|
802
|
+
".cm-completionIcon-keyword": { "&:after": { content: "'🔑︎'" } },
|
|
803
|
+
".cm-completionIcon-namespace": { "&:after": { content: "'▢'" } },
|
|
804
|
+
".cm-completionIcon-text": { "&:after": {
|
|
805
|
+
content: "'abc'",
|
|
806
|
+
fontSize: "50%",
|
|
807
|
+
verticalAlign: "middle"
|
|
808
|
+
} }
|
|
809
|
+
}), ke = class {
|
|
810
|
+
constructor(e, t, n, r) {
|
|
811
|
+
this.field = e, this.line = t, this.from = n, this.to = r;
|
|
812
|
+
}
|
|
813
|
+
}, Ae = class e {
|
|
814
|
+
constructor(e, t, n) {
|
|
815
|
+
this.field = e, this.from = t, this.to = n;
|
|
816
|
+
}
|
|
817
|
+
map(t) {
|
|
818
|
+
let n = t.mapPos(this.from, -1, C.TrackDel), r = t.mapPos(this.to, 1, C.TrackDel);
|
|
819
|
+
return n == null || r == null ? null : new e(this.field, n, r);
|
|
820
|
+
}
|
|
821
|
+
}, je = class e {
|
|
822
|
+
constructor(e, t) {
|
|
823
|
+
this.lines = e, this.fieldPositions = t;
|
|
824
|
+
}
|
|
825
|
+
instantiate(e, n) {
|
|
826
|
+
let r = [], i = [n], a = e.doc.lineAt(n), o = /^\s*/.exec(a.text)[0];
|
|
827
|
+
for (let a of this.lines) {
|
|
828
|
+
if (r.length) {
|
|
829
|
+
let r = o, s = /^\t*/.exec(a)[0].length;
|
|
830
|
+
for (let n = 0; n < s; n++) r += e.facet(t);
|
|
831
|
+
i.push(n + r.length - s), a = r + a.slice(s);
|
|
832
|
+
}
|
|
833
|
+
r.push(a), n += a.length + 1;
|
|
834
|
+
}
|
|
835
|
+
return {
|
|
836
|
+
text: r,
|
|
837
|
+
ranges: this.fieldPositions.map((e) => new Ae(e.field, i[e.line] + e.from, i[e.line] + e.to))
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
static parse(t) {
|
|
841
|
+
let n = [], r = [], i = [], a;
|
|
842
|
+
for (let e of t.split(/\r\n?|\n/)) {
|
|
843
|
+
for (; a = /[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(e);) {
|
|
844
|
+
let t = a[1] ? +a[1] : null, o = a[2] || a[3] || "", s = -1;
|
|
845
|
+
t === 0 && (t = 1e9);
|
|
846
|
+
let c = o.replace(/\\[{}]/g, (e) => e[1]);
|
|
847
|
+
for (let e = 0; e < n.length; e++) (t == null ? c && n[e].name == c : n[e].seq == t) && (s = e);
|
|
848
|
+
if (s < 0) {
|
|
849
|
+
let e = 0;
|
|
850
|
+
for (; e < n.length && (t == null || n[e].seq != null && n[e].seq < t);) e++;
|
|
851
|
+
n.splice(e, 0, {
|
|
852
|
+
seq: t,
|
|
853
|
+
name: c
|
|
854
|
+
}), s = e;
|
|
855
|
+
for (let e of i) e.field >= s && e.field++;
|
|
856
|
+
}
|
|
857
|
+
for (let e of i) if (e.line == r.length && e.from > a.index) {
|
|
858
|
+
let t = a[2] ? 3 + (a[1] || "").length : 2;
|
|
859
|
+
e.from -= t, e.to -= t;
|
|
860
|
+
}
|
|
861
|
+
i.push(new ke(s, r.length, a.index, a.index + c.length)), e = e.slice(0, a.index) + o + e.slice(a.index + a[0].length);
|
|
862
|
+
}
|
|
863
|
+
e = e.replace(/\\([{}])/g, (e, t, n) => {
|
|
864
|
+
for (let e of i) e.line == r.length && e.from > n && (e.from--, e.to--);
|
|
865
|
+
return t;
|
|
866
|
+
}), r.push(e);
|
|
867
|
+
}
|
|
868
|
+
return new e(r, i);
|
|
869
|
+
}
|
|
870
|
+
}, Me = /*@__PURE__*/ o.widget({ widget: /*@__PURE__*/ new class extends s {
|
|
871
|
+
toDOM() {
|
|
872
|
+
let e = document.createElement("span");
|
|
873
|
+
return e.className = "cm-snippetFieldPosition", e;
|
|
874
|
+
}
|
|
875
|
+
ignoreEvent() {
|
|
876
|
+
return !1;
|
|
877
|
+
}
|
|
878
|
+
}() }), Ne = /*@__PURE__*/ o.mark({ class: "cm-snippetField" }), Y = class e {
|
|
879
|
+
constructor(e, t) {
|
|
880
|
+
this.ranges = e, this.active = t, this.deco = o.set(e.map((e) => (e.from == e.to ? Me : Ne).range(e.from, e.to)), !0);
|
|
881
|
+
}
|
|
882
|
+
map(t) {
|
|
883
|
+
let n = [];
|
|
884
|
+
for (let e of this.ranges) {
|
|
885
|
+
let r = e.map(t);
|
|
886
|
+
if (!r) return null;
|
|
887
|
+
n.push(r);
|
|
888
|
+
}
|
|
889
|
+
return new e(n, this.active);
|
|
890
|
+
}
|
|
891
|
+
selectionInsideField(e) {
|
|
892
|
+
return e.ranges.every((e) => this.ranges.some((t) => t.field == this.active && t.from <= e.from && t.to >= e.to));
|
|
893
|
+
}
|
|
894
|
+
}, X = /*@__PURE__*/ x.define({ map(e, t) {
|
|
895
|
+
return e && e.map(t);
|
|
896
|
+
} }), Pe = /*@__PURE__*/ x.define(), Z = /*@__PURE__*/ S.define({
|
|
897
|
+
create() {
|
|
898
|
+
return null;
|
|
899
|
+
},
|
|
900
|
+
update(e, t) {
|
|
901
|
+
for (let n of t.effects) {
|
|
902
|
+
if (n.is(X)) return n.value;
|
|
903
|
+
if (n.is(Pe) && e) return new Y(e.ranges, n.value);
|
|
904
|
+
}
|
|
905
|
+
return e && t.docChanged && (e = e.map(t.changes)), e && t.selection && !e.selectionInsideField(t.selection) && (e = null), e;
|
|
906
|
+
},
|
|
907
|
+
provide: (t) => e.decorations.from(t, (e) => e ? e.deco : o.none)
|
|
908
|
+
});
|
|
909
|
+
function Q(e, t) {
|
|
910
|
+
return c.create(e.filter((e) => e.field == t).map((e) => c.range(e.from, e.to)));
|
|
911
|
+
}
|
|
912
|
+
function Fe(e) {
|
|
913
|
+
let t = je.parse(e);
|
|
914
|
+
return (e, n, r, i) => {
|
|
915
|
+
let { text: a, ranges: o } = t.instantiate(e.state, r), { main: s } = e.state.selection, c = {
|
|
916
|
+
changes: {
|
|
917
|
+
from: r,
|
|
918
|
+
to: i == s.from ? s.to : i,
|
|
919
|
+
insert: p.of(a)
|
|
920
|
+
},
|
|
921
|
+
scrollIntoView: !0,
|
|
922
|
+
annotations: n ? [A.of(n), y.userEvent.of("input.complete")] : void 0
|
|
923
|
+
};
|
|
924
|
+
if (o.length && (c.selection = Q(o, 0)), o.some((e) => e.field > 0)) {
|
|
925
|
+
let t = new Y(o, 0), n = c.effects = [X.of(t)];
|
|
926
|
+
e.state.field(Z, !1) === void 0 && n.push(x.appendConfig.of([
|
|
927
|
+
Z,
|
|
928
|
+
Re,
|
|
929
|
+
Be,
|
|
930
|
+
J
|
|
931
|
+
]));
|
|
932
|
+
}
|
|
933
|
+
e.dispatch(e.state.update(c));
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
function Ie(e) {
|
|
937
|
+
return ({ state: t, dispatch: n }) => {
|
|
938
|
+
let r = t.field(Z, !1);
|
|
939
|
+
if (!r || e < 0 && r.active == 0) return !1;
|
|
940
|
+
let i = r.active + e, a = e > 0 && !r.ranges.some((t) => t.field == i + e);
|
|
941
|
+
return n(t.update({
|
|
942
|
+
selection: Q(r.ranges, i),
|
|
943
|
+
effects: X.of(a ? null : new Y(r.ranges, i)),
|
|
944
|
+
scrollIntoView: !0
|
|
945
|
+
})), !0;
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
var Le = [{
|
|
949
|
+
key: "Tab",
|
|
950
|
+
run: /* @__PURE__ */ Ie(1),
|
|
951
|
+
shift: /* @__PURE__ */ Ie(-1)
|
|
952
|
+
}, {
|
|
953
|
+
key: "Escape",
|
|
954
|
+
run: ({ state: e, dispatch: t }) => e.field(Z, !1) ? (t(e.update({ effects: X.of(null) })), !0) : !1
|
|
955
|
+
}], $ = /*@__PURE__*/ h.define({ combine(e) {
|
|
956
|
+
return e.length ? e[0] : Le;
|
|
957
|
+
} }), Re = /*@__PURE__*/ b.highest(/*@__PURE__*/ u.compute([$], (e) => e.facet($)));
|
|
958
|
+
function ze(e, t) {
|
|
959
|
+
return {
|
|
960
|
+
...t,
|
|
961
|
+
apply: Fe(e)
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
var Be = /*@__PURE__*/ e.domEventHandlers({ mousedown(e, t) {
|
|
965
|
+
let n = t.state.field(Z, !1), r;
|
|
966
|
+
if (!n || (r = t.posAtCoords({
|
|
967
|
+
x: e.clientX,
|
|
968
|
+
y: e.clientY
|
|
969
|
+
})) == null) return !1;
|
|
970
|
+
let i = n.ranges.find((e) => e.from <= r && e.to >= r);
|
|
971
|
+
return !i || i.field == n.active ? !1 : (t.dispatch({
|
|
972
|
+
selection: Q(n.ranges, i.field),
|
|
973
|
+
effects: X.of(n.ranges.some((e) => e.field > i.field) ? new Y(n.ranges, i.field) : null),
|
|
974
|
+
scrollIntoView: !0
|
|
975
|
+
}), !0);
|
|
976
|
+
} }), Ve = /*@__PURE__*/ new class extends f {}();
|
|
977
|
+
Ve.startSide = 1, Ve.endSide = -1, typeof navigator == "object" && navigator.userAgent;
|
|
978
|
+
function He(e = {}) {
|
|
979
|
+
return [
|
|
980
|
+
Oe,
|
|
981
|
+
W,
|
|
982
|
+
P.of(e),
|
|
983
|
+
Ee,
|
|
984
|
+
We,
|
|
985
|
+
J
|
|
986
|
+
];
|
|
987
|
+
}
|
|
988
|
+
var Ue = [
|
|
989
|
+
{
|
|
990
|
+
key: "Ctrl-Space",
|
|
991
|
+
run: q
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
mac: "Alt-`",
|
|
995
|
+
run: q
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
mac: "Alt-i",
|
|
999
|
+
run: q
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
key: "Escape",
|
|
1003
|
+
run: Se
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
key: "ArrowDown",
|
|
1007
|
+
run: /*@__PURE__*/ K(!0)
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
key: "ArrowUp",
|
|
1011
|
+
run: /*@__PURE__*/ K(!1)
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
key: "PageDown",
|
|
1015
|
+
run: /*@__PURE__*/ K(!0, "page")
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
key: "PageUp",
|
|
1019
|
+
run: /*@__PURE__*/ K(!1, "page")
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
key: "Enter",
|
|
1023
|
+
run: xe
|
|
1024
|
+
}
|
|
1025
|
+
], We = /*@__PURE__*/ b.highest(/*@__PURE__*/ u.computeN([P], (e) => e.facet(P).defaultKeymap ? [Ue] : []));
|
|
1026
|
+
function Ge(e) {
|
|
1027
|
+
let t = e.field(W, !1);
|
|
1028
|
+
return t && t.active.some((e) => e.isPending) ? "pending" : t && t.active.some((e) => e.state != 0) ? "active" : null;
|
|
1029
|
+
}
|
|
1030
|
+
var Ke = /*@__PURE__*/ new WeakMap();
|
|
1031
|
+
function qe(e) {
|
|
1032
|
+
let t = e.field(W, !1)?.open;
|
|
1033
|
+
if (!t || t.disabled) return [];
|
|
1034
|
+
let n = Ke.get(t.options);
|
|
1035
|
+
return n || Ke.set(t.options, n = t.options.map((e) => e.completion)), n;
|
|
1036
|
+
}
|
|
1037
|
+
export { qe as a, q as c, Ge as i, He as n, ne as o, E as r, ze as s, T as t };
|