@arcgis/coding-components 4.30.0-next.21 → 4.30.0-next.22
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.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/index.esm.js +2 -2
- package/dist/arcgis-coding-components/p-0596e58a.js +68 -0
- package/dist/arcgis-coding-components/p-09b3d456.js +6 -0
- package/dist/arcgis-coding-components/{p-5583b25d.js → p-237cd069.js} +2 -2
- package/dist/arcgis-coding-components/{p-a63eeed9.js → p-3c4c9bb1.js} +1 -1
- package/dist/arcgis-coding-components/{p-253f92ea.js → p-52af3d36.js} +2 -2
- package/dist/arcgis-coding-components/{p-cb5166f2.js → p-54a3c846.js} +2 -2
- package/dist/arcgis-coding-components/{p-192601ca.js → p-68c09f28.js} +2 -2
- package/dist/arcgis-coding-components/p-704509f4.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-b177db92.js → p-89a837be.js} +2 -2
- package/dist/arcgis-coding-components/p-8be62afd.js +7 -0
- package/dist/arcgis-coding-components/{p-eb16cce2.js → p-a8a82d95.js} +2 -2
- package/dist/arcgis-coding-components/{p-1451e0cc.js → p-bf1aaa39.js} +2 -2
- package/dist/arcgis-coding-components/{p-0e7b5896.js → p-bf789380.js} +2 -2
- package/dist/arcgis-coding-components/p-f31fa95c.js +6 -0
- package/dist/arcgis-coding-components/p-f9bdf871.js +6 -0
- package/dist/cjs/Accessor-YDTURKZ7-064d4ec3.js +1249 -0
- package/dist/cjs/{arcade-defaults-9d57f506.js → arcade-defaults-75be7a9b.js} +294 -295
- package/dist/cjs/{arcade-mode-9079b8e0.js → arcade-mode-bf406304.js} +4 -4
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1347 -89
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/chunk-OMA4PI5N-c7c531ca.js +1286 -0
- package/dist/cjs/{css-9aa4569b.js → css-a1b28a9f.js} +1 -1
- package/dist/cjs/{cssMode-6f57c416.js → cssMode-5b3b9c9b.js} +3 -3
- package/dist/cjs/decorators-443AWDOE-ab85b9eb.js +120 -0
- package/dist/cjs/{html-95d3a234.js → html-51efc5f2.js} +3 -3
- package/dist/cjs/{htmlMode-ebd8894d.js → htmlMode-a3589bc9.js} +3 -3
- package/dist/cjs/{index-a3f52cf5.js → index-6a3d1ddd.js} +42 -4
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-1a01235b.js → javascript-f387480b.js} +4 -4
- package/dist/cjs/{jsonMode-26ed7799.js → jsonMode-f9b19644.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-9cfeb9a5.js → tsMode-b1e0bb57.js} +3 -3
- package/dist/cjs/{typescript-f9907455.js → typescript-64e66362.js} +3 -3
- package/dist/components/Accessor-YDTURKZ7.js +1247 -0
- package/dist/components/arcade-api.js +9 -15
- package/dist/components/arcade-contribution.js +3 -3
- package/dist/components/arcade-defaults.js +10 -10
- package/dist/components/arcade-mode.js +3 -3
- package/dist/components/arcade-results.js +24 -35
- package/dist/components/arcade-suggestions.js +10 -16
- package/dist/components/arcade-variables.js +11 -20
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +20 -24
- 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-3I7AEPTU.js +1290 -0
- package/dist/components/chunk-OMA4PI5N.js +1257 -0
- package/dist/components/code-editor.js +6 -6
- package/dist/components/decorators-443AWDOE.js +109 -0
- package/dist/components/fields.js +40 -39
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +3 -3
- package/dist/components/markdown.js +1 -1
- package/dist/components/utilities.js +3 -3
- package/dist/esm/Accessor-YDTURKZ7-4eefd1d8.js +1247 -0
- package/dist/esm/{arcade-defaults-1577045c.js → arcade-defaults-fcc709e4.js} +286 -285
- package/dist/esm/{arcade-mode-ec8b7890.js → arcade-mode-dbf28353.js} +4 -4
- package/dist/esm/arcgis-arcade-api_6.entry.js +1389 -131
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/chunk-OMA4PI5N-0c09fa7b.js +1257 -0
- package/dist/esm/{css-6350c0f7.js → css-6122a30a.js} +1 -1
- package/dist/esm/{cssMode-629b1349.js → cssMode-b890adfc.js} +3 -3
- package/dist/esm/decorators-443AWDOE-77ed5d5a.js +109 -0
- package/dist/esm/{html-979016b0.js → html-2f56c6c3.js} +3 -3
- package/dist/esm/{htmlMode-dd504dae.js → htmlMode-84b5c7ea.js} +3 -3
- package/dist/esm/{index-093931a1.js → index-e75c4ffc.js} +42 -5
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-7af48cb1.js → javascript-8456a624.js} +4 -4
- package/dist/esm/{jsonMode-eb6b41d1.js → jsonMode-29439efe.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-64deb000.js → tsMode-ec7fe1bf.js} +3 -3
- package/dist/esm/{typescript-c9b14542.js → typescript-d9362143.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/package.json +12 -12
- package/dist/arcgis-coding-components/p-81935687.js +0 -68
- package/dist/arcgis-coding-components/p-a2190df0.js +0 -7
- package/dist/arcgis-coding-components/p-e8c2933f.entry.js +0 -6
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +0 -3
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +0 -9
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +0 -19
- package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +0 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.22
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-6a3d1ddd.js');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
11
11
|
if (e && e.__esModule) return e;
|
|
@@ -20252,10 +20252,10 @@ function _$(namespace, description, attrs, ...children) {
|
|
|
20252
20252
|
result.append(...children);
|
|
20253
20253
|
return result;
|
|
20254
20254
|
}
|
|
20255
|
-
function $$
|
|
20255
|
+
function $$e(description, attrs, ...children) {
|
|
20256
20256
|
return _$(Namespace.HTML, description, attrs, ...children);
|
|
20257
20257
|
}
|
|
20258
|
-
$$
|
|
20258
|
+
$$e.SVG = function (description, attrs, ...children) {
|
|
20259
20259
|
return _$(Namespace.SVG, description, attrs, ...children);
|
|
20260
20260
|
};
|
|
20261
20261
|
function setVisibility(visible, ...elements) {
|
|
@@ -82186,7 +82186,7 @@ class ContextView extends Disposable {
|
|
|
82186
82186
|
this.toDisposeOnSetContainer = Disposable.None;
|
|
82187
82187
|
this.shadowRoot = null;
|
|
82188
82188
|
this.shadowRootHostElement = null;
|
|
82189
|
-
this.view = $$
|
|
82189
|
+
this.view = $$e('.context-view');
|
|
82190
82190
|
hide(this.view);
|
|
82191
82191
|
this.setContainer(container, domPosition);
|
|
82192
82192
|
this._register(toDisposable(() => this.setContainer(null, 1 /* ContextViewDOMPosition.ABSOLUTE */)));
|
|
@@ -82215,14 +82215,14 @@ class ContextView extends Disposable {
|
|
|
82215
82215
|
if (container) {
|
|
82216
82216
|
this.container = container;
|
|
82217
82217
|
if (this.useShadowDOM) {
|
|
82218
|
-
this.shadowRootHostElement = $$
|
|
82218
|
+
this.shadowRootHostElement = $$e('.shadow-root-host');
|
|
82219
82219
|
this.container.appendChild(this.shadowRootHostElement);
|
|
82220
82220
|
this.shadowRoot = this.shadowRootHostElement.attachShadow({ mode: 'open' });
|
|
82221
82221
|
const style = document.createElement('style');
|
|
82222
82222
|
style.textContent = SHADOW_ROOT_CSS;
|
|
82223
82223
|
this.shadowRoot.appendChild(style);
|
|
82224
82224
|
this.shadowRoot.appendChild(this.view);
|
|
82225
|
-
this.shadowRoot.appendChild($$
|
|
82225
|
+
this.shadowRoot.appendChild($$e('slot'));
|
|
82226
82226
|
}
|
|
82227
82227
|
else {
|
|
82228
82228
|
this.container.appendChild(this.view);
|
|
@@ -84703,7 +84703,7 @@ function renderLabelWithIcons(text) {
|
|
|
84703
84703
|
return elements;
|
|
84704
84704
|
}
|
|
84705
84705
|
function renderIcon(icon) {
|
|
84706
|
-
const node = $$
|
|
84706
|
+
const node = $$e(`span`);
|
|
84707
84707
|
node.classList.add(...ThemeIcon.asClassNameArray(icon));
|
|
84708
84708
|
return node;
|
|
84709
84709
|
}
|
|
@@ -88735,7 +88735,7 @@ class RowCache {
|
|
|
88735
88735
|
}
|
|
88736
88736
|
}
|
|
88737
88737
|
else {
|
|
88738
|
-
const domNode = $$
|
|
88738
|
+
const domNode = $$e('.monaco-list-row');
|
|
88739
88739
|
const renderer = this.getRenderer(templateId);
|
|
88740
88740
|
const templateData = renderer.renderTemplate(domNode);
|
|
88741
88741
|
result = { domNode, templateId, templateData };
|
|
@@ -89499,7 +89499,7 @@ class ListView {
|
|
|
89499
89499
|
if (typeof label === 'undefined') {
|
|
89500
89500
|
label = String(elements.length);
|
|
89501
89501
|
}
|
|
89502
|
-
const dragImage = $$
|
|
89502
|
+
const dragImage = $$e('.monaco-drag-image');
|
|
89503
89503
|
dragImage.textContent = label;
|
|
89504
89504
|
const getDragImageContainer = (e) => {
|
|
89505
89505
|
while (e && !e.classList.contains('monaco-workbench')) {
|
|
@@ -91360,16 +91360,16 @@ __decorate$1V([
|
|
|
91360
91360
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
91361
91361
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
91362
91362
|
*--------------------------------------------------------------------------------------------*/
|
|
91363
|
-
const $$
|
|
91363
|
+
const $$d = $$e;
|
|
91364
91364
|
const SELECT_OPTION_ENTRY_TEMPLATE_ID = 'selectOption.entry.template';
|
|
91365
91365
|
class SelectListRenderer {
|
|
91366
91366
|
get templateId() { return SELECT_OPTION_ENTRY_TEMPLATE_ID; }
|
|
91367
91367
|
renderTemplate(container) {
|
|
91368
91368
|
const data = Object.create(null);
|
|
91369
91369
|
data.root = container;
|
|
91370
|
-
data.text = append$1(container, $$
|
|
91371
|
-
data.detail = append$1(container, $$
|
|
91372
|
-
data.decoratorRight = append$1(container, $$
|
|
91370
|
+
data.text = append$1(container, $$d('.option-text'));
|
|
91371
|
+
data.detail = append$1(container, $$d('.option-detail'));
|
|
91372
|
+
data.decoratorRight = append$1(container, $$d('.option-decorator-right'));
|
|
91373
91373
|
return data;
|
|
91374
91374
|
}
|
|
91375
91375
|
renderElement(element, index, templateData) {
|
|
@@ -91440,14 +91440,14 @@ class SelectBoxList extends Disposable {
|
|
|
91440
91440
|
constructSelectDropDown(contextViewProvider) {
|
|
91441
91441
|
// SetUp ContextView container to hold select Dropdown
|
|
91442
91442
|
this.contextViewProvider = contextViewProvider;
|
|
91443
|
-
this.selectDropDownContainer = $$
|
|
91443
|
+
this.selectDropDownContainer = $$e('.monaco-select-box-dropdown-container');
|
|
91444
91444
|
// Use custom CSS vars for padding calculation (shared with parent select)
|
|
91445
91445
|
this.selectDropDownContainer.classList.add('monaco-select-box-dropdown-padding');
|
|
91446
91446
|
// Setup container for select option details
|
|
91447
|
-
this.selectionDetailsPane = append$1(this.selectDropDownContainer, $$
|
|
91447
|
+
this.selectionDetailsPane = append$1(this.selectDropDownContainer, $$d('.select-box-details-pane'));
|
|
91448
91448
|
// Create span flex box item/div we can measure and control
|
|
91449
|
-
const widthControlOuterDiv = append$1(this.selectDropDownContainer, $$
|
|
91450
|
-
const widthControlInnerDiv = append$1(widthControlOuterDiv, $$
|
|
91449
|
+
const widthControlOuterDiv = append$1(this.selectDropDownContainer, $$d('.select-box-dropdown-container-width-control'));
|
|
91450
|
+
const widthControlInnerDiv = append$1(widthControlOuterDiv, $$d('.width-control-div'));
|
|
91451
91451
|
this.widthControlElement = document.createElement('span');
|
|
91452
91452
|
this.widthControlElement.className = 'option-text-width-control';
|
|
91453
91453
|
append$1(widthControlInnerDiv, this.widthControlElement);
|
|
@@ -91890,7 +91890,7 @@ class SelectBoxList extends Disposable {
|
|
|
91890
91890
|
return;
|
|
91891
91891
|
}
|
|
91892
91892
|
// SetUp container for list
|
|
91893
|
-
this.selectDropDownListContainer = append$1(parent, $$
|
|
91893
|
+
this.selectDropDownListContainer = append$1(parent, $$d('.select-box-dropdown-list-container'));
|
|
91894
91894
|
this.listRenderer = new SelectListRenderer();
|
|
91895
91895
|
this.selectList = new List('SelectBoxCustom', this.selectDropDownListContainer, this, [this.listRenderer], {
|
|
91896
91896
|
useShadows: false,
|
|
@@ -92738,8 +92738,8 @@ class BaseDropdown extends ActionRunner {
|
|
|
92738
92738
|
super();
|
|
92739
92739
|
this._onDidChangeVisibility = this._register(new Emitter$1());
|
|
92740
92740
|
this.onDidChangeVisibility = this._onDidChangeVisibility.event;
|
|
92741
|
-
this._element = append$1(container, $$
|
|
92742
|
-
this._label = append$1(this._element, $$
|
|
92741
|
+
this._element = append$1(container, $$e('.monaco-dropdown'));
|
|
92742
|
+
this._label = append$1(this._element, $$e('.dropdown-label'));
|
|
92743
92743
|
let labelRenderer = options.labelRenderer;
|
|
92744
92744
|
if (!labelRenderer) {
|
|
92745
92745
|
labelRenderer = (container) => {
|
|
@@ -92879,7 +92879,7 @@ class DropdownMenuActionViewItem extends BaseActionViewItem {
|
|
|
92879
92879
|
render(container) {
|
|
92880
92880
|
this.actionItem = container;
|
|
92881
92881
|
const labelRenderer = (el) => {
|
|
92882
|
-
this.element = append$1(el, $$
|
|
92882
|
+
this.element = append$1(el, $$e('a.action-label'));
|
|
92883
92883
|
let classNames = [];
|
|
92884
92884
|
if (typeof this.options.classNames === 'string') {
|
|
92885
92885
|
classNames = this.options.classNames.split(/\s+/g).filter(s => !!s);
|
|
@@ -93808,7 +93808,7 @@ let DropdownWithDefaultActionViewItem = class DropdownWithDefaultActionViewItem
|
|
|
93808
93808
|
}
|
|
93809
93809
|
}();
|
|
93810
93810
|
if (this._container) {
|
|
93811
|
-
this._defaultAction.render(prepend$1(this._container, $$
|
|
93811
|
+
this._defaultAction.render(prepend$1(this._container, $$e('.action-container')));
|
|
93812
93812
|
}
|
|
93813
93813
|
}
|
|
93814
93814
|
_getDefaultActionKeybindingLabel(defaultAction) {
|
|
@@ -93831,7 +93831,7 @@ let DropdownWithDefaultActionViewItem = class DropdownWithDefaultActionViewItem
|
|
|
93831
93831
|
this._container = container;
|
|
93832
93832
|
super.render(this._container);
|
|
93833
93833
|
this._container.classList.add('monaco-dropdown-with-default');
|
|
93834
|
-
const primaryContainer = $$
|
|
93834
|
+
const primaryContainer = $$e('.action-container');
|
|
93835
93835
|
this._defaultAction.render(append$1(this._container, primaryContainer));
|
|
93836
93836
|
this._register(addDisposableListener(primaryContainer, EventType$1.KEY_DOWN, (e) => {
|
|
93837
93837
|
const event = new StandardKeyboardEvent(e);
|
|
@@ -93841,7 +93841,7 @@ let DropdownWithDefaultActionViewItem = class DropdownWithDefaultActionViewItem
|
|
|
93841
93841
|
event.stopPropagation();
|
|
93842
93842
|
}
|
|
93843
93843
|
}));
|
|
93844
|
-
const dropdownContainer = $$
|
|
93844
|
+
const dropdownContainer = $$e('.dropdown-action-container');
|
|
93845
93845
|
this._dropdown.render(append$1(this._container, dropdownContainer));
|
|
93846
93846
|
this._register(addDisposableListener(dropdownContainer, EventType$1.KEY_DOWN, (e) => {
|
|
93847
93847
|
var _a;
|
|
@@ -94688,7 +94688,7 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
94688
94688
|
return;
|
|
94689
94689
|
}
|
|
94690
94690
|
this.container = container;
|
|
94691
|
-
this.item = append$1(this.element, $$
|
|
94691
|
+
this.item = append$1(this.element, $$e('a.action-menu-item'));
|
|
94692
94692
|
if (this._action.id === Separator.ID) {
|
|
94693
94693
|
// A separator is a presentation item
|
|
94694
94694
|
this.item.setAttribute('role', 'presentation');
|
|
@@ -94699,11 +94699,11 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
94699
94699
|
this.item.setAttribute('aria-keyshortcuts', `${this.mnemonic}`);
|
|
94700
94700
|
}
|
|
94701
94701
|
}
|
|
94702
|
-
this.check = append$1(this.item, $$
|
|
94702
|
+
this.check = append$1(this.item, $$e('span.menu-item-check' + ThemeIcon.asCSSSelector(Codicon.menuSelection)));
|
|
94703
94703
|
this.check.setAttribute('role', 'none');
|
|
94704
|
-
this.label = append$1(this.item, $$
|
|
94704
|
+
this.label = append$1(this.item, $$e('span.action-label'));
|
|
94705
94705
|
if (this.options.label && this.options.keybinding) {
|
|
94706
|
-
append$1(this.item, $$
|
|
94706
|
+
append$1(this.item, $$e('span.keybinding')).textContent = this.options.keybinding;
|
|
94707
94707
|
}
|
|
94708
94708
|
// Adds mouse up listener to actually run the action
|
|
94709
94709
|
this.runOnceToEnableMouseUp.schedule();
|
|
@@ -94756,7 +94756,7 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
94756
94756
|
}
|
|
94757
94757
|
const replaceDoubleEscapes = (str) => str.replace(/&&/g, '&');
|
|
94758
94758
|
if (escMatch) {
|
|
94759
|
-
this.label.append(ltrim(replaceDoubleEscapes(label.substr(0, escMatch.index)), ' '), $$
|
|
94759
|
+
this.label.append(ltrim(replaceDoubleEscapes(label.substr(0, escMatch.index)), ' '), $$e('u', { 'aria-hidden': 'true' }, escMatch[3]), rtrim(replaceDoubleEscapes(label.substr(escMatch.index + escMatch[0].length)), ' '));
|
|
94760
94760
|
}
|
|
94761
94761
|
else {
|
|
94762
94762
|
this.label.innerText = replaceDoubleEscapes(label).trim();
|
|
@@ -94879,7 +94879,7 @@ class SubmenuMenuActionViewItem extends BaseMenuActionViewItem {
|
|
|
94879
94879
|
this.item.tabIndex = 0;
|
|
94880
94880
|
this.item.setAttribute('aria-haspopup', 'true');
|
|
94881
94881
|
this.updateAriaExpanded('false');
|
|
94882
|
-
this.submenuIndicator = append$1(this.item, $$
|
|
94882
|
+
this.submenuIndicator = append$1(this.item, $$e('span.submenu-indicator' + ThemeIcon.asCSSSelector(Codicon.menuSubmenu)));
|
|
94883
94883
|
this.submenuIndicator.setAttribute('aria-hidden', 'true');
|
|
94884
94884
|
}
|
|
94885
94885
|
this._register(addDisposableListener(this.element, EventType$1.KEY_UP, e => {
|
|
@@ -94970,7 +94970,7 @@ class SubmenuMenuActionViewItem extends BaseMenuActionViewItem {
|
|
|
94970
94970
|
}
|
|
94971
94971
|
if (!this.parentData.submenu) {
|
|
94972
94972
|
this.updateAriaExpanded('true');
|
|
94973
|
-
this.submenuContainer = append$1(this.element, $$
|
|
94973
|
+
this.submenuContainer = append$1(this.element, $$e('div.monaco-submenu'));
|
|
94974
94974
|
this.submenuContainer.classList.add('menubar-menu-items-holder', 'context-view');
|
|
94975
94975
|
// Set the top value of the menu container before construction
|
|
94976
94976
|
// This allows the menu constructor to calculate the proper max height
|
|
@@ -95508,7 +95508,7 @@ class ContextMenuHandler {
|
|
|
95508
95508
|
}
|
|
95509
95509
|
// Render invisible div to block mouse interaction in the rest of the UI
|
|
95510
95510
|
if (this.options.blockMouse) {
|
|
95511
|
-
this.block = container.appendChild($$
|
|
95511
|
+
this.block = container.appendChild($$e('.context-view-block'));
|
|
95512
95512
|
this.block.style.position = 'fixed';
|
|
95513
95513
|
this.block.style.cursor = 'initial';
|
|
95514
95514
|
this.block.style.left = '0';
|
|
@@ -96962,7 +96962,7 @@ class Sash extends Disposable {
|
|
|
96962
96962
|
const onChange = (state) => {
|
|
96963
96963
|
this.orthogonalStartDragHandleDisposables.clear();
|
|
96964
96964
|
if (state !== 0 /* SashState.Disabled */) {
|
|
96965
|
-
this._orthogonalStartDragHandle = append$1(this.el, $$
|
|
96965
|
+
this._orthogonalStartDragHandle = append$1(this.el, $$e('.orthogonal-drag-handle.start'));
|
|
96966
96966
|
this.orthogonalStartDragHandleDisposables.add(toDisposable(() => this._orthogonalStartDragHandle.remove()));
|
|
96967
96967
|
this.orthogonalStartDragHandleDisposables.add(new DomEmitter(this._orthogonalStartDragHandle, 'mouseenter')).event(() => Sash.onMouseEnter(sash), undefined, this.orthogonalStartDragHandleDisposables);
|
|
96968
96968
|
this.orthogonalStartDragHandleDisposables.add(new DomEmitter(this._orthogonalStartDragHandle, 'mouseleave')).event(() => Sash.onMouseLeave(sash), undefined, this.orthogonalStartDragHandleDisposables);
|
|
@@ -96991,7 +96991,7 @@ class Sash extends Disposable {
|
|
|
96991
96991
|
const onChange = (state) => {
|
|
96992
96992
|
this.orthogonalEndDragHandleDisposables.clear();
|
|
96993
96993
|
if (state !== 0 /* SashState.Disabled */) {
|
|
96994
|
-
this._orthogonalEndDragHandle = append$1(this.el, $$
|
|
96994
|
+
this._orthogonalEndDragHandle = append$1(this.el, $$e('.orthogonal-drag-handle.end'));
|
|
96995
96995
|
this.orthogonalEndDragHandleDisposables.add(toDisposable(() => this._orthogonalEndDragHandle.remove()));
|
|
96996
96996
|
this.orthogonalEndDragHandleDisposables.add(new DomEmitter(this._orthogonalEndDragHandle, 'mouseenter')).event(() => Sash.onMouseEnter(sash), undefined, this.orthogonalEndDragHandleDisposables);
|
|
96997
96997
|
this.orthogonalEndDragHandleDisposables.add(new DomEmitter(this._orthogonalEndDragHandle, 'mouseleave')).event(() => Sash.onMouseLeave(sash), undefined, this.orthogonalEndDragHandleDisposables);
|
|
@@ -97040,7 +97040,7 @@ class Sash extends Disposable {
|
|
|
97040
97040
|
* Useful in 2x2 grids. Not meant for widespread usage.
|
|
97041
97041
|
*/
|
|
97042
97042
|
this.linkedSash = undefined;
|
|
97043
|
-
this.el = append$1(container, $$
|
|
97043
|
+
this.el = append$1(container, $$e('.monaco-sash'));
|
|
97044
97044
|
if (options.orthogonalEdge) {
|
|
97045
97045
|
this.el.classList.add(`orthogonal-edge-${options.orthogonalEdge}`);
|
|
97046
97046
|
}
|
|
@@ -97492,8 +97492,8 @@ class SplitView extends Disposable {
|
|
|
97492
97492
|
this.el.classList.add('monaco-split-view2');
|
|
97493
97493
|
this.el.classList.add(this.orientation === 0 /* Orientation.VERTICAL */ ? 'vertical' : 'horizontal');
|
|
97494
97494
|
container.appendChild(this.el);
|
|
97495
|
-
this.sashContainer = append$1(this.el, $$
|
|
97496
|
-
this.viewContainer = $$
|
|
97495
|
+
this.sashContainer = append$1(this.el, $$e('.sash-container'));
|
|
97496
|
+
this.viewContainer = $$e('.split-view-container');
|
|
97497
97497
|
this.scrollable = this._register(new Scrollable({
|
|
97498
97498
|
forceIntegerValues: true,
|
|
97499
97499
|
smoothScrollDuration: 125,
|
|
@@ -97778,7 +97778,7 @@ class SplitView extends Disposable {
|
|
|
97778
97778
|
this.state = State.Busy;
|
|
97779
97779
|
try {
|
|
97780
97780
|
// Add view
|
|
97781
|
-
const container = $$
|
|
97781
|
+
const container = $$e('.split-view-view');
|
|
97782
97782
|
if (index === this.viewItems.length) {
|
|
97783
97783
|
this.viewContainer.appendChild(container);
|
|
97784
97784
|
}
|
|
@@ -98104,12 +98104,12 @@ class TableListRenderer {
|
|
|
98104
98104
|
}
|
|
98105
98105
|
}
|
|
98106
98106
|
renderTemplate(container) {
|
|
98107
|
-
const rowContainer = append$1(container, $$
|
|
98107
|
+
const rowContainer = append$1(container, $$e('.monaco-table-tr'));
|
|
98108
98108
|
const cellContainers = [];
|
|
98109
98109
|
const cellTemplateData = [];
|
|
98110
98110
|
for (let i = 0; i < this.columns.length; i++) {
|
|
98111
98111
|
const renderer = this.renderers[i];
|
|
98112
|
-
const cellContainer = append$1(rowContainer, $$
|
|
98112
|
+
const cellContainer = append$1(rowContainer, $$e('.monaco-table-td', { 'data-col-index': i }));
|
|
98113
98113
|
cellContainer.style.width = `${this.getColumnSize(i)}px`;
|
|
98114
98114
|
cellContainers.push(cellContainer);
|
|
98115
98115
|
cellTemplateData.push(renderer.renderTemplate(cellContainer));
|
|
@@ -98166,7 +98166,7 @@ class ColumnHeader {
|
|
|
98166
98166
|
this.index = index;
|
|
98167
98167
|
this._onDidLayout = new Emitter$1();
|
|
98168
98168
|
this.onDidLayout = this._onDidLayout.event;
|
|
98169
|
-
this.element = $$
|
|
98169
|
+
this.element = $$e('.monaco-table-th', { 'data-col-index': index, title: column.tooltip }, column.label);
|
|
98170
98170
|
}
|
|
98171
98171
|
layout(size) {
|
|
98172
98172
|
this._onDidLayout.fire([this.index, size]);
|
|
@@ -98190,7 +98190,7 @@ class Table {
|
|
|
98190
98190
|
this.disposables = new DisposableStore();
|
|
98191
98191
|
this.cachedWidth = 0;
|
|
98192
98192
|
this.cachedHeight = 0;
|
|
98193
|
-
this.domNode = append$1(container, $$
|
|
98193
|
+
this.domNode = append$1(container, $$e(`.monaco-table.${this.domId}`));
|
|
98194
98194
|
const headers = columns.map((c, i) => new ColumnHeader(c, i));
|
|
98195
98195
|
const descriptor = {
|
|
98196
98196
|
size: headers.reduce((a, b) => a + b.column.weight, 0),
|
|
@@ -98494,7 +98494,7 @@ class HistoryNavigator {
|
|
|
98494
98494
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
98495
98495
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
98496
98496
|
*--------------------------------------------------------------------------------------------*/
|
|
98497
|
-
const $$
|
|
98497
|
+
const $$c = $$e;
|
|
98498
98498
|
class InputBox$1 extends Widget$1 {
|
|
98499
98499
|
constructor(container, contextViewProvider, options) {
|
|
98500
98500
|
var _a;
|
|
@@ -98514,10 +98514,10 @@ class InputBox$1 extends Widget$1 {
|
|
|
98514
98514
|
if (this.options.validationOptions) {
|
|
98515
98515
|
this.validation = this.options.validationOptions.validation;
|
|
98516
98516
|
}
|
|
98517
|
-
this.element = append$1(container, $$
|
|
98517
|
+
this.element = append$1(container, $$c('.monaco-inputbox.idle'));
|
|
98518
98518
|
const tagName = this.options.flexibleHeight ? 'textarea' : 'input';
|
|
98519
|
-
const wrapper = append$1(this.element, $$
|
|
98520
|
-
this.input = append$1(wrapper, $$
|
|
98519
|
+
const wrapper = append$1(this.element, $$c('.ibwrapper'));
|
|
98520
|
+
this.input = append$1(wrapper, $$c(tagName + '.input.empty'));
|
|
98521
98521
|
this.input.setAttribute('autocorrect', 'off');
|
|
98522
98522
|
this.input.setAttribute('autocapitalize', 'off');
|
|
98523
98523
|
this.input.setAttribute('spellcheck', 'false');
|
|
@@ -98525,7 +98525,7 @@ class InputBox$1 extends Widget$1 {
|
|
|
98525
98525
|
this.onblur(this.input, () => this.element.classList.remove('synthetic-focus'));
|
|
98526
98526
|
if (this.options.flexibleHeight) {
|
|
98527
98527
|
this.maxHeight = typeof this.options.flexibleMaxHeight === 'number' ? this.options.flexibleMaxHeight : Number.POSITIVE_INFINITY;
|
|
98528
|
-
this.mirror = append$1(wrapper, $$
|
|
98528
|
+
this.mirror = append$1(wrapper, $$c('div.mirror'));
|
|
98529
98529
|
this.mirror.innerText = '\u00a0';
|
|
98530
98530
|
this.scrollableElement = new ScrollableElement(this.element, { vertical: 1 /* ScrollbarVisibility.Auto */ });
|
|
98531
98531
|
if (this.options.flexibleWidth) {
|
|
@@ -98722,7 +98722,7 @@ class InputBox$1 extends Widget$1 {
|
|
|
98722
98722
|
if (!this.message) {
|
|
98723
98723
|
return null;
|
|
98724
98724
|
}
|
|
98725
|
-
div = append$1(container, $$
|
|
98725
|
+
div = append$1(container, $$c('.monaco-inputbox-container'));
|
|
98726
98726
|
layout();
|
|
98727
98727
|
const renderOptions = {
|
|
98728
98728
|
inline: true,
|
|
@@ -100070,10 +100070,10 @@ class TreeRenderer {
|
|
|
100070
100070
|
}
|
|
100071
100071
|
}
|
|
100072
100072
|
renderTemplate(container) {
|
|
100073
|
-
const el = append$1(container, $$
|
|
100074
|
-
const indent = append$1(el, $$
|
|
100075
|
-
const twistie = append$1(el, $$
|
|
100076
|
-
const contents = append$1(el, $$
|
|
100073
|
+
const el = append$1(container, $$e('.monaco-tl-row'));
|
|
100074
|
+
const indent = append$1(el, $$e('.monaco-tl-indent'));
|
|
100075
|
+
const twistie = append$1(el, $$e('.monaco-tl-twistie'));
|
|
100076
|
+
const contents = append$1(el, $$e('.monaco-tl-contents'));
|
|
100077
100077
|
const templateData = this.renderer.renderTemplate(contents);
|
|
100078
100078
|
return { container, indent, twistie, indentGuidesDisposable: Disposable.None, templateData };
|
|
100079
100079
|
}
|
|
@@ -100152,7 +100152,7 @@ class TreeRenderer {
|
|
|
100152
100152
|
break;
|
|
100153
100153
|
}
|
|
100154
100154
|
const parent = model.getNode(parentRef);
|
|
100155
|
-
const guide = $$
|
|
100155
|
+
const guide = $$e('.indent-guide', { style: `width: ${this.indent}px` });
|
|
100156
100156
|
if (this.activeIndentNodes.has(parent)) {
|
|
100157
100157
|
guide.classList.add('active');
|
|
100158
100158
|
}
|
|
@@ -100641,7 +100641,7 @@ class StickyScrollWidget$1 {
|
|
|
100641
100641
|
state.addDisposable(disposable);
|
|
100642
100642
|
}
|
|
100643
100643
|
// Add shadow element to the end of the widget
|
|
100644
|
-
const shadow = $$
|
|
100644
|
+
const shadow = $$e('.monaco-tree-sticky-container-shadow');
|
|
100645
100645
|
this._rootDomNode.appendChild(shadow);
|
|
100646
100646
|
state.addDisposable(toDisposable(() => shadow.remove()));
|
|
100647
100647
|
// Set the height of the widget to the bottom of the last sticky node
|
|
@@ -104331,7 +104331,7 @@ class CountBadge {
|
|
|
104331
104331
|
this.options = options;
|
|
104332
104332
|
this.styles = styles;
|
|
104333
104333
|
this.count = 0;
|
|
104334
|
-
this.element = append$1(container, $$
|
|
104334
|
+
this.element = append$1(container, $$e('.monaco-count-badge'));
|
|
104335
104335
|
this.countFormat = this.options.countFormat || '{0}';
|
|
104336
104336
|
this.titleFormat = this.options.titleFormat || '';
|
|
104337
104337
|
this.setCount(this.options.count || 0);
|
|
@@ -104457,7 +104457,7 @@ ProgressBar.LONG_RUNNING_INFINITE_THRESHOLD = 10000;
|
|
|
104457
104457
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
104458
104458
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
104459
104459
|
*--------------------------------------------------------------------------------------------*/
|
|
104460
|
-
const $$
|
|
104460
|
+
const $$b = $$e;
|
|
104461
104461
|
class QuickInputBox extends Disposable {
|
|
104462
104462
|
constructor(parent, inputBoxStyles, toggleStyles) {
|
|
104463
104463
|
super();
|
|
@@ -104471,7 +104471,7 @@ class QuickInputBox extends Disposable {
|
|
|
104471
104471
|
this.onDidChange = (handler) => {
|
|
104472
104472
|
return this.findInput.onDidChange(handler);
|
|
104473
104473
|
};
|
|
104474
|
-
this.container = append$1(this.parent, $$
|
|
104474
|
+
this.container = append$1(this.parent, $$b('.quick-input-box'));
|
|
104475
104475
|
this.findInput = this._register(new FindInput(this.container, undefined, { label: '', inputBoxStyles, toggleStyles }));
|
|
104476
104476
|
const input = this.findInput.inputBox.inputElement;
|
|
104477
104477
|
input.role = 'combobox';
|
|
@@ -104560,7 +104560,7 @@ class HighlightedLabel {
|
|
|
104560
104560
|
this.highlights = [];
|
|
104561
104561
|
this.didEverRender = false;
|
|
104562
104562
|
this.supportIcons = (_a = options === null || options === void 0 ? void 0 : options.supportIcons) !== null && _a !== void 0 ? _a : false;
|
|
104563
|
-
this.domNode = append$1(container, $$
|
|
104563
|
+
this.domNode = append$1(container, $$e('span.monaco-highlighted-label'));
|
|
104564
104564
|
}
|
|
104565
104565
|
/**
|
|
104566
104566
|
* The label's DOM node.
|
|
@@ -104611,7 +104611,7 @@ class HighlightedLabel {
|
|
|
104611
104611
|
pos = highlight.start;
|
|
104612
104612
|
}
|
|
104613
104613
|
const substring = this.text.substring(pos, highlight.end);
|
|
104614
|
-
const element = $$
|
|
104614
|
+
const element = $$e('span.highlight', undefined, ...this.supportIcons ? renderLabelWithIcons(substring) : [substring]);
|
|
104615
104615
|
if (highlight.extraClasses) {
|
|
104616
104616
|
element.classList.add(...highlight.extraClasses);
|
|
104617
104617
|
}
|
|
@@ -104700,9 +104700,9 @@ class IconLabel extends Disposable {
|
|
|
104700
104700
|
super();
|
|
104701
104701
|
this.customHovers = new Map();
|
|
104702
104702
|
this.creationOptions = options;
|
|
104703
|
-
this.domNode = this._register(new FastLabelNode(append$1(container, $$
|
|
104704
|
-
this.labelContainer = append$1(this.domNode.element, $$
|
|
104705
|
-
this.nameContainer = append$1(this.labelContainer, $$
|
|
104703
|
+
this.domNode = this._register(new FastLabelNode(append$1(container, $$e('.monaco-icon-label'))));
|
|
104704
|
+
this.labelContainer = append$1(this.domNode.element, $$e('.monaco-icon-label-container'));
|
|
104705
|
+
this.nameContainer = append$1(this.labelContainer, $$e('span.monaco-icon-name-container'));
|
|
104706
104706
|
if ((options === null || options === void 0 ? void 0 : options.supportHighlights) || (options === null || options === void 0 ? void 0 : options.supportIcons)) {
|
|
104707
104707
|
this.nameNode = new LabelWithHighlights(this.nameContainer, !!options.supportIcons);
|
|
104708
104708
|
}
|
|
@@ -104792,20 +104792,20 @@ class IconLabel extends Disposable {
|
|
|
104792
104792
|
}
|
|
104793
104793
|
getOrCreateSuffixNode() {
|
|
104794
104794
|
if (!this.suffixNode) {
|
|
104795
|
-
const suffixContainer = this._register(new FastLabelNode(after(this.nameContainer, $$
|
|
104796
|
-
this.suffixNode = this._register(new FastLabelNode(append$1(suffixContainer.element, $$
|
|
104795
|
+
const suffixContainer = this._register(new FastLabelNode(after(this.nameContainer, $$e('span.monaco-icon-suffix-container'))));
|
|
104796
|
+
this.suffixNode = this._register(new FastLabelNode(append$1(suffixContainer.element, $$e('span.label-suffix'))));
|
|
104797
104797
|
}
|
|
104798
104798
|
return this.suffixNode;
|
|
104799
104799
|
}
|
|
104800
104800
|
getOrCreateDescriptionNode() {
|
|
104801
104801
|
var _a;
|
|
104802
104802
|
if (!this.descriptionNode) {
|
|
104803
|
-
const descriptionContainer = this._register(new FastLabelNode(append$1(this.labelContainer, $$
|
|
104803
|
+
const descriptionContainer = this._register(new FastLabelNode(append$1(this.labelContainer, $$e('span.monaco-icon-description-container'))));
|
|
104804
104804
|
if ((_a = this.creationOptions) === null || _a === void 0 ? void 0 : _a.supportDescriptionHighlights) {
|
|
104805
|
-
this.descriptionNode = new HighlightedLabel(append$1(descriptionContainer.element, $$
|
|
104805
|
+
this.descriptionNode = new HighlightedLabel(append$1(descriptionContainer.element, $$e('span.label-description')), { supportIcons: !!this.creationOptions.supportIcons });
|
|
104806
104806
|
}
|
|
104807
104807
|
else {
|
|
104808
|
-
this.descriptionNode = this._register(new FastLabelNode(append$1(descriptionContainer.element, $$
|
|
104808
|
+
this.descriptionNode = this._register(new FastLabelNode(append$1(descriptionContainer.element, $$e('span.label-description'))));
|
|
104809
104809
|
}
|
|
104810
104810
|
}
|
|
104811
104811
|
return this.descriptionNode;
|
|
@@ -104827,7 +104827,7 @@ class Label {
|
|
|
104827
104827
|
if (!this.singleLabel) {
|
|
104828
104828
|
this.container.innerText = '';
|
|
104829
104829
|
this.container.classList.remove('multiple');
|
|
104830
|
-
this.singleLabel = append$1(this.container, $$
|
|
104830
|
+
this.singleLabel = append$1(this.container, $$e('a.label-name', { id: options === null || options === void 0 ? void 0 : options.domId }));
|
|
104831
104831
|
}
|
|
104832
104832
|
this.singleLabel.textContent = label;
|
|
104833
104833
|
}
|
|
@@ -104838,9 +104838,9 @@ class Label {
|
|
|
104838
104838
|
for (let i = 0; i < label.length; i++) {
|
|
104839
104839
|
const l = label[i];
|
|
104840
104840
|
const id = (options === null || options === void 0 ? void 0 : options.domId) && `${options === null || options === void 0 ? void 0 : options.domId}_${i}`;
|
|
104841
|
-
append$1(this.container, $$
|
|
104841
|
+
append$1(this.container, $$e('a.label-name', { id, 'data-icon-label-count': label.length, 'data-icon-label-index': i, 'role': 'treeitem' }, l));
|
|
104842
104842
|
if (i < label.length - 1) {
|
|
104843
|
-
append$1(this.container, $$
|
|
104843
|
+
append$1(this.container, $$e('span.label-separator', undefined, (options === null || options === void 0 ? void 0 : options.separator) || '/'));
|
|
104844
104844
|
}
|
|
104845
104845
|
}
|
|
104846
104846
|
}
|
|
@@ -104878,7 +104878,7 @@ class LabelWithHighlights {
|
|
|
104878
104878
|
if (!this.singleLabel) {
|
|
104879
104879
|
this.container.innerText = '';
|
|
104880
104880
|
this.container.classList.remove('multiple');
|
|
104881
|
-
this.singleLabel = new HighlightedLabel(append$1(this.container, $$
|
|
104881
|
+
this.singleLabel = new HighlightedLabel(append$1(this.container, $$e('a.label-name', { id: options === null || options === void 0 ? void 0 : options.domId })), { supportIcons: this.supportIcons });
|
|
104882
104882
|
}
|
|
104883
104883
|
this.singleLabel.set(label, options === null || options === void 0 ? void 0 : options.matches, undefined, options === null || options === void 0 ? void 0 : options.labelEscapeNewLines);
|
|
104884
104884
|
}
|
|
@@ -104892,11 +104892,11 @@ class LabelWithHighlights {
|
|
|
104892
104892
|
const l = label[i];
|
|
104893
104893
|
const m = matches ? matches[i] : undefined;
|
|
104894
104894
|
const id = (options === null || options === void 0 ? void 0 : options.domId) && `${options === null || options === void 0 ? void 0 : options.domId}_${i}`;
|
|
104895
|
-
const name = $$
|
|
104895
|
+
const name = $$e('a.label-name', { id, 'data-icon-label-count': label.length, 'data-icon-label-index': i, 'role': 'treeitem' });
|
|
104896
104896
|
const highlightedLabel = new HighlightedLabel(append$1(this.container, name), { supportIcons: this.supportIcons });
|
|
104897
104897
|
highlightedLabel.set(l, m, undefined, options === null || options === void 0 ? void 0 : options.labelEscapeNewLines);
|
|
104898
104898
|
if (i < label.length - 1) {
|
|
104899
|
-
append$1(name, $$
|
|
104899
|
+
append$1(name, $$e('span.label-separator', undefined, separator));
|
|
104900
104900
|
}
|
|
104901
104901
|
}
|
|
104902
104902
|
}
|
|
@@ -104907,7 +104907,7 @@ class LabelWithHighlights {
|
|
|
104907
104907
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
104908
104908
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
104909
104909
|
*--------------------------------------------------------------------------------------------*/
|
|
104910
|
-
const $$
|
|
104910
|
+
const $$a = $$e;
|
|
104911
104911
|
const unthemedKeybindingLabelOptions = {
|
|
104912
104912
|
keybindingLabelBackground: undefined,
|
|
104913
104913
|
keybindingLabelForeground: undefined,
|
|
@@ -104921,7 +104921,7 @@ class KeybindingLabel {
|
|
|
104921
104921
|
this.keyElements = new Set();
|
|
104922
104922
|
this.options = options || Object.create(null);
|
|
104923
104923
|
const labelForeground = this.options.keybindingLabelForeground;
|
|
104924
|
-
this.domNode = append$1(container, $$
|
|
104924
|
+
this.domNode = append$1(container, $$a('.monaco-keybinding'));
|
|
104925
104925
|
if (labelForeground) {
|
|
104926
104926
|
this.domNode.style.color = labelForeground;
|
|
104927
104927
|
}
|
|
@@ -104948,7 +104948,7 @@ class KeybindingLabel {
|
|
|
104948
104948
|
this.renderChord(this.domNode, chords[0], this.matches ? this.matches.firstPart : null);
|
|
104949
104949
|
}
|
|
104950
104950
|
for (let i = 1; i < chords.length; i++) {
|
|
104951
|
-
append$1(this.domNode, $$
|
|
104951
|
+
append$1(this.domNode, $$a('span.monaco-keybinding-key-chord-separator', undefined, ' '));
|
|
104952
104952
|
this.renderChord(this.domNode, chords[i], this.matches ? this.matches.chordPart : null);
|
|
104953
104953
|
}
|
|
104954
104954
|
const title = ((_a = this.options.disableTitle) !== null && _a !== void 0 ? _a : false) ? undefined : this.keybinding.getAriaLabel() || undefined;
|
|
@@ -104990,14 +104990,14 @@ class KeybindingLabel {
|
|
|
104990
104990
|
renderKey(parent, label, highlight, separator) {
|
|
104991
104991
|
append$1(parent, this.createKeyElement(label, highlight ? '.highlight' : ''));
|
|
104992
104992
|
if (separator) {
|
|
104993
|
-
append$1(parent, $$
|
|
104993
|
+
append$1(parent, $$a('span.monaco-keybinding-key-separator', undefined, separator));
|
|
104994
104994
|
}
|
|
104995
104995
|
}
|
|
104996
104996
|
renderUnbound(parent) {
|
|
104997
104997
|
append$1(parent, this.createKeyElement(localize('unbound', "Unbound")));
|
|
104998
104998
|
}
|
|
104999
104999
|
createKeyElement(label, extraClass = '') {
|
|
105000
|
-
const keyElement = $$
|
|
105000
|
+
const keyElement = $$a('span.monaco-keybinding-key' + extraClass, undefined, label);
|
|
105001
105001
|
this.keyElements.add(keyElement);
|
|
105002
105002
|
if (this.options.keybindingLabelBackground) {
|
|
105003
105003
|
keyElement.style.backgroundColor = this.options.keybindingLabelBackground;
|
|
@@ -105174,7 +105174,7 @@ function renderQuickInputDescription(description, container, actionHandler) {
|
|
|
105174
105174
|
else if (!title) {
|
|
105175
105175
|
title = node.href;
|
|
105176
105176
|
}
|
|
105177
|
-
const anchor = $$
|
|
105177
|
+
const anchor = $$e('a', { href: node.href, title, tabIndex: tabIndex++ }, node.label);
|
|
105178
105178
|
anchor.style.textDecoration = 'underline';
|
|
105179
105179
|
const handleOpen = (e) => {
|
|
105180
105180
|
if (isEventLike(e)) {
|
|
@@ -105206,7 +105206,7 @@ var __decorate$1K = (undefined && undefined.__decorate) || function (decorators,
|
|
|
105206
105206
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
105207
105207
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
105208
105208
|
};
|
|
105209
|
-
const $$
|
|
105209
|
+
const $$9 = $$e;
|
|
105210
105210
|
class ListElement {
|
|
105211
105211
|
constructor(mainItem, previous, index, hasCheckbox, fireButtonTriggered, fireSeparatorButtonTriggered, onCheckedEmitter) {
|
|
105212
105212
|
var _a, _b, _c;
|
|
@@ -105320,36 +105320,36 @@ class ListElementRenderer {
|
|
|
105320
105320
|
const data = Object.create(null);
|
|
105321
105321
|
data.toDisposeElement = [];
|
|
105322
105322
|
data.toDisposeTemplate = [];
|
|
105323
|
-
data.entry = append$1(container, $$
|
|
105323
|
+
data.entry = append$1(container, $$9('.quick-input-list-entry'));
|
|
105324
105324
|
// Checkbox
|
|
105325
|
-
const label = append$1(data.entry, $$
|
|
105325
|
+
const label = append$1(data.entry, $$9('label.quick-input-list-label'));
|
|
105326
105326
|
data.toDisposeTemplate.push(addStandardDisposableListener(label, EventType$1.CLICK, e => {
|
|
105327
105327
|
if (!data.checkbox.offsetParent) { // If checkbox not visible:
|
|
105328
105328
|
e.preventDefault(); // Prevent toggle of checkbox when it is immediately shown afterwards. #91740
|
|
105329
105329
|
}
|
|
105330
105330
|
}));
|
|
105331
|
-
data.checkbox = append$1(label, $$
|
|
105331
|
+
data.checkbox = append$1(label, $$9('input.quick-input-list-checkbox'));
|
|
105332
105332
|
data.checkbox.type = 'checkbox';
|
|
105333
105333
|
data.toDisposeTemplate.push(addStandardDisposableListener(data.checkbox, EventType$1.CHANGE, e => {
|
|
105334
105334
|
data.element.checked = data.checkbox.checked;
|
|
105335
105335
|
}));
|
|
105336
105336
|
// Rows
|
|
105337
|
-
const rows = append$1(label, $$
|
|
105338
|
-
const row1 = append$1(rows, $$
|
|
105339
|
-
const row2 = append$1(rows, $$
|
|
105337
|
+
const rows = append$1(label, $$9('.quick-input-list-rows'));
|
|
105338
|
+
const row1 = append$1(rows, $$9('.quick-input-list-row'));
|
|
105339
|
+
const row2 = append$1(rows, $$9('.quick-input-list-row'));
|
|
105340
105340
|
// Label
|
|
105341
105341
|
data.label = new IconLabel(row1, { supportHighlights: true, supportDescriptionHighlights: true, supportIcons: true });
|
|
105342
105342
|
data.toDisposeTemplate.push(data.label);
|
|
105343
|
-
data.icon = prepend$1(data.label.element, $$
|
|
105343
|
+
data.icon = prepend$1(data.label.element, $$9('.quick-input-list-icon'));
|
|
105344
105344
|
// Keybinding
|
|
105345
|
-
const keybindingContainer = append$1(row1, $$
|
|
105345
|
+
const keybindingContainer = append$1(row1, $$9('.quick-input-list-entry-keybinding'));
|
|
105346
105346
|
data.keybinding = new KeybindingLabel(keybindingContainer, OS);
|
|
105347
105347
|
// Detail
|
|
105348
|
-
const detailContainer = append$1(row2, $$
|
|
105348
|
+
const detailContainer = append$1(row2, $$9('.quick-input-list-label-meta'));
|
|
105349
105349
|
data.detail = new IconLabel(detailContainer, { supportHighlights: true, supportIcons: true });
|
|
105350
105350
|
data.toDisposeTemplate.push(data.detail);
|
|
105351
105351
|
// Separator
|
|
105352
|
-
data.separator = append$1(data.entry, $$
|
|
105352
|
+
data.separator = append$1(data.entry, $$9('.quick-input-list-separator'));
|
|
105353
105353
|
// Actions
|
|
105354
105354
|
data.actionBar = new ActionBar(data.entry);
|
|
105355
105355
|
data.actionBar.domNode.classList.add('quick-input-list-entry-action-bar');
|
|
@@ -105512,7 +105512,7 @@ class QuickInputList {
|
|
|
105512
105512
|
this.elementDisposables = [];
|
|
105513
105513
|
this.disposables = [];
|
|
105514
105514
|
this.id = id;
|
|
105515
|
-
this.container = append$1(this.parent, $$
|
|
105515
|
+
this.container = append$1(this.parent, $$9('.quick-input-list'));
|
|
105516
105516
|
const delegate = new ListElementDelegate();
|
|
105517
105517
|
const accessibilityProvider = new QuickInputAccessibilityProvider();
|
|
105518
105518
|
this.list = options.createList('QuickInput', this.container, delegate, [new ListElementRenderer(themeService)], {
|
|
@@ -107018,7 +107018,7 @@ class InputBox extends QuickInput {
|
|
|
107018
107018
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
107019
107019
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
107020
107020
|
*--------------------------------------------------------------------------------------------*/
|
|
107021
|
-
const $$
|
|
107021
|
+
const $$8 = $$e;
|
|
107022
107022
|
class QuickInputController extends Disposable {
|
|
107023
107023
|
constructor(options, themeService, layoutService) {
|
|
107024
107024
|
super();
|
|
@@ -107069,19 +107069,19 @@ class QuickInputController extends Disposable {
|
|
|
107069
107069
|
}
|
|
107070
107070
|
return this.ui;
|
|
107071
107071
|
}
|
|
107072
|
-
const container = append$1(this.parentElement, $$
|
|
107072
|
+
const container = append$1(this.parentElement, $$8('.quick-input-widget.show-file-icons'));
|
|
107073
107073
|
container.tabIndex = -1;
|
|
107074
107074
|
container.style.display = 'none';
|
|
107075
107075
|
const styleSheet = createStyleSheet(container);
|
|
107076
|
-
const titleBar = append$1(container, $$
|
|
107076
|
+
const titleBar = append$1(container, $$8('.quick-input-titlebar'));
|
|
107077
107077
|
const actionBarOption = this.options.hoverDelegate ? { hoverDelegate: this.options.hoverDelegate } : undefined;
|
|
107078
107078
|
const leftActionBar = this._register(new ActionBar(titleBar, actionBarOption));
|
|
107079
107079
|
leftActionBar.domNode.classList.add('quick-input-left-action-bar');
|
|
107080
|
-
const title = append$1(titleBar, $$
|
|
107080
|
+
const title = append$1(titleBar, $$8('.quick-input-title'));
|
|
107081
107081
|
const rightActionBar = this._register(new ActionBar(titleBar, actionBarOption));
|
|
107082
107082
|
rightActionBar.domNode.classList.add('quick-input-right-action-bar');
|
|
107083
|
-
const headerContainer = append$1(container, $$
|
|
107084
|
-
const checkAll = append$1(headerContainer, $$
|
|
107083
|
+
const headerContainer = append$1(container, $$8('.quick-input-header'));
|
|
107084
|
+
const checkAll = append$1(headerContainer, $$8('input.quick-input-check-all'));
|
|
107085
107085
|
checkAll.type = 'checkbox';
|
|
107086
107086
|
checkAll.setAttribute('aria-label', localize('quickInput.checkAll', "Toggle all checkboxes"));
|
|
107087
107087
|
this._register(addStandardDisposableListener(checkAll, EventType$1.CHANGE, e => {
|
|
@@ -107093,36 +107093,36 @@ class QuickInputController extends Disposable {
|
|
|
107093
107093
|
inputBox.setFocus();
|
|
107094
107094
|
}
|
|
107095
107095
|
}));
|
|
107096
|
-
const description2 = append$1(headerContainer, $$
|
|
107097
|
-
const inputContainer = append$1(headerContainer, $$
|
|
107098
|
-
const filterContainer = append$1(inputContainer, $$
|
|
107096
|
+
const description2 = append$1(headerContainer, $$8('.quick-input-description'));
|
|
107097
|
+
const inputContainer = append$1(headerContainer, $$8('.quick-input-and-message'));
|
|
107098
|
+
const filterContainer = append$1(inputContainer, $$8('.quick-input-filter'));
|
|
107099
107099
|
const inputBox = this._register(new QuickInputBox(filterContainer, this.styles.inputBox, this.styles.toggle));
|
|
107100
107100
|
inputBox.setAttribute('aria-describedby', `${this.idPrefix}message`);
|
|
107101
|
-
const visibleCountContainer = append$1(filterContainer, $$
|
|
107101
|
+
const visibleCountContainer = append$1(filterContainer, $$8('.quick-input-visible-count'));
|
|
107102
107102
|
visibleCountContainer.setAttribute('aria-live', 'polite');
|
|
107103
107103
|
visibleCountContainer.setAttribute('aria-atomic', 'true');
|
|
107104
107104
|
const visibleCount = new CountBadge(visibleCountContainer, { countFormat: localize({ key: 'quickInput.visibleCount', comment: ['This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers.'] }, "{0} Results") }, this.styles.countBadge);
|
|
107105
|
-
const countContainer = append$1(filterContainer, $$
|
|
107105
|
+
const countContainer = append$1(filterContainer, $$8('.quick-input-count'));
|
|
107106
107106
|
countContainer.setAttribute('aria-live', 'polite');
|
|
107107
107107
|
const count = new CountBadge(countContainer, { countFormat: localize({ key: 'quickInput.countSelected', comment: ['This tells the user how many items are selected in a list of items to select from. The items can be anything.'] }, "{0} Selected") }, this.styles.countBadge);
|
|
107108
|
-
const okContainer = append$1(headerContainer, $$
|
|
107108
|
+
const okContainer = append$1(headerContainer, $$8('.quick-input-action'));
|
|
107109
107109
|
const ok = this._register(new Button(okContainer, this.styles.button));
|
|
107110
107110
|
ok.label = localize('ok', "OK");
|
|
107111
107111
|
this._register(ok.onDidClick(e => {
|
|
107112
107112
|
this.onDidAcceptEmitter.fire();
|
|
107113
107113
|
}));
|
|
107114
|
-
const customButtonContainer = append$1(headerContainer, $$
|
|
107114
|
+
const customButtonContainer = append$1(headerContainer, $$8('.quick-input-action'));
|
|
107115
107115
|
const customButton = this._register(new Button(customButtonContainer, this.styles.button));
|
|
107116
107116
|
customButton.label = localize('custom', "Custom");
|
|
107117
107117
|
this._register(customButton.onDidClick(e => {
|
|
107118
107118
|
this.onDidCustomEmitter.fire();
|
|
107119
107119
|
}));
|
|
107120
|
-
const message = append$1(inputContainer, $$
|
|
107120
|
+
const message = append$1(inputContainer, $$8(`#${this.idPrefix}message.quick-input-message`));
|
|
107121
107121
|
const progressBar = this._register(new ProgressBar(container, this.styles.progressBar));
|
|
107122
107122
|
progressBar.getContainer().classList.add('quick-input-progress');
|
|
107123
|
-
const widget = append$1(container, $$
|
|
107123
|
+
const widget = append$1(container, $$8('.quick-input-html-widget'));
|
|
107124
107124
|
widget.tabIndex = -1;
|
|
107125
|
-
const description1 = append$1(container, $$
|
|
107125
|
+
const description1 = append$1(container, $$8('.quick-input-description'));
|
|
107126
107126
|
const listId = this.idPrefix + 'list';
|
|
107127
107127
|
const list = this._register(new QuickInputList(container, listId, this.options, this.themeService));
|
|
107128
107128
|
inputBox.setAttribute('aria-controls', listId);
|
|
@@ -109467,7 +109467,7 @@ let BrowserClipboardService = class BrowserClipboardService extends Disposable {
|
|
|
109467
109467
|
// Fallback to textarea and execCommand solution
|
|
109468
109468
|
const activeDocument = getActiveDocument();
|
|
109469
109469
|
const activeElement = activeDocument.activeElement;
|
|
109470
|
-
const textArea = activeDocument.body.appendChild($$
|
|
109470
|
+
const textArea = activeDocument.body.appendChild($$e('textarea', { 'aria-hidden': true }));
|
|
109471
109471
|
textArea.style.height = '1px';
|
|
109472
109472
|
textArea.style.width = '1px';
|
|
109473
109473
|
textArea.style.position = 'absolute';
|
|
@@ -114589,7 +114589,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
114589
114589
|
this._nodes = h$1('div.diff-hidden-lines', [
|
|
114590
114590
|
h$1('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
|
|
114591
114591
|
h$1('div.center@content', { style: { display: 'flex' } }, [
|
|
114592
|
-
h$1('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$$
|
|
114592
|
+
h$1('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$$e('a', { title: localize('showUnchangedRegion', 'Show Unchanged Region'), role: 'button', onclick: () => { this._unchangedRegion.showAll(undefined); } }, ...renderLabelWithIcons('$(unfold)'))]),
|
|
114593
114593
|
h$1('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
|
|
114594
114594
|
]),
|
|
114595
114595
|
h$1('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
|
|
@@ -114701,7 +114701,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
114701
114701
|
if (!this._hide) {
|
|
114702
114702
|
const lineCount = _unchangedRegion.getHiddenModifiedRange(reader).length;
|
|
114703
114703
|
const linesHiddenText = localize('hiddenLines', '{0} hidden lines', lineCount);
|
|
114704
|
-
const span = $$
|
|
114704
|
+
const span = $$e('span', { title: localize('diff.hiddenLines.expandAll', 'Double click to unfold') }, linesHiddenText);
|
|
114705
114705
|
span.addEventListener('dblclick', e => {
|
|
114706
114706
|
if (e.button !== 0) {
|
|
114707
114707
|
return;
|
|
@@ -114713,7 +114713,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
114713
114713
|
const range = this._unchangedRegion.getHiddenModifiedRange(reader);
|
|
114714
114714
|
const items = this._modifiedOutlineSource.getBreadcrumbItems(range, reader);
|
|
114715
114715
|
if (items.length > 0) {
|
|
114716
|
-
children.push($$
|
|
114716
|
+
children.push($$e('span', undefined, '\u00a0\u00a0|\u00a0\u00a0'));
|
|
114717
114717
|
for (let i = 0; i < items.length; i++) {
|
|
114718
114718
|
const item = items[i];
|
|
114719
114719
|
const icon = SymbolKinds.toIcon(item.kind);
|
|
@@ -115846,7 +115846,7 @@ let ViewZoneManager = class ViewZoneManager extends Disposable {
|
|
|
115846
115846
|
e.stopPropagation();
|
|
115847
115847
|
_diffEditorWidget.revert(a.diff);
|
|
115848
115848
|
}));
|
|
115849
|
-
return $$
|
|
115849
|
+
return $$e('div', {}, arrow);
|
|
115850
115850
|
}
|
|
115851
115851
|
let marginDomNode = undefined;
|
|
115852
115852
|
if (a.diff && a.diff.modified.isEmpty && this._options.shouldRenderRevertArrows.read(reader)) {
|
|
@@ -116615,7 +116615,7 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
|
|
|
116615
116615
|
this._audioCueService = _audioCueService;
|
|
116616
116616
|
this._editorProgressService = _editorProgressService;
|
|
116617
116617
|
this.elements = h$1('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
|
|
116618
|
-
h$1('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$
|
|
116618
|
+
h$1('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$e('span', {}, 'No Changes')]),
|
|
116619
116619
|
h$1('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
|
|
116620
116620
|
h$1('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
|
|
116621
116621
|
h$1('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
|
|
@@ -120544,7 +120544,7 @@ registerLanguage({
|
|
|
120544
120544
|
mimetypes: ["text/css"],
|
|
120545
120545
|
loader: () => {
|
|
120546
120546
|
{
|
|
120547
|
-
return Promise.resolve().then(function () { return require('./css-
|
|
120547
|
+
return Promise.resolve().then(function () { return require('./css-a1b28a9f.js'); });
|
|
120548
120548
|
}
|
|
120549
120549
|
}
|
|
120550
120550
|
});
|
|
@@ -120562,7 +120562,7 @@ registerLanguage({
|
|
|
120562
120562
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120563
120563
|
loader: () => {
|
|
120564
120564
|
{
|
|
120565
|
-
return Promise.resolve().then(function () { return require('./html-
|
|
120565
|
+
return Promise.resolve().then(function () { return require('./html-51efc5f2.js'); });
|
|
120566
120566
|
}
|
|
120567
120567
|
}
|
|
120568
120568
|
});
|
|
@@ -120582,7 +120582,7 @@ registerLanguage({
|
|
|
120582
120582
|
mimetypes: ["text/javascript"],
|
|
120583
120583
|
loader: () => {
|
|
120584
120584
|
{
|
|
120585
|
-
return Promise.resolve().then(function () { return require('./javascript-
|
|
120585
|
+
return Promise.resolve().then(function () { return require('./javascript-f387480b.js'); });
|
|
120586
120586
|
}
|
|
120587
120587
|
}
|
|
120588
120588
|
});
|
|
@@ -120600,7 +120600,7 @@ registerLanguage({
|
|
|
120600
120600
|
mimetypes: ["text/typescript"],
|
|
120601
120601
|
loader: () => {
|
|
120602
120602
|
{
|
|
120603
|
-
return Promise.resolve().then(function () { return require('./typescript-
|
|
120603
|
+
return Promise.resolve().then(function () { return require('./typescript-64e66362.js'); });
|
|
120604
120604
|
}
|
|
120605
120605
|
}
|
|
120606
120606
|
});
|
|
@@ -120721,7 +120721,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120721
120721
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120722
120722
|
function getMode$3() {
|
|
120723
120723
|
{
|
|
120724
|
-
return Promise.resolve().then(function () { return require('./cssMode-
|
|
120724
|
+
return Promise.resolve().then(function () { return require('./cssMode-5b3b9c9b.js'); });
|
|
120725
120725
|
}
|
|
120726
120726
|
}
|
|
120727
120727
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120846,7 +120846,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120846
120846
|
};
|
|
120847
120847
|
function getMode$2() {
|
|
120848
120848
|
{
|
|
120849
|
-
return Promise.resolve().then(function () { return require('./htmlMode-
|
|
120849
|
+
return Promise.resolve().then(function () { return require('./htmlMode-a3589bc9.js'); });
|
|
120850
120850
|
}
|
|
120851
120851
|
}
|
|
120852
120852
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -120948,7 +120948,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
120948
120948
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120949
120949
|
function getMode$1() {
|
|
120950
120950
|
{
|
|
120951
|
-
return Promise.resolve().then(function () { return require('./jsonMode-
|
|
120951
|
+
return Promise.resolve().then(function () { return require('./jsonMode-f9b19644.js'); });
|
|
120952
120952
|
}
|
|
120953
120953
|
}
|
|
120954
120954
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121217,7 +121217,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121217
121217
|
};
|
|
121218
121218
|
function getMode() {
|
|
121219
121219
|
{
|
|
121220
|
-
return Promise.resolve().then(function () { return require('./tsMode-
|
|
121220
|
+
return Promise.resolve().then(function () { return require('./tsMode-b1e0bb57.js'); });
|
|
121221
121221
|
}
|
|
121222
121222
|
}
|
|
121223
121223
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -123169,7 +123169,7 @@ let LightBulbWidget = LightBulbWidget_1 = class LightBulbWidget extends Disposab
|
|
|
123169
123169
|
this.onClick = this._onClick.event;
|
|
123170
123170
|
this._state = LightBulbState.Hidden;
|
|
123171
123171
|
this._iconClasses = [];
|
|
123172
|
-
this._domNode = $$
|
|
123172
|
+
this._domNode = $$e('div.lightBulbWidget');
|
|
123173
123173
|
this._register(Gesture.ignoreTarget(this._domNode));
|
|
123174
123174
|
this._editor.addContentWidget(this);
|
|
123175
123175
|
this._register(this._editor.onDidChangeModelContent(_ => {
|
|
@@ -124025,7 +124025,7 @@ let ActionWidgetService = class ActionWidgetService extends Disposable {
|
|
|
124025
124025
|
if (!actions.length) {
|
|
124026
124026
|
return undefined;
|
|
124027
124027
|
}
|
|
124028
|
-
const container = $$
|
|
124028
|
+
const container = $$e(className);
|
|
124029
124029
|
const actionBar = new ActionBar(container);
|
|
124030
124030
|
actionBar.push(actions, { icon: false, label: true });
|
|
124031
124031
|
return actionBar;
|
|
@@ -125219,20 +125219,20 @@ class CodeLensContentWidget {
|
|
|
125219
125219
|
if (lens.command) {
|
|
125220
125220
|
const title = renderLabelWithIcons(lens.command.title.trim());
|
|
125221
125221
|
if (lens.command.id) {
|
|
125222
|
-
children.push($$
|
|
125222
|
+
children.push($$e('a', { id: String(i), title: lens.command.tooltip, role: 'button' }, ...title));
|
|
125223
125223
|
this._commands.set(String(i), lens.command);
|
|
125224
125224
|
}
|
|
125225
125225
|
else {
|
|
125226
|
-
children.push($$
|
|
125226
|
+
children.push($$e('span', { title: lens.command.tooltip }, ...title));
|
|
125227
125227
|
}
|
|
125228
125228
|
if (i + 1 < lenses.length) {
|
|
125229
|
-
children.push($$
|
|
125229
|
+
children.push($$e('span', undefined, '\u00a0|\u00a0'));
|
|
125230
125230
|
}
|
|
125231
125231
|
}
|
|
125232
125232
|
}
|
|
125233
125233
|
if (!hasSymbol) {
|
|
125234
125234
|
// symbols but no commands
|
|
125235
|
-
reset(this._domNode, $$
|
|
125235
|
+
reset(this._domNode, $$e('span', undefined, 'no commands'));
|
|
125236
125236
|
}
|
|
125237
125237
|
else {
|
|
125238
125238
|
// symbols and commands
|
|
@@ -126330,22 +126330,22 @@ class ColorPickerModel {
|
|
|
126330
126330
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
126331
126331
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
126332
126332
|
*--------------------------------------------------------------------------------------------*/
|
|
126333
|
-
const $$
|
|
126333
|
+
const $$7 = $$e;
|
|
126334
126334
|
class ColorPickerHeader extends Disposable {
|
|
126335
126335
|
constructor(container, model, themeService, showingStandaloneColorPicker = false) {
|
|
126336
126336
|
super();
|
|
126337
126337
|
this.model = model;
|
|
126338
126338
|
this.showingStandaloneColorPicker = showingStandaloneColorPicker;
|
|
126339
126339
|
this._closeButton = null;
|
|
126340
|
-
this._domNode = $$
|
|
126340
|
+
this._domNode = $$7('.colorpicker-header');
|
|
126341
126341
|
append$1(container, this._domNode);
|
|
126342
|
-
this._pickedColorNode = append$1(this._domNode, $$
|
|
126343
|
-
append$1(this._pickedColorNode, $$
|
|
126342
|
+
this._pickedColorNode = append$1(this._domNode, $$7('.picked-color'));
|
|
126343
|
+
append$1(this._pickedColorNode, $$7('span.codicon.codicon-color-mode'));
|
|
126344
126344
|
this._pickedColorPresentation = append$1(this._pickedColorNode, document.createElement('span'));
|
|
126345
126345
|
this._pickedColorPresentation.classList.add('picked-color-presentation');
|
|
126346
126346
|
const tooltip = localize('clickToToggleColorOptions', "Click to toggle color options (rgb/hsl/hex)");
|
|
126347
126347
|
this._pickedColorNode.setAttribute('title', tooltip);
|
|
126348
|
-
this._originalColorNode = append$1(this._domNode, $$
|
|
126348
|
+
this._originalColorNode = append$1(this._domNode, $$7('.original-color'));
|
|
126349
126349
|
this._originalColorNode.style.backgroundColor = Color.Format.CSS.format(this.model.originalColor) || '';
|
|
126350
126350
|
this.backgroundColor = themeService.getColorTheme().getColor(editorHoverBackground) || Color.white;
|
|
126351
126351
|
this._register(themeService.onDidColorThemeChange(theme => {
|
|
@@ -126396,7 +126396,7 @@ class CloseButton extends Disposable {
|
|
|
126396
126396
|
const innerDiv = document.createElement('div');
|
|
126397
126397
|
innerDiv.classList.add('close-button-inner-div');
|
|
126398
126398
|
append$1(this._button, innerDiv);
|
|
126399
|
-
const closeButton = append$1(innerDiv, $$
|
|
126399
|
+
const closeButton = append$1(innerDiv, $$7('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, localize('closeIcon', 'Icon to close the color picker')))));
|
|
126400
126400
|
closeButton.classList.add('close-icon');
|
|
126401
126401
|
this._button.onclick = () => {
|
|
126402
126402
|
this._onClicked.fire();
|
|
@@ -126409,7 +126409,7 @@ class ColorPickerBody extends Disposable {
|
|
|
126409
126409
|
this.model = model;
|
|
126410
126410
|
this.pixelRatio = pixelRatio;
|
|
126411
126411
|
this._insertButton = null;
|
|
126412
|
-
this._domNode = $$
|
|
126412
|
+
this._domNode = $$7('.colorpicker-body');
|
|
126413
126413
|
append$1(container, this._domNode);
|
|
126414
126414
|
this._saturationBox = new SaturationBox(this._domNode, this.model, this.pixelRatio);
|
|
126415
126415
|
this._register(this._saturationBox);
|
|
@@ -126468,14 +126468,14 @@ class SaturationBox extends Disposable {
|
|
|
126468
126468
|
this.onDidChange = this._onDidChange.event;
|
|
126469
126469
|
this._onColorFlushed = new Emitter$1();
|
|
126470
126470
|
this.onColorFlushed = this._onColorFlushed.event;
|
|
126471
|
-
this._domNode = $$
|
|
126471
|
+
this._domNode = $$7('.saturation-wrap');
|
|
126472
126472
|
append$1(container, this._domNode);
|
|
126473
126473
|
// Create canvas, draw selected color
|
|
126474
126474
|
this._canvas = document.createElement('canvas');
|
|
126475
126475
|
this._canvas.className = 'saturation-box';
|
|
126476
126476
|
append$1(this._domNode, this._canvas);
|
|
126477
126477
|
// Add selection circle
|
|
126478
|
-
this.selection = $$
|
|
126478
|
+
this.selection = $$7('.saturation-selection');
|
|
126479
126479
|
append$1(this._domNode, this.selection);
|
|
126480
126480
|
this.layout();
|
|
126481
126481
|
this._register(addDisposableListener(this._domNode, EventType$1.POINTER_DOWN, e => this.onPointerDown(e)));
|
|
@@ -126560,14 +126560,14 @@ class Strip extends Disposable {
|
|
|
126560
126560
|
this._onColorFlushed = new Emitter$1();
|
|
126561
126561
|
this.onColorFlushed = this._onColorFlushed.event;
|
|
126562
126562
|
if (showingStandaloneColorPicker) {
|
|
126563
|
-
this.domNode = append$1(container, $$
|
|
126564
|
-
this.overlay = append$1(this.domNode, $$
|
|
126563
|
+
this.domNode = append$1(container, $$7('.standalone-strip'));
|
|
126564
|
+
this.overlay = append$1(this.domNode, $$7('.standalone-overlay'));
|
|
126565
126565
|
}
|
|
126566
126566
|
else {
|
|
126567
|
-
this.domNode = append$1(container, $$
|
|
126568
|
-
this.overlay = append$1(this.domNode, $$
|
|
126567
|
+
this.domNode = append$1(container, $$7('.strip'));
|
|
126568
|
+
this.overlay = append$1(this.domNode, $$7('.overlay'));
|
|
126569
126569
|
}
|
|
126570
|
-
this.slider = append$1(this.domNode, $$
|
|
126570
|
+
this.slider = append$1(this.domNode, $$7('.slider'));
|
|
126571
126571
|
this.slider.style.top = `0px`;
|
|
126572
126572
|
this._register(addDisposableListener(this.domNode, EventType$1.POINTER_DOWN, e => this.onPointerDown(e)));
|
|
126573
126573
|
this._register(model.onDidChangeColor(this.onDidChangeColor, this));
|
|
@@ -126657,7 +126657,7 @@ class ColorPickerWidget extends Widget$1 {
|
|
|
126657
126657
|
this.model = model;
|
|
126658
126658
|
this.pixelRatio = pixelRatio;
|
|
126659
126659
|
this._register(PixelRatio.onDidChange(() => this.layout()));
|
|
126660
|
-
const element = $$
|
|
126660
|
+
const element = $$7('.colorpicker-widget');
|
|
126661
126661
|
container.appendChild(element);
|
|
126662
126662
|
this.header = this._register(new ColorPickerHeader(element, this.model, themeService, standaloneColorPicker));
|
|
126663
126663
|
this.body = this._register(new ColorPickerBody(element, this.model, this.pixelRatio, standaloneColorPicker));
|
|
@@ -127582,26 +127582,26 @@ let PeekViewWidget = class PeekViewWidget extends ZoneWidget {
|
|
|
127582
127582
|
}
|
|
127583
127583
|
_fillContainer(container) {
|
|
127584
127584
|
this.setCssClass('peekview-widget');
|
|
127585
|
-
this._headElement = $$
|
|
127586
|
-
this._bodyElement = $$
|
|
127585
|
+
this._headElement = $$e('.head');
|
|
127586
|
+
this._bodyElement = $$e('.body');
|
|
127587
127587
|
this._fillHead(this._headElement);
|
|
127588
127588
|
this._fillBody(this._bodyElement);
|
|
127589
127589
|
container.appendChild(this._headElement);
|
|
127590
127590
|
container.appendChild(this._bodyElement);
|
|
127591
127591
|
}
|
|
127592
127592
|
_fillHead(container, noCloseAction) {
|
|
127593
|
-
this._titleElement = $$
|
|
127593
|
+
this._titleElement = $$e('.peekview-title');
|
|
127594
127594
|
if (this.options.supportOnTitleClick) {
|
|
127595
127595
|
this._titleElement.classList.add('clickable');
|
|
127596
127596
|
addStandardDisposableListener(this._titleElement, 'click', event => this._onTitleClick(event));
|
|
127597
127597
|
}
|
|
127598
127598
|
append$1(this._headElement, this._titleElement);
|
|
127599
127599
|
this._fillTitleIcon(this._titleElement);
|
|
127600
|
-
this._primaryHeading = $$
|
|
127601
|
-
this._secondaryHeading = $$
|
|
127602
|
-
this._metaHeading = $$
|
|
127600
|
+
this._primaryHeading = $$e('span.filename');
|
|
127601
|
+
this._secondaryHeading = $$e('span.dirname');
|
|
127602
|
+
this._metaHeading = $$e('span.meta');
|
|
127603
127603
|
append$1(this._titleElement, this._primaryHeading, this._secondaryHeading, this._metaHeading);
|
|
127604
|
-
const actionsContainer = $$
|
|
127604
|
+
const actionsContainer = $$e('.peekview-actions');
|
|
127605
127605
|
append$1(this._headElement, actionsContainer);
|
|
127606
127606
|
const actionBarOptions = this._getActionBarOptions();
|
|
127607
127607
|
this._actionbarWidget = new ActionBar(actionsContainer, actionBarOptions);
|
|
@@ -128014,7 +128014,7 @@ let FileReferencesTemplate = class FileReferencesTemplate extends Disposable {
|
|
|
128014
128014
|
const parent = document.createElement('div');
|
|
128015
128015
|
parent.classList.add('reference-file');
|
|
128016
128016
|
this.file = this._register(new IconLabel(parent, { supportHighlights: true }));
|
|
128017
|
-
this.badge = new CountBadge(append$1(parent, $$
|
|
128017
|
+
this.badge = new CountBadge(append$1(parent, $$e('.count')), {}, defaultCountBadgeStyles);
|
|
128018
128018
|
container.appendChild(parent);
|
|
128019
128019
|
}
|
|
128020
128020
|
set(element, matches) {
|
|
@@ -128317,11 +128317,11 @@ let ReferenceWidget = class ReferenceWidget extends PeekViewWidget {
|
|
|
128317
128317
|
_fillBody(containerElement) {
|
|
128318
128318
|
this.setCssClass('reference-zone-widget');
|
|
128319
128319
|
// message pane
|
|
128320
|
-
this._messageContainer = append$1(containerElement, $$
|
|
128320
|
+
this._messageContainer = append$1(containerElement, $$e('div.messages'));
|
|
128321
128321
|
hide(this._messageContainer);
|
|
128322
128322
|
this._splitView = new SplitView(containerElement, { orientation: 1 /* Orientation.HORIZONTAL */ });
|
|
128323
128323
|
// editor
|
|
128324
|
-
this._previewContainer = append$1(containerElement, $$
|
|
128324
|
+
this._previewContainer = append$1(containerElement, $$e('div.preview.inline'));
|
|
128325
128325
|
const options = {
|
|
128326
128326
|
scrollBeyondLastLine: false,
|
|
128327
128327
|
scrollbar: {
|
|
@@ -128342,7 +128342,7 @@ let ReferenceWidget = class ReferenceWidget extends PeekViewWidget {
|
|
|
128342
128342
|
hide(this._previewContainer);
|
|
128343
128343
|
this._previewNotAvailableMessage = new TextModel(localize('missingPreviewMessage', "no preview available"), PLAINTEXT_LANGUAGE_ID, TextModel.DEFAULT_CREATION_OPTIONS, null, this._undoRedoService, this._languageService, this._languageConfigurationService);
|
|
128344
128344
|
// tree
|
|
128345
|
-
this._treeContainer = append$1(containerElement, $$
|
|
128345
|
+
this._treeContainer = append$1(containerElement, $$e('div.ref-tree.inline'));
|
|
128346
128346
|
const treeOptions = {
|
|
128347
128347
|
keyboardSupport: this._defaultTreeKeyboardSupport,
|
|
128348
128348
|
accessibilityProvider: new AccessibilityProvider(),
|
|
@@ -130118,7 +130118,7 @@ registerEditorContribution(GotoDefinitionAtPositionEditorContribution.ID, GotoDe
|
|
|
130118
130118
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
130119
130119
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
130120
130120
|
*--------------------------------------------------------------------------------------------*/
|
|
130121
|
-
const $$
|
|
130121
|
+
const $$6 = $$e;
|
|
130122
130122
|
class HoverWidget extends Disposable {
|
|
130123
130123
|
constructor() {
|
|
130124
130124
|
super();
|
|
@@ -130143,14 +130143,14 @@ class HoverAction extends Disposable {
|
|
|
130143
130143
|
}
|
|
130144
130144
|
constructor(parent, actionOptions, keybindingLabel) {
|
|
130145
130145
|
super();
|
|
130146
|
-
this.actionContainer = append$1(parent, $$
|
|
130146
|
+
this.actionContainer = append$1(parent, $$6('div.action-container'));
|
|
130147
130147
|
this.actionContainer.setAttribute('tabindex', '0');
|
|
130148
|
-
this.action = append$1(this.actionContainer, $$
|
|
130148
|
+
this.action = append$1(this.actionContainer, $$6('a.action'));
|
|
130149
130149
|
this.action.setAttribute('role', 'button');
|
|
130150
130150
|
if (actionOptions.iconClass) {
|
|
130151
|
-
append$1(this.action, $$
|
|
130151
|
+
append$1(this.action, $$6(`span.icon.${actionOptions.iconClass}`));
|
|
130152
130152
|
}
|
|
130153
|
-
const label = append$1(this.action, $$
|
|
130153
|
+
const label = append$1(this.action, $$6('span'));
|
|
130154
130154
|
label.textContent = keybindingLabel ? `${actionOptions.label} (${keybindingLabel})` : actionOptions.label;
|
|
130155
130155
|
this._register(addDisposableListener(this.actionContainer, EventType$1.CLICK, e => {
|
|
130156
130156
|
e.stopPropagation();
|
|
@@ -130620,7 +130620,7 @@ var __param$14 = (undefined && undefined.__param) || function (paramIndex, decor
|
|
|
130620
130620
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
130621
130621
|
};
|
|
130622
130622
|
var ContentHoverController_1, ContentHoverWidget_1;
|
|
130623
|
-
const $$
|
|
130623
|
+
const $$5 = $$e;
|
|
130624
130624
|
let ContentHoverController = ContentHoverController_1 = class ContentHoverController extends Disposable {
|
|
130625
130625
|
constructor(_editor, _instantiationService, _keybindingService) {
|
|
130626
130626
|
super();
|
|
@@ -131361,8 +131361,8 @@ let EditorHoverStatusBar = class EditorHoverStatusBar extends Disposable {
|
|
|
131361
131361
|
super();
|
|
131362
131362
|
this._keybindingService = _keybindingService;
|
|
131363
131363
|
this._hasContent = false;
|
|
131364
|
-
this.hoverElement = $$
|
|
131365
|
-
this.actionsElement = append$1(this.hoverElement, $$
|
|
131364
|
+
this.hoverElement = $$5('div.hover-row.status-bar');
|
|
131365
|
+
this.actionsElement = append$1(this.hoverElement, $$5('div.actions'));
|
|
131366
131366
|
}
|
|
131367
131367
|
addAction(actionOptions) {
|
|
131368
131368
|
const keybinding = this._keybindingService.lookupKeybinding(actionOptions.commandId);
|
|
@@ -131464,7 +131464,7 @@ function computeDistanceFromPointToRectangle(pointX, pointY, left, top, width, h
|
|
|
131464
131464
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
131465
131465
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
131466
131466
|
*--------------------------------------------------------------------------------------------*/
|
|
131467
|
-
const $$
|
|
131467
|
+
const $$4 = $$e;
|
|
131468
131468
|
class MarginHoverWidget extends Disposable {
|
|
131469
131469
|
constructor(editor, languageService, openerService) {
|
|
131470
131470
|
super();
|
|
@@ -131545,8 +131545,8 @@ class MarginHoverWidget extends Disposable {
|
|
|
131545
131545
|
this._renderDisposeables.clear();
|
|
131546
131546
|
const fragment = document.createDocumentFragment();
|
|
131547
131547
|
for (const msg of messages) {
|
|
131548
|
-
const markdownHoverElement = $$
|
|
131549
|
-
const hoverContentsElement = append$1(markdownHoverElement, $$
|
|
131548
|
+
const markdownHoverElement = $$4('div.hover-row.markdown-hover');
|
|
131549
|
+
const hoverContentsElement = append$1(markdownHoverElement, $$4('div.hover-contents'));
|
|
131550
131550
|
const renderedContents = this._renderDisposeables.add(this._markdownRenderer.render(msg.value));
|
|
131551
131551
|
hoverContentsElement.appendChild(renderedContents.element);
|
|
131552
131552
|
fragment.appendChild(markdownHoverElement);
|
|
@@ -131665,7 +131665,7 @@ var __decorate$13 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
131665
131665
|
var __param$13 = (undefined && undefined.__param) || function (paramIndex, decorator) {
|
|
131666
131666
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
131667
131667
|
};
|
|
131668
|
-
const $$
|
|
131668
|
+
const $$3 = $$e;
|
|
131669
131669
|
class MarkdownHover {
|
|
131670
131670
|
constructor(owner, range, contents, isBeforeContent, ordinal) {
|
|
131671
131671
|
this.owner = owner;
|
|
@@ -131770,8 +131770,8 @@ function renderMarkdownHovers(context, hoverParts, editor, languageService, open
|
|
|
131770
131770
|
if (isEmptyMarkdownString(contents)) {
|
|
131771
131771
|
continue;
|
|
131772
131772
|
}
|
|
131773
|
-
const markdownHoverElement = $$
|
|
131774
|
-
const hoverContentsElement = append$1(markdownHoverElement, $$
|
|
131773
|
+
const markdownHoverElement = $$3('div.hover-row.markdown-hover');
|
|
131774
|
+
const hoverContentsElement = append$1(markdownHoverElement, $$3('div.hover-contents'));
|
|
131775
131775
|
const renderer = disposables.add(new MarkdownRenderer({ editor }, languageService, openerService));
|
|
131776
131776
|
disposables.add(renderer.onDidRenderAsync(() => {
|
|
131777
131777
|
hoverContentsElement.className = 'hover-contents code-hover-contents';
|
|
@@ -132092,14 +132092,14 @@ class MessageWidget {
|
|
|
132092
132092
|
detailsElement.appendChild(codeElement);
|
|
132093
132093
|
}
|
|
132094
132094
|
else {
|
|
132095
|
-
this._codeLink = $$
|
|
132095
|
+
this._codeLink = $$e('a.code-link');
|
|
132096
132096
|
this._codeLink.setAttribute('href', `${code.target.toString()}`);
|
|
132097
132097
|
this._codeLink.onclick = (e) => {
|
|
132098
132098
|
this._openerService.open(code.target, { allowCommands: true });
|
|
132099
132099
|
e.preventDefault();
|
|
132100
132100
|
e.stopPropagation();
|
|
132101
132101
|
};
|
|
132102
|
-
const codeElement = append$1(this._codeLink, $$
|
|
132102
|
+
const codeElement = append$1(this._codeLink, $$e('span'));
|
|
132103
132103
|
codeElement.innerText = code.value;
|
|
132104
132104
|
detailsElement.appendChild(this._codeLink);
|
|
132105
132105
|
}
|
|
@@ -132223,7 +132223,7 @@ let MarkerNavigationWidget = MarkerNavigationWidget_1 = class MarkerNavigationWi
|
|
|
132223
132223
|
menu.dispose();
|
|
132224
132224
|
}
|
|
132225
132225
|
_fillTitleIcon(container) {
|
|
132226
|
-
this._icon = append$1(container, $$
|
|
132226
|
+
this._icon = append$1(container, $$e(''));
|
|
132227
132227
|
}
|
|
132228
132228
|
_fillBody(container) {
|
|
132229
132229
|
this._parentContainer = container;
|
|
@@ -132579,7 +132579,7 @@ var __decorate$$ = (undefined && undefined.__decorate) || function (decorators,
|
|
|
132579
132579
|
var __param$$ = (undefined && undefined.__param) || function (paramIndex, decorator) {
|
|
132580
132580
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
132581
132581
|
};
|
|
132582
|
-
const $$
|
|
132582
|
+
const $$2 = $$e;
|
|
132583
132583
|
class MarkerHover {
|
|
132584
132584
|
constructor(owner, range, marker) {
|
|
132585
132585
|
this.owner = owner;
|
|
@@ -132637,36 +132637,36 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
132637
132637
|
return disposables;
|
|
132638
132638
|
}
|
|
132639
132639
|
renderMarkerHover(markerHover, disposables) {
|
|
132640
|
-
const hoverElement = $$
|
|
132641
|
-
const markerElement = append$1(hoverElement, $$
|
|
132640
|
+
const hoverElement = $$2('div.hover-row');
|
|
132641
|
+
const markerElement = append$1(hoverElement, $$2('div.marker.hover-contents'));
|
|
132642
132642
|
const { source, message, code, relatedInformation } = markerHover.marker;
|
|
132643
132643
|
this._editor.applyFontInfo(markerElement);
|
|
132644
|
-
const messageElement = append$1(markerElement, $$
|
|
132644
|
+
const messageElement = append$1(markerElement, $$2('span'));
|
|
132645
132645
|
messageElement.style.whiteSpace = 'pre-wrap';
|
|
132646
132646
|
messageElement.innerText = message;
|
|
132647
132647
|
if (source || code) {
|
|
132648
132648
|
// Code has link
|
|
132649
132649
|
if (code && typeof code !== 'string') {
|
|
132650
|
-
const sourceAndCodeElement = $$
|
|
132650
|
+
const sourceAndCodeElement = $$2('span');
|
|
132651
132651
|
if (source) {
|
|
132652
|
-
const sourceElement = append$1(sourceAndCodeElement, $$
|
|
132652
|
+
const sourceElement = append$1(sourceAndCodeElement, $$2('span'));
|
|
132653
132653
|
sourceElement.innerText = source;
|
|
132654
132654
|
}
|
|
132655
|
-
const codeLink = append$1(sourceAndCodeElement, $$
|
|
132655
|
+
const codeLink = append$1(sourceAndCodeElement, $$2('a.code-link'));
|
|
132656
132656
|
codeLink.setAttribute('href', code.target.toString());
|
|
132657
132657
|
disposables.add(addDisposableListener(codeLink, 'click', (e) => {
|
|
132658
132658
|
this._openerService.open(code.target, { allowCommands: true });
|
|
132659
132659
|
e.preventDefault();
|
|
132660
132660
|
e.stopPropagation();
|
|
132661
132661
|
}));
|
|
132662
|
-
const codeElement = append$1(codeLink, $$
|
|
132662
|
+
const codeElement = append$1(codeLink, $$2('span'));
|
|
132663
132663
|
codeElement.innerText = code.value;
|
|
132664
132664
|
const detailsElement = append$1(markerElement, sourceAndCodeElement);
|
|
132665
132665
|
detailsElement.style.opacity = '0.6';
|
|
132666
132666
|
detailsElement.style.paddingLeft = '6px';
|
|
132667
132667
|
}
|
|
132668
132668
|
else {
|
|
132669
|
-
const detailsElement = append$1(markerElement, $$
|
|
132669
|
+
const detailsElement = append$1(markerElement, $$2('span'));
|
|
132670
132670
|
detailsElement.style.opacity = '0.6';
|
|
132671
132671
|
detailsElement.style.paddingLeft = '6px';
|
|
132672
132672
|
detailsElement.innerText = source && code ? `${source}(${code})` : source ? source : `(${code})`;
|
|
@@ -132674,9 +132674,9 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
132674
132674
|
}
|
|
132675
132675
|
if (isNonEmptyArray(relatedInformation)) {
|
|
132676
132676
|
for (const { message, resource, startLineNumber, startColumn } of relatedInformation) {
|
|
132677
|
-
const relatedInfoContainer = append$1(markerElement, $$
|
|
132677
|
+
const relatedInfoContainer = append$1(markerElement, $$2('div'));
|
|
132678
132678
|
relatedInfoContainer.style.marginTop = '8px';
|
|
132679
|
-
const a = append$1(relatedInfoContainer, $$
|
|
132679
|
+
const a = append$1(relatedInfoContainer, $$2('a'));
|
|
132680
132680
|
a.innerText = `${basename(resource)}(${startLineNumber}, ${startColumn}): `;
|
|
132681
132681
|
a.style.cursor = 'pointer';
|
|
132682
132682
|
disposables.add(addDisposableListener(a, 'click', (e) => {
|
|
@@ -132689,7 +132689,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
132689
132689
|
}).catch(onUnexpectedError);
|
|
132690
132690
|
}
|
|
132691
132691
|
}));
|
|
132692
|
-
const messageElement = append$1(relatedInfoContainer, $$
|
|
132692
|
+
const messageElement = append$1(relatedInfoContainer, $$2('span'));
|
|
132693
132693
|
messageElement.innerText = message;
|
|
132694
132694
|
this._editor.applyFontInfo(messageElement);
|
|
132695
132695
|
}
|
|
@@ -132710,7 +132710,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
132710
132710
|
});
|
|
132711
132711
|
}
|
|
132712
132712
|
if (!this._editor.getOption(90 /* EditorOption.readOnly */)) {
|
|
132713
|
-
const quickfixPlaceholderElement = context.statusBar.append($$
|
|
132713
|
+
const quickfixPlaceholderElement = context.statusBar.append($$2('div'));
|
|
132714
132714
|
if (this.recentMarkerCodeActionsInfo) {
|
|
132715
132715
|
if (IMarkerData.makeKey(this.recentMarkerCodeActionsInfo.marker) === IMarkerData.makeKey(markerHover.marker)) {
|
|
132716
132716
|
if (!this.recentMarkerCodeActionsInfo.hasCodeActions) {
|
|
@@ -135798,10 +135798,10 @@ class InlineProgressWidget extends Disposable {
|
|
|
135798
135798
|
this.editor.layoutContentWidget(this);
|
|
135799
135799
|
}
|
|
135800
135800
|
create(title) {
|
|
135801
|
-
this.domNode = $$
|
|
135801
|
+
this.domNode = $$e('.inline-progress-widget');
|
|
135802
135802
|
this.domNode.role = 'button';
|
|
135803
135803
|
this.domNode.title = title;
|
|
135804
|
-
const iconElement = $$
|
|
135804
|
+
const iconElement = $$e('span.icon');
|
|
135805
135805
|
this.domNode.append(iconElement);
|
|
135806
135806
|
iconElement.classList.add(...ThemeIcon.asClassNameArray(Codicon.loading), 'codicon-modifier-spin');
|
|
135807
135807
|
const updateSize = () => {
|
|
@@ -135933,7 +135933,7 @@ let PostEditWidget = PostEditWidget_1 = class PostEditWidget extends Disposable
|
|
|
135933
135933
|
this.button.element.title = this.showCommand.label + (binding ? ` (${binding})` : '');
|
|
135934
135934
|
}
|
|
135935
135935
|
create() {
|
|
135936
|
-
this.domNode = $$
|
|
135936
|
+
this.domNode = $$e('.post-edit-widget');
|
|
135937
135937
|
this.button = this._register(new Button(this.domNode, {
|
|
135938
135938
|
supportIcons: true,
|
|
135939
135939
|
}));
|
|
@@ -149602,7 +149602,7 @@ let SuggestWidgetStatus = class SuggestWidgetStatus {
|
|
|
149602
149602
|
this._menuService = _menuService;
|
|
149603
149603
|
this._contextKeyService = _contextKeyService;
|
|
149604
149604
|
this._menuDisposables = new DisposableStore();
|
|
149605
|
-
this.element = append$1(container, $$
|
|
149605
|
+
this.element = append$1(container, $$e('.suggest-status-bar'));
|
|
149606
149606
|
const actionViewItemProvider = (action => {
|
|
149607
149607
|
return action instanceof MenuItemAction ? instantiationService.createInstance(StatusBarViewItem, action, undefined) : undefined;
|
|
149608
149608
|
});
|
|
@@ -149675,20 +149675,20 @@ let SuggestDetailsWidget = class SuggestDetailsWidget {
|
|
|
149675
149675
|
this._renderDisposeable = new DisposableStore();
|
|
149676
149676
|
this._borderWidth = 1;
|
|
149677
149677
|
this._size = new Dimension(330, 0);
|
|
149678
|
-
this.domNode = $$
|
|
149678
|
+
this.domNode = $$e('.suggest-details');
|
|
149679
149679
|
this.domNode.classList.add('no-docs');
|
|
149680
149680
|
this._markdownRenderer = instaService.createInstance(MarkdownRenderer, { editor: _editor });
|
|
149681
|
-
this._body = $$
|
|
149681
|
+
this._body = $$e('.body');
|
|
149682
149682
|
this._scrollbar = new DomScrollableElement(this._body, {
|
|
149683
149683
|
alwaysConsumeMouseWheel: true,
|
|
149684
149684
|
});
|
|
149685
149685
|
append$1(this.domNode, this._scrollbar.getDomNode());
|
|
149686
149686
|
this._disposables.add(this._scrollbar);
|
|
149687
|
-
this._header = append$1(this._body, $$
|
|
149688
|
-
this._close = append$1(this._header, $$
|
|
149687
|
+
this._header = append$1(this._body, $$e('.header'));
|
|
149688
|
+
this._close = append$1(this._header, $$e('span' + ThemeIcon.asCSSSelector(Codicon.close)));
|
|
149689
149689
|
this._close.title = localize('details.close', "Close");
|
|
149690
|
-
this._type = append$1(this._header, $$
|
|
149691
|
-
this._docs = append$1(this._body, $$
|
|
149690
|
+
this._type = append$1(this._header, $$e('p.type'));
|
|
149691
|
+
this._docs = append$1(this._body, $$e('p.docs'));
|
|
149692
149692
|
this._configureFont();
|
|
149693
149693
|
this._disposables.add(this._editor.onDidChangeConfiguration(e => {
|
|
149694
149694
|
if (e.hasChanged(50 /* EditorOption.fontInfo */)) {
|
|
@@ -150176,19 +150176,19 @@ let ItemRenderer = class ItemRenderer {
|
|
|
150176
150176
|
const disposables = new DisposableStore();
|
|
150177
150177
|
const root = container;
|
|
150178
150178
|
root.classList.add('show-file-icons');
|
|
150179
|
-
const icon = append$1(container, $$
|
|
150180
|
-
const colorspan = append$1(icon, $$
|
|
150181
|
-
const text = append$1(container, $$
|
|
150182
|
-
const main = append$1(text, $$
|
|
150183
|
-
const iconContainer = append$1(main, $$
|
|
150184
|
-
const left = append$1(main, $$
|
|
150185
|
-
const right = append$1(main, $$
|
|
150179
|
+
const icon = append$1(container, $$e('.icon'));
|
|
150180
|
+
const colorspan = append$1(icon, $$e('span.colorspan'));
|
|
150181
|
+
const text = append$1(container, $$e('.contents'));
|
|
150182
|
+
const main = append$1(text, $$e('.main'));
|
|
150183
|
+
const iconContainer = append$1(main, $$e('.icon-label.codicon'));
|
|
150184
|
+
const left = append$1(main, $$e('span.left'));
|
|
150185
|
+
const right = append$1(main, $$e('span.right'));
|
|
150186
150186
|
const iconLabel = new IconLabel(left, { supportHighlights: true, supportIcons: true });
|
|
150187
150187
|
disposables.add(iconLabel);
|
|
150188
|
-
const parametersLabel = append$1(left, $$
|
|
150189
|
-
const qualifierLabel = append$1(left, $$
|
|
150190
|
-
const detailsLabel = append$1(right, $$
|
|
150191
|
-
const readMore = append$1(right, $$
|
|
150188
|
+
const parametersLabel = append$1(left, $$e('span.signature-label'));
|
|
150189
|
+
const qualifierLabel = append$1(left, $$e('span.qualifier-label'));
|
|
150190
|
+
const detailsLabel = append$1(right, $$e('span.details-label'));
|
|
150191
|
+
const readMore = append$1(right, $$e('span.readMore' + ThemeIcon.asCSSSelector(suggestMoreInfoIcon)));
|
|
150192
150192
|
readMore.title = localize('readMore', "Read More");
|
|
150193
150193
|
const configureFont = () => {
|
|
150194
150194
|
const options = this._editor.getOptions();
|
|
@@ -150433,8 +150433,8 @@ let SuggestWidget = SuggestWidget_1 = class SuggestWidget {
|
|
|
150433
150433
|
this._contentWidget.unlockPreference();
|
|
150434
150434
|
state = undefined;
|
|
150435
150435
|
}));
|
|
150436
|
-
this._messageElement = append$1(this.element.domNode, $$
|
|
150437
|
-
this._listElement = append$1(this.element.domNode, $$
|
|
150436
|
+
this._messageElement = append$1(this.element.domNode, $$e('.message'));
|
|
150437
|
+
this._listElement = append$1(this.element.domNode, $$e('.tree'));
|
|
150438
150438
|
const details = this._disposables.add(instantiationService.createInstance(SuggestDetailsWidget, this.editor));
|
|
150439
150439
|
details.onDidClose(this.toggleDetails, this, this._disposables);
|
|
150440
150440
|
this._details = new SuggestDetailsOverlay(details, this.editor);
|
|
@@ -152674,7 +152674,7 @@ let InlineCompletionsHoverParticipant = class InlineCompletionsHoverParticipant
|
|
|
152674
152674
|
return disposableStore;
|
|
152675
152675
|
}
|
|
152676
152676
|
renderScreenReaderText(context, part, disposableStore) {
|
|
152677
|
-
const $ = $$
|
|
152677
|
+
const $ = $$e;
|
|
152678
152678
|
const markdownHoverElement = $('div.hover-row.markdown-hover');
|
|
152679
152679
|
const hoverContentsElement = append$1(markdownHoverElement, $('div.hover-contents', { ['aria-live']: 'assertive' }));
|
|
152680
152680
|
const renderer = disposableStore.add(new MarkdownRenderer({ editor: this._editor }, this._languageService, this._openerService));
|
|
@@ -158346,7 +158346,7 @@ var __param$n = (undefined && undefined.__param) || function (paramIndex, decora
|
|
|
158346
158346
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
158347
158347
|
};
|
|
158348
158348
|
var ParameterHintsWidget_1;
|
|
158349
|
-
const
|
|
158349
|
+
const $$1 = $$e;
|
|
158350
158350
|
const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, localize('parameterHintsNextIcon', 'Icon for show next parameter hint.'));
|
|
158351
158351
|
const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, localize('parameterHintsPreviousIcon', 'Icon for show previous parameter hint.'));
|
|
158352
158352
|
let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget extends Disposable {
|
|
@@ -158364,13 +158364,13 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
158364
158364
|
this.keyMultipleSignatures = Context.MultipleSignatures.bindTo(contextKeyService);
|
|
158365
158365
|
}
|
|
158366
158366
|
createParameterHintDOMNodes() {
|
|
158367
|
-
const element =
|
|
158368
|
-
const wrapper = append$1(element,
|
|
158367
|
+
const element = $$1('.editor-widget.parameter-hints-widget');
|
|
158368
|
+
const wrapper = append$1(element, $$1('.phwrapper'));
|
|
158369
158369
|
wrapper.tabIndex = -1;
|
|
158370
|
-
const controls = append$1(wrapper,
|
|
158371
|
-
const previous = append$1(controls,
|
|
158372
|
-
const overloads = append$1(controls,
|
|
158373
|
-
const next = append$1(controls,
|
|
158370
|
+
const controls = append$1(wrapper, $$1('.controls'));
|
|
158371
|
+
const previous = append$1(controls, $$1('.button' + ThemeIcon.asCSSSelector(parameterHintsPreviousIcon)));
|
|
158372
|
+
const overloads = append$1(controls, $$1('.overloads'));
|
|
158373
|
+
const next = append$1(controls, $$1('.button' + ThemeIcon.asCSSSelector(parameterHintsNextIcon)));
|
|
158374
158374
|
this._register(addDisposableListener(previous, 'click', e => {
|
|
158375
158375
|
EventHelper.stop(e);
|
|
158376
158376
|
this.previous();
|
|
@@ -158379,14 +158379,14 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
158379
158379
|
EventHelper.stop(e);
|
|
158380
158380
|
this.next();
|
|
158381
158381
|
}));
|
|
158382
|
-
const body =
|
|
158382
|
+
const body = $$1('.body');
|
|
158383
158383
|
const scrollbar = new DomScrollableElement(body, {
|
|
158384
158384
|
alwaysConsumeMouseWheel: true,
|
|
158385
158385
|
});
|
|
158386
158386
|
this._register(scrollbar);
|
|
158387
158387
|
wrapper.appendChild(scrollbar.getDomNode());
|
|
158388
|
-
const signature = append$1(body,
|
|
158389
|
-
const docs = append$1(body,
|
|
158388
|
+
const signature = append$1(body, $$1('.signature'));
|
|
158389
|
+
const docs = append$1(body, $$1('.docs'));
|
|
158390
158390
|
element.style.userSelect = 'text';
|
|
158391
158391
|
this.domNodes = {
|
|
158392
158392
|
element,
|
|
@@ -158466,14 +158466,14 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
158466
158466
|
if (!signature) {
|
|
158467
158467
|
return;
|
|
158468
158468
|
}
|
|
158469
|
-
const code = append$1(this.domNodes.signature,
|
|
158469
|
+
const code = append$1(this.domNodes.signature, $$1('.code'));
|
|
158470
158470
|
const fontInfo = this.editor.getOption(50 /* EditorOption.fontInfo */);
|
|
158471
158471
|
code.style.fontSize = `${fontInfo.fontSize}px`;
|
|
158472
158472
|
code.style.fontFamily = fontInfo.fontFamily;
|
|
158473
158473
|
const hasParameters = signature.parameters.length > 0;
|
|
158474
158474
|
const activeParameterIndex = (_a = signature.activeParameter) !== null && _a !== void 0 ? _a : hints.activeParameter;
|
|
158475
158475
|
if (!hasParameters) {
|
|
158476
|
-
const label = append$1(code,
|
|
158476
|
+
const label = append$1(code, $$1('span'));
|
|
158477
158477
|
label.textContent = signature.label;
|
|
158478
158478
|
}
|
|
158479
158479
|
else {
|
|
@@ -158481,7 +158481,7 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
158481
158481
|
}
|
|
158482
158482
|
const activeParameter = signature.parameters[activeParameterIndex];
|
|
158483
158483
|
if (activeParameter === null || activeParameter === void 0 ? void 0 : activeParameter.documentation) {
|
|
158484
|
-
const documentation =
|
|
158484
|
+
const documentation = $$1('span.documentation');
|
|
158485
158485
|
if (typeof activeParameter.documentation === 'string') {
|
|
158486
158486
|
documentation.textContent = activeParameter.documentation;
|
|
158487
158487
|
}
|
|
@@ -158489,11 +158489,11 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
158489
158489
|
const renderedContents = this.renderMarkdownDocs(activeParameter.documentation);
|
|
158490
158490
|
documentation.appendChild(renderedContents.element);
|
|
158491
158491
|
}
|
|
158492
|
-
append$1(this.domNodes.docs,
|
|
158492
|
+
append$1(this.domNodes.docs, $$1('p', {}, documentation));
|
|
158493
158493
|
}
|
|
158494
158494
|
if (signature.documentation === undefined) ;
|
|
158495
158495
|
else if (typeof signature.documentation === 'string') {
|
|
158496
|
-
append$1(this.domNodes.docs,
|
|
158496
|
+
append$1(this.domNodes.docs, $$1('p', {}, signature.documentation));
|
|
158497
158497
|
}
|
|
158498
158498
|
else {
|
|
158499
158499
|
const renderedContents = this.renderMarkdownDocs(signature.documentation);
|
|
@@ -162176,7 +162176,7 @@ let Link = class Link extends Disposable {
|
|
|
162176
162176
|
super();
|
|
162177
162177
|
this._link = _link;
|
|
162178
162178
|
this._enabled = true;
|
|
162179
|
-
this.el = append$1(container, $$
|
|
162179
|
+
this.el = append$1(container, $$e('a.monaco-link', {
|
|
162180
162180
|
tabIndex: (_a = _link.tabIndex) !== null && _a !== void 0 ? _a : 0,
|
|
162181
162181
|
href: _link.href,
|
|
162182
162182
|
title: _link.title
|
|
@@ -162250,7 +162250,7 @@ let Banner = class Banner extends Disposable {
|
|
|
162250
162250
|
super();
|
|
162251
162251
|
this.instantiationService = instantiationService;
|
|
162252
162252
|
this.markdownRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
|
|
162253
|
-
this.element = $$
|
|
162253
|
+
this.element = $$e('div.editor-banner');
|
|
162254
162254
|
this.element.tabIndex = 0;
|
|
162255
162255
|
}
|
|
162256
162256
|
getAriaLabel(item) {
|
|
@@ -162264,7 +162264,7 @@ let Banner = class Banner extends Disposable {
|
|
|
162264
162264
|
}
|
|
162265
162265
|
getBannerMessage(message) {
|
|
162266
162266
|
if (typeof message === 'string') {
|
|
162267
|
-
const element = $$
|
|
162267
|
+
const element = $$e('span');
|
|
162268
162268
|
element.innerText = message;
|
|
162269
162269
|
return element;
|
|
162270
162270
|
}
|
|
@@ -162282,24 +162282,24 @@ let Banner = class Banner extends Disposable {
|
|
|
162282
162282
|
this.element.setAttribute('aria-label', ariaLabel);
|
|
162283
162283
|
}
|
|
162284
162284
|
// Icon
|
|
162285
|
-
const iconContainer = append$1(this.element, $$
|
|
162285
|
+
const iconContainer = append$1(this.element, $$e('div.icon-container'));
|
|
162286
162286
|
iconContainer.setAttribute('aria-hidden', 'true');
|
|
162287
162287
|
if (item.icon) {
|
|
162288
|
-
iconContainer.appendChild($$
|
|
162288
|
+
iconContainer.appendChild($$e(`div${ThemeIcon.asCSSSelector(item.icon)}`));
|
|
162289
162289
|
}
|
|
162290
162290
|
// Message
|
|
162291
|
-
const messageContainer = append$1(this.element, $$
|
|
162291
|
+
const messageContainer = append$1(this.element, $$e('div.message-container'));
|
|
162292
162292
|
messageContainer.setAttribute('aria-hidden', 'true');
|
|
162293
162293
|
messageContainer.appendChild(this.getBannerMessage(item.message));
|
|
162294
162294
|
// Message Actions
|
|
162295
|
-
this.messageActionsContainer = append$1(this.element, $$
|
|
162295
|
+
this.messageActionsContainer = append$1(this.element, $$e('div.message-actions-container'));
|
|
162296
162296
|
if (item.actions) {
|
|
162297
162297
|
for (const action of item.actions) {
|
|
162298
162298
|
this._register(this.instantiationService.createInstance(Link, this.messageActionsContainer, { ...action, tabIndex: -1 }, {}));
|
|
162299
162299
|
}
|
|
162300
162300
|
}
|
|
162301
162301
|
// Action
|
|
162302
|
-
const actionBarContainer = append$1(this.element, $$
|
|
162302
|
+
const actionBarContainer = append$1(this.element, $$e('div.action-container'));
|
|
162303
162303
|
this.actionBar = this._register(new ActionBar(actionBarContainer));
|
|
162304
162304
|
this.actionBar.push(this._register(new Action('banner.close', 'Close Banner', ThemeIcon.asClassName(widgetClose), true, () => {
|
|
162305
162305
|
if (typeof item.onClose === 'function') {
|
|
@@ -164612,13 +164612,13 @@ class InspectTokensWidget extends Disposable {
|
|
|
164612
164612
|
const tokenEndIndex = token1Index + 1 < data.tokens1.length ? data.tokens1[token1Index + 1].offset : lineContent.length;
|
|
164613
164613
|
tokenText = lineContent.substring(tokenStartIndex, tokenEndIndex);
|
|
164614
164614
|
}
|
|
164615
|
-
reset(this._domNode, $$
|
|
164616
|
-
append$1(this._domNode, $$
|
|
164615
|
+
reset(this._domNode, $$e('h2.tm-token', undefined, renderTokenText(tokenText), $$e('span.tm-token-length', undefined, `${tokenText.length} ${tokenText.length === 1 ? 'char' : 'chars'}`)));
|
|
164616
|
+
append$1(this._domNode, $$e('hr.tokens-inspect-separator', { 'style': 'clear:both' }));
|
|
164617
164617
|
const metadata = (token2Index << 1) + 1 < data.tokens2.length ? this._decodeMetadata(data.tokens2[(token2Index << 1) + 1]) : null;
|
|
164618
|
-
append$1(this._domNode, $$
|
|
164619
|
-
append$1(this._domNode, $$
|
|
164618
|
+
append$1(this._domNode, $$e('table.tm-metadata-table', undefined, $$e('tbody', undefined, $$e('tr', undefined, $$e('td.tm-metadata-key', undefined, 'language'), $$e('td.tm-metadata-value', undefined, `${metadata ? metadata.languageId : '-?-'}`)), $$e('tr', undefined, $$e('td.tm-metadata-key', undefined, 'token type'), $$e('td.tm-metadata-value', undefined, `${metadata ? this._tokenTypeToString(metadata.tokenType) : '-?-'}`)), $$e('tr', undefined, $$e('td.tm-metadata-key', undefined, 'font style'), $$e('td.tm-metadata-value', undefined, `${metadata ? this._fontStyleToString(metadata.fontStyle) : '-?-'}`)), $$e('tr', undefined, $$e('td.tm-metadata-key', undefined, 'foreground'), $$e('td.tm-metadata-value', undefined, `${metadata ? Color.Format.CSS.formatHex(metadata.foreground) : '-?-'}`)), $$e('tr', undefined, $$e('td.tm-metadata-key', undefined, 'background'), $$e('td.tm-metadata-value', undefined, `${metadata ? Color.Format.CSS.formatHex(metadata.background) : '-?-'}`)))));
|
|
164619
|
+
append$1(this._domNode, $$e('hr.tokens-inspect-separator'));
|
|
164620
164620
|
if (token1Index < data.tokens1.length) {
|
|
164621
|
-
append$1(this._domNode, $$
|
|
164621
|
+
append$1(this._domNode, $$e('span.tm-token-type', undefined, data.tokens1[token1Index].type));
|
|
164622
164622
|
}
|
|
164623
164623
|
this._editor.layoutContentWidget(this);
|
|
164624
164624
|
}
|
|
@@ -168947,63 +168947,64 @@ var main = createCommonjsModule(function (module, exports) {
|
|
|
168947
168947
|
});
|
|
168948
168948
|
});
|
|
168949
168949
|
|
|
168950
|
-
|
|
168950
|
+
// src/index.ts
|
|
168951
|
+
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
|
|
168951
168952
|
function isDefaultModule(module) {
|
|
168952
|
-
|
|
168953
|
+
return module.default !== void 0;
|
|
168953
168954
|
}
|
|
168954
168955
|
async function importLayersFeatureLayer() {
|
|
168955
|
-
|
|
168956
|
-
|
|
168957
|
-
|
|
168958
|
-
|
|
168959
|
-
|
|
168956
|
+
if (isAMD) {
|
|
168957
|
+
return await window.$arcgis.import("esri/layers/FeatureLayer");
|
|
168958
|
+
}
|
|
168959
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/layers/FeatureLayer.js')); });
|
|
168960
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168960
168961
|
}
|
|
168961
168962
|
async function importPortalPortalItem() {
|
|
168962
|
-
|
|
168963
|
-
|
|
168964
|
-
|
|
168965
|
-
|
|
168966
|
-
|
|
168963
|
+
if (isAMD) {
|
|
168964
|
+
return await window.$arcgis.import("esri/portal/PortalItem");
|
|
168965
|
+
}
|
|
168966
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/portal/PortalItem.js')); });
|
|
168967
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168967
168968
|
}
|
|
168968
168969
|
async function newPortalPortalItem(properties) {
|
|
168969
|
-
|
|
168970
|
-
|
|
168970
|
+
const ModConstructor = await importPortalPortalItem();
|
|
168971
|
+
return new ModConstructor(properties);
|
|
168971
168972
|
}
|
|
168972
168973
|
async function importWebMap() {
|
|
168973
|
-
|
|
168974
|
-
|
|
168975
|
-
|
|
168976
|
-
|
|
168977
|
-
|
|
168974
|
+
if (isAMD) {
|
|
168975
|
+
return await window.$arcgis.import("esri/WebMap");
|
|
168976
|
+
}
|
|
168977
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/WebMap.js')); });
|
|
168978
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168978
168979
|
}
|
|
168979
168980
|
async function newWebMap(properties) {
|
|
168980
|
-
|
|
168981
|
-
|
|
168981
|
+
const ModConstructor = await importWebMap();
|
|
168982
|
+
return new ModConstructor(properties);
|
|
168982
168983
|
}
|
|
168983
168984
|
async function importWebScene() {
|
|
168984
|
-
|
|
168985
|
-
|
|
168986
|
-
|
|
168987
|
-
|
|
168988
|
-
|
|
168985
|
+
if (isAMD) {
|
|
168986
|
+
return await window.$arcgis.import("esri/WebScene");
|
|
168987
|
+
}
|
|
168988
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/WebScene.js')); });
|
|
168989
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168989
168990
|
}
|
|
168990
168991
|
async function newWebScene(properties) {
|
|
168991
|
-
|
|
168992
|
-
|
|
168992
|
+
const ModConstructor = await importWebScene();
|
|
168993
|
+
return new ModConstructor(properties);
|
|
168993
168994
|
}
|
|
168994
168995
|
async function importArcade() {
|
|
168995
|
-
|
|
168996
|
-
|
|
168997
|
-
|
|
168998
|
-
|
|
168999
|
-
|
|
168996
|
+
if (isAMD) {
|
|
168997
|
+
return await window.$arcgis.import("esri/arcade");
|
|
168998
|
+
}
|
|
168999
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/arcade.js')); });
|
|
169000
|
+
return isDefaultModule(module) ? module.default : module;
|
|
169000
169001
|
}
|
|
169001
169002
|
async function importRequest() {
|
|
169002
|
-
|
|
169003
|
-
|
|
169004
|
-
|
|
169005
|
-
|
|
169006
|
-
|
|
169003
|
+
if (isAMD) {
|
|
169004
|
+
return await window.$arcgis.import("esri/request");
|
|
169005
|
+
}
|
|
169006
|
+
const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/request.js')); });
|
|
169007
|
+
return isDefaultModule(module) ? module.default : module;
|
|
169007
169008
|
}
|
|
169008
169009
|
|
|
169009
169010
|
//#region core adapter fix
|
|
@@ -169190,7 +169191,7 @@ function filterFeatureLayerInfos(layers, queryCapability) {
|
|
|
169190
169191
|
}
|
|
169191
169192
|
//#endregion
|
|
169192
169193
|
|
|
169193
|
-
var h=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function
|
|
169194
|
+
var h=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function w(e,t){let n=e;for(;n;){if(n===t)return !0;if(!n.parentNode)return !1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode;}return !1}function b(e,t,n){let{subscribe:r}=$(t);return r(o=>{o.some(s=>w(e,s.target))&&n();})}var f={};function $(e){let t=e.join(","),n=f[t];if(n!==void 0)return n;let r=new Set,o=new MutationObserver(s=>r.forEach(a=>a(s)));o.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let i={subscribe(s){return r.add(s),{remove:()=>{r.delete(s),r.size===0&&(o.disconnect(),f[t]=void 0);}}}};return f[t]=i,i}function x(e,t){let n=e;for(;n;){let r=n.closest(t);if(r)return r;let o=n.getRootNode();if(o===document)return null;n=o.host;}return null}function _(e){let t=x(e,":is(.calcite-mode-light, .calcite-mode-dark)");return t&&t.classList.contains("calcite-mode-dark")?"dark":"light"}function F(e){return e.nodeType===Node.ELEMENT_NODE}function O(e){return "setFocus"in e&&typeof e.setFocus=="function"}function l(e,t=""){if(!F(e))return !1;if(e.matches(t))return O(e)&&setTimeout(()=>e.setFocus(),0),!0;for(let r of e.children)if(l(r,t))return !0;let n=e.shadowRoot;if(n){for(let r of n.children)if(l(r,t))return !0}return !1}function W(e,t){if(!e?.shadowRoot)return;if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){l(e,t);return}let n=new MutationObserver(()=>{n.disconnect(),l(e,t);});n.observe(e,{attributes:!0,attributeFilter:["hydrated","calcite-hydrated"]});}function c(e){let t="";for(let n=0;n<e;n++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t}function Q(){return [c(2),c(1),c(1),c(1),c(3)].join("-")}var A=e=>e.charAt(0).toUpperCase()+e.slice(1),T=e=>A(e.replaceAll(/([a-z])([A-Z])/gu,"$1 $2"));var v=new Set(["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"]),g="en";async function j(e,t,n=""){let r=`${t}/${n}`,o=`${r}${e}.json`;return u[o]??(u[o]=S(e,r)),await u[o]}var u={};async function S(e,t){let n=`${t}${e}.json`;try{let r=await fetch(n);if(r.ok)return await r.json()}catch(r){return console.error(r),E}return e===g?E:await S(g,t)}var E=new Proxy({},{get:(e,t)=>T(t.toString())});var y='"',N="'";function L(e,t){return new Array(t+1).join(e)}function te(e){let t=y,n=N;e.includes(t)&&!e.includes(n)&&(n=y,t=N);let o=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${n})+)`,"gu");e=e.replace(o,(s,a,d,p)=>a+d+L(n,p.length/2));let i=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return e=e.replace(i,(s,a,d,p)=>a+d+L(`\\${t}`,p.length)),t+e+t}function ne(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")}function re(e,t={}){return (e??"").replace(/\{(.*?)\}/gu,(n,r)=>t[r]??n)}function oe(e){return `\u200E${e??""}\u200E`}function ie(e){return e!==null}function ae(e){return e!==void 0}function le(e,t=100){let n;return (...r)=>{let o=()=>{clearTimeout(n),e(...r);};clearTimeout(n),n=setTimeout(o,t);}}function ge(e,t,n=!1){if(!e||!t)return !1;let r=new URL(e),o=new URL(t);return !n&&r.protocol!==o.protocol||r.host==null||o.host==null?!1:r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function de(e){try{return new URL(e),!0}catch{return !1}}
|
|
169194
169195
|
|
|
169195
169196
|
/**
|
|
169196
169197
|
* Filters a collection of items by the given keys and filter word.
|
|
@@ -169203,7 +169204,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
|
|
|
169203
169204
|
if (!_keys.length) {
|
|
169204
169205
|
return [];
|
|
169205
169206
|
}
|
|
169206
|
-
const filterExpression =
|
|
169207
|
+
const filterExpression = ne(filterWord);
|
|
169207
169208
|
return collection.filter((item) => {
|
|
169208
169209
|
if (beforeFilteringFn) {
|
|
169209
169210
|
const res = beforeFilteringFn(item);
|
|
@@ -169547,9 +169548,9 @@ class ProfileItemBase {
|
|
|
169547
169548
|
// If the component is under RTL, the string is messed up.
|
|
169548
169549
|
// It is converted from $feature to feature$, This is not acceptable since the label
|
|
169549
169550
|
// represents a variable name. We are adding in front of the $ sign a right to left mark.
|
|
169550
|
-
return
|
|
169551
|
+
return oe(this._label);
|
|
169551
169552
|
}
|
|
169552
|
-
return
|
|
169553
|
+
return re(this._profile?.intlStrings[this._label.code], this._label.formatValues);
|
|
169553
169554
|
}
|
|
169554
169555
|
/**
|
|
169555
169556
|
* Returns the description string.
|
|
@@ -169561,7 +169562,7 @@ class ProfileItemBase {
|
|
|
169561
169562
|
if (typeof this.description === "string") {
|
|
169562
169563
|
return this.description;
|
|
169563
169564
|
}
|
|
169564
|
-
return
|
|
169565
|
+
return re(this._profile?.intlStrings[this.description.code], this.description.formatValues);
|
|
169565
169566
|
}
|
|
169566
169567
|
/**
|
|
169567
169568
|
* Returns true if the item pass the filter test
|
|
@@ -169802,7 +169803,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169802
169803
|
return this._profile?.intlStrings.layer ?? "layer";
|
|
169803
169804
|
}
|
|
169804
169805
|
async loadSource() {
|
|
169805
|
-
if (
|
|
169806
|
+
if (ie(this._loadPromise) && ae(this._loadPromise)) {
|
|
169806
169807
|
return await this._loadPromise;
|
|
169807
169808
|
}
|
|
169808
169809
|
this._loadPromise = this._loadSource();
|
|
@@ -170070,7 +170071,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170070
170071
|
nonInteractive: true
|
|
170071
170072
|
}, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
|
|
170072
170073
|
}));
|
|
170073
|
-
relationshipsGroup.variables = relationshipItems.filter(
|
|
170074
|
+
relationshipsGroup.variables = relationshipItems.filter(ie);
|
|
170074
170075
|
if (!relationshipsGroup.variables.length) {
|
|
170075
170076
|
return null;
|
|
170076
170077
|
}
|
|
@@ -170234,7 +170235,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170234
170235
|
return this._profile?.intlStrings.map ?? "map";
|
|
170235
170236
|
}
|
|
170236
170237
|
async loadSource() {
|
|
170237
|
-
if (
|
|
170238
|
+
if (ie(this._loadPromise) && ae(this._loadPromise)) {
|
|
170238
170239
|
return await this._loadPromise;
|
|
170239
170240
|
}
|
|
170240
170241
|
this._loadPromise = this._loadSource();
|
|
@@ -170481,7 +170482,7 @@ async function getSdkPredefinedProfiles(locale = "en") {
|
|
|
170481
170482
|
if (profiles) {
|
|
170482
170483
|
return profiles;
|
|
170483
170484
|
}
|
|
170484
|
-
if (!
|
|
170485
|
+
if (!v.has(locale)) {
|
|
170485
170486
|
return await getSdkPredefinedProfiles("en");
|
|
170486
170487
|
}
|
|
170487
170488
|
try {
|
|
@@ -170652,7 +170653,7 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170652
170653
|
if (isPredefinedProfile(definition)) {
|
|
170653
170654
|
definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
|
|
170654
170655
|
}
|
|
170655
|
-
const intlStrings = await
|
|
170656
|
+
const intlStrings = await j(apiContext.locale, index.getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
170656
170657
|
if (!intlStrings) {
|
|
170657
170658
|
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
170658
170659
|
}
|
|
@@ -170734,38 +170735,36 @@ const arcade = {
|
|
|
170734
170735
|
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
|
|
170735
170736
|
};
|
|
170736
170737
|
|
|
170737
|
-
exports.B = B;
|
|
170738
|
-
exports.D = D;
|
|
170739
170738
|
exports.Emitter = Emitter;
|
|
170740
|
-
exports.G = G;
|
|
170741
170739
|
exports.IStandaloneThemeService = IStandaloneThemeService;
|
|
170742
|
-
exports.K = K;
|
|
170743
170740
|
exports.KeyCode = KeyCode;
|
|
170744
170741
|
exports.KeyMod = KeyMod;
|
|
170745
170742
|
exports.MarkerSeverity = MarkerSeverity;
|
|
170743
|
+
exports.Q = Q;
|
|
170746
170744
|
exports.Range = Range;
|
|
170747
|
-
exports.U = U;
|
|
170748
170745
|
exports.Uri = Uri;
|
|
170749
170746
|
exports.W = W;
|
|
170750
|
-
exports.
|
|
170747
|
+
exports._ = _;
|
|
170751
170748
|
exports.arcade = arcade;
|
|
170752
170749
|
exports.arcadeDefaults = arcadeDefaults;
|
|
170750
|
+
exports.b = b;
|
|
170753
170751
|
exports.commonjsGlobal = commonjsGlobal;
|
|
170754
170752
|
exports.createCommonjsModule = createCommonjsModule;
|
|
170753
|
+
exports.de = de;
|
|
170755
170754
|
exports.editor = editor;
|
|
170756
170755
|
exports.filterCollection = filterCollection;
|
|
170756
|
+
exports.ge = ge;
|
|
170757
170757
|
exports.generateTokensCSSForColorMap = generateTokensCSSForColorMap;
|
|
170758
170758
|
exports.h = h;
|
|
170759
|
-
exports.ie = ie;
|
|
170760
170759
|
exports.importArcade = importArcade;
|
|
170761
170760
|
exports.importRequest = importRequest;
|
|
170762
|
-
exports.k = k;
|
|
170763
170761
|
exports.languages = languages;
|
|
170762
|
+
exports.le = le;
|
|
170764
170763
|
exports.main = main;
|
|
170765
170764
|
exports.monaco_editor_core_star = monaco_editor_core_star;
|
|
170766
|
-
exports.
|
|
170765
|
+
exports.ne = ne;
|
|
170766
|
+
exports.oe = oe;
|
|
170767
170767
|
exports.re = re;
|
|
170768
|
-
exports.se = se;
|
|
170769
170768
|
exports.supportedFields = supportedFields;
|
|
170769
|
+
exports.te = te;
|
|
170770
170770
|
exports.typescriptDefaults = typescriptDefaults;
|
|
170771
|
-
exports.x = x;
|