@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,13 +1,13 @@
|
|
|
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
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
|
-
import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString,
|
|
7
|
+
import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizeCodeElement } from './markdown.js';
|
|
8
8
|
import { f as filterCollection } from './utilities.js';
|
|
9
|
-
import { u as useControllerManager } from './chunk-
|
|
10
|
-
import {
|
|
9
|
+
import { u as useControllerManager } from './chunk-3IUJHIAA.js';
|
|
10
|
+
import { r as setFocusOnElement } from './index2.js';
|
|
11
11
|
import { u as useT9n } from './useT9n.js';
|
|
12
12
|
import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
|
|
13
13
|
import "@esri/calcite-components/dist/components/calcite-list-item.js";
|
|
@@ -30,9 +30,11 @@ function isSuggestionGroups(item) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
const arcadeSuggestionsCss = ":host{background-color:var(--calcite-color-foreground-1)}:host .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}:host .sticky{position:sticky;top:0px;z-index:10}:host calcite-flow{height:100%}:host calcite-block p:first-of-type{margin-top:0}:host calcite-block code{font-family:var(--calcite-code-family)}:host calcite-block pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm)}:host calcite-block pre code{font-size:var(--calcite-font-size--2)}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
|
|
33
|
+
const ArcgisArcadeSuggestionsStyle0 = arcadeSuggestionsCss;
|
|
33
34
|
|
|
34
35
|
const __cmpMeta = [1,"arcgis-arcade-suggestions",{"suggestions":[1040],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},undefined,{"suggestions":["suggestionsPropChanged"]}];
|
|
35
36
|
const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeSuggestions extends HTMLElement {
|
|
37
|
+
connectedCallback() { this.manager._connectedCallback(); }
|
|
36
38
|
constructor() {
|
|
37
39
|
super();
|
|
38
40
|
this.__registerHost();
|
|
@@ -85,6 +87,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
85
87
|
this._themeChangedListener = onColorizeThemeChanged(() => (this._colorizeStyle = generateColorizeStyles()));
|
|
86
88
|
}
|
|
87
89
|
disconnectedCallback() {
|
|
90
|
+
this.manager._disconnectedCallback();
|
|
88
91
|
this._flowObserver?.disconnect();
|
|
89
92
|
this._themeChangedListener?.dispose();
|
|
90
93
|
}
|
|
@@ -122,7 +125,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
122
125
|
renderSuggestionListItems(suggestions) {
|
|
123
126
|
suggestions = filterCollection(suggestions, "label", this._filterValue);
|
|
124
127
|
if (!suggestions.length) {
|
|
125
|
-
return h("div", { class: "notice-container" }, this.messages.noitems
|
|
128
|
+
return h("div", { class: "notice-container" }, this.messages.noitems);
|
|
126
129
|
}
|
|
127
130
|
return suggestions.map((suggestion) => (h("calcite-list-item", { label: suggestion.label, description: suggestion.description, onCalciteListItemSelect: this._emitItemSelected, onKeyPress: this._emitItemSelected, "data-item": suggestion }, h("calcite-action", { slot: "actions-end", text: this.messages.expand ?? "", scale: "s", icon: "chevron-right", iconFlipRtl: true, onClick: this._showSuggestionDetail, "data-item": suggestion }))));
|
|
128
131
|
}
|
|
@@ -131,17 +134,17 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
131
134
|
if (!suggestion) {
|
|
132
135
|
return null;
|
|
133
136
|
}
|
|
134
|
-
return (h("calcite-flow-item", { heading: this.messages.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose, beforeBack: this._beforeBack }, h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand",
|
|
137
|
+
return (h("calcite-flow-item", { heading: this.messages.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose, beforeBack: this._beforeBack }, h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", iconStart: "code", scale: "s", onClick: this._emitItemSelected, ref: (e) => void e?.setFocus(), "data-item": suggestion }, this.messages.insert), h("calcite-block", { open: true, heading: suggestion.label, description: suggestion.description }, h("div", { innerHTML: convertMarkdownString(suggestion.documentation) }), h("pre", null, h("code", { ref: (e) => e === undefined ? undefined : void colorizeCodeElement(e, suggestion.code).catch(console.error) })))));
|
|
135
138
|
}
|
|
136
139
|
render() {
|
|
137
|
-
return (h(Host,
|
|
140
|
+
return (h(Host, { key: 'fc55be12efad3be68c0612c086f468826a9b13b7' }, h("style", { key: '5274396deaed7ea9f9275773bb9a2090f6713ad8' }, this._colorizeStyle), h("calcite-flow", { key: '94643eecc38f1cea329db6e2b4c4ec6477e6a081', ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { key: '9fd69601bbeb818527bb521cc288706a5cebc4b2', heading: this.messages.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose }, h("calcite-input", { key: 'd95ed08a58313c952e397e641d6d9d55a1d5d3d9', value: this._filterValue, icon: "magnifying-glass", clearable: true, onCalciteInputInput: this._updateFilterValue, class: "sticky", scale: "m" }), h("calcite-list", { key: 'c63c404469b5c21f867e763a3865f60104e0c23c' }, this.renderSuggestionGroups())), this.renderSuggestionFlowItem())));
|
|
138
141
|
}
|
|
139
142
|
static get assetsDirs() { return ["assets"]; }
|
|
140
143
|
get el() { return this; }
|
|
141
144
|
static get watchers() { return {
|
|
142
145
|
"suggestions": ["suggestionsPropChanged"]
|
|
143
146
|
}; }
|
|
144
|
-
static get style() { return
|
|
147
|
+
static get style() { return ArcgisArcadeSuggestionsStyle0; }
|
|
145
148
|
}, __cmpMeta);
|
|
146
149
|
function defineCustomElement() {
|
|
147
150
|
if (typeof customElements === "undefined") {
|
|
@@ -1,11 +1,11 @@
|
|
|
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
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
|
|
7
|
-
import { u as useControllerManager } from './chunk-
|
|
8
|
-
import {
|
|
7
|
+
import { u as useControllerManager } from './chunk-3IUJHIAA.js';
|
|
8
|
+
import { r as setFocusOnElement, d as createFilterExpression } from './index2.js';
|
|
9
9
|
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
10
10
|
import { u as useT9n } from './useT9n.js';
|
|
11
11
|
import "@esri/calcite-components/dist/components/calcite-flow-item.js";
|
|
@@ -19,6 +19,7 @@ import "@esri/calcite-components/dist/components/calcite-icon.js";
|
|
|
19
19
|
import "@esri/calcite-components/dist/components/calcite-flow.js";
|
|
20
20
|
|
|
21
21
|
const arcadeVariablesCss = ":host{background-color:var(--calcite-color-foreground-1)}:host .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}:host .sticky{position:sticky;top:0px;z-index:10}:host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
|
|
22
|
+
const ArcgisArcadeVariablesStyle0 = arcadeVariablesCss;
|
|
22
23
|
|
|
23
24
|
function stopEnterPropagation(e) {
|
|
24
25
|
if (e.key === "Enter") {
|
|
@@ -27,6 +28,7 @@ function stopEnterPropagation(e) {
|
|
|
27
28
|
}
|
|
28
29
|
const __cmpMeta = [1,"arcgis-arcade-variables",{"loading":[1028],"modelId":[1025,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},undefined,{"modelId":["modelIdPropChanged"]}];
|
|
29
30
|
const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeVariables extends HTMLElement {
|
|
31
|
+
connectedCallback() { this.manager._connectedCallback(); }
|
|
30
32
|
constructor() {
|
|
31
33
|
super();
|
|
32
34
|
this.__registerHost();
|
|
@@ -79,6 +81,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
79
81
|
}
|
|
80
82
|
//#endregion
|
|
81
83
|
disconnectedCallback() {
|
|
84
|
+
this.manager._disconnectedCallback();
|
|
82
85
|
this._flowObserver?.disconnect();
|
|
83
86
|
}
|
|
84
87
|
// #endregion
|
|
@@ -132,7 +135,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
132
135
|
});
|
|
133
136
|
loading = true;
|
|
134
137
|
}
|
|
135
|
-
return (h("calcite-flow-item", { heading: this.messages.profilevariables, description: collection.breadcrumb, beforeBack: this._beforeBack, closable: true, onCalciteFlowItemClose: this._emitClose }, h("calcite-action", { slot: "header-actions-end", text: this.messages.backtotop ?? "
|
|
138
|
+
return (h("calcite-flow-item", { heading: this.messages.profilevariables, description: collection.breadcrumb, beforeBack: this._beforeBack, closable: true, onCalciteFlowItemClose: this._emitClose }, h("calcite-action", { slot: "header-actions-end", text: this.messages.backtotop ?? "", scale: "m", hidden: topPanel, icon: "chevrons-left", iconFlipRtl: true, onClick: this._backToTop }), h("calcite-input", { value: this._filterValue, icon: "magnifying-glass", clearable: true, onCalciteInputInput: this._updateFilterValue, class: "sticky", scale: "m" }), loading ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: this.messages.loading ?? "" })) : (h("calcite-list", null, this.renderEditorVariables(collection)))));
|
|
136
139
|
};
|
|
137
140
|
}
|
|
138
141
|
renderEditorVariables(collection) {
|
|
@@ -140,7 +143,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
140
143
|
const filterExpression = createFilterExpression(this._filterValue);
|
|
141
144
|
const filteredVariables = collection.variables.filter((variable) => variable.passFilter(filterExpression));
|
|
142
145
|
if (!filteredVariables.length) {
|
|
143
|
-
return h("div", { class: "notice-container" }, this.messages.noitems
|
|
146
|
+
return h("div", { class: "notice-container" }, this.messages.noitems);
|
|
144
147
|
}
|
|
145
148
|
return filteredVariables.map((variable) => this.renderEditorVariable(variable));
|
|
146
149
|
}
|
|
@@ -156,7 +159,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
156
159
|
render() {
|
|
157
160
|
const profile = arcadeDefaults.getEditorProfileForModel(this.modelId ?? "");
|
|
158
161
|
if (!this.loading && !profile?.variables.length) {
|
|
159
|
-
return (h("calcite-flow", null, h("calcite-flow-item", { heading: this.messages.profilevariables, closable: true, onCalciteFlowItemClose: this._emitClose }, h("div", { class: "notice-container" }, this.messages.noprofilevariablesmessage
|
|
162
|
+
return (h("calcite-flow", null, h("calcite-flow-item", { heading: this.messages.profilevariables, closable: true, onCalciteFlowItemClose: this._emitClose }, h("div", { class: "notice-container" }, this.messages.noprofilevariablesmessage))));
|
|
160
163
|
}
|
|
161
164
|
return (h("calcite-flow", { ref: (ref) => this.flowFocusHandler(ref) }, this.collectionBasedVariableRenderer(profile, true)(), this._flowItemRenderers.map((renderer) => renderer())));
|
|
162
165
|
}
|
|
@@ -165,7 +168,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
165
168
|
static get watchers() { return {
|
|
166
169
|
"modelId": ["modelIdPropChanged"]
|
|
167
170
|
}; }
|
|
168
|
-
static get style() { return
|
|
171
|
+
static get style() { return ArcgisArcadeVariablesStyle0; }
|
|
169
172
|
}, __cmpMeta);
|
|
170
173
|
function defineCustomElement() {
|
|
171
174
|
if (typeof customElements === "undefined") {
|
|
@@ -1,20 +1,19 @@
|
|
|
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
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { KeyCode } from 'monaco-editor';
|
|
8
|
-
import {
|
|
9
|
-
import { u as updateThemeColors, c as colorRulesKeys, s as setupMonacoEnvironment
|
|
10
|
-
import { u as useControllerManager } from './chunk-
|
|
11
|
-
import { D as Deferred,
|
|
12
|
-
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
8
|
+
import { d as defineCustomElement$6, e as executeScript, D as DevelopersWebSitePath } from './arcade-results.js';
|
|
9
|
+
import { d as defineCustomElement$3, u as updateThemeColors, c as colorRulesKeys, s as setupMonacoEnvironment } from './code-editor.js';
|
|
10
|
+
import { u as useControllerManager, g as getSet } from './chunk-3IUJHIAA.js';
|
|
11
|
+
import { D as Deferred, g as generateGuid, e as getElementTheme } from './index2.js';
|
|
12
|
+
import { b as arcadeDefaults, g as getArcadeDiagnosticService } from './arcade-defaults.js';
|
|
13
13
|
import { u as useT9n } from './useT9n.js';
|
|
14
|
-
import { d as defineCustomElement$
|
|
15
|
-
import { d as defineCustomElement$4 } from './arcade-
|
|
16
|
-
import { d as defineCustomElement$
|
|
17
|
-
import { d as defineCustomElement$2 } from './code-editor.js';
|
|
14
|
+
import { d as defineCustomElement$5 } from './arcade-suggestions.js';
|
|
15
|
+
import { d as defineCustomElement$4 } from './arcade-variables.js';
|
|
16
|
+
import { d as defineCustomElement$2 } from './language-api-panel.js';
|
|
18
17
|
import "@esri/calcite-components/dist/components/calcite-action-bar.js";
|
|
19
18
|
import "@esri/calcite-components/dist/components/calcite-action-group.js";
|
|
20
19
|
import "@esri/calcite-components/dist/components/calcite-action.js";
|
|
@@ -22,9 +21,11 @@ import "@esri/calcite-components/dist/components/calcite-tooltip.js";
|
|
|
22
21
|
import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
|
|
23
22
|
|
|
24
23
|
const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1);height:100%}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:25%}arcgis-arcade-editor .side-panel{max-width:45%;width:600px}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor arcgis-arcade-results{border-top:1px solid var(--calcite-color-border-3);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}";
|
|
24
|
+
const ArcgisArcadeEditorStyle0 = arcadeEditorCss;
|
|
25
25
|
|
|
26
|
-
const __cmpMeta = [0,"arcgis-arcade-editor",{"profile":[1040],"script":[1025],"testData":[1040],"suggestions":[1040],"snippets":[1040],"hideDocumentationActions":[1028,"hide-documentation-actions"],"hideSideBar":[1028,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[1040],"editorInstance":[1040],"
|
|
26
|
+
const __cmpMeta = [0,"arcgis-arcade-editor",{"profile":[1040],"script":[1025],"testData":[1040],"suggestions":[1040],"snippets":[1040],"hideDocumentationActions":[1028,"hide-documentation-actions"],"hideSideBar":[1028,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[1040],"editorInstance":[1040],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},undefined,{"messages":["_messagesChanged"],"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}];
|
|
27
27
|
const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeEditor extends HTMLElement {
|
|
28
|
+
connectedCallback() { this.manager._connectedCallback(); }
|
|
28
29
|
constructor() {
|
|
29
30
|
super();
|
|
30
31
|
this.__registerHost();
|
|
@@ -50,7 +51,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
50
51
|
this._executingScript = true;
|
|
51
52
|
this._consoleLogs = [];
|
|
52
53
|
setTimeout(() => void (async () => {
|
|
53
|
-
const script =
|
|
54
|
+
const script = this._codeEditorElt?.value;
|
|
54
55
|
this._executionResult = await executeScript(editorProfile.definition, script, testContext, (log) => setTimeout(() => (this._consoleLogs = [...this._consoleLogs, log]), 0));
|
|
55
56
|
this._executingScript = false;
|
|
56
57
|
})(), 0);
|
|
@@ -83,14 +84,15 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
83
84
|
this._insertAsText = (e) => void this._codeEditorElt?.insertText(e.detail).catch(console.error);
|
|
84
85
|
this._onResultPanelChange = (e) => void (this._resultPanel = e.detail);
|
|
85
86
|
this._onExecutionPanelClose = () => void (this._showExecutionPanel = false);
|
|
86
|
-
this.
|
|
87
|
-
this._preparingProfile = false;
|
|
87
|
+
this._preparingArcade = false;
|
|
88
88
|
this._editorProfile = undefined;
|
|
89
|
+
this._apiLibrary = undefined;
|
|
89
90
|
this._showExecutionPanel = false;
|
|
90
91
|
this._resultPanel = "output";
|
|
91
92
|
this._executingScript = false;
|
|
92
93
|
this._consoleLogs = [];
|
|
93
94
|
this._executionResult = undefined;
|
|
95
|
+
this.messages = useT9n();
|
|
94
96
|
this.profile = undefined;
|
|
95
97
|
this.script = "";
|
|
96
98
|
this.testData = undefined;
|
|
@@ -101,13 +103,16 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
101
103
|
this.sideActionBarExpanded = false;
|
|
102
104
|
this.openedSidePanel = "none";
|
|
103
105
|
this.editorOptions = undefined;
|
|
104
|
-
this.editorInstance =
|
|
106
|
+
this.editorInstance = getSet(undefined, {
|
|
105
107
|
get: () => this._codeEditorElt?.editorInstance,
|
|
106
108
|
set: "ignore",
|
|
107
109
|
});
|
|
108
110
|
}
|
|
111
|
+
_messagesChanged() {
|
|
112
|
+
this._updateArcadeDefaults().catch(console.error);
|
|
113
|
+
}
|
|
109
114
|
_profileChanged() {
|
|
110
|
-
this.
|
|
115
|
+
this._updateArcadeDefaults().catch(console.error);
|
|
111
116
|
}
|
|
112
117
|
_testDataChanged() {
|
|
113
118
|
if (!this._showExecutionPanel) {
|
|
@@ -156,7 +161,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
156
161
|
return { type: "error", value: "Missing editor profile", error: null };
|
|
157
162
|
}
|
|
158
163
|
await this._componentReadyDefer.promise;
|
|
159
|
-
const script =
|
|
164
|
+
const script = this._codeEditorElt?.value;
|
|
160
165
|
return await executeScript(editorProfile.definition, script, this.testData);
|
|
161
166
|
}
|
|
162
167
|
/**
|
|
@@ -189,9 +194,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
189
194
|
// However, we need to setup the environment before the code editor is instantiated because
|
|
190
195
|
// we need to access the arcade language service to get the api library.
|
|
191
196
|
setupMonacoEnvironment(assetsPath);
|
|
192
|
-
await this.
|
|
193
|
-
// The profile has to be refreshed on locale change
|
|
194
|
-
this.manager.watch("messages", () => void this._updateEditorProfile().catch(console.error));
|
|
197
|
+
await this._updateArcadeDefaults();
|
|
195
198
|
}
|
|
196
199
|
async componentDidLoad() {
|
|
197
200
|
// Mark on component as ready.
|
|
@@ -200,7 +203,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
200
203
|
// Start listening to the validation diagnostics.
|
|
201
204
|
// We are doing this as late as possible
|
|
202
205
|
const diagnosticsService = await getArcadeDiagnosticService();
|
|
203
|
-
this._disposables.push(diagnosticsService.onDiagnosticsChange((event) => !this.
|
|
206
|
+
this._disposables.push(diagnosticsService.onDiagnosticsChange((event) => !this._preparingArcade && this.arcgisDiagnosticsChange.emit(event.diagnostics)));
|
|
204
207
|
// Get editor instance and add action
|
|
205
208
|
this.editorInstance?.addAction({
|
|
206
209
|
// An unique identifier for the action.
|
|
@@ -218,35 +221,32 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
218
221
|
await this._codeEditorElt?.setFocus();
|
|
219
222
|
}
|
|
220
223
|
disconnectedCallback() {
|
|
221
|
-
|
|
222
|
-
arcadeDefaults.
|
|
224
|
+
this.manager._disconnectedCallback();
|
|
225
|
+
arcadeDefaults.disposeForModel(this._modelId);
|
|
223
226
|
while (this._disposables.length) {
|
|
224
227
|
this._disposables.pop()?.dispose();
|
|
225
228
|
}
|
|
226
229
|
}
|
|
227
230
|
// #endregion
|
|
228
231
|
// #region Private methods API
|
|
229
|
-
async
|
|
230
|
-
// The
|
|
231
|
-
//
|
|
232
|
-
|
|
233
|
-
this._preparingProfile = true;
|
|
232
|
+
async _updateArcadeDefaults() {
|
|
233
|
+
// The profile definition or the locale has changed.
|
|
234
|
+
// Ask the arcade defaults to prepare the profile for the model and to download the api library.
|
|
235
|
+
this._preparingArcade = true;
|
|
234
236
|
try {
|
|
235
|
-
// Set a new profile for the model using the profile definition and the locale.
|
|
236
237
|
await arcadeDefaults.setProfileForModel(this._modelId, this.profile, {
|
|
237
238
|
locale: this.messages._t9nLocale,
|
|
238
239
|
snippets: this.snippets,
|
|
239
240
|
});
|
|
240
|
-
// Get the corresponding editor profile for the model.
|
|
241
|
-
// The editor profile contains the specialized profile for the UI.
|
|
242
241
|
this._editorProfile = arcadeDefaults.getEditorProfileForModel(this._modelId);
|
|
242
|
+
this._apiLibrary = await arcadeDefaults.getApiLibrary(this._modelId);
|
|
243
243
|
}
|
|
244
244
|
catch {
|
|
245
245
|
this._editorProfile = undefined;
|
|
246
246
|
}
|
|
247
247
|
finally {
|
|
248
248
|
this._editorProfilePromise = Promise.resolve(this._editorProfile);
|
|
249
|
-
this.
|
|
249
|
+
this._preparingArcade = false;
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
// #endregion
|
|
@@ -255,17 +255,17 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
255
255
|
if (!this.testData) {
|
|
256
256
|
return null;
|
|
257
257
|
}
|
|
258
|
-
return (h("calcite-action-bar", { class: "main-action-bar", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { scale: "s" }, h("calcite-action", { text: this.messages.run ?? "
|
|
258
|
+
return (h("calcite-action-bar", { class: "main-action-bar", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { scale: "s" }, h("calcite-action", { text: this.messages.run ?? "", textEnabled: true, icon: "play", scale: "s", loading: this._preparingArcade, onClick: () => void this._executeScript().catch(console.error) }), this._executionResult ? (h("calcite-action", { text: this.messages.lastresults ?? "", active: this._showExecutionPanel, textEnabled: true, icon: "access-string-results", iconFlipRtl: true, scale: "s", onClick: this._toggleShowExecutionPanel })) : null)));
|
|
259
259
|
}
|
|
260
260
|
//#endregion
|
|
261
261
|
//#region Render Main Panel
|
|
262
262
|
renderMainPanel() {
|
|
263
|
-
return (h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId,
|
|
263
|
+
return (h("arcgis-code-editor", { class: "flex-adjustable", editorOptions: this.editorOptions, language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, onArcgisValueChange: this._onCodeEditorValueChange, ref: (e) => (this._codeEditorElt = e) }));
|
|
264
264
|
}
|
|
265
265
|
//#endregion
|
|
266
266
|
//#region Rendering the Action Bar
|
|
267
|
-
renderAction({ id, label, icon, active, panelName, onClick = this._toggleSidePanel, }) {
|
|
268
|
-
return (h(Fragment, null, h("calcite-action", { id: id, text: label, icon: icon, active: active, onClick: onClick, "data-panel-name": panelName }), !this.sideActionBarExpanded && (h("calcite-tooltip", {
|
|
267
|
+
renderAction({ id, label, icon, active, panelName, iconFlipRtl = false, onClick = this._toggleSidePanel, }) {
|
|
268
|
+
return (h(Fragment, null, h("calcite-action", { id: id, text: label, icon: icon, active: active, onClick: onClick, "data-panel-name": panelName, iconFlipRtl: iconFlipRtl }), !this.sideActionBarExpanded && (h("calcite-tooltip", { "reference-element": id }, h("span", null, label)))));
|
|
269
269
|
}
|
|
270
270
|
renderSideActionBar() {
|
|
271
271
|
if (this.hideSideBar) {
|
|
@@ -273,20 +273,20 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
273
273
|
}
|
|
274
274
|
return (h("calcite-action-bar", { class: "side-action-bar border-inline-start", expanded: !!this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h("calcite-action-group", null, this.renderAction({
|
|
275
275
|
id: "profile-variables-action",
|
|
276
|
-
label: this.messages.profilevariables ?? "
|
|
276
|
+
label: this.messages.profilevariables ?? "",
|
|
277
277
|
icon: "profile-variables",
|
|
278
278
|
active: this.openedSidePanel === "variables",
|
|
279
279
|
panelName: "variables",
|
|
280
280
|
}), this.renderAction({
|
|
281
281
|
id: "function-action",
|
|
282
|
-
label: this.messages.constantsandfunctions ?? "
|
|
282
|
+
label: this.messages.constantsandfunctions ?? "",
|
|
283
283
|
icon: "function",
|
|
284
284
|
active: this.openedSidePanel === "api",
|
|
285
285
|
panelName: "api",
|
|
286
286
|
}), this.suggestions?.length
|
|
287
287
|
? this.renderAction({
|
|
288
288
|
id: "suggestions-action",
|
|
289
|
-
label: this.messages.suggestions ?? "
|
|
289
|
+
label: this.messages.suggestions ?? "",
|
|
290
290
|
icon: "lightbulb",
|
|
291
291
|
active: this.openedSidePanel === "suggestions",
|
|
292
292
|
panelName: "suggestions",
|
|
@@ -295,10 +295,11 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
295
295
|
? null
|
|
296
296
|
: this.renderAction({
|
|
297
297
|
id: "developer-website-action",
|
|
298
|
-
label: this.messages.help ?? "
|
|
298
|
+
label: this.messages.help ?? "",
|
|
299
299
|
icon: "question",
|
|
300
300
|
active: false,
|
|
301
301
|
panelName: "none",
|
|
302
|
+
iconFlipRtl: true,
|
|
302
303
|
onClick: this._openArcadeHelp,
|
|
303
304
|
}))));
|
|
304
305
|
}
|
|
@@ -310,9 +311,9 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
310
311
|
}
|
|
311
312
|
switch (this.openedSidePanel) {
|
|
312
313
|
case "api":
|
|
313
|
-
return (h("arcgis-
|
|
314
|
+
return (h("arcgis-language-api-panel", { class: "side-panel flex-panel border-inline-start", loading: this._preparingArcade, apiLibrary: this._apiLibrary, hideDocumentationActions: this.hideDocumentationActions, onArcgisItemSelected: this._insertAsSnippet, onArcgisClose: this._toggleSidePanel, "data-panel-name": "none" }));
|
|
314
315
|
case "variables":
|
|
315
|
-
return (h("arcgis-arcade-variables", { class: "side-panel flex-panel border-inline-start", loading: this.
|
|
316
|
+
return (h("arcgis-arcade-variables", { class: "side-panel flex-panel border-inline-start", loading: this._preparingArcade, modelId: this._modelId, onArcgisItemSelected: this._insertAsText, onArcgisClose: this._toggleSidePanel, "data-panel-name": "none" }));
|
|
316
317
|
case "suggestions":
|
|
317
318
|
return (h("arcgis-arcade-suggestions", { class: "side-panel flex-panel border-inline-start", suggestions: this.suggestions, onArcgisItemSelected: this._insertAsText, onArcgisClose: this._toggleSidePanel, "data-panel-name": "none" }));
|
|
318
319
|
default:
|
|
@@ -330,49 +331,50 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
330
331
|
//#endregion
|
|
331
332
|
//#region Render
|
|
332
333
|
render() {
|
|
333
|
-
return (h(Host,
|
|
334
|
+
return (h(Host, { key: '024ff08c3853fc24aa904de8b498dc99219661be' }, this.renderMainActionBar(), h("div", { key: 'eae67c4446cc0f440008deffbdeef933fd48ee79', class: "flex-row flex-adjustable" }, h("div", { key: '7c508b4d7410ec6e4440e9946fbe3a9f5318b5c3', class: "flex-column flex-adjustable" }, this.renderMainPanel(), this.renderResultsPanel()), this.renderSidePanel(), this.renderSideActionBar())));
|
|
334
335
|
}
|
|
335
336
|
static get assetsDirs() { return ["assets"]; }
|
|
336
337
|
get el() { return this; }
|
|
337
338
|
static get watchers() { return {
|
|
339
|
+
"messages": ["_messagesChanged"],
|
|
338
340
|
"profile": ["_profileChanged"],
|
|
339
341
|
"testData": ["_testDataChanged"],
|
|
340
342
|
"snippets": ["_snippetChanged"]
|
|
341
343
|
}; }
|
|
342
|
-
static get style() { return
|
|
344
|
+
static get style() { return ArcgisArcadeEditorStyle0; }
|
|
343
345
|
}, __cmpMeta);
|
|
344
346
|
function defineCustomElement$1() {
|
|
345
347
|
if (typeof customElements === "undefined") {
|
|
346
348
|
return;
|
|
347
349
|
}
|
|
348
|
-
const components = ["arcgis-arcade-editor", "arcgis-arcade-
|
|
350
|
+
const components = ["arcgis-arcade-editor", "arcgis-arcade-results", "arcgis-arcade-suggestions", "arcgis-arcade-variables", "arcgis-code-editor", "arcgis-language-api-panel"];
|
|
349
351
|
components.forEach(tagName => { switch (tagName) {
|
|
350
352
|
case "arcgis-arcade-editor":
|
|
351
353
|
if (!customElements.get(tagName)) {
|
|
352
354
|
customElements.define(tagName, ArcgisArcadeEditor$1);
|
|
353
355
|
}
|
|
354
356
|
break;
|
|
355
|
-
case "arcgis-arcade-
|
|
357
|
+
case "arcgis-arcade-results":
|
|
356
358
|
if (!customElements.get(tagName)) {
|
|
357
359
|
defineCustomElement$6();
|
|
358
360
|
}
|
|
359
361
|
break;
|
|
360
|
-
case "arcgis-arcade-
|
|
362
|
+
case "arcgis-arcade-suggestions":
|
|
361
363
|
if (!customElements.get(tagName)) {
|
|
362
364
|
defineCustomElement$5();
|
|
363
365
|
}
|
|
364
366
|
break;
|
|
365
|
-
case "arcgis-arcade-
|
|
367
|
+
case "arcgis-arcade-variables":
|
|
366
368
|
if (!customElements.get(tagName)) {
|
|
367
369
|
defineCustomElement$4();
|
|
368
370
|
}
|
|
369
371
|
break;
|
|
370
|
-
case "arcgis-
|
|
372
|
+
case "arcgis-code-editor":
|
|
371
373
|
if (!customElements.get(tagName)) {
|
|
372
374
|
defineCustomElement$3();
|
|
373
375
|
}
|
|
374
376
|
break;
|
|
375
|
-
case "arcgis-
|
|
377
|
+
case "arcgis-language-api-panel":
|
|
376
378
|
if (!customElements.get(tagName)) {
|
|
377
379
|
defineCustomElement$2();
|
|
378
380
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
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
6
|
import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
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
6
|
import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
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
6
|
import { A as ArcgisArcadeVariables$1, d as defineCustomElement$1 } from './arcade-variables.js';
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
5
|
-
* v4.31.0-next.
|
|
5
|
+
* v4.31.0-next.10
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* Get the base path to where the package assets can be found.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
5
|
-
* v4.31.0-next.
|
|
5
|
+
* v4.31.0-next.10
|
|
6
6
|
*/
|
|
7
7
|
let resourceUrl = "https://js.arcgis.com/coding-components/next/";
|
|
8
8
|
export const getArcgisAssetPath = (path) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
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
6
|
import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
|
|
7
7
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface ArcgisLanguageApiPanel extends Components.ArcgisLanguageApiPanel, HTMLElement {}
|
|
4
|
+
export const ArcgisLanguageApiPanel: {
|
|
5
|
+
prototype: ArcgisLanguageApiPanel;
|
|
6
|
+
new (): ArcgisLanguageApiPanel;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
* v4.31.0-next.10
|
|
5
|
+
*/
|
|
6
|
+
import { A as ArcgisLanguageApiPanel$1, d as defineCustomElement$1 } from './language-api-panel.js';
|
|
7
|
+
|
|
8
|
+
const ArcgisLanguageApiPanel = ArcgisLanguageApiPanel$1;
|
|
9
|
+
const defineCustomElement = defineCustomElement$1;
|
|
10
|
+
|
|
11
|
+
export { ArcgisLanguageApiPanel, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface ArcgisSqlExpressionEditor extends Components.ArcgisSqlExpressionEditor, HTMLElement {}
|
|
4
|
+
export const ArcgisSqlExpressionEditor: {
|
|
5
|
+
prototype: ArcgisSqlExpressionEditor;
|
|
6
|
+
new (): ArcgisSqlExpressionEditor;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|