@arcgis/coding-components 4.31.0-next.0 → 4.31.0-next.10
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/README.md +22 -3
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ar.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bg.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bs.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ca.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.cs.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.da.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.de.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.el.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.es.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.et.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fi.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fr.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.he.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hr.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.id.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.it.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ko.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nb.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nl.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pl.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-BR.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-PT.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ru.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sk.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sl.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sr.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sv.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.th.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.tr.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.uk.json +5 -5
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.vi.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-CN.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-HK.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-TW.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ca.json +2 -2
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.de.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.he.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ca.json +1 -1
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.it.json +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +13 -13
- package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +11 -0
- package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ca.json → language-api-panel/t9n/language-api-panel.t9n.ca.json} +1 -1
- package/dist/arcgis-coding-components/assets/sql-expression-editor/api/sql-expression-api.t9n.en.json +735 -0
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/p-025fda85.js +6 -0
- package/dist/arcgis-coding-components/{p-a333eca1.js → p-02cae55d.js} +3 -3
- package/dist/arcgis-coding-components/p-193ac44f.js +6 -0
- package/dist/arcgis-coding-components/p-22253750.js +7 -0
- package/dist/arcgis-coding-components/p-4fc79a07.entry.js +6 -0
- package/dist/arcgis-coding-components/p-50484a4f.js +6 -0
- package/dist/arcgis-coding-components/p-6e28fd70.js +6 -0
- package/dist/arcgis-coding-components/p-7164c348.js +6 -0
- package/dist/arcgis-coding-components/p-767b17ee.entry.js +6 -0
- package/dist/arcgis-coding-components/p-790067b1.js +68 -0
- package/dist/arcgis-coding-components/{p-b0f66fd8.js → p-8196fa73.js} +2 -2
- package/dist/arcgis-coding-components/{p-f32a81b3.js → p-8cf09bcc.js} +1 -1
- package/dist/arcgis-coding-components/{p-d34c7a85.js → p-923858b5.js} +2 -2
- package/dist/arcgis-coding-components/{p-25960980.js → p-960aa9dc.js} +2 -2
- package/dist/arcgis-coding-components/p-9956a574.js +6 -0
- package/dist/arcgis-coding-components/{p-73af647c.js → p-ab78d6c4.js} +3 -3
- package/dist/arcgis-coding-components/{p-bd97ed67.js → p-ad75160d.js} +3 -3
- package/dist/arcgis-coding-components/{p-4b079737.js → p-da9431ba.js} +2 -2
- package/dist/arcgis-coding-components/p-f452d4b8.entry.js +6 -0
- package/dist/cjs/app-globals-bade840e.js +10 -0
- package/dist/cjs/arcade-defaults-8b8d6c07.js +116 -0
- package/dist/cjs/arcade-language-features-747fb1da.js +274 -0
- package/dist/cjs/arcade-mode-dce44622.js +336 -0
- package/dist/cjs/{arcgis-arcade-api_6.cjs.entry.js → arcgis-arcade-editor_6.cjs.entry.js} +3823 -5071
- package/dist/cjs/arcgis-coding-components.cjs.js +14 -12
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +81 -0
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +80 -0
- package/dist/cjs/{css-c5819912.js → css-077ba0c5.js} +1 -1
- package/dist/cjs/{cssMode-555a44d1.js → cssMode-7f2030db.js} +4 -4
- package/dist/cjs/{html-2bff0c65.js → html-e3a243e9.js} +4 -4
- package/dist/cjs/{htmlMode-77c4a499.js → htmlMode-c273d6dc.js} +4 -4
- package/dist/cjs/index-37a86ff4.js +1311 -0
- package/dist/cjs/index.cjs.js +4 -3
- package/dist/cjs/{javascript-70a512ed.js → javascript-7a33cca7.js} +4 -4
- package/dist/cjs/{jsonMode-0a74131c.js → jsonMode-6b4e0850.js} +4 -4
- package/dist/cjs/{arcade-defaults-fa428ea6.js → language-defaults-base-b32cb091.js} +203 -191
- package/dist/cjs/loader.cjs.js +6 -4
- package/dist/cjs/sql-expr-defaults-8a5834f3.js +1280 -0
- package/dist/cjs/sql-expr-mode-a72a1f92.js +21838 -0
- package/dist/cjs/{tsMode-8cb776f7.js → tsMode-c2edcd57.js} +5 -5
- package/dist/cjs/{typescript-2695cf9d.js → typescript-c50c5516.js} +4 -4
- package/dist/components/arcade-defaults.js +46 -1536
- package/dist/components/arcade-language-features.js +271 -0
- package/dist/components/arcade-mode.js +8 -268
- package/dist/components/arcade-results.js +10 -7
- package/dist/components/arcade-suggestions.js +11 -8
- package/dist/components/arcade-variables.js +10 -7
- package/dist/components/arcgis-arcade-editor.js +52 -50
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-language-api-panel.d.ts +11 -0
- package/dist/components/arcgis-language-api-panel.js +11 -0
- package/dist/components/arcgis-sql-expression-editor.d.ts +11 -0
- package/dist/components/arcgis-sql-expression-editor.js +120 -0
- package/dist/components/arcgis-sql-expression-fields.d.ts +11 -0
- package/dist/components/arcgis-sql-expression-fields.js +11 -0
- package/dist/components/chunk-3IUJHIAA.js +1154 -0
- package/dist/components/code-editor.js +190 -18
- package/dist/components/fields.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +40 -27
- package/dist/components/{arcade-api.js → language-api-panel.js} +30 -57
- package/dist/components/language-defaults-base.js +1535 -0
- package/dist/components/markdown.js +7 -19
- package/dist/components/sql-expr-defaults.js +131 -0
- package/dist/components/sql-expr-mode.js +21836 -0
- package/dist/components/sql-expression-fields.js +102 -0
- package/dist/components/useT9n.js +48 -9
- package/dist/components/utilities.js +1 -1
- package/dist/esm/app-globals-ed47e16d.js +8 -0
- package/dist/esm/arcade-defaults-562fe19b.js +111 -0
- package/dist/esm/arcade-language-features-8edb3527.js +269 -0
- package/dist/esm/{arcade-mode-f534f6f8.js → arcade-mode-ad036f46.js} +8 -267
- package/dist/esm/{arcgis-arcade-api_6.entry.js → arcgis-arcade-editor_6.entry.js} +3794 -5042
- package/dist/esm/arcgis-coding-components.js +15 -13
- package/dist/esm/arcgis-sql-expression-editor.entry.js +77 -0
- package/dist/esm/arcgis-sql-expression-fields.entry.js +76 -0
- package/dist/esm/{css-34fa13c1.js → css-810518f1.js} +1 -1
- package/dist/esm/{cssMode-8758c994.js → cssMode-a7208024.js} +3 -3
- package/dist/esm/{html-c2757f30.js → html-e187d7d8.js} +3 -3
- package/dist/esm/{htmlMode-64bfdd08.js → htmlMode-06b7bae2.js} +3 -3
- package/dist/esm/index-3743d31f.js +1280 -0
- package/dist/esm/index.js +4 -3
- package/dist/esm/{javascript-7cb6a2cd.js → javascript-04a3f866.js} +4 -4
- package/dist/esm/{jsonMode-728cfcab.js → jsonMode-ee8bb2ea.js} +3 -3
- package/dist/esm/{arcade-defaults-ef553659.js → language-defaults-base-52a397f5.js} +197 -188
- package/dist/esm/loader.js +7 -5
- package/dist/esm/sql-expr-defaults-f7c2d5ef.js +1274 -0
- package/dist/esm/sql-expr-mode-433b4a39.js +21835 -0
- package/dist/esm/{tsMode-f3c09a15.js → tsMode-c80c462e.js} +3 -3
- package/dist/esm/{typescript-a359e263.js → typescript-a9b8caa7.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +45 -10
- package/dist/types/components/arcade-results/arcade-results.d.ts +43 -1
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +22 -1
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +28 -1
- package/dist/types/components/code-editor/code-editor.d.ts +16 -5
- package/dist/types/components/language-api-panel/language-api-panel.d.ts +73 -0
- package/dist/types/components/sql-expression-editor/sql-expression-editor.d.ts +24 -0
- package/dist/types/components/sql-expression-fields/sql-expression-fields.d.ts +32 -0
- package/dist/types/components.d.ts +148 -70
- package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +8 -1
- package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +5 -1
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/sql-expression-editor/sql-expression-editor.stories.d.ts +13 -0
- package/dist/types/dependencies.d.ts +21 -0
- package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +1 -24
- package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +12 -49
- package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +6 -4
- package/dist/types/utils/arcade-monaco/arcade-mode.d.ts +3 -2
- package/dist/types/utils/arcade-monaco/arcade-service-accessors.d.ts +31 -0
- package/dist/types/utils/arcade-monaco/arcade-worker-manager.d.ts +3 -2
- package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +5 -5
- package/dist/types/utils/arcade-monaco/types.d.ts +6 -35
- package/dist/types/utils/language-defaults-base.d.ts +69 -0
- package/dist/types/utils/profile/predefined-profile.d.ts +3 -1
- package/dist/types/utils/profile/types.d.ts +50 -65
- package/dist/types/utils/profile/utils.d.ts +5 -8
- package/dist/types/utils/sql-expr-monaco/DependentFiles/DateOnly.d.ts +41 -0
- package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlInterval.d.ts +16 -0
- package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlTimestampOffset.d.ts +26 -0
- package/dist/types/utils/sql-expr-monaco/DependentFiles/TimeOnly.d.ts +37 -0
- package/dist/types/utils/sql-expr-monaco/DependentFiles/UnknownTimeZone.d.ts +11 -0
- package/dist/types/utils/sql-expr-monaco/DependentFiles/WhereGrammar.d.ts +122 -0
- package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlCompareUtils.d.ts +5 -0
- package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlDateParsingUtils.d.ts +18 -0
- package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlUtils.d.ts +6 -0
- package/dist/types/utils/sql-expr-monaco/DependentFiles/standardizedFunctions.d.ts +156 -0
- package/dist/types/utils/sql-expr-monaco/DependentFiles/support.d.ts +150 -0
- package/dist/types/utils/sql-expr-monaco/PeggyGrammar/sql92grammar.d.ts +1397 -0
- package/dist/types/utils/sql-expr-monaco/libraries/date/properties/index.d.ts +59 -0
- package/dist/types/utils/sql-expr-monaco/libraries/numeric/properties/index.d.ts +295 -0
- package/dist/types/utils/sql-expr-monaco/libraries/string/properties/index.d.ts +135 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +6 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-contribution.d.ts +11 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-defaults.d.ts +22 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-language-features.d.ts +61 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-language-syntax.d.ts +8 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-mode.d.ts +10 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-adapter.d.ts +3 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +41 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +99 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation.d.ts +41 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-worker-manager.d.ts +15 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr.worker.d.ts +21 -0
- package/dist/types/utils/sql-expr-monaco/types.d.ts +91 -0
- package/dist/types/utils/sql-expr-profile/predefined-profile.d.ts +2 -0
- package/package.json +30 -24
- package/dist/arcgis-coding-components/p-3fb3347e.js +0 -6
- package/dist/arcgis-coding-components/p-52fc1b44.js +0 -7
- package/dist/arcgis-coding-components/p-75571c31.entry.js +0 -6
- package/dist/arcgis-coding-components/p-c07f51a4.js +0 -68
- package/dist/cjs/arcade-mode-75d2c139.js +0 -595
- package/dist/cjs/index-f61a8dce.js +0 -1994
- package/dist/components/arcade-contribution.js +0 -181
- package/dist/components/arcgis-arcade-api.d.ts +0 -11
- package/dist/components/arcgis-arcade-api.js +0 -11
- package/dist/components/chunk-63RMNUHL.js +0 -1275
- package/dist/esm/index-7be467d0.js +0 -1963
- package/dist/types/components/arcade-api/arcade-api.d.ts +0 -45
- package/dist/types/components/arcade-api/t9n-types.d.ts +0 -8
- package/dist/types/components/arcade-editor/t9n-types.d.ts +0 -8
- package/dist/types/components/arcade-results/t9n-types.d.ts +0 -13
- package/dist/types/components/arcade-suggestions/t9n-types.d.ts +0 -6
- package/dist/types/components/arcade-variables/t9n-types.d.ts +0 -8
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ar.json → language-api-panel/t9n/language-api-panel.t9n.ar.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.bg.json → language-api-panel/t9n/language-api-panel.t9n.bg.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.bs.json → language-api-panel/t9n/language-api-panel.t9n.bs.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.cs.json → language-api-panel/t9n/language-api-panel.t9n.cs.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.da.json → language-api-panel/t9n/language-api-panel.t9n.da.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.de.json → language-api-panel/t9n/language-api-panel.t9n.de.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.el.json → language-api-panel/t9n/language-api-panel.t9n.el.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.en.json → language-api-panel/t9n/language-api-panel.t9n.en.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.es.json → language-api-panel/t9n/language-api-panel.t9n.es.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.et.json → language-api-panel/t9n/language-api-panel.t9n.et.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.fi.json → language-api-panel/t9n/language-api-panel.t9n.fi.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.fr.json → language-api-panel/t9n/language-api-panel.t9n.fr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.he.json → language-api-panel/t9n/language-api-panel.t9n.he.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.hr.json → language-api-panel/t9n/language-api-panel.t9n.hr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.hu.json → language-api-panel/t9n/language-api-panel.t9n.hu.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.id.json → language-api-panel/t9n/language-api-panel.t9n.id.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.it.json → language-api-panel/t9n/language-api-panel.t9n.it.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ja.json → language-api-panel/t9n/language-api-panel.t9n.ja.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ko.json → language-api-panel/t9n/language-api-panel.t9n.ko.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.lt.json → language-api-panel/t9n/language-api-panel.t9n.lt.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.lv.json → language-api-panel/t9n/language-api-panel.t9n.lv.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.nb.json → language-api-panel/t9n/language-api-panel.t9n.nb.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.nl.json → language-api-panel/t9n/language-api-panel.t9n.nl.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.pl.json → language-api-panel/t9n/language-api-panel.t9n.pl.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.pt-BR.json → language-api-panel/t9n/language-api-panel.t9n.pt-BR.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.pt-PT.json → language-api-panel/t9n/language-api-panel.t9n.pt-PT.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ro.json → language-api-panel/t9n/language-api-panel.t9n.ro.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ru.json → language-api-panel/t9n/language-api-panel.t9n.ru.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sk.json → language-api-panel/t9n/language-api-panel.t9n.sk.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sl.json → language-api-panel/t9n/language-api-panel.t9n.sl.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sr.json → language-api-panel/t9n/language-api-panel.t9n.sr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sv.json → language-api-panel/t9n/language-api-panel.t9n.sv.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.th.json → language-api-panel/t9n/language-api-panel.t9n.th.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.tr.json → language-api-panel/t9n/language-api-panel.t9n.tr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.uk.json → language-api-panel/t9n/language-api-panel.t9n.uk.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.vi.json → language-api-panel/t9n/language-api-panel.t9n.vi.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.zh-CN.json → language-api-panel/t9n/language-api-panel.t9n.zh-CN.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.zh-HK.json → language-api-panel/t9n/language-api-panel.t9n.zh-HK.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.zh-TW.json → language-api-panel/t9n/language-api-panel.t9n.zh-TW.json} +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.10
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-3743d31f.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns the last element of an array.
|
|
@@ -6101,6 +6101,7 @@ const uiMap = new KeyCodeStrMap();
|
|
|
6101
6101
|
const userSettingsUSMap = new KeyCodeStrMap();
|
|
6102
6102
|
const userSettingsGeneralMap = new KeyCodeStrMap();
|
|
6103
6103
|
const EVENT_KEY_CODE_MAP = new Array(230);
|
|
6104
|
+
const NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE = {};
|
|
6104
6105
|
const scanCodeIntToStr = [];
|
|
6105
6106
|
const scanCodeStrToInt = Object.create(null);
|
|
6106
6107
|
const scanCodeLowerCaseStrToInt = Object.create(null);
|
|
@@ -6389,6 +6390,9 @@ for (let i = 0; i <= 132 /* KeyCode.MAX_VALUE */; i++) {
|
|
|
6389
6390
|
if (eventKeyCode) {
|
|
6390
6391
|
EVENT_KEY_CODE_MAP[eventKeyCode] = keyCode;
|
|
6391
6392
|
}
|
|
6393
|
+
if (vkey) {
|
|
6394
|
+
NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE[vkey] = keyCode;
|
|
6395
|
+
}
|
|
6392
6396
|
}
|
|
6393
6397
|
// Manually added due to the exclusion above (due to duplication with NumpadEnter)
|
|
6394
6398
|
IMMUTABLE_KEY_CODE_TO_CODE[3 /* KeyCode.Enter */] = 46 /* ScanCode.Enter */;
|
|
@@ -21850,6 +21854,7 @@ CharacterPairSupport.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS = '\'"`;
|
|
|
21850
21854
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
21851
21855
|
*--------------------------------------------------------------------------------------------*/
|
|
21852
21856
|
const hasBuffer = (typeof Buffer !== 'undefined');
|
|
21857
|
+
new Lazy(() => new Uint8Array(256));
|
|
21853
21858
|
let textDecoder;
|
|
21854
21859
|
class VSBuffer {
|
|
21855
21860
|
/**
|
|
@@ -22760,6 +22765,12 @@ Registry.add(Extensions$7.JSONContribution, jsonContributionRegistry);
|
|
|
22760
22765
|
const Extensions$6 = {
|
|
22761
22766
|
Configuration: 'base.contributions.configuration'
|
|
22762
22767
|
};
|
|
22768
|
+
const allSettings = { properties: {}, patternProperties: {} };
|
|
22769
|
+
const applicationSettings = { properties: {}, patternProperties: {} };
|
|
22770
|
+
const machineSettings = { properties: {}, patternProperties: {} };
|
|
22771
|
+
const machineOverridableSettings = { properties: {}, patternProperties: {} };
|
|
22772
|
+
const windowSettings = { properties: {}, patternProperties: {} };
|
|
22773
|
+
const resourceSettings = { properties: {}, patternProperties: {} };
|
|
22763
22774
|
const resourceLanguageSettingsSchemaId = 'vscode://schemas/settings/resourceLanguage';
|
|
22764
22775
|
const contributionRegistry = Registry.as(Extensions$7.JSONContribution);
|
|
22765
22776
|
class ConfigurationRegistry {
|
|
@@ -22932,18 +22943,25 @@ class ConfigurationRegistry {
|
|
|
22932
22943
|
register(configuration);
|
|
22933
22944
|
}
|
|
22934
22945
|
updateSchema(key, property) {
|
|
22946
|
+
allSettings.properties[key] = property;
|
|
22935
22947
|
switch (property.scope) {
|
|
22936
22948
|
case 1 /* ConfigurationScope.APPLICATION */:
|
|
22949
|
+
applicationSettings.properties[key] = property;
|
|
22937
22950
|
break;
|
|
22938
22951
|
case 2 /* ConfigurationScope.MACHINE */:
|
|
22952
|
+
machineSettings.properties[key] = property;
|
|
22939
22953
|
break;
|
|
22940
22954
|
case 6 /* ConfigurationScope.MACHINE_OVERRIDABLE */:
|
|
22955
|
+
machineOverridableSettings.properties[key] = property;
|
|
22941
22956
|
break;
|
|
22942
22957
|
case 3 /* ConfigurationScope.WINDOW */:
|
|
22958
|
+
windowSettings.properties[key] = property;
|
|
22943
22959
|
break;
|
|
22944
22960
|
case 4 /* ConfigurationScope.RESOURCE */:
|
|
22961
|
+
resourceSettings.properties[key] = property;
|
|
22945
22962
|
break;
|
|
22946
22963
|
case 5 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */:
|
|
22964
|
+
resourceSettings.properties[key] = property;
|
|
22947
22965
|
this.resourceLanguageSettingsSchema.properties[key] = property;
|
|
22948
22966
|
break;
|
|
22949
22967
|
}
|
|
@@ -22958,15 +22976,27 @@ class ConfigurationRegistry {
|
|
|
22958
22976
|
$ref: resourceLanguageSettingsSchemaId,
|
|
22959
22977
|
};
|
|
22960
22978
|
this.updatePropertyDefaultValue(overrideIdentifierProperty, resourceLanguagePropertiesSchema);
|
|
22979
|
+
allSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22980
|
+
applicationSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22981
|
+
machineSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22982
|
+
machineOverridableSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22983
|
+
windowSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22984
|
+
resourceSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22961
22985
|
}
|
|
22962
22986
|
}
|
|
22963
22987
|
registerOverridePropertyPatternKey() {
|
|
22964
|
-
|
|
22988
|
+
const resourceLanguagePropertiesSchema = {
|
|
22965
22989
|
type: 'object',
|
|
22966
22990
|
description: localize('overrideSettings.defaultDescription', "Configure editor settings to be overridden for a language."),
|
|
22967
22991
|
errorMessage: localize('overrideSettings.errorMessage', "This setting does not support per-language configuration."),
|
|
22968
22992
|
$ref: resourceLanguageSettingsSchemaId,
|
|
22969
|
-
}
|
|
22993
|
+
};
|
|
22994
|
+
allSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22995
|
+
applicationSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22996
|
+
machineSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22997
|
+
machineOverridableSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22998
|
+
windowSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22999
|
+
resourceSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22970
23000
|
this._onDidSchemaChange.fire();
|
|
22971
23001
|
}
|
|
22972
23002
|
updatePropertyDefaultValue(key, property) {
|
|
@@ -60172,6 +60202,34 @@ class ExtUri {
|
|
|
60172
60202
|
* ```
|
|
60173
60203
|
*/
|
|
60174
60204
|
const extUri = new ExtUri(() => false);
|
|
60205
|
+
/**
|
|
60206
|
+
* BIASED utility that _mostly_ ignored the case of urs paths. ONLY use this util if you
|
|
60207
|
+
* understand what you are doing.
|
|
60208
|
+
*
|
|
60209
|
+
* This utility is INCOMPATIBLE with `uri.toString()`-usages and both CANNOT be used interchanged.
|
|
60210
|
+
*
|
|
60211
|
+
* When dealing with uris from files or documents, `extUri` (the unbiased friend)is sufficient
|
|
60212
|
+
* because those uris come from a "trustworthy source". When creating unknown uris it's always
|
|
60213
|
+
* better to use `IUriIdentityService` which exposes an `IExtUri`-instance which knows when path
|
|
60214
|
+
* casing matters.
|
|
60215
|
+
*/
|
|
60216
|
+
new ExtUri(uri => {
|
|
60217
|
+
// A file scheme resource is in the same platform as code, so ignore case for non linux platforms
|
|
60218
|
+
// Resource can be from another platform. Lowering the case as an hack. Should come from File system provider
|
|
60219
|
+
return uri.scheme === Schemas.file ? !isLinux : true;
|
|
60220
|
+
});
|
|
60221
|
+
/**
|
|
60222
|
+
* BIASED utility that always ignores the casing of uris paths. ONLY use this util if you
|
|
60223
|
+
* understand what you are doing.
|
|
60224
|
+
*
|
|
60225
|
+
* This utility is INCOMPATIBLE with `uri.toString()`-usages and both CANNOT be used interchanged.
|
|
60226
|
+
*
|
|
60227
|
+
* When dealing with uris from files or documents, `extUri` (the unbiased friend)is sufficient
|
|
60228
|
+
* because those uris come from a "trustworthy source". When creating unknown uris it's always
|
|
60229
|
+
* better to use `IUriIdentityService` which exposes an `IExtUri`-instance which knows when path
|
|
60230
|
+
* casing matters.
|
|
60231
|
+
*/
|
|
60232
|
+
new ExtUri(_ => true);
|
|
60175
60233
|
const isEqual = extUri.isEqual.bind(extUri);
|
|
60176
60234
|
extUri.isEqualOrParent.bind(extUri);
|
|
60177
60235
|
extUri.getComparisonKey.bind(extUri);
|
|
@@ -105014,6 +105072,20 @@ const intlFileNameCollatorBaseNumeric = new Lazy(() => {
|
|
|
105014
105072
|
collatorIsNumeric: collator.resolvedOptions().numeric
|
|
105015
105073
|
};
|
|
105016
105074
|
});
|
|
105075
|
+
// A collator with numeric sorting enabled.
|
|
105076
|
+
new Lazy(() => {
|
|
105077
|
+
const collator = new Intl.Collator(undefined, { numeric: true });
|
|
105078
|
+
return {
|
|
105079
|
+
collator
|
|
105080
|
+
};
|
|
105081
|
+
});
|
|
105082
|
+
// A collator with numeric sorting enabled, and sensitivity to accents and diacritics but not case.
|
|
105083
|
+
new Lazy(() => {
|
|
105084
|
+
const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'accent' });
|
|
105085
|
+
return {
|
|
105086
|
+
collator
|
|
105087
|
+
};
|
|
105088
|
+
});
|
|
105017
105089
|
/** Compares filenames without distinguishing the name from the extension. Disambiguates by unicode comparison. */
|
|
105018
105090
|
function compareFileNames(one, other, caseSensitive = false) {
|
|
105019
105091
|
const a = one || '';
|
|
@@ -120522,7 +120594,7 @@ registerLanguage({
|
|
|
120522
120594
|
mimetypes: ["text/css"],
|
|
120523
120595
|
loader: () => {
|
|
120524
120596
|
{
|
|
120525
|
-
return import('./css-
|
|
120597
|
+
return import('./css-810518f1.js');
|
|
120526
120598
|
}
|
|
120527
120599
|
}
|
|
120528
120600
|
});
|
|
@@ -120540,7 +120612,7 @@ registerLanguage({
|
|
|
120540
120612
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120541
120613
|
loader: () => {
|
|
120542
120614
|
{
|
|
120543
|
-
return import('./html-
|
|
120615
|
+
return import('./html-e187d7d8.js');
|
|
120544
120616
|
}
|
|
120545
120617
|
}
|
|
120546
120618
|
});
|
|
@@ -120560,7 +120632,7 @@ registerLanguage({
|
|
|
120560
120632
|
mimetypes: ["text/javascript"],
|
|
120561
120633
|
loader: () => {
|
|
120562
120634
|
{
|
|
120563
|
-
return import('./javascript-
|
|
120635
|
+
return import('./javascript-04a3f866.js');
|
|
120564
120636
|
}
|
|
120565
120637
|
}
|
|
120566
120638
|
});
|
|
@@ -120578,7 +120650,7 @@ registerLanguage({
|
|
|
120578
120650
|
mimetypes: ["text/typescript"],
|
|
120579
120651
|
loader: () => {
|
|
120580
120652
|
{
|
|
120581
|
-
return import('./typescript-
|
|
120653
|
+
return import('./typescript-a9b8caa7.js');
|
|
120582
120654
|
}
|
|
120583
120655
|
}
|
|
120584
120656
|
});
|
|
@@ -120699,7 +120771,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120699
120771
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120700
120772
|
function getMode$3() {
|
|
120701
120773
|
{
|
|
120702
|
-
return import('./cssMode-
|
|
120774
|
+
return import('./cssMode-a7208024.js');
|
|
120703
120775
|
}
|
|
120704
120776
|
}
|
|
120705
120777
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120824,7 +120896,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120824
120896
|
};
|
|
120825
120897
|
function getMode$2() {
|
|
120826
120898
|
{
|
|
120827
|
-
return import('./htmlMode-
|
|
120899
|
+
return import('./htmlMode-06b7bae2.js');
|
|
120828
120900
|
}
|
|
120829
120901
|
}
|
|
120830
120902
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -120926,7 +120998,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
120926
120998
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120927
120999
|
function getMode$1() {
|
|
120928
121000
|
{
|
|
120929
|
-
return import('./jsonMode-
|
|
121001
|
+
return import('./jsonMode-ee8bb2ea.js');
|
|
120930
121002
|
}
|
|
120931
121003
|
}
|
|
120932
121004
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121195,7 +121267,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121195
121267
|
};
|
|
121196
121268
|
function getMode() {
|
|
121197
121269
|
{
|
|
121198
|
-
return import('./tsMode-
|
|
121270
|
+
return import('./tsMode-c80c462e.js');
|
|
121199
121271
|
}
|
|
121200
121272
|
}
|
|
121201
121273
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -166644,21 +166716,13 @@ registerEditorAction(ToggleHighContrast);
|
|
|
166644
166716
|
|
|
166645
166717
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
166646
166718
|
|
|
166647
|
-
function
|
|
166648
|
-
|
|
166649
|
-
path: basedir,
|
|
166650
|
-
exports: {},
|
|
166651
|
-
require: function (path, base) {
|
|
166652
|
-
return commonjsRequire();
|
|
166653
|
-
}
|
|
166654
|
-
}, fn(module, module.exports), module.exports;
|
|
166719
|
+
function commonjsRequire (path) {
|
|
166720
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
166655
166721
|
}
|
|
166656
166722
|
|
|
166657
|
-
|
|
166658
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
166659
|
-
}
|
|
166723
|
+
var main = {exports: {}};
|
|
166660
166724
|
|
|
166661
|
-
|
|
166725
|
+
(function (module, exports) {
|
|
166662
166726
|
(function (factory) {
|
|
166663
166727
|
{
|
|
166664
166728
|
var v = factory(commonjsRequire, exports);
|
|
@@ -168923,10 +168987,10 @@ var main = createCommonjsModule(function (module, exports) {
|
|
|
168923
168987
|
Is.typedArray = typedArray;
|
|
168924
168988
|
})(Is || (Is = {}));
|
|
168925
168989
|
});
|
|
168926
|
-
});
|
|
168990
|
+
}(main, main.exports));
|
|
168927
168991
|
|
|
168928
168992
|
// src/index.ts
|
|
168929
|
-
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
|
|
168993
|
+
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis && !("forceESM" in window.$arcgis);
|
|
168930
168994
|
function isDefaultModule(module) {
|
|
168931
168995
|
return module.default !== void 0;
|
|
168932
168996
|
}
|
|
@@ -168990,29 +169054,23 @@ async function importRequest() {
|
|
|
168990
169054
|
}
|
|
168991
169055
|
|
|
168992
169056
|
//#region Type Guards
|
|
168993
|
-
function
|
|
169057
|
+
function isFeatureLayerLikeInstance(item) {
|
|
168994
169058
|
return (!!item &&
|
|
168995
169059
|
typeof item === "object" &&
|
|
168996
169060
|
"declaredClass" in item &&
|
|
168997
169061
|
typeof item.declaredClass === "string" &&
|
|
168998
169062
|
item.declaredClass.startsWith("esri.layers.") &&
|
|
168999
|
-
|
|
169063
|
+
isFieldsDefinition(item) &&
|
|
169000
169064
|
"queryFeatures" in item &&
|
|
169001
169065
|
typeof item.queryFeatures === "function");
|
|
169002
169066
|
}
|
|
169003
|
-
function
|
|
169067
|
+
function isGroupLayerCapable(item) {
|
|
169004
169068
|
return (!!item &&
|
|
169005
169069
|
typeof item === "object" &&
|
|
169006
|
-
"
|
|
169007
|
-
|
|
169008
|
-
item.
|
|
169009
|
-
|
|
169010
|
-
function isGroupLayerInstance(item) {
|
|
169011
|
-
return (!!item &&
|
|
169012
|
-
typeof item === "object" &&
|
|
169013
|
-
"declaredClass" in item &&
|
|
169014
|
-
typeof item.declaredClass === "string" &&
|
|
169015
|
-
item.declaredClass === "esri.layers.GroupLayer");
|
|
169070
|
+
"allLayers" in item &&
|
|
169071
|
+
"allTables" in item &&
|
|
169072
|
+
typeof item.allLayers === "object" &&
|
|
169073
|
+
typeof item.allTables === "object");
|
|
169016
169074
|
}
|
|
169017
169075
|
function isMapInstance(item) {
|
|
169018
169076
|
return (!!item &&
|
|
@@ -169023,14 +169081,8 @@ function isMapInstance(item) {
|
|
|
169023
169081
|
item.declaredClass === "esri.WebMap" ||
|
|
169024
169082
|
item.declaredClass === "esri.WebScene"));
|
|
169025
169083
|
}
|
|
169026
|
-
function
|
|
169027
|
-
return item
|
|
169028
|
-
}
|
|
169029
|
-
function isWebSceneInstance(item) {
|
|
169030
|
-
return item.declaredClass === "esri.WebScene";
|
|
169031
|
-
}
|
|
169032
|
-
function isLoadableMapInstance(item) {
|
|
169033
|
-
return item.declaredClass === "esri.WebMap" || item.declaredClass === "esri.WebScene";
|
|
169084
|
+
function isLoadAllCapable(item) {
|
|
169085
|
+
return !!item && typeof item === "object" && "loadAll" in item && typeof item.loadAll === "function";
|
|
169034
169086
|
}
|
|
169035
169087
|
function isPortalItemDefinition(item) {
|
|
169036
169088
|
return !!item && typeof item === "object" && "portalItem" in item && item.portalItem != null;
|
|
@@ -169095,6 +169147,9 @@ function isSubtypeFieldCapableLayer(item) {
|
|
|
169095
169147
|
function isSubtypesCapableLayer(item) {
|
|
169096
169148
|
return isSubtypeFieldCapableLayer(item) && "subtypes" in item;
|
|
169097
169149
|
}
|
|
169150
|
+
function isPortalItemCapable(item) {
|
|
169151
|
+
return !!item && typeof item === "object" && "portalItem" in item;
|
|
169152
|
+
}
|
|
169098
169153
|
function isRelationshipsCapableLayer(item) {
|
|
169099
169154
|
return (isLayerIdCapableSource(item) &&
|
|
169100
169155
|
"relationships" in item &&
|
|
@@ -169208,16 +169263,18 @@ function observeAncestorsMutation(element, attributeFilter, callback) {
|
|
|
169208
169263
|
const { subscribe } = observe(attributeFilter);
|
|
169209
169264
|
return subscribe((mutations) => {
|
|
169210
169265
|
const matched = mutations.some((mutation) => inTargetElement(element, mutation.target));
|
|
169211
|
-
if (matched)
|
|
169266
|
+
if (matched) {
|
|
169212
169267
|
callback();
|
|
169268
|
+
}
|
|
169213
169269
|
});
|
|
169214
169270
|
}
|
|
169215
169271
|
var observers = {};
|
|
169216
169272
|
function observe(attributeFilter) {
|
|
169217
169273
|
const attributes = attributeFilter.join(",");
|
|
169218
169274
|
const previousObserver = observers[attributes];
|
|
169219
|
-
if (previousObserver !== void 0)
|
|
169275
|
+
if (previousObserver !== void 0) {
|
|
169220
169276
|
return previousObserver;
|
|
169277
|
+
}
|
|
169221
169278
|
const subscribers = /* @__PURE__ */ new Set();
|
|
169222
169279
|
const mutationObserver = new MutationObserver((mutations) => subscribers.forEach((callback) => callback(mutations)));
|
|
169223
169280
|
mutationObserver.observe(document.documentElement, {
|
|
@@ -169344,13 +169401,9 @@ function gen(count) {
|
|
|
169344
169401
|
function generateGuid() {
|
|
169345
169402
|
return [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
|
|
169346
169403
|
}
|
|
169347
|
-
var camelToKebab = (string) => string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : "-"}${upper.toLowerCase()}`);
|
|
169348
|
-
var upperBeforeLower = /[A-Z]+(?![a-z])|[A-Z]/gu;
|
|
169349
|
-
var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
|
|
169350
|
-
var camelToHuman = (string) => capitalize(string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : " "}${upper}`));
|
|
169351
169404
|
|
|
169352
169405
|
// src/intl.ts
|
|
169353
|
-
var
|
|
169406
|
+
var supportedLocalesArray = [
|
|
169354
169407
|
"ar",
|
|
169355
169408
|
"bg",
|
|
169356
169409
|
"bs",
|
|
@@ -169391,9 +169444,18 @@ var supportedLocales = /* @__PURE__ */ new Set([
|
|
|
169391
169444
|
"zh-CN",
|
|
169392
169445
|
"zh-HK",
|
|
169393
169446
|
"zh-TW"
|
|
169394
|
-
]
|
|
169447
|
+
];
|
|
169448
|
+
var supportedLocales = new Set(supportedLocalesArray);
|
|
169395
169449
|
var defaultLocale = "en";
|
|
169396
|
-
|
|
169450
|
+
var localeEquivalencies = {
|
|
169451
|
+
// We use `pt-BR` as it will have the same translations as `pt`, which has no corresponding bundle
|
|
169452
|
+
pt: "pt-PT",
|
|
169453
|
+
// We support both 'nb' and 'no' (BCP 47) for Norwegian but only `nb` has corresponding bundle
|
|
169454
|
+
no: "nb",
|
|
169455
|
+
// We can `zh-CN` as base translation for chinese locales which has no corresponding bundle.
|
|
169456
|
+
zh: "zh-CN"
|
|
169457
|
+
};
|
|
169458
|
+
async function fetchT9nStringsBundle(locale, assetsPath, prefix = "") {
|
|
169397
169459
|
const path = `${assetsPath}/${prefix}`;
|
|
169398
169460
|
const filePath = `${path}${locale}.json`;
|
|
169399
169461
|
t9nStringsCache[filePath] ?? (t9nStringsCache[filePath] = fetchBundle(locale, path));
|
|
@@ -169404,35 +169466,41 @@ async function fetchBundle(locale, path) {
|
|
|
169404
169466
|
const filePath = `${path}${locale}.json`;
|
|
169405
169467
|
try {
|
|
169406
169468
|
const response = await fetch(filePath);
|
|
169407
|
-
if (response.ok)
|
|
169469
|
+
if (response.ok) {
|
|
169408
169470
|
return await response.json();
|
|
169471
|
+
}
|
|
169409
169472
|
} catch (error) {
|
|
169410
169473
|
console.error(error);
|
|
169411
|
-
return
|
|
169474
|
+
return {};
|
|
169475
|
+
}
|
|
169476
|
+
if (locale === defaultLocale) {
|
|
169477
|
+
return {};
|
|
169412
169478
|
}
|
|
169413
|
-
if (locale === defaultLocale)
|
|
169414
|
-
return fallbackBundle;
|
|
169415
169479
|
return await fetchBundle(defaultLocale, path);
|
|
169416
169480
|
}
|
|
169417
|
-
var fallbackBundle = new Proxy(
|
|
169418
|
-
{},
|
|
169419
|
-
{
|
|
169420
|
-
get: (_target, property) => camelToHuman(property.toString())
|
|
169421
|
-
}
|
|
169422
|
-
);
|
|
169423
169481
|
function getElementLocales(element) {
|
|
169424
169482
|
const lang = getElementAttribute(element, "lang", navigator.language || defaultLocale);
|
|
169425
|
-
|
|
169426
|
-
|
|
169483
|
+
return { lang, t9nLocale: langToLocale(lang) };
|
|
169484
|
+
}
|
|
169485
|
+
function langToLocale(lang) {
|
|
169486
|
+
const parts = lang.split("-");
|
|
169487
|
+
const normalized = `${parts[0].toLowerCase()}${parts.slice(1).join("-").toUpperCase()}`;
|
|
169488
|
+
if (supportedLocales.has(normalized)) {
|
|
169489
|
+
return normalized;
|
|
169427
169490
|
}
|
|
169428
|
-
const
|
|
169429
|
-
|
|
169491
|
+
const languageCode = normalized.slice(0, 2).toLowerCase();
|
|
169492
|
+
const locale = localeEquivalencies[languageCode] ?? languageCode;
|
|
169493
|
+
if (supportedLocales.has(locale)) {
|
|
169494
|
+
return locale;
|
|
169495
|
+
}
|
|
169496
|
+
return defaultLocale;
|
|
169430
169497
|
}
|
|
169431
169498
|
function startLocaleObserver(element, assetsPath, onUpdated, assetName) {
|
|
169432
169499
|
let result = void 0;
|
|
169433
169500
|
const callback = () => void updateComponentLocateState(element, assetsPath, assetName).then((newResult) => {
|
|
169434
|
-
if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings)
|
|
169501
|
+
if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings) {
|
|
169435
169502
|
onUpdated(newResult);
|
|
169503
|
+
}
|
|
169436
169504
|
result = newResult;
|
|
169437
169505
|
}).catch(console.error);
|
|
169438
169506
|
callback();
|
|
@@ -169442,7 +169510,7 @@ async function updateComponentLocateState(element, assetsPath, assetName = eleme
|
|
|
169442
169510
|
const { lang, t9nLocale } = getElementLocales(element);
|
|
169443
169511
|
const t9nAssetsPath = `${assetsPath}/${assetName}/t9n`;
|
|
169444
169512
|
const prefix = `${assetName}.t9n.`;
|
|
169445
|
-
const t9nStrings = await
|
|
169513
|
+
const t9nStrings = await fetchT9nStringsBundle(t9nLocale, t9nAssetsPath, prefix);
|
|
169446
169514
|
return { lang, t9nLocale, t9nStrings };
|
|
169447
169515
|
}
|
|
169448
169516
|
|
|
@@ -169681,14 +169749,6 @@ function sortFields(layer) {
|
|
|
169681
169749
|
if (secondField.type === "oid") {
|
|
169682
169750
|
return 1;
|
|
169683
169751
|
}
|
|
169684
|
-
if (isSubtypeSublayerInstance(layer)) {
|
|
169685
|
-
if (firstField.name === layer.parent.subtypeField) {
|
|
169686
|
-
return -1;
|
|
169687
|
-
}
|
|
169688
|
-
if (secondField.name === layer.parent.subtypeField) {
|
|
169689
|
-
return 1;
|
|
169690
|
-
}
|
|
169691
|
-
}
|
|
169692
169752
|
if (isSubtypeFieldCapableLayer(layer)) {
|
|
169693
169753
|
if (firstField.name === layer.subtypeField) {
|
|
169694
169754
|
return -1;
|
|
@@ -169726,14 +169786,14 @@ function assembleMemberExpression(obj, prop) {
|
|
|
169726
169786
|
return `${obj}${getMemberExpressionProperty(prop)}`;
|
|
169727
169787
|
}
|
|
169728
169788
|
function getMapPortalItem(map) {
|
|
169729
|
-
if (
|
|
169789
|
+
if (isPortalItemCapable(map)) {
|
|
169730
169790
|
return map.portalItem;
|
|
169731
169791
|
}
|
|
169732
169792
|
return null;
|
|
169733
169793
|
}
|
|
169734
169794
|
//#endregion
|
|
169735
169795
|
//#region Editor Profile to Language Service Profile functions
|
|
169736
|
-
async function variablesToLSVariable(editorVariables, kind = main.CompletionItemKind.Variable) {
|
|
169796
|
+
async function variablesToLSVariable(editorVariables, kind = main.exports.CompletionItemKind.Variable) {
|
|
169737
169797
|
return await Promise.all(editorVariables.map(async (editorVariable) => {
|
|
169738
169798
|
switch (editorVariable.type) {
|
|
169739
169799
|
case "dictionary":
|
|
@@ -169756,8 +169816,8 @@ function variableToLSVariable(editorVariable, kind) {
|
|
|
169756
169816
|
label: name,
|
|
169757
169817
|
detail: name,
|
|
169758
169818
|
insertText: name,
|
|
169759
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169760
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169819
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169820
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169761
169821
|
kind,
|
|
169762
169822
|
documentation: { kind: "markdown", value: description },
|
|
169763
169823
|
},
|
|
@@ -169772,8 +169832,8 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169772
169832
|
label: name,
|
|
169773
169833
|
detail: name,
|
|
169774
169834
|
insertText: name,
|
|
169775
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169776
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169835
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169836
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169777
169837
|
kind,
|
|
169778
169838
|
};
|
|
169779
169839
|
const result = {
|
|
@@ -169816,9 +169876,9 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169816
169876
|
label: field.name,
|
|
169817
169877
|
detail: description,
|
|
169818
169878
|
insertText,
|
|
169819
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169820
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169821
|
-
kind: main.CompletionItemKind.Field,
|
|
169879
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169880
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169881
|
+
kind: main.exports.CompletionItemKind.Field,
|
|
169822
169882
|
documentation: { kind: "markdown", value: fieldCompletionDescription },
|
|
169823
169883
|
},
|
|
169824
169884
|
});
|
|
@@ -169838,9 +169898,9 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169838
169898
|
label: field.alias,
|
|
169839
169899
|
detail: field.name,
|
|
169840
169900
|
insertText,
|
|
169841
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169842
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169843
|
-
kind: main.CompletionItemKind.Field,
|
|
169901
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169902
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169903
|
+
kind: main.exports.CompletionItemKind.Field,
|
|
169844
169904
|
documentation: { kind: "markdown", value: aliasCompletionDescription },
|
|
169845
169905
|
},
|
|
169846
169906
|
});
|
|
@@ -169867,13 +169927,13 @@ async function dictionaryToLSDictionary(editorDictionary, kind) {
|
|
|
169867
169927
|
name,
|
|
169868
169928
|
description,
|
|
169869
169929
|
type: "dictionary",
|
|
169870
|
-
properties: await variablesToLSVariable(variables, main.CompletionItemKind.Field),
|
|
169930
|
+
properties: await variablesToLSVariable(variables, main.exports.CompletionItemKind.Field),
|
|
169871
169931
|
completion: {
|
|
169872
169932
|
label: name,
|
|
169873
169933
|
detail: name,
|
|
169874
169934
|
insertText: name,
|
|
169875
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169876
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169935
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169936
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169877
169937
|
kind,
|
|
169878
169938
|
documentation: { kind: "markdown", value: completionDescription },
|
|
169879
169939
|
},
|
|
@@ -170411,7 +170471,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170411
170471
|
const relationshipsGroup = new GroupOfVariables(this._profile, { code: "relationships" });
|
|
170412
170472
|
const relationshipItems = await Promise.all(source.relationships.map(async (relationship) => {
|
|
170413
170473
|
const relatedLayer = await getRelatedFeatureLayer(source, relationship);
|
|
170414
|
-
if (!
|
|
170474
|
+
if (!isFeatureLayerLikeInstance(relatedLayer)) {
|
|
170415
170475
|
return null;
|
|
170416
170476
|
}
|
|
170417
170477
|
if (relationship.relatedTableId === this.relationshipsProperties?.sourceTableId) {
|
|
@@ -170582,13 +170642,14 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170582
170642
|
if (typeof this._featureSetCollections.source === "string") {
|
|
170583
170643
|
return this._profile?.intlStrings.featureservice ?? "featureservice";
|
|
170584
170644
|
}
|
|
170585
|
-
|
|
170586
|
-
|
|
170587
|
-
|
|
170588
|
-
|
|
170589
|
-
|
|
170645
|
+
switch (this._featureSetCollections.source.declaredClass) {
|
|
170646
|
+
case "esri.WebMap":
|
|
170647
|
+
return this._profile?.intlStrings.webmap ?? "webmap";
|
|
170648
|
+
case "esri.WebScene":
|
|
170649
|
+
return this._profile?.intlStrings.webscene ?? "webscene";
|
|
170650
|
+
default:
|
|
170651
|
+
return this._profile?.intlStrings.map ?? "map";
|
|
170590
170652
|
}
|
|
170591
|
-
return this._profile?.intlStrings.map ?? "map";
|
|
170592
170653
|
}
|
|
170593
170654
|
async loadSource() {
|
|
170594
170655
|
if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
|
|
@@ -170655,7 +170716,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170655
170716
|
return null;
|
|
170656
170717
|
}
|
|
170657
170718
|
async _featureSetCollectionFromMap(map) {
|
|
170658
|
-
if (
|
|
170719
|
+
if (isLoadAllCapable(map)) {
|
|
170659
170720
|
// Make sure the map is loaded
|
|
170660
170721
|
await map.loadAll();
|
|
170661
170722
|
}
|
|
@@ -170713,11 +170774,11 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170713
170774
|
.toArray()
|
|
170714
170775
|
.reverse()
|
|
170715
170776
|
.forEach((layer) => {
|
|
170716
|
-
if (
|
|
170777
|
+
if (isFeatureLayerLikeInstance(layer)) {
|
|
170717
170778
|
layerVariables.push(this._createFeatureSetVariable(layer, true));
|
|
170718
170779
|
return;
|
|
170719
170780
|
}
|
|
170720
|
-
if (
|
|
170781
|
+
if (isGroupLayerCapable(layer)) {
|
|
170721
170782
|
const groupLayerVariables = filteringTables
|
|
170722
170783
|
? this._convertWebMapLayersToVariables(layer.allTables, true)
|
|
170723
170784
|
: this._convertWebMapLayersToVariables(layer.allLayers);
|
|
@@ -170726,31 +170787,31 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170726
170787
|
});
|
|
170727
170788
|
return layerVariables;
|
|
170728
170789
|
}
|
|
170729
|
-
_createFeatureSetVariable(
|
|
170790
|
+
_createFeatureSetVariable(featureLayerLike, isFromWebMap = false) {
|
|
170730
170791
|
return new FeatureSetVariable(this, {
|
|
170731
170792
|
profile: this._profile,
|
|
170732
|
-
declaration: { name:
|
|
170793
|
+
declaration: { name: featureLayerLike.title, definition: featureLayerLike },
|
|
170733
170794
|
label: isFromWebMap
|
|
170734
|
-
?
|
|
170735
|
-
:
|
|
170795
|
+
? featureLayerLike.title
|
|
170796
|
+
: featureLayerLike.sourceJSON.name ?? featureLayerLike.title,
|
|
170736
170797
|
description: "",
|
|
170737
170798
|
nonInteractive: true,
|
|
170738
|
-
}, this._makeFeatureSetSnippets(
|
|
170799
|
+
}, this._makeFeatureSetSnippets(featureLayerLike, isFromWebMap));
|
|
170739
170800
|
}
|
|
170740
|
-
_makeFeatureSetSnippets(
|
|
170801
|
+
_makeFeatureSetSnippets(featureLayerLike, isFromWebMap = false) {
|
|
170741
170802
|
if (!this._profile?.supportFeatureSetFunctions) {
|
|
170742
170803
|
return [];
|
|
170743
170804
|
}
|
|
170744
170805
|
if (isFromWebMap) {
|
|
170745
|
-
const snippetById = `FeatureSetById(${this.snippet}, "${
|
|
170746
|
-
const snippetByName = `FeatureSetByName(${this.snippet}, "${
|
|
170806
|
+
const snippetById = `FeatureSetById(${this.snippet}, "${featureLayerLike.id}")`;
|
|
170807
|
+
const snippetByName = `FeatureSetByName(${this.snippet}, "${featureLayerLike.title}")`;
|
|
170747
170808
|
return [
|
|
170748
170809
|
new ValueVariable({ profile: this._profile, label: snippetById, description: "", snippet: snippetById }),
|
|
170749
170810
|
new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName }),
|
|
170750
170811
|
];
|
|
170751
170812
|
}
|
|
170752
170813
|
else {
|
|
170753
|
-
const snippetById = `FeatureSetById(${this.snippet}, "${
|
|
170814
|
+
const snippetById = `FeatureSetById(${this.snippet}, "${featureLayerLike.layerId}")`;
|
|
170754
170815
|
return [new ValueVariable({ profile: this._profile, label: snippetById, description: "", snippet: snippetById })];
|
|
170755
170816
|
}
|
|
170756
170817
|
}
|
|
@@ -170947,32 +171008,23 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
170947
171008
|
return editorProfile;
|
|
170948
171009
|
}
|
|
170949
171010
|
|
|
170950
|
-
|
|
171011
|
+
// this file contains the building blocks for a language default provider
|
|
170951
171012
|
const defaultContext = {
|
|
170952
171013
|
locale: "en",
|
|
170953
171014
|
};
|
|
170954
|
-
class
|
|
171015
|
+
class LanguageDefaultsBase {
|
|
170955
171016
|
constructor() {
|
|
170956
|
-
|
|
170957
|
-
|
|
171017
|
+
// #endregion
|
|
171018
|
+
// #region Protected properties
|
|
170958
171019
|
this._onDidChange = new Emitter();
|
|
170959
171020
|
this._profileMap = new Map();
|
|
170960
171021
|
this._apiContextMap = new Map();
|
|
170961
171022
|
this._onModelContextDidChange = new Emitter();
|
|
170962
171023
|
this._onDidModelContextChangeTimeout = -1;
|
|
171024
|
+
// #endregion
|
|
170963
171025
|
}
|
|
170964
|
-
|
|
170965
|
-
|
|
170966
|
-
}
|
|
170967
|
-
get onModelContextDidChange() {
|
|
170968
|
-
return this._onModelContextDidChange.event;
|
|
170969
|
-
}
|
|
170970
|
-
get languageId() {
|
|
170971
|
-
return this._languageId;
|
|
170972
|
-
}
|
|
170973
|
-
get languageOptions() {
|
|
170974
|
-
return this._languageOptions;
|
|
170975
|
-
}
|
|
171026
|
+
// #endregion
|
|
171027
|
+
// #region Protected methods
|
|
170976
171028
|
_fireModelContextDidChange(key) {
|
|
170977
171029
|
if (this._onDidModelContextChangeTimeout !== -1) {
|
|
170978
171030
|
return;
|
|
@@ -170988,51 +171040,20 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170988
171040
|
}
|
|
170989
171041
|
return modelId.toString();
|
|
170990
171042
|
}
|
|
170991
|
-
|
|
170992
|
-
|
|
170993
|
-
|
|
170994
|
-
|
|
170995
|
-
* If the locale is not provided then the 'en' locale is used.
|
|
170996
|
-
* @param modelId The model id for which to create the context.
|
|
170997
|
-
* @param definition The definition to use for the model context.
|
|
170998
|
-
* @param locale The locale to use for the model context.
|
|
170999
|
-
* @returns The EditorProfile for the model.
|
|
171000
|
-
*/
|
|
171001
|
-
async setProfileForModel(modelId, definition, apiContext = { locale: "en" }) {
|
|
171002
|
-
// Convert pre-defined profile to a runtime profile
|
|
171003
|
-
if (isPredefinedProfile(definition)) {
|
|
171004
|
-
definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
|
|
171005
|
-
}
|
|
171006
|
-
const intlStrings = await fetchT9NStringsBundle(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
171007
|
-
if (!intlStrings) {
|
|
171008
|
-
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
171009
|
-
}
|
|
171010
|
-
this.disposeEditorProfileForModel(modelId);
|
|
171011
|
-
const key = this._getApiKey(modelId);
|
|
171012
|
-
const editorProfile = new EditorProfile(definition, intlStrings);
|
|
171013
|
-
this._profileMap.set(key, editorProfile);
|
|
171014
|
-
const apiProfile = await editorProfile.toLSProfile();
|
|
171015
|
-
this.updateApiContextForModel(modelId, {
|
|
171016
|
-
locale: apiContext.locale,
|
|
171017
|
-
profile: apiProfile,
|
|
171018
|
-
snippets: apiContext.snippets,
|
|
171019
|
-
});
|
|
171043
|
+
// #endregion
|
|
171044
|
+
// #region Public methods
|
|
171045
|
+
get onDidChange() {
|
|
171046
|
+
return this._onDidChange.event;
|
|
171020
171047
|
}
|
|
171021
|
-
|
|
171022
|
-
|
|
171023
|
-
* It is the responsibility of the caller that created the editor profile to dispose it.
|
|
171024
|
-
* @param modelId The model id for which to dispose the editor profile.
|
|
171025
|
-
*/
|
|
171026
|
-
disposeEditorProfileForModel(modelId) {
|
|
171027
|
-
const key = this._getApiKey(modelId);
|
|
171028
|
-
this._profileMap.delete(key);
|
|
171048
|
+
get languageOptions() {
|
|
171049
|
+
return this._languageOptions;
|
|
171029
171050
|
}
|
|
171030
171051
|
/**
|
|
171031
|
-
* Dispose
|
|
171032
|
-
* @param modelId The model id for which to dispose the api context.
|
|
171052
|
+
* Dispose any cached resources for the model
|
|
171033
171053
|
*/
|
|
171034
|
-
|
|
171054
|
+
disposeForModel(modelId) {
|
|
171035
171055
|
const key = this._getApiKey(modelId);
|
|
171056
|
+
this._profileMap.delete(key);
|
|
171036
171057
|
if (this._apiContextMap.delete(key)) {
|
|
171037
171058
|
this._fireModelContextDidChange(key);
|
|
171038
171059
|
}
|
|
@@ -171065,24 +171086,12 @@ class ArcadeLanguageServiceDefaults {
|
|
|
171065
171086
|
this._apiContextMap.set(key, { ...currentApiContext, ...apiContext });
|
|
171066
171087
|
this._fireModelContextDidChange(key);
|
|
171067
171088
|
}
|
|
171068
|
-
|
|
171069
|
-
|
|
171070
|
-
|
|
171071
|
-
|
|
171072
|
-
|
|
171073
|
-
// Check if options have actually changed.
|
|
171074
|
-
// Avoid restarting the worker when no updates.
|
|
171075
|
-
// Today we only have the 'assetsPath' as a property
|
|
171076
|
-
if (this._languageOptions.assetsPath === languageOptions.assetsPath) {
|
|
171077
|
-
return;
|
|
171078
|
-
}
|
|
171079
|
-
this._languageOptions = { ...this._languageOptions, ...languageOptions };
|
|
171080
|
-
this._onDidChange.fire(this);
|
|
171089
|
+
get onModelContextDidChange() {
|
|
171090
|
+
return this._onModelContextDidChange.event;
|
|
171091
|
+
}
|
|
171092
|
+
get languageId() {
|
|
171093
|
+
return this._languageId;
|
|
171081
171094
|
}
|
|
171082
171095
|
}
|
|
171083
|
-
const arcadeDefaults = new ArcadeLanguageServiceDefaults();
|
|
171084
|
-
const arcade = {
|
|
171085
|
-
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults),
|
|
171086
|
-
};
|
|
171087
171096
|
|
|
171088
|
-
export {
|
|
171097
|
+
export { devToolsAwareTimeout as A, safeCall as B, isFeatureSetDefinition as C, Deferred as D, EditorProfile as E, main as F, monaco_editor_core_star as G, typescriptDefaults as H, IStandaloneThemeService as I, Emitter as J, KeyCode as K, LanguageDefaultsBase as L, MarkerSeverity as M, debounce as N, Range as R, StandaloneServices as S, Uri as U, importArcade as a, isURL as b, convertToEditorProfileDefinition as c, importRequest as d, editor as e, fetchT9nStringsBundle as f, getElementLocales as g, hasSameOrigin as h, isPredefinedProfile as i, generateGuid as j, getElementTheme as k, setValuesInString as l, supportedFields as m, generateTokensCSSForColorMap as n, commonjsGlobal as o, setFocusOnElement as p, quoteString as q, filterCollection as r, startLocaleObserver as s, createFilterExpression as t, languages as u, observeAncestorsMutation as v, KeyMod as w, addLTRMark as x, isNotUndefined as y, safeAsyncCall as z };
|