@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,9 +1,9 @@
|
|
|
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
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-0030b0f4.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns the last element of an array.
|
|
@@ -20619,7 +20619,7 @@ class DragAndDropObserver extends Disposable {
|
|
|
20619
20619
|
}
|
|
20620
20620
|
}
|
|
20621
20621
|
const H_REGEX = /(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;
|
|
20622
|
-
function h
|
|
20622
|
+
function h(tag, ...args) {
|
|
20623
20623
|
let attributes;
|
|
20624
20624
|
let children;
|
|
20625
20625
|
if (Array.isArray(args[0])) {
|
|
@@ -113875,15 +113875,15 @@ class LinesLayout {
|
|
|
113875
113875
|
}
|
|
113876
113876
|
class MovedBlockOverlayWidget extends ViewZoneOverlayWidget {
|
|
113877
113877
|
constructor(_editor, _viewZone, _move, _kind, _diffModel) {
|
|
113878
|
-
const root = h
|
|
113878
|
+
const root = h('div.diff-hidden-lines-widget');
|
|
113879
113879
|
super(_editor, _viewZone, root.root);
|
|
113880
113880
|
this._editor = _editor;
|
|
113881
113881
|
this._move = _move;
|
|
113882
113882
|
this._kind = _kind;
|
|
113883
113883
|
this._diffModel = _diffModel;
|
|
113884
|
-
this._nodes = h
|
|
113885
|
-
h
|
|
113886
|
-
h
|
|
113884
|
+
this._nodes = h('div.diff-moved-code-block', { style: { marginRight: '4px' } }, [
|
|
113885
|
+
h('div.text-content@textContent'),
|
|
113886
|
+
h('div.action-bar@actionBar'),
|
|
113887
113887
|
]);
|
|
113888
113888
|
root.root.appendChild(this._nodes.root);
|
|
113889
113889
|
const editorLayout = observableFromEvent(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
|
|
@@ -114082,7 +114082,7 @@ class RevertButton {
|
|
|
114082
114082
|
this._diffs = _diffs;
|
|
114083
114083
|
this._selection = _selection;
|
|
114084
114084
|
this._id = `revertButton${RevertButton.counter++}`;
|
|
114085
|
-
this._domNode = h
|
|
114085
|
+
this._domNode = h('div.revertButton', {
|
|
114086
114086
|
title: this._selection
|
|
114087
114087
|
? localize('revertSelectedChanges', 'Revert Selected Changes')
|
|
114088
114088
|
: localize('revertChange', 'Revert Change')
|
|
@@ -114555,7 +114555,7 @@ HideUnchangedRegionsFeature = __decorate$1B([
|
|
|
114555
114555
|
], HideUnchangedRegionsFeature);
|
|
114556
114556
|
class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
114557
114557
|
constructor(_editor, _viewZone, _unchangedRegion, _unchangedRegionRange, _hide, _modifiedOutlineSource, _revealModifiedHiddenLine, _options) {
|
|
114558
|
-
const root = h
|
|
114558
|
+
const root = h('div.diff-hidden-lines-widget');
|
|
114559
114559
|
super(_editor, _viewZone, root.root);
|
|
114560
114560
|
this._editor = _editor;
|
|
114561
114561
|
this._unchangedRegion = _unchangedRegion;
|
|
@@ -114564,13 +114564,13 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
114564
114564
|
this._modifiedOutlineSource = _modifiedOutlineSource;
|
|
114565
114565
|
this._revealModifiedHiddenLine = _revealModifiedHiddenLine;
|
|
114566
114566
|
this._options = _options;
|
|
114567
|
-
this._nodes = h
|
|
114568
|
-
h
|
|
114569
|
-
h
|
|
114570
|
-
h
|
|
114571
|
-
h
|
|
114567
|
+
this._nodes = h('div.diff-hidden-lines', [
|
|
114568
|
+
h('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
|
|
114569
|
+
h('div.center@content', { style: { display: 'flex' } }, [
|
|
114570
|
+
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)'))]),
|
|
114571
|
+
h('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
|
|
114572
114572
|
]),
|
|
114573
|
-
h
|
|
114573
|
+
h('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
|
|
114574
114574
|
]);
|
|
114575
114575
|
root.root.appendChild(this._nodes.root);
|
|
114576
114576
|
const layoutInfo = observableFromEvent(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
|
|
@@ -114695,7 +114695,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
114695
114695
|
for (let i = 0; i < items.length; i++) {
|
|
114696
114696
|
const item = items[i];
|
|
114697
114697
|
const icon = SymbolKinds.toIcon(item.kind);
|
|
114698
|
-
const divItem = h
|
|
114698
|
+
const divItem = h('div.breadcrumb-item', {
|
|
114699
114699
|
style: { display: 'flex', alignItems: 'center' },
|
|
114700
114700
|
}, [
|
|
114701
114701
|
renderIcon(icon),
|
|
@@ -116112,7 +116112,7 @@ let OverviewRulerPart = OverviewRulerPart_1 = class OverviewRulerPart extends Di
|
|
|
116112
116112
|
const viewportDomElement = createFastDomNode(document.createElement('div'));
|
|
116113
116113
|
viewportDomElement.setClassName('diffViewport');
|
|
116114
116114
|
viewportDomElement.setPosition('absolute');
|
|
116115
|
-
const diffOverviewRoot = h
|
|
116115
|
+
const diffOverviewRoot = h('div.diffOverview', {
|
|
116116
116116
|
style: { position: 'absolute', top: '0px', width: OverviewRulerPart_1.ENTIRE_DIFF_OVERVIEW_WIDTH + 'px' }
|
|
116117
116117
|
}).root;
|
|
116118
116118
|
this._register(appendRemoveOnDispose(diffOverviewRoot, viewportDomElement.domNode));
|
|
@@ -116592,11 +116592,11 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
|
|
|
116592
116592
|
this._parentInstantiationService = _parentInstantiationService;
|
|
116593
116593
|
this._audioCueService = _audioCueService;
|
|
116594
116594
|
this._editorProgressService = _editorProgressService;
|
|
116595
|
-
this.elements = h
|
|
116596
|
-
h
|
|
116597
|
-
h
|
|
116598
|
-
h
|
|
116599
|
-
h
|
|
116595
|
+
this.elements = h('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
|
|
116596
|
+
h('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$d('span', {}, 'No Changes')]),
|
|
116597
|
+
h('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
|
|
116598
|
+
h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
|
|
116599
|
+
h('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
|
|
116600
116600
|
]);
|
|
116601
116601
|
this._diffModel = observableValue(this, undefined);
|
|
116602
116602
|
this._shouldDisposeDiffModel = false;
|
|
@@ -117730,8 +117730,8 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
|
|
|
117730
117730
|
return { maxScroll: scroll2, width: this._originalWidth.read(reader) };
|
|
117731
117731
|
}
|
|
117732
117732
|
});
|
|
117733
|
-
this._elements = h
|
|
117734
|
-
h
|
|
117733
|
+
this._elements = h('div.multiDiffEntry', [
|
|
117734
|
+
h('div.content', {
|
|
117735
117735
|
style: {
|
|
117736
117736
|
display: 'flex',
|
|
117737
117737
|
flexDirection: 'column',
|
|
@@ -117739,19 +117739,19 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
|
|
|
117739
117739
|
overflow: 'hidden',
|
|
117740
117740
|
}
|
|
117741
117741
|
}, [
|
|
117742
|
-
h
|
|
117743
|
-
h
|
|
117744
|
-
h
|
|
117745
|
-
h
|
|
117742
|
+
h('div.header@header', [
|
|
117743
|
+
h('div.collapse-button@collapseButton'),
|
|
117744
|
+
h('div.title.show-file-icons@title', []),
|
|
117745
|
+
h('div.actions@actions'),
|
|
117746
117746
|
]),
|
|
117747
|
-
h
|
|
117747
|
+
h('div.editorParent', {
|
|
117748
117748
|
style: {
|
|
117749
117749
|
flex: '1',
|
|
117750
117750
|
display: 'flex',
|
|
117751
117751
|
flexDirection: 'column',
|
|
117752
117752
|
}
|
|
117753
117753
|
}, [
|
|
117754
|
-
h
|
|
117754
|
+
h('div.editorContainer@editor', { style: { flex: '1' } }),
|
|
117755
117755
|
])
|
|
117756
117756
|
])
|
|
117757
117757
|
]);
|
|
@@ -117952,17 +117952,17 @@ let MultiDiffEditorWidgetImpl = class MultiDiffEditorWidgetImpl extends Disposab
|
|
|
117952
117952
|
this._workbenchUIElementFactory = _workbenchUIElementFactory;
|
|
117953
117953
|
this._parentContextKeyService = _parentContextKeyService;
|
|
117954
117954
|
this._parentInstantiationService = _parentInstantiationService;
|
|
117955
|
-
this._elements = h
|
|
117955
|
+
this._elements = h('div', {
|
|
117956
117956
|
style: {
|
|
117957
117957
|
overflowY: 'hidden',
|
|
117958
117958
|
}
|
|
117959
117959
|
}, [
|
|
117960
|
-
h
|
|
117960
|
+
h('div@content', {
|
|
117961
117961
|
style: {
|
|
117962
117962
|
overflow: 'hidden',
|
|
117963
117963
|
}
|
|
117964
117964
|
}),
|
|
117965
|
-
h
|
|
117965
|
+
h('div.monaco-editor@overflowWidgetsDomNode', {}),
|
|
117966
117966
|
]);
|
|
117967
117967
|
this._sizeObserver = this._register(new ObservableElementSizeObserver(this._element, undefined));
|
|
117968
117968
|
this._objectPool = this._register(new ObjectPool((data) => {
|
|
@@ -120522,7 +120522,7 @@ registerLanguage({
|
|
|
120522
120522
|
mimetypes: ["text/css"],
|
|
120523
120523
|
loader: () => {
|
|
120524
120524
|
{
|
|
120525
|
-
return import('./css-
|
|
120525
|
+
return import('./css-1e20a73b.js');
|
|
120526
120526
|
}
|
|
120527
120527
|
}
|
|
120528
120528
|
});
|
|
@@ -120540,7 +120540,7 @@ registerLanguage({
|
|
|
120540
120540
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120541
120541
|
loader: () => {
|
|
120542
120542
|
{
|
|
120543
|
-
return import('./html-
|
|
120543
|
+
return import('./html-f8a0ecfe.js');
|
|
120544
120544
|
}
|
|
120545
120545
|
}
|
|
120546
120546
|
});
|
|
@@ -120560,7 +120560,7 @@ registerLanguage({
|
|
|
120560
120560
|
mimetypes: ["text/javascript"],
|
|
120561
120561
|
loader: () => {
|
|
120562
120562
|
{
|
|
120563
|
-
return import('./javascript-
|
|
120563
|
+
return import('./javascript-bd547f0f.js');
|
|
120564
120564
|
}
|
|
120565
120565
|
}
|
|
120566
120566
|
});
|
|
@@ -120578,7 +120578,7 @@ registerLanguage({
|
|
|
120578
120578
|
mimetypes: ["text/typescript"],
|
|
120579
120579
|
loader: () => {
|
|
120580
120580
|
{
|
|
120581
|
-
return import('./typescript-
|
|
120581
|
+
return import('./typescript-51b03c89.js');
|
|
120582
120582
|
}
|
|
120583
120583
|
}
|
|
120584
120584
|
});
|
|
@@ -120699,7 +120699,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120699
120699
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120700
120700
|
function getMode$3() {
|
|
120701
120701
|
{
|
|
120702
|
-
return import('./cssMode-
|
|
120702
|
+
return import('./cssMode-31dc7377.js');
|
|
120703
120703
|
}
|
|
120704
120704
|
}
|
|
120705
120705
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120824,7 +120824,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120824
120824
|
};
|
|
120825
120825
|
function getMode$2() {
|
|
120826
120826
|
{
|
|
120827
|
-
return import('./htmlMode-
|
|
120827
|
+
return import('./htmlMode-71570d38.js');
|
|
120828
120828
|
}
|
|
120829
120829
|
}
|
|
120830
120830
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -120926,7 +120926,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
120926
120926
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120927
120927
|
function getMode$1() {
|
|
120928
120928
|
{
|
|
120929
|
-
return import('./jsonMode-
|
|
120929
|
+
return import('./jsonMode-fc11c3fd.js');
|
|
120930
120930
|
}
|
|
120931
120931
|
}
|
|
120932
120932
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121195,7 +121195,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121195
121195
|
};
|
|
121196
121196
|
function getMode() {
|
|
121197
121197
|
{
|
|
121198
|
-
return import('./tsMode-
|
|
121198
|
+
return import('./tsMode-201c99e8.js');
|
|
121199
121199
|
}
|
|
121200
121200
|
}
|
|
121201
121201
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -132853,8 +132853,8 @@ let InlineSuggestionHintsContentWidget = InlineSuggestionHintsContentWidget_1 =
|
|
|
132853
132853
|
this.id = `InlineSuggestionHintsContentWidget${InlineSuggestionHintsContentWidget_1.id++}`;
|
|
132854
132854
|
this.allowEditorOverflow = true;
|
|
132855
132855
|
this.suppressMouseDown = false;
|
|
132856
|
-
this.nodes = h
|
|
132857
|
-
h
|
|
132856
|
+
this.nodes = h('div.inlineSuggestionsHints', { className: this.withBorder ? '.withBorder' : '' }, [
|
|
132857
|
+
h('div@toolBar'),
|
|
132858
132858
|
]);
|
|
132859
132859
|
this.previousAction = this.createCommandAction(showPreviousInlineSuggestionActionId, localize('previous', 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon));
|
|
132860
132860
|
this.availableSuggestionCountAction = new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false);
|
|
@@ -132990,7 +132990,7 @@ class StatusBarViewItem$1 extends MenuEntryActionViewItem {
|
|
|
132990
132990
|
return super.updateLabel();
|
|
132991
132991
|
}
|
|
132992
132992
|
if (this.label) {
|
|
132993
|
-
const div = h
|
|
132993
|
+
const div = h('div.keybinding').root;
|
|
132994
132994
|
const k = new KeybindingLabel(div, OS, { disableTitle: true, ...unthemedKeybindingLabelOptions });
|
|
132995
132995
|
k.set(kb);
|
|
132996
132996
|
this.label.textContent = this._action.label;
|
|
@@ -168925,68 +168925,78 @@ var main = createCommonjsModule(function (module, exports) {
|
|
|
168925
168925
|
});
|
|
168926
168926
|
});
|
|
168927
168927
|
|
|
168928
|
-
|
|
168928
|
+
// src/index.ts
|
|
168929
|
+
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
|
|
168929
168930
|
function isDefaultModule(module) {
|
|
168930
|
-
|
|
168931
|
+
return module.default !== void 0;
|
|
168931
168932
|
}
|
|
168932
|
-
async function
|
|
168933
|
-
|
|
168934
|
-
|
|
168935
|
-
|
|
168933
|
+
async function importCoreAccessor() {
|
|
168934
|
+
if (isAMD) {
|
|
168935
|
+
return await window.$arcgis.import("esri/core/Accessor");
|
|
168936
|
+
}
|
|
168937
|
+
const module = await import('@arcgis/core/core/Accessor.js');
|
|
168938
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168936
168939
|
}
|
|
168937
168940
|
async function importLayersFeatureLayer() {
|
|
168938
|
-
|
|
168939
|
-
|
|
168940
|
-
|
|
168941
|
-
|
|
168942
|
-
|
|
168941
|
+
if (isAMD) {
|
|
168942
|
+
return await window.$arcgis.import("esri/layers/FeatureLayer");
|
|
168943
|
+
}
|
|
168944
|
+
const module = await import('@arcgis/core/layers/FeatureLayer.js');
|
|
168945
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168943
168946
|
}
|
|
168944
168947
|
async function importPortalPortalItem() {
|
|
168945
|
-
|
|
168946
|
-
|
|
168947
|
-
|
|
168948
|
-
|
|
168949
|
-
|
|
168948
|
+
if (isAMD) {
|
|
168949
|
+
return await window.$arcgis.import("esri/portal/PortalItem");
|
|
168950
|
+
}
|
|
168951
|
+
const module = await import('@arcgis/core/portal/PortalItem.js');
|
|
168952
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168950
168953
|
}
|
|
168951
168954
|
async function newPortalPortalItem(properties) {
|
|
168952
|
-
|
|
168953
|
-
|
|
168955
|
+
const ModConstructor = await importPortalPortalItem();
|
|
168956
|
+
return new ModConstructor(properties);
|
|
168954
168957
|
}
|
|
168955
168958
|
async function importWebMap() {
|
|
168956
|
-
|
|
168957
|
-
|
|
168958
|
-
|
|
168959
|
-
|
|
168960
|
-
|
|
168959
|
+
if (isAMD) {
|
|
168960
|
+
return await window.$arcgis.import("esri/WebMap");
|
|
168961
|
+
}
|
|
168962
|
+
const module = await import('@arcgis/core/WebMap.js');
|
|
168963
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168961
168964
|
}
|
|
168962
168965
|
async function newWebMap(properties) {
|
|
168963
|
-
|
|
168964
|
-
|
|
168966
|
+
const ModConstructor = await importWebMap();
|
|
168967
|
+
return new ModConstructor(properties);
|
|
168965
168968
|
}
|
|
168966
168969
|
async function importWebScene() {
|
|
168967
|
-
|
|
168968
|
-
|
|
168969
|
-
|
|
168970
|
-
|
|
168971
|
-
|
|
168970
|
+
if (isAMD) {
|
|
168971
|
+
return await window.$arcgis.import("esri/WebScene");
|
|
168972
|
+
}
|
|
168973
|
+
const module = await import('@arcgis/core/WebScene.js');
|
|
168974
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168972
168975
|
}
|
|
168973
168976
|
async function newWebScene(properties) {
|
|
168974
|
-
|
|
168975
|
-
|
|
168977
|
+
const ModConstructor = await importWebScene();
|
|
168978
|
+
return new ModConstructor(properties);
|
|
168976
168979
|
}
|
|
168977
168980
|
async function importArcade() {
|
|
168978
|
-
|
|
168979
|
-
|
|
168980
|
-
|
|
168981
|
-
|
|
168982
|
-
|
|
168981
|
+
if (isAMD) {
|
|
168982
|
+
return await window.$arcgis.import("esri/arcade");
|
|
168983
|
+
}
|
|
168984
|
+
const module = await import('@arcgis/core/arcade.js');
|
|
168985
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168986
|
+
}
|
|
168987
|
+
async function importCoreAccessorSupportDecorators() {
|
|
168988
|
+
if (isAMD) {
|
|
168989
|
+
return await window.$arcgis.import("esri/core/accessorSupport/decorators");
|
|
168990
|
+
}
|
|
168991
|
+
const module = await import('@arcgis/core/core/accessorSupport/decorators.js');
|
|
168992
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168983
168993
|
}
|
|
168984
168994
|
async function importRequest() {
|
|
168985
|
-
|
|
168986
|
-
|
|
168987
|
-
|
|
168988
|
-
|
|
168989
|
-
|
|
168995
|
+
if (isAMD) {
|
|
168996
|
+
return await window.$arcgis.import("esri/request");
|
|
168997
|
+
}
|
|
168998
|
+
const module = await import('@arcgis/core/request.js');
|
|
168999
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168990
169000
|
}
|
|
168991
169001
|
|
|
168992
169002
|
//#region core adapter fix
|
|
@@ -169150,30 +169160,346 @@ async function serviceMetaData(url) {
|
|
|
169150
169160
|
const response = await request(url, { responseType: "json", query: { f: "json" } });
|
|
169151
169161
|
const data = {
|
|
169152
169162
|
layers: response.data?.layers ?? [],
|
|
169153
|
-
tables: response.data?.tables ?? []
|
|
169163
|
+
tables: response.data?.tables ?? [],
|
|
169154
169164
|
};
|
|
169155
169165
|
const queryCapability = url.endsWith("MapServer/layers") ? "data" : "query";
|
|
169156
|
-
const layers =
|
|
169157
|
-
const tables =
|
|
169166
|
+
const layers = getSupportedLayerInfos(data.layers, queryCapability);
|
|
169167
|
+
const tables = getSupportedLayerInfos(data.tables, queryCapability);
|
|
169158
169168
|
return { layers, tables };
|
|
169159
169169
|
}
|
|
169160
|
-
function
|
|
169170
|
+
function getSupportedLayerInfos(layers, queryCapability) {
|
|
169161
169171
|
return layers.filter((layer) => {
|
|
169162
|
-
|
|
169163
|
-
|
|
169172
|
+
switch (layer.type) {
|
|
169173
|
+
case "Feature Layer":
|
|
169174
|
+
case "Oriented Imagery Layer":
|
|
169175
|
+
case "Table": {
|
|
169176
|
+
const capabilities = layer.capabilities
|
|
169177
|
+
? layer.capabilities
|
|
169178
|
+
.toLowerCase()
|
|
169179
|
+
.split(",")
|
|
169180
|
+
.map((value) => value.trim())
|
|
169181
|
+
: [];
|
|
169182
|
+
return capabilities.includes(queryCapability);
|
|
169183
|
+
}
|
|
169184
|
+
default:
|
|
169185
|
+
return false;
|
|
169164
169186
|
}
|
|
169165
|
-
const capabilities = layer.capabilities
|
|
169166
|
-
? layer.capabilities
|
|
169167
|
-
.toLowerCase()
|
|
169168
|
-
.split(",")
|
|
169169
|
-
.map((value) => value.trim())
|
|
169170
|
-
: [];
|
|
169171
|
-
return capabilities.includes(queryCapability);
|
|
169172
169187
|
});
|
|
169173
169188
|
}
|
|
169174
169189
|
//#endregion
|
|
169175
169190
|
|
|
169176
|
-
|
|
169191
|
+
// src/array-utils.ts
|
|
169192
|
+
|
|
169193
|
+
// src/deferred.ts
|
|
169194
|
+
var Deferred = class {
|
|
169195
|
+
/**
|
|
169196
|
+
* Creates a new deferred promise.
|
|
169197
|
+
*/
|
|
169198
|
+
constructor() {
|
|
169199
|
+
this.resolve = () => void 0;
|
|
169200
|
+
this.reject = () => void 0;
|
|
169201
|
+
this.promise = new Promise((resolve, reject) => {
|
|
169202
|
+
this.resolve = resolve;
|
|
169203
|
+
this.reject = reject;
|
|
169204
|
+
});
|
|
169205
|
+
}
|
|
169206
|
+
};
|
|
169207
|
+
|
|
169208
|
+
// src/dom.ts
|
|
169209
|
+
function inTargetElement(element, targetElement) {
|
|
169210
|
+
let currentElement = element;
|
|
169211
|
+
while (currentElement) {
|
|
169212
|
+
if (currentElement === targetElement) {
|
|
169213
|
+
return true;
|
|
169214
|
+
}
|
|
169215
|
+
if (!currentElement.parentNode) {
|
|
169216
|
+
return false;
|
|
169217
|
+
}
|
|
169218
|
+
if (currentElement.parentNode instanceof ShadowRoot) {
|
|
169219
|
+
currentElement = currentElement.parentNode.host;
|
|
169220
|
+
} else {
|
|
169221
|
+
currentElement = currentElement.parentNode;
|
|
169222
|
+
}
|
|
169223
|
+
}
|
|
169224
|
+
return false;
|
|
169225
|
+
}
|
|
169226
|
+
function observeAncestorsMutation(element, attributeFilter, callback) {
|
|
169227
|
+
const { subscribe } = observe(attributeFilter);
|
|
169228
|
+
return subscribe((mutations) => {
|
|
169229
|
+
const matched = mutations.some((mutation) => inTargetElement(element, mutation.target));
|
|
169230
|
+
if (matched)
|
|
169231
|
+
callback();
|
|
169232
|
+
});
|
|
169233
|
+
}
|
|
169234
|
+
var observers = {};
|
|
169235
|
+
function observe(attributeFilter) {
|
|
169236
|
+
const attributes = attributeFilter.join(",");
|
|
169237
|
+
const previousObserver = observers[attributes];
|
|
169238
|
+
if (previousObserver !== void 0)
|
|
169239
|
+
return previousObserver;
|
|
169240
|
+
const subscribers = /* @__PURE__ */ new Set();
|
|
169241
|
+
const mutationObserver = new MutationObserver((mutations) => subscribers.forEach((callback) => callback(mutations)));
|
|
169242
|
+
mutationObserver.observe(document.documentElement, {
|
|
169243
|
+
attributes: true,
|
|
169244
|
+
attributeFilter,
|
|
169245
|
+
subtree: true
|
|
169246
|
+
});
|
|
169247
|
+
const observer = {
|
|
169248
|
+
subscribe(callback) {
|
|
169249
|
+
subscribers.add(callback);
|
|
169250
|
+
return {
|
|
169251
|
+
remove: () => {
|
|
169252
|
+
subscribers.delete(callback);
|
|
169253
|
+
if (subscribers.size === 0) {
|
|
169254
|
+
mutationObserver.disconnect();
|
|
169255
|
+
observers[attributes] = void 0;
|
|
169256
|
+
}
|
|
169257
|
+
}
|
|
169258
|
+
};
|
|
169259
|
+
}
|
|
169260
|
+
};
|
|
169261
|
+
observers[attributes] = observer;
|
|
169262
|
+
return observer;
|
|
169263
|
+
}
|
|
169264
|
+
function closestElement(base, selector) {
|
|
169265
|
+
let currentElement = base;
|
|
169266
|
+
while (currentElement) {
|
|
169267
|
+
const element = currentElement.closest(selector);
|
|
169268
|
+
if (element) {
|
|
169269
|
+
return element;
|
|
169270
|
+
}
|
|
169271
|
+
const rootElement = currentElement.getRootNode();
|
|
169272
|
+
if (rootElement === document) {
|
|
169273
|
+
return null;
|
|
169274
|
+
}
|
|
169275
|
+
currentElement = rootElement.host;
|
|
169276
|
+
}
|
|
169277
|
+
return null;
|
|
169278
|
+
}
|
|
169279
|
+
function getElementTheme(base) {
|
|
169280
|
+
const themeElt = closestElement(base, ":is(.calcite-mode-light, .calcite-mode-dark)");
|
|
169281
|
+
return themeElt && themeElt.classList.contains("calcite-mode-dark") ? "dark" : "light";
|
|
169282
|
+
}
|
|
169283
|
+
function isElement(ref) {
|
|
169284
|
+
return ref.nodeType === Node.ELEMENT_NODE;
|
|
169285
|
+
}
|
|
169286
|
+
function isHTMLWithSetFocus(ref) {
|
|
169287
|
+
return "setFocus" in ref && typeof ref.setFocus === "function";
|
|
169288
|
+
}
|
|
169289
|
+
function setFocus(ref, selector = "") {
|
|
169290
|
+
if (!isElement(ref)) {
|
|
169291
|
+
return false;
|
|
169292
|
+
}
|
|
169293
|
+
if (ref.matches(selector)) {
|
|
169294
|
+
if (isHTMLWithSetFocus(ref)) {
|
|
169295
|
+
setTimeout(() => ref.setFocus(), 0);
|
|
169296
|
+
}
|
|
169297
|
+
return true;
|
|
169298
|
+
}
|
|
169299
|
+
for (const child of ref.children) {
|
|
169300
|
+
if (setFocus(child, selector)) {
|
|
169301
|
+
return true;
|
|
169302
|
+
}
|
|
169303
|
+
}
|
|
169304
|
+
const shadowRoot = ref.shadowRoot;
|
|
169305
|
+
if (shadowRoot) {
|
|
169306
|
+
for (const child of shadowRoot.children) {
|
|
169307
|
+
if (setFocus(child, selector)) {
|
|
169308
|
+
return true;
|
|
169309
|
+
}
|
|
169310
|
+
}
|
|
169311
|
+
}
|
|
169312
|
+
return false;
|
|
169313
|
+
}
|
|
169314
|
+
function setFocusOnElement(ref, selector) {
|
|
169315
|
+
if (!ref?.shadowRoot) {
|
|
169316
|
+
return;
|
|
169317
|
+
}
|
|
169318
|
+
if (ref.hasAttribute("hydrated") || ref.hasAttribute("calcite-hydrated")) {
|
|
169319
|
+
setFocus(ref, selector);
|
|
169320
|
+
return;
|
|
169321
|
+
}
|
|
169322
|
+
const mutationObserver = new MutationObserver(() => {
|
|
169323
|
+
mutationObserver.disconnect();
|
|
169324
|
+
setFocus(ref, selector);
|
|
169325
|
+
});
|
|
169326
|
+
mutationObserver.observe(ref, {
|
|
169327
|
+
attributes: true,
|
|
169328
|
+
attributeFilter: ["hydrated", "calcite-hydrated"]
|
|
169329
|
+
});
|
|
169330
|
+
}
|
|
169331
|
+
|
|
169332
|
+
// src/guid.ts
|
|
169333
|
+
function gen(count) {
|
|
169334
|
+
let out = "";
|
|
169335
|
+
for (let i = 0; i < count; i++) {
|
|
169336
|
+
out += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
169337
|
+
}
|
|
169338
|
+
return out;
|
|
169339
|
+
}
|
|
169340
|
+
function generateGuid() {
|
|
169341
|
+
return [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
|
|
169342
|
+
}
|
|
169343
|
+
var upperBeforeLower = /[A-Z]+(?![a-z])|[A-Z]/gu;
|
|
169344
|
+
var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
|
|
169345
|
+
var camelToHuman = (string) => capitalize(string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : " "}${upper}`));
|
|
169346
|
+
|
|
169347
|
+
// src/intl.ts
|
|
169348
|
+
var supportedLocales = /* @__PURE__ */ new Set([
|
|
169349
|
+
"ar",
|
|
169350
|
+
"bg",
|
|
169351
|
+
"bs",
|
|
169352
|
+
"ca",
|
|
169353
|
+
"cs",
|
|
169354
|
+
"da",
|
|
169355
|
+
"de",
|
|
169356
|
+
"el",
|
|
169357
|
+
"en",
|
|
169358
|
+
"es",
|
|
169359
|
+
"et",
|
|
169360
|
+
"fi",
|
|
169361
|
+
"fr",
|
|
169362
|
+
"he",
|
|
169363
|
+
"hr",
|
|
169364
|
+
"hu",
|
|
169365
|
+
"id",
|
|
169366
|
+
"it",
|
|
169367
|
+
"ja",
|
|
169368
|
+
"ko",
|
|
169369
|
+
"lt",
|
|
169370
|
+
"lv",
|
|
169371
|
+
"nl",
|
|
169372
|
+
"nb",
|
|
169373
|
+
"pl",
|
|
169374
|
+
"pt-BR",
|
|
169375
|
+
"pt-PT",
|
|
169376
|
+
"ro",
|
|
169377
|
+
"ru",
|
|
169378
|
+
"sk",
|
|
169379
|
+
"sl",
|
|
169380
|
+
"sr",
|
|
169381
|
+
"sv",
|
|
169382
|
+
"th",
|
|
169383
|
+
"tr",
|
|
169384
|
+
"uk",
|
|
169385
|
+
"vi",
|
|
169386
|
+
"zh-CN",
|
|
169387
|
+
"zh-HK",
|
|
169388
|
+
"zh-TW"
|
|
169389
|
+
]);
|
|
169390
|
+
var defaultLocale = "en";
|
|
169391
|
+
async function fetchT9NStringsBundle(locale, assetsPath, prefix = "") {
|
|
169392
|
+
const path = `${assetsPath}/${prefix}`;
|
|
169393
|
+
const filePath = `${path}${locale}.json`;
|
|
169394
|
+
t9nStringsCache[filePath] ?? (t9nStringsCache[filePath] = fetchBundle(locale, path));
|
|
169395
|
+
return await t9nStringsCache[filePath];
|
|
169396
|
+
}
|
|
169397
|
+
var t9nStringsCache = {};
|
|
169398
|
+
async function fetchBundle(locale, path) {
|
|
169399
|
+
const filePath = `${path}${locale}.json`;
|
|
169400
|
+
try {
|
|
169401
|
+
const response = await fetch(filePath);
|
|
169402
|
+
if (response.ok)
|
|
169403
|
+
return await response.json();
|
|
169404
|
+
} catch (error) {
|
|
169405
|
+
console.error(error);
|
|
169406
|
+
return fallbackBundle;
|
|
169407
|
+
}
|
|
169408
|
+
if (locale === defaultLocale)
|
|
169409
|
+
return fallbackBundle;
|
|
169410
|
+
return await fetchBundle(defaultLocale, path);
|
|
169411
|
+
}
|
|
169412
|
+
var fallbackBundle = new Proxy(
|
|
169413
|
+
{},
|
|
169414
|
+
{
|
|
169415
|
+
get: (_target, property) => camelToHuman(property.toString())
|
|
169416
|
+
}
|
|
169417
|
+
);
|
|
169418
|
+
|
|
169419
|
+
// src/strings.ts
|
|
169420
|
+
var doubleQuote = '"';
|
|
169421
|
+
var singleQuote = "'";
|
|
169422
|
+
function repeatString(value, n) {
|
|
169423
|
+
return new Array(n + 1).join(value);
|
|
169424
|
+
}
|
|
169425
|
+
function quoteString(value) {
|
|
169426
|
+
let quote = doubleQuote;
|
|
169427
|
+
let alternateQuote = singleQuote;
|
|
169428
|
+
const avoidEscape = value.includes(quote) && !value.includes(alternateQuote);
|
|
169429
|
+
if (avoidEscape) {
|
|
169430
|
+
alternateQuote = doubleQuote;
|
|
169431
|
+
quote = singleQuote;
|
|
169432
|
+
}
|
|
169433
|
+
const alternateEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${alternateQuote})+)`, "gu");
|
|
169434
|
+
value = value.replace(
|
|
169435
|
+
alternateEscape,
|
|
169436
|
+
(_, boundaryChar, leadingEscapedSlashes, escapedQuoteChars) => (
|
|
169437
|
+
// We divide the escapedQuoteChars by 2 since there are 2 characters in each escaped part ('\\"'.length === 2)
|
|
169438
|
+
boundaryChar + leadingEscapedSlashes + repeatString(alternateQuote, escapedQuoteChars.length / 2)
|
|
169439
|
+
)
|
|
169440
|
+
);
|
|
169441
|
+
const quoteEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${quote}+)`, "gu");
|
|
169442
|
+
value = value.replace(
|
|
169443
|
+
quoteEscape,
|
|
169444
|
+
(_, boundaryChar, leadingEscapedSlashes, quoteChars) => boundaryChar + leadingEscapedSlashes + repeatString(`\\${quote}`, quoteChars.length)
|
|
169445
|
+
);
|
|
169446
|
+
return quote + value + quote;
|
|
169447
|
+
}
|
|
169448
|
+
function createFilterExpression(filterWord) {
|
|
169449
|
+
const sanitizedWord = filterWord ? filterWord.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu, "\\$&") : "^.*$";
|
|
169450
|
+
return new RegExp(sanitizedWord, "i");
|
|
169451
|
+
}
|
|
169452
|
+
function setValuesInString(message, values = {}) {
|
|
169453
|
+
return (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
|
|
169454
|
+
}
|
|
169455
|
+
function addLTRMark(value) {
|
|
169456
|
+
return `\u200E${value ?? ""}\u200E`;
|
|
169457
|
+
}
|
|
169458
|
+
|
|
169459
|
+
// src/type-guards.ts
|
|
169460
|
+
function isNotNull(item) {
|
|
169461
|
+
return item !== null;
|
|
169462
|
+
}
|
|
169463
|
+
function isNotUndefined(item) {
|
|
169464
|
+
return item !== void 0;
|
|
169465
|
+
}
|
|
169466
|
+
|
|
169467
|
+
// src/ui.ts
|
|
169468
|
+
function debounce(func, waitFor = 100) {
|
|
169469
|
+
let timeout;
|
|
169470
|
+
return (...args) => {
|
|
169471
|
+
const later = () => {
|
|
169472
|
+
clearTimeout(timeout);
|
|
169473
|
+
func(...args);
|
|
169474
|
+
};
|
|
169475
|
+
clearTimeout(timeout);
|
|
169476
|
+
timeout = setTimeout(later, waitFor);
|
|
169477
|
+
};
|
|
169478
|
+
}
|
|
169479
|
+
|
|
169480
|
+
// src/url.ts
|
|
169481
|
+
function hasSameOrigin(url1, url2, ignoreProtocol = false) {
|
|
169482
|
+
if (!url1 || !url2) {
|
|
169483
|
+
return false;
|
|
169484
|
+
}
|
|
169485
|
+
const url1Obj = new URL(url1);
|
|
169486
|
+
const url2Obj = new URL(url2);
|
|
169487
|
+
if (!ignoreProtocol && url1Obj.protocol !== url2Obj.protocol) {
|
|
169488
|
+
return false;
|
|
169489
|
+
}
|
|
169490
|
+
if (url1Obj.host == null || url2Obj.host == null) {
|
|
169491
|
+
return false;
|
|
169492
|
+
}
|
|
169493
|
+
return url1Obj.host.toLowerCase() === url2Obj.host.toLowerCase() && url1Obj.port === url2Obj.port;
|
|
169494
|
+
}
|
|
169495
|
+
function isURL(url) {
|
|
169496
|
+
try {
|
|
169497
|
+
new URL(url);
|
|
169498
|
+
return true;
|
|
169499
|
+
} catch (e) {
|
|
169500
|
+
return false;
|
|
169501
|
+
}
|
|
169502
|
+
}
|
|
169177
169503
|
|
|
169178
169504
|
/**
|
|
169179
169505
|
* Filters a collection of items by the given keys and filter word.
|
|
@@ -169186,7 +169512,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
|
|
|
169186
169512
|
if (!_keys.length) {
|
|
169187
169513
|
return [];
|
|
169188
169514
|
}
|
|
169189
|
-
const filterExpression =
|
|
169515
|
+
const filterExpression = createFilterExpression(filterWord);
|
|
169190
169516
|
return collection.filter((item) => {
|
|
169191
169517
|
if (beforeFilteringFn) {
|
|
169192
169518
|
const res = beforeFilteringFn(item);
|
|
@@ -169386,8 +169712,8 @@ function variableToLSVariable(editorVariable, kind) {
|
|
|
169386
169712
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169387
169713
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169388
169714
|
kind,
|
|
169389
|
-
documentation: { kind: "markdown", value: description }
|
|
169390
|
-
}
|
|
169715
|
+
documentation: { kind: "markdown", value: description },
|
|
169716
|
+
},
|
|
169391
169717
|
};
|
|
169392
169718
|
}
|
|
169393
169719
|
async function featureToLSFeature(editorFeature, kind) {
|
|
@@ -169401,14 +169727,14 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169401
169727
|
insertText: name,
|
|
169402
169728
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169403
169729
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169404
|
-
kind
|
|
169730
|
+
kind,
|
|
169405
169731
|
};
|
|
169406
169732
|
const result = {
|
|
169407
169733
|
name,
|
|
169408
169734
|
description,
|
|
169409
169735
|
type: "dictionary",
|
|
169410
169736
|
properties: [],
|
|
169411
|
-
completion: resultCompletion
|
|
169737
|
+
completion: resultCompletion,
|
|
169412
169738
|
};
|
|
169413
169739
|
// No source definition, then it will be a feature without any known fields
|
|
169414
169740
|
if (!source) {
|
|
@@ -169446,8 +169772,8 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169446
169772
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169447
169773
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169448
169774
|
kind: main.CompletionItemKind.Field,
|
|
169449
|
-
documentation: { kind: "markdown", value: fieldCompletionDescription }
|
|
169450
|
-
}
|
|
169775
|
+
documentation: { kind: "markdown", value: fieldCompletionDescription },
|
|
169776
|
+
},
|
|
169451
169777
|
});
|
|
169452
169778
|
if (!field.alias || field.alias.toLowerCase() === field.name.toLowerCase()) {
|
|
169453
169779
|
return;
|
|
@@ -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: aliasCompletionDescription }
|
|
169472
|
-
}
|
|
169797
|
+
documentation: { kind: "markdown", value: aliasCompletionDescription },
|
|
169798
|
+
},
|
|
169473
169799
|
});
|
|
169474
169800
|
});
|
|
169475
169801
|
result.properties = [...fieldProfileValues, ...aliasProfileValues];
|
|
@@ -169502,8 +169828,8 @@ async function dictionaryToLSDictionary(editorDictionary, kind) {
|
|
|
169502
169828
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169503
169829
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169504
169830
|
kind,
|
|
169505
|
-
documentation: { kind: "markdown", value: completionDescription }
|
|
169506
|
-
}
|
|
169831
|
+
documentation: { kind: "markdown", value: completionDescription },
|
|
169832
|
+
},
|
|
169507
169833
|
};
|
|
169508
169834
|
}
|
|
169509
169835
|
/**
|
|
@@ -169530,9 +169856,9 @@ class ProfileItemBase {
|
|
|
169530
169856
|
// If the component is under RTL, the string is messed up.
|
|
169531
169857
|
// It is converted from $feature to feature$, This is not acceptable since the label
|
|
169532
169858
|
// represents a variable name. We are adding in front of the $ sign a right to left mark.
|
|
169533
|
-
return
|
|
169859
|
+
return addLTRMark(this._label);
|
|
169534
169860
|
}
|
|
169535
|
-
return
|
|
169861
|
+
return setValuesInString(this._profile?.intlStrings[this._label.code], this._label.formatValues);
|
|
169536
169862
|
}
|
|
169537
169863
|
/**
|
|
169538
169864
|
* Returns the description string.
|
|
@@ -169544,7 +169870,7 @@ class ProfileItemBase {
|
|
|
169544
169870
|
if (typeof this.description === "string") {
|
|
169545
169871
|
return this.description;
|
|
169546
169872
|
}
|
|
169547
|
-
return
|
|
169873
|
+
return setValuesInString(this._profile?.intlStrings[this.description.code], this.description.formatValues);
|
|
169548
169874
|
}
|
|
169549
169875
|
/**
|
|
169550
169876
|
* Returns true if the item pass the filter test
|
|
@@ -169721,28 +170047,28 @@ class DictionaryVariable extends CollectionBasedVariable {
|
|
|
169721
170047
|
return new FeatureVariable(this, { profile: this._profile, declaration, label: snippet, snippet });
|
|
169722
170048
|
case "featureSet":
|
|
169723
170049
|
return new FeatureSetVariable(this, { profile: this._profile, declaration, label: snippet, snippet }, [
|
|
169724
|
-
new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })
|
|
170050
|
+
new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet }),
|
|
169725
170051
|
]);
|
|
169726
170052
|
case "featureSetCollection":
|
|
169727
170053
|
return new FeatureSetCollectionVariable(this, {
|
|
169728
170054
|
profile: this._profile,
|
|
169729
170055
|
declaration,
|
|
169730
170056
|
label: snippet,
|
|
169731
|
-
snippet
|
|
170057
|
+
snippet,
|
|
169732
170058
|
});
|
|
169733
170059
|
case "dictionary":
|
|
169734
170060
|
return new DictionaryVariable(this, {
|
|
169735
170061
|
profile: this._profile,
|
|
169736
170062
|
declaration,
|
|
169737
170063
|
label: snippet,
|
|
169738
|
-
snippet
|
|
170064
|
+
snippet,
|
|
169739
170065
|
});
|
|
169740
170066
|
case "array":
|
|
169741
170067
|
return new ArrayVariable({
|
|
169742
170068
|
profile: this._profile,
|
|
169743
170069
|
declaration,
|
|
169744
170070
|
label: snippet,
|
|
169745
|
-
snippet
|
|
170071
|
+
snippet,
|
|
169746
170072
|
});
|
|
169747
170073
|
default:
|
|
169748
170074
|
console.error("Editor profile: Invalid profile variable", declaration);
|
|
@@ -169754,7 +170080,7 @@ class DictionaryVariable extends CollectionBasedVariable {
|
|
|
169754
170080
|
type: this.type,
|
|
169755
170081
|
name: "",
|
|
169756
170082
|
...this.declaration,
|
|
169757
|
-
properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
|
|
170083
|
+
properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
|
|
169758
170084
|
};
|
|
169759
170085
|
}
|
|
169760
170086
|
}
|
|
@@ -169785,7 +170111,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169785
170111
|
return this._profile?.intlStrings.layer ?? "layer";
|
|
169786
170112
|
}
|
|
169787
170113
|
async loadSource() {
|
|
169788
|
-
if (
|
|
170114
|
+
if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
|
|
169789
170115
|
return await this._loadPromise;
|
|
169790
170116
|
}
|
|
169791
170117
|
this._loadPromise = this._loadSource();
|
|
@@ -169820,7 +170146,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169820
170146
|
description: fieldAlias(field),
|
|
169821
170147
|
snippet: valueSnippet,
|
|
169822
170148
|
icon: fieldTypeToIconName(field),
|
|
169823
|
-
filterDescription: true
|
|
170149
|
+
filterDescription: true,
|
|
169824
170150
|
});
|
|
169825
170151
|
}
|
|
169826
170152
|
_getDomainDictionary(field) {
|
|
@@ -169913,7 +170239,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169913
170239
|
return null;
|
|
169914
170240
|
}
|
|
169915
170241
|
const domainValuesGroup = this._getCodedValueDomainGroup(fieldDomain, {
|
|
169916
|
-
code: "domainvalues"
|
|
170242
|
+
code: "domainvalues",
|
|
169917
170243
|
});
|
|
169918
170244
|
const domainDictionary = this._createDomainDictionary(field);
|
|
169919
170245
|
domainDictionary.variables.push(domainValuesGroup);
|
|
@@ -169931,7 +170257,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169931
170257
|
profile: this._profile,
|
|
169932
170258
|
label: `${label}`,
|
|
169933
170259
|
description: t.name,
|
|
169934
|
-
snippet: `"${label}"
|
|
170260
|
+
snippet: `"${label}"`,
|
|
169935
170261
|
});
|
|
169936
170262
|
}) ?? [];
|
|
169937
170263
|
return new GroupOfVariables(this._profile, { code: "subtypes" }, values);
|
|
@@ -169942,7 +170268,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169942
170268
|
label: `${v.code}`,
|
|
169943
170269
|
description: v.name,
|
|
169944
170270
|
snippet: `"${v.code}"`,
|
|
169945
|
-
filterDescription: true
|
|
170271
|
+
filterDescription: true,
|
|
169946
170272
|
}));
|
|
169947
170273
|
return new GroupOfVariables(this._profile, label, values);
|
|
169948
170274
|
}
|
|
@@ -169968,8 +170294,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169968
170294
|
code: "domainvaluesfortypeformat",
|
|
169969
170295
|
formatValues: {
|
|
169970
170296
|
fieldName: alias,
|
|
169971
|
-
typeName: type.name
|
|
169972
|
-
}
|
|
170297
|
+
typeName: type.name,
|
|
170298
|
+
},
|
|
169973
170299
|
});
|
|
169974
170300
|
const id = isSubtypeInstance(type) ? type.code : type.id;
|
|
169975
170301
|
const label = `${id}`;
|
|
@@ -169979,7 +170305,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169979
170305
|
label,
|
|
169980
170306
|
snippet,
|
|
169981
170307
|
description: type.name,
|
|
169982
|
-
declaration: { name: alias }
|
|
170308
|
+
declaration: { name: alias },
|
|
169983
170309
|
});
|
|
169984
170310
|
subtypeDictionary.variables = [domainValuesGroup];
|
|
169985
170311
|
variables.push(subtypeDictionary);
|
|
@@ -170001,7 +170327,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170001
170327
|
description: alias,
|
|
170002
170328
|
snippet: valueSnippet,
|
|
170003
170329
|
icon: "form-dropdown",
|
|
170004
|
-
declaration: { name: field.name }
|
|
170330
|
+
declaration: { name: field.name },
|
|
170005
170331
|
});
|
|
170006
170332
|
// Add the header group
|
|
170007
170333
|
const headerGroup = new GroupOfVariables(this._profile, alias, [
|
|
@@ -170009,8 +170335,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170009
170335
|
profile: this._profile,
|
|
170010
170336
|
label: valueSnippet,
|
|
170011
170337
|
description: "",
|
|
170012
|
-
snippet: valueSnippet
|
|
170013
|
-
})
|
|
170338
|
+
snippet: valueSnippet,
|
|
170339
|
+
}),
|
|
170014
170340
|
]);
|
|
170015
170341
|
domainDictionary.variables = [headerGroup];
|
|
170016
170342
|
// Add the SubtypeName or DomainName snippet if available
|
|
@@ -170020,7 +170346,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170020
170346
|
profile: this._profile,
|
|
170021
170347
|
label: subtypeOrDomainNameSnippet,
|
|
170022
170348
|
description: "",
|
|
170023
|
-
snippet: subtypeOrDomainNameSnippet
|
|
170349
|
+
snippet: subtypeOrDomainNameSnippet,
|
|
170024
170350
|
}));
|
|
170025
170351
|
}
|
|
170026
170352
|
return domainDictionary;
|
|
@@ -170050,10 +170376,10 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170050
170376
|
declaration: { definition: relatedLayer },
|
|
170051
170377
|
label: relatedLayer.title,
|
|
170052
170378
|
description: "",
|
|
170053
|
-
nonInteractive: true
|
|
170379
|
+
nonInteractive: true,
|
|
170054
170380
|
}, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
|
|
170055
170381
|
}));
|
|
170056
|
-
relationshipsGroup.variables = relationshipItems.filter(
|
|
170382
|
+
relationshipsGroup.variables = relationshipItems.filter(isNotNull);
|
|
170057
170383
|
if (!relationshipsGroup.variables.length) {
|
|
170058
170384
|
return null;
|
|
170059
170385
|
}
|
|
@@ -170067,7 +170393,7 @@ class FeatureVariable extends SourceBasedVariable {
|
|
|
170067
170393
|
}
|
|
170068
170394
|
get title() {
|
|
170069
170395
|
if (isSupportedLayerInstance(this._source)) {
|
|
170070
|
-
return this._source.title;
|
|
170396
|
+
return this._source.title ?? "";
|
|
170071
170397
|
}
|
|
170072
170398
|
return { code: "feature" };
|
|
170073
170399
|
}
|
|
@@ -170081,14 +170407,14 @@ class FeatureVariable extends SourceBasedVariable {
|
|
|
170081
170407
|
throw new Error("Invalid definition");
|
|
170082
170408
|
}
|
|
170083
170409
|
// The title group and snippet
|
|
170084
|
-
const title = isSupportedLayerInstance(this._source) ? this._source.title : "";
|
|
170410
|
+
const title = isSupportedLayerInstance(this._source) ? this._source.title ?? "" : "";
|
|
170085
170411
|
this.variables.push(new GroupOfVariables(this._profile, title, [
|
|
170086
170412
|
new ValueVariable({
|
|
170087
170413
|
profile: this._profile,
|
|
170088
170414
|
label: this.snippet,
|
|
170089
170415
|
description: "",
|
|
170090
|
-
snippet: this.snippet
|
|
170091
|
-
})
|
|
170416
|
+
snippet: this.snippet,
|
|
170417
|
+
}),
|
|
170092
170418
|
]));
|
|
170093
170419
|
// The collection of feature attribute values
|
|
170094
170420
|
const valuesGroup = new GroupOfVariables(this._profile, { code: "values" });
|
|
@@ -170103,7 +170429,7 @@ class FeatureVariable extends SourceBasedVariable {
|
|
|
170103
170429
|
description: "Geometry",
|
|
170104
170430
|
snippet,
|
|
170105
170431
|
icon: "shapes",
|
|
170106
|
-
filterDescription: true
|
|
170432
|
+
filterDescription: true,
|
|
170107
170433
|
});
|
|
170108
170434
|
valuesGroup.variables.push(geometryProperty);
|
|
170109
170435
|
}
|
|
@@ -170140,7 +170466,7 @@ class FeatureSetVariable extends SourceBasedVariable {
|
|
|
170140
170466
|
}
|
|
170141
170467
|
get title() {
|
|
170142
170468
|
if (isSupportedLayerInstance(this._source)) {
|
|
170143
|
-
return this._source.title;
|
|
170469
|
+
return this._source.title ?? "";
|
|
170144
170470
|
}
|
|
170145
170471
|
return { code: "featureset" };
|
|
170146
170472
|
}
|
|
@@ -170217,7 +170543,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170217
170543
|
return this._profile?.intlStrings.map ?? "map";
|
|
170218
170544
|
}
|
|
170219
170545
|
async loadSource() {
|
|
170220
|
-
if (
|
|
170546
|
+
if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
|
|
170221
170547
|
return await this._loadPromise;
|
|
170222
170548
|
}
|
|
170223
170549
|
this._loadPromise = this._loadSource();
|
|
@@ -170238,16 +170564,16 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170238
170564
|
: {
|
|
170239
170565
|
code: "webmapformat",
|
|
170240
170566
|
formatValues: {
|
|
170241
|
-
webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map"
|
|
170242
|
-
}
|
|
170567
|
+
webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map",
|
|
170568
|
+
},
|
|
170243
170569
|
};
|
|
170244
170570
|
const headerGroup = new GroupOfVariables(this._profile, groupLabel, [
|
|
170245
170571
|
new ValueVariable({
|
|
170246
170572
|
profile: this._profile,
|
|
170247
170573
|
label: this.snippet,
|
|
170248
170574
|
description: "",
|
|
170249
|
-
snippet: this.snippet
|
|
170250
|
-
})
|
|
170575
|
+
snippet: this.snippet,
|
|
170576
|
+
}),
|
|
170251
170577
|
]);
|
|
170252
170578
|
// Creates the groups for the layer and tables
|
|
170253
170579
|
const layersGroup = new GroupOfVariables(this._profile, { code: "layers" }, this._featureSetCollections.layers);
|
|
@@ -170294,7 +170620,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170294
170620
|
return {
|
|
170295
170621
|
layers: this._convertWebMapLayersToVariables(map.layers),
|
|
170296
170622
|
tables: this._convertWebMapLayersToVariables(map.tables, true),
|
|
170297
|
-
source: map
|
|
170623
|
+
source: map,
|
|
170298
170624
|
};
|
|
170299
170625
|
}
|
|
170300
170626
|
async _featureSetCollectionFromPortalItem(definition) {
|
|
@@ -170362,7 +170688,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170362
170688
|
declaration: { name: featureLayer.title, definition: featureLayer },
|
|
170363
170689
|
label: featureLayer.title,
|
|
170364
170690
|
description: "",
|
|
170365
|
-
nonInteractive: true
|
|
170691
|
+
nonInteractive: true,
|
|
170366
170692
|
}, this._makeFeatureSetSnippets(featureLayer, isFromWebMap));
|
|
170367
170693
|
}
|
|
170368
170694
|
_makeFeatureSetSnippets(featureLayer, isFromWebMap = false) {
|
|
@@ -170374,7 +170700,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170374
170700
|
const snippetByName = `FeatureSetByName(${this.snippet}, "${featureLayer.title}")`;
|
|
170375
170701
|
return [
|
|
170376
170702
|
new ValueVariable({ profile: this._profile, label: snippetById, description: "", snippet: snippetById }),
|
|
170377
|
-
new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName })
|
|
170703
|
+
new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName }),
|
|
170378
170704
|
];
|
|
170379
170705
|
}
|
|
170380
170706
|
else {
|
|
@@ -170399,7 +170725,7 @@ class EditorProfile extends DictionaryVariable {
|
|
|
170399
170725
|
// Delay the load of the variable declarations so we have a `this`
|
|
170400
170726
|
super(undefined, {
|
|
170401
170727
|
profile: null,
|
|
170402
|
-
declaration: { properties: [] }
|
|
170728
|
+
declaration: { properties: [] },
|
|
170403
170729
|
});
|
|
170404
170730
|
this.definition = definition;
|
|
170405
170731
|
this.intlStrings = intlStrings;
|
|
@@ -170431,7 +170757,7 @@ class EditorProfile extends DictionaryVariable {
|
|
|
170431
170757
|
toEditorProfileDefinition() {
|
|
170432
170758
|
return {
|
|
170433
170759
|
...this.definition,
|
|
170434
|
-
variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
|
|
170760
|
+
variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
|
|
170435
170761
|
};
|
|
170436
170762
|
}
|
|
170437
170763
|
}
|
|
@@ -170464,7 +170790,7 @@ async function getSdkPredefinedProfiles(locale = "en") {
|
|
|
170464
170790
|
if (profiles) {
|
|
170465
170791
|
return profiles;
|
|
170466
170792
|
}
|
|
170467
|
-
if (!
|
|
170793
|
+
if (!supportedLocales.has(locale)) {
|
|
170468
170794
|
return await getSdkPredefinedProfiles("en");
|
|
170469
170795
|
}
|
|
170470
170796
|
try {
|
|
@@ -170510,13 +170836,13 @@ function convertApiVariable(variable) {
|
|
|
170510
170836
|
return {
|
|
170511
170837
|
...variable,
|
|
170512
170838
|
type: variable.type,
|
|
170513
|
-
properties: convertApiVariables(variable.properties)
|
|
170839
|
+
properties: convertApiVariables(variable.properties),
|
|
170514
170840
|
};
|
|
170515
170841
|
case "array": {
|
|
170516
170842
|
return {
|
|
170517
170843
|
...variable,
|
|
170518
170844
|
type: variable.type,
|
|
170519
|
-
elementType: { type: "number", name: "number" }
|
|
170845
|
+
elementType: { type: "number", name: "number" },
|
|
170520
170846
|
};
|
|
170521
170847
|
}
|
|
170522
170848
|
default:
|
|
@@ -170534,7 +170860,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
170534
170860
|
const editorProfile = {
|
|
170535
170861
|
bundles: [...sdkPredefinedProfile.bundles],
|
|
170536
170862
|
variables: [],
|
|
170537
|
-
hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase())
|
|
170863
|
+
hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase()),
|
|
170538
170864
|
};
|
|
170539
170865
|
// Merge the SDK variables' definitions/properties with the predefined profile definitions.
|
|
170540
170866
|
sdkPredefinedProfile.variables.forEach((sdkVariable) => {
|
|
@@ -170552,7 +170878,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
170552
170878
|
return editorProfile.variables.push(convertApiVariable({
|
|
170553
170879
|
...sdkVariable,
|
|
170554
170880
|
type: sdkVariable.type,
|
|
170555
|
-
properties: Array.isArray(definition) ? [...definition] : sdkVariable.properties
|
|
170881
|
+
properties: Array.isArray(definition) ? [...definition] : sdkVariable.properties,
|
|
170556
170882
|
}));
|
|
170557
170883
|
case "feature":
|
|
170558
170884
|
if (isFeatureDefinition(definition)) {
|
|
@@ -170581,7 +170907,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
170581
170907
|
|
|
170582
170908
|
const arcadeLanguageId = "arcade";
|
|
170583
170909
|
const defaultContext = {
|
|
170584
|
-
locale: "en"
|
|
170910
|
+
locale: "en",
|
|
170585
170911
|
};
|
|
170586
170912
|
class ArcadeLanguageServiceDefaults {
|
|
170587
170913
|
constructor() {
|
|
@@ -170635,7 +170961,7 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170635
170961
|
if (isPredefinedProfile(definition)) {
|
|
170636
170962
|
definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
|
|
170637
170963
|
}
|
|
170638
|
-
const intlStrings = await
|
|
170964
|
+
const intlStrings = await fetchT9NStringsBundle(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
170639
170965
|
if (!intlStrings) {
|
|
170640
170966
|
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
170641
170967
|
}
|
|
@@ -170647,7 +170973,7 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170647
170973
|
this.updateApiContextForModel(modelId, {
|
|
170648
170974
|
locale: apiContext.locale,
|
|
170649
170975
|
profile: apiProfile,
|
|
170650
|
-
snippets: apiContext.snippets
|
|
170976
|
+
snippets: apiContext.snippets,
|
|
170651
170977
|
});
|
|
170652
170978
|
}
|
|
170653
170979
|
/**
|
|
@@ -170714,7 +171040,7 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170714
171040
|
}
|
|
170715
171041
|
const arcadeDefaults = new ArcadeLanguageServiceDefaults();
|
|
170716
171042
|
const arcade = {
|
|
170717
|
-
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
|
|
171043
|
+
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults),
|
|
170718
171044
|
};
|
|
170719
171045
|
|
|
170720
|
-
export { B, D, Emitter as E,
|
|
171046
|
+
export { main as A, debounce as B, Deferred as D, Emitter as E, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, Range as R, StandaloneServices as S, Uri as U, arcade as a, commonjsGlobal as b, createCommonjsModule as c, importCoreAccessorSupportDecorators as d, editor as e, isURL as f, generateTokensCSSForColorMap as g, hasSameOrigin as h, importCoreAccessor as i, importRequest as j, arcadeDefaults as k, languages as l, filterCollection as m, addLTRMark as n, importArcade as o, generateGuid as p, getElementTheme as q, setValuesInString as r, setFocusOnElement as s, quoteString as t, supportedFields as u, createFilterExpression as v, observeAncestorsMutation as w, KeyMod as x, monaco_editor_core_star as y, typescriptDefaults as z };
|