viewkitjs 0.37.0 → 0.39.0

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 (220) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/MIGRATION.md +7 -0
  3. package/fields/dist/query/figure-kinds.d.ts +2 -2
  4. package/fields/dist/query/figure-kinds.js +3 -0
  5. package/fields/dist/query/figures.d.ts +5 -3
  6. package/fields/dist/query/figures.js +13 -0
  7. package/fields/docs/reference/query.md +3 -3
  8. package/package.json +1 -1
  9. package/postgres/docs/guides/field-map.md +1 -1
  10. package/views/dist/atoms/HeaderChrome.d.ts +7 -0
  11. package/views/dist/atoms/HeaderChrome.js +15 -0
  12. package/views/dist/atoms/ToolbarButton.d.ts +1 -1
  13. package/views/dist/atoms/ToolbarButton.js +2 -2
  14. package/views/dist/atoms/defaults.js +4 -0
  15. package/views/dist/atoms/types.d.ts +39 -2
  16. package/views/dist/contract.d.ts +25 -11
  17. package/views/dist/contract.js +41 -6
  18. package/views/dist/controls/field/looks.d.ts +1 -1
  19. package/views/dist/controls/field/looks.js +9 -3
  20. package/views/dist/controls/field/tokens.d.ts +4 -0
  21. package/views/dist/controls/field/tokens.js +1 -0
  22. package/views/dist/controls/field.css +93 -1
  23. package/views/dist/controls/filter-editor/block.d.ts +3 -1
  24. package/views/dist/controls/filter-editor/block.js +4 -3
  25. package/views/dist/controls/filter-editor/filter-editor.d.ts +13 -2
  26. package/views/dist/controls/filter-editor/filter-editor.js +45 -15
  27. package/views/dist/controls/filter-editor/how.d.ts +3 -1
  28. package/views/dist/controls/filter-editor/map-filter-body.js +5 -4
  29. package/views/dist/controls/filter-editor/map-rules.d.ts +2 -1
  30. package/views/dist/controls/filter-editor/map-rules.js +3 -3
  31. package/views/dist/controls/glyphs/glyphs.js +2 -0
  32. package/views/dist/controls/inline-input.css +3 -2
  33. package/views/dist/controls/internal/menu-items.d.ts +2 -0
  34. package/views/dist/controls/internal/menu-items.js +1 -1
  35. package/views/dist/controls/internal/part-slot.d.ts +1 -1
  36. package/views/dist/controls/internal/part-slot.js +1 -1
  37. package/views/dist/controls/internal/read-token.d.ts +2 -1
  38. package/views/dist/controls/internal/read-token.js +2 -1
  39. package/views/dist/controls/internal/row-actions.d.ts +33 -0
  40. package/views/dist/controls/internal/row-actions.js +28 -0
  41. package/views/dist/controls/menu/map-menu.js +1 -1
  42. package/views/dist/controls/number-editor/tokens.d.ts +8 -0
  43. package/views/dist/controls/number-editor/tokens.js +2 -0
  44. package/views/dist/controls/number-editor.css +20 -0
  45. package/views/dist/controls/popover/map-popover.d.ts +1 -1
  46. package/views/dist/controls/popover/map-popover.js +2 -2
  47. package/views/dist/controls/sheet/map-sheet.js +9 -6
  48. package/views/dist/controls/sort-editor/map-sort-body.js +1 -0
  49. package/views/dist/controls/sort-editor/sort-editor.d.ts +5 -1
  50. package/views/dist/controls/sort-editor/sort-editor.js +41 -13
  51. package/views/dist/controls/text-editor/tokens.d.ts +8 -0
  52. package/views/dist/controls/text-editor/tokens.js +2 -0
  53. package/views/dist/controls/text-editor.css +44 -2
  54. package/views/dist/controls/toolbar-button/atom-toolbar-button.d.ts +1 -1
  55. package/views/dist/controls/toolbar-button/atom-toolbar-button.js +2 -2
  56. package/views/dist/controls/tooltip/tooltip.js +2 -1
  57. package/views/dist/editors/EditorPanel.js +1 -1
  58. package/views/dist/field-row/FieldRow.js +46 -15
  59. package/views/dist/field-row/editors/RowChipsEditor.js +3 -1
  60. package/views/dist/field-row/editors/RowDateEditor.js +3 -1
  61. package/views/dist/field-row/editors/RowNameEditor.js +3 -1
  62. package/views/dist/field-row/editors/RowPlaceEditor.js +4 -2
  63. package/views/dist/field-row/editors/RowRangeEditor.js +3 -1
  64. package/views/dist/field-row/editors/RowRelationEditor.js +5 -2
  65. package/views/dist/field-row/editors/RowSelectEditor.js +3 -1
  66. package/views/dist/field-row/editors/RowTextEditor.d.ts +7 -1
  67. package/views/dist/field-row/editors/RowTextEditor.js +25 -4
  68. package/views/dist/field-row/editors/RowValueListEditor.js +4 -4
  69. package/views/dist/field-row/editors/row-place.d.ts +33 -0
  70. package/views/dist/field-row/editors/row-place.js +141 -0
  71. package/views/dist/field-row/field-row-button.d.ts +21 -6
  72. package/views/dist/field-row/field-row-button.js +8 -3
  73. package/views/dist/field-row/row-target.d.ts +4 -1
  74. package/views/dist/field-row/row-target.js +1 -1
  75. package/views/dist/fields/binding.d.ts +4 -0
  76. package/views/dist/grid/chrome/GridAggregateMenu.d.ts +12 -11
  77. package/views/dist/grid/chrome/GridAggregateMenu.js +4 -3
  78. package/views/dist/grid/chrome/GridCellEditors.d.ts +1 -1
  79. package/views/dist/grid/chrome/GridCellOutline.d.ts +13 -1
  80. package/views/dist/grid/chrome/GridCellOutline.js +17 -0
  81. package/views/dist/grid/chrome/GridFooter.d.ts +12 -4
  82. package/views/dist/grid/chrome/GridFooter.js +11 -9
  83. package/views/dist/grid/chrome/GridHeader.js +4 -3
  84. package/views/dist/grid/chrome/GridNumberEditor.js +2 -1
  85. package/views/dist/grid/chrome/GridResizeHandle.d.ts +7 -3
  86. package/views/dist/grid/chrome/GridResizeHandle.js +2 -3
  87. package/views/dist/grid/chrome/GridRowCells.js +1 -1
  88. package/views/dist/grid/chrome/GridStructure.js +3 -3
  89. package/views/dist/grid/chrome/GridTable.js +1 -1
  90. package/views/dist/grid/chrome/GridTableSurface.js +1 -1
  91. package/views/dist/grid/chrome/GridTextEditor.js +3 -1
  92. package/views/dist/grid/chrome/grid-body-place.d.ts +2 -4
  93. package/views/dist/grid/chrome/grid-body-place.js +4 -4
  94. package/views/dist/grid/chrome/grid-edit-session.d.ts +7 -3
  95. package/views/dist/grid/chrome/grid-edit-session.js +12 -3
  96. package/views/dist/grid/chrome/grid-editor-layer.d.ts +5 -4
  97. package/views/dist/grid/chrome/grid-figure-value.js +10 -4
  98. package/views/dist/grid/chrome/grid-row-props.d.ts +1 -1
  99. package/views/dist/grid/chrome/grid-table-props.d.ts +11 -3
  100. package/views/dist/grid/chrome/useGridKeyboard.d.ts +5 -1
  101. package/views/dist/grid/chrome/useGridKeyboard.js +9 -5
  102. package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +1 -1
  103. package/views/dist/grid/chrome/useGridTableInteractionModel.js +8 -3
  104. package/views/dist/grid/grid.css +7 -3
  105. package/views/dist/internal/length.d.ts +2 -0
  106. package/views/dist/internal/length.js +16 -0
  107. package/views/dist/internal/over-cell.d.ts +8 -0
  108. package/views/dist/internal/over-cell.js +5 -0
  109. package/views/dist/list/bar-keys.d.ts +5 -0
  110. package/views/dist/list/bar-keys.js +2 -0
  111. package/views/dist/list/bar-parts.d.ts +27 -0
  112. package/views/dist/list/bar-parts.js +38 -0
  113. package/views/dist/list/buttons/clear-save.d.ts +7 -0
  114. package/views/dist/list/buttons/clear-save.js +15 -0
  115. package/views/dist/list/buttons/customize.d.ts +28 -0
  116. package/views/dist/list/buttons/customize.js +31 -0
  117. package/views/dist/list/buttons/filter.d.ts +32 -0
  118. package/views/dist/list/buttons/filter.js +60 -0
  119. package/views/dist/list/buttons/new.d.ts +18 -0
  120. package/views/dist/list/buttons/new.js +9 -0
  121. package/views/dist/list/buttons/quick.d.ts +15 -0
  122. package/views/dist/list/buttons/quick.js +24 -0
  123. package/views/dist/list/buttons/search.d.ts +18 -0
  124. package/views/dist/list/buttons/search.js +17 -0
  125. package/views/dist/list/buttons/shared.d.ts +91 -0
  126. package/views/dist/list/buttons/shared.js +131 -0
  127. package/views/dist/list/buttons/sort-filter.d.ts +6 -0
  128. package/views/dist/list/buttons/sort-filter.js +16 -0
  129. package/views/dist/list/buttons/sort.d.ts +17 -0
  130. package/views/dist/list/buttons/sort.js +34 -0
  131. package/views/dist/list/buttons/views.d.ts +21 -0
  132. package/views/dist/list/buttons/views.js +36 -0
  133. package/views/dist/list/editor-menus.d.ts +13 -0
  134. package/views/dist/list/editor-menus.js +13 -0
  135. package/views/dist/list/index.d.ts +41 -0
  136. package/views/dist/list/index.js +19 -0
  137. package/views/dist/list/line.d.ts +55 -0
  138. package/views/dist/list/line.js +221 -0
  139. package/views/dist/list/pane-box.d.ts +6 -0
  140. package/views/dist/list/pane-box.js +15 -0
  141. package/views/dist/list/panels/customize.d.ts +8 -0
  142. package/views/dist/list/panels/customize.js +23 -0
  143. package/views/dist/list/panels/filter-bar.d.ts +12 -0
  144. package/views/dist/list/panels/filter-bar.js +67 -0
  145. package/views/dist/list/panels/filter.d.ts +8 -0
  146. package/views/dist/list/panels/filter.js +23 -0
  147. package/views/dist/list/panels/quick.d.ts +7 -0
  148. package/views/dist/list/panels/quick.js +16 -0
  149. package/views/dist/list/panels/shared.d.ts +25 -0
  150. package/views/dist/list/panels/shared.js +33 -0
  151. package/views/dist/list/panels/sort.d.ts +8 -0
  152. package/views/dist/list/panels/sort.js +19 -0
  153. package/views/dist/list/panels/views.d.ts +13 -0
  154. package/views/dist/list/panels/views.js +27 -0
  155. package/views/dist/list/ready.d.ts +35 -0
  156. package/views/dist/list/ready.js +7 -0
  157. package/views/dist/list/root-base.d.ts +17 -0
  158. package/views/dist/list/root-base.js +9 -1
  159. package/views/dist/list/root.js +2 -2
  160. package/views/dist/list/store.d.ts +19 -0
  161. package/views/dist/list/store.js +40 -1
  162. package/views/dist/list/toolbar-model.d.ts +95 -0
  163. package/views/dist/list/toolbar-model.js +177 -0
  164. package/views/dist/list/toolbar.js +140 -328
  165. package/views/dist/list/views-axis.js +15 -4
  166. package/views/dist/model/aggregates.d.ts +18 -8
  167. package/views/dist/model/aggregates.js +16 -22
  168. package/views/dist/panels/react/filter/FilterEditor.d.ts +3 -1
  169. package/views/dist/panels/react/filter/FilterEditor.js +2 -2
  170. package/views/dist/panels/react/filter/filter-body.d.ts +3 -1
  171. package/views/dist/panels/react/filter/filter-body.js +2 -2
  172. package/views/dist/panels/react/sort/SortEditor.d.ts +3 -1
  173. package/views/dist/panels/react/sort/SortEditor.js +4 -4
  174. package/views/dist/panels/react/toolbar/Toolbar.d.ts +80 -3
  175. package/views/dist/panels/react/toolbar/Toolbar.js +85 -52
  176. package/views/dist/panels/react/toolbar/ToolbarBarSorts.d.ts +9 -0
  177. package/views/dist/panels/react/toolbar/ToolbarBarSorts.js +57 -0
  178. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.d.ts +4 -1
  179. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +2 -2
  180. package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +30 -0
  181. package/views/dist/panels/react/toolbar/ToolbarOptions.js +6 -1
  182. package/views/dist/panels/react/toolbar/ToolbarSortPill.d.ts +5 -0
  183. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +6 -4
  184. package/views/dist/panels/react/toolbar/ToolbarViews.d.ts +7 -1
  185. package/views/dist/panels/react/toolbar/ToolbarViews.js +4 -4
  186. package/views/dist/panels/react/toolbar/sheet-host.d.ts +3 -0
  187. package/views/dist/panels/react/toolbar/sheet-host.js +6 -0
  188. package/views/dist/panels/react/toolbar/use-give-way.d.ts +6 -0
  189. package/views/dist/panels/react/toolbar/use-give-way.js +8 -1
  190. package/views/dist/panels/react/views-row/ViewPicker.d.ts +8 -1
  191. package/views/dist/panels/react/views-row/ViewPicker.js +12 -7
  192. package/views/dist/panels/settings/filter-groups.js +7 -0
  193. package/views/dist/provider/components.d.ts +38 -3
  194. package/views/dist/react.d.ts +1 -1
  195. package/views/dist/selection/bar-overflow.d.ts +2 -0
  196. package/views/dist/selection/bar-overflow.js +2 -1
  197. package/views/dist/selection/bar-props.d.ts +1 -1
  198. package/views/dist/selection/verbs.d.ts +2 -2
  199. package/views/dist/styles.css +268 -5
  200. package/views/dist/styles.unlayered.css +268 -5
  201. package/views/docs/contract.md +29 -15
  202. package/views/docs/controls/field.md +1 -0
  203. package/views/docs/controls/filter-editor.md +1 -1
  204. package/views/docs/controls/menu.md +1 -1
  205. package/views/docs/controls/number-editor.md +2 -0
  206. package/views/docs/controls/sort-editor.md +1 -1
  207. package/views/docs/controls/text-editor.md +2 -0
  208. package/views/docs/guides/atoms.md +1 -0
  209. package/views/docs/guides/selection.md +1 -1
  210. package/views/docs/guides/the-grid.md +3 -3
  211. package/views/docs/reference/controls.md +3 -3
  212. package/views/docs/reference/field-row.md +1 -1
  213. package/views/docs/reference/grid.md +4 -4
  214. package/views/docs/reference/list.md +168 -6
  215. package/views/docs/reference/looks.md +1 -1
  216. package/views/docs/reference/panels-react.md +7 -7
  217. package/views/docs/reference/react.md +13 -10
  218. package/views/docs/reference/selection.md +1 -1
  219. package/views/docs/reference/views.md +9 -7
  220. package/views/skills/views/SKILL.md +2 -1
@@ -1,4 +1,4 @@
1
- /*! viewkitjs 0.37.0 · viewkitjs/views/styles.css: ViewKit's look, its defaults the Outright look */
1
+ /*! viewkitjs 0.39.0 · viewkitjs/views/styles.css: ViewKit's look, its defaults the Outright look */
2
2
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
3
3
  @layer theme, base, components, utilities;
4
4
  @layer base {
@@ -1882,6 +1882,97 @@ button.o-field-row { cursor: pointer; }
1882
1882
  .o-field-rows-slot + .o-field-rows-slot::before { content: " "; }
1883
1883
  .o-field-rows-slot > .o-field-error { color: var(--vk-danger); }
1884
1884
  .o-field-rows-foot:has(.o-field-error) .o-field-note { display: none; }
1885
+ /* ── The Field's Box (row-box: box, looks.ts; data-field-row-box="box" on a frame round the rows): a record's field row outside a
1886
+ card (data-field-row, field-row/FieldRow.tsx) draws one rectangle for its hover, its press, its in-place input and the value
1887
+ an open picker keeps in its place, so its words never move and it keeps its height. The row reads the app's three names
1888
+ (--vk-field-row-box-h, -x, -r; undeclared 32, 8 and 8) into its own, and how far the box stands above and below its one 20px
1889
+ line (y). Its target (the app's Button, data-key="vk-field-row-target", -beside beside a link's action, -under under a rich text;
1890
+ and data-field-row-anchor, the value an open picker keeps in its place) stands where it stood, pulled out by that reach and
1891
+ that y, as tall as the box, no edge of its own (the words stand x from the box's edge whatever the app's Button draws), its
1892
+ corner, no press. The
1893
+ in-place text and number editors read the same names round data-field-row-editor (text-editor.css, number-editor.css). Below
1894
+ the desktop line the gap under the label is y, so the box meets the label's line without covering it. Its geometry is
1895
+ !important: the row's own classes are Tailwind's, and an app that compiles them into its own utilities layer (Tailwind's source scanning), or
1896
+ whose own Tailwind writes the same names, puts them in a later layer, which no specificity here would outweigh. Nothing of it
1897
+ applies without the attribute. ──────────────────────────────────────────────────────────────────────────────────────── */
1898
+ :where([data-field-row-box="box"]) [data-field-row] {
1899
+ --field-row-box-h: var(--vk-field-row-box-h, calc(var(--vk-spacing) * 8));
1900
+ --field-row-box-x: var(--vk-field-row-box-x, calc(var(--vk-spacing) * 2));
1901
+ --field-row-box-r: var(--vk-field-row-box-r, calc(var(--vk-spacing) * 2));
1902
+ --field-row-box-y: calc((var(--field-row-box-h) - var(--vk-spacing) * 5) / 2);
1903
+ }
1904
+ :where([data-field-row-box="box"]) [data-field-row][data-form="phone"] { row-gap: var(--field-row-box-y) !important; }
1905
+ :where([data-field-row-box="box"]) :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-key="vk-field-row-under"], [data-field-row-anchor]) {
1906
+ box-sizing: border-box !important; min-height: var(--field-row-box-h) !important;
1907
+ padding: var(--field-row-box-y) var(--field-row-box-x) !important;
1908
+ margin: calc(var(--field-row-box-y) * -1) calc(var(--field-row-box-x) * -1) !important;
1909
+ width: calc(100% + var(--field-row-box-x) * 2) !important;
1910
+ border-width: 0 !important; border-radius: var(--field-row-box-r) !important; --button-r: var(--field-row-box-r); --vk-press-scale: 1;
1911
+ }
1912
+ /* Beside a link's open action: its left edge only, the action keeping its place. */
1913
+ :where([data-field-row-box="box"]) [data-key="vk-field-row-beside"] { margin-right: 0 !important; width: auto !important; }
1914
+ /* Under a rich text: laid over the value's footprint, pulled out by the box's reach and its y. */
1915
+ :where([data-field-row-box="box"]) [data-key="vk-field-row-under"] {
1916
+ inset: calc(var(--field-row-box-y) * -1) calc(var(--field-row-box-x) * -1) !important; margin: 0 !important; padding: 0 !important;
1917
+ width: auto !important; min-height: 0 !important;
1918
+ }
1919
+
1920
+ /* ── The Field's Action (row-action: icon, looks.ts; data-field-row-action="icon" on a frame round the rows): a record's field row
1921
+ outside a card shows one icon at its box's right end, on the box's hover and keyboard focus, saying what a click does. The row
1922
+ draws it inside its target and inside the value an open picker keeps in its place (data-field-row-act: edit or expand, none
1923
+ drawn where the box is the input; field-row/FieldRow.tsx), hidden by its class until this lays it out: 24 square, 4 in from the
1924
+ box's end, centred on the value's first line (the box's y above it, or the target's 4), its glyph 15. The box keeps the icon's
1925
+ room at its end (32, the icon and 4 either side), so the value ends there, cut with its "…" where it can't wrap, its label
1926
+ allowed to shrink to the box; the words laid over a rich text's empty target keep the same room. It stands, never moving the
1927
+ words, so the box draws the same rectangle at rest, hovered, pressed and while a picker is open, where it stays hidden. As the
1928
+ box's, the geometry is !important: the frame's classes are Tailwind's (the Field's Box, above, says why). ───────────────── */
1929
+ :where([data-field-row-action="icon"]) [data-field-row] :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-field-row-anchor]):has([data-field-row-act]) {
1930
+ position: relative; padding-right: calc(var(--vk-spacing) * 8) !important;
1931
+ }
1932
+ :where([data-field-row-action="icon"]) [data-field-row] :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-field-row-anchor]):has([data-field-row-act]) > * { min-width: 0; }
1933
+ :where([data-field-row-action="icon"]) [data-field-row] [data-key="vk-field-row-under"]:has([data-field-row-act]) + [data-slot="vk-row-value-layer"] {
1934
+ padding-right: calc(var(--vk-spacing) * 8 - var(--field-row-box-x, var(--vk-spacing) * 2));
1935
+ }
1936
+ :where([data-field-row-action="icon"]) [data-field-row] [data-field-row-act] {
1937
+ display: grid !important; place-items: center; position: absolute; right: var(--vk-spacing);
1938
+ top: calc(var(--field-row-box-y, var(--vk-spacing)) + var(--vk-spacing) * 2.5); translate: 0 -50%;
1939
+ width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); color: var(--vk-fg-subtle); pointer-events: none; visibility: hidden;
1940
+ }
1941
+ :where([data-field-row-action="icon"]) [data-field-row] :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-key="vk-field-row-under"]):is(:hover, :focus-visible) [data-field-row-act] { visibility: visible; }
1942
+
1943
+ /* ── The Field's Link (row-link: words, looks.ts; data-field-row-link="words" on a frame round the rows): a record's field row outside
1944
+ a card draws one link's words as the link itself, laid over the row's empty target as a rich text's are (data-field-row-words,
1945
+ field-row/FieldRow.tsx), so the words open the link and the rest of the box edits. The pointer on the words is the box's too:
1946
+ it keeps the quiet Button's hover ground (ViewKit's Button reads it; an app's own Button draws its own hover past the words) and
1947
+ shows its ✎. ──────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
1948
+ @media (hover: hover) {
1949
+ [data-field-row-words]:hover > [data-key="vk-field-row-under"]:not(:disabled, [aria-disabled="true"]) { --button-ground: var(--vk-hovered); }
1950
+ }
1951
+ :where([data-field-row-action="icon"]) [data-field-row] [data-field-row-words]:hover [data-field-row-act] { visibility: visible; }
1952
+
1953
+ /* ── The Field's Long (row-long: line, looks.ts; data-field-row-long="line" on a frame round the rows): a record's field row outside a
1954
+ card draws the words of a value it opens an editor on in one line at rest (data-field-row-text, field-row/FieldRow.tsx), so a
1955
+ description never makes a record uneven. A long text or a rich text (long) runs on as one line, its paragraphs and their blocks
1956
+ inline, a space after each, its Show more gone, and its end fades under a mask, never an "…": its editor shows the rest, on top of
1957
+ the box (RowTextEditor). A text (line) keeps to its first line, ending in its "…", so its one-line box keeps the row's height as it
1958
+ edits. As the box's, the geometry is !important: the display's classes are Tailwind's (the Field's Box, above, says why). ───── */
1959
+ :where([data-field-row-long="line"]) [data-field-row] [data-field-row-text="long"] {
1960
+ display: block !important; flex: 1 1 0%; overflow: hidden !important; white-space: nowrap !important; max-height: calc(var(--vk-spacing) * 5);
1961
+ -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--vk-spacing) * 12), transparent);
1962
+ mask-image: linear-gradient(to right, #000 calc(100% - var(--vk-spacing) * 12), transparent);
1963
+ }
1964
+ /* What holds the words in the target (an app's Button wraps its children) may shrink to the box, so the line is cut at its end. */
1965
+ :where([data-field-row-long="line"]) [data-field-row] :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-field-row-anchor]):has([data-field-row-text="long"]) > * {
1966
+ min-width: 0 !important;
1967
+ }
1968
+ :where([data-field-row-long="line"]) [data-field-row] [data-field-row-text="long"] * {
1969
+ display: inline !important; white-space: nowrap !important; overflow: visible !important; max-height: none !important;
1970
+ margin: 0 !important; padding: 0 !important; -webkit-line-clamp: none !important;
1971
+ }
1972
+ :where([data-field-row-long="line"]) [data-field-row] [data-field-row-text="long"] :is(p, li, h1, h2, h3, h4, h5, h6, blockquote, pre, tr)::after { content: " "; }
1973
+ :where([data-field-row-long="line"]) [data-field-row] [data-field-row-text="long"] :is([data-slot="vk-show-more"], br, hr, img, .absolute) { display: none !important; }
1974
+ :where([data-field-row-long="line"]) [data-field-row] [data-field-row-text="line"] > * { -webkit-line-clamp: 1 !important; }
1975
+
1885
1976
  /* A phone's first paint: server-rendered, Field rows' card stands twice, the phone's form and the computer's (`ScreenForms`,
1886
1977
  internal/screen-forms.tsx), and this shows the screen's at ViewKit's own line, as the toolbar's stylesheet does: here for an app
1887
1978
  that imports this card's stylesheet alone, on a page whose policy refuses an inline style. Kept on one line, as screenFormsCss writes it. */
@@ -2161,9 +2252,10 @@ button.o-field-row { cursor: pointer; }
2161
2252
  [data-inline-input-tint="10"] { --inline-input-tint: 100%; }
2162
2253
  [data-inline-input-ground="none"] { --inline-input-ground: var(--vk-input); }
2163
2254
 
2164
- /* ── In a grid's cell: only the caret ─────────────────────────────────────────────────────────────────────────────────────
2255
+ /* ── In a grid's cell: the cell itself ────────────────────────────────────────────────────────────────────────────────────
2165
2256
  Where the grid says its box stands in a cell (data-inline-input-place="cell", on its type-in's layer), the cell itself is the
2166
- box: no edge, no ring and no ground, whatever a frame picks, so the cell shows as it was. Grown past its cell (data-grown, on
2257
+ box: no edge, no ring and no ground of its own, whatever a frame picks, so the cell shows as it was, the grid's own selected
2258
+ ring round it (the grid draws that ring on the box). Grown past its cell (data-grown, on
2167
2259
  the body or the box that fits it), it takes the plain ground, so the values it stands over don't show through. */
2168
2260
  [data-inline-input-place="cell"] { --inline-input-edge: 0px; --inline-input-ring: 0px; --inline-input-ground: transparent; }
2169
2261
  [data-inline-input-place="cell"] [data-grown] { --inline-input-ground: var(--vk-overlay); }
@@ -3399,6 +3491,26 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
3399
3491
  .o-number-editor-sign, .o-number-editor-unit { flex: none; color: var(--vk-fg-subtle); }
3400
3492
  .o-number-editor[data-number-form="computer"] .o-number-editor-sign { margin-right: auto; }
3401
3493
 
3494
+ /* ── In a record's row that wears the Field's Box (data-field-row-box="box" on a frame round the rows; the row marks its open
3495
+ editor data-field-row-editor): on a computer the number's box is the row's own, as the Text editor's is (text-editor.css):
3496
+ where the row's hover and press drew it, as tall, its words as far in, no edge of its own, the row's ground, its ring
3497
+ outside it, red when refused. ─────────────────────────────────────────────────────────────────────────────────────────── */
3498
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-number-editor[data-number-form="computer"] {
3499
+ --inline-input-row: var(--field-row-box-h); --inline-input-edge: 0px; --inline-input-ring: 0px;
3500
+ width: calc(100% + var(--field-row-box-x) * 2); height: var(--field-row-box-h);
3501
+ margin: calc(var(--field-row-box-y) * -1) calc(var(--field-row-box-x) * -1);
3502
+ }
3503
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-number-editor[data-number-form="computer"] :is(.o-number-editor-field, .o-number-editor-field > .o-inline-input-group) {
3504
+ height: var(--field-row-box-h); min-height: var(--field-row-box-h);
3505
+ }
3506
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-number-editor[data-number-form="computer"] .o-inline-input {
3507
+ --inline-input-words: var(--field-row-box-x); border-radius: var(--field-row-box-r); background-color: transparent;
3508
+ box-shadow: 0 0 0 var(--vk-border-width) var(--inline-input-colour), var(--vk-shadow-field-focus);
3509
+ }
3510
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-number-editor[data-number-form="computer"] .o-inline-input:is([aria-invalid="true"], :has(.o-input-control[aria-invalid="true"])) {
3511
+ box-shadow: 0 0 0 var(--vk-border-width) var(--inline-input-colour), var(--vk-shadow-field-focus-danger);
3512
+ }
3513
+
3402
3514
  /* ── On a phone: the box and what is under it ───────────────────────────────────────────────────────────────────── */
3403
3515
  .o-number-editor[data-number-form="phone"] { display: grid; gap: calc(var(--vk-spacing) * 2); }
3404
3516
  .o-number-editor :is(.o-number-editor-code, .o-number-editor-sign, .o-number-editor-unit, .o-input-addon > .o-button):where([data-vk-phone], [data-vk-phone] *) { font-size: var(--vk-font-size-base); }
@@ -5614,8 +5726,8 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
5614
5726
  width: max(100%, calc(var(--vk-spacing) * 75)); max-width: none; max-height: calc(var(--vk-spacing) * 80);
5615
5727
  box-shadow: var(--vk-shadow-lg), inset 0 0 0 var(--inline-input-ring, 0px) var(--inline-input-colour);
5616
5728
  }
5617
- /* In a grid's cell (data-inline-input-place="cell", inline-input.css), never lifted, grown or long: the cell typed in shows only
5618
- the caret. (0,5,0): over the two lifts above. */
5729
+ /* In a grid's cell (data-inline-input-place="cell", inline-input.css), never lifted, grown or long: the cell typed in wears only
5730
+ the selected cell's ring. (0,5,0): over the two lifts above. */
5619
5731
  [data-inline-input-place="cell"] .o-text-editor[data-text-box][data-grown] .o-text-editor-box,
5620
5732
  [data-inline-input-place="cell"] .o-text-editor[data-text-box][data-text-kind="long"] .o-text-editor-box {
5621
5733
  box-shadow: inset 0 0 0 var(--inline-input-ring, 0px) var(--inline-input-colour);
@@ -5658,6 +5770,48 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
5658
5770
  .o-text-editor[data-text-place="row"][data-text-form] .o-text-editor-phone { position: relative; top: auto; left: auto; width: 100%; height: var(--inline-input-row); }
5659
5771
  .o-text-editor[data-text-place="row"][data-text-form] .o-text-editor-note { position: relative; top: auto; left: auto; margin-top: var(--vk-spacing); max-width: 100%; }
5660
5772
 
5773
+ /* ── In a record's row that wears the Field's Box (data-field-row-box="box" on a frame round the rows; the row marks its open
5774
+ editor data-field-row-editor): on a computer the box is the row's own, the rectangle its hover and its press drew. It stands
5775
+ where that rectangle stood, pulled out by the box's reach and its height round the row's one line (the row's
5776
+ --field-row-box-* variables, field.css), its words that reach in, no edge of its own, the row's ground: so
5777
+ not a pixel of the words moves and the row keeps its height. Its ring is drawn outside it, a line of the brand and the
5778
+ focus glow, red when refused. A line of text stays one line, scrolling sideways; long text still grows. A phone's form is
5779
+ the phone's own. ─────────────────────────────────────────────────────────────────────────────────────────────────── */
5780
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"] {
5781
+ --inline-input-row: var(--field-row-box-h); --inline-input-edge: 0px; --inline-input-ring: 0px;
5782
+ width: calc(100% + var(--field-row-box-x) * 2); margin: calc(var(--field-row-box-y) * -1) calc(var(--field-row-box-x) * -1);
5783
+ }
5784
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"] :is(.o-text-editor-box, .o-text-editor-phone) {
5785
+ --inline-input-words: var(--field-row-box-x); border-radius: var(--field-row-box-r); background-color: transparent;
5786
+ box-shadow: 0 0 0 var(--vk-border-width) var(--inline-input-colour), var(--vk-shadow-field-focus);
5787
+ }
5788
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"] :is(.o-text-editor-box, .o-text-editor-phone):is([aria-invalid="true"], [data-refused]) {
5789
+ box-shadow: 0 0 0 var(--vk-border-width) var(--inline-input-colour), var(--vk-shadow-field-focus-danger);
5790
+ }
5791
+ :where([data-field-row-box="box"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"]:not([data-text-kind="long"]) .o-text-editor-box {
5792
+ white-space: pre; overflow: hidden;
5793
+ }
5794
+
5795
+ /* ── A record's long text under the Field's Long (row-long: line, field.css), on a computer: its box stands in a popover on top of the
5796
+ row's box (the popover marked data-field-row-long-editor, field-row/editors/RowTextEditor.tsx), the popover its only frame. The
5797
+ box is the popover's whole content: no edge, ring or ground of its own, its words as far from its edge as the row's box holds
5798
+ them (--vk-field-row-box-h and -x, undeclared 32 and 8), so its first line stands where the row's words stood. It is as tall as its
5799
+ text up to the editor's most height (--vk-editor-max-h, the popover's own cap; undeclared, 320), then it scrolls. (0,5,0): over the
5800
+ row's place. ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
5801
+ .o-popover[data-field-row-long-editor] { --popover-pad: 0px; }
5802
+ [data-field-row-long-editor] .o-text-editor[data-text-place="row"][data-text-form="computer"] {
5803
+ --inline-input-row: var(--vk-field-row-box-h, calc(var(--vk-spacing) * 8)); --inline-input-edge: 0px; --inline-input-ring: 0px;
5804
+ }
5805
+ [data-field-row-long-editor] .o-text-editor[data-text-place="row"][data-text-form] .o-text-editor-box {
5806
+ --inline-input-words: var(--vk-field-row-box-x, calc(var(--vk-spacing) * 2));
5807
+ max-height: var(--vk-editor-max-h, calc(var(--vk-spacing) * 80)); border-radius: 0; background-color: transparent; box-shadow: none;
5808
+ }
5809
+ /* In place, under the Field's Action (row-action: icon, field.css), a long text's box keeps the icon's room at its end, as its
5810
+ target did at rest, so its lines break where they did. */
5811
+ :where([data-field-row-action="icon"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"][data-text-kind="long"] .o-text-editor-box {
5812
+ padding-right: calc(var(--vk-spacing) * 8 - var(--inline-input-e));
5813
+ }
5814
+
5661
5815
  /* ── On a phone: the Input at the phone's size; long text one tall box; a phone's country in the box's start side ──── */
5662
5816
  .o-text-editor[data-text-form="phone"] { display: grid; }
5663
5817
  .o-text-editor[data-text-form="phone"] .o-text-editor-country { gap: calc(var(--vk-spacing) * 0.75); }
@@ -6551,6 +6705,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
6551
6705
  .ml-auto {
6552
6706
  margin-left: auto;
6553
6707
  }
6708
+ .box-border {
6709
+ box-sizing: border-box;
6710
+ }
6554
6711
  .line-clamp-3 {
6555
6712
  overflow: hidden;
6556
6713
  display: -webkit-box;
@@ -6610,6 +6767,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
6610
6767
  width: calc(4px * 3.5);
6611
6768
  height: calc(4px * 3.5);
6612
6769
  }
6770
+ .size-3\.75 {
6771
+ width: calc(4px * 3.75);
6772
+ height: calc(4px * 3.75);
6773
+ }
6613
6774
  .size-4 {
6614
6775
  width: calc(4px * 4);
6615
6776
  height: calc(4px * 4);
@@ -8069,6 +8230,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8069
8230
  .\[font\:inherit\] {
8070
8231
  font: inherit;
8071
8232
  }
8233
+ :is(.\*\:max-w-full > *) {
8234
+ max-width: 100%;
8235
+ }
8072
8236
  :is(.\*\:min-w-0 > *) {
8073
8237
  min-width: 0px;
8074
8238
  }
@@ -8207,6 +8371,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8207
8371
  .group-data-\[form\=phone\]\/field-row\:row-start-2:is(:where(.group\/field-row)[data-form="phone"] *) {
8208
8372
  grid-row-start: 2;
8209
8373
  }
8374
+ .group-data-\[open\]\/gridagg\:opacity-100:is(:where(.group\/gridagg)[data-open] *) {
8375
+ opacity: 100%;
8376
+ }
8210
8377
  .group-data-\[rail\=on\]\/gridtable\:opacity-100:is(:where(.group\/gridtable)[data-rail="on"] *) {
8211
8378
  opacity: 100%;
8212
8379
  }
@@ -8600,6 +8767,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8600
8767
  .data-desktop\:data-\[state\=open\]\:opacity-100[data-desktop][data-state="open"] {
8601
8768
  opacity: 100%;
8602
8769
  }
8770
+ .data-\[stuck\=true\]\:border-\(color\:--vk-border-subtle\)[data-stuck="true"] {
8771
+ border-color: var(--vk-border-subtle);
8772
+ }
8603
8773
  .data-\[stuck\=true\]\:bg-\(color\:--vk-ground\)[data-stuck="true"] {
8604
8774
  background-color: var(--vk-ground);
8605
8775
  }
@@ -8619,12 +8789,67 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8619
8789
  .\[\&_\[data-cell-open\]\:hover\]\:underline [data-cell-open]:hover {
8620
8790
  text-decoration-line: underline;
8621
8791
  }
8792
+ .\[\&_\[data-slot\=vk-number-box\]\]\:rounded-\[calc\(var\(--vk-outline-radius\,var\(--radius-sm\)\)\+var\(--vk-border-width\)\)\] [data-slot=vk-number-box] {
8793
+ border-radius: calc(var(--vk-outline-radius,5px) + var(--vk-border-width));
8794
+ }
8795
+ .\[\&_\[data-slot\=vk-number-box\]\]\:outline [data-slot=vk-number-box] {
8796
+ outline-style: var(--tw-outline-style);
8797
+ outline-width: 1px;
8798
+ }
8799
+ .\[\&_\[data-slot\=vk-number-box\]\]\:-outline-offset-\[calc\(var\(--vk-border-width\)\+var\(--vk-border-width\)\)\] [data-slot=vk-number-box] {
8800
+ outline-offset: calc(calc(var(--vk-border-width) + var(--vk-border-width)) * -1);
8801
+ }
8802
+ .\[\&_\[data-slot\=vk-number-box\]\]\:outline-\(color\:--vk-outline\,var\(--vk-fg-subtle\)\) [data-slot=vk-number-box] {
8803
+ outline-color: var(--vk-outline,var(--vk-fg-subtle));
8804
+ }
8805
+ @media (hover: hover) {
8806
+ .group-hover\/gridcell\:\[\&_\[data-slot\=vk-number-box\]\]\:outline-\(color\:--vk-outline-active\,var\(--vk-border-brand\)\):is(:where(.group\/gridcell):hover *) [data-slot=vk-number-box] {
8807
+ outline-color: var(--vk-outline-active,var(--vk-border-brand));
8808
+ }
8809
+ }
8810
+ .\[\&_\[data-slot\=vk-number-box\]\:is\(\[aria-invalid\=true\]\,\:has\(\[aria-invalid\=true\]\)\)\]\:outline-hidden [data-slot=vk-number-box]:is([aria-invalid=true], :has([aria-invalid=true])) {
8811
+ --tw-outline-style: none;
8812
+ outline-style: none;
8813
+ @media (forced-colors: active) {
8814
+ outline: 2px solid transparent;
8815
+ outline-offset: 2px;
8816
+ }
8817
+ }
8818
+ .\[\&_\[data-slot\=vk-text-box\]\]\:rounded-\[calc\(var\(--vk-outline-radius\,var\(--radius-sm\)\)\+var\(--vk-border-width\)\)\] [data-slot=vk-text-box] {
8819
+ border-radius: calc(var(--vk-outline-radius,5px) + var(--vk-border-width));
8820
+ }
8821
+ .\[\&_\[data-slot\=vk-text-box\]\]\:outline [data-slot=vk-text-box] {
8822
+ outline-style: var(--tw-outline-style);
8823
+ outline-width: 1px;
8824
+ }
8825
+ .\[\&_\[data-slot\=vk-text-box\]\]\:-outline-offset-\[calc\(var\(--vk-border-width\)\+var\(--vk-border-width\)\)\] [data-slot=vk-text-box] {
8826
+ outline-offset: calc(calc(var(--vk-border-width) + var(--vk-border-width)) * -1);
8827
+ }
8828
+ .\[\&_\[data-slot\=vk-text-box\]\]\:outline-\(color\:--vk-outline\,var\(--vk-fg-subtle\)\) [data-slot=vk-text-box] {
8829
+ outline-color: var(--vk-outline,var(--vk-fg-subtle));
8830
+ }
8831
+ @media (hover: hover) {
8832
+ .group-hover\/gridcell\:\[\&_\[data-slot\=vk-text-box\]\]\:outline-\(color\:--vk-outline-active\,var\(--vk-border-brand\)\):is(:where(.group\/gridcell):hover *) [data-slot=vk-text-box] {
8833
+ outline-color: var(--vk-outline-active,var(--vk-border-brand));
8834
+ }
8835
+ }
8836
+ .\[\&_\[data-slot\=vk-text-box\]\:is\(\[aria-invalid\=true\]\,\:has\(\[aria-invalid\=true\]\)\)\]\:outline-hidden [data-slot=vk-text-box]:is([aria-invalid=true], :has([aria-invalid=true])) {
8837
+ --tw-outline-style: none;
8838
+ outline-style: none;
8839
+ @media (forced-colors: active) {
8840
+ outline: 2px solid transparent;
8841
+ outline-offset: 2px;
8842
+ }
8843
+ }
8622
8844
  .\[\&_a\]\:pointer-events-auto a {
8623
8845
  pointer-events: auto;
8624
8846
  }
8625
8847
  .\[\&_button\]\:pointer-events-auto button {
8626
8848
  pointer-events: auto;
8627
8849
  }
8850
+ .\[\&_textarea\[data-slot\=vk-text-box\]\]\:rounded-\[calc\(var\(--vk-outline-radius\,var\(--radius-sm\)\)\+var\(--vk-border-width\)\)\] textarea[data-slot=vk-text-box] {
8851
+ border-radius: calc(var(--vk-outline-radius,5px) + var(--vk-border-width));
8852
+ }
8628
8853
  .\[\&\:\:-webkit-search-cancel-button\]\:appearance-none::-webkit-search-cancel-button {
8629
8854
  appearance: none;
8630
8855
  }
@@ -8689,6 +8914,41 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8689
8914
  :where(.\[\:where\(\&\)\]\:\[text-decoration\:inherit\]) {
8690
8915
  text-decoration: inherit;
8691
8916
  }
8917
+ :where(:is(.\[\:where\(\&amp\;\)\]\:m-0)amp;) {
8918
+ margin: 0px;
8919
+ }
8920
+ :where(:is(.\[\:where\(\&amp\;\)\]\:\[appearance\:none\])amp;) {
8921
+ appearance: none;
8922
+ }
8923
+ :where(:is(.\[\:where\(\&amp\;\)\]\:rounded-none)amp;) {
8924
+ border-radius: 0;
8925
+ }
8926
+ :where(:is(.\[\:where\(\&amp\;\)\]\:border-0)amp;) {
8927
+ border-style: var(--tw-border-style);
8928
+ border-width: 0px;
8929
+ }
8930
+ :where(:is(.\[\:where\(\&amp\;\)\]\:border-solid)amp;) {
8931
+ --tw-border-style: solid;
8932
+ border-style: solid;
8933
+ }
8934
+ :where(:is(.\[\:where\(\&amp\;\)\]\:bg-transparent)amp;) {
8935
+ background-color: transparent;
8936
+ }
8937
+ :where(:is(.\[\:where\(\&amp\;\)\]\:p-0)amp;) {
8938
+ padding: 0px;
8939
+ }
8940
+ :where(:is(.\[\:where\(\&amp\;\)\]\:\[letter-spacing\:inherit\])amp;) {
8941
+ letter-spacing: inherit;
8942
+ }
8943
+ :where(:is(.\[\:where\(\&amp\;\)\]\:\[color\:inherit\])amp;) {
8944
+ color: inherit;
8945
+ }
8946
+ :where(:is(.\[\:where\(\&amp\;\)\]\:\[font\:inherit\])amp;) {
8947
+ font: inherit;
8948
+ }
8949
+ :where(:is(.\[\:where\(\&amp\;\)\]\:\[text-decoration\:inherit\])amp;) {
8950
+ text-decoration: inherit;
8951
+ }
8692
8952
  @media (any-hover:hover) {
8693
8953
  .\[\@media\(any-hover\:hover\)\]\:relative {
8694
8954
  position: relative;
@@ -8843,11 +9103,14 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8843
9103
  font-weight: var(--vk-font-weight-medium);
8844
9104
  }
8845
9105
  [data-grid-figures="value"] [data-slot="vk-grid-figure-label"] {
9106
+ font-size: var(--vk-text);
8846
9107
  text-transform: lowercase;
8847
9108
  letter-spacing: normal;
8848
9109
  color: var(--vk-fg-subtlest);
8849
9110
  }
8850
9111
  [data-grid-figures="value"] [data-slot="vk-grid-figure-pick"] {
9112
+ font-size: var(--vk-text);
9113
+ color: var(--vk-fg-subtlest);
8851
9114
  text-transform: none;
8852
9115
  letter-spacing: normal;
8853
9116
  }