@arcgis/coding-components 4.31.0-next.4 → 4.31.0-next.41
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 +446 -7
- package/dist/arcgis-coding-components/assets/language-api-panel/t9n/language-api-panel.t9n.ca.json +1 -1
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-b23a3f4e.entry.js → p-1da63080.entry.js} +2 -2
- package/dist/arcgis-coding-components/p-1e1caadf.js +7 -0
- package/dist/arcgis-coding-components/{p-736d890c.js → p-4cc71357.js} +3 -3
- package/dist/arcgis-coding-components/p-51b2fc72.js +6 -0
- package/dist/arcgis-coding-components/{p-4e56f8ae.js → p-5c89b15d.js} +1 -1
- package/dist/arcgis-coding-components/{p-5e173b51.entry.js → p-5f567b03.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-a256ee9c.js → p-64bbd36c.js} +12 -12
- package/dist/arcgis-coding-components/{p-8d67b196.js → p-71191013.js} +3 -3
- package/dist/arcgis-coding-components/{p-86625411.js → p-83b29033.js} +2 -2
- package/dist/arcgis-coding-components/p-909bbd87.entry.js +6 -0
- package/dist/arcgis-coding-components/p-9413c464.js +6 -0
- package/dist/arcgis-coding-components/p-9bb6dd26.js +6 -0
- package/dist/arcgis-coding-components/{p-ab0f6db7.js → p-ba1ec66d.js} +3 -3
- package/dist/arcgis-coding-components/p-bb851fa6.js +6 -0
- package/dist/arcgis-coding-components/{p-b570d7af.js → p-bd267380.js} +2 -2
- package/dist/arcgis-coding-components/{p-5da03560.js → p-d597b9ea.js} +1 -1
- package/dist/arcgis-coding-components/{p-26c67f7c.js → p-e1c8570a.js} +2 -2
- package/dist/arcgis-coding-components/{p-8e93417c.js → p-f4af9e3a.js} +2 -2
- package/dist/cjs/{app-globals-209c2310.js → app-globals-5b428a6f.js} +1 -1
- package/dist/cjs/arcade-defaults-c88dcbd9.js +349 -0
- package/dist/cjs/{arcade-mode-f2c3951e.js → arcade-mode-a369164c.js} +3 -3
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +20 -26
- 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-bbd000cd.js → css-db73fa85.js} +1 -1
- package/dist/cjs/{cssMode-ad163e66.js → cssMode-714f53d0.js} +2 -3
- package/dist/cjs/{html-5c67b9d0.js → html-881afd14.js} +2 -3
- package/dist/cjs/{htmlMode-e32a97bd.js → htmlMode-d513ae10.js} +2 -3
- package/dist/cjs/{index-8b891c40.js → index-fd58ccf1.js} +43 -15
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-e159fa2f.js → javascript-8ea0cace.js} +3 -4
- package/dist/cjs/{jsonMode-5c107443.js → jsonMode-345b67b0.js} +2 -3
- package/dist/cjs/{language-defaults-base-4300e691.js → language-defaults-base-cd5a367b.js} +822 -1062
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{sql-expr-defaults-783d9c24.js → sql-expr-defaults-5ab67e9d.js} +114 -52
- package/dist/cjs/sql-expr-mode-aaf5cadf.js +467 -0
- package/dist/cjs/{tsMode-83c4587f.js → tsMode-085f051d.js} +2 -3
- package/dist/cjs/{typescript-f6ca5d84.js → typescript-3adfcc8d.js} +2 -3
- package/dist/components/arcade-defaults.js +238 -4
- package/dist/components/arcade-mode.js +2 -1
- 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-ZZIYM65N.js} +38 -30
- 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 +2 -2
- 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 +2 -2
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-60a61d0d.js → app-globals-9b5f37f3.js} +1 -1
- package/dist/esm/arcade-defaults-23d01109.js +344 -0
- package/dist/esm/{arcade-mode-7e6764ac.js → arcade-mode-30a9597a.js} +3 -3
- package/dist/esm/arcgis-arcade-editor_6.entry.js +21 -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-7d75b7ca.js → css-442d4a5a.js} +1 -1
- package/dist/esm/{cssMode-95305ae2.js → cssMode-8833e7da.js} +2 -3
- package/dist/esm/{html-84fc596c.js → html-1adb92d5.js} +2 -3
- package/dist/esm/{htmlMode-c961f619.js → htmlMode-d45f4634.js} +2 -3
- package/dist/esm/{index-1c1754c0.js → index-d9b2b45b.js} +43 -15
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-0aa4505f.js → javascript-5bf60fbf.js} +3 -4
- package/dist/esm/{jsonMode-86b234eb.js → jsonMode-cba63cda.js} +2 -3
- package/dist/esm/{language-defaults-base-949fa7fb.js → language-defaults-base-49508cc9.js} +819 -1062
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{sql-expr-defaults-f2f50289.js → sql-expr-defaults-ba682a85.js} +114 -53
- package/dist/esm/sql-expr-mode-5da1d4c8.js +463 -0
- package/dist/esm/{tsMode-ee945c40.js → tsMode-23360d7b.js} +2 -3
- package/dist/esm/{typescript-8bd2bb48.js → typescript-d1e4a590.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-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-103bdac3.js +0 -6
- package/dist/arcgis-coding-components/p-2d14950e.js +0 -7
- package/dist/arcgis-coding-components/p-374b59c1.js +0 -6
- package/dist/arcgis-coding-components/p-a36c357f.js +0 -6
- package/dist/arcgis-coding-components/p-de5cabbb.js +0 -6
- package/dist/arcgis-coding-components/p-e6cac921.entry.js +0 -6
- package/dist/cjs/arcade-defaults-ee308e3a.js +0 -116
- package/dist/cjs/sql-expr-mode-6cac37ed.js +0 -25135
- package/dist/esm/arcade-defaults-b1a5f013.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-14c94be3.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/esm/loader.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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.41
|
|
5
5
|
*/
|
|
6
|
-
import { b as bootstrapLazy } from './index-
|
|
7
|
-
export { s as setNonce } from './index-
|
|
8
|
-
import { g as globalScripts } from './app-globals-
|
|
6
|
+
import { b as bootstrapLazy } from './index-d9b2b45b.js';
|
|
7
|
+
export { s as setNonce } from './index-d9b2b45b.js';
|
|
8
|
+
import { g as globalScripts } from './app-globals-9b5f37f3.js';
|
|
9
9
|
|
|
10
10
|
const defineCustomElements = async (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return undefined;
|
|
12
12
|
await globalScripts();
|
|
13
|
-
return bootstrapLazy([["arcgis-sql-expression-fields",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]],["arcgis-arcade-editor_6",[[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"],"
|
|
13
|
+
return bootstrapLazy([["arcgis-sql-expression-fields",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]],["arcgis-arcade-editor_6",[[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",[[0,"arcgis-sql-expression-editor",{"profile":[16],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32]},null,{"profile":["_profileChanged"]}]]]], options);
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export { defineCustomElements };
|
|
@@ -1,10 +1,10 @@
|
|
|
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.41
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, f as fieldsToProfileValues, i as isPredefinedProfile, b as isFeatureSetDefinition, m as main, L as LanguageDefaultsBase, d as fetchT9nStringsBundle, E as EditorProfile, U as Uri } from './language-defaults-base-49508cc9.js';
|
|
7
|
+
import { g as getAssetPath } from './index-d9b2b45b.js';
|
|
8
8
|
|
|
9
9
|
// src/framework.ts
|
|
10
10
|
function retrieveComponentMembers(component, isLit) {
|
|
@@ -16,7 +16,7 @@ function retrieveComponentMembers(component, isLit) {
|
|
|
16
16
|
([name, descriptor]) => descriptor.noAccessor ? void 0 : [
|
|
17
17
|
name,
|
|
18
18
|
[
|
|
19
|
-
(descriptor.
|
|
19
|
+
(descriptor.readOnly ? 2048 /* ReadOnly */ : 0) | (descriptor.state ? 32 /* State */ : descriptor.type === Number ? 2 /* Number */ : descriptor.type === Boolean ? 4 /* Boolean */ : 1 /* String */)
|
|
20
20
|
]
|
|
21
21
|
]
|
|
22
22
|
).filter(isNotUndefined)
|
|
@@ -142,10 +142,11 @@ var useRefSync = (value) => {
|
|
|
142
142
|
var shouldBypass = {
|
|
143
143
|
setter: false,
|
|
144
144
|
getter: false,
|
|
145
|
-
|
|
145
|
+
readOnly: false
|
|
146
146
|
};
|
|
147
147
|
var elementToInstance = /* @__PURE__ */ new WeakMap();
|
|
148
148
|
var _a;
|
|
149
|
+
_a = controllerSymbol;
|
|
149
150
|
var Controller = class {
|
|
150
151
|
constructor(component) {
|
|
151
152
|
this._callbacks = {
|
|
@@ -161,8 +162,8 @@ var Controller = class {
|
|
|
161
162
|
this._ready = new Deferred();
|
|
162
163
|
this._lifecycleCleanups = [];
|
|
163
164
|
this.connectedCalled = false;
|
|
164
|
-
this.
|
|
165
|
-
this.
|
|
165
|
+
this._loadCalled = false;
|
|
166
|
+
this.loadedCalled = false;
|
|
166
167
|
this[_a] = true;
|
|
167
168
|
this.ready = this._ready.promise;
|
|
168
169
|
/*
|
|
@@ -194,12 +195,12 @@ var Controller = class {
|
|
|
194
195
|
if (!connectedWillStillHappen && !this.connectedCalled) {
|
|
195
196
|
this.triggerConnected();
|
|
196
197
|
}
|
|
197
|
-
const loadWillStillHappen = !manager.
|
|
198
|
+
const loadWillStillHappen = !manager._loadCalled;
|
|
198
199
|
if (loadWillStillHappen) {
|
|
199
200
|
return;
|
|
200
201
|
}
|
|
201
202
|
this.triggerLoad().then(() => {
|
|
202
|
-
const loadedWillStillHappen = !manager.
|
|
203
|
+
const loadedWillStillHappen = !manager.loadedCalled;
|
|
203
204
|
if (loadedWillStillHappen) {
|
|
204
205
|
return;
|
|
205
206
|
}
|
|
@@ -341,10 +342,10 @@ var Controller = class {
|
|
|
341
342
|
}
|
|
342
343
|
/** @internal */
|
|
343
344
|
async triggerLoad() {
|
|
344
|
-
if (this.
|
|
345
|
+
if (this._loadCalled) {
|
|
345
346
|
return;
|
|
346
347
|
}
|
|
347
|
-
this.
|
|
348
|
+
this._loadCalled = true;
|
|
348
349
|
const genericController = this;
|
|
349
350
|
if (genericController.hostLoad) {
|
|
350
351
|
await safeAsyncCall(genericController.hostLoad, genericController);
|
|
@@ -356,7 +357,7 @@ var Controller = class {
|
|
|
356
357
|
}
|
|
357
358
|
/** @internal */
|
|
358
359
|
triggerLoaded() {
|
|
359
|
-
if (this.
|
|
360
|
+
if (this.loadedCalled) {
|
|
360
361
|
return;
|
|
361
362
|
}
|
|
362
363
|
const genericController = this;
|
|
@@ -364,7 +365,7 @@ var Controller = class {
|
|
|
364
365
|
safeCall(genericController.hostLoaded, genericController);
|
|
365
366
|
}
|
|
366
367
|
this._callbacks.hostLoaded.forEach(safeCall);
|
|
367
|
-
this.
|
|
368
|
+
this.loadedCalled = true;
|
|
368
369
|
}
|
|
369
370
|
/** @internal */
|
|
370
371
|
triggerUpdate(changedProperties) {
|
|
@@ -411,16 +412,10 @@ var Controller = class {
|
|
|
411
412
|
});
|
|
412
413
|
}
|
|
413
414
|
};
|
|
414
|
-
_a = controllerSymbol;
|
|
415
415
|
function callUpdate(callback) {
|
|
416
416
|
safeCall(callback, void 0, this);
|
|
417
417
|
}
|
|
418
|
-
var GenericController =
|
|
419
|
-
// Redundant constructor needed to improve typing
|
|
420
|
-
constructor(component) {
|
|
421
|
-
super(component);
|
|
422
|
-
}
|
|
423
|
-
};
|
|
418
|
+
var GenericController = Controller;
|
|
424
419
|
function makeProvisionalValue(base) {
|
|
425
420
|
if (typeof base !== "object" && typeof base !== "function" || base === null) {
|
|
426
421
|
return base;
|
|
@@ -518,7 +513,7 @@ var ComponentInternals = class {
|
|
|
518
513
|
this.enabledWatchers = {};
|
|
519
514
|
this.allWatchers = {};
|
|
520
515
|
/**
|
|
521
|
-
* "
|
|
516
|
+
* "readOnly" is not enabled initially since we need to allow to set property
|
|
522
517
|
* default values in the constructor.
|
|
523
518
|
* For Stencil, readonly is enabled by the `readonly()` controller.
|
|
524
519
|
* For Lit, we have the following logic:
|
|
@@ -531,7 +526,7 @@ var ComponentInternals = class {
|
|
|
531
526
|
const internals = this.component.manager.internals;
|
|
532
527
|
Object.entries(internals.members).forEach(([name2, [type]]) => {
|
|
533
528
|
var _a2;
|
|
534
|
-
const isReadOnly = type & 2048 /*
|
|
529
|
+
const isReadOnly = type & 2048 /* ReadOnly */;
|
|
535
530
|
if (isReadOnly) {
|
|
536
531
|
(_a2 = internals.setters)[name2] ?? (_a2[name2] = []);
|
|
537
532
|
internals.setters[name2].push(internals.readonlySetter);
|
|
@@ -547,7 +542,7 @@ var ComponentInternals = class {
|
|
|
547
542
|
this.reactiveUtilsIntegrations = /* @__PURE__ */ new Set();
|
|
548
543
|
this._exports = /* @__PURE__ */ new WeakMap();
|
|
549
544
|
this.readonlySetter = (newValue, _oldValue, property) => {
|
|
550
|
-
if (shouldBypass.
|
|
545
|
+
if (shouldBypass.readOnly) {
|
|
551
546
|
return newValue;
|
|
552
547
|
}
|
|
553
548
|
throw new Error(
|
|
@@ -591,7 +586,10 @@ var ComponentInternals = class {
|
|
|
591
586
|
_getSetProxy(prototype, name2, type) {
|
|
592
587
|
const component = this.component;
|
|
593
588
|
const propType = getMemberType(component, name2);
|
|
594
|
-
|
|
589
|
+
let descriptor;
|
|
590
|
+
do {
|
|
591
|
+
descriptor = Object.getOwnPropertyDescriptor(prototype, name2);
|
|
592
|
+
} while (!descriptor && (prototype = Object.getPrototypeOf(prototype)));
|
|
595
593
|
if (!descriptor) {
|
|
596
594
|
return void 0;
|
|
597
595
|
}
|
|
@@ -599,11 +597,11 @@ var ComponentInternals = class {
|
|
|
599
597
|
const originalSet = descriptor.set;
|
|
600
598
|
const isGetterAlreadyOverwritten = customAccessor in originalGet;
|
|
601
599
|
const isSetterAlreadyOverwritten = customAccessor in originalSet;
|
|
602
|
-
|
|
603
|
-
const shouldOverwriteSet = !isSetterAlreadyOverwritten;
|
|
604
|
-
if (!shouldOverwriteGet && !shouldOverwriteSet) {
|
|
600
|
+
if (isGetterAlreadyOverwritten && isSetterAlreadyOverwritten) {
|
|
605
601
|
return;
|
|
606
602
|
}
|
|
603
|
+
const shouldOverwriteGet = !isGetterAlreadyOverwritten;
|
|
604
|
+
const shouldOverwriteSet = !isSetterAlreadyOverwritten;
|
|
607
605
|
const finalGetter = shouldOverwriteGet ? function getter() {
|
|
608
606
|
let value = originalGet.call(this);
|
|
609
607
|
const component2 = elementToInstance.get(this);
|
|
@@ -625,7 +623,17 @@ var ComponentInternals = class {
|
|
|
625
623
|
originalSet.call(this, rawNewValue);
|
|
626
624
|
return;
|
|
627
625
|
}
|
|
628
|
-
let newValue = component2.manager.isLit ?
|
|
626
|
+
let newValue = component2.manager.isLit ? (
|
|
627
|
+
/*
|
|
628
|
+
* Cast `null` to `undefined`. Reasons:
|
|
629
|
+
* - component can declare properties simply using
|
|
630
|
+
* `@property() name?: string;` and get accurate typings,
|
|
631
|
+
* without being forced to use
|
|
632
|
+
* `@property() name?: string | Nil;`.
|
|
633
|
+
* - simplifies checks in the code and thus reduces bugs
|
|
634
|
+
*/
|
|
635
|
+
rawNewValue ?? void 0
|
|
636
|
+
) : parsePropertyValue(rawNewValue, propType);
|
|
629
637
|
const internals = component2.manager.internals;
|
|
630
638
|
if (newValue === oldValue) {
|
|
631
639
|
originalSet.call(this, rawNewValue);
|
|
@@ -1052,12 +1060,12 @@ function genericGetSet(component, property, getSet2) {
|
|
|
1052
1060
|
}
|
|
1053
1061
|
}
|
|
1054
1062
|
var ignoreSet = (_, value) => value;
|
|
1055
|
-
function
|
|
1056
|
-
shouldBypass.
|
|
1063
|
+
function bypassReadOnly(callback) {
|
|
1064
|
+
shouldBypass.readOnly = true;
|
|
1057
1065
|
try {
|
|
1058
1066
|
return callback();
|
|
1059
1067
|
} finally {
|
|
1060
|
-
shouldBypass.
|
|
1068
|
+
shouldBypass.readOnly = false;
|
|
1061
1069
|
}
|
|
1062
1070
|
}
|
|
1063
1071
|
|
|
@@ -1108,7 +1116,7 @@ function setProxy(controller, { host, key, isReactive: assignedToProp }, initial
|
|
|
1108
1116
|
const manager = controller.component.manager;
|
|
1109
1117
|
const isReadOnly = manager.internals.setters[key]?.includes(manager.internals.readonlySetter);
|
|
1110
1118
|
if (isReadOnly) {
|
|
1111
|
-
|
|
1119
|
+
bypassReadOnly(() => {
|
|
1112
1120
|
genericHost[key] = controller.exports;
|
|
1113
1121
|
});
|
|
1114
1122
|
} else {
|
|
@@ -1157,6 +1165,56 @@ var FunctionalController = class extends Controller {
|
|
|
1157
1165
|
};
|
|
1158
1166
|
var proxy = proxyExports(FunctionalController);
|
|
1159
1167
|
|
|
1168
|
+
// #region convert editor profile to apiProfile
|
|
1169
|
+
/**
|
|
1170
|
+
* Converts an editor profile to an api profile.
|
|
1171
|
+
* The api profile is an optimized version of the editor profile designed for minimal data transfer between the main thread and the worker.
|
|
1172
|
+
*/
|
|
1173
|
+
const sqlExprEditorToApiProfile = (editorProfile) => {
|
|
1174
|
+
const { apiVersion, bundles, hiddenApiItems } = editorProfile.toEditorProfileDefinition();
|
|
1175
|
+
const variable = editorProfile.variables[0];
|
|
1176
|
+
if (!variable || !(variable.type === "featureSet")) {
|
|
1177
|
+
throw Error("No variable found in the editor profile");
|
|
1178
|
+
}
|
|
1179
|
+
const hydratedVariable = variableToApiProfile(variable);
|
|
1180
|
+
return {
|
|
1181
|
+
apiVersion,
|
|
1182
|
+
bundles,
|
|
1183
|
+
variables: [hydratedVariable],
|
|
1184
|
+
hiddenApiItems: hiddenApiItems?.map((s) => s.toLowerCase()),
|
|
1185
|
+
};
|
|
1186
|
+
};
|
|
1187
|
+
function variableToApiProfile(variable) {
|
|
1188
|
+
const { name } = variable;
|
|
1189
|
+
const description = variable.getDescription();
|
|
1190
|
+
const { definition } = variable.toProfileVariableDefinition();
|
|
1191
|
+
const resultCompletion = {
|
|
1192
|
+
label: name,
|
|
1193
|
+
detail: name,
|
|
1194
|
+
insertText: name,
|
|
1195
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
1196
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
1197
|
+
kind: main.exports.CompletionItemKind.Field,
|
|
1198
|
+
};
|
|
1199
|
+
const result = {
|
|
1200
|
+
name,
|
|
1201
|
+
description,
|
|
1202
|
+
type: "dictionary",
|
|
1203
|
+
properties: [],
|
|
1204
|
+
completion: resultCompletion,
|
|
1205
|
+
};
|
|
1206
|
+
// No fields or definition, then it will be a feature without any known fields
|
|
1207
|
+
if (!definition || !("fields" in definition)) {
|
|
1208
|
+
return result;
|
|
1209
|
+
}
|
|
1210
|
+
// Create properties for the fields
|
|
1211
|
+
// Also improve the feature completion documentation
|
|
1212
|
+
// TODO: should we add aliases to completion? what about domains?
|
|
1213
|
+
const [properties, featureCompletionDescription] = fieldsToProfileValues(definition.fields, description);
|
|
1214
|
+
result.properties = properties;
|
|
1215
|
+
resultCompletion.documentation = { kind: "markdown", value: featureCompletionDescription };
|
|
1216
|
+
return result;
|
|
1217
|
+
}
|
|
1160
1218
|
const tempHardcodedProfile = {
|
|
1161
1219
|
en: {
|
|
1162
1220
|
id: "field-calculation",
|
|
@@ -1205,16 +1263,28 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
1205
1263
|
});
|
|
1206
1264
|
return editorProfile;
|
|
1207
1265
|
}
|
|
1266
|
+
// #endregion
|
|
1208
1267
|
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1268
|
+
/**
|
|
1269
|
+
* Returns the sql-expression worker for the model.
|
|
1270
|
+
* Example:
|
|
1271
|
+
* ```ts
|
|
1272
|
+
* const sqlExpressionWorker = await getSqlExpressionWorker(model.uri);
|
|
1273
|
+
* ```
|
|
1274
|
+
* @returns sql-expression worker
|
|
1275
|
+
*/
|
|
1276
|
+
async function getSqlExprWorker(uri) {
|
|
1277
|
+
const mode = await getMode();
|
|
1278
|
+
return await mode.getSqlExprWorker(uri);
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
* Request the sql-expression mode
|
|
1282
|
+
* @returns sql-expression mode module
|
|
1283
|
+
*/
|
|
1284
|
+
async function getMode() {
|
|
1285
|
+
return await import('./sql-expr-mode-5da1d4c8.js');
|
|
1286
|
+
}
|
|
1212
1287
|
|
|
1213
|
-
// const defaultContext: ApiContext = {
|
|
1214
|
-
// locale: "en",
|
|
1215
|
-
// };
|
|
1216
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
1217
|
-
const apiPathTemplate = "${assetsPath}/api/sql-expression-api.t9n.${locale}.json";
|
|
1218
1288
|
const languageId = "arcgis-sql-expression";
|
|
1219
1289
|
class SqlExprDefaults extends LanguageDefaultsBase {
|
|
1220
1290
|
constructor() {
|
|
@@ -1227,7 +1297,6 @@ class SqlExprDefaults extends LanguageDefaultsBase {
|
|
|
1227
1297
|
updateFeatureLayerForModel(modelId, layer) {
|
|
1228
1298
|
const key = this._getApiKey(modelId);
|
|
1229
1299
|
this._layerMap.set(key, layer);
|
|
1230
|
-
this._onDidChange.fire(this);
|
|
1231
1300
|
}
|
|
1232
1301
|
setLanguageOptions(languageOptions) {
|
|
1233
1302
|
this._languageOptions = languageOptions;
|
|
@@ -1250,7 +1319,7 @@ class SqlExprDefaults extends LanguageDefaultsBase {
|
|
|
1250
1319
|
const key = this._getApiKey(modelId);
|
|
1251
1320
|
const editorProfile = new EditorProfile(definition, intlStrings);
|
|
1252
1321
|
this._profileMap.set(key, editorProfile);
|
|
1253
|
-
const apiProfile =
|
|
1322
|
+
const apiProfile = sqlExprEditorToApiProfile(editorProfile);
|
|
1254
1323
|
this.updateApiContextForModel(modelId, {
|
|
1255
1324
|
locale: apiContext.locale,
|
|
1256
1325
|
profile: apiProfile,
|
|
@@ -1262,18 +1331,10 @@ class SqlExprDefaults extends LanguageDefaultsBase {
|
|
|
1262
1331
|
}
|
|
1263
1332
|
async getApiLibrary(modelId) {
|
|
1264
1333
|
const uri = Uri.parse(modelId);
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
service = new g({
|
|
1268
|
-
assetsPath: getAssetPath("./assets/sql-expression-editor"),
|
|
1269
|
-
languageId,
|
|
1270
|
-
apiPathTemplate,
|
|
1271
|
-
});
|
|
1272
|
-
this._apiService = service;
|
|
1273
|
-
}
|
|
1274
|
-
return await service.getApiLibrary(this.getApiContextForModel(uri));
|
|
1334
|
+
const worker = await getSqlExprWorker(uri);
|
|
1335
|
+
return await worker.getApiLibrary(this.getApiContextForModel(uri));
|
|
1275
1336
|
}
|
|
1276
1337
|
}
|
|
1277
1338
|
const sqlExprDefaults = new SqlExprDefaults();
|
|
1278
1339
|
|
|
1279
|
-
export { getSet as g, makeController as m, sqlExprDefaults as s, useControllerManager as u, watch as w };
|
|
1340
|
+
export { getMode as a, getSet as g, makeController as m, sqlExprDefaults as s, useControllerManager as u, watch as w };
|