@arcgis/coding-components 4.30.0-next.4 → 4.30.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/dist/arcgis-coding-components/arcgis-coding-components.css +1 -1
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +25 -0
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +25 -0
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +1 -1
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-25023832.js → p-1f57b2c8.js} +3 -3
- package/dist/arcgis-coding-components/{p-e88c0d1d.js → p-2656babc.js} +1 -1
- package/dist/arcgis-coding-components/p-41c0f095.js +7 -0
- package/dist/arcgis-coding-components/{p-08f272e7.js → p-4e83c7d9.js} +3 -3
- package/dist/arcgis-coding-components/p-55dffc4c.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-78220a75.js → p-68167d79.js} +3 -3
- package/dist/arcgis-coding-components/{p-4d158786.js → p-6e9ee8e1.js} +2 -2
- package/dist/arcgis-coding-components/{p-b63557ba.js → p-7600673f.js} +2 -2
- package/dist/arcgis-coding-components/{p-73e2476b.js → p-8741dfa4.js} +2 -2
- package/dist/arcgis-coding-components/{p-cd9e95f9.js → p-9acb23cc.js} +2 -2
- package/dist/arcgis-coding-components/p-b3a3ab63.js +68 -0
- package/dist/arcgis-coding-components/{p-c7bb7c6a.js → p-ea30709a.js} +2 -2
- package/dist/cjs/{arcade-defaults-d41420df.js → arcade-defaults-acc3b5ac.js} +498 -172
- package/dist/cjs/{arcade-mode-55360f90.js → arcade-mode-af4f0fdf.js} +45 -51
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1660 -234
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/{css-9a006c1a.js → css-c1dec897.js} +1 -1
- package/dist/cjs/{cssMode-c9458ea4.js → cssMode-8a51d0ec.js} +3 -3
- package/dist/cjs/{html-45d9defe.js → html-a26829c5.js} +3 -3
- package/dist/cjs/{htmlMode-1716753f.js → htmlMode-d59290f4.js} +3 -3
- package/dist/cjs/{index-25b044b5.js → index-f070b08e.js} +42 -4
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-9ce57501.js → javascript-836a3c78.js} +4 -4
- package/dist/cjs/{jsonMode-3945e8f7.js → jsonMode-2600ca0a.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-7eaeb36b.js → tsMode-b10eb9a7.js} +3 -3
- package/dist/cjs/{typescript-ec5da0c4.js → typescript-07dfd341.js} +3 -3
- package/dist/components/arcade-api.js +19 -31
- package/dist/components/arcade-contribution.js +71 -13
- package/dist/components/arcade-defaults.js +79 -74
- package/dist/components/arcade-mode.js +44 -50
- package/dist/components/arcade-results.js +46 -60
- package/dist/components/arcade-suggestions.js +19 -30
- package/dist/components/arcade-variables.js +20 -35
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +48 -140
- 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/chunk-HXHHCYA6.js +1460 -0
- package/dist/components/code-editor.js +21 -18
- package/dist/components/fields.js +2 -66
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +388 -3
- package/dist/components/markdown.js +9 -11
- package/dist/components/utilities.js +3 -3
- package/dist/esm/{arcade-defaults-0bce2095.js → arcade-defaults-1f9c1af0.js} +485 -159
- package/dist/esm/{arcade-mode-57782d19.js → arcade-mode-c0bd49f2.js} +45 -51
- package/dist/esm/arcgis-arcade-api_6.entry.js +1660 -234
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/{css-70f18054.js → css-1e20a73b.js} +1 -1
- package/dist/esm/{cssMode-488c3e86.js → cssMode-31dc7377.js} +3 -3
- package/dist/esm/{html-59102be0.js → html-f8a0ecfe.js} +3 -3
- package/dist/esm/{htmlMode-cfdd852e.js → htmlMode-71570d38.js} +3 -3
- package/dist/esm/{index-78a96626.js → index-0030b0f4.js} +42 -5
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-8ee5b791.js → javascript-bd547f0f.js} +4 -4
- package/dist/esm/{jsonMode-771e71b0.js → jsonMode-fc11c3fd.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-f95b693f.js → tsMode-201c99e8.js} +3 -3
- package/dist/esm/{typescript-055e39ac.js → typescript-51b03c89.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/arcade-api/arcade-api.d.ts +6 -7
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +9 -6
- package/dist/types/components/arcade-results/arcade-results.d.ts +6 -9
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +6 -7
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +6 -8
- package/dist/types/components/code-editor/code-editor.d.ts +9 -1
- package/dist/types/components.d.ts +35 -24
- 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 +37 -0
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +6 -0
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +9 -0
- package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -1
- package/dist/types/utils/profile/types.d.ts +1 -1
- package/package.json +20 -19
- package/dist/arcgis-coding-components/p-04561935.entry.js +0 -6
- package/dist/arcgis-coding-components/p-871217d9.js +0 -68
- package/dist/arcgis-coding-components/p-c23d1605.js +0 -7
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.41
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-f070b08e.js');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
11
11
|
if (e && e.__esModule) return e;
|
|
@@ -20641,7 +20641,7 @@ class DragAndDropObserver extends Disposable {
|
|
|
20641
20641
|
}
|
|
20642
20642
|
}
|
|
20643
20643
|
const H_REGEX = /(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;
|
|
20644
|
-
function h
|
|
20644
|
+
function h(tag, ...args) {
|
|
20645
20645
|
let attributes;
|
|
20646
20646
|
let children;
|
|
20647
20647
|
if (Array.isArray(args[0])) {
|
|
@@ -113897,15 +113897,15 @@ class LinesLayout {
|
|
|
113897
113897
|
}
|
|
113898
113898
|
class MovedBlockOverlayWidget extends ViewZoneOverlayWidget {
|
|
113899
113899
|
constructor(_editor, _viewZone, _move, _kind, _diffModel) {
|
|
113900
|
-
const root = h
|
|
113900
|
+
const root = h('div.diff-hidden-lines-widget');
|
|
113901
113901
|
super(_editor, _viewZone, root.root);
|
|
113902
113902
|
this._editor = _editor;
|
|
113903
113903
|
this._move = _move;
|
|
113904
113904
|
this._kind = _kind;
|
|
113905
113905
|
this._diffModel = _diffModel;
|
|
113906
|
-
this._nodes = h
|
|
113907
|
-
h
|
|
113908
|
-
h
|
|
113906
|
+
this._nodes = h('div.diff-moved-code-block', { style: { marginRight: '4px' } }, [
|
|
113907
|
+
h('div.text-content@textContent'),
|
|
113908
|
+
h('div.action-bar@actionBar'),
|
|
113909
113909
|
]);
|
|
113910
113910
|
root.root.appendChild(this._nodes.root);
|
|
113911
113911
|
const editorLayout = observableFromEvent(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
|
|
@@ -114104,7 +114104,7 @@ class RevertButton {
|
|
|
114104
114104
|
this._diffs = _diffs;
|
|
114105
114105
|
this._selection = _selection;
|
|
114106
114106
|
this._id = `revertButton${RevertButton.counter++}`;
|
|
114107
|
-
this._domNode = h
|
|
114107
|
+
this._domNode = h('div.revertButton', {
|
|
114108
114108
|
title: this._selection
|
|
114109
114109
|
? localize('revertSelectedChanges', 'Revert Selected Changes')
|
|
114110
114110
|
: localize('revertChange', 'Revert Change')
|
|
@@ -114577,7 +114577,7 @@ HideUnchangedRegionsFeature = __decorate$1B([
|
|
|
114577
114577
|
], HideUnchangedRegionsFeature);
|
|
114578
114578
|
class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
114579
114579
|
constructor(_editor, _viewZone, _unchangedRegion, _unchangedRegionRange, _hide, _modifiedOutlineSource, _revealModifiedHiddenLine, _options) {
|
|
114580
|
-
const root = h
|
|
114580
|
+
const root = h('div.diff-hidden-lines-widget');
|
|
114581
114581
|
super(_editor, _viewZone, root.root);
|
|
114582
114582
|
this._editor = _editor;
|
|
114583
114583
|
this._unchangedRegion = _unchangedRegion;
|
|
@@ -114586,13 +114586,13 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
114586
114586
|
this._modifiedOutlineSource = _modifiedOutlineSource;
|
|
114587
114587
|
this._revealModifiedHiddenLine = _revealModifiedHiddenLine;
|
|
114588
114588
|
this._options = _options;
|
|
114589
|
-
this._nodes = h
|
|
114590
|
-
h
|
|
114591
|
-
h
|
|
114592
|
-
h
|
|
114593
|
-
h
|
|
114589
|
+
this._nodes = h('div.diff-hidden-lines', [
|
|
114590
|
+
h('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
|
|
114591
|
+
h('div.center@content', { style: { display: 'flex' } }, [
|
|
114592
|
+
h('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$$d('a', { title: localize('showUnchangedRegion', 'Show Unchanged Region'), role: 'button', onclick: () => { this._unchangedRegion.showAll(undefined); } }, ...renderLabelWithIcons('$(unfold)'))]),
|
|
114593
|
+
h('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
|
|
114594
114594
|
]),
|
|
114595
|
-
h
|
|
114595
|
+
h('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
|
|
114596
114596
|
]);
|
|
114597
114597
|
root.root.appendChild(this._nodes.root);
|
|
114598
114598
|
const layoutInfo = observableFromEvent(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
|
|
@@ -114717,7 +114717,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
114717
114717
|
for (let i = 0; i < items.length; i++) {
|
|
114718
114718
|
const item = items[i];
|
|
114719
114719
|
const icon = SymbolKinds.toIcon(item.kind);
|
|
114720
|
-
const divItem = h
|
|
114720
|
+
const divItem = h('div.breadcrumb-item', {
|
|
114721
114721
|
style: { display: 'flex', alignItems: 'center' },
|
|
114722
114722
|
}, [
|
|
114723
114723
|
renderIcon(icon),
|
|
@@ -116134,7 +116134,7 @@ let OverviewRulerPart = OverviewRulerPart_1 = class OverviewRulerPart extends Di
|
|
|
116134
116134
|
const viewportDomElement = createFastDomNode(document.createElement('div'));
|
|
116135
116135
|
viewportDomElement.setClassName('diffViewport');
|
|
116136
116136
|
viewportDomElement.setPosition('absolute');
|
|
116137
|
-
const diffOverviewRoot = h
|
|
116137
|
+
const diffOverviewRoot = h('div.diffOverview', {
|
|
116138
116138
|
style: { position: 'absolute', top: '0px', width: OverviewRulerPart_1.ENTIRE_DIFF_OVERVIEW_WIDTH + 'px' }
|
|
116139
116139
|
}).root;
|
|
116140
116140
|
this._register(appendRemoveOnDispose(diffOverviewRoot, viewportDomElement.domNode));
|
|
@@ -116614,11 +116614,11 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
|
|
|
116614
116614
|
this._parentInstantiationService = _parentInstantiationService;
|
|
116615
116615
|
this._audioCueService = _audioCueService;
|
|
116616
116616
|
this._editorProgressService = _editorProgressService;
|
|
116617
|
-
this.elements = h
|
|
116618
|
-
h
|
|
116619
|
-
h
|
|
116620
|
-
h
|
|
116621
|
-
h
|
|
116617
|
+
this.elements = h('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
|
|
116618
|
+
h('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$d('span', {}, 'No Changes')]),
|
|
116619
|
+
h('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
|
|
116620
|
+
h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
|
|
116621
|
+
h('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
|
|
116622
116622
|
]);
|
|
116623
116623
|
this._diffModel = observableValue(this, undefined);
|
|
116624
116624
|
this._shouldDisposeDiffModel = false;
|
|
@@ -117752,8 +117752,8 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
|
|
|
117752
117752
|
return { maxScroll: scroll2, width: this._originalWidth.read(reader) };
|
|
117753
117753
|
}
|
|
117754
117754
|
});
|
|
117755
|
-
this._elements = h
|
|
117756
|
-
h
|
|
117755
|
+
this._elements = h('div.multiDiffEntry', [
|
|
117756
|
+
h('div.content', {
|
|
117757
117757
|
style: {
|
|
117758
117758
|
display: 'flex',
|
|
117759
117759
|
flexDirection: 'column',
|
|
@@ -117761,19 +117761,19 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
|
|
|
117761
117761
|
overflow: 'hidden',
|
|
117762
117762
|
}
|
|
117763
117763
|
}, [
|
|
117764
|
-
h
|
|
117765
|
-
h
|
|
117766
|
-
h
|
|
117767
|
-
h
|
|
117764
|
+
h('div.header@header', [
|
|
117765
|
+
h('div.collapse-button@collapseButton'),
|
|
117766
|
+
h('div.title.show-file-icons@title', []),
|
|
117767
|
+
h('div.actions@actions'),
|
|
117768
117768
|
]),
|
|
117769
|
-
h
|
|
117769
|
+
h('div.editorParent', {
|
|
117770
117770
|
style: {
|
|
117771
117771
|
flex: '1',
|
|
117772
117772
|
display: 'flex',
|
|
117773
117773
|
flexDirection: 'column',
|
|
117774
117774
|
}
|
|
117775
117775
|
}, [
|
|
117776
|
-
h
|
|
117776
|
+
h('div.editorContainer@editor', { style: { flex: '1' } }),
|
|
117777
117777
|
])
|
|
117778
117778
|
])
|
|
117779
117779
|
]);
|
|
@@ -117974,17 +117974,17 @@ let MultiDiffEditorWidgetImpl = class MultiDiffEditorWidgetImpl extends Disposab
|
|
|
117974
117974
|
this._workbenchUIElementFactory = _workbenchUIElementFactory;
|
|
117975
117975
|
this._parentContextKeyService = _parentContextKeyService;
|
|
117976
117976
|
this._parentInstantiationService = _parentInstantiationService;
|
|
117977
|
-
this._elements = h
|
|
117977
|
+
this._elements = h('div', {
|
|
117978
117978
|
style: {
|
|
117979
117979
|
overflowY: 'hidden',
|
|
117980
117980
|
}
|
|
117981
117981
|
}, [
|
|
117982
|
-
h
|
|
117982
|
+
h('div@content', {
|
|
117983
117983
|
style: {
|
|
117984
117984
|
overflow: 'hidden',
|
|
117985
117985
|
}
|
|
117986
117986
|
}),
|
|
117987
|
-
h
|
|
117987
|
+
h('div.monaco-editor@overflowWidgetsDomNode', {}),
|
|
117988
117988
|
]);
|
|
117989
117989
|
this._sizeObserver = this._register(new ObservableElementSizeObserver(this._element, undefined));
|
|
117990
117990
|
this._objectPool = this._register(new ObjectPool((data) => {
|
|
@@ -120544,7 +120544,7 @@ registerLanguage({
|
|
|
120544
120544
|
mimetypes: ["text/css"],
|
|
120545
120545
|
loader: () => {
|
|
120546
120546
|
{
|
|
120547
|
-
return Promise.resolve().then(function () { return require('./css-
|
|
120547
|
+
return Promise.resolve().then(function () { return require('./css-c1dec897.js'); });
|
|
120548
120548
|
}
|
|
120549
120549
|
}
|
|
120550
120550
|
});
|
|
@@ -120562,7 +120562,7 @@ registerLanguage({
|
|
|
120562
120562
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120563
120563
|
loader: () => {
|
|
120564
120564
|
{
|
|
120565
|
-
return Promise.resolve().then(function () { return require('./html-
|
|
120565
|
+
return Promise.resolve().then(function () { return require('./html-a26829c5.js'); });
|
|
120566
120566
|
}
|
|
120567
120567
|
}
|
|
120568
120568
|
});
|
|
@@ -120582,7 +120582,7 @@ registerLanguage({
|
|
|
120582
120582
|
mimetypes: ["text/javascript"],
|
|
120583
120583
|
loader: () => {
|
|
120584
120584
|
{
|
|
120585
|
-
return Promise.resolve().then(function () { return require('./javascript-
|
|
120585
|
+
return Promise.resolve().then(function () { return require('./javascript-836a3c78.js'); });
|
|
120586
120586
|
}
|
|
120587
120587
|
}
|
|
120588
120588
|
});
|
|
@@ -120600,7 +120600,7 @@ registerLanguage({
|
|
|
120600
120600
|
mimetypes: ["text/typescript"],
|
|
120601
120601
|
loader: () => {
|
|
120602
120602
|
{
|
|
120603
|
-
return Promise.resolve().then(function () { return require('./typescript-
|
|
120603
|
+
return Promise.resolve().then(function () { return require('./typescript-07dfd341.js'); });
|
|
120604
120604
|
}
|
|
120605
120605
|
}
|
|
120606
120606
|
});
|
|
@@ -120721,7 +120721,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120721
120721
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120722
120722
|
function getMode$3() {
|
|
120723
120723
|
{
|
|
120724
|
-
return Promise.resolve().then(function () { return require('./cssMode-
|
|
120724
|
+
return Promise.resolve().then(function () { return require('./cssMode-8a51d0ec.js'); });
|
|
120725
120725
|
}
|
|
120726
120726
|
}
|
|
120727
120727
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120846,7 +120846,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120846
120846
|
};
|
|
120847
120847
|
function getMode$2() {
|
|
120848
120848
|
{
|
|
120849
|
-
return Promise.resolve().then(function () { return require('./htmlMode-
|
|
120849
|
+
return Promise.resolve().then(function () { return require('./htmlMode-d59290f4.js'); });
|
|
120850
120850
|
}
|
|
120851
120851
|
}
|
|
120852
120852
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -120948,7 +120948,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
120948
120948
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120949
120949
|
function getMode$1() {
|
|
120950
120950
|
{
|
|
120951
|
-
return Promise.resolve().then(function () { return require('./jsonMode-
|
|
120951
|
+
return Promise.resolve().then(function () { return require('./jsonMode-2600ca0a.js'); });
|
|
120952
120952
|
}
|
|
120953
120953
|
}
|
|
120954
120954
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121217,7 +121217,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121217
121217
|
};
|
|
121218
121218
|
function getMode() {
|
|
121219
121219
|
{
|
|
121220
|
-
return Promise.resolve().then(function () { return require('./tsMode-
|
|
121220
|
+
return Promise.resolve().then(function () { return require('./tsMode-b10eb9a7.js'); });
|
|
121221
121221
|
}
|
|
121222
121222
|
}
|
|
121223
121223
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -132875,8 +132875,8 @@ let InlineSuggestionHintsContentWidget = InlineSuggestionHintsContentWidget_1 =
|
|
|
132875
132875
|
this.id = `InlineSuggestionHintsContentWidget${InlineSuggestionHintsContentWidget_1.id++}`;
|
|
132876
132876
|
this.allowEditorOverflow = true;
|
|
132877
132877
|
this.suppressMouseDown = false;
|
|
132878
|
-
this.nodes = h
|
|
132879
|
-
h
|
|
132878
|
+
this.nodes = h('div.inlineSuggestionsHints', { className: this.withBorder ? '.withBorder' : '' }, [
|
|
132879
|
+
h('div@toolBar'),
|
|
132880
132880
|
]);
|
|
132881
132881
|
this.previousAction = this.createCommandAction(showPreviousInlineSuggestionActionId, localize('previous', 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon));
|
|
132882
132882
|
this.availableSuggestionCountAction = new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false);
|
|
@@ -133012,7 +133012,7 @@ class StatusBarViewItem$1 extends MenuEntryActionViewItem {
|
|
|
133012
133012
|
return super.updateLabel();
|
|
133013
133013
|
}
|
|
133014
133014
|
if (this.label) {
|
|
133015
|
-
const div = h
|
|
133015
|
+
const div = h('div.keybinding').root;
|
|
133016
133016
|
const k = new KeybindingLabel(div, OS, { disableTitle: true, ...unthemedKeybindingLabelOptions });
|
|
133017
133017
|
k.set(kb);
|
|
133018
133018
|
this.label.textContent = this._action.label;
|
|
@@ -168947,68 +168947,78 @@ var main = createCommonjsModule(function (module, exports) {
|
|
|
168947
168947
|
});
|
|
168948
168948
|
});
|
|
168949
168949
|
|
|
168950
|
-
|
|
168950
|
+
// src/index.ts
|
|
168951
|
+
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
|
|
168951
168952
|
function isDefaultModule(module) {
|
|
168952
|
-
|
|
168953
|
+
return module.default !== void 0;
|
|
168953
168954
|
}
|
|
168954
|
-
async function
|
|
168955
|
-
|
|
168956
|
-
|
|
168957
|
-
|
|
168955
|
+
async function importCoreAccessor() {
|
|
168956
|
+
if (isAMD) {
|
|
168957
|
+
return await window.$arcgis.import("esri/core/Accessor");
|
|
168958
|
+
}
|
|
168959
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/core/Accessor.js')); });
|
|
168960
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168958
168961
|
}
|
|
168959
168962
|
async function importLayersFeatureLayer() {
|
|
168960
|
-
|
|
168961
|
-
|
|
168962
|
-
|
|
168963
|
-
|
|
168964
|
-
|
|
168963
|
+
if (isAMD) {
|
|
168964
|
+
return await window.$arcgis.import("esri/layers/FeatureLayer");
|
|
168965
|
+
}
|
|
168966
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/layers/FeatureLayer.js')); });
|
|
168967
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168965
168968
|
}
|
|
168966
168969
|
async function importPortalPortalItem() {
|
|
168967
|
-
|
|
168968
|
-
|
|
168969
|
-
|
|
168970
|
-
|
|
168971
|
-
|
|
168970
|
+
if (isAMD) {
|
|
168971
|
+
return await window.$arcgis.import("esri/portal/PortalItem");
|
|
168972
|
+
}
|
|
168973
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/portal/PortalItem.js')); });
|
|
168974
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168972
168975
|
}
|
|
168973
168976
|
async function newPortalPortalItem(properties) {
|
|
168974
|
-
|
|
168975
|
-
|
|
168977
|
+
const ModConstructor = await importPortalPortalItem();
|
|
168978
|
+
return new ModConstructor(properties);
|
|
168976
168979
|
}
|
|
168977
168980
|
async function importWebMap() {
|
|
168978
|
-
|
|
168979
|
-
|
|
168980
|
-
|
|
168981
|
-
|
|
168982
|
-
|
|
168981
|
+
if (isAMD) {
|
|
168982
|
+
return await window.$arcgis.import("esri/WebMap");
|
|
168983
|
+
}
|
|
168984
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/WebMap.js')); });
|
|
168985
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168983
168986
|
}
|
|
168984
168987
|
async function newWebMap(properties) {
|
|
168985
|
-
|
|
168986
|
-
|
|
168988
|
+
const ModConstructor = await importWebMap();
|
|
168989
|
+
return new ModConstructor(properties);
|
|
168987
168990
|
}
|
|
168988
168991
|
async function importWebScene() {
|
|
168989
|
-
|
|
168990
|
-
|
|
168991
|
-
|
|
168992
|
-
|
|
168993
|
-
|
|
168992
|
+
if (isAMD) {
|
|
168993
|
+
return await window.$arcgis.import("esri/WebScene");
|
|
168994
|
+
}
|
|
168995
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/WebScene.js')); });
|
|
168996
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168994
168997
|
}
|
|
168995
168998
|
async function newWebScene(properties) {
|
|
168996
|
-
|
|
168997
|
-
|
|
168999
|
+
const ModConstructor = await importWebScene();
|
|
169000
|
+
return new ModConstructor(properties);
|
|
168998
169001
|
}
|
|
168999
169002
|
async function importArcade() {
|
|
169000
|
-
|
|
169001
|
-
|
|
169002
|
-
|
|
169003
|
-
|
|
169004
|
-
|
|
169003
|
+
if (isAMD) {
|
|
169004
|
+
return await window.$arcgis.import("esri/arcade");
|
|
169005
|
+
}
|
|
169006
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/arcade.js')); });
|
|
169007
|
+
return isDefaultModule(module) ? module.default : module;
|
|
169008
|
+
}
|
|
169009
|
+
async function importCoreAccessorSupportDecorators() {
|
|
169010
|
+
if (isAMD) {
|
|
169011
|
+
return await window.$arcgis.import("esri/core/accessorSupport/decorators");
|
|
169012
|
+
}
|
|
169013
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/core/accessorSupport/decorators.js')); });
|
|
169014
|
+
return isDefaultModule(module) ? module.default : module;
|
|
169005
169015
|
}
|
|
169006
169016
|
async function importRequest() {
|
|
169007
|
-
|
|
169008
|
-
|
|
169009
|
-
|
|
169010
|
-
|
|
169011
|
-
|
|
169017
|
+
if (isAMD) {
|
|
169018
|
+
return await window.$arcgis.import("esri/request");
|
|
169019
|
+
}
|
|
169020
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/request.js')); });
|
|
169021
|
+
return isDefaultModule(module) ? module.default : module;
|
|
169012
169022
|
}
|
|
169013
169023
|
|
|
169014
169024
|
//#region core adapter fix
|
|
@@ -169172,30 +169182,346 @@ async function serviceMetaData(url) {
|
|
|
169172
169182
|
const response = await request(url, { responseType: "json", query: { f: "json" } });
|
|
169173
169183
|
const data = {
|
|
169174
169184
|
layers: response.data?.layers ?? [],
|
|
169175
|
-
tables: response.data?.tables ?? []
|
|
169185
|
+
tables: response.data?.tables ?? [],
|
|
169176
169186
|
};
|
|
169177
169187
|
const queryCapability = url.endsWith("MapServer/layers") ? "data" : "query";
|
|
169178
|
-
const layers =
|
|
169179
|
-
const tables =
|
|
169188
|
+
const layers = getSupportedLayerInfos(data.layers, queryCapability);
|
|
169189
|
+
const tables = getSupportedLayerInfos(data.tables, queryCapability);
|
|
169180
169190
|
return { layers, tables };
|
|
169181
169191
|
}
|
|
169182
|
-
function
|
|
169192
|
+
function getSupportedLayerInfos(layers, queryCapability) {
|
|
169183
169193
|
return layers.filter((layer) => {
|
|
169184
|
-
|
|
169185
|
-
|
|
169194
|
+
switch (layer.type) {
|
|
169195
|
+
case "Feature Layer":
|
|
169196
|
+
case "Oriented Imagery Layer":
|
|
169197
|
+
case "Table": {
|
|
169198
|
+
const capabilities = layer.capabilities
|
|
169199
|
+
? layer.capabilities
|
|
169200
|
+
.toLowerCase()
|
|
169201
|
+
.split(",")
|
|
169202
|
+
.map((value) => value.trim())
|
|
169203
|
+
: [];
|
|
169204
|
+
return capabilities.includes(queryCapability);
|
|
169205
|
+
}
|
|
169206
|
+
default:
|
|
169207
|
+
return false;
|
|
169186
169208
|
}
|
|
169187
|
-
const capabilities = layer.capabilities
|
|
169188
|
-
? layer.capabilities
|
|
169189
|
-
.toLowerCase()
|
|
169190
|
-
.split(",")
|
|
169191
|
-
.map((value) => value.trim())
|
|
169192
|
-
: [];
|
|
169193
|
-
return capabilities.includes(queryCapability);
|
|
169194
169209
|
});
|
|
169195
169210
|
}
|
|
169196
169211
|
//#endregion
|
|
169197
169212
|
|
|
169198
|
-
|
|
169213
|
+
// src/array-utils.ts
|
|
169214
|
+
|
|
169215
|
+
// src/deferred.ts
|
|
169216
|
+
var Deferred = class {
|
|
169217
|
+
/**
|
|
169218
|
+
* Creates a new deferred promise.
|
|
169219
|
+
*/
|
|
169220
|
+
constructor() {
|
|
169221
|
+
this.resolve = () => void 0;
|
|
169222
|
+
this.reject = () => void 0;
|
|
169223
|
+
this.promise = new Promise((resolve, reject) => {
|
|
169224
|
+
this.resolve = resolve;
|
|
169225
|
+
this.reject = reject;
|
|
169226
|
+
});
|
|
169227
|
+
}
|
|
169228
|
+
};
|
|
169229
|
+
|
|
169230
|
+
// src/dom.ts
|
|
169231
|
+
function inTargetElement(element, targetElement) {
|
|
169232
|
+
let currentElement = element;
|
|
169233
|
+
while (currentElement) {
|
|
169234
|
+
if (currentElement === targetElement) {
|
|
169235
|
+
return true;
|
|
169236
|
+
}
|
|
169237
|
+
if (!currentElement.parentNode) {
|
|
169238
|
+
return false;
|
|
169239
|
+
}
|
|
169240
|
+
if (currentElement.parentNode instanceof ShadowRoot) {
|
|
169241
|
+
currentElement = currentElement.parentNode.host;
|
|
169242
|
+
} else {
|
|
169243
|
+
currentElement = currentElement.parentNode;
|
|
169244
|
+
}
|
|
169245
|
+
}
|
|
169246
|
+
return false;
|
|
169247
|
+
}
|
|
169248
|
+
function observeAncestorsMutation(element, attributeFilter, callback) {
|
|
169249
|
+
const { subscribe } = observe(attributeFilter);
|
|
169250
|
+
return subscribe((mutations) => {
|
|
169251
|
+
const matched = mutations.some((mutation) => inTargetElement(element, mutation.target));
|
|
169252
|
+
if (matched)
|
|
169253
|
+
callback();
|
|
169254
|
+
});
|
|
169255
|
+
}
|
|
169256
|
+
var observers = {};
|
|
169257
|
+
function observe(attributeFilter) {
|
|
169258
|
+
const attributes = attributeFilter.join(",");
|
|
169259
|
+
const previousObserver = observers[attributes];
|
|
169260
|
+
if (previousObserver !== void 0)
|
|
169261
|
+
return previousObserver;
|
|
169262
|
+
const subscribers = /* @__PURE__ */ new Set();
|
|
169263
|
+
const mutationObserver = new MutationObserver((mutations) => subscribers.forEach((callback) => callback(mutations)));
|
|
169264
|
+
mutationObserver.observe(document.documentElement, {
|
|
169265
|
+
attributes: true,
|
|
169266
|
+
attributeFilter,
|
|
169267
|
+
subtree: true
|
|
169268
|
+
});
|
|
169269
|
+
const observer = {
|
|
169270
|
+
subscribe(callback) {
|
|
169271
|
+
subscribers.add(callback);
|
|
169272
|
+
return {
|
|
169273
|
+
remove: () => {
|
|
169274
|
+
subscribers.delete(callback);
|
|
169275
|
+
if (subscribers.size === 0) {
|
|
169276
|
+
mutationObserver.disconnect();
|
|
169277
|
+
observers[attributes] = void 0;
|
|
169278
|
+
}
|
|
169279
|
+
}
|
|
169280
|
+
};
|
|
169281
|
+
}
|
|
169282
|
+
};
|
|
169283
|
+
observers[attributes] = observer;
|
|
169284
|
+
return observer;
|
|
169285
|
+
}
|
|
169286
|
+
function closestElement(base, selector) {
|
|
169287
|
+
let currentElement = base;
|
|
169288
|
+
while (currentElement) {
|
|
169289
|
+
const element = currentElement.closest(selector);
|
|
169290
|
+
if (element) {
|
|
169291
|
+
return element;
|
|
169292
|
+
}
|
|
169293
|
+
const rootElement = currentElement.getRootNode();
|
|
169294
|
+
if (rootElement === document) {
|
|
169295
|
+
return null;
|
|
169296
|
+
}
|
|
169297
|
+
currentElement = rootElement.host;
|
|
169298
|
+
}
|
|
169299
|
+
return null;
|
|
169300
|
+
}
|
|
169301
|
+
function getElementTheme(base) {
|
|
169302
|
+
const themeElt = closestElement(base, ":is(.calcite-mode-light, .calcite-mode-dark)");
|
|
169303
|
+
return themeElt && themeElt.classList.contains("calcite-mode-dark") ? "dark" : "light";
|
|
169304
|
+
}
|
|
169305
|
+
function isElement(ref) {
|
|
169306
|
+
return ref.nodeType === Node.ELEMENT_NODE;
|
|
169307
|
+
}
|
|
169308
|
+
function isHTMLWithSetFocus(ref) {
|
|
169309
|
+
return "setFocus" in ref && typeof ref.setFocus === "function";
|
|
169310
|
+
}
|
|
169311
|
+
function setFocus(ref, selector = "") {
|
|
169312
|
+
if (!isElement(ref)) {
|
|
169313
|
+
return false;
|
|
169314
|
+
}
|
|
169315
|
+
if (ref.matches(selector)) {
|
|
169316
|
+
if (isHTMLWithSetFocus(ref)) {
|
|
169317
|
+
setTimeout(() => ref.setFocus(), 0);
|
|
169318
|
+
}
|
|
169319
|
+
return true;
|
|
169320
|
+
}
|
|
169321
|
+
for (const child of ref.children) {
|
|
169322
|
+
if (setFocus(child, selector)) {
|
|
169323
|
+
return true;
|
|
169324
|
+
}
|
|
169325
|
+
}
|
|
169326
|
+
const shadowRoot = ref.shadowRoot;
|
|
169327
|
+
if (shadowRoot) {
|
|
169328
|
+
for (const child of shadowRoot.children) {
|
|
169329
|
+
if (setFocus(child, selector)) {
|
|
169330
|
+
return true;
|
|
169331
|
+
}
|
|
169332
|
+
}
|
|
169333
|
+
}
|
|
169334
|
+
return false;
|
|
169335
|
+
}
|
|
169336
|
+
function setFocusOnElement(ref, selector) {
|
|
169337
|
+
if (!ref?.shadowRoot) {
|
|
169338
|
+
return;
|
|
169339
|
+
}
|
|
169340
|
+
if (ref.hasAttribute("hydrated") || ref.hasAttribute("calcite-hydrated")) {
|
|
169341
|
+
setFocus(ref, selector);
|
|
169342
|
+
return;
|
|
169343
|
+
}
|
|
169344
|
+
const mutationObserver = new MutationObserver(() => {
|
|
169345
|
+
mutationObserver.disconnect();
|
|
169346
|
+
setFocus(ref, selector);
|
|
169347
|
+
});
|
|
169348
|
+
mutationObserver.observe(ref, {
|
|
169349
|
+
attributes: true,
|
|
169350
|
+
attributeFilter: ["hydrated", "calcite-hydrated"]
|
|
169351
|
+
});
|
|
169352
|
+
}
|
|
169353
|
+
|
|
169354
|
+
// src/guid.ts
|
|
169355
|
+
function gen(count) {
|
|
169356
|
+
let out = "";
|
|
169357
|
+
for (let i = 0; i < count; i++) {
|
|
169358
|
+
out += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
169359
|
+
}
|
|
169360
|
+
return out;
|
|
169361
|
+
}
|
|
169362
|
+
function generateGuid() {
|
|
169363
|
+
return [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
|
|
169364
|
+
}
|
|
169365
|
+
var upperBeforeLower = /[A-Z]+(?![a-z])|[A-Z]/gu;
|
|
169366
|
+
var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
|
|
169367
|
+
var camelToHuman = (string) => capitalize(string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : " "}${upper}`));
|
|
169368
|
+
|
|
169369
|
+
// src/intl.ts
|
|
169370
|
+
var supportedLocales = /* @__PURE__ */ new Set([
|
|
169371
|
+
"ar",
|
|
169372
|
+
"bg",
|
|
169373
|
+
"bs",
|
|
169374
|
+
"ca",
|
|
169375
|
+
"cs",
|
|
169376
|
+
"da",
|
|
169377
|
+
"de",
|
|
169378
|
+
"el",
|
|
169379
|
+
"en",
|
|
169380
|
+
"es",
|
|
169381
|
+
"et",
|
|
169382
|
+
"fi",
|
|
169383
|
+
"fr",
|
|
169384
|
+
"he",
|
|
169385
|
+
"hr",
|
|
169386
|
+
"hu",
|
|
169387
|
+
"id",
|
|
169388
|
+
"it",
|
|
169389
|
+
"ja",
|
|
169390
|
+
"ko",
|
|
169391
|
+
"lt",
|
|
169392
|
+
"lv",
|
|
169393
|
+
"nl",
|
|
169394
|
+
"nb",
|
|
169395
|
+
"pl",
|
|
169396
|
+
"pt-BR",
|
|
169397
|
+
"pt-PT",
|
|
169398
|
+
"ro",
|
|
169399
|
+
"ru",
|
|
169400
|
+
"sk",
|
|
169401
|
+
"sl",
|
|
169402
|
+
"sr",
|
|
169403
|
+
"sv",
|
|
169404
|
+
"th",
|
|
169405
|
+
"tr",
|
|
169406
|
+
"uk",
|
|
169407
|
+
"vi",
|
|
169408
|
+
"zh-CN",
|
|
169409
|
+
"zh-HK",
|
|
169410
|
+
"zh-TW"
|
|
169411
|
+
]);
|
|
169412
|
+
var defaultLocale = "en";
|
|
169413
|
+
async function fetchT9NStringsBundle(locale, assetsPath, prefix = "") {
|
|
169414
|
+
const path = `${assetsPath}/${prefix}`;
|
|
169415
|
+
const filePath = `${path}${locale}.json`;
|
|
169416
|
+
t9nStringsCache[filePath] ?? (t9nStringsCache[filePath] = fetchBundle(locale, path));
|
|
169417
|
+
return await t9nStringsCache[filePath];
|
|
169418
|
+
}
|
|
169419
|
+
var t9nStringsCache = {};
|
|
169420
|
+
async function fetchBundle(locale, path) {
|
|
169421
|
+
const filePath = `${path}${locale}.json`;
|
|
169422
|
+
try {
|
|
169423
|
+
const response = await fetch(filePath);
|
|
169424
|
+
if (response.ok)
|
|
169425
|
+
return await response.json();
|
|
169426
|
+
} catch (error) {
|
|
169427
|
+
console.error(error);
|
|
169428
|
+
return fallbackBundle;
|
|
169429
|
+
}
|
|
169430
|
+
if (locale === defaultLocale)
|
|
169431
|
+
return fallbackBundle;
|
|
169432
|
+
return await fetchBundle(defaultLocale, path);
|
|
169433
|
+
}
|
|
169434
|
+
var fallbackBundle = new Proxy(
|
|
169435
|
+
{},
|
|
169436
|
+
{
|
|
169437
|
+
get: (_target, property) => camelToHuman(property.toString())
|
|
169438
|
+
}
|
|
169439
|
+
);
|
|
169440
|
+
|
|
169441
|
+
// src/strings.ts
|
|
169442
|
+
var doubleQuote = '"';
|
|
169443
|
+
var singleQuote = "'";
|
|
169444
|
+
function repeatString(value, n) {
|
|
169445
|
+
return new Array(n + 1).join(value);
|
|
169446
|
+
}
|
|
169447
|
+
function quoteString(value) {
|
|
169448
|
+
let quote = doubleQuote;
|
|
169449
|
+
let alternateQuote = singleQuote;
|
|
169450
|
+
const avoidEscape = value.includes(quote) && !value.includes(alternateQuote);
|
|
169451
|
+
if (avoidEscape) {
|
|
169452
|
+
alternateQuote = doubleQuote;
|
|
169453
|
+
quote = singleQuote;
|
|
169454
|
+
}
|
|
169455
|
+
const alternateEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${alternateQuote})+)`, "gu");
|
|
169456
|
+
value = value.replace(
|
|
169457
|
+
alternateEscape,
|
|
169458
|
+
(_, boundaryChar, leadingEscapedSlashes, escapedQuoteChars) => (
|
|
169459
|
+
// We divide the escapedQuoteChars by 2 since there are 2 characters in each escaped part ('\\"'.length === 2)
|
|
169460
|
+
boundaryChar + leadingEscapedSlashes + repeatString(alternateQuote, escapedQuoteChars.length / 2)
|
|
169461
|
+
)
|
|
169462
|
+
);
|
|
169463
|
+
const quoteEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${quote}+)`, "gu");
|
|
169464
|
+
value = value.replace(
|
|
169465
|
+
quoteEscape,
|
|
169466
|
+
(_, boundaryChar, leadingEscapedSlashes, quoteChars) => boundaryChar + leadingEscapedSlashes + repeatString(`\\${quote}`, quoteChars.length)
|
|
169467
|
+
);
|
|
169468
|
+
return quote + value + quote;
|
|
169469
|
+
}
|
|
169470
|
+
function createFilterExpression(filterWord) {
|
|
169471
|
+
const sanitizedWord = filterWord ? filterWord.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu, "\\$&") : "^.*$";
|
|
169472
|
+
return new RegExp(sanitizedWord, "i");
|
|
169473
|
+
}
|
|
169474
|
+
function setValuesInString(message, values = {}) {
|
|
169475
|
+
return (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
|
|
169476
|
+
}
|
|
169477
|
+
function addLTRMark(value) {
|
|
169478
|
+
return `\u200E${value ?? ""}\u200E`;
|
|
169479
|
+
}
|
|
169480
|
+
|
|
169481
|
+
// src/type-guards.ts
|
|
169482
|
+
function isNotNull(item) {
|
|
169483
|
+
return item !== null;
|
|
169484
|
+
}
|
|
169485
|
+
function isNotUndefined(item) {
|
|
169486
|
+
return item !== void 0;
|
|
169487
|
+
}
|
|
169488
|
+
|
|
169489
|
+
// src/ui.ts
|
|
169490
|
+
function debounce(func, waitFor = 100) {
|
|
169491
|
+
let timeout;
|
|
169492
|
+
return (...args) => {
|
|
169493
|
+
const later = () => {
|
|
169494
|
+
clearTimeout(timeout);
|
|
169495
|
+
func(...args);
|
|
169496
|
+
};
|
|
169497
|
+
clearTimeout(timeout);
|
|
169498
|
+
timeout = setTimeout(later, waitFor);
|
|
169499
|
+
};
|
|
169500
|
+
}
|
|
169501
|
+
|
|
169502
|
+
// src/url.ts
|
|
169503
|
+
function hasSameOrigin(url1, url2, ignoreProtocol = false) {
|
|
169504
|
+
if (!url1 || !url2) {
|
|
169505
|
+
return false;
|
|
169506
|
+
}
|
|
169507
|
+
const url1Obj = new URL(url1);
|
|
169508
|
+
const url2Obj = new URL(url2);
|
|
169509
|
+
if (!ignoreProtocol && url1Obj.protocol !== url2Obj.protocol) {
|
|
169510
|
+
return false;
|
|
169511
|
+
}
|
|
169512
|
+
if (url1Obj.host == null || url2Obj.host == null) {
|
|
169513
|
+
return false;
|
|
169514
|
+
}
|
|
169515
|
+
return url1Obj.host.toLowerCase() === url2Obj.host.toLowerCase() && url1Obj.port === url2Obj.port;
|
|
169516
|
+
}
|
|
169517
|
+
function isURL(url) {
|
|
169518
|
+
try {
|
|
169519
|
+
new URL(url);
|
|
169520
|
+
return true;
|
|
169521
|
+
} catch (e) {
|
|
169522
|
+
return false;
|
|
169523
|
+
}
|
|
169524
|
+
}
|
|
169199
169525
|
|
|
169200
169526
|
/**
|
|
169201
169527
|
* Filters a collection of items by the given keys and filter word.
|
|
@@ -169208,7 +169534,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
|
|
|
169208
169534
|
if (!_keys.length) {
|
|
169209
169535
|
return [];
|
|
169210
169536
|
}
|
|
169211
|
-
const filterExpression =
|
|
169537
|
+
const filterExpression = createFilterExpression(filterWord);
|
|
169212
169538
|
return collection.filter((item) => {
|
|
169213
169539
|
if (beforeFilteringFn) {
|
|
169214
169540
|
const res = beforeFilteringFn(item);
|
|
@@ -169408,8 +169734,8 @@ function variableToLSVariable(editorVariable, kind) {
|
|
|
169408
169734
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169409
169735
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169410
169736
|
kind,
|
|
169411
|
-
documentation: { kind: "markdown", value: description }
|
|
169412
|
-
}
|
|
169737
|
+
documentation: { kind: "markdown", value: description },
|
|
169738
|
+
},
|
|
169413
169739
|
};
|
|
169414
169740
|
}
|
|
169415
169741
|
async function featureToLSFeature(editorFeature, kind) {
|
|
@@ -169423,14 +169749,14 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169423
169749
|
insertText: name,
|
|
169424
169750
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169425
169751
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169426
|
-
kind
|
|
169752
|
+
kind,
|
|
169427
169753
|
};
|
|
169428
169754
|
const result = {
|
|
169429
169755
|
name,
|
|
169430
169756
|
description,
|
|
169431
169757
|
type: "dictionary",
|
|
169432
169758
|
properties: [],
|
|
169433
|
-
completion: resultCompletion
|
|
169759
|
+
completion: resultCompletion,
|
|
169434
169760
|
};
|
|
169435
169761
|
// No source definition, then it will be a feature without any known fields
|
|
169436
169762
|
if (!source) {
|
|
@@ -169468,8 +169794,8 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169468
169794
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169469
169795
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169470
169796
|
kind: main.CompletionItemKind.Field,
|
|
169471
|
-
documentation: { kind: "markdown", value: fieldCompletionDescription }
|
|
169472
|
-
}
|
|
169797
|
+
documentation: { kind: "markdown", value: fieldCompletionDescription },
|
|
169798
|
+
},
|
|
169473
169799
|
});
|
|
169474
169800
|
if (!field.alias || field.alias.toLowerCase() === field.name.toLowerCase()) {
|
|
169475
169801
|
return;
|
|
@@ -169490,8 +169816,8 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169490
169816
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169491
169817
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169492
169818
|
kind: main.CompletionItemKind.Field,
|
|
169493
|
-
documentation: { kind: "markdown", value: aliasCompletionDescription }
|
|
169494
|
-
}
|
|
169819
|
+
documentation: { kind: "markdown", value: aliasCompletionDescription },
|
|
169820
|
+
},
|
|
169495
169821
|
});
|
|
169496
169822
|
});
|
|
169497
169823
|
result.properties = [...fieldProfileValues, ...aliasProfileValues];
|
|
@@ -169524,8 +169850,8 @@ async function dictionaryToLSDictionary(editorDictionary, kind) {
|
|
|
169524
169850
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169525
169851
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169526
169852
|
kind,
|
|
169527
|
-
documentation: { kind: "markdown", value: completionDescription }
|
|
169528
|
-
}
|
|
169853
|
+
documentation: { kind: "markdown", value: completionDescription },
|
|
169854
|
+
},
|
|
169529
169855
|
};
|
|
169530
169856
|
}
|
|
169531
169857
|
/**
|
|
@@ -169552,9 +169878,9 @@ class ProfileItemBase {
|
|
|
169552
169878
|
// If the component is under RTL, the string is messed up.
|
|
169553
169879
|
// It is converted from $feature to feature$, This is not acceptable since the label
|
|
169554
169880
|
// represents a variable name. We are adding in front of the $ sign a right to left mark.
|
|
169555
|
-
return
|
|
169881
|
+
return addLTRMark(this._label);
|
|
169556
169882
|
}
|
|
169557
|
-
return
|
|
169883
|
+
return setValuesInString(this._profile?.intlStrings[this._label.code], this._label.formatValues);
|
|
169558
169884
|
}
|
|
169559
169885
|
/**
|
|
169560
169886
|
* Returns the description string.
|
|
@@ -169566,7 +169892,7 @@ class ProfileItemBase {
|
|
|
169566
169892
|
if (typeof this.description === "string") {
|
|
169567
169893
|
return this.description;
|
|
169568
169894
|
}
|
|
169569
|
-
return
|
|
169895
|
+
return setValuesInString(this._profile?.intlStrings[this.description.code], this.description.formatValues);
|
|
169570
169896
|
}
|
|
169571
169897
|
/**
|
|
169572
169898
|
* Returns true if the item pass the filter test
|
|
@@ -169743,28 +170069,28 @@ class DictionaryVariable extends CollectionBasedVariable {
|
|
|
169743
170069
|
return new FeatureVariable(this, { profile: this._profile, declaration, label: snippet, snippet });
|
|
169744
170070
|
case "featureSet":
|
|
169745
170071
|
return new FeatureSetVariable(this, { profile: this._profile, declaration, label: snippet, snippet }, [
|
|
169746
|
-
new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })
|
|
170072
|
+
new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet }),
|
|
169747
170073
|
]);
|
|
169748
170074
|
case "featureSetCollection":
|
|
169749
170075
|
return new FeatureSetCollectionVariable(this, {
|
|
169750
170076
|
profile: this._profile,
|
|
169751
170077
|
declaration,
|
|
169752
170078
|
label: snippet,
|
|
169753
|
-
snippet
|
|
170079
|
+
snippet,
|
|
169754
170080
|
});
|
|
169755
170081
|
case "dictionary":
|
|
169756
170082
|
return new DictionaryVariable(this, {
|
|
169757
170083
|
profile: this._profile,
|
|
169758
170084
|
declaration,
|
|
169759
170085
|
label: snippet,
|
|
169760
|
-
snippet
|
|
170086
|
+
snippet,
|
|
169761
170087
|
});
|
|
169762
170088
|
case "array":
|
|
169763
170089
|
return new ArrayVariable({
|
|
169764
170090
|
profile: this._profile,
|
|
169765
170091
|
declaration,
|
|
169766
170092
|
label: snippet,
|
|
169767
|
-
snippet
|
|
170093
|
+
snippet,
|
|
169768
170094
|
});
|
|
169769
170095
|
default:
|
|
169770
170096
|
console.error("Editor profile: Invalid profile variable", declaration);
|
|
@@ -169776,7 +170102,7 @@ class DictionaryVariable extends CollectionBasedVariable {
|
|
|
169776
170102
|
type: this.type,
|
|
169777
170103
|
name: "",
|
|
169778
170104
|
...this.declaration,
|
|
169779
|
-
properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
|
|
170105
|
+
properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
|
|
169780
170106
|
};
|
|
169781
170107
|
}
|
|
169782
170108
|
}
|
|
@@ -169807,7 +170133,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169807
170133
|
return this._profile?.intlStrings.layer ?? "layer";
|
|
169808
170134
|
}
|
|
169809
170135
|
async loadSource() {
|
|
169810
|
-
if (
|
|
170136
|
+
if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
|
|
169811
170137
|
return await this._loadPromise;
|
|
169812
170138
|
}
|
|
169813
170139
|
this._loadPromise = this._loadSource();
|
|
@@ -169842,7 +170168,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169842
170168
|
description: fieldAlias(field),
|
|
169843
170169
|
snippet: valueSnippet,
|
|
169844
170170
|
icon: fieldTypeToIconName(field),
|
|
169845
|
-
filterDescription: true
|
|
170171
|
+
filterDescription: true,
|
|
169846
170172
|
});
|
|
169847
170173
|
}
|
|
169848
170174
|
_getDomainDictionary(field) {
|
|
@@ -169935,7 +170261,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169935
170261
|
return null;
|
|
169936
170262
|
}
|
|
169937
170263
|
const domainValuesGroup = this._getCodedValueDomainGroup(fieldDomain, {
|
|
169938
|
-
code: "domainvalues"
|
|
170264
|
+
code: "domainvalues",
|
|
169939
170265
|
});
|
|
169940
170266
|
const domainDictionary = this._createDomainDictionary(field);
|
|
169941
170267
|
domainDictionary.variables.push(domainValuesGroup);
|
|
@@ -169953,7 +170279,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169953
170279
|
profile: this._profile,
|
|
169954
170280
|
label: `${label}`,
|
|
169955
170281
|
description: t.name,
|
|
169956
|
-
snippet: `"${label}"
|
|
170282
|
+
snippet: `"${label}"`,
|
|
169957
170283
|
});
|
|
169958
170284
|
}) ?? [];
|
|
169959
170285
|
return new GroupOfVariables(this._profile, { code: "subtypes" }, values);
|
|
@@ -169964,7 +170290,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169964
170290
|
label: `${v.code}`,
|
|
169965
170291
|
description: v.name,
|
|
169966
170292
|
snippet: `"${v.code}"`,
|
|
169967
|
-
filterDescription: true
|
|
170293
|
+
filterDescription: true,
|
|
169968
170294
|
}));
|
|
169969
170295
|
return new GroupOfVariables(this._profile, label, values);
|
|
169970
170296
|
}
|
|
@@ -169990,8 +170316,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169990
170316
|
code: "domainvaluesfortypeformat",
|
|
169991
170317
|
formatValues: {
|
|
169992
170318
|
fieldName: alias,
|
|
169993
|
-
typeName: type.name
|
|
169994
|
-
}
|
|
170319
|
+
typeName: type.name,
|
|
170320
|
+
},
|
|
169995
170321
|
});
|
|
169996
170322
|
const id = isSubtypeInstance(type) ? type.code : type.id;
|
|
169997
170323
|
const label = `${id}`;
|
|
@@ -170001,7 +170327,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170001
170327
|
label,
|
|
170002
170328
|
snippet,
|
|
170003
170329
|
description: type.name,
|
|
170004
|
-
declaration: { name: alias }
|
|
170330
|
+
declaration: { name: alias },
|
|
170005
170331
|
});
|
|
170006
170332
|
subtypeDictionary.variables = [domainValuesGroup];
|
|
170007
170333
|
variables.push(subtypeDictionary);
|
|
@@ -170023,7 +170349,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170023
170349
|
description: alias,
|
|
170024
170350
|
snippet: valueSnippet,
|
|
170025
170351
|
icon: "form-dropdown",
|
|
170026
|
-
declaration: { name: field.name }
|
|
170352
|
+
declaration: { name: field.name },
|
|
170027
170353
|
});
|
|
170028
170354
|
// Add the header group
|
|
170029
170355
|
const headerGroup = new GroupOfVariables(this._profile, alias, [
|
|
@@ -170031,8 +170357,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170031
170357
|
profile: this._profile,
|
|
170032
170358
|
label: valueSnippet,
|
|
170033
170359
|
description: "",
|
|
170034
|
-
snippet: valueSnippet
|
|
170035
|
-
})
|
|
170360
|
+
snippet: valueSnippet,
|
|
170361
|
+
}),
|
|
170036
170362
|
]);
|
|
170037
170363
|
domainDictionary.variables = [headerGroup];
|
|
170038
170364
|
// Add the SubtypeName or DomainName snippet if available
|
|
@@ -170042,7 +170368,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170042
170368
|
profile: this._profile,
|
|
170043
170369
|
label: subtypeOrDomainNameSnippet,
|
|
170044
170370
|
description: "",
|
|
170045
|
-
snippet: subtypeOrDomainNameSnippet
|
|
170371
|
+
snippet: subtypeOrDomainNameSnippet,
|
|
170046
170372
|
}));
|
|
170047
170373
|
}
|
|
170048
170374
|
return domainDictionary;
|
|
@@ -170072,10 +170398,10 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170072
170398
|
declaration: { definition: relatedLayer },
|
|
170073
170399
|
label: relatedLayer.title,
|
|
170074
170400
|
description: "",
|
|
170075
|
-
nonInteractive: true
|
|
170401
|
+
nonInteractive: true,
|
|
170076
170402
|
}, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
|
|
170077
170403
|
}));
|
|
170078
|
-
relationshipsGroup.variables = relationshipItems.filter(
|
|
170404
|
+
relationshipsGroup.variables = relationshipItems.filter(isNotNull);
|
|
170079
170405
|
if (!relationshipsGroup.variables.length) {
|
|
170080
170406
|
return null;
|
|
170081
170407
|
}
|
|
@@ -170089,7 +170415,7 @@ class FeatureVariable extends SourceBasedVariable {
|
|
|
170089
170415
|
}
|
|
170090
170416
|
get title() {
|
|
170091
170417
|
if (isSupportedLayerInstance(this._source)) {
|
|
170092
|
-
return this._source.title;
|
|
170418
|
+
return this._source.title ?? "";
|
|
170093
170419
|
}
|
|
170094
170420
|
return { code: "feature" };
|
|
170095
170421
|
}
|
|
@@ -170103,14 +170429,14 @@ class FeatureVariable extends SourceBasedVariable {
|
|
|
170103
170429
|
throw new Error("Invalid definition");
|
|
170104
170430
|
}
|
|
170105
170431
|
// The title group and snippet
|
|
170106
|
-
const title = isSupportedLayerInstance(this._source) ? this._source.title : "";
|
|
170432
|
+
const title = isSupportedLayerInstance(this._source) ? this._source.title ?? "" : "";
|
|
170107
170433
|
this.variables.push(new GroupOfVariables(this._profile, title, [
|
|
170108
170434
|
new ValueVariable({
|
|
170109
170435
|
profile: this._profile,
|
|
170110
170436
|
label: this.snippet,
|
|
170111
170437
|
description: "",
|
|
170112
|
-
snippet: this.snippet
|
|
170113
|
-
})
|
|
170438
|
+
snippet: this.snippet,
|
|
170439
|
+
}),
|
|
170114
170440
|
]));
|
|
170115
170441
|
// The collection of feature attribute values
|
|
170116
170442
|
const valuesGroup = new GroupOfVariables(this._profile, { code: "values" });
|
|
@@ -170125,7 +170451,7 @@ class FeatureVariable extends SourceBasedVariable {
|
|
|
170125
170451
|
description: "Geometry",
|
|
170126
170452
|
snippet,
|
|
170127
170453
|
icon: "shapes",
|
|
170128
|
-
filterDescription: true
|
|
170454
|
+
filterDescription: true,
|
|
170129
170455
|
});
|
|
170130
170456
|
valuesGroup.variables.push(geometryProperty);
|
|
170131
170457
|
}
|
|
@@ -170162,7 +170488,7 @@ class FeatureSetVariable extends SourceBasedVariable {
|
|
|
170162
170488
|
}
|
|
170163
170489
|
get title() {
|
|
170164
170490
|
if (isSupportedLayerInstance(this._source)) {
|
|
170165
|
-
return this._source.title;
|
|
170491
|
+
return this._source.title ?? "";
|
|
170166
170492
|
}
|
|
170167
170493
|
return { code: "featureset" };
|
|
170168
170494
|
}
|
|
@@ -170239,7 +170565,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170239
170565
|
return this._profile?.intlStrings.map ?? "map";
|
|
170240
170566
|
}
|
|
170241
170567
|
async loadSource() {
|
|
170242
|
-
if (
|
|
170568
|
+
if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
|
|
170243
170569
|
return await this._loadPromise;
|
|
170244
170570
|
}
|
|
170245
170571
|
this._loadPromise = this._loadSource();
|
|
@@ -170260,16 +170586,16 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170260
170586
|
: {
|
|
170261
170587
|
code: "webmapformat",
|
|
170262
170588
|
formatValues: {
|
|
170263
|
-
webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map"
|
|
170264
|
-
}
|
|
170589
|
+
webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map",
|
|
170590
|
+
},
|
|
170265
170591
|
};
|
|
170266
170592
|
const headerGroup = new GroupOfVariables(this._profile, groupLabel, [
|
|
170267
170593
|
new ValueVariable({
|
|
170268
170594
|
profile: this._profile,
|
|
170269
170595
|
label: this.snippet,
|
|
170270
170596
|
description: "",
|
|
170271
|
-
snippet: this.snippet
|
|
170272
|
-
})
|
|
170597
|
+
snippet: this.snippet,
|
|
170598
|
+
}),
|
|
170273
170599
|
]);
|
|
170274
170600
|
// Creates the groups for the layer and tables
|
|
170275
170601
|
const layersGroup = new GroupOfVariables(this._profile, { code: "layers" }, this._featureSetCollections.layers);
|
|
@@ -170316,7 +170642,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170316
170642
|
return {
|
|
170317
170643
|
layers: this._convertWebMapLayersToVariables(map.layers),
|
|
170318
170644
|
tables: this._convertWebMapLayersToVariables(map.tables, true),
|
|
170319
|
-
source: map
|
|
170645
|
+
source: map,
|
|
170320
170646
|
};
|
|
170321
170647
|
}
|
|
170322
170648
|
async _featureSetCollectionFromPortalItem(definition) {
|
|
@@ -170384,7 +170710,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170384
170710
|
declaration: { name: featureLayer.title, definition: featureLayer },
|
|
170385
170711
|
label: featureLayer.title,
|
|
170386
170712
|
description: "",
|
|
170387
|
-
nonInteractive: true
|
|
170713
|
+
nonInteractive: true,
|
|
170388
170714
|
}, this._makeFeatureSetSnippets(featureLayer, isFromWebMap));
|
|
170389
170715
|
}
|
|
170390
170716
|
_makeFeatureSetSnippets(featureLayer, isFromWebMap = false) {
|
|
@@ -170396,7 +170722,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170396
170722
|
const snippetByName = `FeatureSetByName(${this.snippet}, "${featureLayer.title}")`;
|
|
170397
170723
|
return [
|
|
170398
170724
|
new ValueVariable({ profile: this._profile, label: snippetById, description: "", snippet: snippetById }),
|
|
170399
|
-
new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName })
|
|
170725
|
+
new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName }),
|
|
170400
170726
|
];
|
|
170401
170727
|
}
|
|
170402
170728
|
else {
|
|
@@ -170421,7 +170747,7 @@ class EditorProfile extends DictionaryVariable {
|
|
|
170421
170747
|
// Delay the load of the variable declarations so we have a `this`
|
|
170422
170748
|
super(undefined, {
|
|
170423
170749
|
profile: null,
|
|
170424
|
-
declaration: { properties: [] }
|
|
170750
|
+
declaration: { properties: [] },
|
|
170425
170751
|
});
|
|
170426
170752
|
this.definition = definition;
|
|
170427
170753
|
this.intlStrings = intlStrings;
|
|
@@ -170453,7 +170779,7 @@ class EditorProfile extends DictionaryVariable {
|
|
|
170453
170779
|
toEditorProfileDefinition() {
|
|
170454
170780
|
return {
|
|
170455
170781
|
...this.definition,
|
|
170456
|
-
variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
|
|
170782
|
+
variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
|
|
170457
170783
|
};
|
|
170458
170784
|
}
|
|
170459
170785
|
}
|
|
@@ -170486,7 +170812,7 @@ async function getSdkPredefinedProfiles(locale = "en") {
|
|
|
170486
170812
|
if (profiles) {
|
|
170487
170813
|
return profiles;
|
|
170488
170814
|
}
|
|
170489
|
-
if (!
|
|
170815
|
+
if (!supportedLocales.has(locale)) {
|
|
170490
170816
|
return await getSdkPredefinedProfiles("en");
|
|
170491
170817
|
}
|
|
170492
170818
|
try {
|
|
@@ -170532,13 +170858,13 @@ function convertApiVariable(variable) {
|
|
|
170532
170858
|
return {
|
|
170533
170859
|
...variable,
|
|
170534
170860
|
type: variable.type,
|
|
170535
|
-
properties: convertApiVariables(variable.properties)
|
|
170861
|
+
properties: convertApiVariables(variable.properties),
|
|
170536
170862
|
};
|
|
170537
170863
|
case "array": {
|
|
170538
170864
|
return {
|
|
170539
170865
|
...variable,
|
|
170540
170866
|
type: variable.type,
|
|
170541
|
-
elementType: { type: "number", name: "number" }
|
|
170867
|
+
elementType: { type: "number", name: "number" },
|
|
170542
170868
|
};
|
|
170543
170869
|
}
|
|
170544
170870
|
default:
|
|
@@ -170556,7 +170882,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
170556
170882
|
const editorProfile = {
|
|
170557
170883
|
bundles: [...sdkPredefinedProfile.bundles],
|
|
170558
170884
|
variables: [],
|
|
170559
|
-
hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase())
|
|
170885
|
+
hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase()),
|
|
170560
170886
|
};
|
|
170561
170887
|
// Merge the SDK variables' definitions/properties with the predefined profile definitions.
|
|
170562
170888
|
sdkPredefinedProfile.variables.forEach((sdkVariable) => {
|
|
@@ -170574,7 +170900,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
170574
170900
|
return editorProfile.variables.push(convertApiVariable({
|
|
170575
170901
|
...sdkVariable,
|
|
170576
170902
|
type: sdkVariable.type,
|
|
170577
|
-
properties: Array.isArray(definition) ? [...definition] : sdkVariable.properties
|
|
170903
|
+
properties: Array.isArray(definition) ? [...definition] : sdkVariable.properties,
|
|
170578
170904
|
}));
|
|
170579
170905
|
case "feature":
|
|
170580
170906
|
if (isFeatureDefinition(definition)) {
|
|
@@ -170603,7 +170929,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
170603
170929
|
|
|
170604
170930
|
const arcadeLanguageId = "arcade";
|
|
170605
170931
|
const defaultContext = {
|
|
170606
|
-
locale: "en"
|
|
170932
|
+
locale: "en",
|
|
170607
170933
|
};
|
|
170608
170934
|
class ArcadeLanguageServiceDefaults {
|
|
170609
170935
|
constructor() {
|
|
@@ -170657,7 +170983,7 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170657
170983
|
if (isPredefinedProfile(definition)) {
|
|
170658
170984
|
definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
|
|
170659
170985
|
}
|
|
170660
|
-
const intlStrings = await
|
|
170986
|
+
const intlStrings = await fetchT9NStringsBundle(apiContext.locale, index.getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
170661
170987
|
if (!intlStrings) {
|
|
170662
170988
|
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
170663
170989
|
}
|
|
@@ -170669,7 +170995,7 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170669
170995
|
this.updateApiContextForModel(modelId, {
|
|
170670
170996
|
locale: apiContext.locale,
|
|
170671
170997
|
profile: apiProfile,
|
|
170672
|
-
snippets: apiContext.snippets
|
|
170998
|
+
snippets: apiContext.snippets,
|
|
170673
170999
|
});
|
|
170674
171000
|
}
|
|
170675
171001
|
/**
|
|
@@ -170736,41 +171062,41 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170736
171062
|
}
|
|
170737
171063
|
const arcadeDefaults = new ArcadeLanguageServiceDefaults();
|
|
170738
171064
|
const arcade = {
|
|
170739
|
-
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
|
|
171065
|
+
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults),
|
|
170740
171066
|
};
|
|
170741
171067
|
|
|
170742
|
-
exports.
|
|
170743
|
-
exports.D = D;
|
|
171068
|
+
exports.Deferred = Deferred;
|
|
170744
171069
|
exports.Emitter = Emitter;
|
|
170745
|
-
exports.G = G;
|
|
170746
171070
|
exports.IStandaloneThemeService = IStandaloneThemeService;
|
|
170747
|
-
exports.K = K;
|
|
170748
171071
|
exports.KeyCode = KeyCode;
|
|
170749
171072
|
exports.KeyMod = KeyMod;
|
|
170750
171073
|
exports.MarkerSeverity = MarkerSeverity;
|
|
170751
171074
|
exports.Range = Range;
|
|
170752
|
-
exports.U = U;
|
|
170753
171075
|
exports.Uri = Uri;
|
|
170754
|
-
exports.
|
|
170755
|
-
exports.Z = Z;
|
|
171076
|
+
exports.addLTRMark = addLTRMark;
|
|
170756
171077
|
exports.arcade = arcade;
|
|
170757
171078
|
exports.arcadeDefaults = arcadeDefaults;
|
|
170758
171079
|
exports.commonjsGlobal = commonjsGlobal;
|
|
170759
171080
|
exports.createCommonjsModule = createCommonjsModule;
|
|
171081
|
+
exports.createFilterExpression = createFilterExpression;
|
|
171082
|
+
exports.debounce = debounce;
|
|
170760
171083
|
exports.editor = editor;
|
|
170761
171084
|
exports.filterCollection = filterCollection;
|
|
171085
|
+
exports.generateGuid = generateGuid;
|
|
170762
171086
|
exports.generateTokensCSSForColorMap = generateTokensCSSForColorMap;
|
|
170763
|
-
exports.
|
|
170764
|
-
exports.
|
|
171087
|
+
exports.getElementTheme = getElementTheme;
|
|
171088
|
+
exports.hasSameOrigin = hasSameOrigin;
|
|
170765
171089
|
exports.importArcade = importArcade;
|
|
171090
|
+
exports.importCoreAccessor = importCoreAccessor;
|
|
171091
|
+
exports.importCoreAccessorSupportDecorators = importCoreAccessorSupportDecorators;
|
|
170766
171092
|
exports.importRequest = importRequest;
|
|
170767
|
-
exports.
|
|
171093
|
+
exports.isURL = isURL;
|
|
170768
171094
|
exports.languages = languages;
|
|
170769
171095
|
exports.main = main;
|
|
170770
171096
|
exports.monaco_editor_core_star = monaco_editor_core_star;
|
|
170771
|
-
exports.
|
|
170772
|
-
exports.
|
|
170773
|
-
exports.
|
|
171097
|
+
exports.observeAncestorsMutation = observeAncestorsMutation;
|
|
171098
|
+
exports.quoteString = quoteString;
|
|
171099
|
+
exports.setFocusOnElement = setFocusOnElement;
|
|
171100
|
+
exports.setValuesInString = setValuesInString;
|
|
170774
171101
|
exports.supportedFields = supportedFields;
|
|
170775
171102
|
exports.typescriptDefaults = typescriptDefaults;
|
|
170776
|
-
exports.x = x;
|