@pie-element/inline-dropdown 10.1.2-next.2 → 10.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +1082 -0
- package/CHANGELOG.md +2192 -0
- package/LICENSE.md +5 -0
- package/README.md +1 -0
- package/configure/CHANGELOG.json +647 -0
- package/configure/CHANGELOG.md +1949 -0
- package/configure/lib/defaults.js +192 -0
- package/configure/lib/defaults.js.map +1 -0
- package/configure/lib/index.js +135 -0
- package/configure/lib/index.js.map +1 -0
- package/configure/lib/inline-dropdown-toolbar.js +456 -0
- package/configure/lib/inline-dropdown-toolbar.js.map +1 -0
- package/configure/lib/main.js +612 -0
- package/configure/lib/main.js.map +1 -0
- package/configure/lib/markupUtils.js +50 -0
- package/configure/lib/markupUtils.js.map +1 -0
- package/configure/lib/response-area.js +48 -0
- package/configure/lib/response-area.js.map +1 -0
- package/configure/lib/utils.js +22 -0
- package/configure/lib/utils.js.map +1 -0
- package/configure/package.json +24 -0
- package/controller/CHANGELOG.json +467 -0
- package/controller/CHANGELOG.md +1283 -0
- package/controller/lib/defaults.js +25 -0
- package/controller/lib/defaults.js.map +1 -0
- package/controller/lib/index.js +295 -0
- package/controller/lib/index.js.map +1 -0
- package/controller/lib/utils.js +32 -0
- package/controller/lib/utils.js.map +1 -0
- package/controller/package.json +16 -0
- package/docs/config-schema.json +2854 -0
- package/docs/config-schema.json.md +2106 -0
- package/docs/demo/config.js +8 -0
- package/docs/demo/generate.js +76 -0
- package/docs/demo/index.html +1 -0
- package/docs/demo/session.js +11 -0
- package/docs/pie-schema.json +1152 -0
- package/docs/pie-schema.json.md +814 -0
- package/lib/index.js +85 -0
- package/lib/index.js.map +1 -0
- package/lib/inline-dropdown.js +176 -0
- package/lib/inline-dropdown.js.map +1 -0
- package/package.json +21 -85
- package/configure.js +0 -2
- package/controller.js +0 -1
- package/dist/author/defaults.d.ts +0 -194
- package/dist/author/defaults.js +0 -130
- package/dist/author/index.d.ts +0 -43
- package/dist/author/index.js +0 -83
- package/dist/author/inline-dropdown-toolbar.d.ts +0 -48
- package/dist/author/inline-dropdown-toolbar.js +0 -268
- package/dist/author/main.d.ts +0 -49
- package/dist/author/main.js +0 -379
- package/dist/author/markupUtils.d.ts +0 -12
- package/dist/author/markupUtils.js +0 -23
- package/dist/author/response-area.d.ts +0 -20
- package/dist/author/response-area.js +0 -32
- package/dist/author/utils.d.ts +0 -10
- package/dist/author/utils.js +0 -10
- package/dist/browser/Close-ihSzAQyP.js +0 -9031
- package/dist/browser/Close-ihSzAQyP.js.map +0 -1
- package/dist/browser/author/index.js +0 -40578
- package/dist/browser/author/index.js.map +0 -1
- package/dist/browser/controller/index.js +0 -196
- package/dist/browser/controller/index.js.map +0 -1
- package/dist/browser/delivery/index.js +0 -2714
- package/dist/browser/delivery/index.js.map +0 -1
- package/dist/browser/dist-CAsDMEWi.js +0 -133
- package/dist/browser/dist-CAsDMEWi.js.map +0 -1
- package/dist/browser/inline-dropdown.css +0 -2
- package/dist/controller/defaults.d.ts +0 -27
- package/dist/controller/defaults.js +0 -21
- package/dist/controller/index.d.ts +0 -54
- package/dist/controller/index.js +0 -124
- package/dist/controller/utils.d.ts +0 -12
- package/dist/controller/utils.js +0 -13
- package/dist/delivery/index.d.ts +0 -20
- package/dist/delivery/index.js +0 -60
- package/dist/delivery/inline-dropdown.d.ts +0 -38
- package/dist/delivery/inline-dropdown.js +0 -109
- package/dist/index.d.ts +0 -1
- package/dist/index.iife.d.ts +0 -8
- package/dist/index.iife.js +0 -148
- package/dist/index.js +0 -2
- package/dist/runtime-support.d.ts +0 -12
- package/dist/runtime-support.js +0 -12
|
@@ -0,0 +1,814 @@
|
|
|
1
|
+
Model for the @pie-elements/inline-dropdown
|
|
2
|
+
|
|
3
|
+
The schema defines the following properties:
|
|
4
|
+
|
|
5
|
+
# `choices` (object, required)
|
|
6
|
+
|
|
7
|
+
* Object with all the available choices for each response area.
|
|
8
|
+
* Keys need to be integers from 0 to n - 1 (where n is the number of areas)
|
|
9
|
+
|
|
10
|
+
# `alternateResponses` (object, required)
|
|
11
|
+
|
|
12
|
+
Object that contains values that are right as well, besides the main one
|
|
13
|
+
|
|
14
|
+
# `markup` (string, required)
|
|
15
|
+
|
|
16
|
+
The markup for the pie-ui element
|
|
17
|
+
|
|
18
|
+
# `prompt` (string)
|
|
19
|
+
|
|
20
|
+
The item stem for the question
|
|
21
|
+
|
|
22
|
+
# `promptEnabled` (boolean)
|
|
23
|
+
|
|
24
|
+
Determines if prompt should show
|
|
25
|
+
|
|
26
|
+
# `lockChoiceOrder` (boolean, required)
|
|
27
|
+
|
|
28
|
+
Indicates if the user can lock the order of the choices
|
|
29
|
+
|
|
30
|
+
# `partialScoring` (boolean, required)
|
|
31
|
+
|
|
32
|
+
Indicates if partialScoring is enabled
|
|
33
|
+
|
|
34
|
+
# `rationale` (string, required)
|
|
35
|
+
|
|
36
|
+
Indicates correct answer rationale
|
|
37
|
+
|
|
38
|
+
# `scoringType` (string, enum, required)
|
|
39
|
+
|
|
40
|
+
Indicates scoring type
|
|
41
|
+
|
|
42
|
+
This element must be one of the following enum values:
|
|
43
|
+
|
|
44
|
+
* `auto`
|
|
45
|
+
* `rubric`
|
|
46
|
+
|
|
47
|
+
# `studentInstructions` (string)
|
|
48
|
+
|
|
49
|
+
Indicates student instructions
|
|
50
|
+
|
|
51
|
+
# `teacherInstructions` (string)
|
|
52
|
+
|
|
53
|
+
Indicates teacher instructions
|
|
54
|
+
|
|
55
|
+
# `rationaleEnabled` (boolean, required)
|
|
56
|
+
|
|
57
|
+
Indicates if Rationale are enabled
|
|
58
|
+
|
|
59
|
+
# `spellCheckEnabled` (boolean, required)
|
|
60
|
+
|
|
61
|
+
Indicates if spellcheck is enabled for the author. Default value is true
|
|
62
|
+
|
|
63
|
+
# `choiceRationaleEnabled` (boolean, required)
|
|
64
|
+
|
|
65
|
+
Indicates if Choice Level Rationales are enabled
|
|
66
|
+
|
|
67
|
+
# `studentInstructionsEnabled` (boolean, required)
|
|
68
|
+
|
|
69
|
+
Indicates if Student Instructions are enabled
|
|
70
|
+
|
|
71
|
+
# `teacherInstructionsEnabled` (boolean, required)
|
|
72
|
+
|
|
73
|
+
Indicates if Teacher Instructions are enabled
|
|
74
|
+
|
|
75
|
+
# `displayType` (string, required)
|
|
76
|
+
|
|
77
|
+
Indicates display type for the container of the pie-ui element
|
|
78
|
+
|
|
79
|
+
# `toolbarEditorPosition` (string, enum)
|
|
80
|
+
|
|
81
|
+
Indicates the editor's toolbar position which can be 'bottom' or 'top'
|
|
82
|
+
|
|
83
|
+
This element must be one of the following enum values:
|
|
84
|
+
|
|
85
|
+
* `bottom`
|
|
86
|
+
* `top`
|
|
87
|
+
|
|
88
|
+
Default: `": 'bottom'"`
|
|
89
|
+
|
|
90
|
+
# `rubricEnabled` (boolean, required)
|
|
91
|
+
|
|
92
|
+
Indicates if Rubric is enabled
|
|
93
|
+
|
|
94
|
+
# `language` (string)
|
|
95
|
+
|
|
96
|
+
Indicates the language of the component
|
|
97
|
+
Supported options: en, es, en_US, en-US, es_ES, es-ES, es_MX, es-MX
|
|
98
|
+
|
|
99
|
+
# `id` (string, required)
|
|
100
|
+
|
|
101
|
+
Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.
|
|
102
|
+
|
|
103
|
+
# `element` (string, required)
|
|
104
|
+
|
|
105
|
+
The html Element tag name
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
# Sub Schemas
|
|
110
|
+
|
|
111
|
+
The schema defines the following additional types:
|
|
112
|
+
|
|
113
|
+
## `EditableHtmlConfigureProp` (object)
|
|
114
|
+
|
|
115
|
+
Properties of the `EditableHtmlConfigureProp` object:
|
|
116
|
+
|
|
117
|
+
### `math` (object)
|
|
118
|
+
|
|
119
|
+
Properties of the `math` object:
|
|
120
|
+
|
|
121
|
+
#### `disabled` (boolean)
|
|
122
|
+
|
|
123
|
+
Indicates if the plugin is disabled or not
|
|
124
|
+
|
|
125
|
+
### `audio` (object)
|
|
126
|
+
|
|
127
|
+
Properties of the `audio` object:
|
|
128
|
+
|
|
129
|
+
#### `disabled` (boolean)
|
|
130
|
+
|
|
131
|
+
Indicates if the plugin is disabled or not
|
|
132
|
+
|
|
133
|
+
### `video` (object)
|
|
134
|
+
|
|
135
|
+
Properties of the `video` object:
|
|
136
|
+
|
|
137
|
+
#### `disabled` (boolean)
|
|
138
|
+
|
|
139
|
+
Indicates if the plugin is disabled or not
|
|
140
|
+
|
|
141
|
+
### `image` (object)
|
|
142
|
+
|
|
143
|
+
Properties of the `image` object:
|
|
144
|
+
|
|
145
|
+
#### `disabled` (boolean)
|
|
146
|
+
|
|
147
|
+
Indicates if the plugin is disabled or not
|
|
148
|
+
|
|
149
|
+
### `customPlugins` (array)
|
|
150
|
+
|
|
151
|
+
An array of objects that determine custom plugins.
|
|
152
|
+
A 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).
|
|
153
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
154
|
+
|
|
155
|
+
The object is an array with all elements of the type `object`.
|
|
156
|
+
|
|
157
|
+
The array object has the following properties:
|
|
158
|
+
|
|
159
|
+
#### `event` (string, required)
|
|
160
|
+
|
|
161
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
162
|
+
PIE will emit the event prefixed with "PIE-".
|
|
163
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
164
|
+
|
|
165
|
+
#### `iconAlt` (string, required)
|
|
166
|
+
|
|
167
|
+
The alt for the custom button icon
|
|
168
|
+
|
|
169
|
+
#### `iconType` (string, required)
|
|
170
|
+
|
|
171
|
+
The icon type.
|
|
172
|
+
Currently, only "SVG" is supported.
|
|
173
|
+
|
|
174
|
+
#### `icon` (string, required)
|
|
175
|
+
|
|
176
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
177
|
+
|
|
178
|
+
### `blockquote` (object)
|
|
179
|
+
|
|
180
|
+
Properties of the `blockquote` object:
|
|
181
|
+
|
|
182
|
+
#### `disabled` (boolean)
|
|
183
|
+
|
|
184
|
+
Indicates if the plugin is disabled or not
|
|
185
|
+
|
|
186
|
+
### `h3` (object)
|
|
187
|
+
|
|
188
|
+
Properties of the `h3` object:
|
|
189
|
+
|
|
190
|
+
#### `disabled` (boolean)
|
|
191
|
+
|
|
192
|
+
Indicates if the plugin is disabled or not
|
|
193
|
+
|
|
194
|
+
### `characters` (object)
|
|
195
|
+
|
|
196
|
+
Properties of the `characters` object:
|
|
197
|
+
|
|
198
|
+
#### `disabled` (boolean)
|
|
199
|
+
|
|
200
|
+
Indicates if the plugin is disabled or not
|
|
201
|
+
|
|
202
|
+
### `bold` (object)
|
|
203
|
+
|
|
204
|
+
Properties of the `bold` object:
|
|
205
|
+
|
|
206
|
+
#### `disabled` (boolean)
|
|
207
|
+
|
|
208
|
+
Indicates if the plugin is disabled or not
|
|
209
|
+
|
|
210
|
+
### `html` (object)
|
|
211
|
+
|
|
212
|
+
Properties of the `html` object:
|
|
213
|
+
|
|
214
|
+
#### `disabled` (boolean)
|
|
215
|
+
|
|
216
|
+
Indicates if the plugin is disabled or not
|
|
217
|
+
|
|
218
|
+
### `italic` (object)
|
|
219
|
+
|
|
220
|
+
Properties of the `italic` object:
|
|
221
|
+
|
|
222
|
+
#### `disabled` (boolean)
|
|
223
|
+
|
|
224
|
+
Indicates if the plugin is disabled or not
|
|
225
|
+
|
|
226
|
+
### `ol_list` (object)
|
|
227
|
+
|
|
228
|
+
Properties of the `ol_list` object:
|
|
229
|
+
|
|
230
|
+
#### `disabled` (boolean)
|
|
231
|
+
|
|
232
|
+
Indicates if the plugin is disabled or not
|
|
233
|
+
|
|
234
|
+
### `redo` (object)
|
|
235
|
+
|
|
236
|
+
Properties of the `redo` object:
|
|
237
|
+
|
|
238
|
+
#### `disabled` (boolean)
|
|
239
|
+
|
|
240
|
+
Indicates if the plugin is disabled or not
|
|
241
|
+
|
|
242
|
+
### `strikethrough` (object)
|
|
243
|
+
|
|
244
|
+
Properties of the `strikethrough` object:
|
|
245
|
+
|
|
246
|
+
#### `disabled` (boolean)
|
|
247
|
+
|
|
248
|
+
Indicates if the plugin is disabled or not
|
|
249
|
+
|
|
250
|
+
### `sub` (object)
|
|
251
|
+
|
|
252
|
+
Properties of the `sub` object:
|
|
253
|
+
|
|
254
|
+
#### `disabled` (boolean)
|
|
255
|
+
|
|
256
|
+
Indicates if the plugin is disabled or not
|
|
257
|
+
|
|
258
|
+
### `sup` (object)
|
|
259
|
+
|
|
260
|
+
Properties of the `sup` object:
|
|
261
|
+
|
|
262
|
+
#### `disabled` (boolean)
|
|
263
|
+
|
|
264
|
+
Indicates if the plugin is disabled or not
|
|
265
|
+
|
|
266
|
+
### `table` (object)
|
|
267
|
+
|
|
268
|
+
Properties of the `table` object:
|
|
269
|
+
|
|
270
|
+
#### `disabled` (boolean)
|
|
271
|
+
|
|
272
|
+
Indicates if the plugin is disabled or not
|
|
273
|
+
|
|
274
|
+
### `ul_list` (object)
|
|
275
|
+
|
|
276
|
+
Properties of the `ul_list` object:
|
|
277
|
+
|
|
278
|
+
#### `disabled` (boolean)
|
|
279
|
+
|
|
280
|
+
Indicates if the plugin is disabled or not
|
|
281
|
+
|
|
282
|
+
### `underline` (object)
|
|
283
|
+
|
|
284
|
+
Properties of the `underline` object:
|
|
285
|
+
|
|
286
|
+
#### `disabled` (boolean)
|
|
287
|
+
|
|
288
|
+
Indicates if the plugin is disabled or not
|
|
289
|
+
|
|
290
|
+
### `undo` (object)
|
|
291
|
+
|
|
292
|
+
Properties of the `undo` object:
|
|
293
|
+
|
|
294
|
+
#### `disabled` (boolean)
|
|
295
|
+
|
|
296
|
+
Indicates if the plugin is disabled or not
|
|
297
|
+
|
|
298
|
+
## `EditableHtmlButtonConfigure` (object)
|
|
299
|
+
|
|
300
|
+
Properties of the `EditableHtmlButtonConfigure` object:
|
|
301
|
+
|
|
302
|
+
### `disabled` (boolean)
|
|
303
|
+
|
|
304
|
+
Indicates if the plugin is disabled or not
|
|
305
|
+
|
|
306
|
+
## `CustomPlugin` (object)
|
|
307
|
+
|
|
308
|
+
Properties of the `CustomPlugin` object:
|
|
309
|
+
|
|
310
|
+
### `event` (string, required)
|
|
311
|
+
|
|
312
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
313
|
+
PIE will emit the event prefixed with "PIE-".
|
|
314
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
315
|
+
|
|
316
|
+
### `iconAlt` (string, required)
|
|
317
|
+
|
|
318
|
+
The alt for the custom button icon
|
|
319
|
+
|
|
320
|
+
### `iconType` (string, required)
|
|
321
|
+
|
|
322
|
+
The icon type.
|
|
323
|
+
Currently, only "SVG" is supported.
|
|
324
|
+
|
|
325
|
+
### `icon` (string, required)
|
|
326
|
+
|
|
327
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
328
|
+
|
|
329
|
+
## `ConfigureProp` (object)
|
|
330
|
+
|
|
331
|
+
Properties of the `ConfigureProp` object:
|
|
332
|
+
|
|
333
|
+
### `settings` (boolean)
|
|
334
|
+
|
|
335
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
336
|
+
|
|
337
|
+
### `label` (string)
|
|
338
|
+
|
|
339
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
340
|
+
|
|
341
|
+
## `EditableHtmlPluginConfigureRequired` (object)
|
|
342
|
+
|
|
343
|
+
Properties of the `EditableHtmlPluginConfigureRequired` object:
|
|
344
|
+
|
|
345
|
+
### `inputConfiguration` (object)
|
|
346
|
+
|
|
347
|
+
Properties of the `inputConfiguration` object:
|
|
348
|
+
|
|
349
|
+
#### `math` (object)
|
|
350
|
+
|
|
351
|
+
Properties of the `math` object:
|
|
352
|
+
|
|
353
|
+
##### `disabled` (boolean)
|
|
354
|
+
|
|
355
|
+
Indicates if the plugin is disabled or not
|
|
356
|
+
|
|
357
|
+
#### `audio` (object)
|
|
358
|
+
|
|
359
|
+
Properties of the `audio` object:
|
|
360
|
+
|
|
361
|
+
##### `disabled` (boolean)
|
|
362
|
+
|
|
363
|
+
Indicates if the plugin is disabled or not
|
|
364
|
+
|
|
365
|
+
#### `video` (object)
|
|
366
|
+
|
|
367
|
+
Properties of the `video` object:
|
|
368
|
+
|
|
369
|
+
##### `disabled` (boolean)
|
|
370
|
+
|
|
371
|
+
Indicates if the plugin is disabled or not
|
|
372
|
+
|
|
373
|
+
#### `image` (object)
|
|
374
|
+
|
|
375
|
+
Properties of the `image` object:
|
|
376
|
+
|
|
377
|
+
##### `disabled` (boolean)
|
|
378
|
+
|
|
379
|
+
Indicates if the plugin is disabled or not
|
|
380
|
+
|
|
381
|
+
#### `customPlugins` (array)
|
|
382
|
+
|
|
383
|
+
An array of objects that determine custom plugins.
|
|
384
|
+
A 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).
|
|
385
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
386
|
+
|
|
387
|
+
The object is an array with all elements of the type `object`.
|
|
388
|
+
|
|
389
|
+
The array object has the following properties:
|
|
390
|
+
|
|
391
|
+
##### `event` (string, required)
|
|
392
|
+
|
|
393
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
394
|
+
PIE will emit the event prefixed with "PIE-".
|
|
395
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
396
|
+
|
|
397
|
+
##### `iconAlt` (string, required)
|
|
398
|
+
|
|
399
|
+
The alt for the custom button icon
|
|
400
|
+
|
|
401
|
+
##### `iconType` (string, required)
|
|
402
|
+
|
|
403
|
+
The icon type.
|
|
404
|
+
Currently, only "SVG" is supported.
|
|
405
|
+
|
|
406
|
+
##### `icon` (string, required)
|
|
407
|
+
|
|
408
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
409
|
+
|
|
410
|
+
#### `blockquote` (object)
|
|
411
|
+
|
|
412
|
+
Properties of the `blockquote` object:
|
|
413
|
+
|
|
414
|
+
##### `disabled` (boolean)
|
|
415
|
+
|
|
416
|
+
Indicates if the plugin is disabled or not
|
|
417
|
+
|
|
418
|
+
#### `h3` (object)
|
|
419
|
+
|
|
420
|
+
Properties of the `h3` object:
|
|
421
|
+
|
|
422
|
+
##### `disabled` (boolean)
|
|
423
|
+
|
|
424
|
+
Indicates if the plugin is disabled or not
|
|
425
|
+
|
|
426
|
+
#### `characters` (object)
|
|
427
|
+
|
|
428
|
+
Properties of the `characters` object:
|
|
429
|
+
|
|
430
|
+
##### `disabled` (boolean)
|
|
431
|
+
|
|
432
|
+
Indicates if the plugin is disabled or not
|
|
433
|
+
|
|
434
|
+
#### `bold` (object)
|
|
435
|
+
|
|
436
|
+
Properties of the `bold` object:
|
|
437
|
+
|
|
438
|
+
##### `disabled` (boolean)
|
|
439
|
+
|
|
440
|
+
Indicates if the plugin is disabled or not
|
|
441
|
+
|
|
442
|
+
#### `html` (object)
|
|
443
|
+
|
|
444
|
+
Properties of the `html` object:
|
|
445
|
+
|
|
446
|
+
##### `disabled` (boolean)
|
|
447
|
+
|
|
448
|
+
Indicates if the plugin is disabled or not
|
|
449
|
+
|
|
450
|
+
#### `italic` (object)
|
|
451
|
+
|
|
452
|
+
Properties of the `italic` object:
|
|
453
|
+
|
|
454
|
+
##### `disabled` (boolean)
|
|
455
|
+
|
|
456
|
+
Indicates if the plugin is disabled or not
|
|
457
|
+
|
|
458
|
+
#### `ol_list` (object)
|
|
459
|
+
|
|
460
|
+
Properties of the `ol_list` object:
|
|
461
|
+
|
|
462
|
+
##### `disabled` (boolean)
|
|
463
|
+
|
|
464
|
+
Indicates if the plugin is disabled or not
|
|
465
|
+
|
|
466
|
+
#### `redo` (object)
|
|
467
|
+
|
|
468
|
+
Properties of the `redo` object:
|
|
469
|
+
|
|
470
|
+
##### `disabled` (boolean)
|
|
471
|
+
|
|
472
|
+
Indicates if the plugin is disabled or not
|
|
473
|
+
|
|
474
|
+
#### `strikethrough` (object)
|
|
475
|
+
|
|
476
|
+
Properties of the `strikethrough` object:
|
|
477
|
+
|
|
478
|
+
##### `disabled` (boolean)
|
|
479
|
+
|
|
480
|
+
Indicates if the plugin is disabled or not
|
|
481
|
+
|
|
482
|
+
#### `sub` (object)
|
|
483
|
+
|
|
484
|
+
Properties of the `sub` object:
|
|
485
|
+
|
|
486
|
+
##### `disabled` (boolean)
|
|
487
|
+
|
|
488
|
+
Indicates if the plugin is disabled or not
|
|
489
|
+
|
|
490
|
+
#### `sup` (object)
|
|
491
|
+
|
|
492
|
+
Properties of the `sup` object:
|
|
493
|
+
|
|
494
|
+
##### `disabled` (boolean)
|
|
495
|
+
|
|
496
|
+
Indicates if the plugin is disabled or not
|
|
497
|
+
|
|
498
|
+
#### `table` (object)
|
|
499
|
+
|
|
500
|
+
Properties of the `table` object:
|
|
501
|
+
|
|
502
|
+
##### `disabled` (boolean)
|
|
503
|
+
|
|
504
|
+
Indicates if the plugin is disabled or not
|
|
505
|
+
|
|
506
|
+
#### `ul_list` (object)
|
|
507
|
+
|
|
508
|
+
Properties of the `ul_list` object:
|
|
509
|
+
|
|
510
|
+
##### `disabled` (boolean)
|
|
511
|
+
|
|
512
|
+
Indicates if the plugin is disabled or not
|
|
513
|
+
|
|
514
|
+
#### `underline` (object)
|
|
515
|
+
|
|
516
|
+
Properties of the `underline` object:
|
|
517
|
+
|
|
518
|
+
##### `disabled` (boolean)
|
|
519
|
+
|
|
520
|
+
Indicates if the plugin is disabled or not
|
|
521
|
+
|
|
522
|
+
#### `undo` (object)
|
|
523
|
+
|
|
524
|
+
Properties of the `undo` object:
|
|
525
|
+
|
|
526
|
+
##### `disabled` (boolean)
|
|
527
|
+
|
|
528
|
+
Indicates if the plugin is disabled or not
|
|
529
|
+
|
|
530
|
+
### `required` (boolean)
|
|
531
|
+
|
|
532
|
+
Indicates if the item is required and the value cannot be empty
|
|
533
|
+
|
|
534
|
+
### `settings` (boolean)
|
|
535
|
+
|
|
536
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
537
|
+
|
|
538
|
+
### `label` (string)
|
|
539
|
+
|
|
540
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
541
|
+
|
|
542
|
+
## `EditableHtmlPluginConfigure` (object)
|
|
543
|
+
|
|
544
|
+
Properties of the `EditableHtmlPluginConfigure` object:
|
|
545
|
+
|
|
546
|
+
### `inputConfiguration` (object)
|
|
547
|
+
|
|
548
|
+
Properties of the `inputConfiguration` object:
|
|
549
|
+
|
|
550
|
+
#### `math` (object)
|
|
551
|
+
|
|
552
|
+
Properties of the `math` object:
|
|
553
|
+
|
|
554
|
+
##### `disabled` (boolean)
|
|
555
|
+
|
|
556
|
+
Indicates if the plugin is disabled or not
|
|
557
|
+
|
|
558
|
+
#### `audio` (object)
|
|
559
|
+
|
|
560
|
+
Properties of the `audio` object:
|
|
561
|
+
|
|
562
|
+
##### `disabled` (boolean)
|
|
563
|
+
|
|
564
|
+
Indicates if the plugin is disabled or not
|
|
565
|
+
|
|
566
|
+
#### `video` (object)
|
|
567
|
+
|
|
568
|
+
Properties of the `video` object:
|
|
569
|
+
|
|
570
|
+
##### `disabled` (boolean)
|
|
571
|
+
|
|
572
|
+
Indicates if the plugin is disabled or not
|
|
573
|
+
|
|
574
|
+
#### `image` (object)
|
|
575
|
+
|
|
576
|
+
Properties of the `image` object:
|
|
577
|
+
|
|
578
|
+
##### `disabled` (boolean)
|
|
579
|
+
|
|
580
|
+
Indicates if the plugin is disabled or not
|
|
581
|
+
|
|
582
|
+
#### `customPlugins` (array)
|
|
583
|
+
|
|
584
|
+
An array of objects that determine custom plugins.
|
|
585
|
+
A 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).
|
|
586
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
587
|
+
|
|
588
|
+
The object is an array with all elements of the type `object`.
|
|
589
|
+
|
|
590
|
+
The array object has the following properties:
|
|
591
|
+
|
|
592
|
+
##### `event` (string, required)
|
|
593
|
+
|
|
594
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
595
|
+
PIE will emit the event prefixed with "PIE-".
|
|
596
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
597
|
+
|
|
598
|
+
##### `iconAlt` (string, required)
|
|
599
|
+
|
|
600
|
+
The alt for the custom button icon
|
|
601
|
+
|
|
602
|
+
##### `iconType` (string, required)
|
|
603
|
+
|
|
604
|
+
The icon type.
|
|
605
|
+
Currently, only "SVG" is supported.
|
|
606
|
+
|
|
607
|
+
##### `icon` (string, required)
|
|
608
|
+
|
|
609
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
610
|
+
|
|
611
|
+
#### `blockquote` (object)
|
|
612
|
+
|
|
613
|
+
Properties of the `blockquote` object:
|
|
614
|
+
|
|
615
|
+
##### `disabled` (boolean)
|
|
616
|
+
|
|
617
|
+
Indicates if the plugin is disabled or not
|
|
618
|
+
|
|
619
|
+
#### `h3` (object)
|
|
620
|
+
|
|
621
|
+
Properties of the `h3` object:
|
|
622
|
+
|
|
623
|
+
##### `disabled` (boolean)
|
|
624
|
+
|
|
625
|
+
Indicates if the plugin is disabled or not
|
|
626
|
+
|
|
627
|
+
#### `characters` (object)
|
|
628
|
+
|
|
629
|
+
Properties of the `characters` object:
|
|
630
|
+
|
|
631
|
+
##### `disabled` (boolean)
|
|
632
|
+
|
|
633
|
+
Indicates if the plugin is disabled or not
|
|
634
|
+
|
|
635
|
+
#### `bold` (object)
|
|
636
|
+
|
|
637
|
+
Properties of the `bold` object:
|
|
638
|
+
|
|
639
|
+
##### `disabled` (boolean)
|
|
640
|
+
|
|
641
|
+
Indicates if the plugin is disabled or not
|
|
642
|
+
|
|
643
|
+
#### `html` (object)
|
|
644
|
+
|
|
645
|
+
Properties of the `html` object:
|
|
646
|
+
|
|
647
|
+
##### `disabled` (boolean)
|
|
648
|
+
|
|
649
|
+
Indicates if the plugin is disabled or not
|
|
650
|
+
|
|
651
|
+
#### `italic` (object)
|
|
652
|
+
|
|
653
|
+
Properties of the `italic` object:
|
|
654
|
+
|
|
655
|
+
##### `disabled` (boolean)
|
|
656
|
+
|
|
657
|
+
Indicates if the plugin is disabled or not
|
|
658
|
+
|
|
659
|
+
#### `ol_list` (object)
|
|
660
|
+
|
|
661
|
+
Properties of the `ol_list` object:
|
|
662
|
+
|
|
663
|
+
##### `disabled` (boolean)
|
|
664
|
+
|
|
665
|
+
Indicates if the plugin is disabled or not
|
|
666
|
+
|
|
667
|
+
#### `redo` (object)
|
|
668
|
+
|
|
669
|
+
Properties of the `redo` object:
|
|
670
|
+
|
|
671
|
+
##### `disabled` (boolean)
|
|
672
|
+
|
|
673
|
+
Indicates if the plugin is disabled or not
|
|
674
|
+
|
|
675
|
+
#### `strikethrough` (object)
|
|
676
|
+
|
|
677
|
+
Properties of the `strikethrough` object:
|
|
678
|
+
|
|
679
|
+
##### `disabled` (boolean)
|
|
680
|
+
|
|
681
|
+
Indicates if the plugin is disabled or not
|
|
682
|
+
|
|
683
|
+
#### `sub` (object)
|
|
684
|
+
|
|
685
|
+
Properties of the `sub` object:
|
|
686
|
+
|
|
687
|
+
##### `disabled` (boolean)
|
|
688
|
+
|
|
689
|
+
Indicates if the plugin is disabled or not
|
|
690
|
+
|
|
691
|
+
#### `sup` (object)
|
|
692
|
+
|
|
693
|
+
Properties of the `sup` object:
|
|
694
|
+
|
|
695
|
+
##### `disabled` (boolean)
|
|
696
|
+
|
|
697
|
+
Indicates if the plugin is disabled or not
|
|
698
|
+
|
|
699
|
+
#### `table` (object)
|
|
700
|
+
|
|
701
|
+
Properties of the `table` object:
|
|
702
|
+
|
|
703
|
+
##### `disabled` (boolean)
|
|
704
|
+
|
|
705
|
+
Indicates if the plugin is disabled or not
|
|
706
|
+
|
|
707
|
+
#### `ul_list` (object)
|
|
708
|
+
|
|
709
|
+
Properties of the `ul_list` object:
|
|
710
|
+
|
|
711
|
+
##### `disabled` (boolean)
|
|
712
|
+
|
|
713
|
+
Indicates if the plugin is disabled or not
|
|
714
|
+
|
|
715
|
+
#### `underline` (object)
|
|
716
|
+
|
|
717
|
+
Properties of the `underline` object:
|
|
718
|
+
|
|
719
|
+
##### `disabled` (boolean)
|
|
720
|
+
|
|
721
|
+
Indicates if the plugin is disabled or not
|
|
722
|
+
|
|
723
|
+
#### `undo` (object)
|
|
724
|
+
|
|
725
|
+
Properties of the `undo` object:
|
|
726
|
+
|
|
727
|
+
##### `disabled` (boolean)
|
|
728
|
+
|
|
729
|
+
Indicates if the plugin is disabled or not
|
|
730
|
+
|
|
731
|
+
### `settings` (boolean)
|
|
732
|
+
|
|
733
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
734
|
+
|
|
735
|
+
### `label` (string)
|
|
736
|
+
|
|
737
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
738
|
+
|
|
739
|
+
## `ConfigureMaxImageDimensionsProp` (object)
|
|
740
|
+
|
|
741
|
+
Properties of the `ConfigureMaxImageDimensionsProp` object:
|
|
742
|
+
|
|
743
|
+
### `teacherInstructions` (number)
|
|
744
|
+
|
|
745
|
+
Indicates the max dimension for images in teacher instructions
|
|
746
|
+
|
|
747
|
+
### `prompt` (number)
|
|
748
|
+
|
|
749
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
750
|
+
|
|
751
|
+
### `rationale` (number)
|
|
752
|
+
|
|
753
|
+
Indicates the max dimension for images in rationale
|
|
754
|
+
|
|
755
|
+
## `ConfigureMathMLProp` (object)
|
|
756
|
+
|
|
757
|
+
Properties of the `ConfigureMathMLProp` object:
|
|
758
|
+
|
|
759
|
+
### `mmlOutput` (number)
|
|
760
|
+
|
|
761
|
+
Indicates if model should have mathML output instead of latex
|
|
762
|
+
|
|
763
|
+
### `mmlEditing` (number)
|
|
764
|
+
|
|
765
|
+
Indicates if mathML that's already in model should be editable
|
|
766
|
+
|
|
767
|
+
## `ConfigurePropWithEnabled` (object)
|
|
768
|
+
|
|
769
|
+
Properties of the `ConfigurePropWithEnabled` object:
|
|
770
|
+
|
|
771
|
+
### `enabled` (boolean)
|
|
772
|
+
|
|
773
|
+
Indicates the value of the item if it affects config-ui
|
|
774
|
+
(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
|
|
775
|
+
|
|
776
|
+
### `settings` (boolean)
|
|
777
|
+
|
|
778
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
779
|
+
|
|
780
|
+
### `label` (string)
|
|
781
|
+
|
|
782
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
783
|
+
|
|
784
|
+
## `ConfigureLanguageOptionsProp` (object)
|
|
785
|
+
|
|
786
|
+
Properties of the `ConfigureLanguageOptionsProp` object:
|
|
787
|
+
|
|
788
|
+
### `value` (string, required)
|
|
789
|
+
|
|
790
|
+
Value of the language option
|
|
791
|
+
|
|
792
|
+
### `label` (string, required)
|
|
793
|
+
|
|
794
|
+
Label of the language option
|
|
795
|
+
|
|
796
|
+
## `Choice` (object)
|
|
797
|
+
|
|
798
|
+
Properties of the `Choice` object:
|
|
799
|
+
|
|
800
|
+
### `value` (string, required)
|
|
801
|
+
|
|
802
|
+
The value for the choice
|
|
803
|
+
|
|
804
|
+
### `label` (string, required)
|
|
805
|
+
|
|
806
|
+
The label of the choice
|
|
807
|
+
|
|
808
|
+
### `correct` (boolean)
|
|
809
|
+
|
|
810
|
+
Indicates if choice is correct
|
|
811
|
+
|
|
812
|
+
### `rationale` (string)
|
|
813
|
+
|
|
814
|
+
Rationale for the choice
|