@mistriwork/kit 1.0.0-rc.62 → 1.0.0-rc.64

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 (53) hide show
  1. package/dist/client/app.js +5 -4
  2. package/dist/client/components/AiMark.d.ts +6 -0
  3. package/dist/client/components/AiMark.js +21 -0
  4. package/dist/client/components/AppList.js +6 -3
  5. package/dist/client/components/Content.js +3 -1
  6. package/dist/client/components/Crumbs.js +8 -4
  7. package/dist/client/components/DashHead.js +2 -1
  8. package/dist/client/components/DateField.js +3 -3
  9. package/dist/client/components/Grid.js +32 -7
  10. package/dist/client/components/GridSelection.js +7 -5
  11. package/dist/client/components/NewRecord.js +3 -3
  12. package/dist/client/components/Notes.css +10 -0
  13. package/dist/client/components/Page.js +1 -1
  14. package/dist/client/components/PageHeading.d.ts +21 -0
  15. package/dist/client/components/PageHeading.js +6 -0
  16. package/dist/client/components/PageHistory.d.ts +6 -1
  17. package/dist/client/components/PageHistory.js +13 -1
  18. package/dist/client/components/PageRoom.d.ts +15 -0
  19. package/dist/client/components/PageRoom.js +10 -1
  20. package/dist/client/components/Palette.js +9 -4
  21. package/dist/client/components/appListModel.d.ts +10 -0
  22. package/dist/client/components/appListModel.js +20 -1
  23. package/dist/client/components/appRooms.d.ts +2 -0
  24. package/dist/client/components/appRooms.js +2 -0
  25. package/dist/client/components/gridArrange.d.ts +4 -3
  26. package/dist/client/components/gridArrange.js +8 -6
  27. package/dist/client/components/gridSizing.d.ts +9 -1
  28. package/dist/client/components/gridSizing.js +21 -2
  29. package/dist/client/components/useMediaQuery.d.ts +2 -1
  30. package/dist/client/components/useMediaQuery.js +4 -2
  31. package/dist/client/components/valueModel.js +1 -1
  32. package/dist/client/copy/forms/components/DateField.d.ts +3 -3
  33. package/dist/client/copy/forms/components/DateField.js +3 -3
  34. package/dist/client/copy/forms/components/NewRecord.d.ts +0 -1
  35. package/dist/client/copy/forms/components/NewRecord.js +0 -1
  36. package/dist/client/copy/record/components/PageHistory.d.ts +4 -0
  37. package/dist/client/copy/record/components/PageHistory.js +4 -0
  38. package/dist/client/copy/shell/components/AiMark.d.ts +3 -0
  39. package/dist/client/copy/shell/components/AiMark.js +5 -0
  40. package/dist/client/core.js +2 -1
  41. package/dist/client/dayLabel.d.ts +8 -0
  42. package/dist/client/dayLabel.js +18 -0
  43. package/dist/client/features.css +52 -4
  44. package/dist/client/page.css +107 -2
  45. package/dist/client/palette.js +15 -2
  46. package/dist/client/shellMode.d.ts +5 -1
  47. package/dist/client/shellMode.js +1 -0
  48. package/dist/client/shells.d.ts +2 -0
  49. package/dist/client/structure.css +43 -9
  50. package/dist/client/style.css +28 -6
  51. package/dist/client/visualThemes.css +0 -2
  52. package/dist/shared/uiTokens.js +1 -0
  53. package/package.json +4 -3
@@ -47,6 +47,7 @@ const WORKBENCH = Object.freeze({
47
47
  Assistant: null,
48
48
  Directory: null,
49
49
  Settings: null,
50
+ Review: null,
50
51
  Page: null,
51
52
  SplitRecord: null,
52
53
  Document: null,
@@ -87,6 +87,8 @@ export interface ShellChrome {
87
87
  settings?(): Array<Record<string, unknown>>;
88
88
  /** The width at which an App's side menu becomes a phone's drawer; the menu is drawn again when it is crossed. */
89
89
  compactNavigation?: MediaQueryList;
90
+ /** The width at which an App's side menu stands as its icon rail (a tablet's); the menu is drawn again when it is crossed. */
91
+ tabletNavigation?: MediaQueryList;
90
92
  /** The theme bench moved the menu (themeBench.ts): the kit draws the shell again around the same room. */
91
93
  whenMenuMoves?(listener: () => void): unknown;
92
94
  /** Follow the App's source on disk, where the server watches it. */
@@ -680,6 +680,12 @@
680
680
  grid-template-columns: minmax(0, 1fr);
681
681
  }
682
682
  }
683
+ /* A tablet keeps a record's side column (page.css), and its fields stay one to a line in it. */
684
+ @media (min-width: 761px) and (max-width: 1100px) {
685
+ :where(.page-layout:not([data-layout], .dashboard-layout)) .page-aside .page-fields .page-field-grid {
686
+ grid-template-columns: minmax(0, 1fr);
687
+ }
688
+ }
683
689
  @container record-host (max-width: 1100px) {
684
690
  .page-aside .page-fields .page-field-grid {
685
691
  grid-template-columns: var(--page-field-columns, repeat(auto-fit, minmax(min(100%, var(--page-field-min, 16rem)), 1fr)));
@@ -878,17 +884,15 @@
878
884
  .command-choices {
879
885
  row-gap: 0;
880
886
  }
881
- /* A phone list's filter row the same way: its search is a field, so it draws at 44px, and the Filters and sort
882
- beside it at its height, the row alike as it is at 40px without a finger (ListFilterBar.css). A breakdown's rows
887
+ /* A list's filter row the same way, a tablet's as a phone's: its search is a field, so it draws at 44px, and the
888
+ Filters and sort beside it at its height (ListFilterBar.css). A breakdown's rows
883
889
  that open their group are rows under a finger, as a list's are (--row-h), 44px with no gap between them: a hit
884
890
  area drawn past a 28px row reached into its neighbor's, 5px away. A field report's grade found the search 40px
885
891
  and the rows 28px on every page that had them. */
886
- @media (max-width: 600px) {
887
- .applist-search-input,
888
- .applist-sheet-open,
889
- .applist-sort [data-slot='select-trigger'] {
890
- min-height: 44px;
891
- }
892
+ .applist-search-input,
893
+ .applist-sheet-open,
894
+ .applist-sort [data-slot='select-trigger'] {
895
+ min-height: 44px;
892
896
  }
893
897
  .page-breakdown-rows:has(> .pbd-drill) {
894
898
  row-gap: 0;
@@ -1523,6 +1527,36 @@
1523
1527
  height: 32px;
1524
1528
  margin-inline: calc(-1 * var(--space-3)) 0;
1525
1529
  }
1530
+ /* Under a thumb (a tablet folds the menu to the rail) every mark in the rail is a 44px target — a row 44px tall,
1531
+ a reach the rail's width rather than a wider mark — and the menu's toggle takes a 44px reach round its square.
1532
+ `::before` on a room, since a highlighted one's `::after` is its Enter hint. */
1533
+ @media (pointer: coarse) {
1534
+ body.app-nav-rail.sidebar-hidden .sidebar:not(.mobile-nav-sidebar) :is(#table-list button:not(.nav-group-fold), #table-list a.app-nav-target) {
1535
+ position: relative;
1536
+ min-height: 44px;
1537
+ }
1538
+ body.app-nav-rail.sidebar-hidden .sidebar:not(.mobile-nav-sidebar) :is(#table-list button:not(.nav-group-fold), #table-list a.app-nav-target)::before {
1539
+ content: '';
1540
+ position: absolute;
1541
+ top: 0;
1542
+ bottom: 0;
1543
+ left: 50%;
1544
+ width: max(100%, 44px);
1545
+ transform: translateX(-50%);
1546
+ }
1547
+ .pane-bar > .sidebar-collapse {
1548
+ position: relative;
1549
+ }
1550
+ .pane-bar > .sidebar-collapse::after {
1551
+ content: '';
1552
+ position: absolute;
1553
+ left: 50%;
1554
+ top: 50%;
1555
+ width: max(100%, 44px);
1556
+ height: max(100%, 44px);
1557
+ transform: translate(-50%, -50%);
1558
+ }
1559
+ }
1526
1560
  body.app-sidebar-shell .pane-bar > #search-button {
1527
1561
  flex: 0 1 20rem;
1528
1562
  min-width: 8rem;
@@ -1646,7 +1680,7 @@
1646
1680
  body.app-sidebar-shell #content > .applist-head:first-child {
1647
1681
  margin-top: 0;
1648
1682
  /* A step of air under the pane's bar: at the row's own 10px a list's title stood against the bar's rule. */
1649
- padding-block: var(--space-5) var(--space-3h);
1683
+ padding-block: var(--page-top) var(--space-3h);
1650
1684
  border-bottom: 1px solid var(--line);
1651
1685
  }
1652
1686
  /* The trail's bar stands on the pane it is in: on the window's ground it was a grey band across a white pane in
@@ -418,6 +418,16 @@ html[data-starting] .content.nav-holding.nav-holding-focusable > :not(.nav-held)
418
418
  color: var(--ink); font-weight: 500;
419
419
  font-family: var(--mono); padding: var(--space-1) var(--space-2);
420
420
  }
421
+ /* A trail with steps between its first and its last stays on one line, and
422
+ gives way from the middle: those steps are cut to an ellipsis first (their
423
+ whole in the browser's hover title is the walk's to give), the first, where
424
+ the trail began, and the last, where the reader is, last of all. Wrapped, a
425
+ deep walk drew a second row of crumbs. The bar's verbs and note keep their size. */
426
+ .crumbs:has(> [data-crumb='middle']) { flex-wrap: nowrap; }
427
+ .crumbs > [data-crumb='middle'] { flex: 0 100 auto; min-width: 3ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
428
+ .crumbs > [data-crumb='first'] { flex: 0 1 auto; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
429
+ .crumbs > [data-crumb='last'] { flex: 0 1 auto; min-width: 6ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
430
+ .crumbs:has(> [data-crumb='middle']) > :is(.sep, .crumb-home, .crumb-back, .crumb-tools, .crumb-note) { flex: none; }
421
431
  /* On a phone a record's name is wider than the bar: wrapped, it left the
422
432
  house and its chevron alone on the first line. It takes the rest of the
423
433
  line and ends in an ellipsis; the page's own heading says it in full. */
@@ -1036,7 +1046,14 @@ th:focus-within .th-move { opacity: 1; }
1036
1046
  .th-resizer::before { opacity: 1; }
1037
1047
  }
1038
1048
  @media (pointer: coarse) {
1039
- .th-move { position: relative; }
1049
+ /* A head's sort and its caret take the same finger's reach: the caret, later in the head, is drawn over the sort,
1050
+ so where the two reaches meet the tap is the caret's, the one control with no other way in. */
1051
+ .th-move, .th-sort, .th-filter { position: relative; }
1052
+ .th-sort::after, .th-filter::after {
1053
+ content: ''; position: absolute; left: 50%; top: 50%;
1054
+ width: max(100%, 44px); height: max(100%, 44px);
1055
+ transform: translate(-50%, -50%);
1056
+ }
1040
1057
  .th-move::after {
1041
1058
  content: ''; position: absolute; left: 50%; top: 50%;
1042
1059
  width: max(100%, 44px); height: max(100%, 44px);
@@ -3317,24 +3334,29 @@ tr.expanded > td { border-bottom-color: transparent; background: var(--accent-so
3317
3334
  .tenant-chooser-retry { margin-top: 20px; }
3318
3335
  .tenant-chooser button:disabled, .tenant-chooser-actions button:disabled, .tenant-control-trigger:disabled { cursor: default; opacity: 0.6; }
3319
3336
  .tenant-control { display: inline-flex; min-width: 0; }
3320
- .tenant-control-trigger { display: inline-flex; align-items: center; gap: var(--space-2h); max-width: 16rem; }
3337
+ /* A long name is cut to the bar's room, not to a fixed 16rem that cut
3338
+ ordinary ones; its whole is the button's title. */
3339
+ .tenant-control-trigger { display: inline-flex; align-items: center; gap: var(--space-2h); max-width: min(24rem, 100%); min-width: 0; }
3321
3340
  .tenant-control-trigger > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
3322
3341
  .tenant-control-trigger > :last-child { flex: none; }
3342
+ /* The names scroll and the foot stays: a list of many tenants carried the
3343
+ foot off the bottom of the dialog. */
3323
3344
  .tenant-chooser-dialog {
3324
- width: min(36rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
3345
+ width: min(36rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden;
3346
+ display: flex; flex-direction: column;
3325
3347
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
3326
3348
  border-radius: var(--radius); box-shadow: var(--shadow-modal);
3327
3349
  }
3328
3350
  [data-slot='dialog-backdrop'][data-for='tenant-chooser-dialog'] { background: var(--scrim); }
3329
- .tenant-chooser-dialog .tenant-chooser { margin: 0; }
3330
- .tenant-chooser-actions { display: flex; justify-content: flex-end; padding: 0 var(--space-6) var(--space-6); }
3351
+ .tenant-chooser-dialog .tenant-chooser { margin: 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
3352
+ .tenant-chooser-actions { display: flex; flex: none; justify-content: flex-end; padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line); }
3331
3353
  /* What the bar offers beside the control is the dialog's too, and only on a
3332
3354
  phone, where the bar is the one row design.md gives it and the control is
3333
3355
  the account menu's. */
3334
3356
  .tenant-chooser-elsewhere { display: none; }
3335
3357
  @media (max-width: 700px) {
3336
3358
  .tenant-chooser { margin: 20px auto; padding: 20px var(--space-4h); }
3337
- .tenant-chooser-actions { flex-wrap: wrap; gap: var(--space-3); padding: 0 var(--space-4h) 20px; }
3359
+ .tenant-chooser-actions { flex-wrap: wrap; gap: var(--space-3); padding: var(--space-3h) var(--space-4h); }
3338
3360
  .tenant-chooser-elsewhere { display: inline-flex; margin-right: auto; }
3339
3361
  }
3340
3362
  .workspace-opening { margin: 0; padding: 40px var(--space-6); color: var(--ink-muted); }
@@ -176,7 +176,6 @@
176
176
  :root[data-visual-theme] .crumbs { flex: none; min-height: 51px; padding-block: var(--space-3h); background: var(--ground); z-index: 5; isolation: isolate; }
177
177
  :root[data-visual-theme] .app-mode .crumbs > :is(button, .current) { font-family: var(--sans); font-size: var(--text-sm); }
178
178
  :root[data-visual-theme] .app-mode .crumbs .current { font-weight: 600; }
179
- :root[data-visual-theme] .applist-head { padding-top: var(--space-6); }
180
179
  /* A head holding only the hidden heading (a room that draws its own title) takes no room: the heading stays for assistive tech, the band above the room goes. */
181
180
  :root[data-visual-theme] .applist-head.dash-head:has(> .applist-title.visually-hidden:only-child) { margin: 0; padding: 0; min-height: 0; }
182
181
  :root[data-visual-theme] .applist-head-row { align-items: center; }
@@ -361,7 +360,6 @@
361
360
  :root[data-visual-theme] body.app-topnav .topbar { padding-block: var(--space-2); }
362
361
  :root[data-visual-theme] body.app-topnav .topbar:not([data-header-width="content"]) { padding-inline: var(--space-5); }
363
362
  :root[data-visual-theme] .brand-name { font-size: calc(18px * var(--type-k)); }
364
- :root[data-visual-theme] .applist-head { padding-top: var(--space-5); }
365
363
  :root[data-visual-theme] .dash-strip .home-cards { gap: var(--space-4) 20px; }
366
364
  :root[data-visual-theme] .dash-strip .home-card { padding-block: var(--space-4); }
367
365
  :root[data-visual-theme] .home-card-value { font-size: calc(26px * var(--type-k)); }
@@ -33,6 +33,7 @@ const SHEET_TOKENS = [
33
33
  '--control-h',
34
34
  '--section-seam',
35
35
  '--page-head-gap',
36
+ '--page-top',
36
37
  '--page-measure',
37
38
  '--room-inset',
38
39
  '--row-h',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mistriwork/kit",
3
- "version": "1.0.0-rc.62",
3
+ "version": "1.0.0-rc.64",
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": {
@@ -57,6 +57,7 @@
57
57
  "./client/messages.js": "./dist/client/messages.js",
58
58
  "./client/page.js": "./dist/client/page.js",
59
59
  "./client/palette.js": "./dist/client/palette.js",
60
+ "./client/paletteRecents.js": "./dist/client/paletteRecents.js",
60
61
  "./client/peek.js": "./dist/client/peek.js",
61
62
  "./client/peekpanel.js": "./dist/client/peekpanel.js",
62
63
  "./client/prompt.js": "./dist/client/prompt.js",
@@ -84,8 +85,8 @@
84
85
  "./package.json": "./package.json"
85
86
  },
86
87
  "dependencies": {
87
- "@mistriwork/engine": "1.0.0-rc.62",
88
- "@mistriwork/ui": "1.0.0-rc.62",
88
+ "@mistriwork/engine": "1.0.0-rc.64",
89
+ "@mistriwork/ui": "1.0.0-rc.64",
89
90
  "intl-messageformat": "12.1.2",
90
91
  "qrcode-generator": "^2.0.4"
91
92
  },