@yuneta/gobj-ui 5.3.0 → 5.3.1
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/gobj-ui.cjs.js +2 -1
- package/dist/gobj-ui.es.js +2 -1
- package/package.json +1 -1
- package/src/shell_route_map.js +17 -6
- package/src/yui_dev.js +5 -0
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -13866,7 +13866,7 @@ function yui_shell_show_route_map(shell, opts) {
|
|
|
13866
13866
|
title: "site map",
|
|
13867
13867
|
icon: "yi-bars",
|
|
13868
13868
|
body: $body,
|
|
13869
|
-
manager: (0, _yuneta_gobj_js.gobj_find_service)("__window_manager__", false),
|
|
13869
|
+
manager: (0, _yuneta_gobj_js.gobj_find_service)("__window_manager__", false) || null,
|
|
13870
13870
|
keep_on_navigate: true
|
|
13871
13871
|
}, shell);
|
|
13872
13872
|
if (!win) {
|
|
@@ -53164,6 +53164,7 @@ function setup_dev(self, show) {
|
|
|
53164
53164
|
title: "Developer",
|
|
53165
53165
|
icon: "yi-terminal",
|
|
53166
53166
|
manager: (0, _yuneta_gobj_js.gobj_find_service)("__window_manager__", false) || null,
|
|
53167
|
+
keep_on_navigate: true,
|
|
53167
53168
|
on_close: function() {
|
|
53168
53169
|
(0, _yuneta_gobj_js.kw_set_local_storage_value)("open_developer_window", 0);
|
|
53169
53170
|
}
|
package/dist/gobj-ui.es.js
CHANGED
|
@@ -13860,7 +13860,7 @@ function yui_shell_show_route_map(shell, opts) {
|
|
|
13860
13860
|
title: "site map",
|
|
13861
13861
|
icon: "yi-bars",
|
|
13862
13862
|
body: $body,
|
|
13863
|
-
manager: gobj_find_service("__window_manager__", false),
|
|
13863
|
+
manager: gobj_find_service("__window_manager__", false) || null,
|
|
13864
13864
|
keep_on_navigate: true
|
|
13865
13865
|
}, shell);
|
|
13866
13866
|
if (!win) {
|
|
@@ -53150,6 +53150,7 @@ function setup_dev(self, show) {
|
|
|
53150
53150
|
title: "Developer",
|
|
53151
53151
|
icon: "yi-terminal",
|
|
53152
53152
|
manager: gobj_find_service("__window_manager__", false) || null,
|
|
53153
|
+
keep_on_navigate: true,
|
|
53153
53154
|
on_close: function() {
|
|
53154
53155
|
kw_set_local_storage_value("open_developer_window", 0);
|
|
53155
53156
|
}
|
package/package.json
CHANGED
package/src/shell_route_map.js
CHANGED
|
@@ -456,6 +456,15 @@ export function yui_shell_show_route_map(shell, opts)
|
|
|
456
456
|
/* Preferred: a resizable, maximisable floating window. */
|
|
457
457
|
if(gclass_find_by_name("C_YUI_WINDOW") !== null) {
|
|
458
458
|
let win_ref = {gobj: null};
|
|
459
|
+
/* A workspace surface, not a thing floating over one view: it
|
|
460
|
+
* joins the dock when the app HAS one (minimise, restore, focus
|
|
461
|
+
* like any other window). Passed only when it exists —
|
|
462
|
+
* gobj_find_service() answers `undefined` for an absent
|
|
463
|
+
* service, and handing undefined to a DTP_POINTER attr is one
|
|
464
|
+
* "attr undefined: manager" per open in every app without a
|
|
465
|
+
* dock. Without one the map stays a floating overlay, and
|
|
466
|
+
* `keep_on_navigate` gives it the same survives-navigation
|
|
467
|
+
* behaviour there. */
|
|
459
468
|
let $body = build_body(shell, t);
|
|
460
469
|
let $parent = yui_shell_popup_layer(shell) ||
|
|
461
470
|
(typeof document !== "undefined" &&
|
|
@@ -475,12 +484,14 @@ export function yui_shell_show_route_map(shell, opts)
|
|
|
475
484
|
title: "site map",
|
|
476
485
|
icon: "yi-bars",
|
|
477
486
|
body: $body,
|
|
478
|
-
/*
|
|
479
|
-
*
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
*
|
|
483
|
-
|
|
487
|
+
/* Opt into the dock/taskbar if the app provides one. `|| null`
|
|
488
|
+
* because gobj_find_service returns UNDEFINED when absent, and an
|
|
489
|
+
* undefined attr value logs "attr undefined: manager" — one per
|
|
490
|
+
* open in every app without a window manager (wattyzer). The same
|
|
491
|
+
* trap yui_dev.js already documents; null = no dock, and
|
|
492
|
+
* keep_on_navigate then gives the map the same
|
|
493
|
+
* survives-navigation behaviour a docked window has. */
|
|
494
|
+
manager: gobj_find_service("__window_manager__", false) || null,
|
|
484
495
|
keep_on_navigate: true
|
|
485
496
|
}, shell);
|
|
486
497
|
if(!win) {
|
package/src/yui_dev.js
CHANGED
|
@@ -1547,6 +1547,11 @@ function setup_dev(self, show)
|
|
|
1547
1547
|
* an undefined attr value logs "attr undefined: manager" (apps
|
|
1548
1548
|
* without a window manager, e.g. wattyzer). null = no dock. */
|
|
1549
1549
|
manager: gobj_find_service("__window_manager__", false) || null,
|
|
1550
|
+
/* A monitor is watched WHILE navigating: closing it on every
|
|
1551
|
+
* route change made it useless for the one job it has. A
|
|
1552
|
+
* dock-managed window is outside the drain already; this is
|
|
1553
|
+
* the same for an app with no dock. */
|
|
1554
|
+
keep_on_navigate: true,
|
|
1550
1555
|
on_close: function() {
|
|
1551
1556
|
kw_set_local_storage_value("open_developer_window", 0);
|
|
1552
1557
|
}
|