@eclipse-docks/core 0.7.105 → 0.7.106
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/api/index.js +2 -2
- package/dist/{api-D8gdiUoq.js → api-CmVCdbHJ.js} +26 -13
- package/dist/api-CmVCdbHJ.js.map +1 -0
- package/dist/components/command.d.ts +1 -0
- package/dist/components/command.d.ts.map +1 -1
- package/dist/core/editorregistry.d.ts +3 -1
- package/dist/core/editorregistry.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/parts/index.js +1 -1
- package/dist/parts/tabs.d.ts +9 -0
- package/dist/parts/tabs.d.ts.map +1 -1
- package/dist/{parts-CSvUWION.js → parts-D--b4yyc.js} +41 -5
- package/dist/{parts-CSvUWION.js.map → parts-D--b4yyc.js.map} +1 -1
- package/package.json +1 -1
- package/src/commands/open-view-as-editor.ts +6 -3
- package/src/components/command.ts +4 -1
- package/src/core/editorregistry.ts +8 -1
- package/src/parts/tabs.ts +41 -9
- package/dist/api-D8gdiUoq.js.map +0 -1
package/dist/api/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as SYSTEM_LAYOUTS, C as HIDE_DOT_RESOURCE, D as SIDEBAR_MAIN, E as SIDEBAR_AUXILIARY, F as TOOLBAR_MAIN, I as TOOLBAR_MAIN_CENTER, L as TOOLBAR_MAIN_RIGHT, M as TOOLBAR_BOTTOM, N as TOOLBAR_BOTTOM_CENTER, O as SIDEBAR_MAIN_BOTTOM, P as TOOLBAR_BOTTOM_END, S as EDITOR_AREA_MAIN, T as PANEL_BOTTOM, _ as esmShService, a as filebrowserDialog, b as appSettings, c as infoDialog, f as dialogService, g as extensionRegistry, i as parseIconSpec, j as SYSTEM_VIEWS, k as SIDEBAR_MAIN_TOOLBAR, l as promptDialog, m as DocksElement, n as DocksContainer, o as navigableInfoDialog, p as DocksDialogContent, r as icon, s as confirmDialog, t as DocksPart, u as appLoaderService, v as taskService, w as MouseButton, x as COMMAND_SAVE, y as TOPIC_SETTINGS_CHANGED } from "../parts-
|
|
1
|
+
import { A as SYSTEM_LAYOUTS, C as HIDE_DOT_RESOURCE, D as SIDEBAR_MAIN, E as SIDEBAR_AUXILIARY, F as TOOLBAR_MAIN, I as TOOLBAR_MAIN_CENTER, L as TOOLBAR_MAIN_RIGHT, M as TOOLBAR_BOTTOM, N as TOOLBAR_BOTTOM_CENTER, O as SIDEBAR_MAIN_BOTTOM, P as TOOLBAR_BOTTOM_END, S as EDITOR_AREA_MAIN, T as PANEL_BOTTOM, _ as esmShService, a as filebrowserDialog, b as appSettings, c as infoDialog, f as dialogService, g as extensionRegistry, i as parseIconSpec, j as SYSTEM_VIEWS, k as SIDEBAR_MAIN_TOOLBAR, l as promptDialog, m as DocksElement, n as DocksContainer, o as navigableInfoDialog, p as DocksDialogContent, r as icon, s as confirmDialog, t as DocksPart, u as appLoaderService, v as taskService, w as MouseButton, x as COMMAND_SAVE, y as TOPIC_SETTINGS_CHANGED } from "../parts-D--b4yyc.js";
|
|
2
2
|
import { i as setLogLevel, n as defaultLogger, o as rootContext, s as uiContext, t as createLogger } from "../logger-DT0_NW3S.js";
|
|
3
3
|
import { C as toastWarning, S as toastInfo, _ as applyConfigNameRemaps, a as TOPIC_COMMAND_REGISTERED, b as overrideContributionTargets, c as EMPTY_SIGNALPORT, d as activeSelectionSignal, f as activeTasksSignal, g as contributionRegistry, h as TOPIC_CONTRIBUTEIONS_CHANGED, i as CommandStack, l as activeEditorSignal, m as perspectiveSwitchedSignal, n as watchSignal, o as commandRegistry, p as partDirtySignal, r as CommandRegistry, s as registerAll, t as DocksWidget, u as activePartSignal, v as contributionTargetMappingRegistry, x as toastError, y as listContributionNameRemaps } from "../widget-BgBerzhp.js";
|
|
4
4
|
import { n as subscribe, r as unsubscribe, t as publish } from "../events-B_ZxkU_G.js";
|
|
5
5
|
import { a as File, c as TOPIC_WORKSPACE_CHANGED, d as WorkspaceService, f as workspaceService, i as Directory, l as TOPIC_WORKSPACE_CONNECTED, o as FileContentType, p as persistenceService, r as CompositeDirectory, s as StringFile, t as FileSysDirHandleResource } from "../fs-access-D-fDaJ8V.js";
|
|
6
|
-
import { C as editorRegistry, S as treeNodeComparator, T as i18n, _ as TOOLBAR_LAYOUT_SWITCHER, a as DocksStandardLayout, b as VIEW_FILEBROWSER, c as SIDEBAR_TOOLBAR_EXTENSIONS, d as TOOLBAR_FAST_VIEWS, f as TOOLBAR_FILEBROWSER_DELETE, g as TOOLBAR_LANGUAGE_SELECTOR, h as TOOLBAR_INFO, i as createJsRuntime, l as SYSTEM_DEFAULT_FILE_ICONS, m as TOOLBAR_FULLSCREEN, n as getFrameworkConfig, o as CTXMENU_FILEBROWSER_DELETE, p as TOOLBAR_FILEBROWSER_RENAME, r as runJavaScriptCode, s as CTXMENU_FILEBROWSER_RENAME, t as configureFramework, u as TOOLBAR_ACTIVE_PART_NAME, v as TOOLBAR_TASKS, w as createLazyLabel, x as VIEW_LOG_TERMINAL, y as TOOLBAR_THEME_SWITCHER } from "../api-
|
|
6
|
+
import { C as editorRegistry, S as treeNodeComparator, T as i18n, _ as TOOLBAR_LAYOUT_SWITCHER, a as DocksStandardLayout, b as VIEW_FILEBROWSER, c as SIDEBAR_TOOLBAR_EXTENSIONS, d as TOOLBAR_FAST_VIEWS, f as TOOLBAR_FILEBROWSER_DELETE, g as TOOLBAR_LANGUAGE_SELECTOR, h as TOOLBAR_INFO, i as createJsRuntime, l as SYSTEM_DEFAULT_FILE_ICONS, m as TOOLBAR_FULLSCREEN, n as getFrameworkConfig, o as CTXMENU_FILEBROWSER_DELETE, p as TOOLBAR_FILEBROWSER_RENAME, r as runJavaScriptCode, s as CTXMENU_FILEBROWSER_RENAME, t as configureFramework, u as TOOLBAR_ACTIVE_PART_NAME, v as TOOLBAR_TASKS, w as createLazyLabel, x as VIEW_LOG_TERMINAL, y as TOOLBAR_THEME_SWITCHER } from "../api-CmVCdbHJ.js";
|
|
7
7
|
export { COMMAND_SAVE, CTXMENU_FILEBROWSER_DELETE, CTXMENU_FILEBROWSER_RENAME, CommandRegistry, CommandStack, CompositeDirectory, Directory, DocksContainer, DocksDialogContent, DocksElement, DocksPart, DocksStandardLayout, DocksWidget, EDITOR_AREA_MAIN, EMPTY_SIGNALPORT, File, FileContentType, FileSysDirHandleResource, HIDE_DOT_RESOURCE, MouseButton, PANEL_BOTTOM, SIDEBAR_AUXILIARY, SIDEBAR_MAIN, SIDEBAR_MAIN_BOTTOM, SIDEBAR_MAIN_TOOLBAR, SIDEBAR_TOOLBAR_EXTENSIONS, SYSTEM_DEFAULT_FILE_ICONS, SYSTEM_LAYOUTS, SYSTEM_VIEWS, StringFile, TOOLBAR_ACTIVE_PART_NAME, TOOLBAR_BOTTOM, TOOLBAR_BOTTOM_CENTER, TOOLBAR_BOTTOM_END, TOOLBAR_FAST_VIEWS, TOOLBAR_FILEBROWSER_DELETE, TOOLBAR_FILEBROWSER_RENAME, TOOLBAR_FULLSCREEN, TOOLBAR_INFO, TOOLBAR_LANGUAGE_SELECTOR, TOOLBAR_LAYOUT_SWITCHER, TOOLBAR_MAIN, TOOLBAR_MAIN_CENTER, TOOLBAR_MAIN_RIGHT, TOOLBAR_TASKS, TOOLBAR_THEME_SWITCHER, TOPIC_COMMAND_REGISTERED, TOPIC_CONTRIBUTEIONS_CHANGED, TOPIC_SETTINGS_CHANGED, TOPIC_WORKSPACE_CHANGED, TOPIC_WORKSPACE_CONNECTED, VIEW_FILEBROWSER, VIEW_LOG_TERMINAL, WorkspaceService, activeEditorSignal, activePartSignal, activeSelectionSignal, activeTasksSignal, appLoaderService, appSettings, applyConfigNameRemaps, commandRegistry, configureFramework, confirmDialog, contributionRegistry, contributionTargetMappingRegistry, createJsRuntime, createLazyLabel, createLogger, dialogService, editorRegistry, esmShService, extensionRegistry, filebrowserDialog, getFrameworkConfig, i18n, icon, infoDialog, listContributionNameRemaps, defaultLogger as logger, navigableInfoDialog, overrideContributionTargets, parseIconSpec, partDirtySignal, persistenceService, perspectiveSwitchedSignal, promptDialog, publish, registerAll, rootContext, runJavaScriptCode, setLogLevel, subscribe, taskService, toastError, toastInfo, toastWarning, treeNodeComparator, uiContext, unsubscribe, watchSignal, workspaceService };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as SYSTEM_LAYOUTS, D as SIDEBAR_MAIN, E as SIDEBAR_AUXILIARY, F as TOOLBAR_MAIN, I as TOOLBAR_MAIN_CENTER, L as TOOLBAR_MAIN_RIGHT, M as TOOLBAR_BOTTOM, N as TOOLBAR_BOTTOM_CENTER, O as SIDEBAR_MAIN_BOTTOM, P as TOOLBAR_BOTTOM_END, R as constants_exports, S as EDITOR_AREA_MAIN, T as PANEL_BOTTOM, _ as esmShService, a as filebrowserDialog, b as appSettings, d as deleteIndexedDbWorkspaceData, g as extensionRegistry, h as TOPIC_EXTENSIONS_CHANGED, k as SIDEBAR_MAIN_TOOLBAR, l as promptDialog, m as DocksElement, n as DocksContainer, r as icon, s as confirmDialog, t as DocksPart, u as appLoaderService, v as taskService, y as TOPIC_SETTINGS_CHANGED } from "./parts-
|
|
1
|
+
import { A as SYSTEM_LAYOUTS, D as SIDEBAR_MAIN, E as SIDEBAR_AUXILIARY, F as TOOLBAR_MAIN, I as TOOLBAR_MAIN_CENTER, L as TOOLBAR_MAIN_RIGHT, M as TOOLBAR_BOTTOM, N as TOOLBAR_BOTTOM_CENTER, O as SIDEBAR_MAIN_BOTTOM, P as TOOLBAR_BOTTOM_END, R as constants_exports, S as EDITOR_AREA_MAIN, T as PANEL_BOTTOM, _ as esmShService, a as filebrowserDialog, b as appSettings, d as deleteIndexedDbWorkspaceData, g as extensionRegistry, h as TOPIC_EXTENSIONS_CHANGED, k as SIDEBAR_MAIN_TOOLBAR, l as promptDialog, m as DocksElement, n as DocksContainer, r as icon, s as confirmDialog, t as DocksPart, u as appLoaderService, v as taskService, y as TOPIC_SETTINGS_CHANGED } from "./parts-D--b4yyc.js";
|
|
2
2
|
import { a as unregisterLogHandler, o as rootContext, r as registerLogHandler, s as uiContext, t as createLogger } from "./logger-DT0_NW3S.js";
|
|
3
3
|
import { C as toastWarning, S as toastInfo, d as activeSelectionSignal, f as activeTasksSignal, g as contributionRegistry, h as TOPIC_CONTRIBUTEIONS_CHANGED, n as watchSignal, s as registerAll, t as DocksWidget, u as activePartSignal, x as toastError } from "./widget-BgBerzhp.js";
|
|
4
4
|
import { n as subscribe, t as publish } from "./events-B_ZxkU_G.js";
|
|
@@ -227,12 +227,17 @@ var EditorRegistry = class {
|
|
|
227
227
|
component: editorInput.component
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
async openTab(tabContribution) {
|
|
230
|
+
async openTab(tabContribution, options) {
|
|
231
231
|
const editorArea = this.getEditorArea();
|
|
232
232
|
if (!editorArea) {
|
|
233
233
|
console.error("Editor area not found. The split pane system may not be initialized yet.");
|
|
234
234
|
return;
|
|
235
235
|
}
|
|
236
|
+
if (options?.singleTab) {
|
|
237
|
+
if (!await editorArea.closeAllTabs()) return;
|
|
238
|
+
editorArea.open(tabContribution);
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
236
241
|
if (editorArea.has(tabContribution.name)) {
|
|
237
242
|
editorArea.activate(tabContribution.name);
|
|
238
243
|
return;
|
|
@@ -3576,15 +3581,23 @@ registerAll({
|
|
|
3576
3581
|
id: "open_view_as_editor",
|
|
3577
3582
|
name: "Open view as editor",
|
|
3578
3583
|
description: "Opens a dashboard view in the editor area",
|
|
3579
|
-
parameters: [
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3584
|
+
parameters: [
|
|
3585
|
+
{
|
|
3586
|
+
name: "name",
|
|
3587
|
+
description: "View contribution name",
|
|
3588
|
+
required: true
|
|
3589
|
+
},
|
|
3590
|
+
{
|
|
3591
|
+
name: "sourceContributionSlot",
|
|
3592
|
+
description: "source contribution slot (default: SYSTEM_VIEWS)",
|
|
3593
|
+
required: false
|
|
3594
|
+
},
|
|
3595
|
+
{
|
|
3596
|
+
name: "singleTab",
|
|
3597
|
+
description: "If true, close all other editor tabs first so only this view remains open",
|
|
3598
|
+
required: false
|
|
3599
|
+
}
|
|
3600
|
+
]
|
|
3588
3601
|
},
|
|
3589
3602
|
handler: { execute: async ({ params }) => {
|
|
3590
3603
|
const name = params?.name;
|
|
@@ -3592,7 +3605,7 @@ registerAll({
|
|
|
3592
3605
|
const slot = params?.sourceContributionSlot ?? "system-views";
|
|
3593
3606
|
const contribution = contributionRegistry.getContributions(slot).find((c) => c.name === name);
|
|
3594
3607
|
if (!contribution?.component) return;
|
|
3595
|
-
await editorRegistry.openTab(contribution);
|
|
3608
|
+
await editorRegistry.openTab(contribution, { singleTab: params?.singleTab === true });
|
|
3596
3609
|
} }
|
|
3597
3610
|
});
|
|
3598
3611
|
//#endregion
|
|
@@ -4351,4 +4364,4 @@ function getFrameworkConfig() {
|
|
|
4351
4364
|
//#endregion
|
|
4352
4365
|
export { editorRegistry as C, treeNodeComparator as S, i18n as T, TOOLBAR_LAYOUT_SWITCHER as _, DocksStandardLayout as a, VIEW_FILEBROWSER as b, SIDEBAR_TOOLBAR_EXTENSIONS as c, TOOLBAR_FAST_VIEWS as d, TOOLBAR_FILEBROWSER_DELETE as f, TOOLBAR_LANGUAGE_SELECTOR as g, TOOLBAR_INFO as h, createJsRuntime as i, SYSTEM_DEFAULT_FILE_ICONS as l, TOOLBAR_FULLSCREEN as m, getFrameworkConfig as n, CTXMENU_FILEBROWSER_DELETE as o, TOOLBAR_FILEBROWSER_RENAME as p, runJavaScriptCode as r, CTXMENU_FILEBROWSER_RENAME as s, configureFramework as t, TOOLBAR_ACTIVE_PART_NAME as u, TOOLBAR_TASKS as v, createLazyLabel as w, VIEW_LOG_TERMINAL as x, TOOLBAR_THEME_SWITCHER as y };
|
|
4353
4366
|
|
|
4354
|
-
//# sourceMappingURL=api-
|
|
4367
|
+
//# sourceMappingURL=api-CmVCdbHJ.js.map
|