@zeyos/zx 4.4.0 → 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 +283 -0
- package/README.md +42 -10
- package/dist/types/components/activity-list/activity-list.d.ts +22 -0
- package/dist/types/components/app-sidebar/app-sidebar.d.ts +5 -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 +15 -0
- 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 +6 -17
- 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 +46 -6
- package/dist/types/components/dropdown/dropdown.d.ts +2 -2
- package/dist/types/components/entity-ref/entity-ref.d.ts +2 -2
- 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 +34 -6
- package/dist/types/components/form/form.d.ts +12 -1
- package/dist/types/components/kanban-view/kanban-card.d.ts +8 -0
- package/dist/types/components/launcher/launcher.d.ts +260 -15
- package/dist/types/components/list-toolbar/list-toolbar.d.ts +1 -1
- package/dist/types/components/menu-button/menu-button.d.ts +33 -5
- package/dist/types/components/message/message.d.ts +119 -17
- package/dist/types/components/modal/modal.d.ts +13 -2
- 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 +11 -3
- package/dist/types/components/stat-tile/stat-tile.d.ts +16 -5
- package/dist/types/components/tabbox/tabbox.d.ts +9 -0
- package/dist/types/components/table/table.d.ts +46 -1
- package/dist/types/components/tag-picker/tag-picker.d.ts +21 -4
- package/dist/types/components/tree/tree.d.ts +13 -0
- package/dist/types/core/breakpoint.d.ts +1 -1
- package/dist/types/core/icons.d.ts +23 -25
- 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 +5 -3
- 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 +1621 -443
- package/dist/zx-zeyos.esm.min.js +53 -5
- package/dist/zx.css +1411 -660
- package/dist/zx.esm.js +1976 -703
- package/dist/zx.esm.min.js +56 -8
- package/dist/zx.global.js +1978 -705
- package/dist/zx.global.min.js +56 -8
- package/dist/zx.min.css +1 -1
- package/docs/api.json +219 -34
- package/docs/llms.md +472 -110
- package/docs/llms.txt +3 -3
- package/package.json +1 -1
- package/src/components/account-menu/account-menu.css +35 -10
- package/src/components/activity-item/activity-item.css +1 -1
- package/src/components/activity-item/activity-item.js +3 -0
- package/src/components/activity-list/activity-list.css +38 -3
- package/src/components/activity-list/activity-list.js +34 -0
- package/src/components/app-icon/app-icon.css +1 -1
- package/src/components/app-rail/app-rail.css +40 -79
- package/src/components/app-sidebar/app-sidebar.css +109 -174
- package/src/components/app-sidebar/app-sidebar.js +21 -6
- 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 +67 -9
- package/src/components/button/button.js +38 -0
- package/src/components/calendar/calendar.css +46 -46
- package/src/components/card/card.css +2 -2
- package/src/components/card-view/card-view.css +9 -7
- 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 +6 -5
- package/src/components/code-editor/code-editor.js +19 -1
- package/src/components/context-menu/context-menu.css +9 -4
- 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-range-picker.css +3 -3
- package/src/components/date-picker/time-picker.css +1 -1
- 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 +99 -17
- package/src/components/dropdown/dropdown.css +1 -1
- package/src/components/dropdown/dropdown.js +5 -3
- package/src/components/empty-state/empty-state.css +2 -2
- package/src/components/entity-ref/entity-ref.css +1 -1
- package/src/components/entity-ref/entity-ref.js +1 -1
- 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.js +144 -10
- package/src/components/filter/filter.js +7 -3
- package/src/components/filter-panel/filter-panel.css +1 -1
- 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 +11 -3
- package/src/components/kanban-view/kanban-view.css +39 -15
- package/src/components/kanban-view/kanban-view.js +4 -4
- package/src/components/launcher/launcher.css +107 -25
- package/src/components/launcher/launcher.js +503 -41
- package/src/components/list-toolbar/list-toolbar.css +13 -8
- package/src/components/list-toolbar/list-toolbar.js +1 -1
- package/src/components/master-panel/master-panel.css +2 -0
- package/src/components/menu-button/menu-button.css +9 -4
- package/src/components/menu-button/menu-button.js +65 -9
- package/src/components/message/message.css +33 -3
- package/src/components/message/message.js +217 -15
- package/src/components/modal/modal.js +18 -3
- package/src/components/navigation-bar/navigation-bar.css +18 -9
- 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/rating/rating.css +7 -0
- package/src/components/select/color.js +22 -0
- package/src/components/select/field-adapter.js +2 -0
- package/src/components/select/glyphs.js +165 -0
- package/src/components/select/select.css +138 -45
- package/src/components/select/select.js +83 -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 +4 -1
- package/src/components/stat-tile/stat-tile.css +41 -46
- package/src/components/stat-tile/stat-tile.js +17 -6
- package/src/components/tabbox/tabbox.css +32 -27
- package/src/components/tabbox/tabbox.js +5 -1
- package/src/components/table/table.css +104 -29
- package/src/components/table/table.js +90 -16
- package/src/components/tag-picker/tag-picker.css +83 -5
- package/src/components/tag-picker/tag-picker.js +25 -8
- package/src/components/timebox/timebox.css +22 -2
- 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/view/record-view.js +1 -1
- package/src/core/breakpoint.js +1 -1
- package/src/core/icons.js +193 -60
- package/src/core/motion.js +147 -0
- package/src/core/overlay-host.js +21 -2
- package/src/index.js +5 -3
- package/src/internal/app-rail.js +1 -2
- 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/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 +0 -1
- package/styles/tokens/density.css +0 -9
package/docs/api.json
CHANGED
|
@@ -247,6 +247,12 @@
|
|
|
247
247
|
"default": "'Activity'",
|
|
248
248
|
"description": "Accessible collection name."
|
|
249
249
|
},
|
|
250
|
+
{
|
|
251
|
+
"name": "variant",
|
|
252
|
+
"type": "ActivityListVariant",
|
|
253
|
+
"default": "'default'",
|
|
254
|
+
"description": "Entry layout, reflected as `data-variant` on the root. `'compact'` also makes an avatar descriptor without a `size` small."
|
|
255
|
+
},
|
|
250
256
|
{
|
|
251
257
|
"name": "loading",
|
|
252
258
|
"type": "boolean",
|
|
@@ -577,7 +583,7 @@
|
|
|
577
583
|
"name": "getItems",
|
|
578
584
|
"signature": "getItems()",
|
|
579
585
|
"returns": "AppNavItem[]",
|
|
580
|
-
"description": "Returns a
|
|
586
|
+
"description": "Returns a copy of the normalized items. A leaf has no `children` property, as it was written, rather than the empty list normalization gives it."
|
|
581
587
|
},
|
|
582
588
|
{
|
|
583
589
|
"name": "setActive",
|
|
@@ -756,7 +762,7 @@
|
|
|
756
762
|
"name": "name",
|
|
757
763
|
"type": "string",
|
|
758
764
|
"default": "''",
|
|
759
|
-
"description": "Name used to derive fallback initials."
|
|
765
|
+
"description": "Name used to derive the fallback initials and tone."
|
|
760
766
|
},
|
|
761
767
|
{
|
|
762
768
|
"name": "initials",
|
|
@@ -774,7 +780,7 @@
|
|
|
774
780
|
"name": "size",
|
|
775
781
|
"type": "string|number",
|
|
776
782
|
"default": "'md'",
|
|
777
|
-
"description": "Preset
|
|
783
|
+
"description": "Preset — `sm` 24px, `md` 32px, `lg` 40px at the default spacing unit — or a pixel size. Below 24px the fallback shows a single initial."
|
|
778
784
|
},
|
|
779
785
|
{
|
|
780
786
|
"name": "shape",
|
|
@@ -782,6 +788,12 @@
|
|
|
782
788
|
"default": "'circle'",
|
|
783
789
|
"description": "Avatar shape."
|
|
784
790
|
},
|
|
791
|
+
{
|
|
792
|
+
"name": "tone",
|
|
793
|
+
"type": "AvatarTone|null",
|
|
794
|
+
"default": "null",
|
|
795
|
+
"description": "Fallback colour from the tone palette. `null` derives a stable tone from the name (or the initials when there is no name), so the same person gets the same colour on every screen; see {@link avatarTone}."
|
|
796
|
+
},
|
|
785
797
|
{
|
|
786
798
|
"name": "status",
|
|
787
799
|
"type": "'online'|'away'|'busy'|'offline'|null",
|
|
@@ -843,6 +855,12 @@
|
|
|
843
855
|
"default": "'neutral'",
|
|
844
856
|
"description": "Semantic intent."
|
|
845
857
|
},
|
|
858
|
+
{
|
|
859
|
+
"name": "tone",
|
|
860
|
+
"type": "BadgeTone|null",
|
|
861
|
+
"default": "null",
|
|
862
|
+
"description": "Categorical colour — a project, a label, a module — from the tone palette rather than the status set, so a tag never reads as a warning. When set it decides the colour and `kind` is ignored for it; `variant` still applies. Unknown names are ignored."
|
|
863
|
+
},
|
|
846
864
|
{
|
|
847
865
|
"name": "variant",
|
|
848
866
|
"type": "'soft'|'solid'|'outline'",
|
|
@@ -1054,6 +1072,12 @@
|
|
|
1054
1072
|
"default": "false",
|
|
1055
1073
|
"description": "Whether the button is disabled."
|
|
1056
1074
|
},
|
|
1075
|
+
{
|
|
1076
|
+
"name": "busy",
|
|
1077
|
+
"type": "boolean",
|
|
1078
|
+
"default": "false",
|
|
1079
|
+
"description": "Whether the button is working on its action — see `setButtonBusy()`."
|
|
1080
|
+
},
|
|
1057
1081
|
{
|
|
1058
1082
|
"name": "title",
|
|
1059
1083
|
"type": "string",
|
|
@@ -2079,6 +2103,12 @@
|
|
|
2079
2103
|
"default": "false",
|
|
2080
2104
|
"description": "Fallback initial checked state."
|
|
2081
2105
|
},
|
|
2106
|
+
{
|
|
2107
|
+
"name": "hideLabel",
|
|
2108
|
+
"type": "boolean",
|
|
2109
|
+
"default": "false",
|
|
2110
|
+
"description": "Whether the heading is left out. The group keeps the heading text as its accessible name (`aria-label`); a Field labelling the checklist names it instead, which is why the `checklist` field type sets this."
|
|
2111
|
+
},
|
|
2082
2112
|
{
|
|
2083
2113
|
"name": "load",
|
|
2084
2114
|
"type": "(() => Promise<ChecklistItem[]>|ChecklistItem[])|null",
|
|
@@ -2282,6 +2312,12 @@
|
|
|
2282
2312
|
"type": "boolean",
|
|
2283
2313
|
"default": "false",
|
|
2284
2314
|
"description": "Whether the confirmation action is dangerous."
|
|
2315
|
+
},
|
|
2316
|
+
{
|
|
2317
|
+
"name": "confirmText",
|
|
2318
|
+
"type": "string|null",
|
|
2319
|
+
"default": "null",
|
|
2320
|
+
"description": "Text the reader must type before the confirm button enables — the name of what is about to be deleted, say. The dialog adds an input labelled \"Type <confirmText> to confirm\" (message `dialog.typeToConfirm`, `%1` standing for the text), focuses it, and enables the confirm button, and Enter, only while its value matches exactly, ignoring surrounding spaces."
|
|
2285
2321
|
}
|
|
2286
2322
|
],
|
|
2287
2323
|
"events": [],
|
|
@@ -2678,7 +2714,7 @@
|
|
|
2678
2714
|
"name": "clearable",
|
|
2679
2715
|
"type": "boolean",
|
|
2680
2716
|
"default": "true",
|
|
2681
|
-
"description": "Show a clear button while a range is present."
|
|
2717
|
+
"description": "Show a clear button while a range is present and the box is enabled; without it the input keeps no room for one."
|
|
2682
2718
|
},
|
|
2683
2719
|
{
|
|
2684
2720
|
"name": "min",
|
|
@@ -2987,7 +3023,7 @@
|
|
|
2987
3023
|
"name": "clearable",
|
|
2988
3024
|
"type": "boolean",
|
|
2989
3025
|
"default": "true",
|
|
2990
|
-
"description": "Show a clear button
|
|
3026
|
+
"description": "Show a clear button while a value is present and the box is enabled; without it the input keeps no room for one."
|
|
2991
3027
|
},
|
|
2992
3028
|
{
|
|
2993
3029
|
"name": "disabled",
|
|
@@ -3105,7 +3141,7 @@
|
|
|
3105
3141
|
"name": "scope",
|
|
3106
3142
|
"type": "Element|string|null",
|
|
3107
3143
|
"default": "null",
|
|
3108
|
-
"description": "Element whose nearest Zx theme scope owns the overlay; defaults to the opener."
|
|
3144
|
+
"description": "Element whose nearest Zx theme scope owns the overlay; defaults to the opener. Resolved on every open, so a scope connected after construction still owns it."
|
|
3109
3145
|
}
|
|
3110
3146
|
],
|
|
3111
3147
|
"events": [
|
|
@@ -3178,7 +3214,7 @@
|
|
|
3178
3214
|
"name": "confirm",
|
|
3179
3215
|
"signature": "confirm([options])",
|
|
3180
3216
|
"returns": "Promise<boolean>",
|
|
3181
|
-
"description": "Opens a confirmation dialog."
|
|
3217
|
+
"description": "Opens a confirmation dialog. With `confirmText` it becomes a type-to-confirm dialog: the confirm button stays disabled until the reader has typed that text."
|
|
3182
3218
|
},
|
|
3183
3219
|
{
|
|
3184
3220
|
"name": "prompt",
|
|
@@ -3443,7 +3479,7 @@
|
|
|
3443
3479
|
"name": "scope",
|
|
3444
3480
|
"type": "Element|string|null",
|
|
3445
3481
|
"default": "null",
|
|
3446
|
-
"description": "Element whose nearest Zx theme scope owns the panel; defaults to the anchor."
|
|
3482
|
+
"description": "Element whose nearest Zx theme scope owns the panel; defaults to the anchor. Resolved on every open, so an anchor connected after construction still gets its scope."
|
|
3447
3483
|
}
|
|
3448
3484
|
],
|
|
3449
3485
|
"events": [
|
|
@@ -3593,7 +3629,7 @@
|
|
|
3593
3629
|
"name": "size",
|
|
3594
3630
|
"type": "'sm'|'md'|'lg'",
|
|
3595
3631
|
"default": "'md'",
|
|
3596
|
-
"description": "
|
|
3632
|
+
"description": "Size of the icon and the identity text."
|
|
3597
3633
|
},
|
|
3598
3634
|
{
|
|
3599
3635
|
"name": "wrap",
|
|
@@ -3695,7 +3731,7 @@
|
|
|
3695
3731
|
"name": "colorKey",
|
|
3696
3732
|
"type": "string|((item: SelectItem)=>unknown)",
|
|
3697
3733
|
"default": "'color'",
|
|
3698
|
-
"description": "Optional icon colour reader."
|
|
3734
|
+
"description": "Optional icon colour reader: a CSS colour or a token reference such as `var(--zx-color-tone-blue-fg)`. Without one the glyph is a neutral tile in muted ink."
|
|
3699
3735
|
},
|
|
3700
3736
|
{
|
|
3701
3737
|
"name": "subtitleKey",
|
|
@@ -3719,7 +3755,13 @@
|
|
|
3719
3755
|
"name": "id",
|
|
3720
3756
|
"type": "string|null",
|
|
3721
3757
|
"default": "null",
|
|
3722
|
-
"description": "
|
|
3758
|
+
"description": "DOM id of the control. Generated when omitted; a Fieldset derives it from its `idPrefix` and the field key, so a key never becomes a DOM id by itself."
|
|
3759
|
+
},
|
|
3760
|
+
{
|
|
3761
|
+
"name": "name",
|
|
3762
|
+
"type": "string|null",
|
|
3763
|
+
"default": "null",
|
|
3764
|
+
"description": "Field name: the `name` of a native control and the key the field is filed under. A Fieldset sets it to the field key; a standalone field falls back to `id`."
|
|
3723
3765
|
},
|
|
3724
3766
|
{
|
|
3725
3767
|
"name": "type",
|
|
@@ -4005,6 +4047,12 @@
|
|
|
4005
4047
|
"type": "Record<string, FieldOptions|Field|Element|Component>",
|
|
4006
4048
|
"default": "{}",
|
|
4007
4049
|
"description": "Initial fields."
|
|
4050
|
+
},
|
|
4051
|
+
{
|
|
4052
|
+
"name": "idPrefix",
|
|
4053
|
+
"type": "string|null",
|
|
4054
|
+
"default": "null",
|
|
4055
|
+
"description": "Prefix of the DOM ids generated for the fields, as `<idPrefix>-<key>`. Null generates one per instance, so the same fieldset mounted twice never repeats an id and a field key never collides with an element id elsewhere on the page."
|
|
4008
4056
|
}
|
|
4009
4057
|
],
|
|
4010
4058
|
"events": [],
|
|
@@ -4013,7 +4061,7 @@
|
|
|
4013
4061
|
"name": "addField",
|
|
4014
4062
|
"signature": "addField(id, field)",
|
|
4015
4063
|
"returns": "Field",
|
|
4016
|
-
"description": "Adds a field from options, an existing field, an element, or a component."
|
|
4064
|
+
"description": "Adds a field from options, an existing field, an element, or a component. The key becomes the field's `name` and its `data-field-id`; the control's DOM id is `<idPrefix>-<key>`, unless the field options give an `id` of their own that differs from the key."
|
|
4017
4065
|
},
|
|
4018
4066
|
{
|
|
4019
4067
|
"name": "getField",
|
|
@@ -4113,7 +4161,13 @@
|
|
|
4113
4161
|
"name": "mime",
|
|
4114
4162
|
"type": "string",
|
|
4115
4163
|
"default": "''",
|
|
4116
|
-
"description": "MIME type."
|
|
4164
|
+
"description": "MIME type. Shown as a readable type (\"PDF\", \"Image\"), never as the raw string, and used to pick the icon."
|
|
4165
|
+
},
|
|
4166
|
+
{
|
|
4167
|
+
"name": "typeLabel",
|
|
4168
|
+
"type": "string|null",
|
|
4169
|
+
"default": "null",
|
|
4170
|
+
"description": "Type shown beside the size; null derives it from the MIME type (or the name's extension when the MIME type is unfamiliar), an empty string hides it."
|
|
4117
4171
|
},
|
|
4118
4172
|
{
|
|
4119
4173
|
"name": "subtitle",
|
|
@@ -4125,7 +4179,7 @@
|
|
|
4125
4179
|
"name": "icon",
|
|
4126
4180
|
"type": "EntityRefIcon",
|
|
4127
4181
|
"default": "'file'",
|
|
4128
|
-
"description": "File icon name, node, component, or lazy renderer."
|
|
4182
|
+
"description": "File icon name, node, component, or lazy renderer. The generic `'file'` glyph gives way to one for the MIME type when the active icon set has it."
|
|
4129
4183
|
},
|
|
4130
4184
|
{
|
|
4131
4185
|
"name": "metadata",
|
|
@@ -4170,10 +4224,10 @@
|
|
|
4170
4224
|
"description": "Whether active progress has no known amount."
|
|
4171
4225
|
},
|
|
4172
4226
|
{
|
|
4173
|
-
"name": "
|
|
4227
|
+
"name": "identitySize",
|
|
4174
4228
|
"type": "'sm'|'md'|'lg'",
|
|
4175
4229
|
"default": "'md'",
|
|
4176
|
-
"description": "
|
|
4230
|
+
"description": "Size of the file's icon and name."
|
|
4177
4231
|
},
|
|
4178
4232
|
{
|
|
4179
4233
|
"name": "wrap",
|
|
@@ -4822,6 +4876,12 @@
|
|
|
4822
4876
|
"type": "boolean",
|
|
4823
4877
|
"default": "true",
|
|
4824
4878
|
"description": "Native `novalidate` state."
|
|
4879
|
+
},
|
|
4880
|
+
{
|
|
4881
|
+
"name": "idPrefix",
|
|
4882
|
+
"type": "string|null",
|
|
4883
|
+
"default": "null",
|
|
4884
|
+
"description": "Prefix of the DOM ids generated for the fields of the fieldsets this form builds, as `<idPrefix>-<key>`. Null generates one per form instance, so a form mounted twice never repeats an id. A fieldset's own `idPrefix` wins."
|
|
4825
4885
|
}
|
|
4826
4886
|
],
|
|
4827
4887
|
"events": [
|
|
@@ -4846,7 +4906,7 @@
|
|
|
4846
4906
|
"name": "addFieldset",
|
|
4847
4907
|
"signature": "addFieldset(fieldset)",
|
|
4848
4908
|
"returns": "Fieldset",
|
|
4849
|
-
"description": "Adds an existing fieldset or constructs one from options."
|
|
4909
|
+
"description": "Adds an existing fieldset or constructs one from options. A constructed fieldset generates its field ids from the form's `idPrefix` unless its options carry their own."
|
|
4850
4910
|
},
|
|
4851
4911
|
{
|
|
4852
4912
|
"name": "setActions",
|
|
@@ -5739,7 +5799,7 @@
|
|
|
5739
5799
|
},
|
|
5740
5800
|
{
|
|
5741
5801
|
"name": "hints",
|
|
5742
|
-
"type": "false|{move?: string, open?: string, close?: string}",
|
|
5802
|
+
"type": "false|{move?: string, open?: string, back?: string, close?: string}",
|
|
5743
5803
|
"default": null,
|
|
5744
5804
|
"description": "Visible keyboard hints, or false."
|
|
5745
5805
|
},
|
|
@@ -5753,7 +5813,7 @@
|
|
|
5753
5813
|
"events": [
|
|
5754
5814
|
{
|
|
5755
5815
|
"name": "select",
|
|
5756
|
-
"payload": "{item, value, source, query}",
|
|
5816
|
+
"payload": "{item, value, source, query, page}",
|
|
5757
5817
|
"description": "Preventable selection listener."
|
|
5758
5818
|
},
|
|
5759
5819
|
{
|
|
@@ -5761,6 +5821,11 @@
|
|
|
5761
5821
|
"payload": "{query: string}",
|
|
5762
5822
|
"description": "Query-change listener."
|
|
5763
5823
|
},
|
|
5824
|
+
{
|
|
5825
|
+
"name": "page",
|
|
5826
|
+
"payload": "{page, path}",
|
|
5827
|
+
"description": "Page-navigation listener."
|
|
5828
|
+
},
|
|
5764
5829
|
{
|
|
5765
5830
|
"name": "open",
|
|
5766
5831
|
"payload": "Record<string, never>",
|
|
@@ -5773,16 +5838,28 @@
|
|
|
5773
5838
|
},
|
|
5774
5839
|
{
|
|
5775
5840
|
"name": "error",
|
|
5776
|
-
"payload": "{source
|
|
5841
|
+
"payload": "{source, error, page}",
|
|
5777
5842
|
"description": "Source error listener."
|
|
5778
5843
|
}
|
|
5779
5844
|
],
|
|
5780
5845
|
"methods": [
|
|
5781
5846
|
{
|
|
5782
5847
|
"name": "open",
|
|
5783
|
-
"signature": "open()",
|
|
5848
|
+
"signature": "open([options])",
|
|
5784
5849
|
"returns": "this",
|
|
5785
|
-
"description": "Opens the launcher and focuses/selects its query."
|
|
5850
|
+
"description": "Opens the launcher and focuses/selects its query. It opens on the root unless `page` names one; already open, `page` navigates there."
|
|
5851
|
+
},
|
|
5852
|
+
{
|
|
5853
|
+
"name": "back",
|
|
5854
|
+
"signature": "back()",
|
|
5855
|
+
"returns": "this",
|
|
5856
|
+
"description": "Goes back one page, restoring the level beneath with its query and highlighted option. Does nothing on the root."
|
|
5857
|
+
},
|
|
5858
|
+
{
|
|
5859
|
+
"name": "getPage",
|
|
5860
|
+
"signature": "getPage()",
|
|
5861
|
+
"returns": "LauncherItem|null",
|
|
5862
|
+
"description": "Returns the page shown, or null on the root."
|
|
5786
5863
|
},
|
|
5787
5864
|
{
|
|
5788
5865
|
"name": "close",
|
|
@@ -5824,7 +5901,7 @@
|
|
|
5824
5901
|
"name": "setItems",
|
|
5825
5902
|
"signature": "setItems(items)",
|
|
5826
5903
|
"returns": "this",
|
|
5827
|
-
"description": "Replaces local catalogue items."
|
|
5904
|
+
"description": "Replaces the root's local catalogue items; an open page keeps its own."
|
|
5828
5905
|
},
|
|
5829
5906
|
{
|
|
5830
5907
|
"name": "setCurrent",
|
|
@@ -5836,7 +5913,7 @@
|
|
|
5836
5913
|
"name": "setSources",
|
|
5837
5914
|
"signature": "setSources(sources)",
|
|
5838
5915
|
"returns": "this",
|
|
5839
|
-
"description": "Replaces asynchronous sources and aborts work from the old set."
|
|
5916
|
+
"description": "Replaces the root's asynchronous sources and aborts work from the old set; on a page they load once the root is back."
|
|
5840
5917
|
},
|
|
5841
5918
|
{
|
|
5842
5919
|
"name": "destroy",
|
|
@@ -5846,6 +5923,18 @@
|
|
|
5846
5923
|
}
|
|
5847
5924
|
]
|
|
5848
5925
|
},
|
|
5926
|
+
"LauncherOpen": {
|
|
5927
|
+
"options": [
|
|
5928
|
+
{
|
|
5929
|
+
"name": "page",
|
|
5930
|
+
"type": "string|number|LauncherItem",
|
|
5931
|
+
"default": null,
|
|
5932
|
+
"description": "Opens straight into a page: the id of a local item with `items` (at any depth of array pages, whose path becomes the back stack), or a page item."
|
|
5933
|
+
}
|
|
5934
|
+
],
|
|
5935
|
+
"events": [],
|
|
5936
|
+
"methods": []
|
|
5937
|
+
},
|
|
5849
5938
|
"LayoutGrid": {
|
|
5850
5939
|
"options": [
|
|
5851
5940
|
{
|
|
@@ -6175,7 +6264,7 @@
|
|
|
6175
6264
|
},
|
|
6176
6265
|
{
|
|
6177
6266
|
"name": "open",
|
|
6178
|
-
"signature": "open()",
|
|
6267
|
+
"signature": "open([options])",
|
|
6179
6268
|
"returns": "this",
|
|
6180
6269
|
"description": "Opens the menu."
|
|
6181
6270
|
},
|
|
@@ -6205,13 +6294,13 @@
|
|
|
6205
6294
|
},
|
|
6206
6295
|
{
|
|
6207
6296
|
"name": "focusFirst",
|
|
6208
|
-
"signature": "focusFirst()",
|
|
6297
|
+
"signature": "focusFirst([options])",
|
|
6209
6298
|
"returns": "this",
|
|
6210
6299
|
"description": "Opens the menu and focuses its first enabled item."
|
|
6211
6300
|
},
|
|
6212
6301
|
{
|
|
6213
6302
|
"name": "focusLast",
|
|
6214
|
-
"signature": "focusLast()",
|
|
6303
|
+
"signature": "focusLast([options])",
|
|
6215
6304
|
"returns": "this",
|
|
6216
6305
|
"description": "Opens the menu and focuses its last enabled item."
|
|
6217
6306
|
},
|
|
@@ -6229,6 +6318,18 @@
|
|
|
6229
6318
|
}
|
|
6230
6319
|
]
|
|
6231
6320
|
},
|
|
6321
|
+
"MenuButtonOpen": {
|
|
6322
|
+
"options": [
|
|
6323
|
+
{
|
|
6324
|
+
"name": "returnFocus",
|
|
6325
|
+
"type": "boolean|HTMLElement",
|
|
6326
|
+
"default": "true",
|
|
6327
|
+
"description": "Where focus goes when this opening ends with a selection or Escape: `true` is the trigger, an element is that element (the trigger again if it has left the document), and `false` leaves focus alone."
|
|
6328
|
+
}
|
|
6329
|
+
],
|
|
6330
|
+
"events": [],
|
|
6331
|
+
"methods": []
|
|
6332
|
+
},
|
|
6232
6333
|
"Message": {
|
|
6233
6334
|
"options": [
|
|
6234
6335
|
{
|
|
@@ -6296,7 +6397,7 @@
|
|
|
6296
6397
|
"name": "timeout",
|
|
6297
6398
|
"type": "number",
|
|
6298
6399
|
"default": "4000",
|
|
6299
|
-
"description": "Auto-dismiss delay in milliseconds; zero persists."
|
|
6400
|
+
"description": "Auto-dismiss delay in milliseconds; zero persists. A message with an `action` stays at least 8000ms."
|
|
6300
6401
|
},
|
|
6301
6402
|
{
|
|
6302
6403
|
"name": "closable",
|
|
@@ -6304,6 +6405,18 @@
|
|
|
6304
6405
|
"default": "true",
|
|
6305
6406
|
"description": "Whether to render a close button."
|
|
6306
6407
|
},
|
|
6408
|
+
{
|
|
6409
|
+
"name": "action",
|
|
6410
|
+
"type": "MessageAction|null",
|
|
6411
|
+
"default": "null",
|
|
6412
|
+
"description": "A command button inside the message. The message never times out while the pointer is over it or focus is inside it."
|
|
6413
|
+
},
|
|
6414
|
+
{
|
|
6415
|
+
"name": "leading",
|
|
6416
|
+
"type": "Node|{toElement: () => Node|null}|null",
|
|
6417
|
+
"default": "null",
|
|
6418
|
+
"description": "Visual shown in place of the kind icon, such as an Avatar's element. It is decorative — the message text must say what it shows."
|
|
6419
|
+
},
|
|
6307
6420
|
{
|
|
6308
6421
|
"name": "scope",
|
|
6309
6422
|
"type": "Element|string|null",
|
|
@@ -6350,7 +6463,7 @@
|
|
|
6350
6463
|
"name": "scope",
|
|
6351
6464
|
"type": "Element|string|null",
|
|
6352
6465
|
"default": "null",
|
|
6353
|
-
"description": "Element whose nearest Zx theme scope owns the overlay; defaults to the opener."
|
|
6466
|
+
"description": "Element whose nearest Zx theme scope owns the overlay; defaults to the opener. Resolved on every open, so a scope connected after construction still owns it."
|
|
6354
6467
|
}
|
|
6355
6468
|
],
|
|
6356
6469
|
"events": [
|
|
@@ -7049,6 +7162,18 @@
|
|
|
7049
7162
|
}
|
|
7050
7163
|
]
|
|
7051
7164
|
},
|
|
7165
|
+
"PriorityIcon": {
|
|
7166
|
+
"options": [
|
|
7167
|
+
{
|
|
7168
|
+
"name": "label",
|
|
7169
|
+
"type": "string|null",
|
|
7170
|
+
"default": "null",
|
|
7171
|
+
"description": "Accessible name. Without one the glyph is decorative (`aria-hidden`) and must sit beside text, or inside a control with a tooltip, that says the priority."
|
|
7172
|
+
}
|
|
7173
|
+
],
|
|
7174
|
+
"events": [],
|
|
7175
|
+
"methods": []
|
|
7176
|
+
},
|
|
7052
7177
|
"ProgressBar": {
|
|
7053
7178
|
"options": [
|
|
7054
7179
|
{
|
|
@@ -7206,6 +7331,18 @@
|
|
|
7206
7331
|
"type": "string",
|
|
7207
7332
|
"default": "''",
|
|
7208
7333
|
"description": "Input placeholder."
|
|
7334
|
+
},
|
|
7335
|
+
{
|
|
7336
|
+
"name": "okLabel",
|
|
7337
|
+
"type": "string",
|
|
7338
|
+
"default": "'OK'",
|
|
7339
|
+
"description": "Confirmation label."
|
|
7340
|
+
},
|
|
7341
|
+
{
|
|
7342
|
+
"name": "cancelLabel",
|
|
7343
|
+
"type": "string",
|
|
7344
|
+
"default": "'Cancel'",
|
|
7345
|
+
"description": "Cancellation label."
|
|
7209
7346
|
}
|
|
7210
7347
|
],
|
|
7211
7348
|
"events": [],
|
|
@@ -8236,7 +8373,7 @@
|
|
|
8236
8373
|
"name": "priority",
|
|
8237
8374
|
"signature": "priority(target, [options])",
|
|
8238
8375
|
"returns": "Select",
|
|
8239
|
-
"description": "Creates the five-level priority preset."
|
|
8376
|
+
"description": "Creates the five-level priority preset: values 0 (lowest) to 4 (highest), each drawn as grey signal bars filled to its level, except the highest, which is the one coloured level — a danger square with an exclamation mark. A \"No priority\" row (value null, a row of dashes) heads the list and labels the empty control; `clearable: false` removes it."
|
|
8240
8377
|
},
|
|
8241
8378
|
{
|
|
8242
8379
|
"name": "status",
|
|
@@ -9174,6 +9311,12 @@
|
|
|
9174
9311
|
"default": "null",
|
|
9175
9312
|
"description": "ISO 4217 code used by `format: 'currency'`."
|
|
9176
9313
|
},
|
|
9314
|
+
{
|
|
9315
|
+
"name": "caption",
|
|
9316
|
+
"type": "string",
|
|
9317
|
+
"default": "''",
|
|
9318
|
+
"description": "A muted context line under the value — what the number is out of or measured in, e.g. `'of 13,184'` or `'open tickets'`. Part of the accessible name."
|
|
9319
|
+
},
|
|
9177
9320
|
{
|
|
9178
9321
|
"name": "locale",
|
|
9179
9322
|
"type": "string",
|
|
@@ -9214,13 +9357,13 @@
|
|
|
9214
9357
|
"name": "icon",
|
|
9215
9358
|
"type": "string|null",
|
|
9216
9359
|
"default": "null",
|
|
9217
|
-
"description": "Icon name from `icons.js`, shown beside the label."
|
|
9360
|
+
"description": "Icon name from `icons.js`, shown muted beside the label — a glyph, not a coloured chip."
|
|
9218
9361
|
},
|
|
9219
9362
|
{
|
|
9220
9363
|
"name": "kind",
|
|
9221
9364
|
"type": "StatTileKind",
|
|
9222
9365
|
"default": "'neutral'",
|
|
9223
|
-
"description": "Semantic intent. It tints the
|
|
9366
|
+
"description": "Semantic intent. It tints the sparkline and never the value, which stays at full text contrast whatever intent a record carries."
|
|
9224
9367
|
},
|
|
9225
9368
|
{
|
|
9226
9369
|
"name": "href",
|
|
@@ -9275,6 +9418,30 @@
|
|
|
9275
9418
|
}
|
|
9276
9419
|
]
|
|
9277
9420
|
},
|
|
9421
|
+
"StatusIcon": {
|
|
9422
|
+
"options": [
|
|
9423
|
+
{
|
|
9424
|
+
"name": "indicator",
|
|
9425
|
+
"type": "StatusIndicator",
|
|
9426
|
+
"default": null,
|
|
9427
|
+
"description": "Shape, overriding the status's own."
|
|
9428
|
+
},
|
|
9429
|
+
{
|
|
9430
|
+
"name": "tone",
|
|
9431
|
+
"type": "StatusTone",
|
|
9432
|
+
"default": null,
|
|
9433
|
+
"description": "Colour, overriding the status's own."
|
|
9434
|
+
},
|
|
9435
|
+
{
|
|
9436
|
+
"name": "label",
|
|
9437
|
+
"type": "string|null",
|
|
9438
|
+
"default": "null",
|
|
9439
|
+
"description": "Accessible name. Without one the glyph is decorative (`aria-hidden`) and must sit beside text, or inside a control with a tooltip, that says the status."
|
|
9440
|
+
}
|
|
9441
|
+
],
|
|
9442
|
+
"events": [],
|
|
9443
|
+
"methods": []
|
|
9444
|
+
},
|
|
9278
9445
|
"Stepper": {
|
|
9279
9446
|
"options": [
|
|
9280
9447
|
{
|
|
@@ -9439,6 +9606,12 @@
|
|
|
9439
9606
|
"type": "boolean",
|
|
9440
9607
|
"default": "true",
|
|
9441
9608
|
"description": "Keep inactive panel elements mounted."
|
|
9609
|
+
},
|
|
9610
|
+
{
|
|
9611
|
+
"name": "label",
|
|
9612
|
+
"type": "string",
|
|
9613
|
+
"default": null,
|
|
9614
|
+
"description": "Accessible name of the tab list — what the tabs switch between (\"Record sections\"). A tab list needs one whenever the page has more than one, and screen readers announce it on entry."
|
|
9442
9615
|
}
|
|
9443
9616
|
],
|
|
9444
9617
|
"events": [
|
|
@@ -9602,6 +9775,12 @@
|
|
|
9602
9775
|
"default": "true",
|
|
9603
9776
|
"description": "Whether alternate rows use the zebra background."
|
|
9604
9777
|
},
|
|
9778
|
+
{
|
|
9779
|
+
"name": "variant",
|
|
9780
|
+
"type": "TableVariant",
|
|
9781
|
+
"default": "'default'",
|
|
9782
|
+
"description": "Frame treatment. `'default'` draws the table's own bordered box; `'plain'` is for a table inside a card or panel that already draws one — no outer frame, no header band, no zebra, hairline row dividers. Reflected as `data-variant` on the root."
|
|
9783
|
+
},
|
|
9605
9784
|
{
|
|
9606
9785
|
"name": "editMode",
|
|
9607
9786
|
"type": "TableEditMode",
|
|
@@ -10157,7 +10336,13 @@
|
|
|
10157
10336
|
"name": "colorKey",
|
|
10158
10337
|
"type": "TagValueReader",
|
|
10159
10338
|
"default": "'color'",
|
|
10160
|
-
"description": "Optional item colour property or reader
|
|
10339
|
+
"description": "Optional item colour property or reader: a CSS colour or a token reference such as `var(--zx-color-tone-blue-fg)`."
|
|
10340
|
+
},
|
|
10341
|
+
{
|
|
10342
|
+
"name": "toneKey",
|
|
10343
|
+
"type": "TagValueReader",
|
|
10344
|
+
"default": "'tone'",
|
|
10345
|
+
"description": "Optional item tone property or reader: a categorical tone name from the Badge palette (`blue`, `teal`, `green`, `amber`, `orange`, `red`, `pink`, `violet`, `slate`). A toned tag takes the palette's fill and ink, as a Badge with that `tone` does; a tone wins over a colour, and unknown names are ignored."
|
|
10161
10346
|
},
|
|
10162
10347
|
{
|
|
10163
10348
|
"name": "searchKeys",
|
|
@@ -10223,7 +10408,7 @@
|
|
|
10223
10408
|
"name": "readonly",
|
|
10224
10409
|
"type": "boolean",
|
|
10225
10410
|
"default": "false",
|
|
10226
|
-
"description": "
|
|
10411
|
+
"description": "When true the picker shows only its tags — no input, chevron, or remove buttons."
|
|
10227
10412
|
},
|
|
10228
10413
|
{
|
|
10229
10414
|
"name": "renderItem",
|