@arcgis/coding-components 4.29.0-beta.48 → 4.29.0-beta.49
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 +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +13 -13
- package/dist/arcgis-coding-components/index.esm.js +1 -1
- package/dist/arcgis-coding-components/{p-b5479fc4.js → p-0d616249.js} +8 -8
- package/dist/arcgis-coding-components/{p-af7d25aa.js → p-5802524a.js} +1 -1
- package/dist/arcgis-coding-components/{p-30618728.js → p-5ddccf04.js} +1 -1
- package/dist/arcgis-coding-components/p-7475f3a6.js +1 -0
- package/dist/arcgis-coding-components/{p-2e99b56e.js → p-7d8caba9.js} +1 -1
- package/dist/arcgis-coding-components/{p-a8d30530.js → p-9f6db08a.js} +1 -1
- package/dist/arcgis-coding-components/{p-0823fa31.js → p-aefe77ce.js} +1 -1
- package/dist/arcgis-coding-components/p-ce2be55e.entry.js +1 -0
- package/dist/arcgis-coding-components/{p-d78367ff.js → p-d425a387.js} +1 -1
- package/dist/arcgis-coding-components/{p-ae129dfa.js → p-ff21f230.js} +1 -1
- package/dist/cjs/{arcade-defaults-6fa4acb9.js → arcade-defaults-2d513b59.js} +238 -238
- package/dist/cjs/{arcade-mode-15687545.js → arcade-mode-6219f1b8.js} +74 -73
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +42 -46
- package/dist/cjs/{cssMode-644e4ecf.js → cssMode-1ec48254.js} +1 -1
- package/dist/cjs/{html-567706f3.js → html-0e1741fe.js} +1 -1
- package/dist/cjs/{htmlMode-14c95ab8.js → htmlMode-279d3c29.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{javascript-69c3523c.js → javascript-04f1bce0.js} +2 -2
- package/dist/cjs/{jsonMode-da8803e7.js → jsonMode-59322f7a.js} +1 -1
- package/dist/cjs/{tsMode-eddf280e.js → tsMode-17561f70.js} +1 -1
- package/dist/cjs/{typescript-114292ed.js → typescript-b7da8629.js} +1 -1
- package/dist/components/arcade-api.js +1 -1
- package/dist/components/arcade-contribution.js +4 -4
- package/dist/components/arcade-defaults.js +3 -3
- package/dist/components/arcade-mode.js +73 -72
- package/dist/components/arcade-results.js +26 -30
- package/dist/components/arcade-suggestions.js +2 -4
- package/dist/components/arcade-variables.js +4 -2
- package/dist/components/arcgis-arcade-editor.js +3 -3
- package/dist/components/index2.js +2 -2
- package/dist/components/markdown.js +1 -1
- package/dist/esm/{arcade-defaults-3a952c7e.js → arcade-defaults-0bafa696.js} +238 -238
- package/dist/esm/{arcade-mode-619b0989.js → arcade-mode-c17a1fa1.js} +74 -73
- package/dist/esm/arcgis-arcade-api_6.entry.js +42 -46
- package/dist/esm/{cssMode-4100a9c5.js → cssMode-3d18bd2b.js} +1 -1
- package/dist/esm/{html-fbb4fdec.js → html-2bce5d77.js} +1 -1
- package/dist/esm/{htmlMode-a896869e.js → htmlMode-69d56956.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{javascript-a0bd70ad.js → javascript-ded5c9d7.js} +2 -2
- package/dist/esm/{jsonMode-76fe6af1.js → jsonMode-0bf84cb2.js} +1 -1
- package/dist/esm/{tsMode-277700f6.js → tsMode-15d4e936.js} +1 -1
- package/dist/esm/{typescript-c9f880aa.js → typescript-cc4d00f0.js} +1 -1
- package/package.json +6 -6
- package/dist/arcgis-coding-components/p-3dd452e0.js +0 -1
- package/dist/arcgis-coding-components/p-8f729db2.entry.js +0 -1
|
@@ -18824,10 +18824,10 @@ function _$(namespace, description, attrs, ...children) {
|
|
|
18824
18824
|
result.append(...children);
|
|
18825
18825
|
return result;
|
|
18826
18826
|
}
|
|
18827
|
-
function $$
|
|
18827
|
+
function $$e(description, attrs, ...children) {
|
|
18828
18828
|
return _$(Namespace.HTML, description, attrs, ...children);
|
|
18829
18829
|
}
|
|
18830
|
-
$$
|
|
18830
|
+
$$e.SVG = function (description, attrs, ...children) {
|
|
18831
18831
|
return _$(Namespace.SVG, description, attrs, ...children);
|
|
18832
18832
|
};
|
|
18833
18833
|
function setVisibility(visible, ...elements) {
|
|
@@ -81834,7 +81834,7 @@ class ContextView extends Disposable {
|
|
|
81834
81834
|
this.toDisposeOnSetContainer = Disposable.None;
|
|
81835
81835
|
this.shadowRoot = null;
|
|
81836
81836
|
this.shadowRootHostElement = null;
|
|
81837
|
-
this.view = $$
|
|
81837
|
+
this.view = $$e('.context-view');
|
|
81838
81838
|
this.useFixedPosition = false;
|
|
81839
81839
|
this.useShadowDOM = false;
|
|
81840
81840
|
hide(this.view);
|
|
@@ -81861,14 +81861,14 @@ class ContextView extends Disposable {
|
|
|
81861
81861
|
this.useFixedPosition = domPosition !== 1 /* ContextViewDOMPosition.ABSOLUTE */;
|
|
81862
81862
|
this.useShadowDOM = domPosition === 3 /* ContextViewDOMPosition.FIXED_SHADOW */;
|
|
81863
81863
|
if (this.useShadowDOM) {
|
|
81864
|
-
this.shadowRootHostElement = $$
|
|
81864
|
+
this.shadowRootHostElement = $$e('.shadow-root-host');
|
|
81865
81865
|
this.container.appendChild(this.shadowRootHostElement);
|
|
81866
81866
|
this.shadowRoot = this.shadowRootHostElement.attachShadow({ mode: 'open' });
|
|
81867
81867
|
const style = document.createElement('style');
|
|
81868
81868
|
style.textContent = SHADOW_ROOT_CSS;
|
|
81869
81869
|
this.shadowRoot.appendChild(style);
|
|
81870
81870
|
this.shadowRoot.appendChild(this.view);
|
|
81871
|
-
this.shadowRoot.appendChild($$
|
|
81871
|
+
this.shadowRoot.appendChild($$e('slot'));
|
|
81872
81872
|
}
|
|
81873
81873
|
else {
|
|
81874
81874
|
this.container.appendChild(this.view);
|
|
@@ -83962,7 +83962,7 @@ function renderLabelWithIcons(text) {
|
|
|
83962
83962
|
return elements;
|
|
83963
83963
|
}
|
|
83964
83964
|
function renderIcon(icon) {
|
|
83965
|
-
const node = $$
|
|
83965
|
+
const node = $$e(`span`);
|
|
83966
83966
|
node.classList.add(...ThemeIcon.asClassNameArray(icon));
|
|
83967
83967
|
return node;
|
|
83968
83968
|
}
|
|
@@ -87990,7 +87990,7 @@ class RowCache {
|
|
|
87990
87990
|
}
|
|
87991
87991
|
}
|
|
87992
87992
|
else {
|
|
87993
|
-
const domNode = $$
|
|
87993
|
+
const domNode = $$e('.monaco-list-row');
|
|
87994
87994
|
const renderer = this.getRenderer(templateId);
|
|
87995
87995
|
const templateData = renderer.renderTemplate(domNode);
|
|
87996
87996
|
result = { domNode, templateId, templateData };
|
|
@@ -88757,7 +88757,7 @@ class ListView {
|
|
|
88757
88757
|
if (typeof label === 'undefined') {
|
|
88758
88758
|
label = String(elements.length);
|
|
88759
88759
|
}
|
|
88760
|
-
const dragImage = $$
|
|
88760
|
+
const dragImage = $$e('.monaco-drag-image');
|
|
88761
88761
|
dragImage.textContent = label;
|
|
88762
88762
|
const getDragImageContainer = (e) => {
|
|
88763
88763
|
while (e && !e.classList.contains('monaco-workbench')) {
|
|
@@ -90586,16 +90586,16 @@ __decorate$1S([
|
|
|
90586
90586
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
90587
90587
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
90588
90588
|
*--------------------------------------------------------------------------------------------*/
|
|
90589
|
-
const $$
|
|
90589
|
+
const $$d = $$e;
|
|
90590
90590
|
const SELECT_OPTION_ENTRY_TEMPLATE_ID = 'selectOption.entry.template';
|
|
90591
90591
|
class SelectListRenderer {
|
|
90592
90592
|
get templateId() { return SELECT_OPTION_ENTRY_TEMPLATE_ID; }
|
|
90593
90593
|
renderTemplate(container) {
|
|
90594
90594
|
const data = Object.create(null);
|
|
90595
90595
|
data.root = container;
|
|
90596
|
-
data.text = append$1(container, $$
|
|
90597
|
-
data.detail = append$1(container, $$
|
|
90598
|
-
data.decoratorRight = append$1(container, $$
|
|
90596
|
+
data.text = append$1(container, $$d('.option-text'));
|
|
90597
|
+
data.detail = append$1(container, $$d('.option-detail'));
|
|
90598
|
+
data.decoratorRight = append$1(container, $$d('.option-decorator-right'));
|
|
90599
90599
|
return data;
|
|
90600
90600
|
}
|
|
90601
90601
|
renderElement(element, index, templateData) {
|
|
@@ -90666,14 +90666,14 @@ class SelectBoxList extends Disposable {
|
|
|
90666
90666
|
constructSelectDropDown(contextViewProvider) {
|
|
90667
90667
|
// SetUp ContextView container to hold select Dropdown
|
|
90668
90668
|
this.contextViewProvider = contextViewProvider;
|
|
90669
|
-
this.selectDropDownContainer = $$
|
|
90669
|
+
this.selectDropDownContainer = $$e('.monaco-select-box-dropdown-container');
|
|
90670
90670
|
// Use custom CSS vars for padding calculation (shared with parent select)
|
|
90671
90671
|
this.selectDropDownContainer.classList.add('monaco-select-box-dropdown-padding');
|
|
90672
90672
|
// Setup container for select option details
|
|
90673
|
-
this.selectionDetailsPane = append$1(this.selectDropDownContainer, $$
|
|
90673
|
+
this.selectionDetailsPane = append$1(this.selectDropDownContainer, $$d('.select-box-details-pane'));
|
|
90674
90674
|
// Create span flex box item/div we can measure and control
|
|
90675
|
-
const widthControlOuterDiv = append$1(this.selectDropDownContainer, $$
|
|
90676
|
-
const widthControlInnerDiv = append$1(widthControlOuterDiv, $$
|
|
90675
|
+
const widthControlOuterDiv = append$1(this.selectDropDownContainer, $$d('.select-box-dropdown-container-width-control'));
|
|
90676
|
+
const widthControlInnerDiv = append$1(widthControlOuterDiv, $$d('.width-control-div'));
|
|
90677
90677
|
this.widthControlElement = document.createElement('span');
|
|
90678
90678
|
this.widthControlElement.className = 'option-text-width-control';
|
|
90679
90679
|
append$1(widthControlInnerDiv, this.widthControlElement);
|
|
@@ -91115,7 +91115,7 @@ class SelectBoxList extends Disposable {
|
|
|
91115
91115
|
return;
|
|
91116
91116
|
}
|
|
91117
91117
|
// SetUp container for list
|
|
91118
|
-
this.selectDropDownListContainer = append$1(parent, $$
|
|
91118
|
+
this.selectDropDownListContainer = append$1(parent, $$d('.select-box-dropdown-list-container'));
|
|
91119
91119
|
this.listRenderer = new SelectListRenderer();
|
|
91120
91120
|
this.selectList = new List('SelectBoxCustom', this.selectDropDownListContainer, this, [this.listRenderer], {
|
|
91121
91121
|
useShadows: false,
|
|
@@ -91791,13 +91791,13 @@ class ActionViewItem extends BaseActionViewItem {
|
|
|
91791
91791
|
render(container) {
|
|
91792
91792
|
super.render(container);
|
|
91793
91793
|
if (this.element) {
|
|
91794
|
-
this.label = append$1(this.element, $$
|
|
91794
|
+
this.label = append$1(this.element, $$e('a.action-label'));
|
|
91795
91795
|
}
|
|
91796
91796
|
if (this.label) {
|
|
91797
91797
|
this.label.setAttribute('role', this.getDefaultAriaRole());
|
|
91798
91798
|
}
|
|
91799
91799
|
if (this.options.label && this.options.keybinding && this.element) {
|
|
91800
|
-
append$1(this.element, $$
|
|
91800
|
+
append$1(this.element, $$e('span.keybinding')).textContent = this.options.keybinding;
|
|
91801
91801
|
}
|
|
91802
91802
|
this.updateClass();
|
|
91803
91803
|
this.updateLabel();
|
|
@@ -91957,8 +91957,8 @@ class BaseDropdown extends ActionRunner {
|
|
|
91957
91957
|
super();
|
|
91958
91958
|
this._onDidChangeVisibility = this._register(new Emitter$1());
|
|
91959
91959
|
this.onDidChangeVisibility = this._onDidChangeVisibility.event;
|
|
91960
|
-
this._element = append$1(container, $$
|
|
91961
|
-
this._label = append$1(this._element, $$
|
|
91960
|
+
this._element = append$1(container, $$e('.monaco-dropdown'));
|
|
91961
|
+
this._label = append$1(this._element, $$e('.dropdown-label'));
|
|
91962
91962
|
let labelRenderer = options.labelRenderer;
|
|
91963
91963
|
if (!labelRenderer) {
|
|
91964
91964
|
labelRenderer = (container) => {
|
|
@@ -92098,7 +92098,7 @@ class DropdownMenuActionViewItem extends BaseActionViewItem {
|
|
|
92098
92098
|
render(container) {
|
|
92099
92099
|
this.actionItem = container;
|
|
92100
92100
|
const labelRenderer = (el) => {
|
|
92101
|
-
this.element = append$1(el, $$
|
|
92101
|
+
this.element = append$1(el, $$e('a.action-label'));
|
|
92102
92102
|
let classNames = [];
|
|
92103
92103
|
if (typeof this.options.classNames === 'string') {
|
|
92104
92104
|
classNames = this.options.classNames.split(/\s+/g).filter(s => !!s);
|
|
@@ -92943,7 +92943,7 @@ let MenuEntryActionViewItem = class MenuEntryActionViewItem extends ActionViewIt
|
|
|
92943
92943
|
const svgUrl = isDark(this._themeService.getColorTheme().type)
|
|
92944
92944
|
? asCSSUrl(icon.dark)
|
|
92945
92945
|
: asCSSUrl(icon.light);
|
|
92946
|
-
const svgIcon = $$
|
|
92946
|
+
const svgIcon = $$e('span');
|
|
92947
92947
|
svgIcon.style.webkitMask = svgIcon.style.mask = `${svgUrl} no-repeat 50% 50%`;
|
|
92948
92948
|
svgIcon.style.background = 'var(--vscode-icon-foreground)';
|
|
92949
92949
|
svgIcon.style.display = 'inline-block';
|
|
@@ -93052,7 +93052,7 @@ let DropdownWithDefaultActionViewItem = class DropdownWithDefaultActionViewItem
|
|
|
93052
93052
|
}
|
|
93053
93053
|
}();
|
|
93054
93054
|
if (this._container) {
|
|
93055
|
-
this._defaultAction.render(prepend$1(this._container, $$
|
|
93055
|
+
this._defaultAction.render(prepend$1(this._container, $$e('.action-container')));
|
|
93056
93056
|
}
|
|
93057
93057
|
}
|
|
93058
93058
|
_getDefaultActionKeybindingLabel(defaultAction) {
|
|
@@ -93075,7 +93075,7 @@ let DropdownWithDefaultActionViewItem = class DropdownWithDefaultActionViewItem
|
|
|
93075
93075
|
this._container = container;
|
|
93076
93076
|
super.render(this._container);
|
|
93077
93077
|
this._container.classList.add('monaco-dropdown-with-default');
|
|
93078
|
-
const primaryContainer = $$
|
|
93078
|
+
const primaryContainer = $$e('.action-container');
|
|
93079
93079
|
this._defaultAction.render(append$1(this._container, primaryContainer));
|
|
93080
93080
|
this._register(addDisposableListener(primaryContainer, EventType$1.KEY_DOWN, (e) => {
|
|
93081
93081
|
const event = new StandardKeyboardEvent(e);
|
|
@@ -93085,7 +93085,7 @@ let DropdownWithDefaultActionViewItem = class DropdownWithDefaultActionViewItem
|
|
|
93085
93085
|
event.stopPropagation();
|
|
93086
93086
|
}
|
|
93087
93087
|
}));
|
|
93088
|
-
const dropdownContainer = $$
|
|
93088
|
+
const dropdownContainer = $$e('.dropdown-action-container');
|
|
93089
93089
|
this._dropdown.render(append$1(this._container, dropdownContainer));
|
|
93090
93090
|
this._register(addDisposableListener(dropdownContainer, EventType$1.KEY_DOWN, (e) => {
|
|
93091
93091
|
var _a;
|
|
@@ -93938,7 +93938,7 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
93938
93938
|
return;
|
|
93939
93939
|
}
|
|
93940
93940
|
this.container = container;
|
|
93941
|
-
this.item = append$1(this.element, $$
|
|
93941
|
+
this.item = append$1(this.element, $$e('a.action-menu-item'));
|
|
93942
93942
|
if (this._action.id === Separator.ID) {
|
|
93943
93943
|
// A separator is a presentation item
|
|
93944
93944
|
this.item.setAttribute('role', 'presentation');
|
|
@@ -93949,11 +93949,11 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
93949
93949
|
this.item.setAttribute('aria-keyshortcuts', `${this.mnemonic}`);
|
|
93950
93950
|
}
|
|
93951
93951
|
}
|
|
93952
|
-
this.check = append$1(this.item, $$
|
|
93952
|
+
this.check = append$1(this.item, $$e('span.menu-item-check' + ThemeIcon.asCSSSelector(Codicon.menuSelection)));
|
|
93953
93953
|
this.check.setAttribute('role', 'none');
|
|
93954
|
-
this.label = append$1(this.item, $$
|
|
93954
|
+
this.label = append$1(this.item, $$e('span.action-label'));
|
|
93955
93955
|
if (this.options.label && this.options.keybinding) {
|
|
93956
|
-
append$1(this.item, $$
|
|
93956
|
+
append$1(this.item, $$e('span.keybinding')).textContent = this.options.keybinding;
|
|
93957
93957
|
}
|
|
93958
93958
|
// Adds mouse up listener to actually run the action
|
|
93959
93959
|
this.runOnceToEnableMouseUp.schedule();
|
|
@@ -94006,7 +94006,7 @@ class BaseMenuActionViewItem extends BaseActionViewItem {
|
|
|
94006
94006
|
}
|
|
94007
94007
|
const replaceDoubleEscapes = (str) => str.replace(/&&/g, '&');
|
|
94008
94008
|
if (escMatch) {
|
|
94009
|
-
this.label.append(ltrim(replaceDoubleEscapes(label.substr(0, escMatch.index)), ' '), $$
|
|
94009
|
+
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)), ' '));
|
|
94010
94010
|
}
|
|
94011
94011
|
else {
|
|
94012
94012
|
this.label.innerText = replaceDoubleEscapes(label).trim();
|
|
@@ -94129,7 +94129,7 @@ class SubmenuMenuActionViewItem extends BaseMenuActionViewItem {
|
|
|
94129
94129
|
this.item.tabIndex = 0;
|
|
94130
94130
|
this.item.setAttribute('aria-haspopup', 'true');
|
|
94131
94131
|
this.updateAriaExpanded('false');
|
|
94132
|
-
this.submenuIndicator = append$1(this.item, $$
|
|
94132
|
+
this.submenuIndicator = append$1(this.item, $$e('span.submenu-indicator' + ThemeIcon.asCSSSelector(Codicon.menuSubmenu)));
|
|
94133
94133
|
this.submenuIndicator.setAttribute('aria-hidden', 'true');
|
|
94134
94134
|
}
|
|
94135
94135
|
this._register(addDisposableListener(this.element, EventType$1.KEY_UP, e => {
|
|
@@ -94220,7 +94220,7 @@ class SubmenuMenuActionViewItem extends BaseMenuActionViewItem {
|
|
|
94220
94220
|
}
|
|
94221
94221
|
if (!this.parentData.submenu) {
|
|
94222
94222
|
this.updateAriaExpanded('true');
|
|
94223
|
-
this.submenuContainer = append$1(this.element, $$
|
|
94223
|
+
this.submenuContainer = append$1(this.element, $$e('div.monaco-submenu'));
|
|
94224
94224
|
this.submenuContainer.classList.add('menubar-menu-items-holder', 'context-view');
|
|
94225
94225
|
// Set the top value of the menu container before construction
|
|
94226
94226
|
// This allows the menu constructor to calculate the proper max height
|
|
@@ -94757,7 +94757,7 @@ class ContextMenuHandler {
|
|
|
94757
94757
|
}
|
|
94758
94758
|
// Render invisible div to block mouse interaction in the rest of the UI
|
|
94759
94759
|
if (this.options.blockMouse) {
|
|
94760
|
-
this.block = container.appendChild($$
|
|
94760
|
+
this.block = container.appendChild($$e('.context-view-block'));
|
|
94761
94761
|
this.block.style.position = 'fixed';
|
|
94762
94762
|
this.block.style.cursor = 'initial';
|
|
94763
94763
|
this.block.style.left = '0';
|
|
@@ -96181,7 +96181,7 @@ class Sash extends Disposable {
|
|
|
96181
96181
|
const onChange = (state) => {
|
|
96182
96182
|
this.orthogonalStartDragHandleDisposables.clear();
|
|
96183
96183
|
if (state !== 0 /* SashState.Disabled */) {
|
|
96184
|
-
this._orthogonalStartDragHandle = append$1(this.el, $$
|
|
96184
|
+
this._orthogonalStartDragHandle = append$1(this.el, $$e('.orthogonal-drag-handle.start'));
|
|
96185
96185
|
this.orthogonalStartDragHandleDisposables.add(toDisposable(() => this._orthogonalStartDragHandle.remove()));
|
|
96186
96186
|
this.orthogonalStartDragHandleDisposables.add(new DomEmitter(this._orthogonalStartDragHandle, 'mouseenter')).event(() => Sash.onMouseEnter(sash), undefined, this.orthogonalStartDragHandleDisposables);
|
|
96187
96187
|
this.orthogonalStartDragHandleDisposables.add(new DomEmitter(this._orthogonalStartDragHandle, 'mouseleave')).event(() => Sash.onMouseLeave(sash), undefined, this.orthogonalStartDragHandleDisposables);
|
|
@@ -96210,7 +96210,7 @@ class Sash extends Disposable {
|
|
|
96210
96210
|
const onChange = (state) => {
|
|
96211
96211
|
this.orthogonalEndDragHandleDisposables.clear();
|
|
96212
96212
|
if (state !== 0 /* SashState.Disabled */) {
|
|
96213
|
-
this._orthogonalEndDragHandle = append$1(this.el, $$
|
|
96213
|
+
this._orthogonalEndDragHandle = append$1(this.el, $$e('.orthogonal-drag-handle.end'));
|
|
96214
96214
|
this.orthogonalEndDragHandleDisposables.add(toDisposable(() => this._orthogonalEndDragHandle.remove()));
|
|
96215
96215
|
this.orthogonalEndDragHandleDisposables.add(new DomEmitter(this._orthogonalEndDragHandle, 'mouseenter')).event(() => Sash.onMouseEnter(sash), undefined, this.orthogonalEndDragHandleDisposables);
|
|
96216
96216
|
this.orthogonalEndDragHandleDisposables.add(new DomEmitter(this._orthogonalEndDragHandle, 'mouseleave')).event(() => Sash.onMouseLeave(sash), undefined, this.orthogonalEndDragHandleDisposables);
|
|
@@ -96259,7 +96259,7 @@ class Sash extends Disposable {
|
|
|
96259
96259
|
* Useful in 2x2 grids. Not meant for widespread usage.
|
|
96260
96260
|
*/
|
|
96261
96261
|
this.linkedSash = undefined;
|
|
96262
|
-
this.el = append$1(container, $$
|
|
96262
|
+
this.el = append$1(container, $$e('.monaco-sash'));
|
|
96263
96263
|
if (options.orthogonalEdge) {
|
|
96264
96264
|
this.el.classList.add(`orthogonal-edge-${options.orthogonalEdge}`);
|
|
96265
96265
|
}
|
|
@@ -96699,8 +96699,8 @@ class SplitView extends Disposable {
|
|
|
96699
96699
|
this.el.classList.add('monaco-split-view2');
|
|
96700
96700
|
this.el.classList.add(this.orientation === 0 /* Orientation.VERTICAL */ ? 'vertical' : 'horizontal');
|
|
96701
96701
|
container.appendChild(this.el);
|
|
96702
|
-
this.sashContainer = append$1(this.el, $$
|
|
96703
|
-
this.viewContainer = $$
|
|
96702
|
+
this.sashContainer = append$1(this.el, $$e('.sash-container'));
|
|
96703
|
+
this.viewContainer = $$e('.split-view-container');
|
|
96704
96704
|
this.scrollable = this._register(new Scrollable({
|
|
96705
96705
|
forceIntegerValues: true,
|
|
96706
96706
|
smoothScrollDuration: 125,
|
|
@@ -96980,7 +96980,7 @@ class SplitView extends Disposable {
|
|
|
96980
96980
|
}
|
|
96981
96981
|
this.state = State.Busy;
|
|
96982
96982
|
// Add view
|
|
96983
|
-
const container = $$
|
|
96983
|
+
const container = $$e('.split-view-view');
|
|
96984
96984
|
if (index === this.viewItems.length) {
|
|
96985
96985
|
this.viewContainer.appendChild(container);
|
|
96986
96986
|
}
|
|
@@ -97303,12 +97303,12 @@ class TableListRenderer {
|
|
|
97303
97303
|
}
|
|
97304
97304
|
}
|
|
97305
97305
|
renderTemplate(container) {
|
|
97306
|
-
const rowContainer = append$1(container, $$
|
|
97306
|
+
const rowContainer = append$1(container, $$e('.monaco-table-tr'));
|
|
97307
97307
|
const cellContainers = [];
|
|
97308
97308
|
const cellTemplateData = [];
|
|
97309
97309
|
for (let i = 0; i < this.columns.length; i++) {
|
|
97310
97310
|
const renderer = this.renderers[i];
|
|
97311
|
-
const cellContainer = append$1(rowContainer, $$
|
|
97311
|
+
const cellContainer = append$1(rowContainer, $$e('.monaco-table-td', { 'data-col-index': i }));
|
|
97312
97312
|
cellContainer.style.width = `${this.getColumnSize(i)}px`;
|
|
97313
97313
|
cellContainers.push(cellContainer);
|
|
97314
97314
|
cellTemplateData.push(renderer.renderTemplate(cellContainer));
|
|
@@ -97365,7 +97365,7 @@ class ColumnHeader {
|
|
|
97365
97365
|
this.index = index;
|
|
97366
97366
|
this._onDidLayout = new Emitter$1();
|
|
97367
97367
|
this.onDidLayout = this._onDidLayout.event;
|
|
97368
|
-
this.element = $$
|
|
97368
|
+
this.element = $$e('.monaco-table-th', { 'data-col-index': index, title: column.tooltip }, column.label);
|
|
97369
97369
|
}
|
|
97370
97370
|
layout(size) {
|
|
97371
97371
|
this._onDidLayout.fire([this.index, size]);
|
|
@@ -97389,7 +97389,7 @@ class Table {
|
|
|
97389
97389
|
this.disposables = new DisposableStore();
|
|
97390
97390
|
this.cachedWidth = 0;
|
|
97391
97391
|
this.cachedHeight = 0;
|
|
97392
|
-
this.domNode = append$1(container, $$
|
|
97392
|
+
this.domNode = append$1(container, $$e(`.monaco-table.${this.domId}`));
|
|
97393
97393
|
const headers = columns.map((c, i) => new ColumnHeader(c, i));
|
|
97394
97394
|
const descriptor = {
|
|
97395
97395
|
size: headers.reduce((a, b) => a + b.column.weight, 0),
|
|
@@ -97693,7 +97693,7 @@ class HistoryNavigator {
|
|
|
97693
97693
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
97694
97694
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
97695
97695
|
*--------------------------------------------------------------------------------------------*/
|
|
97696
|
-
const $$
|
|
97696
|
+
const $$c = $$e;
|
|
97697
97697
|
class InputBox$1 extends Widget$1 {
|
|
97698
97698
|
constructor(container, contextViewProvider, options) {
|
|
97699
97699
|
var _a;
|
|
@@ -97713,10 +97713,10 @@ class InputBox$1 extends Widget$1 {
|
|
|
97713
97713
|
if (this.options.validationOptions) {
|
|
97714
97714
|
this.validation = this.options.validationOptions.validation;
|
|
97715
97715
|
}
|
|
97716
|
-
this.element = append$1(container, $$
|
|
97716
|
+
this.element = append$1(container, $$c('.monaco-inputbox.idle'));
|
|
97717
97717
|
const tagName = this.options.flexibleHeight ? 'textarea' : 'input';
|
|
97718
|
-
const wrapper = append$1(this.element, $$
|
|
97719
|
-
this.input = append$1(wrapper, $$
|
|
97718
|
+
const wrapper = append$1(this.element, $$c('.ibwrapper'));
|
|
97719
|
+
this.input = append$1(wrapper, $$c(tagName + '.input.empty'));
|
|
97720
97720
|
this.input.setAttribute('autocorrect', 'off');
|
|
97721
97721
|
this.input.setAttribute('autocapitalize', 'off');
|
|
97722
97722
|
this.input.setAttribute('spellcheck', 'false');
|
|
@@ -97724,7 +97724,7 @@ class InputBox$1 extends Widget$1 {
|
|
|
97724
97724
|
this.onblur(this.input, () => this.element.classList.remove('synthetic-focus'));
|
|
97725
97725
|
if (this.options.flexibleHeight) {
|
|
97726
97726
|
this.maxHeight = typeof this.options.flexibleMaxHeight === 'number' ? this.options.flexibleMaxHeight : Number.POSITIVE_INFINITY;
|
|
97727
|
-
this.mirror = append$1(wrapper, $$
|
|
97727
|
+
this.mirror = append$1(wrapper, $$c('div.mirror'));
|
|
97728
97728
|
this.mirror.innerText = '\u00a0';
|
|
97729
97729
|
this.scrollableElement = new ScrollableElement(this.element, { vertical: 1 /* ScrollbarVisibility.Auto */ });
|
|
97730
97730
|
if (this.options.flexibleWidth) {
|
|
@@ -97921,7 +97921,7 @@ class InputBox$1 extends Widget$1 {
|
|
|
97921
97921
|
if (!this.message) {
|
|
97922
97922
|
return null;
|
|
97923
97923
|
}
|
|
97924
|
-
div = append$1(container, $$
|
|
97924
|
+
div = append$1(container, $$c('.monaco-inputbox-container'));
|
|
97925
97925
|
layout();
|
|
97926
97926
|
const renderOptions = {
|
|
97927
97927
|
inline: true,
|
|
@@ -99229,10 +99229,10 @@ class TreeRenderer {
|
|
|
99229
99229
|
}
|
|
99230
99230
|
}
|
|
99231
99231
|
renderTemplate(container) {
|
|
99232
|
-
const el = append$1(container, $$
|
|
99233
|
-
const indent = append$1(el, $$
|
|
99234
|
-
const twistie = append$1(el, $$
|
|
99235
|
-
const contents = append$1(el, $$
|
|
99232
|
+
const el = append$1(container, $$e('.monaco-tl-row'));
|
|
99233
|
+
const indent = append$1(el, $$e('.monaco-tl-indent'));
|
|
99234
|
+
const twistie = append$1(el, $$e('.monaco-tl-twistie'));
|
|
99235
|
+
const contents = append$1(el, $$e('.monaco-tl-contents'));
|
|
99236
99236
|
const templateData = this.renderer.renderTemplate(contents);
|
|
99237
99237
|
return { container, indent, twistie, indentGuidesDisposable: Disposable.None, templateData };
|
|
99238
99238
|
}
|
|
@@ -99311,7 +99311,7 @@ class TreeRenderer {
|
|
|
99311
99311
|
break;
|
|
99312
99312
|
}
|
|
99313
99313
|
const parent = model.getNode(parentRef);
|
|
99314
|
-
const guide = $$
|
|
99314
|
+
const guide = $$e('.indent-guide', { style: `width: ${this.indent}px` });
|
|
99315
99315
|
if (this.activeIndentNodes.has(parent)) {
|
|
99316
99316
|
guide.classList.add('active');
|
|
99317
99317
|
}
|
|
@@ -102986,7 +102986,7 @@ class CountBadge {
|
|
|
102986
102986
|
this.options = options;
|
|
102987
102987
|
this.styles = styles;
|
|
102988
102988
|
this.count = 0;
|
|
102989
|
-
this.element = append$1(container, $$
|
|
102989
|
+
this.element = append$1(container, $$e('.monaco-count-badge'));
|
|
102990
102990
|
this.countFormat = this.options.countFormat || '{0}';
|
|
102991
102991
|
this.titleFormat = this.options.titleFormat || '';
|
|
102992
102992
|
this.setCount(this.options.count || 0);
|
|
@@ -103112,7 +103112,7 @@ ProgressBar.LONG_RUNNING_INFINITE_THRESHOLD = 10000;
|
|
|
103112
103112
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
103113
103113
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
103114
103114
|
*--------------------------------------------------------------------------------------------*/
|
|
103115
|
-
const $$
|
|
103115
|
+
const $$b = $$e;
|
|
103116
103116
|
class QuickInputBox extends Disposable {
|
|
103117
103117
|
constructor(parent, inputBoxStyles, toggleStyles) {
|
|
103118
103118
|
super();
|
|
@@ -103130,7 +103130,7 @@ class QuickInputBox extends Disposable {
|
|
|
103130
103130
|
this.onDidChange = (handler) => {
|
|
103131
103131
|
return this.findInput.onDidChange(handler);
|
|
103132
103132
|
};
|
|
103133
|
-
this.container = append$1(this.parent, $$
|
|
103133
|
+
this.container = append$1(this.parent, $$b('.quick-input-box'));
|
|
103134
103134
|
this.findInput = this._register(new FindInput(this.container, undefined, { label: '', inputBoxStyles, toggleStyles }));
|
|
103135
103135
|
const input = this.findInput.inputBox.inputElement;
|
|
103136
103136
|
input.role = 'combobox';
|
|
@@ -103219,7 +103219,7 @@ class HighlightedLabel {
|
|
|
103219
103219
|
this.highlights = [];
|
|
103220
103220
|
this.didEverRender = false;
|
|
103221
103221
|
this.supportIcons = (_a = options === null || options === void 0 ? void 0 : options.supportIcons) !== null && _a !== void 0 ? _a : false;
|
|
103222
|
-
this.domNode = append$1(container, $$
|
|
103222
|
+
this.domNode = append$1(container, $$e('span.monaco-highlighted-label'));
|
|
103223
103223
|
}
|
|
103224
103224
|
/**
|
|
103225
103225
|
* The label's DOM node.
|
|
@@ -103270,7 +103270,7 @@ class HighlightedLabel {
|
|
|
103270
103270
|
pos = highlight.start;
|
|
103271
103271
|
}
|
|
103272
103272
|
const substring = this.text.substring(pos, highlight.end);
|
|
103273
|
-
const element = $$
|
|
103273
|
+
const element = $$e('span.highlight', undefined, ...this.supportIcons ? renderLabelWithIcons(substring) : [substring]);
|
|
103274
103274
|
if (highlight.extraClasses) {
|
|
103275
103275
|
element.classList.add(...highlight.extraClasses);
|
|
103276
103276
|
}
|
|
@@ -103359,9 +103359,9 @@ class IconLabel extends Disposable {
|
|
|
103359
103359
|
super();
|
|
103360
103360
|
this.customHovers = new Map();
|
|
103361
103361
|
this.creationOptions = options;
|
|
103362
|
-
this.domNode = this._register(new FastLabelNode(append$1(container, $$
|
|
103363
|
-
this.labelContainer = append$1(this.domNode.element, $$
|
|
103364
|
-
const nameContainer = append$1(this.labelContainer, $$
|
|
103362
|
+
this.domNode = this._register(new FastLabelNode(append$1(container, $$e('.monaco-icon-label'))));
|
|
103363
|
+
this.labelContainer = append$1(this.domNode.element, $$e('.monaco-icon-label-container'));
|
|
103364
|
+
const nameContainer = append$1(this.labelContainer, $$e('span.monaco-icon-name-container'));
|
|
103365
103365
|
if ((options === null || options === void 0 ? void 0 : options.supportHighlights) || (options === null || options === void 0 ? void 0 : options.supportIcons)) {
|
|
103366
103366
|
this.nameNode = new LabelWithHighlights(nameContainer, !!options.supportIcons);
|
|
103367
103367
|
}
|
|
@@ -103442,12 +103442,12 @@ class IconLabel extends Disposable {
|
|
|
103442
103442
|
getOrCreateDescriptionNode() {
|
|
103443
103443
|
var _a;
|
|
103444
103444
|
if (!this.descriptionNode) {
|
|
103445
|
-
const descriptionContainer = this._register(new FastLabelNode(append$1(this.labelContainer, $$
|
|
103445
|
+
const descriptionContainer = this._register(new FastLabelNode(append$1(this.labelContainer, $$e('span.monaco-icon-description-container'))));
|
|
103446
103446
|
if ((_a = this.creationOptions) === null || _a === void 0 ? void 0 : _a.supportDescriptionHighlights) {
|
|
103447
|
-
this.descriptionNode = new HighlightedLabel(append$1(descriptionContainer.element, $$
|
|
103447
|
+
this.descriptionNode = new HighlightedLabel(append$1(descriptionContainer.element, $$e('span.label-description')), { supportIcons: !!this.creationOptions.supportIcons });
|
|
103448
103448
|
}
|
|
103449
103449
|
else {
|
|
103450
|
-
this.descriptionNode = this._register(new FastLabelNode(append$1(descriptionContainer.element, $$
|
|
103450
|
+
this.descriptionNode = this._register(new FastLabelNode(append$1(descriptionContainer.element, $$e('span.label-description'))));
|
|
103451
103451
|
}
|
|
103452
103452
|
}
|
|
103453
103453
|
return this.descriptionNode;
|
|
@@ -103469,7 +103469,7 @@ class Label {
|
|
|
103469
103469
|
if (!this.singleLabel) {
|
|
103470
103470
|
this.container.innerText = '';
|
|
103471
103471
|
this.container.classList.remove('multiple');
|
|
103472
|
-
this.singleLabel = append$1(this.container, $$
|
|
103472
|
+
this.singleLabel = append$1(this.container, $$e('a.label-name', { id: options === null || options === void 0 ? void 0 : options.domId }));
|
|
103473
103473
|
}
|
|
103474
103474
|
this.singleLabel.textContent = label;
|
|
103475
103475
|
}
|
|
@@ -103480,9 +103480,9 @@ class Label {
|
|
|
103480
103480
|
for (let i = 0; i < label.length; i++) {
|
|
103481
103481
|
const l = label[i];
|
|
103482
103482
|
const id = (options === null || options === void 0 ? void 0 : options.domId) && `${options === null || options === void 0 ? void 0 : options.domId}_${i}`;
|
|
103483
|
-
append$1(this.container, $$
|
|
103483
|
+
append$1(this.container, $$e('a.label-name', { id, 'data-icon-label-count': label.length, 'data-icon-label-index': i, 'role': 'treeitem' }, l));
|
|
103484
103484
|
if (i < label.length - 1) {
|
|
103485
|
-
append$1(this.container, $$
|
|
103485
|
+
append$1(this.container, $$e('span.label-separator', undefined, (options === null || options === void 0 ? void 0 : options.separator) || '/'));
|
|
103486
103486
|
}
|
|
103487
103487
|
}
|
|
103488
103488
|
}
|
|
@@ -103520,7 +103520,7 @@ class LabelWithHighlights {
|
|
|
103520
103520
|
if (!this.singleLabel) {
|
|
103521
103521
|
this.container.innerText = '';
|
|
103522
103522
|
this.container.classList.remove('multiple');
|
|
103523
|
-
this.singleLabel = new HighlightedLabel(append$1(this.container, $$
|
|
103523
|
+
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 });
|
|
103524
103524
|
}
|
|
103525
103525
|
this.singleLabel.set(label, options === null || options === void 0 ? void 0 : options.matches, undefined, options === null || options === void 0 ? void 0 : options.labelEscapeNewLines);
|
|
103526
103526
|
}
|
|
@@ -103534,11 +103534,11 @@ class LabelWithHighlights {
|
|
|
103534
103534
|
const l = label[i];
|
|
103535
103535
|
const m = matches ? matches[i] : undefined;
|
|
103536
103536
|
const id = (options === null || options === void 0 ? void 0 : options.domId) && `${options === null || options === void 0 ? void 0 : options.domId}_${i}`;
|
|
103537
|
-
const name = $$
|
|
103537
|
+
const name = $$e('a.label-name', { id, 'data-icon-label-count': label.length, 'data-icon-label-index': i, 'role': 'treeitem' });
|
|
103538
103538
|
const highlightedLabel = new HighlightedLabel(append$1(this.container, name), { supportIcons: this.supportIcons });
|
|
103539
103539
|
highlightedLabel.set(l, m, undefined, options === null || options === void 0 ? void 0 : options.labelEscapeNewLines);
|
|
103540
103540
|
if (i < label.length - 1) {
|
|
103541
|
-
append$1(name, $$
|
|
103541
|
+
append$1(name, $$e('span.label-separator', undefined, separator));
|
|
103542
103542
|
}
|
|
103543
103543
|
}
|
|
103544
103544
|
}
|
|
@@ -103549,7 +103549,7 @@ class LabelWithHighlights {
|
|
|
103549
103549
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
103550
103550
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
103551
103551
|
*--------------------------------------------------------------------------------------------*/
|
|
103552
|
-
const $$
|
|
103552
|
+
const $$a = $$e;
|
|
103553
103553
|
const unthemedKeybindingLabelOptions = {
|
|
103554
103554
|
keybindingLabelBackground: undefined,
|
|
103555
103555
|
keybindingLabelForeground: undefined,
|
|
@@ -103563,7 +103563,7 @@ class KeybindingLabel {
|
|
|
103563
103563
|
this.keyElements = new Set();
|
|
103564
103564
|
this.options = options || Object.create(null);
|
|
103565
103565
|
const labelForeground = this.options.keybindingLabelForeground;
|
|
103566
|
-
this.domNode = append$1(container, $$
|
|
103566
|
+
this.domNode = append$1(container, $$a('.monaco-keybinding'));
|
|
103567
103567
|
if (labelForeground) {
|
|
103568
103568
|
this.domNode.style.color = labelForeground;
|
|
103569
103569
|
}
|
|
@@ -103590,7 +103590,7 @@ class KeybindingLabel {
|
|
|
103590
103590
|
this.renderChord(this.domNode, chords[0], this.matches ? this.matches.firstPart : null);
|
|
103591
103591
|
}
|
|
103592
103592
|
for (let i = 1; i < chords.length; i++) {
|
|
103593
|
-
append$1(this.domNode, $$
|
|
103593
|
+
append$1(this.domNode, $$a('span.monaco-keybinding-key-chord-separator', undefined, ' '));
|
|
103594
103594
|
this.renderChord(this.domNode, chords[i], this.matches ? this.matches.chordPart : null);
|
|
103595
103595
|
}
|
|
103596
103596
|
const title = ((_a = this.options.disableTitle) !== null && _a !== void 0 ? _a : false) ? undefined : this.keybinding.getAriaLabel() || undefined;
|
|
@@ -103632,14 +103632,14 @@ class KeybindingLabel {
|
|
|
103632
103632
|
renderKey(parent, label, highlight, separator) {
|
|
103633
103633
|
append$1(parent, this.createKeyElement(label, highlight ? '.highlight' : ''));
|
|
103634
103634
|
if (separator) {
|
|
103635
|
-
append$1(parent, $$
|
|
103635
|
+
append$1(parent, $$a('span.monaco-keybinding-key-separator', undefined, separator));
|
|
103636
103636
|
}
|
|
103637
103637
|
}
|
|
103638
103638
|
renderUnbound(parent) {
|
|
103639
103639
|
append$1(parent, this.createKeyElement(localize('unbound', "Unbound")));
|
|
103640
103640
|
}
|
|
103641
103641
|
createKeyElement(label, extraClass = '') {
|
|
103642
|
-
const keyElement = $$
|
|
103642
|
+
const keyElement = $$a('span.monaco-keybinding-key' + extraClass, undefined, label);
|
|
103643
103643
|
this.keyElements.add(keyElement);
|
|
103644
103644
|
if (this.options.keybindingLabelBackground) {
|
|
103645
103645
|
keyElement.style.backgroundColor = this.options.keybindingLabelBackground;
|
|
@@ -103816,7 +103816,7 @@ function renderQuickInputDescription(description, container, actionHandler) {
|
|
|
103816
103816
|
else if (!title) {
|
|
103817
103817
|
title = node.href;
|
|
103818
103818
|
}
|
|
103819
|
-
const anchor = $$
|
|
103819
|
+
const anchor = $$e('a', { href: node.href, title, tabIndex: tabIndex++ }, node.label);
|
|
103820
103820
|
anchor.style.textDecoration = 'underline';
|
|
103821
103821
|
const handleOpen = (e) => {
|
|
103822
103822
|
if (isEventLike(e)) {
|
|
@@ -103857,7 +103857,7 @@ var __awaiter$1i = (undefined && undefined.__awaiter) || function (thisArg, _arg
|
|
|
103857
103857
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
103858
103858
|
});
|
|
103859
103859
|
};
|
|
103860
|
-
const $$
|
|
103860
|
+
const $$9 = $$e;
|
|
103861
103861
|
class ListElement {
|
|
103862
103862
|
constructor(mainItem, previous, index, hasCheckbox, fireButtonTriggered, fireSeparatorButtonTriggered, onCheckedEmitter) {
|
|
103863
103863
|
var _a, _b, _c;
|
|
@@ -103971,36 +103971,36 @@ class ListElementRenderer {
|
|
|
103971
103971
|
const data = Object.create(null);
|
|
103972
103972
|
data.toDisposeElement = [];
|
|
103973
103973
|
data.toDisposeTemplate = [];
|
|
103974
|
-
data.entry = append$1(container, $$
|
|
103974
|
+
data.entry = append$1(container, $$9('.quick-input-list-entry'));
|
|
103975
103975
|
// Checkbox
|
|
103976
|
-
const label = append$1(data.entry, $$
|
|
103976
|
+
const label = append$1(data.entry, $$9('label.quick-input-list-label'));
|
|
103977
103977
|
data.toDisposeTemplate.push(addStandardDisposableListener(label, EventType$1.CLICK, e => {
|
|
103978
103978
|
if (!data.checkbox.offsetParent) { // If checkbox not visible:
|
|
103979
103979
|
e.preventDefault(); // Prevent toggle of checkbox when it is immediately shown afterwards. #91740
|
|
103980
103980
|
}
|
|
103981
103981
|
}));
|
|
103982
|
-
data.checkbox = append$1(label, $$
|
|
103982
|
+
data.checkbox = append$1(label, $$9('input.quick-input-list-checkbox'));
|
|
103983
103983
|
data.checkbox.type = 'checkbox';
|
|
103984
103984
|
data.toDisposeTemplate.push(addStandardDisposableListener(data.checkbox, EventType$1.CHANGE, e => {
|
|
103985
103985
|
data.element.checked = data.checkbox.checked;
|
|
103986
103986
|
}));
|
|
103987
103987
|
// Rows
|
|
103988
|
-
const rows = append$1(label, $$
|
|
103989
|
-
const row1 = append$1(rows, $$
|
|
103990
|
-
const row2 = append$1(rows, $$
|
|
103988
|
+
const rows = append$1(label, $$9('.quick-input-list-rows'));
|
|
103989
|
+
const row1 = append$1(rows, $$9('.quick-input-list-row'));
|
|
103990
|
+
const row2 = append$1(rows, $$9('.quick-input-list-row'));
|
|
103991
103991
|
// Label
|
|
103992
103992
|
data.label = new IconLabel(row1, { supportHighlights: true, supportDescriptionHighlights: true, supportIcons: true });
|
|
103993
103993
|
data.toDisposeTemplate.push(data.label);
|
|
103994
|
-
data.icon = prepend$1(data.label.element, $$
|
|
103994
|
+
data.icon = prepend$1(data.label.element, $$9('.quick-input-list-icon'));
|
|
103995
103995
|
// Keybinding
|
|
103996
|
-
const keybindingContainer = append$1(row1, $$
|
|
103996
|
+
const keybindingContainer = append$1(row1, $$9('.quick-input-list-entry-keybinding'));
|
|
103997
103997
|
data.keybinding = new KeybindingLabel(keybindingContainer, OS);
|
|
103998
103998
|
// Detail
|
|
103999
|
-
const detailContainer = append$1(row2, $$
|
|
103999
|
+
const detailContainer = append$1(row2, $$9('.quick-input-list-label-meta'));
|
|
104000
104000
|
data.detail = new IconLabel(detailContainer, { supportHighlights: true, supportIcons: true });
|
|
104001
104001
|
data.toDisposeTemplate.push(data.detail);
|
|
104002
104002
|
// Separator
|
|
104003
|
-
data.separator = append$1(data.entry, $$
|
|
104003
|
+
data.separator = append$1(data.entry, $$9('.quick-input-list-separator'));
|
|
104004
104004
|
// Actions
|
|
104005
104005
|
data.actionBar = new ActionBar(data.entry);
|
|
104006
104006
|
data.actionBar.domNode.classList.add('quick-input-list-entry-action-bar');
|
|
@@ -104163,7 +104163,7 @@ class QuickInputList {
|
|
|
104163
104163
|
this.elementDisposables = [];
|
|
104164
104164
|
this.disposables = [];
|
|
104165
104165
|
this.id = id;
|
|
104166
|
-
this.container = append$1(this.parent, $$
|
|
104166
|
+
this.container = append$1(this.parent, $$9('.quick-input-list'));
|
|
104167
104167
|
const delegate = new ListElementDelegate();
|
|
104168
104168
|
const accessibilityProvider = new QuickInputAccessibilityProvider();
|
|
104169
104169
|
this.list = options.createList('QuickInput', this.container, delegate, [new ListElementRenderer(themeService)], {
|
|
@@ -105674,7 +105674,7 @@ class InputBox extends QuickInput {
|
|
|
105674
105674
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
105675
105675
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
105676
105676
|
*--------------------------------------------------------------------------------------------*/
|
|
105677
|
-
const $$
|
|
105677
|
+
const $$8 = $$e;
|
|
105678
105678
|
class QuickInputController extends Disposable {
|
|
105679
105679
|
constructor(options, themeService) {
|
|
105680
105680
|
super();
|
|
@@ -105708,19 +105708,19 @@ class QuickInputController extends Disposable {
|
|
|
105708
105708
|
if (this.ui) {
|
|
105709
105709
|
return this.ui;
|
|
105710
105710
|
}
|
|
105711
|
-
const container = append$1(this.parentElement, $$
|
|
105711
|
+
const container = append$1(this.parentElement, $$8('.quick-input-widget.show-file-icons'));
|
|
105712
105712
|
container.tabIndex = -1;
|
|
105713
105713
|
container.style.display = 'none';
|
|
105714
105714
|
const styleSheet = createStyleSheet(container);
|
|
105715
|
-
const titleBar = append$1(container, $$
|
|
105715
|
+
const titleBar = append$1(container, $$8('.quick-input-titlebar'));
|
|
105716
105716
|
const actionBarOption = this.options.hoverDelegate ? { hoverDelegate: this.options.hoverDelegate } : undefined;
|
|
105717
105717
|
const leftActionBar = this._register(new ActionBar(titleBar, actionBarOption));
|
|
105718
105718
|
leftActionBar.domNode.classList.add('quick-input-left-action-bar');
|
|
105719
|
-
const title = append$1(titleBar, $$
|
|
105719
|
+
const title = append$1(titleBar, $$8('.quick-input-title'));
|
|
105720
105720
|
const rightActionBar = this._register(new ActionBar(titleBar, actionBarOption));
|
|
105721
105721
|
rightActionBar.domNode.classList.add('quick-input-right-action-bar');
|
|
105722
|
-
const headerContainer = append$1(container, $$
|
|
105723
|
-
const checkAll = append$1(headerContainer, $$
|
|
105722
|
+
const headerContainer = append$1(container, $$8('.quick-input-header'));
|
|
105723
|
+
const checkAll = append$1(headerContainer, $$8('input.quick-input-check-all'));
|
|
105724
105724
|
checkAll.type = 'checkbox';
|
|
105725
105725
|
checkAll.setAttribute('aria-label', localize('quickInput.checkAll', "Toggle all checkboxes"));
|
|
105726
105726
|
this._register(addStandardDisposableListener(checkAll, EventType$1.CHANGE, e => {
|
|
@@ -105732,36 +105732,36 @@ class QuickInputController extends Disposable {
|
|
|
105732
105732
|
inputBox.setFocus();
|
|
105733
105733
|
}
|
|
105734
105734
|
}));
|
|
105735
|
-
const description2 = append$1(headerContainer, $$
|
|
105736
|
-
const inputContainer = append$1(headerContainer, $$
|
|
105737
|
-
const filterContainer = append$1(inputContainer, $$
|
|
105735
|
+
const description2 = append$1(headerContainer, $$8('.quick-input-description'));
|
|
105736
|
+
const inputContainer = append$1(headerContainer, $$8('.quick-input-and-message'));
|
|
105737
|
+
const filterContainer = append$1(inputContainer, $$8('.quick-input-filter'));
|
|
105738
105738
|
const inputBox = this._register(new QuickInputBox(filterContainer, this.styles.inputBox, this.styles.toggle));
|
|
105739
105739
|
inputBox.setAttribute('aria-describedby', `${this.idPrefix}message`);
|
|
105740
|
-
const visibleCountContainer = append$1(filterContainer, $$
|
|
105740
|
+
const visibleCountContainer = append$1(filterContainer, $$8('.quick-input-visible-count'));
|
|
105741
105741
|
visibleCountContainer.setAttribute('aria-live', 'polite');
|
|
105742
105742
|
visibleCountContainer.setAttribute('aria-atomic', 'true');
|
|
105743
105743
|
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);
|
|
105744
|
-
const countContainer = append$1(filterContainer, $$
|
|
105744
|
+
const countContainer = append$1(filterContainer, $$8('.quick-input-count'));
|
|
105745
105745
|
countContainer.setAttribute('aria-live', 'polite');
|
|
105746
105746
|
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);
|
|
105747
|
-
const okContainer = append$1(headerContainer, $$
|
|
105747
|
+
const okContainer = append$1(headerContainer, $$8('.quick-input-action'));
|
|
105748
105748
|
const ok = this._register(new Button(okContainer, this.styles.button));
|
|
105749
105749
|
ok.label = localize('ok', "OK");
|
|
105750
105750
|
this._register(ok.onDidClick(e => {
|
|
105751
105751
|
this.onDidAcceptEmitter.fire();
|
|
105752
105752
|
}));
|
|
105753
|
-
const customButtonContainer = append$1(headerContainer, $$
|
|
105753
|
+
const customButtonContainer = append$1(headerContainer, $$8('.quick-input-action'));
|
|
105754
105754
|
const customButton = this._register(new Button(customButtonContainer, this.styles.button));
|
|
105755
105755
|
customButton.label = localize('custom', "Custom");
|
|
105756
105756
|
this._register(customButton.onDidClick(e => {
|
|
105757
105757
|
this.onDidCustomEmitter.fire();
|
|
105758
105758
|
}));
|
|
105759
|
-
const message = append$1(inputContainer, $$
|
|
105759
|
+
const message = append$1(inputContainer, $$8(`#${this.idPrefix}message.quick-input-message`));
|
|
105760
105760
|
const progressBar = this._register(new ProgressBar(container, this.styles.progressBar));
|
|
105761
105761
|
progressBar.getContainer().classList.add('quick-input-progress');
|
|
105762
|
-
const widget = append$1(container, $$
|
|
105762
|
+
const widget = append$1(container, $$8('.quick-input-html-widget'));
|
|
105763
105763
|
widget.tabIndex = -1;
|
|
105764
|
-
const description1 = append$1(container, $$
|
|
105764
|
+
const description1 = append$1(container, $$8('.quick-input-description'));
|
|
105765
105765
|
const listId = this.idPrefix + 'list';
|
|
105766
105766
|
const list = this._register(new QuickInputList(container, listId, this.options, this.themeService));
|
|
105767
105767
|
inputBox.setAttribute('aria-controls', listId);
|
|
@@ -108091,7 +108091,7 @@ let BrowserClipboardService = class BrowserClipboardService extends Disposable {
|
|
|
108091
108091
|
}
|
|
108092
108092
|
// Fallback to textarea and execCommand solution
|
|
108093
108093
|
const activeElement = document.activeElement;
|
|
108094
|
-
const textArea = document.body.appendChild($$
|
|
108094
|
+
const textArea = document.body.appendChild($$e('textarea', { 'aria-hidden': true }));
|
|
108095
108095
|
textArea.style.height = '1px';
|
|
108096
108096
|
textArea.style.width = '1px';
|
|
108097
108097
|
textArea.style.position = 'absolute';
|
|
@@ -112815,7 +112815,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
112815
112815
|
this._nodes = h$1('div.diff-hidden-lines', [
|
|
112816
112816
|
h$1('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
|
|
112817
112817
|
h$1('div.center@content', { style: { display: 'flex' } }, [
|
|
112818
|
-
h$1('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$$
|
|
112818
|
+
h$1('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$$e('a', { title: localize('showAll', 'Show all'), role: 'button', onclick: () => { this._unchangedRegion.showAll(undefined); } }, ...renderLabelWithIcons('$(unfold)'))]),
|
|
112819
112819
|
h$1('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
|
|
112820
112820
|
]),
|
|
112821
112821
|
h$1('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
|
|
@@ -112901,7 +112901,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
112901
112901
|
if (!this.hide) {
|
|
112902
112902
|
const lineCount = _unchangedRegion.getHiddenModifiedRange(reader).length;
|
|
112903
112903
|
const linesHiddenText = localize('hiddenLines', '{0} hidden lines', lineCount);
|
|
112904
|
-
const span = $$
|
|
112904
|
+
const span = $$e('span', { title: localize('diff.hiddenLines.expandAll', 'Double click to unfold') }, linesHiddenText);
|
|
112905
112905
|
span.addEventListener('dblclick', e => {
|
|
112906
112906
|
if (e.button !== 0) {
|
|
112907
112907
|
return;
|
|
@@ -112913,7 +112913,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
112913
112913
|
const range = this._unchangedRegion.getHiddenModifiedRange(reader);
|
|
112914
112914
|
const items = this._modifiedOutlineSource.getBreadcrumbItems(range, reader);
|
|
112915
112915
|
if (items.length > 0) {
|
|
112916
|
-
children.push($$
|
|
112916
|
+
children.push($$e('span', undefined, '\u00a0\u00a0|\u00a0\u00a0'));
|
|
112917
112917
|
for (let i = 0; i < items.length; i++) {
|
|
112918
112918
|
const item = items[i];
|
|
112919
112919
|
const icon = SymbolKinds.toIcon(item.kind);
|
|
@@ -114086,7 +114086,7 @@ let ViewZoneManager = class ViewZoneManager extends Disposable {
|
|
|
114086
114086
|
function createViewZoneMarginArrow() {
|
|
114087
114087
|
const arrow = document.createElement('div');
|
|
114088
114088
|
arrow.className = 'arrow-revert-change ' + ThemeIcon.asClassName(Codicon.arrowRight);
|
|
114089
|
-
return $$
|
|
114089
|
+
return $$e('div', {}, arrow);
|
|
114090
114090
|
}
|
|
114091
114091
|
let marginDomNode = undefined;
|
|
114092
114092
|
if (a.diff && a.diff.modified.isEmpty && this._options.shouldRenderRevertArrows.read(reader)) {
|
|
@@ -114898,7 +114898,7 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
|
|
|
114898
114898
|
this._audioCueService = _audioCueService;
|
|
114899
114899
|
this._editorProgressService = _editorProgressService;
|
|
114900
114900
|
this.elements = h$1('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
|
|
114901
|
-
h$1('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$
|
|
114901
|
+
h$1('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$e('span', {}, 'No Changes')]),
|
|
114902
114902
|
h$1('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
|
|
114903
114903
|
h$1('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
|
|
114904
114904
|
h$1('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
|
|
@@ -118028,7 +118028,7 @@ registerLanguage({
|
|
|
118028
118028
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
118029
118029
|
loader: () => {
|
|
118030
118030
|
{
|
|
118031
|
-
return import('./html-
|
|
118031
|
+
return import('./html-2bce5d77.js');
|
|
118032
118032
|
}
|
|
118033
118033
|
}
|
|
118034
118034
|
});
|
|
@@ -118048,7 +118048,7 @@ registerLanguage({
|
|
|
118048
118048
|
mimetypes: ["text/javascript"],
|
|
118049
118049
|
loader: () => {
|
|
118050
118050
|
{
|
|
118051
|
-
return import('./javascript-
|
|
118051
|
+
return import('./javascript-ded5c9d7.js');
|
|
118052
118052
|
}
|
|
118053
118053
|
}
|
|
118054
118054
|
});
|
|
@@ -118066,7 +118066,7 @@ registerLanguage({
|
|
|
118066
118066
|
mimetypes: ["text/typescript"],
|
|
118067
118067
|
loader: () => {
|
|
118068
118068
|
{
|
|
118069
|
-
return import('./typescript-
|
|
118069
|
+
return import('./typescript-cc4d00f0.js');
|
|
118070
118070
|
}
|
|
118071
118071
|
}
|
|
118072
118072
|
});
|
|
@@ -118187,7 +118187,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
118187
118187
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
118188
118188
|
function getMode$3() {
|
|
118189
118189
|
{
|
|
118190
|
-
return import('./cssMode-
|
|
118190
|
+
return import('./cssMode-3d18bd2b.js');
|
|
118191
118191
|
}
|
|
118192
118192
|
}
|
|
118193
118193
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -118312,7 +118312,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
118312
118312
|
};
|
|
118313
118313
|
function getMode$2() {
|
|
118314
118314
|
{
|
|
118315
|
-
return import('./htmlMode-
|
|
118315
|
+
return import('./htmlMode-69d56956.js');
|
|
118316
118316
|
}
|
|
118317
118317
|
}
|
|
118318
118318
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -118414,7 +118414,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
118414
118414
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
118415
118415
|
function getMode$1() {
|
|
118416
118416
|
{
|
|
118417
|
-
return import('./jsonMode-
|
|
118417
|
+
return import('./jsonMode-0bf84cb2.js');
|
|
118418
118418
|
}
|
|
118419
118419
|
}
|
|
118420
118420
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -118683,7 +118683,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
118683
118683
|
};
|
|
118684
118684
|
function getMode() {
|
|
118685
118685
|
{
|
|
118686
|
-
return import('./tsMode-
|
|
118686
|
+
return import('./tsMode-15d4e936.js');
|
|
118687
118687
|
}
|
|
118688
118688
|
}
|
|
118689
118689
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -120666,7 +120666,7 @@ let LightBulbWidget = LightBulbWidget_1 = class LightBulbWidget extends Disposab
|
|
|
120666
120666
|
this._onClick = this._register(new Emitter$1());
|
|
120667
120667
|
this.onClick = this._onClick.event;
|
|
120668
120668
|
this._state = LightBulbState.Hidden;
|
|
120669
|
-
this._domNode = $$
|
|
120669
|
+
this._domNode = $$e('div.lightBulbWidget');
|
|
120670
120670
|
this._register(Gesture.ignoreTarget(this._domNode));
|
|
120671
120671
|
this._editor.addContentWidget(this);
|
|
120672
120672
|
this._register(this._editor.onDidChangeModelContent(_ => {
|
|
@@ -121473,7 +121473,7 @@ let ActionWidgetService = class ActionWidgetService extends Disposable {
|
|
|
121473
121473
|
if (!actions.length) {
|
|
121474
121474
|
return undefined;
|
|
121475
121475
|
}
|
|
121476
|
-
const container = $$
|
|
121476
|
+
const container = $$e(className);
|
|
121477
121477
|
const actionBar = new ActionBar(container);
|
|
121478
121478
|
actionBar.push(actions, { icon: false, label: true });
|
|
121479
121479
|
return actionBar;
|
|
@@ -122667,20 +122667,20 @@ class CodeLensContentWidget {
|
|
|
122667
122667
|
if (lens.command) {
|
|
122668
122668
|
const title = renderLabelWithIcons(lens.command.title.trim());
|
|
122669
122669
|
if (lens.command.id) {
|
|
122670
|
-
children.push($$
|
|
122670
|
+
children.push($$e('a', { id: String(i), title: lens.command.tooltip, role: 'button' }, ...title));
|
|
122671
122671
|
this._commands.set(String(i), lens.command);
|
|
122672
122672
|
}
|
|
122673
122673
|
else {
|
|
122674
|
-
children.push($$
|
|
122674
|
+
children.push($$e('span', { title: lens.command.tooltip }, ...title));
|
|
122675
122675
|
}
|
|
122676
122676
|
if (i + 1 < lenses.length) {
|
|
122677
|
-
children.push($$
|
|
122677
|
+
children.push($$e('span', undefined, '\u00a0|\u00a0'));
|
|
122678
122678
|
}
|
|
122679
122679
|
}
|
|
122680
122680
|
}
|
|
122681
122681
|
if (!hasSymbol) {
|
|
122682
122682
|
// symbols but no commands
|
|
122683
|
-
reset(this._domNode, $$
|
|
122683
|
+
reset(this._domNode, $$e('span', undefined, 'no commands'));
|
|
122684
122684
|
}
|
|
122685
122685
|
else {
|
|
122686
122686
|
// symbols and commands
|
|
@@ -123832,22 +123832,22 @@ class ColorPickerModel {
|
|
|
123832
123832
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
123833
123833
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
123834
123834
|
*--------------------------------------------------------------------------------------------*/
|
|
123835
|
-
const $$
|
|
123835
|
+
const $$7 = $$e;
|
|
123836
123836
|
class ColorPickerHeader extends Disposable {
|
|
123837
123837
|
constructor(container, model, themeService, showingStandaloneColorPicker = false) {
|
|
123838
123838
|
super();
|
|
123839
123839
|
this.model = model;
|
|
123840
123840
|
this.showingStandaloneColorPicker = showingStandaloneColorPicker;
|
|
123841
123841
|
this._closeButton = null;
|
|
123842
|
-
this._domNode = $$
|
|
123842
|
+
this._domNode = $$7('.colorpicker-header');
|
|
123843
123843
|
append$1(container, this._domNode);
|
|
123844
|
-
this._pickedColorNode = append$1(this._domNode, $$
|
|
123845
|
-
append$1(this._pickedColorNode, $$
|
|
123844
|
+
this._pickedColorNode = append$1(this._domNode, $$7('.picked-color'));
|
|
123845
|
+
append$1(this._pickedColorNode, $$7('span.codicon.codicon-color-mode'));
|
|
123846
123846
|
this._pickedColorPresentation = append$1(this._pickedColorNode, document.createElement('span'));
|
|
123847
123847
|
this._pickedColorPresentation.classList.add('picked-color-presentation');
|
|
123848
123848
|
const tooltip = localize('clickToToggleColorOptions', "Click to toggle color options (rgb/hsl/hex)");
|
|
123849
123849
|
this._pickedColorNode.setAttribute('title', tooltip);
|
|
123850
|
-
this._originalColorNode = append$1(this._domNode, $$
|
|
123850
|
+
this._originalColorNode = append$1(this._domNode, $$7('.original-color'));
|
|
123851
123851
|
this._originalColorNode.style.backgroundColor = Color.Format.CSS.format(this.model.originalColor) || '';
|
|
123852
123852
|
this.backgroundColor = themeService.getColorTheme().getColor(editorHoverBackground) || Color.white;
|
|
123853
123853
|
this._register(themeService.onDidColorThemeChange(theme => {
|
|
@@ -123898,7 +123898,7 @@ class CloseButton extends Disposable {
|
|
|
123898
123898
|
const innerDiv = document.createElement('div');
|
|
123899
123899
|
innerDiv.classList.add('close-button-inner-div');
|
|
123900
123900
|
append$1(this._button, innerDiv);
|
|
123901
|
-
const closeButton = append$1(innerDiv, $$
|
|
123901
|
+
const closeButton = append$1(innerDiv, $$7('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, localize('closeIcon', 'Icon to close the color picker')))));
|
|
123902
123902
|
closeButton.classList.add('close-icon');
|
|
123903
123903
|
this._button.onclick = () => {
|
|
123904
123904
|
this._onClicked.fire();
|
|
@@ -123911,7 +123911,7 @@ class ColorPickerBody extends Disposable {
|
|
|
123911
123911
|
this.model = model;
|
|
123912
123912
|
this.pixelRatio = pixelRatio;
|
|
123913
123913
|
this._insertButton = null;
|
|
123914
|
-
this._domNode = $$
|
|
123914
|
+
this._domNode = $$7('.colorpicker-body');
|
|
123915
123915
|
append$1(container, this._domNode);
|
|
123916
123916
|
this._saturationBox = new SaturationBox(this._domNode, this.model, this.pixelRatio);
|
|
123917
123917
|
this._register(this._saturationBox);
|
|
@@ -123970,14 +123970,14 @@ class SaturationBox extends Disposable {
|
|
|
123970
123970
|
this.onDidChange = this._onDidChange.event;
|
|
123971
123971
|
this._onColorFlushed = new Emitter$1();
|
|
123972
123972
|
this.onColorFlushed = this._onColorFlushed.event;
|
|
123973
|
-
this._domNode = $$
|
|
123973
|
+
this._domNode = $$7('.saturation-wrap');
|
|
123974
123974
|
append$1(container, this._domNode);
|
|
123975
123975
|
// Create canvas, draw selected color
|
|
123976
123976
|
this._canvas = document.createElement('canvas');
|
|
123977
123977
|
this._canvas.className = 'saturation-box';
|
|
123978
123978
|
append$1(this._domNode, this._canvas);
|
|
123979
123979
|
// Add selection circle
|
|
123980
|
-
this.selection = $$
|
|
123980
|
+
this.selection = $$7('.saturation-selection');
|
|
123981
123981
|
append$1(this._domNode, this.selection);
|
|
123982
123982
|
this.layout();
|
|
123983
123983
|
this._register(addDisposableListener(this._domNode, EventType$1.POINTER_DOWN, e => this.onPointerDown(e)));
|
|
@@ -124062,14 +124062,14 @@ class Strip extends Disposable {
|
|
|
124062
124062
|
this._onColorFlushed = new Emitter$1();
|
|
124063
124063
|
this.onColorFlushed = this._onColorFlushed.event;
|
|
124064
124064
|
if (showingStandaloneColorPicker) {
|
|
124065
|
-
this.domNode = append$1(container, $$
|
|
124066
|
-
this.overlay = append$1(this.domNode, $$
|
|
124065
|
+
this.domNode = append$1(container, $$7('.standalone-strip'));
|
|
124066
|
+
this.overlay = append$1(this.domNode, $$7('.standalone-overlay'));
|
|
124067
124067
|
}
|
|
124068
124068
|
else {
|
|
124069
|
-
this.domNode = append$1(container, $$
|
|
124070
|
-
this.overlay = append$1(this.domNode, $$
|
|
124069
|
+
this.domNode = append$1(container, $$7('.strip'));
|
|
124070
|
+
this.overlay = append$1(this.domNode, $$7('.overlay'));
|
|
124071
124071
|
}
|
|
124072
|
-
this.slider = append$1(this.domNode, $$
|
|
124072
|
+
this.slider = append$1(this.domNode, $$7('.slider'));
|
|
124073
124073
|
this.slider.style.top = `0px`;
|
|
124074
124074
|
this._register(addDisposableListener(this.domNode, EventType$1.POINTER_DOWN, e => this.onPointerDown(e)));
|
|
124075
124075
|
this._register(model.onDidChangeColor(this.onDidChangeColor, this));
|
|
@@ -124159,7 +124159,7 @@ class ColorPickerWidget extends Widget$1 {
|
|
|
124159
124159
|
this.model = model;
|
|
124160
124160
|
this.pixelRatio = pixelRatio;
|
|
124161
124161
|
this._register(PixelRatio.onDidChange(() => this.layout()));
|
|
124162
|
-
const element = $$
|
|
124162
|
+
const element = $$7('.colorpicker-widget');
|
|
124163
124163
|
container.appendChild(element);
|
|
124164
124164
|
this.header = this._register(new ColorPickerHeader(element, this.model, themeService, standaloneColorPicker));
|
|
124165
124165
|
this.body = this._register(new ColorPickerBody(element, this.model, this.pixelRatio, standaloneColorPicker));
|
|
@@ -125103,26 +125103,26 @@ let PeekViewWidget = class PeekViewWidget extends ZoneWidget {
|
|
|
125103
125103
|
}
|
|
125104
125104
|
_fillContainer(container) {
|
|
125105
125105
|
this.setCssClass('peekview-widget');
|
|
125106
|
-
this._headElement = $$
|
|
125107
|
-
this._bodyElement = $$
|
|
125106
|
+
this._headElement = $$e('.head');
|
|
125107
|
+
this._bodyElement = $$e('.body');
|
|
125108
125108
|
this._fillHead(this._headElement);
|
|
125109
125109
|
this._fillBody(this._bodyElement);
|
|
125110
125110
|
container.appendChild(this._headElement);
|
|
125111
125111
|
container.appendChild(this._bodyElement);
|
|
125112
125112
|
}
|
|
125113
125113
|
_fillHead(container, noCloseAction) {
|
|
125114
|
-
this._titleElement = $$
|
|
125114
|
+
this._titleElement = $$e('.peekview-title');
|
|
125115
125115
|
if (this.options.supportOnTitleClick) {
|
|
125116
125116
|
this._titleElement.classList.add('clickable');
|
|
125117
125117
|
addStandardDisposableListener(this._titleElement, 'click', event => this._onTitleClick(event));
|
|
125118
125118
|
}
|
|
125119
125119
|
append$1(this._headElement, this._titleElement);
|
|
125120
125120
|
this._fillTitleIcon(this._titleElement);
|
|
125121
|
-
this._primaryHeading = $$
|
|
125122
|
-
this._secondaryHeading = $$
|
|
125123
|
-
this._metaHeading = $$
|
|
125121
|
+
this._primaryHeading = $$e('span.filename');
|
|
125122
|
+
this._secondaryHeading = $$e('span.dirname');
|
|
125123
|
+
this._metaHeading = $$e('span.meta');
|
|
125124
125124
|
append$1(this._titleElement, this._primaryHeading, this._secondaryHeading, this._metaHeading);
|
|
125125
|
-
const actionsContainer = $$
|
|
125125
|
+
const actionsContainer = $$e('.peekview-actions');
|
|
125126
125126
|
append$1(this._headElement, actionsContainer);
|
|
125127
125127
|
const actionBarOptions = this._getActionBarOptions();
|
|
125128
125128
|
this._actionbarWidget = new ActionBar(actionsContainer, actionBarOptions);
|
|
@@ -125546,7 +125546,7 @@ let FileReferencesTemplate = class FileReferencesTemplate extends Disposable {
|
|
|
125546
125546
|
const parent = document.createElement('div');
|
|
125547
125547
|
parent.classList.add('reference-file');
|
|
125548
125548
|
this.file = this._register(new IconLabel(parent, { supportHighlights: true }));
|
|
125549
|
-
this.badge = new CountBadge(append$1(parent, $$
|
|
125549
|
+
this.badge = new CountBadge(append$1(parent, $$e('.count')), {}, defaultCountBadgeStyles);
|
|
125550
125550
|
container.appendChild(parent);
|
|
125551
125551
|
}
|
|
125552
125552
|
set(element, matches) {
|
|
@@ -125858,11 +125858,11 @@ let ReferenceWidget = class ReferenceWidget extends PeekViewWidget {
|
|
|
125858
125858
|
_fillBody(containerElement) {
|
|
125859
125859
|
this.setCssClass('reference-zone-widget');
|
|
125860
125860
|
// message pane
|
|
125861
|
-
this._messageContainer = append$1(containerElement, $$
|
|
125861
|
+
this._messageContainer = append$1(containerElement, $$e('div.messages'));
|
|
125862
125862
|
hide(this._messageContainer);
|
|
125863
125863
|
this._splitView = new SplitView(containerElement, { orientation: 1 /* Orientation.HORIZONTAL */ });
|
|
125864
125864
|
// editor
|
|
125865
|
-
this._previewContainer = append$1(containerElement, $$
|
|
125865
|
+
this._previewContainer = append$1(containerElement, $$e('div.preview.inline'));
|
|
125866
125866
|
const options = {
|
|
125867
125867
|
scrollBeyondLastLine: false,
|
|
125868
125868
|
scrollbar: {
|
|
@@ -125883,7 +125883,7 @@ let ReferenceWidget = class ReferenceWidget extends PeekViewWidget {
|
|
|
125883
125883
|
hide(this._previewContainer);
|
|
125884
125884
|
this._previewNotAvailableMessage = new TextModel(localize('missingPreviewMessage', "no preview available"), PLAINTEXT_LANGUAGE_ID, TextModel.DEFAULT_CREATION_OPTIONS, null, this._undoRedoService, this._languageService, this._languageConfigurationService);
|
|
125885
125885
|
// tree
|
|
125886
|
-
this._treeContainer = append$1(containerElement, $$
|
|
125886
|
+
this._treeContainer = append$1(containerElement, $$e('div.ref-tree.inline'));
|
|
125887
125887
|
const treeOptions = {
|
|
125888
125888
|
keyboardSupport: this._defaultTreeKeyboardSupport,
|
|
125889
125889
|
accessibilityProvider: new AccessibilityProvider(),
|
|
@@ -127729,7 +127729,7 @@ registerEditorContribution(GotoDefinitionAtPositionEditorContribution.ID, GotoDe
|
|
|
127729
127729
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
127730
127730
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
127731
127731
|
*--------------------------------------------------------------------------------------------*/
|
|
127732
|
-
const $$
|
|
127732
|
+
const $$6 = $$e;
|
|
127733
127733
|
class HoverWidget extends Disposable {
|
|
127734
127734
|
constructor() {
|
|
127735
127735
|
super();
|
|
@@ -127754,14 +127754,14 @@ class HoverAction extends Disposable {
|
|
|
127754
127754
|
}
|
|
127755
127755
|
constructor(parent, actionOptions, keybindingLabel) {
|
|
127756
127756
|
super();
|
|
127757
|
-
this.actionContainer = append$1(parent, $$
|
|
127757
|
+
this.actionContainer = append$1(parent, $$6('div.action-container'));
|
|
127758
127758
|
this.actionContainer.setAttribute('tabindex', '0');
|
|
127759
|
-
this.action = append$1(this.actionContainer, $$
|
|
127759
|
+
this.action = append$1(this.actionContainer, $$6('a.action'));
|
|
127760
127760
|
this.action.setAttribute('role', 'button');
|
|
127761
127761
|
if (actionOptions.iconClass) {
|
|
127762
|
-
append$1(this.action, $$
|
|
127762
|
+
append$1(this.action, $$6(`span.icon.${actionOptions.iconClass}`));
|
|
127763
127763
|
}
|
|
127764
|
-
const label = append$1(this.action, $$
|
|
127764
|
+
const label = append$1(this.action, $$6('span'));
|
|
127765
127765
|
label.textContent = keybindingLabel ? `${actionOptions.label} (${keybindingLabel})` : actionOptions.label;
|
|
127766
127766
|
this._register(addDisposableListener(this.actionContainer, EventType$1.CLICK, e => {
|
|
127767
127767
|
e.stopPropagation();
|
|
@@ -128260,7 +128260,7 @@ var __param$15 = (undefined && undefined.__param) || function (paramIndex, decor
|
|
|
128260
128260
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
128261
128261
|
};
|
|
128262
128262
|
var ContentHoverController_1, ContentHoverWidget_1;
|
|
128263
|
-
const $$
|
|
128263
|
+
const $$5 = $$e;
|
|
128264
128264
|
let ContentHoverController = ContentHoverController_1 = class ContentHoverController extends Disposable {
|
|
128265
128265
|
constructor(_editor, _instantiationService, _keybindingService) {
|
|
128266
128266
|
super();
|
|
@@ -129000,8 +129000,8 @@ let EditorHoverStatusBar = class EditorHoverStatusBar extends Disposable {
|
|
|
129000
129000
|
super();
|
|
129001
129001
|
this._keybindingService = _keybindingService;
|
|
129002
129002
|
this._hasContent = false;
|
|
129003
|
-
this.hoverElement = $$
|
|
129004
|
-
this.actionsElement = append$1(this.hoverElement, $$
|
|
129003
|
+
this.hoverElement = $$5('div.hover-row.status-bar');
|
|
129004
|
+
this.actionsElement = append$1(this.hoverElement, $$5('div.actions'));
|
|
129005
129005
|
}
|
|
129006
129006
|
addAction(actionOptions) {
|
|
129007
129007
|
const keybinding = this._keybindingService.lookupKeybinding(actionOptions.commandId);
|
|
@@ -129103,7 +129103,7 @@ function computeDistanceFromPointToRectangle(pointX, pointY, left, top, width, h
|
|
|
129103
129103
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
129104
129104
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
129105
129105
|
*--------------------------------------------------------------------------------------------*/
|
|
129106
|
-
const $$
|
|
129106
|
+
const $$4 = $$e;
|
|
129107
129107
|
class MarginHoverWidget extends Disposable {
|
|
129108
129108
|
constructor(editor, languageService, openerService) {
|
|
129109
129109
|
super();
|
|
@@ -129184,8 +129184,8 @@ class MarginHoverWidget extends Disposable {
|
|
|
129184
129184
|
this._renderDisposeables.clear();
|
|
129185
129185
|
const fragment = document.createDocumentFragment();
|
|
129186
129186
|
for (const msg of messages) {
|
|
129187
|
-
const markdownHoverElement = $$
|
|
129188
|
-
const hoverContentsElement = append$1(markdownHoverElement, $$
|
|
129187
|
+
const markdownHoverElement = $$4('div.hover-row.markdown-hover');
|
|
129188
|
+
const hoverContentsElement = append$1(markdownHoverElement, $$4('div.hover-contents'));
|
|
129189
129189
|
const renderedContents = this._renderDisposeables.add(this._markdownRenderer.render(msg.value));
|
|
129190
129190
|
hoverContentsElement.appendChild(renderedContents.element);
|
|
129191
129191
|
fragment.appendChild(markdownHoverElement);
|
|
@@ -129315,7 +129315,7 @@ var __decorate$14 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
129315
129315
|
var __param$14 = (undefined && undefined.__param) || function (paramIndex, decorator) {
|
|
129316
129316
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
129317
129317
|
};
|
|
129318
|
-
const $$
|
|
129318
|
+
const $$3 = $$e;
|
|
129319
129319
|
class MarkdownHover {
|
|
129320
129320
|
constructor(owner, range, contents, isBeforeContent, ordinal) {
|
|
129321
129321
|
this.owner = owner;
|
|
@@ -129420,8 +129420,8 @@ function renderMarkdownHovers(context, hoverParts, editor, languageService, open
|
|
|
129420
129420
|
if (isEmptyMarkdownString(contents)) {
|
|
129421
129421
|
continue;
|
|
129422
129422
|
}
|
|
129423
|
-
const markdownHoverElement = $$
|
|
129424
|
-
const hoverContentsElement = append$1(markdownHoverElement, $$
|
|
129423
|
+
const markdownHoverElement = $$3('div.hover-row.markdown-hover');
|
|
129424
|
+
const hoverContentsElement = append$1(markdownHoverElement, $$3('div.hover-contents'));
|
|
129425
129425
|
const renderer = disposables.add(new MarkdownRenderer({ editor }, languageService, openerService));
|
|
129426
129426
|
disposables.add(renderer.onDidRenderAsync(() => {
|
|
129427
129427
|
hoverContentsElement.className = 'hover-contents code-hover-contents';
|
|
@@ -129742,14 +129742,14 @@ class MessageWidget {
|
|
|
129742
129742
|
detailsElement.appendChild(codeElement);
|
|
129743
129743
|
}
|
|
129744
129744
|
else {
|
|
129745
|
-
this._codeLink = $$
|
|
129745
|
+
this._codeLink = $$e('a.code-link');
|
|
129746
129746
|
this._codeLink.setAttribute('href', `${code.target.toString()}`);
|
|
129747
129747
|
this._codeLink.onclick = (e) => {
|
|
129748
129748
|
this._openerService.open(code.target, { allowCommands: true });
|
|
129749
129749
|
e.preventDefault();
|
|
129750
129750
|
e.stopPropagation();
|
|
129751
129751
|
};
|
|
129752
|
-
const codeElement = append$1(this._codeLink, $$
|
|
129752
|
+
const codeElement = append$1(this._codeLink, $$e('span'));
|
|
129753
129753
|
codeElement.innerText = code.value;
|
|
129754
129754
|
detailsElement.appendChild(this._codeLink);
|
|
129755
129755
|
}
|
|
@@ -129873,7 +129873,7 @@ let MarkerNavigationWidget = MarkerNavigationWidget_1 = class MarkerNavigationWi
|
|
|
129873
129873
|
menu.dispose();
|
|
129874
129874
|
}
|
|
129875
129875
|
_fillTitleIcon(container) {
|
|
129876
|
-
this._icon = append$1(container, $$
|
|
129876
|
+
this._icon = append$1(container, $$e(''));
|
|
129877
129877
|
}
|
|
129878
129878
|
_fillBody(container) {
|
|
129879
129879
|
this._parentContainer = container;
|
|
@@ -130242,7 +130242,7 @@ var __decorate$10 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
130242
130242
|
var __param$10 = (undefined && undefined.__param) || function (paramIndex, decorator) {
|
|
130243
130243
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
130244
130244
|
};
|
|
130245
|
-
const $$
|
|
130245
|
+
const $$2 = $$e;
|
|
130246
130246
|
class MarkerHover {
|
|
130247
130247
|
constructor(owner, range, marker) {
|
|
130248
130248
|
this.owner = owner;
|
|
@@ -130300,36 +130300,36 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
130300
130300
|
return disposables;
|
|
130301
130301
|
}
|
|
130302
130302
|
renderMarkerHover(markerHover, disposables) {
|
|
130303
|
-
const hoverElement = $$
|
|
130304
|
-
const markerElement = append$1(hoverElement, $$
|
|
130303
|
+
const hoverElement = $$2('div.hover-row');
|
|
130304
|
+
const markerElement = append$1(hoverElement, $$2('div.marker.hover-contents'));
|
|
130305
130305
|
const { source, message, code, relatedInformation } = markerHover.marker;
|
|
130306
130306
|
this._editor.applyFontInfo(markerElement);
|
|
130307
|
-
const messageElement = append$1(markerElement, $$
|
|
130307
|
+
const messageElement = append$1(markerElement, $$2('span'));
|
|
130308
130308
|
messageElement.style.whiteSpace = 'pre-wrap';
|
|
130309
130309
|
messageElement.innerText = message;
|
|
130310
130310
|
if (source || code) {
|
|
130311
130311
|
// Code has link
|
|
130312
130312
|
if (code && typeof code !== 'string') {
|
|
130313
|
-
const sourceAndCodeElement = $$
|
|
130313
|
+
const sourceAndCodeElement = $$2('span');
|
|
130314
130314
|
if (source) {
|
|
130315
|
-
const sourceElement = append$1(sourceAndCodeElement, $$
|
|
130315
|
+
const sourceElement = append$1(sourceAndCodeElement, $$2('span'));
|
|
130316
130316
|
sourceElement.innerText = source;
|
|
130317
130317
|
}
|
|
130318
|
-
const codeLink = append$1(sourceAndCodeElement, $$
|
|
130318
|
+
const codeLink = append$1(sourceAndCodeElement, $$2('a.code-link'));
|
|
130319
130319
|
codeLink.setAttribute('href', code.target.toString());
|
|
130320
130320
|
disposables.add(addDisposableListener(codeLink, 'click', (e) => {
|
|
130321
130321
|
this._openerService.open(code.target, { allowCommands: true });
|
|
130322
130322
|
e.preventDefault();
|
|
130323
130323
|
e.stopPropagation();
|
|
130324
130324
|
}));
|
|
130325
|
-
const codeElement = append$1(codeLink, $$
|
|
130325
|
+
const codeElement = append$1(codeLink, $$2('span'));
|
|
130326
130326
|
codeElement.innerText = code.value;
|
|
130327
130327
|
const detailsElement = append$1(markerElement, sourceAndCodeElement);
|
|
130328
130328
|
detailsElement.style.opacity = '0.6';
|
|
130329
130329
|
detailsElement.style.paddingLeft = '6px';
|
|
130330
130330
|
}
|
|
130331
130331
|
else {
|
|
130332
|
-
const detailsElement = append$1(markerElement, $$
|
|
130332
|
+
const detailsElement = append$1(markerElement, $$2('span'));
|
|
130333
130333
|
detailsElement.style.opacity = '0.6';
|
|
130334
130334
|
detailsElement.style.paddingLeft = '6px';
|
|
130335
130335
|
detailsElement.innerText = source && code ? `${source}(${code})` : source ? source : `(${code})`;
|
|
@@ -130337,9 +130337,9 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
130337
130337
|
}
|
|
130338
130338
|
if (isNonEmptyArray(relatedInformation)) {
|
|
130339
130339
|
for (const { message, resource, startLineNumber, startColumn } of relatedInformation) {
|
|
130340
|
-
const relatedInfoContainer = append$1(markerElement, $$
|
|
130340
|
+
const relatedInfoContainer = append$1(markerElement, $$2('div'));
|
|
130341
130341
|
relatedInfoContainer.style.marginTop = '8px';
|
|
130342
|
-
const a = append$1(relatedInfoContainer, $$
|
|
130342
|
+
const a = append$1(relatedInfoContainer, $$2('a'));
|
|
130343
130343
|
a.innerText = `${basename(resource)}(${startLineNumber}, ${startColumn}): `;
|
|
130344
130344
|
a.style.cursor = 'pointer';
|
|
130345
130345
|
disposables.add(addDisposableListener(a, 'click', (e) => {
|
|
@@ -130352,7 +130352,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
130352
130352
|
}).catch(onUnexpectedError);
|
|
130353
130353
|
}
|
|
130354
130354
|
}));
|
|
130355
|
-
const messageElement = append$1(relatedInfoContainer, $$
|
|
130355
|
+
const messageElement = append$1(relatedInfoContainer, $$2('span'));
|
|
130356
130356
|
messageElement.innerText = message;
|
|
130357
130357
|
this._editor.applyFontInfo(messageElement);
|
|
130358
130358
|
}
|
|
@@ -130373,7 +130373,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
130373
130373
|
});
|
|
130374
130374
|
}
|
|
130375
130375
|
if (!this._editor.getOption(90 /* EditorOption.readOnly */)) {
|
|
130376
|
-
const quickfixPlaceholderElement = context.statusBar.append($$
|
|
130376
|
+
const quickfixPlaceholderElement = context.statusBar.append($$2('div'));
|
|
130377
130377
|
if (this.recentMarkerCodeActionsInfo) {
|
|
130378
130378
|
if (IMarkerData.makeKey(this.recentMarkerCodeActionsInfo.marker) === IMarkerData.makeKey(markerHover.marker)) {
|
|
130379
130379
|
if (!this.recentMarkerCodeActionsInfo.hasCodeActions) {
|
|
@@ -133788,10 +133788,10 @@ class InlineProgressWidget extends Disposable {
|
|
|
133788
133788
|
this.editor.layoutContentWidget(this);
|
|
133789
133789
|
}
|
|
133790
133790
|
create(title) {
|
|
133791
|
-
this.domNode = $$
|
|
133791
|
+
this.domNode = $$e('.inline-progress-widget');
|
|
133792
133792
|
this.domNode.role = 'button';
|
|
133793
133793
|
this.domNode.title = title;
|
|
133794
|
-
const iconElement = $$
|
|
133794
|
+
const iconElement = $$e('span.icon');
|
|
133795
133795
|
this.domNode.append(iconElement);
|
|
133796
133796
|
iconElement.classList.add(...ThemeIcon.asClassNameArray(Codicon.loading), 'codicon-modifier-spin');
|
|
133797
133797
|
const updateSize = () => {
|
|
@@ -133934,7 +133934,7 @@ let PostEditWidget = PostEditWidget_1 = class PostEditWidget extends Disposable
|
|
|
133934
133934
|
this.button.element.title = this.showCommand.label + (binding ? ` (${binding})` : '');
|
|
133935
133935
|
}
|
|
133936
133936
|
create() {
|
|
133937
|
-
this.domNode = $$
|
|
133937
|
+
this.domNode = $$e('.post-edit-widget');
|
|
133938
133938
|
this.button = this._register(new Button(this.domNode, {
|
|
133939
133939
|
supportIcons: true,
|
|
133940
133940
|
}));
|
|
@@ -147794,7 +147794,7 @@ let SuggestWidgetStatus = class SuggestWidgetStatus {
|
|
|
147794
147794
|
this._menuService = _menuService;
|
|
147795
147795
|
this._contextKeyService = _contextKeyService;
|
|
147796
147796
|
this._menuDisposables = new DisposableStore();
|
|
147797
|
-
this.element = append$1(container, $$
|
|
147797
|
+
this.element = append$1(container, $$e('.suggest-status-bar'));
|
|
147798
147798
|
const actionViewItemProvider = (action => {
|
|
147799
147799
|
return action instanceof MenuItemAction ? instantiationService.createInstance(StatusBarViewItem, action, undefined) : undefined;
|
|
147800
147800
|
});
|
|
@@ -147867,20 +147867,20 @@ let SuggestDetailsWidget = class SuggestDetailsWidget {
|
|
|
147867
147867
|
this._renderDisposeable = new DisposableStore();
|
|
147868
147868
|
this._borderWidth = 1;
|
|
147869
147869
|
this._size = new Dimension(330, 0);
|
|
147870
|
-
this.domNode = $$
|
|
147870
|
+
this.domNode = $$e('.suggest-details');
|
|
147871
147871
|
this.domNode.classList.add('no-docs');
|
|
147872
147872
|
this._markdownRenderer = instaService.createInstance(MarkdownRenderer, { editor: _editor });
|
|
147873
|
-
this._body = $$
|
|
147873
|
+
this._body = $$e('.body');
|
|
147874
147874
|
this._scrollbar = new DomScrollableElement(this._body, {
|
|
147875
147875
|
alwaysConsumeMouseWheel: true,
|
|
147876
147876
|
});
|
|
147877
147877
|
append$1(this.domNode, this._scrollbar.getDomNode());
|
|
147878
147878
|
this._disposables.add(this._scrollbar);
|
|
147879
|
-
this._header = append$1(this._body, $$
|
|
147880
|
-
this._close = append$1(this._header, $$
|
|
147879
|
+
this._header = append$1(this._body, $$e('.header'));
|
|
147880
|
+
this._close = append$1(this._header, $$e('span' + ThemeIcon.asCSSSelector(Codicon.close)));
|
|
147881
147881
|
this._close.title = localize('details.close', "Close");
|
|
147882
|
-
this._type = append$1(this._header, $$
|
|
147883
|
-
this._docs = append$1(this._body, $$
|
|
147882
|
+
this._type = append$1(this._header, $$e('p.type'));
|
|
147883
|
+
this._docs = append$1(this._body, $$e('p.docs'));
|
|
147884
147884
|
this._configureFont();
|
|
147885
147885
|
this._disposables.add(this._editor.onDidChangeConfiguration(e => {
|
|
147886
147886
|
if (e.hasChanged(50 /* EditorOption.fontInfo */)) {
|
|
@@ -148364,19 +148364,19 @@ let ItemRenderer = class ItemRenderer {
|
|
|
148364
148364
|
const disposables = new DisposableStore();
|
|
148365
148365
|
const root = container;
|
|
148366
148366
|
root.classList.add('show-file-icons');
|
|
148367
|
-
const icon = append$1(container, $$
|
|
148368
|
-
const colorspan = append$1(icon, $$
|
|
148369
|
-
const text = append$1(container, $$
|
|
148370
|
-
const main = append$1(text, $$
|
|
148371
|
-
const iconContainer = append$1(main, $$
|
|
148372
|
-
const left = append$1(main, $$
|
|
148373
|
-
const right = append$1(main, $$
|
|
148367
|
+
const icon = append$1(container, $$e('.icon'));
|
|
148368
|
+
const colorspan = append$1(icon, $$e('span.colorspan'));
|
|
148369
|
+
const text = append$1(container, $$e('.contents'));
|
|
148370
|
+
const main = append$1(text, $$e('.main'));
|
|
148371
|
+
const iconContainer = append$1(main, $$e('.icon-label.codicon'));
|
|
148372
|
+
const left = append$1(main, $$e('span.left'));
|
|
148373
|
+
const right = append$1(main, $$e('span.right'));
|
|
148374
148374
|
const iconLabel = new IconLabel(left, { supportHighlights: true, supportIcons: true });
|
|
148375
148375
|
disposables.add(iconLabel);
|
|
148376
|
-
const parametersLabel = append$1(left, $$
|
|
148377
|
-
const qualifierLabel = append$1(left, $$
|
|
148378
|
-
const detailsLabel = append$1(right, $$
|
|
148379
|
-
const readMore = append$1(right, $$
|
|
148376
|
+
const parametersLabel = append$1(left, $$e('span.signature-label'));
|
|
148377
|
+
const qualifierLabel = append$1(left, $$e('span.qualifier-label'));
|
|
148378
|
+
const detailsLabel = append$1(right, $$e('span.details-label'));
|
|
148379
|
+
const readMore = append$1(right, $$e('span.readMore' + ThemeIcon.asCSSSelector(suggestMoreInfoIcon)));
|
|
148380
148380
|
readMore.title = localize('readMore', "Read More");
|
|
148381
148381
|
const configureFont = () => {
|
|
148382
148382
|
const options = this._editor.getOptions();
|
|
@@ -148630,8 +148630,8 @@ let SuggestWidget = SuggestWidget_1 = class SuggestWidget {
|
|
|
148630
148630
|
this._contentWidget.unlockPreference();
|
|
148631
148631
|
state = undefined;
|
|
148632
148632
|
}));
|
|
148633
|
-
this._messageElement = append$1(this.element.domNode, $$
|
|
148634
|
-
this._listElement = append$1(this.element.domNode, $$
|
|
148633
|
+
this._messageElement = append$1(this.element.domNode, $$e('.message'));
|
|
148634
|
+
this._listElement = append$1(this.element.domNode, $$e('.tree'));
|
|
148635
148635
|
const details = this._disposables.add(instantiationService.createInstance(SuggestDetailsWidget, this.editor));
|
|
148636
148636
|
details.onDidClose(this.toggleDetails, this, this._disposables);
|
|
148637
148637
|
this._details = new SuggestDetailsOverlay(details, this.editor);
|
|
@@ -150874,7 +150874,7 @@ let InlineCompletionsHoverParticipant = class InlineCompletionsHoverParticipant
|
|
|
150874
150874
|
return disposableStore;
|
|
150875
150875
|
}
|
|
150876
150876
|
renderScreenReaderText(context, part, disposableStore) {
|
|
150877
|
-
const $ = $$
|
|
150877
|
+
const $ = $$e;
|
|
150878
150878
|
const markdownHoverElement = $('div.hover-row.markdown-hover');
|
|
150879
150879
|
const hoverContentsElement = append$1(markdownHoverElement, $('div.hover-contents', { ['aria-live']: 'assertive' }));
|
|
150880
150880
|
const renderer = disposableStore.add(new MarkdownRenderer({ editor: this._editor }, this._languageService, this._openerService));
|
|
@@ -156670,7 +156670,7 @@ var __param$n = (undefined && undefined.__param) || function (paramIndex, decora
|
|
|
156670
156670
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
156671
156671
|
};
|
|
156672
156672
|
var ParameterHintsWidget_1;
|
|
156673
|
-
const
|
|
156673
|
+
const $$1 = $$e;
|
|
156674
156674
|
const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, localize('parameterHintsNextIcon', 'Icon for show next parameter hint.'));
|
|
156675
156675
|
const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, localize('parameterHintsPreviousIcon', 'Icon for show previous parameter hint.'));
|
|
156676
156676
|
let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget extends Disposable {
|
|
@@ -156688,13 +156688,13 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
156688
156688
|
this.keyMultipleSignatures = Context.MultipleSignatures.bindTo(contextKeyService);
|
|
156689
156689
|
}
|
|
156690
156690
|
createParameterHintDOMNodes() {
|
|
156691
|
-
const element =
|
|
156692
|
-
const wrapper = append$1(element,
|
|
156691
|
+
const element = $$1('.editor-widget.parameter-hints-widget');
|
|
156692
|
+
const wrapper = append$1(element, $$1('.phwrapper'));
|
|
156693
156693
|
wrapper.tabIndex = -1;
|
|
156694
|
-
const controls = append$1(wrapper,
|
|
156695
|
-
const previous = append$1(controls,
|
|
156696
|
-
const overloads = append$1(controls,
|
|
156697
|
-
const next = append$1(controls,
|
|
156694
|
+
const controls = append$1(wrapper, $$1('.controls'));
|
|
156695
|
+
const previous = append$1(controls, $$1('.button' + ThemeIcon.asCSSSelector(parameterHintsPreviousIcon)));
|
|
156696
|
+
const overloads = append$1(controls, $$1('.overloads'));
|
|
156697
|
+
const next = append$1(controls, $$1('.button' + ThemeIcon.asCSSSelector(parameterHintsNextIcon)));
|
|
156698
156698
|
this._register(addDisposableListener(previous, 'click', e => {
|
|
156699
156699
|
EventHelper.stop(e);
|
|
156700
156700
|
this.previous();
|
|
@@ -156703,14 +156703,14 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
156703
156703
|
EventHelper.stop(e);
|
|
156704
156704
|
this.next();
|
|
156705
156705
|
}));
|
|
156706
|
-
const body =
|
|
156706
|
+
const body = $$1('.body');
|
|
156707
156707
|
const scrollbar = new DomScrollableElement(body, {
|
|
156708
156708
|
alwaysConsumeMouseWheel: true,
|
|
156709
156709
|
});
|
|
156710
156710
|
this._register(scrollbar);
|
|
156711
156711
|
wrapper.appendChild(scrollbar.getDomNode());
|
|
156712
|
-
const signature = append$1(body,
|
|
156713
|
-
const docs = append$1(body,
|
|
156712
|
+
const signature = append$1(body, $$1('.signature'));
|
|
156713
|
+
const docs = append$1(body, $$1('.docs'));
|
|
156714
156714
|
element.style.userSelect = 'text';
|
|
156715
156715
|
this.domNodes = {
|
|
156716
156716
|
element,
|
|
@@ -156790,14 +156790,14 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
156790
156790
|
if (!signature) {
|
|
156791
156791
|
return;
|
|
156792
156792
|
}
|
|
156793
|
-
const code = append$1(this.domNodes.signature,
|
|
156793
|
+
const code = append$1(this.domNodes.signature, $$1('.code'));
|
|
156794
156794
|
const fontInfo = this.editor.getOption(50 /* EditorOption.fontInfo */);
|
|
156795
156795
|
code.style.fontSize = `${fontInfo.fontSize}px`;
|
|
156796
156796
|
code.style.fontFamily = fontInfo.fontFamily;
|
|
156797
156797
|
const hasParameters = signature.parameters.length > 0;
|
|
156798
156798
|
const activeParameterIndex = (_a = signature.activeParameter) !== null && _a !== void 0 ? _a : hints.activeParameter;
|
|
156799
156799
|
if (!hasParameters) {
|
|
156800
|
-
const label = append$1(code,
|
|
156800
|
+
const label = append$1(code, $$1('span'));
|
|
156801
156801
|
label.textContent = signature.label;
|
|
156802
156802
|
}
|
|
156803
156803
|
else {
|
|
@@ -156805,7 +156805,7 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
156805
156805
|
}
|
|
156806
156806
|
const activeParameter = signature.parameters[activeParameterIndex];
|
|
156807
156807
|
if (activeParameter === null || activeParameter === void 0 ? void 0 : activeParameter.documentation) {
|
|
156808
|
-
const documentation =
|
|
156808
|
+
const documentation = $$1('span.documentation');
|
|
156809
156809
|
if (typeof activeParameter.documentation === 'string') {
|
|
156810
156810
|
documentation.textContent = activeParameter.documentation;
|
|
156811
156811
|
}
|
|
@@ -156813,11 +156813,11 @@ let ParameterHintsWidget = ParameterHintsWidget_1 = class ParameterHintsWidget e
|
|
|
156813
156813
|
const renderedContents = this.renderMarkdownDocs(activeParameter.documentation);
|
|
156814
156814
|
documentation.appendChild(renderedContents.element);
|
|
156815
156815
|
}
|
|
156816
|
-
append$1(this.domNodes.docs,
|
|
156816
|
+
append$1(this.domNodes.docs, $$1('p', {}, documentation));
|
|
156817
156817
|
}
|
|
156818
156818
|
if (signature.documentation === undefined) ;
|
|
156819
156819
|
else if (typeof signature.documentation === 'string') {
|
|
156820
|
-
append$1(this.domNodes.docs,
|
|
156820
|
+
append$1(this.domNodes.docs, $$1('p', {}, signature.documentation));
|
|
156821
156821
|
}
|
|
156822
156822
|
else {
|
|
156823
156823
|
const renderedContents = this.renderMarkdownDocs(signature.documentation);
|
|
@@ -160616,7 +160616,7 @@ let Link = class Link extends Disposable {
|
|
|
160616
160616
|
super();
|
|
160617
160617
|
this._link = _link;
|
|
160618
160618
|
this._enabled = true;
|
|
160619
|
-
this.el = append$1(container, $$
|
|
160619
|
+
this.el = append$1(container, $$e('a.monaco-link', {
|
|
160620
160620
|
tabIndex: (_a = _link.tabIndex) !== null && _a !== void 0 ? _a : 0,
|
|
160621
160621
|
href: _link.href,
|
|
160622
160622
|
title: _link.title
|
|
@@ -160687,7 +160687,7 @@ let Banner = class Banner extends Disposable {
|
|
|
160687
160687
|
super();
|
|
160688
160688
|
this.instantiationService = instantiationService;
|
|
160689
160689
|
this.markdownRenderer = this.instantiationService.createInstance(MarkdownRenderer, {});
|
|
160690
|
-
this.element = $$
|
|
160690
|
+
this.element = $$e('div.editor-banner');
|
|
160691
160691
|
this.element.tabIndex = 0;
|
|
160692
160692
|
}
|
|
160693
160693
|
getAriaLabel(item) {
|
|
@@ -160701,7 +160701,7 @@ let Banner = class Banner extends Disposable {
|
|
|
160701
160701
|
}
|
|
160702
160702
|
getBannerMessage(message) {
|
|
160703
160703
|
if (typeof message === 'string') {
|
|
160704
|
-
const element = $$
|
|
160704
|
+
const element = $$e('span');
|
|
160705
160705
|
element.innerText = message;
|
|
160706
160706
|
return element;
|
|
160707
160707
|
}
|
|
@@ -160719,24 +160719,24 @@ let Banner = class Banner extends Disposable {
|
|
|
160719
160719
|
this.element.setAttribute('aria-label', ariaLabel);
|
|
160720
160720
|
}
|
|
160721
160721
|
// Icon
|
|
160722
|
-
const iconContainer = append$1(this.element, $$
|
|
160722
|
+
const iconContainer = append$1(this.element, $$e('div.icon-container'));
|
|
160723
160723
|
iconContainer.setAttribute('aria-hidden', 'true');
|
|
160724
160724
|
if (item.icon) {
|
|
160725
|
-
iconContainer.appendChild($$
|
|
160725
|
+
iconContainer.appendChild($$e(`div${ThemeIcon.asCSSSelector(item.icon)}`));
|
|
160726
160726
|
}
|
|
160727
160727
|
// Message
|
|
160728
|
-
const messageContainer = append$1(this.element, $$
|
|
160728
|
+
const messageContainer = append$1(this.element, $$e('div.message-container'));
|
|
160729
160729
|
messageContainer.setAttribute('aria-hidden', 'true');
|
|
160730
160730
|
messageContainer.appendChild(this.getBannerMessage(item.message));
|
|
160731
160731
|
// Message Actions
|
|
160732
|
-
this.messageActionsContainer = append$1(this.element, $$
|
|
160732
|
+
this.messageActionsContainer = append$1(this.element, $$e('div.message-actions-container'));
|
|
160733
160733
|
if (item.actions) {
|
|
160734
160734
|
for (const action of item.actions) {
|
|
160735
160735
|
this._register(this.instantiationService.createInstance(Link, this.messageActionsContainer, Object.assign(Object.assign({}, action), { tabIndex: -1 }), {}));
|
|
160736
160736
|
}
|
|
160737
160737
|
}
|
|
160738
160738
|
// Action
|
|
160739
|
-
const actionBarContainer = append$1(this.element, $$
|
|
160739
|
+
const actionBarContainer = append$1(this.element, $$e('div.action-container'));
|
|
160740
160740
|
this.actionBar = this._register(new ActionBar(actionBarContainer));
|
|
160741
160741
|
this.actionBar.push(this._register(new Action('banner.close', 'Close Banner', ThemeIcon.asClassName(widgetClose), true, () => {
|
|
160742
160742
|
if (typeof item.onClose === 'function') {
|
|
@@ -162832,13 +162832,13 @@ class InspectTokensWidget extends Disposable {
|
|
|
162832
162832
|
const tokenEndIndex = token1Index + 1 < data.tokens1.length ? data.tokens1[token1Index + 1].offset : lineContent.length;
|
|
162833
162833
|
tokenText = lineContent.substring(tokenStartIndex, tokenEndIndex);
|
|
162834
162834
|
}
|
|
162835
|
-
reset(this._domNode, $$
|
|
162836
|
-
append$1(this._domNode, $$
|
|
162835
|
+
reset(this._domNode, $$e('h2.tm-token', undefined, renderTokenText(tokenText), $$e('span.tm-token-length', undefined, `${tokenText.length} ${tokenText.length === 1 ? 'char' : 'chars'}`)));
|
|
162836
|
+
append$1(this._domNode, $$e('hr.tokens-inspect-separator', { 'style': 'clear:both' }));
|
|
162837
162837
|
const metadata = (token2Index << 1) + 1 < data.tokens2.length ? this._decodeMetadata(data.tokens2[(token2Index << 1) + 1]) : null;
|
|
162838
|
-
append$1(this._domNode, $$
|
|
162839
|
-
append$1(this._domNode, $$
|
|
162838
|
+
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) : '-?-'}`)))));
|
|
162839
|
+
append$1(this._domNode, $$e('hr.tokens-inspect-separator'));
|
|
162840
162840
|
if (token1Index < data.tokens1.length) {
|
|
162841
|
-
append$1(this._domNode, $$
|
|
162841
|
+
append$1(this._domNode, $$e('span.tm-token-type', undefined, data.tokens1[token1Index].type));
|
|
162842
162842
|
}
|
|
162843
162843
|
this._editor.layoutContentWidget(this);
|
|
162844
162844
|
}
|
|
@@ -167287,7 +167287,7 @@ function isPredefinedProfile(item) {
|
|
|
167287
167287
|
!Array.isArray(item.definitions));
|
|
167288
167288
|
}
|
|
167289
167289
|
|
|
167290
|
-
var p=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function S(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 T(e,t,n=()=>{}){if(!t||t.length<=0)return;let r=new MutationObserver(o=>{for(let i of o)S(e,i.target)&&n();});return r.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0}),r}function E(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 P(e){let t=E(e,":is(.calcite-mode-light, .calcite-mode-dark)");return t&&t.classList.contains("calcite-mode-dark")?"dark":"light"}function f(e,t,n){return E(e,`[${t}]`)?.getAttribute(t)??n}function M(e){return e.nodeType===Node.ELEMENT_NODE}function c(e,t=""){if(!M(e))return !1;if(e.matches(t))return setTimeout(()=>e?.setFocus(),0),!0;for(let r=0;r<e.children.length;r
|
|
167290
|
+
var p=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function S(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 T(e,t,n=()=>{}){if(!t||t.length<=0)return;let r=new MutationObserver(o=>{for(let i of o)S(e,i.target)&&n();});return r.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0}),r}function E(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 P(e){let t=E(e,":is(.calcite-mode-light, .calcite-mode-dark)");return t&&t.classList.contains("calcite-mode-dark")?"dark":"light"}function f(e,t,n){return E(e,`[${t}]`)?.getAttribute(t)??n}function M(e){return e.nodeType===Node.ELEMENT_NODE}function c(e,t=""){if(!M(e))return !1;if(e.matches(t))return setTimeout(()=>e?.setFocus(),0),!0;for(let r=0;r<e.children.length;r+=1)if(c(e.children[r],t))return !0;let n=e.shadowRoot;if(n){for(let r=0;r<n.children.length;r+=1)if(c(n.children[r],t))return !0}return !1}function O(e,t){if(!e||!e.shadowRoot)return;if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){c(e,t);return}let n=new MutationObserver(()=>{n.disconnect(),c(e,t);});n.observe(e,{attributes:!0,attributeFilter:["hydrated","calcite-hydrated"]});}function d(e){let t="";for(let n=0;n<e;n+=1)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t}function $(){return [d(2),d(1),d(1),d(1),d(3)].join("-")}var x=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"]),a=new Map;async function N(e,t,n=""){let r=`${t}/${n}${e}.json`;if(a.has(r))return a.get(r);try{let o=await fetch(r);if(o.ok){let s=await o.json();return a.set(r,s),s}if(e==="en"){a.set(r,void 0);return}let i=await N("en",t,n);return a.set(r,i),i}catch{a.set(r,void 0);return}}function R(e){let t=f(e,"lang",navigator?.language||"en");if(x.has(t))return {lang:t,t9nLocale:t};let n=t.slice(0,2);return {lang:t,t9nLocale:x.has(n)?n:"en"}}var m=new WeakMap,h=new WeakMap,_=new WeakMap;async function F(e,t,n){h.set(e,t),m.set(e,T(e._hostElement,["lang"],()=>{b(e,n);})),await b(e,n);}function U(e){m.get(e)?.disconnect(),m.delete(e),h.delete(e);}async function b(e,t){let{lang:n,t9nLocale:r}=R(e._hostElement);if(n===e._lang&&r===e._t9nLocale||(n!==e._lang&&(e._lang=n),r===e._t9nLocale))return;let o=_.get(e);if(!o){let i=h.get(e)??"",s=e._hostElement.tagName.toLowerCase().replace("arcgis-",""),u=`${i}/${s}/t9n`,l=`${s}.t9n.`;o=await N(r,u,l);}e._t9nLocale=r,e._t9nStrings=o,await t?.call(e);}var v='"',w="'";function L(e,t){return new Array(t+1).join(e)}function z(e){let t=v,n=w;e.indexOf(t)>=0&&e.indexOf(n)<0&&(n=v,t=w);let o=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${n})+)`,"gu");e=e.replace(o,(s,u,l,g)=>u+l+L(n,g.length/2));let i=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return e=e.replace(i,(s,u,l,g)=>u+l+L(`\\${t}`,g.length)),t+e+t}function B(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")}function H(e,t={}){return (e??"").replace(/\{(.*?)\}/gu,(n,r)=>t[r]??n)}function q(e){return `\u200E${e??""}\u200E`}function D(e){return e!==null}function G(e){return e!==void 0}function V(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 X(e){try{return new URL(e),!0}catch{return !1}}
|
|
167291
167291
|
|
|
167292
167292
|
/**
|
|
167293
167293
|
* Filters a collection of items by the given keys and filter word.
|
|
@@ -167521,7 +167521,7 @@ function getDomainValuesBySubtypeGroup(profile, types, field) {
|
|
|
167521
167521
|
return new GroupOfVariables(profile, { code: "domainvaluesbysubtypes" }, variables);
|
|
167522
167522
|
}
|
|
167523
167523
|
// const validIdentifierExpr = new RegExp(/^[a-z_$][\w$]*$/gi);
|
|
167524
|
-
const validIdentifierExpr =
|
|
167524
|
+
const validIdentifierExpr = /^[a-z_$][a-z0-9_$]*$/giu;
|
|
167525
167525
|
function getMemberExpressionProperty(prop, includeDot = true) {
|
|
167526
167526
|
if (prop.match(validIdentifierExpr)) {
|
|
167527
167527
|
return `${includeDot ? "." : ""}${prop}`;
|
|
@@ -168377,8 +168377,8 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
168377
168377
|
}
|
|
168378
168378
|
}
|
|
168379
168379
|
async _featureSetCollectionFromUrl(url) {
|
|
168380
|
-
url = url.replace(/\/featureserver\/[0-9]*/
|
|
168381
|
-
url = url.replace(/\/mapserver\/[0-9]*/
|
|
168380
|
+
url = url.replace(/\/featureserver\/[0-9]*/iu, "/FeatureServer");
|
|
168381
|
+
url = url.replace(/\/mapserver\/[0-9]*/iu, "/MapServer");
|
|
168382
168382
|
url = url.split("?")[0];
|
|
168383
168383
|
const metadata = await serviceMetaData(url);
|
|
168384
168384
|
const layersPromise = Promise.all(metadata.layers.map(async (layerInfo) => {
|
|
@@ -168777,4 +168777,4 @@ const arcade = {
|
|
|
168777
168777
|
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
|
|
168778
168778
|
};
|
|
168779
168779
|
|
|
168780
|
-
export { B, Emitter as E, F, H, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, O, P, Range as R, StandaloneServices as S, T, Uri as U, V, X, arcade as a, commonjsGlobal as b, createCommonjsModule as c, arcadeDefaults as d, editor as e, U as f, generateTokensCSSForColorMap as g, filterCollection as h, importRequest as i, importArcade as j,
|
|
168780
|
+
export { $, B, Emitter as E, F, H, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, O, P, Range as R, StandaloneServices as S, T, Uri as U, V, X, arcade as a, commonjsGlobal as b, createCommonjsModule as c, arcadeDefaults as d, editor as e, U as f, generateTokensCSSForColorMap as g, filterCollection as h, importRequest as i, importArcade as j, KeyMod as k, languages as l, monaco_editor_core_star as m, main as n, p, q, supportedFields as s, typescriptDefaults as t, z };
|