@arcgis/coding-components 4.30.0-next.3 → 4.30.0-next.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-57e4af30.js → p-0f773b26.js} +2 -2
- package/dist/arcgis-coding-components/{p-a2e6cf69.js → p-238b42f1.js} +3 -3
- package/dist/arcgis-coding-components/{p-19754f5a.js → p-55ccf00d.js} +2 -2
- package/dist/arcgis-coding-components/p-6e95a049.js +7 -0
- package/dist/arcgis-coding-components/p-a0b7ffe0.js +68 -0
- package/dist/arcgis-coding-components/{p-ee00010b.js → p-a286cbca.js} +2 -2
- package/dist/arcgis-coding-components/{p-0c7d8400.js → p-a9b7b4e7.js} +2 -2
- package/dist/arcgis-coding-components/{p-f27bc17e.js → p-b45853be.js} +3 -3
- package/dist/arcgis-coding-components/{p-f09b91f0.js → p-b7048f8f.js} +2 -2
- package/dist/arcgis-coding-components/p-d4190a0c.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-fa769562.js → p-fc096a00.js} +2 -2
- package/dist/arcgis-coding-components/{p-a8ee78f9.js → p-ffda93ad.js} +1 -1
- package/dist/cjs/{arcade-defaults-9108b927.js → arcade-defaults-c7fb2997.js} +480 -160
- package/dist/cjs/{arcade-mode-99f89a80.js → arcade-mode-3e94a952.js} +45 -51
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1613 -202
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/{css-f717453b.js → css-49099aaf.js} +1 -1
- package/dist/cjs/{cssMode-9a365842.js → cssMode-ae7543b4.js} +3 -3
- package/dist/cjs/{html-64741c89.js → html-5fb457e8.js} +3 -3
- package/dist/cjs/{htmlMode-4e8b2289.js → htmlMode-29b3d04d.js} +3 -3
- package/dist/cjs/{index-42d71c10.js → index-4761d9b3.js} +42 -4
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-340e4ba6.js → javascript-a1ce96d3.js} +4 -4
- package/dist/cjs/{jsonMode-bc9bd096.js → jsonMode-0dc42ab3.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-99f43f9f.js → tsMode-41b4ad72.js} +3 -3
- package/dist/cjs/{typescript-4a00545a.js → typescript-6862dde4.js} +3 -3
- package/dist/components/arcade-api.js +11 -17
- package/dist/components/arcade-contribution.js +71 -13
- package/dist/components/arcade-defaults.js +61 -61
- package/dist/components/arcade-mode.js +44 -50
- package/dist/components/arcade-results.js +40 -51
- package/dist/components/arcade-suggestions.js +12 -18
- package/dist/components/arcade-variables.js +13 -22
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +41 -106
- 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-FQ4KFKVY.js +1448 -0
- package/dist/components/code-editor.js +14 -14
- package/dist/components/fields.js +2 -66
- package/dist/components/index.d.ts +3 -18
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +387 -3
- package/dist/components/markdown.js +9 -11
- package/dist/components/utilities.js +3 -3
- package/dist/esm/{arcade-defaults-372ecf79.js → arcade-defaults-c1f134db.js} +467 -147
- package/dist/esm/{arcade-mode-b2b0b42d.js → arcade-mode-923e3be6.js} +45 -51
- package/dist/esm/arcgis-arcade-api_6.entry.js +1613 -202
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/{css-81c81ba2.js → css-2997dcdd.js} +1 -1
- package/dist/esm/{cssMode-41873574.js → cssMode-5a2cc7ad.js} +3 -3
- package/dist/esm/{html-d42d34ab.js → html-32528844.js} +3 -3
- package/dist/esm/{htmlMode-143da753.js → htmlMode-c84c9b50.js} +3 -3
- package/dist/esm/{index-3bfb710a.js → index-4dfdaab1.js} +42 -5
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-c5306510.js → javascript-921d3a14.js} +4 -4
- package/dist/esm/{jsonMode-60732e84.js → jsonMode-c0ecf6b9.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-5a10d9e9.js → tsMode-aba3c96f.js} +3 -3
- package/dist/esm/{typescript-bb6b1528.js → typescript-871ba741.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 +4 -5
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +7 -4
- package/dist/types/components/arcade-results/arcade-results.d.ts +4 -7
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +4 -5
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +4 -6
- 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/package.json +20 -19
- package/dist/arcgis-coding-components/p-84b69395.entry.js +0 -6
- package/dist/arcgis-coding-components/p-e75d3e9e.js +0 -68
- package/dist/arcgis-coding-components/p-fa458a74.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.31
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-4dfdaab1.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-2997dcdd.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-32528844.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-921d3a14.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-871ba741.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-5a2cc7ad.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-c84c9b50.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-c0ecf6b9.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-aba3c96f.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,7 +169160,7 @@ 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
169166
|
const layers = filterFeatureLayerInfos(data.layers, queryCapability);
|
|
@@ -169173,7 +169183,317 @@ function filterFeatureLayerInfos(layers, queryCapability) {
|
|
|
169173
169183
|
}
|
|
169174
169184
|
//#endregion
|
|
169175
169185
|
|
|
169176
|
-
|
|
169186
|
+
// src/array-utils.ts
|
|
169187
|
+
|
|
169188
|
+
// src/deferred.ts
|
|
169189
|
+
var Deferred = class {
|
|
169190
|
+
/**
|
|
169191
|
+
* Creates a new deferred promise.
|
|
169192
|
+
*/
|
|
169193
|
+
constructor() {
|
|
169194
|
+
this.resolve = () => void 0;
|
|
169195
|
+
this.reject = () => void 0;
|
|
169196
|
+
this.promise = new Promise((resolve, reject) => {
|
|
169197
|
+
this.resolve = resolve;
|
|
169198
|
+
this.reject = reject;
|
|
169199
|
+
});
|
|
169200
|
+
}
|
|
169201
|
+
};
|
|
169202
|
+
|
|
169203
|
+
// src/dom.ts
|
|
169204
|
+
function inTargetElement(element, targetElement) {
|
|
169205
|
+
let currentElement = element;
|
|
169206
|
+
while (currentElement) {
|
|
169207
|
+
if (currentElement === targetElement) {
|
|
169208
|
+
return true;
|
|
169209
|
+
}
|
|
169210
|
+
if (!currentElement.parentNode) {
|
|
169211
|
+
return false;
|
|
169212
|
+
}
|
|
169213
|
+
if (currentElement.parentNode instanceof ShadowRoot) {
|
|
169214
|
+
currentElement = currentElement.parentNode.host;
|
|
169215
|
+
} else {
|
|
169216
|
+
currentElement = currentElement.parentNode;
|
|
169217
|
+
}
|
|
169218
|
+
}
|
|
169219
|
+
return false;
|
|
169220
|
+
}
|
|
169221
|
+
function observeAncestorsMutation(element, attributeFilter, callback) {
|
|
169222
|
+
const { subscribe } = observe(attributeFilter);
|
|
169223
|
+
return subscribe((mutations) => {
|
|
169224
|
+
const matched = mutations.some((mutation) => inTargetElement(element, mutation.target));
|
|
169225
|
+
if (matched)
|
|
169226
|
+
callback();
|
|
169227
|
+
});
|
|
169228
|
+
}
|
|
169229
|
+
var observers = {};
|
|
169230
|
+
function observe(attributeFilter) {
|
|
169231
|
+
const attributes = attributeFilter.join(",");
|
|
169232
|
+
const previousObserver = observers[attributes];
|
|
169233
|
+
if (previousObserver !== void 0)
|
|
169234
|
+
return previousObserver;
|
|
169235
|
+
const subscribers = /* @__PURE__ */ new Set();
|
|
169236
|
+
const mutationObserver = new MutationObserver((mutations) => subscribers.forEach((callback) => callback(mutations)));
|
|
169237
|
+
mutationObserver.observe(document.documentElement, {
|
|
169238
|
+
attributes: true,
|
|
169239
|
+
attributeFilter,
|
|
169240
|
+
subtree: true
|
|
169241
|
+
});
|
|
169242
|
+
const observer = {
|
|
169243
|
+
subscribe(callback) {
|
|
169244
|
+
subscribers.add(callback);
|
|
169245
|
+
return {
|
|
169246
|
+
remove: () => {
|
|
169247
|
+
subscribers.delete(callback);
|
|
169248
|
+
if (subscribers.size === 0) {
|
|
169249
|
+
mutationObserver.disconnect();
|
|
169250
|
+
observers[attributes] = void 0;
|
|
169251
|
+
}
|
|
169252
|
+
}
|
|
169253
|
+
};
|
|
169254
|
+
}
|
|
169255
|
+
};
|
|
169256
|
+
observers[attributes] = observer;
|
|
169257
|
+
return observer;
|
|
169258
|
+
}
|
|
169259
|
+
function closestElement(base, selector) {
|
|
169260
|
+
let currentElement = base;
|
|
169261
|
+
while (currentElement) {
|
|
169262
|
+
const element = currentElement.closest(selector);
|
|
169263
|
+
if (element) {
|
|
169264
|
+
return element;
|
|
169265
|
+
}
|
|
169266
|
+
const rootElement = currentElement.getRootNode();
|
|
169267
|
+
if (rootElement === document) {
|
|
169268
|
+
return null;
|
|
169269
|
+
}
|
|
169270
|
+
currentElement = rootElement.host;
|
|
169271
|
+
}
|
|
169272
|
+
return null;
|
|
169273
|
+
}
|
|
169274
|
+
function getElementTheme(base) {
|
|
169275
|
+
const themeElt = closestElement(base, ":is(.calcite-mode-light, .calcite-mode-dark)");
|
|
169276
|
+
return themeElt && themeElt.classList.contains("calcite-mode-dark") ? "dark" : "light";
|
|
169277
|
+
}
|
|
169278
|
+
function isElement(ref) {
|
|
169279
|
+
return ref.nodeType === Node.ELEMENT_NODE;
|
|
169280
|
+
}
|
|
169281
|
+
function isHTMLWithSetFocus(ref) {
|
|
169282
|
+
return "setFocus" in ref && typeof ref.setFocus === "function";
|
|
169283
|
+
}
|
|
169284
|
+
function setFocus(ref, selector = "") {
|
|
169285
|
+
if (!isElement(ref)) {
|
|
169286
|
+
return false;
|
|
169287
|
+
}
|
|
169288
|
+
if (ref.matches(selector)) {
|
|
169289
|
+
if (isHTMLWithSetFocus(ref)) {
|
|
169290
|
+
setTimeout(() => ref.setFocus(), 0);
|
|
169291
|
+
}
|
|
169292
|
+
return true;
|
|
169293
|
+
}
|
|
169294
|
+
for (const child of ref.children) {
|
|
169295
|
+
if (setFocus(child, selector)) {
|
|
169296
|
+
return true;
|
|
169297
|
+
}
|
|
169298
|
+
}
|
|
169299
|
+
const shadowRoot = ref.shadowRoot;
|
|
169300
|
+
if (shadowRoot) {
|
|
169301
|
+
for (const child of shadowRoot.children) {
|
|
169302
|
+
if (setFocus(child, selector)) {
|
|
169303
|
+
return true;
|
|
169304
|
+
}
|
|
169305
|
+
}
|
|
169306
|
+
}
|
|
169307
|
+
return false;
|
|
169308
|
+
}
|
|
169309
|
+
function setFocusOnElement(ref, selector) {
|
|
169310
|
+
if (!ref?.shadowRoot) {
|
|
169311
|
+
return;
|
|
169312
|
+
}
|
|
169313
|
+
if (ref.hasAttribute("hydrated") || ref.hasAttribute("calcite-hydrated")) {
|
|
169314
|
+
setFocus(ref, selector);
|
|
169315
|
+
return;
|
|
169316
|
+
}
|
|
169317
|
+
const mutationObserver = new MutationObserver(() => {
|
|
169318
|
+
mutationObserver.disconnect();
|
|
169319
|
+
setFocus(ref, selector);
|
|
169320
|
+
});
|
|
169321
|
+
mutationObserver.observe(ref, {
|
|
169322
|
+
attributes: true,
|
|
169323
|
+
attributeFilter: ["hydrated", "calcite-hydrated"]
|
|
169324
|
+
});
|
|
169325
|
+
}
|
|
169326
|
+
|
|
169327
|
+
// src/guid.ts
|
|
169328
|
+
function gen(count) {
|
|
169329
|
+
let out = "";
|
|
169330
|
+
for (let i = 0; i < count; i++) {
|
|
169331
|
+
out += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
169332
|
+
}
|
|
169333
|
+
return out;
|
|
169334
|
+
}
|
|
169335
|
+
function generateGuid() {
|
|
169336
|
+
return [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
|
|
169337
|
+
}
|
|
169338
|
+
var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
|
|
169339
|
+
var camelToHuman = (value) => capitalize(value.replaceAll(/([a-z])([A-Z])/gu, "$1 $2"));
|
|
169340
|
+
|
|
169341
|
+
// src/intl.ts
|
|
169342
|
+
var supportedLocales = /* @__PURE__ */ new Set([
|
|
169343
|
+
"ar",
|
|
169344
|
+
"bg",
|
|
169345
|
+
"bs",
|
|
169346
|
+
"ca",
|
|
169347
|
+
"cs",
|
|
169348
|
+
"da",
|
|
169349
|
+
"de",
|
|
169350
|
+
"el",
|
|
169351
|
+
"en",
|
|
169352
|
+
"es",
|
|
169353
|
+
"et",
|
|
169354
|
+
"fi",
|
|
169355
|
+
"fr",
|
|
169356
|
+
"he",
|
|
169357
|
+
"hr",
|
|
169358
|
+
"hu",
|
|
169359
|
+
"id",
|
|
169360
|
+
"it",
|
|
169361
|
+
"ja",
|
|
169362
|
+
"ko",
|
|
169363
|
+
"lt",
|
|
169364
|
+
"lv",
|
|
169365
|
+
"nl",
|
|
169366
|
+
"nb",
|
|
169367
|
+
"pl",
|
|
169368
|
+
"pt-BR",
|
|
169369
|
+
"pt-PT",
|
|
169370
|
+
"ro",
|
|
169371
|
+
"ru",
|
|
169372
|
+
"sk",
|
|
169373
|
+
"sl",
|
|
169374
|
+
"sr",
|
|
169375
|
+
"sv",
|
|
169376
|
+
"th",
|
|
169377
|
+
"tr",
|
|
169378
|
+
"uk",
|
|
169379
|
+
"vi",
|
|
169380
|
+
"zh-CN",
|
|
169381
|
+
"zh-HK",
|
|
169382
|
+
"zh-TW"
|
|
169383
|
+
]);
|
|
169384
|
+
var defaultLocale = "en";
|
|
169385
|
+
async function fetchT9NStringsBundle(locale, assetsPath, prefix = "") {
|
|
169386
|
+
const path = `${assetsPath}/${prefix}`;
|
|
169387
|
+
const filePath = `${path}${locale}.json`;
|
|
169388
|
+
t9nStringsCache[filePath] ?? (t9nStringsCache[filePath] = fetchBundle(locale, path));
|
|
169389
|
+
return await t9nStringsCache[filePath];
|
|
169390
|
+
}
|
|
169391
|
+
var t9nStringsCache = {};
|
|
169392
|
+
async function fetchBundle(locale, path) {
|
|
169393
|
+
const filePath = `${path}${locale}.json`;
|
|
169394
|
+
try {
|
|
169395
|
+
const response = await fetch(filePath);
|
|
169396
|
+
if (response.ok)
|
|
169397
|
+
return await response.json();
|
|
169398
|
+
} catch (error) {
|
|
169399
|
+
console.error(error);
|
|
169400
|
+
return fallbackBundle;
|
|
169401
|
+
}
|
|
169402
|
+
if (locale === defaultLocale)
|
|
169403
|
+
return fallbackBundle;
|
|
169404
|
+
return await fetchBundle(defaultLocale, path);
|
|
169405
|
+
}
|
|
169406
|
+
var fallbackBundle = new Proxy(
|
|
169407
|
+
{},
|
|
169408
|
+
{
|
|
169409
|
+
get: (_target, property) => camelToHuman(property.toString())
|
|
169410
|
+
}
|
|
169411
|
+
);
|
|
169412
|
+
|
|
169413
|
+
// src/strings.ts
|
|
169414
|
+
var doubleQuote = '"';
|
|
169415
|
+
var singleQuote = "'";
|
|
169416
|
+
function repeatString(value, n) {
|
|
169417
|
+
return new Array(n + 1).join(value);
|
|
169418
|
+
}
|
|
169419
|
+
function quoteString(value) {
|
|
169420
|
+
let quote = doubleQuote;
|
|
169421
|
+
let alternateQuote = singleQuote;
|
|
169422
|
+
const avoidEscape = value.includes(quote) && !value.includes(alternateQuote);
|
|
169423
|
+
if (avoidEscape) {
|
|
169424
|
+
alternateQuote = doubleQuote;
|
|
169425
|
+
quote = singleQuote;
|
|
169426
|
+
}
|
|
169427
|
+
const alternateEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${alternateQuote})+)`, "gu");
|
|
169428
|
+
value = value.replace(
|
|
169429
|
+
alternateEscape,
|
|
169430
|
+
(_, boundaryChar, leadingEscapedSlashes, escapedQuoteChars) => (
|
|
169431
|
+
// We divide the escapedQuoteChars by 2 since there are 2 characters in each escaped part ('\\"'.length === 2)
|
|
169432
|
+
boundaryChar + leadingEscapedSlashes + repeatString(alternateQuote, escapedQuoteChars.length / 2)
|
|
169433
|
+
)
|
|
169434
|
+
);
|
|
169435
|
+
const quoteEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${quote}+)`, "gu");
|
|
169436
|
+
value = value.replace(
|
|
169437
|
+
quoteEscape,
|
|
169438
|
+
(_, boundaryChar, leadingEscapedSlashes, quoteChars) => boundaryChar + leadingEscapedSlashes + repeatString(`\\${quote}`, quoteChars.length)
|
|
169439
|
+
);
|
|
169440
|
+
return quote + value + quote;
|
|
169441
|
+
}
|
|
169442
|
+
function createFilterExpression(filterWord) {
|
|
169443
|
+
const sanitizedWord = filterWord ? filterWord.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu, "\\$&") : "^.*$";
|
|
169444
|
+
return new RegExp(sanitizedWord, "i");
|
|
169445
|
+
}
|
|
169446
|
+
function setValuesInString(message, values = {}) {
|
|
169447
|
+
return (message ?? "").replace(/\{(.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
|
|
169448
|
+
}
|
|
169449
|
+
function addLTRMark(value) {
|
|
169450
|
+
return `\u200E${value ?? ""}\u200E`;
|
|
169451
|
+
}
|
|
169452
|
+
|
|
169453
|
+
// src/type-guards.ts
|
|
169454
|
+
function isNotNull(item) {
|
|
169455
|
+
return item !== null;
|
|
169456
|
+
}
|
|
169457
|
+
function isNotUndefined(item) {
|
|
169458
|
+
return item !== void 0;
|
|
169459
|
+
}
|
|
169460
|
+
|
|
169461
|
+
// src/ui.ts
|
|
169462
|
+
function debounce(func, waitFor = 100) {
|
|
169463
|
+
let timeout;
|
|
169464
|
+
return (...args) => {
|
|
169465
|
+
const later = () => {
|
|
169466
|
+
clearTimeout(timeout);
|
|
169467
|
+
func(...args);
|
|
169468
|
+
};
|
|
169469
|
+
clearTimeout(timeout);
|
|
169470
|
+
timeout = setTimeout(later, waitFor);
|
|
169471
|
+
};
|
|
169472
|
+
}
|
|
169473
|
+
|
|
169474
|
+
// src/url.ts
|
|
169475
|
+
function hasSameOrigin(url1, url2, ignoreProtocol = false) {
|
|
169476
|
+
if (!url1 || !url2) {
|
|
169477
|
+
return false;
|
|
169478
|
+
}
|
|
169479
|
+
const url1Obj = new URL(url1);
|
|
169480
|
+
const url2Obj = new URL(url2);
|
|
169481
|
+
if (!ignoreProtocol && url1Obj.protocol !== url2Obj.protocol) {
|
|
169482
|
+
return false;
|
|
169483
|
+
}
|
|
169484
|
+
if (url1Obj.host == null || url2Obj.host == null) {
|
|
169485
|
+
return false;
|
|
169486
|
+
}
|
|
169487
|
+
return url1Obj.host.toLowerCase() === url2Obj.host.toLowerCase() && url1Obj.port === url2Obj.port;
|
|
169488
|
+
}
|
|
169489
|
+
function isURL(url) {
|
|
169490
|
+
try {
|
|
169491
|
+
new URL(url);
|
|
169492
|
+
return true;
|
|
169493
|
+
} catch (e) {
|
|
169494
|
+
return false;
|
|
169495
|
+
}
|
|
169496
|
+
}
|
|
169177
169497
|
|
|
169178
169498
|
/**
|
|
169179
169499
|
* Filters a collection of items by the given keys and filter word.
|
|
@@ -169186,7 +169506,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
|
|
|
169186
169506
|
if (!_keys.length) {
|
|
169187
169507
|
return [];
|
|
169188
169508
|
}
|
|
169189
|
-
const filterExpression =
|
|
169509
|
+
const filterExpression = createFilterExpression(filterWord);
|
|
169190
169510
|
return collection.filter((item) => {
|
|
169191
169511
|
if (beforeFilteringFn) {
|
|
169192
169512
|
const res = beforeFilteringFn(item);
|
|
@@ -169386,8 +169706,8 @@ function variableToLSVariable(editorVariable, kind) {
|
|
|
169386
169706
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169387
169707
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169388
169708
|
kind,
|
|
169389
|
-
documentation: { kind: "markdown", value: description }
|
|
169390
|
-
}
|
|
169709
|
+
documentation: { kind: "markdown", value: description },
|
|
169710
|
+
},
|
|
169391
169711
|
};
|
|
169392
169712
|
}
|
|
169393
169713
|
async function featureToLSFeature(editorFeature, kind) {
|
|
@@ -169401,14 +169721,14 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169401
169721
|
insertText: name,
|
|
169402
169722
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169403
169723
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169404
|
-
kind
|
|
169724
|
+
kind,
|
|
169405
169725
|
};
|
|
169406
169726
|
const result = {
|
|
169407
169727
|
name,
|
|
169408
169728
|
description,
|
|
169409
169729
|
type: "dictionary",
|
|
169410
169730
|
properties: [],
|
|
169411
|
-
completion: resultCompletion
|
|
169731
|
+
completion: resultCompletion,
|
|
169412
169732
|
};
|
|
169413
169733
|
// No source definition, then it will be a feature without any known fields
|
|
169414
169734
|
if (!source) {
|
|
@@ -169446,8 +169766,8 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169446
169766
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169447
169767
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169448
169768
|
kind: main.CompletionItemKind.Field,
|
|
169449
|
-
documentation: { kind: "markdown", value: fieldCompletionDescription }
|
|
169450
|
-
}
|
|
169769
|
+
documentation: { kind: "markdown", value: fieldCompletionDescription },
|
|
169770
|
+
},
|
|
169451
169771
|
});
|
|
169452
169772
|
if (!field.alias || field.alias.toLowerCase() === field.name.toLowerCase()) {
|
|
169453
169773
|
return;
|
|
@@ -169468,8 +169788,8 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169468
169788
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169469
169789
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169470
169790
|
kind: main.CompletionItemKind.Field,
|
|
169471
|
-
documentation: { kind: "markdown", value: aliasCompletionDescription }
|
|
169472
|
-
}
|
|
169791
|
+
documentation: { kind: "markdown", value: aliasCompletionDescription },
|
|
169792
|
+
},
|
|
169473
169793
|
});
|
|
169474
169794
|
});
|
|
169475
169795
|
result.properties = [...fieldProfileValues, ...aliasProfileValues];
|
|
@@ -169502,8 +169822,8 @@ async function dictionaryToLSDictionary(editorDictionary, kind) {
|
|
|
169502
169822
|
insertTextMode: main.InsertTextMode.asIs,
|
|
169503
169823
|
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169504
169824
|
kind,
|
|
169505
|
-
documentation: { kind: "markdown", value: completionDescription }
|
|
169506
|
-
}
|
|
169825
|
+
documentation: { kind: "markdown", value: completionDescription },
|
|
169826
|
+
},
|
|
169507
169827
|
};
|
|
169508
169828
|
}
|
|
169509
169829
|
/**
|
|
@@ -169530,9 +169850,9 @@ class ProfileItemBase {
|
|
|
169530
169850
|
// If the component is under RTL, the string is messed up.
|
|
169531
169851
|
// It is converted from $feature to feature$, This is not acceptable since the label
|
|
169532
169852
|
// represents a variable name. We are adding in front of the $ sign a right to left mark.
|
|
169533
|
-
return
|
|
169853
|
+
return addLTRMark(this._label);
|
|
169534
169854
|
}
|
|
169535
|
-
return
|
|
169855
|
+
return setValuesInString(this._profile?.intlStrings[this._label.code], this._label.formatValues);
|
|
169536
169856
|
}
|
|
169537
169857
|
/**
|
|
169538
169858
|
* Returns the description string.
|
|
@@ -169544,7 +169864,7 @@ class ProfileItemBase {
|
|
|
169544
169864
|
if (typeof this.description === "string") {
|
|
169545
169865
|
return this.description;
|
|
169546
169866
|
}
|
|
169547
|
-
return
|
|
169867
|
+
return setValuesInString(this._profile?.intlStrings[this.description.code], this.description.formatValues);
|
|
169548
169868
|
}
|
|
169549
169869
|
/**
|
|
169550
169870
|
* Returns true if the item pass the filter test
|
|
@@ -169721,28 +170041,28 @@ class DictionaryVariable extends CollectionBasedVariable {
|
|
|
169721
170041
|
return new FeatureVariable(this, { profile: this._profile, declaration, label: snippet, snippet });
|
|
169722
170042
|
case "featureSet":
|
|
169723
170043
|
return new FeatureSetVariable(this, { profile: this._profile, declaration, label: snippet, snippet }, [
|
|
169724
|
-
new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })
|
|
170044
|
+
new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet }),
|
|
169725
170045
|
]);
|
|
169726
170046
|
case "featureSetCollection":
|
|
169727
170047
|
return new FeatureSetCollectionVariable(this, {
|
|
169728
170048
|
profile: this._profile,
|
|
169729
170049
|
declaration,
|
|
169730
170050
|
label: snippet,
|
|
169731
|
-
snippet
|
|
170051
|
+
snippet,
|
|
169732
170052
|
});
|
|
169733
170053
|
case "dictionary":
|
|
169734
170054
|
return new DictionaryVariable(this, {
|
|
169735
170055
|
profile: this._profile,
|
|
169736
170056
|
declaration,
|
|
169737
170057
|
label: snippet,
|
|
169738
|
-
snippet
|
|
170058
|
+
snippet,
|
|
169739
170059
|
});
|
|
169740
170060
|
case "array":
|
|
169741
170061
|
return new ArrayVariable({
|
|
169742
170062
|
profile: this._profile,
|
|
169743
170063
|
declaration,
|
|
169744
170064
|
label: snippet,
|
|
169745
|
-
snippet
|
|
170065
|
+
snippet,
|
|
169746
170066
|
});
|
|
169747
170067
|
default:
|
|
169748
170068
|
console.error("Editor profile: Invalid profile variable", declaration);
|
|
@@ -169754,7 +170074,7 @@ class DictionaryVariable extends CollectionBasedVariable {
|
|
|
169754
170074
|
type: this.type,
|
|
169755
170075
|
name: "",
|
|
169756
170076
|
...this.declaration,
|
|
169757
|
-
properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
|
|
170077
|
+
properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
|
|
169758
170078
|
};
|
|
169759
170079
|
}
|
|
169760
170080
|
}
|
|
@@ -169785,7 +170105,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169785
170105
|
return this._profile?.intlStrings.layer ?? "layer";
|
|
169786
170106
|
}
|
|
169787
170107
|
async loadSource() {
|
|
169788
|
-
if (
|
|
170108
|
+
if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
|
|
169789
170109
|
return await this._loadPromise;
|
|
169790
170110
|
}
|
|
169791
170111
|
this._loadPromise = this._loadSource();
|
|
@@ -169820,7 +170140,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169820
170140
|
description: fieldAlias(field),
|
|
169821
170141
|
snippet: valueSnippet,
|
|
169822
170142
|
icon: fieldTypeToIconName(field),
|
|
169823
|
-
filterDescription: true
|
|
170143
|
+
filterDescription: true,
|
|
169824
170144
|
});
|
|
169825
170145
|
}
|
|
169826
170146
|
_getDomainDictionary(field) {
|
|
@@ -169913,7 +170233,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169913
170233
|
return null;
|
|
169914
170234
|
}
|
|
169915
170235
|
const domainValuesGroup = this._getCodedValueDomainGroup(fieldDomain, {
|
|
169916
|
-
code: "domainvalues"
|
|
170236
|
+
code: "domainvalues",
|
|
169917
170237
|
});
|
|
169918
170238
|
const domainDictionary = this._createDomainDictionary(field);
|
|
169919
170239
|
domainDictionary.variables.push(domainValuesGroup);
|
|
@@ -169931,7 +170251,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169931
170251
|
profile: this._profile,
|
|
169932
170252
|
label: `${label}`,
|
|
169933
170253
|
description: t.name,
|
|
169934
|
-
snippet: `"${label}"
|
|
170254
|
+
snippet: `"${label}"`,
|
|
169935
170255
|
});
|
|
169936
170256
|
}) ?? [];
|
|
169937
170257
|
return new GroupOfVariables(this._profile, { code: "subtypes" }, values);
|
|
@@ -169942,7 +170262,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169942
170262
|
label: `${v.code}`,
|
|
169943
170263
|
description: v.name,
|
|
169944
170264
|
snippet: `"${v.code}"`,
|
|
169945
|
-
filterDescription: true
|
|
170265
|
+
filterDescription: true,
|
|
169946
170266
|
}));
|
|
169947
170267
|
return new GroupOfVariables(this._profile, label, values);
|
|
169948
170268
|
}
|
|
@@ -169968,8 +170288,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169968
170288
|
code: "domainvaluesfortypeformat",
|
|
169969
170289
|
formatValues: {
|
|
169970
170290
|
fieldName: alias,
|
|
169971
|
-
typeName: type.name
|
|
169972
|
-
}
|
|
170291
|
+
typeName: type.name,
|
|
170292
|
+
},
|
|
169973
170293
|
});
|
|
169974
170294
|
const id = isSubtypeInstance(type) ? type.code : type.id;
|
|
169975
170295
|
const label = `${id}`;
|
|
@@ -169979,7 +170299,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169979
170299
|
label,
|
|
169980
170300
|
snippet,
|
|
169981
170301
|
description: type.name,
|
|
169982
|
-
declaration: { name: alias }
|
|
170302
|
+
declaration: { name: alias },
|
|
169983
170303
|
});
|
|
169984
170304
|
subtypeDictionary.variables = [domainValuesGroup];
|
|
169985
170305
|
variables.push(subtypeDictionary);
|
|
@@ -170001,7 +170321,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170001
170321
|
description: alias,
|
|
170002
170322
|
snippet: valueSnippet,
|
|
170003
170323
|
icon: "form-dropdown",
|
|
170004
|
-
declaration: { name: field.name }
|
|
170324
|
+
declaration: { name: field.name },
|
|
170005
170325
|
});
|
|
170006
170326
|
// Add the header group
|
|
170007
170327
|
const headerGroup = new GroupOfVariables(this._profile, alias, [
|
|
@@ -170009,8 +170329,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170009
170329
|
profile: this._profile,
|
|
170010
170330
|
label: valueSnippet,
|
|
170011
170331
|
description: "",
|
|
170012
|
-
snippet: valueSnippet
|
|
170013
|
-
})
|
|
170332
|
+
snippet: valueSnippet,
|
|
170333
|
+
}),
|
|
170014
170334
|
]);
|
|
170015
170335
|
domainDictionary.variables = [headerGroup];
|
|
170016
170336
|
// Add the SubtypeName or DomainName snippet if available
|
|
@@ -170020,7 +170340,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170020
170340
|
profile: this._profile,
|
|
170021
170341
|
label: subtypeOrDomainNameSnippet,
|
|
170022
170342
|
description: "",
|
|
170023
|
-
snippet: subtypeOrDomainNameSnippet
|
|
170343
|
+
snippet: subtypeOrDomainNameSnippet,
|
|
170024
170344
|
}));
|
|
170025
170345
|
}
|
|
170026
170346
|
return domainDictionary;
|
|
@@ -170050,10 +170370,10 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170050
170370
|
declaration: { definition: relatedLayer },
|
|
170051
170371
|
label: relatedLayer.title,
|
|
170052
170372
|
description: "",
|
|
170053
|
-
nonInteractive: true
|
|
170373
|
+
nonInteractive: true,
|
|
170054
170374
|
}, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
|
|
170055
170375
|
}));
|
|
170056
|
-
relationshipsGroup.variables = relationshipItems.filter(
|
|
170376
|
+
relationshipsGroup.variables = relationshipItems.filter(isNotNull);
|
|
170057
170377
|
if (!relationshipsGroup.variables.length) {
|
|
170058
170378
|
return null;
|
|
170059
170379
|
}
|
|
@@ -170067,7 +170387,7 @@ class FeatureVariable extends SourceBasedVariable {
|
|
|
170067
170387
|
}
|
|
170068
170388
|
get title() {
|
|
170069
170389
|
if (isSupportedLayerInstance(this._source)) {
|
|
170070
|
-
return this._source.title;
|
|
170390
|
+
return this._source.title ?? "";
|
|
170071
170391
|
}
|
|
170072
170392
|
return { code: "feature" };
|
|
170073
170393
|
}
|
|
@@ -170081,14 +170401,14 @@ class FeatureVariable extends SourceBasedVariable {
|
|
|
170081
170401
|
throw new Error("Invalid definition");
|
|
170082
170402
|
}
|
|
170083
170403
|
// The title group and snippet
|
|
170084
|
-
const title = isSupportedLayerInstance(this._source) ? this._source.title : "";
|
|
170404
|
+
const title = isSupportedLayerInstance(this._source) ? this._source.title ?? "" : "";
|
|
170085
170405
|
this.variables.push(new GroupOfVariables(this._profile, title, [
|
|
170086
170406
|
new ValueVariable({
|
|
170087
170407
|
profile: this._profile,
|
|
170088
170408
|
label: this.snippet,
|
|
170089
170409
|
description: "",
|
|
170090
|
-
snippet: this.snippet
|
|
170091
|
-
})
|
|
170410
|
+
snippet: this.snippet,
|
|
170411
|
+
}),
|
|
170092
170412
|
]));
|
|
170093
170413
|
// The collection of feature attribute values
|
|
170094
170414
|
const valuesGroup = new GroupOfVariables(this._profile, { code: "values" });
|
|
@@ -170103,7 +170423,7 @@ class FeatureVariable extends SourceBasedVariable {
|
|
|
170103
170423
|
description: "Geometry",
|
|
170104
170424
|
snippet,
|
|
170105
170425
|
icon: "shapes",
|
|
170106
|
-
filterDescription: true
|
|
170426
|
+
filterDescription: true,
|
|
170107
170427
|
});
|
|
170108
170428
|
valuesGroup.variables.push(geometryProperty);
|
|
170109
170429
|
}
|
|
@@ -170140,7 +170460,7 @@ class FeatureSetVariable extends SourceBasedVariable {
|
|
|
170140
170460
|
}
|
|
170141
170461
|
get title() {
|
|
170142
170462
|
if (isSupportedLayerInstance(this._source)) {
|
|
170143
|
-
return this._source.title;
|
|
170463
|
+
return this._source.title ?? "";
|
|
170144
170464
|
}
|
|
170145
170465
|
return { code: "featureset" };
|
|
170146
170466
|
}
|
|
@@ -170217,7 +170537,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170217
170537
|
return this._profile?.intlStrings.map ?? "map";
|
|
170218
170538
|
}
|
|
170219
170539
|
async loadSource() {
|
|
170220
|
-
if (
|
|
170540
|
+
if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
|
|
170221
170541
|
return await this._loadPromise;
|
|
170222
170542
|
}
|
|
170223
170543
|
this._loadPromise = this._loadSource();
|
|
@@ -170238,16 +170558,16 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170238
170558
|
: {
|
|
170239
170559
|
code: "webmapformat",
|
|
170240
170560
|
formatValues: {
|
|
170241
|
-
webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map"
|
|
170242
|
-
}
|
|
170561
|
+
webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map",
|
|
170562
|
+
},
|
|
170243
170563
|
};
|
|
170244
170564
|
const headerGroup = new GroupOfVariables(this._profile, groupLabel, [
|
|
170245
170565
|
new ValueVariable({
|
|
170246
170566
|
profile: this._profile,
|
|
170247
170567
|
label: this.snippet,
|
|
170248
170568
|
description: "",
|
|
170249
|
-
snippet: this.snippet
|
|
170250
|
-
})
|
|
170569
|
+
snippet: this.snippet,
|
|
170570
|
+
}),
|
|
170251
170571
|
]);
|
|
170252
170572
|
// Creates the groups for the layer and tables
|
|
170253
170573
|
const layersGroup = new GroupOfVariables(this._profile, { code: "layers" }, this._featureSetCollections.layers);
|
|
@@ -170294,7 +170614,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170294
170614
|
return {
|
|
170295
170615
|
layers: this._convertWebMapLayersToVariables(map.layers),
|
|
170296
170616
|
tables: this._convertWebMapLayersToVariables(map.tables, true),
|
|
170297
|
-
source: map
|
|
170617
|
+
source: map,
|
|
170298
170618
|
};
|
|
170299
170619
|
}
|
|
170300
170620
|
async _featureSetCollectionFromPortalItem(definition) {
|
|
@@ -170362,7 +170682,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170362
170682
|
declaration: { name: featureLayer.title, definition: featureLayer },
|
|
170363
170683
|
label: featureLayer.title,
|
|
170364
170684
|
description: "",
|
|
170365
|
-
nonInteractive: true
|
|
170685
|
+
nonInteractive: true,
|
|
170366
170686
|
}, this._makeFeatureSetSnippets(featureLayer, isFromWebMap));
|
|
170367
170687
|
}
|
|
170368
170688
|
_makeFeatureSetSnippets(featureLayer, isFromWebMap = false) {
|
|
@@ -170374,7 +170694,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170374
170694
|
const snippetByName = `FeatureSetByName(${this.snippet}, "${featureLayer.title}")`;
|
|
170375
170695
|
return [
|
|
170376
170696
|
new ValueVariable({ profile: this._profile, label: snippetById, description: "", snippet: snippetById }),
|
|
170377
|
-
new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName })
|
|
170697
|
+
new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName }),
|
|
170378
170698
|
];
|
|
170379
170699
|
}
|
|
170380
170700
|
else {
|
|
@@ -170399,7 +170719,7 @@ class EditorProfile extends DictionaryVariable {
|
|
|
170399
170719
|
// Delay the load of the variable declarations so we have a `this`
|
|
170400
170720
|
super(undefined, {
|
|
170401
170721
|
profile: null,
|
|
170402
|
-
declaration: { properties: [] }
|
|
170722
|
+
declaration: { properties: [] },
|
|
170403
170723
|
});
|
|
170404
170724
|
this.definition = definition;
|
|
170405
170725
|
this.intlStrings = intlStrings;
|
|
@@ -170431,7 +170751,7 @@ class EditorProfile extends DictionaryVariable {
|
|
|
170431
170751
|
toEditorProfileDefinition() {
|
|
170432
170752
|
return {
|
|
170433
170753
|
...this.definition,
|
|
170434
|
-
variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
|
|
170754
|
+
variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
|
|
170435
170755
|
};
|
|
170436
170756
|
}
|
|
170437
170757
|
}
|
|
@@ -170464,7 +170784,7 @@ async function getSdkPredefinedProfiles(locale = "en") {
|
|
|
170464
170784
|
if (profiles) {
|
|
170465
170785
|
return profiles;
|
|
170466
170786
|
}
|
|
170467
|
-
if (!
|
|
170787
|
+
if (!supportedLocales.has(locale)) {
|
|
170468
170788
|
return await getSdkPredefinedProfiles("en");
|
|
170469
170789
|
}
|
|
170470
170790
|
try {
|
|
@@ -170510,13 +170830,13 @@ function convertApiVariable(variable) {
|
|
|
170510
170830
|
return {
|
|
170511
170831
|
...variable,
|
|
170512
170832
|
type: variable.type,
|
|
170513
|
-
properties: convertApiVariables(variable.properties)
|
|
170833
|
+
properties: convertApiVariables(variable.properties),
|
|
170514
170834
|
};
|
|
170515
170835
|
case "array": {
|
|
170516
170836
|
return {
|
|
170517
170837
|
...variable,
|
|
170518
170838
|
type: variable.type,
|
|
170519
|
-
elementType: { type: "number", name: "number" }
|
|
170839
|
+
elementType: { type: "number", name: "number" },
|
|
170520
170840
|
};
|
|
170521
170841
|
}
|
|
170522
170842
|
default:
|
|
@@ -170534,7 +170854,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
170534
170854
|
const editorProfile = {
|
|
170535
170855
|
bundles: [...sdkPredefinedProfile.bundles],
|
|
170536
170856
|
variables: [],
|
|
170537
|
-
hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase())
|
|
170857
|
+
hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase()),
|
|
170538
170858
|
};
|
|
170539
170859
|
// Merge the SDK variables' definitions/properties with the predefined profile definitions.
|
|
170540
170860
|
sdkPredefinedProfile.variables.forEach((sdkVariable) => {
|
|
@@ -170552,7 +170872,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
170552
170872
|
return editorProfile.variables.push(convertApiVariable({
|
|
170553
170873
|
...sdkVariable,
|
|
170554
170874
|
type: sdkVariable.type,
|
|
170555
|
-
properties: Array.isArray(definition) ? [...definition] : sdkVariable.properties
|
|
170875
|
+
properties: Array.isArray(definition) ? [...definition] : sdkVariable.properties,
|
|
170556
170876
|
}));
|
|
170557
170877
|
case "feature":
|
|
170558
170878
|
if (isFeatureDefinition(definition)) {
|
|
@@ -170581,7 +170901,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
170581
170901
|
|
|
170582
170902
|
const arcadeLanguageId = "arcade";
|
|
170583
170903
|
const defaultContext = {
|
|
170584
|
-
locale: "en"
|
|
170904
|
+
locale: "en",
|
|
170585
170905
|
};
|
|
170586
170906
|
class ArcadeLanguageServiceDefaults {
|
|
170587
170907
|
constructor() {
|
|
@@ -170635,7 +170955,7 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170635
170955
|
if (isPredefinedProfile(definition)) {
|
|
170636
170956
|
definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
|
|
170637
170957
|
}
|
|
170638
|
-
const intlStrings = await
|
|
170958
|
+
const intlStrings = await fetchT9NStringsBundle(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
170639
170959
|
if (!intlStrings) {
|
|
170640
170960
|
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
170641
170961
|
}
|
|
@@ -170647,7 +170967,7 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170647
170967
|
this.updateApiContextForModel(modelId, {
|
|
170648
170968
|
locale: apiContext.locale,
|
|
170649
170969
|
profile: apiProfile,
|
|
170650
|
-
snippets: apiContext.snippets
|
|
170970
|
+
snippets: apiContext.snippets,
|
|
170651
170971
|
});
|
|
170652
170972
|
}
|
|
170653
170973
|
/**
|
|
@@ -170714,7 +171034,7 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170714
171034
|
}
|
|
170715
171035
|
const arcadeDefaults = new ArcadeLanguageServiceDefaults();
|
|
170716
171036
|
const arcade = {
|
|
170717
|
-
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
|
|
171037
|
+
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults),
|
|
170718
171038
|
};
|
|
170719
171039
|
|
|
170720
|
-
export { B, D, Emitter as E,
|
|
171040
|
+
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 };
|