@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
|
@@ -1,624 +0,0 @@
|
|
|
1
|
-
import { A as syntaxTree, C as indentNodeProp, m as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, y as foldNodeProp } from "./dist-BFZM0YsR.js";
|
|
2
|
-
import { a as tags, r as styleTags } from "./dist-PeUX4vPq.js";
|
|
3
|
-
import { o as ifNotIn, r as completeFromList } from "./dist-CeMOOqgP.js";
|
|
4
|
-
// node_modules/@codemirror/lang-sql/dist/index.js
|
|
5
|
-
var whitespace = 36;
|
|
6
|
-
var LineComment = 1;
|
|
7
|
-
var BlockComment = 2;
|
|
8
|
-
var String$1 = 3;
|
|
9
|
-
var Number = 4;
|
|
10
|
-
var Bool = 5;
|
|
11
|
-
var Null = 6;
|
|
12
|
-
var ParenL = 7;
|
|
13
|
-
var ParenR = 8;
|
|
14
|
-
var BraceL = 9;
|
|
15
|
-
var BraceR = 10;
|
|
16
|
-
var BracketL = 11;
|
|
17
|
-
var BracketR = 12;
|
|
18
|
-
var Semi = 13;
|
|
19
|
-
var Dot = 14;
|
|
20
|
-
var Operator = 15;
|
|
21
|
-
var Punctuation = 16;
|
|
22
|
-
var SpecialVar = 17;
|
|
23
|
-
var Identifier = 18;
|
|
24
|
-
var QuotedIdentifier = 19;
|
|
25
|
-
var Keyword = 20;
|
|
26
|
-
var Type = 21;
|
|
27
|
-
var Bits = 22;
|
|
28
|
-
var Bytes = 23;
|
|
29
|
-
var Builtin = 24;
|
|
30
|
-
function isAlpha(ch) {
|
|
31
|
-
return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 48 && ch <= 57;
|
|
32
|
-
}
|
|
33
|
-
function isHexDigit(ch) {
|
|
34
|
-
return ch >= 48 && ch <= 57 || ch >= 97 && ch <= 102 || ch >= 65 && ch <= 70;
|
|
35
|
-
}
|
|
36
|
-
function readLiteral(input, endQuote, backslashEscapes) {
|
|
37
|
-
for (let escaped = false;;) {
|
|
38
|
-
if (input.next < 0) return;
|
|
39
|
-
if (input.next == endQuote && !escaped) {
|
|
40
|
-
input.advance();
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
escaped = backslashEscapes && !escaped && input.next == 92;
|
|
44
|
-
input.advance();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function readDoubleDollarLiteral(input, tag) {
|
|
48
|
-
scan: for (;;) {
|
|
49
|
-
if (input.next < 0) return;
|
|
50
|
-
if (input.next == 36) {
|
|
51
|
-
input.advance();
|
|
52
|
-
for (let i = 0; i < tag.length; i++) {
|
|
53
|
-
if (input.next != tag.charCodeAt(i)) continue scan;
|
|
54
|
-
input.advance();
|
|
55
|
-
}
|
|
56
|
-
if (input.next == 36) {
|
|
57
|
-
input.advance();
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
} else input.advance();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function readPLSQLQuotedLiteral(input, openDelim) {
|
|
64
|
-
let matchingDelim = "[{<(".indexOf(String.fromCharCode(openDelim));
|
|
65
|
-
let closeDelim = matchingDelim < 0 ? openDelim : "]}>)".charCodeAt(matchingDelim);
|
|
66
|
-
for (;;) {
|
|
67
|
-
if (input.next < 0) return;
|
|
68
|
-
if (input.next == closeDelim && input.peek(1) == 39) {
|
|
69
|
-
input.advance(2);
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
input.advance();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function readWord(input, result) {
|
|
76
|
-
for (;;) {
|
|
77
|
-
if (input.next != 95 && !isAlpha(input.next)) break;
|
|
78
|
-
if (result != null) result += String.fromCharCode(input.next);
|
|
79
|
-
input.advance();
|
|
80
|
-
}
|
|
81
|
-
return result;
|
|
82
|
-
}
|
|
83
|
-
function readWordOrQuoted(input) {
|
|
84
|
-
if (input.next == 39 || input.next == 34 || input.next == 96) {
|
|
85
|
-
let quote = input.next;
|
|
86
|
-
input.advance();
|
|
87
|
-
readLiteral(input, quote, false);
|
|
88
|
-
} else readWord(input);
|
|
89
|
-
}
|
|
90
|
-
function readBits(input, endQuote) {
|
|
91
|
-
while (input.next == 48 || input.next == 49) input.advance();
|
|
92
|
-
if (endQuote && input.next == endQuote) input.advance();
|
|
93
|
-
}
|
|
94
|
-
function readNumber(input, sawDot) {
|
|
95
|
-
for (;;) {
|
|
96
|
-
if (input.next == 46) {
|
|
97
|
-
if (sawDot) break;
|
|
98
|
-
sawDot = true;
|
|
99
|
-
} else if (input.next < 48 || input.next > 57) break;
|
|
100
|
-
input.advance();
|
|
101
|
-
}
|
|
102
|
-
if (input.next == 69 || input.next == 101) {
|
|
103
|
-
input.advance();
|
|
104
|
-
if (input.next == 43 || input.next == 45) input.advance();
|
|
105
|
-
while (input.next >= 48 && input.next <= 57) input.advance();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
function eol(input) {
|
|
109
|
-
while (!(input.next < 0 || input.next == 10)) input.advance();
|
|
110
|
-
}
|
|
111
|
-
function inString(ch, str) {
|
|
112
|
-
for (let i = 0; i < str.length; i++) if (str.charCodeAt(i) == ch) return true;
|
|
113
|
-
return false;
|
|
114
|
-
}
|
|
115
|
-
var Space = " \r\n";
|
|
116
|
-
function keywords(keywords, types, builtin) {
|
|
117
|
-
let result = Object.create(null);
|
|
118
|
-
result["true"] = result["false"] = Bool;
|
|
119
|
-
result["null"] = result["unknown"] = Null;
|
|
120
|
-
for (let kw of keywords.split(" ")) if (kw) result[kw] = Keyword;
|
|
121
|
-
for (let tp of types.split(" ")) if (tp) result[tp] = Type;
|
|
122
|
-
for (let kw of (builtin || "").split(" ")) if (kw) result[kw] = Builtin;
|
|
123
|
-
return result;
|
|
124
|
-
}
|
|
125
|
-
var defaults = {
|
|
126
|
-
backslashEscapes: false,
|
|
127
|
-
hashComments: false,
|
|
128
|
-
spaceAfterDashes: false,
|
|
129
|
-
slashComments: false,
|
|
130
|
-
doubleQuotedStrings: false,
|
|
131
|
-
doubleDollarQuotedStrings: false,
|
|
132
|
-
unquotedBitLiterals: false,
|
|
133
|
-
treatBitsAsBytes: false,
|
|
134
|
-
charSetCasts: false,
|
|
135
|
-
plsqlQuotingMechanism: false,
|
|
136
|
-
operatorChars: "*+-%<>!=&|~^/",
|
|
137
|
-
specialVar: "?",
|
|
138
|
-
identifierQuotes: "\"",
|
|
139
|
-
caseInsensitiveIdentifiers: false,
|
|
140
|
-
words: /*@__PURE__*/ keywords("absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ", "array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ")
|
|
141
|
-
};
|
|
142
|
-
function dialect(spec, kws, types, builtin) {
|
|
143
|
-
let dialect = {};
|
|
144
|
-
for (let prop in defaults) dialect[prop] = (spec.hasOwnProperty(prop) ? spec : defaults)[prop];
|
|
145
|
-
if (kws) dialect.words = keywords(kws, types || "", builtin);
|
|
146
|
-
return dialect;
|
|
147
|
-
}
|
|
148
|
-
function tokensFor(d) {
|
|
149
|
-
return new ExternalTokenizer((input) => {
|
|
150
|
-
var _a;
|
|
151
|
-
let { next } = input;
|
|
152
|
-
input.advance();
|
|
153
|
-
if (inString(next, Space)) {
|
|
154
|
-
while (inString(input.next, Space)) input.advance();
|
|
155
|
-
input.acceptToken(whitespace);
|
|
156
|
-
} else if (next == 36 && d.doubleDollarQuotedStrings) {
|
|
157
|
-
let tag = readWord(input, "");
|
|
158
|
-
if (input.next == 36) {
|
|
159
|
-
input.advance();
|
|
160
|
-
readDoubleDollarLiteral(input, tag);
|
|
161
|
-
input.acceptToken(String$1);
|
|
162
|
-
}
|
|
163
|
-
} else if (next == 39 || next == 34 && d.doubleQuotedStrings) {
|
|
164
|
-
readLiteral(input, next, d.backslashEscapes);
|
|
165
|
-
input.acceptToken(String$1);
|
|
166
|
-
} else if (next == 35 && d.hashComments || next == 47 && input.next == 47 && d.slashComments) {
|
|
167
|
-
eol(input);
|
|
168
|
-
input.acceptToken(LineComment);
|
|
169
|
-
} else if (next == 45 && input.next == 45 && (!d.spaceAfterDashes || input.peek(1) == 32)) {
|
|
170
|
-
eol(input);
|
|
171
|
-
input.acceptToken(LineComment);
|
|
172
|
-
} else if (next == 47 && input.next == 42) {
|
|
173
|
-
input.advance();
|
|
174
|
-
for (let depth = 1;;) {
|
|
175
|
-
let cur = input.next;
|
|
176
|
-
if (input.next < 0) break;
|
|
177
|
-
input.advance();
|
|
178
|
-
if (cur == 42 && input.next == 47) {
|
|
179
|
-
depth--;
|
|
180
|
-
input.advance();
|
|
181
|
-
if (!depth) break;
|
|
182
|
-
} else if (cur == 47 && input.next == 42) {
|
|
183
|
-
depth++;
|
|
184
|
-
input.advance();
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
input.acceptToken(BlockComment);
|
|
188
|
-
} else if ((next == 101 || next == 69) && input.next == 39) {
|
|
189
|
-
input.advance();
|
|
190
|
-
readLiteral(input, 39, true);
|
|
191
|
-
input.acceptToken(String$1);
|
|
192
|
-
} else if ((next == 110 || next == 78) && input.next == 39 && d.charSetCasts) {
|
|
193
|
-
input.advance();
|
|
194
|
-
readLiteral(input, 39, d.backslashEscapes);
|
|
195
|
-
input.acceptToken(String$1);
|
|
196
|
-
} else if (next == 95 && d.charSetCasts) for (let i = 0;; i++) {
|
|
197
|
-
if (input.next == 39 && i > 1) {
|
|
198
|
-
input.advance();
|
|
199
|
-
readLiteral(input, 39, d.backslashEscapes);
|
|
200
|
-
input.acceptToken(String$1);
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
if (!isAlpha(input.next)) break;
|
|
204
|
-
input.advance();
|
|
205
|
-
}
|
|
206
|
-
else if (d.plsqlQuotingMechanism && (next == 113 || next == 81) && input.next == 39 && input.peek(1) > 0 && !inString(input.peek(1), Space)) {
|
|
207
|
-
let openDelim = input.peek(1);
|
|
208
|
-
input.advance(2);
|
|
209
|
-
readPLSQLQuotedLiteral(input, openDelim);
|
|
210
|
-
input.acceptToken(String$1);
|
|
211
|
-
} else if (inString(next, d.identifierQuotes)) {
|
|
212
|
-
readLiteral(input, next == 91 ? 93 : next, false);
|
|
213
|
-
input.acceptToken(QuotedIdentifier);
|
|
214
|
-
} else if (next == 40) input.acceptToken(ParenL);
|
|
215
|
-
else if (next == 41) input.acceptToken(ParenR);
|
|
216
|
-
else if (next == 123) input.acceptToken(BraceL);
|
|
217
|
-
else if (next == 125) input.acceptToken(BraceR);
|
|
218
|
-
else if (next == 91) input.acceptToken(BracketL);
|
|
219
|
-
else if (next == 93) input.acceptToken(BracketR);
|
|
220
|
-
else if (next == 59) input.acceptToken(Semi);
|
|
221
|
-
else if (d.unquotedBitLiterals && next == 48 && input.next == 98) {
|
|
222
|
-
input.advance();
|
|
223
|
-
readBits(input);
|
|
224
|
-
input.acceptToken(Bits);
|
|
225
|
-
} else if ((next == 98 || next == 66) && (input.next == 39 || input.next == 34)) {
|
|
226
|
-
const quoteStyle = input.next;
|
|
227
|
-
input.advance();
|
|
228
|
-
if (d.treatBitsAsBytes) {
|
|
229
|
-
readLiteral(input, quoteStyle, d.backslashEscapes);
|
|
230
|
-
input.acceptToken(Bytes);
|
|
231
|
-
} else {
|
|
232
|
-
readBits(input, quoteStyle);
|
|
233
|
-
input.acceptToken(Bits);
|
|
234
|
-
}
|
|
235
|
-
} else if (next == 48 && (input.next == 120 || input.next == 88) || (next == 120 || next == 88) && input.next == 39) {
|
|
236
|
-
let quoted = input.next == 39;
|
|
237
|
-
input.advance();
|
|
238
|
-
while (isHexDigit(input.next)) input.advance();
|
|
239
|
-
if (quoted && input.next == 39) input.advance();
|
|
240
|
-
input.acceptToken(Number);
|
|
241
|
-
} else if (next == 46 && input.next >= 48 && input.next <= 57) {
|
|
242
|
-
readNumber(input, true);
|
|
243
|
-
input.acceptToken(Number);
|
|
244
|
-
} else if (next == 46) input.acceptToken(Dot);
|
|
245
|
-
else if (next >= 48 && next <= 57) {
|
|
246
|
-
readNumber(input, false);
|
|
247
|
-
input.acceptToken(Number);
|
|
248
|
-
} else if (inString(next, d.operatorChars)) {
|
|
249
|
-
while (inString(input.next, d.operatorChars)) input.advance();
|
|
250
|
-
input.acceptToken(Operator);
|
|
251
|
-
} else if (inString(next, d.specialVar)) {
|
|
252
|
-
if (input.next == next) input.advance();
|
|
253
|
-
readWordOrQuoted(input);
|
|
254
|
-
input.acceptToken(SpecialVar);
|
|
255
|
-
} else if (next == 58 || next == 44) input.acceptToken(Punctuation);
|
|
256
|
-
else if (isAlpha(next)) {
|
|
257
|
-
let word = readWord(input, String.fromCharCode(next));
|
|
258
|
-
input.acceptToken(input.next == 46 || input.peek(-word.length - 1) == 46 ? Identifier : (_a = d.words[word.toLowerCase()]) !== null && _a !== void 0 ? _a : Identifier);
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
var tokens = /*@__PURE__*/ tokensFor(defaults);
|
|
263
|
-
var parser$1 = /*@__PURE__*/ LRParser.deserialize({
|
|
264
|
-
version: 14,
|
|
265
|
-
states: "%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",
|
|
266
|
-
stateData: ",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",
|
|
267
|
-
goto: "#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",
|
|
268
|
-
nodeNames: "⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",
|
|
269
|
-
maxTerm: 38,
|
|
270
|
-
nodeProps: [[
|
|
271
|
-
"isolate",
|
|
272
|
-
-4,
|
|
273
|
-
1,
|
|
274
|
-
2,
|
|
275
|
-
3,
|
|
276
|
-
19,
|
|
277
|
-
""
|
|
278
|
-
]],
|
|
279
|
-
skippedNodes: [
|
|
280
|
-
0,
|
|
281
|
-
1,
|
|
282
|
-
2
|
|
283
|
-
],
|
|
284
|
-
repeatNodeCount: 3,
|
|
285
|
-
tokenData: "RORO",
|
|
286
|
-
tokenizers: [0, tokens],
|
|
287
|
-
topRules: { "Script": [0, 25] },
|
|
288
|
-
tokenPrec: 0
|
|
289
|
-
});
|
|
290
|
-
function tokenBefore(tree) {
|
|
291
|
-
let cursor = tree.cursor().moveTo(tree.from, -1);
|
|
292
|
-
while (/Comment/.test(cursor.name)) cursor.moveTo(cursor.from, -1);
|
|
293
|
-
return cursor.node;
|
|
294
|
-
}
|
|
295
|
-
function idName(doc, node) {
|
|
296
|
-
let text = doc.sliceString(node.from, node.to);
|
|
297
|
-
let quoted = /^([`'"\[])(.*)([`'"\]])$/.exec(text);
|
|
298
|
-
return quoted ? quoted[2] : text;
|
|
299
|
-
}
|
|
300
|
-
function plainID(node) {
|
|
301
|
-
return node && (node.name == "Identifier" || node.name == "QuotedIdentifier");
|
|
302
|
-
}
|
|
303
|
-
function pathFor(doc, id) {
|
|
304
|
-
if (id.name == "CompositeIdentifier") {
|
|
305
|
-
let path = [];
|
|
306
|
-
for (let ch = id.firstChild; ch; ch = ch.nextSibling) if (plainID(ch)) path.push(idName(doc, ch));
|
|
307
|
-
return path;
|
|
308
|
-
}
|
|
309
|
-
return [idName(doc, id)];
|
|
310
|
-
}
|
|
311
|
-
function parentsFor(doc, node) {
|
|
312
|
-
for (let path = [];;) {
|
|
313
|
-
if (!node || node.name != ".") return path;
|
|
314
|
-
let name = tokenBefore(node);
|
|
315
|
-
if (!plainID(name)) return path;
|
|
316
|
-
path.unshift(idName(doc, name));
|
|
317
|
-
node = tokenBefore(name);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
function sourceContext(state, startPos) {
|
|
321
|
-
let pos = syntaxTree(state).resolveInner(startPos, -1);
|
|
322
|
-
let aliases = getAliases(state.doc, pos);
|
|
323
|
-
if (pos.name == "Identifier" || pos.name == "QuotedIdentifier" || pos.name == "Keyword") return {
|
|
324
|
-
from: pos.from,
|
|
325
|
-
quoted: pos.name == "QuotedIdentifier" ? state.doc.sliceString(pos.from, pos.from + 1) : null,
|
|
326
|
-
parents: parentsFor(state.doc, tokenBefore(pos)),
|
|
327
|
-
aliases
|
|
328
|
-
};
|
|
329
|
-
if (pos.name == ".") return {
|
|
330
|
-
from: startPos,
|
|
331
|
-
quoted: null,
|
|
332
|
-
parents: parentsFor(state.doc, pos),
|
|
333
|
-
aliases
|
|
334
|
-
};
|
|
335
|
-
else return {
|
|
336
|
-
from: startPos,
|
|
337
|
-
quoted: null,
|
|
338
|
-
parents: [],
|
|
339
|
-
empty: true,
|
|
340
|
-
aliases
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
var EndFrom = /*@__PURE__*/ new Set(/*@__PURE__*/ "where group having order union intersect except all distinct limit offset fetch for".split(" "));
|
|
344
|
-
function getAliases(doc, at) {
|
|
345
|
-
let statement;
|
|
346
|
-
for (let parent = at; !statement; parent = parent.parent) {
|
|
347
|
-
if (!parent) return null;
|
|
348
|
-
if (parent.name == "Statement") statement = parent;
|
|
349
|
-
}
|
|
350
|
-
let aliases = null;
|
|
351
|
-
for (let scan = statement.firstChild, sawFrom = false, prevID = null; scan; scan = scan.nextSibling) {
|
|
352
|
-
let kw = scan.name == "Keyword" ? doc.sliceString(scan.from, scan.to).toLowerCase() : null;
|
|
353
|
-
let alias = null;
|
|
354
|
-
if (!sawFrom) sawFrom = kw == "from";
|
|
355
|
-
else if (kw == "as" && prevID && plainID(scan.nextSibling)) alias = idName(doc, scan.nextSibling);
|
|
356
|
-
else if (kw && EndFrom.has(kw)) break;
|
|
357
|
-
else if (prevID && plainID(scan)) alias = idName(doc, scan);
|
|
358
|
-
if (alias) {
|
|
359
|
-
if (!aliases) aliases = Object.create(null);
|
|
360
|
-
aliases[alias] = pathFor(doc, prevID);
|
|
361
|
-
}
|
|
362
|
-
prevID = /Identifier$/.test(scan.name) ? scan : null;
|
|
363
|
-
}
|
|
364
|
-
return aliases;
|
|
365
|
-
}
|
|
366
|
-
function maybeQuoteCompletions(openingQuote, closingQuote, completions) {
|
|
367
|
-
return completions.map((c) => ({
|
|
368
|
-
...c,
|
|
369
|
-
label: c.label[0] == openingQuote ? c.label : openingQuote + c.label + closingQuote,
|
|
370
|
-
apply: void 0
|
|
371
|
-
}));
|
|
372
|
-
}
|
|
373
|
-
var Span = /^\w*$/;
|
|
374
|
-
var QuotedSpan = /^[`'"\[]?\w*[`'"\]]?$/;
|
|
375
|
-
function isSelfTag(namespace) {
|
|
376
|
-
return namespace.self && typeof namespace.self.label == "string";
|
|
377
|
-
}
|
|
378
|
-
var CompletionLevel = class CompletionLevel {
|
|
379
|
-
constructor(idQuote, idCaseInsensitive) {
|
|
380
|
-
this.idQuote = idQuote;
|
|
381
|
-
this.idCaseInsensitive = idCaseInsensitive;
|
|
382
|
-
this.list = [];
|
|
383
|
-
this.children = void 0;
|
|
384
|
-
}
|
|
385
|
-
child(name) {
|
|
386
|
-
let children = this.children || (this.children = Object.create(null));
|
|
387
|
-
let found = children[name];
|
|
388
|
-
if (found) return found;
|
|
389
|
-
if (name && !this.list.some((c) => c.label == name)) this.list.push(nameCompletion(name, "type", this.idQuote, this.idCaseInsensitive));
|
|
390
|
-
return children[name] = new CompletionLevel(this.idQuote, this.idCaseInsensitive);
|
|
391
|
-
}
|
|
392
|
-
maybeChild(name) {
|
|
393
|
-
return this.children ? this.children[name] : null;
|
|
394
|
-
}
|
|
395
|
-
addCompletion(option) {
|
|
396
|
-
let found = this.list.findIndex((o) => o.label == option.label);
|
|
397
|
-
if (found > -1) this.list[found] = option;
|
|
398
|
-
else this.list.push(option);
|
|
399
|
-
}
|
|
400
|
-
addCompletions(completions) {
|
|
401
|
-
for (let option of completions) this.addCompletion(typeof option == "string" ? nameCompletion(option, "property", this.idQuote, this.idCaseInsensitive) : option);
|
|
402
|
-
}
|
|
403
|
-
addNamespace(namespace) {
|
|
404
|
-
if (Array.isArray(namespace)) this.addCompletions(namespace);
|
|
405
|
-
else if (isSelfTag(namespace)) this.addNamespace(namespace.children);
|
|
406
|
-
else this.addNamespaceObject(namespace);
|
|
407
|
-
}
|
|
408
|
-
addNamespaceObject(namespace) {
|
|
409
|
-
for (let name of Object.keys(namespace)) {
|
|
410
|
-
let children = namespace[name], self = null;
|
|
411
|
-
let parts = name.replace(/\\?\./g, (p) => p == "." ? "\0" : p).split("\0");
|
|
412
|
-
let scope = this;
|
|
413
|
-
if (isSelfTag(children)) {
|
|
414
|
-
self = children.self;
|
|
415
|
-
children = children.children;
|
|
416
|
-
}
|
|
417
|
-
for (let i = 0; i < parts.length; i++) {
|
|
418
|
-
if (self && i == parts.length - 1) scope.addCompletion(self);
|
|
419
|
-
scope = scope.child(parts[i].replace(/\\\./g, "."));
|
|
420
|
-
}
|
|
421
|
-
scope.addNamespace(children);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
function nameCompletion(label, type, idQuote, idCaseInsensitive) {
|
|
426
|
-
if (new RegExp("^[a-z_][a-z_\\d]*$", idCaseInsensitive ? "i" : "").test(label)) return {
|
|
427
|
-
label,
|
|
428
|
-
type
|
|
429
|
-
};
|
|
430
|
-
return {
|
|
431
|
-
label,
|
|
432
|
-
type,
|
|
433
|
-
apply: idQuote + label + getClosingQuote(idQuote)
|
|
434
|
-
};
|
|
435
|
-
}
|
|
436
|
-
function getClosingQuote(openingQuote) {
|
|
437
|
-
return openingQuote === "[" ? "]" : openingQuote;
|
|
438
|
-
}
|
|
439
|
-
function completeFromSchema(schema, tables, schemas, defaultTableName, defaultSchemaName, dialect) {
|
|
440
|
-
var _a;
|
|
441
|
-
let top = new CompletionLevel(((_a = dialect === null || dialect === void 0 ? void 0 : dialect.spec.identifierQuotes) === null || _a === void 0 ? void 0 : _a[0]) || "\"", !!(dialect === null || dialect === void 0 ? void 0 : dialect.spec.caseInsensitiveIdentifiers));
|
|
442
|
-
let defaultSchema = defaultSchemaName ? top.child(defaultSchemaName) : null;
|
|
443
|
-
top.addNamespace(schema);
|
|
444
|
-
if (tables) (defaultSchema || top).addCompletions(tables);
|
|
445
|
-
if (schemas) top.addCompletions(schemas);
|
|
446
|
-
if (defaultSchema) top.addCompletions(defaultSchema.list);
|
|
447
|
-
if (defaultTableName) top.addCompletions((defaultSchema || top).child(defaultTableName).list);
|
|
448
|
-
return (context) => {
|
|
449
|
-
let { parents, from, quoted, empty, aliases } = sourceContext(context.state, context.pos);
|
|
450
|
-
if (empty && !context.explicit) return null;
|
|
451
|
-
if (aliases && parents.length == 1) parents = aliases[parents[0]] || parents;
|
|
452
|
-
let level = top;
|
|
453
|
-
for (let name of parents) {
|
|
454
|
-
while (!level.children || !level.children[name]) if (level == top && defaultSchema) level = defaultSchema;
|
|
455
|
-
else if (level == defaultSchema && defaultTableName) level = level.child(defaultTableName);
|
|
456
|
-
else return null;
|
|
457
|
-
let next = level.maybeChild(name);
|
|
458
|
-
if (!next) return null;
|
|
459
|
-
level = next;
|
|
460
|
-
}
|
|
461
|
-
let options = level.list;
|
|
462
|
-
if (level == top && aliases) options = options.concat(Object.keys(aliases).map((name) => ({
|
|
463
|
-
label: name,
|
|
464
|
-
type: "constant"
|
|
465
|
-
})));
|
|
466
|
-
if (quoted) {
|
|
467
|
-
let openingQuote = quoted[0];
|
|
468
|
-
let closingQuote = getClosingQuote(openingQuote);
|
|
469
|
-
return {
|
|
470
|
-
from,
|
|
471
|
-
to: context.state.sliceDoc(context.pos, context.pos + 1) == closingQuote ? context.pos + 1 : void 0,
|
|
472
|
-
options: maybeQuoteCompletions(openingQuote, closingQuote, options),
|
|
473
|
-
validFor: QuotedSpan
|
|
474
|
-
};
|
|
475
|
-
} else return {
|
|
476
|
-
from,
|
|
477
|
-
options,
|
|
478
|
-
validFor: Span
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
}
|
|
482
|
-
function completionType(tokenType) {
|
|
483
|
-
return tokenType == Type ? "type" : tokenType == Keyword ? "keyword" : "variable";
|
|
484
|
-
}
|
|
485
|
-
function completeKeywords(keywords, upperCase, build) {
|
|
486
|
-
let completions = Object.keys(keywords).map((keyword) => build(upperCase ? keyword.toUpperCase() : keyword, completionType(keywords[keyword])));
|
|
487
|
-
return ifNotIn([
|
|
488
|
-
"QuotedIdentifier",
|
|
489
|
-
"String",
|
|
490
|
-
"LineComment",
|
|
491
|
-
"BlockComment",
|
|
492
|
-
"."
|
|
493
|
-
], completeFromList(completions));
|
|
494
|
-
}
|
|
495
|
-
var parser = /*@__PURE__*/ parser$1.configure({ props: [
|
|
496
|
-
/*@__PURE__*/ indentNodeProp.add({ Statement: /*@__PURE__*/ continuedIndent() }),
|
|
497
|
-
/*@__PURE__*/ foldNodeProp.add({
|
|
498
|
-
Statement(tree, state) {
|
|
499
|
-
return {
|
|
500
|
-
from: Math.min(tree.from + 100, state.doc.lineAt(tree.from).to),
|
|
501
|
-
to: tree.to
|
|
502
|
-
};
|
|
503
|
-
},
|
|
504
|
-
BlockComment(tree) {
|
|
505
|
-
return {
|
|
506
|
-
from: tree.from + 2,
|
|
507
|
-
to: tree.to - 2
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
}),
|
|
511
|
-
/*@__PURE__*/ styleTags({
|
|
512
|
-
Keyword: tags.keyword,
|
|
513
|
-
Type: tags.typeName,
|
|
514
|
-
Builtin: /*@__PURE__*/ tags.standard(tags.name),
|
|
515
|
-
Bits: tags.number,
|
|
516
|
-
Bytes: tags.string,
|
|
517
|
-
Bool: tags.bool,
|
|
518
|
-
Null: tags.null,
|
|
519
|
-
Number: tags.number,
|
|
520
|
-
String: tags.string,
|
|
521
|
-
Identifier: tags.name,
|
|
522
|
-
QuotedIdentifier: /*@__PURE__*/ tags.special(tags.string),
|
|
523
|
-
SpecialVar: /*@__PURE__*/ tags.special(tags.name),
|
|
524
|
-
LineComment: tags.lineComment,
|
|
525
|
-
BlockComment: tags.blockComment,
|
|
526
|
-
Operator: tags.operator,
|
|
527
|
-
"Semi Punctuation": tags.punctuation,
|
|
528
|
-
"( )": tags.paren,
|
|
529
|
-
"{ }": tags.brace,
|
|
530
|
-
"[ ]": tags.squareBracket
|
|
531
|
-
})
|
|
532
|
-
] });
|
|
533
|
-
/**
|
|
534
|
-
Represents an SQL dialect.
|
|
535
|
-
*/
|
|
536
|
-
var SQLDialect = class SQLDialect {
|
|
537
|
-
constructor(dialect, language, spec) {
|
|
538
|
-
this.dialect = dialect;
|
|
539
|
-
this.language = language;
|
|
540
|
-
this.spec = spec;
|
|
541
|
-
}
|
|
542
|
-
/**
|
|
543
|
-
Returns the language for this dialect as an extension.
|
|
544
|
-
*/
|
|
545
|
-
get extension() {
|
|
546
|
-
return this.language.extension;
|
|
547
|
-
}
|
|
548
|
-
/**
|
|
549
|
-
Reconfigure the parser used by this dialect. Returns a new
|
|
550
|
-
dialect object.
|
|
551
|
-
*/
|
|
552
|
-
configureLanguage(options, name) {
|
|
553
|
-
return new SQLDialect(this.dialect, this.language.configure(options, name), this.spec);
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
Define a new dialect.
|
|
557
|
-
*/
|
|
558
|
-
static define(spec) {
|
|
559
|
-
let d = dialect(spec, spec.keywords, spec.types, spec.builtin);
|
|
560
|
-
let language = LRLanguage.define({
|
|
561
|
-
name: "sql",
|
|
562
|
-
parser: parser.configure({ tokenizers: [{
|
|
563
|
-
from: tokens,
|
|
564
|
-
to: tokensFor(d)
|
|
565
|
-
}] }),
|
|
566
|
-
languageData: {
|
|
567
|
-
commentTokens: {
|
|
568
|
-
line: "--",
|
|
569
|
-
block: {
|
|
570
|
-
open: "/*",
|
|
571
|
-
close: "*/"
|
|
572
|
-
}
|
|
573
|
-
},
|
|
574
|
-
closeBrackets: { brackets: [
|
|
575
|
-
"(",
|
|
576
|
-
"[",
|
|
577
|
-
"{",
|
|
578
|
-
"'",
|
|
579
|
-
"\"",
|
|
580
|
-
"`"
|
|
581
|
-
] }
|
|
582
|
-
}
|
|
583
|
-
});
|
|
584
|
-
return new SQLDialect(d, language, spec);
|
|
585
|
-
}
|
|
586
|
-
};
|
|
587
|
-
function defaultKeyword(label, type) {
|
|
588
|
-
return {
|
|
589
|
-
label,
|
|
590
|
-
type,
|
|
591
|
-
boost: -1
|
|
592
|
-
};
|
|
593
|
-
}
|
|
594
|
-
/**
|
|
595
|
-
Returns a completion source that provides keyword completion for
|
|
596
|
-
the given SQL dialect.
|
|
597
|
-
*/
|
|
598
|
-
function keywordCompletionSource(dialect, upperCase = false, build) {
|
|
599
|
-
return completeKeywords(dialect.dialect.words, upperCase, build || defaultKeyword);
|
|
600
|
-
}
|
|
601
|
-
/**
|
|
602
|
-
Returns a completion sources that provides schema-based completion
|
|
603
|
-
for the given configuration.
|
|
604
|
-
*/
|
|
605
|
-
function schemaCompletionSource(config) {
|
|
606
|
-
return config.schema ? completeFromSchema(config.schema, config.tables, config.schemas, config.defaultTable, config.defaultSchema, config.dialect || StandardSQL) : () => null;
|
|
607
|
-
}
|
|
608
|
-
function schemaCompletion(config) {
|
|
609
|
-
return config.schema ? (config.dialect || StandardSQL).language.data.of({ autocomplete: schemaCompletionSource(config) }) : [];
|
|
610
|
-
}
|
|
611
|
-
/**
|
|
612
|
-
SQL language support for the given SQL dialect, with keyword
|
|
613
|
-
completion, and, if provided, schema-based completion as extra
|
|
614
|
-
extensions.
|
|
615
|
-
*/
|
|
616
|
-
function sql(config = {}) {
|
|
617
|
-
let lang = config.dialect || StandardSQL;
|
|
618
|
-
return new LanguageSupport(lang.language, [schemaCompletion(config), lang.language.data.of({ autocomplete: keywordCompletionSource(lang, config.upperCaseKeywords, config.keywordCompletion) })]);
|
|
619
|
-
}
|
|
620
|
-
/**
|
|
621
|
-
The standard SQL dialect.
|
|
622
|
-
*/
|
|
623
|
-
var StandardSQL = /*@__PURE__*/ SQLDialect.define({});
|
|
624
|
-
export { sql };
|