@almadar/patterns 2.17.1 → 2.18.1
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/dist/component-mapping.json +1 -1
- package/dist/event-contracts.json +22 -2
- package/dist/index.d.ts +167 -384
- package/dist/index.js +197 -379
- package/dist/index.js.map +1 -1
- package/dist/patterns-registry.json +174 -376
- package/dist/registry.json +174 -376
- package/package.json +1 -1
package/dist/registry.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"exportedAt": "2026-04-
|
|
3
|
+
"exportedAt": "2026-04-25T12:02:50.943Z",
|
|
4
4
|
"patterns": {
|
|
5
5
|
"entity-table": {
|
|
6
6
|
"type": "entity-table",
|
|
@@ -490,7 +490,9 @@
|
|
|
490
490
|
"types": [
|
|
491
491
|
"array"
|
|
492
492
|
],
|
|
493
|
-
"description": "Actions for each card item (schema-driven)"
|
|
493
|
+
"description": "Actions for each card item (schema-driven)",
|
|
494
|
+
"kind": "event-list",
|
|
495
|
+
"eventField": "event"
|
|
494
496
|
},
|
|
495
497
|
"showTotal": {
|
|
496
498
|
"types": [
|
|
@@ -697,12 +699,6 @@
|
|
|
697
699
|
],
|
|
698
700
|
"description": "Panel width (CSS value, e.g., '400px', '50%')"
|
|
699
701
|
},
|
|
700
|
-
"entityId": {
|
|
701
|
-
"types": [
|
|
702
|
-
"string"
|
|
703
|
-
],
|
|
704
|
-
"description": "Entity ID for fetching specific entity"
|
|
705
|
-
},
|
|
706
702
|
"displayFields": {
|
|
707
703
|
"types": [
|
|
708
704
|
"array"
|
|
@@ -893,11 +889,7 @@
|
|
|
893
889
|
"types": [
|
|
894
890
|
"string"
|
|
895
891
|
],
|
|
896
|
-
"description": "Form mode
|
|
897
|
-
"enumValues": [
|
|
898
|
-
"create",
|
|
899
|
-
"edit"
|
|
900
|
-
]
|
|
892
|
+
"description": "Form mode — 'create' for new records, 'edit' for updating existing. Accepts `string` so schema-driven callers (whose `config.mode` is typed as `string` per the trait's declared config block) compile cleanly. The runtime treats anything other than 'edit' as 'create'."
|
|
901
893
|
},
|
|
902
894
|
"fields": {
|
|
903
895
|
"types": [
|
|
@@ -953,19 +945,15 @@
|
|
|
953
945
|
"types": [
|
|
954
946
|
"string"
|
|
955
947
|
],
|
|
956
|
-
"description": "Event dispatch props (for trait state machine integration)"
|
|
948
|
+
"description": "Event dispatch props (for trait state machine integration)",
|
|
949
|
+
"kind": "event"
|
|
957
950
|
},
|
|
958
951
|
"cancelEvent": {
|
|
959
952
|
"types": [
|
|
960
953
|
"string"
|
|
961
954
|
],
|
|
962
|
-
"description": "Event to dispatch on cancel (defaults to 'CANCEL')"
|
|
963
|
-
|
|
964
|
-
"entityId": {
|
|
965
|
-
"types": [
|
|
966
|
-
"string"
|
|
967
|
-
],
|
|
968
|
-
"description": "Entity ID binding for edit mode (triggers initialData from selectedEntity in compiled code)"
|
|
955
|
+
"description": "Event to dispatch on cancel (defaults to 'CANCEL')",
|
|
956
|
+
"kind": "event"
|
|
969
957
|
},
|
|
970
958
|
"relationsData": {
|
|
971
959
|
"types": [
|
|
@@ -1101,11 +1089,7 @@
|
|
|
1101
1089
|
"types": [
|
|
1102
1090
|
"string"
|
|
1103
1091
|
],
|
|
1104
|
-
"description": "Form mode
|
|
1105
|
-
"enumValues": [
|
|
1106
|
-
"create",
|
|
1107
|
-
"edit"
|
|
1108
|
-
]
|
|
1092
|
+
"description": "Form mode — 'create' for new records, 'edit' for updating existing. Accepts `string` so schema-driven callers (whose `config.mode` is typed as `string` per the trait's declared config block) compile cleanly. The runtime treats anything other than 'edit' as 'create'."
|
|
1109
1093
|
},
|
|
1110
1094
|
"fields": {
|
|
1111
1095
|
"types": [
|
|
@@ -1161,19 +1145,15 @@
|
|
|
1161
1145
|
"types": [
|
|
1162
1146
|
"string"
|
|
1163
1147
|
],
|
|
1164
|
-
"description": "Event dispatch props (for trait state machine integration)"
|
|
1148
|
+
"description": "Event dispatch props (for trait state machine integration)",
|
|
1149
|
+
"kind": "event"
|
|
1165
1150
|
},
|
|
1166
1151
|
"cancelEvent": {
|
|
1167
1152
|
"types": [
|
|
1168
1153
|
"string"
|
|
1169
1154
|
],
|
|
1170
|
-
"description": "Event to dispatch on cancel (defaults to 'CANCEL')"
|
|
1171
|
-
|
|
1172
|
-
"entityId": {
|
|
1173
|
-
"types": [
|
|
1174
|
-
"string"
|
|
1175
|
-
],
|
|
1176
|
-
"description": "Entity ID binding for edit mode (triggers initialData from selectedEntity in compiled code)"
|
|
1155
|
+
"description": "Event to dispatch on cancel (defaults to 'CANCEL')",
|
|
1156
|
+
"kind": "event"
|
|
1177
1157
|
},
|
|
1178
1158
|
"relationsData": {
|
|
1179
1159
|
"types": [
|
|
@@ -2103,188 +2083,36 @@
|
|
|
2103
2083
|
],
|
|
2104
2084
|
"typicalSize": "small",
|
|
2105
2085
|
"propsSchema": {
|
|
2106
|
-
"
|
|
2107
|
-
"types": [
|
|
2108
|
-
"string"
|
|
2109
|
-
],
|
|
2110
|
-
"description": "Entity name for schema-driven integration"
|
|
2111
|
-
},
|
|
2112
|
-
"data": {
|
|
2113
|
-
"types": [
|
|
2114
|
-
"array"
|
|
2115
|
-
],
|
|
2116
|
-
"description": "Data array provided by the trait via render-ui"
|
|
2117
|
-
},
|
|
2118
|
-
"className": {
|
|
2119
|
-
"types": [
|
|
2120
|
-
"string"
|
|
2121
|
-
],
|
|
2122
|
-
"description": "Additional CSS classes"
|
|
2123
|
-
},
|
|
2124
|
-
"isLoading": {
|
|
2125
|
-
"types": [
|
|
2126
|
-
"boolean"
|
|
2127
|
-
],
|
|
2128
|
-
"description": "Loading state indicator"
|
|
2129
|
-
},
|
|
2130
|
-
"error": {
|
|
2131
|
-
"types": [
|
|
2132
|
-
"object"
|
|
2133
|
-
],
|
|
2134
|
-
"description": "Error state"
|
|
2135
|
-
},
|
|
2136
|
-
"sortBy": {
|
|
2137
|
-
"types": [
|
|
2138
|
-
"string"
|
|
2139
|
-
],
|
|
2140
|
-
"description": "Current sort field"
|
|
2141
|
-
},
|
|
2142
|
-
"sortDirection": {
|
|
2143
|
-
"types": [
|
|
2144
|
-
"string"
|
|
2145
|
-
],
|
|
2146
|
-
"description": "Current sort direction"
|
|
2147
|
-
},
|
|
2148
|
-
"searchValue": {
|
|
2086
|
+
"value": {
|
|
2149
2087
|
"types": [
|
|
2150
2088
|
"string"
|
|
2151
2089
|
],
|
|
2152
|
-
"description": "
|
|
2153
|
-
|
|
2154
|
-
"page": {
|
|
2155
|
-
"types": [
|
|
2156
|
-
"number"
|
|
2157
|
-
],
|
|
2158
|
-
"description": "Current page number"
|
|
2159
|
-
},
|
|
2160
|
-
"pageSize": {
|
|
2161
|
-
"types": [
|
|
2162
|
-
"number"
|
|
2163
|
-
],
|
|
2164
|
-
"description": "Number of items per page"
|
|
2165
|
-
},
|
|
2166
|
-
"totalCount": {
|
|
2167
|
-
"types": [
|
|
2168
|
-
"number"
|
|
2169
|
-
],
|
|
2170
|
-
"description": "Total number of items"
|
|
2171
|
-
},
|
|
2172
|
-
"activeFilters": {
|
|
2173
|
-
"types": [
|
|
2174
|
-
"object"
|
|
2175
|
-
],
|
|
2176
|
-
"description": "Active filters"
|
|
2177
|
-
},
|
|
2178
|
-
"selectedIds": {
|
|
2179
|
-
"types": [
|
|
2180
|
-
"array"
|
|
2181
|
-
],
|
|
2182
|
-
"description": "Currently selected item IDs"
|
|
2090
|
+
"description": "The stat value to display prominently",
|
|
2091
|
+
"required": true
|
|
2183
2092
|
},
|
|
2184
2093
|
"label": {
|
|
2185
2094
|
"types": [
|
|
2186
2095
|
"string"
|
|
2187
2096
|
],
|
|
2188
|
-
"description": "
|
|
2189
|
-
|
|
2190
|
-
"title": {
|
|
2191
|
-
"types": [
|
|
2192
|
-
"string"
|
|
2193
|
-
],
|
|
2194
|
-
"description": "Title (alias for label)"
|
|
2195
|
-
},
|
|
2196
|
-
"value": {
|
|
2197
|
-
"types": [
|
|
2198
|
-
"string",
|
|
2199
|
-
"number",
|
|
2200
|
-
"array",
|
|
2201
|
-
"unknown"
|
|
2202
|
-
],
|
|
2203
|
-
"description": "Primary value - accepts array/unknown from generated code (will use first element or length)"
|
|
2204
|
-
},
|
|
2205
|
-
"previousValue": {
|
|
2206
|
-
"types": [
|
|
2207
|
-
"number"
|
|
2208
|
-
],
|
|
2209
|
-
"description": "Previous value for comparison"
|
|
2210
|
-
},
|
|
2211
|
-
"currentValue": {
|
|
2212
|
-
"types": [
|
|
2213
|
-
"number"
|
|
2214
|
-
],
|
|
2215
|
-
"description": "Current value as number for trend calculation"
|
|
2216
|
-
},
|
|
2217
|
-
"trend": {
|
|
2218
|
-
"types": [
|
|
2219
|
-
"number"
|
|
2220
|
-
],
|
|
2221
|
-
"description": "Manual trend percentage (overrides calculation)"
|
|
2097
|
+
"description": "Label describing the value",
|
|
2098
|
+
"required": true
|
|
2222
2099
|
},
|
|
2223
|
-
"
|
|
2100
|
+
"size": {
|
|
2224
2101
|
"types": [
|
|
2225
2102
|
"string"
|
|
2226
2103
|
],
|
|
2227
|
-
"description": "
|
|
2104
|
+
"description": "Size of the value text",
|
|
2228
2105
|
"enumValues": [
|
|
2229
|
-
"
|
|
2230
|
-
"
|
|
2231
|
-
"
|
|
2106
|
+
"sm",
|
|
2107
|
+
"md",
|
|
2108
|
+
"lg"
|
|
2232
2109
|
]
|
|
2233
2110
|
},
|
|
2234
|
-
"
|
|
2235
|
-
"types": [
|
|
2236
|
-
"boolean"
|
|
2237
|
-
],
|
|
2238
|
-
"description": "Whether up is good (green) or bad (red)"
|
|
2239
|
-
},
|
|
2240
|
-
"icon": {
|
|
2241
|
-
"types": [
|
|
2242
|
-
"icon",
|
|
2243
|
-
"string"
|
|
2244
|
-
],
|
|
2245
|
-
"description": "Icon to display (Lucide component or icon name string)"
|
|
2246
|
-
},
|
|
2247
|
-
"iconBg": {
|
|
2248
|
-
"types": [
|
|
2249
|
-
"string"
|
|
2250
|
-
],
|
|
2251
|
-
"description": "Icon background color"
|
|
2252
|
-
},
|
|
2253
|
-
"iconColor": {
|
|
2254
|
-
"types": [
|
|
2255
|
-
"string"
|
|
2256
|
-
],
|
|
2257
|
-
"description": "Icon color"
|
|
2258
|
-
},
|
|
2259
|
-
"subtitle": {
|
|
2111
|
+
"className": {
|
|
2260
2112
|
"types": [
|
|
2261
2113
|
"string"
|
|
2262
2114
|
],
|
|
2263
|
-
"description": "
|
|
2264
|
-
},
|
|
2265
|
-
"action": {
|
|
2266
|
-
"types": [
|
|
2267
|
-
"object"
|
|
2268
|
-
],
|
|
2269
|
-
"description": "Action button"
|
|
2270
|
-
},
|
|
2271
|
-
"metrics": {
|
|
2272
|
-
"types": [
|
|
2273
|
-
"array"
|
|
2274
|
-
],
|
|
2275
|
-
"description": "Metrics to display (schema format) - accepts readonly for compatibility with generated const arrays"
|
|
2276
|
-
},
|
|
2277
|
-
"compact": {
|
|
2278
|
-
"types": [
|
|
2279
|
-
"boolean"
|
|
2280
|
-
],
|
|
2281
|
-
"description": "Compact display mode"
|
|
2282
|
-
},
|
|
2283
|
-
"sparklineData": {
|
|
2284
|
-
"types": [
|
|
2285
|
-
"array"
|
|
2286
|
-
],
|
|
2287
|
-
"description": "Sparkline data points for an inline trend chart"
|
|
2115
|
+
"description": "Additional class names"
|
|
2288
2116
|
}
|
|
2289
2117
|
}
|
|
2290
2118
|
},
|
|
@@ -2580,7 +2408,8 @@
|
|
|
2580
2408
|
"types": [
|
|
2581
2409
|
"string"
|
|
2582
2410
|
],
|
|
2583
|
-
"description": "Declarative close event — emits UI:{closeEvent} via eventBus when drawer should close"
|
|
2411
|
+
"description": "Declarative close event — emits UI:{closeEvent} via eventBus when drawer should close",
|
|
2412
|
+
"kind": "event"
|
|
2584
2413
|
}
|
|
2585
2414
|
}
|
|
2586
2415
|
},
|
|
@@ -2985,7 +2814,8 @@
|
|
|
2985
2814
|
"types": [
|
|
2986
2815
|
"string"
|
|
2987
2816
|
],
|
|
2988
|
-
"description": "Declarative event name — emits UI:{action} via eventBus on click"
|
|
2817
|
+
"description": "Declarative event name — emits UI:{action} via eventBus on click",
|
|
2818
|
+
"kind": "event"
|
|
2989
2819
|
},
|
|
2990
2820
|
"actionPayload": {
|
|
2991
2821
|
"types": [
|
|
@@ -2997,7 +2827,8 @@
|
|
|
2997
2827
|
"types": [
|
|
2998
2828
|
"string"
|
|
2999
2829
|
],
|
|
3000
|
-
"description": "Declarative hover event — emits UI:{hoverEvent} with { hovered: true/false } on mouseEnter/mouseLeave"
|
|
2830
|
+
"description": "Declarative hover event — emits UI:{hoverEvent} with { hovered: true/false } on mouseEnter/mouseLeave",
|
|
2831
|
+
"kind": "event"
|
|
3001
2832
|
},
|
|
3002
2833
|
"maxWidth": {
|
|
3003
2834
|
"types": [
|
|
@@ -3838,7 +3669,8 @@
|
|
|
3838
3669
|
"types": [
|
|
3839
3670
|
"string"
|
|
3840
3671
|
],
|
|
3841
|
-
"description": "Declarative event name — emits UI:{action} via eventBus on click"
|
|
3672
|
+
"description": "Declarative event name — emits UI:{action} via eventBus on click",
|
|
3673
|
+
"kind": "event"
|
|
3842
3674
|
},
|
|
3843
3675
|
"actionPayload": {
|
|
3844
3676
|
"types": [
|
|
@@ -4002,7 +3834,8 @@
|
|
|
4002
3834
|
"types": [
|
|
4003
3835
|
"string"
|
|
4004
3836
|
],
|
|
4005
|
-
"description": "Declarative event name — emits UI:{action} via eventBus on click"
|
|
3837
|
+
"description": "Declarative event name — emits UI:{action} via eventBus on click",
|
|
3838
|
+
"kind": "event"
|
|
4006
3839
|
},
|
|
4007
3840
|
"actionPayload": {
|
|
4008
3841
|
"types": [
|
|
@@ -4096,89 +3929,53 @@
|
|
|
4096
3929
|
],
|
|
4097
3930
|
"typicalSize": "small",
|
|
4098
3931
|
"propsSchema": {
|
|
4099
|
-
"
|
|
4100
|
-
"types": [
|
|
4101
|
-
"string"
|
|
4102
|
-
],
|
|
4103
|
-
"description": "Card title"
|
|
4104
|
-
},
|
|
4105
|
-
"subtitle": {
|
|
4106
|
-
"types": [
|
|
4107
|
-
"string"
|
|
4108
|
-
],
|
|
4109
|
-
"description": "Card subtitle or description"
|
|
4110
|
-
},
|
|
4111
|
-
"image": {
|
|
3932
|
+
"variant": {
|
|
4112
3933
|
"types": [
|
|
4113
3934
|
"string"
|
|
4114
3935
|
],
|
|
4115
|
-
"description": "
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
"
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
},
|
|
4123
|
-
"children": {
|
|
4124
|
-
"types": [
|
|
4125
|
-
"node"
|
|
4126
|
-
],
|
|
4127
|
-
"description": "Card content"
|
|
4128
|
-
},
|
|
4129
|
-
"onClick": {
|
|
4130
|
-
"types": [
|
|
4131
|
-
"function"
|
|
4132
|
-
],
|
|
4133
|
-
"description": "Click handler for the entire card"
|
|
3936
|
+
"description": "variant prop",
|
|
3937
|
+
"enumValues": [
|
|
3938
|
+
"default",
|
|
3939
|
+
"bordered",
|
|
3940
|
+
"elevated",
|
|
3941
|
+
"interactive"
|
|
3942
|
+
]
|
|
4134
3943
|
},
|
|
4135
|
-
"
|
|
3944
|
+
"padding": {
|
|
4136
3945
|
"types": [
|
|
4137
3946
|
"string"
|
|
4138
3947
|
],
|
|
4139
|
-
"description": "
|
|
3948
|
+
"description": "padding prop",
|
|
3949
|
+
"enumValues": [
|
|
3950
|
+
"none",
|
|
3951
|
+
"sm",
|
|
3952
|
+
"md",
|
|
3953
|
+
"lg"
|
|
3954
|
+
]
|
|
4140
3955
|
},
|
|
4141
|
-
"
|
|
3956
|
+
"title": {
|
|
4142
3957
|
"types": [
|
|
4143
3958
|
"string"
|
|
4144
3959
|
],
|
|
4145
|
-
"description": "
|
|
3960
|
+
"description": "Card title - renders in header if provided"
|
|
4146
3961
|
},
|
|
4147
|
-
"
|
|
4148
|
-
"types": [
|
|
4149
|
-
"boolean"
|
|
4150
|
-
],
|
|
4151
|
-
"description": "Whether the card is selected (highlighted state)"
|
|
4152
|
-
},
|
|
4153
|
-
"name": {
|
|
3962
|
+
"subtitle": {
|
|
4154
3963
|
"types": [
|
|
4155
3964
|
"string"
|
|
4156
3965
|
],
|
|
4157
|
-
"description": "Card
|
|
4158
|
-
},
|
|
4159
|
-
"level": {
|
|
4160
|
-
"types": [
|
|
4161
|
-
"number"
|
|
4162
|
-
],
|
|
4163
|
-
"description": "Level indicator"
|
|
4164
|
-
},
|
|
4165
|
-
"maxLevel": {
|
|
4166
|
-
"types": [
|
|
4167
|
-
"number"
|
|
4168
|
-
],
|
|
4169
|
-
"description": "Maximum level"
|
|
3966
|
+
"description": "Card subtitle - renders below title"
|
|
4170
3967
|
},
|
|
4171
|
-
"
|
|
3968
|
+
"shadow": {
|
|
4172
3969
|
"types": [
|
|
4173
3970
|
"string"
|
|
4174
3971
|
],
|
|
4175
|
-
"description": "
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
"
|
|
4180
|
-
|
|
4181
|
-
|
|
3972
|
+
"description": "Shadow size override",
|
|
3973
|
+
"enumValues": [
|
|
3974
|
+
"none",
|
|
3975
|
+
"sm",
|
|
3976
|
+
"md",
|
|
3977
|
+
"lg"
|
|
3978
|
+
]
|
|
4182
3979
|
}
|
|
4183
3980
|
}
|
|
4184
3981
|
},
|
|
@@ -4344,7 +4141,8 @@
|
|
|
4344
4141
|
"types": [
|
|
4345
4142
|
"string"
|
|
4346
4143
|
],
|
|
4347
|
-
"description": "Declarative event name for trait dispatch"
|
|
4144
|
+
"description": "Declarative event name for trait dispatch",
|
|
4145
|
+
"kind": "event"
|
|
4348
4146
|
},
|
|
4349
4147
|
"inputType": {
|
|
4350
4148
|
"types": [
|
|
@@ -4450,7 +4248,8 @@
|
|
|
4450
4248
|
"types": [
|
|
4451
4249
|
"string"
|
|
4452
4250
|
],
|
|
4453
|
-
"description": "Declarative event name for trait dispatch"
|
|
4251
|
+
"description": "Declarative event name for trait dispatch",
|
|
4252
|
+
"kind": "event"
|
|
4454
4253
|
},
|
|
4455
4254
|
"error": {
|
|
4456
4255
|
"types": [
|
|
@@ -4494,7 +4293,8 @@
|
|
|
4494
4293
|
"types": [
|
|
4495
4294
|
"string"
|
|
4496
4295
|
],
|
|
4497
|
-
"description": "Declarative event name for trait dispatch"
|
|
4296
|
+
"description": "Declarative event name for trait dispatch",
|
|
4297
|
+
"kind": "event"
|
|
4498
4298
|
},
|
|
4499
4299
|
"error": {
|
|
4500
4300
|
"types": [
|
|
@@ -4561,7 +4361,8 @@
|
|
|
4561
4361
|
"types": [
|
|
4562
4362
|
"string"
|
|
4563
4363
|
],
|
|
4564
|
-
"description": "Declarative event name for trait dispatch"
|
|
4364
|
+
"description": "Declarative event name for trait dispatch",
|
|
4365
|
+
"kind": "event"
|
|
4565
4366
|
},
|
|
4566
4367
|
"label": {
|
|
4567
4368
|
"types": [
|
|
@@ -4761,7 +4562,8 @@
|
|
|
4761
4562
|
"types": [
|
|
4762
4563
|
"string"
|
|
4763
4564
|
],
|
|
4764
|
-
"description": "Declarative dismiss event — emits UI:{dismissEvent} via eventBus when alert is dismissed"
|
|
4565
|
+
"description": "Declarative dismiss event — emits UI:{dismissEvent} via eventBus when alert is dismissed",
|
|
4566
|
+
"kind": "event"
|
|
4765
4567
|
}
|
|
4766
4568
|
}
|
|
4767
4569
|
},
|
|
@@ -5385,7 +5187,8 @@
|
|
|
5385
5187
|
"types": [
|
|
5386
5188
|
"string"
|
|
5387
5189
|
],
|
|
5388
|
-
"description": "Declarative event name — emits UI:{action} via eventBus on click"
|
|
5190
|
+
"description": "Declarative event name — emits UI:{action} via eventBus on click",
|
|
5191
|
+
"kind": "event"
|
|
5389
5192
|
}
|
|
5390
5193
|
}
|
|
5391
5194
|
},
|
|
@@ -5520,7 +5323,8 @@
|
|
|
5520
5323
|
"types": [
|
|
5521
5324
|
"string"
|
|
5522
5325
|
],
|
|
5523
|
-
"description": "Declarative event name — emits UI:{action} via eventBus on click"
|
|
5326
|
+
"description": "Declarative event name — emits UI:{action} via eventBus on click",
|
|
5327
|
+
"kind": "event"
|
|
5524
5328
|
},
|
|
5525
5329
|
"actionPayload": {
|
|
5526
5330
|
"types": [
|
|
@@ -5605,13 +5409,15 @@
|
|
|
5605
5409
|
"types": [
|
|
5606
5410
|
"string"
|
|
5607
5411
|
],
|
|
5608
|
-
"description": "Declarative event name — emits UI:{action} via eventBus on click"
|
|
5412
|
+
"description": "Declarative event name — emits UI:{action} via eventBus on click",
|
|
5413
|
+
"kind": "event"
|
|
5609
5414
|
},
|
|
5610
5415
|
"hoverEvent": {
|
|
5611
5416
|
"types": [
|
|
5612
5417
|
"string"
|
|
5613
5418
|
],
|
|
5614
|
-
"description": "Declarative hover event — emits UI:{hoverEvent} with { hovered: true/false }"
|
|
5419
|
+
"description": "Declarative hover event — emits UI:{hoverEvent} with { hovered: true/false }",
|
|
5420
|
+
"kind": "event"
|
|
5615
5421
|
}
|
|
5616
5422
|
}
|
|
5617
5423
|
},
|
|
@@ -5858,13 +5664,15 @@
|
|
|
5858
5664
|
"types": [
|
|
5859
5665
|
"string"
|
|
5860
5666
|
],
|
|
5861
|
-
"description": "Declarative event name emitted on press via useEventBus"
|
|
5667
|
+
"description": "Declarative event name emitted on press via useEventBus",
|
|
5668
|
+
"kind": "event"
|
|
5862
5669
|
},
|
|
5863
5670
|
"releaseEvent": {
|
|
5864
5671
|
"types": [
|
|
5865
5672
|
"string"
|
|
5866
5673
|
],
|
|
5867
|
-
"description": "Declarative event name emitted on release via useEventBus"
|
|
5674
|
+
"description": "Declarative event name emitted on release via useEventBus",
|
|
5675
|
+
"kind": "event"
|
|
5868
5676
|
},
|
|
5869
5677
|
"pressed": {
|
|
5870
5678
|
"types": [
|
|
@@ -6118,7 +5926,8 @@
|
|
|
6118
5926
|
"types": [
|
|
6119
5927
|
"string"
|
|
6120
5928
|
],
|
|
6121
|
-
"description": "Declarative event name emitted on click via useEventBus"
|
|
5929
|
+
"description": "Declarative event name emitted on click via useEventBus",
|
|
5930
|
+
"kind": "event"
|
|
6122
5931
|
}
|
|
6123
5932
|
}
|
|
6124
5933
|
},
|
|
@@ -6327,34 +6136,41 @@
|
|
|
6327
6136
|
"typicalSize": "medium",
|
|
6328
6137
|
"propsSchema": {
|
|
6329
6138
|
"action": {
|
|
6139
|
+
"types": [
|
|
6140
|
+
"string"
|
|
6141
|
+
],
|
|
6142
|
+
"description": "Declarative event name. When set, clicking the FAB emits `UI:{action}` via the event bus and (if also provided) calls `onClick`. Mirrors the Button atom's `action` prop so schemas can write `{ type: \"floating-action-button\", action: \"INIT\" }` uniformly.",
|
|
6143
|
+
"kind": "event"
|
|
6144
|
+
},
|
|
6145
|
+
"actionPayload": {
|
|
6330
6146
|
"types": [
|
|
6331
6147
|
"object"
|
|
6332
6148
|
],
|
|
6333
|
-
"description": "
|
|
6149
|
+
"description": "Payload to include with the dispatched action event."
|
|
6334
6150
|
},
|
|
6335
6151
|
"actions": {
|
|
6336
6152
|
"types": [
|
|
6337
6153
|
"array"
|
|
6338
6154
|
],
|
|
6339
|
-
"description": "Multiple actions
|
|
6155
|
+
"description": "Multiple actions. When provided, the button expands to show all of them."
|
|
6340
6156
|
},
|
|
6341
6157
|
"icon": {
|
|
6342
6158
|
"types": [
|
|
6343
6159
|
"string"
|
|
6344
6160
|
],
|
|
6345
|
-
"description": "Icon name (
|
|
6161
|
+
"description": "Icon name (resolves to a Lucide icon by PascalCase / kebab-case lookup)."
|
|
6346
6162
|
},
|
|
6347
6163
|
"onClick": {
|
|
6348
6164
|
"types": [
|
|
6349
6165
|
"function"
|
|
6350
6166
|
],
|
|
6351
|
-
"description": "
|
|
6167
|
+
"description": "Optional direct click handler. Runs after the action emit when both are present."
|
|
6352
6168
|
},
|
|
6353
6169
|
"variant": {
|
|
6354
6170
|
"types": [
|
|
6355
6171
|
"string"
|
|
6356
6172
|
],
|
|
6357
|
-
"description": "
|
|
6173
|
+
"description": "Visual variant.",
|
|
6358
6174
|
"enumValues": [
|
|
6359
6175
|
"primary",
|
|
6360
6176
|
"secondary",
|
|
@@ -6363,6 +6179,12 @@
|
|
|
6363
6179
|
"warning"
|
|
6364
6180
|
]
|
|
6365
6181
|
},
|
|
6182
|
+
"label": {
|
|
6183
|
+
"types": [
|
|
6184
|
+
"string"
|
|
6185
|
+
],
|
|
6186
|
+
"description": "Optional label shown via `aria-label` (visually hidden in single-action mode; rendered as a tooltip beside expanded actions in multi-action mode)."
|
|
6187
|
+
},
|
|
6366
6188
|
"position": {
|
|
6367
6189
|
"types": [
|
|
6368
6190
|
"string"
|
|
@@ -6975,78 +6797,29 @@
|
|
|
6975
6797
|
],
|
|
6976
6798
|
"typicalSize": "large",
|
|
6977
6799
|
"propsSchema": {
|
|
6978
|
-
"label": {
|
|
6979
|
-
"types": [
|
|
6980
|
-
"string"
|
|
6981
|
-
],
|
|
6982
|
-
"description": "label prop",
|
|
6983
|
-
"required": true
|
|
6984
|
-
},
|
|
6985
|
-
"variant": {
|
|
6986
|
-
"types": [
|
|
6987
|
-
"string"
|
|
6988
|
-
],
|
|
6989
|
-
"description": "variant prop",
|
|
6990
|
-
"enumValues": [
|
|
6991
|
-
"primary",
|
|
6992
|
-
"secondary",
|
|
6993
|
-
"ghost",
|
|
6994
|
-
"danger",
|
|
6995
|
-
"success",
|
|
6996
|
-
"warning",
|
|
6997
|
-
"default"
|
|
6998
|
-
]
|
|
6999
|
-
},
|
|
7000
|
-
"size": {
|
|
7001
|
-
"types": [
|
|
7002
|
-
"string"
|
|
7003
|
-
],
|
|
7004
|
-
"description": "size prop",
|
|
7005
|
-
"enumValues": [
|
|
7006
|
-
"sm",
|
|
7007
|
-
"md",
|
|
7008
|
-
"lg"
|
|
7009
|
-
]
|
|
7010
|
-
},
|
|
7011
|
-
"disabled": {
|
|
7012
|
-
"types": [
|
|
7013
|
-
"boolean"
|
|
7014
|
-
],
|
|
7015
|
-
"description": "disabled prop"
|
|
7016
|
-
},
|
|
7017
6800
|
"onClick": {
|
|
7018
6801
|
"types": [
|
|
7019
6802
|
"string"
|
|
7020
6803
|
],
|
|
7021
|
-
"description": "
|
|
6804
|
+
"description": "Legacy alias for {@link ButtonProps.action} (string event name).",
|
|
6805
|
+
"kind": "event"
|
|
7022
6806
|
},
|
|
7023
6807
|
"event": {
|
|
7024
6808
|
"types": [
|
|
7025
6809
|
"string"
|
|
7026
6810
|
],
|
|
7027
|
-
"description": "
|
|
7028
|
-
|
|
7029
|
-
"icon": {
|
|
7030
|
-
"types": [
|
|
7031
|
-
"string"
|
|
7032
|
-
],
|
|
7033
|
-
"description": "icon prop"
|
|
6811
|
+
"description": "Legacy alias for {@link ButtonProps.action}.",
|
|
6812
|
+
"kind": "event"
|
|
7034
6813
|
},
|
|
7035
6814
|
"iconPosition": {
|
|
7036
6815
|
"types": [
|
|
7037
6816
|
"string"
|
|
7038
6817
|
],
|
|
7039
|
-
"description": "
|
|
6818
|
+
"description": "Icon placement — maps to Button's `icon` (left) or `iconRight` (right).",
|
|
7040
6819
|
"enumValues": [
|
|
7041
6820
|
"left",
|
|
7042
6821
|
"right"
|
|
7043
6822
|
]
|
|
7044
|
-
},
|
|
7045
|
-
"className": {
|
|
7046
|
-
"types": [
|
|
7047
|
-
"string"
|
|
7048
|
-
],
|
|
7049
|
-
"description": "className prop"
|
|
7050
6823
|
}
|
|
7051
6824
|
}
|
|
7052
6825
|
},
|
|
@@ -7091,7 +6864,8 @@
|
|
|
7091
6864
|
"types": [
|
|
7092
6865
|
"string"
|
|
7093
6866
|
],
|
|
7094
|
-
"description": "Event to emit on click (REQUIRED for interactive elements)"
|
|
6867
|
+
"description": "Event to emit on click (REQUIRED for interactive elements)",
|
|
6868
|
+
"kind": "event"
|
|
7095
6869
|
},
|
|
7096
6870
|
"payload": {
|
|
7097
6871
|
"types": [
|
|
@@ -8854,12 +8628,6 @@
|
|
|
8854
8628
|
],
|
|
8855
8629
|
"description": "Actions"
|
|
8856
8630
|
},
|
|
8857
|
-
"entity": {
|
|
8858
|
-
"types": [
|
|
8859
|
-
"string"
|
|
8860
|
-
],
|
|
8861
|
-
"description": "Entity name for schema-driven auto-fetch"
|
|
8862
|
-
},
|
|
8863
8631
|
"isLoading": {
|
|
8864
8632
|
"types": [
|
|
8865
8633
|
"boolean"
|
|
@@ -8940,7 +8708,9 @@
|
|
|
8940
8708
|
"types": [
|
|
8941
8709
|
"array"
|
|
8942
8710
|
],
|
|
8943
|
-
"description": "Actions per item"
|
|
8711
|
+
"description": "Actions per item",
|
|
8712
|
+
"kind": "event-list",
|
|
8713
|
+
"eventField": "event"
|
|
8944
8714
|
}
|
|
8945
8715
|
}
|
|
8946
8716
|
},
|
|
@@ -13488,10 +13258,10 @@
|
|
|
13488
13258
|
"propsSchema": {
|
|
13489
13259
|
"entity": {
|
|
13490
13260
|
"types": [
|
|
13491
|
-
"
|
|
13261
|
+
"object",
|
|
13492
13262
|
"array"
|
|
13493
13263
|
],
|
|
13494
|
-
"description": "
|
|
13264
|
+
"description": "Schema entity data — single record or collection, typed against `@almadar/core`'s `EntityRow` so the narrow type declared on the emitting trait's `Event { data : [X] }` flows through to the prop without widening. The generic `T` lets consumers pass a narrower entity (e.g. `CartItem`) and have the `children` render function receive cards typed to that exact shape.",
|
|
13495
13265
|
"required": true
|
|
13496
13266
|
},
|
|
13497
13267
|
"fields": {
|
|
@@ -13511,7 +13281,9 @@
|
|
|
13511
13281
|
"types": [
|
|
13512
13282
|
"array"
|
|
13513
13283
|
],
|
|
13514
|
-
"description": "Per-item action buttons"
|
|
13284
|
+
"description": "Per-item action buttons",
|
|
13285
|
+
"kind": "event-list",
|
|
13286
|
+
"eventField": "event"
|
|
13515
13287
|
},
|
|
13516
13288
|
"cols": {
|
|
13517
13289
|
"types": [
|
|
@@ -13572,7 +13344,8 @@
|
|
|
13572
13344
|
"types": [
|
|
13573
13345
|
"string"
|
|
13574
13346
|
],
|
|
13575
|
-
"description": "Selection change event name (emits UI:{selectionEvent} with { selectedIds: string[] })"
|
|
13347
|
+
"description": "Selection change event name (emits UI:{selectionEvent} with { selectedIds: string[] })",
|
|
13348
|
+
"kind": "event"
|
|
13576
13349
|
},
|
|
13577
13350
|
"infiniteScroll": {
|
|
13578
13351
|
"types": [
|
|
@@ -13584,7 +13357,8 @@
|
|
|
13584
13357
|
"types": [
|
|
13585
13358
|
"string"
|
|
13586
13359
|
],
|
|
13587
|
-
"description": "Event emitted when more items needed: UI:{loadMoreEvent}"
|
|
13360
|
+
"description": "Event emitted when more items needed: UI:{loadMoreEvent}",
|
|
13361
|
+
"kind": "event"
|
|
13588
13362
|
},
|
|
13589
13363
|
"hasMore": {
|
|
13590
13364
|
"types": [
|
|
@@ -13596,7 +13370,7 @@
|
|
|
13596
13370
|
"types": [
|
|
13597
13371
|
"function"
|
|
13598
13372
|
],
|
|
13599
|
-
"description": "Render prop for custom per-
|
|
13373
|
+
"description": "Render prop for custom per-card content, typed to the grid's entity shape `T`. When provided, `fields` and `itemActions` are ignored."
|
|
13600
13374
|
},
|
|
13601
13375
|
"renderItem": {
|
|
13602
13376
|
"types": [
|
|
@@ -13625,10 +13399,10 @@
|
|
|
13625
13399
|
"propsSchema": {
|
|
13626
13400
|
"entity": {
|
|
13627
13401
|
"types": [
|
|
13628
|
-
"
|
|
13402
|
+
"object",
|
|
13629
13403
|
"array"
|
|
13630
13404
|
],
|
|
13631
|
-
"description": "
|
|
13405
|
+
"description": "Schema entity data — single record or collection, typed against `@almadar/core`'s `EntityRow` so the narrow type declared on the emitting trait's `Event { data : [X] }` flows through to the prop without widening. The generic `T` lets consumers pass a narrower entity (e.g. `CartItem`) and have the `children` render function receive items of that exact shape.",
|
|
13632
13406
|
"required": true
|
|
13633
13407
|
},
|
|
13634
13408
|
"fields": {
|
|
@@ -13648,7 +13422,9 @@
|
|
|
13648
13422
|
"types": [
|
|
13649
13423
|
"array"
|
|
13650
13424
|
],
|
|
13651
|
-
"description": "Per-item action buttons"
|
|
13425
|
+
"description": "Per-item action buttons",
|
|
13426
|
+
"kind": "event-list",
|
|
13427
|
+
"eventField": "event"
|
|
13652
13428
|
},
|
|
13653
13429
|
"gap": {
|
|
13654
13430
|
"types": [
|
|
@@ -13720,13 +13496,15 @@
|
|
|
13720
13496
|
"types": [
|
|
13721
13497
|
"string"
|
|
13722
13498
|
],
|
|
13723
|
-
"description": "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }"
|
|
13499
|
+
"description": "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
|
|
13500
|
+
"kind": "event"
|
|
13724
13501
|
},
|
|
13725
13502
|
"swipeLeftEvent": {
|
|
13726
13503
|
"types": [
|
|
13727
13504
|
"string"
|
|
13728
13505
|
],
|
|
13729
|
-
"description": "Event emitted on left swipe: UI:{swipeLeftEvent} with { row }"
|
|
13506
|
+
"description": "Event emitted on left swipe: UI:{swipeLeftEvent} with { row }",
|
|
13507
|
+
"kind": "event"
|
|
13730
13508
|
},
|
|
13731
13509
|
"swipeLeftActions": {
|
|
13732
13510
|
"types": [
|
|
@@ -13738,7 +13516,8 @@
|
|
|
13738
13516
|
"types": [
|
|
13739
13517
|
"string"
|
|
13740
13518
|
],
|
|
13741
|
-
"description": "Event emitted on right swipe: UI:{swipeRightEvent} with { row }"
|
|
13519
|
+
"description": "Event emitted on right swipe: UI:{swipeRightEvent} with { row }",
|
|
13520
|
+
"kind": "event"
|
|
13742
13521
|
},
|
|
13743
13522
|
"swipeRightActions": {
|
|
13744
13523
|
"types": [
|
|
@@ -13750,7 +13529,8 @@
|
|
|
13750
13529
|
"types": [
|
|
13751
13530
|
"string"
|
|
13752
13531
|
],
|
|
13753
|
-
"description": "Event emitted on long press: UI:{longPressEvent} with { row }"
|
|
13532
|
+
"description": "Event emitted on long press: UI:{longPressEvent} with { row }",
|
|
13533
|
+
"kind": "event"
|
|
13754
13534
|
},
|
|
13755
13535
|
"infiniteScroll": {
|
|
13756
13536
|
"types": [
|
|
@@ -13762,7 +13542,8 @@
|
|
|
13762
13542
|
"types": [
|
|
13763
13543
|
"string"
|
|
13764
13544
|
],
|
|
13765
|
-
"description": "Event emitted when more items needed: UI:{loadMoreEvent}"
|
|
13545
|
+
"description": "Event emitted when more items needed: UI:{loadMoreEvent}",
|
|
13546
|
+
"kind": "event"
|
|
13766
13547
|
},
|
|
13767
13548
|
"hasMore": {
|
|
13768
13549
|
"types": [
|
|
@@ -14064,7 +13845,8 @@
|
|
|
14064
13845
|
"types": [
|
|
14065
13846
|
"string"
|
|
14066
13847
|
],
|
|
14067
|
-
"description": "Declarative event name for value changes"
|
|
13848
|
+
"description": "Declarative event name for value changes",
|
|
13849
|
+
"kind": "event"
|
|
14068
13850
|
},
|
|
14069
13851
|
"actionPayload": {
|
|
14070
13852
|
"types": [
|
|
@@ -14317,7 +14099,8 @@
|
|
|
14317
14099
|
"types": [
|
|
14318
14100
|
"string"
|
|
14319
14101
|
],
|
|
14320
|
-
"description": "Declarative event name for value changes"
|
|
14102
|
+
"description": "Declarative event name for value changes",
|
|
14103
|
+
"kind": "event"
|
|
14321
14104
|
},
|
|
14322
14105
|
"actionPayload": {
|
|
14323
14106
|
"types": [
|
|
@@ -14393,7 +14176,8 @@
|
|
|
14393
14176
|
"types": [
|
|
14394
14177
|
"string"
|
|
14395
14178
|
],
|
|
14396
|
-
"description": "Declarative event name for rating changes"
|
|
14179
|
+
"description": "Declarative event name for rating changes",
|
|
14180
|
+
"kind": "event"
|
|
14397
14181
|
},
|
|
14398
14182
|
"actionPayload": {
|
|
14399
14183
|
"types": [
|
|
@@ -14479,7 +14263,8 @@
|
|
|
14479
14263
|
"types": [
|
|
14480
14264
|
"string"
|
|
14481
14265
|
],
|
|
14482
|
-
"description": "Declarative event name for file selection"
|
|
14266
|
+
"description": "Declarative event name for file selection",
|
|
14267
|
+
"kind": "event"
|
|
14483
14268
|
},
|
|
14484
14269
|
"actionPayload": {
|
|
14485
14270
|
"types": [
|
|
@@ -14514,23 +14299,29 @@
|
|
|
14514
14299
|
"propsSchema": {
|
|
14515
14300
|
"value": {
|
|
14516
14301
|
"types": [
|
|
14302
|
+
"number",
|
|
14517
14303
|
"string"
|
|
14518
14304
|
],
|
|
14519
|
-
"description": "
|
|
14305
|
+
"description": "The target value to animate to. Strings are parsed numerically (e.g. \"500\", \"99.9\").",
|
|
14520
14306
|
"required": true
|
|
14521
14307
|
},
|
|
14522
|
-
"
|
|
14308
|
+
"duration": {
|
|
14309
|
+
"types": [
|
|
14310
|
+
"number"
|
|
14311
|
+
],
|
|
14312
|
+
"description": "Animation duration in milliseconds"
|
|
14313
|
+
},
|
|
14314
|
+
"prefix": {
|
|
14523
14315
|
"types": [
|
|
14524
14316
|
"string"
|
|
14525
14317
|
],
|
|
14526
|
-
"description": "
|
|
14527
|
-
"required": true
|
|
14318
|
+
"description": "Text to display before the number"
|
|
14528
14319
|
},
|
|
14529
|
-
"
|
|
14320
|
+
"suffix": {
|
|
14530
14321
|
"types": [
|
|
14531
|
-
"
|
|
14322
|
+
"string"
|
|
14532
14323
|
],
|
|
14533
|
-
"description": "
|
|
14324
|
+
"description": "Text to display after the number"
|
|
14534
14325
|
},
|
|
14535
14326
|
"className": {
|
|
14536
14327
|
"types": [
|
|
@@ -14595,7 +14386,8 @@
|
|
|
14595
14386
|
"string"
|
|
14596
14387
|
],
|
|
14597
14388
|
"description": "Event name to emit when load-more is triggered (emitted as UI:{loadMoreEvent})",
|
|
14598
|
-
"required": true
|
|
14389
|
+
"required": true,
|
|
14390
|
+
"kind": "event"
|
|
14599
14391
|
},
|
|
14600
14392
|
"loadMorePayload": {
|
|
14601
14393
|
"types": [
|
|
@@ -14767,7 +14559,8 @@
|
|
|
14767
14559
|
"string"
|
|
14768
14560
|
],
|
|
14769
14561
|
"description": "Event name to emit on refresh (emitted as UI:{refreshEvent})",
|
|
14770
|
-
"required": true
|
|
14562
|
+
"required": true,
|
|
14563
|
+
"kind": "event"
|
|
14771
14564
|
},
|
|
14772
14565
|
"refreshPayload": {
|
|
14773
14566
|
"types": [
|
|
@@ -14826,7 +14619,8 @@
|
|
|
14826
14619
|
"string"
|
|
14827
14620
|
],
|
|
14828
14621
|
"description": "reorderEvent prop",
|
|
14829
|
-
"required": true
|
|
14622
|
+
"required": true,
|
|
14623
|
+
"kind": "event"
|
|
14830
14624
|
},
|
|
14831
14625
|
"reorderPayload": {
|
|
14832
14626
|
"types": [
|
|
@@ -14867,13 +14661,17 @@
|
|
|
14867
14661
|
"types": [
|
|
14868
14662
|
"array"
|
|
14869
14663
|
],
|
|
14870
|
-
"description": "leftActions prop"
|
|
14664
|
+
"description": "leftActions prop",
|
|
14665
|
+
"kind": "event-list",
|
|
14666
|
+
"eventField": "event"
|
|
14871
14667
|
},
|
|
14872
14668
|
"rightActions": {
|
|
14873
14669
|
"types": [
|
|
14874
14670
|
"array"
|
|
14875
14671
|
],
|
|
14876
|
-
"description": "rightActions prop"
|
|
14672
|
+
"description": "rightActions prop",
|
|
14673
|
+
"kind": "event-list",
|
|
14674
|
+
"eventField": "event"
|
|
14877
14675
|
},
|
|
14878
14676
|
"threshold": {
|
|
14879
14677
|
"types": [
|