@mistriwork/kit 1.0.0-rc.58 → 1.0.0-rc.60
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/app.js +16 -3
- package/dist/client/audience.d.ts +1 -0
- package/dist/client/audience.js +10 -0
- package/dist/client/brandLook.css +49 -1
- package/dist/client/components/AppColumnMenuPopups.js +46 -11
- package/dist/client/components/AppList.d.ts +3 -1
- package/dist/client/components/AppList.js +92 -19
- package/dist/client/components/CardsList.js +14 -1
- package/dist/client/components/Chart.css +4 -0
- package/dist/client/components/Chart.d.ts +4 -4
- package/dist/client/components/Chart.js +30 -9
- package/dist/client/components/Content.js +4 -2
- package/dist/client/components/DateField.css +1 -1
- package/dist/client/components/DateField.js +1 -0
- package/dist/client/components/DefinedFields.js +2 -2
- package/dist/client/components/Diagram.css +82 -0
- package/dist/client/components/Diagram.d.ts +1 -0
- package/dist/client/components/Diagram.js +1 -0
- package/dist/client/components/Dressed.js +1 -1
- package/dist/client/components/Editable.js +7 -3
- package/dist/client/components/Export.js +1 -1
- package/dist/client/components/FilterBoxes.js +2 -2
- package/dist/client/components/FilterRail.css +1 -1
- package/dist/client/components/FilterRail.js +6 -4
- package/dist/client/components/Gallery.css +171 -0
- package/dist/client/components/Gallery.d.ts +1 -0
- package/dist/client/components/Gallery.js +1 -0
- package/dist/client/components/Grid.d.ts +2 -1
- package/dist/client/components/Grid.js +78 -24
- package/dist/client/components/GridCellEditor.js +4 -2
- package/dist/client/components/GridSelection.d.ts +4 -7
- package/dist/client/components/GridSelection.js +45 -3
- package/dist/client/components/LandingSurface.css +2 -2
- package/dist/client/components/LayoutBuilder.css +225 -0
- package/dist/client/components/LayoutBuilder.d.ts +1 -0
- package/dist/client/components/LayoutBuilder.js +1 -0
- package/dist/client/components/ListColumns.d.ts +12 -0
- package/dist/client/components/ListColumns.js +61 -0
- package/dist/client/components/ListFilterBar.css +43 -16
- package/dist/client/components/ListFilterBar.js +45 -23
- package/dist/client/components/MultiStepForm.css +22 -22
- package/dist/client/components/NewRecord.js +120 -104
- package/dist/client/components/Notes.css +9 -0
- package/dist/client/components/Notes.d.ts +6 -2
- package/dist/client/components/Notes.js +10 -6
- package/dist/client/components/OverflowMenu.js +16 -11
- package/dist/client/components/PageFields.js +19 -4
- package/dist/client/components/PageRelated.d.ts +8 -1
- package/dist/client/components/PageRelated.js +46 -33
- package/dist/client/components/PageSections.js +18 -5
- package/dist/client/components/Palette.js +1 -1
- package/dist/client/components/Prefs.d.ts +10 -0
- package/dist/client/components/Prefs.js +33 -23
- package/dist/client/components/PresentationSwitch.js +4 -0
- package/dist/client/components/Prompt.js +4 -4
- package/dist/client/components/RecordGone.js +4 -4
- package/dist/client/components/RecordPicker.js +24 -6
- package/dist/client/components/RecordSummaries.js +31 -5
- package/dist/client/components/RecordTrailNav.js +4 -0
- package/dist/client/components/RichTextEditor.css +2 -2
- package/dist/client/components/RichTextEditor.js +18 -19
- package/dist/client/components/Rooms.js +27 -6
- package/dist/client/components/SectionPeriod.css +1 -1
- package/dist/client/components/SetFieldDialog.js +1 -1
- package/dist/client/components/Sidebar.js +15 -5
- package/dist/client/components/SuggestBox.js +2 -2
- package/dist/client/components/TableRoom.d.ts +5 -1
- package/dist/client/components/TableRoom.js +29 -10
- package/dist/client/components/TableView.js +6 -2
- package/dist/client/components/ThMenu.js +26 -15
- package/dist/client/components/Tour.css +96 -0
- package/dist/client/components/Tour.d.ts +1 -0
- package/dist/client/components/Tour.js +1 -0
- package/dist/client/components/TreePicker.css +1 -1
- package/dist/client/components/TreePicker.js +27 -20
- package/dist/client/components/Value.js +4 -1
- package/dist/client/components/WorkflowStatus.js +8 -4
- 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/boardNew.d.ts +5 -0
- package/dist/client/components/boardNew.js +5 -0
- package/dist/client/components/conditionWords.d.ts +10 -0
- package/dist/client/components/conditionWords.js +20 -0
- package/dist/client/components/dashboardModel.d.ts +8 -0
- package/dist/client/components/dashboardModel.js +28 -1
- package/dist/client/components/editInteraction.d.ts +1 -1
- package/dist/client/components/editInteraction.js +1 -1
- package/dist/client/components/gridSizing.d.ts +14 -20
- package/dist/client/components/gridSizing.js +147 -108
- package/dist/client/components/pageContext.d.ts +3 -2
- package/dist/client/components/pageModel.d.ts +2 -0
- package/dist/client/components/pickerStaleness.d.ts +11 -1
- package/dist/client/components/pickerStaleness.js +12 -2
- package/dist/client/components/rowTitle.d.ts +2 -0
- package/dist/client/components/rowTitle.js +10 -0
- package/dist/client/components/textMeasure.js +72 -3
- package/dist/client/components/useConditionWords.d.ts +5 -0
- package/dist/client/components/useConditionWords.js +3 -1
- package/dist/client/components/useGridKeyboard.js +5 -0
- package/dist/client/components/useMediaQuery.d.ts +2 -0
- package/dist/client/components/useMediaQuery.js +2 -0
- package/dist/client/components/valueModel.d.ts +1 -0
- package/dist/client/components/valueModel.js +39 -4
- package/dist/client/composer.css +2 -2
- package/dist/client/copy/es.js +3 -3
- package/dist/client/copy/filters/components/ListFilterBar.d.ts +1 -0
- package/dist/client/copy/filters/components/ListFilterBar.js +1 -0
- package/dist/client/copy/forms/components/DateField.d.ts +2 -0
- package/dist/client/copy/forms/components/DateField.js +2 -0
- package/dist/client/copy/forms/components/NewRecord.d.ts +8 -0
- package/dist/client/copy/forms/components/NewRecord.js +2 -0
- package/dist/client/copy/lists/components/AppList.d.ts +2 -0
- package/dist/client/copy/lists/components/AppList.js +2 -0
- package/dist/client/copy/lists/components/GridSelection.d.ts +1 -0
- package/dist/client/copy/lists/components/GridSelection.js +1 -0
- package/dist/client/copy/lists/components/ListColumns.d.ts +5 -0
- package/dist/client/copy/lists/components/ListColumns.js +7 -0
- package/dist/client/copy/lists/components/TableRoom.d.ts +3 -1
- package/dist/client/copy/lists/components/TableRoom.js +3 -1
- package/dist/client/copy/record/components/PageHistory.d.ts +2 -2
- package/dist/client/copy/record/components/PageHistory.js +4 -2
- package/dist/client/copy/record/components/WorkflowStatus.d.ts +1 -0
- package/dist/client/copy/record/components/WorkflowStatus.js +1 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.d.ts +1 -0
- package/dist/client/copy/shell/components/MobileNavDrawer.js +2 -0
- package/dist/client/core.d.ts +2 -1
- package/dist/client/core.js +46 -2
- package/dist/client/customThemes.css +3 -3
- package/dist/client/dom.js +5 -5
- package/dist/client/features.css +220 -356
- package/dist/client/fonts/Manrope-OFL.txt +93 -0
- package/dist/client/fonts/faces.css +10 -1
- package/dist/client/fonts/manrope-latin.woff2 +0 -0
- package/dist/client/formControls.css +4 -4
- package/dist/client/help.css +2 -2
- package/dist/client/ledgerLook.css +28 -0
- package/dist/client/locale.d.ts +2 -10
- package/dist/client/locale.js +0 -0
- package/dist/client/lumenLook.css +295 -105
- package/dist/client/manropeFace.css +32 -0
- package/dist/client/messages.d.ts +3 -3
- package/dist/client/messages.js +3 -3
- package/dist/client/navigationHold.d.ts +9 -0
- package/dist/client/navigationHold.js +46 -3
- package/dist/client/page.css +107 -357
- package/dist/client/palette.js +31 -6
- package/dist/client/partsLook.css +60 -60
- package/dist/client/sageLook.css +101 -32
- package/dist/client/shellHost.d.ts +2 -2
- package/dist/client/shellHost.js +2 -2
- package/dist/client/shellMode.d.ts +9 -0
- package/dist/client/shellMode.js +2 -0
- package/dist/client/structure.css +282 -201
- package/dist/client/style.css +75 -224
- package/dist/client/themeFamilies.css +471 -66
- package/dist/client/tilesLook.css +502 -0
- package/dist/client/visualTheme.js +5 -2
- package/dist/client/visualThemes.css +38 -34
- package/dist/client/workbenchLook.css +12 -12
- package/dist/client/workshopLook.css +3 -8
- package/dist/vite.d.ts +1 -20
- package/dist/vite.js +33 -3
- package/package.json +8 -7
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Manrope, the face Lumen's headings and hero figures are set in, and any theme's that names it first
|
|
2
|
+
(themeRecipes.ts recipeAttributes): a sheet of its own, as interFace.css is the interface's, so a page that draws no
|
|
3
|
+
heading in it never asks for it. A stack that begins with the face brings this sheet; the server preloads the file
|
|
4
|
+
beside it where a heading leads with it (server/clientSurface.ts, SHEET_FACES, lookPreloads). */
|
|
5
|
+
/* Why a second face: Lumen in Inter alone read as a template, the same title and figure every other product has
|
|
6
|
+
(docs/design.md, Lumen). Manrope is a geometric grotesque with open counters and figures that hold at a stat's
|
|
7
|
+
size, drawn for titles, section heads, the App's name and a strip's figures only; a sentence stays in Inter. Its
|
|
8
|
+
variable face, the Latin subset (25 KB, weights 200 to 800 in one file; SIL Open Font License, its text in
|
|
9
|
+
fonts/Manrope-OFL.txt and dist/client/fonts/). `swap`, as Inter: the page is held until this sheet is in, and the
|
|
10
|
+
fallback below is cut to Manrope's measure, so the swap barely moves a line. */
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: Manrope;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-weight: 200 800;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
src: url('./fonts/manrope-latin.woff2') format('woff2');
|
|
17
|
+
unicode-range:
|
|
18
|
+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
|
|
19
|
+
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
20
|
+
}
|
|
21
|
+
/* The face that stands in until Manrope arrives: Arial Bold (Liberation Sans Bold on Linux), since Manrope is worn
|
|
22
|
+
at a heading's weights. Measured in Chromium over a line of titles with their figures: Manrope's 600, 700 and 800
|
|
23
|
+
are 98.7%, 100.4% and 102.0% of Arial Bold's, so one cut at 100.4% serves the three; its ascent and descent are
|
|
24
|
+
1.066 and 0.3 of the em, said of the adjusted size. */
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: 'Manrope Fallback';
|
|
27
|
+
src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'), local('Helvetica Bold');
|
|
28
|
+
size-adjust: 100.4%;
|
|
29
|
+
ascent-override: 106.18%;
|
|
30
|
+
descent-override: 29.88%;
|
|
31
|
+
line-gap-override: 0%;
|
|
32
|
+
}
|
|
@@ -19,7 +19,7 @@ declare const catalog: {
|
|
|
19
19
|
readonly 'preferences.appTheme': 'This App’s theme';
|
|
20
20
|
readonly 'preferences.resetTheme': 'Reset to the App’s theme';
|
|
21
21
|
readonly 'preferences.palette': 'Palette';
|
|
22
|
-
readonly 'preferences.paletteHint': '
|
|
22
|
+
readonly 'preferences.paletteHint': 'Colors for the selected theme.';
|
|
23
23
|
readonly 'preferences.colorMode': 'Color mode';
|
|
24
24
|
readonly 'preferences.colorModeDarkOnly': 'This theme is dark only.';
|
|
25
25
|
readonly 'preferences.system': 'System';
|
|
@@ -39,9 +39,9 @@ declare const catalog: {
|
|
|
39
39
|
readonly 'preferences.sans': 'Sans';
|
|
40
40
|
readonly 'preferences.sansHint': 'a reading face; code stays code';
|
|
41
41
|
readonly 'preferences.rowsPerList': 'Rows per list';
|
|
42
|
-
readonly 'preferences.rowsPerListHint': '
|
|
42
|
+
readonly 'preferences.rowsPerListHint': 'Grids and App lists.';
|
|
43
43
|
readonly 'preferences.rowsPerRelatedList': 'Rows per related list';
|
|
44
|
-
readonly 'preferences.rowsPerRelatedListHint': '
|
|
44
|
+
readonly 'preferences.rowsPerRelatedListHint': 'The lists on a page.';
|
|
45
45
|
readonly 'common.close': 'Close';
|
|
46
46
|
readonly 'common.reading': 'Reading…';
|
|
47
47
|
readonly 'common.submitting': 'Submitting…';
|
package/dist/client/messages.js
CHANGED
|
@@ -37,7 +37,7 @@ const catalog = {
|
|
|
37
37
|
'preferences.appTheme': 'This App’s theme',
|
|
38
38
|
'preferences.resetTheme': 'Reset to the App’s theme',
|
|
39
39
|
'preferences.palette': 'Palette',
|
|
40
|
-
'preferences.paletteHint': '
|
|
40
|
+
'preferences.paletteHint': 'Colors for the selected theme.',
|
|
41
41
|
'preferences.colorMode': 'Color mode',
|
|
42
42
|
'preferences.colorModeDarkOnly': 'This theme is dark only.',
|
|
43
43
|
'preferences.system': 'System',
|
|
@@ -57,9 +57,9 @@ const catalog = {
|
|
|
57
57
|
'preferences.sans': 'Sans',
|
|
58
58
|
'preferences.sansHint': 'a reading face; code stays code',
|
|
59
59
|
'preferences.rowsPerList': 'Rows per list',
|
|
60
|
-
'preferences.rowsPerListHint': '
|
|
60
|
+
'preferences.rowsPerListHint': 'Grids and App lists.',
|
|
61
61
|
'preferences.rowsPerRelatedList': 'Rows per related list',
|
|
62
|
-
'preferences.rowsPerRelatedListHint': '
|
|
62
|
+
'preferences.rowsPerRelatedListHint': 'The lists on a page.',
|
|
63
63
|
'common.close': 'Close',
|
|
64
64
|
'common.reading': 'Reading…',
|
|
65
65
|
'common.submitting': 'Submitting…',
|
|
@@ -22,6 +22,15 @@ interface HoldProbe {
|
|
|
22
22
|
* the reader's first input.
|
|
23
23
|
*/
|
|
24
24
|
export declare function installNavigationHold(host: HTMLElement, reads?: HoldProbe): void;
|
|
25
|
+
/**
|
|
26
|
+
* Whether a paint that starts the room over can wait for the frame the press
|
|
27
|
+
* that asked for it is in (core.js `render`): a step to another place taken
|
|
28
|
+
* with the pointer, where the hold would stand a picture of the screen on show
|
|
29
|
+
* over a room hidden outright. Not a control's own press (a checkbox, a
|
|
30
|
+
* field): React puts a controlled control back as its event ends, unless what
|
|
31
|
+
* it changed is drawn inside the event.
|
|
32
|
+
*/
|
|
33
|
+
export declare function yieldsFirst(entry: Place | undefined): boolean;
|
|
25
34
|
/**
|
|
26
35
|
* Before a paint: hold the screen on show when the paint starts the room over.
|
|
27
36
|
* `room` is whether the room is new; `entry` and `depth` are the walk's top
|
|
@@ -144,6 +144,26 @@ export function installNavigationHold(host, reads) {
|
|
|
144
144
|
addHostListener(window, 'wheel', moved, { capture: true, passive: true });
|
|
145
145
|
addHostListener(window, 'touchmove', moved, { capture: true, passive: true });
|
|
146
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Whether a paint that starts the room over can wait for the frame the press
|
|
149
|
+
* that asked for it is in (core.js `render`): a step to another place taken
|
|
150
|
+
* with the pointer, where the hold would stand a picture of the screen on show
|
|
151
|
+
* over a room hidden outright. Not a control's own press (a checkbox, a
|
|
152
|
+
* field): React puts a controlled control back as its event ends, unless what
|
|
153
|
+
* it changed is drawn inside the event.
|
|
154
|
+
*/
|
|
155
|
+
export function yieldsFirst(entry) {
|
|
156
|
+
const pane = content;
|
|
157
|
+
if (!pane?.isConnected || !shown || hold || !pane.firstElementChild)
|
|
158
|
+
return false;
|
|
159
|
+
const now = performance.now();
|
|
160
|
+
if (now - traversedAt < TRAVERSAL_WINDOW || !lastInput.pointer || now - lastInput.at > 1000)
|
|
161
|
+
return false;
|
|
162
|
+
if (entry === shown.entry || placeOf(entry) === shown.place)
|
|
163
|
+
return false;
|
|
164
|
+
const target = lastInput.target;
|
|
165
|
+
return !(target instanceof Element && target.closest('input, select, textarea, label, [contenteditable]'));
|
|
166
|
+
}
|
|
147
167
|
/**
|
|
148
168
|
* Before a paint: hold the screen on show when the paint starts the room over.
|
|
149
169
|
* `room` is whether the room is new; `entry` and `depth` are the walk's top
|
|
@@ -450,9 +470,13 @@ function picture(pane) {
|
|
|
450
470
|
twin.removeAttribute('aria-busy');
|
|
451
471
|
twin.style.height = '100%';
|
|
452
472
|
twin.style.overflow = 'hidden';
|
|
473
|
+
/* Only what stands above the pane's bottom edge is copied: the picture is cut to the pane's height, and the
|
|
474
|
+
rows and cards below it, copied, cost a click its style and layout for nothing (a cards list's open, on the
|
|
475
|
+
vitals' slowed CPU). */
|
|
476
|
+
const fold = pane.getBoundingClientRect().bottom;
|
|
453
477
|
for (const child of Array.from(pane.children)) {
|
|
454
478
|
if (child instanceof HTMLElement && !child.classList.contains('nav-held'))
|
|
455
|
-
twin.append(still(child));
|
|
479
|
+
twin.append(still(child, fold));
|
|
456
480
|
}
|
|
457
481
|
inner.append(twin);
|
|
458
482
|
return { copy, picture: twin, scrolled: pane.scrollTop };
|
|
@@ -463,12 +487,31 @@ function picture(pane) {
|
|
|
463
487
|
* not join a group), and so does autofocus; a canvas is copied as its
|
|
464
488
|
* picture, and a field as the value typed into it.
|
|
465
489
|
*/
|
|
466
|
-
function still(node) {
|
|
467
|
-
const copy = node
|
|
490
|
+
function still(node, fold) {
|
|
491
|
+
const copy = upTo(node, fold);
|
|
468
492
|
for (const element of [copy, ...Array.from(copy.querySelectorAll('[name], [autofocus]'))]) {
|
|
469
493
|
element.removeAttribute('name');
|
|
470
494
|
element.removeAttribute('autofocus');
|
|
471
495
|
}
|
|
496
|
+
return copy;
|
|
497
|
+
}
|
|
498
|
+
/* An element whose children run past the fold is copied child by child, and a child that starts below it is left
|
|
499
|
+
out: in the flow it comes after everything on show, so nothing on show moves without it. Anything that ends
|
|
500
|
+
above the fold is copied whole, natively, as the whole pane once was. */
|
|
501
|
+
function upTo(node, fold) {
|
|
502
|
+
if (node.childElementCount < 2 || node instanceof HTMLSelectElement || node.getBoundingClientRect().bottom <= fold)
|
|
503
|
+
return whole(node);
|
|
504
|
+
const copy = node.cloneNode(false);
|
|
505
|
+
for (const child of Array.from(node.childNodes)) {
|
|
506
|
+
if (!(child instanceof HTMLElement))
|
|
507
|
+
copy.append(child.cloneNode(true));
|
|
508
|
+
else if (child.getBoundingClientRect().top <= fold)
|
|
509
|
+
copy.append(upTo(child, fold));
|
|
510
|
+
}
|
|
511
|
+
return copy;
|
|
512
|
+
}
|
|
513
|
+
function whole(node) {
|
|
514
|
+
const copy = node.cloneNode(true);
|
|
472
515
|
const from = node.querySelectorAll('canvas');
|
|
473
516
|
if (from.length) {
|
|
474
517
|
const to = copy.querySelectorAll('canvas');
|