@middag-io/react 0.46.1 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist-lib/{FormField-M7Khc1eo.js → FormField-BGqAQLtX.js} +2155 -2130
  2. package/dist-lib/{FormPanelBlock-70gQ9d9K.js → FormPanelBlock-CGgA83Mu.js} +46 -45
  3. package/dist-lib/base/blocks/CardGridBlock.d.ts.map +1 -1
  4. package/dist-lib/base/blocks/DenseTableBlock.d.ts.map +1 -1
  5. package/dist-lib/base/blocks/DetailPanelBlock.d.ts.map +1 -1
  6. package/dist-lib/base/blocks/FormPanelBlock.d.ts.map +1 -1
  7. package/dist-lib/base/partials/ActionBar/index.d.ts.map +1 -1
  8. package/dist-lib/base/partials/FilterBar/index.d.ts.map +1 -1
  9. package/dist-lib/base/shell/BasicShell.d.ts +1 -1
  10. package/dist-lib/base/shell/BasicShell.js +1 -1
  11. package/dist-lib/base/shell/partials/InlineEditablePanel.d.ts.map +1 -1
  12. package/dist-lib/base/shell/partials/InlineEditablePanel.js +131 -127
  13. package/dist-lib/base/shell/partials/PageActionButton.d.ts.map +1 -1
  14. package/dist-lib/base/shell/partials/PageActionButton.js +1 -1
  15. package/dist-lib/base/theme/appearance.d.ts.map +1 -1
  16. package/dist-lib/base/theme/appearance.js +1 -1
  17. package/dist-lib/base/utils/action-intent.d.ts +3 -0
  18. package/dist-lib/base/utils/action-intent.d.ts.map +1 -0
  19. package/dist-lib/base/utils/action-intent.js +16 -0
  20. package/dist-lib/base/utils/icon-registry.d.ts +3 -2
  21. package/dist-lib/base/utils/icon-registry.d.ts.map +1 -1
  22. package/dist-lib/chunks/subpath-Bs35txZS.js +166 -0
  23. package/dist-lib/contracts/generated/index.d.ts +4 -4
  24. package/dist-lib/contracts/generated/index.d.ts.map +1 -1
  25. package/dist-lib/contracts/generated/schemas.d.ts +338 -243
  26. package/dist-lib/contracts/generated/schemas.d.ts.map +1 -1
  27. package/dist-lib/contracts/generated/types.d.ts +88 -52
  28. package/dist-lib/contracts/generated/types.d.ts.map +1 -1
  29. package/dist-lib/contracts/navigation.d.ts +5 -38
  30. package/dist-lib/contracts/navigation.d.ts.map +1 -1
  31. package/dist-lib/contracts/page-contract-schema.d.ts +11 -11
  32. package/dist-lib/contracts/shared-props.d.ts +10 -71
  33. package/dist-lib/contracts/shared-props.d.ts.map +1 -1
  34. package/dist-lib/engine/providers/auth.d.ts +2 -2
  35. package/dist-lib/engine/providers/auth.d.ts.map +1 -1
  36. package/dist-lib/engine/providers/flash.d.ts.map +1 -1
  37. package/dist-lib/index.d.ts +2 -2
  38. package/dist-lib/index.d.ts.map +1 -1
  39. package/dist-lib/middag-react.js +9837 -9773
  40. package/docs/public/schemas/ai-contract-manifest.json +9 -9
  41. package/docs/public/schemas/fragment.json +221 -89
  42. package/docs/public/schemas/manifest.json +4 -4
  43. package/docs/public/schemas/page-contract.json +221 -89
  44. package/docs/public/schemas/shared-props.json +2457 -114
  45. package/package.json +1 -1
  46. package/src/base/blocks/CardGridBlock.tsx +2 -1
  47. package/src/base/blocks/DenseTableBlock.tsx +2 -1
  48. package/src/base/blocks/DetailPanelBlock.tsx +2 -1
  49. package/src/base/blocks/FormPanelBlock.tsx +2 -1
  50. package/src/base/partials/ActionBar/index.tsx +3 -2
  51. package/src/base/partials/FilterBar/index.tsx +12 -1
  52. package/src/base/shell/BasicShell.tsx +7 -7
  53. package/src/base/shell/partials/InlineEditablePanel.tsx +14 -7
  54. package/src/base/shell/partials/PageActionButton.tsx +3 -1
  55. package/src/base/theme/appearance.ts +2 -1
  56. package/src/base/utils/action-intent.ts +22 -0
  57. package/src/base/utils/icon-registry.ts +3 -3
  58. package/src/contracts/generated/index.ts +4 -4
  59. package/src/contracts/generated/schemas.ts +85 -44
  60. package/src/contracts/generated/types.ts +107 -60
  61. package/src/contracts/navigation.ts +5 -52
  62. package/src/contracts/page-contract-schema.ts +2 -2
  63. package/src/contracts/shared-props.ts +10 -75
  64. package/src/engine/providers/auth.tsx +1 -1
  65. package/src/engine/providers/flash.tsx +0 -5
  66. package/dist-lib/chunks/subpath-Bh1MAmBT.js +0 -165
  67. package/docs/public/schemas/navigation.json +0 -72
@@ -1,118 +1,2461 @@
1
1
  {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://ui-docs.middag.io/schemas/shared-props.json",
4
- "title": "MIDDAG Shared Props Contract",
5
- "description": "TypeScript contract for Inertia shared props — data sent on every request from the PHP backend. Read via usePage<SharedProps>().props. Consumed by providers (AuthProvider, FlashProvider, ScopeProvider, I18nProvider).",
6
-
7
- "types": {
8
- "SharedPropsAuth": {
9
- "type": "object",
10
- "description": "Authenticated user data from Inertia shared props. Consumed by AuthProvider → useAuth() hook.",
11
- "properties": {
12
- "id": { "type": "number", "description": "Moodle user ID." },
13
- "name": { "type": "string", "description": "Full display name." },
14
- "email": { "type": "string", "description": "Email address." },
15
- "avatarUrl": { "type": "string", "description": "URL to user avatar (Moodle profile picture)." },
16
- "capabilities": {
17
- "type": "array",
18
- "items": { "type": "string" },
19
- "description": "Moodle capability strings the user holds in current context. Used by <Can>/<Cannot> gates."
20
- },
21
- "logoutUrl": {
22
- "type": "string",
23
- "description": "Host-signed logout URL (e.g. Moodle sesskey). Canonical location for the logout endpoint — the shell POSTs here to sign out. Present when the host injects it."
24
- }
25
- },
26
- "required": ["id", "name", "email", "capabilities"]
27
- },
28
- "SharedPropsTheme": {
29
- "type": "object",
30
- "description": "Theme and i18n data from Inertia shared props. Consumed by I18nProvider and theme system.",
31
- "properties": {
32
- "strings": {
33
- "type": "object",
34
- "additionalProperties": { "type": "string" },
35
- "description": "Pre-loaded i18n strings for the current page (key → translated string)."
36
- },
37
- "appearance": {
38
- "type": "string",
39
- "enum": ["system", "light", "dark"],
40
- "description": "Server-side appearance preference for cross-device sync."
41
- },
42
- "brandColor": {
43
- "type": "string",
44
- "description": "Moodle brand color (hex). Present when local_middag/inherit_theme_colors = ON."
45
- },
46
- "inherit": {
47
- "type": "boolean",
48
- "description": "Whether Moodle theme color inheritance is active."
49
- }
50
- }
51
- },
52
- "SharedPropsFlash": {
53
- "type": "object",
54
- "description": "Flash messages from backend. Consumed by FlashProvider → Sonner toasts.",
55
- "properties": {
56
- "success": { "type": "string", "description": "Success toast message." },
57
- "error": { "type": "string", "description": "Error toast message." },
58
- "info": { "type": "string", "description": "Info toast message." },
59
- "warning": { "type": "string", "description": "Warning toast message." },
60
- "toast": {
61
- "type": "object",
62
- "description": "Structured toast with custom duration.",
63
- "properties": {
64
- "severity": { "type": "string", "enum": ["success", "error", "warning", "info"] },
65
- "message": { "type": "string" },
66
- "duration": { "type": "number", "description": "Duration in ms." }
67
- },
68
- "required": ["severity", "message"]
69
- }
70
- }
71
- },
72
- "AdminTabItem": {
73
- "type": "object",
74
- "description": "A single tab in the admin tab bar rendered by ProductShell.",
75
- "properties": {
76
- "key": { "type": "string" },
77
- "label": { "type": "string" },
78
- "href": { "type": "string" }
79
- },
80
- "required": ["key", "label", "href"]
81
- },
82
- "AdminTabsProps": {
83
- "type": "object",
84
- "description": "Admin tab bar data. When present in shared props, ProductShell renders a tab bar between header and content.",
85
- "properties": {
86
- "active": { "type": "string", "description": "Key of the currently active tab." },
87
- "items": {
88
- "type": "array",
89
- "items": { "$ref": "#/types/AdminTabItem" }
90
- }
91
- },
92
- "required": ["active", "items"]
93
- },
94
- "SharedProps": {
95
- "type": "object",
96
- "description": "Full Inertia shared props shape. This is the top-level object available via usePage<SharedProps>().props on every page.",
97
- "properties": {
98
- "navigation": { "description": "Sidebar navigation tree. See navigation.json schema.", "type": "object" },
99
- "auth": {
100
- "description": "Authenticated user. Null or absent on guest-facing pages (e.g. login); AuthProvider tolerates its absence (user null, isAuthenticated false, every capability check false).",
101
- "oneOf": [{ "$ref": "#/types/SharedPropsAuth" }, { "type": "null" }]
102
- },
103
- "theme": { "$ref": "#/types/SharedPropsTheme" },
104
- "flash": { "$ref": "#/types/SharedPropsFlash" },
105
- "locale": { "type": "string", "description": "Effective locale string (e.g. 'pt-BR', 'en')." },
106
- "version": { "type": "string", "description": "MIDDAG version string (e.g. '5.0.0')." },
107
- "scope": {
108
- "type": "object",
109
- "additionalProperties": true,
110
- "description": "Global scope data from global_scope_manager. Extensions add their keys via scope::set()."
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://ui-docs.middag.io/schemas/shared-props.json",
4
+ "title": "MIDDAG Shared Props",
5
+ "description": "Wire contract for the shared props sent with every page: auth, theme, flash, errors, csrf_token, locale, scope and navigation. The root is open so hosts and products can add their own keys. Generated from middag-io/ui PHP value objects (jsonSchema()).",
6
+ "x-contract-version": "2",
7
+ "$ref": "#/$defs/SharedProps",
8
+ "$defs": {
9
+ "PageContract": {
10
+ "type": "object",
11
+ "required": [
12
+ "version",
13
+ "shell",
14
+ "page",
15
+ "layout"
16
+ ],
17
+ "properties": {
18
+ "version": {
19
+ "const": "2"
20
+ },
21
+ "shell": {
22
+ "type": "string"
23
+ },
24
+ "page": {
25
+ "$ref": "#/$defs/PageMeta"
26
+ },
27
+ "layout": {
28
+ "$ref": "#/$defs/LayoutDescriptor"
29
+ },
30
+ "resources": {
31
+ "$ref": "#/$defs/PageResources"
32
+ },
33
+ "notifications": {
34
+ "type": "array",
35
+ "items": {
36
+ "$ref": "#/$defs/Notification"
37
+ }
38
+ },
39
+ "entities": {
40
+ "type": "object",
41
+ "additionalProperties": {
42
+ "type": "string"
43
+ }
44
+ }
45
+ },
46
+ "additionalProperties": false
47
+ },
48
+ "Fragment": {
49
+ "type": "object",
50
+ "required": [
51
+ "version",
52
+ "kind"
53
+ ],
54
+ "properties": {
55
+ "version": {
56
+ "const": "2"
57
+ },
58
+ "kind": {
59
+ "$ref": "#/$defs/FragmentKind"
60
+ },
61
+ "payload": {
62
+ "type": "object",
63
+ "additionalProperties": true
64
+ },
65
+ "notifications": {
66
+ "type": "array",
67
+ "items": {
68
+ "$ref": "#/$defs/Notification"
69
+ }
70
+ },
71
+ "resources": {
72
+ "$ref": "#/$defs/ResourcePatch"
73
+ },
74
+ "customType": {
75
+ "type": "string"
76
+ }
77
+ },
78
+ "additionalProperties": false
79
+ },
80
+ "Label": {
81
+ "oneOf": [
82
+ {
83
+ "type": "string"
84
+ },
85
+ {
86
+ "$ref": "#/$defs/Translatable"
87
+ }
88
+ ]
89
+ },
90
+ "Translatable": {
91
+ "type": "object",
92
+ "required": [
93
+ "key",
94
+ "domain"
95
+ ],
96
+ "properties": {
97
+ "key": {
98
+ "type": "string"
99
+ },
100
+ "domain": {
101
+ "type": "string"
102
+ },
103
+ "params": {
104
+ "type": "object",
105
+ "additionalProperties": true
106
+ }
107
+ },
108
+ "additionalProperties": false
109
+ },
110
+ "PageMeta": {
111
+ "type": "object",
112
+ "required": [
113
+ "key",
114
+ "title"
115
+ ],
116
+ "properties": {
117
+ "key": {
118
+ "type": "string"
119
+ },
120
+ "title": {
121
+ "$ref": "#/$defs/Label"
122
+ },
123
+ "subtitle": {
124
+ "$ref": "#/$defs/Label"
125
+ },
126
+ "breadcrumbs": {
127
+ "type": "array",
128
+ "items": {
129
+ "$ref": "#/$defs/Breadcrumb"
130
+ }
131
+ },
132
+ "actions": {
133
+ "type": "array",
134
+ "items": {
135
+ "$ref": "#/$defs/Action"
136
+ }
137
+ }
138
+ },
139
+ "additionalProperties": false
140
+ },
141
+ "LayoutDescriptor": {
142
+ "type": "object",
143
+ "required": [
144
+ "template",
145
+ "regions"
146
+ ],
147
+ "properties": {
148
+ "template": {
149
+ "type": "string"
150
+ },
151
+ "regions": {
152
+ "oneOf": [
153
+ {
154
+ "type": "object",
155
+ "additionalProperties": {
156
+ "type": "array",
157
+ "items": {
158
+ "$ref": "#/$defs/BlockDescriptor"
159
+ }
160
+ }
161
+ },
162
+ {
163
+ "type": "array",
164
+ "maxItems": 0
165
+ }
166
+ ]
167
+ },
168
+ "meta": {
169
+ "type": "object",
170
+ "additionalProperties": true
171
+ }
172
+ },
173
+ "additionalProperties": false
174
+ },
175
+ "BlockDescriptor": {
176
+ "type": "object",
177
+ "required": [
178
+ "type",
179
+ "key",
180
+ "data"
181
+ ],
182
+ "properties": {
183
+ "type": {
184
+ "type": "string"
185
+ },
186
+ "key": {
187
+ "type": "string"
188
+ },
189
+ "data": {
190
+ "oneOf": [
191
+ {
192
+ "type": "object",
193
+ "additionalProperties": true
194
+ },
195
+ {
196
+ "type": "array",
197
+ "maxItems": 0
198
+ }
199
+ ]
200
+ },
201
+ "variant": {
202
+ "type": "string"
203
+ },
204
+ "title": {
205
+ "$ref": "#/$defs/Label"
206
+ },
207
+ "subtitle": {
208
+ "$ref": "#/$defs/Label"
209
+ },
210
+ "actions": {
211
+ "type": "array",
212
+ "items": {
213
+ "$ref": "#/$defs/Action"
214
+ }
215
+ },
216
+ "meta": {
217
+ "type": "object",
218
+ "additionalProperties": true
219
+ },
220
+ "poll": {
221
+ "$ref": "#/$defs/PollConfig"
222
+ },
223
+ "deferred": {
224
+ "type": "boolean"
225
+ },
226
+ "remember": {
227
+ "type": "boolean"
228
+ }
229
+ },
230
+ "additionalProperties": false
231
+ },
232
+ "Breadcrumb": {
233
+ "type": "object",
234
+ "required": [
235
+ "label"
236
+ ],
237
+ "properties": {
238
+ "label": {
239
+ "$ref": "#/$defs/Label"
240
+ },
241
+ "href": {
242
+ "type": "string"
243
+ },
244
+ "external": {
245
+ "const": true
246
+ }
247
+ },
248
+ "additionalProperties": false
249
+ },
250
+ "InspectorDescriptor": {
251
+ "type": "object",
252
+ "required": [
253
+ "endpoint",
254
+ "width"
255
+ ],
256
+ "properties": {
257
+ "endpoint": {
258
+ "type": "string"
259
+ },
260
+ "width": {
261
+ "type": "integer"
262
+ },
263
+ "poll": {
264
+ "$ref": "#/$defs/PollConfig"
265
+ }
266
+ },
267
+ "additionalProperties": false
268
+ },
269
+ "EditablePanelDescriptor": {
270
+ "type": "object",
271
+ "required": [
272
+ "endpoint",
273
+ "submitMethod",
274
+ "width"
275
+ ],
276
+ "properties": {
277
+ "endpoint": {
278
+ "type": "string"
279
+ },
280
+ "submitEndpoint": {
281
+ "type": "string"
282
+ },
283
+ "submitMethod": {
284
+ "enum": [
285
+ "post",
286
+ "put",
287
+ "patch"
288
+ ]
289
+ },
290
+ "width": {
291
+ "type": "integer"
292
+ }
293
+ },
294
+ "additionalProperties": false
295
+ },
296
+ "Action": {
297
+ "type": "object",
298
+ "required": [
299
+ "id",
300
+ "label",
301
+ "target",
302
+ "intent"
303
+ ],
304
+ "properties": {
305
+ "id": {
306
+ "type": "string"
307
+ },
308
+ "label": {
309
+ "$ref": "#/$defs/Label"
310
+ },
311
+ "target": {
312
+ "$ref": "#/$defs/ActionTarget"
313
+ },
314
+ "intent": {
315
+ "$ref": "#/$defs/ActionIntent"
316
+ },
317
+ "icon": {
318
+ "type": "string"
319
+ },
320
+ "confirmation": {
321
+ "$ref": "#/$defs/Confirmation"
322
+ },
323
+ "capability": {
324
+ "type": "string"
325
+ },
326
+ "disabled": {
327
+ "const": true
328
+ },
329
+ "loading": {
330
+ "const": true
331
+ }
332
+ },
333
+ "additionalProperties": false
334
+ },
335
+ "ActionTarget": {
336
+ "oneOf": [
337
+ {
338
+ "type": "object",
339
+ "required": [
340
+ "kind",
341
+ "href"
342
+ ],
343
+ "properties": {
344
+ "kind": {
345
+ "const": "link"
346
+ },
347
+ "href": {
348
+ "type": "string"
349
+ },
350
+ "external": {
351
+ "const": true
352
+ }
353
+ },
354
+ "additionalProperties": false
355
+ },
356
+ {
357
+ "type": "object",
358
+ "required": [
359
+ "kind",
360
+ "route"
361
+ ],
362
+ "properties": {
363
+ "kind": {
364
+ "const": "route"
365
+ },
366
+ "route": {
367
+ "type": "string"
368
+ },
369
+ "params": {
370
+ "type": "object",
371
+ "additionalProperties": true
372
+ }
373
+ },
374
+ "additionalProperties": false
375
+ },
376
+ {
377
+ "type": "object",
378
+ "required": [
379
+ "kind",
380
+ "endpoint",
381
+ "method"
382
+ ],
383
+ "properties": {
384
+ "kind": {
385
+ "const": "request"
386
+ },
387
+ "endpoint": {
388
+ "type": "string"
389
+ },
390
+ "method": {
391
+ "$ref": "#/$defs/HttpMethod"
392
+ }
393
+ },
394
+ "additionalProperties": false
395
+ },
396
+ {
397
+ "type": "object",
398
+ "required": [
399
+ "kind"
400
+ ],
401
+ "properties": {
402
+ "kind": {
403
+ "const": "panel"
404
+ }
405
+ },
406
+ "additionalProperties": false
407
+ }
408
+ ]
409
+ },
410
+ "Confirmation": {
411
+ "type": "object",
412
+ "required": [
413
+ "title",
414
+ "message",
415
+ "variant"
416
+ ],
417
+ "properties": {
418
+ "title": {
419
+ "$ref": "#/$defs/Label"
420
+ },
421
+ "message": {
422
+ "$ref": "#/$defs/Label"
423
+ },
424
+ "variant": {
425
+ "type": "string"
426
+ },
427
+ "confirmLabel": {
428
+ "$ref": "#/$defs/Label"
429
+ },
430
+ "cancelLabel": {
431
+ "$ref": "#/$defs/Label"
432
+ }
433
+ },
434
+ "additionalProperties": false
435
+ },
436
+ "Notification": {
437
+ "type": "object",
438
+ "required": [
439
+ "level",
440
+ "message",
441
+ "dismissible"
442
+ ],
443
+ "properties": {
444
+ "level": {
445
+ "$ref": "#/$defs/NotificationLevel"
446
+ },
447
+ "message": {
448
+ "$ref": "#/$defs/Label"
449
+ },
450
+ "dismissible": {
451
+ "type": "boolean"
452
+ },
453
+ "title": {
454
+ "$ref": "#/$defs/Label"
455
+ },
456
+ "timeout": {
457
+ "type": "integer"
458
+ },
459
+ "action": {
460
+ "$ref": "#/$defs/Action"
461
+ }
462
+ },
463
+ "additionalProperties": false
464
+ },
465
+ "PageResources": {
466
+ "type": "object",
467
+ "required": [
468
+ "featureFlags"
469
+ ],
470
+ "properties": {
471
+ "featureFlags": {
472
+ "type": "object",
473
+ "additionalProperties": {
474
+ "type": "boolean"
475
+ }
476
+ },
477
+ "branding": {
478
+ "$ref": "#/$defs/Branding"
479
+ }
480
+ },
481
+ "additionalProperties": false
482
+ },
483
+ "Identity": {
484
+ "type": "object",
485
+ "required": [
486
+ "id",
487
+ "name"
488
+ ],
489
+ "properties": {
490
+ "id": {
491
+ "type": "string"
492
+ },
493
+ "name": {
494
+ "type": "string"
495
+ },
496
+ "email": {
497
+ "type": "string"
498
+ },
499
+ "avatarUrl": {
500
+ "type": "string"
501
+ },
502
+ "roles": {
503
+ "type": "array",
504
+ "items": {
505
+ "type": "string"
506
+ }
507
+ }
508
+ },
509
+ "additionalProperties": false
510
+ },
511
+ "Branding": {
512
+ "type": "object",
513
+ "required": [
514
+ "appName"
515
+ ],
516
+ "properties": {
517
+ "appName": {
518
+ "type": "string"
519
+ },
520
+ "logoUrl": {
521
+ "type": "string"
522
+ },
523
+ "logoCompactUrl": {
524
+ "type": "string"
525
+ }
526
+ },
527
+ "additionalProperties": false
528
+ },
529
+ "NavigationNode": {
530
+ "type": "object",
531
+ "required": [
532
+ "key",
533
+ "label"
534
+ ],
535
+ "properties": {
536
+ "key": {
537
+ "type": "string"
538
+ },
539
+ "label": {
540
+ "$ref": "#/$defs/Label"
541
+ },
542
+ "icon": {
543
+ "type": "string"
544
+ },
545
+ "href": {
546
+ "type": "string"
547
+ },
548
+ "badge": {
549
+ "type": "string"
550
+ },
551
+ "entityType": {
552
+ "type": "string"
553
+ },
554
+ "badgeVariant": {
555
+ "type": "string"
556
+ },
557
+ "statusColor": {
558
+ "type": "string"
559
+ },
560
+ "target": {
561
+ "type": "string"
562
+ },
563
+ "active": {
564
+ "const": true
565
+ },
566
+ "drilldown": {
567
+ "const": true
568
+ },
569
+ "collapsible": {
570
+ "const": true
571
+ },
572
+ "defaultOpen": {
573
+ "const": true
574
+ },
575
+ "children": {
576
+ "type": "array",
577
+ "items": {
578
+ "$ref": "#/$defs/NavigationNode"
579
+ }
580
+ }
581
+ },
582
+ "additionalProperties": false
583
+ },
584
+ "NavigationTree": {
585
+ "type": "object",
586
+ "required": [
587
+ "tree",
588
+ "activeKey",
589
+ "footer"
590
+ ],
591
+ "properties": {
592
+ "tree": {
593
+ "type": "array",
594
+ "items": {
595
+ "$ref": "#/$defs/NavigationNode"
596
+ }
597
+ },
598
+ "activeKey": {
599
+ "type": "string"
600
+ },
601
+ "footer": {
602
+ "type": "array",
603
+ "items": {
604
+ "$ref": "#/$defs/NavigationNode"
605
+ }
606
+ }
607
+ },
608
+ "additionalProperties": false
609
+ },
610
+ "SharedProps": {
611
+ "type": "object",
612
+ "properties": {
613
+ "auth": {
614
+ "$ref": "#/$defs/SharedAuth"
615
+ },
616
+ "theme": {
617
+ "$ref": "#/$defs/SharedTheme"
618
+ },
619
+ "flash": {
620
+ "$ref": "#/$defs/FlashMessages"
621
+ },
622
+ "errors": {
623
+ "$ref": "#/$defs/FormErrors"
624
+ },
625
+ "csrf_token": {
626
+ "type": "string"
627
+ },
628
+ "locale": {
629
+ "type": "string"
630
+ },
631
+ "scope": {
632
+ "type": "object",
633
+ "additionalProperties": true
634
+ },
635
+ "navigation": {
636
+ "$ref": "#/$defs/NavigationTree"
637
+ }
638
+ },
639
+ "additionalProperties": true
640
+ },
641
+ "SharedAuth": {
642
+ "type": "object",
643
+ "required": [
644
+ "id",
645
+ "name",
646
+ "capabilities"
647
+ ],
648
+ "properties": {
649
+ "id": {
650
+ "type": "string"
651
+ },
652
+ "name": {
653
+ "type": "string"
654
+ },
655
+ "email": {
656
+ "type": "string"
657
+ },
658
+ "avatarUrl": {
659
+ "type": "string"
660
+ },
661
+ "roles": {
662
+ "type": "array",
663
+ "items": {
664
+ "type": "string"
665
+ }
666
+ },
667
+ "capabilities": {
668
+ "type": "array",
669
+ "items": {
670
+ "type": "string"
671
+ }
672
+ },
673
+ "logoutUrl": {
674
+ "type": "string"
675
+ }
676
+ },
677
+ "additionalProperties": false
678
+ },
679
+ "SharedTheme": {
680
+ "type": "object",
681
+ "properties": {
682
+ "appearance": {
683
+ "$ref": "#/$defs/ThemeMode"
684
+ },
685
+ "strings": {
686
+ "type": "object",
687
+ "additionalProperties": {
688
+ "type": "string"
689
+ }
690
+ }
691
+ },
692
+ "additionalProperties": false
693
+ },
694
+ "FlashMessages": {
695
+ "type": "object",
696
+ "properties": {
697
+ "success": {
698
+ "type": "string"
699
+ },
700
+ "error": {
701
+ "type": "string"
702
+ },
703
+ "info": {
704
+ "type": "string"
705
+ },
706
+ "warning": {
707
+ "type": "string"
708
+ }
709
+ },
710
+ "additionalProperties": false
711
+ },
712
+ "TableConfig": {
713
+ "type": "object",
714
+ "required": [
715
+ "columns",
716
+ "options"
717
+ ],
718
+ "properties": {
719
+ "columns": {
720
+ "type": "array",
721
+ "items": {
722
+ "$ref": "#/$defs/Column"
723
+ }
724
+ },
725
+ "filters": {
726
+ "type": "array",
727
+ "items": {
728
+ "$ref": "#/$defs/FilterDefinition"
729
+ }
730
+ },
731
+ "rowActions": {
732
+ "type": "array",
733
+ "items": {
734
+ "$ref": "#/$defs/Action"
735
+ }
736
+ },
737
+ "bulkActions": {
738
+ "type": "array",
739
+ "items": {
740
+ "$ref": "#/$defs/Action"
741
+ }
742
+ },
743
+ "options": {
744
+ "$ref": "#/$defs/TableDisplayOptions"
745
+ }
746
+ },
747
+ "additionalProperties": false
748
+ },
749
+ "TableDisplayOptions": {
750
+ "type": "object",
751
+ "required": [
752
+ "perPage",
753
+ "sortDirection",
754
+ "selectable",
755
+ "searchable"
756
+ ],
757
+ "properties": {
758
+ "perPage": {
759
+ "type": "integer"
760
+ },
761
+ "sortDirection": {
762
+ "type": "string"
763
+ },
764
+ "selectable": {
765
+ "type": "boolean"
766
+ },
767
+ "searchable": {
768
+ "type": "boolean"
769
+ },
770
+ "sortColumn": {
771
+ "type": "string"
772
+ }
773
+ },
774
+ "additionalProperties": false
775
+ },
776
+ "Column": {
777
+ "type": "object",
778
+ "required": [
779
+ "key",
780
+ "label",
781
+ "sortable",
782
+ "searchable",
783
+ "format"
784
+ ],
785
+ "properties": {
786
+ "key": {
787
+ "type": "string"
788
+ },
789
+ "label": {
790
+ "$ref": "#/$defs/Label"
791
+ },
792
+ "sortable": {
793
+ "type": "boolean"
794
+ },
795
+ "searchable": {
796
+ "type": "boolean"
797
+ },
798
+ "format": {
799
+ "$ref": "#/$defs/ValueFormat"
800
+ },
801
+ "formatOptions": {
802
+ "type": "object",
803
+ "additionalProperties": true
804
+ },
805
+ "options": {
806
+ "type": "object",
807
+ "additionalProperties": true
808
+ },
809
+ "variant": {
810
+ "$ref": "#/$defs/ColumnVariant"
811
+ }
812
+ },
813
+ "additionalProperties": false
814
+ },
815
+ "FilterDefinition": {
816
+ "type": "object",
817
+ "required": [
818
+ "key",
819
+ "label",
820
+ "type"
821
+ ],
822
+ "properties": {
823
+ "key": {
824
+ "type": "string"
825
+ },
826
+ "label": {
827
+ "$ref": "#/$defs/Label"
828
+ },
829
+ "type": {
830
+ "$ref": "#/$defs/FilterType"
831
+ },
832
+ "options": {
833
+ "type": "array",
834
+ "items": {
835
+ "type": "object",
836
+ "required": [
837
+ "value",
838
+ "label"
839
+ ],
840
+ "properties": {
841
+ "value": true,
842
+ "label": {
843
+ "$ref": "#/$defs/Label"
844
+ }
845
+ },
846
+ "additionalProperties": false
847
+ }
848
+ },
849
+ "placeholder": {
850
+ "$ref": "#/$defs/Label"
851
+ },
852
+ "default": true
853
+ },
854
+ "additionalProperties": false
855
+ },
856
+ "Pagination": {
857
+ "type": "object",
858
+ "required": [
859
+ "page",
860
+ "perPage",
861
+ "total",
862
+ "lastPage"
863
+ ],
864
+ "properties": {
865
+ "page": {
866
+ "type": "integer"
867
+ },
868
+ "perPage": {
869
+ "type": "integer"
870
+ },
871
+ "total": {
872
+ "type": "integer"
873
+ },
874
+ "lastPage": {
875
+ "type": "integer"
876
+ }
877
+ },
878
+ "additionalProperties": false
879
+ },
880
+ "PollConfig": {
881
+ "type": "object",
882
+ "required": [
883
+ "endpoint",
884
+ "intervalMs",
885
+ "pauseWhenHidden"
886
+ ],
887
+ "properties": {
888
+ "endpoint": {
889
+ "type": "string"
890
+ },
891
+ "intervalMs": {
892
+ "type": "integer"
893
+ },
894
+ "pauseWhenHidden": {
895
+ "type": "boolean"
896
+ },
897
+ "stopAfterMs": {
898
+ "type": "integer"
899
+ }
900
+ },
901
+ "additionalProperties": false
902
+ },
903
+ "ChartSeries": {
904
+ "type": "object",
905
+ "required": [
906
+ "key",
907
+ "label"
908
+ ],
909
+ "properties": {
910
+ "key": {
911
+ "type": "string"
912
+ },
913
+ "label": {
914
+ "type": "string"
915
+ },
916
+ "color": {
917
+ "type": "string"
918
+ }
919
+ },
920
+ "additionalProperties": false
921
+ },
922
+ "Tab": {
923
+ "type": "object",
924
+ "required": [
925
+ "id",
926
+ "label",
927
+ "blocks"
928
+ ],
929
+ "properties": {
930
+ "id": {
931
+ "type": "string"
932
+ },
933
+ "label": {
934
+ "$ref": "#/$defs/Label"
935
+ },
936
+ "blocks": {
937
+ "type": "array",
938
+ "items": {
939
+ "$ref": "#/$defs/BlockDescriptor"
940
+ }
941
+ },
942
+ "disabled": {
943
+ "type": "boolean"
944
+ }
945
+ },
946
+ "additionalProperties": false
947
+ },
948
+ "FormStep": {
949
+ "type": "object",
950
+ "required": [
951
+ "id",
952
+ "label",
953
+ "fields"
954
+ ],
955
+ "properties": {
956
+ "id": {
957
+ "type": "string"
958
+ },
959
+ "label": {
960
+ "$ref": "#/$defs/Label"
961
+ },
962
+ "fields": {
963
+ "type": "array",
964
+ "items": {
965
+ "type": "string"
966
+ }
967
+ },
968
+ "help": {
969
+ "$ref": "#/$defs/Label"
970
+ }
971
+ },
972
+ "additionalProperties": false
973
+ },
974
+ "FieldConstraints": {
975
+ "oneOf": [
976
+ {
977
+ "type": "object",
978
+ "properties": {
979
+ "required": {
980
+ "const": true
981
+ },
982
+ "min": {
983
+ "type": "integer"
984
+ },
985
+ "max": {
986
+ "type": "integer"
987
+ },
988
+ "minLength": {
989
+ "type": "integer"
990
+ },
991
+ "maxLength": {
992
+ "type": "integer"
993
+ },
994
+ "pattern": {
995
+ "type": "string"
996
+ },
997
+ "step": {
998
+ "type": "string"
999
+ }
1000
+ },
1001
+ "additionalProperties": false
1002
+ },
1003
+ {
1004
+ "type": "array",
1005
+ "maxItems": 0
1006
+ }
1007
+ ]
1008
+ },
1009
+ "FileValue": {
1010
+ "oneOf": [
1011
+ {
1012
+ "type": "string"
1013
+ },
1014
+ {
1015
+ "type": "object",
1016
+ "properties": {
1017
+ "url": {
1018
+ "type": "string"
1019
+ },
1020
+ "name": {
1021
+ "type": "string"
1022
+ },
1023
+ "size": {
1024
+ "type": "integer"
1025
+ },
1026
+ "type": {
1027
+ "type": "string"
1028
+ },
1029
+ "id": {
1030
+ "type": "string"
1031
+ },
1032
+ "uploadToken": {
1033
+ "type": "string"
1034
+ }
1035
+ },
1036
+ "required": [
1037
+ "url"
1038
+ ],
1039
+ "additionalProperties": false
1040
+ }
1041
+ ]
1042
+ },
1043
+ "FieldError": {
1044
+ "oneOf": [
1045
+ {
1046
+ "type": "string"
1047
+ },
1048
+ {
1049
+ "type": "array",
1050
+ "items": {
1051
+ "type": "string"
1052
+ }
1053
+ }
1054
+ ]
1055
+ },
1056
+ "FormErrors": {
1057
+ "type": "object",
1058
+ "description": "Validation errors keyed by field name. The reserved key \"_\" carries form-level errors; dotted keys target nested fields.",
1059
+ "additionalProperties": {
1060
+ "$ref": "#/$defs/FieldError"
1061
+ }
1062
+ },
1063
+ "FormSchemaNode": {
1064
+ "oneOf": [
1065
+ {
1066
+ "$ref": "#/$defs/FormFieldNode"
1067
+ },
1068
+ {
1069
+ "$ref": "#/$defs/FormSectionNode"
1070
+ },
1071
+ {
1072
+ "$ref": "#/$defs/FormGroupNode"
1073
+ },
1074
+ {
1075
+ "$ref": "#/$defs/FormHeaderNode"
1076
+ }
1077
+ ]
1078
+ },
1079
+ "FormFieldNode": {
1080
+ "oneOf": [
1081
+ {
1082
+ "type": "object",
1083
+ "required": [
1084
+ "kind",
1085
+ "key",
1086
+ "component",
1087
+ "props"
1088
+ ],
1089
+ "properties": {
1090
+ "kind": {
1091
+ "const": "field"
1092
+ },
1093
+ "key": {
1094
+ "type": "string"
1095
+ },
1096
+ "component": {
1097
+ "enum": [
1098
+ "text",
1099
+ "email",
1100
+ "url",
1101
+ "password",
1102
+ "color"
1103
+ ]
1104
+ },
1105
+ "props": {
1106
+ "$ref": "#/$defs/FieldPropsBase"
1107
+ }
1108
+ },
1109
+ "additionalProperties": false
1110
+ },
1111
+ {
1112
+ "type": "object",
1113
+ "required": [
1114
+ "kind",
1115
+ "key",
1116
+ "component",
1117
+ "props"
1118
+ ],
1119
+ "properties": {
1120
+ "kind": {
1121
+ "const": "field"
1122
+ },
1123
+ "key": {
1124
+ "type": "string"
1125
+ },
1126
+ "component": {
1127
+ "const": "textarea"
1128
+ },
1129
+ "props": {
1130
+ "allOf": [
1131
+ {
1132
+ "$ref": "#/$defs/FieldPropsBase"
1133
+ },
1134
+ {
1135
+ "type": "object",
1136
+ "properties": {
1137
+ "rows": {
1138
+ "type": "integer"
1139
+ }
1140
+ }
1141
+ }
1142
+ ]
1143
+ }
1144
+ },
1145
+ "additionalProperties": false
1146
+ },
1147
+ {
1148
+ "type": "object",
1149
+ "required": [
1150
+ "kind",
1151
+ "key",
1152
+ "component",
1153
+ "props"
1154
+ ],
1155
+ "properties": {
1156
+ "kind": {
1157
+ "const": "field"
1158
+ },
1159
+ "key": {
1160
+ "type": "string"
1161
+ },
1162
+ "component": {
1163
+ "const": "otp"
1164
+ },
1165
+ "props": {
1166
+ "allOf": [
1167
+ {
1168
+ "$ref": "#/$defs/FieldPropsBase"
1169
+ },
1170
+ {
1171
+ "type": "object",
1172
+ "properties": {
1173
+ "maxLength": {
1174
+ "type": "integer"
1175
+ },
1176
+ "pattern": {
1177
+ "enum": [
1178
+ "digits",
1179
+ "alphanumeric"
1180
+ ]
1181
+ },
1182
+ "groupSize": {
1183
+ "type": "integer"
1184
+ }
1185
+ }
1186
+ }
1187
+ ]
1188
+ }
1189
+ },
1190
+ "additionalProperties": false
1191
+ },
1192
+ {
1193
+ "type": "object",
1194
+ "required": [
1195
+ "kind",
1196
+ "key",
1197
+ "component",
1198
+ "props"
1199
+ ],
1200
+ "properties": {
1201
+ "kind": {
1202
+ "const": "field"
1203
+ },
1204
+ "key": {
1205
+ "type": "string"
1206
+ },
1207
+ "component": {
1208
+ "enum": [
1209
+ "int",
1210
+ "float"
1211
+ ]
1212
+ },
1213
+ "props": {
1214
+ "allOf": [
1215
+ {
1216
+ "$ref": "#/$defs/FieldPropsBase"
1217
+ },
1218
+ {
1219
+ "type": "object",
1220
+ "properties": {
1221
+ "min": {
1222
+ "type": "number"
1223
+ },
1224
+ "max": {
1225
+ "type": "number"
1226
+ },
1227
+ "step": {
1228
+ "type": "number"
1229
+ }
1230
+ }
1231
+ }
1232
+ ]
1233
+ }
1234
+ },
1235
+ "additionalProperties": false
1236
+ },
1237
+ {
1238
+ "type": "object",
1239
+ "required": [
1240
+ "kind",
1241
+ "key",
1242
+ "component",
1243
+ "props"
1244
+ ],
1245
+ "properties": {
1246
+ "kind": {
1247
+ "const": "field"
1248
+ },
1249
+ "key": {
1250
+ "type": "string"
1251
+ },
1252
+ "component": {
1253
+ "const": "slider"
1254
+ },
1255
+ "props": {
1256
+ "allOf": [
1257
+ {
1258
+ "$ref": "#/$defs/FieldPropsBase"
1259
+ },
1260
+ {
1261
+ "type": "object",
1262
+ "properties": {
1263
+ "min": {
1264
+ "type": "number"
1265
+ },
1266
+ "max": {
1267
+ "type": "number"
1268
+ },
1269
+ "step": {
1270
+ "type": "number"
1271
+ },
1272
+ "multiple": {
1273
+ "type": "boolean"
1274
+ }
1275
+ }
1276
+ }
1277
+ ]
1278
+ }
1279
+ },
1280
+ "additionalProperties": false
1281
+ },
1282
+ {
1283
+ "type": "object",
1284
+ "required": [
1285
+ "kind",
1286
+ "key",
1287
+ "component",
1288
+ "props"
1289
+ ],
1290
+ "properties": {
1291
+ "kind": {
1292
+ "const": "field"
1293
+ },
1294
+ "key": {
1295
+ "type": "string"
1296
+ },
1297
+ "component": {
1298
+ "enum": [
1299
+ "select",
1300
+ "radio"
1301
+ ]
1302
+ },
1303
+ "props": {
1304
+ "$ref": "#/$defs/OptionFieldProps"
1305
+ }
1306
+ },
1307
+ "additionalProperties": false
1308
+ },
1309
+ {
1310
+ "type": "object",
1311
+ "required": [
1312
+ "kind",
1313
+ "key",
1314
+ "component",
1315
+ "props"
1316
+ ],
1317
+ "properties": {
1318
+ "kind": {
1319
+ "const": "field"
1320
+ },
1321
+ "key": {
1322
+ "type": "string"
1323
+ },
1324
+ "component": {
1325
+ "const": "multiselect"
1326
+ },
1327
+ "props": {
1328
+ "$ref": "#/$defs/OptionFieldProps"
1329
+ }
1330
+ },
1331
+ "additionalProperties": false
1332
+ },
1333
+ {
1334
+ "type": "object",
1335
+ "required": [
1336
+ "kind",
1337
+ "key",
1338
+ "component",
1339
+ "props"
1340
+ ],
1341
+ "properties": {
1342
+ "kind": {
1343
+ "const": "field"
1344
+ },
1345
+ "key": {
1346
+ "type": "string"
1347
+ },
1348
+ "component": {
1349
+ "const": "native_select"
1350
+ },
1351
+ "props": {
1352
+ "$ref": "#/$defs/OptionFieldProps"
1353
+ }
1354
+ },
1355
+ "additionalProperties": false
1356
+ },
1357
+ {
1358
+ "type": "object",
1359
+ "required": [
1360
+ "kind",
1361
+ "key",
1362
+ "component",
1363
+ "props"
1364
+ ],
1365
+ "properties": {
1366
+ "kind": {
1367
+ "const": "field"
1368
+ },
1369
+ "key": {
1370
+ "type": "string"
1371
+ },
1372
+ "component": {
1373
+ "enum": [
1374
+ "checkbox",
1375
+ "switch"
1376
+ ]
1377
+ },
1378
+ "props": {
1379
+ "$ref": "#/$defs/FieldPropsBase"
1380
+ }
1381
+ },
1382
+ "additionalProperties": false
1383
+ },
1384
+ {
1385
+ "type": "object",
1386
+ "required": [
1387
+ "kind",
1388
+ "key",
1389
+ "component",
1390
+ "props"
1391
+ ],
1392
+ "properties": {
1393
+ "kind": {
1394
+ "const": "field"
1395
+ },
1396
+ "key": {
1397
+ "type": "string"
1398
+ },
1399
+ "component": {
1400
+ "enum": [
1401
+ "date",
1402
+ "datetime"
1403
+ ]
1404
+ },
1405
+ "props": {
1406
+ "$ref": "#/$defs/FieldPropsBase"
1407
+ }
1408
+ },
1409
+ "additionalProperties": false
1410
+ },
1411
+ {
1412
+ "type": "object",
1413
+ "required": [
1414
+ "kind",
1415
+ "key",
1416
+ "component",
1417
+ "props"
1418
+ ],
1419
+ "properties": {
1420
+ "kind": {
1421
+ "const": "field"
1422
+ },
1423
+ "key": {
1424
+ "type": "string"
1425
+ },
1426
+ "component": {
1427
+ "const": "duration"
1428
+ },
1429
+ "props": {
1430
+ "$ref": "#/$defs/FieldPropsBase"
1431
+ }
1432
+ },
1433
+ "additionalProperties": false
1434
+ },
1435
+ {
1436
+ "type": "object",
1437
+ "required": [
1438
+ "kind",
1439
+ "key",
1440
+ "component",
1441
+ "props"
1442
+ ],
1443
+ "properties": {
1444
+ "kind": {
1445
+ "const": "field"
1446
+ },
1447
+ "key": {
1448
+ "type": "string"
1449
+ },
1450
+ "component": {
1451
+ "const": "file"
1452
+ },
1453
+ "props": {
1454
+ "allOf": [
1455
+ {
1456
+ "$ref": "#/$defs/FieldPropsBase"
1457
+ },
1458
+ {
1459
+ "type": "object",
1460
+ "properties": {
1461
+ "accept": {
1462
+ "type": "string"
1463
+ },
1464
+ "multiple": {
1465
+ "type": "boolean"
1466
+ },
1467
+ "maxFiles": {
1468
+ "type": "integer"
1469
+ },
1470
+ "maxSize": {
1471
+ "type": "integer"
1472
+ }
1473
+ }
1474
+ }
1475
+ ]
1476
+ }
1477
+ },
1478
+ "additionalProperties": false
1479
+ },
1480
+ {
1481
+ "type": "object",
1482
+ "required": [
1483
+ "kind",
1484
+ "key",
1485
+ "component",
1486
+ "props"
1487
+ ],
1488
+ "properties": {
1489
+ "kind": {
1490
+ "const": "field"
1491
+ },
1492
+ "key": {
1493
+ "type": "string"
1494
+ },
1495
+ "component": {
1496
+ "const": "entity_picker"
1497
+ },
1498
+ "props": {
1499
+ "allOf": [
1500
+ {
1501
+ "$ref": "#/$defs/OptionFieldProps"
1502
+ },
1503
+ {
1504
+ "type": "object",
1505
+ "properties": {
1506
+ "autocompleteHref": {
1507
+ "type": "string"
1508
+ },
1509
+ "autocompleteMinChars": {
1510
+ "type": "integer"
1511
+ },
1512
+ "entityDisplayField": {
1513
+ "type": "string"
1514
+ },
1515
+ "entitySubtitleField": {
1516
+ "type": "string"
1517
+ },
1518
+ "entityAvatarField": {
1519
+ "type": "string"
1520
+ }
1521
+ }
1522
+ }
1523
+ ]
1524
+ }
1525
+ },
1526
+ "additionalProperties": false
1527
+ },
1528
+ {
1529
+ "type": "object",
1530
+ "required": [
1531
+ "kind",
1532
+ "key",
1533
+ "component",
1534
+ "props"
1535
+ ],
1536
+ "properties": {
1537
+ "kind": {
1538
+ "const": "field"
1539
+ },
1540
+ "key": {
1541
+ "type": "string"
1542
+ },
1543
+ "component": {
1544
+ "const": "phone"
1545
+ },
1546
+ "props": {
1547
+ "allOf": [
1548
+ {
1549
+ "$ref": "#/$defs/FieldPropsBase"
1550
+ },
1551
+ {
1552
+ "type": "object",
1553
+ "properties": {
1554
+ "defaultCountry": {
1555
+ "type": "string"
1556
+ },
1557
+ "fixedCountry": {
1558
+ "type": "boolean"
1559
+ }
1560
+ }
1561
+ }
1562
+ ]
1563
+ }
1564
+ },
1565
+ "additionalProperties": false
1566
+ },
1567
+ {
1568
+ "type": "object",
1569
+ "required": [
1570
+ "kind",
1571
+ "key",
1572
+ "component",
1573
+ "props"
1574
+ ],
1575
+ "properties": {
1576
+ "kind": {
1577
+ "const": "field"
1578
+ },
1579
+ "key": {
1580
+ "type": "string"
1581
+ },
1582
+ "component": {
1583
+ "const": "document"
1584
+ },
1585
+ "props": {
1586
+ "allOf": [
1587
+ {
1588
+ "$ref": "#/$defs/FieldPropsBase"
1589
+ },
1590
+ {
1591
+ "type": "object",
1592
+ "properties": {
1593
+ "documentType": {
1594
+ "type": "string"
1595
+ },
1596
+ "documentScope": {
1597
+ "enum": [
1598
+ "person",
1599
+ "company",
1600
+ "any"
1601
+ ]
1602
+ },
1603
+ "documentMasks": {
1604
+ "type": "object",
1605
+ "additionalProperties": {
1606
+ "$ref": "#/$defs/FormFieldDocumentMask"
1607
+ }
1608
+ }
1609
+ }
1610
+ }
1611
+ ]
1612
+ }
1613
+ },
1614
+ "additionalProperties": false
1615
+ },
1616
+ {
1617
+ "type": "object",
1618
+ "required": [
1619
+ "kind",
1620
+ "key",
1621
+ "component",
1622
+ "props"
1623
+ ],
1624
+ "properties": {
1625
+ "kind": {
1626
+ "const": "field"
1627
+ },
1628
+ "key": {
1629
+ "type": "string"
1630
+ },
1631
+ "component": {
1632
+ "const": "currency"
1633
+ },
1634
+ "props": {
1635
+ "allOf": [
1636
+ {
1637
+ "$ref": "#/$defs/FieldPropsBase"
1638
+ },
1639
+ {
1640
+ "type": "object",
1641
+ "properties": {
1642
+ "currency": {
1643
+ "type": "string"
1644
+ },
1645
+ "currencyLocale": {
1646
+ "type": "string"
1647
+ }
1648
+ }
1649
+ }
1650
+ ]
1651
+ }
1652
+ },
1653
+ "additionalProperties": false
1654
+ },
1655
+ {
1656
+ "type": "object",
1657
+ "required": [
1658
+ "kind",
1659
+ "key",
1660
+ "component",
1661
+ "props"
1662
+ ],
1663
+ "properties": {
1664
+ "kind": {
1665
+ "const": "field"
1666
+ },
1667
+ "key": {
1668
+ "type": "string"
1669
+ },
1670
+ "component": {
1671
+ "const": "slug"
1672
+ },
1673
+ "props": {
1674
+ "allOf": [
1675
+ {
1676
+ "$ref": "#/$defs/FieldPropsBase"
1677
+ },
1678
+ {
1679
+ "type": "object",
1680
+ "properties": {
1681
+ "sourceField": {
1682
+ "type": "string"
1683
+ },
1684
+ "prefix": {
1685
+ "type": "string"
1686
+ }
1687
+ }
1688
+ }
1689
+ ]
1690
+ }
1691
+ },
1692
+ "additionalProperties": false
1693
+ },
1694
+ {
1695
+ "type": "object",
1696
+ "required": [
1697
+ "kind",
1698
+ "key",
1699
+ "component",
1700
+ "props"
1701
+ ],
1702
+ "properties": {
1703
+ "kind": {
1704
+ "const": "field"
1705
+ },
1706
+ "key": {
1707
+ "type": "string"
1708
+ },
1709
+ "component": {
1710
+ "const": "tags"
1711
+ },
1712
+ "props": {
1713
+ "allOf": [
1714
+ {
1715
+ "$ref": "#/$defs/FieldPropsBase"
1716
+ },
1717
+ {
1718
+ "type": "object",
1719
+ "properties": {
1720
+ "maxTags": {
1721
+ "type": "integer"
1722
+ }
1723
+ }
1724
+ }
1725
+ ]
1726
+ }
1727
+ },
1728
+ "additionalProperties": false
1729
+ },
1730
+ {
1731
+ "type": "object",
1732
+ "required": [
1733
+ "kind",
1734
+ "key",
1735
+ "component",
1736
+ "props"
1737
+ ],
1738
+ "properties": {
1739
+ "kind": {
1740
+ "const": "field"
1741
+ },
1742
+ "key": {
1743
+ "type": "string"
1744
+ },
1745
+ "component": {
1746
+ "const": "rating"
1747
+ },
1748
+ "props": {
1749
+ "allOf": [
1750
+ {
1751
+ "$ref": "#/$defs/FieldPropsBase"
1752
+ },
1753
+ {
1754
+ "type": "object",
1755
+ "properties": {
1756
+ "maxRating": {
1757
+ "type": "integer"
1758
+ }
1759
+ }
1760
+ }
1761
+ ]
1762
+ }
1763
+ },
1764
+ "additionalProperties": false
1765
+ },
1766
+ {
1767
+ "type": "object",
1768
+ "required": [
1769
+ "kind",
1770
+ "key",
1771
+ "component",
1772
+ "props"
1773
+ ],
1774
+ "properties": {
1775
+ "kind": {
1776
+ "const": "field"
1777
+ },
1778
+ "key": {
1779
+ "type": "string"
1780
+ },
1781
+ "component": {
1782
+ "const": "date_range"
1783
+ },
1784
+ "props": {
1785
+ "allOf": [
1786
+ {
1787
+ "$ref": "#/$defs/FieldPropsBase"
1788
+ },
1789
+ {
1790
+ "type": "object",
1791
+ "properties": {
1792
+ "operator": {
1793
+ "type": "string"
1794
+ }
1795
+ }
1796
+ }
1797
+ ]
1798
+ }
1799
+ },
1800
+ "additionalProperties": false
1801
+ },
1802
+ {
1803
+ "type": "object",
1804
+ "required": [
1805
+ "kind",
1806
+ "key",
1807
+ "component",
1808
+ "props"
1809
+ ],
1810
+ "properties": {
1811
+ "kind": {
1812
+ "const": "field"
1813
+ },
1814
+ "key": {
1815
+ "type": "string"
1816
+ },
1817
+ "component": {
1818
+ "const": "hidden"
1819
+ },
1820
+ "props": {
1821
+ "$ref": "#/$defs/FieldPropsBase"
1822
+ }
1823
+ },
1824
+ "additionalProperties": false
1825
+ },
1826
+ {
1827
+ "type": "object",
1828
+ "required": [
1829
+ "kind",
1830
+ "key",
1831
+ "component",
1832
+ "props"
1833
+ ],
1834
+ "properties": {
1835
+ "kind": {
1836
+ "const": "field"
1837
+ },
1838
+ "key": {
1839
+ "type": "string"
1840
+ },
1841
+ "component": {
1842
+ "const": "static"
1843
+ },
1844
+ "props": {
1845
+ "$ref": "#/$defs/FieldPropsBase"
1846
+ }
1847
+ },
1848
+ "additionalProperties": false
1849
+ },
1850
+ {
1851
+ "type": "object",
1852
+ "required": [
1853
+ "kind",
1854
+ "key",
1855
+ "component",
1856
+ "props"
1857
+ ],
1858
+ "properties": {
1859
+ "kind": {
1860
+ "const": "field"
1861
+ },
1862
+ "key": {
1863
+ "type": "string"
1864
+ },
1865
+ "component": {
1866
+ "const": "header"
1867
+ },
1868
+ "props": {
1869
+ "type": "object",
1870
+ "required": [
1871
+ "label"
1872
+ ],
1873
+ "properties": {
1874
+ "label": {
1875
+ "type": "string"
1876
+ }
1877
+ },
1878
+ "additionalProperties": false
1879
+ }
1880
+ },
1881
+ "additionalProperties": false
1882
+ },
1883
+ {
1884
+ "type": "object",
1885
+ "required": [
1886
+ "kind",
1887
+ "key",
1888
+ "component",
1889
+ "props"
1890
+ ],
1891
+ "properties": {
1892
+ "kind": {
1893
+ "const": "field"
1894
+ },
1895
+ "key": {
1896
+ "type": "string"
1897
+ },
1898
+ "component": {
1899
+ "enum": [
1900
+ "richtext",
1901
+ "time"
1902
+ ]
1903
+ },
1904
+ "props": {
1905
+ "$ref": "#/$defs/FieldPropsBase"
1906
+ }
1907
+ },
1908
+ "additionalProperties": false
1909
+ },
1910
+ {
1911
+ "type": "object",
1912
+ "required": [
1913
+ "kind",
1914
+ "key",
1915
+ "component",
1916
+ "props"
1917
+ ],
1918
+ "properties": {
1919
+ "kind": {
1920
+ "const": "field"
1921
+ },
1922
+ "key": {
1923
+ "type": "string"
1924
+ },
1925
+ "component": {
1926
+ "const": "autocomplete"
1927
+ },
1928
+ "props": {
1929
+ "$ref": "#/$defs/OptionFieldProps"
1930
+ }
1931
+ },
1932
+ "additionalProperties": false
1933
+ }
1934
+ ]
1935
+ },
1936
+ "FormSectionNode": {
1937
+ "type": "object",
1938
+ "required": [
1939
+ "kind",
1940
+ "id",
1941
+ "label",
1942
+ "children"
1943
+ ],
1944
+ "properties": {
1945
+ "kind": {
1946
+ "const": "section"
1947
+ },
1948
+ "id": {
1949
+ "type": "string"
1950
+ },
1951
+ "label": {
1952
+ "oneOf": [
1953
+ {
1954
+ "type": "string"
1955
+ },
1956
+ {
1957
+ "$ref": "#/$defs/Translatable"
1958
+ },
1959
+ {
1960
+ "type": "null"
1961
+ }
1962
+ ]
1963
+ },
1964
+ "defaultCollapsed": {
1965
+ "type": "boolean"
1966
+ },
1967
+ "children": {
1968
+ "type": "array",
1969
+ "items": {
1970
+ "$ref": "#/$defs/FormSchemaNode"
1971
+ }
1972
+ }
1973
+ },
1974
+ "additionalProperties": false
1975
+ },
1976
+ "FormGroupNode": {
1977
+ "type": "object",
1978
+ "required": [
1979
+ "kind",
1980
+ "id",
1981
+ "children"
1982
+ ],
1983
+ "properties": {
1984
+ "kind": {
1985
+ "const": "group"
1986
+ },
1987
+ "id": {
1988
+ "type": "string"
1989
+ },
1990
+ "columns": {
1991
+ "enum": [
1992
+ 1,
1993
+ 2
1994
+ ]
1995
+ },
1996
+ "children": {
1997
+ "type": "array",
1998
+ "items": {
1999
+ "$ref": "#/$defs/FormSchemaNode"
2000
+ }
2001
+ }
2002
+ },
2003
+ "additionalProperties": false
2004
+ },
2005
+ "FormHeaderNode": {
2006
+ "type": "object",
2007
+ "required": [
2008
+ "kind",
2009
+ "label"
2010
+ ],
2011
+ "properties": {
2012
+ "kind": {
2013
+ "const": "header"
2014
+ },
2015
+ "label": {
2016
+ "type": "string"
2017
+ }
2018
+ },
2019
+ "additionalProperties": false
2020
+ },
2021
+ "FieldPropsBase": {
2022
+ "type": "object",
2023
+ "required": [
2024
+ "label"
2025
+ ],
2026
+ "properties": {
2027
+ "label": {
2028
+ "type": "string"
2029
+ },
2030
+ "placeholder": {
2031
+ "type": "string"
2032
+ },
2033
+ "helpText": {
2034
+ "type": "string"
2035
+ },
2036
+ "required": {
2037
+ "type": "boolean"
2038
+ },
2039
+ "disabled": {
2040
+ "type": "boolean"
2041
+ },
2042
+ "readOnly": {
2043
+ "type": "boolean"
2044
+ },
2045
+ "validation": {
2046
+ "$ref": "#/$defs/FormFieldValidation"
2047
+ },
2048
+ "visible_when": {
2049
+ "$ref": "#/$defs/FormCondition"
2050
+ },
2051
+ "hidden_when": {
2052
+ "$ref": "#/$defs/FormCondition"
2053
+ },
2054
+ "disabled_when": {
2055
+ "$ref": "#/$defs/FormCondition"
2056
+ },
2057
+ "required_when": {
2058
+ "$ref": "#/$defs/FormCondition"
2059
+ }
2060
+ }
2061
+ },
2062
+ "OptionFieldProps": {
2063
+ "allOf": [
2064
+ {
2065
+ "$ref": "#/$defs/FieldPropsBase"
2066
+ },
2067
+ {
2068
+ "type": "object",
2069
+ "properties": {
2070
+ "options": {
2071
+ "type": "array",
2072
+ "items": {
2073
+ "type": "object",
2074
+ "required": [
2075
+ "value",
2076
+ "label"
2077
+ ],
2078
+ "properties": {
2079
+ "value": {
2080
+ "type": "string"
2081
+ },
2082
+ "label": {
2083
+ "type": "string"
2084
+ }
2085
+ },
2086
+ "additionalProperties": false
2087
+ }
2088
+ }
2089
+ }
2090
+ }
2091
+ ]
2092
+ },
2093
+ "FormCondition": {
2094
+ "type": "object",
2095
+ "required": [
2096
+ "field",
2097
+ "operator",
2098
+ "value"
2099
+ ],
2100
+ "properties": {
2101
+ "field": {
2102
+ "type": "string"
2103
+ },
2104
+ "operator": {
2105
+ "enum": [
2106
+ "equals",
2107
+ "not_equals",
2108
+ "in",
2109
+ "not_in"
2110
+ ]
2111
+ },
2112
+ "value": {
2113
+ "oneOf": [
2114
+ {
2115
+ "type": "string"
2116
+ },
2117
+ {
2118
+ "type": "array",
2119
+ "items": {
2120
+ "type": "string"
2121
+ }
2122
+ }
2123
+ ]
2124
+ }
2125
+ },
2126
+ "additionalProperties": false
2127
+ },
2128
+ "FormFieldValidation": {
2129
+ "type": "object",
2130
+ "properties": {
2131
+ "minLength": {
2132
+ "type": "integer"
2133
+ },
2134
+ "maxLength": {
2135
+ "type": "integer"
2136
+ },
2137
+ "pattern": {
2138
+ "type": "string"
2139
+ },
2140
+ "patternMessage": {
2141
+ "type": "string"
2142
+ }
2143
+ },
2144
+ "additionalProperties": false
2145
+ },
2146
+ "FormFieldDocumentMask": {
2147
+ "type": "object",
2148
+ "required": [
2149
+ "pattern",
2150
+ "maxLength"
2151
+ ],
2152
+ "properties": {
2153
+ "pattern": {
2154
+ "type": "string"
2155
+ },
2156
+ "maxLength": {
2157
+ "type": "integer"
2158
+ },
2159
+ "placeholder": {
2160
+ "type": "string"
2161
+ }
2162
+ },
2163
+ "additionalProperties": false
2164
+ },
2165
+ "RegionUpdate": {
2166
+ "type": "object",
2167
+ "required": [
2168
+ "region",
2169
+ "mode"
2170
+ ],
2171
+ "properties": {
2172
+ "region": {
2173
+ "type": "string"
2174
+ },
2175
+ "mode": {
2176
+ "$ref": "#/$defs/RegionUpdateMode"
2177
+ },
2178
+ "blocks": {
2179
+ "type": "array",
2180
+ "items": {
2181
+ "$ref": "#/$defs/BlockDescriptor"
2182
+ }
2183
+ },
2184
+ "keys": {
2185
+ "type": "array",
2186
+ "items": {
2187
+ "type": "string"
2188
+ }
2189
+ }
2190
+ },
2191
+ "additionalProperties": false
2192
+ },
2193
+ "ActionResult": {
2194
+ "type": "object",
2195
+ "required": [
2196
+ "success"
2197
+ ],
2198
+ "properties": {
2199
+ "success": {
2200
+ "type": "boolean"
2201
+ },
2202
+ "notifications": {
2203
+ "type": "array",
2204
+ "items": {
2205
+ "$ref": "#/$defs/Notification"
2206
+ }
2207
+ },
2208
+ "redirect": {
2209
+ "type": "string"
2210
+ },
2211
+ "refreshBlocks": {
2212
+ "type": "array",
2213
+ "items": {
2214
+ "type": "string"
2215
+ }
2216
+ },
2217
+ "errors": {
2218
+ "$ref": "#/$defs/FormErrors"
2219
+ },
2220
+ "fragments": {
2221
+ "type": "array",
2222
+ "items": {
2223
+ "$ref": "#/$defs/Fragment"
2224
+ }
2225
+ },
2226
+ "resources": {
2227
+ "$ref": "#/$defs/ResourcePatch"
2228
+ }
2229
+ },
2230
+ "additionalProperties": false
2231
+ },
2232
+ "ResourcePatch": {
2233
+ "type": "object",
2234
+ "properties": {
2235
+ "featureFlags": {
2236
+ "type": "object",
2237
+ "additionalProperties": {
2238
+ "type": "boolean"
2239
+ }
2240
+ }
2241
+ },
2242
+ "additionalProperties": false
2243
+ },
2244
+ "ActionIntent": {
2245
+ "type": "string",
2246
+ "enum": [
2247
+ "primary",
2248
+ "secondary",
2249
+ "danger",
2250
+ "success",
2251
+ "warning",
2252
+ "info",
2253
+ "link",
2254
+ "ghost"
2255
+ ]
2256
+ },
2257
+ "ActionTargetKind": {
2258
+ "type": "string",
2259
+ "enum": [
2260
+ "link",
2261
+ "route",
2262
+ "request",
2263
+ "panel"
2264
+ ]
2265
+ },
2266
+ "ChartType": {
2267
+ "type": "string",
2268
+ "enum": [
2269
+ "line",
2270
+ "bar",
2271
+ "area"
2272
+ ]
2273
+ },
2274
+ "ColumnVariant": {
2275
+ "type": "string",
2276
+ "enum": [
2277
+ "text",
2278
+ "status",
2279
+ "badge",
2280
+ "boolean",
2281
+ "timestamp",
2282
+ "link",
2283
+ "rich_status",
2284
+ "html",
2285
+ "link_group",
2286
+ "annotated",
2287
+ "progress"
2288
+ ]
2289
+ },
2290
+ "ConditionOperator": {
2291
+ "type": "string",
2292
+ "enum": [
2293
+ "eq",
2294
+ "neq",
2295
+ "in",
2296
+ "not_in",
2297
+ "gt",
2298
+ "gte",
2299
+ "lt",
2300
+ "lte",
2301
+ "truthy",
2302
+ "falsy",
2303
+ "exists",
2304
+ "empty",
2305
+ "matches"
2306
+ ]
2307
+ },
2308
+ "FieldType": {
2309
+ "type": "string",
2310
+ "enum": [
2311
+ "text",
2312
+ "textarea",
2313
+ "richtext",
2314
+ "password",
2315
+ "otp",
2316
+ "email",
2317
+ "url",
2318
+ "int",
2319
+ "float",
2320
+ "slider",
2321
+ "select",
2322
+ "multiselect",
2323
+ "native_select",
2324
+ "radio",
2325
+ "checkbox",
2326
+ "switch",
2327
+ "date",
2328
+ "datetime",
2329
+ "time",
2330
+ "duration",
2331
+ "file",
2332
+ "entity_picker",
2333
+ "autocomplete",
2334
+ "tags",
2335
+ "hidden",
2336
+ "static",
2337
+ "header"
2338
+ ]
2339
+ },
2340
+ "FilterType": {
2341
+ "type": "string",
2342
+ "enum": [
2343
+ "select",
2344
+ "text",
2345
+ "date",
2346
+ "date_range",
2347
+ "boolean",
2348
+ "number_range"
2349
+ ]
2350
+ },
2351
+ "FormComponent": {
2352
+ "type": "string",
2353
+ "enum": [
2354
+ "text",
2355
+ "textarea",
2356
+ "password",
2357
+ "otp",
2358
+ "email",
2359
+ "url",
2360
+ "int",
2361
+ "float",
2362
+ "slider",
2363
+ "select",
2364
+ "native_select",
2365
+ "multiselect",
2366
+ "radio",
2367
+ "checkbox",
2368
+ "switch",
2369
+ "date",
2370
+ "datetime",
2371
+ "duration",
2372
+ "file",
2373
+ "entity_picker",
2374
+ "phone",
2375
+ "document",
2376
+ "currency",
2377
+ "color",
2378
+ "slug",
2379
+ "tags",
2380
+ "rating",
2381
+ "date_range",
2382
+ "hidden",
2383
+ "static",
2384
+ "header",
2385
+ "richtext",
2386
+ "time",
2387
+ "autocomplete"
2388
+ ]
2389
+ },
2390
+ "FragmentKind": {
2391
+ "type": "string",
2392
+ "enum": [
2393
+ "block",
2394
+ "region",
2395
+ "table",
2396
+ "form",
2397
+ "detail",
2398
+ "inspector",
2399
+ "notifications",
2400
+ "custom"
2401
+ ]
2402
+ },
2403
+ "HttpMethod": {
2404
+ "type": "string",
2405
+ "enum": [
2406
+ "get",
2407
+ "post",
2408
+ "put",
2409
+ "patch",
2410
+ "delete"
2411
+ ]
2412
+ },
2413
+ "NotificationLevel": {
2414
+ "type": "string",
2415
+ "enum": [
2416
+ "success",
2417
+ "info",
2418
+ "warning",
2419
+ "error"
2420
+ ]
2421
+ },
2422
+ "RegionUpdateMode": {
2423
+ "type": "string",
2424
+ "enum": [
2425
+ "replace",
2426
+ "append",
2427
+ "prepend",
2428
+ "remove",
2429
+ "update"
2430
+ ]
2431
+ },
2432
+ "RenderTarget": {
2433
+ "type": "string",
2434
+ "enum": [
2435
+ "html",
2436
+ "props"
2437
+ ]
2438
+ },
2439
+ "ThemeMode": {
2440
+ "type": "string",
2441
+ "enum": [
2442
+ "light",
2443
+ "dark",
2444
+ "system"
2445
+ ]
2446
+ },
2447
+ "ValueFormat": {
2448
+ "type": "string",
2449
+ "enum": [
2450
+ "text",
2451
+ "date",
2452
+ "datetime",
2453
+ "time",
2454
+ "number",
2455
+ "currency",
2456
+ "boolean",
2457
+ "badge"
2458
+ ]
111
2459
  }
112
- },
113
- "required": ["navigation", "theme", "locale", "version"]
114
2460
  }
115
- },
116
-
117
- "x-ai-purpose": "These types describe the global data available on every page via Inertia shared props. They are NOT part of the PageContract — they are parallel data consumed by providers (AuthProvider, FlashProvider, ScopeProvider, I18nProvider). AI agents can assume navigation, theme, locale and version are always present; `auth` is optional and may be null on guest-facing pages (e.g. login) — never assume an authenticated user exists."
118
2461
  }