@nldd/design-system 0.20.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 +204 -8
- 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-_Eox7ZfO.js → cdn/chunks/icon-BORlalt0.js} +298 -308
- 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/menu/menu-item.d.ts +6 -2
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +12 -1
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.js +1 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +2 -1
- package/dist/components/actions/menu/menu.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/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/lists-and-tables/list-item/list-item.d.ts +7 -0
- 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 +13 -3
- package/dist/components/lists-and-tables/list-item/list-item.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/nldd.min.js +298 -298
- package/dist/types/react.d.ts +3323 -0
- package/dist/types/vue.d.ts +11 -3
- 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 +12 -2
- package/dist/utilities/dev-rules.generated.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/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 -68243
- package/dist/components/decorate-DD7uUxHb.js +0 -51
- package/dist/components/defer-focus-dzorHsCQ.js +0 -176
- package/dist/components/dev-checks-CLB9G43h.js +0 -2711
- 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-8gvQCwCW.js +0 -2305
- package/dist/components/input-modality-D_CY185R.js +0 -48
- package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
- package/dist/components/nl.generated-DzZkOgnP.js +0 -64
- 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-Dzn48SL8.js +0 -153
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
import { i as e, o as t } from "./style-mod-DGMhzWuk.js";
|
|
2
|
+
import { n, r } from "./dist-3C80SZN9.js";
|
|
3
|
+
import { D as i, _ as a, f as o, l as s, o as c, x as l } from "./languages-yKikVFv_.js";
|
|
4
|
+
import { o as u, r as d } from "./dist-CP3G1pSK.js";
|
|
5
|
+
// node_modules/@codemirror/lang-sql/dist/index.js
|
|
6
|
+
var f = 36, p = 1, ee = 2, m = 3, h = 4, g = 5, _ = 6, v = 7, te = 8, ne = 9, re = 10, ie = 11, ae = 12, oe = 13, se = 14, y = 15, b = 16, x = 17, S = 18, C = 19, w = 20, T = 21, E = 22, D = 23, ce = 24;
|
|
7
|
+
function O(e) {
|
|
8
|
+
return e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57;
|
|
9
|
+
}
|
|
10
|
+
function le(e) {
|
|
11
|
+
return e >= 48 && e <= 57 || e >= 97 && e <= 102 || e >= 65 && e <= 70;
|
|
12
|
+
}
|
|
13
|
+
function k(e, t, n) {
|
|
14
|
+
for (let r = !1;;) {
|
|
15
|
+
if (e.next < 0) return;
|
|
16
|
+
if (e.next == t && !r) {
|
|
17
|
+
e.advance();
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
r = n && !r && e.next == 92, e.advance();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function A(e, t) {
|
|
24
|
+
scan: for (;;) {
|
|
25
|
+
if (e.next < 0) return;
|
|
26
|
+
if (e.next == 36) {
|
|
27
|
+
e.advance();
|
|
28
|
+
for (let n = 0; n < t.length; n++) {
|
|
29
|
+
if (e.next != t.charCodeAt(n)) continue scan;
|
|
30
|
+
e.advance();
|
|
31
|
+
}
|
|
32
|
+
if (e.next == 36) {
|
|
33
|
+
e.advance();
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
} else e.advance();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function j(e, t) {
|
|
40
|
+
let n = "[{<(".indexOf(String.fromCharCode(t)), r = n < 0 ? t : "]}>)".charCodeAt(n);
|
|
41
|
+
for (;;) {
|
|
42
|
+
if (e.next < 0) return;
|
|
43
|
+
if (e.next == r && e.peek(1) == 39) {
|
|
44
|
+
e.advance(2);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
e.advance();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function M(e, t) {
|
|
51
|
+
for (; e.next == 95 || O(e.next);) t != null && (t += String.fromCharCode(e.next)), e.advance();
|
|
52
|
+
return t;
|
|
53
|
+
}
|
|
54
|
+
function N(e) {
|
|
55
|
+
if (e.next == 39 || e.next == 34 || e.next == 96) {
|
|
56
|
+
let t = e.next;
|
|
57
|
+
e.advance(), k(e, t, !1);
|
|
58
|
+
} else M(e);
|
|
59
|
+
}
|
|
60
|
+
function P(e, t) {
|
|
61
|
+
for (; e.next == 48 || e.next == 49;) e.advance();
|
|
62
|
+
t && e.next == t && e.advance();
|
|
63
|
+
}
|
|
64
|
+
function F(e, t) {
|
|
65
|
+
for (;;) {
|
|
66
|
+
if (e.next == 46) {
|
|
67
|
+
if (t) break;
|
|
68
|
+
t = !0;
|
|
69
|
+
} else if (e.next < 48 || e.next > 57) break;
|
|
70
|
+
e.advance();
|
|
71
|
+
}
|
|
72
|
+
if (e.next == 69 || e.next == 101) for (e.advance(), (e.next == 43 || e.next == 45) && e.advance(); e.next >= 48 && e.next <= 57;) e.advance();
|
|
73
|
+
}
|
|
74
|
+
function I(e) {
|
|
75
|
+
for (; !(e.next < 0 || e.next == 10);) e.advance();
|
|
76
|
+
}
|
|
77
|
+
function L(e, t) {
|
|
78
|
+
for (let n = 0; n < t.length; n++) if (t.charCodeAt(n) == e) return !0;
|
|
79
|
+
return !1;
|
|
80
|
+
}
|
|
81
|
+
var R = " \r\n";
|
|
82
|
+
function z(e, t, n) {
|
|
83
|
+
let r = Object.create(null);
|
|
84
|
+
r.true = r.false = g, r.null = r.unknown = _;
|
|
85
|
+
for (let t of e.split(" ")) t && (r[t] = w);
|
|
86
|
+
for (let e of t.split(" ")) e && (r[e] = T);
|
|
87
|
+
for (let e of (n || "").split(" ")) e && (r[e] = ce);
|
|
88
|
+
return r;
|
|
89
|
+
}
|
|
90
|
+
var B = {
|
|
91
|
+
backslashEscapes: !1,
|
|
92
|
+
hashComments: !1,
|
|
93
|
+
spaceAfterDashes: !1,
|
|
94
|
+
slashComments: !1,
|
|
95
|
+
doubleQuotedStrings: !1,
|
|
96
|
+
doubleDollarQuotedStrings: !1,
|
|
97
|
+
unquotedBitLiterals: !1,
|
|
98
|
+
treatBitsAsBytes: !1,
|
|
99
|
+
charSetCasts: !1,
|
|
100
|
+
plsqlQuotingMechanism: !1,
|
|
101
|
+
operatorChars: "*+-%<>!=&|~^/",
|
|
102
|
+
specialVar: "?",
|
|
103
|
+
identifierQuotes: "\"",
|
|
104
|
+
caseInsensitiveIdentifiers: !1,
|
|
105
|
+
words: /*@__PURE__*/ z("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 ")
|
|
106
|
+
};
|
|
107
|
+
function V(e, t, n, r) {
|
|
108
|
+
let i = {};
|
|
109
|
+
for (let t in B) i[t] = (e.hasOwnProperty(t) ? e : B)[t];
|
|
110
|
+
return t && (i.words = z(t, n || "", r)), i;
|
|
111
|
+
}
|
|
112
|
+
function H(e) {
|
|
113
|
+
return new n((t) => {
|
|
114
|
+
let { next: n } = t;
|
|
115
|
+
if (t.advance(), L(n, R)) {
|
|
116
|
+
for (; L(t.next, R);) t.advance();
|
|
117
|
+
t.acceptToken(f);
|
|
118
|
+
} else if (n == 36 && e.doubleDollarQuotedStrings) {
|
|
119
|
+
let e = M(t, "");
|
|
120
|
+
t.next == 36 && (t.advance(), A(t, e), t.acceptToken(m));
|
|
121
|
+
} else if (n == 39 || n == 34 && e.doubleQuotedStrings) k(t, n, e.backslashEscapes), t.acceptToken(m);
|
|
122
|
+
else if (n == 35 && e.hashComments || n == 47 && t.next == 47 && e.slashComments) I(t), t.acceptToken(p);
|
|
123
|
+
else if (n == 45 && t.next == 45 && (!e.spaceAfterDashes || t.peek(1) == 32)) I(t), t.acceptToken(p);
|
|
124
|
+
else if (n == 47 && t.next == 42) {
|
|
125
|
+
t.advance();
|
|
126
|
+
for (let e = 1;;) {
|
|
127
|
+
let n = t.next;
|
|
128
|
+
if (t.next < 0) break;
|
|
129
|
+
if (t.advance(), n == 42 && t.next == 47) {
|
|
130
|
+
if (e--, t.advance(), !e) break;
|
|
131
|
+
} else n == 47 && t.next == 42 && (e++, t.advance());
|
|
132
|
+
}
|
|
133
|
+
t.acceptToken(ee);
|
|
134
|
+
} else if ((n == 101 || n == 69) && t.next == 39) t.advance(), k(t, 39, !0), t.acceptToken(m);
|
|
135
|
+
else if ((n == 110 || n == 78) && t.next == 39 && e.charSetCasts) t.advance(), k(t, 39, e.backslashEscapes), t.acceptToken(m);
|
|
136
|
+
else if (n == 95 && e.charSetCasts) for (let n = 0;; n++) {
|
|
137
|
+
if (t.next == 39 && n > 1) {
|
|
138
|
+
t.advance(), k(t, 39, e.backslashEscapes), t.acceptToken(m);
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
if (!O(t.next)) break;
|
|
142
|
+
t.advance();
|
|
143
|
+
}
|
|
144
|
+
else if (e.plsqlQuotingMechanism && (n == 113 || n == 81) && t.next == 39 && t.peek(1) > 0 && !L(t.peek(1), R)) {
|
|
145
|
+
let e = t.peek(1);
|
|
146
|
+
t.advance(2), j(t, e), t.acceptToken(m);
|
|
147
|
+
} else if (L(n, e.identifierQuotes)) k(t, n == 91 ? 93 : n, !1), t.acceptToken(C);
|
|
148
|
+
else if (n == 40) t.acceptToken(v);
|
|
149
|
+
else if (n == 41) t.acceptToken(te);
|
|
150
|
+
else if (n == 123) t.acceptToken(ne);
|
|
151
|
+
else if (n == 125) t.acceptToken(re);
|
|
152
|
+
else if (n == 91) t.acceptToken(ie);
|
|
153
|
+
else if (n == 93) t.acceptToken(ae);
|
|
154
|
+
else if (n == 59) t.acceptToken(oe);
|
|
155
|
+
else if (e.unquotedBitLiterals && n == 48 && t.next == 98) t.advance(), P(t), t.acceptToken(E);
|
|
156
|
+
else if ((n == 98 || n == 66) && (t.next == 39 || t.next == 34)) {
|
|
157
|
+
let n = t.next;
|
|
158
|
+
t.advance(), e.treatBitsAsBytes ? (k(t, n, e.backslashEscapes), t.acceptToken(D)) : (P(t, n), t.acceptToken(E));
|
|
159
|
+
} else if (n == 48 && (t.next == 120 || t.next == 88) || (n == 120 || n == 88) && t.next == 39) {
|
|
160
|
+
let e = t.next == 39;
|
|
161
|
+
for (t.advance(); le(t.next);) t.advance();
|
|
162
|
+
e && t.next == 39 && t.advance(), t.acceptToken(h);
|
|
163
|
+
} else if (n == 46 && t.next >= 48 && t.next <= 57) F(t, !0), t.acceptToken(h);
|
|
164
|
+
else if (n == 46) t.acceptToken(se);
|
|
165
|
+
else if (n >= 48 && n <= 57) F(t, !1), t.acceptToken(h);
|
|
166
|
+
else if (L(n, e.operatorChars)) {
|
|
167
|
+
for (; L(t.next, e.operatorChars);) t.advance();
|
|
168
|
+
t.acceptToken(y);
|
|
169
|
+
} else if (L(n, e.specialVar)) t.next == n && t.advance(), N(t), t.acceptToken(x);
|
|
170
|
+
else if (n == 58 || n == 44) t.acceptToken(b);
|
|
171
|
+
else if (O(n)) {
|
|
172
|
+
let r = M(t, String.fromCharCode(n));
|
|
173
|
+
t.acceptToken(t.next == 46 || t.peek(-r.length - 1) == 46 ? S : e.words[r.toLowerCase()] ?? S);
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
var U = /*@__PURE__*/ H(B), W = /*@__PURE__*/ r.deserialize({
|
|
178
|
+
version: 14,
|
|
179
|
+
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",
|
|
180
|
+
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",
|
|
181
|
+
goto: "#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",
|
|
182
|
+
nodeNames: "⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",
|
|
183
|
+
maxTerm: 38,
|
|
184
|
+
nodeProps: [[
|
|
185
|
+
"isolate",
|
|
186
|
+
-4,
|
|
187
|
+
1,
|
|
188
|
+
2,
|
|
189
|
+
3,
|
|
190
|
+
19,
|
|
191
|
+
""
|
|
192
|
+
]],
|
|
193
|
+
skippedNodes: [
|
|
194
|
+
0,
|
|
195
|
+
1,
|
|
196
|
+
2
|
|
197
|
+
],
|
|
198
|
+
repeatNodeCount: 3,
|
|
199
|
+
tokenData: "RORO",
|
|
200
|
+
tokenizers: [0, U],
|
|
201
|
+
topRules: { Script: [0, 25] },
|
|
202
|
+
tokenPrec: 0
|
|
203
|
+
});
|
|
204
|
+
function G(e) {
|
|
205
|
+
let t = e.cursor().moveTo(e.from, -1);
|
|
206
|
+
for (; /Comment/.test(t.name);) t.moveTo(t.from, -1);
|
|
207
|
+
return t.node;
|
|
208
|
+
}
|
|
209
|
+
function K(e, t) {
|
|
210
|
+
let n = e.sliceString(t.from, t.to), r = /^([`'"\[])(.*)([`'"\]])$/.exec(n);
|
|
211
|
+
return r ? r[2] : n;
|
|
212
|
+
}
|
|
213
|
+
function q(e) {
|
|
214
|
+
return e && (e.name == "Identifier" || e.name == "QuotedIdentifier");
|
|
215
|
+
}
|
|
216
|
+
function ue(e, t) {
|
|
217
|
+
if (t.name == "CompositeIdentifier") {
|
|
218
|
+
let n = [];
|
|
219
|
+
for (let r = t.firstChild; r; r = r.nextSibling) q(r) && n.push(K(e, r));
|
|
220
|
+
return n;
|
|
221
|
+
}
|
|
222
|
+
return [K(e, t)];
|
|
223
|
+
}
|
|
224
|
+
function J(e, t) {
|
|
225
|
+
for (let n = [];;) {
|
|
226
|
+
if (!t || t.name != ".") return n;
|
|
227
|
+
let r = G(t);
|
|
228
|
+
if (!q(r)) return n;
|
|
229
|
+
n.unshift(K(e, r)), t = G(r);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
function de(e, t) {
|
|
233
|
+
let n = i(e).resolveInner(t, -1), r = pe(e.doc, n);
|
|
234
|
+
return n.name == "Identifier" || n.name == "QuotedIdentifier" || n.name == "Keyword" ? {
|
|
235
|
+
from: n.from,
|
|
236
|
+
quoted: n.name == "QuotedIdentifier" ? e.doc.sliceString(n.from, n.from + 1) : null,
|
|
237
|
+
parents: J(e.doc, G(n)),
|
|
238
|
+
aliases: r
|
|
239
|
+
} : n.name == "." ? {
|
|
240
|
+
from: t,
|
|
241
|
+
quoted: null,
|
|
242
|
+
parents: J(e.doc, n),
|
|
243
|
+
aliases: r
|
|
244
|
+
} : {
|
|
245
|
+
from: t,
|
|
246
|
+
quoted: null,
|
|
247
|
+
parents: [],
|
|
248
|
+
empty: !0,
|
|
249
|
+
aliases: r
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
var fe = /*@__PURE__*/ new Set(/*@__PURE__*/ "where group having order union intersect except all distinct limit offset fetch for".split(" "));
|
|
253
|
+
function pe(e, t) {
|
|
254
|
+
let n;
|
|
255
|
+
for (let e = t; !n; e = e.parent) {
|
|
256
|
+
if (!e) return null;
|
|
257
|
+
e.name == "Statement" && (n = e);
|
|
258
|
+
}
|
|
259
|
+
let r = null;
|
|
260
|
+
for (let t = n.firstChild, i = !1, a = null; t; t = t.nextSibling) {
|
|
261
|
+
let n = t.name == "Keyword" ? e.sliceString(t.from, t.to).toLowerCase() : null, o = null;
|
|
262
|
+
if (!i) i = n == "from";
|
|
263
|
+
else if (n == "as" && a && q(t.nextSibling)) o = K(e, t.nextSibling);
|
|
264
|
+
else if (n && fe.has(n)) break;
|
|
265
|
+
else a && q(t) && (o = K(e, t));
|
|
266
|
+
o && (r || (r = Object.create(null)), r[o] = ue(e, a)), a = /Identifier$/.test(t.name) ? t : null;
|
|
267
|
+
}
|
|
268
|
+
return r;
|
|
269
|
+
}
|
|
270
|
+
function me(e, t, n) {
|
|
271
|
+
return n.map((n) => ({
|
|
272
|
+
...n,
|
|
273
|
+
label: n.label[0] == e ? n.label : e + n.label + t,
|
|
274
|
+
apply: void 0
|
|
275
|
+
}));
|
|
276
|
+
}
|
|
277
|
+
var he = /^\w*$/, ge = /^[`'"\[]?\w*[`'"\]]?$/;
|
|
278
|
+
function Y(e) {
|
|
279
|
+
return e.self && typeof e.self.label == "string";
|
|
280
|
+
}
|
|
281
|
+
var _e = class e {
|
|
282
|
+
constructor(e, t) {
|
|
283
|
+
this.idQuote = e, this.idCaseInsensitive = t, this.list = [], this.children = void 0;
|
|
284
|
+
}
|
|
285
|
+
child(t) {
|
|
286
|
+
let n = this.children || (this.children = Object.create(null));
|
|
287
|
+
return n[t] || (t && !this.list.some((e) => e.label == t) && this.list.push(X(t, "type", this.idQuote, this.idCaseInsensitive)), n[t] = new e(this.idQuote, this.idCaseInsensitive));
|
|
288
|
+
}
|
|
289
|
+
maybeChild(e) {
|
|
290
|
+
return this.children ? this.children[e] : null;
|
|
291
|
+
}
|
|
292
|
+
addCompletion(e) {
|
|
293
|
+
let t = this.list.findIndex((t) => t.label == e.label);
|
|
294
|
+
t > -1 ? this.list[t] = e : this.list.push(e);
|
|
295
|
+
}
|
|
296
|
+
addCompletions(e) {
|
|
297
|
+
for (let t of e) this.addCompletion(typeof t == "string" ? X(t, "property", this.idQuote, this.idCaseInsensitive) : t);
|
|
298
|
+
}
|
|
299
|
+
addNamespace(e) {
|
|
300
|
+
Array.isArray(e) ? this.addCompletions(e) : Y(e) ? this.addNamespace(e.children) : this.addNamespaceObject(e);
|
|
301
|
+
}
|
|
302
|
+
addNamespaceObject(e) {
|
|
303
|
+
for (let t of Object.keys(e)) {
|
|
304
|
+
let n = e[t], r = null, i = t.replace(/\\?\./g, (e) => e == "." ? "\0" : e).split("\0"), a = this;
|
|
305
|
+
Y(n) && (r = n.self, n = n.children);
|
|
306
|
+
for (let e = 0; e < i.length; e++) r && e == i.length - 1 && a.addCompletion(r), a = a.child(i[e].replace(/\\\./g, "."));
|
|
307
|
+
a.addNamespace(n);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
function X(e, t, n, r) {
|
|
312
|
+
return RegExp("^[a-z_][a-z_\\d]*$", r ? "i" : "").test(e) ? {
|
|
313
|
+
label: e,
|
|
314
|
+
type: t
|
|
315
|
+
} : {
|
|
316
|
+
label: e,
|
|
317
|
+
type: t,
|
|
318
|
+
apply: n + e + Z(n)
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
function Z(e) {
|
|
322
|
+
return e === "[" ? "]" : e;
|
|
323
|
+
}
|
|
324
|
+
function ve(e, t, n, r, i, a) {
|
|
325
|
+
let o = new _e(a?.spec.identifierQuotes?.[0] || "\"", !!a?.spec.caseInsensitiveIdentifiers), s = i ? o.child(i) : null;
|
|
326
|
+
return o.addNamespace(e), t && (s || o).addCompletions(t), n && o.addCompletions(n), s && o.addCompletions(s.list), r && o.addCompletions((s || o).child(r).list), (e) => {
|
|
327
|
+
let { parents: t, from: n, quoted: i, empty: a, aliases: c } = de(e.state, e.pos);
|
|
328
|
+
if (a && !e.explicit) return null;
|
|
329
|
+
c && t.length == 1 && (t = c[t[0]] || t);
|
|
330
|
+
let l = o;
|
|
331
|
+
for (let e of t) {
|
|
332
|
+
for (; !l.children || !l.children[e];) if (l == o && s) l = s;
|
|
333
|
+
else if (l == s && r) l = l.child(r);
|
|
334
|
+
else return null;
|
|
335
|
+
let t = l.maybeChild(e);
|
|
336
|
+
if (!t) return null;
|
|
337
|
+
l = t;
|
|
338
|
+
}
|
|
339
|
+
let u = l.list;
|
|
340
|
+
if (l == o && c && (u = u.concat(Object.keys(c).map((e) => ({
|
|
341
|
+
label: e,
|
|
342
|
+
type: "constant"
|
|
343
|
+
})))), i) {
|
|
344
|
+
let t = i[0], r = Z(t);
|
|
345
|
+
return {
|
|
346
|
+
from: n,
|
|
347
|
+
to: e.state.sliceDoc(e.pos, e.pos + 1) == r ? e.pos + 1 : void 0,
|
|
348
|
+
options: me(t, r, u),
|
|
349
|
+
validFor: ge
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
return {
|
|
353
|
+
from: n,
|
|
354
|
+
options: u,
|
|
355
|
+
validFor: he
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
function ye(e) {
|
|
360
|
+
return e == T ? "type" : e == w ? "keyword" : "variable";
|
|
361
|
+
}
|
|
362
|
+
function be(e, t, n) {
|
|
363
|
+
let r = Object.keys(e).map((r) => n(t ? r.toUpperCase() : r, ye(e[r])));
|
|
364
|
+
return u([
|
|
365
|
+
"QuotedIdentifier",
|
|
366
|
+
"String",
|
|
367
|
+
"LineComment",
|
|
368
|
+
"BlockComment",
|
|
369
|
+
"."
|
|
370
|
+
], d(r));
|
|
371
|
+
}
|
|
372
|
+
var Q = /*@__PURE__*/ W.configure({ props: [
|
|
373
|
+
/*@__PURE__*/ l.add({ Statement: /*@__PURE__*/ o() }),
|
|
374
|
+
/*@__PURE__*/ a.add({
|
|
375
|
+
Statement(e, t) {
|
|
376
|
+
return {
|
|
377
|
+
from: Math.min(e.from + 100, t.doc.lineAt(e.from).to),
|
|
378
|
+
to: e.to
|
|
379
|
+
};
|
|
380
|
+
},
|
|
381
|
+
BlockComment(e) {
|
|
382
|
+
return {
|
|
383
|
+
from: e.from + 2,
|
|
384
|
+
to: e.to - 2
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
}),
|
|
388
|
+
/*@__PURE__*/ e({
|
|
389
|
+
Keyword: t.keyword,
|
|
390
|
+
Type: t.typeName,
|
|
391
|
+
Builtin: /*@__PURE__*/ t.standard(t.name),
|
|
392
|
+
Bits: t.number,
|
|
393
|
+
Bytes: t.string,
|
|
394
|
+
Bool: t.bool,
|
|
395
|
+
Null: t.null,
|
|
396
|
+
Number: t.number,
|
|
397
|
+
String: t.string,
|
|
398
|
+
Identifier: t.name,
|
|
399
|
+
QuotedIdentifier: /*@__PURE__*/ t.special(t.string),
|
|
400
|
+
SpecialVar: /*@__PURE__*/ t.special(t.name),
|
|
401
|
+
LineComment: t.lineComment,
|
|
402
|
+
BlockComment: t.blockComment,
|
|
403
|
+
Operator: t.operator,
|
|
404
|
+
"Semi Punctuation": t.punctuation,
|
|
405
|
+
"( )": t.paren,
|
|
406
|
+
"{ }": t.brace,
|
|
407
|
+
"[ ]": t.squareBracket
|
|
408
|
+
})
|
|
409
|
+
] }), xe = class e {
|
|
410
|
+
constructor(e, t, n) {
|
|
411
|
+
this.dialect = e, this.language = t, this.spec = n;
|
|
412
|
+
}
|
|
413
|
+
get extension() {
|
|
414
|
+
return this.language.extension;
|
|
415
|
+
}
|
|
416
|
+
configureLanguage(t, n) {
|
|
417
|
+
return new e(this.dialect, this.language.configure(t, n), this.spec);
|
|
418
|
+
}
|
|
419
|
+
static define(t) {
|
|
420
|
+
let n = V(t, t.keywords, t.types, t.builtin), r = c.define({
|
|
421
|
+
name: "sql",
|
|
422
|
+
parser: Q.configure({ tokenizers: [{
|
|
423
|
+
from: U,
|
|
424
|
+
to: H(n)
|
|
425
|
+
}] }),
|
|
426
|
+
languageData: {
|
|
427
|
+
commentTokens: {
|
|
428
|
+
line: "--",
|
|
429
|
+
block: {
|
|
430
|
+
open: "/*",
|
|
431
|
+
close: "*/"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
closeBrackets: { brackets: [
|
|
435
|
+
"(",
|
|
436
|
+
"[",
|
|
437
|
+
"{",
|
|
438
|
+
"'",
|
|
439
|
+
"\"",
|
|
440
|
+
"`"
|
|
441
|
+
] }
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
return new e(n, r, t);
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
function Se(e, t) {
|
|
448
|
+
return {
|
|
449
|
+
label: e,
|
|
450
|
+
type: t,
|
|
451
|
+
boost: -1
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
function Ce(e, t = !1, n) {
|
|
455
|
+
return be(e.dialect.words, t, n || Se);
|
|
456
|
+
}
|
|
457
|
+
function we(e) {
|
|
458
|
+
return e.schema ? ve(e.schema, e.tables, e.schemas, e.defaultTable, e.defaultSchema, e.dialect || $) : () => null;
|
|
459
|
+
}
|
|
460
|
+
function Te(e) {
|
|
461
|
+
return e.schema ? (e.dialect || $).language.data.of({ autocomplete: we(e) }) : [];
|
|
462
|
+
}
|
|
463
|
+
function Ee(e = {}) {
|
|
464
|
+
let t = e.dialect || $;
|
|
465
|
+
return new s(t.language, [Te(e), t.language.data.of({ autocomplete: Ce(t, e.upperCaseKeywords, e.keywordCompletion) })]);
|
|
466
|
+
}
|
|
467
|
+
var $ = /*@__PURE__*/ xe.define({});
|
|
468
|
+
export { Ee as sql };
|