@eclipse-docks/core 0.7.103 → 0.7.105
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/constants.d.ts +1 -0
- package/dist/api/constants.d.ts.map +1 -1
- package/dist/api/index.js +2 -2
- package/dist/{api-CFU8KuHz.js → api-D8gdiUoq.js} +42 -14
- package/dist/api-D8gdiUoq.js.map +1 -0
- package/dist/commands/global.d.ts.map +1 -1
- package/dist/components/part-name.d.ts.map +1 -1
- package/dist/components/tasks.d.ts.map +1 -1
- package/dist/core/ui-ids.d.ts +14 -1
- package/dist/core/ui-ids.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/api/constants.ts +1 -1
- package/src/commands/global.ts +3 -0
- package/src/components/part-name.ts +6 -3
- package/src/components/tasks.ts +6 -3
- package/src/contributions/default-ui-contributions.ts +6 -4
- package/src/core/ui-ids.ts +16 -1
- package/dist/api-CFU8KuHz.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/commands/global.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/commands/global.ts"],"names":[],"mappings":"AAYA,OAAO,SAAS,CAAC;AACjB,OAAO,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"part-name.d.ts","sourceRoot":"","sources":["../../src/components/part-name.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"part-name.d.ts","sourceRoot":"","sources":["../../src/components/part-name.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAkB9C,qBACa,aAAc,SAAQ,YAAY;IAC3C,SAAS,CAAC,UAAU;IAMpB,SAAS,CAAC,MAAM;CAcnB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,iBAAiB,EAAE,aAAa,CAAA;KACnC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/components/tasks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/components/tasks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA+LhD,qBACa,UAAW,SAAQ,YAAY;IACxC,MAAM,CAAC,MAAM,0BAwCZ;IAED,SAAS,CAAC,UAAU;IAQpB,OAAO,CAAC,oBAAoB;IAI5B,SAAS,CAAC,MAAM;CAoBnB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,aAAa,EAAE,UAAU,CAAA;KAC5B;CACJ"}
|
package/dist/core/ui-ids.d.ts
CHANGED
|
@@ -3,7 +3,20 @@ export declare const VIEW_LOG_TERMINAL = "view.logTerminal";
|
|
|
3
3
|
export declare const TOOLBAR_INFO = "toolbar.info";
|
|
4
4
|
export declare const TOOLBAR_FAST_VIEWS = "toolbar.fastViews";
|
|
5
5
|
export declare const TOOLBAR_LANGUAGE_SELECTOR = "toolbar.languageSelector";
|
|
6
|
-
|
|
6
|
+
/** Main toolbar (right): layout picker (`docks-layout-switcher`). */
|
|
7
|
+
export declare const TOOLBAR_LAYOUT_SWITCHER = "toolbar.layoutSwitcher";
|
|
8
|
+
/** Main toolbar (right): dark/light theme toggle (`switch_theme`). */
|
|
9
|
+
export declare const TOOLBAR_THEME_SWITCHER = "toolbar.themeSwitcher";
|
|
10
|
+
/** Main toolbar (right): document fullscreen toggle (`fullscreen`). */
|
|
11
|
+
export declare const TOOLBAR_FULLSCREEN = "toolbar.fullscreen";
|
|
12
|
+
/** Bottom-center toolbar: focused part title / active part indicator (`docks-part-name`). */
|
|
13
|
+
export declare const TOOLBAR_ACTIVE_PART_NAME = "toolbar.activePartName";
|
|
14
|
+
/** Bottom-center toolbar: background tasks / progress (`docks-tasks`). */
|
|
15
|
+
export declare const TOOLBAR_TASKS = "toolbar.tasks";
|
|
16
|
+
/** Main sidebar header toolbar: open extensions (`open_extensions` command). */
|
|
17
|
+
export declare const SIDEBAR_TOOLBAR_EXTENSIONS = "sidebar.toolbar.extensions";
|
|
18
|
+
/** Default file-type → icon mappings on `system.icons`. */
|
|
19
|
+
export declare const SYSTEM_DEFAULT_FILE_ICONS = "system.icons.default";
|
|
7
20
|
export declare const TOOLBAR_FILEBROWSER_RENAME = "toolbar.filebrowser.rename";
|
|
8
21
|
export declare const TOOLBAR_FILEBROWSER_DELETE = "toolbar.filebrowser.delete";
|
|
9
22
|
export declare const CTXMENU_FILEBROWSER_RENAME = "contextmenu.filebrowser.rename";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-ids.d.ts","sourceRoot":"","sources":["../../src/core/ui-ids.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAEpD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,yBAAyB,6BAA6B,CAAC;AACpE,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"ui-ids.d.ts","sourceRoot":"","sources":["../../src/core/ui-ids.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAEpD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,yBAAyB,6BAA6B,CAAC;AACpE,qEAAqE;AACrE,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAChE,sEAAsE;AACtE,eAAO,MAAM,sBAAsB,0BAA0B,CAAC;AAC9D,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,6FAA6F;AAC7F,eAAO,MAAM,wBAAwB,2BAA2B,CAAC;AACjE,0EAA0E;AAC1E,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,gFAAgF;AAChF,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AAEvE,2DAA2D;AAC3D,eAAO,MAAM,yBAAyB,yBAAyB,CAAC;AAEhE,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AAEvE,eAAO,MAAM,0BAA0B,mCAAmC,CAAC;AAC3E,eAAO,MAAM,0BAA0B,mCAAmC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,5 +3,5 @@ import { i as setLogLevel, n as defaultLogger, o as rootContext, s as uiContext,
|
|
|
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 { a as DocksStandardLayout, c as
|
|
7
|
-
export { COMMAND_SAVE, 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, SYSTEM_LAYOUTS, SYSTEM_VIEWS, StringFile, TOOLBAR_BOTTOM, TOOLBAR_BOTTOM_CENTER, TOOLBAR_BOTTOM_END, TOOLBAR_MAIN, TOOLBAR_MAIN_CENTER, TOOLBAR_MAIN_RIGHT, TOPIC_COMMAND_REGISTERED, TOPIC_CONTRIBUTEIONS_CHANGED, TOPIC_SETTINGS_CHANGED, TOPIC_WORKSPACE_CHANGED, TOPIC_WORKSPACE_CONNECTED, 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 };
|
|
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-D8gdiUoq.js";
|
|
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 };
|
package/package.json
CHANGED
package/src/api/constants.ts
CHANGED
package/src/commands/global.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { registerAll } from "../core/commandregistry";
|
|
2
2
|
import { CommandContribution } from "../core/contributionregistry";
|
|
3
3
|
import { TOOLBAR_MAIN_RIGHT } from "../core/constants";
|
|
4
|
+
import { TOOLBAR_FULLSCREEN, TOOLBAR_THEME_SWITCHER } from "../core/ui-ids";
|
|
4
5
|
import { EditorInput, editorRegistry } from "../core/editorregistry";
|
|
5
6
|
import { html } from "lit";
|
|
6
7
|
import { toastError, toastInfo } from "../core/toast";
|
|
@@ -74,6 +75,7 @@ registerAll({
|
|
|
74
75
|
},
|
|
75
76
|
contribution: {
|
|
76
77
|
target: TOOLBAR_MAIN_RIGHT,
|
|
78
|
+
name: TOOLBAR_THEME_SWITCHER,
|
|
77
79
|
icon: "circle-half-stroke",
|
|
78
80
|
label: "Theme Switcher",
|
|
79
81
|
}
|
|
@@ -103,6 +105,7 @@ registerAll({
|
|
|
103
105
|
},
|
|
104
106
|
contribution: {
|
|
105
107
|
target: TOOLBAR_MAIN_RIGHT,
|
|
108
|
+
name: TOOLBAR_FULLSCREEN,
|
|
106
109
|
icon: "expand",
|
|
107
110
|
label: "Fullscreen",
|
|
108
111
|
}
|
|
@@ -3,16 +3,19 @@ import {DocksElement} from "../parts/element";
|
|
|
3
3
|
import {html} from "lit";
|
|
4
4
|
import {activePartSignal} from "../core/appstate";
|
|
5
5
|
import {getActivePartDisplayName} from "./document-title";
|
|
6
|
-
import {contributionRegistry
|
|
6
|
+
import {contributionRegistry} from "../core/contributionregistry";
|
|
7
7
|
import {TOOLBAR_BOTTOM_CENTER} from "../core/constants";
|
|
8
|
+
import {TOOLBAR_ACTIVE_PART_NAME} from "../core/ui-ids";
|
|
8
9
|
import { icon } from '../core/icon-utils';
|
|
9
10
|
import { i18n } from '../core/i18n';
|
|
10
11
|
|
|
11
12
|
const t = await i18n(import.meta.glob('./partname*.json'));
|
|
12
13
|
|
|
13
14
|
contributionRegistry.registerContribution(TOOLBAR_BOTTOM_CENTER, {
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
name: TOOLBAR_ACTIVE_PART_NAME,
|
|
16
|
+
label: "Active part",
|
|
17
|
+
component: "<docks-part-name></docks-part-name>",
|
|
18
|
+
})
|
|
16
19
|
|
|
17
20
|
@customElement('docks-part-name')
|
|
18
21
|
export class DocksPartName extends DocksElement {
|
package/src/components/tasks.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {contributionRegistry
|
|
1
|
+
import {contributionRegistry} from "../core/contributionregistry";
|
|
2
2
|
import {TOOLBAR_BOTTOM_CENTER} from "../core/constants";
|
|
3
|
+
import {TOOLBAR_TASKS} from "../core/ui-ids";
|
|
3
4
|
import {customElement} from "lit/decorators.js";
|
|
4
5
|
import { DocksElement } from "../parts/element";
|
|
5
6
|
import {css, html, render} from "lit";
|
|
@@ -10,8 +11,10 @@ import {i18n} from "../core/i18n";
|
|
|
10
11
|
const t = await i18n(import.meta.glob('./tasks*.json'));
|
|
11
12
|
|
|
12
13
|
contributionRegistry.registerContribution(TOOLBAR_BOTTOM_CENTER, {
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
name: TOOLBAR_TASKS,
|
|
15
|
+
label: "Active Tasks",
|
|
16
|
+
component: "<docks-tasks></docks-tasks>",
|
|
17
|
+
})
|
|
15
18
|
|
|
16
19
|
// Singleton dialog container for progress dialog
|
|
17
20
|
let progressDialogContainer: HTMLElement | null = null;
|
|
@@ -10,10 +10,11 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
VIEW_FILEBROWSER,
|
|
12
12
|
VIEW_LOG_TERMINAL,
|
|
13
|
-
|
|
13
|
+
TOOLBAR_LAYOUT_SWITCHER,
|
|
14
14
|
TOOLBAR_FAST_VIEWS,
|
|
15
15
|
TOOLBAR_INFO,
|
|
16
|
-
TOOLBAR_LANGUAGE_SELECTOR
|
|
16
|
+
TOOLBAR_LANGUAGE_SELECTOR,
|
|
17
|
+
SIDEBAR_TOOLBAR_EXTENSIONS
|
|
17
18
|
} from "../core/ui-ids";
|
|
18
19
|
|
|
19
20
|
contributionRegistry.registerContribution(SIDEBAR_MAIN, {
|
|
@@ -51,12 +52,13 @@ contributionRegistry.registerContribution(TOOLBAR_BOTTOM_END, {
|
|
|
51
52
|
});
|
|
52
53
|
|
|
53
54
|
contributionRegistry.registerContribution(TOOLBAR_MAIN_RIGHT, {
|
|
54
|
-
name:
|
|
55
|
-
label: "
|
|
55
|
+
name: TOOLBAR_LAYOUT_SWITCHER,
|
|
56
|
+
label: "Layout Switcher",
|
|
56
57
|
component: () => html`<docks-layout-switcher></docks-layout-switcher>`
|
|
57
58
|
} as HTMLContribution);
|
|
58
59
|
|
|
59
60
|
contributionRegistry.registerContribution(SIDEBAR_MAIN_TOOLBAR, {
|
|
61
|
+
name: SIDEBAR_TOOLBAR_EXTENSIONS,
|
|
60
62
|
command: "open_extensions",
|
|
61
63
|
icon: "docks extensions",
|
|
62
64
|
label: "Extensions",
|
package/src/core/ui-ids.ts
CHANGED
|
@@ -4,7 +4,22 @@ export const VIEW_LOG_TERMINAL = "view.logTerminal";
|
|
|
4
4
|
export const TOOLBAR_INFO = "toolbar.info";
|
|
5
5
|
export const TOOLBAR_FAST_VIEWS = "toolbar.fastViews";
|
|
6
6
|
export const TOOLBAR_LANGUAGE_SELECTOR = "toolbar.languageSelector";
|
|
7
|
-
|
|
7
|
+
/** Main toolbar (right): layout picker (`docks-layout-switcher`). */
|
|
8
|
+
export const TOOLBAR_LAYOUT_SWITCHER = "toolbar.layoutSwitcher";
|
|
9
|
+
/** Main toolbar (right): dark/light theme toggle (`switch_theme`). */
|
|
10
|
+
export const TOOLBAR_THEME_SWITCHER = "toolbar.themeSwitcher";
|
|
11
|
+
/** Main toolbar (right): document fullscreen toggle (`fullscreen`). */
|
|
12
|
+
export const TOOLBAR_FULLSCREEN = "toolbar.fullscreen";
|
|
13
|
+
/** Bottom-center toolbar: focused part title / active part indicator (`docks-part-name`). */
|
|
14
|
+
export const TOOLBAR_ACTIVE_PART_NAME = "toolbar.activePartName";
|
|
15
|
+
/** Bottom-center toolbar: background tasks / progress (`docks-tasks`). */
|
|
16
|
+
export const TOOLBAR_TASKS = "toolbar.tasks";
|
|
17
|
+
|
|
18
|
+
/** Main sidebar header toolbar: open extensions (`open_extensions` command). */
|
|
19
|
+
export const SIDEBAR_TOOLBAR_EXTENSIONS = "sidebar.toolbar.extensions";
|
|
20
|
+
|
|
21
|
+
/** Default file-type → icon mappings on `system.icons`. */
|
|
22
|
+
export const SYSTEM_DEFAULT_FILE_ICONS = "system.icons.default";
|
|
8
23
|
|
|
9
24
|
export const TOOLBAR_FILEBROWSER_RENAME = "toolbar.filebrowser.rename";
|
|
10
25
|
export const TOOLBAR_FILEBROWSER_DELETE = "toolbar.filebrowser.delete";
|