@arcgis/coding-components 4.31.0-next.5 → 4.31.0-next.51
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/sql-expr.worker.js +460 -7
- package/dist/arcgis-coding-components/assets/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 +30 -30
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-ae6af9eb.js → p-01da9b87.js} +2 -2
- package/dist/arcgis-coding-components/p-0e466656.js +6 -0
- package/dist/arcgis-coding-components/{p-3d5b8c4b.js → p-1e2c061f.js} +12 -12
- package/dist/arcgis-coding-components/{p-2c85c4b2.js → p-1f4dd8ea.js} +2 -2
- package/dist/arcgis-coding-components/{p-2d32fb1b.js → p-2d187b80.js} +3 -3
- package/dist/arcgis-coding-components/p-38b10ccb.js +6 -0
- package/dist/arcgis-coding-components/p-3e54590d.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-e31be2c5.js → p-65b4b095.js} +1 -1
- package/dist/arcgis-coding-components/{p-c41f6d7c.js → p-6787dd4c.js} +3 -3
- package/dist/arcgis-coding-components/{p-7f776266.js → p-833ae4ee.js} +2 -2
- package/dist/arcgis-coding-components/p-8b045366.js +6 -0
- package/dist/arcgis-coding-components/{p-7bd74de6.entry.js → p-9218ae01.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-de85c014.js → p-96bba7f5.js} +1 -1
- package/dist/arcgis-coding-components/p-cccd46d5.js +7 -0
- package/dist/arcgis-coding-components/p-d2287ce9.js +6 -0
- package/dist/arcgis-coding-components/{p-28d34a6e.entry.js → p-d3f04192.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-60739af5.js → p-d67469e8.js} +2 -2
- package/dist/arcgis-coding-components/{p-aa9d06e6.js → p-e16c05ff.js} +3 -3
- package/dist/cjs/{app-globals-886c7ef0.js → app-globals-b5d3bda0.js} +1 -1
- package/dist/cjs/arcade-defaults-a59b98c8.js +350 -0
- package/dist/cjs/{arcade-mode-2175ca7d.js → arcade-mode-bbcc64c9.js} +4 -4
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +60 -27
- package/dist/cjs/arcgis-coding-components.cjs.js +5 -5
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-b5a232da.js → css-50ab4ba4.js} +1 -1
- package/dist/cjs/{cssMode-f67c30d4.js → cssMode-cde87050.js} +2 -3
- package/dist/cjs/{html-d57fda6b.js → html-88890272.js} +2 -3
- package/dist/cjs/{htmlMode-c1513225.js → htmlMode-61827280.js} +2 -3
- package/dist/cjs/{index-6563aa26.js → index-1662a35f.js} +43 -15
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-d7362563.js → javascript-2c62b4fe.js} +3 -4
- package/dist/cjs/{jsonMode-1ea2f163.js → jsonMode-46c758c3.js} +2 -3
- package/dist/cjs/{language-defaults-base-66e1921b.js → language-defaults-base-1351cde9.js} +822 -1062
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{sql-expr-defaults-e30d7627.js → sql-expr-defaults-c1878109.js} +119 -95
- package/dist/cjs/sql-expr-mode-4e83413c.js +467 -0
- package/dist/cjs/{tsMode-9db1a5aa.js → tsMode-187fbff9.js} +2 -3
- package/dist/cjs/{typescript-f6d1b2b4.js → typescript-ed13744f.js} +2 -3
- package/dist/components/arcade-defaults.js +239 -4
- package/dist/components/arcade-mode.js +3 -2
- package/dist/components/arcade-results.js +3 -3
- package/dist/components/arcade-suggestions.js +2 -2
- package/dist/components/arcade-variables.js +2 -2
- package/dist/components/arcgis-arcade-editor.js +7 -6
- 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 +26 -26
- package/dist/components/arcgis-assets.js +2 -2
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +2 -2
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/{chunk-6TARY3NN.js → chunk-BMBYH3VH.js} +42 -74
- package/dist/components/code-editor.js +16 -23
- package/dist/components/fields.js +4 -4
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +4 -4
- package/dist/components/language-api-panel.js +2 -2
- package/dist/components/language-defaults-base.js +81 -323
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +77 -24
- package/dist/components/sql-expr-mode.js +282 -24951
- package/dist/components/sql-expression-fields.js +2 -2
- package/dist/components/useT9n.js +41 -2
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-4531df03.js → app-globals-f291bf24.js} +1 -1
- package/dist/esm/arcade-defaults-5377abc7.js +345 -0
- package/dist/esm/{arcade-mode-121c8f8b.js → arcade-mode-b416088e.js} +4 -4
- package/dist/esm/arcgis-arcade-editor_6.entry.js +60 -27
- package/dist/esm/arcgis-coding-components.js +6 -6
- package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-f03ce15d.js → css-7dfaa788.js} +1 -1
- package/dist/esm/{cssMode-9350af4a.js → cssMode-d241d003.js} +2 -3
- package/dist/esm/{html-8a5ee186.js → html-7ffb87f8.js} +2 -3
- package/dist/esm/{htmlMode-dbcde814.js → htmlMode-ffeaf752.js} +2 -3
- package/dist/esm/{index-71c8a762.js → index-2b9dd0f5.js} +43 -15
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-b11dc132.js → javascript-347f3916.js} +3 -4
- package/dist/esm/{jsonMode-7afef1a4.js → jsonMode-25ecfd73.js} +2 -3
- package/dist/esm/{language-defaults-base-47e8d77c.js → language-defaults-base-4fef2327.js} +819 -1062
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{sql-expr-defaults-fa9b2d75.js → sql-expr-defaults-e9b958fc.js} +116 -95
- package/dist/esm/sql-expr-mode-a8f41e49.js +463 -0
- package/dist/esm/{tsMode-76190ec2.js → tsMode-05c939be.js} +2 -3
- package/dist/esm/{typescript-346e9d47.js → typescript-dfb2a986.js} +2 -3
- package/dist/loader/cdn.js +2 -3
- package/dist/loader/index.cjs.js +2 -3
- package/dist/loader/index.es2017.js +2 -3
- package/dist/loader/index.js +2 -3
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +13 -3
- package/dist/types/components/arcade-results/arcade-results.d.ts +1 -1
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +1 -1
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +1 -1
- package/dist/types/components/code-editor/code-editor.d.ts +14 -4
- package/dist/types/components/language-api-panel/language-api-panel.d.ts +1 -1
- package/dist/types/components.d.ts +13 -13
- package/dist/types/data/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-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/stencil-public-runtime.d.ts +3 -8
- package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +1 -0
- package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -0
- package/dist/types/utils/arcade-monaco/arcade-profile-strategy.d.ts +9 -0
- package/dist/types/utils/fields.d.ts +2 -2
- package/dist/types/utils/profile/editor-profile.d.ts +7 -6
- package/dist/types/utils/profile/types.d.ts +53 -65
- package/dist/types/utils/profile/utils.d.ts +9 -8
- package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +56 -5
- package/dist/types/utils/sql-expr-monaco/sql-expr-constants.d.ts +61 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-contribution.d.ts +1 -11
- package/dist/types/utils/sql-expr-monaco/sql-expr-defaults.d.ts +0 -1
- package/dist/types/utils/sql-expr-monaco/sql-expr-language-features.d.ts +18 -534
- package/dist/types/utils/sql-expr-monaco/sql-expr-mode.d.ts +34 -1
- package/dist/types/utils/sql-expr-monaco/sql-expr-parser-utils.d.ts +30 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-service-accessors.d.ts +19 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +0 -7
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +73 -77
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation.d.ts +5 -6
- package/dist/types/utils/sql-expr-monaco/sql-expr-worker-manager.d.ts +2 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr.worker.d.ts +11 -8
- package/dist/types/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +13 -0
- package/dist/types/utils/sql-expr-monaco/types.d.ts +30 -28
- package/package.json +19 -19
- package/dist/arcgis-coding-components/p-43da2244.js +0 -6
- package/dist/arcgis-coding-components/p-5b62a1ac.entry.js +0 -6
- package/dist/arcgis-coding-components/p-65bb8c77.js +0 -6
- package/dist/arcgis-coding-components/p-88b5d206.js +0 -6
- package/dist/arcgis-coding-components/p-cbf4fec2.js +0 -6
- package/dist/arcgis-coding-components/p-e89166f0.js +0 -7
- package/dist/cjs/arcade-defaults-56b6742a.js +0 -116
- package/dist/cjs/sql-expr-mode-74c5c2c2.js +0 -25135
- package/dist/esm/arcade-defaults-d85fe608.js +0 -111
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/sql-expr-mode-931857be.js +0 -25132
- package/dist/types/utils/profile/predefined-profile.d.ts +0 -4
- package/dist/types/utils/sql-expr-monaco/DependentFiles/DateOnly.d.ts +0 -41
- package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlInterval.d.ts +0 -16
- package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlTimestampOffset.d.ts +0 -26
- package/dist/types/utils/sql-expr-monaco/DependentFiles/TimeOnly.d.ts +0 -37
- package/dist/types/utils/sql-expr-monaco/DependentFiles/UnknownTimeZone.d.ts +0 -11
- package/dist/types/utils/sql-expr-monaco/DependentFiles/WhereGrammar.d.ts +0 -122
- package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlCompareUtils.d.ts +0 -5
- package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlDateParsingUtils.d.ts +0 -18
- package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlUtils.d.ts +0 -6
- package/dist/types/utils/sql-expr-monaco/DependentFiles/standardizedFunctions.d.ts +0 -156
- package/dist/types/utils/sql-expr-monaco/DependentFiles/support.d.ts +0 -150
- package/dist/types/utils/sql-expr-monaco/PeggyGrammar/sql92grammar.d.ts +0 -1397
- package/dist/types/utils/sql-expr-monaco/libraries/date/properties/index.d.ts +0 -59
- package/dist/types/utils/sql-expr-monaco/libraries/numeric/properties/index.d.ts +0 -295
- package/dist/types/utils/sql-expr-monaco/libraries/string/properties/index.d.ts +0 -135
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-adapter.d.ts +0 -3
- package/dist/types/utils/sql-expr-profile/predefined-profile.d.ts +0 -2
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,19 +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.51
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const appGlobals = require('./app-globals-
|
|
10
|
+
const index = require('./index-1662a35f.js');
|
|
11
|
+
const appGlobals = require('./app-globals-b5d3bda0.js');
|
|
12
12
|
|
|
13
13
|
const defineCustomElements = async (win, options) => {
|
|
14
14
|
if (typeof window === 'undefined') return undefined;
|
|
15
15
|
await appGlobals.globalScripts();
|
|
16
|
-
return index.bootstrapLazy([["arcgis-sql-expression-fields.cjs",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]],["arcgis-arcade-editor_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"_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]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"
|
|
16
|
+
return index.bootstrapLazy([["arcgis-sql-expression-fields.cjs",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]],["arcgis-arcade-editor_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"_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]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"editorOptions":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"editorOptions":["editorOptionsPropChange"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"loading":[4],"apiLibrary":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32]}]]],["arcgis-sql-expression-editor.cjs",[[0,"arcgis-sql-expression-editor",{"profile":[16],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32]},null,{"profile":["_profileChanged"]}]]]], options);
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
exports.setNonce = index.setNonce;
|
|
@@ -1,12 +1,12 @@
|
|
|
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.51
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const languageDefaultsBase = require('./language-defaults-base-
|
|
9
|
-
const index = require('./index-
|
|
8
|
+
const languageDefaultsBase = require('./language-defaults-base-1351cde9.js');
|
|
9
|
+
const index = require('./index-1662a35f.js');
|
|
10
10
|
|
|
11
11
|
// src/framework.ts
|
|
12
12
|
function retrieveComponentMembers(component, isLit) {
|
|
@@ -18,7 +18,7 @@ function retrieveComponentMembers(component, isLit) {
|
|
|
18
18
|
([name, descriptor]) => descriptor.noAccessor ? void 0 : [
|
|
19
19
|
name,
|
|
20
20
|
[
|
|
21
|
-
(descriptor.
|
|
21
|
+
(descriptor.readOnly ? 2048 /* ReadOnly */ : 0) | (descriptor.state ? 32 /* State */ : descriptor.type === Number ? 2 /* Number */ : descriptor.type === Boolean ? 4 /* Boolean */ : 1 /* String */)
|
|
22
22
|
]
|
|
23
23
|
]
|
|
24
24
|
).filter(languageDefaultsBase.isNotUndefined)
|
|
@@ -144,10 +144,11 @@ var useRefSync = (value) => {
|
|
|
144
144
|
var shouldBypass = {
|
|
145
145
|
setter: false,
|
|
146
146
|
getter: false,
|
|
147
|
-
|
|
147
|
+
readOnly: false
|
|
148
148
|
};
|
|
149
149
|
var elementToInstance = /* @__PURE__ */ new WeakMap();
|
|
150
150
|
var _a;
|
|
151
|
+
_a = controllerSymbol;
|
|
151
152
|
var Controller = class {
|
|
152
153
|
constructor(component) {
|
|
153
154
|
this._callbacks = {
|
|
@@ -163,8 +164,8 @@ var Controller = class {
|
|
|
163
164
|
this._ready = new languageDefaultsBase.Deferred();
|
|
164
165
|
this._lifecycleCleanups = [];
|
|
165
166
|
this.connectedCalled = false;
|
|
166
|
-
this.
|
|
167
|
-
this.
|
|
167
|
+
this._loadCalled = false;
|
|
168
|
+
this.loadedCalled = false;
|
|
168
169
|
this[_a] = true;
|
|
169
170
|
this.ready = this._ready.promise;
|
|
170
171
|
/*
|
|
@@ -196,12 +197,12 @@ var Controller = class {
|
|
|
196
197
|
if (!connectedWillStillHappen && !this.connectedCalled) {
|
|
197
198
|
this.triggerConnected();
|
|
198
199
|
}
|
|
199
|
-
const loadWillStillHappen = !manager.
|
|
200
|
+
const loadWillStillHappen = !manager._loadCalled;
|
|
200
201
|
if (loadWillStillHappen) {
|
|
201
202
|
return;
|
|
202
203
|
}
|
|
203
204
|
this.triggerLoad().then(() => {
|
|
204
|
-
const loadedWillStillHappen = !manager.
|
|
205
|
+
const loadedWillStillHappen = !manager.loadedCalled;
|
|
205
206
|
if (loadedWillStillHappen) {
|
|
206
207
|
return;
|
|
207
208
|
}
|
|
@@ -343,10 +344,10 @@ var Controller = class {
|
|
|
343
344
|
}
|
|
344
345
|
/** @internal */
|
|
345
346
|
async triggerLoad() {
|
|
346
|
-
if (this.
|
|
347
|
+
if (this._loadCalled) {
|
|
347
348
|
return;
|
|
348
349
|
}
|
|
349
|
-
this.
|
|
350
|
+
this._loadCalled = true;
|
|
350
351
|
const genericController = this;
|
|
351
352
|
if (genericController.hostLoad) {
|
|
352
353
|
await languageDefaultsBase.safeAsyncCall(genericController.hostLoad, genericController);
|
|
@@ -358,7 +359,7 @@ var Controller = class {
|
|
|
358
359
|
}
|
|
359
360
|
/** @internal */
|
|
360
361
|
triggerLoaded() {
|
|
361
|
-
if (this.
|
|
362
|
+
if (this.loadedCalled) {
|
|
362
363
|
return;
|
|
363
364
|
}
|
|
364
365
|
const genericController = this;
|
|
@@ -366,7 +367,7 @@ var Controller = class {
|
|
|
366
367
|
languageDefaultsBase.safeCall(genericController.hostLoaded, genericController);
|
|
367
368
|
}
|
|
368
369
|
this._callbacks.hostLoaded.forEach(languageDefaultsBase.safeCall);
|
|
369
|
-
this.
|
|
370
|
+
this.loadedCalled = true;
|
|
370
371
|
}
|
|
371
372
|
/** @internal */
|
|
372
373
|
triggerUpdate(changedProperties) {
|
|
@@ -413,23 +414,17 @@ var Controller = class {
|
|
|
413
414
|
});
|
|
414
415
|
}
|
|
415
416
|
};
|
|
416
|
-
_a = controllerSymbol;
|
|
417
417
|
function callUpdate(callback) {
|
|
418
418
|
languageDefaultsBase.safeCall(callback, void 0, this);
|
|
419
419
|
}
|
|
420
|
-
var GenericController =
|
|
421
|
-
// Redundant constructor needed to improve typing
|
|
422
|
-
constructor(component) {
|
|
423
|
-
super(component);
|
|
424
|
-
}
|
|
425
|
-
};
|
|
420
|
+
var GenericController = Controller;
|
|
426
421
|
function makeProvisionalValue(base) {
|
|
427
422
|
if (typeof base !== "object" && typeof base !== "function" || base === null) {
|
|
428
423
|
return base;
|
|
429
424
|
}
|
|
430
|
-
const
|
|
425
|
+
const proxy = new Proxy(base, {
|
|
431
426
|
get(target, prop, receiver) {
|
|
432
|
-
if (cyclical.has(prop) && prop in target && target[prop] ===
|
|
427
|
+
if (cyclical.has(prop) && prop in target && target[prop] === proxy) {
|
|
433
428
|
return void 0;
|
|
434
429
|
}
|
|
435
430
|
if (prop in target || prop in Promise.prototype || typeof prop === "symbol") {
|
|
@@ -441,7 +436,7 @@ function makeProvisionalValue(base) {
|
|
|
441
436
|
return Reflect.set(target, prop, newValue, receiver);
|
|
442
437
|
}
|
|
443
438
|
});
|
|
444
|
-
return
|
|
439
|
+
return proxy;
|
|
445
440
|
}
|
|
446
441
|
var cyclical = /* @__PURE__ */ new Set(["exports", "_exports"]);
|
|
447
442
|
function toControllerHost(component) {
|
|
@@ -520,7 +515,7 @@ var ComponentInternals = class {
|
|
|
520
515
|
this.enabledWatchers = {};
|
|
521
516
|
this.allWatchers = {};
|
|
522
517
|
/**
|
|
523
|
-
* "
|
|
518
|
+
* "readOnly" is not enabled initially since we need to allow to set property
|
|
524
519
|
* default values in the constructor.
|
|
525
520
|
* For Stencil, readonly is enabled by the `readonly()` controller.
|
|
526
521
|
* For Lit, we have the following logic:
|
|
@@ -533,7 +528,7 @@ var ComponentInternals = class {
|
|
|
533
528
|
const internals = this.component.manager.internals;
|
|
534
529
|
Object.entries(internals.members).forEach(([name2, [type]]) => {
|
|
535
530
|
var _a2;
|
|
536
|
-
const isReadOnly = type & 2048 /*
|
|
531
|
+
const isReadOnly = type & 2048 /* ReadOnly */;
|
|
537
532
|
if (isReadOnly) {
|
|
538
533
|
(_a2 = internals.setters)[name2] ?? (_a2[name2] = []);
|
|
539
534
|
internals.setters[name2].push(internals.readonlySetter);
|
|
@@ -549,7 +544,7 @@ var ComponentInternals = class {
|
|
|
549
544
|
this.reactiveUtilsIntegrations = /* @__PURE__ */ new Set();
|
|
550
545
|
this._exports = /* @__PURE__ */ new WeakMap();
|
|
551
546
|
this.readonlySetter = (newValue, _oldValue, property) => {
|
|
552
|
-
if (shouldBypass.
|
|
547
|
+
if (shouldBypass.readOnly) {
|
|
553
548
|
return newValue;
|
|
554
549
|
}
|
|
555
550
|
throw new Error(
|
|
@@ -593,7 +588,10 @@ var ComponentInternals = class {
|
|
|
593
588
|
_getSetProxy(prototype, name2, type) {
|
|
594
589
|
const component = this.component;
|
|
595
590
|
const propType = getMemberType(component, name2);
|
|
596
|
-
|
|
591
|
+
let descriptor;
|
|
592
|
+
do {
|
|
593
|
+
descriptor = Object.getOwnPropertyDescriptor(prototype, name2);
|
|
594
|
+
} while (!descriptor && (prototype = Object.getPrototypeOf(prototype)));
|
|
597
595
|
if (!descriptor) {
|
|
598
596
|
return void 0;
|
|
599
597
|
}
|
|
@@ -601,11 +599,11 @@ var ComponentInternals = class {
|
|
|
601
599
|
const originalSet = descriptor.set;
|
|
602
600
|
const isGetterAlreadyOverwritten = customAccessor in originalGet;
|
|
603
601
|
const isSetterAlreadyOverwritten = customAccessor in originalSet;
|
|
604
|
-
|
|
605
|
-
const shouldOverwriteSet = !isSetterAlreadyOverwritten;
|
|
606
|
-
if (!shouldOverwriteGet && !shouldOverwriteSet) {
|
|
602
|
+
if (isGetterAlreadyOverwritten && isSetterAlreadyOverwritten) {
|
|
607
603
|
return;
|
|
608
604
|
}
|
|
605
|
+
const shouldOverwriteGet = !isGetterAlreadyOverwritten;
|
|
606
|
+
const shouldOverwriteSet = !isSetterAlreadyOverwritten;
|
|
609
607
|
const finalGetter = shouldOverwriteGet ? function getter() {
|
|
610
608
|
let value = originalGet.call(this);
|
|
611
609
|
const component2 = elementToInstance.get(this);
|
|
@@ -627,7 +625,17 @@ var ComponentInternals = class {
|
|
|
627
625
|
originalSet.call(this, rawNewValue);
|
|
628
626
|
return;
|
|
629
627
|
}
|
|
630
|
-
let newValue = component2.manager.isLit ?
|
|
628
|
+
let newValue = component2.manager.isLit ? (
|
|
629
|
+
/*
|
|
630
|
+
* Cast `null` to `undefined`. Reasons:
|
|
631
|
+
* - component can declare properties simply using
|
|
632
|
+
* `@property() name?: string;` and get accurate typings,
|
|
633
|
+
* without being forced to use
|
|
634
|
+
* `@property() name?: string | Nil;`.
|
|
635
|
+
* - simplifies checks in the code and thus reduces bugs
|
|
636
|
+
*/
|
|
637
|
+
rawNewValue ?? void 0
|
|
638
|
+
) : parsePropertyValue(rawNewValue, propType);
|
|
631
639
|
const internals = component2.manager.internals;
|
|
632
640
|
if (newValue === oldValue) {
|
|
633
641
|
originalSet.call(this, rawNewValue);
|
|
@@ -1054,12 +1062,12 @@ function genericGetSet(component, property, getSet2) {
|
|
|
1054
1062
|
}
|
|
1055
1063
|
}
|
|
1056
1064
|
var ignoreSet = (_, value) => value;
|
|
1057
|
-
function
|
|
1058
|
-
shouldBypass.
|
|
1065
|
+
function bypassReadOnly(callback) {
|
|
1066
|
+
shouldBypass.readOnly = true;
|
|
1059
1067
|
try {
|
|
1060
1068
|
return callback();
|
|
1061
1069
|
} finally {
|
|
1062
|
-
shouldBypass.
|
|
1070
|
+
shouldBypass.readOnly = false;
|
|
1063
1071
|
}
|
|
1064
1072
|
}
|
|
1065
1073
|
|
|
@@ -1110,7 +1118,7 @@ function setProxy(controller, { host, key, isReactive: assignedToProp }, initial
|
|
|
1110
1118
|
const manager = controller.component.manager;
|
|
1111
1119
|
const isReadOnly = manager.internals.setters[key]?.includes(manager.internals.readonlySetter);
|
|
1112
1120
|
if (isReadOnly) {
|
|
1113
|
-
|
|
1121
|
+
bypassReadOnly(() => {
|
|
1114
1122
|
genericHost[key] = controller.exports;
|
|
1115
1123
|
});
|
|
1116
1124
|
} else {
|
|
@@ -1119,46 +1127,56 @@ function setProxy(controller, { host, key, isReactive: assignedToProp }, initial
|
|
|
1119
1127
|
});
|
|
1120
1128
|
}
|
|
1121
1129
|
|
|
1122
|
-
//
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
this._ready.reject(error);
|
|
1141
|
-
console.error(error);
|
|
1142
|
-
});
|
|
1143
|
-
this.onLoad(async () => await resolved);
|
|
1144
|
-
} else {
|
|
1145
|
-
if (!constructorChangedExports || value !== void 0) {
|
|
1146
|
-
this.exports = value;
|
|
1147
|
-
}
|
|
1148
|
-
queueMicrotask(() => super.catchUpLifecycle());
|
|
1149
|
-
}
|
|
1150
|
-
} catch (error) {
|
|
1151
|
-
this._ready.reject(error);
|
|
1152
|
-
console.error(error);
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
/** Noop - will be called in the constructor instead */
|
|
1156
|
-
catchUpLifecycle() {
|
|
1157
|
-
return;
|
|
1158
|
-
}
|
|
1130
|
+
// #region convert editor profile to apiProfile
|
|
1131
|
+
/**
|
|
1132
|
+
* Converts an editor profile to an api profile.
|
|
1133
|
+
* The api profile is an optimized version of the editor profile designed for minimal data transfer between the main thread and the worker.
|
|
1134
|
+
*/
|
|
1135
|
+
const sqlExprEditorToApiProfile = (editorProfile) => {
|
|
1136
|
+
const { apiVersion, bundles, hiddenApiItems } = editorProfile.toEditorProfileDefinition();
|
|
1137
|
+
const variable = editorProfile.variables[0];
|
|
1138
|
+
if (!variable || !(variable.type === "featureSet")) {
|
|
1139
|
+
throw Error("No variable found in the editor profile");
|
|
1140
|
+
}
|
|
1141
|
+
const hydratedVariable = variableToApiProfile(variable);
|
|
1142
|
+
return {
|
|
1143
|
+
apiVersion,
|
|
1144
|
+
bundles,
|
|
1145
|
+
variables: [hydratedVariable],
|
|
1146
|
+
hiddenApiItems: hiddenApiItems?.map((s) => s.toLowerCase()),
|
|
1147
|
+
};
|
|
1159
1148
|
};
|
|
1160
|
-
|
|
1161
|
-
|
|
1149
|
+
function variableToApiProfile(variable) {
|
|
1150
|
+
const { name } = variable;
|
|
1151
|
+
const description = variable.getDescription();
|
|
1152
|
+
const { definition } = variable.toProfileVariableDefinition();
|
|
1153
|
+
const resultCompletion = {
|
|
1154
|
+
label: name,
|
|
1155
|
+
detail: name,
|
|
1156
|
+
insertText: name,
|
|
1157
|
+
insertTextMode: languageDefaultsBase.main.exports.InsertTextMode.asIs,
|
|
1158
|
+
insertTextFormat: languageDefaultsBase.main.exports.InsertTextFormat.PlainText,
|
|
1159
|
+
kind: languageDefaultsBase.main.exports.CompletionItemKind.Field,
|
|
1160
|
+
};
|
|
1161
|
+
const result = {
|
|
1162
|
+
name,
|
|
1163
|
+
description,
|
|
1164
|
+
type: "dictionary",
|
|
1165
|
+
properties: [],
|
|
1166
|
+
completion: resultCompletion,
|
|
1167
|
+
};
|
|
1168
|
+
// No fields or definition, then it will be a feature without any known fields
|
|
1169
|
+
if (!definition || !("fields" in definition)) {
|
|
1170
|
+
return result;
|
|
1171
|
+
}
|
|
1172
|
+
// Create properties for the fields
|
|
1173
|
+
// Also improve the feature completion documentation
|
|
1174
|
+
// TODO: should we add aliases to completion? what about domains?
|
|
1175
|
+
const [properties, featureCompletionDescription] = languageDefaultsBase.fieldsToProfileValues(definition.fields, description);
|
|
1176
|
+
result.properties = properties;
|
|
1177
|
+
resultCompletion.documentation = { kind: "markdown", value: featureCompletionDescription };
|
|
1178
|
+
return result;
|
|
1179
|
+
}
|
|
1162
1180
|
const tempHardcodedProfile = {
|
|
1163
1181
|
en: {
|
|
1164
1182
|
id: "field-calculation",
|
|
@@ -1207,16 +1225,28 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
1207
1225
|
});
|
|
1208
1226
|
return editorProfile;
|
|
1209
1227
|
}
|
|
1228
|
+
// #endregion
|
|
1210
1229
|
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1230
|
+
/**
|
|
1231
|
+
* Returns the sql-expression worker for the model.
|
|
1232
|
+
* Example:
|
|
1233
|
+
* ```ts
|
|
1234
|
+
* const sqlExpressionWorker = await getSqlExpressionWorker(model.uri);
|
|
1235
|
+
* ```
|
|
1236
|
+
* @returns sql-expression worker
|
|
1237
|
+
*/
|
|
1238
|
+
async function getSqlExprWorker(uri) {
|
|
1239
|
+
const mode = await getMode();
|
|
1240
|
+
return await mode.getSqlExprWorker(uri);
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Request the sql-expression mode
|
|
1244
|
+
* @returns sql-expression mode module
|
|
1245
|
+
*/
|
|
1246
|
+
async function getMode() {
|
|
1247
|
+
return await Promise.resolve().then(function () { return require('./sql-expr-mode-4e83413c.js'); });
|
|
1248
|
+
}
|
|
1214
1249
|
|
|
1215
|
-
// const defaultContext: ApiContext = {
|
|
1216
|
-
// locale: "en",
|
|
1217
|
-
// };
|
|
1218
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
1219
|
-
const apiPathTemplate = "${assetsPath}/api/sql-expression-api.t9n.${locale}.json";
|
|
1220
1250
|
const languageId = "arcgis-sql-expression";
|
|
1221
1251
|
class SqlExprDefaults extends languageDefaultsBase.LanguageDefaultsBase {
|
|
1222
1252
|
constructor() {
|
|
@@ -1229,7 +1259,6 @@ class SqlExprDefaults extends languageDefaultsBase.LanguageDefaultsBase {
|
|
|
1229
1259
|
updateFeatureLayerForModel(modelId, layer) {
|
|
1230
1260
|
const key = this._getApiKey(modelId);
|
|
1231
1261
|
this._layerMap.set(key, layer);
|
|
1232
|
-
this._onDidChange.fire(this);
|
|
1233
1262
|
}
|
|
1234
1263
|
setLanguageOptions(languageOptions) {
|
|
1235
1264
|
this._languageOptions = languageOptions;
|
|
@@ -1252,7 +1281,7 @@ class SqlExprDefaults extends languageDefaultsBase.LanguageDefaultsBase {
|
|
|
1252
1281
|
const key = this._getApiKey(modelId);
|
|
1253
1282
|
const editorProfile = new languageDefaultsBase.EditorProfile(definition, intlStrings);
|
|
1254
1283
|
this._profileMap.set(key, editorProfile);
|
|
1255
|
-
const apiProfile =
|
|
1284
|
+
const apiProfile = sqlExprEditorToApiProfile(editorProfile);
|
|
1256
1285
|
this.updateApiContextForModel(modelId, {
|
|
1257
1286
|
locale: apiContext.locale,
|
|
1258
1287
|
profile: apiProfile,
|
|
@@ -1264,22 +1293,17 @@ class SqlExprDefaults extends languageDefaultsBase.LanguageDefaultsBase {
|
|
|
1264
1293
|
}
|
|
1265
1294
|
async getApiLibrary(modelId) {
|
|
1266
1295
|
const uri = languageDefaultsBase.Uri.parse(modelId);
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
service = new g({
|
|
1270
|
-
assetsPath: index.getAssetPath("./assets/sql-expression-editor"),
|
|
1271
|
-
languageId,
|
|
1272
|
-
apiPathTemplate,
|
|
1273
|
-
});
|
|
1274
|
-
this._apiService = service;
|
|
1275
|
-
}
|
|
1276
|
-
return await service.getApiLibrary(this.getApiContextForModel(uri));
|
|
1296
|
+
const worker = await getSqlExprWorker(uri);
|
|
1297
|
+
return await worker.getApiLibrary(this.getApiContextForModel(uri));
|
|
1277
1298
|
}
|
|
1278
1299
|
}
|
|
1279
1300
|
const sqlExprDefaults = new SqlExprDefaults();
|
|
1280
1301
|
|
|
1302
|
+
exports.Controller = Controller;
|
|
1303
|
+
exports.getMode = getMode;
|
|
1281
1304
|
exports.getSet = getSet;
|
|
1282
|
-
exports.
|
|
1305
|
+
exports.proxyExports = proxyExports;
|
|
1306
|
+
exports.setAmbientComponent = setAmbientComponent;
|
|
1283
1307
|
exports.sqlExprDefaults = sqlExprDefaults;
|
|
1284
1308
|
exports.useControllerManager = useControllerManager;
|
|
1285
1309
|
exports.watch = watch;
|