@sincpro/web-ui 2.18.0 → 2.19.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 (69) hide show
  1. package/README.md +6 -4
  2. package/dist/components/calendar/RecordCalendar.js +1 -1
  3. package/dist/components/flow/SetupCard.d.ts +21 -0
  4. package/dist/components/flow/SetupCard.js +16 -0
  5. package/dist/components/flow/index.d.ts +1 -0
  6. package/dist/components/flow/index.js +3 -0
  7. package/dist/components/form/Form.js +7 -5
  8. package/dist/components/listing/Pagination.js +28 -3
  9. package/dist/components/listing/Row.d.ts +5 -2
  10. package/dist/components/listing/Row.js +6 -5
  11. package/dist/components/listing/modelCells.js +1 -1
  12. package/dist/components/navigation/NavigationTree.d.ts +3 -0
  13. package/dist/components/navigation/NavigationTree.js +2 -1
  14. package/dist/components/record/ActionDock.d.ts +10 -3
  15. package/dist/components/record/ActionDock.js +15 -8
  16. package/dist/components/record/DirtyActions.d.ts +15 -7
  17. package/dist/components/record/DirtyActions.js +37 -13
  18. package/dist/components/record/DockMessage.d.ts +18 -0
  19. package/dist/components/record/DockMessage.js +31 -0
  20. package/dist/components/record/dock.d.ts +25 -0
  21. package/dist/components/record/index.d.ts +2 -1
  22. package/dist/components/record/index.js +1 -0
  23. package/dist/components/shell/Page.d.ts +12 -0
  24. package/dist/components/shell/Page.js +12 -0
  25. package/dist/components/shell/Sidebar.d.ts +22 -3
  26. package/dist/components/shell/Sidebar.js +88 -10
  27. package/dist/components/shell/index.d.ts +1 -0
  28. package/dist/components/shell/index.js +2 -0
  29. package/dist/foundations/copy.es.js +5 -0
  30. package/dist/foundations/grouping.d.ts +37 -0
  31. package/dist/foundations/grouping.js +0 -0
  32. package/dist/foundations/index.d.ts +1 -1
  33. package/dist/foundations/index.js +1 -1
  34. package/dist/foundations/uiCopy.d.ts +10 -0
  35. package/dist/foundations/uiCopy.js +5 -0
  36. package/dist/primitives/button/Button.d.ts +5 -1
  37. package/dist/primitives/button/Button.js +4 -4
  38. package/dist/primitives/button/classes.d.ts +1 -8
  39. package/dist/primitives/button/classes.js +12 -2
  40. package/dist/primitives/menu/Menu.d.ts +22 -1
  41. package/dist/primitives/menu/Menu.js +44 -18
  42. package/dist/primitives/table/DataTable.d.ts +16 -1
  43. package/dist/primitives/table/DataTable.js +62 -22
  44. package/dist/primitives/table/EditableTable.js +6 -7
  45. package/dist/primitives/table/PileFootLine.d.ts +4 -2
  46. package/dist/primitives/table/PileFootLine.js +16 -5
  47. package/dist/primitives/table/ReportTable.js +2 -2
  48. package/dist/primitives/table/RowActions.js +1 -1
  49. package/dist/primitives/table/SheetTable.d.ts +19 -1
  50. package/dist/primitives/table/SheetTable.js +22 -2
  51. package/dist/primitives/table/Table.js +9 -6
  52. package/dist/primitives/table/index.d.ts +1 -1
  53. package/dist/primitives/table/index.js +1 -1
  54. package/dist/primitives/tabs/Tabs.d.ts +21 -1
  55. package/dist/primitives/tabs/Tabs.js +26 -7
  56. package/dist/primitives/tabs/index.d.ts +1 -1
  57. package/dist/primitives/tag/Tag.d.ts +5 -0
  58. package/dist/primitives/tag/Tag.js +2 -1
  59. package/dist/primitives/tag/Tags.js +1 -1
  60. package/dist/primitives/value/Avatar.d.ts +7 -3
  61. package/dist/primitives/value/Avatar.js +17 -11
  62. package/dist/primitives/value/Person.js +9 -3
  63. package/dist/primitives/value/Value.js +4 -1
  64. package/dist/views/list/ListView.js +27 -7
  65. package/dist/views/list/derive.d.ts +15 -3
  66. package/dist/views/list/derive.js +48 -6
  67. package/dist/views/list/presentations.js +2 -1
  68. package/dist/views/list/types.d.ts +5 -1
  69. package/package.json +1 -1
@@ -52,7 +52,7 @@ height, rowCount, }) {
52
52
  `useScrollBox`: the whole dilemma lives there, and so does its explanation. The
53
53
  three tables of the system solved it with three copies of the same
54
54
  measurement. */
55
- _jsx("div", { ref: caja.ref, tabIndex: caja.tabIndex, className: `min-w-0 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary ${caja.className}`, style: caja.style, children: _jsx("table", { "data-ui": "table", "aria-rowcount": rowCount, className: "w-full border-separate border-spacing-0 px-1 text-left", children: children }) }));
55
+ _jsx("div", { ref: caja.ref, tabIndex: caja.tabIndex, className: `min-w-0 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary ${caja.className}`, style: caja.style, children: _jsx("table", { "data-ui": "table", "aria-rowcount": rowCount, className: "w-full border-separate border-spacing-0 text-left", children: children }) }));
56
56
  }
57
57
  /** The text of a column header, shared by every table of the family. Ink and semibold, not
58
58
  * muted: in grey at the cells' weight the names of the columns read as one more row. */
@@ -97,13 +97,16 @@ export function Th({ children, sortKey, sort, onSort, numeric = false, align, wi
97
97
  direction: dir === "asc" ? copy.sorting.asc : copy.sorting.desc,
98
98
  }) })) : null] })) }));
99
99
  }
100
- /** The wash of a row lives on the cells, not on the `<tr>`. A background on the
101
- * row paints edge to edge; on the cells the ends can round and the table's
102
- * padding keeps the mark off the card. */
100
+ /** The wash of a row lives on the cells, not on the `<tr>`: the table is `border-separate`.
101
+ * Edge to edge, like the head and the hairlines — the table had a 4 px side padding to keep a
102
+ * rounded wash off the card, and with square stripes it only cut every line short of it. */
103
103
  const RowMark = createContext({
104
104
  selected: false,
105
105
  interactive: false,
106
106
  });
107
+ /* Square, edge to edge: a table row is a stripe. Its cells used to round their outer corners
108
+ so the wash read as a pill, and the hairline under a rounded corner follows the curve — every
109
+ separator of every table hooked up at both ends, read-only rows included. */
107
110
  const ROW_WASH = "group-hover/row:bg-ink/4";
108
111
  const ROW_ON = "bg-primary/8";
109
112
  /* The hover wash only where a click does something: on a read-only row it promised a click
@@ -132,7 +135,7 @@ export function Tr({ children, onClick, selected = false, windowed, rowId, line,
132
135
  */
133
136
  export function TrDetail({ children, detail, open, onToggle, columns, label, selected = false, }) {
134
137
  const id = useId();
135
- return (_jsx(RowMark.Provider, { value: { selected, interactive: true }, children: _jsxs(_Fragment, { children: [_jsxs("tr", { onClick: onToggle, className: "group/row cursor-pointer", children: [_jsx("td", { className: `border-b border-line py-1.5 pr-0 pl-2.5 align-middle first:rounded-l-control ${rowWash({ selected, interactive: true })}`, children: _jsx("button", { type: "button", onClick: (e) => {
138
+ return (_jsx(RowMark.Provider, { value: { selected, interactive: true }, children: _jsxs(_Fragment, { children: [_jsxs("tr", { onClick: onToggle, className: "group/row cursor-pointer", children: [_jsx("td", { className: `border-b border-line py-1.5 pr-0 pl-2.5 align-middle ${rowWash({ selected, interactive: true })}`, children: _jsx("button", { type: "button", onClick: (e) => {
136
139
  e.stopPropagation();
137
140
  onToggle();
138
141
  }, "aria-expanded": open, "aria-controls": id, "aria-label": label, className: "hit-target inline-flex size-5 items-center justify-center rounded-pill text-muted transition-colors duration-(--duration-instant) hover:bg-ink/6 hover:text-ink focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary", children: _jsx(ChevronRight, { className: `size-(--size-icon-sm) transition-transform duration-(--duration-instant) ${open ? "rotate-90" : ""}`, strokeWidth: 2 }) }) }), children] }), _jsx("tr", { id: id, hidden: !open, children: _jsx("td", { colSpan: columns + 1, className: "border-b border-line bg-ground px-3 py-3", children: detail }) })] }) }));
@@ -158,7 +161,7 @@ mono = false,
158
161
  * gets lost. */
159
162
  tone, title, fit = false, }) {
160
163
  const mark = useContext(RowMark);
161
- return (_jsx("td", { title: title, className: `border-b border-line py-1.5 text-meta text-ink first:rounded-l-control last:rounded-r-control ${fit ? "w-0 pr-0 pl-1 align-middle" : "px-3"} ${(align ?? (numeric ? "right" : "left")) === "right" ? "text-right" : "text-left"} ${mono ? "font-mono tabular-nums" : numeric ? "tabular-nums whitespace-nowrap" : ""} ${tone === undefined ? rowWash(mark) : CELL_TONE[tone]} ${mark.line ?? ""}`, children: children }));
164
+ return (_jsx("td", { title: title, className: `border-b border-line py-1.5 text-meta text-ink ${fit ? "w-0 pr-0 pl-1 align-middle" : "px-3"} ${(align ?? (numeric ? "right" : "left")) === "right" ? "text-right" : "text-left"} ${mono ? "font-mono tabular-nums" : numeric ? "tabular-nums whitespace-nowrap" : ""} ${tone === undefined ? rowWash(mark) : CELL_TONE[tone]} ${mark.line ?? ""}`, children: children }));
162
165
  }
163
166
  /** The selection checkbox, with its third state.
164
167
  *
@@ -7,6 +7,6 @@ export { PileFootLine } from "./PileFootLine.js";
7
7
  export { PivotTable, type PivotTableProps, } from "./PivotTable.js";
8
8
  export { type ReportColumn, type ReportRow, type ReportRowKind, ReportTable, } from "./ReportTable.js";
9
9
  export { type RowAction, RowActions } from "./RowActions.js";
10
- export { type SheetColumn, SheetTable } from "./SheetTable.js";
10
+ export { type SheetColumn, type SheetFoot, SheetTable, } from "./SheetTable.js";
11
11
  export { compareBy, flipSort, moveSort, pressSort, type SortDirection, sortPosition, type SortState, } from "./sorting.js";
12
12
  export { Table, Td, Th, THead, Tr } from "./Table.js";
@@ -9,6 +9,6 @@ export { PileFootLine } from "./PileFootLine.js";
9
9
  export { PivotTable, } from "./PivotTable.js";
10
10
  export { ReportTable, } from "./ReportTable.js";
11
11
  export { RowActions } from "./RowActions.js";
12
- export { SheetTable } from "./SheetTable.js";
12
+ export { SheetTable, } from "./SheetTable.js";
13
13
  export { compareBy, flipSort, moveSort, pressSort, sortPosition, } from "./sorting.js";
14
14
  export { Table, Td, Th, THead, Tr } from "./Table.js";
@@ -75,7 +75,23 @@ export type TabItem = {
75
75
  count?: number;
76
76
  /** That something in here asks you to look. Apart from the counter: see `TabNotice`. */
77
77
  notice?: TabNotice;
78
+ /** A word about the tab itself, not about what is behind it: «Beta», «Nuevo». Quiet, after
79
+ * the label — a counter says how many, this says what kind. */
80
+ badge?: string;
81
+ /** The tabs that belong together. Where the group changes, a hairline separates them:
82
+ * «Ajustes · Verificar | Aprendizajes» — what you configure, and what you read. */
83
+ group?: string;
78
84
  };
85
+ /**
86
+ * How the strip draws the open tab.
87
+ *
88
+ * folder the open tab sticks out of the border and covers the line: what is below is
89
+ * ITS content. A record's faces, the activity's two sources.
90
+ * underline a bar under the open one, on a strip with a hairline: the SECTIONS of a page —
91
+ * settings, the sub-screens of a module — where the content below is a different
92
+ * screen, not the same paper. It takes `end`: the page's own action, on the right.
93
+ */
94
+ export type TabsLook = "folder" | "underline";
79
95
  /**
80
96
  * A notebook whose strip and page are far apart — the record's tabs ride in its header and
81
97
  * the page is drawn in its paper. It only shares an id: no box, no context of anything
@@ -100,10 +116,14 @@ export declare function TabsPanel({ id, className, children, }: {
100
116
  * The keyboard is the ARIA tabs pattern with automatic activation: one tab stop (the open
101
117
  * tab), ← / → move AND open (wrapping), Home / End go to the ends.
102
118
  */
103
- export declare function Tabs({ tabs, current, onSelect, label, }: {
119
+ export declare function Tabs({ tabs, current, onSelect, label, look, end, }: {
104
120
  tabs: readonly TabItem[];
105
121
  current: string;
106
122
  onSelect?: (id: string) => void;
107
123
  /** The strip's accessible label. Without this, «las caras del registro». */
108
124
  label?: string;
125
+ look?: TabsLook;
126
+ /** At the strip's right end, outside the tab list: the page's action («Añadir
127
+ * repositorios»). It sits on the strip's line, where the eye already is. */
128
+ end?: ReactNode;
109
129
  }): import("react").JSX.Element;
@@ -2,6 +2,7 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useUiCopy } from "../../foundations/copy.js";
4
4
  import { Count } from "../tag/Count.js";
5
+ import { Tag } from "../tag/Tag.js";
5
6
  import { createContext, useContext, useId, useRef, } from "react";
6
7
  /**
7
8
  * The strip only: what each tab opens is drawn by whoever uses it (`Record`, `Activity`).
@@ -42,7 +43,7 @@ export function TabsPanel({ id, className, children, }) {
42
43
  * The keyboard is the ARIA tabs pattern with automatic activation: one tab stop (the open
43
44
  * tab), ← / → move AND open (wrapping), Home / End go to the ends.
44
45
  */
45
- export function Tabs({ tabs, current, onSelect, label, }) {
46
+ export function Tabs({ tabs, current, onSelect, label, look = "folder", end, }) {
46
47
  const copy = useUiCopy();
47
48
  const base = useContext(Scope);
48
49
  const strip = useRef(null);
@@ -69,16 +70,34 @@ export function Tabs({ tabs, current, onSelect, label, }) {
69
70
  event.preventDefault();
70
71
  go(to);
71
72
  };
72
- return (_jsx("div", { ref: strip, role: "tablist", "aria-label": label ?? copy.record.faces, onKeyDown: onKeyDown, className: "flex min-w-0 flex-wrap items-end gap-1", children: tabs.map((a) => {
73
+ const underline = look === "underline";
74
+ const list = (_jsx("div", { ref: strip, role: "tablist", "aria-label": label ?? copy.record.faces, onKeyDown: onKeyDown, "data-ui": "tabs", "data-look": look, className: underline
75
+ ? "flex min-w-0 flex-1 items-stretch gap-1 overflow-x-auto"
76
+ : "flex min-w-0 flex-wrap items-end gap-1", children: tabs.map((a, at) => {
73
77
  const Icon = a.icon;
78
+ const before = tabs[at - 1];
79
+ const parted = before !== undefined && before.group !== a.group;
74
80
  /* A zero asks for nothing, so it is not drawn. That is the difference from the
75
81
  counter, where «0» is an answer. */
76
82
  const notice = a.notice?.count === 0 ? undefined : a.notice;
77
83
  const isSelected = a.id === current;
78
- return (_jsx("button", { type: "button", role: "tab", "data-tab": a.id, "aria-selected": isSelected, tabIndex: isSelected ? 0 : -1, ...(base === null
79
- ? {}
80
- : { id: tabIdOf(base, a.id), "aria-controls": panelIdOf(base, a.id) }), onClick: () => onSelect?.(a.id), className: `inline-flex shrink-0 cursor-default items-center px-3 py-2 text-meta outline-0 transition-colors duration-(--duration-instant) focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary ${isSelected
81
- ? "-mb-px rounded-t-control border border-b-0 border-line-strong bg-surface font-medium text-ink"
82
- : "border border-transparent text-muted hover:text-ink"}`, children: _jsxs("span", { className: "inline-flex items-center gap-1.5", ...(notice === undefined ? {} : { title: notice.label }), children: [Icon === undefined ? null : (_jsx(Icon, { className: `size-(--size-icon-sm) shrink-0 ${isSelected ? "text-ink" : "text-muted"}`, strokeWidth: 2, "aria-hidden": true })), a.label, a.count === undefined ? null : (_jsx(Count, { value: a.count, showZero: true, current: isSelected })), notice === undefined ? null : (_jsx("span", { className: "sr-only", children: ` · ${notice.label}` })), notice === undefined ? null : (_jsx(Count, { ...(notice.count === undefined ? {} : { value: notice.count }), tone: notice.tone ?? "bad", "aria-hidden": true }))] }) }, a.id));
84
+ return [
85
+ parted ? (_jsx("span", { "aria-hidden": true, className: "mx-1.5 my-auto h-(--size-icon-md) w-px shrink-0 bg-line-strong" }, `${a.id}-sep`)) : null,
86
+ _jsx("button", { type: "button", role: "tab", "data-tab": a.id, "aria-selected": isSelected, tabIndex: isSelected ? 0 : -1, ...(base === null
87
+ ? {}
88
+ : { id: tabIdOf(base, a.id), "aria-controls": panelIdOf(base, a.id) }), onClick: () => onSelect?.(a.id), "data-ui": "tabs.tab", className: `inline-flex shrink-0 cursor-default items-center px-3 text-meta outline-0 transition-colors duration-(--duration-instant) focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary ${underline
89
+ ? `relative py-2.5 after:absolute after:inset-x-2 after:bottom-0 after:h-0.5 after:rounded-pill after:transition-colors after:duration-(--duration-instant) ${isSelected
90
+ ? "font-medium text-ink after:bg-primary"
91
+ : "text-muted after:bg-transparent hover:text-ink hover:after:bg-line-strong"}`
92
+ : `py-2 ${isSelected
93
+ ? "-mb-px rounded-t-control border border-b-0 border-line-strong bg-surface font-medium text-ink"
94
+ : "border border-transparent text-muted hover:text-ink"}`}`, children: _jsxs("span", { className: "inline-flex items-center gap-1.5", ...(notice === undefined ? {} : { title: notice.label }), children: [Icon === undefined ? null : (_jsx(Icon, { className: `size-(--size-icon-sm) shrink-0 ${isSelected ? "text-ink" : "text-muted"}`, strokeWidth: 2, "aria-hidden": true })), a.label, a.badge === undefined ? null : _jsx(Tag, { children: a.badge }), a.count === undefined ? null : (_jsx(Count, { value: a.count, showZero: true, current: isSelected })), notice === undefined ? null : (_jsx("span", { className: "sr-only", children: ` · ${notice.label}` })), notice === undefined ? null : (_jsx(Count, { ...(notice.count === undefined ? {} : { value: notice.count }), tone: notice.tone ?? "bad", "aria-hidden": true }))] }) }, a.id),
95
+ ];
83
96
  }) }));
97
+ if (!underline && end === undefined)
98
+ return list;
99
+ return (_jsxs("div", {
100
+ /* A page's sections open the page: the strip keeps the page's side margin, so the first
101
+ tab lines up with the content under it and the action does not touch the edge. */
102
+ className: `flex min-w-0 gap-3 ${underline ? "items-center border-b border-line px-4 pt-1.5" : "items-end"}`, children: [list, end === undefined ? null : (_jsx("div", { className: "flex shrink-0 items-center gap-2", children: end }))] }));
84
103
  }
@@ -1 +1 @@
1
- export { type TabItem, type TabNotice, Tabs, TabsPanel, TabsScope, } from "./Tabs.js";
1
+ export { type TabItem, type TabNotice, Tabs, type TabsLook, TabsPanel, TabsScope, } from "./Tabs.js";
@@ -23,6 +23,11 @@ title, }: {
23
23
  surface?: "canvas" | "chrome";
24
24
  title?: string;
25
25
  }): import("react").JSX.Element;
26
+ /** The dot in each tone — shared with the dock's sentence, so a tone has one dot. */
27
+ export declare const DOT_TONE: Record<Tone, {
28
+ canvas: string;
29
+ chrome: string;
30
+ }>;
26
31
  /** The status dot.
27
32
  *
28
33
  * **It never goes alone.** A colored dot without its word next to it forces
@@ -56,7 +56,8 @@ export function Tag({ children, tone = "neutral", surface = "canvas",
56
56
  title, }) {
57
57
  return (_jsx("span", { title: title, "data-ui": "tag", "data-tone": tone, className: `inline-flex shrink-0 items-center rounded-ui-tag px-2 py-0.5 text-micro font-medium whitespace-nowrap ${TAG_TONE[tone][surface]}`, children: children }));
58
58
  }
59
- const DOT_TONE = {
59
+ /** The dot in each tone — shared with the dock's sentence, so a tone has one dot. */
60
+ export const DOT_TONE = {
60
61
  neutral: { canvas: "bg-muted", chrome: "bg-chrome-muted" },
61
62
  info: { canvas: "bg-info", chrome: "bg-chrome-link" },
62
63
  good: { canvas: "bg-good", chrome: "bg-chrome-good" },
@@ -136,7 +136,7 @@ function shell({ item, surface, stack, size, removable, pressable, }) {
136
136
  }
137
137
  function Inside({ item }) {
138
138
  const Icon = item.icon;
139
- return (_jsxs(_Fragment, { children: [Icon === undefined ? null : (_jsx(Icon, { className: "size-3 shrink-0 opacity-70", strokeWidth: 2, "aria-hidden": true })), item.avatar === undefined ? null : (_jsx("span", { "aria-hidden": true, className: "-my-0.5 -ml-1.5 flex shrink-0", children: _jsx(Avatar, { name: item.label, size: "sm", ...(typeof item.avatar === "string" ? { src: item.avatar } : {}) }) })), _jsx("span", { className: "min-w-0 truncate", children: item.label }), item.note === undefined ? null : (
139
+ return (_jsxs(_Fragment, { children: [Icon === undefined ? null : (_jsx(Icon, { className: "size-3 shrink-0 opacity-70", strokeWidth: 2, "aria-hidden": true })), item.avatar === undefined ? null : (_jsx("span", { "aria-hidden": true, className: "-my-0.5 -ml-1.5 flex shrink-0", children: _jsx(Avatar, { name: item.label, size: "xs", ...(typeof item.avatar === "string" ? { src: item.avatar } : {}) }) })), _jsx("span", { className: "min-w-0 truncate", children: item.label }), item.note === undefined ? null : (
140
140
  /* Secondary by its separator and weight, not by fading: at 60 % the note fell
141
141
  under 4.5:1 on a tinted chip. */
142
142
  _jsxs("span", { className: "shrink-0 font-normal", children: ["\u00B7 ", item.note] })), item.count === undefined ? null : (
@@ -1,6 +1,7 @@
1
1
  export declare const SIZE: {
2
- readonly sm: "size-5 text-micro";
3
- readonly md: "size-6 text-micro";
2
+ readonly xs: "size-5 text-micro";
3
+ readonly sm: "size-6 text-micro";
4
+ readonly md: "size-7 text-micro";
4
5
  readonly lg: "size-8 text-meta";
5
6
  readonly xl: "size-12 text-body";
6
7
  };
@@ -9,8 +10,11 @@ export type AvatarSize = keyof typeof SIZE;
9
10
  export declare function Avatar({ name, size,
10
11
  /** The photo, if there is one. Without it the initials go, which is the normal
11
12
  * case here. */
12
- src, }: {
13
+ src, decorative, }: {
13
14
  name: string;
15
+ /** The name is written beside it (a person row, an account button): the photo then says
16
+ * nothing a screen reader has not heard, and naming it twice is noise. */
17
+ decorative?: boolean;
14
18
  size?: AvatarSize;
15
19
  src?: string;
16
20
  }): import("react").JSX.Element;
@@ -57,27 +57,33 @@ function toneOf(name, surface = "canvas") {
57
57
  }
58
58
  /* The text doesn't go below `micro`: two initials at 10 px can't be read, and an
59
59
  unreadable initial is a colored circle — which is exactly what we don't want.
60
- What changes between sizes is the circle. */
60
+ What changes between sizes is the circle — and it leaves the initials room: two 12 px
61
+ letters filled a 20 px disc edge to edge («NF» in a table cell read as a stamp, not a face),
62
+ so the small one is 24 and the default 28. `xs` keeps the 20 px disc for where height is
63
+ fixed by something else — inside a tag, on a calendar event. */
61
64
  export const SIZE = {
62
- sm: "size-5 text-micro",
63
- md: "size-6 text-micro",
65
+ xs: "size-5 text-micro",
66
+ sm: "size-6 text-micro",
67
+ md: "size-7 text-micro",
64
68
  lg: "size-8 text-meta",
65
69
  /* The head of a contact card: the face is what the card is about. */
66
70
  xl: "size-12 text-body",
67
71
  };
68
- /* Two initials, so the overlap stays short of the second letter. The ring is
69
- 1px: a 2px ring of the surface color reads as a gap between people, which
70
- is the thing a stack is not. */
72
+ /* Two initials, so the overlap stays short of the second letter: it covers only the room
73
+ between the disc's edge and its letters (two 12 px initials are ~16 px wide), never a stroke.
74
+ Deeper, «AG JM CR» read «AC JN CR». The ring is 1px: a 2px ring of the surface color reads
75
+ as a gap between people, which is the thing a stack is not. */
71
76
  export const OVERLAP = {
72
- sm: "-ml-1.5",
73
- md: "-ml-2",
74
- lg: "-ml-2.5",
77
+ xs: "-ml-0.5",
78
+ sm: "-ml-1",
79
+ md: "-ml-1.5",
80
+ lg: "-ml-2",
75
81
  xl: "-ml-3.5",
76
82
  };
77
83
  export function Avatar({ name, size = "md",
78
84
  /** The photo, if there is one. Without it the initials go, which is the normal
79
85
  * case here. */
80
- src, }) {
86
+ src, decorative = false, }) {
81
87
  const surface = useSurface();
82
88
  if (src !== undefined) {
83
89
  return (
@@ -85,7 +91,7 @@ src, }) {
85
91
  a chip with a photo sat on the image's bottom edge in a row aligned by baseline (a
86
92
  `DataField`), higher than the label next to it. The hidden initials give the photo
87
93
  the same baseline the initials disc has. */
88
- _jsxs("span", { title: name, className: `relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-pill ${SIZE[size]}`, children: [_jsx("span", { "aria-hidden": true, className: "invisible", children: initials(name) }), _jsx("img", { src: src, alt: name, className: "absolute inset-0 size-full object-cover" })] }));
94
+ _jsxs("span", { title: name, className: `relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-pill ${SIZE[size]}`, children: [_jsx("span", { "aria-hidden": true, className: "invisible", children: initials(name) }), _jsx("img", { src: src, alt: decorative ? "" : name, className: "absolute inset-0 size-full object-cover" })] }));
89
95
  }
90
96
  /* Each identity is a tint and an ink: the tint goes on the disc, the ink on the letters. */
91
97
  const [tint = "", ink = ""] = toneOf(name, surface).split(" ");
@@ -17,8 +17,11 @@ function ChipButton({ expanded, haspopup, children, ref, ...native }) {
17
17
  return (_jsx("button", { ...native, ref: ref, type: "button", ...(haspopup === undefined ? {} : { "aria-haspopup": haspopup }), ...(expanded === undefined ? {} : { "aria-expanded": expanded }),
18
18
  /* The hover tint is a pseudo-element that spills past the box, not padding: padding
19
19
  moved the chip off the column of values, and negative margins to undo it made the
20
- chip wider than the room its parent measured — and it truncated itself. */
21
- className: "relative isolate inline-flex max-w-full min-w-0 cursor-pointer items-center gap-2 rounded-control text-left outline-primary outline-offset-4 before:absolute before:-inset-x-1 before:-inset-y-0.5 before:-z-10 before:rounded-control before:transition-colors before:duration-(--duration-instant) hover:before:bg-ink/6 focus-visible:outline-2 aria-expanded:before:bg-ink/6 forced-colors:outline-[Highlight]", children: children }));
20
+ chip wider than the room its parent measured — and it truncated itself.
21
+ It is a CAPSULE around the face: the same 2 px all around the disc, so its left end
22
+ is concentric with it. A rounded rectangle there let the disc's curve poke out of
23
+ the tint's corners. */
24
+ className: "relative isolate inline-flex max-w-full min-w-0 cursor-pointer items-center gap-2 rounded-pill text-left outline-primary outline-offset-2 before:absolute before:-inset-y-0.5 before:-right-2 before:-left-0.5 before:-z-10 before:rounded-pill before:transition-colors before:duration-(--duration-instant) hover:before:bg-ink/6 focus-visible:outline-2 aria-expanded:before:bg-ink/6 forced-colors:outline-[Highlight]", children: children }));
22
25
  }
23
26
  /**
24
27
  * The person with their name next to them. For a cell, a list row, a field in read mode or
@@ -65,5 +68,8 @@ export function UserStack({ names, max = 4, size = "md", }) {
65
68
  }
66
69
  const visible = names.length <= max ? names : names.slice(0, max - 1);
67
70
  const rest = names.length - visible.length;
68
- return (_jsxs("span", { className: "inline-flex items-center", title: names.join(", "), children: [visible.map((n, i) => (_jsx("span", { className: i === 0 ? "" : OVERLAP[size], children: _jsx("span", { className: "block rounded-pill ring-1 ring-surface", children: _jsx(Avatar, { name: n, size: size }) }) }, n))), rest <= 0 ? null : (_jsxs("span", { className: `${OVERLAP[size]} inline-flex items-center justify-center rounded-pill bg-ink/10 font-medium tabular-nums text-muted ring-1 ring-surface ${SIZE[size]}`, children: ["+", rest] }))] }));
71
+ return (_jsxs("span", { className: "inline-flex items-center", title: names.join(", "), children: [visible.map((n, i) => (_jsx("span", { className: i === 0 ? "" : OVERLAP[size], children: _jsx("span", { className: "block rounded-pill ring-1 ring-surface", children: _jsx(Avatar, { name: n, size: size }) }) }, n))), rest <= 0 ? null : (
72
+ /* Opaque, like every disc of the stack: a translucent «+3» let the face under it
73
+ show through and its «+» read as a smudge. */
74
+ _jsxs("span", { className: `${OVERLAP[size]} relative inline-flex items-center justify-center overflow-hidden rounded-pill bg-surface font-medium tabular-nums text-muted ring-1 ring-surface ${SIZE[size]}`, children: [_jsx("span", { "aria-hidden": true, className: "absolute inset-0 bg-ink/10" }), _jsxs("span", { className: "relative", children: ["+", rest] })] }))] }));
69
75
  }
@@ -47,7 +47,10 @@ export function Numeric({ value, unit, format = "integer", align = "right", roun
47
47
  const options = typeof format === "object" ? format : PRESET[format];
48
48
  const text = formatWith(shown, signed ? { ...options, signDisplay: "exceptZero" } : options, locale);
49
49
  const negative = signed && shown < 0;
50
- return (_jsxs("span", { className: `${align === "left" ? "inline-block text-left" : "block text-right"} text-body tabular-nums whitespace-nowrap ${negative ? "text-danger" : "text-ink"}`, children: [_jsx("span", { className: "tabular-nums", children: text }), unit === undefined ? null : _jsx("span", { className: "ml-1 text-muted", children: unit })] }));
50
+ return (
51
+ /* No size of its own: it takes its container's, like a date or a yes/no beside it. At
52
+ `text-body` a quantity in a 13 px row stood a size above its row and off its baseline. */
53
+ _jsxs("span", { className: `${align === "left" ? "inline-block text-left" : "block text-right"} tabular-nums whitespace-nowrap ${negative ? "text-danger" : "text-ink"}`, children: [_jsx("span", { className: "tabular-nums", children: text }), unit === undefined ? null : _jsx("span", { className: "ml-1 text-muted", children: unit })] }));
51
54
  }
52
55
  /**
53
56
  * The content of a data cell, with what the system decides and the view does not.
@@ -15,7 +15,7 @@ import { Breadcrumb } from "../../components/record/Breadcrumb.js";
15
15
  import { RecordTimeline } from "../../components/timeline/RecordTimeline.js";
16
16
  import { fillCopy, useUiCopy } from "../../foundations/copy.js";
17
17
  import { useDensity } from "../../foundations/density.js";
18
- import { pathKey, pileFoot, pileIsOpen, pilesOf, } from "../../foundations/grouping.js";
18
+ import { pathKey, pileFoot, pileIsOpen, pilesFoot, pilesOf, } from "../../foundations/grouping.js";
19
19
  import { pivotFrom, pivotIsEmpty } from "../../foundations/pivot.js";
20
20
  import { bySurface, useSurface } from "../../foundations/surface.js";
21
21
  import { useViewStyle } from "../../foundations/viewStyle.js";
@@ -27,7 +27,7 @@ import { ReportTable } from "../../primitives/table/ReportTable.js";
27
27
  import { Metric, Metrics } from "../../primitives/value/Metric.js";
28
28
  import { ProgressBar } from "../../primitives/value/ProgressBar.js";
29
29
  import { groupedColumnIds, WIDE_PRESENTS } from "./columns.js";
30
- import { groupLevelsOf, reportColumnsOf, reportRowsOf, sheetFromColumns, sheetRowsOf, } from "./derive.js";
30
+ import { groupLevelsOf, pileSummaryOf, reportColumnsOf, reportRowsOf, sheetFromColumns, sheetRowsOf, } from "./derive.js";
31
31
  import { SheetPresentation, TablePresentation, } from "./presentations.js";
32
32
  import { useNarrowList } from "./useNarrowList.js";
33
33
  import { useReachBottom } from "./useReachBottom.js";
@@ -347,7 +347,7 @@ export function ListView({ items, keyOf, identity, crumbs, embedded = false, sur
347
347
  one built with the rows in hand. */
348
348
  const piles = useMemo(() => pilesOf(ordered, group), [group, ordered]);
349
349
  const isOpen = useCallback((pile) => pileIsOpen(pile, group), [group]);
350
- const sheetRows = useMemo(() => sheetRowsOf(piles, isOpen, columns), [piles, isOpen, columns]);
350
+ const sheetRows = useMemo(() => sheetRowsOf(piles, isOpen, columns, group), [piles, isOpen, columns, group]);
351
351
  /* The shape of a row of THIS list, so that the header reserves the
352
352
  same spacers. The first is looked at and not all: the icon and the actions
353
353
  are decided by the view for the whole list. */
@@ -361,18 +361,26 @@ export function ListView({ items, keyOf, identity, crumbs, embedded = false, sur
361
361
  /** The buckets, with their rows inside. It calls itself because the tree
362
362
  * has N levels: a bucket draws its header and, inside, either the buckets
363
363
  * below or the rows — never both. */
364
- function renderPiles(list, nodes) {
365
- return list.map((pile) => {
364
+ /* What the server summed and wrote, else what the columns add up to — the table's numbers. */
365
+ const withDetail = (detail) => (detail === undefined ? {} : { detail });
366
+ /* After the last pile of a level that holds fewer than it counts: «Ver 50 grupos más». */
367
+ function pilesFootOf(parent, list) {
368
+ const foot = pilesFoot(parent, list, group);
369
+ return foot === null ? null : (_jsx(GroupMore, { foot: foot, of: "piles", depth: parent === null ? 0 : parent.depth + 1, onMore: () => group?.onMorePiles?.(parent) }));
370
+ }
371
+ function renderPiles(list, nodes, parent = null) {
372
+ const drawn = list.map((pile) => {
366
373
  const key = pathKey(pile.path);
367
374
  const open = isOpen(pile);
368
- return (_jsxs(Fragment, { children: [_jsx(GroupHeader, { field: levelNameOf(pile.field, columns), label: pile.label, count: pile.count, ...(pile.detail === undefined ? {} : { detail: pile.detail }), depth: pile.depth, open: open, ...(group?.onToggle === undefined
375
+ return (_jsxs(Fragment, { children: [_jsx(GroupHeader, { field: levelNameOf(pile.field, columns), label: pile.label, count: pile.count, ...withDetail(pile.detail ?? pileSummaryOf(pile, columns, copy)), depth: pile.depth, open: open, ...(group?.onToggle === undefined
369
376
  ? {}
370
377
  : { onToggle: () => group.onToggle?.(key) }) }), !open
371
378
  ? null
372
379
  : pile.piles.length > 0
373
- ? renderPiles(pile.piles, nodes)
380
+ ? renderPiles(pile.piles, nodes, pile)
374
381
  : nodes(pile.items), open ? footOf(pile) : null] }, key));
375
382
  });
383
+ return (_jsxs(_Fragment, { children: [drawn, pilesFootOf(parent, list)] }));
376
384
  }
377
385
  const reportRows = useMemo(() => reportRowsOf(piles, columns, row, copy.report.total), [piles, columns, row, copy.report.total]);
378
386
  function wrapGroups(nodes) {
@@ -415,6 +423,18 @@ export function ListView({ items, keyOf, identity, crumbs, embedded = false, sur
415
423
  ? {}
416
424
  : { toggle: (pile) => group.onToggle?.(pathKey(pile.path)) }),
417
425
  ...(group?.onMore === undefined ? {} : { more: group.onMore }),
426
+ ...(group === undefined ||
427
+ (group.pilesCount === undefined && group.onMorePiles === undefined)
428
+ ? {}
429
+ : {
430
+ pilesPaging: {
431
+ ...(group.pilesCount === undefined ? {} : { pilesCount: group.pilesCount }),
432
+ ...(group.morePiles === undefined ? {} : { morePiles: group.morePiles }),
433
+ ...(group.onMorePiles === undefined
434
+ ? {}
435
+ : { onMorePiles: group.onMorePiles }),
436
+ },
437
+ }),
418
438
  ...(selection === undefined
419
439
  ? {}
420
440
  : { selection: { has: selection.has, toggle: selection.toggle } }),
@@ -1,7 +1,8 @@
1
- import { type Pile } from "../../foundations/grouping.js";
1
+ import { type Grouping, type Pile } from "../../foundations/grouping.js";
2
+ import type { UiCopy } from "../../foundations/uiCopy.js";
2
3
  import { type DataColumn } from "../../primitives/table/DataTable.js";
3
4
  import type { ReportColumn, ReportRow } from "../../primitives/table/ReportTable.js";
4
- import type { SheetColumn } from "../../primitives/table/SheetTable.js";
5
+ import type { SheetColumn, SheetFoot } from "../../primitives/table/SheetTable.js";
5
6
  import type { ListGroup, ListSheet, RowOf } from "./types.js";
6
7
  /**
7
8
  * Context: what a list DERIVES from its set, as pure functions — the table's group levels,
@@ -45,6 +46,8 @@ export type SheetEntry<T> = {
45
46
  total?: (column: SheetColumn, columnIndex: number) => string | number | null;
46
47
  };
47
48
  item?: T;
49
+ /** The «show more» of the pile above, or the «more groups» of a level — `SheetTable foot`. */
50
+ foot?: SheetFoot;
48
51
  n?: number;
49
52
  };
50
53
  /**
@@ -62,7 +65,7 @@ export type SheetEntry<T> = {
62
65
  * The rule stays in the view's hands, as it should: if it declares `group`,
63
66
  * it groups; if not, there are no buckets to draw.
64
67
  */
65
- export declare function sheetRowsOf<T extends object>(piles: readonly Pile<T>[] | null, isOpen: (pile: Pile<T>) => boolean, columns: readonly DataColumn<T>[] | undefined): SheetEntry<T>[] | null;
68
+ export declare function sheetRowsOf<T extends object>(piles: readonly Pile<T>[] | null, isOpen: (pile: Pile<T>) => boolean, columns: readonly DataColumn<T>[] | undefined, group?: Pick<Grouping<T>, "onMore" | "pilesCount" | "morePiles" | "onMorePiles">): SheetEntry<T>[] | null;
66
69
  /**
67
70
  * The report built from the buckets, when the domain did not declare
68
71
  * lines.
@@ -85,3 +88,12 @@ export declare function reportRowsOf<T extends object>(piles: readonly Pile<T>[]
85
88
  * number format — a count of rows is not an amount.
86
89
  */
87
90
  export declare function reportColumnsOf<T extends object>(reportColumns: readonly ReportColumn[], columns: readonly DataColumn<T>[] | undefined): readonly ReportColumn[];
91
+ /**
92
+ * What a pile adds up to, in one line — for the presentations without columns (rows, tiles,
93
+ * cards), where there is no column to write each total under.
94
+ *
95
+ * Context: the table's pile said «185.200,50 · máx 5» under its columns, and the same pile in
96
+ * rows said only «5». Switching presentation lost the answer the grouping was asked for. The
97
+ * numbers are the table's (`pileAggregate`, `aggregateLabel`), so the two never disagree.
98
+ */
99
+ export declare function pileSummaryOf<T extends object>(pile: Pile<T>, columns: readonly DataColumn<T>[] | undefined, copy: UiCopy): string | undefined;
@@ -1,5 +1,5 @@
1
- import { levelKey, pathKey, pileCount, pileItems, pileLabel, } from "../../foundations/grouping.js";
2
- import { aggregateFormat, aggregateOf, aggregateText, pileAggregate, } from "../../primitives/table/DataTable.js";
1
+ import { levelKey, pathKey, pileCount, pileFoot, pileItems, pileLabel, pilesFoot, } from "../../foundations/grouping.js";
2
+ import { aggregateFormat, aggregateLabel, aggregateOf, aggregateText, pileAggregate, } from "../../primitives/table/DataTable.js";
3
3
  import { levelNameOf } from "../../primitives/table/levels.js";
4
4
  /**
5
5
  * Context: what a list DERIVES from its set, as pure functions — the table's group levels,
@@ -54,6 +54,7 @@ export function sheetFromColumns(shownColumns) {
54
54
  header: column.header,
55
55
  ...(column.numeric === true ? { numeric: true } : {}),
56
56
  ...(column.width === undefined ? {} : { width: column.width }),
57
+ ...(column.look === undefined ? {} : { look: column.look }),
57
58
  })),
58
59
  cell: (item, column) => {
59
60
  const declared = byId.get(column.id);
@@ -91,7 +92,7 @@ export function sheetFromColumns(shownColumns) {
91
92
  * The rule stays in the view's hands, as it should: if it declares `group`,
92
93
  * it groups; if not, there are no buckets to draw.
93
94
  */
94
- export function sheetRowsOf(piles, isOpen, columns) {
95
+ export function sheetRowsOf(piles, isOpen, columns, group) {
95
96
  if (piles === null)
96
97
  return null;
97
98
  const out = [];
@@ -99,7 +100,7 @@ export function sheetRowsOf(piles, isOpen, columns) {
99
100
  /* Flattening is recursive because the tree is. The sheet cannot receive
100
101
  the tree: it is virtualised by index, and an index is a position in a
101
102
  sequence — so the hierarchy is expressed in each band's indentation. */
102
- const walk = (list) => {
103
+ const walk = (list, parent) => {
103
104
  for (const pile of list) {
104
105
  const open = isOpen(pile);
105
106
  out.push({
@@ -130,16 +131,40 @@ export function sheetRowsOf(piles, isOpen, columns) {
130
131
  if (!open)
131
132
  continue;
132
133
  if (pile.piles.length > 0) {
133
- walk(pile.piles);
134
+ walk(pile.piles, pile);
134
135
  continue;
135
136
  }
136
137
  for (const one of pile.items) {
137
138
  n += 1;
138
139
  out.push({ item: one, n });
139
140
  }
141
+ /* The table's «Ver 50 más»: without it a pile of 200 showed its first page and the
142
+ sheet said nothing of the rest. */
143
+ const rows = pileFoot(pile, group?.onMore !== undefined);
144
+ if (rows !== null) {
145
+ out.push({
146
+ foot: {
147
+ foot: rows,
148
+ of: "rows",
149
+ depth: pile.depth,
150
+ onMore: () => group?.onMore?.(pile),
151
+ },
152
+ });
153
+ }
154
+ }
155
+ const more = pilesFoot(parent, list, group);
156
+ if (more !== null) {
157
+ out.push({
158
+ foot: {
159
+ foot: more,
160
+ of: "piles",
161
+ depth: parent === null ? 0 : parent.depth + 1,
162
+ onMore: () => group?.onMorePiles?.(parent),
163
+ },
164
+ });
140
165
  }
141
166
  };
142
- walk(piles);
167
+ walk(piles, null);
143
168
  return out;
144
169
  }
145
170
  /**
@@ -242,3 +267,20 @@ export function reportColumnsOf(reportColumns, columns) {
242
267
  : { ...column, format };
243
268
  });
244
269
  }
270
+ /**
271
+ * What a pile adds up to, in one line — for the presentations without columns (rows, tiles,
272
+ * cards), where there is no column to write each total under.
273
+ *
274
+ * Context: the table's pile said «185.200,50 · máx 5» under its columns, and the same pile in
275
+ * rows said only «5». Switching presentation lost the answer the grouping was asked for. The
276
+ * numbers are the table's (`pileAggregate`, `aggregateLabel`), so the two never disagree.
277
+ */
278
+ export function pileSummaryOf(pile, columns, copy) {
279
+ if (columns === undefined)
280
+ return undefined;
281
+ const parts = columns.flatMap((column) => {
282
+ const value = pileAggregate(column, pile);
283
+ return value === null ? [] : [`${column.header} ${aggregateLabel(copy, column, value)}`];
284
+ });
285
+ return parts.length === 0 ? undefined : parts.join(" · ");
286
+ }
@@ -71,7 +71,7 @@ export function TablePresentation({ items, columns, keyOf, levels, group, totals
71
71
  ];
72
72
  /* Piles counted by whoever keeps the data go through as they are: the table draws those,
73
73
  not the ones it would build from the page. */
74
- return (_jsx(DataTable, { data: items, columns: columns, getRowId: keyOf, ...(sort === undefined ? {} : { sort }), ...(onSortChange === undefined ? {} : { onSortChange }), ...(levels.length === 0 ? {} : { levels: levels }), ...(group?.collapsed === undefined ? {} : { collapsed: group.collapsed }), ...(group?.onToggle === undefined ? {} : { onGroupToggle: group.onToggle }), ...(group?.piles === undefined || levels.length === 0 ? {} : { piles: group.piles }), ...(group?.onMore === undefined ? {} : { onMore: group.onMore }), ...(selection === undefined
74
+ return (_jsx(DataTable, { data: items, columns: columns, getRowId: keyOf, ...(sort === undefined ? {} : { sort }), ...(onSortChange === undefined ? {} : { onSortChange }), ...(levels.length === 0 ? {} : { levels: levels }), ...(group?.collapsed === undefined ? {} : { collapsed: group.collapsed }), ...(group?.onToggle === undefined ? {} : { onGroupToggle: group.onToggle }), ...(group?.piles === undefined || levels.length === 0 ? {} : { piles: group.piles }), ...(group?.onMore === undefined ? {} : { onMore: group.onMore }), ...(group?.pilesCount === undefined ? {} : { pilesCount: group.pilesCount }), ...(group?.morePiles === undefined ? {} : { morePiles: group.morePiles }), ...(group?.onMorePiles === undefined ? {} : { onMorePiles: group.onMorePiles }), ...(selection === undefined
75
75
  ? {}
76
76
  : {
77
77
  selected: new Set(items.filter((i) => selection.has(keyOf(i))).map(keyOf)),
@@ -109,6 +109,7 @@ export function SheetPresentation({ spec, entries, ordered, group, }) {
109
109
  ? {}
110
110
  : {
111
111
  band: (index) => entries[index]?.band,
112
+ foot: (index) => entries[index]?.foot,
112
113
  ...(group?.onToggle === undefined
113
114
  ? {}
114
115
  : {
@@ -11,7 +11,7 @@ import type { DockAction } from "../../components/record/dock.js";
11
11
  import type { RecordTimelineProps } from "../../components/timeline/RecordTimeline.js";
12
12
  import type { ChartKind, ChartOrder } from "../../foundations/chart.js";
13
13
  import type { GroupableField } from "../../foundations/grouping.js";
14
- import type { Grouping, GroupLevel, Pile } from "../../foundations/grouping.js";
14
+ import type { Grouping, GroupLevel, Pile, PilesPaging } from "../../foundations/grouping.js";
15
15
  import type { Pivot, PivotKey, PivotSpec } from "../../foundations/pivot.js";
16
16
  import type { OpenTarget } from "../../foundations/types.js";
17
17
  import type { Surface, Tone } from "../../foundations/types.js";
@@ -83,6 +83,10 @@ export type ListSet<T> = {
83
83
  /** Asks for the next page of a pile that holds fewer records than it counts
84
84
  * (`pile.items.length < pile.count`) — present when whoever keeps the data can. */
85
85
  more?: (pile: Pile<T>) => void;
86
+ /** How the levels of piles page, when the first one was counted over the whole set: hand
87
+ * it to `pilesFoot(parent, piles, pilesPaging)` after the last pile of each level and
88
+ * draw `PileFootLine of="piles"` — the «Ver 50 grupos más» the built-in faces draw. */
89
+ pilesPaging?: PilesPaging<T>;
86
90
  selection?: {
87
91
  has: (id: string) => boolean;
88
92
  toggle: (id: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sincpro/web-ui",
3
- "version": "2.18.0",
3
+ "version": "2.19.0",
4
4
  "description": "An enterprise web design system for business software — ERPs, back offices, management tools — in React and Tailwind: tokens, primitives, components and the two views every management screen is made of.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",