@mistriwork/kit 1.0.0-rc.17 → 1.0.0-rc.18
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/client/components/AppList.js +16 -6
- package/dist/client/components/Chart.css +5 -0
- package/dist/client/components/Chart.d.ts +17 -2
- package/dist/client/components/Chart.js +83 -22
- package/dist/client/components/ChartFigure.d.ts +3 -1
- package/dist/client/components/ChartFigure.js +14 -8
- package/dist/client/components/Content.js +3 -1
- package/dist/client/components/DashHead.d.ts +6 -0
- package/dist/client/components/DashHead.js +20 -0
- package/dist/client/components/Editable.js +1 -1
- package/dist/client/components/Grid.js +33 -4
- package/dist/client/components/JsonPreview.css +29 -0
- package/dist/client/components/JsonPreview.js +1 -1
- package/dist/client/components/JsonView.css +201 -62
- package/dist/client/components/JsonView.d.ts +43 -1
- package/dist/client/components/JsonView.js +320 -55
- package/dist/client/components/LayoutSwitch.d.ts +9 -0
- package/dist/client/components/LayoutSwitch.js +61 -0
- package/dist/client/components/ListEmpty.css +3 -0
- package/dist/client/components/LiveNotices.css +3 -0
- package/dist/client/components/NewRecord.d.ts +0 -2
- package/dist/client/components/NewRecord.js +61 -17
- package/dist/client/components/PageFields.js +22 -3
- package/dist/client/components/PageHead.js +26 -6
- package/dist/client/components/PageRelated.d.ts +28 -0
- package/dist/client/components/PageRelated.js +50 -3
- package/dist/client/components/PageSectionBox.d.ts +5 -1
- package/dist/client/components/PageSectionBox.js +5 -3
- package/dist/client/components/PageSections.js +26 -13
- package/dist/client/components/PageSkeleton.css +2 -0
- package/dist/client/components/PageSkeleton.js +11 -3
- package/dist/client/components/Palette.js +108 -10
- package/dist/client/components/RecordPicker.d.ts +2 -0
- package/dist/client/components/RecordPicker.js +34 -8
- package/dist/client/components/RecordSummaries.js +6 -1
- package/dist/client/components/Rooms.js +2 -2
- package/dist/client/components/TableRoom.js +15 -5
- package/dist/client/components/TableView.d.ts +2 -0
- package/dist/client/components/Value.js +1 -1
- package/dist/client/components/appListModel.d.ts +4 -0
- package/dist/client/components/appRooms.d.ts +2 -0
- package/dist/client/components/appRooms.js +2 -0
- package/dist/client/components/dashboardModel.d.ts +5 -0
- package/dist/client/components/directoryModel.d.ts +25 -0
- package/dist/client/components/directoryModel.js +88 -0
- package/dist/client/components/gridSizing.d.ts +3 -0
- package/dist/client/components/gridSizing.js +6 -2
- package/dist/client/components/jsonTree.d.ts +54 -0
- package/dist/client/components/jsonTree.js +190 -0
- package/dist/client/components/listSubtitles.d.ts +1 -0
- package/dist/client/components/listSubtitles.js +7 -0
- package/dist/client/components/newMenuModel.d.ts +14 -6
- package/dist/client/components/newMenuModel.js +37 -5
- package/dist/client/components/newRecordModel.d.ts +24 -2
- package/dist/client/components/newRecordModel.js +47 -4
- package/dist/client/components/pageContext.d.ts +2 -0
- package/dist/client/components/pageModel.d.ts +2 -0
- package/dist/client/components/sidebarModel.js +7 -3
- package/dist/client/composedReads.js +3 -1
- package/dist/client/copy/lists/components/AppList.d.ts +1 -0
- package/dist/client/copy/lists/components/AppList.js +1 -0
- package/dist/client/copy/lists/components/LayoutSwitch.d.ts +4 -0
- package/dist/client/copy/lists/components/LayoutSwitch.js +6 -0
- package/dist/client/copy/record/components/JsonView.d.ts +22 -0
- package/dist/client/copy/record/components/JsonView.js +19 -0
- package/dist/client/copy/record/components/PageHead.d.ts +1 -0
- package/dist/client/copy/record/components/PageHead.js +2 -0
- package/dist/client/copy/shell/components/Palette.d.ts +11 -0
- package/dist/client/copy/shell/components/Palette.js +14 -0
- package/dist/client/copy/shell/components/TopNav.d.ts +2 -1
- package/dist/client/copy/shell/components/TopNav.js +4 -2
- package/dist/client/copy/shell/components/directoryModel.d.ts +4 -0
- package/dist/client/copy/shell/components/directoryModel.js +6 -0
- package/dist/client/copy/shell/components/sidebarModel.d.ts +1 -0
- package/dist/client/copy/shell/components/sidebarModel.js +1 -0
- package/dist/client/core.d.ts +3 -3
- package/dist/client/core.js +6 -7
- package/dist/client/features.css +67 -7
- package/dist/client/index.html +2 -1
- package/dist/client/insert.js +1 -8
- package/dist/client/locale.d.ts +7 -0
- package/dist/client/locale.js +0 -0
- package/dist/client/lumenLook.css +9 -12
- package/dist/client/page.css +56 -15
- package/dist/client/palette.d.ts +3 -1
- package/dist/client/palette.js +19 -4
- package/dist/client/paletteRecents.d.ts +25 -0
- package/dist/client/paletteRecents.js +64 -0
- package/dist/client/partsLook.css +6 -3
- package/dist/client/sageLook.css +5 -3
- package/dist/client/shellMode.d.ts +2 -0
- package/dist/client/shellMode.js +1 -0
- package/dist/client/structure.css +201 -1
- package/dist/client/style.css +59 -10
- package/dist/client/themeFamilies.css +37 -0
- package/dist/client/visualThemes.css +12 -0
- package/dist/client/workbenchLook.css +415 -0
- package/dist/client/workshopLook.css +48 -25
- package/package.json +4 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* Workshop, the look an App wears when it names none (themeLooks.ts): fetched
|
|
2
|
-
when a worn theme picks one of its recipes (keyed buttons, the slot menu), as Lumen's sheet
|
|
2
|
+
when a worn theme picks one of its recipes (keyed buttons, the slot menu, solid filters), as Lumen's sheet
|
|
3
3
|
is, and so not in the first stylesheet the Workbench and every other look
|
|
4
4
|
share. Its other recipes are in Lumen's, the brand sheet and the surfaces'. */
|
|
5
5
|
/* Barlow, a grotesk cut from road and workshop signage (SIL Open Font
|
|
6
6
|
License; its text in fonts/Barlow-OFL.txt and dist/client/fonts/): the
|
|
7
|
-
regular and semibold for the interface and
|
|
8
|
-
for titles,
|
|
7
|
+
regular and semibold for the interface, data and labels, the semi-condensed
|
|
8
|
+
bold for titles, figures and the App's name. Declared here so only a
|
|
9
9
|
page wearing Workshop asks for it; the server preloads the regular and the
|
|
10
10
|
condensed bold beside this sheet (server/clientSurface.ts, lookPreloads).
|
|
11
11
|
`swap`, as Lumen's Inter: the page is held until this sheet is in, and the
|
|
@@ -67,8 +67,7 @@
|
|
|
67
67
|
}
|
|
68
68
|
@layer look {
|
|
69
69
|
/* Keyed buttons: the primary verb is a hazard key, the accent edged in the ink; a secondary key is edged in the
|
|
70
|
-
ink too, so every key on a page reads as hardware.
|
|
71
|
-
do (themeFamilies.css, rules.head at the look's 2px).
|
|
70
|
+
ink too, so every key on a page reads as hardware.
|
|
72
71
|
The key is the look's primary-action color and its words (`--primary`, the palette's hue with the ink on it), as
|
|
73
72
|
a list's New and a dashboard's action are, re-pointed as a form's one action is (features.css): a button reads
|
|
74
73
|
`--accent`, which an App's own `ui.theme.accent` is worn over, so a record's first action was the App's blue
|
|
@@ -81,19 +80,19 @@
|
|
|
81
80
|
:root[data-look-buttons='keyed'] .app-mode .btn-secondary {
|
|
82
81
|
border-color: var(--ink);
|
|
83
82
|
}
|
|
84
|
-
/* The slot menu: the current entry is
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
(
|
|
83
|
+
/* The slot menu: the current entry is a block, and beside it a 3px marker of the menu's accent — under it in the top
|
|
84
|
+
bar, at its leading edge in the side menu — parted from the block by 2px of the menu's ground, so the marker
|
|
85
|
+
reads on the ground it stands on (3:1, test/contrast.test.ts) whatever the block is. The palette reaches the menu
|
|
86
|
+
as a mark, never as a fill. The block is the theme's `nav.current` with `nav.onCurrent` on it where it names them
|
|
87
|
+
(Workshop's own: a soft tint of the menu's ink, by day and by night), else the ink block `inverted` draws
|
|
88
|
+
(themeFamilies.css). Naming the block keeps the marker: structure.css draws a named block over every other look's
|
|
89
|
+
mark, but draws the one a look names as `--nav-current-mark`. */
|
|
90
90
|
:root[data-look-nav='slot'] .app-mode .topbar :is(.tn-group.active > .tn-group-button, .tn-item[aria-current='true']) {
|
|
91
|
-
background: var(--nav-ink);
|
|
92
|
-
color: var(--nav-ground);
|
|
91
|
+
background: var(--nav-current, var(--nav-ink));
|
|
92
|
+
color: var(--nav-on-current, var(--nav-ground));
|
|
93
93
|
border-radius: var(--radius);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
inset 0 -5px 0 var(--nav-ground);
|
|
94
|
+
--nav-current-mark: inset 0 -3px 0 var(--nav-accent), inset 0 -5px 0 var(--nav-ground);
|
|
95
|
+
box-shadow: var(--nav-current-mark);
|
|
97
96
|
}
|
|
98
97
|
:root[data-look-nav='slot']
|
|
99
98
|
.app-mode
|
|
@@ -103,24 +102,48 @@
|
|
|
103
102
|
color: inherit;
|
|
104
103
|
}
|
|
105
104
|
:root[data-look-nav='slot'] :is(#table-list, .mobile-nav-list) button[aria-current='true'] {
|
|
106
|
-
background: var(--nav-ink);
|
|
107
|
-
color: var(--nav-ground);
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
inset 5px 0 0 var(--nav-ground);
|
|
105
|
+
background: var(--nav-current, var(--nav-ink));
|
|
106
|
+
color: var(--nav-on-current, var(--nav-ground));
|
|
107
|
+
--nav-current-mark: inset 3px 0 0 var(--nav-accent), inset 5px 0 0 var(--nav-ground);
|
|
108
|
+
box-shadow: var(--nav-current-mark);
|
|
111
109
|
}
|
|
112
110
|
/* Held under a pointer too, over the menu's own hover tint. */
|
|
113
111
|
@media (hover: hover) {
|
|
114
112
|
:root[data-look-nav='slot'] :is(#table-list, .mobile-nav-list) button[aria-current='true']:hover {
|
|
115
|
-
background: var(--nav-ink);
|
|
116
|
-
color: var(--nav-ground);
|
|
113
|
+
background: var(--nav-current, var(--nav-ink));
|
|
114
|
+
color: var(--nav-on-current, var(--nav-ground));
|
|
117
115
|
}
|
|
118
116
|
}
|
|
117
|
+
/* Its icon and count in the block's own words, whatever draws them: a fixed ground here left them in the menu's
|
|
118
|
+
ground on a block a theme's `parts['nav.current']` tinted, where they could not be seen. */
|
|
119
119
|
:root[data-look-nav='slot'] :is(#table-list, .mobile-nav-list) button[aria-current='true'] :is(.rows, svg, .nav-icon) {
|
|
120
|
-
color:
|
|
120
|
+
color: inherit;
|
|
121
121
|
}
|
|
122
|
+
/* The ring in the block's words too: in the menu's ground it vanished on a tint of that ground. */
|
|
122
123
|
:root[data-look-nav='slot'] #table-list button[aria-current='true']:focus-visible {
|
|
123
|
-
outline: 2px solid
|
|
124
|
+
outline: 2px solid currentcolor;
|
|
124
125
|
outline-offset: -4px;
|
|
125
126
|
}
|
|
127
|
+
/* The App's name over the slot menu, the one word in capitals: the brand's stamp, in the condensed bold the
|
|
128
|
+
look's titles wear (visualThemes.css). Said here, with the menu it heads, because a built-in look says nothing
|
|
129
|
+
through the parts (test/theme-parts.test.ts) and this sheet is already in; a theme that wears the slot and wants
|
|
130
|
+
its name as written says `parts.logo.case: 'none'`, which the parts layer draws over this one. */
|
|
131
|
+
:root[data-look-nav='slot'] .app-mode .brand-name {
|
|
132
|
+
text-transform: uppercase;
|
|
133
|
+
letter-spacing: 0.02em;
|
|
134
|
+
}
|
|
135
|
+
/* Capitals are the brand's here (docs/design.md, Workshop's exceptions): the kind over a record's name ("Lease") is
|
|
136
|
+
a label like a section's or a tab's, in sentence case, not "LEASE". The shared look rule sets it in tracked
|
|
137
|
+
capitals; this takes that back where the worn theme's label role is in sentence case, as Workshop's is (and a
|
|
138
|
+
theme on its base inherits). Keyed on the role, not the family's name, which no selector reads
|
|
139
|
+
(test/theme-recipes.test.ts): a theme that wears a Workshop recipe and no label of its own keeps the capitals. */
|
|
140
|
+
:root:root[data-type-label]:not([data-type-label~='upper'], [data-type-label~='small-caps']) .page-head.has-record :is(.page-title, .page-title-pick .dd-value) {
|
|
141
|
+
text-transform: none;
|
|
142
|
+
letter-spacing: 0;
|
|
143
|
+
}
|
|
144
|
+
/* `filters: 'solid'`: a filter not yet asked for is a key on a solid edge, as the search beside it is, not a dashed
|
|
145
|
+
place; its colors, at rest and under a pointer, stay the filter bar's own (ListFilterBar.css). */
|
|
146
|
+
:root[data-look-filters='solid'] .app-mode .applist-add {
|
|
147
|
+
border-style: solid;
|
|
148
|
+
}
|
|
126
149
|
}
|
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.18",
|
|
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": {
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"./client/theme.js": "./dist/client/theme.js",
|
|
76
76
|
"./client/url.js": "./dist/client/url.js",
|
|
77
77
|
"./client/visualTheme.js": "./dist/client/visualTheme.js",
|
|
78
|
+
"./client/workbenchLook.css": "./dist/client/workbenchLook.css",
|
|
78
79
|
"./client/write.js": "./dist/client/write.js",
|
|
79
80
|
"./clientFiles.js": "./dist/clientFiles.js",
|
|
80
81
|
"./vite": "./dist/vite.js",
|
|
@@ -82,8 +83,8 @@
|
|
|
82
83
|
"./package.json": "./package.json"
|
|
83
84
|
},
|
|
84
85
|
"dependencies": {
|
|
85
|
-
"@mistriwork/engine": "1.0.0-rc.
|
|
86
|
-
"@mistriwork/ui": "1.0.0-rc.
|
|
86
|
+
"@mistriwork/engine": "1.0.0-rc.18",
|
|
87
|
+
"@mistriwork/ui": "1.0.0-rc.18",
|
|
87
88
|
"intl-messageformat": "12.1.2",
|
|
88
89
|
"qrcode-generator": "^2.0.4"
|
|
89
90
|
},
|