@eclipse-docks/core 0.7.105 → 0.7.107
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-gIOIP8P6.js} +29 -14
- package/dist/api-gIOIP8P6.js.map +1 -0
- package/dist/components/command.d.ts +1 -0
- package/dist/components/command.d.ts.map +1 -1
- package/dist/components/language-selector.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-Cl4eHsto.js} +57 -5
- package/dist/{parts-CSvUWION.js.map → parts-Cl4eHsto.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/components/language-selector.ts +3 -1
- package/src/core/editorregistry.ts +8 -1
- package/src/parts/tabs.ts +57 -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-Cl4eHsto.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-gIOIP8P6.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-Cl4eHsto.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;
|
|
@@ -2460,13 +2465,15 @@ var DocksLanguageSelector = class DocksLanguageSelector extends DocksElement {
|
|
|
2460
2465
|
render() {
|
|
2461
2466
|
const currentLanguage = currentLanguageSignal.get();
|
|
2462
2467
|
const languageName = getLanguageName(currentLanguage);
|
|
2468
|
+
const buttonLabel = `${languageName} ${currentLanguage.toUpperCase()}`;
|
|
2463
2469
|
return html`
|
|
2464
2470
|
<wa-button
|
|
2465
2471
|
appearance="plain"
|
|
2466
2472
|
size="small"
|
|
2467
2473
|
title="Current language: ${languageName}"
|
|
2468
2474
|
@click=${() => showLanguageSelectorDialog()}>
|
|
2469
|
-
${
|
|
2475
|
+
${icon("language")}
|
|
2476
|
+
${buttonLabel}
|
|
2470
2477
|
</wa-button>
|
|
2471
2478
|
`;
|
|
2472
2479
|
}
|
|
@@ -3576,15 +3583,23 @@ registerAll({
|
|
|
3576
3583
|
id: "open_view_as_editor",
|
|
3577
3584
|
name: "Open view as editor",
|
|
3578
3585
|
description: "Opens a dashboard view in the editor area",
|
|
3579
|
-
parameters: [
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3586
|
+
parameters: [
|
|
3587
|
+
{
|
|
3588
|
+
name: "name",
|
|
3589
|
+
description: "View contribution name",
|
|
3590
|
+
required: true
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
name: "sourceContributionSlot",
|
|
3594
|
+
description: "source contribution slot (default: SYSTEM_VIEWS)",
|
|
3595
|
+
required: false
|
|
3596
|
+
},
|
|
3597
|
+
{
|
|
3598
|
+
name: "singleTab",
|
|
3599
|
+
description: "If true, close all other editor tabs first so only this view remains open",
|
|
3600
|
+
required: false
|
|
3601
|
+
}
|
|
3602
|
+
]
|
|
3588
3603
|
},
|
|
3589
3604
|
handler: { execute: async ({ params }) => {
|
|
3590
3605
|
const name = params?.name;
|
|
@@ -3592,7 +3607,7 @@ registerAll({
|
|
|
3592
3607
|
const slot = params?.sourceContributionSlot ?? "system-views";
|
|
3593
3608
|
const contribution = contributionRegistry.getContributions(slot).find((c) => c.name === name);
|
|
3594
3609
|
if (!contribution?.component) return;
|
|
3595
|
-
await editorRegistry.openTab(contribution);
|
|
3610
|
+
await editorRegistry.openTab(contribution, { singleTab: params?.singleTab === true });
|
|
3596
3611
|
} }
|
|
3597
3612
|
});
|
|
3598
3613
|
//#endregion
|
|
@@ -4351,4 +4366,4 @@ function getFrameworkConfig() {
|
|
|
4351
4366
|
//#endregion
|
|
4352
4367
|
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
4368
|
|
|
4354
|
-
//# sourceMappingURL=api-
|
|
4369
|
+
//# sourceMappingURL=api-gIOIP8P6.js.map
|