@arcgis/coding-components 4.30.0-next.21 → 4.30.0-next.23
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-250241d4.entry.js +6 -0
- package/dist/arcgis-coding-components/p-3217369b.js +68 -0
- package/dist/arcgis-coding-components/{p-1451e0cc.js → p-49bca36f.js} +2 -2
- package/dist/arcgis-coding-components/{p-192601ca.js → p-5b2565ca.js} +2 -2
- package/dist/arcgis-coding-components/p-600be247.js +6 -0
- package/dist/arcgis-coding-components/{p-0e7b5896.js → p-64abf203.js} +2 -2
- package/dist/arcgis-coding-components/{p-253f92ea.js → p-68006f08.js} +2 -2
- package/dist/arcgis-coding-components/p-716a8741.js +6 -0
- package/dist/arcgis-coding-components/{p-b177db92.js → p-9b73a641.js} +3 -3
- package/dist/arcgis-coding-components/{p-a63eeed9.js → p-bc0aa910.js} +1 -1
- package/dist/arcgis-coding-components/{p-cb5166f2.js → p-c0185a0d.js} +2 -2
- package/dist/arcgis-coding-components/{p-5583b25d.js → p-d7560609.js} +2 -2
- package/dist/arcgis-coding-components/p-de307b87.js +6 -0
- package/dist/arcgis-coding-components/{p-eb16cce2.js → p-f75b073c.js} +2 -2
- package/dist/arcgis-coding-components/p-ff1c764c.js +7 -0
- package/dist/cjs/Accessor-YDTURKZ7-2cd6deb4.js +1249 -0
- package/dist/cjs/{arcade-defaults-9d57f506.js → arcade-defaults-fb1a3fd7.js} +294 -295
- package/dist/cjs/{arcade-mode-9079b8e0.js → arcade-mode-2560e670.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-60e6be60.js +1286 -0
- package/dist/cjs/{css-9aa4569b.js → css-f659c186.js} +1 -1
- package/dist/cjs/{cssMode-6f57c416.js → cssMode-6a246ae2.js} +3 -3
- package/dist/cjs/decorators-443AWDOE-fb0006fa.js +120 -0
- package/dist/cjs/{html-95d3a234.js → html-d999957e.js} +3 -3
- package/dist/cjs/{htmlMode-ebd8894d.js → htmlMode-777d5d7e.js} +3 -3
- package/dist/cjs/{index-a3f52cf5.js → index-60fec5d8.js} +42 -4
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-1a01235b.js → javascript-5c4612fc.js} +4 -4
- package/dist/cjs/{jsonMode-26ed7799.js → jsonMode-21544f43.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-9cfeb9a5.js → tsMode-34b259f1.js} +3 -3
- package/dist/cjs/{typescript-f9907455.js → typescript-6f9695a1.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-dcaf409b.js +1247 -0
- package/dist/esm/{arcade-defaults-1577045c.js → arcade-defaults-9833f532.js} +286 -285
- package/dist/esm/{arcade-mode-ec8b7890.js → arcade-mode-a9774d50.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-2da97f52.js +1257 -0
- package/dist/esm/{css-6350c0f7.js → css-294de2b5.js} +1 -1
- package/dist/esm/{cssMode-629b1349.js → cssMode-8bf465a1.js} +3 -3
- package/dist/esm/decorators-443AWDOE-8b8ddc71.js +109 -0
- package/dist/esm/{html-979016b0.js → html-df0c0abf.js} +3 -3
- package/dist/esm/{htmlMode-dd504dae.js → htmlMode-379ba474.js} +3 -3
- package/dist/esm/{index-093931a1.js → index-aafc3e0b.js} +42 -5
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-7af48cb1.js → javascript-7f02143c.js} +4 -4
- package/dist/esm/{jsonMode-eb6b41d1.js → jsonMode-0db8e4ac.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-64deb000.js → tsMode-8bd448ad.js} +3 -3
- package/dist/esm/{typescript-c9b14542.js → typescript-a14f4a55.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,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.23
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-aafc3e0b.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns the last element of an array.
|
|
@@ -20230,10 +20230,10 @@ function _$(namespace, description, attrs, ...children) {
|
|
|
20230
20230
|
result.append(...children);
|
|
20231
20231
|
return result;
|
|
20232
20232
|
}
|
|
20233
|
-
function $$
|
|
20233
|
+
function $$e(description, attrs, ...children) {
|
|
20234
20234
|
return _$(Namespace.HTML, description, attrs, ...children);
|
|
20235
20235
|
}
|
|
20236
|
-
$$
|
|
20236
|
+
$$e.SVG = function (description, attrs, ...children) {
|
|
20237
20237
|
return _$(Namespace.SVG, description, attrs, ...children);
|
|
20238
20238
|
};
|
|
20239
20239
|
function setVisibility(visible, ...elements) {
|
|
@@ -82164,7 +82164,7 @@ class ContextView extends Disposable {
|
|
|
82164
82164
|
this.toDisposeOnSetContainer = Disposable.None;
|
|
82165
82165
|
this.shadowRoot = null;
|
|
82166
82166
|
this.shadowRootHostElement = null;
|
|
82167
|
-
this.view = $$
|
|
82167
|
+
this.view = $$e('.context-view');
|
|
82168
82168
|
hide(this.view);
|
|
82169
82169
|
this.setContainer(container, domPosition);
|
|
82170
82170
|
this._register(toDisposable(() => this.setContainer(null, 1 /* ContextViewDOMPosition.ABSOLUTE */)));
|
|
@@ -82193,14 +82193,14 @@ class ContextView extends Disposable {
|
|
|
82193
82193
|
if (container) {
|
|
82194
82194
|
this.container = container;
|
|
82195
82195
|
if (this.useShadowDOM) {
|
|
82196
|
-
this.shadowRootHostElement = $$
|
|
82196
|
+
this.shadowRootHostElement = $$e('.shadow-root-host');
|
|
82197
82197
|
this.container.appendChild(this.shadowRootHostElement);
|
|
82198
82198
|
this.shadowRoot = this.shadowRootHostElement.attachShadow({ mode: 'open' });
|
|
82199
82199
|
const style = document.createElement('style');
|
|
82200
82200
|
style.textContent = SHADOW_ROOT_CSS;
|
|
82201
82201
|
this.shadowRoot.appendChild(style);
|
|
82202
82202
|
this.shadowRoot.appendChild(this.view);
|
|
82203
|
-
this.shadowRoot.appendChild($$
|
|
82203
|
+
this.shadowRoot.appendChild($$e('slot'));
|
|
82204
82204
|
}
|
|
82205
82205
|
else {
|
|
82206
82206
|
this.container.appendChild(this.view);
|
|
@@ -84681,7 +84681,7 @@ function renderLabelWithIcons(text) {
|
|
|
84681
84681
|
return elements;
|
|
84682
84682
|
}
|
|
84683
84683
|
function renderIcon(icon) {
|
|
84684
|
-
const node = $$
|
|
84684
|
+
const node = $$e(`span`);
|
|
84685
84685
|
node.classList.add(...ThemeIcon.asClassNameArray(icon));
|
|
84686
84686
|
return node;
|
|
84687
84687
|
}
|
|
@@ -88713,7 +88713,7 @@ class RowCache {
|
|
|
88713
88713
|
}
|
|
88714
88714
|
}
|
|
88715
88715
|
else {
|
|
88716
|
-
const domNode = $$
|
|
88716
|
+
const domNode = $$e('.monaco-list-row');
|
|
88717
88717
|
const renderer = this.getRenderer(templateId);
|
|
88718
88718
|
const templateData = renderer.renderTemplate(domNode);
|
|
88719
88719
|
result = { domNode, templateId, templateData };
|
|
@@ -89477,7 +89477,7 @@ class ListView {
|
|
|
89477
89477
|
if (typeof label === 'undefined') {
|
|
89478
89478
|
label = String(elements.length);
|
|
89479
89479
|
}
|
|
89480
|
-
const dragImage = $$
|
|
89480
|
+
const dragImage = $$e('.monaco-drag-image');
|
|
89481
89481
|
dragImage.textContent = label;
|
|
89482
89482
|
const getDragImageContainer = (e) => {
|
|
89483
89483
|
while (e && !e.classList.contains('monaco-workbench')) {
|
|
@@ -91338,16 +91338,16 @@ __decorate$1V([
|
|
|
91338
91338
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
91339
91339
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
91340
91340
|
*--------------------------------------------------------------------------------------------*/
|
|
91341
|
-
const $$
|
|
91341
|
+
const $$d = $$e;
|
|
91342
91342
|
const SELECT_OPTION_ENTRY_TEMPLATE_ID = 'selectOption.entry.template';
|
|
91343
91343
|
class SelectListRenderer {
|
|
91344
91344
|
get templateId() { return SELECT_OPTION_ENTRY_TEMPLATE_ID; }
|
|
91345
91345
|
renderTemplate(container) {
|
|
91346
91346
|
const data = Object.create(null);
|
|
91347
91347
|
data.root = container;
|
|
91348
|
-
data.text = append$1(container, $$
|
|
91349
|
-
data.detail = append$1(container, $$
|
|
91350
|
-
data.decoratorRight = append$1(container, $$
|
|
91348
|
+
data.text = append$1(container, $$d('.option-text'));
|
|
91349
|
+
data.detail = append$1(container, $$d('.option-detail'));
|
|
91350
|
+
data.decoratorRight = append$1(container, $$d('.option-decorator-right'));
|
|
91351
91351
|
return data;
|
|
91352
91352
|
}
|
|
91353
91353
|
renderElement(element, index, templateData) {
|
|
@@ -91418,14 +91418,14 @@ class SelectBoxList extends Disposable {
|
|
|
91418
91418
|
constructSelectDropDown(contextViewProvider) {
|
|
91419
91419
|
// SetUp ContextView container to hold select Dropdown
|
|
91420
91420
|
this.contextViewProvider = contextViewProvider;
|
|
91421
|
-
this.selectDropDownContainer = $$
|
|
91421
|
+
this.selectDropDownContainer = $$e('.monaco-select-box-dropdown-container');
|
|
91422
91422
|
// Use custom CSS vars for padding calculation (shared with parent select)
|
|
91423
91423
|
this.selectDropDownContainer.classList.add('monaco-select-box-dropdown-padding');
|
|
91424
91424
|
// Setup container for select option details
|
|
91425
|
-
this.selectionDetailsPane = append$1(this.selectDropDownContainer, $$
|
|
91425
|
+
this.selectionDetailsPane = append$1(this.selectDropDownContainer, $$d('.select-box-details-pane'));
|
|
91426
91426
|
// Create span flex box item/div we can measure and control
|
|
91427
|
-
const widthControlOuterDiv = append$1(this.selectDropDownContainer, $$
|
|
91428
|
-
const widthControlInnerDiv = append$1(widthControlOuterDiv, $$
|
|
91427
|
+
const widthControlOuterDiv = append$1(this.selectDropDownContainer, $$d('.select-box-dropdown-container-width-control'));
|
|
91428
|
+
const widthControlInnerDiv = append$1(widthControlOuterDiv, $$d('.width-control-div'));
|
|
91429
91429
|
this.widthControlElement = document.createElement('span');
|
|
91430
91430
|
this.widthControlElement.className = 'option-text-width-control';
|
|
91431
91431
|
append$1(widthControlInnerDiv, this.widthControlElement);
|
|
@@ -91868,7 +91868,7 @@ class SelectBoxList extends Disposable {
|
|
|
91868
91868
|
return;
|
|
91869
91869
|
}
|
|
91870
91870
|
// SetUp container for list
|
|
91871
|
-
this.selectDropDownListContainer = append$1(parent, $$
|
|
91871
|
+
this.selectDropDownListContainer = append$1(parent, $$d('.select-box-dropdown-list-container'));
|
|
91872
91872
|
this.listRenderer = new SelectListRenderer();
|
|
91873
91873
|
this.selectList = new List('SelectBoxCustom', this.selectDropDownListContainer, this, [this.listRenderer], {
|
|
91874
91874
|
useShadows: false,
|
|
@@ -92716,8 +92716,8 @@ class BaseDropdown extends ActionRunner {
|
|
|
92716
92716
|
super();
|
|
92717
92717
|
this._onDidChangeVisibility = this._register(new Emitter$1());
|
|
92718
92718
|
this.onDidChangeVisibility = this._onDidChangeVisibility.event;
|
|
92719
|
-
this._element = append$1(container, $$
|
|
92720
|
-
this._label = append$1(this._element, $$
|
|
92719
|
+
this._element = append$1(container, $$e('.monaco-dropdown'));
|
|
92720
|
+
this._label = append$1(this._element, $$e('.dropdown-label'));
|
|
92721
92721
|
let labelRenderer = options.labelRenderer;
|
|
92722
92722
|
if (!labelRenderer) {
|
|
92723
92723
|
labelRenderer = (container) => {
|
|
@@ -92857,7 +92857,7 @@ class DropdownMenuActionViewItem extends BaseActionViewItem {
|
|
|
92857
92857
|
render(container) {
|
|
92858
92858
|
this.actionItem = container;
|
|
92859
92859
|
const labelRenderer = (el) => {
|
|
92860
|
-
this.element = append$1(el, $$
|
|
92860
|
+
this.element = append$1(el, $$e('a.action-label'));
|
|
92861
92861
|
let classNames = [];
|
|
92862
92862
|
if (typeof this.options.classNames === 'string') {
|
|
92863
92863
|
classNames = this.options.classNames.split(/\s+/g).filter(s => !!s);
|
|
@@ -93786,7 +93786,7 @@ let DropdownWithDefaultActionViewItem = class DropdownWithDefaultActionViewItem
|
|
|
93786
93786
|
}
|
|
93787
93787
|
}();
|
|
93788
93788
|
if (this._container) {
|
|
93789
|
-
this._defaultAction.render(prepend$1(this._container, $$
|
|
93789
|
+
this._defaultAction.render(prepend$1(this._container, $$e('.action-container')));
|
|
93790
93790
|
}
|
|
93791
93791
|
}
|
|
93792
93792
|
_getDefaultActionKeybindingLabel(defaultAction) {
|
|
@@ -93809,7 +93809,7 @@ let DropdownWithDefaultActionViewItem = class DropdownWithDefaultActionViewItem
|
|
|
93809
93809
|
this._container = container;
|
|
93810
93810
|
super.render(this._container);
|
|
93811
93811
|
this._container.classList.add('monaco-dropdown-with-default');
|
|
93812
|
-
const primaryContainer = $$
|
|
93812
|
+
const primaryContainer = $$e('.action-container');
|
|
93813
93813
|
this._defaultAction.render(append$1(this._container, primaryContainer));
|
|
93814
93814
|
this._register(addDisposableListener(primaryContainer, EventType$1.KEY_DOWN, (e) => {
|
|
93815
93815
|
const event = new StandardKeyboardEvent(e);
|
|
@@ -93819,7 +93819,7 @@ let DropdownWithDefaultActionViewItem = class DropdownWithDefaultActionViewItem
|
|
|
93819
93819
|
event.stopPropagation();
|
|
93820
93820
|
}
|
|
93821
93821
|
}));
|
|
93822
|
-
const dropdownContainer = $$
|
|
93822
|
+
const dropdownContainer = $$e('.dropdown-action-container');
|
|
93823
93823
|
this._dropdown.render(append$1(this._container, dropdownContainer));
|
|
93824
93824
|
this._register(addDisposableListener(dropdownContainer, EventType$1.KEY_DOWN, (e) => {
|
|
93825
93825
|
var _a;
|
|
@@ -94666,7 +94666,7 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
94666
94666
|
return;
|
|
94667
94667
|
}
|
|
94668
94668
|
this.container = container;
|
|
94669
|
-
this.item = append$1(this.element, $$
|
|
94669
|
+
this.item = append$1(this.element, $$e('a.action-menu-item'));
|
|
94670
94670
|
if (this._action.id === Separator.ID) {
|
|
94671
94671
|
// A separator is a presentation item
|
|
94672
94672
|
this.item.setAttribute('role', 'presentation');
|
|
@@ -94677,11 +94677,11 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
94677
94677
|
this.item.setAttribute('aria-keyshortcuts', `${this.mnemonic}`);
|
|
94678
94678
|
}
|
|
94679
94679
|
}
|
|
94680
|
-
this.check = append$1(this.item, $$
|
|
94680
|
+
this.check = append$1(this.item, $$e('span.menu-item-check' + ThemeIcon.asCSSSelector(Codicon.menuSelection)));
|
|
94681
94681
|
this.check.setAttribute('role', 'none');
|
|
94682
|
-
this.label = append$1(this.item, $$
|
|
94682
|
+
this.label = append$1(this.item, $$e('span.action-label'));
|
|
94683
94683
|
if (this.options.label && this.options.keybinding) {
|
|
94684
|
-
append$1(this.item, $$
|
|
94684
|
+
append$1(this.item, $$e('span.keybinding')).textContent = this.options.keybinding;
|
|
94685
94685
|
}
|
|
94686
94686
|
// Adds mouse up listener to actually run the action
|
|
94687
94687
|
this.runOnceToEnableMouseUp.schedule();
|
|
@@ -94734,7 +94734,7 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
94734
94734
|
}
|
|
94735
94735
|
const replaceDoubleEscapes = (str) => str.replace(/&&/g, '&');
|
|
94736
94736
|
if (escMatch) {
|
|
94737
|
-
this.label.append(ltrim(replaceDoubleEscapes(label.substr(0, escMatch.index)), ' '), $$
|
|
94737
|
+
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)), ' '));
|
|
94738
94738
|
}
|
|
94739
94739
|
else {
|
|
94740
94740
|
this.label.innerText = replaceDoubleEscapes(label).trim();
|
|
@@ -94857,7 +94857,7 @@ class SubmenuMenuActionViewItem extends BaseMenuActionViewItem {
|
|
|
94857
94857
|
this.item.tabIndex = 0;
|
|
94858
94858
|
this.item.setAttribute('aria-haspopup', 'true');
|
|
94859
94859
|
this.updateAriaExpanded('false');
|
|
94860
|
-
this.submenuIndicator = append$1(this.item, $$
|
|
94860
|
+
this.submenuIndicator = append$1(this.item, $$e('span.submenu-indicator' + ThemeIcon.asCSSSelector(Codicon.menuSubmenu)));
|
|
94861
94861
|
this.submenuIndicator.setAttribute('aria-hidden', 'true');
|
|
94862
94862
|
}
|
|
94863
94863
|
this._register(addDisposableListener(this.element, EventType$1.KEY_UP, e => {
|
|
@@ -94948,7 +94948,7 @@ class SubmenuMenuActionViewItem extends BaseMenuActionViewItem {
|
|
|
94948
94948
|
}
|
|
94949
94949
|
if (!this.parentData.submenu) {
|
|
94950
94950
|
this.updateAriaExpanded('true');
|
|
94951
|
-
this.submenuContainer = append$1(this.element, $$
|
|
94951
|
+
this.submenuContainer = append$1(this.element, $$e('div.monaco-submenu'));
|
|
94952
94952
|
this.submenuContainer.classList.add('menubar-menu-items-holder', 'context-view');
|
|
94953
94953
|
// Set the top value of the menu container before construction
|
|
94954
94954
|
// This allows the menu constructor to calculate the proper max height
|
|
@@ -95486,7 +95486,7 @@ class ContextMenuHandler {
|
|
|
95486
95486
|
}
|
|
95487
95487
|
// Render invisible div to block mouse interaction in the rest of the UI
|
|
95488
95488
|
if (this.options.blockMouse) {
|
|
95489
|
-
this.block = container.appendChild($$
|
|
95489
|
+
this.block = container.appendChild($$e('.context-view-block'));
|
|
95490
95490
|
this.block.style.position = 'fixed';
|
|
95491
95491
|
this.block.style.cursor = 'initial';
|
|
95492
95492
|
this.block.style.left = '0';
|
|
@@ -96940,7 +96940,7 @@ class Sash extends Disposable {
|
|
|
96940
96940
|
const onChange = (state) => {
|
|
96941
96941
|
this.orthogonalStartDragHandleDisposables.clear();
|
|
96942
96942
|
if (state !== 0 /* SashState.Disabled */) {
|
|
96943
|
-
this._orthogonalStartDragHandle = append$1(this.el, $$
|
|
96943
|
+
this._orthogonalStartDragHandle = append$1(this.el, $$e('.orthogonal-drag-handle.start'));
|
|
96944
96944
|
this.orthogonalStartDragHandleDisposables.add(toDisposable(() => this._orthogonalStartDragHandle.remove()));
|
|
96945
96945
|
this.orthogonalStartDragHandleDisposables.add(new DomEmitter(this._orthogonalStartDragHandle, 'mouseenter')).event(() => Sash.onMouseEnter(sash), undefined, this.orthogonalStartDragHandleDisposables);
|
|
96946
96946
|
this.orthogonalStartDragHandleDisposables.add(new DomEmitter(this._orthogonalStartDragHandle, 'mouseleave')).event(() => Sash.onMouseLeave(sash), undefined, this.orthogonalStartDragHandleDisposables);
|
|
@@ -96969,7 +96969,7 @@ class Sash extends Disposable {
|
|
|
96969
96969
|
const onChange = (state) => {
|
|
96970
96970
|
this.orthogonalEndDragHandleDisposables.clear();
|
|
96971
96971
|
if (state !== 0 /* SashState.Disabled */) {
|
|
96972
|
-
this._orthogonalEndDragHandle = append$1(this.el, $$
|
|
96972
|
+
this._orthogonalEndDragHandle = append$1(this.el, $$e('.orthogonal-drag-handle.end'));
|
|
96973
96973
|
this.orthogonalEndDragHandleDisposables.add(toDisposable(() => this._orthogonalEndDragHandle.remove()));
|
|
96974
96974
|
this.orthogonalEndDragHandleDisposables.add(new DomEmitter(this._orthogonalEndDragHandle, 'mouseenter')).event(() => Sash.onMouseEnter(sash), undefined, this.orthogonalEndDragHandleDisposables);
|
|
96975
96975
|
this.orthogonalEndDragHandleDisposables.add(new DomEmitter(this._orthogonalEndDragHandle, 'mouseleave')).event(() => Sash.onMouseLeave(sash), undefined, this.orthogonalEndDragHandleDisposables);
|
|
@@ -97018,7 +97018,7 @@ class Sash extends Disposable {
|
|
|
97018
97018
|
* Useful in 2x2 grids. Not meant for widespread usage.
|
|
97019
97019
|
*/
|
|
97020
97020
|
this.linkedSash = undefined;
|
|
97021
|
-
this.el = append$1(container, $$
|
|
97021
|
+
this.el = append$1(container, $$e('.monaco-sash'));
|
|
97022
97022
|
if (options.orthogonalEdge) {
|
|
97023
97023
|
this.el.classList.add(`orthogonal-edge-${options.orthogonalEdge}`);
|
|
97024
97024
|
}
|
|
@@ -97470,8 +97470,8 @@ class SplitView extends Disposable {
|
|
|
97470
97470
|
this.el.classList.add('monaco-split-view2');
|
|
97471
97471
|
this.el.classList.add(this.orientation === 0 /* Orientation.VERTICAL */ ? 'vertical' : 'horizontal');
|
|
97472
97472
|
container.appendChild(this.el);
|
|
97473
|
-
this.sashContainer = append$1(this.el, $$
|
|
97474
|
-
this.viewContainer = $$
|
|
97473
|
+
this.sashContainer = append$1(this.el, $$e('.sash-container'));
|
|
97474
|
+
this.viewContainer = $$e('.split-view-container');
|
|
97475
97475
|
this.scrollable = this._register(new Scrollable({
|
|
97476
97476
|
forceIntegerValues: true,
|
|
97477
97477
|
smoothScrollDuration: 125,
|
|
@@ -97756,7 +97756,7 @@ class SplitView extends Disposable {
|
|
|
97756
97756
|
this.state = State.Busy;
|
|
97757
97757
|
try {
|
|
97758
97758
|
// Add view
|
|
97759
|
-
const container = $$
|
|
97759
|
+
const container = $$e('.split-view-view');
|
|
97760
97760
|
if (index === this.viewItems.length) {
|
|
97761
97761
|
this.viewContainer.appendChild(container);
|
|
97762
97762
|
}
|
|
@@ -98082,12 +98082,12 @@ class TableListRenderer {
|
|
|
98082
98082
|
}
|
|
98083
98083
|
}
|
|
98084
98084
|
renderTemplate(container) {
|
|
98085
|
-
const rowContainer = append$1(container, $$
|
|
98085
|
+
const rowContainer = append$1(container, $$e('.monaco-table-tr'));
|
|
98086
98086
|
const cellContainers = [];
|
|
98087
98087
|
const cellTemplateData = [];
|
|
98088
98088
|
for (let i = 0; i < this.columns.length; i++) {
|
|
98089
98089
|
const renderer = this.renderers[i];
|
|
98090
|
-
const cellContainer = append$1(rowContainer, $$
|
|
98090
|
+
const cellContainer = append$1(rowContainer, $$e('.monaco-table-td', { 'data-col-index': i }));
|
|
98091
98091
|
cellContainer.style.width = `${this.getColumnSize(i)}px`;
|
|
98092
98092
|
cellContainers.push(cellContainer);
|
|
98093
98093
|
cellTemplateData.push(renderer.renderTemplate(cellContainer));
|
|
@@ -98144,7 +98144,7 @@ class ColumnHeader {
|
|
|
98144
98144
|
this.index = index;
|
|
98145
98145
|
this._onDidLayout = new Emitter$1();
|
|
98146
98146
|
this.onDidLayout = this._onDidLayout.event;
|
|
98147
|
-
this.element = $$
|
|
98147
|
+
this.element = $$e('.monaco-table-th', { 'data-col-index': index, title: column.tooltip }, column.label);
|
|
98148
98148
|
}
|
|
98149
98149
|
layout(size) {
|
|
98150
98150
|
this._onDidLayout.fire([this.index, size]);
|
|
@@ -98168,7 +98168,7 @@ class Table {
|
|
|
98168
98168
|
this.disposables = new DisposableStore();
|
|
98169
98169
|
this.cachedWidth = 0;
|
|
98170
98170
|
this.cachedHeight = 0;
|
|
98171
|
-
this.domNode = append$1(container, $$
|
|
98171
|
+
this.domNode = append$1(container, $$e(`.monaco-table.${this.domId}`));
|
|
98172
98172
|
const headers = columns.map((c, i) => new ColumnHeader(c, i));
|
|
98173
98173
|
const descriptor = {
|
|
98174
98174
|
size: headers.reduce((a, b) => a + b.column.weight, 0),
|
|
@@ -98472,7 +98472,7 @@ class HistoryNavigator {
|
|
|
98472
98472
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
98473
98473
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
98474
98474
|
*--------------------------------------------------------------------------------------------*/
|
|
98475
|
-
const $$
|
|
98475
|
+
const $$c = $$e;
|
|
98476
98476
|
class InputBox$1 extends Widget$1 {
|
|
98477
98477
|
constructor(container, contextViewProvider, options) {
|
|
98478
98478
|
var _a;
|
|
@@ -98492,10 +98492,10 @@ class InputBox$1 extends Widget$1 {
|
|
|
98492
98492
|
if (this.options.validationOptions) {
|
|
98493
98493
|
this.validation = this.options.validationOptions.validation;
|
|
98494
98494
|
}
|
|
98495
|
-
this.element = append$1(container, $$
|
|
98495
|
+
this.element = append$1(container, $$c('.monaco-inputbox.idle'));
|
|
98496
98496
|
const tagName = this.options.flexibleHeight ? 'textarea' : 'input';
|
|
98497
|
-
const wrapper = append$1(this.element, $$
|
|
98498
|
-
this.input = append$1(wrapper, $$
|
|
98497
|
+
const wrapper = append$1(this.element, $$c('.ibwrapper'));
|
|
98498
|
+
this.input = append$1(wrapper, $$c(tagName + '.input.empty'));
|
|
98499
98499
|
this.input.setAttribute('autocorrect', 'off');
|
|
98500
98500
|
this.input.setAttribute('autocapitalize', 'off');
|
|
98501
98501
|
this.input.setAttribute('spellcheck', 'false');
|
|
@@ -98503,7 +98503,7 @@ class InputBox$1 extends Widget$1 {
|
|
|
98503
98503
|
this.onblur(this.input, () => this.element.classList.remove('synthetic-focus'));
|
|
98504
98504
|
if (this.options.flexibleHeight) {
|
|
98505
98505
|
this.maxHeight = typeof this.options.flexibleMaxHeight === 'number' ? this.options.flexibleMaxHeight : Number.POSITIVE_INFINITY;
|
|
98506
|
-
this.mirror = append$1(wrapper, $$
|
|
98506
|
+
this.mirror = append$1(wrapper, $$c('div.mirror'));
|
|
98507
98507
|
this.mirror.innerText = '\u00a0';
|
|
98508
98508
|
this.scrollableElement = new ScrollableElement(this.element, { vertical: 1 /* ScrollbarVisibility.Auto */ });
|
|
98509
98509
|
if (this.options.flexibleWidth) {
|
|
@@ -98700,7 +98700,7 @@ class InputBox$1 extends Widget$1 {
|
|
|
98700
98700
|
if (!this.message) {
|
|
98701
98701
|
return null;
|
|
98702
98702
|
}
|
|
98703
|
-
div = append$1(container, $$
|
|
98703
|
+
div = append$1(container, $$c('.monaco-inputbox-container'));
|
|
98704
98704
|
layout();
|
|
98705
98705
|
const renderOptions = {
|
|
98706
98706
|
inline: true,
|
|
@@ -100048,10 +100048,10 @@ class TreeRenderer {
|
|
|
100048
100048
|
}
|
|
100049
100049
|
}
|
|
100050
100050
|
renderTemplate(container) {
|
|
100051
|
-
const el = append$1(container, $$
|
|
100052
|
-
const indent = append$1(el, $$
|
|
100053
|
-
const twistie = append$1(el, $$
|
|
100054
|
-
const contents = append$1(el, $$
|
|
100051
|
+
const el = append$1(container, $$e('.monaco-tl-row'));
|
|
100052
|
+
const indent = append$1(el, $$e('.monaco-tl-indent'));
|
|
100053
|
+
const twistie = append$1(el, $$e('.monaco-tl-twistie'));
|
|
100054
|
+
const contents = append$1(el, $$e('.monaco-tl-contents'));
|
|
100055
100055
|
const templateData = this.renderer.renderTemplate(contents);
|
|
100056
100056
|
return { container, indent, twistie, indentGuidesDisposable: Disposable.None, templateData };
|
|
100057
100057
|
}
|
|
@@ -100130,7 +100130,7 @@ class TreeRenderer {
|
|
|
100130
100130
|
break;
|
|
100131
100131
|
}
|
|
100132
100132
|
const parent = model.getNode(parentRef);
|
|
100133
|
-
const guide = $$
|
|
100133
|
+
const guide = $$e('.indent-guide', { style: `width: ${this.indent}px` });
|
|
100134
100134
|
if (this.activeIndentNodes.has(parent)) {
|
|
100135
100135
|
guide.classList.add('active');
|
|
100136
100136
|
}
|
|
@@ -100619,7 +100619,7 @@ class StickyScrollWidget$1 {
|
|
|
100619
100619
|
state.addDisposable(disposable);
|
|
100620
100620
|
}
|
|
100621
100621
|
// Add shadow element to the end of the widget
|
|
100622
|
-
const shadow = $$
|
|
100622
|
+
const shadow = $$e('.monaco-tree-sticky-container-shadow');
|
|
100623
100623
|
this._rootDomNode.appendChild(shadow);
|
|
100624
100624
|
state.addDisposable(toDisposable(() => shadow.remove()));
|
|
100625
100625
|
// Set the height of the widget to the bottom of the last sticky node
|
|
@@ -104309,7 +104309,7 @@ class CountBadge {
|
|
|
104309
104309
|
this.options = options;
|
|
104310
104310
|
this.styles = styles;
|
|
104311
104311
|
this.count = 0;
|
|
104312
|
-
this.element = append$1(container, $$
|
|
104312
|
+
this.element = append$1(container, $$e('.monaco-count-badge'));
|
|
104313
104313
|
this.countFormat = this.options.countFormat || '{0}';
|
|
104314
104314
|
this.titleFormat = this.options.titleFormat || '';
|
|
104315
104315
|
this.setCount(this.options.count || 0);
|
|
@@ -104435,7 +104435,7 @@ ProgressBar.LONG_RUNNING_INFINITE_THRESHOLD = 10000;
|
|
|
104435
104435
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
104436
104436
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
104437
104437
|
*--------------------------------------------------------------------------------------------*/
|
|
104438
|
-
const $$
|
|
104438
|
+
const $$b = $$e;
|
|
104439
104439
|
class QuickInputBox extends Disposable {
|
|
104440
104440
|
constructor(parent, inputBoxStyles, toggleStyles) {
|
|
104441
104441
|
super();
|
|
@@ -104449,7 +104449,7 @@ class QuickInputBox extends Disposable {
|
|
|
104449
104449
|
this.onDidChange = (handler) => {
|
|
104450
104450
|
return this.findInput.onDidChange(handler);
|
|
104451
104451
|
};
|
|
104452
|
-
this.container = append$1(this.parent, $$
|
|
104452
|
+
this.container = append$1(this.parent, $$b('.quick-input-box'));
|
|
104453
104453
|
this.findInput = this._register(new FindInput(this.container, undefined, { label: '', inputBoxStyles, toggleStyles }));
|
|
104454
104454
|
const input = this.findInput.inputBox.inputElement;
|
|
104455
104455
|
input.role = 'combobox';
|
|
@@ -104538,7 +104538,7 @@ class HighlightedLabel {
|
|
|
104538
104538
|
this.highlights = [];
|
|
104539
104539
|
this.didEverRender = false;
|
|
104540
104540
|
this.supportIcons = (_a = options === null || options === void 0 ? void 0 : options.supportIcons) !== null && _a !== void 0 ? _a : false;
|
|
104541
|
-
this.domNode = append$1(container, $$
|
|
104541
|
+
this.domNode = append$1(container, $$e('span.monaco-highlighted-label'));
|
|
104542
104542
|
}
|
|
104543
104543
|
/**
|
|
104544
104544
|
* The label's DOM node.
|
|
@@ -104589,7 +104589,7 @@ class HighlightedLabel {
|
|
|
104589
104589
|
pos = highlight.start;
|
|
104590
104590
|
}
|
|
104591
104591
|
const substring = this.text.substring(pos, highlight.end);
|
|
104592
|
-
const element = $$
|
|
104592
|
+
const element = $$e('span.highlight', undefined, ...this.supportIcons ? renderLabelWithIcons(substring) : [substring]);
|
|
104593
104593
|
if (highlight.extraClasses) {
|
|
104594
104594
|
element.classList.add(...highlight.extraClasses);
|
|
104595
104595
|
}
|
|
@@ -104678,9 +104678,9 @@ class IconLabel extends Disposable {
|
|
|
104678
104678
|
super();
|
|
104679
104679
|
this.customHovers = new Map();
|
|
104680
104680
|
this.creationOptions = options;
|
|
104681
|
-
this.domNode = this._register(new FastLabelNode(append$1(container, $$
|
|
104682
|
-
this.labelContainer = append$1(this.domNode.element, $$
|
|
104683
|
-
this.nameContainer = append$1(this.labelContainer, $$
|
|
104681
|
+
this.domNode = this._register(new FastLabelNode(append$1(container, $$e('.monaco-icon-label'))));
|
|
104682
|
+
this.labelContainer = append$1(this.domNode.element, $$e('.monaco-icon-label-container'));
|
|
104683
|
+
this.nameContainer = append$1(this.labelContainer, $$e('span.monaco-icon-name-container'));
|
|
104684
104684
|
if ((options === null || options === void 0 ? void 0 : options.supportHighlights) || (options === null || options === void 0 ? void 0 : options.supportIcons)) {
|
|
104685
104685
|
this.nameNode = new LabelWithHighlights(this.nameContainer, !!options.supportIcons);
|
|
104686
104686
|
}
|
|
@@ -104770,20 +104770,20 @@ class IconLabel extends Disposable {
|
|
|
104770
104770
|
}
|
|
104771
104771
|
getOrCreateSuffixNode() {
|
|
104772
104772
|
if (!this.suffixNode) {
|
|
104773
|
-
const suffixContainer = this._register(new FastLabelNode(after(this.nameContainer, $$
|
|
104774
|
-
this.suffixNode = this._register(new FastLabelNode(append$1(suffixContainer.element, $$
|
|
104773
|
+
const suffixContainer = this._register(new FastLabelNode(after(this.nameContainer, $$e('span.monaco-icon-suffix-container'))));
|
|
104774
|
+
this.suffixNode = this._register(new FastLabelNode(append$1(suffixContainer.element, $$e('span.label-suffix'))));
|
|
104775
104775
|
}
|
|
104776
104776
|
return this.suffixNode;
|
|
104777
104777
|
}
|
|
104778
104778
|
getOrCreateDescriptionNode() {
|
|
104779
104779
|
var _a;
|
|
104780
104780
|
if (!this.descriptionNode) {
|
|
104781
|
-
const descriptionContainer = this._register(new FastLabelNode(append$1(this.labelContainer, $$
|
|
104781
|
+
const descriptionContainer = this._register(new FastLabelNode(append$1(this.labelContainer, $$e('span.monaco-icon-description-container'))));
|
|
104782
104782
|
if ((_a = this.creationOptions) === null || _a === void 0 ? void 0 : _a.supportDescriptionHighlights) {
|
|
104783
|
-
this.descriptionNode = new HighlightedLabel(append$1(descriptionContainer.element, $$
|
|
104783
|
+
this.descriptionNode = new HighlightedLabel(append$1(descriptionContainer.element, $$e('span.label-description')), { supportIcons: !!this.creationOptions.supportIcons });
|
|
104784
104784
|
}
|
|
104785
104785
|
else {
|
|
104786
|
-
this.descriptionNode = this._register(new FastLabelNode(append$1(descriptionContainer.element, $$
|
|
104786
|
+
this.descriptionNode = this._register(new FastLabelNode(append$1(descriptionContainer.element, $$e('span.label-description'))));
|
|
104787
104787
|
}
|
|
104788
104788
|
}
|
|
104789
104789
|
return this.descriptionNode;
|
|
@@ -104805,7 +104805,7 @@ class Label {
|
|
|
104805
104805
|
if (!this.singleLabel) {
|
|
104806
104806
|
this.container.innerText = '';
|
|
104807
104807
|
this.container.classList.remove('multiple');
|
|
104808
|
-
this.singleLabel = append$1(this.container, $$
|
|
104808
|
+
this.singleLabel = append$1(this.container, $$e('a.label-name', { id: options === null || options === void 0 ? void 0 : options.domId }));
|
|
104809
104809
|
}
|
|
104810
104810
|
this.singleLabel.textContent = label;
|
|
104811
104811
|
}
|
|
@@ -104816,9 +104816,9 @@ class Label {
|
|
|
104816
104816
|
for (let i = 0; i < label.length; i++) {
|
|
104817
104817
|
const l = label[i];
|
|
104818
104818
|
const id = (options === null || options === void 0 ? void 0 : options.domId) && `${options === null || options === void 0 ? void 0 : options.domId}_${i}`;
|
|
104819
|
-
append$1(this.container, $$
|
|
104819
|
+
append$1(this.container, $$e('a.label-name', { id, 'data-icon-label-count': label.length, 'data-icon-label-index': i, 'role': 'treeitem' }, l));
|
|
104820
104820
|
if (i < label.length - 1) {
|
|
104821
|
-
append$1(this.container, $$
|
|
104821
|
+
append$1(this.container, $$e('span.label-separator', undefined, (options === null || options === void 0 ? void 0 : options.separator) || '/'));
|
|
104822
104822
|
}
|
|
104823
104823
|
}
|
|
104824
104824
|
}
|
|
@@ -104856,7 +104856,7 @@ class LabelWithHighlights {
|
|
|
104856
104856
|
if (!this.singleLabel) {
|
|
104857
104857
|
this.container.innerText = '';
|
|
104858
104858
|
this.container.classList.remove('multiple');
|
|
104859
|
-
this.singleLabel = new HighlightedLabel(append$1(this.container, $$
|
|
104859
|
+
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 });
|
|
104860
104860
|
}
|
|
104861
104861
|
this.singleLabel.set(label, options === null || options === void 0 ? void 0 : options.matches, undefined, options === null || options === void 0 ? void 0 : options.labelEscapeNewLines);
|
|
104862
104862
|
}
|
|
@@ -104870,11 +104870,11 @@ class LabelWithHighlights {
|
|
|
104870
104870
|
const l = label[i];
|
|
104871
104871
|
const m = matches ? matches[i] : undefined;
|
|
104872
104872
|
const id = (options === null || options === void 0 ? void 0 : options.domId) && `${options === null || options === void 0 ? void 0 : options.domId}_${i}`;
|
|
104873
|
-
const name = $$
|
|
104873
|
+
const name = $$e('a.label-name', { id, 'data-icon-label-count': label.length, 'data-icon-label-index': i, 'role': 'treeitem' });
|
|
104874
104874
|
const highlightedLabel = new HighlightedLabel(append$1(this.container, name), { supportIcons: this.supportIcons });
|
|
104875
104875
|
highlightedLabel.set(l, m, undefined, options === null || options === void 0 ? void 0 : options.labelEscapeNewLines);
|
|
104876
104876
|
if (i < label.length - 1) {
|
|
104877
|
-
append$1(name, $$
|
|
104877
|
+
append$1(name, $$e('span.label-separator', undefined, separator));
|
|
104878
104878
|
}
|
|
104879
104879
|
}
|
|
104880
104880
|
}
|
|
@@ -104885,7 +104885,7 @@ class LabelWithHighlights {
|
|
|
104885
104885
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
104886
104886
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
104887
104887
|
*--------------------------------------------------------------------------------------------*/
|
|
104888
|
-
const $$
|
|
104888
|
+
const $$a = $$e;
|
|
104889
104889
|
const unthemedKeybindingLabelOptions = {
|
|
104890
104890
|
keybindingLabelBackground: undefined,
|
|
104891
104891
|
keybindingLabelForeground: undefined,
|
|
@@ -104899,7 +104899,7 @@ class KeybindingLabel {
|
|
|
104899
104899
|
this.keyElements = new Set();
|
|
104900
104900
|
this.options = options || Object.create(null);
|
|
104901
104901
|
const labelForeground = this.options.keybindingLabelForeground;
|
|
104902
|
-
this.domNode = append$1(container, $$
|
|
104902
|
+
this.domNode = append$1(container, $$a('.monaco-keybinding'));
|
|
104903
104903
|
if (labelForeground) {
|
|
104904
104904
|
this.domNode.style.color = labelForeground;
|
|
104905
104905
|
}
|
|
@@ -104926,7 +104926,7 @@ class KeybindingLabel {
|
|
|
104926
104926
|
this.renderChord(this.domNode, chords[0], this.matches ? this.matches.firstPart : null);
|
|
104927
104927
|
}
|
|
104928
104928
|
for (let i = 1; i < chords.length; i++) {
|
|
104929
|
-
append$1(this.domNode, $$
|
|
104929
|
+
append$1(this.domNode, $$a('span.monaco-keybinding-key-chord-separator', undefined, ' '));
|
|
104930
104930
|
this.renderChord(this.domNode, chords[i], this.matches ? this.matches.chordPart : null);
|
|
104931
104931
|
}
|
|
104932
104932
|
const title = ((_a = this.options.disableTitle) !== null && _a !== void 0 ? _a : false) ? undefined : this.keybinding.getAriaLabel() || undefined;
|
|
@@ -104968,14 +104968,14 @@ class KeybindingLabel {
|
|
|
104968
104968
|
renderKey(parent, label, highlight, separator) {
|
|
104969
104969
|
append$1(parent, this.createKeyElement(label, highlight ? '.highlight' : ''));
|
|
104970
104970
|
if (separator) {
|
|
104971
|
-
append$1(parent, $$
|
|
104971
|
+
append$1(parent, $$a('span.monaco-keybinding-key-separator', undefined, separator));
|
|
104972
104972
|
}
|
|
104973
104973
|
}
|
|
104974
104974
|
renderUnbound(parent) {
|
|
104975
104975
|
append$1(parent, this.createKeyElement(localize('unbound', "Unbound")));
|
|
104976
104976
|
}
|
|
104977
104977
|
createKeyElement(label, extraClass = '') {
|
|
104978
|
-
const keyElement = $$
|
|
104978
|
+
const keyElement = $$a('span.monaco-keybinding-key' + extraClass, undefined, label);
|
|
104979
104979
|
this.keyElements.add(keyElement);
|
|
104980
104980
|
if (this.options.keybindingLabelBackground) {
|
|
104981
104981
|
keyElement.style.backgroundColor = this.options.keybindingLabelBackground;
|
|
@@ -105152,7 +105152,7 @@ function renderQuickInputDescription(description, container, actionHandler) {
|
|
|
105152
105152
|
else if (!title) {
|
|
105153
105153
|
title = node.href;
|
|
105154
105154
|
}
|
|
105155
|
-
const anchor = $$
|
|
105155
|
+
const anchor = $$e('a', { href: node.href, title, tabIndex: tabIndex++ }, node.label);
|
|
105156
105156
|
anchor.style.textDecoration = 'underline';
|
|
105157
105157
|
const handleOpen = (e) => {
|
|
105158
105158
|
if (isEventLike(e)) {
|
|
@@ -105184,7 +105184,7 @@ var __decorate$1K = (undefined && undefined.__decorate) || function (decorators,
|
|
|
105184
105184
|
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;
|
|
105185
105185
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
105186
105186
|
};
|
|
105187
|
-
const $$
|
|
105187
|
+
const $$9 = $$e;
|
|
105188
105188
|
class ListElement {
|
|
105189
105189
|
constructor(mainItem, previous, index, hasCheckbox, fireButtonTriggered, fireSeparatorButtonTriggered, onCheckedEmitter) {
|
|
105190
105190
|
var _a, _b, _c;
|
|
@@ -105298,36 +105298,36 @@ class ListElementRenderer {
|
|
|
105298
105298
|
const data = Object.create(null);
|
|
105299
105299
|
data.toDisposeElement = [];
|
|
105300
105300
|
data.toDisposeTemplate = [];
|
|
105301
|
-
data.entry = append$1(container, $$
|
|
105301
|
+
data.entry = append$1(container, $$9('.quick-input-list-entry'));
|
|
105302
105302
|
// Checkbox
|
|
105303
|
-
const label = append$1(data.entry, $$
|
|
105303
|
+
const label = append$1(data.entry, $$9('label.quick-input-list-label'));
|
|
105304
105304
|
data.toDisposeTemplate.push(addStandardDisposableListener(label, EventType$1.CLICK, e => {
|
|
105305
105305
|
if (!data.checkbox.offsetParent) { // If checkbox not visible:
|
|
105306
105306
|
e.preventDefault(); // Prevent toggle of checkbox when it is immediately shown afterwards. #91740
|
|
105307
105307
|
}
|
|
105308
105308
|
}));
|
|
105309
|
-
data.checkbox = append$1(label, $$
|
|
105309
|
+
data.checkbox = append$1(label, $$9('input.quick-input-list-checkbox'));
|
|
105310
105310
|
data.checkbox.type = 'checkbox';
|
|
105311
105311
|
data.toDisposeTemplate.push(addStandardDisposableListener(data.checkbox, EventType$1.CHANGE, e => {
|
|
105312
105312
|
data.element.checked = data.checkbox.checked;
|
|
105313
105313
|
}));
|
|
105314
105314
|
// Rows
|
|
105315
|
-
const rows = append$1(label, $$
|
|
105316
|
-
const row1 = append$1(rows, $$
|
|
105317
|
-
const row2 = append$1(rows, $$
|
|
105315
|
+
const rows = append$1(label, $$9('.quick-input-list-rows'));
|
|
105316
|
+
const row1 = append$1(rows, $$9('.quick-input-list-row'));
|
|
105317
|
+
const row2 = append$1(rows, $$9('.quick-input-list-row'));
|
|
105318
105318
|
// Label
|
|
105319
105319
|
data.label = new IconLabel(row1, { supportHighlights: true, supportDescriptionHighlights: true, supportIcons: true });
|
|
105320
105320
|
data.toDisposeTemplate.push(data.label);
|
|
105321
|
-
data.icon = prepend$1(data.label.element, $$
|
|
105321
|
+
data.icon = prepend$1(data.label.element, $$9('.quick-input-list-icon'));
|
|
105322
105322
|
// Keybinding
|
|
105323
|
-
const keybindingContainer = append$1(row1, $$
|
|
105323
|
+
const keybindingContainer = append$1(row1, $$9('.quick-input-list-entry-keybinding'));
|
|
105324
105324
|
data.keybinding = new KeybindingLabel(keybindingContainer, OS);
|
|
105325
105325
|
// Detail
|
|
105326
|
-
const detailContainer = append$1(row2, $$
|
|
105326
|
+
const detailContainer = append$1(row2, $$9('.quick-input-list-label-meta'));
|
|
105327
105327
|
data.detail = new IconLabel(detailContainer, { supportHighlights: true, supportIcons: true });
|
|
105328
105328
|
data.toDisposeTemplate.push(data.detail);
|
|
105329
105329
|
// Separator
|
|
105330
|
-
data.separator = append$1(data.entry, $$
|
|
105330
|
+
data.separator = append$1(data.entry, $$9('.quick-input-list-separator'));
|
|
105331
105331
|
// Actions
|
|
105332
105332
|
data.actionBar = new ActionBar(data.entry);
|
|
105333
105333
|
data.actionBar.domNode.classList.add('quick-input-list-entry-action-bar');
|
|
@@ -105490,7 +105490,7 @@ class QuickInputList {
|
|
|
105490
105490
|
this.elementDisposables = [];
|
|
105491
105491
|
this.disposables = [];
|
|
105492
105492
|
this.id = id;
|
|
105493
|
-
this.container = append$1(this.parent, $$
|
|
105493
|
+
this.container = append$1(this.parent, $$9('.quick-input-list'));
|
|
105494
105494
|
const delegate = new ListElementDelegate();
|
|
105495
105495
|
const accessibilityProvider = new QuickInputAccessibilityProvider();
|
|
105496
105496
|
this.list = options.createList('QuickInput', this.container, delegate, [new ListElementRenderer(themeService)], {
|
|
@@ -106996,7 +106996,7 @@ class InputBox extends QuickInput {
|
|
|
106996
106996
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
106997
106997
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
106998
106998
|
*--------------------------------------------------------------------------------------------*/
|
|
106999
|
-
const $$
|
|
106999
|
+
const $$8 = $$e;
|
|
107000
107000
|
class QuickInputController extends Disposable {
|
|
107001
107001
|
constructor(options, themeService, layoutService) {
|
|
107002
107002
|
super();
|
|
@@ -107047,19 +107047,19 @@ class QuickInputController extends Disposable {
|
|
|
107047
107047
|
}
|
|
107048
107048
|
return this.ui;
|
|
107049
107049
|
}
|
|
107050
|
-
const container = append$1(this.parentElement, $$
|
|
107050
|
+
const container = append$1(this.parentElement, $$8('.quick-input-widget.show-file-icons'));
|
|
107051
107051
|
container.tabIndex = -1;
|
|
107052
107052
|
container.style.display = 'none';
|
|
107053
107053
|
const styleSheet = createStyleSheet(container);
|
|
107054
|
-
const titleBar = append$1(container, $$
|
|
107054
|
+
const titleBar = append$1(container, $$8('.quick-input-titlebar'));
|
|
107055
107055
|
const actionBarOption = this.options.hoverDelegate ? { hoverDelegate: this.options.hoverDelegate } : undefined;
|
|
107056
107056
|
const leftActionBar = this._register(new ActionBar(titleBar, actionBarOption));
|
|
107057
107057
|
leftActionBar.domNode.classList.add('quick-input-left-action-bar');
|
|
107058
|
-
const title = append$1(titleBar, $$
|
|
107058
|
+
const title = append$1(titleBar, $$8('.quick-input-title'));
|
|
107059
107059
|
const rightActionBar = this._register(new ActionBar(titleBar, actionBarOption));
|
|
107060
107060
|
rightActionBar.domNode.classList.add('quick-input-right-action-bar');
|
|
107061
|
-
const headerContainer = append$1(container, $$
|
|
107062
|
-
const checkAll = append$1(headerContainer, $$
|
|
107061
|
+
const headerContainer = append$1(container, $$8('.quick-input-header'));
|
|
107062
|
+
const checkAll = append$1(headerContainer, $$8('input.quick-input-check-all'));
|
|
107063
107063
|
checkAll.type = 'checkbox';
|
|
107064
107064
|
checkAll.setAttribute('aria-label', localize('quickInput.checkAll', "Toggle all checkboxes"));
|
|
107065
107065
|
this._register(addStandardDisposableListener(checkAll, EventType$1.CHANGE, e => {
|
|
@@ -107071,36 +107071,36 @@ class QuickInputController extends Disposable {
|
|
|
107071
107071
|
inputBox.setFocus();
|
|
107072
107072
|
}
|
|
107073
107073
|
}));
|
|
107074
|
-
const description2 = append$1(headerContainer, $$
|
|
107075
|
-
const inputContainer = append$1(headerContainer, $$
|
|
107076
|
-
const filterContainer = append$1(inputContainer, $$
|
|
107074
|
+
const description2 = append$1(headerContainer, $$8('.quick-input-description'));
|
|
107075
|
+
const inputContainer = append$1(headerContainer, $$8('.quick-input-and-message'));
|
|
107076
|
+
const filterContainer = append$1(inputContainer, $$8('.quick-input-filter'));
|
|
107077
107077
|
const inputBox = this._register(new QuickInputBox(filterContainer, this.styles.inputBox, this.styles.toggle));
|
|
107078
107078
|
inputBox.setAttribute('aria-describedby', `${this.idPrefix}message`);
|
|
107079
|
-
const visibleCountContainer = append$1(filterContainer, $$
|
|
107079
|
+
const visibleCountContainer = append$1(filterContainer, $$8('.quick-input-visible-count'));
|
|
107080
107080
|
visibleCountContainer.setAttribute('aria-live', 'polite');
|
|
107081
107081
|
visibleCountContainer.setAttribute('aria-atomic', 'true');
|
|
107082
107082
|
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);
|
|
107083
|
-
const countContainer = append$1(filterContainer, $$
|
|
107083
|
+
const countContainer = append$1(filterContainer, $$8('.quick-input-count'));
|
|
107084
107084
|
countContainer.setAttribute('aria-live', 'polite');
|
|
107085
107085
|
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);
|
|
107086
|
-
const okContainer = append$1(headerContainer, $$
|
|
107086
|
+
const okContainer = append$1(headerContainer, $$8('.quick-input-action'));
|
|
107087
107087
|
const ok = this._register(new Button(okContainer, this.styles.button));
|
|
107088
107088
|
ok.label = localize('ok', "OK");
|
|
107089
107089
|
this._register(ok.onDidClick(e => {
|
|
107090
107090
|
this.onDidAcceptEmitter.fire();
|
|
107091
107091
|
}));
|
|
107092
|
-
const customButtonContainer = append$1(headerContainer, $$
|
|
107092
|
+
const customButtonContainer = append$1(headerContainer, $$8('.quick-input-action'));
|
|
107093
107093
|
const customButton = this._register(new Button(customButtonContainer, this.styles.button));
|
|
107094
107094
|
customButton.label = localize('custom', "Custom");
|
|
107095
107095
|
this._register(customButton.onDidClick(e => {
|
|
107096
107096
|
this.onDidCustomEmitter.fire();
|
|
107097
107097
|
}));
|
|
107098
|
-
const message = append$1(inputContainer, $$
|
|
107098
|
+
const message = append$1(inputContainer, $$8(`#${this.idPrefix}message.quick-input-message`));
|
|
107099
107099
|
const progressBar = this._register(new ProgressBar(container, this.styles.progressBar));
|
|
107100
107100
|
progressBar.getContainer().classList.add('quick-input-progress');
|
|
107101
|
-
const widget = append$1(container, $$
|
|
107101
|
+
const widget = append$1(container, $$8('.quick-input-html-widget'));
|
|
107102
107102
|
widget.tabIndex = -1;
|
|
107103
|
-
const description1 = append$1(container, $$
|
|
107103
|
+
const description1 = append$1(container, $$8('.quick-input-description'));
|
|
107104
107104
|
const listId = this.idPrefix + 'list';
|
|
107105
107105
|
const list = this._register(new QuickInputList(container, listId, this.options, this.themeService));
|
|
107106
107106
|
inputBox.setAttribute('aria-controls', listId);
|
|
@@ -109445,7 +109445,7 @@ let BrowserClipboardService = class BrowserClipboardService extends Disposable {
|
|
|
109445
109445
|
// Fallback to textarea and execCommand solution
|
|
109446
109446
|
const activeDocument = getActiveDocument();
|
|
109447
109447
|
const activeElement = activeDocument.activeElement;
|
|
109448
|
-
const textArea = activeDocument.body.appendChild($$
|
|
109448
|
+
const textArea = activeDocument.body.appendChild($$e('textarea', { 'aria-hidden': true }));
|
|
109449
109449
|
textArea.style.height = '1px';
|
|
109450
109450
|
textArea.style.width = '1px';
|
|
109451
109451
|
textArea.style.position = 'absolute';
|
|
@@ -114567,7 +114567,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
114567
114567
|
this._nodes = h$1('div.diff-hidden-lines', [
|
|
114568
114568
|
h$1('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
|
|
114569
114569
|
h$1('div.center@content', { style: { display: 'flex' } }, [
|
|
114570
|
-
h$1('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$$
|
|
114570
|
+
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)'))]),
|
|
114571
114571
|
h$1('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
|
|
114572
114572
|
]),
|
|
114573
114573
|
h$1('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
|
|
@@ -114679,7 +114679,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
114679
114679
|
if (!this._hide) {
|
|
114680
114680
|
const lineCount = _unchangedRegion.getHiddenModifiedRange(reader).length;
|
|
114681
114681
|
const linesHiddenText = localize('hiddenLines', '{0} hidden lines', lineCount);
|
|
114682
|
-
const span = $$
|
|
114682
|
+
const span = $$e('span', { title: localize('diff.hiddenLines.expandAll', 'Double click to unfold') }, linesHiddenText);
|
|
114683
114683
|
span.addEventListener('dblclick', e => {
|
|
114684
114684
|
if (e.button !== 0) {
|
|
114685
114685
|
return;
|
|
@@ -114691,7 +114691,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
114691
114691
|
const range = this._unchangedRegion.getHiddenModifiedRange(reader);
|
|
114692
114692
|
const items = this._modifiedOutlineSource.getBreadcrumbItems(range, reader);
|
|
114693
114693
|
if (items.length > 0) {
|
|
114694
|
-
children.push($$
|
|
114694
|
+
children.push($$e('span', undefined, '\u00a0\u00a0|\u00a0\u00a0'));
|
|
114695
114695
|
for (let i = 0; i < items.length; i++) {
|
|
114696
114696
|
const item = items[i];
|
|
114697
114697
|
const icon = SymbolKinds.toIcon(item.kind);
|
|
@@ -115824,7 +115824,7 @@ let ViewZoneManager = class ViewZoneManager extends Disposable {
|
|
|
115824
115824
|
e.stopPropagation();
|
|
115825
115825
|
_diffEditorWidget.revert(a.diff);
|
|
115826
115826
|
}));
|
|
115827
|
-
return $$
|
|
115827
|
+
return $$e('div', {}, arrow);
|
|
115828
115828
|
}
|
|
115829
115829
|
let marginDomNode = undefined;
|
|
115830
115830
|
if (a.diff && a.diff.modified.isEmpty && this._options.shouldRenderRevertArrows.read(reader)) {
|
|
@@ -116593,7 +116593,7 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
|
|
|
116593
116593
|
this._audioCueService = _audioCueService;
|
|
116594
116594
|
this._editorProgressService = _editorProgressService;
|
|
116595
116595
|
this.elements = h$1('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
|
|
116596
|
-
h$1('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$
|
|
116596
|
+
h$1('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$e('span', {}, 'No Changes')]),
|
|
116597
116597
|
h$1('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
|
|
116598
116598
|
h$1('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
|
|
116599
116599
|
h$1('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
|
|
@@ -120522,7 +120522,7 @@ registerLanguage({
|
|
|
120522
120522
|
mimetypes: ["text/css"],
|
|
120523
120523
|
loader: () => {
|
|
120524
120524
|
{
|
|
120525
|
-
return import('./css-
|
|
120525
|
+
return import('./css-294de2b5.js');
|
|
120526
120526
|
}
|
|
120527
120527
|
}
|
|
120528
120528
|
});
|
|
@@ -120540,7 +120540,7 @@ registerLanguage({
|
|
|
120540
120540
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120541
120541
|
loader: () => {
|
|
120542
120542
|
{
|
|
120543
|
-
return import('./html-
|
|
120543
|
+
return import('./html-df0c0abf.js');
|
|
120544
120544
|
}
|
|
120545
120545
|
}
|
|
120546
120546
|
});
|
|
@@ -120560,7 +120560,7 @@ registerLanguage({
|
|
|
120560
120560
|
mimetypes: ["text/javascript"],
|
|
120561
120561
|
loader: () => {
|
|
120562
120562
|
{
|
|
120563
|
-
return import('./javascript-
|
|
120563
|
+
return import('./javascript-7f02143c.js');
|
|
120564
120564
|
}
|
|
120565
120565
|
}
|
|
120566
120566
|
});
|
|
@@ -120578,7 +120578,7 @@ registerLanguage({
|
|
|
120578
120578
|
mimetypes: ["text/typescript"],
|
|
120579
120579
|
loader: () => {
|
|
120580
120580
|
{
|
|
120581
|
-
return import('./typescript-
|
|
120581
|
+
return import('./typescript-a14f4a55.js');
|
|
120582
120582
|
}
|
|
120583
120583
|
}
|
|
120584
120584
|
});
|
|
@@ -120699,7 +120699,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120699
120699
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120700
120700
|
function getMode$3() {
|
|
120701
120701
|
{
|
|
120702
|
-
return import('./cssMode-
|
|
120702
|
+
return import('./cssMode-8bf465a1.js');
|
|
120703
120703
|
}
|
|
120704
120704
|
}
|
|
120705
120705
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120824,7 +120824,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120824
120824
|
};
|
|
120825
120825
|
function getMode$2() {
|
|
120826
120826
|
{
|
|
120827
|
-
return import('./htmlMode-
|
|
120827
|
+
return import('./htmlMode-379ba474.js');
|
|
120828
120828
|
}
|
|
120829
120829
|
}
|
|
120830
120830
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -120926,7 +120926,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
120926
120926
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120927
120927
|
function getMode$1() {
|
|
120928
120928
|
{
|
|
120929
|
-
return import('./jsonMode-
|
|
120929
|
+
return import('./jsonMode-0db8e4ac.js');
|
|
120930
120930
|
}
|
|
120931
120931
|
}
|
|
120932
120932
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121195,7 +121195,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121195
121195
|
};
|
|
121196
121196
|
function getMode() {
|
|
121197
121197
|
{
|
|
121198
|
-
return import('./tsMode-
|
|
121198
|
+
return import('./tsMode-8bd448ad.js');
|
|
121199
121199
|
}
|
|
121200
121200
|
}
|
|
121201
121201
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -123147,7 +123147,7 @@ let LightBulbWidget = LightBulbWidget_1 = class LightBulbWidget extends Disposab
|
|
|
123147
123147
|
this.onClick = this._onClick.event;
|
|
123148
123148
|
this._state = LightBulbState.Hidden;
|
|
123149
123149
|
this._iconClasses = [];
|
|
123150
|
-
this._domNode = $$
|
|
123150
|
+
this._domNode = $$e('div.lightBulbWidget');
|
|
123151
123151
|
this._register(Gesture.ignoreTarget(this._domNode));
|
|
123152
123152
|
this._editor.addContentWidget(this);
|
|
123153
123153
|
this._register(this._editor.onDidChangeModelContent(_ => {
|
|
@@ -124003,7 +124003,7 @@ let ActionWidgetService = class ActionWidgetService extends Disposable {
|
|
|
124003
124003
|
if (!actions.length) {
|
|
124004
124004
|
return undefined;
|
|
124005
124005
|
}
|
|
124006
|
-
const container = $$
|
|
124006
|
+
const container = $$e(className);
|
|
124007
124007
|
const actionBar = new ActionBar(container);
|
|
124008
124008
|
actionBar.push(actions, { icon: false, label: true });
|
|
124009
124009
|
return actionBar;
|
|
@@ -125197,20 +125197,20 @@ class CodeLensContentWidget {
|
|
|
125197
125197
|
if (lens.command) {
|
|
125198
125198
|
const title = renderLabelWithIcons(lens.command.title.trim());
|
|
125199
125199
|
if (lens.command.id) {
|
|
125200
|
-
children.push($$
|
|
125200
|
+
children.push($$e('a', { id: String(i), title: lens.command.tooltip, role: 'button' }, ...title));
|
|
125201
125201
|
this._commands.set(String(i), lens.command);
|
|
125202
125202
|
}
|
|
125203
125203
|
else {
|
|
125204
|
-
children.push($$
|
|
125204
|
+
children.push($$e('span', { title: lens.command.tooltip }, ...title));
|
|
125205
125205
|
}
|
|
125206
125206
|
if (i + 1 < lenses.length) {
|
|
125207
|
-
children.push($$
|
|
125207
|
+
children.push($$e('span', undefined, '\u00a0|\u00a0'));
|
|
125208
125208
|
}
|
|
125209
125209
|
}
|
|
125210
125210
|
}
|
|
125211
125211
|
if (!hasSymbol) {
|
|
125212
125212
|
// symbols but no commands
|
|
125213
|
-
reset(this._domNode, $$
|
|
125213
|
+
reset(this._domNode, $$e('span', undefined, 'no commands'));
|
|
125214
125214
|
}
|
|
125215
125215
|
else {
|
|
125216
125216
|
// symbols and commands
|
|
@@ -126308,22 +126308,22 @@ class ColorPickerModel {
|
|
|
126308
126308
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
126309
126309
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
126310
126310
|
*--------------------------------------------------------------------------------------------*/
|
|
126311
|
-
const $$
|
|
126311
|
+
const $$7 = $$e;
|
|
126312
126312
|
class ColorPickerHeader extends Disposable {
|
|
126313
126313
|
constructor(container, model, themeService, showingStandaloneColorPicker = false) {
|
|
126314
126314
|
super();
|
|
126315
126315
|
this.model = model;
|
|
126316
126316
|
this.showingStandaloneColorPicker = showingStandaloneColorPicker;
|
|
126317
126317
|
this._closeButton = null;
|
|
126318
|
-
this._domNode = $$
|
|
126318
|
+
this._domNode = $$7('.colorpicker-header');
|
|
126319
126319
|
append$1(container, this._domNode);
|
|
126320
|
-
this._pickedColorNode = append$1(this._domNode, $$
|
|
126321
|
-
append$1(this._pickedColorNode, $$
|
|
126320
|
+
this._pickedColorNode = append$1(this._domNode, $$7('.picked-color'));
|
|
126321
|
+
append$1(this._pickedColorNode, $$7('span.codicon.codicon-color-mode'));
|
|
126322
126322
|
this._pickedColorPresentation = append$1(this._pickedColorNode, document.createElement('span'));
|
|
126323
126323
|
this._pickedColorPresentation.classList.add('picked-color-presentation');
|
|
126324
126324
|
const tooltip = localize('clickToToggleColorOptions', "Click to toggle color options (rgb/hsl/hex)");
|
|
126325
126325
|
this._pickedColorNode.setAttribute('title', tooltip);
|
|
126326
|
-
this._originalColorNode = append$1(this._domNode, $$
|
|
126326
|
+
this._originalColorNode = append$1(this._domNode, $$7('.original-color'));
|
|
126327
126327
|
this._originalColorNode.style.backgroundColor = Color.Format.CSS.format(this.model.originalColor) || '';
|
|
126328
126328
|
this.backgroundColor = themeService.getColorTheme().getColor(editorHoverBackground) || Color.white;
|
|
126329
126329
|
this._register(themeService.onDidColorThemeChange(theme => {
|
|
@@ -126374,7 +126374,7 @@ class CloseButton extends Disposable {
|
|
|
126374
126374
|
const innerDiv = document.createElement('div');
|
|
126375
126375
|
innerDiv.classList.add('close-button-inner-div');
|
|
126376
126376
|
append$1(this._button, innerDiv);
|
|
126377
|
-
const closeButton = append$1(innerDiv, $$
|
|
126377
|
+
const closeButton = append$1(innerDiv, $$7('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, localize('closeIcon', 'Icon to close the color picker')))));
|
|
126378
126378
|
closeButton.classList.add('close-icon');
|
|
126379
126379
|
this._button.onclick = () => {
|
|
126380
126380
|
this._onClicked.fire();
|
|
@@ -126387,7 +126387,7 @@ class ColorPickerBody extends Disposable {
|
|
|
126387
126387
|
this.model = model;
|
|
126388
126388
|
this.pixelRatio = pixelRatio;
|
|
126389
126389
|
this._insertButton = null;
|
|
126390
|
-
this._domNode = $$
|
|
126390
|
+
this._domNode = $$7('.colorpicker-body');
|
|
126391
126391
|
append$1(container, this._domNode);
|
|
126392
126392
|
this._saturationBox = new SaturationBox(this._domNode, this.model, this.pixelRatio);
|
|
126393
126393
|
this._register(this._saturationBox);
|
|
@@ -126446,14 +126446,14 @@ class SaturationBox extends Disposable {
|
|
|
126446
126446
|
this.onDidChange = this._onDidChange.event;
|
|
126447
126447
|
this._onColorFlushed = new Emitter$1();
|
|
126448
126448
|
this.onColorFlushed = this._onColorFlushed.event;
|
|
126449
|
-
this._domNode = $$
|
|
126449
|
+
this._domNode = $$7('.saturation-wrap');
|
|
126450
126450
|
append$1(container, this._domNode);
|
|
126451
126451
|
// Create canvas, draw selected color
|
|
126452
126452
|
this._canvas = document.createElement('canvas');
|
|
126453
126453
|
this._canvas.className = 'saturation-box';
|
|
126454
126454
|
append$1(this._domNode, this._canvas);
|
|
126455
126455
|
// Add selection circle
|
|
126456
|
-
this.selection = $$
|
|
126456
|
+
this.selection = $$7('.saturation-selection');
|
|
126457
126457
|
append$1(this._domNode, this.selection);
|
|
126458
126458
|
this.layout();
|
|
126459
126459
|
this._register(addDisposableListener(this._domNode, EventType$1.POINTER_DOWN, e => this.onPointerDown(e)));
|
|
@@ -126538,14 +126538,14 @@ class Strip extends Disposable {
|
|
|
126538
126538
|
this._onColorFlushed = new Emitter$1();
|
|
126539
126539
|
this.onColorFlushed = this._onColorFlushed.event;
|
|
126540
126540
|
if (showingStandaloneColorPicker) {
|
|
126541
|
-
this.domNode = append$1(container, $$
|
|
126542
|
-
this.overlay = append$1(this.domNode, $$
|
|
126541
|
+
this.domNode = append$1(container, $$7('.standalone-strip'));
|
|
126542
|
+
this.overlay = append$1(this.domNode, $$7('.standalone-overlay'));
|
|
126543
126543
|
}
|
|
126544
126544
|
else {
|
|
126545
|
-
this.domNode = append$1(container, $$
|
|
126546
|
-
this.overlay = append$1(this.domNode, $$
|
|
126545
|
+
this.domNode = append$1(container, $$7('.strip'));
|
|
126546
|
+
this.overlay = append$1(this.domNode, $$7('.overlay'));
|
|
126547
126547
|
}
|
|
126548
|
-
this.slider = append$1(this.domNode, $$
|
|
126548
|
+
this.slider = append$1(this.domNode, $$7('.slider'));
|
|
126549
126549
|
this.slider.style.top = `0px`;
|
|
126550
126550
|
this._register(addDisposableListener(this.domNode, EventType$1.POINTER_DOWN, e => this.onPointerDown(e)));
|
|
126551
126551
|
this._register(model.onDidChangeColor(this.onDidChangeColor, this));
|
|
@@ -126635,7 +126635,7 @@ class ColorPickerWidget extends Widget$1 {
|
|
|
126635
126635
|
this.model = model;
|
|
126636
126636
|
this.pixelRatio = pixelRatio;
|
|
126637
126637
|
this._register(PixelRatio.onDidChange(() => this.layout()));
|
|
126638
|
-
const element = $$
|
|
126638
|
+
const element = $$7('.colorpicker-widget');
|
|
126639
126639
|
container.appendChild(element);
|
|
126640
126640
|
this.header = this._register(new ColorPickerHeader(element, this.model, themeService, standaloneColorPicker));
|
|
126641
126641
|
this.body = this._register(new ColorPickerBody(element, this.model, this.pixelRatio, standaloneColorPicker));
|
|
@@ -127560,26 +127560,26 @@ let PeekViewWidget = class PeekViewWidget extends ZoneWidget {
|
|
|
127560
127560
|
}
|
|
127561
127561
|
_fillContainer(container) {
|
|
127562
127562
|
this.setCssClass('peekview-widget');
|
|
127563
|
-
this._headElement = $$
|
|
127564
|
-
this._bodyElement = $$
|
|
127563
|
+
this._headElement = $$e('.head');
|
|
127564
|
+
this._bodyElement = $$e('.body');
|
|
127565
127565
|
this._fillHead(this._headElement);
|
|
127566
127566
|
this._fillBody(this._bodyElement);
|
|
127567
127567
|
container.appendChild(this._headElement);
|
|
127568
127568
|
container.appendChild(this._bodyElement);
|
|
127569
127569
|
}
|
|
127570
127570
|
_fillHead(container, noCloseAction) {
|
|
127571
|
-
this._titleElement = $$
|
|
127571
|
+
this._titleElement = $$e('.peekview-title');
|
|
127572
127572
|
if (this.options.supportOnTitleClick) {
|
|
127573
127573
|
this._titleElement.classList.add('clickable');
|
|
127574
127574
|
addStandardDisposableListener(this._titleElement, 'click', event => this._onTitleClick(event));
|
|
127575
127575
|
}
|
|
127576
127576
|
append$1(this._headElement, this._titleElement);
|
|
127577
127577
|
this._fillTitleIcon(this._titleElement);
|
|
127578
|
-
this._primaryHeading = $$
|
|
127579
|
-
this._secondaryHeading = $$
|
|
127580
|
-
this._metaHeading = $$
|
|
127578
|
+
this._primaryHeading = $$e('span.filename');
|
|
127579
|
+
this._secondaryHeading = $$e('span.dirname');
|
|
127580
|
+
this._metaHeading = $$e('span.meta');
|
|
127581
127581
|
append$1(this._titleElement, this._primaryHeading, this._secondaryHeading, this._metaHeading);
|
|
127582
|
-
const actionsContainer = $$
|
|
127582
|
+
const actionsContainer = $$e('.peekview-actions');
|
|
127583
127583
|
append$1(this._headElement, actionsContainer);
|
|
127584
127584
|
const actionBarOptions = this._getActionBarOptions();
|
|
127585
127585
|
this._actionbarWidget = new ActionBar(actionsContainer, actionBarOptions);
|
|
@@ -127992,7 +127992,7 @@ let FileReferencesTemplate = class FileReferencesTemplate extends Disposable {
|
|
|
127992
127992
|
const parent = document.createElement('div');
|
|
127993
127993
|
parent.classList.add('reference-file');
|
|
127994
127994
|
this.file = this._register(new IconLabel(parent, { supportHighlights: true }));
|
|
127995
|
-
this.badge = new CountBadge(append$1(parent, $$
|
|
127995
|
+
this.badge = new CountBadge(append$1(parent, $$e('.count')), {}, defaultCountBadgeStyles);
|
|
127996
127996
|
container.appendChild(parent);
|
|
127997
127997
|
}
|
|
127998
127998
|
set(element, matches) {
|
|
@@ -128295,11 +128295,11 @@ let ReferenceWidget = class ReferenceWidget extends PeekViewWidget {
|
|
|
128295
128295
|
_fillBody(containerElement) {
|
|
128296
128296
|
this.setCssClass('reference-zone-widget');
|
|
128297
128297
|
// message pane
|
|
128298
|
-
this._messageContainer = append$1(containerElement, $$
|
|
128298
|
+
this._messageContainer = append$1(containerElement, $$e('div.messages'));
|
|
128299
128299
|
hide(this._messageContainer);
|
|
128300
128300
|
this._splitView = new SplitView(containerElement, { orientation: 1 /* Orientation.HORIZONTAL */ });
|
|
128301
128301
|
// editor
|
|
128302
|
-
this._previewContainer = append$1(containerElement, $$
|
|
128302
|
+
this._previewContainer = append$1(containerElement, $$e('div.preview.inline'));
|
|
128303
128303
|
const options = {
|
|
128304
128304
|
scrollBeyondLastLine: false,
|
|
128305
128305
|
scrollbar: {
|
|
@@ -128320,7 +128320,7 @@ let ReferenceWidget = class ReferenceWidget extends PeekViewWidget {
|
|
|
128320
128320
|
hide(this._previewContainer);
|
|
128321
128321
|
this._previewNotAvailableMessage = new TextModel(localize('missingPreviewMessage', "no preview available"), PLAINTEXT_LANGUAGE_ID, TextModel.DEFAULT_CREATION_OPTIONS, null, this._undoRedoService, this._languageService, this._languageConfigurationService);
|
|
128322
128322
|
// tree
|
|
128323
|
-
this._treeContainer = append$1(containerElement, $$
|
|
128323
|
+
this._treeContainer = append$1(containerElement, $$e('div.ref-tree.inline'));
|
|
128324
128324
|
const treeOptions = {
|
|
128325
128325
|
keyboardSupport: this._defaultTreeKeyboardSupport,
|
|
128326
128326
|
accessibilityProvider: new AccessibilityProvider(),
|
|
@@ -130096,7 +130096,7 @@ registerEditorContribution(GotoDefinitionAtPositionEditorContribution.ID, GotoDe
|
|
|
130096
130096
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
130097
130097
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
130098
130098
|
*--------------------------------------------------------------------------------------------*/
|
|
130099
|
-
const $$
|
|
130099
|
+
const $$6 = $$e;
|
|
130100
130100
|
class HoverWidget extends Disposable {
|
|
130101
130101
|
constructor() {
|
|
130102
130102
|
super();
|
|
@@ -130121,14 +130121,14 @@ class HoverAction extends Disposable {
|
|
|
130121
130121
|
}
|
|
130122
130122
|
constructor(parent, actionOptions, keybindingLabel) {
|
|
130123
130123
|
super();
|
|
130124
|
-
this.actionContainer = append$1(parent, $$
|
|
130124
|
+
this.actionContainer = append$1(parent, $$6('div.action-container'));
|
|
130125
130125
|
this.actionContainer.setAttribute('tabindex', '0');
|
|
130126
|
-
this.action = append$1(this.actionContainer, $$
|
|
130126
|
+
this.action = append$1(this.actionContainer, $$6('a.action'));
|
|
130127
130127
|
this.action.setAttribute('role', 'button');
|
|
130128
130128
|
if (actionOptions.iconClass) {
|
|
130129
|
-
append$1(this.action, $$
|
|
130129
|
+
append$1(this.action, $$6(`span.icon.${actionOptions.iconClass}`));
|
|
130130
130130
|
}
|
|
130131
|
-
const label = append$1(this.action, $$
|
|
130131
|
+
const label = append$1(this.action, $$6('span'));
|
|
130132
130132
|
label.textContent = keybindingLabel ? `${actionOptions.label} (${keybindingLabel})` : actionOptions.label;
|
|
130133
130133
|
this._register(addDisposableListener(this.actionContainer, EventType$1.CLICK, e => {
|
|
130134
130134
|
e.stopPropagation();
|
|
@@ -130598,7 +130598,7 @@ var __param$14 = (undefined && undefined.__param) || function (paramIndex, decor
|
|
|
130598
130598
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
130599
130599
|
};
|
|
130600
130600
|
var ContentHoverController_1, ContentHoverWidget_1;
|
|
130601
|
-
const $$
|
|
130601
|
+
const $$5 = $$e;
|
|
130602
130602
|
let ContentHoverController = ContentHoverController_1 = class ContentHoverController extends Disposable {
|
|
130603
130603
|
constructor(_editor, _instantiationService, _keybindingService) {
|
|
130604
130604
|
super();
|
|
@@ -131339,8 +131339,8 @@ let EditorHoverStatusBar = class EditorHoverStatusBar extends Disposable {
|
|
|
131339
131339
|
super();
|
|
131340
131340
|
this._keybindingService = _keybindingService;
|
|
131341
131341
|
this._hasContent = false;
|
|
131342
|
-
this.hoverElement = $$
|
|
131343
|
-
this.actionsElement = append$1(this.hoverElement, $$
|
|
131342
|
+
this.hoverElement = $$5('div.hover-row.status-bar');
|
|
131343
|
+
this.actionsElement = append$1(this.hoverElement, $$5('div.actions'));
|
|
131344
131344
|
}
|
|
131345
131345
|
addAction(actionOptions) {
|
|
131346
131346
|
const keybinding = this._keybindingService.lookupKeybinding(actionOptions.commandId);
|
|
@@ -131442,7 +131442,7 @@ function computeDistanceFromPointToRectangle(pointX, pointY, left, top, width, h
|
|
|
131442
131442
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
131443
131443
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
131444
131444
|
*--------------------------------------------------------------------------------------------*/
|
|
131445
|
-
const $$
|
|
131445
|
+
const $$4 = $$e;
|
|
131446
131446
|
class MarginHoverWidget extends Disposable {
|
|
131447
131447
|
constructor(editor, languageService, openerService) {
|
|
131448
131448
|
super();
|
|
@@ -131523,8 +131523,8 @@ class MarginHoverWidget extends Disposable {
|
|
|
131523
131523
|
this._renderDisposeables.clear();
|
|
131524
131524
|
const fragment = document.createDocumentFragment();
|
|
131525
131525
|
for (const msg of messages) {
|
|
131526
|
-
const markdownHoverElement = $$
|
|
131527
|
-
const hoverContentsElement = append$1(markdownHoverElement, $$
|
|
131526
|
+
const markdownHoverElement = $$4('div.hover-row.markdown-hover');
|
|
131527
|
+
const hoverContentsElement = append$1(markdownHoverElement, $$4('div.hover-contents'));
|
|
131528
131528
|
const renderedContents = this._renderDisposeables.add(this._markdownRenderer.render(msg.value));
|
|
131529
131529
|
hoverContentsElement.appendChild(renderedContents.element);
|
|
131530
131530
|
fragment.appendChild(markdownHoverElement);
|
|
@@ -131643,7 +131643,7 @@ var __decorate$13 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
131643
131643
|
var __param$13 = (undefined && undefined.__param) || function (paramIndex, decorator) {
|
|
131644
131644
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
131645
131645
|
};
|
|
131646
|
-
const $$
|
|
131646
|
+
const $$3 = $$e;
|
|
131647
131647
|
class MarkdownHover {
|
|
131648
131648
|
constructor(owner, range, contents, isBeforeContent, ordinal) {
|
|
131649
131649
|
this.owner = owner;
|
|
@@ -131748,8 +131748,8 @@ function renderMarkdownHovers(context, hoverParts, editor, languageService, open
|
|
|
131748
131748
|
if (isEmptyMarkdownString(contents)) {
|
|
131749
131749
|
continue;
|
|
131750
131750
|
}
|
|
131751
|
-
const markdownHoverElement = $$
|
|
131752
|
-
const hoverContentsElement = append$1(markdownHoverElement, $$
|
|
131751
|
+
const markdownHoverElement = $$3('div.hover-row.markdown-hover');
|
|
131752
|
+
const hoverContentsElement = append$1(markdownHoverElement, $$3('div.hover-contents'));
|
|
131753
131753
|
const renderer = disposables.add(new MarkdownRenderer({ editor }, languageService, openerService));
|
|
131754
131754
|
disposables.add(renderer.onDidRenderAsync(() => {
|
|
131755
131755
|
hoverContentsElement.className = 'hover-contents code-hover-contents';
|
|
@@ -132070,14 +132070,14 @@ class MessageWidget {
|
|
|
132070
132070
|
detailsElement.appendChild(codeElement);
|
|
132071
132071
|
}
|
|
132072
132072
|
else {
|
|
132073
|
-
this._codeLink = $$
|
|
132073
|
+
this._codeLink = $$e('a.code-link');
|
|
132074
132074
|
this._codeLink.setAttribute('href', `${code.target.toString()}`);
|
|
132075
132075
|
this._codeLink.onclick = (e) => {
|
|
132076
132076
|
this._openerService.open(code.target, { allowCommands: true });
|
|
132077
132077
|
e.preventDefault();
|
|
132078
132078
|
e.stopPropagation();
|
|
132079
132079
|
};
|
|
132080
|
-
const codeElement = append$1(this._codeLink, $$
|
|
132080
|
+
const codeElement = append$1(this._codeLink, $$e('span'));
|
|
132081
132081
|
codeElement.innerText = code.value;
|
|
132082
132082
|
detailsElement.appendChild(this._codeLink);
|
|
132083
132083
|
}
|
|
@@ -132201,7 +132201,7 @@ let MarkerNavigationWidget = MarkerNavigationWidget_1 = class MarkerNavigationWi
|
|
|
132201
132201
|
menu.dispose();
|
|
132202
132202
|
}
|
|
132203
132203
|
_fillTitleIcon(container) {
|
|
132204
|
-
this._icon = append$1(container, $$
|
|
132204
|
+
this._icon = append$1(container, $$e(''));
|
|
132205
132205
|
}
|
|
132206
132206
|
_fillBody(container) {
|
|
132207
132207
|
this._parentContainer = container;
|
|
@@ -132557,7 +132557,7 @@ var __decorate$$ = (undefined && undefined.__decorate) || function (decorators,
|
|
|
132557
132557
|
var __param$$ = (undefined && undefined.__param) || function (paramIndex, decorator) {
|
|
132558
132558
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
132559
132559
|
};
|
|
132560
|
-
const $$
|
|
132560
|
+
const $$2 = $$e;
|
|
132561
132561
|
class MarkerHover {
|
|
132562
132562
|
constructor(owner, range, marker) {
|
|
132563
132563
|
this.owner = owner;
|
|
@@ -132615,36 +132615,36 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
132615
132615
|
return disposables;
|
|
132616
132616
|
}
|
|
132617
132617
|
renderMarkerHover(markerHover, disposables) {
|
|
132618
|
-
const hoverElement = $$
|
|
132619
|
-
const markerElement = append$1(hoverElement, $$
|
|
132618
|
+
const hoverElement = $$2('div.hover-row');
|
|
132619
|
+
const markerElement = append$1(hoverElement, $$2('div.marker.hover-contents'));
|
|
132620
132620
|
const { source, message, code, relatedInformation } = markerHover.marker;
|
|
132621
132621
|
this._editor.applyFontInfo(markerElement);
|
|
132622
|
-
const messageElement = append$1(markerElement, $$
|
|
132622
|
+
const messageElement = append$1(markerElement, $$2('span'));
|
|
132623
132623
|
messageElement.style.whiteSpace = 'pre-wrap';
|
|
132624
132624
|
messageElement.innerText = message;
|
|
132625
132625
|
if (source || code) {
|
|
132626
132626
|
// Code has link
|
|
132627
132627
|
if (code && typeof code !== 'string') {
|
|
132628
|
-
const sourceAndCodeElement = $$
|
|
132628
|
+
const sourceAndCodeElement = $$2('span');
|
|
132629
132629
|
if (source) {
|
|
132630
|
-
const sourceElement = append$1(sourceAndCodeElement, $$
|
|
132630
|
+
const sourceElement = append$1(sourceAndCodeElement, $$2('span'));
|
|
132631
132631
|
sourceElement.innerText = source;
|
|
132632
132632
|
}
|
|
132633
|
-
const codeLink = append$1(sourceAndCodeElement, $$
|
|
132633
|
+
const codeLink = append$1(sourceAndCodeElement, $$2('a.code-link'));
|
|
132634
132634
|
codeLink.setAttribute('href', code.target.toString());
|
|
132635
132635
|
disposables.add(addDisposableListener(codeLink, 'click', (e) => {
|
|
132636
132636
|
this._openerService.open(code.target, { allowCommands: true });
|
|
132637
132637
|
e.preventDefault();
|
|
132638
132638
|
e.stopPropagation();
|
|
132639
132639
|
}));
|
|
132640
|
-
const codeElement = append$1(codeLink, $$
|
|
132640
|
+
const codeElement = append$1(codeLink, $$2('span'));
|
|
132641
132641
|
codeElement.innerText = code.value;
|
|
132642
132642
|
const detailsElement = append$1(markerElement, sourceAndCodeElement);
|
|
132643
132643
|
detailsElement.style.opacity = '0.6';
|
|
132644
132644
|
detailsElement.style.paddingLeft = '6px';
|
|
132645
132645
|
}
|
|
132646
132646
|
else {
|
|
132647
|
-
const detailsElement = append$1(markerElement, $$
|
|
132647
|
+
const detailsElement = append$1(markerElement, $$2('span'));
|
|
132648
132648
|
detailsElement.style.opacity = '0.6';
|
|
132649
132649
|
detailsElement.style.paddingLeft = '6px';
|
|
132650
132650
|
detailsElement.innerText = source && code ? `${source}(${code})` : source ? source : `(${code})`;
|
|
@@ -132652,9 +132652,9 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
132652
132652
|
}
|
|
132653
132653
|
if (isNonEmptyArray(relatedInformation)) {
|
|
132654
132654
|
for (const { message, resource, startLineNumber, startColumn } of relatedInformation) {
|
|
132655
|
-
const relatedInfoContainer = append$1(markerElement, $$
|
|
132655
|
+
const relatedInfoContainer = append$1(markerElement, $$2('div'));
|
|
132656
132656
|
relatedInfoContainer.style.marginTop = '8px';
|
|
132657
|
-
const a = append$1(relatedInfoContainer, $$
|
|
132657
|
+
const a = append$1(relatedInfoContainer, $$2('a'));
|
|
132658
132658
|
a.innerText = `${basename(resource)}(${startLineNumber}, ${startColumn}): `;
|
|
132659
132659
|
a.style.cursor = 'pointer';
|
|
132660
132660
|
disposables.add(addDisposableListener(a, 'click', (e) => {
|
|
@@ -132667,7 +132667,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
132667
132667
|
}).catch(onUnexpectedError);
|
|
132668
132668
|
}
|
|
132669
132669
|
}));
|
|
132670
|
-
const messageElement = append$1(relatedInfoContainer, $$
|
|
132670
|
+
const messageElement = append$1(relatedInfoContainer, $$2('span'));
|
|
132671
132671
|
messageElement.innerText = message;
|
|
132672
132672
|
this._editor.applyFontInfo(messageElement);
|
|
132673
132673
|
}
|
|
@@ -132688,7 +132688,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
132688
132688
|
});
|
|
132689
132689
|
}
|
|
132690
132690
|
if (!this._editor.getOption(90 /* EditorOption.readOnly */)) {
|
|
132691
|
-
const quickfixPlaceholderElement = context.statusBar.append($$
|
|
132691
|
+
const quickfixPlaceholderElement = context.statusBar.append($$2('div'));
|
|
132692
132692
|
if (this.recentMarkerCodeActionsInfo) {
|
|
132693
132693
|
if (IMarkerData.makeKey(this.recentMarkerCodeActionsInfo.marker) === IMarkerData.makeKey(markerHover.marker)) {
|
|
132694
132694
|
if (!this.recentMarkerCodeActionsInfo.hasCodeActions) {
|
|
@@ -135776,10 +135776,10 @@ class InlineProgressWidget extends Disposable {
|
|
|
135776
135776
|
this.editor.layoutContentWidget(this);
|
|
135777
135777
|
}
|
|
135778
135778
|
create(title) {
|
|
135779
|
-
this.domNode = $$
|
|
135779
|
+
this.domNode = $$e('.inline-progress-widget');
|
|
135780
135780
|
this.domNode.role = 'button';
|
|
135781
135781
|
this.domNode.title = title;
|
|
135782
|
-
const iconElement = $$
|
|
135782
|
+
const iconElement = $$e('span.icon');
|
|
135783
135783
|
this.domNode.append(iconElement);
|
|
135784
135784
|
iconElement.classList.add(...ThemeIcon.asClassNameArray(Codicon.loading), 'codicon-modifier-spin');
|
|
135785
135785
|
const updateSize = () => {
|
|
@@ -135911,7 +135911,7 @@ let PostEditWidget = PostEditWidget_1 = class PostEditWidget extends Disposable
|
|
|
135911
135911
|
this.button.element.title = this.showCommand.label + (binding ? ` (${binding})` : '');
|
|
135912
135912
|
}
|
|
135913
135913
|
create() {
|
|
135914
|
-
this.domNode = $$
|
|
135914
|
+
this.domNode = $$e('.post-edit-widget');
|
|
135915
135915
|
this.button = this._register(new Button(this.domNode, {
|
|
135916
135916
|
supportIcons: true,
|
|
135917
135917
|
}));
|
|
@@ -149580,7 +149580,7 @@ let SuggestWidgetStatus = class SuggestWidgetStatus {
|
|
|
149580
149580
|
this._menuService = _menuService;
|
|
149581
149581
|
this._contextKeyService = _contextKeyService;
|
|
149582
149582
|
this._menuDisposables = new DisposableStore();
|
|
149583
|
-
this.element = append$1(container, $$
|
|
149583
|
+
this.element = append$1(container, $$e('.suggest-status-bar'));
|
|
149584
149584
|
const actionViewItemProvider = (action => {
|
|
149585
149585
|
return action instanceof MenuItemAction ? instantiationService.createInstance(StatusBarViewItem, action, undefined) : undefined;
|
|
149586
149586
|
});
|
|
@@ -149653,20 +149653,20 @@ let SuggestDetailsWidget = class SuggestDetailsWidget {
|
|
|
149653
149653
|
this._renderDisposeable = new DisposableStore();
|
|
149654
149654
|
this._borderWidth = 1;
|
|
149655
149655
|
this._size = new Dimension(330, 0);
|
|
149656
|
-
this.domNode = $$
|
|
149656
|
+
this.domNode = $$e('.suggest-details');
|
|
149657
149657
|
this.domNode.classList.add('no-docs');
|
|
149658
149658
|
this._markdownRenderer = instaService.createInstance(MarkdownRenderer, { editor: _editor });
|
|
149659
|
-
this._body = $$
|
|
149659
|
+
this._body = $$e('.body');
|
|
149660
149660
|
this._scrollbar = new DomScrollableElement(this._body, {
|
|
149661
149661
|
alwaysConsumeMouseWheel: true,
|
|
149662
149662
|
});
|
|
149663
149663
|
append$1(this.domNode, this._scrollbar.getDomNode());
|
|
149664
149664
|
this._disposables.add(this._scrollbar);
|
|
149665
|
-
this._header = append$1(this._body, $$
|
|
149666
|
-
this._close = append$1(this._header, $$
|
|
149665
|
+
this._header = append$1(this._body, $$e('.header'));
|
|
149666
|
+
this._close = append$1(this._header, $$e('span' + ThemeIcon.asCSSSelector(Codicon.close)));
|
|
149667
149667
|
this._close.title = localize('details.close', "Close");
|
|
149668
|
-
this._type = append$1(this._header, $$
|
|
149669
|
-
this._docs = append$1(this._body, $$
|
|
149668
|
+
this._type = append$1(this._header, $$e('p.type'));
|
|
149669
|
+
this._docs = append$1(this._body, $$e('p.docs'));
|
|
149670
149670
|
this._configureFont();
|
|
149671
149671
|
this._disposables.add(this._editor.onDidChangeConfiguration(e => {
|
|
149672
149672
|
if (e.hasChanged(50 /* EditorOption.fontInfo */)) {
|
|
@@ -150154,19 +150154,19 @@ let ItemRenderer = class ItemRenderer {
|
|
|
150154
150154
|
const disposables = new DisposableStore();
|
|
150155
150155
|
const root = container;
|
|
150156
150156
|
root.classList.add('show-file-icons');
|
|
150157
|
-
const icon = append$1(container, $$
|
|
150158
|
-
const colorspan = append$1(icon, $$
|
|
150159
|
-
const text = append$1(container, $$
|
|
150160
|
-
const main = append$1(text, $$
|
|
150161
|
-
const iconContainer = append$1(main, $$
|
|
150162
|
-
const left = append$1(main, $$
|
|
150163
|
-
const right = append$1(main, $$
|
|
150157
|
+
const icon = append$1(container, $$e('.icon'));
|
|
150158
|
+
const colorspan = append$1(icon, $$e('span.colorspan'));
|
|
150159
|
+
const text = append$1(container, $$e('.contents'));
|
|
150160
|
+
const main = append$1(text, $$e('.main'));
|
|
150161
|
+
const iconContainer = append$1(main, $$e('.icon-label.codicon'));
|
|
150162
|
+
const left = append$1(main, $$e('span.left'));
|
|
150163
|
+
const right = append$1(main, $$e('span.right'));
|
|
150164
150164
|
const iconLabel = new IconLabel(left, { supportHighlights: true, supportIcons: true });
|
|
150165
150165
|
disposables.add(iconLabel);
|
|
150166
|
-
const parametersLabel = append$1(left, $$
|
|
150167
|
-
const qualifierLabel = append$1(left, $$
|
|
150168
|
-
const detailsLabel = append$1(right, $$
|
|
150169
|
-
const readMore = append$1(right, $$
|
|
150166
|
+
const parametersLabel = append$1(left, $$e('span.signature-label'));
|
|
150167
|
+
const qualifierLabel = append$1(left, $$e('span.qualifier-label'));
|
|
150168
|
+
const detailsLabel = append$1(right, $$e('span.details-label'));
|
|
150169
|
+
const readMore = append$1(right, $$e('span.readMore' + ThemeIcon.asCSSSelector(suggestMoreInfoIcon)));
|
|
150170
150170
|
readMore.title = localize('readMore', "Read More");
|
|
150171
150171
|
const configureFont = () => {
|
|
150172
150172
|
const options = this._editor.getOptions();
|
|
@@ -150411,8 +150411,8 @@ let SuggestWidget = SuggestWidget_1 = class SuggestWidget {
|
|
|
150411
150411
|
this._contentWidget.unlockPreference();
|
|
150412
150412
|
state = undefined;
|
|
150413
150413
|
}));
|
|
150414
|
-
this._messageElement = append$1(this.element.domNode, $$
|
|
150415
|
-
this._listElement = append$1(this.element.domNode, $$
|
|
150414
|
+
this._messageElement = append$1(this.element.domNode, $$e('.message'));
|
|
150415
|
+
this._listElement = append$1(this.element.domNode, $$e('.tree'));
|
|
150416
150416
|
const details = this._disposables.add(instantiationService.createInstance(SuggestDetailsWidget, this.editor));
|
|
150417
150417
|
details.onDidClose(this.toggleDetails, this, this._disposables);
|
|
150418
150418
|
this._details = new SuggestDetailsOverlay(details, this.editor);
|
|
@@ -152652,7 +152652,7 @@ let InlineCompletionsHoverParticipant = class InlineCompletionsHoverParticipant
|
|
|
152652
152652
|
return disposableStore;
|
|
152653
152653
|
}
|
|
152654
152654
|
renderScreenReaderText(context, part, disposableStore) {
|
|
152655
|
-
const $ = $$
|
|
152655
|
+
const $ = $$e;
|
|
152656
152656
|
const markdownHoverElement = $('div.hover-row.markdown-hover');
|
|
152657
152657
|
const hoverContentsElement = append$1(markdownHoverElement, $('div.hover-contents', { ['aria-live']: 'assertive' }));
|
|
152658
152658
|
const renderer = disposableStore.add(new MarkdownRenderer({ editor: this._editor }, this._languageService, this._openerService));
|
|
@@ -158324,7 +158324,7 @@ var __param$n = (undefined && undefined.__param) || function (paramIndex, decora
|
|
|
158324
158324
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
158325
158325
|
};
|
|
158326
158326
|
var ParameterHintsWidget_1;
|
|
158327
|
-
const
|
|
158327
|
+
const $$1 = $$e;
|
|
158328
158328
|
const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, localize('parameterHintsNextIcon', 'Icon for show next parameter hint.'));
|
|
158329
158329
|
const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, localize('parameterHintsPreviousIcon', 'Icon for show previous parameter hint.'));
|
|
158330
158330
|
let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget extends Disposable {
|
|
@@ -158342,13 +158342,13 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
158342
158342
|
this.keyMultipleSignatures = Context.MultipleSignatures.bindTo(contextKeyService);
|
|
158343
158343
|
}
|
|
158344
158344
|
createParameterHintDOMNodes() {
|
|
158345
|
-
const element =
|
|
158346
|
-
const wrapper = append$1(element,
|
|
158345
|
+
const element = $$1('.editor-widget.parameter-hints-widget');
|
|
158346
|
+
const wrapper = append$1(element, $$1('.phwrapper'));
|
|
158347
158347
|
wrapper.tabIndex = -1;
|
|
158348
|
-
const controls = append$1(wrapper,
|
|
158349
|
-
const previous = append$1(controls,
|
|
158350
|
-
const overloads = append$1(controls,
|
|
158351
|
-
const next = append$1(controls,
|
|
158348
|
+
const controls = append$1(wrapper, $$1('.controls'));
|
|
158349
|
+
const previous = append$1(controls, $$1('.button' + ThemeIcon.asCSSSelector(parameterHintsPreviousIcon)));
|
|
158350
|
+
const overloads = append$1(controls, $$1('.overloads'));
|
|
158351
|
+
const next = append$1(controls, $$1('.button' + ThemeIcon.asCSSSelector(parameterHintsNextIcon)));
|
|
158352
158352
|
this._register(addDisposableListener(previous, 'click', e => {
|
|
158353
158353
|
EventHelper.stop(e);
|
|
158354
158354
|
this.previous();
|
|
@@ -158357,14 +158357,14 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
158357
158357
|
EventHelper.stop(e);
|
|
158358
158358
|
this.next();
|
|
158359
158359
|
}));
|
|
158360
|
-
const body =
|
|
158360
|
+
const body = $$1('.body');
|
|
158361
158361
|
const scrollbar = new DomScrollableElement(body, {
|
|
158362
158362
|
alwaysConsumeMouseWheel: true,
|
|
158363
158363
|
});
|
|
158364
158364
|
this._register(scrollbar);
|
|
158365
158365
|
wrapper.appendChild(scrollbar.getDomNode());
|
|
158366
|
-
const signature = append$1(body,
|
|
158367
|
-
const docs = append$1(body,
|
|
158366
|
+
const signature = append$1(body, $$1('.signature'));
|
|
158367
|
+
const docs = append$1(body, $$1('.docs'));
|
|
158368
158368
|
element.style.userSelect = 'text';
|
|
158369
158369
|
this.domNodes = {
|
|
158370
158370
|
element,
|
|
@@ -158444,14 +158444,14 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
158444
158444
|
if (!signature) {
|
|
158445
158445
|
return;
|
|
158446
158446
|
}
|
|
158447
|
-
const code = append$1(this.domNodes.signature,
|
|
158447
|
+
const code = append$1(this.domNodes.signature, $$1('.code'));
|
|
158448
158448
|
const fontInfo = this.editor.getOption(50 /* EditorOption.fontInfo */);
|
|
158449
158449
|
code.style.fontSize = `${fontInfo.fontSize}px`;
|
|
158450
158450
|
code.style.fontFamily = fontInfo.fontFamily;
|
|
158451
158451
|
const hasParameters = signature.parameters.length > 0;
|
|
158452
158452
|
const activeParameterIndex = (_a = signature.activeParameter) !== null && _a !== void 0 ? _a : hints.activeParameter;
|
|
158453
158453
|
if (!hasParameters) {
|
|
158454
|
-
const label = append$1(code,
|
|
158454
|
+
const label = append$1(code, $$1('span'));
|
|
158455
158455
|
label.textContent = signature.label;
|
|
158456
158456
|
}
|
|
158457
158457
|
else {
|
|
@@ -158459,7 +158459,7 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
158459
158459
|
}
|
|
158460
158460
|
const activeParameter = signature.parameters[activeParameterIndex];
|
|
158461
158461
|
if (activeParameter === null || activeParameter === void 0 ? void 0 : activeParameter.documentation) {
|
|
158462
|
-
const documentation =
|
|
158462
|
+
const documentation = $$1('span.documentation');
|
|
158463
158463
|
if (typeof activeParameter.documentation === 'string') {
|
|
158464
158464
|
documentation.textContent = activeParameter.documentation;
|
|
158465
158465
|
}
|
|
@@ -158467,11 +158467,11 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
158467
158467
|
const renderedContents = this.renderMarkdownDocs(activeParameter.documentation);
|
|
158468
158468
|
documentation.appendChild(renderedContents.element);
|
|
158469
158469
|
}
|
|
158470
|
-
append$1(this.domNodes.docs,
|
|
158470
|
+
append$1(this.domNodes.docs, $$1('p', {}, documentation));
|
|
158471
158471
|
}
|
|
158472
158472
|
if (signature.documentation === undefined) ;
|
|
158473
158473
|
else if (typeof signature.documentation === 'string') {
|
|
158474
|
-
append$1(this.domNodes.docs,
|
|
158474
|
+
append$1(this.domNodes.docs, $$1('p', {}, signature.documentation));
|
|
158475
158475
|
}
|
|
158476
158476
|
else {
|
|
158477
158477
|
const renderedContents = this.renderMarkdownDocs(signature.documentation);
|
|
@@ -162154,7 +162154,7 @@ let Link = class Link extends Disposable {
|
|
|
162154
162154
|
super();
|
|
162155
162155
|
this._link = _link;
|
|
162156
162156
|
this._enabled = true;
|
|
162157
|
-
this.el = append$1(container, $$
|
|
162157
|
+
this.el = append$1(container, $$e('a.monaco-link', {
|
|
162158
162158
|
tabIndex: (_a = _link.tabIndex) !== null && _a !== void 0 ? _a : 0,
|
|
162159
162159
|
href: _link.href,
|
|
162160
162160
|
title: _link.title
|
|
@@ -162228,7 +162228,7 @@ let Banner = class Banner extends Disposable {
|
|
|
162228
162228
|
super();
|
|
162229
162229
|
this.instantiationService = instantiationService;
|
|
162230
162230
|
this.markdownRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
|
|
162231
|
-
this.element = $$
|
|
162231
|
+
this.element = $$e('div.editor-banner');
|
|
162232
162232
|
this.element.tabIndex = 0;
|
|
162233
162233
|
}
|
|
162234
162234
|
getAriaLabel(item) {
|
|
@@ -162242,7 +162242,7 @@ let Banner = class Banner extends Disposable {
|
|
|
162242
162242
|
}
|
|
162243
162243
|
getBannerMessage(message) {
|
|
162244
162244
|
if (typeof message === 'string') {
|
|
162245
|
-
const element = $$
|
|
162245
|
+
const element = $$e('span');
|
|
162246
162246
|
element.innerText = message;
|
|
162247
162247
|
return element;
|
|
162248
162248
|
}
|
|
@@ -162260,24 +162260,24 @@ let Banner = class Banner extends Disposable {
|
|
|
162260
162260
|
this.element.setAttribute('aria-label', ariaLabel);
|
|
162261
162261
|
}
|
|
162262
162262
|
// Icon
|
|
162263
|
-
const iconContainer = append$1(this.element, $$
|
|
162263
|
+
const iconContainer = append$1(this.element, $$e('div.icon-container'));
|
|
162264
162264
|
iconContainer.setAttribute('aria-hidden', 'true');
|
|
162265
162265
|
if (item.icon) {
|
|
162266
|
-
iconContainer.appendChild($$
|
|
162266
|
+
iconContainer.appendChild($$e(`div${ThemeIcon.asCSSSelector(item.icon)}`));
|
|
162267
162267
|
}
|
|
162268
162268
|
// Message
|
|
162269
|
-
const messageContainer = append$1(this.element, $$
|
|
162269
|
+
const messageContainer = append$1(this.element, $$e('div.message-container'));
|
|
162270
162270
|
messageContainer.setAttribute('aria-hidden', 'true');
|
|
162271
162271
|
messageContainer.appendChild(this.getBannerMessage(item.message));
|
|
162272
162272
|
// Message Actions
|
|
162273
|
-
this.messageActionsContainer = append$1(this.element, $$
|
|
162273
|
+
this.messageActionsContainer = append$1(this.element, $$e('div.message-actions-container'));
|
|
162274
162274
|
if (item.actions) {
|
|
162275
162275
|
for (const action of item.actions) {
|
|
162276
162276
|
this._register(this.instantiationService.createInstance(Link, this.messageActionsContainer, { ...action, tabIndex: -1 }, {}));
|
|
162277
162277
|
}
|
|
162278
162278
|
}
|
|
162279
162279
|
// Action
|
|
162280
|
-
const actionBarContainer = append$1(this.element, $$
|
|
162280
|
+
const actionBarContainer = append$1(this.element, $$e('div.action-container'));
|
|
162281
162281
|
this.actionBar = this._register(new ActionBar(actionBarContainer));
|
|
162282
162282
|
this.actionBar.push(this._register(new Action('banner.close', 'Close Banner', ThemeIcon.asClassName(widgetClose), true, () => {
|
|
162283
162283
|
if (typeof item.onClose === 'function') {
|
|
@@ -164590,13 +164590,13 @@ class InspectTokensWidget extends Disposable {
|
|
|
164590
164590
|
const tokenEndIndex = token1Index + 1 < data.tokens1.length ? data.tokens1[token1Index + 1].offset : lineContent.length;
|
|
164591
164591
|
tokenText = lineContent.substring(tokenStartIndex, tokenEndIndex);
|
|
164592
164592
|
}
|
|
164593
|
-
reset(this._domNode, $$
|
|
164594
|
-
append$1(this._domNode, $$
|
|
164593
|
+
reset(this._domNode, $$e('h2.tm-token', undefined, renderTokenText(tokenText), $$e('span.tm-token-length', undefined, `${tokenText.length} ${tokenText.length === 1 ? 'char' : 'chars'}`)));
|
|
164594
|
+
append$1(this._domNode, $$e('hr.tokens-inspect-separator', { 'style': 'clear:both' }));
|
|
164595
164595
|
const metadata = (token2Index << 1) + 1 < data.tokens2.length ? this._decodeMetadata(data.tokens2[(token2Index << 1) + 1]) : null;
|
|
164596
|
-
append$1(this._domNode, $$
|
|
164597
|
-
append$1(this._domNode, $$
|
|
164596
|
+
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) : '-?-'}`)))));
|
|
164597
|
+
append$1(this._domNode, $$e('hr.tokens-inspect-separator'));
|
|
164598
164598
|
if (token1Index < data.tokens1.length) {
|
|
164599
|
-
append$1(this._domNode, $$
|
|
164599
|
+
append$1(this._domNode, $$e('span.tm-token-type', undefined, data.tokens1[token1Index].type));
|
|
164600
164600
|
}
|
|
164601
164601
|
this._editor.layoutContentWidget(this);
|
|
164602
164602
|
}
|
|
@@ -168925,63 +168925,64 @@ var main = createCommonjsModule(function (module, exports) {
|
|
|
168925
168925
|
});
|
|
168926
168926
|
});
|
|
168927
168927
|
|
|
168928
|
-
|
|
168928
|
+
// src/index.ts
|
|
168929
|
+
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
|
|
168929
168930
|
function isDefaultModule(module) {
|
|
168930
|
-
|
|
168931
|
+
return module.default !== void 0;
|
|
168931
168932
|
}
|
|
168932
168933
|
async function importLayersFeatureLayer() {
|
|
168933
|
-
|
|
168934
|
-
|
|
168935
|
-
|
|
168936
|
-
|
|
168937
|
-
|
|
168934
|
+
if (isAMD) {
|
|
168935
|
+
return await window.$arcgis.import("esri/layers/FeatureLayer");
|
|
168936
|
+
}
|
|
168937
|
+
const module = await import('@arcgis/core/layers/FeatureLayer.js');
|
|
168938
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168938
168939
|
}
|
|
168939
168940
|
async function importPortalPortalItem() {
|
|
168940
|
-
|
|
168941
|
-
|
|
168942
|
-
|
|
168943
|
-
|
|
168944
|
-
|
|
168941
|
+
if (isAMD) {
|
|
168942
|
+
return await window.$arcgis.import("esri/portal/PortalItem");
|
|
168943
|
+
}
|
|
168944
|
+
const module = await import('@arcgis/core/portal/PortalItem.js');
|
|
168945
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168945
168946
|
}
|
|
168946
168947
|
async function newPortalPortalItem(properties) {
|
|
168947
|
-
|
|
168948
|
-
|
|
168948
|
+
const ModConstructor = await importPortalPortalItem();
|
|
168949
|
+
return new ModConstructor(properties);
|
|
168949
168950
|
}
|
|
168950
168951
|
async function importWebMap() {
|
|
168951
|
-
|
|
168952
|
-
|
|
168953
|
-
|
|
168954
|
-
|
|
168955
|
-
|
|
168952
|
+
if (isAMD) {
|
|
168953
|
+
return await window.$arcgis.import("esri/WebMap");
|
|
168954
|
+
}
|
|
168955
|
+
const module = await import('@arcgis/core/WebMap.js');
|
|
168956
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168956
168957
|
}
|
|
168957
168958
|
async function newWebMap(properties) {
|
|
168958
|
-
|
|
168959
|
-
|
|
168959
|
+
const ModConstructor = await importWebMap();
|
|
168960
|
+
return new ModConstructor(properties);
|
|
168960
168961
|
}
|
|
168961
168962
|
async function importWebScene() {
|
|
168962
|
-
|
|
168963
|
-
|
|
168964
|
-
|
|
168965
|
-
|
|
168966
|
-
|
|
168963
|
+
if (isAMD) {
|
|
168964
|
+
return await window.$arcgis.import("esri/WebScene");
|
|
168965
|
+
}
|
|
168966
|
+
const module = await import('@arcgis/core/WebScene.js');
|
|
168967
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168967
168968
|
}
|
|
168968
168969
|
async function newWebScene(properties) {
|
|
168969
|
-
|
|
168970
|
-
|
|
168970
|
+
const ModConstructor = await importWebScene();
|
|
168971
|
+
return new ModConstructor(properties);
|
|
168971
168972
|
}
|
|
168972
168973
|
async function importArcade() {
|
|
168973
|
-
|
|
168974
|
-
|
|
168975
|
-
|
|
168976
|
-
|
|
168977
|
-
|
|
168974
|
+
if (isAMD) {
|
|
168975
|
+
return await window.$arcgis.import("esri/arcade");
|
|
168976
|
+
}
|
|
168977
|
+
const module = await import('@arcgis/core/arcade.js');
|
|
168978
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168978
168979
|
}
|
|
168979
168980
|
async function importRequest() {
|
|
168980
|
-
|
|
168981
|
-
|
|
168982
|
-
|
|
168983
|
-
|
|
168984
|
-
|
|
168981
|
+
if (isAMD) {
|
|
168982
|
+
return await window.$arcgis.import("esri/request");
|
|
168983
|
+
}
|
|
168984
|
+
const module = await import('@arcgis/core/request.js');
|
|
168985
|
+
return isDefaultModule(module) ? module.default : module;
|
|
168985
168986
|
}
|
|
168986
168987
|
|
|
168987
168988
|
//#region core adapter fix
|
|
@@ -169168,7 +169169,7 @@ function filterFeatureLayerInfos(layers, queryCapability) {
|
|
|
169168
169169
|
}
|
|
169169
169170
|
//#endregion
|
|
169170
169171
|
|
|
169171
|
-
var h=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function
|
|
169172
|
+
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}}
|
|
169172
169173
|
|
|
169173
169174
|
/**
|
|
169174
169175
|
* Filters a collection of items by the given keys and filter word.
|
|
@@ -169181,7 +169182,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
|
|
|
169181
169182
|
if (!_keys.length) {
|
|
169182
169183
|
return [];
|
|
169183
169184
|
}
|
|
169184
|
-
const filterExpression =
|
|
169185
|
+
const filterExpression = ne(filterWord);
|
|
169185
169186
|
return collection.filter((item) => {
|
|
169186
169187
|
if (beforeFilteringFn) {
|
|
169187
169188
|
const res = beforeFilteringFn(item);
|
|
@@ -169525,9 +169526,9 @@ class ProfileItemBase {
|
|
|
169525
169526
|
// If the component is under RTL, the string is messed up.
|
|
169526
169527
|
// It is converted from $feature to feature$, This is not acceptable since the label
|
|
169527
169528
|
// represents a variable name. We are adding in front of the $ sign a right to left mark.
|
|
169528
|
-
return
|
|
169529
|
+
return oe(this._label);
|
|
169529
169530
|
}
|
|
169530
|
-
return
|
|
169531
|
+
return re(this._profile?.intlStrings[this._label.code], this._label.formatValues);
|
|
169531
169532
|
}
|
|
169532
169533
|
/**
|
|
169533
169534
|
* Returns the description string.
|
|
@@ -169539,7 +169540,7 @@ class ProfileItemBase {
|
|
|
169539
169540
|
if (typeof this.description === "string") {
|
|
169540
169541
|
return this.description;
|
|
169541
169542
|
}
|
|
169542
|
-
return
|
|
169543
|
+
return re(this._profile?.intlStrings[this.description.code], this.description.formatValues);
|
|
169543
169544
|
}
|
|
169544
169545
|
/**
|
|
169545
169546
|
* Returns true if the item pass the filter test
|
|
@@ -169780,7 +169781,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169780
169781
|
return this._profile?.intlStrings.layer ?? "layer";
|
|
169781
169782
|
}
|
|
169782
169783
|
async loadSource() {
|
|
169783
|
-
if (
|
|
169784
|
+
if (ie(this._loadPromise) && ae(this._loadPromise)) {
|
|
169784
169785
|
return await this._loadPromise;
|
|
169785
169786
|
}
|
|
169786
169787
|
this._loadPromise = this._loadSource();
|
|
@@ -170048,7 +170049,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170048
170049
|
nonInteractive: true
|
|
170049
170050
|
}, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
|
|
170050
170051
|
}));
|
|
170051
|
-
relationshipsGroup.variables = relationshipItems.filter(
|
|
170052
|
+
relationshipsGroup.variables = relationshipItems.filter(ie);
|
|
170052
170053
|
if (!relationshipsGroup.variables.length) {
|
|
170053
170054
|
return null;
|
|
170054
170055
|
}
|
|
@@ -170212,7 +170213,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170212
170213
|
return this._profile?.intlStrings.map ?? "map";
|
|
170213
170214
|
}
|
|
170214
170215
|
async loadSource() {
|
|
170215
|
-
if (
|
|
170216
|
+
if (ie(this._loadPromise) && ae(this._loadPromise)) {
|
|
170216
170217
|
return await this._loadPromise;
|
|
170217
170218
|
}
|
|
170218
170219
|
this._loadPromise = this._loadSource();
|
|
@@ -170459,7 +170460,7 @@ async function getSdkPredefinedProfiles(locale = "en") {
|
|
|
170459
170460
|
if (profiles) {
|
|
170460
170461
|
return profiles;
|
|
170461
170462
|
}
|
|
170462
|
-
if (!
|
|
170463
|
+
if (!v.has(locale)) {
|
|
170463
170464
|
return await getSdkPredefinedProfiles("en");
|
|
170464
170465
|
}
|
|
170465
170466
|
try {
|
|
@@ -170630,7 +170631,7 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170630
170631
|
if (isPredefinedProfile(definition)) {
|
|
170631
170632
|
definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
|
|
170632
170633
|
}
|
|
170633
|
-
const intlStrings = await
|
|
170634
|
+
const intlStrings = await j(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
170634
170635
|
if (!intlStrings) {
|
|
170635
170636
|
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
170636
170637
|
}
|
|
@@ -170712,4 +170713,4 @@ const arcade = {
|
|
|
170712
170713
|
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
|
|
170713
170714
|
};
|
|
170714
170715
|
|
|
170715
|
-
export {
|
|
170716
|
+
export { Emitter as E, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, Q, Range as R, StandaloneServices as S, Uri as U, W, _, arcade as a, commonjsGlobal as b, createCommonjsModule as c, de as d, editor as e, ge as f, generateTokensCSSForColorMap as g, arcadeDefaults as h, importRequest as i, filterCollection as j, importArcade as k, languages as l, h as m, ne as n, oe as o, b as p, KeyMod as q, re as r, supportedFields as s, te as t, monaco_editor_core_star as u, typescriptDefaults as v, main as w, le as x };
|