dynamic-settings-widget 2.0.0__py3-none-any.whl

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 (90) hide show
  1. dynamic_settings_widget/__init__.py +56 -0
  2. dynamic_settings_widget/adapters/__init__.py +42 -0
  3. dynamic_settings_widget/adapters/base.py +179 -0
  4. dynamic_settings_widget/adapters/memory.py +201 -0
  5. dynamic_settings_widget/adapters/runner.py +63 -0
  6. dynamic_settings_widget/core/__init__.py +1 -0
  7. dynamic_settings_widget/core/catalog.py +201 -0
  8. dynamic_settings_widget/core/common.py +214 -0
  9. dynamic_settings_widget/core/conditions.py +146 -0
  10. dynamic_settings_widget/core/datatypes.py +414 -0
  11. dynamic_settings_widget/core/diagnostics.py +69 -0
  12. dynamic_settings_widget/core/loader.py +101 -0
  13. dynamic_settings_widget/core/model.py +245 -0
  14. dynamic_settings_widget/core/overrides.py +353 -0
  15. dynamic_settings_widget/core/parser.py +552 -0
  16. dynamic_settings_widget/core/presentation.py +68 -0
  17. dynamic_settings_widget/core/registry.py +258 -0
  18. dynamic_settings_widget/core/state.py +314 -0
  19. dynamic_settings_widget/data/example_catalog.json +23 -0
  20. dynamic_settings_widget/data/example_layout.json +23 -0
  21. dynamic_settings_widget/data/settings_catalog.schema.json +388 -0
  22. dynamic_settings_widget/data/settings_definition.schema.json +1041 -0
  23. dynamic_settings_widget/data/settings_layout.schema.json +701 -0
  24. dynamic_settings_widget/data/settings_override.schema.json +406 -0
  25. dynamic_settings_widget/py.typed +0 -0
  26. dynamic_settings_widget/session.py +1537 -0
  27. dynamic_settings_widget/standalone/__init__.py +67 -0
  28. dynamic_settings_widget/standalone/action_button.py +200 -0
  29. dynamic_settings_widget/standalone/auth_widget.py +377 -0
  30. dynamic_settings_widget/standalone/check_box_editor.py +233 -0
  31. dynamic_settings_widget/standalone/choice_buttons_editor.py +394 -0
  32. dynamic_settings_widget/standalone/color_editor.py +316 -0
  33. dynamic_settings_widget/standalone/dropdown_editor.py +356 -0
  34. dynamic_settings_widget/standalone/editable_label.py +428 -0
  35. dynamic_settings_widget/standalone/float_spin_box.py +621 -0
  36. dynamic_settings_widget/standalone/font_editor.py +348 -0
  37. dynamic_settings_widget/standalone/hotkey_editor.py +681 -0
  38. dynamic_settings_widget/standalone/info_label.py +190 -0
  39. dynamic_settings_widget/standalone/int_spin_box.py +627 -0
  40. dynamic_settings_widget/standalone/multi_choice_editor.py +428 -0
  41. dynamic_settings_widget/standalone/password_editor.py +348 -0
  42. dynamic_settings_widget/standalone/path_editor.py +615 -0
  43. dynamic_settings_widget/standalone/protected_group_box.py +287 -0
  44. dynamic_settings_widget/standalone/server_connection_editor.py +642 -0
  45. dynamic_settings_widget/standalone/slider_spin_box.py +840 -0
  46. dynamic_settings_widget/standalone/sound_selection_widget.py +710 -0
  47. dynamic_settings_widget/standalone/status_label.py +148 -0
  48. dynamic_settings_widget/standalone/switch_editor.py +293 -0
  49. dynamic_settings_widget/standalone/text_editor.py +265 -0
  50. dynamic_settings_widget/testlab/__init__.py +1 -0
  51. dynamic_settings_widget/testlab/__main__.py +5 -0
  52. dynamic_settings_widget/testlab/app.py +699 -0
  53. dynamic_settings_widget/testlab/assets/extra_sounds/Signal.wav +0 -0
  54. dynamic_settings_widget/testlab/assets/sounds/Benachrichtigung.wav +0 -0
  55. dynamic_settings_widget/testlab/assets/sounds/feedback/Signal.wav +0 -0
  56. dynamic_settings_widget/testlab/definitions/broken_base.json +25 -0
  57. dynamic_settings_widget/testlab/definitions/demo.json +634 -0
  58. dynamic_settings_widget/testlab/definitions/gallery.json +255 -0
  59. dynamic_settings_widget/testlab/definitions/override_example.json +41 -0
  60. dynamic_settings_widget/testlab/definitions/override_invalid.json +11 -0
  61. dynamic_settings_widget/testlab/definitions/override_syntax_error.json +5 -0
  62. dynamic_settings_widget/testlab/definitions/override_weaken.json +10 -0
  63. dynamic_settings_widget/testlab/definitions/voice_v2/01_left_top.json +1190 -0
  64. dynamic_settings_widget/testlab/definitions/voice_v2/catalog.json +1930 -0
  65. dynamic_settings_widget/testlab/definitions/voice_v2/models.json +141 -0
  66. dynamic_settings_widget/testlab/definitions/voice_v2/wakewords.json +161 -0
  67. dynamic_settings_widget/testlab/dummy.py +353 -0
  68. dynamic_settings_widget/testlab/extensions.py +149 -0
  69. dynamic_settings_widget/testlab/gallery.py +223 -0
  70. dynamic_settings_widget/testlab/http_adapter.py +430 -0
  71. dynamic_settings_widget/testlab/http_server.py +493 -0
  72. dynamic_settings_widget/testlab/voice_v2.py +251 -0
  73. dynamic_settings_widget/ui/__init__.py +23 -0
  74. dynamic_settings_widget/ui/base.py +63 -0
  75. dynamic_settings_widget/ui/builders.py +226 -0
  76. dynamic_settings_widget/ui/containers.py +441 -0
  77. dynamic_settings_widget/ui/dialog.py +231 -0
  78. dynamic_settings_widget/ui/editing.py +51 -0
  79. dynamic_settings_widget/ui/row.py +810 -0
  80. dynamic_settings_widget/ui/view.py +248 -0
  81. dynamic_settings_widget/widgets/__init__.py +74 -0
  82. dynamic_settings_widget/widgets/base.py +145 -0
  83. dynamic_settings_widget/widgets/bridge.py +222 -0
  84. dynamic_settings_widget/widgets/theme.py +107 -0
  85. dynamic_settings_widget-2.0.0.dist-info/METADATA +237 -0
  86. dynamic_settings_widget-2.0.0.dist-info/RECORD +90 -0
  87. dynamic_settings_widget-2.0.0.dist-info/WHEEL +5 -0
  88. dynamic_settings_widget-2.0.0.dist-info/entry_points.txt +5 -0
  89. dynamic_settings_widget-2.0.0.dist-info/licenses/LICENSE +21 -0
  90. dynamic_settings_widget-2.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1041 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:dynamic-settings:definition:1",
4
+ "title": "Dynamic Settings – Definition, Formatversion 1",
5
+ "description": "Formale Struktur. Querverweise, Typverträglichkeit und Hierarchieregeln prüft zusätzlich der Lader.",
6
+ "type": "object",
7
+ "required": [
8
+ "format",
9
+ "version",
10
+ "root"
11
+ ],
12
+ "properties": {
13
+ "$schema": {
14
+ "type": "string"
15
+ },
16
+ "format": {
17
+ "const": "dynamic-settings"
18
+ },
19
+ "version": {
20
+ "const": 1
21
+ },
22
+ "title": {
23
+ "type": "string"
24
+ },
25
+ "description": {
26
+ "type": "string"
27
+ },
28
+ "adapters": {
29
+ "type": "object",
30
+ "additionalProperties": {
31
+ "type": "string"
32
+ }
33
+ },
34
+ "default_adapter": {
35
+ "type": "string"
36
+ },
37
+ "root": {
38
+ "allOf": [
39
+ {
40
+ "$ref": "#/$defs/elementBody"
41
+ }
42
+ ],
43
+ "properties": {
44
+ "id": {
45
+ "const": "root"
46
+ }
47
+ }
48
+ },
49
+ "presentation": {
50
+ "$ref": "#/$defs/presentation"
51
+ }
52
+ },
53
+ "patternProperties": {
54
+ "^x-": true
55
+ },
56
+ "additionalProperties": false,
57
+ "$defs": {
58
+ "id": {
59
+ "type": "string",
60
+ "pattern": "^[A-Za-z0-9_][A-Za-z0-9_.\\-]*$"
61
+ },
62
+ "name": {
63
+ "type": "string",
64
+ "pattern": "^[A-Za-z0-9_][A-Za-z0-9_\\-]*$"
65
+ },
66
+ "scope": {
67
+ "type": "object",
68
+ "required": [
69
+ "scope"
70
+ ],
71
+ "properties": {
72
+ "adapter": {
73
+ "type": "string"
74
+ },
75
+ "scope": {
76
+ "type": "string",
77
+ "minLength": 1
78
+ }
79
+ },
80
+ "additionalProperties": false
81
+ },
82
+ "binding": {
83
+ "oneOf": [
84
+ {
85
+ "type": "string",
86
+ "minLength": 1
87
+ },
88
+ {
89
+ "type": "object",
90
+ "required": [
91
+ "key"
92
+ ],
93
+ "properties": {
94
+ "adapter": {
95
+ "type": "string"
96
+ },
97
+ "key": {
98
+ "type": "string",
99
+ "minLength": 1
100
+ }
101
+ },
102
+ "additionalProperties": false
103
+ }
104
+ ]
105
+ },
106
+ "choicesSource": {
107
+ "oneOf": [
108
+ {
109
+ "type": "string",
110
+ "minLength": 1
111
+ },
112
+ {
113
+ "type": "object",
114
+ "required": [
115
+ "list"
116
+ ],
117
+ "properties": {
118
+ "adapter": {
119
+ "type": "string"
120
+ },
121
+ "list": {
122
+ "type": "string",
123
+ "minLength": 1
124
+ }
125
+ },
126
+ "additionalProperties": false
127
+ }
128
+ ]
129
+ },
130
+ "action": {
131
+ "oneOf": [
132
+ {
133
+ "type": "string",
134
+ "minLength": 1
135
+ },
136
+ {
137
+ "type": "object",
138
+ "required": [
139
+ "name"
140
+ ],
141
+ "properties": {
142
+ "adapter": {
143
+ "type": "string"
144
+ },
145
+ "name": {
146
+ "type": "string",
147
+ "minLength": 1
148
+ },
149
+ "params": {
150
+ "type": "object"
151
+ },
152
+ "params_from": {
153
+ "type": "object",
154
+ "additionalProperties": {
155
+ "$ref": "#/$defs/id"
156
+ }
157
+ }
158
+ },
159
+ "additionalProperties": false
160
+ }
161
+ ]
162
+ },
163
+ "scalar": {
164
+ "type": [
165
+ "string",
166
+ "number",
167
+ "boolean"
168
+ ]
169
+ },
170
+ "option": {
171
+ "oneOf": [
172
+ {
173
+ "$ref": "#/$defs/scalar"
174
+ },
175
+ {
176
+ "type": "object",
177
+ "required": [
178
+ "value"
179
+ ],
180
+ "properties": {
181
+ "value": {
182
+ "$ref": "#/$defs/scalar"
183
+ },
184
+ "label": {
185
+ "type": "string"
186
+ },
187
+ "description": {
188
+ "type": "string"
189
+ },
190
+ "available": {
191
+ "type": "boolean"
192
+ },
193
+ "unavailable_reason": {
194
+ "type": "string"
195
+ }
196
+ },
197
+ "additionalProperties": false
198
+ }
199
+ ]
200
+ },
201
+ "condition": {
202
+ "oneOf": [
203
+ {
204
+ "type": "boolean"
205
+ },
206
+ {
207
+ "type": "object",
208
+ "required": [
209
+ "all"
210
+ ],
211
+ "properties": {
212
+ "all": {
213
+ "type": "array",
214
+ "minItems": 1,
215
+ "items": {
216
+ "$ref": "#/$defs/condition"
217
+ }
218
+ }
219
+ },
220
+ "additionalProperties": false
221
+ },
222
+ {
223
+ "type": "object",
224
+ "required": [
225
+ "any"
226
+ ],
227
+ "properties": {
228
+ "any": {
229
+ "type": "array",
230
+ "minItems": 1,
231
+ "items": {
232
+ "$ref": "#/$defs/condition"
233
+ }
234
+ }
235
+ },
236
+ "additionalProperties": false
237
+ },
238
+ {
239
+ "type": "object",
240
+ "required": [
241
+ "not"
242
+ ],
243
+ "properties": {
244
+ "not": {
245
+ "$ref": "#/$defs/condition"
246
+ }
247
+ },
248
+ "additionalProperties": false
249
+ },
250
+ {
251
+ "type": "object",
252
+ "required": [
253
+ "permission"
254
+ ],
255
+ "properties": {
256
+ "permission": {
257
+ "type": "object",
258
+ "required": [
259
+ "adapter",
260
+ "scope"
261
+ ],
262
+ "properties": {
263
+ "adapter": {
264
+ "type": "string"
265
+ },
266
+ "scope": {
267
+ "type": "string"
268
+ }
269
+ },
270
+ "additionalProperties": false
271
+ }
272
+ },
273
+ "additionalProperties": false
274
+ },
275
+ {
276
+ "type": "object",
277
+ "required": [
278
+ "adapter",
279
+ "status"
280
+ ],
281
+ "properties": {
282
+ "adapter": {
283
+ "type": "string"
284
+ },
285
+ "status": {
286
+ "enum": [
287
+ "unknown",
288
+ "online",
289
+ "offline"
290
+ ]
291
+ }
292
+ },
293
+ "additionalProperties": false
294
+ },
295
+ {
296
+ "type": "object",
297
+ "required": [
298
+ "setting"
299
+ ],
300
+ "minProperties": 2,
301
+ "maxProperties": 3,
302
+ "properties": {
303
+ "setting": {
304
+ "$ref": "#/$defs/id"
305
+ },
306
+ "of": {
307
+ "enum": [
308
+ "draft",
309
+ "requested",
310
+ "effective"
311
+ ]
312
+ },
313
+ "equals": true,
314
+ "not_equals": true,
315
+ "in": {
316
+ "type": "array"
317
+ },
318
+ "not_in": {
319
+ "type": "array"
320
+ },
321
+ "gt": true,
322
+ "gte": true,
323
+ "lt": true,
324
+ "lte": true,
325
+ "contains": true,
326
+ "truthy": {
327
+ "type": "boolean"
328
+ },
329
+ "is_set": {
330
+ "type": "boolean"
331
+ }
332
+ },
333
+ "additionalProperties": false
334
+ }
335
+ ]
336
+ },
337
+ "auth": {
338
+ "type": "object",
339
+ "required": [
340
+ "scope"
341
+ ],
342
+ "properties": {
343
+ "adapter": {
344
+ "type": "string"
345
+ },
346
+ "scope": {
347
+ "type": "string",
348
+ "minLength": 1
349
+ },
350
+ "mode": {
351
+ "enum": [
352
+ "credentials",
353
+ "external"
354
+ ]
355
+ },
356
+ "locked_display": {
357
+ "enum": [
358
+ "disabled",
359
+ "hidden",
360
+ "read_only"
361
+ ]
362
+ },
363
+ "fields": {
364
+ "type": "array",
365
+ "minItems": 1,
366
+ "items": {
367
+ "type": "object",
368
+ "required": [
369
+ "name"
370
+ ],
371
+ "properties": {
372
+ "name": {
373
+ "type": "string"
374
+ },
375
+ "label": {
376
+ "type": "string"
377
+ },
378
+ "secret": {
379
+ "type": "boolean"
380
+ }
381
+ },
382
+ "additionalProperties": false
383
+ }
384
+ }
385
+ },
386
+ "additionalProperties": false
387
+ },
388
+ "element": {
389
+ "allOf": [
390
+ {
391
+ "$ref": "#/$defs/elementBody"
392
+ }
393
+ ],
394
+ "required": [
395
+ "id"
396
+ ]
397
+ },
398
+ "elementBody": {
399
+ "type": "object",
400
+ "if": {
401
+ "required": [
402
+ "widget"
403
+ ],
404
+ "properties": {
405
+ "widget": {
406
+ "const": "sound_selection"
407
+ }
408
+ }
409
+ },
410
+ "then": {
411
+ "required": [
412
+ "datatype",
413
+ "bind"
414
+ ],
415
+ "properties": {
416
+ "type": {
417
+ "const": "setting"
418
+ },
419
+ "datatype": {
420
+ "const": "string"
421
+ },
422
+ "options": {
423
+ "$ref": "#/$defs/soundOptions"
424
+ }
425
+ }
426
+ },
427
+ "required": [
428
+ "type"
429
+ ],
430
+ "properties": {
431
+ "id": {
432
+ "$ref": "#/$defs/id"
433
+ },
434
+ "name": {
435
+ "$ref": "#/$defs/name"
436
+ },
437
+ "type": {
438
+ "type": "string"
439
+ },
440
+ "label": {
441
+ "type": "string"
442
+ },
443
+ "description": {
444
+ "type": "string"
445
+ },
446
+ "help": {
447
+ "type": "string"
448
+ },
449
+ "order": {
450
+ "type": "number"
451
+ },
452
+ "visible": {
453
+ "$ref": "#/$defs/condition"
454
+ },
455
+ "enabled": {
456
+ "$ref": "#/$defs/condition"
457
+ },
458
+ "read_only": {
459
+ "$ref": "#/$defs/condition"
460
+ },
461
+ "permission": {
462
+ "$ref": "#/$defs/scope"
463
+ },
464
+ "options": {
465
+ "$ref": "#/$defs/options"
466
+ },
467
+ "children": {
468
+ "type": "array",
469
+ "items": {
470
+ "$ref": "#/$defs/element"
471
+ }
472
+ },
473
+ "datatype": {
474
+ "enum": [
475
+ "bool",
476
+ "int",
477
+ "float",
478
+ "string",
479
+ "secret",
480
+ "color",
481
+ "font",
482
+ "path",
483
+ "hotkey",
484
+ "choice",
485
+ "multi_choice",
486
+ "connection"
487
+ ]
488
+ },
489
+ "widget": {
490
+ "type": "string",
491
+ "description": "Editor; ohne Angabe der Standardeditor des Datentyps. Eigene Editoren über das Register.",
492
+ "examples": [
493
+ "text",
494
+ "editable_label",
495
+ "sound_selection",
496
+ "password",
497
+ "int_spin",
498
+ "float_spin",
499
+ "slider_spin",
500
+ "hotkey",
501
+ "checkbox",
502
+ "switch",
503
+ "dropdown",
504
+ "choice_buttons",
505
+ "multi_choice",
506
+ "color",
507
+ "font",
508
+ "path",
509
+ "server_connection"
510
+ ]
511
+ },
512
+ "bind": {
513
+ "$ref": "#/$defs/binding"
514
+ },
515
+ "default": true,
516
+ "choices": {
517
+ "type": "array",
518
+ "items": {
519
+ "$ref": "#/$defs/option"
520
+ }
521
+ },
522
+ "choices_from": {
523
+ "$ref": "#/$defs/choicesSource"
524
+ },
525
+ "apply": {
526
+ "enum": [
527
+ "manual",
528
+ "immediate",
529
+ "explicit"
530
+ ]
531
+ },
532
+ "effect": {
533
+ "type": "string"
534
+ },
535
+ "optional": {
536
+ "type": "boolean"
537
+ },
538
+ "min": {
539
+ "type": "number"
540
+ },
541
+ "max": {
542
+ "type": "number"
543
+ },
544
+ "step": {
545
+ "type": "number",
546
+ "exclusiveMinimum": 0
547
+ },
548
+ "precision": {
549
+ "type": "integer",
550
+ "minimum": 0,
551
+ "maximum": 12
552
+ },
553
+ "unit": {
554
+ "type": "string"
555
+ },
556
+ "min_length": {
557
+ "type": "integer",
558
+ "minimum": 0
559
+ },
560
+ "max_length": {
561
+ "type": "integer",
562
+ "minimum": 0
563
+ },
564
+ "pattern": {
565
+ "type": "string",
566
+ "format": "regex"
567
+ },
568
+ "min_items": {
569
+ "type": "integer",
570
+ "minimum": 0
571
+ },
572
+ "max_items": {
573
+ "type": "integer",
574
+ "minimum": 0
575
+ },
576
+ "alpha": {
577
+ "type": "boolean"
578
+ },
579
+ "actions": {
580
+ "type": "object",
581
+ "properties": {
582
+ "test": {
583
+ "$ref": "#/$defs/action"
584
+ },
585
+ "apply": {
586
+ "$ref": "#/$defs/action"
587
+ }
588
+ },
589
+ "additionalProperties": false
590
+ },
591
+ "action": {
592
+ "$ref": "#/$defs/action"
593
+ },
594
+ "confirm": {
595
+ "type": "string"
596
+ },
597
+ "text": {
598
+ "type": "string"
599
+ },
600
+ "source": {
601
+ "type": "object",
602
+ "minProperties": 1,
603
+ "maxProperties": 1,
604
+ "properties": {
605
+ "value": {
606
+ "$ref": "#/$defs/binding"
607
+ },
608
+ "adapter_status": {
609
+ "type": "string"
610
+ },
611
+ "action_result": {
612
+ "$ref": "#/$defs/id"
613
+ }
614
+ },
615
+ "additionalProperties": false
616
+ },
617
+ "auth": {
618
+ "$ref": "#/$defs/auth"
619
+ },
620
+ "catch_all": {
621
+ "type": "object",
622
+ "properties": {
623
+ "adapter": {
624
+ "type": "string"
625
+ },
626
+ "include": {
627
+ "type": "array",
628
+ "minItems": 1,
629
+ "items": {
630
+ "type": "string"
631
+ }
632
+ }
633
+ },
634
+ "additionalProperties": false
635
+ },
636
+ "presentation": {
637
+ "$ref": "#/$defs/presentation"
638
+ }
639
+ },
640
+ "patternProperties": {
641
+ "^x-": true
642
+ },
643
+ "additionalProperties": false,
644
+ "allOf": [
645
+ {
646
+ "if": {
647
+ "properties": {
648
+ "type": {
649
+ "const": "setting"
650
+ }
651
+ },
652
+ "required": [
653
+ "type"
654
+ ]
655
+ },
656
+ "then": {
657
+ "properties": {
658
+ "presentation": {
659
+ "$ref": "#/$defs/settingPresentation"
660
+ }
661
+ }
662
+ }
663
+ },
664
+ {
665
+ "if": {
666
+ "properties": {
667
+ "type": {
668
+ "enum": [
669
+ "action",
670
+ "info",
671
+ "auth"
672
+ ]
673
+ }
674
+ },
675
+ "required": [
676
+ "type"
677
+ ]
678
+ },
679
+ "then": {
680
+ "not": {
681
+ "required": [
682
+ "presentation"
683
+ ]
684
+ }
685
+ }
686
+ }
687
+ ]
688
+ },
689
+ "soundOptions": {
690
+ "type": "object",
691
+ "properties": {
692
+ "bundled_path": {
693
+ "$ref": "#/$defs/soundPath"
694
+ },
695
+ "resource_root": {
696
+ "$ref": "#/$defs/soundPath",
697
+ "pattern": "^(?:/|[A-Za-z]:[/\\\\]|\\\\\\\\)",
698
+ "description": "Absoluter Host-Ressourcenpfad, plattformspezifisch geprüft"
699
+ },
700
+ "additional_paths": {
701
+ "type": "array",
702
+ "items": {
703
+ "$ref": "#/$defs/soundPath"
704
+ }
705
+ },
706
+ "env_variable": {
707
+ "type": "string",
708
+ "pattern": "^[^=\\u0000]*[^=\\s\\u0000][^=\\u0000]*$"
709
+ },
710
+ "auto_play": {
711
+ "type": "boolean"
712
+ },
713
+ "show_play_button": {
714
+ "type": "boolean"
715
+ },
716
+ "allow_none": {
717
+ "type": "boolean",
718
+ "description": "Im Renderer gilt das Feld optional der Einstellung."
719
+ },
720
+ "recursive": {
721
+ "type": "boolean"
722
+ },
723
+ "volume": {
724
+ "type": "number",
725
+ "minimum": 0,
726
+ "maximum": 1
727
+ },
728
+ "extensions": {
729
+ "type": "array",
730
+ "minItems": 1,
731
+ "items": {
732
+ "type": "string",
733
+ "pattern": "^\\.?[^\\s./\\\\:\\u0000]+$"
734
+ }
735
+ }
736
+ },
737
+ "additionalProperties": false
738
+ },
739
+ "soundPath": {
740
+ "type": "string",
741
+ "pattern": "^[^\\u0000]*\\S[^\\u0000]*$"
742
+ },
743
+ "options": {
744
+ "type": "object",
745
+ "description": "Typabhängige Darstellungsoptionen. Bekannte Schlüssel der eingebauten Typen sind hier beschrieben; welche ein Element tatsächlich annimmt, prüft das Typregister. Eigene Typen dürfen eigene Schlüssel haben.",
746
+ "properties": {
747
+ "position": {
748
+ "enum": [
749
+ "top",
750
+ "bottom",
751
+ "left",
752
+ "right"
753
+ ],
754
+ "description": "tabs: Lage der Register"
755
+ },
756
+ "scroll": {
757
+ "type": "boolean",
758
+ "description": "page: eigene Scrollfläche"
759
+ },
760
+ "spacing": {
761
+ "type": "integer",
762
+ "description": "Container: Abstand in Pixeln"
763
+ },
764
+ "expanded": {
765
+ "type": "boolean",
766
+ "description": "collapsible: anfangs aufgeklappt"
767
+ },
768
+ "button": {
769
+ "type": "string",
770
+ "description": "action: Beschriftung"
771
+ },
772
+ "show_result": {
773
+ "type": "boolean",
774
+ "description": "action: Ergebnis anzeigen"
775
+ },
776
+ "primary": {
777
+ "type": "boolean",
778
+ "description": "action: hervorgehoben"
779
+ },
780
+ "style": {
781
+ "enum": [
782
+ "plain",
783
+ "info",
784
+ "success",
785
+ "warning",
786
+ "error"
787
+ ],
788
+ "description": "info: Darstellung"
789
+ },
790
+ "word_wrap": {
791
+ "type": "boolean",
792
+ "description": "info: Zeilenumbruch"
793
+ },
794
+ "placeholder": {
795
+ "type": "string",
796
+ "description": "text, editable_label, password, dropdown, path, server_connection: Platzhalter"
797
+ },
798
+ "multiline": {
799
+ "type": "boolean",
800
+ "description": "text: mehrzeilig"
801
+ },
802
+ "lines": {
803
+ "type": "integer",
804
+ "minimum": 1,
805
+ "description": "text: sichtbare Zeilen; multi_choice: Mindesthöhe in Zeilen"
806
+ },
807
+ "max_lines": {
808
+ "type": "integer",
809
+ "minimum": 1,
810
+ "description": "multi_choice: Höhenbegrenzung in Zeilen (sonst wächst die Liste mit den Optionen)"
811
+ },
812
+ "revealable": {
813
+ "type": "boolean",
814
+ "description": "password: Eingabe sichtbar machbar"
815
+ },
816
+ "inline_edit": {
817
+ "type": "boolean",
818
+ "description": "int_spin, float_spin, slider_spin: kompakte Wertanzeige, Klick/Eingabe/F2 öffnet die Spinbox"
819
+ },
820
+ "value_position": {
821
+ "enum": [
822
+ "right",
823
+ "left"
824
+ ],
825
+ "description": "slider_spin: Wertanzeige rechts oder links vom Slider"
826
+ },
827
+ "require_modifier": {
828
+ "type": "boolean",
829
+ "description": "hotkey: Strg/Alt/Win erforderlich (außer F-Tasten)"
830
+ },
831
+ "suggestions": {
832
+ "type": "array",
833
+ "items": {
834
+ "type": "string"
835
+ },
836
+ "description": "hotkey: Vorschlagsliste"
837
+ },
838
+ "reserved": {
839
+ "type": "object",
840
+ "additionalProperties": {
841
+ "type": "string"
842
+ },
843
+ "description": "hotkey: bekannte Belegungen {Kombination: Beschreibung}"
844
+ },
845
+ "conflicts_from": {
846
+ "$ref": "#/$defs/choicesSource",
847
+ "description": "hotkey: Belegungen vom Adapter"
848
+ },
849
+ "conflict_policy": {
850
+ "enum": [
851
+ "error",
852
+ "warn"
853
+ ],
854
+ "description": "hotkey: Konflikt blockiert oder warnt"
855
+ },
856
+ "text": {
857
+ "type": "string",
858
+ "description": "checkbox: Text neben dem Kästchen"
859
+ },
860
+ "on_text": {
861
+ "type": "string",
862
+ "description": "switch: Text für Ein"
863
+ },
864
+ "off_text": {
865
+ "type": "string",
866
+ "description": "switch: Text für Aus"
867
+ },
868
+ "preview": {
869
+ "type": "string",
870
+ "description": "font: Vorschautext"
871
+ },
872
+ "inherit_text": {
873
+ "type": "string",
874
+ "description": "font: Bezeichnung für „keine eigene Auswahl“ bei optional (Standard: Systemstandard)"
875
+ },
876
+ "mode": {
877
+ "enum": [
878
+ "open",
879
+ "save",
880
+ "directory"
881
+ ],
882
+ "description": "path: Datei öffnen, Speicherort, Ordner"
883
+ },
884
+ "filter": {
885
+ "type": "string",
886
+ "description": "path: Dateifilter, z. B. \"Text (*.txt)\""
887
+ },
888
+ "start_dir": {
889
+ "type": "string",
890
+ "description": "path: Startordner des Dialogs, solange das Feld leer ist"
891
+ },
892
+ "check": {
893
+ "enum": [
894
+ "none",
895
+ "warn",
896
+ "require"
897
+ ],
898
+ "description": "path: lokale Existenz-/Typprüfung (Override darf nur verschärfen)"
899
+ },
900
+ "schemes": {
901
+ "type": "array",
902
+ "items": {
903
+ "type": "string"
904
+ },
905
+ "description": "server_connection: erlaubte Protokolle"
906
+ },
907
+ "default_scheme": {
908
+ "type": "string",
909
+ "description": "server_connection: Protokoll ohne Angabe"
910
+ },
911
+ "endpoints": {
912
+ "type": "array",
913
+ "items": {
914
+ "$ref": "#/$defs/option"
915
+ },
916
+ "description": "server_connection: erlaubte Endpunkte"
917
+ },
918
+ "allow_path": {
919
+ "type": "boolean",
920
+ "description": "server_connection: Pfad in der Adresse erlaubt"
921
+ }
922
+ }
923
+ },
924
+ "presentation": {
925
+ "type": "object",
926
+ "properties": {
927
+ "editor_mode": {
928
+ "enum": [
929
+ "always_visible",
930
+ "inline",
931
+ "expandable"
932
+ ]
933
+ },
934
+ "exclusive_editing": {
935
+ "type": "boolean"
936
+ },
937
+ "exclusive_scope": {
938
+ "enum": [
939
+ "dialog",
940
+ "page",
941
+ "group"
942
+ ]
943
+ },
944
+ "show_edit_button": {
945
+ "type": "boolean"
946
+ },
947
+ "edit_on_value_click": {
948
+ "type": "boolean"
949
+ },
950
+ "show_status": {
951
+ "type": "boolean"
952
+ },
953
+ "colorize_value": {
954
+ "type": "boolean"
955
+ },
956
+ "show_description": {
957
+ "enum": [
958
+ "always",
959
+ "on_edit",
960
+ "never"
961
+ ]
962
+ },
963
+ "status_display": {
964
+ "enum": [
965
+ "symbol",
966
+ "text"
967
+ ]
968
+ },
969
+ "by_datatype": {
970
+ "type": "object",
971
+ "additionalProperties": {
972
+ "enum": [
973
+ "always_visible",
974
+ "inline",
975
+ "expandable"
976
+ ]
977
+ }
978
+ },
979
+ "by_widget": {
980
+ "type": "object",
981
+ "additionalProperties": {
982
+ "enum": [
983
+ "always_visible",
984
+ "inline",
985
+ "expandable"
986
+ ]
987
+ }
988
+ }
989
+ },
990
+ "additionalProperties": false
991
+ },
992
+ "settingPresentation": {
993
+ "type": "object",
994
+ "properties": {
995
+ "editor_mode": {
996
+ "enum": [
997
+ "always_visible",
998
+ "inline",
999
+ "expandable"
1000
+ ]
1001
+ },
1002
+ "exclusive_editing": {
1003
+ "type": "boolean"
1004
+ },
1005
+ "exclusive_scope": {
1006
+ "enum": [
1007
+ "dialog",
1008
+ "page",
1009
+ "group"
1010
+ ]
1011
+ },
1012
+ "show_edit_button": {
1013
+ "type": "boolean"
1014
+ },
1015
+ "edit_on_value_click": {
1016
+ "type": "boolean"
1017
+ },
1018
+ "show_status": {
1019
+ "type": "boolean"
1020
+ },
1021
+ "colorize_value": {
1022
+ "type": "boolean"
1023
+ },
1024
+ "show_description": {
1025
+ "enum": [
1026
+ "always",
1027
+ "on_edit",
1028
+ "never"
1029
+ ]
1030
+ },
1031
+ "status_display": {
1032
+ "enum": [
1033
+ "symbol",
1034
+ "text"
1035
+ ]
1036
+ }
1037
+ },
1038
+ "additionalProperties": false
1039
+ }
1040
+ }
1041
+ }