@eclipse-docks/core 0.7.126 → 0.7.127
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 +4 -4
- package/dist/api/services.d.ts +2 -0
- package/dist/api/services.d.ts.map +1 -1
- package/dist/{api-B3RXoez_.js → api-Da9zQcfd.js} +186 -36
- package/dist/api-Da9zQcfd.js.map +1 -0
- package/dist/components/command.d.ts +4 -4
- package/dist/components/command.d.ts.map +1 -1
- package/dist/components/filebrowser.d.ts.map +1 -1
- package/dist/core/contribution-names.d.ts +0 -2
- package/dist/core/contribution-names.d.ts.map +1 -1
- package/dist/core/contributionregistry.d.ts +3 -0
- package/dist/core/contributionregistry.d.ts.map +1 -1
- package/dist/core/dropdown-item.d.ts +35 -0
- package/dist/core/dropdown-item.d.ts.map +1 -0
- package/dist/core/dropdown-menu-utils.d.ts +5 -0
- package/dist/core/dropdown-menu-utils.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/parts/contextmenu.d.ts +5 -2
- package/dist/parts/contextmenu.d.ts.map +1 -1
- package/dist/parts/index.d.ts.map +1 -1
- package/dist/parts/index.js +1 -1
- package/dist/parts/part.d.ts +2 -0
- package/dist/parts/part.d.ts.map +1 -1
- package/dist/{parts-CsoNFVTw.js → parts-CRVxaDd-.js} +184 -262
- package/dist/parts-CRVxaDd-.js.map +1 -0
- package/dist/{widget-DbLusgAH.js → widget-BqQtioK1.js} +11 -5
- package/dist/widget-BqQtioK1.js.map +1 -0
- package/dist/widgets/index.js +1 -1
- package/dist/{widgets-DnnSZhsi.js → widgets-C9V42Mqq.js} +2 -2
- package/dist/{widgets-DnnSZhsi.js.map → widgets-C9V42Mqq.js.map} +1 -1
- package/package.json +1 -1
- package/src/api/services.ts +8 -0
- package/src/commands/filebrowser-contributions.ts +0 -16
- package/src/components/command.ts +45 -113
- package/src/components/filebrowser.ts +15 -12
- package/src/core/contribution-names.ts +0 -3
- package/src/core/contributionregistry.ts +19 -3
- package/src/core/dropdown-item.ts +152 -0
- package/src/core/dropdown-menu-utils.ts +59 -0
- package/src/parts/contextmenu.ts +38 -44
- package/src/parts/index.ts +4 -1
- package/src/parts/part.ts +2 -0
- package/dist/api-B3RXoez_.js.map +0 -1
- package/dist/parts-CsoNFVTw.js.map +0 -1
- package/dist/widget-DbLusgAH.js.map +0 -1
package/dist/api/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as taskService, B as SIDEBAR_AUXILIARY, C as DocksElement, F as MouseButton, G as SYSTEM_LAYOUTS, H as SIDEBAR_MAIN_BOTTOM, J as TOOLBAR_BOTTOM_CENTER, K as SYSTEM_VIEWS, L as ABOUT_TABS, M as appSettings, N as COMMAND_SAVE, O as extensionRegistry, P as HIDE_DOT_RESOURCE, Q as TOOLBAR_MAIN_RIGHT, R as EDITOR_AREA_MAIN, S as DocksDialogContent, T as sanitizeHtml, U as SIDEBAR_MAIN_TOOLBAR, V as SIDEBAR_MAIN, W as SYSTEM_ATTRIBUTIONS, X as TOOLBAR_MAIN, Y as TOOLBAR_BOTTOM_END, Z as TOOLBAR_MAIN_CENTER, _ as validateFormDialogFields, a as renderDropdownContributions, c as icon, d as filebrowserDialog, f as navigableInfoDialog, g as formDialogRequired, h as formDialog, i as renderDropdownContribution, j as TOPIC_SETTINGS_CHANGED, k as esmShService, l as parseIconSpec, m as infoDialog, n as DocksContainer, o as renderDropdownItem, p as confirmDialog, q as TOOLBAR_BOTTOM, r as renderCommandContribution, s as renderDropdownSubmenu, t as DocksPart, u as versionInfoDialog, v as promptDialog, w as parseMarkdownHtml, x as dialogService, y as appLoaderService, z as PANEL_BOTTOM } from "../parts-CRVxaDd-.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
|
-
import { C as
|
|
3
|
+
import { C as overrideContributionTargets, E as toastWarning, S as listContributionNameRemaps, T as toastInfo, a as TOPIC_COMMAND_REGISTERED, b as applyConfigNameRemaps, 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, w as toastError, x as contributionTargetMappingRegistry } from "../widget-BqQtioK1.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 StringFile, f as WorkspaceService, i as Directory, l as TOPIC_WORKSPACE_CHANGED, m as persistenceService, o as FileContentType, p as workspaceService, r as CompositeDirectory, t as FileSysDirHandleResource, u as TOPIC_WORKSPACE_CONNECTED } from "../fs-access-DTXPsV1W.js";
|
|
6
|
-
import { C as
|
|
7
|
-
export { ABOUT_TABS, ABOUT_TAB_ATTRIBUTIONS, ABOUT_TAB_PACKAGES, ABOUT_TAB_RELEASE, ATTRIBUTION_ECLIPSE_DOCKS, 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_ATTRIBUTIONS, SYSTEM_DEFAULT_FILE_ICONS, SYSTEM_LAYOUTS, SYSTEM_VIEWS, StringFile, TOOLBAR_ACTIVE_PART_NAME, TOOLBAR_BOTTOM, TOOLBAR_BOTTOM_CENTER, TOOLBAR_BOTTOM_END, TOOLBAR_FAST_VIEWS,
|
|
6
|
+
import { C as VIEW_LOG_TERMINAL, D as i18n, E as createLazyLabel, S as VIEW_FILEBROWSER, T as editorRegistry, _ as TOOLBAR_INFO, a as DocksStandardLayout, b as TOOLBAR_TASKS, c as ABOUT_TAB_RELEASE, d as CTXMENU_FILEBROWSER_RENAME, f as SIDEBAR_TOOLBAR_EXTENSIONS, g as TOOLBAR_FULLSCREEN, h as TOOLBAR_FAST_VIEWS, i as createJsRuntime, l as ATTRIBUTION_ECLIPSE_DOCKS, m as TOOLBAR_ACTIVE_PART_NAME, n as getFrameworkConfig, o as ABOUT_TAB_ATTRIBUTIONS, p as SYSTEM_DEFAULT_FILE_ICONS, r as runJavaScriptCode, s as ABOUT_TAB_PACKAGES, t as configureFramework, u as CTXMENU_FILEBROWSER_DELETE, v as TOOLBAR_LANGUAGE_SELECTOR, w as treeNodeComparator, x as TOOLBAR_THEME_SWITCHER, y as TOOLBAR_LAYOUT_SWITCHER } from "../api-Da9zQcfd.js";
|
|
7
|
+
export { ABOUT_TABS, ABOUT_TAB_ATTRIBUTIONS, ABOUT_TAB_PACKAGES, ABOUT_TAB_RELEASE, ATTRIBUTION_ECLIPSE_DOCKS, 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_ATTRIBUTIONS, 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_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, formDialog, formDialogRequired, getFrameworkConfig, i18n, icon, infoDialog, listContributionNameRemaps, defaultLogger as logger, navigableInfoDialog, overrideContributionTargets, parseIconSpec, parseMarkdownHtml, partDirtySignal, persistenceService, perspectiveSwitchedSignal, promptDialog, publish, registerAll, renderCommandContribution, renderDropdownContribution, renderDropdownContributions, renderDropdownItem, renderDropdownSubmenu, rootContext, runJavaScriptCode, sanitizeHtml, setLogLevel, subscribe, taskService, toastError, toastInfo, toastWarning, treeNodeComparator, uiContext, unsubscribe, validateFormDialogFields, versionInfoDialog, watchSignal, workspaceService };
|
package/dist/api/services.d.ts
CHANGED
|
@@ -27,5 +27,7 @@ export { i18n, createLazyLabel } from '../core/i18n';
|
|
|
27
27
|
export { contributionTargetMappingRegistry, overrideContributionTargets, applyConfigNameRemaps, listContributionNameRemaps } from '../core/contribution-mapping';
|
|
28
28
|
export { parseIconSpec, icon } from '../core/icon-utils';
|
|
29
29
|
export type { ParsedIconSpec, IconOptions } from '../core/icon-utils';
|
|
30
|
+
export { renderDropdownItem, renderDropdownContributions, renderDropdownSubmenu, renderDropdownContribution, renderCommandContribution, } from '../core/dropdown-item';
|
|
31
|
+
export type { DropdownItemOptions, ReactiveBoolean } from '../core/dropdown-item';
|
|
30
32
|
export { sanitizeHtml, parseMarkdownHtml } from '../core/markdown-html';
|
|
31
33
|
//# sourceMappingURL=services.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/api/services.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAChI,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AACrN,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EACH,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,gBAAgB,EACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACH,YAAY,EACZ,WAAW,EACX,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,OAAO,IAAI,MAAM,EACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAA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EAC3B,qBAAqB,EACrB,0BAA0B,EAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACzD,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EACH,kBAAkB,EAClB,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,yBAAyB,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as taskService, B as SIDEBAR_AUXILIARY, C as DocksElement, D as TOPIC_EXTENSIONS_CHANGED, E as keyBindingManager, G as SYSTEM_LAYOUTS, H as SIDEBAR_MAIN_BOTTOM, I as constants_exports, J as TOOLBAR_BOTTOM_CENTER, L as ABOUT_TABS, M as appSettings, O as extensionRegistry, Q as TOOLBAR_MAIN_RIGHT, R as EDITOR_AREA_MAIN, U as SIDEBAR_MAIN_TOOLBAR, V as SIDEBAR_MAIN, W as SYSTEM_ATTRIBUTIONS, X as TOOLBAR_MAIN, Y as TOOLBAR_BOTTOM_END, Z as TOOLBAR_MAIN_CENTER, b as deleteIndexedDbWorkspaceData, c as icon, d as filebrowserDialog, i as renderDropdownContribution, j as TOPIC_SETTINGS_CHANGED, k as esmShService, n as DocksContainer, o as renderDropdownItem, p as confirmDialog, q as TOOLBAR_BOTTOM, s as renderDropdownSubmenu, t as DocksPart, u as versionInfoDialog, v as promptDialog, w as parseMarkdownHtml, y as appLoaderService, z as PANEL_BOTTOM } from "./parts-CRVxaDd-.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
|
-
import {
|
|
3
|
+
import { E as toastWarning, T 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, v as getContributionVisible, w as toastError } from "./widget-BqQtioK1.js";
|
|
4
4
|
import { n as subscribe, t as publish } from "./events-B_ZxkU_G.js";
|
|
5
5
|
import { a as File, d as UnavailableWorkspaceFolderDirectory, i as Directory, l as TOPIC_WORKSPACE_CHANGED, o as FileContentType, p as workspaceService, s as Resource, u as TOPIC_WORKSPACE_CONNECTED } from "./fs-access-DTXPsV1W.js";
|
|
6
|
-
import "./widgets-
|
|
6
|
+
import "./widgets-C9V42Mqq.js";
|
|
7
7
|
import { css, html, nothing, render } from "lit";
|
|
8
8
|
import { signal } from "@lit-labs/signals";
|
|
9
9
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
@@ -360,7 +360,6 @@ var DocksFileBrowser = class DocksFileBrowser extends DocksPart {
|
|
|
360
360
|
renderToolbar() {
|
|
361
361
|
return html`
|
|
362
362
|
<docks-command icon="folder-open" title="${t$6.CONNECT_WORKSPACE}" dropdown="filebrowser.connections"></docks-command>
|
|
363
|
-
<docks-command cmd="refresh_resource" icon="repeat" title="${t$6.REFRESH_RESOURCE}"></docks-command>
|
|
364
363
|
<docks-command icon="docks file-plus" title="${t$6.CREATE_NEW}" dropdown="filebrowser.create"></docks-command>
|
|
365
364
|
`;
|
|
366
365
|
}
|
|
@@ -370,26 +369,37 @@ var DocksFileBrowser = class DocksFileBrowser extends DocksPart {
|
|
|
370
369
|
const editorOptions = file ? editorRegistry.getEditorOptionsForInput(file) : [];
|
|
371
370
|
const hasOpenWith = editorOptions.length > 0;
|
|
372
371
|
return html`
|
|
373
|
-
|
|
372
|
+
${renderDropdownItem({
|
|
373
|
+
cmd: "open_editor",
|
|
374
|
+
icon: "folder-open",
|
|
375
|
+
label: t$6.OPEN
|
|
376
|
+
})}
|
|
374
377
|
${hasOpenWith ? html`
|
|
375
378
|
<wa-dropdown-item>
|
|
376
379
|
${icon("folder-open", { slot: "icon" })}
|
|
377
380
|
${t$6.OPEN_WITH}
|
|
378
|
-
${editorOptions.map((opt) =>
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
</docks-command>
|
|
389
|
-
`)}
|
|
381
|
+
${editorOptions.map((opt) => renderDropdownItem({
|
|
382
|
+
cmd: "open_editor",
|
|
383
|
+
icon: opt.icon ?? "file",
|
|
384
|
+
label: opt.title,
|
|
385
|
+
params: {
|
|
386
|
+
path: file.getWorkspacePath(),
|
|
387
|
+
editorId: opt.editorId
|
|
388
|
+
},
|
|
389
|
+
slot: "submenu"
|
|
390
|
+
}))}
|
|
390
391
|
</wa-dropdown-item>
|
|
391
392
|
` : nothing}
|
|
392
|
-
|
|
393
|
+
${renderDropdownSubmenu({
|
|
394
|
+
icon: "docks file-plus",
|
|
395
|
+
label: t$6.CREATE_NEW,
|
|
396
|
+
contributionTarget: "filebrowser.create"
|
|
397
|
+
})}
|
|
398
|
+
${renderDropdownItem({
|
|
399
|
+
cmd: "refresh_resource",
|
|
400
|
+
icon: "repeat",
|
|
401
|
+
label: t$6.REFRESH_RESOURCE
|
|
402
|
+
})}
|
|
393
403
|
`;
|
|
394
404
|
}
|
|
395
405
|
onWorkspaceChanged(workspaceDir) {
|
|
@@ -972,8 +982,6 @@ var ABOUT_TAB_RELEASE = "about.tab.release";
|
|
|
972
982
|
var ABOUT_TAB_PACKAGES = "about.tab.packages";
|
|
973
983
|
var ABOUT_TAB_ATTRIBUTIONS = "about.tab.attributions";
|
|
974
984
|
var ATTRIBUTION_ECLIPSE_DOCKS = "attribution.eclipse-docks";
|
|
975
|
-
var TOOLBAR_FILEBROWSER_RENAME = "toolbar.filebrowser.rename";
|
|
976
|
-
var TOOLBAR_FILEBROWSER_DELETE = "toolbar.filebrowser.delete";
|
|
977
985
|
var CTXMENU_FILEBROWSER_RENAME = "contextmenu.filebrowser.rename";
|
|
978
986
|
var CTXMENU_FILEBROWSER_DELETE = "contextmenu.filebrowser.delete";
|
|
979
987
|
//#endregion
|
|
@@ -2130,6 +2138,162 @@ _decorate([state()], DocksLogTerminal.prototype, "autoScroll", void 0);
|
|
|
2130
2138
|
_decorate([state()], DocksLogTerminal.prototype, "filter", void 0);
|
|
2131
2139
|
DocksLogTerminal = _decorate([customElement("docks-log-terminal")], DocksLogTerminal);
|
|
2132
2140
|
//#endregion
|
|
2141
|
+
//#region src/components/command.ts
|
|
2142
|
+
var DocksCommand = class DocksCommand extends DocksWidget {
|
|
2143
|
+
constructor(..._args) {
|
|
2144
|
+
super(..._args);
|
|
2145
|
+
this.cmd = "";
|
|
2146
|
+
this.title = "";
|
|
2147
|
+
this.label = false;
|
|
2148
|
+
this.disabled = false;
|
|
2149
|
+
this.appearance = "plain";
|
|
2150
|
+
this.variant = "neutral";
|
|
2151
|
+
this.size = "s";
|
|
2152
|
+
this.params = {};
|
|
2153
|
+
this.withCaret = true;
|
|
2154
|
+
this.placement = "bottom-start";
|
|
2155
|
+
this.dropdownContributions = [];
|
|
2156
|
+
}
|
|
2157
|
+
closeDropdown(dropdown) {
|
|
2158
|
+
if (dropdown && dropdown.open !== void 0) dropdown.open = false;
|
|
2159
|
+
}
|
|
2160
|
+
handleSelect(event) {
|
|
2161
|
+
this.closeDropdown(event.target);
|
|
2162
|
+
}
|
|
2163
|
+
getKeybinding() {
|
|
2164
|
+
if (!this.cmd || this.action) return null;
|
|
2165
|
+
const keybindings = keyBindingManager.getKeyBindingsForCommand(this.cmd);
|
|
2166
|
+
return keybindings.length > 0 ? keybindings[0] : null;
|
|
2167
|
+
}
|
|
2168
|
+
hasLightDomContent() {
|
|
2169
|
+
return Array.from(this.childNodes).some((node) => {
|
|
2170
|
+
if (node.nodeType === Node.TEXT_NODE) return (node.textContent?.trim().length ?? 0) > 0;
|
|
2171
|
+
return node.nodeType === Node.ELEMENT_NODE;
|
|
2172
|
+
});
|
|
2173
|
+
}
|
|
2174
|
+
isIconOnlyDropdownTrigger() {
|
|
2175
|
+
return !this.label && !this.hasLightDomContent();
|
|
2176
|
+
}
|
|
2177
|
+
renderDropdownTriggerIcon(iconSlot) {
|
|
2178
|
+
if (!this.icon) return nothing;
|
|
2179
|
+
return icon(this.icon, {
|
|
2180
|
+
label: this.title,
|
|
2181
|
+
slot: iconSlot
|
|
2182
|
+
});
|
|
2183
|
+
}
|
|
2184
|
+
doBeforeUI() {
|
|
2185
|
+
if (this.dropdown) {
|
|
2186
|
+
this.dropdownContributions = contributionRegistry.getContributions(this.dropdown);
|
|
2187
|
+
subscribe(TOPIC_CONTRIBUTEIONS_CHANGED, (event) => {
|
|
2188
|
+
if (this.dropdown && event.target === this.dropdown) this.dropdownContributions = event.contributions;
|
|
2189
|
+
});
|
|
2190
|
+
}
|
|
2191
|
+
}
|
|
2192
|
+
willUpdate(changedProperties) {
|
|
2193
|
+
super.willUpdate?.(changedProperties);
|
|
2194
|
+
if (this.dropdown && changedProperties.has("dropdown")) this.dropdownContributions = contributionRegistry.getContributions(this.dropdown);
|
|
2195
|
+
}
|
|
2196
|
+
handleToolbarClick(event) {
|
|
2197
|
+
if (this.disabled) return;
|
|
2198
|
+
if (event) event.stopPropagation();
|
|
2199
|
+
if (this.action) {
|
|
2200
|
+
this.action(event);
|
|
2201
|
+
return;
|
|
2202
|
+
}
|
|
2203
|
+
if (this.cmd) this.executeCommand(this.cmd, this.params);
|
|
2204
|
+
}
|
|
2205
|
+
render() {
|
|
2206
|
+
const keybinding = this.getKeybinding();
|
|
2207
|
+
if (this.dropdown) {
|
|
2208
|
+
const iconOnlyTrigger = this.isIconOnlyDropdownTrigger();
|
|
2209
|
+
const iconSlot = iconOnlyTrigger ? void 0 : "start";
|
|
2210
|
+
return html`
|
|
2211
|
+
<wa-dropdown
|
|
2212
|
+
placement=${this.placement}
|
|
2213
|
+
@wa-select=${(e) => this.handleSelect(e)}>
|
|
2214
|
+
<wa-button
|
|
2215
|
+
slot="trigger"
|
|
2216
|
+
appearance=${this.appearance}
|
|
2217
|
+
variant=${this.variant}
|
|
2218
|
+
size=${this.size}
|
|
2219
|
+
?disabled=${this.disabled}
|
|
2220
|
+
?with-caret=${this.withCaret}
|
|
2221
|
+
title=${keybinding ? `${this.title} (${keybinding})` : this.title}>
|
|
2222
|
+
${this.renderDropdownTriggerIcon(iconSlot)}
|
|
2223
|
+
${iconOnlyTrigger ? nothing : html`<slot></slot>`}
|
|
2224
|
+
${this.label ? this.title : nothing}
|
|
2225
|
+
</wa-button>
|
|
2226
|
+
|
|
2227
|
+
${this.title ? html`
|
|
2228
|
+
<h6 style="padding: var(--wa-space-xs) var(--wa-space-s); margin: 0; color: var(--wa-color-neutral-50); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;">
|
|
2229
|
+
${this.title}
|
|
2230
|
+
</h6>
|
|
2231
|
+
` : nothing}
|
|
2232
|
+
|
|
2233
|
+
${this.dropdownContributions.map((c) => renderDropdownContribution(c))}
|
|
2234
|
+
|
|
2235
|
+
${this.cmd ? html`
|
|
2236
|
+
<wa-divider></wa-divider>
|
|
2237
|
+
${renderDropdownItem({
|
|
2238
|
+
cmd: this.cmd,
|
|
2239
|
+
icon: this.icon,
|
|
2240
|
+
label: this.title,
|
|
2241
|
+
params: this.params,
|
|
2242
|
+
disabled: this.disabled
|
|
2243
|
+
})}
|
|
2244
|
+
` : nothing}
|
|
2245
|
+
</wa-dropdown>
|
|
2246
|
+
`;
|
|
2247
|
+
}
|
|
2248
|
+
return html`
|
|
2249
|
+
<wa-button
|
|
2250
|
+
appearance=${this.appearance}
|
|
2251
|
+
variant=${this.variant}
|
|
2252
|
+
size=${this.size}
|
|
2253
|
+
?disabled=${this.disabled}
|
|
2254
|
+
title=${keybinding ? `${this.title} (${keybinding})` : this.title}
|
|
2255
|
+
@click=${(e) => this.handleToolbarClick(e)}>
|
|
2256
|
+
${icon(this.icon, {
|
|
2257
|
+
label: this.title,
|
|
2258
|
+
slot: "start"
|
|
2259
|
+
})}
|
|
2260
|
+
<slot></slot>
|
|
2261
|
+
</wa-button>
|
|
2262
|
+
`;
|
|
2263
|
+
}
|
|
2264
|
+
static {
|
|
2265
|
+
this.styles = css`
|
|
2266
|
+
:host {
|
|
2267
|
+
display: inline-block;
|
|
2268
|
+
}
|
|
2269
|
+
`;
|
|
2270
|
+
}
|
|
2271
|
+
};
|
|
2272
|
+
_decorate([property()], DocksCommand.prototype, "cmd", void 0);
|
|
2273
|
+
_decorate([property({
|
|
2274
|
+
type: Object,
|
|
2275
|
+
attribute: false
|
|
2276
|
+
})], DocksCommand.prototype, "action", void 0);
|
|
2277
|
+
_decorate([property()], DocksCommand.prototype, "title", void 0);
|
|
2278
|
+
_decorate([property()], DocksCommand.prototype, "label", void 0);
|
|
2279
|
+
_decorate([property()], DocksCommand.prototype, "icon", void 0);
|
|
2280
|
+
_decorate([property({ type: Boolean })], DocksCommand.prototype, "disabled", void 0);
|
|
2281
|
+
_decorate([property()], DocksCommand.prototype, "appearance", void 0);
|
|
2282
|
+
_decorate([property()], DocksCommand.prototype, "variant", void 0);
|
|
2283
|
+
_decorate([property()], DocksCommand.prototype, "size", void 0);
|
|
2284
|
+
_decorate([property({
|
|
2285
|
+
type: Object,
|
|
2286
|
+
attribute: false
|
|
2287
|
+
})], DocksCommand.prototype, "params", void 0);
|
|
2288
|
+
_decorate([property()], DocksCommand.prototype, "dropdown", void 0);
|
|
2289
|
+
_decorate([property({
|
|
2290
|
+
type: Boolean,
|
|
2291
|
+
attribute: "with-caret"
|
|
2292
|
+
})], DocksCommand.prototype, "withCaret", void 0);
|
|
2293
|
+
_decorate([property()], DocksCommand.prototype, "placement", void 0);
|
|
2294
|
+
_decorate([state()], DocksCommand.prototype, "dropdownContributions", void 0);
|
|
2295
|
+
DocksCommand = _decorate([customElement("docks-command")], DocksCommand);
|
|
2296
|
+
//#endregion
|
|
2133
2297
|
//#region src/components/fastviews.ts
|
|
2134
2298
|
var t = await i18n(/* @__PURE__ */ Object.assign({
|
|
2135
2299
|
"./fastviews.de.json": () => import("./fastviews.de-BFxFslBz.js"),
|
|
@@ -3860,20 +4024,6 @@ contributionRegistry.registerContribution("filebrowser.create", {
|
|
|
3860
4024
|
label: "Create Folder...",
|
|
3861
4025
|
params: { ask: true }
|
|
3862
4026
|
});
|
|
3863
|
-
contributionRegistry.registerContribution("toolbar:view.filebrowser", {
|
|
3864
|
-
name: "toolbar.filebrowser.rename",
|
|
3865
|
-
command: "mv",
|
|
3866
|
-
icon: "pen",
|
|
3867
|
-
label: "Rename",
|
|
3868
|
-
disabled
|
|
3869
|
-
});
|
|
3870
|
-
contributionRegistry.registerContribution("toolbar:view.filebrowser", {
|
|
3871
|
-
name: "toolbar.filebrowser.delete",
|
|
3872
|
-
command: "rm",
|
|
3873
|
-
icon: "trash",
|
|
3874
|
-
label: "Delete",
|
|
3875
|
-
disabled: deleteDisabled
|
|
3876
|
-
});
|
|
3877
4027
|
contributionRegistry.registerContribution("contextmenu:view.filebrowser", {
|
|
3878
4028
|
name: "contextmenu.filebrowser.create-folder",
|
|
3879
4029
|
command: "mkdir",
|
|
@@ -4486,6 +4636,6 @@ function getFrameworkConfig() {
|
|
|
4486
4636
|
return { ...frameworkConfig };
|
|
4487
4637
|
}
|
|
4488
4638
|
//#endregion
|
|
4489
|
-
export {
|
|
4639
|
+
export { VIEW_LOG_TERMINAL as C, i18n as D, createLazyLabel as E, VIEW_FILEBROWSER as S, editorRegistry as T, TOOLBAR_INFO as _, DocksStandardLayout as a, TOOLBAR_TASKS as b, ABOUT_TAB_RELEASE as c, CTXMENU_FILEBROWSER_RENAME as d, SIDEBAR_TOOLBAR_EXTENSIONS as f, TOOLBAR_FULLSCREEN as g, TOOLBAR_FAST_VIEWS as h, createJsRuntime as i, ATTRIBUTION_ECLIPSE_DOCKS as l, TOOLBAR_ACTIVE_PART_NAME as m, getFrameworkConfig as n, ABOUT_TAB_ATTRIBUTIONS as o, SYSTEM_DEFAULT_FILE_ICONS as p, runJavaScriptCode as r, ABOUT_TAB_PACKAGES as s, configureFramework as t, CTXMENU_FILEBROWSER_DELETE as u, TOOLBAR_LANGUAGE_SELECTOR as v, treeNodeComparator as w, TOOLBAR_THEME_SWITCHER as x, TOOLBAR_LAYOUT_SWITCHER as y };
|
|
4490
4640
|
|
|
4491
|
-
//# sourceMappingURL=api-
|
|
4641
|
+
//# sourceMappingURL=api-Da9zQcfd.js.map
|