@mistriwork/kit 1.0.0-rc.23 → 1.0.0-rc.25
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.
|
@@ -2,5 +2,6 @@ export declare const say: import("../../messages.js").RoomMessage<{
|
|
|
2
2
|
readonly hideTheTableList: "Hide the table list";
|
|
3
3
|
readonly hideTheTableListB: "Hide the table list (⌘B)";
|
|
4
4
|
readonly showTheTableList: "Show the table list";
|
|
5
|
+
readonly recordTab: "{tab} — {record}";
|
|
5
6
|
readonly showTheTableListB: "Show the table list (⌘B)";
|
|
6
7
|
}>;
|
package/dist/client/palette.js
CHANGED
|
@@ -27,7 +27,7 @@ import { mount, unmount } from './components/mount.js';
|
|
|
27
27
|
import { surfaceOf } from './surfaces.js';
|
|
28
28
|
import { shell } from './shellMode.js';
|
|
29
29
|
import { appListQuery } from './components/appListModel.js';
|
|
30
|
-
import { appMenu, appRooms, isListRoom, roomPageId } from './components/appRooms.js';
|
|
30
|
+
import { appMenu, appRooms, isListRoom, recordTabs, roomPageId } from './components/appRooms.js';
|
|
31
31
|
import { navigationPaths } from './components/navigationTree.js';
|
|
32
32
|
import { plural } from './locale.js';
|
|
33
33
|
import { say } from './copy/shell/palette.js';
|
|
@@ -74,6 +74,21 @@ export function entries() {
|
|
|
74
74
|
: pageView(/** @type {string} */ (roomPageId(entry)), undefined, undefined, entry.label), 'reset'),
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
+
/* A record's tab page has no address without a record, so it is a place to go only while one is open: "Map — Acme Corp",
|
|
78
|
+
never a top-level entry. Every list's record page for the table draws the tab, so the open record's table is the key. */
|
|
79
|
+
const here = app ? currentEntry() : undefined;
|
|
80
|
+
if (app && here?.key && here.table) {
|
|
81
|
+
const name = here.label ? String(here.label) : '';
|
|
82
|
+
for (const tab of recordTabs(app, here.table)) {
|
|
83
|
+
items.push({
|
|
84
|
+
kind: 'page',
|
|
85
|
+
label: name ? say('recordTab', { tab: tab.label, record: name }) : tab.label,
|
|
86
|
+
search: `${tab.label} ${name}`.trim(),
|
|
87
|
+
icon: tab.icon,
|
|
88
|
+
run: () => go({ ...here, tab: tab.page.record.tab }),
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
77
92
|
for (const table of workbench ? (state.schema?.tables ?? []) : []) {
|
|
78
93
|
items.push({
|
|
79
94
|
kind: table.isView ? 'view' : 'table',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mistriwork/kit",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.25",
|
|
4
4
|
"description": "The shared React client both shells are drawn with: the walk and the address, Grid, Value, the record page, lists, filters and charts.",
|
|
5
5
|
"homepage": "https://mistriwork.dev",
|
|
6
6
|
"bugs": {
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"./package.json": "./package.json"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@mistriwork/engine": "1.0.0-rc.
|
|
87
|
-
"@mistriwork/ui": "1.0.0-rc.
|
|
86
|
+
"@mistriwork/engine": "1.0.0-rc.25",
|
|
87
|
+
"@mistriwork/ui": "1.0.0-rc.25",
|
|
88
88
|
"intl-messageformat": "12.1.2",
|
|
89
89
|
"qrcode-generator": "^2.0.4"
|
|
90
90
|
},
|