@pie-element/likert 4.1.2-next.2 → 4.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 +1 -0
- package/CHANGELOG.md +1462 -0
- package/LICENSE.md +5 -0
- package/configure/CHANGELOG.json +1 -0
- package/configure/CHANGELOG.md +1379 -0
- package/configure/lib/choiceGenerator.js +219 -0
- package/configure/lib/choiceGenerator.js.map +1 -0
- package/configure/lib/defaults.js +100 -0
- package/configure/lib/defaults.js.map +1 -0
- package/configure/lib/index.js +106 -0
- package/configure/lib/index.js.map +1 -0
- package/configure/lib/likertEntities.js +24 -0
- package/configure/lib/likertEntities.js.map +1 -0
- package/configure/lib/main.js +388 -0
- package/configure/lib/main.js.map +1 -0
- package/configure/package.json +27 -0
- package/controller/CHANGELOG.json +1 -0
- package/controller/CHANGELOG.md +90 -0
- package/controller/lib/defaults.js +17 -0
- package/controller/lib/defaults.js.map +1 -0
- package/controller/lib/index.js +81 -0
- package/controller/lib/index.js.map +1 -0
- package/controller/package.json +17 -0
- package/docs/config-schema.json +2011 -0
- package/docs/config-schema.json.md +1487 -0
- package/docs/demo/config.js +8 -0
- package/docs/demo/generate.js +22 -0
- package/docs/demo/index.html +1 -0
- package/docs/demo/session.js +6 -0
- package/docs/pie-schema.json +966 -0
- package/docs/pie-schema.json.md +711 -0
- package/lib/choice-input.js +90 -0
- package/lib/choice-input.js.map +1 -0
- package/lib/index.js +64 -0
- package/lib/index.js.map +1 -0
- package/lib/likert.js +97 -0
- package/lib/likert.js.map +1 -0
- package/lib/likertEntities.js +11 -0
- package/lib/likertEntities.js.map +1 -0
- package/lib/main.js +42 -0
- package/lib/main.js.map +1 -0
- package/lib/session-updater.js +15 -0
- package/lib/session-updater.js.map +1 -0
- package/package.json +21 -83
- package/readme.md +55 -0
- package/configure.js +0 -2
- package/controller.js +0 -1
- package/dist/author/choiceGenerator.d.ts +0 -13
- package/dist/author/choiceGenerator.js +0 -255
- package/dist/author/defaults.d.ts +0 -102
- package/dist/author/defaults.js +0 -60
- package/dist/author/index.d.ts +0 -31
- package/dist/author/index.js +0 -73
- package/dist/author/likertEntities.d.ts +0 -25
- package/dist/author/likertEntities.js +0 -18
- package/dist/author/main.d.ts +0 -27
- package/dist/author/main.js +0 -298
- package/dist/browser/Radio-DlviDURs.js +0 -9454
- package/dist/browser/Radio-DlviDURs.js.map +0 -1
- package/dist/browser/author/index.js +0 -39374
- package/dist/browser/author/index.js.map +0 -1
- package/dist/browser/controller/index.js +0 -51
- package/dist/browser/controller/index.js.map +0 -1
- package/dist/browser/delivery/index.js +0 -219
- package/dist/browser/delivery/index.js.map +0 -1
- package/dist/browser/likert.css +0 -2
- package/dist/controller/defaults.d.ts +0 -19
- package/dist/controller/defaults.js +0 -13
- package/dist/controller/index.d.ts +0 -19
- package/dist/controller/index.js +0 -41
- package/dist/delivery/choice-input.d.ts +0 -27
- package/dist/delivery/choice-input.js +0 -59
- package/dist/delivery/index.d.ts +0 -19
- package/dist/delivery/index.js +0 -44
- package/dist/delivery/likert.d.ts +0 -26
- package/dist/delivery/likert.js +0 -70
- package/dist/delivery/likertEntities.d.ts +0 -12
- package/dist/delivery/likertEntities.js +0 -7
- package/dist/delivery/main.d.ts +0 -23
- package/dist/delivery/main.js +0 -37
- package/dist/delivery/session-updater.d.ts +0 -9
- package/dist/index.d.ts +0 -1
- package/dist/index.iife.d.ts +0 -8
- package/dist/index.iife.js +0 -145
- package/dist/index.js +0 -2
- package/dist/runtime-support.d.ts +0 -12
- package/dist/runtime-support.js +0 -12
|
@@ -0,0 +1,711 @@
|
|
|
1
|
+
Model for the Likert Interaction
|
|
2
|
+
|
|
3
|
+
The schema defines the following properties:
|
|
4
|
+
|
|
5
|
+
# `likertScale` (string, enum)
|
|
6
|
+
|
|
7
|
+
Indicates the likert scale
|
|
8
|
+
|
|
9
|
+
This element must be one of the following enum values:
|
|
10
|
+
|
|
11
|
+
* `likert3`
|
|
12
|
+
* `likert5`
|
|
13
|
+
* `likert7`
|
|
14
|
+
|
|
15
|
+
# `likertType` (string, enum)
|
|
16
|
+
|
|
17
|
+
Indicates the likert type
|
|
18
|
+
|
|
19
|
+
This element must be one of the following enum values:
|
|
20
|
+
|
|
21
|
+
* `agreement`
|
|
22
|
+
* `frequency`
|
|
23
|
+
* `importance`
|
|
24
|
+
* `like`
|
|
25
|
+
* `likelihood`
|
|
26
|
+
* `yesNo`
|
|
27
|
+
|
|
28
|
+
# `likertOrientation` (string, enum)
|
|
29
|
+
|
|
30
|
+
Indicates the likert type
|
|
31
|
+
|
|
32
|
+
This element must be one of the following enum values:
|
|
33
|
+
|
|
34
|
+
* `horizontal`
|
|
35
|
+
* `vertical`
|
|
36
|
+
|
|
37
|
+
# `choices` (array, required)
|
|
38
|
+
|
|
39
|
+
The choice options for the question
|
|
40
|
+
|
|
41
|
+
The object is an array with all elements of the type `object`.
|
|
42
|
+
|
|
43
|
+
The array object has the following properties:
|
|
44
|
+
|
|
45
|
+
## `value` (string, required)
|
|
46
|
+
|
|
47
|
+
the value that will be stored if this likert choice is selected
|
|
48
|
+
|
|
49
|
+
## `label` (string, required)
|
|
50
|
+
|
|
51
|
+
the text label that will be presented to the user for this likert choice
|
|
52
|
+
|
|
53
|
+
# `teacherInstructionsEnabled` (boolean, required)
|
|
54
|
+
|
|
55
|
+
Indicates if Teacher Instructions are enabled
|
|
56
|
+
|
|
57
|
+
# `spellCheckEnabled` (boolean, required)
|
|
58
|
+
|
|
59
|
+
Indicates if spellcheck is enabled for the author. Default value is true
|
|
60
|
+
|
|
61
|
+
# `id` (string, required)
|
|
62
|
+
|
|
63
|
+
Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.
|
|
64
|
+
|
|
65
|
+
# `element` (string, required)
|
|
66
|
+
|
|
67
|
+
The html Element tag name
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
# Sub Schemas
|
|
72
|
+
|
|
73
|
+
The schema defines the following additional types:
|
|
74
|
+
|
|
75
|
+
## `ConfigureProp` (object)
|
|
76
|
+
|
|
77
|
+
Properties of the `ConfigureProp` object:
|
|
78
|
+
|
|
79
|
+
### `settings` (boolean)
|
|
80
|
+
|
|
81
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
82
|
+
|
|
83
|
+
### `label` (string)
|
|
84
|
+
|
|
85
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
86
|
+
|
|
87
|
+
## `EditableHtmlPluginConfigureRequired` (object)
|
|
88
|
+
|
|
89
|
+
Properties of the `EditableHtmlPluginConfigureRequired` object:
|
|
90
|
+
|
|
91
|
+
### `inputConfiguration` (object)
|
|
92
|
+
|
|
93
|
+
Properties of the `inputConfiguration` object:
|
|
94
|
+
|
|
95
|
+
#### `math` (object)
|
|
96
|
+
|
|
97
|
+
Properties of the `math` object:
|
|
98
|
+
|
|
99
|
+
##### `disabled` (boolean)
|
|
100
|
+
|
|
101
|
+
Indicates if the plugin is disabled or not
|
|
102
|
+
|
|
103
|
+
#### `audio` (object)
|
|
104
|
+
|
|
105
|
+
Properties of the `audio` object:
|
|
106
|
+
|
|
107
|
+
##### `disabled` (boolean)
|
|
108
|
+
|
|
109
|
+
Indicates if the plugin is disabled or not
|
|
110
|
+
|
|
111
|
+
#### `video` (object)
|
|
112
|
+
|
|
113
|
+
Properties of the `video` object:
|
|
114
|
+
|
|
115
|
+
##### `disabled` (boolean)
|
|
116
|
+
|
|
117
|
+
Indicates if the plugin is disabled or not
|
|
118
|
+
|
|
119
|
+
#### `image` (object)
|
|
120
|
+
|
|
121
|
+
Properties of the `image` object:
|
|
122
|
+
|
|
123
|
+
##### `disabled` (boolean)
|
|
124
|
+
|
|
125
|
+
Indicates if the plugin is disabled or not
|
|
126
|
+
|
|
127
|
+
#### `customPlugins` (array)
|
|
128
|
+
|
|
129
|
+
An array of objects that determine custom plugins.
|
|
130
|
+
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).
|
|
131
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
132
|
+
|
|
133
|
+
The object is an array with all elements of the type `object`.
|
|
134
|
+
|
|
135
|
+
The array object has the following properties:
|
|
136
|
+
|
|
137
|
+
##### `event` (string, required)
|
|
138
|
+
|
|
139
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
140
|
+
PIE will emit the event prefixed with "PIE-".
|
|
141
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
142
|
+
|
|
143
|
+
##### `iconAlt` (string, required)
|
|
144
|
+
|
|
145
|
+
The alt for the custom button icon
|
|
146
|
+
|
|
147
|
+
##### `iconType` (string, required)
|
|
148
|
+
|
|
149
|
+
The icon type.
|
|
150
|
+
Currently, only "SVG" is supported.
|
|
151
|
+
|
|
152
|
+
##### `icon` (string, required)
|
|
153
|
+
|
|
154
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
155
|
+
|
|
156
|
+
#### `blockquote` (object)
|
|
157
|
+
|
|
158
|
+
Properties of the `blockquote` object:
|
|
159
|
+
|
|
160
|
+
##### `disabled` (boolean)
|
|
161
|
+
|
|
162
|
+
Indicates if the plugin is disabled or not
|
|
163
|
+
|
|
164
|
+
#### `h3` (object)
|
|
165
|
+
|
|
166
|
+
Properties of the `h3` object:
|
|
167
|
+
|
|
168
|
+
##### `disabled` (boolean)
|
|
169
|
+
|
|
170
|
+
Indicates if the plugin is disabled or not
|
|
171
|
+
|
|
172
|
+
#### `characters` (object)
|
|
173
|
+
|
|
174
|
+
Properties of the `characters` object:
|
|
175
|
+
|
|
176
|
+
##### `disabled` (boolean)
|
|
177
|
+
|
|
178
|
+
Indicates if the plugin is disabled or not
|
|
179
|
+
|
|
180
|
+
#### `bold` (object)
|
|
181
|
+
|
|
182
|
+
Properties of the `bold` object:
|
|
183
|
+
|
|
184
|
+
##### `disabled` (boolean)
|
|
185
|
+
|
|
186
|
+
Indicates if the plugin is disabled or not
|
|
187
|
+
|
|
188
|
+
#### `html` (object)
|
|
189
|
+
|
|
190
|
+
Properties of the `html` object:
|
|
191
|
+
|
|
192
|
+
##### `disabled` (boolean)
|
|
193
|
+
|
|
194
|
+
Indicates if the plugin is disabled or not
|
|
195
|
+
|
|
196
|
+
#### `italic` (object)
|
|
197
|
+
|
|
198
|
+
Properties of the `italic` object:
|
|
199
|
+
|
|
200
|
+
##### `disabled` (boolean)
|
|
201
|
+
|
|
202
|
+
Indicates if the plugin is disabled or not
|
|
203
|
+
|
|
204
|
+
#### `ol_list` (object)
|
|
205
|
+
|
|
206
|
+
Properties of the `ol_list` object:
|
|
207
|
+
|
|
208
|
+
##### `disabled` (boolean)
|
|
209
|
+
|
|
210
|
+
Indicates if the plugin is disabled or not
|
|
211
|
+
|
|
212
|
+
#### `redo` (object)
|
|
213
|
+
|
|
214
|
+
Properties of the `redo` object:
|
|
215
|
+
|
|
216
|
+
##### `disabled` (boolean)
|
|
217
|
+
|
|
218
|
+
Indicates if the plugin is disabled or not
|
|
219
|
+
|
|
220
|
+
#### `strikethrough` (object)
|
|
221
|
+
|
|
222
|
+
Properties of the `strikethrough` object:
|
|
223
|
+
|
|
224
|
+
##### `disabled` (boolean)
|
|
225
|
+
|
|
226
|
+
Indicates if the plugin is disabled or not
|
|
227
|
+
|
|
228
|
+
#### `sub` (object)
|
|
229
|
+
|
|
230
|
+
Properties of the `sub` object:
|
|
231
|
+
|
|
232
|
+
##### `disabled` (boolean)
|
|
233
|
+
|
|
234
|
+
Indicates if the plugin is disabled or not
|
|
235
|
+
|
|
236
|
+
#### `sup` (object)
|
|
237
|
+
|
|
238
|
+
Properties of the `sup` object:
|
|
239
|
+
|
|
240
|
+
##### `disabled` (boolean)
|
|
241
|
+
|
|
242
|
+
Indicates if the plugin is disabled or not
|
|
243
|
+
|
|
244
|
+
#### `table` (object)
|
|
245
|
+
|
|
246
|
+
Properties of the `table` object:
|
|
247
|
+
|
|
248
|
+
##### `disabled` (boolean)
|
|
249
|
+
|
|
250
|
+
Indicates if the plugin is disabled or not
|
|
251
|
+
|
|
252
|
+
#### `ul_list` (object)
|
|
253
|
+
|
|
254
|
+
Properties of the `ul_list` object:
|
|
255
|
+
|
|
256
|
+
##### `disabled` (boolean)
|
|
257
|
+
|
|
258
|
+
Indicates if the plugin is disabled or not
|
|
259
|
+
|
|
260
|
+
#### `underline` (object)
|
|
261
|
+
|
|
262
|
+
Properties of the `underline` object:
|
|
263
|
+
|
|
264
|
+
##### `disabled` (boolean)
|
|
265
|
+
|
|
266
|
+
Indicates if the plugin is disabled or not
|
|
267
|
+
|
|
268
|
+
#### `undo` (object)
|
|
269
|
+
|
|
270
|
+
Properties of the `undo` object:
|
|
271
|
+
|
|
272
|
+
##### `disabled` (boolean)
|
|
273
|
+
|
|
274
|
+
Indicates if the plugin is disabled or not
|
|
275
|
+
|
|
276
|
+
### `required` (boolean)
|
|
277
|
+
|
|
278
|
+
Indicates if the item is required and the value cannot be empty
|
|
279
|
+
|
|
280
|
+
### `settings` (boolean)
|
|
281
|
+
|
|
282
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
283
|
+
|
|
284
|
+
### `label` (string)
|
|
285
|
+
|
|
286
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
287
|
+
|
|
288
|
+
## `EditableHtmlConfigureProp` (object)
|
|
289
|
+
|
|
290
|
+
Properties of the `EditableHtmlConfigureProp` object:
|
|
291
|
+
|
|
292
|
+
### `math` (object)
|
|
293
|
+
|
|
294
|
+
Properties of the `math` object:
|
|
295
|
+
|
|
296
|
+
#### `disabled` (boolean)
|
|
297
|
+
|
|
298
|
+
Indicates if the plugin is disabled or not
|
|
299
|
+
|
|
300
|
+
### `audio` (object)
|
|
301
|
+
|
|
302
|
+
Properties of the `audio` object:
|
|
303
|
+
|
|
304
|
+
#### `disabled` (boolean)
|
|
305
|
+
|
|
306
|
+
Indicates if the plugin is disabled or not
|
|
307
|
+
|
|
308
|
+
### `video` (object)
|
|
309
|
+
|
|
310
|
+
Properties of the `video` object:
|
|
311
|
+
|
|
312
|
+
#### `disabled` (boolean)
|
|
313
|
+
|
|
314
|
+
Indicates if the plugin is disabled or not
|
|
315
|
+
|
|
316
|
+
### `image` (object)
|
|
317
|
+
|
|
318
|
+
Properties of the `image` object:
|
|
319
|
+
|
|
320
|
+
#### `disabled` (boolean)
|
|
321
|
+
|
|
322
|
+
Indicates if the plugin is disabled or not
|
|
323
|
+
|
|
324
|
+
### `customPlugins` (array)
|
|
325
|
+
|
|
326
|
+
An array of objects that determine custom plugins.
|
|
327
|
+
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).
|
|
328
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
329
|
+
|
|
330
|
+
The object is an array with all elements of the type `object`.
|
|
331
|
+
|
|
332
|
+
The array object has the following properties:
|
|
333
|
+
|
|
334
|
+
#### `event` (string, required)
|
|
335
|
+
|
|
336
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
337
|
+
PIE will emit the event prefixed with "PIE-".
|
|
338
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
339
|
+
|
|
340
|
+
#### `iconAlt` (string, required)
|
|
341
|
+
|
|
342
|
+
The alt for the custom button icon
|
|
343
|
+
|
|
344
|
+
#### `iconType` (string, required)
|
|
345
|
+
|
|
346
|
+
The icon type.
|
|
347
|
+
Currently, only "SVG" is supported.
|
|
348
|
+
|
|
349
|
+
#### `icon` (string, required)
|
|
350
|
+
|
|
351
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
352
|
+
|
|
353
|
+
### `blockquote` (object)
|
|
354
|
+
|
|
355
|
+
Properties of the `blockquote` object:
|
|
356
|
+
|
|
357
|
+
#### `disabled` (boolean)
|
|
358
|
+
|
|
359
|
+
Indicates if the plugin is disabled or not
|
|
360
|
+
|
|
361
|
+
### `h3` (object)
|
|
362
|
+
|
|
363
|
+
Properties of the `h3` object:
|
|
364
|
+
|
|
365
|
+
#### `disabled` (boolean)
|
|
366
|
+
|
|
367
|
+
Indicates if the plugin is disabled or not
|
|
368
|
+
|
|
369
|
+
### `characters` (object)
|
|
370
|
+
|
|
371
|
+
Properties of the `characters` object:
|
|
372
|
+
|
|
373
|
+
#### `disabled` (boolean)
|
|
374
|
+
|
|
375
|
+
Indicates if the plugin is disabled or not
|
|
376
|
+
|
|
377
|
+
### `bold` (object)
|
|
378
|
+
|
|
379
|
+
Properties of the `bold` object:
|
|
380
|
+
|
|
381
|
+
#### `disabled` (boolean)
|
|
382
|
+
|
|
383
|
+
Indicates if the plugin is disabled or not
|
|
384
|
+
|
|
385
|
+
### `html` (object)
|
|
386
|
+
|
|
387
|
+
Properties of the `html` object:
|
|
388
|
+
|
|
389
|
+
#### `disabled` (boolean)
|
|
390
|
+
|
|
391
|
+
Indicates if the plugin is disabled or not
|
|
392
|
+
|
|
393
|
+
### `italic` (object)
|
|
394
|
+
|
|
395
|
+
Properties of the `italic` object:
|
|
396
|
+
|
|
397
|
+
#### `disabled` (boolean)
|
|
398
|
+
|
|
399
|
+
Indicates if the plugin is disabled or not
|
|
400
|
+
|
|
401
|
+
### `ol_list` (object)
|
|
402
|
+
|
|
403
|
+
Properties of the `ol_list` object:
|
|
404
|
+
|
|
405
|
+
#### `disabled` (boolean)
|
|
406
|
+
|
|
407
|
+
Indicates if the plugin is disabled or not
|
|
408
|
+
|
|
409
|
+
### `redo` (object)
|
|
410
|
+
|
|
411
|
+
Properties of the `redo` object:
|
|
412
|
+
|
|
413
|
+
#### `disabled` (boolean)
|
|
414
|
+
|
|
415
|
+
Indicates if the plugin is disabled or not
|
|
416
|
+
|
|
417
|
+
### `strikethrough` (object)
|
|
418
|
+
|
|
419
|
+
Properties of the `strikethrough` object:
|
|
420
|
+
|
|
421
|
+
#### `disabled` (boolean)
|
|
422
|
+
|
|
423
|
+
Indicates if the plugin is disabled or not
|
|
424
|
+
|
|
425
|
+
### `sub` (object)
|
|
426
|
+
|
|
427
|
+
Properties of the `sub` object:
|
|
428
|
+
|
|
429
|
+
#### `disabled` (boolean)
|
|
430
|
+
|
|
431
|
+
Indicates if the plugin is disabled or not
|
|
432
|
+
|
|
433
|
+
### `sup` (object)
|
|
434
|
+
|
|
435
|
+
Properties of the `sup` object:
|
|
436
|
+
|
|
437
|
+
#### `disabled` (boolean)
|
|
438
|
+
|
|
439
|
+
Indicates if the plugin is disabled or not
|
|
440
|
+
|
|
441
|
+
### `table` (object)
|
|
442
|
+
|
|
443
|
+
Properties of the `table` object:
|
|
444
|
+
|
|
445
|
+
#### `disabled` (boolean)
|
|
446
|
+
|
|
447
|
+
Indicates if the plugin is disabled or not
|
|
448
|
+
|
|
449
|
+
### `ul_list` (object)
|
|
450
|
+
|
|
451
|
+
Properties of the `ul_list` object:
|
|
452
|
+
|
|
453
|
+
#### `disabled` (boolean)
|
|
454
|
+
|
|
455
|
+
Indicates if the plugin is disabled or not
|
|
456
|
+
|
|
457
|
+
### `underline` (object)
|
|
458
|
+
|
|
459
|
+
Properties of the `underline` object:
|
|
460
|
+
|
|
461
|
+
#### `disabled` (boolean)
|
|
462
|
+
|
|
463
|
+
Indicates if the plugin is disabled or not
|
|
464
|
+
|
|
465
|
+
### `undo` (object)
|
|
466
|
+
|
|
467
|
+
Properties of the `undo` object:
|
|
468
|
+
|
|
469
|
+
#### `disabled` (boolean)
|
|
470
|
+
|
|
471
|
+
Indicates if the plugin is disabled or not
|
|
472
|
+
|
|
473
|
+
## `EditableHtmlButtonConfigure` (object)
|
|
474
|
+
|
|
475
|
+
Properties of the `EditableHtmlButtonConfigure` object:
|
|
476
|
+
|
|
477
|
+
### `disabled` (boolean)
|
|
478
|
+
|
|
479
|
+
Indicates if the plugin is disabled or not
|
|
480
|
+
|
|
481
|
+
## `CustomPlugin` (object)
|
|
482
|
+
|
|
483
|
+
Properties of the `CustomPlugin` object:
|
|
484
|
+
|
|
485
|
+
### `event` (string, required)
|
|
486
|
+
|
|
487
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
488
|
+
PIE will emit the event prefixed with "PIE-".
|
|
489
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
490
|
+
|
|
491
|
+
### `iconAlt` (string, required)
|
|
492
|
+
|
|
493
|
+
The alt for the custom button icon
|
|
494
|
+
|
|
495
|
+
### `iconType` (string, required)
|
|
496
|
+
|
|
497
|
+
The icon type.
|
|
498
|
+
Currently, only "SVG" is supported.
|
|
499
|
+
|
|
500
|
+
### `icon` (string, required)
|
|
501
|
+
|
|
502
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
503
|
+
|
|
504
|
+
## `EditableHtmlPluginConfigure` (object)
|
|
505
|
+
|
|
506
|
+
Properties of the `EditableHtmlPluginConfigure` object:
|
|
507
|
+
|
|
508
|
+
### `inputConfiguration` (object)
|
|
509
|
+
|
|
510
|
+
Properties of the `inputConfiguration` object:
|
|
511
|
+
|
|
512
|
+
#### `math` (object)
|
|
513
|
+
|
|
514
|
+
Properties of the `math` object:
|
|
515
|
+
|
|
516
|
+
##### `disabled` (boolean)
|
|
517
|
+
|
|
518
|
+
Indicates if the plugin is disabled or not
|
|
519
|
+
|
|
520
|
+
#### `audio` (object)
|
|
521
|
+
|
|
522
|
+
Properties of the `audio` object:
|
|
523
|
+
|
|
524
|
+
##### `disabled` (boolean)
|
|
525
|
+
|
|
526
|
+
Indicates if the plugin is disabled or not
|
|
527
|
+
|
|
528
|
+
#### `video` (object)
|
|
529
|
+
|
|
530
|
+
Properties of the `video` object:
|
|
531
|
+
|
|
532
|
+
##### `disabled` (boolean)
|
|
533
|
+
|
|
534
|
+
Indicates if the plugin is disabled or not
|
|
535
|
+
|
|
536
|
+
#### `image` (object)
|
|
537
|
+
|
|
538
|
+
Properties of the `image` object:
|
|
539
|
+
|
|
540
|
+
##### `disabled` (boolean)
|
|
541
|
+
|
|
542
|
+
Indicates if the plugin is disabled or not
|
|
543
|
+
|
|
544
|
+
#### `customPlugins` (array)
|
|
545
|
+
|
|
546
|
+
An array of objects that determine custom plugins.
|
|
547
|
+
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).
|
|
548
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
549
|
+
|
|
550
|
+
The object is an array with all elements of the type `object`.
|
|
551
|
+
|
|
552
|
+
The array object has the following properties:
|
|
553
|
+
|
|
554
|
+
##### `event` (string, required)
|
|
555
|
+
|
|
556
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
557
|
+
PIE will emit the event prefixed with "PIE-".
|
|
558
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
559
|
+
|
|
560
|
+
##### `iconAlt` (string, required)
|
|
561
|
+
|
|
562
|
+
The alt for the custom button icon
|
|
563
|
+
|
|
564
|
+
##### `iconType` (string, required)
|
|
565
|
+
|
|
566
|
+
The icon type.
|
|
567
|
+
Currently, only "SVG" is supported.
|
|
568
|
+
|
|
569
|
+
##### `icon` (string, required)
|
|
570
|
+
|
|
571
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
572
|
+
|
|
573
|
+
#### `blockquote` (object)
|
|
574
|
+
|
|
575
|
+
Properties of the `blockquote` object:
|
|
576
|
+
|
|
577
|
+
##### `disabled` (boolean)
|
|
578
|
+
|
|
579
|
+
Indicates if the plugin is disabled or not
|
|
580
|
+
|
|
581
|
+
#### `h3` (object)
|
|
582
|
+
|
|
583
|
+
Properties of the `h3` object:
|
|
584
|
+
|
|
585
|
+
##### `disabled` (boolean)
|
|
586
|
+
|
|
587
|
+
Indicates if the plugin is disabled or not
|
|
588
|
+
|
|
589
|
+
#### `characters` (object)
|
|
590
|
+
|
|
591
|
+
Properties of the `characters` object:
|
|
592
|
+
|
|
593
|
+
##### `disabled` (boolean)
|
|
594
|
+
|
|
595
|
+
Indicates if the plugin is disabled or not
|
|
596
|
+
|
|
597
|
+
#### `bold` (object)
|
|
598
|
+
|
|
599
|
+
Properties of the `bold` object:
|
|
600
|
+
|
|
601
|
+
##### `disabled` (boolean)
|
|
602
|
+
|
|
603
|
+
Indicates if the plugin is disabled or not
|
|
604
|
+
|
|
605
|
+
#### `html` (object)
|
|
606
|
+
|
|
607
|
+
Properties of the `html` object:
|
|
608
|
+
|
|
609
|
+
##### `disabled` (boolean)
|
|
610
|
+
|
|
611
|
+
Indicates if the plugin is disabled or not
|
|
612
|
+
|
|
613
|
+
#### `italic` (object)
|
|
614
|
+
|
|
615
|
+
Properties of the `italic` object:
|
|
616
|
+
|
|
617
|
+
##### `disabled` (boolean)
|
|
618
|
+
|
|
619
|
+
Indicates if the plugin is disabled or not
|
|
620
|
+
|
|
621
|
+
#### `ol_list` (object)
|
|
622
|
+
|
|
623
|
+
Properties of the `ol_list` object:
|
|
624
|
+
|
|
625
|
+
##### `disabled` (boolean)
|
|
626
|
+
|
|
627
|
+
Indicates if the plugin is disabled or not
|
|
628
|
+
|
|
629
|
+
#### `redo` (object)
|
|
630
|
+
|
|
631
|
+
Properties of the `redo` object:
|
|
632
|
+
|
|
633
|
+
##### `disabled` (boolean)
|
|
634
|
+
|
|
635
|
+
Indicates if the plugin is disabled or not
|
|
636
|
+
|
|
637
|
+
#### `strikethrough` (object)
|
|
638
|
+
|
|
639
|
+
Properties of the `strikethrough` object:
|
|
640
|
+
|
|
641
|
+
##### `disabled` (boolean)
|
|
642
|
+
|
|
643
|
+
Indicates if the plugin is disabled or not
|
|
644
|
+
|
|
645
|
+
#### `sub` (object)
|
|
646
|
+
|
|
647
|
+
Properties of the `sub` object:
|
|
648
|
+
|
|
649
|
+
##### `disabled` (boolean)
|
|
650
|
+
|
|
651
|
+
Indicates if the plugin is disabled or not
|
|
652
|
+
|
|
653
|
+
#### `sup` (object)
|
|
654
|
+
|
|
655
|
+
Properties of the `sup` object:
|
|
656
|
+
|
|
657
|
+
##### `disabled` (boolean)
|
|
658
|
+
|
|
659
|
+
Indicates if the plugin is disabled or not
|
|
660
|
+
|
|
661
|
+
#### `table` (object)
|
|
662
|
+
|
|
663
|
+
Properties of the `table` object:
|
|
664
|
+
|
|
665
|
+
##### `disabled` (boolean)
|
|
666
|
+
|
|
667
|
+
Indicates if the plugin is disabled or not
|
|
668
|
+
|
|
669
|
+
#### `ul_list` (object)
|
|
670
|
+
|
|
671
|
+
Properties of the `ul_list` object:
|
|
672
|
+
|
|
673
|
+
##### `disabled` (boolean)
|
|
674
|
+
|
|
675
|
+
Indicates if the plugin is disabled or not
|
|
676
|
+
|
|
677
|
+
#### `underline` (object)
|
|
678
|
+
|
|
679
|
+
Properties of the `underline` object:
|
|
680
|
+
|
|
681
|
+
##### `disabled` (boolean)
|
|
682
|
+
|
|
683
|
+
Indicates if the plugin is disabled or not
|
|
684
|
+
|
|
685
|
+
#### `undo` (object)
|
|
686
|
+
|
|
687
|
+
Properties of the `undo` object:
|
|
688
|
+
|
|
689
|
+
##### `disabled` (boolean)
|
|
690
|
+
|
|
691
|
+
Indicates if the plugin is disabled or not
|
|
692
|
+
|
|
693
|
+
### `settings` (boolean)
|
|
694
|
+
|
|
695
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
696
|
+
|
|
697
|
+
### `label` (string)
|
|
698
|
+
|
|
699
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
700
|
+
|
|
701
|
+
## `LikertChoice` (object)
|
|
702
|
+
|
|
703
|
+
Properties of the `LikertChoice` object:
|
|
704
|
+
|
|
705
|
+
### `value` (string, required)
|
|
706
|
+
|
|
707
|
+
the value that will be stored if this likert choice is selected
|
|
708
|
+
|
|
709
|
+
### `label` (string, required)
|
|
710
|
+
|
|
711
|
+
the text label that will be presented to the user for this likert choice
|