monaco-editor-core 0.58.0 → 0.59.0-dev-20261124
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/esm/nls.keys.json +1 -1
- package/esm/nls.messages.cs.js +2 -2
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.pl.js +2 -2
- package/esm/nls.messages.pt-br.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.tr.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +2 -0
- package/esm/vs/base/browser/ui/selectBox/selectBox.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js +3 -0
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBoxNative.js +4 -2
- package/esm/vs/base/browser/ui/selectBox/selectBoxNative.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/abstractTree.js +27 -1
- package/esm/vs/base/browser/ui/tree/abstractTree.js.map +1 -1
- package/esm/vs/base/common/cancellation.js +3 -1
- package/esm/vs/base/common/cancellation.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js +8 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseTarget.js +15 -6
- package/esm/vs/editor/browser/controller/mouseTarget.js.map +1 -1
- package/esm/vs/editor/browser/view.js +3 -2
- package/esm/vs/editor/browser/view.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +12 -8
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js +7 -11
- package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js.map +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +246 -238
- package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/esm/vs/editor/common/editorContextKeys.js +53 -53
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages.js +56 -56
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +3 -1
- package/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js.map +1 -1
- package/esm/vs/editor/common/model/textModel.js +1 -0
- package/esm/vs/editor/common/model/textModel.js.map +1 -1
- package/esm/vs/editor/common/model.js.map +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +11 -11
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +13 -13
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js.map +1 -1
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +17 -17
- package/esm/vs/editor/contrib/find/browser/findWidget.js +29 -29
- package/esm/vs/editor/contrib/folding/browser/folding.css +15 -0
- package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js +0 -5
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +0 -3
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/hover.css +6 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverTypes.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +19 -39
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +7 -7
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/indentation/common/indentation.js +14 -3
- package/esm/vs/editor/contrib/indentation/common/indentation.js.map +1 -1
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/esm/vs/editor/contrib/links/browser/links.js +11 -10
- package/esm/vs/editor/contrib/links/browser/links.js.map +1 -1
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +12 -12
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js +93 -38
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js.map +1 -1
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +3 -3
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/esm/vs/editor/editor.api.d.ts +5 -0
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +68 -68
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +30 -31
- package/esm/vs/platform/actionWidget/browser/actionList.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.css +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +12 -12
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationModels.js +15 -3
- package/esm/vs/platform/configuration/common/configurationModels.js.map +1 -1
- package/esm/vs/platform/configuration/common/configurationRegistry.js +12 -12
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js +10 -10
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +2 -2
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +19 -19
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/confettiColors.js +6 -6
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +48 -48
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +10 -10
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/monaco.d.ts +5 -0
- package/package.json +3 -3
|
@@ -70,176 +70,176 @@ export class AccessibilitySignal {
|
|
|
70
70
|
return signal;
|
|
71
71
|
}
|
|
72
72
|
static { this.errorAtPosition = AccessibilitySignal.register({
|
|
73
|
-
name: localize(
|
|
73
|
+
name: localize(1662, 'Error at Position'),
|
|
74
74
|
sound: Sound.error,
|
|
75
|
-
announcementMessage: localize(
|
|
75
|
+
announcementMessage: localize(1663, 'Error'),
|
|
76
76
|
settingsKey: 'accessibility.signals.positionHasError',
|
|
77
77
|
delaySettingsKey: 'accessibility.signalOptions.delays.errorAtPosition'
|
|
78
78
|
}); }
|
|
79
79
|
static { this.warningAtPosition = AccessibilitySignal.register({
|
|
80
|
-
name: localize(
|
|
80
|
+
name: localize(1664, 'Warning at Position'),
|
|
81
81
|
sound: Sound.warning,
|
|
82
|
-
announcementMessage: localize(
|
|
82
|
+
announcementMessage: localize(1665, 'Warning'),
|
|
83
83
|
settingsKey: 'accessibility.signals.positionHasWarning',
|
|
84
84
|
delaySettingsKey: 'accessibility.signalOptions.delays.warningAtPosition'
|
|
85
85
|
}); }
|
|
86
86
|
static { this.errorOnLine = AccessibilitySignal.register({
|
|
87
|
-
name: localize(
|
|
87
|
+
name: localize(1666, 'Error on Line'),
|
|
88
88
|
sound: Sound.error,
|
|
89
89
|
legacySoundSettingsKey: 'audioCues.lineHasError',
|
|
90
90
|
legacyAnnouncementSettingsKey: 'accessibility.alert.error',
|
|
91
|
-
announcementMessage: localize(
|
|
91
|
+
announcementMessage: localize(1667, 'Error on Line'),
|
|
92
92
|
settingsKey: 'accessibility.signals.lineHasError',
|
|
93
93
|
}); }
|
|
94
94
|
static { this.warningOnLine = AccessibilitySignal.register({
|
|
95
|
-
name: localize(
|
|
95
|
+
name: localize(1668, 'Warning on Line'),
|
|
96
96
|
sound: Sound.warning,
|
|
97
97
|
legacySoundSettingsKey: 'audioCues.lineHasWarning',
|
|
98
98
|
legacyAnnouncementSettingsKey: 'accessibility.alert.warning',
|
|
99
|
-
announcementMessage: localize(
|
|
99
|
+
announcementMessage: localize(1669, 'Warning on Line'),
|
|
100
100
|
settingsKey: 'accessibility.signals.lineHasWarning',
|
|
101
101
|
}); }
|
|
102
102
|
static { this.foldedArea = AccessibilitySignal.register({
|
|
103
|
-
name: localize(
|
|
103
|
+
name: localize(1670, 'Folded Area on Line'),
|
|
104
104
|
sound: Sound.foldedArea,
|
|
105
105
|
legacySoundSettingsKey: 'audioCues.lineHasFoldedArea',
|
|
106
106
|
legacyAnnouncementSettingsKey: 'accessibility.alert.foldedArea',
|
|
107
|
-
announcementMessage: localize(
|
|
107
|
+
announcementMessage: localize(1671, 'Folded'),
|
|
108
108
|
settingsKey: 'accessibility.signals.lineHasFoldedArea',
|
|
109
109
|
}); }
|
|
110
110
|
static { this.break = AccessibilitySignal.register({
|
|
111
|
-
name: localize(
|
|
111
|
+
name: localize(1672, 'Breakpoint on Line'),
|
|
112
112
|
sound: Sound.break,
|
|
113
113
|
legacySoundSettingsKey: 'audioCues.lineHasBreakpoint',
|
|
114
114
|
legacyAnnouncementSettingsKey: 'accessibility.alert.breakpoint',
|
|
115
|
-
announcementMessage: localize(
|
|
115
|
+
announcementMessage: localize(1673, 'Breakpoint'),
|
|
116
116
|
settingsKey: 'accessibility.signals.lineHasBreakpoint',
|
|
117
117
|
}); }
|
|
118
118
|
static { this.inlineSuggestion = AccessibilitySignal.register({
|
|
119
|
-
name: localize(
|
|
119
|
+
name: localize(1674, 'Inline Suggestion on Line'),
|
|
120
120
|
sound: Sound.quickFixes,
|
|
121
121
|
legacySoundSettingsKey: 'audioCues.lineHasInlineSuggestion',
|
|
122
122
|
settingsKey: 'accessibility.signals.lineHasInlineSuggestion',
|
|
123
123
|
}); }
|
|
124
124
|
static { this.nextEditSuggestion = AccessibilitySignal.register({
|
|
125
|
-
name: localize(
|
|
125
|
+
name: localize(1675, 'Next Edit Suggestion on Line'),
|
|
126
126
|
sound: Sound.nextEditSuggestion,
|
|
127
127
|
legacySoundSettingsKey: 'audioCues.nextEditSuggestion',
|
|
128
128
|
settingsKey: 'accessibility.signals.nextEditSuggestion',
|
|
129
|
-
announcementMessage: localize(
|
|
129
|
+
announcementMessage: localize(1676, 'Next Edit Suggestion'),
|
|
130
130
|
}); }
|
|
131
131
|
static { this.terminalQuickFix = AccessibilitySignal.register({
|
|
132
|
-
name: localize(
|
|
132
|
+
name: localize(1677, 'Terminal Quick Fix'),
|
|
133
133
|
sound: Sound.quickFixes,
|
|
134
134
|
legacySoundSettingsKey: 'audioCues.terminalQuickFix',
|
|
135
135
|
legacyAnnouncementSettingsKey: 'accessibility.alert.terminalQuickFix',
|
|
136
|
-
announcementMessage: localize(
|
|
136
|
+
announcementMessage: localize(1678, 'Quick Fix'),
|
|
137
137
|
settingsKey: 'accessibility.signals.terminalQuickFix',
|
|
138
138
|
}); }
|
|
139
139
|
static { this.onDebugBreak = AccessibilitySignal.register({
|
|
140
|
-
name: localize(
|
|
140
|
+
name: localize(1679, 'Debugger Stopped on Breakpoint'),
|
|
141
141
|
sound: Sound.break,
|
|
142
142
|
legacySoundSettingsKey: 'audioCues.onDebugBreak',
|
|
143
143
|
legacyAnnouncementSettingsKey: 'accessibility.alert.onDebugBreak',
|
|
144
|
-
announcementMessage: localize(
|
|
144
|
+
announcementMessage: localize(1680, 'Breakpoint'),
|
|
145
145
|
settingsKey: 'accessibility.signals.onDebugBreak',
|
|
146
146
|
}); }
|
|
147
147
|
static { this.noInlayHints = AccessibilitySignal.register({
|
|
148
|
-
name: localize(
|
|
148
|
+
name: localize(1681, 'No Inlay Hints on Line'),
|
|
149
149
|
sound: Sound.error,
|
|
150
150
|
legacySoundSettingsKey: 'audioCues.noInlayHints',
|
|
151
151
|
legacyAnnouncementSettingsKey: 'accessibility.alert.noInlayHints',
|
|
152
|
-
announcementMessage: localize(
|
|
152
|
+
announcementMessage: localize(1682, 'No Inlay Hints'),
|
|
153
153
|
settingsKey: 'accessibility.signals.noInlayHints',
|
|
154
154
|
}); }
|
|
155
155
|
static { this.taskCompleted = AccessibilitySignal.register({
|
|
156
|
-
name: localize(
|
|
156
|
+
name: localize(1683, 'Task Completed'),
|
|
157
157
|
sound: Sound.taskCompleted,
|
|
158
158
|
legacySoundSettingsKey: 'audioCues.taskCompleted',
|
|
159
159
|
legacyAnnouncementSettingsKey: 'accessibility.alert.taskCompleted',
|
|
160
|
-
announcementMessage: localize(
|
|
160
|
+
announcementMessage: localize(1684, 'Task Completed'),
|
|
161
161
|
settingsKey: 'accessibility.signals.taskCompleted',
|
|
162
162
|
}); }
|
|
163
163
|
static { this.taskFailed = AccessibilitySignal.register({
|
|
164
|
-
name: localize(
|
|
164
|
+
name: localize(1685, 'Task Failed'),
|
|
165
165
|
sound: Sound.taskFailed,
|
|
166
166
|
legacySoundSettingsKey: 'audioCues.taskFailed',
|
|
167
167
|
legacyAnnouncementSettingsKey: 'accessibility.alert.taskFailed',
|
|
168
|
-
announcementMessage: localize(
|
|
168
|
+
announcementMessage: localize(1686, 'Task Failed'),
|
|
169
169
|
settingsKey: 'accessibility.signals.taskFailed',
|
|
170
170
|
}); }
|
|
171
171
|
static { this.terminalCommandFailed = AccessibilitySignal.register({
|
|
172
|
-
name: localize(
|
|
172
|
+
name: localize(1687, 'Terminal Command Failed'),
|
|
173
173
|
sound: Sound.error,
|
|
174
174
|
legacySoundSettingsKey: 'audioCues.terminalCommandFailed',
|
|
175
175
|
legacyAnnouncementSettingsKey: 'accessibility.alert.terminalCommandFailed',
|
|
176
|
-
announcementMessage: localize(
|
|
176
|
+
announcementMessage: localize(1688, 'Command Failed'),
|
|
177
177
|
settingsKey: 'accessibility.signals.terminalCommandFailed',
|
|
178
178
|
}); }
|
|
179
179
|
static { this.terminalCommandSucceeded = AccessibilitySignal.register({
|
|
180
|
-
name: localize(
|
|
180
|
+
name: localize(1689, 'Terminal Command Succeeded'),
|
|
181
181
|
sound: Sound.terminalCommandSucceeded,
|
|
182
|
-
announcementMessage: localize(
|
|
182
|
+
announcementMessage: localize(1690, 'Command Succeeded'),
|
|
183
183
|
settingsKey: 'accessibility.signals.terminalCommandSucceeded',
|
|
184
184
|
}); }
|
|
185
185
|
static { this.terminalBell = AccessibilitySignal.register({
|
|
186
|
-
name: localize(
|
|
186
|
+
name: localize(1691, 'Terminal Bell'),
|
|
187
187
|
sound: Sound.terminalBell,
|
|
188
188
|
legacySoundSettingsKey: 'audioCues.terminalBell',
|
|
189
189
|
legacyAnnouncementSettingsKey: 'accessibility.alert.terminalBell',
|
|
190
|
-
announcementMessage: localize(
|
|
190
|
+
announcementMessage: localize(1692, 'Terminal Bell'),
|
|
191
191
|
settingsKey: 'accessibility.signals.terminalBell',
|
|
192
192
|
}); }
|
|
193
193
|
static { this.notebookCellCompleted = AccessibilitySignal.register({
|
|
194
|
-
name: localize(
|
|
194
|
+
name: localize(1693, 'Notebook Cell Completed'),
|
|
195
195
|
sound: Sound.taskCompleted,
|
|
196
196
|
legacySoundSettingsKey: 'audioCues.notebookCellCompleted',
|
|
197
197
|
legacyAnnouncementSettingsKey: 'accessibility.alert.notebookCellCompleted',
|
|
198
|
-
announcementMessage: localize(
|
|
198
|
+
announcementMessage: localize(1694, 'Notebook Cell Completed'),
|
|
199
199
|
settingsKey: 'accessibility.signals.notebookCellCompleted',
|
|
200
200
|
}); }
|
|
201
201
|
static { this.notebookCellFailed = AccessibilitySignal.register({
|
|
202
|
-
name: localize(
|
|
202
|
+
name: localize(1695, 'Notebook Cell Failed'),
|
|
203
203
|
sound: Sound.taskFailed,
|
|
204
204
|
legacySoundSettingsKey: 'audioCues.notebookCellFailed',
|
|
205
205
|
legacyAnnouncementSettingsKey: 'accessibility.alert.notebookCellFailed',
|
|
206
|
-
announcementMessage: localize(
|
|
206
|
+
announcementMessage: localize(1696, 'Notebook Cell Failed'),
|
|
207
207
|
settingsKey: 'accessibility.signals.notebookCellFailed',
|
|
208
208
|
}); }
|
|
209
209
|
static { this.diffLineInserted = AccessibilitySignal.register({
|
|
210
|
-
name: localize(
|
|
210
|
+
name: localize(1697, 'Diff Line Inserted'),
|
|
211
211
|
sound: Sound.diffLineInserted,
|
|
212
212
|
legacySoundSettingsKey: 'audioCues.diffLineInserted',
|
|
213
213
|
settingsKey: 'accessibility.signals.diffLineInserted',
|
|
214
214
|
}); }
|
|
215
215
|
static { this.diffLineDeleted = AccessibilitySignal.register({
|
|
216
|
-
name: localize(
|
|
216
|
+
name: localize(1698, 'Diff Line Deleted'),
|
|
217
217
|
sound: Sound.diffLineDeleted,
|
|
218
218
|
legacySoundSettingsKey: 'audioCues.diffLineDeleted',
|
|
219
219
|
settingsKey: 'accessibility.signals.diffLineDeleted',
|
|
220
220
|
}); }
|
|
221
221
|
static { this.diffLineModified = AccessibilitySignal.register({
|
|
222
|
-
name: localize(
|
|
222
|
+
name: localize(1699, 'Diff Line Modified'),
|
|
223
223
|
sound: Sound.diffLineModified,
|
|
224
224
|
legacySoundSettingsKey: 'audioCues.diffLineModified',
|
|
225
225
|
settingsKey: 'accessibility.signals.diffLineModified',
|
|
226
226
|
}); }
|
|
227
227
|
static { this.chatEditModifiedFile = AccessibilitySignal.register({
|
|
228
|
-
name: localize(
|
|
228
|
+
name: localize(1700, 'Chat Edit Modified File'),
|
|
229
229
|
sound: Sound.chatEditModifiedFile,
|
|
230
|
-
announcementMessage: localize(
|
|
230
|
+
announcementMessage: localize(1701, 'File Modified from Chat Edits'),
|
|
231
231
|
settingsKey: 'accessibility.signals.chatEditModifiedFile',
|
|
232
232
|
}); }
|
|
233
233
|
static { this.chatRequestSent = AccessibilitySignal.register({
|
|
234
|
-
name: localize(
|
|
234
|
+
name: localize(1702, 'Chat Request Sent'),
|
|
235
235
|
sound: Sound.requestSent,
|
|
236
236
|
legacySoundSettingsKey: 'audioCues.chatRequestSent',
|
|
237
237
|
legacyAnnouncementSettingsKey: 'accessibility.alert.chatRequestSent',
|
|
238
|
-
announcementMessage: localize(
|
|
238
|
+
announcementMessage: localize(1703, 'Chat Request Sent'),
|
|
239
239
|
settingsKey: 'accessibility.signals.chatRequestSent',
|
|
240
240
|
}); }
|
|
241
241
|
static { this.chatResponseReceived = AccessibilitySignal.register({
|
|
242
|
-
name: localize(
|
|
242
|
+
name: localize(1704, 'Chat Response Received'),
|
|
243
243
|
legacySoundSettingsKey: 'audioCues.chatResponseReceived',
|
|
244
244
|
sound: {
|
|
245
245
|
randomOneOf: [
|
|
@@ -252,101 +252,101 @@ export class AccessibilitySignal {
|
|
|
252
252
|
settingsKey: 'accessibility.signals.chatResponseReceived'
|
|
253
253
|
}); }
|
|
254
254
|
static { this.confetti = AccessibilitySignal.register({
|
|
255
|
-
name: localize(
|
|
255
|
+
name: localize(1705, 'Confetti'),
|
|
256
256
|
sound: Sound.confetti,
|
|
257
257
|
settingsKey: 'accessibility.signals.confetti'
|
|
258
258
|
}); }
|
|
259
259
|
static { this.codeActionTriggered = AccessibilitySignal.register({
|
|
260
|
-
name: localize(
|
|
260
|
+
name: localize(1706, 'Code Action Request Triggered'),
|
|
261
261
|
sound: Sound.codeActionTriggered,
|
|
262
262
|
legacySoundSettingsKey: 'audioCues.codeActionRequestTriggered',
|
|
263
263
|
legacyAnnouncementSettingsKey: 'accessibility.alert.codeActionRequestTriggered',
|
|
264
|
-
announcementMessage: localize(
|
|
264
|
+
announcementMessage: localize(1707, 'Code Action Request Triggered'),
|
|
265
265
|
settingsKey: 'accessibility.signals.codeActionTriggered',
|
|
266
266
|
}); }
|
|
267
267
|
static { this.codeActionApplied = AccessibilitySignal.register({
|
|
268
|
-
name: localize(
|
|
268
|
+
name: localize(1708, 'Code Action Applied'),
|
|
269
269
|
legacySoundSettingsKey: 'audioCues.codeActionApplied',
|
|
270
270
|
sound: Sound.codeActionApplied,
|
|
271
271
|
settingsKey: 'accessibility.signals.codeActionApplied'
|
|
272
272
|
}); }
|
|
273
273
|
static { this.progress = AccessibilitySignal.register({
|
|
274
|
-
name: localize(
|
|
274
|
+
name: localize(1709, 'Progress'),
|
|
275
275
|
sound: Sound.progress,
|
|
276
276
|
legacySoundSettingsKey: 'audioCues.chatResponsePending',
|
|
277
277
|
legacyAnnouncementSettingsKey: 'accessibility.alert.progress',
|
|
278
|
-
announcementMessage: localize(
|
|
278
|
+
announcementMessage: localize(1710, 'Progress'),
|
|
279
279
|
settingsKey: 'accessibility.signals.progress'
|
|
280
280
|
}); }
|
|
281
281
|
static { this.clear = AccessibilitySignal.register({
|
|
282
|
-
name: localize(
|
|
282
|
+
name: localize(1711, 'Clear'),
|
|
283
283
|
sound: Sound.clear,
|
|
284
284
|
legacySoundSettingsKey: 'audioCues.clear',
|
|
285
285
|
legacyAnnouncementSettingsKey: 'accessibility.alert.clear',
|
|
286
|
-
announcementMessage: localize(
|
|
286
|
+
announcementMessage: localize(1712, 'Clear'),
|
|
287
287
|
settingsKey: 'accessibility.signals.clear'
|
|
288
288
|
}); }
|
|
289
289
|
static { this.save = AccessibilitySignal.register({
|
|
290
|
-
name: localize(
|
|
290
|
+
name: localize(1713, 'Save'),
|
|
291
291
|
sound: Sound.save,
|
|
292
292
|
legacySoundSettingsKey: 'audioCues.save',
|
|
293
293
|
legacyAnnouncementSettingsKey: 'accessibility.alert.save',
|
|
294
|
-
announcementMessage: localize(
|
|
294
|
+
announcementMessage: localize(1714, 'Save'),
|
|
295
295
|
settingsKey: 'accessibility.signals.save'
|
|
296
296
|
}); }
|
|
297
297
|
static { this.format = AccessibilitySignal.register({
|
|
298
|
-
name: localize(
|
|
298
|
+
name: localize(1715, 'Format'),
|
|
299
299
|
sound: Sound.format,
|
|
300
300
|
legacySoundSettingsKey: 'audioCues.format',
|
|
301
301
|
legacyAnnouncementSettingsKey: 'accessibility.alert.format',
|
|
302
|
-
announcementMessage: localize(
|
|
302
|
+
announcementMessage: localize(1716, 'Format'),
|
|
303
303
|
settingsKey: 'accessibility.signals.format'
|
|
304
304
|
}); }
|
|
305
305
|
static { this.voiceRecordingStarted = AccessibilitySignal.register({
|
|
306
|
-
name: localize(
|
|
306
|
+
name: localize(1717, 'Voice Recording Started'),
|
|
307
307
|
sound: Sound.voiceRecordingStarted,
|
|
308
308
|
legacySoundSettingsKey: 'audioCues.voiceRecordingStarted',
|
|
309
309
|
settingsKey: 'accessibility.signals.voiceRecordingStarted'
|
|
310
310
|
}); }
|
|
311
311
|
static { this.voiceModeStarted = AccessibilitySignal.register({
|
|
312
|
-
name: localize(
|
|
312
|
+
name: localize(1718, 'Voice Mode Started'),
|
|
313
313
|
sound: Sound.voiceRecordingStarted,
|
|
314
|
-
announcementMessage: localize(
|
|
314
|
+
announcementMessage: localize(1719, 'Voice Mode Started'),
|
|
315
315
|
settingsKey: 'accessibility.signals.voiceModeStarted'
|
|
316
316
|
}); }
|
|
317
317
|
static { this.voiceRecordingStopped = AccessibilitySignal.register({
|
|
318
|
-
name: localize(
|
|
318
|
+
name: localize(1720, 'Voice Recording Stopped'),
|
|
319
319
|
sound: Sound.voiceRecordingStopped,
|
|
320
320
|
legacySoundSettingsKey: 'audioCues.voiceRecordingStopped',
|
|
321
321
|
settingsKey: 'accessibility.signals.voiceRecordingStopped'
|
|
322
322
|
}); }
|
|
323
323
|
static { this.voiceModeStopped = AccessibilitySignal.register({
|
|
324
|
-
name: localize(
|
|
324
|
+
name: localize(1721, 'Voice Mode Stopped'),
|
|
325
325
|
sound: Sound.voiceRecordingStopped,
|
|
326
|
-
announcementMessage: localize(
|
|
326
|
+
announcementMessage: localize(1722, 'Voice Mode Stopped'),
|
|
327
327
|
settingsKey: 'accessibility.signals.voiceModeStopped'
|
|
328
328
|
}); }
|
|
329
329
|
static { this.dictationDisconnected = AccessibilitySignal.register({
|
|
330
|
-
name: localize(
|
|
330
|
+
name: localize(1723, 'Dictation Disconnected'),
|
|
331
331
|
sound: Sound.error,
|
|
332
332
|
settingsKey: 'accessibility.signals.dictationDisconnected'
|
|
333
333
|
}); }
|
|
334
334
|
static { this.editsKept = AccessibilitySignal.register({
|
|
335
|
-
name: localize(
|
|
335
|
+
name: localize(1724, 'Edits Kept'),
|
|
336
336
|
sound: Sound.editsKept,
|
|
337
|
-
announcementMessage: localize(
|
|
337
|
+
announcementMessage: localize(1725, 'Edits Kept'),
|
|
338
338
|
settingsKey: 'accessibility.signals.editsKept',
|
|
339
339
|
}); }
|
|
340
340
|
static { this.editsUndone = AccessibilitySignal.register({
|
|
341
|
-
name: localize(
|
|
341
|
+
name: localize(1726, 'Undo Edits'),
|
|
342
342
|
sound: Sound.editsUndone,
|
|
343
|
-
announcementMessage: localize(
|
|
343
|
+
announcementMessage: localize(1727, 'Edits Undone'),
|
|
344
344
|
settingsKey: 'accessibility.signals.editsUndone',
|
|
345
345
|
}); }
|
|
346
346
|
static { this.chatUserActionRequired = AccessibilitySignal.register({
|
|
347
|
-
name: localize(
|
|
347
|
+
name: localize(1728, 'Chat User Action Required'),
|
|
348
348
|
sound: Sound.chatUserActionRequired,
|
|
349
|
-
announcementMessage: localize(
|
|
349
|
+
announcementMessage: localize(1729, 'Chat User Action Required'),
|
|
350
350
|
settingsKey: 'accessibility.signals.chatUserActionRequired'
|
|
351
351
|
}); }
|
|
352
352
|
}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { localize2 } from '../../../nls.js';
|
|
6
6
|
export const Categories = Object.freeze({
|
|
7
|
-
View: localize2(
|
|
8
|
-
Help: localize2(
|
|
9
|
-
Test: localize2(
|
|
10
|
-
File: localize2(
|
|
11
|
-
Preferences: localize2(
|
|
12
|
-
Developer: localize2(
|
|
7
|
+
View: localize2(1730, 'View'),
|
|
8
|
+
Help: localize2(1731, 'Help'),
|
|
9
|
+
Test: localize2(1732, 'Test'),
|
|
10
|
+
File: localize2(1733, 'File'),
|
|
11
|
+
Preferences: localize2(1734, 'Preferences'),
|
|
12
|
+
Developer: localize2(1735, "Developer"),
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=actionCommonCategories.js.map
|
|
@@ -363,10 +363,10 @@ let ActionItemRenderer = class ActionItemRenderer {
|
|
|
363
363
|
}
|
|
364
364
|
else if (actionTitle && previewTitle) {
|
|
365
365
|
if (this._supportsPreview && element.canPreview) {
|
|
366
|
-
data.container.title = localize(
|
|
366
|
+
data.container.title = localize(1743, "{0} to Apply, {1} to Preview", actionTitle, previewTitle);
|
|
367
367
|
}
|
|
368
368
|
else {
|
|
369
|
-
data.container.title = localize(
|
|
369
|
+
data.container.title = localize(1744, "{0} to Apply", actionTitle);
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
else {
|
|
@@ -378,7 +378,7 @@ let ActionItemRenderer = class ActionItemRenderer {
|
|
|
378
378
|
if (element.onRemove) {
|
|
379
379
|
toolbarActions.push(toAction({
|
|
380
380
|
id: removeToolbarActionId,
|
|
381
|
-
label: localize(
|
|
381
|
+
label: localize(1745, "Remove"),
|
|
382
382
|
class: ThemeIcon.asClassName(Codicon.closeSmall),
|
|
383
383
|
run: async () => {
|
|
384
384
|
await element.onRemove();
|
|
@@ -576,7 +576,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
576
576
|
}));
|
|
577
577
|
if (this._usesSubmenuPointerIntent()) {
|
|
578
578
|
this._register(dom.addDisposableListener(this.domNode, dom.EventType.MOUSE_MOVE, event => {
|
|
579
|
-
if (dom.isHTMLElement(event.target) && this.
|
|
579
|
+
if (dom.isHTMLElement(event.target) && this._panelAnchor?.contains(event.target)) {
|
|
580
580
|
this._updateSubmenuPointer(event);
|
|
581
581
|
}
|
|
582
582
|
}));
|
|
@@ -673,23 +673,23 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
673
673
|
if (toggleConfig) {
|
|
674
674
|
label = element.standaloneToggle
|
|
675
675
|
? (toggleConfig.checked
|
|
676
|
-
? localize(
|
|
677
|
-
: localize(
|
|
676
|
+
? localize(1746, "{0}, on", toggleConfig.label)
|
|
677
|
+
: localize(1747, "{0}, off", toggleConfig.label))
|
|
678
678
|
: label + ', ' + (toggleConfig.checked
|
|
679
|
-
? localize(
|
|
680
|
-
: localize(
|
|
679
|
+
? localize(1748, "{0}, on", toggleConfig.label)
|
|
680
|
+
: localize(1749, "{0}, off", toggleConfig.label));
|
|
681
681
|
}
|
|
682
682
|
if (element.standaloneToggle?.disabled && element.standaloneToggle.title) {
|
|
683
|
-
label = localize(
|
|
683
|
+
label = localize(1750, "{0}, {1}", label, stripNewlines(element.standaloneToggle.title));
|
|
684
684
|
}
|
|
685
685
|
if (element.submenuActions?.length) {
|
|
686
|
-
label = localize(
|
|
686
|
+
label = localize(1751, "{0}, use right arrow to access options", label);
|
|
687
687
|
}
|
|
688
688
|
return label;
|
|
689
689
|
}
|
|
690
690
|
return null;
|
|
691
691
|
},
|
|
692
|
-
getWidgetAriaLabel: () => localize(
|
|
692
|
+
getWidgetAriaLabel: () => localize(1752, "Action Widget"),
|
|
693
693
|
getSetSize: () => this._visibleMenuItems.filter(item => item.kind === "action" /* ActionListItemKind.Action */).length,
|
|
694
694
|
getPosInSet: (_element, index) => Math.max(this._visibleMenuItems.slice(0, index + 1).filter(item => item.kind === "action" /* ActionListItemKind.Action */).length, 1),
|
|
695
695
|
getRole: (e) => {
|
|
@@ -785,9 +785,9 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
785
785
|
this._filterInput = document.createElement('input');
|
|
786
786
|
this._filterInput.type = 'text';
|
|
787
787
|
this._filterInput.className = 'action-list-filter-input';
|
|
788
|
-
this._filterInput.placeholder = this._options?.filterPlaceholder ?? localize(
|
|
788
|
+
this._filterInput.placeholder = this._options?.filterPlaceholder ?? localize(1753, "Search...");
|
|
789
789
|
this._filterInput.value = this._filterText;
|
|
790
|
-
this._filterInput.setAttribute('aria-label', localize(
|
|
790
|
+
this._filterInput.setAttribute('aria-label', localize(1754, "Filter items"));
|
|
791
791
|
filterRow.appendChild(this._filterInput);
|
|
792
792
|
this._register(dom.addDisposableListener(this._filterInput, dom.EventType.KEY_DOWN, e => {
|
|
793
793
|
this._setKeyboardNavigation(true);
|
|
@@ -931,7 +931,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
931
931
|
dismissButton.appendChild(dom.$(ThemeIcon.asCSSSelector(Codicon.close)));
|
|
932
932
|
dismissButton.tabIndex = 0;
|
|
933
933
|
dismissButton.setAttribute('role', 'button');
|
|
934
|
-
dismissButton.setAttribute('aria-label', localize(
|
|
934
|
+
dismissButton.setAttribute('aria-label', localize(1755, "Dismiss"));
|
|
935
935
|
const dismiss = () => {
|
|
936
936
|
onDismiss();
|
|
937
937
|
// Refocus the widget first so removing the focused button doesn't trip close-on-blur.
|
|
@@ -2062,10 +2062,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
2062
2062
|
}
|
|
2063
2063
|
this._currentSubmenuElement = element;
|
|
2064
2064
|
this._clearSubmenuContainer();
|
|
2065
|
-
|
|
2066
|
-
// ArrowRight opened. Reset in `_clearSubmenuContainer`.
|
|
2067
|
-
anchor.setAttribute('aria-expanded', 'true');
|
|
2068
|
-
this._expandedTrigger = anchor;
|
|
2065
|
+
this._setPanelAnchor(anchor, element);
|
|
2069
2066
|
// Set after clearing, which is what removes the previous item's class.
|
|
2070
2067
|
this._submenuPanelClassName = element.hover?.panelClassName;
|
|
2071
2068
|
if (this._submenuPanelClassName) {
|
|
@@ -2261,13 +2258,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
2261
2258
|
this._hideSubmenu();
|
|
2262
2259
|
return;
|
|
2263
2260
|
}
|
|
2264
|
-
|
|
2265
|
-
if (this._expandedTrigger?.hasAttribute('aria-expanded')) {
|
|
2266
|
-
this._expandedTrigger.setAttribute('aria-expanded', 'false');
|
|
2267
|
-
}
|
|
2268
|
-
this._expandedTrigger = row ?? undefined;
|
|
2269
|
-
}
|
|
2270
|
-
row?.setAttribute('aria-expanded', 'true');
|
|
2261
|
+
this._setPanelAnchor(row ?? undefined, currentElement);
|
|
2271
2262
|
const parentRect = this.domNode.getBoundingClientRect();
|
|
2272
2263
|
const alignToParent = persistent || currentElement.hover?.alignToParent || currentElement.hover?.alignToParentBottom;
|
|
2273
2264
|
const edgeRect = alignToParent
|
|
@@ -2479,6 +2470,19 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
2479
2470
|
}
|
|
2480
2471
|
return submenuItems;
|
|
2481
2472
|
}
|
|
2473
|
+
_setPanelAnchor(row, element) {
|
|
2474
|
+
if (this._panelAnchor !== row) {
|
|
2475
|
+
this._panelAnchor?.classList.remove('panel-anchor');
|
|
2476
|
+
if (this._panelAnchor?.hasAttribute('aria-haspopup') && this._panelAnchor.ariaExpanded === 'true') {
|
|
2477
|
+
this._panelAnchor.ariaExpanded = 'false';
|
|
2478
|
+
}
|
|
2479
|
+
this._panelAnchor = row;
|
|
2480
|
+
}
|
|
2481
|
+
row?.classList.add('panel-anchor');
|
|
2482
|
+
if (row && element && hasExpandablePanel(element) && row.ariaExpanded !== 'true') {
|
|
2483
|
+
row.ariaExpanded = 'true';
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2482
2486
|
_hideSubmenu() {
|
|
2483
2487
|
this._cancelSubmenuHide();
|
|
2484
2488
|
this._cancelSubmenuShow();
|
|
@@ -2511,12 +2515,7 @@ let ActionListWidget = ActionListWidget_1 = class ActionListWidget extends Dispo
|
|
|
2511
2515
|
}
|
|
2512
2516
|
this._submenuContainer.removeAttribute('role');
|
|
2513
2517
|
this._submenuContainer.removeAttribute('aria-label');
|
|
2514
|
-
|
|
2515
|
-
// since been recycled onto an item with no panel, which drops the attribute.
|
|
2516
|
-
if (this._expandedTrigger?.hasAttribute('aria-expanded')) {
|
|
2517
|
-
this._expandedTrigger.setAttribute('aria-expanded', 'false');
|
|
2518
|
-
}
|
|
2519
|
-
this._expandedTrigger = undefined;
|
|
2518
|
+
this._setPanelAnchor();
|
|
2520
2519
|
dom.clearNode(this._submenuContainer);
|
|
2521
2520
|
this._submenuContainer.style.width = '';
|
|
2522
2521
|
this._submenuContainer.style.boxSizing = this._options?.persistentHover ? 'border-box' : '';
|