@mistriwork/kit 1.0.0-rc.57 → 1.0.0-rc.59
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 +14 -2
- 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 +41 -11
- package/dist/client/components/AppList.d.ts +3 -1
- package/dist/client/components/AppList.js +77 -15
- 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 +3 -1
- 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 -1
- package/dist/client/components/GridSelection.js +20 -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 +39 -14
- package/dist/client/components/ListFilterBar.js +39 -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 +22 -4
- package/dist/client/components/SectionPeriod.css +1 -1
- package/dist/client/components/SetFieldDialog.js +1 -1
- package/dist/client/components/Sidebar.js +8 -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 +1 -1
- 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/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/customThemes.css +3 -3
- package/dist/client/dom.js +5 -5
- package/dist/client/features.css +216 -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/page.css +98 -354
- 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 +281 -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
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { richTextExcerpt, richTextImageAddress } from '@mistriwork/engine/shared/richText.js';
|
|
10
10
|
import { MASK, displayWord, vocabularyWord } from '@mistriwork/engine/shared/model.js';
|
|
11
|
-
import { defaultCurrency, formatAbsolute, formatDate, formatDateTime, formatLocale, formatMoney, formatWholeMoney, formatNumber, formatPercent, formatRelativeDay, appToday, daysFromToday, NEAR_DAYS, sayNearDay, withPercentSign, } from '../locale.js';
|
|
11
|
+
import { defaultCurrency, formatAbsolute, formatDate, formatDateTime, formatLocale, formatMoney, formatWholeMoney, formatNumber, formatPercent, formatRelativeDay, formatTimeOfDay, appToday, daysFromToday, NEAR_DAYS, sayNearDay, withPercentSign, } from '../locale.js';
|
|
12
12
|
import { minorFigure } from '@mistriwork/engine/shared/money.js';
|
|
13
13
|
import { dateComparison, dateComparisonHolds } from '@mistriwork/engine/shared/queryDates.js';
|
|
14
14
|
export { yesNoRule } from '../yesNoRule.js';
|
|
@@ -23,6 +23,14 @@ import { shellBody } from '../shellHost.js';
|
|
|
23
23
|
* else keeps its rule. Money needs no such reading: every figure says the currency's minor digits (moneyText).
|
|
24
24
|
*/
|
|
25
25
|
export function datesAmong(rule, values) {
|
|
26
|
+
/* Moments that are all of today say their time alone: under a head, on a page of today's visits, "9:30 AM" down
|
|
27
|
+
the column, not "today" on every row. One of another day and each keeps its day. An App's reading only, and
|
|
28
|
+
only where the author asked for no other form. */
|
|
29
|
+
if ((rule?.format === undefined || rule.format === 'datetime' || rule.format === 'relative') && allToday(values)) {
|
|
30
|
+
if (!rule)
|
|
31
|
+
return TODAY_ONLY;
|
|
32
|
+
return (timed.get(rule) ?? (timed.set(rule, { ...rule, format: 'time' }), timed.get(rule)));
|
|
33
|
+
}
|
|
26
34
|
if (rule?.format !== 'relative')
|
|
27
35
|
return rule;
|
|
28
36
|
const far = values.some((value) => {
|
|
@@ -37,6 +45,26 @@ export function datesAmong(rule, values) {
|
|
|
37
45
|
return (apart.get(rule) ?? (apart.set(rule, { ...rule, absolute: true }), apart.get(rule)));
|
|
38
46
|
}
|
|
39
47
|
const apart = new WeakMap();
|
|
48
|
+
const timed = new WeakMap();
|
|
49
|
+
const TODAY_ONLY = { format: 'time' };
|
|
50
|
+
const MOMENT = /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}/;
|
|
51
|
+
/** Whether every value there is a moment (a day with a time that is not midnight) of today, and there is one. */
|
|
52
|
+
function allToday(values) {
|
|
53
|
+
if (!shellBody().classList.contains('app-mode'))
|
|
54
|
+
return false;
|
|
55
|
+
let some = false;
|
|
56
|
+
for (const value of values) {
|
|
57
|
+
if (value === null || value === undefined || value === '')
|
|
58
|
+
continue;
|
|
59
|
+
const text = String(value);
|
|
60
|
+
if (!MOMENT.test(text) || /[ T]00:00(:00(\.0+)?)?(Z|[+-]\d{2}(:?\d{2})?)?$/.test(text))
|
|
61
|
+
return false;
|
|
62
|
+
if (daysFromToday(text) !== 0)
|
|
63
|
+
return false;
|
|
64
|
+
some = true;
|
|
65
|
+
}
|
|
66
|
+
return some;
|
|
67
|
+
}
|
|
40
68
|
/** A stored figure Intl can say exactly: a finite number, or a decimal's digits however long (formatMoney). */
|
|
41
69
|
const exactFigure = (value) => (typeof value === 'number' && Number.isFinite(value)) || (typeof value === 'string' && /^\s*[+-]?\d+(\.\d+)?\s*$/.test(value));
|
|
42
70
|
/**
|
|
@@ -403,9 +431,11 @@ function relativeSaid(rule, text) {
|
|
|
403
431
|
if (!said)
|
|
404
432
|
return null;
|
|
405
433
|
const days = daysFromToday(text);
|
|
434
|
+
/* `date` is the day as a date column says it, kept beside a near day's words: a record's head draws both
|
|
435
|
+
("Nov 8, 2026 · 7 days ago", page.css), and the stored ISO text is never what a reader is shown. */
|
|
406
436
|
return days !== null && (rule.absolute || Math.abs(days) > NEAR_DAYS)
|
|
407
437
|
? { text: formatDate(text), title: said }
|
|
408
|
-
: { text: said, title: text };
|
|
438
|
+
: { text: said, title: text, date: formatDate(text) };
|
|
409
439
|
}
|
|
410
440
|
const ISO_DAY = /^\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}(?::?\d{2})?)?)?$/;
|
|
411
441
|
/**
|
|
@@ -459,7 +489,12 @@ function ownDrawing(rule, value, text) {
|
|
|
459
489
|
return HEX.test(text.trim()) ? { kind: 'color', hex: text.trim().toLowerCase(), text: text.trim() } : null;
|
|
460
490
|
case 'time': {
|
|
461
491
|
const m = CLOCK.exec(text.trim());
|
|
462
|
-
|
|
492
|
+
/* A moment asked for as a time is its time of day: a list of today's visits says "9:30 AM", not the day again. */
|
|
493
|
+
if (!m) {
|
|
494
|
+
const clock = typeof value === 'string' ? formatTimeOfDay(text) : '';
|
|
495
|
+
return clock ? { kind: 'number', text: clock, title: text } : null;
|
|
496
|
+
}
|
|
497
|
+
if (Number(m[1]) > 23 || Number(m[2]) > 59)
|
|
463
498
|
return null;
|
|
464
499
|
const said = new Intl.DateTimeFormat(formatLocale(), { hour: 'numeric', minute: '2-digit', timeZone: 'UTC' }).format(Date.UTC(2000, 0, 1, Number(m[1]), Number(m[2])));
|
|
465
500
|
return { kind: 'number', text: said, title: text };
|
|
@@ -476,7 +511,7 @@ function ownDrawing(rule, value, text) {
|
|
|
476
511
|
case 'datetime': {
|
|
477
512
|
if (typeof value !== 'string' || !text.trim())
|
|
478
513
|
return null;
|
|
479
|
-
const said = formatAbsolute(text, { time: rule.format === 'datetime', zone: rule.timezone });
|
|
514
|
+
const said = formatAbsolute(text, { time: rule.format === 'datetime', zone: rule.timezone, reader: true });
|
|
480
515
|
if (said === text)
|
|
481
516
|
return null;
|
|
482
517
|
/* A day that satisfies a comparison ("<= today": overdue) wears its tone; the date is still said as itself. */
|
package/dist/client/composer.css
CHANGED
|
@@ -212,10 +212,10 @@ body.composing { overflow: hidden; }
|
|
|
212
212
|
margin-top: var(--space-2);
|
|
213
213
|
}
|
|
214
214
|
.composer-menu { display: inline-block; min-width: 9rem; }
|
|
215
|
-
.composer-menu
|
|
215
|
+
.composer-menu [data-slot='select-trigger'] { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }
|
|
216
216
|
/* Positioning is handled in the viewport by dropdown.js, so nothing here
|
|
217
217
|
needs to fight the sidebar's clip. */
|
|
218
|
-
.composer-menu
|
|
218
|
+
.composer-menu :is([data-slot='select-content'], [data-slot='menu-content']) { min-width: 13rem; }
|
|
219
219
|
|
|
220
220
|
/* ---------- saved views ---------- */
|
|
221
221
|
|
package/dist/client/copy/es.js
CHANGED
|
@@ -12,7 +12,7 @@ const es = {
|
|
|
12
12
|
'preferences.appTheme': 'Tema de esta aplicación',
|
|
13
13
|
'preferences.resetTheme': 'Restablecer el tema de la aplicación',
|
|
14
14
|
'preferences.palette': 'Paleta',
|
|
15
|
-
'preferences.paletteHint': '
|
|
15
|
+
'preferences.paletteHint': 'Colores para el tema seleccionado.',
|
|
16
16
|
'preferences.colorMode': 'Modo de color',
|
|
17
17
|
'preferences.colorModeDarkOnly': 'Este tema es solo oscuro.',
|
|
18
18
|
'preferences.system': 'Sistema',
|
|
@@ -32,9 +32,9 @@ const es = {
|
|
|
32
32
|
'preferences.sans': 'Sans serif',
|
|
33
33
|
'preferences.sansHint': 'para lectura; el código sigue siendo código',
|
|
34
34
|
'preferences.rowsPerList': 'Filas por lista',
|
|
35
|
-
'preferences.rowsPerListHint': '
|
|
35
|
+
'preferences.rowsPerListHint': 'Cuadrículas y listas de la aplicación.',
|
|
36
36
|
'preferences.rowsPerRelatedList': 'Filas por lista relacionada',
|
|
37
|
-
'preferences.rowsPerRelatedListHint': '
|
|
37
|
+
'preferences.rowsPerRelatedListHint': 'Las listas de una página.',
|
|
38
38
|
'common.close': 'Cerrar',
|
|
39
39
|
'common.signIn': 'Iniciar sesión',
|
|
40
40
|
'common.settings': 'Ajustes',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const say: import("../../../messages.js").RoomMessage<{
|
|
2
2
|
readonly moreFilters: "{filter}: {map}";
|
|
3
|
+
readonly moreFiltersButton: "More filters";
|
|
3
4
|
readonly search: "Search {listLabel}…";
|
|
4
5
|
readonly labelEquals: "{label} equals…";
|
|
5
6
|
readonly takesANumber: "{label} takes a number.";
|
|
@@ -3,6 +3,7 @@ import { defineMessages } from '../../../messages.js';
|
|
|
3
3
|
export const say = defineMessages({
|
|
4
4
|
// Starts with the button's visible word (WCAG 2.5.3, label in name): {filter} is the word it shows.
|
|
5
5
|
moreFilters: '{filter}: {map}',
|
|
6
|
+
moreFiltersButton: 'More filters',
|
|
6
7
|
search: 'Search {listLabel}…',
|
|
7
8
|
labelEquals: '{label} equals…',
|
|
8
9
|
takesANumber: '{label} takes a number.',
|
|
@@ -10,4 +10,6 @@ export declare const say: import("../../../messages.js").RoomMessage<{
|
|
|
10
10
|
readonly calendar: "Calendar for {label}";
|
|
11
11
|
readonly previousMonth: "Previous month";
|
|
12
12
|
readonly nextMonth: "Next month";
|
|
13
|
+
readonly timeFor: "Time for {label}";
|
|
14
|
+
readonly time: "Time";
|
|
13
15
|
}>;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
export declare const say: import("../../../messages.js").RoomMessage<{
|
|
2
2
|
readonly yyyyMmDdHh: "YYYY-MM-DD HH:MM";
|
|
3
3
|
readonly fill: "Fill in {column}.";
|
|
4
|
+
readonly answersNeedALook: {
|
|
5
|
+
readonly one: "One answer needs another look.";
|
|
6
|
+
readonly other: "{count} answers need another look.";
|
|
7
|
+
};
|
|
8
|
+
readonly fieldsNeedFixing: {
|
|
9
|
+
readonly one: "One field needs fixing.";
|
|
10
|
+
readonly other: "{count} fields need fixing.";
|
|
11
|
+
};
|
|
4
12
|
readonly enterAValidDate: "Enter a valid date and time.";
|
|
5
13
|
readonly enterAValidDateInYyyy: "Enter a valid date in YYYY-MM-DD format.";
|
|
6
14
|
readonly useAtLeast: "Use at least {min} characters.";
|
|
@@ -3,6 +3,8 @@ import { defineMessages } from '../../../messages.js';
|
|
|
3
3
|
export const say = defineMessages({
|
|
4
4
|
yyyyMmDdHh: 'YYYY-MM-DD HH:MM',
|
|
5
5
|
fill: 'Fill in {column}.',
|
|
6
|
+
answersNeedALook: { one: 'One answer needs another look.', other: '{count} answers need another look.' },
|
|
7
|
+
fieldsNeedFixing: { one: 'One field needs fixing.', other: '{count} fields need fixing.' },
|
|
6
8
|
enterAValidDate: 'Enter a valid date and time.',
|
|
7
9
|
enterAValidDateInYyyy: 'Enter a valid date in YYYY-MM-DD format.',
|
|
8
10
|
useAtLeast: 'Use at least {min} characters.',
|
|
@@ -7,9 +7,11 @@ export declare const say: import("../../../messages.js").RoomMessage<{
|
|
|
7
7
|
readonly noneInTab: "No {things} in {tab} right now.";
|
|
8
8
|
readonly addTheFirst: "Use New to add the first {thing}.";
|
|
9
9
|
readonly rowsTheTabAndFilters: "Rows the tab and filters match";
|
|
10
|
+
readonly ofTotal: "of {total}";
|
|
10
11
|
readonly listControls: "{caption} list controls";
|
|
11
12
|
readonly myViews: "My views";
|
|
12
13
|
readonly savedViews: "Saved views";
|
|
14
|
+
readonly views: "Views";
|
|
13
15
|
readonly yourView: "your view";
|
|
14
16
|
readonly aSavedView: "a saved view";
|
|
15
17
|
readonly removeTheView: "Remove the view \"{name}\"";
|
|
@@ -9,9 +9,11 @@ export const say = defineMessages({
|
|
|
9
9
|
noneInTab: 'No {things} in {tab} right now.',
|
|
10
10
|
addTheFirst: 'Use New to add the first {thing}.',
|
|
11
11
|
rowsTheTabAndFilters: 'Rows the tab and filters match',
|
|
12
|
+
ofTotal: 'of {total}',
|
|
12
13
|
listControls: '{caption} list controls',
|
|
13
14
|
myViews: 'My views',
|
|
14
15
|
savedViews: 'Saved views',
|
|
16
|
+
views: 'Views',
|
|
15
17
|
yourView: 'your view',
|
|
16
18
|
aSavedView: 'a saved view',
|
|
17
19
|
removeTheView: 'Remove the view "{name}"',
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** What ListColumns says, in the lists and grid room (packages/kit/src/client/messages.ts says how the catalog is split). */
|
|
2
|
+
import { defineMessages } from '../../../messages.js';
|
|
3
|
+
export const say = defineMessages({
|
|
4
|
+
columns: 'Columns',
|
|
5
|
+
columnsOf: 'Columns of {caption}',
|
|
6
|
+
showAll: 'Show all',
|
|
7
|
+
});
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare const say: import("../../../messages.js").RoomMessage<{
|
|
2
2
|
readonly fixTheQueryAbove: "Fix the query above to see results.";
|
|
3
|
-
readonly notAvailableToYou: "
|
|
3
|
+
readonly notAvailableToYou: "Your account does not open this {thing}.";
|
|
4
|
+
readonly goHome: "Go to your home page";
|
|
4
5
|
readonly notAvailableHere: "This {thing} is not available.";
|
|
6
|
+
readonly notAvailable: "Not available";
|
|
5
7
|
readonly signInToSeeThis: "This {thing} is for signed-in members.";
|
|
6
8
|
readonly thingList: "list";
|
|
7
9
|
readonly thingRecord: "record";
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
import { defineMessages } from '../../../messages.js';
|
|
3
3
|
export const say = defineMessages({
|
|
4
4
|
fixTheQueryAbove: 'Fix the query above to see results.',
|
|
5
|
-
notAvailableToYou: '
|
|
5
|
+
notAvailableToYou: 'Your account does not open this {thing}.',
|
|
6
|
+
goHome: 'Go to your home page',
|
|
6
7
|
notAvailableHere: 'This {thing} is not available.',
|
|
8
|
+
notAvailable: 'Not available',
|
|
7
9
|
signInToSeeThis: 'This {thing} is for signed-in members.',
|
|
8
10
|
thingList: 'list',
|
|
9
11
|
thingRecord: 'record',
|
|
@@ -8,8 +8,8 @@ export declare const say: import("../../../messages.js").RoomMessage<{
|
|
|
8
8
|
readonly created: "Created";
|
|
9
9
|
readonly edited: "Edited";
|
|
10
10
|
readonly changesToThisRecord: "Changes to this record appear here.";
|
|
11
|
-
readonly noChangesRecordedYet: "No
|
|
12
|
-
readonly eachChangeToThisRecord: "
|
|
11
|
+
readonly noChangesRecordedYet: "No edits since this record was added.";
|
|
12
|
+
readonly eachChangeToThisRecord: "An edit to this record is listed here with who made it. What was added about it is in its own lists.";
|
|
13
13
|
readonly showEarlierChanges: "Show earlier changes";
|
|
14
14
|
readonly changed: "changed";
|
|
15
15
|
readonly to: "to";
|
|
@@ -10,8 +10,10 @@ export const say = defineMessages({
|
|
|
10
10
|
created: 'Created',
|
|
11
11
|
edited: 'Edited',
|
|
12
12
|
changesToThisRecord: 'Changes to this record appear here.',
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
/* The feed is this record's own edits. Beside a list of its payments or notes, "No changes recorded yet" read as
|
|
14
|
+
if nothing had happened to it: the words say what the card holds and where the rest is. */
|
|
15
|
+
noChangesRecordedYet: 'No edits since this record was added.',
|
|
16
|
+
eachChangeToThisRecord: 'An edit to this record is listed here with who made it. What was added about it is in its own lists.',
|
|
15
17
|
showEarlierChanges: 'Show earlier changes',
|
|
16
18
|
changed: 'changed',
|
|
17
19
|
to: 'to',
|
|
@@ -3,10 +3,12 @@ import { defineMessages } from '../../../messages.js';
|
|
|
3
3
|
export const say = defineMessages({
|
|
4
4
|
navigation: '{name} navigation',
|
|
5
5
|
menu: '{name} menu',
|
|
6
|
+
account: 'Account and sign out',
|
|
6
7
|
}, {
|
|
7
8
|
/* The words a visitor sees in the shell; the rest are said in English. */
|
|
8
9
|
es: {
|
|
9
10
|
navigation: 'Navegación de {name}',
|
|
10
11
|
menu: 'Menú de {name}',
|
|
12
|
+
account: 'Cuenta y cerrar sesión',
|
|
11
13
|
},
|
|
12
14
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* Custom themes' token machinery, under every look (style.css names the order). */
|
|
2
2
|
@layer kit {
|
|
3
3
|
/* Public theme slots override the base style, without changing its layout. */
|
|
4
|
-
:root[data-custom-theme] :is(button, input:not([role=switch]), select, textarea, .tn-search,
|
|
4
|
+
:root[data-custom-theme] :is(button, input:not([role=switch]), select, textarea, .tn-search,[data-slot='select-trigger']) { border-radius: var(--radius); }
|
|
5
5
|
/* Round controls (`shape.radius.control: 'round'`) are pills; a check box, a radio and a slider keep their own
|
|
6
6
|
shape, and a form's field keeps the field's corner (the rule below outranks this one). A look that corners its
|
|
7
7
|
own controls (the dashboard's window and filters, a list's search and toggles) reads --control-radius there, unset
|
|
8
8
|
in every built-in look; a card that is a button keeps the look's panel corner. */
|
|
9
|
-
:root[data-control-radius] :is(button, input:not([role=switch], [type=checkbox], [type=radio], [type=range]), select, .tn-search,
|
|
9
|
+
:root[data-control-radius] :is(button, input:not([role=switch], [type=checkbox], [type=radio], [type=range]), select, .tn-search,[data-slot='select-trigger']) { border-radius: var(--control-radius); }
|
|
10
10
|
:root[data-custom-theme] :is(.applist-title, .root-current, .page-section-title) { font-family: var(--heading-font, var(--sans)); }
|
|
11
11
|
:root[data-custom-theme] .page-field-edit :is(.cell-edit, .record-picker-trigger),
|
|
12
|
-
:root[data-custom-theme] .insert-field :is(input:not([role=switch]), textarea,
|
|
12
|
+
:root[data-custom-theme] .insert-field :is(input:not([role=switch]), textarea,[data-slot='select-trigger'], .record-picker-trigger) { border-radius: var(--field-radius, 2px); }
|
|
13
13
|
|
|
14
14
|
.theme-lab {
|
|
15
15
|
width: min(72rem, 94%); max-height: 90%; overflow: auto;
|
package/dist/client/dom.js
CHANGED
|
@@ -120,11 +120,11 @@ export function trapFocus(panel) {
|
|
|
120
120
|
...panel.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]),' +
|
|
121
121
|
' textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'),
|
|
122
122
|
].filter((node) => node.offsetWidth > 0 || node.offsetHeight > 0 || node === document.activeElement);
|
|
123
|
-
/* Focus in a modal opened over this panel is that modal's to keep.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
/* Focus in a modal opened over this panel is that modal's to keep. Modal.tsx
|
|
124
|
+
draws no `<dialog open>` to see: a modal is an `aria-modal` element in a
|
|
125
|
+
layer of its own, and this trap pulled focus back from it while the
|
|
126
|
+
modal's own pulled it in again — the connection form's name, filled as it
|
|
127
|
+
opened, landed in the URL box. */
|
|
128
128
|
const aboveUs = (node) => {
|
|
129
129
|
if (shellQuery('dialog[open]'))
|
|
130
130
|
return true;
|