@zeyos/zx 4.3.4 → 5.0.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.
- package/CHANGELOG.md +438 -0
- package/README.md +49 -10
- package/dist/types/components/activity-item/activity-item.d.ts +351 -0
- package/dist/types/components/activity-list/activity-list.d.ts +217 -0
- package/dist/types/components/app-sidebar/app-sidebar.d.ts +33 -3
- package/dist/types/components/avatar/avatar.d.ts +46 -7
- package/dist/types/components/badge/badge.d.ts +21 -1
- package/dist/types/components/button/button.d.ts +23 -0
- package/dist/types/components/calendar/calendar.d.ts +19 -0
- package/dist/types/components/card/card.d.ts +7 -0
- package/dist/types/components/card-view/card-view.d.ts +11 -3
- package/dist/types/components/card-view/record-card.d.ts +7 -1
- package/dist/types/components/chart/chart.d.ts +10 -0
- package/dist/types/components/checklist/checklist.d.ts +9 -0
- package/dist/types/components/code-editor/code-editor.d.ts +149 -0
- package/dist/types/components/code-editor/field-adapter.d.ts +5 -0
- package/dist/types/components/context-menu/context-menu.d.ts +18 -2
- package/dist/types/components/date-picker/date-picker.d.ts +8 -0
- package/dist/types/components/date-picker/time-picker.d.ts +7 -0
- package/dist/types/components/datebox/date-range-box.d.ts +5 -1
- package/dist/types/components/datebox/datebox.d.ts +7 -2
- package/dist/types/components/dialog/dialog.d.ts +75 -6
- package/dist/types/components/dropdown/dropdown.d.ts +2 -2
- package/dist/types/components/entity-ref/entity-ref.d.ts +331 -0
- package/dist/types/components/field/field.d.ts +24 -2
- package/dist/types/components/fieldset/fieldset.d.ts +19 -1
- package/dist/types/components/file-item/file-item.d.ts +262 -0
- package/dist/types/components/file-list/file-list.d.ts +171 -0
- package/dist/types/components/filter/filter.d.ts +91 -36
- package/dist/types/components/filter-panel/filter-panel.d.ts +449 -0
- package/dist/types/components/form/form.d.ts +12 -1
- package/dist/types/components/kanban-view/kanban-card.d.ts +146 -0
- package/dist/types/components/kanban-view/kanban-view.d.ts +170 -4
- package/dist/types/components/launcher/launcher.d.ts +278 -26
- package/dist/types/components/list-toolbar/list-toolbar.d.ts +599 -0
- package/dist/types/components/menu-button/menu-button.d.ts +37 -42
- package/dist/types/components/message/message.d.ts +126 -17
- package/dist/types/components/modal/modal.d.ts +61 -2
- package/dist/types/components/navigation-bar/navigation-bar.d.ts +105 -21
- package/dist/types/components/panel/panel.d.ts +7 -0
- package/dist/types/components/search/search.d.ts +7 -0
- package/dist/types/components/select/color.d.ts +12 -0
- package/dist/types/components/select/glyphs.d.ts +124 -0
- package/dist/types/components/select/select.d.ts +15 -3
- package/dist/types/components/sort-control/sort-control.d.ts +105 -0
- package/dist/types/components/stat-tile/stat-tile.d.ts +288 -0
- package/dist/types/components/tabbox/tabbox.d.ts +16 -0
- package/dist/types/components/table/table.d.ts +190 -1
- package/dist/types/components/table-view/table-view.d.ts +11 -5
- package/dist/types/components/tag-picker/tag-picker.d.ts +21 -4
- package/dist/types/components/timebox/timebox.d.ts +7 -0
- package/dist/types/components/tree/tree.d.ts +13 -0
- package/dist/types/components/value-list/value-list.d.ts +8 -0
- package/dist/types/components/view/record-view.d.ts +96 -5
- package/dist/types/core/breakpoint.d.ts +1 -1
- package/dist/types/core/icons.d.ts +37 -22
- package/dist/types/core/motion.d.ts +59 -0
- package/dist/types/core/overlay-host.d.ts +15 -1
- package/dist/types/index.d.ts +16 -3
- package/dist/types/internal/app-rail.d.ts +10 -0
- package/dist/types/internal/menu-items.d.ts +134 -0
- package/dist/types/zeyos/connect.d.ts +6 -0
- package/dist/types/zeyos/form.d.ts +50 -9
- package/dist/types/zeyos/index.d.ts +1 -1
- package/dist/types/zeyos/query.d.ts +79 -0
- package/dist/types/zeyos/schema.d.ts +24 -1
- package/dist/types/zeyos/table.d.ts +100 -14
- package/dist/types/zeyos/view.d.ts +10 -0
- package/dist/zx-zeyos.esm.js +2206 -489
- package/dist/zx-zeyos.esm.min.js +56 -1
- package/dist/zx.css +3322 -724
- package/dist/zx.esm.js +12244 -5809
- package/dist/zx.esm.min.js +58 -3
- package/dist/zx.global.js +12246 -5811
- package/dist/zx.global.min.js +58 -3
- package/dist/zx.min.css +1 -1
- package/docs/api.json +1683 -146
- package/docs/llms.md +777 -110
- package/docs/llms.txt +14 -8
- package/package.json +1 -1
- package/src/components/account-menu/account-menu.css +35 -10
- package/src/components/activity-item/activity-item.css +137 -0
- package/src/components/activity-item/activity-item.js +602 -0
- package/src/components/activity-list/activity-list.css +99 -0
- package/src/components/activity-list/activity-list.js +409 -0
- package/src/components/app-icon/app-icon.css +1 -1
- package/src/components/app-rail/app-rail.css +191 -22
- package/src/components/app-sidebar/app-sidebar.css +349 -24
- package/src/components/app-sidebar/app-sidebar.js +86 -11
- package/src/components/aurora/aurora.css +5 -3
- package/src/components/avatar/avatar.css +32 -7
- package/src/components/avatar/avatar.js +72 -8
- package/src/components/badge/badge.css +54 -2
- package/src/components/badge/badge.js +29 -2
- package/src/components/button/button.css +74 -8
- package/src/components/button/button.js +44 -1
- package/src/components/calendar/calendar.css +46 -46
- package/src/components/calendar/calendar.js +33 -3
- package/src/components/card/card.css +2 -2
- package/src/components/card/card.js +12 -1
- package/src/components/card-view/card-view.css +10 -7
- package/src/components/card-view/card-view.js +25 -9
- package/src/components/card-view/record-card.js +7 -3
- package/src/components/chart/chart.css +4 -1
- package/src/components/chart/chart.js +12 -0
- package/src/components/check-button/check-button.css +10 -2
- package/src/components/checklist/checklist.css +9 -2
- package/src/components/checklist/checklist.js +11 -5
- package/src/components/checklist/field-adapter.js +3 -1
- package/src/components/code-editor/code-editor.css +68 -0
- package/src/components/code-editor/code-editor.js +306 -0
- package/src/components/code-editor/field-adapter.js +34 -0
- package/src/components/context-menu/context-menu.css +87 -5
- package/src/components/context-menu/context-menu.js +22 -30
- package/src/components/copy/copy-button.css +6 -0
- package/src/components/copy/copy-input.css +8 -3
- package/src/components/data-filter/data-filter.css +5 -4
- package/src/components/date-picker/date-picker.css +6 -6
- package/src/components/date-picker/date-picker.js +22 -8
- package/src/components/date-picker/date-range-picker.css +3 -3
- package/src/components/date-picker/month-picker.js +3 -3
- package/src/components/date-picker/time-picker.css +1 -1
- package/src/components/date-picker/time-picker.js +20 -8
- package/src/components/datebox/date-range-box.css +79 -2
- package/src/components/datebox/date-range-box.js +13 -2
- package/src/components/datebox/datebox.css +79 -2
- package/src/components/datebox/datebox.js +13 -2
- package/src/components/dialog/dialog.css +26 -0
- package/src/components/dialog/dialog.js +174 -70
- package/src/components/dropdown/dropdown.css +1 -1
- package/src/components/dropdown/dropdown.js +7 -5
- package/src/components/empty-state/empty-state.css +2 -2
- package/src/components/entity-ref/entity-ref.css +182 -0
- package/src/components/entity-ref/entity-ref.js +496 -0
- package/src/components/field/field.css +28 -9
- package/src/components/field/field.js +68 -26
- package/src/components/field-upload/field-upload.css +1 -1
- package/src/components/fieldset/fieldset.css +5 -3
- package/src/components/fieldset/fieldset.js +28 -5
- package/src/components/file-item/file-item.css +88 -0
- package/src/components/file-item/file-item.js +505 -0
- package/src/components/file-list/file-list.css +51 -0
- package/src/components/file-list/file-list.js +320 -0
- package/src/components/filter/filter.css +27 -1
- package/src/components/filter/filter.js +205 -47
- package/src/components/filter-panel/filter-panel.css +104 -0
- package/src/components/filter-panel/filter-panel.js +964 -0
- package/src/components/finder/finder.css +15 -13
- package/src/components/form/form.css +5 -4
- package/src/components/form/form.js +11 -2
- package/src/components/grid/grid.css +1 -1
- package/src/components/groupbox/groupbox.css +1 -1
- package/src/components/kanban-view/kanban-card.js +247 -0
- package/src/components/kanban-view/kanban-view.css +226 -8
- package/src/components/kanban-view/kanban-view.js +255 -12
- package/src/components/launcher/launcher.css +107 -25
- package/src/components/launcher/launcher.js +557 -63
- package/src/components/list-toolbar/list-toolbar.css +194 -0
- package/src/components/list-toolbar/list-toolbar.js +851 -0
- package/src/components/master-panel/master-panel.css +2 -0
- package/src/components/menu-button/menu-button.css +87 -5
- package/src/components/menu-button/menu-button.js +86 -46
- package/src/components/message/message.css +38 -5
- package/src/components/message/message.js +230 -17
- package/src/components/modal/modal.css +15 -0
- package/src/components/modal/modal.js +159 -3
- package/src/components/navigation-bar/navigation-bar.css +95 -11
- package/src/components/navigation-bar/navigation-bar.js +171 -4
- package/src/components/number-field/field-adapter.js +1 -0
- package/src/components/number-field/number-field.css +70 -0
- package/src/components/number-field/number-field.js +2 -0
- package/src/components/pagination/pagination.css +8 -6
- package/src/components/panel/panel.css +1 -1
- package/src/components/panel/panel.js +13 -2
- package/src/components/rating/rating.css +7 -0
- package/src/components/search/search.js +17 -5
- package/src/components/select/color.js +22 -0
- package/src/components/select/field-adapter.js +6 -1
- package/src/components/select/glyphs.js +165 -0
- package/src/components/select/select.css +138 -45
- package/src/components/select/select.js +86 -47
- package/src/components/sheet/sheet.css +11 -8
- package/src/components/slider/slider.css +16 -2
- package/src/components/slider/slider.js +1 -1
- package/src/components/sort-control/sort-control.css +20 -0
- package/src/components/sort-control/sort-control.js +140 -0
- package/src/components/stat-tile/stat-tile.css +208 -0
- package/src/components/stat-tile/stat-tile.js +601 -0
- package/src/components/tabbox/tabbox.css +32 -27
- package/src/components/tabbox/tabbox.js +17 -2
- package/src/components/table/table.css +155 -31
- package/src/components/table/table.js +386 -33
- package/src/components/table-view/table-view.css +8 -2
- package/src/components/table-view/table-view.js +21 -6
- package/src/components/tag-picker/tag-picker.css +86 -6
- package/src/components/tag-picker/tag-picker.js +25 -8
- package/src/components/timebox/timebox.css +22 -2
- package/src/components/timebox/timebox.js +18 -5
- package/src/components/toggle/toggle.css +12 -1
- package/src/components/toolbar/toolbar.js +2 -2
- package/src/components/tooltip/tooltip.css +4 -0
- package/src/components/tooltip/tooltip.js +10 -3
- package/src/components/tree/tree.css +25 -16
- package/src/components/tree/tree.js +31 -0
- package/src/components/value-list/value-list.css +3 -3
- package/src/components/value-list/value-list.js +22 -6
- package/src/components/view/record-view.css +5 -0
- package/src/components/view/record-view.js +100 -7
- package/src/core/breakpoint.js +1 -1
- package/src/core/icons.js +259 -57
- package/src/core/motion.js +147 -0
- package/src/core/overlay-host.js +21 -2
- package/src/index.js +30 -3
- package/src/internal/app-rail.js +18 -1
- package/src/internal/menu-items.js +142 -0
- package/src/zeyos/connect.js +6 -2
- package/src/zeyos/form.js +67 -27
- package/src/zeyos/index.js +1 -1
- package/src/zeyos/query.js +153 -0
- package/src/zeyos/schema.js +144 -27
- package/src/zeyos/table.js +68 -5
- package/src/zeyos/view.js +6 -0
- package/styles/base.css +56 -0
- package/styles/icons.css +11 -1
- package/styles/print.css +192 -0
- package/styles/tokens/dark.css +113 -37
- package/styles/tokens/global.css +121 -27
- package/styles/tokens/semantic.css +100 -31
- package/styles/tokens/themes.css +7 -6
- package/styles/zx.css +11 -1
- package/styles/tokens/density.css +0 -9
|
@@ -22,6 +22,19 @@ export type ResolveFieldOptions = {
|
|
|
22
22
|
* Per-field label overrides.
|
|
23
23
|
*/
|
|
24
24
|
labels?: Record<string, string>;
|
|
25
|
+
/**
|
|
26
|
+
* Per-field semantic format overrides (`date`,
|
|
27
|
+
* `datetime`, `money`, or any registered key). The schema types a timestamp only by its storage,
|
|
28
|
+
* so this is how a Unix-second field the built-in rules misread is declared a calendar day
|
|
29
|
+
* (`date`) or an instant (`datetime`).
|
|
30
|
+
*/
|
|
31
|
+
formats?: Record<string, string>;
|
|
32
|
+
/**
|
|
33
|
+
* IANA time zone of the ZeyOS instance, such as `Europe/Vienna`.
|
|
34
|
+
* Date-only fields store midnight of a calendar day in this zone; it is copied onto every field's
|
|
35
|
+
* metadata as `timeZone`. Defaults to the runtime's own zone.
|
|
36
|
+
*/
|
|
37
|
+
timeZone?: string;
|
|
25
38
|
};
|
|
26
39
|
/** @typedef {Record<string, unknown>} FieldMeta */
|
|
27
40
|
/**
|
|
@@ -34,6 +47,13 @@ export type ResolveFieldOptions = {
|
|
|
34
47
|
* @property {string[]} [fields] Curated allow-list; its order becomes the output order.
|
|
35
48
|
* @property {string[]} [exclude] Field ids to omit.
|
|
36
49
|
* @property {Record<string, string>} [labels] Per-field label overrides.
|
|
50
|
+
* @property {Record<string, string>} [formats] Per-field semantic format overrides (`date`,
|
|
51
|
+
* `datetime`, `money`, or any registered key). The schema types a timestamp only by its storage,
|
|
52
|
+
* so this is how a Unix-second field the built-in rules misread is declared a calendar day
|
|
53
|
+
* (`date`) or an instant (`datetime`).
|
|
54
|
+
* @property {string} [timeZone] IANA time zone of the ZeyOS instance, such as `Europe/Vienna`.
|
|
55
|
+
* Date-only fields store midnight of a calendar day in this zone; it is copied onto every field's
|
|
56
|
+
* metadata as `timeZone`. Defaults to the runtime's own zone.
|
|
37
57
|
*/
|
|
38
58
|
/**
|
|
39
59
|
* Extensible ZeyOS semantic/DB type registry. Keys are normalized to lowercase. Built-in choices:
|
|
@@ -61,7 +81,8 @@ export declare function fieldToZxField(meta: FieldMeta): Record<string, unknown>
|
|
|
61
81
|
/**
|
|
62
82
|
* Converts normalized ZeyOS field metadata to a Zx Table column configuration. Renderers return
|
|
63
83
|
* strings only (never DOM): references/enums show labels, numeric columns are right-aligned,
|
|
64
|
-
* booleans show a check, and Unix seconds are formatted as dates
|
|
84
|
+
* booleans show a check, and Unix seconds are formatted as dates — a date-only field as the
|
|
85
|
+
* calendar day it names in `meta.timeZone`, with no time; a date-time field with its time.
|
|
65
86
|
* @param {FieldMeta} meta Normalized metadata containing at least `id` or `name`.
|
|
66
87
|
* @returns {Record<string, unknown>} Plain Zx Table column descriptor.
|
|
67
88
|
*/
|
|
@@ -71,6 +92,8 @@ export declare function fieldToZxColumn(meta: FieldMeta): Record<string, unknown
|
|
|
71
92
|
* client returns names from `schema.fields(resource)` and definitions from
|
|
72
93
|
* `schema.describe(resource).fields`; embedded `enum` data is authoritative. A compatible
|
|
73
94
|
* `schema.enums(resource, field)` is used when supplied by another client version/stub.
|
|
95
|
+
* `formats` overrides a field's semantic `format`, and `timeZone` is validated once and copied
|
|
96
|
+
* onto every field.
|
|
74
97
|
* @param {Record<string, any>} client Injected `@zeyos/client` instance.
|
|
75
98
|
* @param {string} resource Schema resource name such as `tickets`.
|
|
76
99
|
* @param {ResolveFieldOptions} [opts={}] Curation options.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Table } from '../index.js';
|
|
2
|
+
export type TableOptions = import('../components/table/table.js').TableOptions;
|
|
2
3
|
export type ZeyosTableOptions = {
|
|
3
4
|
/**
|
|
4
5
|
* Curated ordered field allow-list.
|
|
@@ -8,6 +9,16 @@ export type ZeyosTableOptions = {
|
|
|
8
9
|
* Per-field label overrides.
|
|
9
10
|
*/
|
|
10
11
|
labels?: Record<string, string>;
|
|
12
|
+
/**
|
|
13
|
+
* Per-field semantic format overrides, such as
|
|
14
|
+
* `{ duedate: 'date' }` for a Unix-second field that holds a calendar day.
|
|
15
|
+
*/
|
|
16
|
+
formats?: Record<string, string>;
|
|
17
|
+
/**
|
|
18
|
+
* IANA time zone of the ZeyOS instance. Date-only columns show the
|
|
19
|
+
* calendar day their stored midnight names in this zone; defaults to the runtime's own zone.
|
|
20
|
+
*/
|
|
21
|
+
timeZone?: string;
|
|
11
22
|
/**
|
|
12
23
|
* Row id accessor.
|
|
13
24
|
*/
|
|
@@ -43,6 +54,91 @@ export type ZeyosTableOptions = {
|
|
|
43
54
|
* Row activation callback.
|
|
44
55
|
*/
|
|
45
56
|
onRowClick?: (row: Record<string, unknown>, event: CustomEvent<Record<string, unknown>>) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Table frame treatment; `'plain'` for a
|
|
59
|
+
* table inside a pane or card that already draws the box.
|
|
60
|
+
*/
|
|
61
|
+
variant?: TableOptions['variant'];
|
|
62
|
+
/**
|
|
63
|
+
* Whether alternate rows use the zebra background.
|
|
64
|
+
*/
|
|
65
|
+
zebra?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Whether column headers stick while scrolling.
|
|
68
|
+
*/
|
|
69
|
+
stickyHeader?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Width below which rows stack.
|
|
72
|
+
*/
|
|
73
|
+
responsive?: TableOptions['responsive'];
|
|
74
|
+
/**
|
|
75
|
+
* Rows rendered at first from a loaded page.
|
|
76
|
+
*/
|
|
77
|
+
growing?: TableOptions['growing'];
|
|
78
|
+
/**
|
|
79
|
+
* What the table shows with no rows.
|
|
80
|
+
*/
|
|
81
|
+
emptyText?: TableOptions['emptyText'];
|
|
82
|
+
/**
|
|
83
|
+
* Additional row class callback.
|
|
84
|
+
*/
|
|
85
|
+
rowClass?: TableOptions['rowClass'];
|
|
86
|
+
/**
|
|
87
|
+
* Row property or callback naming each row's kind.
|
|
88
|
+
*/
|
|
89
|
+
rowKind?: TableOptions['rowKind'];
|
|
90
|
+
/**
|
|
91
|
+
* Presentation per row kind.
|
|
92
|
+
*/
|
|
93
|
+
rowKinds?: TableOptions['rowKinds'];
|
|
94
|
+
/**
|
|
95
|
+
* Whether a column visibility chooser is rendered.
|
|
96
|
+
*/
|
|
97
|
+
columnVisibility?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Whether the column chooser exposes reorder controls.
|
|
100
|
+
*/
|
|
101
|
+
columnReorder?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Initially hidden column ids.
|
|
104
|
+
*/
|
|
105
|
+
hiddenColumns?: string[];
|
|
106
|
+
/**
|
|
107
|
+
* Table `rowclick` listener, beside `onRowClick`.
|
|
108
|
+
*/
|
|
109
|
+
onrowclick?: TableOptions['onrowclick'];
|
|
110
|
+
/**
|
|
111
|
+
* Table `rowdblclick` listener.
|
|
112
|
+
*/
|
|
113
|
+
onrowdblclick?: TableOptions['onrowdblclick'];
|
|
114
|
+
/**
|
|
115
|
+
* Table `sort` listener; the binding reloads either way.
|
|
116
|
+
*/
|
|
117
|
+
onsort?: TableOptions['onsort'];
|
|
118
|
+
/**
|
|
119
|
+
* Table `selectionchange` listener.
|
|
120
|
+
*/
|
|
121
|
+
onselectionchange?: TableOptions['onselectionchange'];
|
|
122
|
+
/**
|
|
123
|
+
* Table `datachange` listener.
|
|
124
|
+
*/
|
|
125
|
+
ondatachange?: TableOptions['ondatachange'];
|
|
126
|
+
/**
|
|
127
|
+
* Table `stackedchange` listener.
|
|
128
|
+
*/
|
|
129
|
+
onstackedchange?: TableOptions['onstackedchange'];
|
|
130
|
+
/**
|
|
131
|
+
* Table `grow` listener.
|
|
132
|
+
*/
|
|
133
|
+
ongrow?: TableOptions['ongrow'];
|
|
134
|
+
/**
|
|
135
|
+
* Table `columnvisibilitychange` listener.
|
|
136
|
+
*/
|
|
137
|
+
oncolumnvisibilitychange?: TableOptions['oncolumnvisibilitychange'];
|
|
138
|
+
/**
|
|
139
|
+
* Table `columnorderchange` listener.
|
|
140
|
+
*/
|
|
141
|
+
oncolumnorderchange?: TableOptions['oncolumnorderchange'];
|
|
46
142
|
};
|
|
47
143
|
export type ZeyosTableConfig = {
|
|
48
144
|
/**
|
|
@@ -136,19 +232,6 @@ export type ZeyosTableBinding = {
|
|
|
136
232
|
*/
|
|
137
233
|
destroy: () => void;
|
|
138
234
|
};
|
|
139
|
-
/**
|
|
140
|
-
* @typedef {Object} ZeyosTableOptions
|
|
141
|
-
* @property {string[]} [fields] Curated ordered field allow-list.
|
|
142
|
-
* @property {Record<string, string>} [labels] Per-field label overrides.
|
|
143
|
-
* @property {string|((row: Record<string, unknown>) => unknown)} [rowId='ID'] Row id accessor.
|
|
144
|
-
* @property {number} [pageSize=50] Server page size.
|
|
145
|
-
* @property {{id: string, dir: 'asc'|'desc'}|null} [sort=null] Initial server sort.
|
|
146
|
-
* @property {Record<string, unknown>} [filters] Initial ZeyOS predicates.
|
|
147
|
-
* @property {string} [search=''] Initial full-text query.
|
|
148
|
-
* @property {false|'single'|'multi'} [selectable=false] Row selection mode.
|
|
149
|
-
* @property {number|string|null} [height=null] Table scroll-region height.
|
|
150
|
-
* @property {(row: Record<string, unknown>, event: CustomEvent<Record<string, unknown>>) => void} [onRowClick] Row activation callback.
|
|
151
|
-
*/
|
|
152
235
|
/**
|
|
153
236
|
* @typedef {Object} ZeyosTableConfig
|
|
154
237
|
* @property {Record<string, any>[]} fieldMeta Ordered normalized schema metadata.
|
|
@@ -186,7 +269,8 @@ export type ZeyosTableBinding = {
|
|
|
186
269
|
* Builds the DOM-free schema-derived columns and Table options used by {@link zeyosTable}. Entity
|
|
187
270
|
* projections include an `<field>_label` alias from a real label field on the referenced resource.
|
|
188
271
|
* Amount fields use each row's real `currency` value for display while retaining the WP14 typed
|
|
189
|
-
* column strategy and right alignment.
|
|
272
|
+
* column strategy and right alignment. Enum columns show labels, date-only columns calendar days in
|
|
273
|
+
* `timeZone`, and Table presentation options and listeners pass through to `tableOptions`.
|
|
190
274
|
* @param {Record<string, any>} client Injected ZeyOS client instance.
|
|
191
275
|
* @param {string} resource Resource name such as `transactions`.
|
|
192
276
|
* @param {ZeyosTableOptions} [opts={}] Schema, table, and initial query options.
|
|
@@ -197,6 +281,8 @@ export declare function buildZeyosTableConfig(client: Record<string, any>, resou
|
|
|
197
281
|
* Generates a server-backed Zx Table. Sorting automatically reloads page zero. `load({page: 0})`
|
|
198
282
|
* replaces data, higher pages append it, and `loadMore()` uses `limit`/`offset` plus the returned
|
|
199
283
|
* count. DataFilter callers can map state with `dataFilterStateToFilters` before `setFilters()`.
|
|
284
|
+
* Table presentation options (`variant`, `zebra`, `stickyHeader`, `responsive`, `emptyText`, …) and
|
|
285
|
+
* listeners are passed through to the generated Table.
|
|
200
286
|
* @param {Record<string, any>} client Injected ZeyOS client instance.
|
|
201
287
|
* @param {string} resource Resource name such as `transactions`.
|
|
202
288
|
* @param {ZeyosTableOptions} [opts={}] Schema, table, and initial query options.
|
|
@@ -46,6 +46,16 @@ export type ZeyosViewOptions = {
|
|
|
46
46
|
* Per-field label overrides.
|
|
47
47
|
*/
|
|
48
48
|
labels?: Record<string, string>;
|
|
49
|
+
/**
|
|
50
|
+
* Per-field semantic format overrides, such as
|
|
51
|
+
* `{ duedate: 'date' }` for a Unix-second field that holds a calendar day.
|
|
52
|
+
*/
|
|
53
|
+
formats?: Record<string, string>;
|
|
54
|
+
/**
|
|
55
|
+
* IANA time zone of the ZeyOS instance; date-only fields show the
|
|
56
|
+
* calendar day their stored midnight names in it. Defaults to the runtime's own zone.
|
|
57
|
+
*/
|
|
58
|
+
timeZone?: string;
|
|
49
59
|
/**
|
|
50
60
|
* View descriptor overrides.
|
|
51
61
|
*/
|