@lvce-editor/title-bar-worker 2.11.0 → 2.12.0
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/titleBarWorkerMain.js +16 -3
- package/package.json +1 -1
|
@@ -2313,13 +2313,13 @@ const getTitleBarButtonsVirtualDom = buttons => {
|
|
|
2313
2313
|
}, ...buttons.flatMap(createTitleBarButton)];
|
|
2314
2314
|
};
|
|
2315
2315
|
|
|
2316
|
-
const parentNode = {
|
|
2316
|
+
const parentNode$1 = {
|
|
2317
2317
|
type: Div,
|
|
2318
2318
|
className: mergeClassNames(Viewlet, TitleBarIcon),
|
|
2319
2319
|
childCount: 1
|
|
2320
2320
|
};
|
|
2321
2321
|
const getTitleBarIconVirtualDom = iconSrc => {
|
|
2322
|
-
return [parentNode, {
|
|
2322
|
+
return [parentNode$1, {
|
|
2323
2323
|
type: Img,
|
|
2324
2324
|
className: TitleBarIconIcon,
|
|
2325
2325
|
src: iconSrc,
|
|
@@ -2397,8 +2397,13 @@ const getTitleBarMenuBarVirtualDom = (visibleItems, focusedIndex) => {
|
|
|
2397
2397
|
}, ...getTitleBarMenuBarItemsVirtualDom(visibleItems)];
|
|
2398
2398
|
};
|
|
2399
2399
|
|
|
2400
|
+
const parentNode = {
|
|
2401
|
+
type: Div,
|
|
2402
|
+
className: 'TitleBarTitle',
|
|
2403
|
+
childCount: 1
|
|
2404
|
+
};
|
|
2400
2405
|
const getTitleVirtualDom = title => {
|
|
2401
|
-
return [text(title)];
|
|
2406
|
+
return [parentNode, text(title)];
|
|
2402
2407
|
};
|
|
2403
2408
|
|
|
2404
2409
|
const maximize = async () => {
|
|
@@ -3397,6 +3402,14 @@ const getTitleBarVirtualDom = state => {
|
|
|
3397
3402
|
titleBarButtons
|
|
3398
3403
|
} = state;
|
|
3399
3404
|
const dom = [];
|
|
3405
|
+
dom.push({
|
|
3406
|
+
type: Div,
|
|
3407
|
+
className: 'Viewlet TitleBar',
|
|
3408
|
+
id: 'TitleBar',
|
|
3409
|
+
role: 'contentinfo',
|
|
3410
|
+
ariaLabel: 'Title Bar',
|
|
3411
|
+
childCount: 4
|
|
3412
|
+
});
|
|
3400
3413
|
|
|
3401
3414
|
// Add icon if enabled
|
|
3402
3415
|
if (state.titleBarIconEnabled) {
|