@eclipse-docks/core 0.7.122 → 0.7.125
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-N5AbUtyH.js → api-CTU-FxEv.js} +35 -21
- package/dist/api-CTU-FxEv.js.map +1 -0
- package/dist/components/command.d.ts +2 -2
- package/dist/components/command.d.ts.map +1 -1
- package/dist/components/fastviews.d.ts +1 -1
- package/dist/components/fastviews.d.ts.map +1 -1
- package/dist/components/filebrowser.d.ts +3 -1
- package/dist/components/filebrowser.d.ts.map +1 -1
- package/dist/core/commandregistry.d.ts +2 -2
- package/dist/core/commandregistry.d.ts.map +1 -1
- package/dist/core/dropdown-menu-utils.d.ts +9 -0
- package/dist/core/dropdown-menu-utils.d.ts.map +1 -0
- package/dist/core/toast.d.ts.map +1 -1
- package/dist/externals/webawesome.d.ts.map +1 -1
- package/dist/externals/webawesome.js +1 -1
- package/dist/fs-access-CzOh5ot8.js +2 -0
- package/dist/{fs-access-D-fDaJ8V.js → fs-access-DTXPsV1W.js} +2 -2
- package/dist/{fs-access-D-fDaJ8V.js.map → fs-access-DTXPsV1W.js.map} +1 -1
- package/dist/index.js +4 -4
- package/dist/parts/contextmenu.d.ts +5 -4
- package/dist/parts/contextmenu.d.ts.map +1 -1
- package/dist/parts/index.js +1 -1
- package/dist/parts/tabs.d.ts +2 -2
- package/dist/parts/tabs.d.ts.map +1 -1
- package/dist/parts/toolbar.d.ts +2 -1
- package/dist/parts/toolbar.d.ts.map +1 -1
- package/dist/{parts-BvITdiV3.js → parts-BRaXx8PD.js} +95 -46
- package/dist/parts-BRaXx8PD.js.map +1 -0
- package/dist/{webawesome-CJyhVNu_.js → webawesome-Y1_HnKa_.js} +11 -1
- package/dist/{webawesome-CJyhVNu_.js.map → webawesome-Y1_HnKa_.js.map} +1 -1
- package/dist/{widget-DFbJNLqB.js → widget-DbLusgAH.js} +21 -27
- package/dist/widget-DbLusgAH.js.map +1 -0
- package/dist/widgets/index.js +1 -1
- package/dist/{widgets-CuO5lmjL.js → widgets-DnnSZhsi.js} +2 -2
- package/dist/{widgets-CuO5lmjL.js.map → widgets-DnnSZhsi.js.map} +1 -1
- package/package.json +5 -6
- package/src/components/command.ts +23 -9
- package/src/components/extensions.ts +2 -2
- package/src/components/fastviews.ts +1 -1
- package/src/components/filebrowser.ts +25 -10
- package/src/components/language-selector.ts +1 -1
- package/src/components/layout-switcher.ts +2 -2
- package/src/components/part-name.ts +1 -1
- package/src/core/commandregistry.ts +2 -2
- package/src/core/dropdown-menu-utils.ts +39 -0
- package/src/core/toast.ts +31 -8
- package/src/externals/webawesome.ts +10 -0
- package/src/layouts/standard-layout.ts +2 -2
- package/src/parts/contextmenu.ts +35 -9
- package/src/parts/part.ts +2 -2
- package/src/parts/tabs.ts +10 -10
- package/src/parts/toolbar.ts +5 -3
- package/src/vite-env.d.ts +0 -14
- package/dist/api-N5AbUtyH.js.map +0 -1
- package/dist/fs-access-CnQJX8W1.js +0 -2
- package/dist/parts-BvITdiV3.js.map +0 -1
- package/dist/widget-DFbJNLqB.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../src/parts/toolbar.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AAEvC,OAAO,EAEH,YAAY,EAOf,MAAM,8BAA8B,CAAC;AAiCtC,qBACa,YAAa,SAAQ,YAAY;IAE1C,OAAO,CAAC,QAAQ,CAAuC;IAGvD,WAAW,EAAE,YAAY,GAAG,UAAU,CAAgB;IAGtD,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAW;IAG5C,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../src/parts/toolbar.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AAEvC,OAAO,EAEH,YAAY,EAOf,MAAM,8BAA8B,CAAC;AAiCtC,qBACa,YAAa,SAAQ,YAAY;IAE1C,OAAO,CAAC,QAAQ,CAAuC;IAGvD,WAAW,EAAE,YAAY,GAAG,UAAU,CAAgB;IAGtD,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAW;IAG5C,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAO;IAG5B,WAAW,EAAE,MAAM,EAAE,CAAM;IAGpB,kBAAkB,CAAC,EAAE,GAAG,CAAa;IAGrC,mBAAmB,CAAC,EAAE,MAAM,GAAG,CAAa;IAGnD,OAAO,CAAC,aAAa,CAAsB;IAG3C,OAAO,CAAC,OAAO,CAAS;IAExB,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,mBAAmB,CAA8C;IACzE,OAAO,CAAC,sBAAsB,CAAS;IAEvC,OAAO,CAAC,sBAAsB;IAS9B,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,QAAQ,CAMd;IAEF,iBAAiB;IAMjB,oBAAoB;IAUpB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAK/C,SAAS,CAAC,UAAU,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAO5D,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAO/E,SAAS,CAAC,UAAU;IAcpB,OAAO,CAAC,oBAAoB;IAU5B,OAAO,CAAC,aAAa;IAmBrB,OAAO,CAAC,iBAAiB;IAuBzB,OAAO,CAAC,aAAa;IAIrB,mBAAmB,CAAC,YAAY,EAAE,YAAY;IAwB9C,MAAM;IAqBN,MAAM,CAAC,MAAM,0BAgBZ;CACJ;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,eAAe,EAAE,YAAY,CAAA;KAChC;CACJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as defaultLogger, o as rootContext, s as uiContext, t as createLogger } from "./logger-DT0_NW3S.js";
|
|
2
|
-
import { C as toastError, _ as getContributionDisabled, a as TOPIC_COMMAND_REGISTERED, b as contributionTargetMappingRegistry, f as activeTasksSignal, g as contributionRegistry, h as TOPIC_CONTRIBUTEIONS_CHANGED, l as activeEditorSignal, n as watchSignal, o as commandRegistry, p as partDirtySignal, t as DocksWidget, u as activePartSignal, v as getContributionVisible, w as toastInfo } from "./widget-
|
|
2
|
+
import { C as toastError, _ as getContributionDisabled, a as TOPIC_COMMAND_REGISTERED, b as contributionTargetMappingRegistry, f as activeTasksSignal, g as contributionRegistry, h as TOPIC_CONTRIBUTEIONS_CHANGED, l as activeEditorSignal, n as watchSignal, o as commandRegistry, p as partDirtySignal, t as DocksWidget, u as activePartSignal, v as getContributionVisible, w as toastInfo } from "./widget-DbLusgAH.js";
|
|
3
3
|
import { n as subscribe, t as publish } from "./events-B_ZxkU_G.js";
|
|
4
|
-
import { a as File,
|
|
5
|
-
import "./webawesome-
|
|
4
|
+
import { a as File, i as Directory, l as TOPIC_WORKSPACE_CHANGED, m as persistenceService, o as FileContentType, p as workspaceService } from "./fs-access-DTXPsV1W.js";
|
|
5
|
+
import "./webawesome-Y1_HnKa_.js";
|
|
6
6
|
import { css, html, nothing, render } from "lit";
|
|
7
7
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
8
8
|
import { marked } from "marked";
|
|
@@ -1288,13 +1288,13 @@ workspaceService.registerContribution({
|
|
|
1288
1288
|
},
|
|
1289
1289
|
async connect(_input) {
|
|
1290
1290
|
const root = await getOPFSRoot();
|
|
1291
|
-
const FileSysDirHandleResource = (await import("./fs-access-
|
|
1291
|
+
const FileSysDirHandleResource = (await import("./fs-access-CzOh5ot8.js")).FileSysDirHandleResource;
|
|
1292
1292
|
return new OPFSRootDirectory(new FileSysDirHandleResource(root));
|
|
1293
1293
|
},
|
|
1294
1294
|
async restore(data) {
|
|
1295
1295
|
if (data && typeof data === "object" && data.opfs === true) {
|
|
1296
1296
|
const root = await getOPFSRoot();
|
|
1297
|
-
const FileSysDirHandleResource = (await import("./fs-access-
|
|
1297
|
+
const FileSysDirHandleResource = (await import("./fs-access-CzOh5ot8.js")).FileSysDirHandleResource;
|
|
1298
1298
|
return new OPFSRootDirectory(new FileSysDirHandleResource(root));
|
|
1299
1299
|
}
|
|
1300
1300
|
},
|
|
@@ -3080,7 +3080,7 @@ var DocksToolbar = class DocksToolbar extends DocksElement {
|
|
|
3080
3080
|
this.position = "start";
|
|
3081
3081
|
this.orientation = "horizontal";
|
|
3082
3082
|
this.align = "start";
|
|
3083
|
-
this.size = "
|
|
3083
|
+
this.size = "s";
|
|
3084
3084
|
this.scopeTokens = [];
|
|
3085
3085
|
this.partToolbarContent = void 0;
|
|
3086
3086
|
this.partToolbarRenderer = void 0;
|
|
@@ -3101,10 +3101,7 @@ var DocksToolbar = class DocksToolbar extends DocksElement {
|
|
|
3101
3101
|
const toolbarItems = this.shadowRoot?.querySelector(".toolbar-items");
|
|
3102
3102
|
if (!toolbarItems) return;
|
|
3103
3103
|
const trimmed = toolbarItems.scrollWidth > toolbarItems.clientWidth;
|
|
3104
|
-
if (this.compact !== trimmed)
|
|
3105
|
-
this.compact = trimmed;
|
|
3106
|
-
this.requestUpdate();
|
|
3107
|
-
}
|
|
3104
|
+
if (this.compact !== trimmed) this.compact = trimmed;
|
|
3108
3105
|
}
|
|
3109
3106
|
scheduleOverflowCheck() {
|
|
3110
3107
|
if (this.overflowCheckScheduled) return;
|
|
@@ -3131,6 +3128,9 @@ var DocksToolbar = class DocksToolbar extends DocksElement {
|
|
|
3131
3128
|
updated(changedProperties) {
|
|
3132
3129
|
super.updated?.(changedProperties);
|
|
3133
3130
|
if (!this.compact) this.scheduleOverflowCheck();
|
|
3131
|
+
}
|
|
3132
|
+
willUpdate(changedProperties) {
|
|
3133
|
+
super.willUpdate?.(changedProperties);
|
|
3134
3134
|
if (changedProperties.has("scopeTokens")) this.refreshContributions();
|
|
3135
3135
|
}
|
|
3136
3136
|
attributeChangedCallback(name, old, value) {
|
|
@@ -3142,10 +3142,7 @@ var DocksToolbar = class DocksToolbar extends DocksElement {
|
|
|
3142
3142
|
subscribe(TOPIC_CONTRIBUTEIONS_CHANGED, (event) => {
|
|
3143
3143
|
const id = this.getAttribute("id");
|
|
3144
3144
|
if (!id) return;
|
|
3145
|
-
if (this.matchesTarget(id, event.target))
|
|
3146
|
-
this.refreshContributions();
|
|
3147
|
-
this.requestUpdate();
|
|
3148
|
-
}
|
|
3145
|
+
if (this.matchesTarget(id, event.target)) this.refreshContributions();
|
|
3149
3146
|
});
|
|
3150
3147
|
}
|
|
3151
3148
|
refreshContributions() {
|
|
@@ -3267,6 +3264,29 @@ _decorate([state()], DocksToolbar.prototype, "contributions", void 0);
|
|
|
3267
3264
|
_decorate([state()], DocksToolbar.prototype, "compact", void 0);
|
|
3268
3265
|
DocksToolbar = _decorate([customElement("docks-toolbar")], DocksToolbar);
|
|
3269
3266
|
//#endregion
|
|
3267
|
+
//#region src/core/dropdown-menu-utils.ts
|
|
3268
|
+
function visitElementTree(root, visit) {
|
|
3269
|
+
if (root instanceof Element) {
|
|
3270
|
+
visit(root);
|
|
3271
|
+
if (root.shadowRoot) visitElementTree(root.shadowRoot, visit);
|
|
3272
|
+
for (const child of root.children) visitElementTree(child, visit);
|
|
3273
|
+
} else if (root instanceof DocumentFragment) for (const child of root.children) visitElementTree(child, visit);
|
|
3274
|
+
}
|
|
3275
|
+
/** Collect wa-dropdown-item elements under a menu root, including shadow DOM. */
|
|
3276
|
+
function collectDropdownItems(root) {
|
|
3277
|
+
const items = [];
|
|
3278
|
+
visitElementTree(root, (element) => {
|
|
3279
|
+
if (element.localName === "wa-dropdown-item") items.push(element);
|
|
3280
|
+
});
|
|
3281
|
+
return items;
|
|
3282
|
+
}
|
|
3283
|
+
/** Close every open submenu except the one being activated. */
|
|
3284
|
+
function closeSiblingSubmenus(activeItem, menuRoot) {
|
|
3285
|
+
queueMicrotask(() => {
|
|
3286
|
+
for (const item of collectDropdownItems(menuRoot)) if (item !== activeItem && item.submenuOpen) item.submenuOpen = false;
|
|
3287
|
+
});
|
|
3288
|
+
}
|
|
3289
|
+
//#endregion
|
|
3270
3290
|
//#region src/components/command.ts
|
|
3271
3291
|
var DocksCommand = class DocksCommand extends DocksWidget {
|
|
3272
3292
|
constructor(..._args) {
|
|
@@ -3277,7 +3297,7 @@ var DocksCommand = class DocksCommand extends DocksWidget {
|
|
|
3277
3297
|
this.disabled = false;
|
|
3278
3298
|
this.appearance = "plain";
|
|
3279
3299
|
this.variant = "neutral";
|
|
3280
|
-
this.size = "
|
|
3300
|
+
this.size = "s";
|
|
3281
3301
|
this.params = {};
|
|
3282
3302
|
this.withCaret = true;
|
|
3283
3303
|
this.placement = "bottom-start";
|
|
@@ -3312,27 +3332,24 @@ var DocksCommand = class DocksCommand extends DocksWidget {
|
|
|
3312
3332
|
}
|
|
3313
3333
|
doBeforeUI() {
|
|
3314
3334
|
if (this.dropdown) {
|
|
3315
|
-
this.
|
|
3335
|
+
this.dropdownContributions = contributionRegistry.getContributions(this.dropdown);
|
|
3316
3336
|
subscribe(TOPIC_CONTRIBUTEIONS_CHANGED, (event) => {
|
|
3317
|
-
if (this.dropdown && event.target === this.dropdown)
|
|
3318
|
-
this.dropdownContributions = event.contributions;
|
|
3319
|
-
this.requestUpdate();
|
|
3320
|
-
}
|
|
3337
|
+
if (this.dropdown && event.target === this.dropdown) this.dropdownContributions = event.contributions;
|
|
3321
3338
|
});
|
|
3322
3339
|
}
|
|
3323
3340
|
}
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
this.dropdownContributions = contributionRegistry.getContributions(this.dropdown);
|
|
3327
|
-
this.requestUpdate();
|
|
3341
|
+
willUpdate(changedProperties) {
|
|
3342
|
+
super.willUpdate?.(changedProperties);
|
|
3343
|
+
if (this.dropdown && changedProperties.has("dropdown")) this.dropdownContributions = contributionRegistry.getContributions(this.dropdown);
|
|
3328
3344
|
}
|
|
3329
|
-
renderContribution(contribution) {
|
|
3345
|
+
renderContribution(contribution, slot) {
|
|
3330
3346
|
if ("command" in contribution) {
|
|
3331
3347
|
const commandContribution = contribution;
|
|
3332
3348
|
if (!getContributionVisible(commandContribution)) return nothing;
|
|
3333
3349
|
const disabled = getContributionDisabled(commandContribution);
|
|
3334
3350
|
return html`
|
|
3335
3351
|
<docks-command
|
|
3352
|
+
slot=${slot ?? nothing}
|
|
3336
3353
|
cmd="${commandContribution.command}"
|
|
3337
3354
|
icon="${commandContribution.icon || ""}"
|
|
3338
3355
|
.params=${commandContribution.params || {}}
|
|
@@ -3350,6 +3367,16 @@ var DocksCommand = class DocksCommand extends DocksWidget {
|
|
|
3350
3367
|
}
|
|
3351
3368
|
render() {
|
|
3352
3369
|
const keybinding = this.getKeybinding();
|
|
3370
|
+
if (this.isInDropdown() && this.dropdown) return html`
|
|
3371
|
+
<wa-dropdown-item ?disabled=${this.disabled}>
|
|
3372
|
+
${icon(this.icon, {
|
|
3373
|
+
label: this.title,
|
|
3374
|
+
slot: "icon"
|
|
3375
|
+
})}
|
|
3376
|
+
<slot></slot>
|
|
3377
|
+
${this.dropdownContributions.map((c) => this.renderContribution(c, "submenu"))}
|
|
3378
|
+
</wa-dropdown-item>
|
|
3379
|
+
`;
|
|
3353
3380
|
if (this.isInDropdown()) return html`
|
|
3354
3381
|
<wa-dropdown-item
|
|
3355
3382
|
?disabled=${this.disabled}
|
|
@@ -3483,6 +3510,12 @@ var DocksContextMenu = class DocksContextMenu extends DocksElement {
|
|
|
3483
3510
|
this.anchorRef = createRef();
|
|
3484
3511
|
this.dropdownRef = createRef();
|
|
3485
3512
|
this.boundHandleDocumentPointerDown = this.handleDocumentPointerDown.bind(this);
|
|
3513
|
+
this.handleSubmenuOpening = (event) => {
|
|
3514
|
+
const dropdown = this.dropdownRef.value;
|
|
3515
|
+
const activeItem = event.detail?.item;
|
|
3516
|
+
if (!dropdown || !activeItem) return;
|
|
3517
|
+
closeSiblingSubmenus(activeItem, dropdown);
|
|
3518
|
+
};
|
|
3486
3519
|
}
|
|
3487
3520
|
/**
|
|
3488
3521
|
* "Click outside to close" runs in capture phase before the target's click.
|
|
@@ -3513,8 +3546,8 @@ var DocksContextMenu = class DocksContextMenu extends DocksElement {
|
|
|
3513
3546
|
}
|
|
3514
3547
|
});
|
|
3515
3548
|
}
|
|
3516
|
-
|
|
3517
|
-
super.
|
|
3549
|
+
willUpdate(changedProperties) {
|
|
3550
|
+
super.willUpdate?.(changedProperties);
|
|
3518
3551
|
if (changedProperties.has("scopeTokens")) this.refreshContributions();
|
|
3519
3552
|
}
|
|
3520
3553
|
attributeChangedCallback(name, old, value) {
|
|
@@ -3588,6 +3621,11 @@ var DocksContextMenu = class DocksContextMenu extends DocksElement {
|
|
|
3588
3621
|
}
|
|
3589
3622
|
return element;
|
|
3590
3623
|
}
|
|
3624
|
+
getHostPart() {
|
|
3625
|
+
const root = this.getRootNode();
|
|
3626
|
+
if (root instanceof ShadowRoot && root.host instanceof HTMLElement) return root.host;
|
|
3627
|
+
return null;
|
|
3628
|
+
}
|
|
3591
3629
|
/**
|
|
3592
3630
|
* Triggers a click on the element under the cursor to update selection before showing context menu.
|
|
3593
3631
|
*/
|
|
@@ -3611,17 +3649,24 @@ var DocksContextMenu = class DocksContextMenu extends DocksElement {
|
|
|
3611
3649
|
}
|
|
3612
3650
|
}
|
|
3613
3651
|
/** Opens the menu at `position`. Returns false when there is nothing to show (no thin empty panel). */
|
|
3614
|
-
show(position, mouseEvent) {
|
|
3652
|
+
async show(position, mouseEvent) {
|
|
3615
3653
|
if (!this.hasMenuBody()) return false;
|
|
3616
|
-
if (mouseEvent)
|
|
3654
|
+
if (mouseEvent) {
|
|
3655
|
+
this.triggerClickUnderCursor(mouseEvent);
|
|
3656
|
+
await this.getHostPart()?.updateComplete;
|
|
3657
|
+
}
|
|
3658
|
+
if (this.isOpen) {
|
|
3659
|
+
this.isOpen = false;
|
|
3660
|
+
await this.updateComplete;
|
|
3661
|
+
}
|
|
3617
3662
|
this.position = position;
|
|
3618
3663
|
this.isOpen = true;
|
|
3619
|
-
this.updateComplete
|
|
3620
|
-
|
|
3621
|
-
});
|
|
3664
|
+
await this.updateComplete;
|
|
3665
|
+
document.addEventListener("pointerdown", this.boundHandleDocumentPointerDown, { capture: true });
|
|
3622
3666
|
return true;
|
|
3623
3667
|
}
|
|
3624
3668
|
onClose() {
|
|
3669
|
+
if (!this.isOpen) return;
|
|
3625
3670
|
this.isOpen = false;
|
|
3626
3671
|
document.removeEventListener("pointerdown", this.boundHandleDocumentPointerDown, { capture: true });
|
|
3627
3672
|
}
|
|
@@ -3647,12 +3692,12 @@ var DocksContextMenu = class DocksContextMenu extends DocksElement {
|
|
|
3647
3692
|
return nothing;
|
|
3648
3693
|
}
|
|
3649
3694
|
render() {
|
|
3650
|
-
if (!this.isOpen) return nothing;
|
|
3651
3695
|
const partContent = this.partContextMenuRenderer ? this.partContextMenuRenderer() : nothing;
|
|
3652
3696
|
return html`
|
|
3653
3697
|
<wa-dropdown
|
|
3654
3698
|
${ref(this.dropdownRef)}
|
|
3655
3699
|
?open=${this.isOpen}
|
|
3700
|
+
@submenu-opening=${this.handleSubmenuOpening}
|
|
3656
3701
|
@wa-after-hide=${this.onClose}>
|
|
3657
3702
|
|
|
3658
3703
|
<div
|
|
@@ -3684,9 +3729,13 @@ var DocksContextMenu = class DocksContextMenu extends DocksElement {
|
|
|
3684
3729
|
}
|
|
3685
3730
|
|
|
3686
3731
|
wa-dropdown {
|
|
3687
|
-
pointer-events:
|
|
3732
|
+
pointer-events: none;
|
|
3688
3733
|
min-width: 200px;
|
|
3689
3734
|
}
|
|
3735
|
+
|
|
3736
|
+
wa-dropdown:state(open) {
|
|
3737
|
+
pointer-events: auto;
|
|
3738
|
+
}
|
|
3690
3739
|
|
|
3691
3740
|
wa-dropdown::part(menu) {
|
|
3692
3741
|
min-width: 200px;
|
|
@@ -3711,10 +3760,10 @@ var DocksPart = class DocksPart extends DocksContainer {
|
|
|
3711
3760
|
this.scrollMode = "scroller";
|
|
3712
3761
|
this.dirty = false;
|
|
3713
3762
|
this.isEditor = false;
|
|
3714
|
-
this.onContentContextMenu = (event) => {
|
|
3763
|
+
this.onContentContextMenu = async (event) => {
|
|
3715
3764
|
const contextMenu = this.renderRoot.querySelector("docks-contextmenu");
|
|
3716
3765
|
if (!contextMenu) return;
|
|
3717
|
-
if (contextMenu.show({
|
|
3766
|
+
if (await contextMenu.show({
|
|
3718
3767
|
x: event.clientX,
|
|
3719
3768
|
y: event.clientY
|
|
3720
3769
|
}, event)) event.preventDefault();
|
|
@@ -3979,7 +4028,7 @@ var DocksTabs = class DocksTabs extends DocksContainer {
|
|
|
3979
4028
|
this.iconOnly = false;
|
|
3980
4029
|
this.withToolbar = false;
|
|
3981
4030
|
this.hideTabs = false;
|
|
3982
|
-
this.itemSize = "
|
|
4031
|
+
this.itemSize = "m";
|
|
3983
4032
|
this.contributions = [];
|
|
3984
4033
|
this.tabGroup = createRef();
|
|
3985
4034
|
this.containerId = null;
|
|
@@ -4357,12 +4406,12 @@ var DocksTabs = class DocksTabs extends DocksContainer {
|
|
|
4357
4406
|
font-size: var(--wa-font-size-s);
|
|
4358
4407
|
}
|
|
4359
4408
|
|
|
4360
|
-
:host([item-size="
|
|
4409
|
+
:host([item-size="s"]) wa-tab::part(base) {
|
|
4361
4410
|
padding: 2px 0.375rem;
|
|
4362
4411
|
font-size: var(--wa-font-size-xs);
|
|
4363
4412
|
}
|
|
4364
4413
|
|
|
4365
|
-
:host([item-size="
|
|
4414
|
+
:host([item-size="l"]) wa-tab::part(base) {
|
|
4366
4415
|
padding: var(--wa-space-s) 0.75rem;
|
|
4367
4416
|
font-size: var(--wa-font-size-m);
|
|
4368
4417
|
}
|
|
@@ -4375,11 +4424,11 @@ var DocksTabs = class DocksTabs extends DocksContainer {
|
|
|
4375
4424
|
padding: var(--wa-space-s);
|
|
4376
4425
|
}
|
|
4377
4426
|
|
|
4378
|
-
:host([icon-only][item-size="
|
|
4427
|
+
:host([icon-only][item-size="s"]:is([placement="top"], [placement="bottom"])) wa-tab::part(base) {
|
|
4379
4428
|
padding: var(--wa-space-xs);
|
|
4380
4429
|
}
|
|
4381
4430
|
|
|
4382
|
-
:host([icon-only][item-size="
|
|
4431
|
+
:host([icon-only][item-size="l"]:is([placement="top"], [placement="bottom"])) wa-tab::part(base) {
|
|
4383
4432
|
padding: var(--wa-space-m);
|
|
4384
4433
|
}
|
|
4385
4434
|
|
|
@@ -4388,11 +4437,11 @@ var DocksTabs = class DocksTabs extends DocksContainer {
|
|
|
4388
4437
|
padding-block: var(--wa-space-s);
|
|
4389
4438
|
}
|
|
4390
4439
|
|
|
4391
|
-
:host([icon-only][item-size="
|
|
4440
|
+
:host([icon-only][item-size="s"]:is([placement="start"], [placement="end"])) wa-tab::part(base) {
|
|
4392
4441
|
padding-block: var(--wa-space-xs);
|
|
4393
4442
|
}
|
|
4394
4443
|
|
|
4395
|
-
:host([icon-only][item-size="
|
|
4444
|
+
:host([icon-only][item-size="l"]:is([placement="start"], [placement="end"])) wa-tab::part(base) {
|
|
4396
4445
|
padding-block: var(--wa-space-m);
|
|
4397
4446
|
}
|
|
4398
4447
|
|
|
@@ -4400,11 +4449,11 @@ var DocksTabs = class DocksTabs extends DocksContainer {
|
|
|
4400
4449
|
font-size: var(--wa-font-size-l);
|
|
4401
4450
|
}
|
|
4402
4451
|
|
|
4403
|
-
:host([icon-only][item-size="
|
|
4452
|
+
:host([icon-only][item-size="s"]) wa-tab wa-icon {
|
|
4404
4453
|
font-size: var(--wa-font-size-m);
|
|
4405
4454
|
}
|
|
4406
4455
|
|
|
4407
|
-
:host([icon-only][item-size="
|
|
4456
|
+
:host([icon-only][item-size="l"]) wa-tab wa-icon {
|
|
4408
4457
|
font-size: var(--wa-font-size-xl);
|
|
4409
4458
|
}
|
|
4410
4459
|
|
|
@@ -4784,4 +4833,4 @@ DocksResizableGrid = _DocksResizableGrid = _decorate([customElement("docks-resiz
|
|
|
4784
4833
|
//#endregion
|
|
4785
4834
|
export { EDITOR_AREA_MAIN as A, TOOLBAR_BOTTOM_CENTER as B, TOPIC_SETTINGS_CHANGED as C, MouseButton as D, HIDE_DOT_RESOURCE as E, SIDEBAR_MAIN_TOOLBAR as F, TOOLBAR_MAIN as H, SYSTEM_ATTRIBUTIONS as I, SYSTEM_LAYOUTS as L, SIDEBAR_AUXILIARY as M, SIDEBAR_MAIN as N, constants_exports as O, SIDEBAR_MAIN_BOTTOM as P, SYSTEM_VIEWS as R, taskService as S, COMMAND_SAVE as T, TOOLBAR_MAIN_CENTER as U, TOOLBAR_BOTTOM_END as V, TOOLBAR_MAIN_RIGHT as W, DocksDialogContent as _, versionInfoDialog as a, extensionRegistry as b, confirmDialog as c, formDialogRequired as d, validateFormDialogFields as f, dialogService as g, deleteIndexedDbWorkspaceData as h, parseIconSpec as i, PANEL_BOTTOM as j, ABOUT_TABS as k, infoDialog as l, appLoaderService as m, DocksContainer as n, filebrowserDialog as o, promptDialog as p, icon as r, navigableInfoDialog as s, DocksPart as t, formDialog as u, DocksElement as v, appSettings as w, esmShService as x, TOPIC_EXTENSIONS_CHANGED as y, TOOLBAR_BOTTOM as z };
|
|
4786
4835
|
|
|
4787
|
-
//# sourceMappingURL=parts-
|
|
4836
|
+
//# sourceMappingURL=parts-BRaXx8PD.js.map
|