@pie-element/fraction-model 6.4.0-beta.7 → 7.0.0-next.20261002094057

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 (96) hide show
  1. package/author.js +2 -0
  2. package/configure.js +2 -0
  3. package/controller.js +1 -0
  4. package/dist/author/card-bar.d.ts +20 -0
  5. package/dist/author/card-bar.js +40 -0
  6. package/dist/author/defaults.d.ts +113 -0
  7. package/dist/author/defaults.js +84 -0
  8. package/dist/author/index.d.ts +44 -0
  9. package/dist/author/index.js +88 -0
  10. package/dist/author/main.d.ts +25 -0
  11. package/dist/author/main.js +156 -0
  12. package/dist/author/model-options.d.ts +32 -0
  13. package/dist/author/model-options.js +85 -0
  14. package/dist/author/number-text-field.d.ts +15 -0
  15. package/dist/author/number-text-field.js +24 -0
  16. package/dist/browser/assets/Symbola-4c507403.woff2 +0 -0
  17. package/dist/browser/author/index.js +32067 -0
  18. package/dist/browser/author/index.js.map +1 -0
  19. package/dist/browser/controller/index.js +78 -0
  20. package/dist/browser/controller/index.js.map +1 -0
  21. package/dist/browser/delivery/index.js +2 -0
  22. package/dist/browser/delivery-YkUEYrjh.js +28389 -0
  23. package/dist/browser/delivery-YkUEYrjh.js.map +1 -0
  24. package/dist/browser/dist-ClmZaEGT.js +89 -0
  25. package/dist/browser/dist-ClmZaEGT.js.map +1 -0
  26. package/dist/browser/editor-runtime/assets/Symbola-4c507403.woff2 +0 -0
  27. package/dist/browser/editor-runtime/author/index.js +15658 -0
  28. package/dist/browser/editor-runtime/author/index.js.map +1 -0
  29. package/dist/browser/editor-runtime/controller/index.js +78 -0
  30. package/dist/browser/editor-runtime/controller/index.js.map +1 -0
  31. package/dist/browser/editor-runtime/delivery/index.js +2 -0
  32. package/dist/browser/editor-runtime/delivery-TTEE8mhy.js +28389 -0
  33. package/dist/browser/editor-runtime/delivery-TTEE8mhy.js.map +1 -0
  34. package/dist/browser/editor-runtime/dist-ClmZaEGT.js +89 -0
  35. package/dist/browser/editor-runtime/dist-ClmZaEGT.js.map +1 -0
  36. package/dist/controller/defaults.d.ts +21 -0
  37. package/dist/controller/defaults.js +13 -0
  38. package/dist/controller/index.d.ts +23 -0
  39. package/dist/controller/index.js +68 -0
  40. package/dist/delivery/answer-fraction.d.ts +27 -0
  41. package/dist/delivery/answer-fraction.js +69 -0
  42. package/dist/delivery/fraction-model-chart.d.ts +11 -0
  43. package/dist/delivery/fraction-model-chart.js +154 -0
  44. package/dist/delivery/index.d.ts +22 -0
  45. package/dist/delivery/index.js +54 -0
  46. package/dist/delivery/main.d.ts +38 -0
  47. package/dist/delivery/main.js +136 -0
  48. package/dist/index.d.ts +1 -0
  49. package/dist/index.iife.d.ts +8 -0
  50. package/dist/index.iife.js +196 -0
  51. package/dist/index.js +2 -0
  52. package/dist/runtime-support.d.ts +12 -0
  53. package/dist/runtime-support.js +12 -0
  54. package/package.json +92 -21
  55. package/CHANGELOG.json +0 -1
  56. package/CHANGELOG.md +0 -637
  57. package/LICENSE.md +0 -5
  58. package/README.md +0 -18
  59. package/configure/CHANGELOG.json +0 -1
  60. package/configure/CHANGELOG.md +0 -602
  61. package/configure/lib/card-bar.js +0 -57
  62. package/configure/lib/card-bar.js.map +0 -1
  63. package/configure/lib/defaults.js +0 -114
  64. package/configure/lib/defaults.js.map +0 -1
  65. package/configure/lib/index.js +0 -164
  66. package/configure/lib/index.js.map +0 -1
  67. package/configure/lib/main.js +0 -253
  68. package/configure/lib/main.js.map +0 -1
  69. package/configure/lib/model-options.js +0 -144
  70. package/configure/lib/model-options.js.map +0 -1
  71. package/configure/lib/number-text-field.js +0 -47
  72. package/configure/lib/number-text-field.js.map +0 -1
  73. package/configure/package.json +0 -24
  74. package/controller/CHANGELOG.json +0 -1
  75. package/controller/CHANGELOG.md +0 -523
  76. package/controller/lib/defaults.js +0 -20
  77. package/controller/lib/defaults.js.map +0 -1
  78. package/controller/lib/index.js +0 -215
  79. package/controller/lib/index.js.map +0 -1
  80. package/controller/package.json +0 -15
  81. package/docs/config-schema.json +0 -1796
  82. package/docs/config-schema.json.md +0 -1318
  83. package/docs/demo/config.js +0 -8
  84. package/docs/demo/generate.js +0 -6
  85. package/docs/demo/index.html +0 -1
  86. package/docs/demo/session.js +0 -6
  87. package/docs/pie-schema.json +0 -873
  88. package/docs/pie-schema.json.md +0 -639
  89. package/lib/answer-fraction.js +0 -109
  90. package/lib/answer-fraction.js.map +0 -1
  91. package/lib/fraction-model-chart.js +0 -279
  92. package/lib/fraction-model-chart.js.map +0 -1
  93. package/lib/index.js +0 -92
  94. package/lib/index.js.map +0 -1
  95. package/lib/main.js +0 -203
  96. package/lib/main.js.map +0 -1
@@ -1,873 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "correctResponse": {
5
- "description": "Array of ResponseObject for correct response",
6
- "type": "array",
7
- "items": {
8
- "description": "Model for the @pie-elements/fraction-model",
9
- "additionalProperties": false,
10
- "title": "ResponseObject",
11
- "type": "object",
12
- "properties": {
13
- "id": {
14
- "description": "Indicates the response id for bar or pie model",
15
- "type": "number",
16
- "title": "id"
17
- },
18
- "value": {
19
- "description": "Indicates the selected response sector for model value",
20
- "type": "number",
21
- "title": "value"
22
- }
23
- },
24
- "required": [
25
- "id",
26
- "value"
27
- ]
28
- },
29
- "title": "correctResponse"
30
- },
31
- "title": {
32
- "description": "The title prompt of the item",
33
- "type": "string",
34
- "title": "title"
35
- },
36
- "prompt": {
37
- "description": "The question prompt or item stem",
38
- "type": "string",
39
- "title": "prompt"
40
- },
41
- "modelTypeSelected": {
42
- "description": "Indicates if the model type should be Bar or Pie model",
43
- "default": ": 'bar'",
44
- "enum": [
45
- "bar",
46
- "pie"
47
- ],
48
- "type": "string",
49
- "title": "modelTypeSelected"
50
- },
51
- "maxModelSelected": {
52
- "description": "Indicates max no of models to be selected",
53
- "default": ": 1",
54
- "type": "number",
55
- "title": "maxModelSelected"
56
- },
57
- "partsPerModel": {
58
- "description": "Indicates parts per model to be selected",
59
- "default": ": 5",
60
- "type": "number",
61
- "title": "partsPerModel"
62
- },
63
- "allowedStudentConfig": {
64
- "description": "Indicates if student can configure no of models and parts per model",
65
- "default": ": false",
66
- "type": "boolean",
67
- "title": "allowedStudentConfig"
68
- },
69
- "showGraphLabels": {
70
- "description": "Determines if graph labels visible or not",
71
- "default": ": false",
72
- "type": "boolean",
73
- "title": "showGraphLabels"
74
- },
75
- "language": {
76
- "description": "Indicates the language of the component\nSupported options: en, es, en_US, en-US, es_ES, es-ES, es_MX, es-MX",
77
- "type": "string",
78
- "title": "language"
79
- },
80
- "id": {
81
- "description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
82
- "type": "string",
83
- "title": "id"
84
- },
85
- "element": {
86
- "description": "The html Element tag name",
87
- "type": "string",
88
- "title": "element"
89
- }
90
- },
91
- "required": [
92
- "correctResponse",
93
- "element",
94
- "id",
95
- "prompt",
96
- "title"
97
- ],
98
- "definitions": {
99
- "EditableHtmlConfigureProp": {
100
- "title": "EditableHtmlConfigureProp",
101
- "type": "object",
102
- "properties": {
103
- "math": {
104
- "title": "EditableHtmlButtonConfigure",
105
- "type": "object",
106
- "properties": {
107
- "disabled": {
108
- "description": "Indicates if the plugin is disabled or not",
109
- "type": "boolean",
110
- "title": "disabled"
111
- }
112
- }
113
- },
114
- "audio": {
115
- "title": "EditableHtmlButtonConfigure",
116
- "type": "object",
117
- "properties": {
118
- "disabled": {
119
- "description": "Indicates if the plugin is disabled or not",
120
- "type": "boolean",
121
- "title": "disabled"
122
- }
123
- }
124
- },
125
- "video": {
126
- "title": "EditableHtmlButtonConfigure",
127
- "type": "object",
128
- "properties": {
129
- "disabled": {
130
- "description": "Indicates if the plugin is disabled or not",
131
- "type": "boolean",
132
- "title": "disabled"
133
- }
134
- }
135
- },
136
- "image": {
137
- "title": "EditableHtmlButtonConfigure",
138
- "type": "object",
139
- "properties": {
140
- "disabled": {
141
- "description": "Indicates if the plugin is disabled or not",
142
- "type": "boolean",
143
- "title": "disabled"
144
- }
145
- }
146
- },
147
- "customPlugins": {
148
- "description": "An array of objects that determine custom plugins.\nA custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when button gets pressed (event).\nExample can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.",
149
- "type": "array",
150
- "items": {
151
- "title": "CustomPlugin",
152
- "type": "object",
153
- "properties": {
154
- "event": {
155
- "description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
156
- "type": "string",
157
- "title": "event"
158
- },
159
- "iconAlt": {
160
- "description": "The alt for the custom button icon",
161
- "type": "string",
162
- "title": "iconAlt"
163
- },
164
- "iconType": {
165
- "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
166
- "type": "string",
167
- "title": "iconType"
168
- },
169
- "icon": {
170
- "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
171
- "type": "string",
172
- "title": "icon"
173
- }
174
- },
175
- "required": [
176
- "event",
177
- "icon",
178
- "iconAlt",
179
- "iconType"
180
- ]
181
- },
182
- "title": "customPlugins"
183
- },
184
- "blockquote": {
185
- "title": "EditableHtmlButtonConfigure",
186
- "type": "object",
187
- "properties": {
188
- "disabled": {
189
- "description": "Indicates if the plugin is disabled or not",
190
- "type": "boolean",
191
- "title": "disabled"
192
- }
193
- }
194
- },
195
- "h3": {
196
- "title": "EditableHtmlButtonConfigure",
197
- "type": "object",
198
- "properties": {
199
- "disabled": {
200
- "description": "Indicates if the plugin is disabled or not",
201
- "type": "boolean",
202
- "title": "disabled"
203
- }
204
- }
205
- },
206
- "characters": {
207
- "title": "EditableHtmlButtonConfigure",
208
- "type": "object",
209
- "properties": {
210
- "disabled": {
211
- "description": "Indicates if the plugin is disabled or not",
212
- "type": "boolean",
213
- "title": "disabled"
214
- }
215
- }
216
- },
217
- "bold": {
218
- "title": "EditableHtmlButtonConfigure",
219
- "type": "object",
220
- "properties": {
221
- "disabled": {
222
- "description": "Indicates if the plugin is disabled or not",
223
- "type": "boolean",
224
- "title": "disabled"
225
- }
226
- }
227
- },
228
- "html": {
229
- "title": "EditableHtmlButtonConfigure",
230
- "type": "object",
231
- "properties": {
232
- "disabled": {
233
- "description": "Indicates if the plugin is disabled or not",
234
- "type": "boolean",
235
- "title": "disabled"
236
- }
237
- }
238
- },
239
- "italic": {
240
- "title": "EditableHtmlButtonConfigure",
241
- "type": "object",
242
- "properties": {
243
- "disabled": {
244
- "description": "Indicates if the plugin is disabled or not",
245
- "type": "boolean",
246
- "title": "disabled"
247
- }
248
- }
249
- },
250
- "ol_list": {
251
- "title": "EditableHtmlButtonConfigure",
252
- "type": "object",
253
- "properties": {
254
- "disabled": {
255
- "description": "Indicates if the plugin is disabled or not",
256
- "type": "boolean",
257
- "title": "disabled"
258
- }
259
- }
260
- },
261
- "redo": {
262
- "title": "EditableHtmlButtonConfigure",
263
- "type": "object",
264
- "properties": {
265
- "disabled": {
266
- "description": "Indicates if the plugin is disabled or not",
267
- "type": "boolean",
268
- "title": "disabled"
269
- }
270
- }
271
- },
272
- "strikethrough": {
273
- "title": "EditableHtmlButtonConfigure",
274
- "type": "object",
275
- "properties": {
276
- "disabled": {
277
- "description": "Indicates if the plugin is disabled or not",
278
- "type": "boolean",
279
- "title": "disabled"
280
- }
281
- }
282
- },
283
- "sub": {
284
- "title": "EditableHtmlButtonConfigure",
285
- "type": "object",
286
- "properties": {
287
- "disabled": {
288
- "description": "Indicates if the plugin is disabled or not",
289
- "type": "boolean",
290
- "title": "disabled"
291
- }
292
- }
293
- },
294
- "sup": {
295
- "title": "EditableHtmlButtonConfigure",
296
- "type": "object",
297
- "properties": {
298
- "disabled": {
299
- "description": "Indicates if the plugin is disabled or not",
300
- "type": "boolean",
301
- "title": "disabled"
302
- }
303
- }
304
- },
305
- "table": {
306
- "title": "EditableHtmlButtonConfigure",
307
- "type": "object",
308
- "properties": {
309
- "disabled": {
310
- "description": "Indicates if the plugin is disabled or not",
311
- "type": "boolean",
312
- "title": "disabled"
313
- }
314
- }
315
- },
316
- "ul_list": {
317
- "title": "EditableHtmlButtonConfigure",
318
- "type": "object",
319
- "properties": {
320
- "disabled": {
321
- "description": "Indicates if the plugin is disabled or not",
322
- "type": "boolean",
323
- "title": "disabled"
324
- }
325
- }
326
- },
327
- "underline": {
328
- "title": "EditableHtmlButtonConfigure",
329
- "type": "object",
330
- "properties": {
331
- "disabled": {
332
- "description": "Indicates if the plugin is disabled or not",
333
- "type": "boolean",
334
- "title": "disabled"
335
- }
336
- }
337
- },
338
- "undo": {
339
- "title": "EditableHtmlButtonConfigure",
340
- "type": "object",
341
- "properties": {
342
- "disabled": {
343
- "description": "Indicates if the plugin is disabled or not",
344
- "type": "boolean",
345
- "title": "disabled"
346
- }
347
- }
348
- }
349
- }
350
- },
351
- "EditableHtmlButtonConfigure": {
352
- "title": "EditableHtmlButtonConfigure",
353
- "type": "object",
354
- "properties": {
355
- "disabled": {
356
- "description": "Indicates if the plugin is disabled or not",
357
- "type": "boolean",
358
- "title": "disabled"
359
- }
360
- }
361
- },
362
- "CustomPlugin": {
363
- "title": "CustomPlugin",
364
- "type": "object",
365
- "properties": {
366
- "event": {
367
- "description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
368
- "type": "string",
369
- "title": "event"
370
- },
371
- "iconAlt": {
372
- "description": "The alt for the custom button icon",
373
- "type": "string",
374
- "title": "iconAlt"
375
- },
376
- "iconType": {
377
- "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
378
- "type": "string",
379
- "title": "iconType"
380
- },
381
- "icon": {
382
- "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
383
- "type": "string",
384
- "title": "icon"
385
- }
386
- },
387
- "required": [
388
- "event",
389
- "icon",
390
- "iconAlt",
391
- "iconType"
392
- ]
393
- },
394
- "EditableHtmlPluginConfigure": {
395
- "title": "EditableHtmlPluginConfigure",
396
- "type": "object",
397
- "properties": {
398
- "inputConfiguration": {
399
- "title": "EditableHtmlConfigureProp",
400
- "type": "object",
401
- "properties": {
402
- "math": {
403
- "title": "EditableHtmlButtonConfigure",
404
- "type": "object",
405
- "properties": {
406
- "disabled": {
407
- "description": "Indicates if the plugin is disabled or not",
408
- "type": "boolean",
409
- "title": "disabled"
410
- }
411
- }
412
- },
413
- "audio": {
414
- "title": "EditableHtmlButtonConfigure",
415
- "type": "object",
416
- "properties": {
417
- "disabled": {
418
- "description": "Indicates if the plugin is disabled or not",
419
- "type": "boolean",
420
- "title": "disabled"
421
- }
422
- }
423
- },
424
- "video": {
425
- "title": "EditableHtmlButtonConfigure",
426
- "type": "object",
427
- "properties": {
428
- "disabled": {
429
- "description": "Indicates if the plugin is disabled or not",
430
- "type": "boolean",
431
- "title": "disabled"
432
- }
433
- }
434
- },
435
- "image": {
436
- "title": "EditableHtmlButtonConfigure",
437
- "type": "object",
438
- "properties": {
439
- "disabled": {
440
- "description": "Indicates if the plugin is disabled or not",
441
- "type": "boolean",
442
- "title": "disabled"
443
- }
444
- }
445
- },
446
- "customPlugins": {
447
- "description": "An array of objects that determine custom plugins.\nA custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when button gets pressed (event).\nExample can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.",
448
- "type": "array",
449
- "items": {
450
- "title": "CustomPlugin",
451
- "type": "object",
452
- "properties": {
453
- "event": {
454
- "description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
455
- "type": "string",
456
- "title": "event"
457
- },
458
- "iconAlt": {
459
- "description": "The alt for the custom button icon",
460
- "type": "string",
461
- "title": "iconAlt"
462
- },
463
- "iconType": {
464
- "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
465
- "type": "string",
466
- "title": "iconType"
467
- },
468
- "icon": {
469
- "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
470
- "type": "string",
471
- "title": "icon"
472
- }
473
- },
474
- "required": [
475
- "event",
476
- "icon",
477
- "iconAlt",
478
- "iconType"
479
- ]
480
- },
481
- "title": "customPlugins"
482
- },
483
- "blockquote": {
484
- "title": "EditableHtmlButtonConfigure",
485
- "type": "object",
486
- "properties": {
487
- "disabled": {
488
- "description": "Indicates if the plugin is disabled or not",
489
- "type": "boolean",
490
- "title": "disabled"
491
- }
492
- }
493
- },
494
- "h3": {
495
- "title": "EditableHtmlButtonConfigure",
496
- "type": "object",
497
- "properties": {
498
- "disabled": {
499
- "description": "Indicates if the plugin is disabled or not",
500
- "type": "boolean",
501
- "title": "disabled"
502
- }
503
- }
504
- },
505
- "characters": {
506
- "title": "EditableHtmlButtonConfigure",
507
- "type": "object",
508
- "properties": {
509
- "disabled": {
510
- "description": "Indicates if the plugin is disabled or not",
511
- "type": "boolean",
512
- "title": "disabled"
513
- }
514
- }
515
- },
516
- "bold": {
517
- "title": "EditableHtmlButtonConfigure",
518
- "type": "object",
519
- "properties": {
520
- "disabled": {
521
- "description": "Indicates if the plugin is disabled or not",
522
- "type": "boolean",
523
- "title": "disabled"
524
- }
525
- }
526
- },
527
- "html": {
528
- "title": "EditableHtmlButtonConfigure",
529
- "type": "object",
530
- "properties": {
531
- "disabled": {
532
- "description": "Indicates if the plugin is disabled or not",
533
- "type": "boolean",
534
- "title": "disabled"
535
- }
536
- }
537
- },
538
- "italic": {
539
- "title": "EditableHtmlButtonConfigure",
540
- "type": "object",
541
- "properties": {
542
- "disabled": {
543
- "description": "Indicates if the plugin is disabled or not",
544
- "type": "boolean",
545
- "title": "disabled"
546
- }
547
- }
548
- },
549
- "ol_list": {
550
- "title": "EditableHtmlButtonConfigure",
551
- "type": "object",
552
- "properties": {
553
- "disabled": {
554
- "description": "Indicates if the plugin is disabled or not",
555
- "type": "boolean",
556
- "title": "disabled"
557
- }
558
- }
559
- },
560
- "redo": {
561
- "title": "EditableHtmlButtonConfigure",
562
- "type": "object",
563
- "properties": {
564
- "disabled": {
565
- "description": "Indicates if the plugin is disabled or not",
566
- "type": "boolean",
567
- "title": "disabled"
568
- }
569
- }
570
- },
571
- "strikethrough": {
572
- "title": "EditableHtmlButtonConfigure",
573
- "type": "object",
574
- "properties": {
575
- "disabled": {
576
- "description": "Indicates if the plugin is disabled or not",
577
- "type": "boolean",
578
- "title": "disabled"
579
- }
580
- }
581
- },
582
- "sub": {
583
- "title": "EditableHtmlButtonConfigure",
584
- "type": "object",
585
- "properties": {
586
- "disabled": {
587
- "description": "Indicates if the plugin is disabled or not",
588
- "type": "boolean",
589
- "title": "disabled"
590
- }
591
- }
592
- },
593
- "sup": {
594
- "title": "EditableHtmlButtonConfigure",
595
- "type": "object",
596
- "properties": {
597
- "disabled": {
598
- "description": "Indicates if the plugin is disabled or not",
599
- "type": "boolean",
600
- "title": "disabled"
601
- }
602
- }
603
- },
604
- "table": {
605
- "title": "EditableHtmlButtonConfigure",
606
- "type": "object",
607
- "properties": {
608
- "disabled": {
609
- "description": "Indicates if the plugin is disabled or not",
610
- "type": "boolean",
611
- "title": "disabled"
612
- }
613
- }
614
- },
615
- "ul_list": {
616
- "title": "EditableHtmlButtonConfigure",
617
- "type": "object",
618
- "properties": {
619
- "disabled": {
620
- "description": "Indicates if the plugin is disabled or not",
621
- "type": "boolean",
622
- "title": "disabled"
623
- }
624
- }
625
- },
626
- "underline": {
627
- "title": "EditableHtmlButtonConfigure",
628
- "type": "object",
629
- "properties": {
630
- "disabled": {
631
- "description": "Indicates if the plugin is disabled or not",
632
- "type": "boolean",
633
- "title": "disabled"
634
- }
635
- }
636
- },
637
- "undo": {
638
- "title": "EditableHtmlButtonConfigure",
639
- "type": "object",
640
- "properties": {
641
- "disabled": {
642
- "description": "Indicates if the plugin is disabled or not",
643
- "type": "boolean",
644
- "title": "disabled"
645
- }
646
- }
647
- }
648
- }
649
- },
650
- "settings": {
651
- "description": "Indicates if the item has to be displayed in the Settings Panel",
652
- "type": "boolean",
653
- "title": "settings"
654
- },
655
- "label": {
656
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
657
- "type": "string",
658
- "title": "label"
659
- }
660
- }
661
- },
662
- "FractionModelOptionsConfigure": {
663
- "title": "FractionModelOptionsConfigure",
664
- "type": "object",
665
- "properties": {
666
- "maxOfModel": {
667
- "title": "ModelConfig",
668
- "type": "object",
669
- "properties": {
670
- "min": {
671
- "description": "Indicates the min value for number model",
672
- "type": "number",
673
- "title": "min"
674
- },
675
- "max": {
676
- "description": "Indicates the max value for number model",
677
- "type": "number",
678
- "title": "max"
679
- },
680
- "default": {
681
- "description": "Indicates the default value for number model",
682
- "type": "number",
683
- "title": "default"
684
- }
685
- }
686
- },
687
- "partsPerModel": {
688
- "title": "ModelConfig",
689
- "type": "object",
690
- "properties": {
691
- "min": {
692
- "description": "Indicates the min value for number model",
693
- "type": "number",
694
- "title": "min"
695
- },
696
- "max": {
697
- "description": "Indicates the max value for number model",
698
- "type": "number",
699
- "title": "max"
700
- },
701
- "default": {
702
- "description": "Indicates the default value for number model",
703
- "type": "number",
704
- "title": "default"
705
- }
706
- }
707
- },
708
- "modelTypeChoices": {
709
- "description": "Indicates the model types of item",
710
- "type": "array",
711
- "items": {
712
- "title": "ChoiceConfig",
713
- "type": "object",
714
- "properties": {
715
- "value": {
716
- "description": "Indicates the value for model choice",
717
- "type": "string",
718
- "title": "value"
719
- },
720
- "label": {
721
- "description": "Indicates the label for model choice",
722
- "type": "string",
723
- "title": "label"
724
- }
725
- },
726
- "required": [
727
- "label",
728
- "value"
729
- ]
730
- },
731
- "title": "modelTypeChoices"
732
- }
733
- }
734
- },
735
- "ModelConfig": {
736
- "title": "ModelConfig",
737
- "type": "object",
738
- "properties": {
739
- "min": {
740
- "description": "Indicates the min value for number model",
741
- "type": "number",
742
- "title": "min"
743
- },
744
- "max": {
745
- "description": "Indicates the max value for number model",
746
- "type": "number",
747
- "title": "max"
748
- },
749
- "default": {
750
- "description": "Indicates the default value for number model",
751
- "type": "number",
752
- "title": "default"
753
- }
754
- }
755
- },
756
- "ChoiceConfig": {
757
- "title": "ChoiceConfig",
758
- "type": "object",
759
- "properties": {
760
- "value": {
761
- "description": "Indicates the value for model choice",
762
- "type": "string",
763
- "title": "value"
764
- },
765
- "label": {
766
- "description": "Indicates the label for model choice",
767
- "type": "string",
768
- "title": "label"
769
- }
770
- },
771
- "required": [
772
- "label",
773
- "value"
774
- ]
775
- },
776
- "ConfigureMathMLProp": {
777
- "title": "ConfigureMathMLProp",
778
- "type": "object",
779
- "properties": {
780
- "mmlOutput": {
781
- "description": "Indicates if model should have mathML output instead of latex",
782
- "type": "number",
783
- "title": "mmlOutput"
784
- },
785
- "mmlEditing": {
786
- "description": "Indicates if mathML that's already in model should be editable",
787
- "type": "number",
788
- "title": "mmlEditing"
789
- }
790
- }
791
- },
792
- "ConfigurePropWithEnabled": {
793
- "title": "ConfigurePropWithEnabled",
794
- "type": "object",
795
- "properties": {
796
- "enabled": {
797
- "description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
798
- "type": "boolean",
799
- "title": "enabled"
800
- },
801
- "settings": {
802
- "description": "Indicates if the item has to be displayed in the Settings Panel",
803
- "type": "boolean",
804
- "title": "settings"
805
- },
806
- "label": {
807
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
808
- "type": "string",
809
- "title": "label"
810
- }
811
- }
812
- },
813
- "ConfigureLanguageOptionsProp": {
814
- "title": "ConfigureLanguageOptionsProp",
815
- "type": "object",
816
- "properties": {
817
- "value": {
818
- "description": "Value of the language option",
819
- "type": "string",
820
- "title": "value"
821
- },
822
- "label": {
823
- "description": "Label of the language option",
824
- "type": "string",
825
- "title": "label"
826
- }
827
- },
828
- "required": [
829
- "label",
830
- "value"
831
- ]
832
- },
833
- "ConfigureProp": {
834
- "title": "ConfigureProp",
835
- "type": "object",
836
- "properties": {
837
- "settings": {
838
- "description": "Indicates if the item has to be displayed in the Settings Panel",
839
- "type": "boolean",
840
- "title": "settings"
841
- },
842
- "label": {
843
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
844
- "type": "string",
845
- "title": "label"
846
- }
847
- }
848
- },
849
- "ResponseObject": {
850
- "description": "Model for the @pie-elements/fraction-model",
851
- "additionalProperties": false,
852
- "title": "ResponseObject",
853
- "type": "object",
854
- "properties": {
855
- "id": {
856
- "description": "Indicates the response id for bar or pie model",
857
- "type": "number",
858
- "title": "id"
859
- },
860
- "value": {
861
- "description": "Indicates the selected response sector for model value",
862
- "type": "number",
863
- "title": "value"
864
- }
865
- },
866
- "required": [
867
- "id",
868
- "value"
869
- ]
870
- }
871
- },
872
- "$schema": "http://json-schema.org/draft-07/schema#"
873
- }