@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.
Files changed (164) hide show
  1. package/dist/client/app.js +16 -3
  2. package/dist/client/audience.d.ts +1 -0
  3. package/dist/client/audience.js +10 -0
  4. package/dist/client/brandLook.css +49 -1
  5. package/dist/client/components/AppColumnMenuPopups.js +46 -11
  6. package/dist/client/components/AppList.d.ts +3 -1
  7. package/dist/client/components/AppList.js +92 -19
  8. package/dist/client/components/CardsList.js +14 -1
  9. package/dist/client/components/Chart.css +4 -0
  10. package/dist/client/components/Chart.d.ts +4 -4
  11. package/dist/client/components/Chart.js +30 -9
  12. package/dist/client/components/Content.js +4 -2
  13. package/dist/client/components/DateField.css +1 -1
  14. package/dist/client/components/DateField.js +1 -0
  15. package/dist/client/components/DefinedFields.js +2 -2
  16. package/dist/client/components/Diagram.css +82 -0
  17. package/dist/client/components/Diagram.d.ts +1 -0
  18. package/dist/client/components/Diagram.js +1 -0
  19. package/dist/client/components/Dressed.js +1 -1
  20. package/dist/client/components/Editable.js +7 -3
  21. package/dist/client/components/Export.js +1 -1
  22. package/dist/client/components/FilterBoxes.js +2 -2
  23. package/dist/client/components/FilterRail.css +1 -1
  24. package/dist/client/components/FilterRail.js +6 -4
  25. package/dist/client/components/Gallery.css +171 -0
  26. package/dist/client/components/Gallery.d.ts +1 -0
  27. package/dist/client/components/Gallery.js +1 -0
  28. package/dist/client/components/Grid.d.ts +2 -1
  29. package/dist/client/components/Grid.js +78 -24
  30. package/dist/client/components/GridCellEditor.js +4 -2
  31. package/dist/client/components/GridSelection.d.ts +4 -7
  32. package/dist/client/components/GridSelection.js +45 -3
  33. package/dist/client/components/LandingSurface.css +2 -2
  34. package/dist/client/components/LayoutBuilder.css +225 -0
  35. package/dist/client/components/LayoutBuilder.d.ts +1 -0
  36. package/dist/client/components/LayoutBuilder.js +1 -0
  37. package/dist/client/components/ListColumns.d.ts +12 -0
  38. package/dist/client/components/ListColumns.js +61 -0
  39. package/dist/client/components/ListFilterBar.css +43 -16
  40. package/dist/client/components/ListFilterBar.js +45 -23
  41. package/dist/client/components/MultiStepForm.css +22 -22
  42. package/dist/client/components/NewRecord.js +120 -104
  43. package/dist/client/components/Notes.css +9 -0
  44. package/dist/client/components/Notes.d.ts +6 -2
  45. package/dist/client/components/Notes.js +10 -6
  46. package/dist/client/components/OverflowMenu.js +16 -11
  47. package/dist/client/components/PageFields.js +19 -4
  48. package/dist/client/components/PageRelated.d.ts +8 -1
  49. package/dist/client/components/PageRelated.js +46 -33
  50. package/dist/client/components/PageSections.js +18 -5
  51. package/dist/client/components/Palette.js +1 -1
  52. package/dist/client/components/Prefs.d.ts +10 -0
  53. package/dist/client/components/Prefs.js +33 -23
  54. package/dist/client/components/PresentationSwitch.js +4 -0
  55. package/dist/client/components/Prompt.js +4 -4
  56. package/dist/client/components/RecordGone.js +4 -4
  57. package/dist/client/components/RecordPicker.js +24 -6
  58. package/dist/client/components/RecordSummaries.js +31 -5
  59. package/dist/client/components/RecordTrailNav.js +4 -0
  60. package/dist/client/components/RichTextEditor.css +2 -2
  61. package/dist/client/components/RichTextEditor.js +18 -19
  62. package/dist/client/components/Rooms.js +27 -6
  63. package/dist/client/components/SectionPeriod.css +1 -1
  64. package/dist/client/components/SetFieldDialog.js +1 -1
  65. package/dist/client/components/Sidebar.js +15 -5
  66. package/dist/client/components/SuggestBox.js +2 -2
  67. package/dist/client/components/TableRoom.d.ts +5 -1
  68. package/dist/client/components/TableRoom.js +29 -10
  69. package/dist/client/components/TableView.js +6 -2
  70. package/dist/client/components/ThMenu.js +26 -15
  71. package/dist/client/components/Tour.css +96 -0
  72. package/dist/client/components/Tour.d.ts +1 -0
  73. package/dist/client/components/Tour.js +1 -0
  74. package/dist/client/components/TreePicker.css +1 -1
  75. package/dist/client/components/TreePicker.js +27 -20
  76. package/dist/client/components/Value.js +4 -1
  77. package/dist/client/components/WorkflowStatus.js +8 -4
  78. package/dist/client/components/appListModel.d.ts +4 -0
  79. package/dist/client/components/appRooms.d.ts +2 -0
  80. package/dist/client/components/appRooms.js +2 -0
  81. package/dist/client/components/boardNew.d.ts +5 -0
  82. package/dist/client/components/boardNew.js +5 -0
  83. package/dist/client/components/conditionWords.d.ts +10 -0
  84. package/dist/client/components/conditionWords.js +20 -0
  85. package/dist/client/components/dashboardModel.d.ts +8 -0
  86. package/dist/client/components/dashboardModel.js +28 -1
  87. package/dist/client/components/editInteraction.d.ts +1 -1
  88. package/dist/client/components/editInteraction.js +1 -1
  89. package/dist/client/components/gridSizing.d.ts +14 -20
  90. package/dist/client/components/gridSizing.js +147 -108
  91. package/dist/client/components/pageContext.d.ts +3 -2
  92. package/dist/client/components/pageModel.d.ts +2 -0
  93. package/dist/client/components/pickerStaleness.d.ts +11 -1
  94. package/dist/client/components/pickerStaleness.js +12 -2
  95. package/dist/client/components/rowTitle.d.ts +2 -0
  96. package/dist/client/components/rowTitle.js +10 -0
  97. package/dist/client/components/textMeasure.js +72 -3
  98. package/dist/client/components/useConditionWords.d.ts +5 -0
  99. package/dist/client/components/useConditionWords.js +3 -1
  100. package/dist/client/components/useGridKeyboard.js +5 -0
  101. package/dist/client/components/useMediaQuery.d.ts +2 -0
  102. package/dist/client/components/useMediaQuery.js +2 -0
  103. package/dist/client/components/valueModel.d.ts +1 -0
  104. package/dist/client/components/valueModel.js +39 -4
  105. package/dist/client/composer.css +2 -2
  106. package/dist/client/copy/es.js +3 -3
  107. package/dist/client/copy/filters/components/ListFilterBar.d.ts +1 -0
  108. package/dist/client/copy/filters/components/ListFilterBar.js +1 -0
  109. package/dist/client/copy/forms/components/DateField.d.ts +2 -0
  110. package/dist/client/copy/forms/components/DateField.js +2 -0
  111. package/dist/client/copy/forms/components/NewRecord.d.ts +8 -0
  112. package/dist/client/copy/forms/components/NewRecord.js +2 -0
  113. package/dist/client/copy/lists/components/AppList.d.ts +2 -0
  114. package/dist/client/copy/lists/components/AppList.js +2 -0
  115. package/dist/client/copy/lists/components/GridSelection.d.ts +1 -0
  116. package/dist/client/copy/lists/components/GridSelection.js +1 -0
  117. package/dist/client/copy/lists/components/ListColumns.d.ts +5 -0
  118. package/dist/client/copy/lists/components/ListColumns.js +7 -0
  119. package/dist/client/copy/lists/components/TableRoom.d.ts +3 -1
  120. package/dist/client/copy/lists/components/TableRoom.js +3 -1
  121. package/dist/client/copy/record/components/PageHistory.d.ts +2 -2
  122. package/dist/client/copy/record/components/PageHistory.js +4 -2
  123. package/dist/client/copy/record/components/WorkflowStatus.d.ts +1 -0
  124. package/dist/client/copy/record/components/WorkflowStatus.js +1 -0
  125. package/dist/client/copy/shell/components/MobileNavDrawer.d.ts +1 -0
  126. package/dist/client/copy/shell/components/MobileNavDrawer.js +2 -0
  127. package/dist/client/core.d.ts +2 -1
  128. package/dist/client/core.js +46 -2
  129. package/dist/client/customThemes.css +3 -3
  130. package/dist/client/dom.js +5 -5
  131. package/dist/client/features.css +220 -356
  132. package/dist/client/fonts/Manrope-OFL.txt +93 -0
  133. package/dist/client/fonts/faces.css +10 -1
  134. package/dist/client/fonts/manrope-latin.woff2 +0 -0
  135. package/dist/client/formControls.css +4 -4
  136. package/dist/client/help.css +2 -2
  137. package/dist/client/ledgerLook.css +28 -0
  138. package/dist/client/locale.d.ts +2 -10
  139. package/dist/client/locale.js +0 -0
  140. package/dist/client/lumenLook.css +295 -105
  141. package/dist/client/manropeFace.css +32 -0
  142. package/dist/client/messages.d.ts +3 -3
  143. package/dist/client/messages.js +3 -3
  144. package/dist/client/navigationHold.d.ts +9 -0
  145. package/dist/client/navigationHold.js +46 -3
  146. package/dist/client/page.css +107 -357
  147. package/dist/client/palette.js +31 -6
  148. package/dist/client/partsLook.css +60 -60
  149. package/dist/client/sageLook.css +101 -32
  150. package/dist/client/shellHost.d.ts +2 -2
  151. package/dist/client/shellHost.js +2 -2
  152. package/dist/client/shellMode.d.ts +9 -0
  153. package/dist/client/shellMode.js +2 -0
  154. package/dist/client/structure.css +282 -201
  155. package/dist/client/style.css +75 -224
  156. package/dist/client/themeFamilies.css +471 -66
  157. package/dist/client/tilesLook.css +502 -0
  158. package/dist/client/visualTheme.js +5 -2
  159. package/dist/client/visualThemes.css +38 -34
  160. package/dist/client/workbenchLook.css +12 -12
  161. package/dist/client/workshopLook.css +3 -8
  162. package/dist/vite.d.ts +1 -20
  163. package/dist/vite.js +33 -3
  164. package/package.json +8 -7
@@ -36,6 +36,8 @@ export function useMediaQuery(query) {
36
36
  }
37
37
  /** A phone: where a record's actions fold into one menu rather than wrap. */
38
38
  export const PHONE_QUERY = '(max-width: 600px)';
39
+ /** Where a list's records stand in for its grid: style.css's `@media (max-width: 760px)`, which shows them. */
40
+ export const RECORDS_QUERY = '(max-width: 760px)';
39
41
  /** Where a filter rail has no room to stand beside the rows. The rail is
40
42
  12-15rem and a card grid wants 520px before it draws a second column, so
41
43
  under about 860px the two together leave the rows a single narrow column —
@@ -195,6 +195,7 @@ export type Dress = {
195
195
  kind: 'relative';
196
196
  text: string;
197
197
  title: string;
198
+ date?: string;
198
199
  overdue?: true;
199
200
  } | {
200
201
  kind: 'date';
@@ -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
- if (!m || Number(m[1]) > 23 || Number(m[2]) > 59)
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. */
@@ -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 .dd-button { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }
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 .dd-list { min-width: 13rem; }
218
+ .composer-menu :is([data-slot='select-content'], [data-slot='menu-content']) { min-width: 13rem; }
219
219
 
220
220
  /* ---------- saved views ---------- */
221
221
 
@@ -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': 'colores para el tema seleccionado',
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': 'cuadrículas y listas de la aplicación',
35
+ 'preferences.rowsPerListHint': 'Cuadrículas y listas de la aplicación.',
36
36
  'preferences.rowsPerRelatedList': 'Filas por lista relacionada',
37
- 'preferences.rowsPerRelatedListHint': 'las listas de una página',
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
  }>;
@@ -12,4 +12,6 @@ export const say = defineMessages({
12
12
  calendar: 'Calendar for {label}',
13
13
  previousMonth: 'Previous month',
14
14
  nextMonth: 'Next month',
15
+ timeFor: 'Time for {label}',
16
+ time: 'Time',
15
17
  });
@@ -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}"',
@@ -1,4 +1,5 @@
1
1
  export declare const say: import("../../../messages.js").RoomMessage<{
2
2
  readonly selectAll: "Select all {noun}";
3
3
  readonly select: "Select {label}";
4
+ readonly selectGroup: "Select all in {group}";
4
5
  }>;
@@ -3,4 +3,5 @@ import { defineMessages } from '../../../messages.js';
3
3
  export const say = defineMessages({
4
4
  selectAll: 'Select all {noun}',
5
5
  select: 'Select {label}',
6
+ selectGroup: 'Select all in {group}',
6
7
  });
@@ -0,0 +1,5 @@
1
+ export declare const say: import("../../../messages.js").RoomMessage<{
2
+ readonly columns: "Columns";
3
+ readonly columnsOf: "Columns of {caption}";
4
+ readonly showAll: "Show all";
5
+ }>;
@@ -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: "This {thing} is not available to your role.";
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: 'This {thing} is not available to your role.',
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 changes recorded yet.";
12
- readonly eachChangeToThisRecord: "Each change to this record from now on is listed here, with who made it.";
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
- noChangesRecordedYet: 'No changes recorded yet.',
14
- eachChangeToThisRecord: 'Each change to this record from now on is listed here, with who made it.',
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',
@@ -4,4 +4,5 @@ export declare const say: import("../../../messages.js").RoomMessage<{
4
4
  readonly availableFromHere: "(available from here)";
5
5
  readonly currentState: "Current state:";
6
6
  readonly notSet: "Not set";
7
+ readonly otherOutcomes: "Other outcomes";
7
8
  }>;
@@ -6,4 +6,5 @@ export const say = defineMessages({
6
6
  availableFromHere: '(available from here)',
7
7
  currentState: 'Current state:',
8
8
  notSet: 'Not set',
9
+ otherOutcomes: 'Other outcomes',
9
10
  });
@@ -1,4 +1,5 @@
1
1
  export declare const say: import("../../../messages.js").RoomMessage<{
2
2
  readonly navigation: "{name} navigation";
3
3
  readonly menu: "{name} menu";
4
+ readonly account: "Account and sign out";
4
5
  }>;
@@ -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
  });
@@ -161,10 +161,11 @@ export declare const roomVersion: () => number;
161
161
  * any paint; the room is kept when it is still the same table room.
162
162
  */
163
163
  export declare function refine(fn: any): any;
164
- /** @param {{ before(roomChanged: boolean): void; after(): void } | null} hold */
164
+ /** @param {{ before(roomChanged: boolean): void; after(): void; yields?(): boolean } | null} hold */
165
165
  export declare function setPaintHold(hold: {
166
166
  before(roomChanged: boolean): void;
167
167
  after(): void;
168
+ yields?(): boolean;
168
169
  } | null): void;
169
170
  export declare function render(): void;
170
171
  export declare function subscribeWalk(fn: any): () => boolean;
@@ -571,23 +571,67 @@ export function refine(fn) {
571
571
  being left until the new room is complete. A seam, so core stays free of
572
572
  the DOM it holds; nothing registered, a paint is only a paint. */
573
573
  let paintHold = null;
574
- /** @param {{ before(roomChanged: boolean): void; after(): void } | null} hold */
574
+ /** @param {{ before(roomChanged: boolean): void; after(): void; yields?(): boolean } | null} hold */
575
575
  export function setPaintHold(hold) {
576
576
  paintHold = hold;
577
577
  }
578
+ /* A room started over by a press is drawn after the frame the press is in,
579
+ when the hold says the screen being left would only stand as a picture
580
+ until the room is complete anyway: drawn inside the click, the picture and
581
+ the room's first render held the press's own frame back past the
582
+ interaction budget (a cards list's open, test/built-client-vitals.mjs).
583
+ What is on show is the same either way. A paint asked for while one waits
584
+ is the same navigation going on (a redirect, a label): it is drawn at
585
+ once, as a room started over. */
586
+ let waiting = null;
578
587
  export function render() {
579
588
  if (sessionIdentity().mode === 'locked')
580
589
  return;
581
590
  paintTick += 1;
582
591
  const shape = tableRoomShape();
583
- const roomChanged = !refining || shape === null || shape !== roomOnScreen;
592
+ let roomChanged = !refining || shape === null || shape !== roomOnScreen;
584
593
  if (roomChanged)
585
594
  roomTick += 1;
586
595
  roomOnScreen = shape;
596
+ if (waiting) {
597
+ waiting();
598
+ waiting = null;
599
+ roomChanged = true;
600
+ }
601
+ else if (roomChanged && paintHold?.yields?.()) {
602
+ waiting = afterThisFrame(() => {
603
+ waiting = null;
604
+ if (sessionIdentity().mode !== 'locked')
605
+ paint(true);
606
+ });
607
+ return;
608
+ }
609
+ paint(roomChanged);
610
+ }
611
+ function paint(roomChanged) {
587
612
  paintHold?.before(roomChanged);
588
613
  flushSync(tellWalk);
589
614
  paintHold?.after();
590
615
  }
616
+ /* Runs `fn` once the frame being made now is painted; returns the way to
617
+ call it off. The timer stands in where frames stop (a hidden tab). */
618
+ function afterThisFrame(fn) {
619
+ let done = false;
620
+ const run = () => {
621
+ if (done)
622
+ return;
623
+ done = true;
624
+ clearTimeout(fallback);
625
+ fn();
626
+ };
627
+ const frame = requestAnimationFrame(() => setTimeout(run, 0));
628
+ const fallback = setTimeout(run, 100);
629
+ return () => {
630
+ done = true;
631
+ cancelAnimationFrame(frame);
632
+ clearTimeout(fallback);
633
+ };
634
+ }
591
635
  /* The walk as something a component can watch. Every render and every
592
636
  crumb correction is one tick; a component that subscribes re-reads the
593
637
  stack. Kept as a counter rather than a copy of the stack, because the
@@ -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, .dd-button) { border-radius: var(--radius); }
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, .dd-button) { border-radius: var(--control-radius); }
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, .dd-button, .record-picker-trigger) { border-radius: var(--field-radius, 2px); }
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;
@@ -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. Since
124
- Modal.tsx moved every dialog onto Base UI there is no `<dialog open>` to
125
- see: a modal is an `aria-modal` element on a portal of its own, and this
126
- trap pulled focus back from it while Base UI's pulled it in again — the
127
- connection form's name, filled as it opened, landed in the URL box. */
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;