@arcgis/coding-components 4.31.0-next.3 → 4.31.0-next.31
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 +447 -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-18b2d2f5.js +7 -0
- package/dist/arcgis-coding-components/p-25183ed9.js +6 -0
- package/dist/arcgis-coding-components/{p-93d0e0cc.js → p-416666a0.js} +12 -12
- package/dist/arcgis-coding-components/p-536cdf7f.js +6 -0
- package/dist/arcgis-coding-components/{p-9132bc9c.entry.js → p-5c8677cf.entry.js} +2 -2
- package/dist/arcgis-coding-components/p-6e7ad639.js +6 -0
- package/dist/arcgis-coding-components/p-81152e8f.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-86106a9a.js → p-983460ea.js} +1 -1
- package/dist/arcgis-coding-components/p-98f1e54e.js +6 -0
- package/dist/arcgis-coding-components/{p-111ba641.js → p-9c648939.js} +2 -2
- package/dist/arcgis-coding-components/{p-6554a853.js → p-9d4ed924.js} +1 -1
- package/dist/arcgis-coding-components/{p-7c6b3d40.js → p-b87b9e87.js} +2 -2
- package/dist/arcgis-coding-components/{p-3ca5ba95.entry.js → p-c61b56ec.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-4986aaf2.js → p-c66ece75.js} +3 -3
- package/dist/arcgis-coding-components/{p-42c8b545.js → p-c7d40b7a.js} +3 -3
- package/dist/arcgis-coding-components/p-e14e15c3.js +6 -0
- package/dist/arcgis-coding-components/{p-8b4298d5.js → p-ec21f417.js} +2 -2
- package/dist/arcgis-coding-components/{p-c4a5150e.js → p-f257c183.js} +3 -3
- package/dist/arcgis-coding-components/{p-5eb82abf.js → p-fc9f9713.js} +2 -2
- package/dist/cjs/{app-globals-92c5b499.js → app-globals-a4195754.js} +1 -1
- package/dist/cjs/arcade-defaults-eb4c386e.js +349 -0
- package/dist/cjs/arcade-language-features-443afb4a.js +274 -0
- package/dist/cjs/{arcade-mode-dfd66b4b.js → arcade-mode-b7f29ea1.js} +6 -266
- 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-9b0053c3.js → css-69196adc.js} +1 -1
- package/dist/cjs/{cssMode-62e53008.js → cssMode-859f4e51.js} +2 -3
- package/dist/cjs/{html-3036e89e.js → html-4fbc00a9.js} +2 -3
- package/dist/cjs/{htmlMode-c37eee42.js → htmlMode-a72d1bc1.js} +2 -3
- package/dist/cjs/{index-be6b2520.js → index-bdf3252c.js} +43 -15
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-7276c023.js → javascript-58361a1e.js} +3 -4
- package/dist/cjs/{jsonMode-baa295f0.js → jsonMode-193bd3e6.js} +2 -3
- package/dist/cjs/{language-defaults-base-5817af52.js → language-defaults-base-21562698.js} +842 -1062
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{sql-expr-defaults-746bbc5f.js → sql-expr-defaults-c60e217b.js} +101 -39
- package/dist/cjs/sql-expr-mode-d24b61b3.js +1171 -0
- package/dist/cjs/{tsMode-36398912.js → tsMode-7a15853a.js} +2 -3
- package/dist/cjs/{typescript-608a420b.js → typescript-f25eb5d3.js} +2 -3
- package/dist/components/arcade-defaults.js +238 -4
- package/dist/components/arcade-language-features.js +271 -0
- package/dist/components/arcade-mode.js +4 -264
- 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 +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.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-EOMOY2EF.js} +12 -17
- package/dist/components/code-editor.js +16 -23
- package/dist/components/fields.js +22 -4
- package/dist/components/index.d.ts +18 -3
- 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 +89 -24
- package/dist/components/sql-expr-mode.js +1009 -24971
- 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-5e178541.js → app-globals-fe777f03.js} +1 -1
- package/dist/esm/arcade-defaults-59308750.js +344 -0
- package/dist/esm/arcade-language-features-bb595565.js +269 -0
- package/dist/esm/{arcade-mode-02336ce9.js → arcade-mode-ecfbfe83.js} +3 -263
- 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-e79f1ed1.js → css-5d085688.js} +1 -1
- package/dist/esm/{cssMode-cd007d02.js → cssMode-ce6a5fa5.js} +2 -3
- package/dist/esm/{html-d079d00d.js → html-3bbdbcc4.js} +2 -3
- package/dist/esm/{htmlMode-ff14e035.js → htmlMode-ba97a916.js} +2 -3
- package/dist/esm/{index-88fc341d.js → index-c0152d8f.js} +43 -15
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-69f7c282.js → javascript-882d0f8e.js} +3 -4
- package/dist/esm/{jsonMode-18ddadde.js → jsonMode-81390da0.js} +2 -3
- package/dist/esm/{language-defaults-base-6687d11a.js → language-defaults-base-98463e74.js} +837 -1062
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{sql-expr-defaults-2cdfe08a.js → sql-expr-defaults-7dc678a7.js} +100 -40
- package/dist/esm/sql-expr-mode-3bee46a2.js +1167 -0
- package/dist/esm/{tsMode-c2e5d33a.js → tsMode-c62203dd.js} +2 -3
- package/dist/esm/{typescript-a0fbebf0.js → typescript-b12d65fd.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 +3 -2
- package/dist/types/utils/sql-expr-monaco/sql-expr-constants.d.ts +45 -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 +19 -520
- package/dist/types/utils/sql-expr-monaco/sql-expr-mode.d.ts +34 -1
- 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 +75 -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 +9 -6
- 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 +6 -12
- package/package.json +19 -19
- package/dist/arcgis-coding-components/p-0105cc95.js +0 -6
- package/dist/arcgis-coding-components/p-5e26a360.js +0 -6
- package/dist/arcgis-coding-components/p-9c7e0089.js +0 -7
- package/dist/arcgis-coding-components/p-b82e98f0.js +0 -6
- package/dist/arcgis-coding-components/p-d353f1ba.entry.js +0 -6
- package/dist/arcgis-coding-components/p-fe6ccfe0.js +0 -6
- package/dist/cjs/arcade-defaults-34e82ff5.js +0 -116
- package/dist/cjs/sql-expr-mode-a9f1b697.js +0 -25135
- package/dist/esm/arcade-defaults-6dac6b30.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-f10e5a43.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.31
|
|
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-c0152d8f.js';
|
|
7
|
+
export { s as setNonce } from './index-c0152d8f.js';
|
|
8
|
+
import { g as globalScripts } from './app-globals-fe777f03.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.31
|
|
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-98463e74.js';
|
|
7
|
+
import { g as getAssetPath } from './index-c0152d8f.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 = {
|
|
@@ -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(
|
|
@@ -1052,12 +1047,12 @@ function genericGetSet(component, property, getSet2) {
|
|
|
1052
1047
|
}
|
|
1053
1048
|
}
|
|
1054
1049
|
var ignoreSet = (_, value) => value;
|
|
1055
|
-
function
|
|
1056
|
-
shouldBypass.
|
|
1050
|
+
function bypassReadOnly(callback) {
|
|
1051
|
+
shouldBypass.readOnly = true;
|
|
1057
1052
|
try {
|
|
1058
1053
|
return callback();
|
|
1059
1054
|
} finally {
|
|
1060
|
-
shouldBypass.
|
|
1055
|
+
shouldBypass.readOnly = false;
|
|
1061
1056
|
}
|
|
1062
1057
|
}
|
|
1063
1058
|
|
|
@@ -1108,7 +1103,7 @@ function setProxy(controller, { host, key, isReactive: assignedToProp }, initial
|
|
|
1108
1103
|
const manager = controller.component.manager;
|
|
1109
1104
|
const isReadOnly = manager.internals.setters[key]?.includes(manager.internals.readonlySetter);
|
|
1110
1105
|
if (isReadOnly) {
|
|
1111
|
-
|
|
1106
|
+
bypassReadOnly(() => {
|
|
1112
1107
|
genericHost[key] = controller.exports;
|
|
1113
1108
|
});
|
|
1114
1109
|
} else {
|
|
@@ -1157,6 +1152,56 @@ var FunctionalController = class extends Controller {
|
|
|
1157
1152
|
};
|
|
1158
1153
|
var proxy = proxyExports(FunctionalController);
|
|
1159
1154
|
|
|
1155
|
+
// #region convert editor profile to apiProfile
|
|
1156
|
+
/**
|
|
1157
|
+
* Converts an editor profile to an api profile.
|
|
1158
|
+
* The api profile is an optimized version of the editor profile designed for minimal data transfer between the main thread and the worker.
|
|
1159
|
+
*/
|
|
1160
|
+
const sqlExprEditorToApiProfile = (editorProfile) => {
|
|
1161
|
+
const { apiVersion, bundles, hiddenApiItems } = editorProfile.toEditorProfileDefinition();
|
|
1162
|
+
const variable = editorProfile.variables[0];
|
|
1163
|
+
if (!variable || !(variable.type === "featureSet")) {
|
|
1164
|
+
throw Error("No variable found in the editor profile");
|
|
1165
|
+
}
|
|
1166
|
+
const hydratedVariable = variableToApiProfile(variable);
|
|
1167
|
+
return {
|
|
1168
|
+
apiVersion,
|
|
1169
|
+
bundles,
|
|
1170
|
+
variables: [hydratedVariable],
|
|
1171
|
+
hiddenApiItems: hiddenApiItems?.map((s) => s.toLowerCase()),
|
|
1172
|
+
};
|
|
1173
|
+
};
|
|
1174
|
+
function variableToApiProfile(variable) {
|
|
1175
|
+
const { name } = variable;
|
|
1176
|
+
const description = variable.getDescription();
|
|
1177
|
+
const { definition } = variable.toProfileVariableDefinition();
|
|
1178
|
+
const resultCompletion = {
|
|
1179
|
+
label: name,
|
|
1180
|
+
detail: name,
|
|
1181
|
+
insertText: name,
|
|
1182
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
1183
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
1184
|
+
kind: main.exports.CompletionItemKind.Field,
|
|
1185
|
+
};
|
|
1186
|
+
const result = {
|
|
1187
|
+
name,
|
|
1188
|
+
description,
|
|
1189
|
+
type: "dictionary",
|
|
1190
|
+
properties: [],
|
|
1191
|
+
completion: resultCompletion,
|
|
1192
|
+
};
|
|
1193
|
+
// No fields or definition, then it will be a feature without any known fields
|
|
1194
|
+
if (!definition || !("fields" in definition)) {
|
|
1195
|
+
return result;
|
|
1196
|
+
}
|
|
1197
|
+
// Create properties for the fields
|
|
1198
|
+
// Also improve the feature completion documentation
|
|
1199
|
+
// TODO: should we add aliases to completion? what about domains?
|
|
1200
|
+
const [properties, featureCompletionDescription] = fieldsToProfileValues(definition.fields, description);
|
|
1201
|
+
result.properties = properties;
|
|
1202
|
+
resultCompletion.documentation = { kind: "markdown", value: featureCompletionDescription };
|
|
1203
|
+
return result;
|
|
1204
|
+
}
|
|
1160
1205
|
const tempHardcodedProfile = {
|
|
1161
1206
|
en: {
|
|
1162
1207
|
id: "field-calculation",
|
|
@@ -1205,16 +1250,40 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
1205
1250
|
});
|
|
1206
1251
|
return editorProfile;
|
|
1207
1252
|
}
|
|
1253
|
+
// #endregion
|
|
1254
|
+
// #region profile utils
|
|
1255
|
+
/**
|
|
1256
|
+
* util to retrieve fields from the $layer variable in the api context.
|
|
1257
|
+
*/
|
|
1258
|
+
const getFieldsFromLayerVariable = (profile) => {
|
|
1259
|
+
if (profile.variables) {
|
|
1260
|
+
const layerVar = profile.variables.find((variable) => variable.name === "$layer" && variable.type === "dictionary");
|
|
1261
|
+
return layerVar.properties ?? [];
|
|
1262
|
+
}
|
|
1263
|
+
return [];
|
|
1264
|
+
};
|
|
1265
|
+
// #endregion
|
|
1208
1266
|
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1267
|
+
/**
|
|
1268
|
+
* Returns the sql-expression worker for the model.
|
|
1269
|
+
* Example:
|
|
1270
|
+
* ```ts
|
|
1271
|
+
* const sqlExpressionWorker = await getSqlExpressionWorker(model.uri);
|
|
1272
|
+
* ```
|
|
1273
|
+
* @returns sql-expression worker
|
|
1274
|
+
*/
|
|
1275
|
+
async function getSqlExprWorker(uri) {
|
|
1276
|
+
const mode = await getMode();
|
|
1277
|
+
return await mode.getSqlExprWorker(uri);
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* Request the sql-expression mode
|
|
1281
|
+
* @returns sql-expression mode module
|
|
1282
|
+
*/
|
|
1283
|
+
async function getMode() {
|
|
1284
|
+
return await import('./sql-expr-mode-3bee46a2.js');
|
|
1285
|
+
}
|
|
1212
1286
|
|
|
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
1287
|
const languageId = "arcgis-sql-expression";
|
|
1219
1288
|
class SqlExprDefaults extends LanguageDefaultsBase {
|
|
1220
1289
|
constructor() {
|
|
@@ -1227,7 +1296,6 @@ class SqlExprDefaults extends LanguageDefaultsBase {
|
|
|
1227
1296
|
updateFeatureLayerForModel(modelId, layer) {
|
|
1228
1297
|
const key = this._getApiKey(modelId);
|
|
1229
1298
|
this._layerMap.set(key, layer);
|
|
1230
|
-
this._onDidChange.fire(this);
|
|
1231
1299
|
}
|
|
1232
1300
|
setLanguageOptions(languageOptions) {
|
|
1233
1301
|
this._languageOptions = languageOptions;
|
|
@@ -1250,7 +1318,7 @@ class SqlExprDefaults extends LanguageDefaultsBase {
|
|
|
1250
1318
|
const key = this._getApiKey(modelId);
|
|
1251
1319
|
const editorProfile = new EditorProfile(definition, intlStrings);
|
|
1252
1320
|
this._profileMap.set(key, editorProfile);
|
|
1253
|
-
const apiProfile =
|
|
1321
|
+
const apiProfile = sqlExprEditorToApiProfile(editorProfile);
|
|
1254
1322
|
this.updateApiContextForModel(modelId, {
|
|
1255
1323
|
locale: apiContext.locale,
|
|
1256
1324
|
profile: apiProfile,
|
|
@@ -1262,18 +1330,10 @@ class SqlExprDefaults extends LanguageDefaultsBase {
|
|
|
1262
1330
|
}
|
|
1263
1331
|
async getApiLibrary(modelId) {
|
|
1264
1332
|
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));
|
|
1333
|
+
const worker = await getSqlExprWorker(uri);
|
|
1334
|
+
return await worker.getApiLibrary(this.getApiContextForModel(uri));
|
|
1275
1335
|
}
|
|
1276
1336
|
}
|
|
1277
1337
|
const sqlExprDefaults = new SqlExprDefaults();
|
|
1278
1338
|
|
|
1279
|
-
export { getSet as g, makeController as m, sqlExprDefaults as s, useControllerManager as u, watch as w };
|
|
1339
|
+
export { getMode as a, getFieldsFromLayerVariable as b, getSet as g, makeController as m, sqlExprDefaults as s, useControllerManager as u, watch as w };
|