@eclipse-docks/core 0.7.125 → 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.
Files changed (51) hide show
  1. package/dist/api/index.js +4 -4
  2. package/dist/api/services.d.ts +3 -0
  3. package/dist/api/services.d.ts.map +1 -1
  4. package/dist/{api-CTU-FxEv.js → api-Da9zQcfd.js} +187 -38
  5. package/dist/api-Da9zQcfd.js.map +1 -0
  6. package/dist/components/command.d.ts +4 -4
  7. package/dist/components/command.d.ts.map +1 -1
  8. package/dist/components/filebrowser.d.ts.map +1 -1
  9. package/dist/components/release-history.d.ts.map +1 -1
  10. package/dist/core/contribution-names.d.ts +0 -2
  11. package/dist/core/contribution-names.d.ts.map +1 -1
  12. package/dist/core/contributionregistry.d.ts +3 -0
  13. package/dist/core/contributionregistry.d.ts.map +1 -1
  14. package/dist/core/dropdown-item.d.ts +35 -0
  15. package/dist/core/dropdown-item.d.ts.map +1 -0
  16. package/dist/core/dropdown-menu-utils.d.ts +5 -0
  17. package/dist/core/dropdown-menu-utils.d.ts.map +1 -1
  18. package/dist/core/markdown-html.d.ts +4 -0
  19. package/dist/core/markdown-html.d.ts.map +1 -0
  20. package/dist/index.js +4 -4
  21. package/dist/parts/contextmenu.d.ts +5 -2
  22. package/dist/parts/contextmenu.d.ts.map +1 -1
  23. package/dist/parts/index.d.ts.map +1 -1
  24. package/dist/parts/index.js +1 -1
  25. package/dist/parts/part.d.ts +2 -0
  26. package/dist/parts/part.d.ts.map +1 -1
  27. package/dist/{parts-BRaXx8PD.js → parts-CRVxaDd-.js} +197 -263
  28. package/dist/parts-CRVxaDd-.js.map +1 -0
  29. package/dist/{widget-DbLusgAH.js → widget-BqQtioK1.js} +11 -5
  30. package/dist/widget-BqQtioK1.js.map +1 -0
  31. package/dist/widgets/index.js +1 -1
  32. package/dist/{widgets-DnnSZhsi.js → widgets-C9V42Mqq.js} +2 -2
  33. package/dist/{widgets-DnnSZhsi.js.map → widgets-C9V42Mqq.js.map} +1 -1
  34. package/package.json +2 -1
  35. package/src/api/services.ts +9 -0
  36. package/src/commands/filebrowser-contributions.ts +0 -16
  37. package/src/components/command.ts +45 -113
  38. package/src/components/filebrowser.ts +15 -12
  39. package/src/components/release-history.ts +2 -4
  40. package/src/core/contribution-names.ts +0 -3
  41. package/src/core/contributionregistry.ts +19 -3
  42. package/src/core/dropdown-item.ts +152 -0
  43. package/src/core/dropdown-menu-utils.ts +59 -0
  44. package/src/core/markdown-html.ts +11 -0
  45. package/src/parts/contextmenu.ts +38 -44
  46. package/src/parts/dialog-content.ts +2 -2
  47. package/src/parts/index.ts +4 -1
  48. package/src/parts/part.ts +2 -0
  49. package/dist/api-CTU-FxEv.js.map +0 -1
  50. package/dist/parts-BRaXx8PD.js.map +0 -1
  51. package/dist/widget-DbLusgAH.js.map +0 -1
package/dist/api/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { A as EDITOR_AREA_MAIN, B as TOOLBAR_BOTTOM_CENTER, C as TOPIC_SETTINGS_CHANGED, D as MouseButton, E as HIDE_DOT_RESOURCE, F as SIDEBAR_MAIN_TOOLBAR, H as TOOLBAR_MAIN, I as SYSTEM_ATTRIBUTIONS, L as SYSTEM_LAYOUTS, M as SIDEBAR_AUXILIARY, N as SIDEBAR_MAIN, P as SIDEBAR_MAIN_BOTTOM, R as SYSTEM_VIEWS, S as taskService, T as COMMAND_SAVE, U as TOOLBAR_MAIN_CENTER, V as TOOLBAR_BOTTOM_END, W as TOOLBAR_MAIN_RIGHT, _ as DocksDialogContent, a as versionInfoDialog, b as extensionRegistry, c as confirmDialog, d as formDialogRequired, f as validateFormDialogFields, g as dialogService, i as parseIconSpec, j as PANEL_BOTTOM, k as ABOUT_TABS, l as infoDialog, m as appLoaderService, n as DocksContainer, o as filebrowserDialog, p as promptDialog, r as icon, s as navigableInfoDialog, t as DocksPart, u as formDialog, v as DocksElement, w as appSettings, x as esmShService, z as TOOLBAR_BOTTOM } from "../parts-BRaXx8PD.js";
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 toastError, S as overrideContributionTargets, T as toastWarning, a as TOPIC_COMMAND_REGISTERED, b as contributionTargetMappingRegistry, 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 toastInfo, x as listContributionNameRemaps, y as applyConfigNameRemaps } from "../widget-DbLusgAH.js";
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 TOOLBAR_THEME_SWITCHER, D as editorRegistry, E as treeNodeComparator, O as createLazyLabel, S as TOOLBAR_TASKS, T as VIEW_LOG_TERMINAL, _ as TOOLBAR_FILEBROWSER_RENAME, a as DocksStandardLayout, b as TOOLBAR_LANGUAGE_SELECTOR, c as ABOUT_TAB_RELEASE, d as CTXMENU_FILEBROWSER_RENAME, f as SIDEBAR_TOOLBAR_EXTENSIONS, g as TOOLBAR_FILEBROWSER_DELETE, h as TOOLBAR_FAST_VIEWS, i as createJsRuntime, k as i18n, 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_FULLSCREEN, w as VIEW_FILEBROWSER, x as TOOLBAR_LAYOUT_SWITCHER, y as TOOLBAR_INFO } from "../api-CTU-FxEv.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_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, formDialog, formDialogRequired, 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, validateFormDialogFields, versionInfoDialog, watchSignal, workspaceService };
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 };
@@ -27,4 +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';
32
+ export { sanitizeHtml, parseMarkdownHtml } from '../core/markdown-html';
30
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,k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,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EACH,iCAAiC,EACjC,2BAA2B,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,13 +1,12 @@
1
- import { A as EDITOR_AREA_MAIN, B as TOOLBAR_BOTTOM_CENTER, C as TOPIC_SETTINGS_CHANGED, F as SIDEBAR_MAIN_TOOLBAR, H as TOOLBAR_MAIN, I as SYSTEM_ATTRIBUTIONS, L as SYSTEM_LAYOUTS, M as SIDEBAR_AUXILIARY, N as SIDEBAR_MAIN, O as constants_exports, P as SIDEBAR_MAIN_BOTTOM, S as taskService, U as TOOLBAR_MAIN_CENTER, V as TOOLBAR_BOTTOM_END, W as TOOLBAR_MAIN_RIGHT, a as versionInfoDialog, b as extensionRegistry, c as confirmDialog, h as deleteIndexedDbWorkspaceData, j as PANEL_BOTTOM, k as ABOUT_TABS, m as appLoaderService, n as DocksContainer, o as filebrowserDialog, p as promptDialog, r as icon, t as DocksPart, v as DocksElement, w as appSettings, x as esmShService, y as TOPIC_EXTENSIONS_CHANGED, z as TOOLBAR_BOTTOM } from "./parts-BRaXx8PD.js";
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 { C as toastError, T as toastWarning, 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 toastInfo } from "./widget-DbLusgAH.js";
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-DnnSZhsi.js";
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";
10
- import { marked } from "marked";
11
10
  import { customElement, property, state } from "lit/decorators.js";
12
11
  import _decorate from "@oxc-project/runtime/helpers/decorate";
13
12
  import { createRef, ref } from "lit/directives/ref.js";
@@ -361,7 +360,6 @@ var DocksFileBrowser = class DocksFileBrowser extends DocksPart {
361
360
  renderToolbar() {
362
361
  return html`
363
362
  <docks-command icon="folder-open" title="${t$6.CONNECT_WORKSPACE}" dropdown="filebrowser.connections"></docks-command>
364
- <docks-command cmd="refresh_resource" icon="repeat" title="${t$6.REFRESH_RESOURCE}"></docks-command>
365
363
  <docks-command icon="docks file-plus" title="${t$6.CREATE_NEW}" dropdown="filebrowser.create"></docks-command>
366
364
  `;
367
365
  }
@@ -371,26 +369,37 @@ var DocksFileBrowser = class DocksFileBrowser extends DocksPart {
371
369
  const editorOptions = file ? editorRegistry.getEditorOptionsForInput(file) : [];
372
370
  const hasOpenWith = editorOptions.length > 0;
373
371
  return html`
374
- <docks-command cmd="open_editor" icon="folder-open">${t$6.OPEN}</docks-command>
372
+ ${renderDropdownItem({
373
+ cmd: "open_editor",
374
+ icon: "folder-open",
375
+ label: t$6.OPEN
376
+ })}
375
377
  ${hasOpenWith ? html`
376
378
  <wa-dropdown-item>
377
379
  ${icon("folder-open", { slot: "icon" })}
378
380
  ${t$6.OPEN_WITH}
379
- ${editorOptions.map((opt) => html`
380
- <docks-command
381
- slot="submenu"
382
- cmd="open_editor"
383
- icon="${opt.icon ?? "file"}"
384
- .params=${{
385
- path: file.getWorkspacePath(),
386
- editorId: opt.editorId
387
- }}>
388
- ${opt.title}
389
- </docks-command>
390
- `)}
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
+ }))}
391
391
  </wa-dropdown-item>
392
392
  ` : nothing}
393
- <docks-command icon="docks file-plus" dropdown="filebrowser.create">${t$6.CREATE_NEW}</docks-command>
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
+ })}
394
403
  `;
395
404
  }
396
405
  onWorkspaceChanged(workspaceDir) {
@@ -973,8 +982,6 @@ var ABOUT_TAB_RELEASE = "about.tab.release";
973
982
  var ABOUT_TAB_PACKAGES = "about.tab.packages";
974
983
  var ABOUT_TAB_ATTRIBUTIONS = "about.tab.attributions";
975
984
  var ATTRIBUTION_ECLIPSE_DOCKS = "attribution.eclipse-docks";
976
- var TOOLBAR_FILEBROWSER_RENAME = "toolbar.filebrowser.rename";
977
- var TOOLBAR_FILEBROWSER_DELETE = "toolbar.filebrowser.delete";
978
985
  var CTXMENU_FILEBROWSER_RENAME = "contextmenu.filebrowser.rename";
979
986
  var CTXMENU_FILEBROWSER_DELETE = "contextmenu.filebrowser.delete";
980
987
  //#endregion
@@ -2131,6 +2138,162 @@ _decorate([state()], DocksLogTerminal.prototype, "autoScroll", void 0);
2131
2138
  _decorate([state()], DocksLogTerminal.prototype, "filter", void 0);
2132
2139
  DocksLogTerminal = _decorate([customElement("docks-log-terminal")], DocksLogTerminal);
2133
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
2134
2297
  //#region src/components/fastviews.ts
2135
2298
  var t = await i18n(/* @__PURE__ */ Object.assign({
2136
2299
  "./fastviews.de.json": () => import("./fastviews.de-BFxFslBz.js"),
@@ -2649,7 +2812,7 @@ var DocksReleaseHistory = class DocksReleaseHistory extends DocksPart {
2649
2812
  const showUpdateHint = !isCurrent && isNewerThan(release.tag_name, this.appVersion);
2650
2813
  const atOldest = this.currentReleaseIndex === this.releases.length - 1;
2651
2814
  const atNewest = this.currentReleaseIndex === 0;
2652
- const bodyHtml = release.body ? marked.parse(release.body, { async: false }) : "";
2815
+ const bodyHtml = release.body ? parseMarkdownHtml(release.body) : "";
2653
2816
  return html`
2654
2817
  <div class="release-panel">
2655
2818
  <p>
@@ -3861,20 +4024,6 @@ contributionRegistry.registerContribution("filebrowser.create", {
3861
4024
  label: "Create Folder...",
3862
4025
  params: { ask: true }
3863
4026
  });
3864
- contributionRegistry.registerContribution("toolbar:view.filebrowser", {
3865
- name: "toolbar.filebrowser.rename",
3866
- command: "mv",
3867
- icon: "pen",
3868
- label: "Rename",
3869
- disabled
3870
- });
3871
- contributionRegistry.registerContribution("toolbar:view.filebrowser", {
3872
- name: "toolbar.filebrowser.delete",
3873
- command: "rm",
3874
- icon: "trash",
3875
- label: "Delete",
3876
- disabled: deleteDisabled
3877
- });
3878
4027
  contributionRegistry.registerContribution("contextmenu:view.filebrowser", {
3879
4028
  name: "contextmenu.filebrowser.create-folder",
3880
4029
  command: "mkdir",
@@ -4487,6 +4636,6 @@ function getFrameworkConfig() {
4487
4636
  return { ...frameworkConfig };
4488
4637
  }
4489
4638
  //#endregion
4490
- export { TOOLBAR_THEME_SWITCHER as C, editorRegistry as D, treeNodeComparator as E, createLazyLabel as O, TOOLBAR_TASKS as S, VIEW_LOG_TERMINAL as T, TOOLBAR_FILEBROWSER_RENAME as _, DocksStandardLayout as a, TOOLBAR_LANGUAGE_SELECTOR as b, ABOUT_TAB_RELEASE as c, CTXMENU_FILEBROWSER_RENAME as d, SIDEBAR_TOOLBAR_EXTENSIONS as f, TOOLBAR_FILEBROWSER_DELETE as g, TOOLBAR_FAST_VIEWS as h, createJsRuntime as i, i18n as k, 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_FULLSCREEN as v, VIEW_FILEBROWSER as w, TOOLBAR_LAYOUT_SWITCHER as x, TOOLBAR_INFO as y };
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 };
4491
4640
 
4492
- //# sourceMappingURL=api-CTU-FxEv.js.map
4641
+ //# sourceMappingURL=api-Da9zQcfd.js.map