@pie-element/multiple-choice 8.11.0 → 8.11.1-next.16
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/docs/config-schema.json +365 -0
- package/docs/config-schema.json.md +284 -0
- package/docs/pie-schema.json +143 -0
- package/docs/pie-schema.json.md +110 -0
- package/module/configure.js +1 -1
- package/module/element.js +1 -1
- package/module/index.html +1 -1
- package/module/manifest.json +2 -2
- package/module/print.html +1 -1
- package/module/print.js +1 -1
- package/package.json +2 -2
package/docs/config-schema.json
CHANGED
|
@@ -73,6 +73,43 @@
|
|
|
73
73
|
"title": "disabled"
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
+
},
|
|
77
|
+
"customPlugins": {
|
|
78
|
+
"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.",
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": {
|
|
81
|
+
"title": "CustomPlugin",
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"event": {
|
|
85
|
+
"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\"",
|
|
86
|
+
"type": "string",
|
|
87
|
+
"title": "event"
|
|
88
|
+
},
|
|
89
|
+
"iconAlt": {
|
|
90
|
+
"description": "The alt for the custom button icon",
|
|
91
|
+
"type": "string",
|
|
92
|
+
"title": "iconAlt"
|
|
93
|
+
},
|
|
94
|
+
"iconType": {
|
|
95
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
96
|
+
"type": "string",
|
|
97
|
+
"title": "iconType"
|
|
98
|
+
},
|
|
99
|
+
"icon": {
|
|
100
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
101
|
+
"type": "string",
|
|
102
|
+
"title": "icon"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": [
|
|
106
|
+
"event",
|
|
107
|
+
"icon",
|
|
108
|
+
"iconAlt",
|
|
109
|
+
"iconType"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"title": "customPlugins"
|
|
76
113
|
}
|
|
77
114
|
}
|
|
78
115
|
},
|
|
@@ -127,6 +164,43 @@
|
|
|
127
164
|
"title": "disabled"
|
|
128
165
|
}
|
|
129
166
|
}
|
|
167
|
+
},
|
|
168
|
+
"customPlugins": {
|
|
169
|
+
"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.",
|
|
170
|
+
"type": "array",
|
|
171
|
+
"items": {
|
|
172
|
+
"title": "CustomPlugin",
|
|
173
|
+
"type": "object",
|
|
174
|
+
"properties": {
|
|
175
|
+
"event": {
|
|
176
|
+
"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\"",
|
|
177
|
+
"type": "string",
|
|
178
|
+
"title": "event"
|
|
179
|
+
},
|
|
180
|
+
"iconAlt": {
|
|
181
|
+
"description": "The alt for the custom button icon",
|
|
182
|
+
"type": "string",
|
|
183
|
+
"title": "iconAlt"
|
|
184
|
+
},
|
|
185
|
+
"iconType": {
|
|
186
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
187
|
+
"type": "string",
|
|
188
|
+
"title": "iconType"
|
|
189
|
+
},
|
|
190
|
+
"icon": {
|
|
191
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
192
|
+
"type": "string",
|
|
193
|
+
"title": "icon"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": [
|
|
197
|
+
"event",
|
|
198
|
+
"icon",
|
|
199
|
+
"iconAlt",
|
|
200
|
+
"iconType"
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"title": "customPlugins"
|
|
130
204
|
}
|
|
131
205
|
}
|
|
132
206
|
},
|
|
@@ -257,6 +331,43 @@
|
|
|
257
331
|
"title": "disabled"
|
|
258
332
|
}
|
|
259
333
|
}
|
|
334
|
+
},
|
|
335
|
+
"customPlugins": {
|
|
336
|
+
"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.",
|
|
337
|
+
"type": "array",
|
|
338
|
+
"items": {
|
|
339
|
+
"title": "CustomPlugin",
|
|
340
|
+
"type": "object",
|
|
341
|
+
"properties": {
|
|
342
|
+
"event": {
|
|
343
|
+
"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\"",
|
|
344
|
+
"type": "string",
|
|
345
|
+
"title": "event"
|
|
346
|
+
},
|
|
347
|
+
"iconAlt": {
|
|
348
|
+
"description": "The alt for the custom button icon",
|
|
349
|
+
"type": "string",
|
|
350
|
+
"title": "iconAlt"
|
|
351
|
+
},
|
|
352
|
+
"iconType": {
|
|
353
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
354
|
+
"type": "string",
|
|
355
|
+
"title": "iconType"
|
|
356
|
+
},
|
|
357
|
+
"icon": {
|
|
358
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
359
|
+
"type": "string",
|
|
360
|
+
"title": "icon"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"required": [
|
|
364
|
+
"event",
|
|
365
|
+
"icon",
|
|
366
|
+
"iconAlt",
|
|
367
|
+
"iconType"
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
"title": "customPlugins"
|
|
260
371
|
}
|
|
261
372
|
}
|
|
262
373
|
},
|
|
@@ -408,6 +519,43 @@
|
|
|
408
519
|
"title": "disabled"
|
|
409
520
|
}
|
|
410
521
|
}
|
|
522
|
+
},
|
|
523
|
+
"customPlugins": {
|
|
524
|
+
"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.",
|
|
525
|
+
"type": "array",
|
|
526
|
+
"items": {
|
|
527
|
+
"title": "CustomPlugin",
|
|
528
|
+
"type": "object",
|
|
529
|
+
"properties": {
|
|
530
|
+
"event": {
|
|
531
|
+
"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\"",
|
|
532
|
+
"type": "string",
|
|
533
|
+
"title": "event"
|
|
534
|
+
},
|
|
535
|
+
"iconAlt": {
|
|
536
|
+
"description": "The alt for the custom button icon",
|
|
537
|
+
"type": "string",
|
|
538
|
+
"title": "iconAlt"
|
|
539
|
+
},
|
|
540
|
+
"iconType": {
|
|
541
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
542
|
+
"type": "string",
|
|
543
|
+
"title": "iconType"
|
|
544
|
+
},
|
|
545
|
+
"icon": {
|
|
546
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
547
|
+
"type": "string",
|
|
548
|
+
"title": "icon"
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"required": [
|
|
552
|
+
"event",
|
|
553
|
+
"icon",
|
|
554
|
+
"iconAlt",
|
|
555
|
+
"iconType"
|
|
556
|
+
]
|
|
557
|
+
},
|
|
558
|
+
"title": "customPlugins"
|
|
411
559
|
}
|
|
412
560
|
}
|
|
413
561
|
},
|
|
@@ -516,6 +664,43 @@
|
|
|
516
664
|
"title": "disabled"
|
|
517
665
|
}
|
|
518
666
|
}
|
|
667
|
+
},
|
|
668
|
+
"customPlugins": {
|
|
669
|
+
"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.",
|
|
670
|
+
"type": "array",
|
|
671
|
+
"items": {
|
|
672
|
+
"title": "CustomPlugin",
|
|
673
|
+
"type": "object",
|
|
674
|
+
"properties": {
|
|
675
|
+
"event": {
|
|
676
|
+
"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\"",
|
|
677
|
+
"type": "string",
|
|
678
|
+
"title": "event"
|
|
679
|
+
},
|
|
680
|
+
"iconAlt": {
|
|
681
|
+
"description": "The alt for the custom button icon",
|
|
682
|
+
"type": "string",
|
|
683
|
+
"title": "iconAlt"
|
|
684
|
+
},
|
|
685
|
+
"iconType": {
|
|
686
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
687
|
+
"type": "string",
|
|
688
|
+
"title": "iconType"
|
|
689
|
+
},
|
|
690
|
+
"icon": {
|
|
691
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
692
|
+
"type": "string",
|
|
693
|
+
"title": "icon"
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
"required": [
|
|
697
|
+
"event",
|
|
698
|
+
"icon",
|
|
699
|
+
"iconAlt",
|
|
700
|
+
"iconType"
|
|
701
|
+
]
|
|
702
|
+
},
|
|
703
|
+
"title": "customPlugins"
|
|
519
704
|
}
|
|
520
705
|
}
|
|
521
706
|
},
|
|
@@ -608,6 +793,43 @@
|
|
|
608
793
|
"title": "disabled"
|
|
609
794
|
}
|
|
610
795
|
}
|
|
796
|
+
},
|
|
797
|
+
"customPlugins": {
|
|
798
|
+
"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.",
|
|
799
|
+
"type": "array",
|
|
800
|
+
"items": {
|
|
801
|
+
"title": "CustomPlugin",
|
|
802
|
+
"type": "object",
|
|
803
|
+
"properties": {
|
|
804
|
+
"event": {
|
|
805
|
+
"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\"",
|
|
806
|
+
"type": "string",
|
|
807
|
+
"title": "event"
|
|
808
|
+
},
|
|
809
|
+
"iconAlt": {
|
|
810
|
+
"description": "The alt for the custom button icon",
|
|
811
|
+
"type": "string",
|
|
812
|
+
"title": "iconAlt"
|
|
813
|
+
},
|
|
814
|
+
"iconType": {
|
|
815
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
816
|
+
"type": "string",
|
|
817
|
+
"title": "iconType"
|
|
818
|
+
},
|
|
819
|
+
"icon": {
|
|
820
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
821
|
+
"type": "string",
|
|
822
|
+
"title": "icon"
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
"required": [
|
|
826
|
+
"event",
|
|
827
|
+
"icon",
|
|
828
|
+
"iconAlt",
|
|
829
|
+
"iconType"
|
|
830
|
+
]
|
|
831
|
+
},
|
|
832
|
+
"title": "customPlugins"
|
|
611
833
|
}
|
|
612
834
|
}
|
|
613
835
|
},
|
|
@@ -904,6 +1126,43 @@
|
|
|
904
1126
|
"title": "disabled"
|
|
905
1127
|
}
|
|
906
1128
|
}
|
|
1129
|
+
},
|
|
1130
|
+
"customPlugins": {
|
|
1131
|
+
"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.",
|
|
1132
|
+
"type": "array",
|
|
1133
|
+
"items": {
|
|
1134
|
+
"title": "CustomPlugin",
|
|
1135
|
+
"type": "object",
|
|
1136
|
+
"properties": {
|
|
1137
|
+
"event": {
|
|
1138
|
+
"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\"",
|
|
1139
|
+
"type": "string",
|
|
1140
|
+
"title": "event"
|
|
1141
|
+
},
|
|
1142
|
+
"iconAlt": {
|
|
1143
|
+
"description": "The alt for the custom button icon",
|
|
1144
|
+
"type": "string",
|
|
1145
|
+
"title": "iconAlt"
|
|
1146
|
+
},
|
|
1147
|
+
"iconType": {
|
|
1148
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
1149
|
+
"type": "string",
|
|
1150
|
+
"title": "iconType"
|
|
1151
|
+
},
|
|
1152
|
+
"icon": {
|
|
1153
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
1154
|
+
"type": "string",
|
|
1155
|
+
"title": "icon"
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
"required": [
|
|
1159
|
+
"event",
|
|
1160
|
+
"icon",
|
|
1161
|
+
"iconAlt",
|
|
1162
|
+
"iconType"
|
|
1163
|
+
]
|
|
1164
|
+
},
|
|
1165
|
+
"title": "customPlugins"
|
|
907
1166
|
}
|
|
908
1167
|
}
|
|
909
1168
|
},
|
|
@@ -918,6 +1177,38 @@
|
|
|
918
1177
|
}
|
|
919
1178
|
}
|
|
920
1179
|
},
|
|
1180
|
+
"CustomPlugin": {
|
|
1181
|
+
"title": "CustomPlugin",
|
|
1182
|
+
"type": "object",
|
|
1183
|
+
"properties": {
|
|
1184
|
+
"event": {
|
|
1185
|
+
"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\"",
|
|
1186
|
+
"type": "string",
|
|
1187
|
+
"title": "event"
|
|
1188
|
+
},
|
|
1189
|
+
"iconAlt": {
|
|
1190
|
+
"description": "The alt for the custom button icon",
|
|
1191
|
+
"type": "string",
|
|
1192
|
+
"title": "iconAlt"
|
|
1193
|
+
},
|
|
1194
|
+
"iconType": {
|
|
1195
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
1196
|
+
"type": "string",
|
|
1197
|
+
"title": "iconType"
|
|
1198
|
+
},
|
|
1199
|
+
"icon": {
|
|
1200
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
1201
|
+
"type": "string",
|
|
1202
|
+
"title": "icon"
|
|
1203
|
+
}
|
|
1204
|
+
},
|
|
1205
|
+
"required": [
|
|
1206
|
+
"event",
|
|
1207
|
+
"icon",
|
|
1208
|
+
"iconAlt",
|
|
1209
|
+
"iconType"
|
|
1210
|
+
]
|
|
1211
|
+
},
|
|
921
1212
|
"EditableHtmlPluginConfigure": {
|
|
922
1213
|
"title": "EditableHtmlPluginConfigure",
|
|
923
1214
|
"type": "object",
|
|
@@ -969,6 +1260,43 @@
|
|
|
969
1260
|
"title": "disabled"
|
|
970
1261
|
}
|
|
971
1262
|
}
|
|
1263
|
+
},
|
|
1264
|
+
"customPlugins": {
|
|
1265
|
+
"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.",
|
|
1266
|
+
"type": "array",
|
|
1267
|
+
"items": {
|
|
1268
|
+
"title": "CustomPlugin",
|
|
1269
|
+
"type": "object",
|
|
1270
|
+
"properties": {
|
|
1271
|
+
"event": {
|
|
1272
|
+
"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\"",
|
|
1273
|
+
"type": "string",
|
|
1274
|
+
"title": "event"
|
|
1275
|
+
},
|
|
1276
|
+
"iconAlt": {
|
|
1277
|
+
"description": "The alt for the custom button icon",
|
|
1278
|
+
"type": "string",
|
|
1279
|
+
"title": "iconAlt"
|
|
1280
|
+
},
|
|
1281
|
+
"iconType": {
|
|
1282
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
1283
|
+
"type": "string",
|
|
1284
|
+
"title": "iconType"
|
|
1285
|
+
},
|
|
1286
|
+
"icon": {
|
|
1287
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
1288
|
+
"type": "string",
|
|
1289
|
+
"title": "icon"
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
"required": [
|
|
1293
|
+
"event",
|
|
1294
|
+
"icon",
|
|
1295
|
+
"iconAlt",
|
|
1296
|
+
"iconType"
|
|
1297
|
+
]
|
|
1298
|
+
},
|
|
1299
|
+
"title": "customPlugins"
|
|
972
1300
|
}
|
|
973
1301
|
}
|
|
974
1302
|
},
|
|
@@ -1035,6 +1363,43 @@
|
|
|
1035
1363
|
"title": "disabled"
|
|
1036
1364
|
}
|
|
1037
1365
|
}
|
|
1366
|
+
},
|
|
1367
|
+
"customPlugins": {
|
|
1368
|
+
"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.",
|
|
1369
|
+
"type": "array",
|
|
1370
|
+
"items": {
|
|
1371
|
+
"title": "CustomPlugin",
|
|
1372
|
+
"type": "object",
|
|
1373
|
+
"properties": {
|
|
1374
|
+
"event": {
|
|
1375
|
+
"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\"",
|
|
1376
|
+
"type": "string",
|
|
1377
|
+
"title": "event"
|
|
1378
|
+
},
|
|
1379
|
+
"iconAlt": {
|
|
1380
|
+
"description": "The alt for the custom button icon",
|
|
1381
|
+
"type": "string",
|
|
1382
|
+
"title": "iconAlt"
|
|
1383
|
+
},
|
|
1384
|
+
"iconType": {
|
|
1385
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
1386
|
+
"type": "string",
|
|
1387
|
+
"title": "iconType"
|
|
1388
|
+
},
|
|
1389
|
+
"icon": {
|
|
1390
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
1391
|
+
"type": "string",
|
|
1392
|
+
"title": "icon"
|
|
1393
|
+
}
|
|
1394
|
+
},
|
|
1395
|
+
"required": [
|
|
1396
|
+
"event",
|
|
1397
|
+
"icon",
|
|
1398
|
+
"iconAlt",
|
|
1399
|
+
"iconType"
|
|
1400
|
+
]
|
|
1401
|
+
},
|
|
1402
|
+
"title": "customPlugins"
|
|
1038
1403
|
}
|
|
1039
1404
|
}
|
|
1040
1405
|
},
|
|
@@ -60,6 +60,35 @@ Properties of the `image` object:
|
|
|
60
60
|
|
|
61
61
|
Indicates if the plugin is disabled or not
|
|
62
62
|
|
|
63
|
+
## `customPlugins` (array)
|
|
64
|
+
|
|
65
|
+
An array of objects that determine custom plugins.
|
|
66
|
+
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).
|
|
67
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
68
|
+
|
|
69
|
+
The object is an array with all elements of the type `object`.
|
|
70
|
+
|
|
71
|
+
The array object has the following properties:
|
|
72
|
+
|
|
73
|
+
### `event` (string, required)
|
|
74
|
+
|
|
75
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
76
|
+
PIE will emit the event prefixed with "PIE-".
|
|
77
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
78
|
+
|
|
79
|
+
### `iconAlt` (string, required)
|
|
80
|
+
|
|
81
|
+
The alt for the custom button icon
|
|
82
|
+
|
|
83
|
+
### `iconType` (string, required)
|
|
84
|
+
|
|
85
|
+
The icon type.
|
|
86
|
+
Currently, only "SVG" is supported.
|
|
87
|
+
|
|
88
|
+
### `icon` (string, required)
|
|
89
|
+
|
|
90
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
91
|
+
|
|
63
92
|
# `choices` (object)
|
|
64
93
|
|
|
65
94
|
Properties of the `choices` object:
|
|
@@ -100,6 +129,35 @@ Properties of the `image` object:
|
|
|
100
129
|
|
|
101
130
|
Indicates if the plugin is disabled or not
|
|
102
131
|
|
|
132
|
+
### `customPlugins` (array)
|
|
133
|
+
|
|
134
|
+
An array of objects that determine custom plugins.
|
|
135
|
+
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).
|
|
136
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
137
|
+
|
|
138
|
+
The object is an array with all elements of the type `object`.
|
|
139
|
+
|
|
140
|
+
The array object has the following properties:
|
|
141
|
+
|
|
142
|
+
#### `event` (string, required)
|
|
143
|
+
|
|
144
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
145
|
+
PIE will emit the event prefixed with "PIE-".
|
|
146
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
147
|
+
|
|
148
|
+
#### `iconAlt` (string, required)
|
|
149
|
+
|
|
150
|
+
The alt for the custom button icon
|
|
151
|
+
|
|
152
|
+
#### `iconType` (string, required)
|
|
153
|
+
|
|
154
|
+
The icon type.
|
|
155
|
+
Currently, only "SVG" is supported.
|
|
156
|
+
|
|
157
|
+
#### `icon` (string, required)
|
|
158
|
+
|
|
159
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
160
|
+
|
|
103
161
|
## `settings` (boolean)
|
|
104
162
|
|
|
105
163
|
Indicates if the item has to be displayed in the Settings Panel
|
|
@@ -196,6 +254,35 @@ Properties of the `image` object:
|
|
|
196
254
|
|
|
197
255
|
Indicates if the plugin is disabled or not
|
|
198
256
|
|
|
257
|
+
### `customPlugins` (array)
|
|
258
|
+
|
|
259
|
+
An array of objects that determine custom plugins.
|
|
260
|
+
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).
|
|
261
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
262
|
+
|
|
263
|
+
The object is an array with all elements of the type `object`.
|
|
264
|
+
|
|
265
|
+
The array object has the following properties:
|
|
266
|
+
|
|
267
|
+
#### `event` (string, required)
|
|
268
|
+
|
|
269
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
270
|
+
PIE will emit the event prefixed with "PIE-".
|
|
271
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
272
|
+
|
|
273
|
+
#### `iconAlt` (string, required)
|
|
274
|
+
|
|
275
|
+
The alt for the custom button icon
|
|
276
|
+
|
|
277
|
+
#### `iconType` (string, required)
|
|
278
|
+
|
|
279
|
+
The icon type.
|
|
280
|
+
Currently, only "SVG" is supported.
|
|
281
|
+
|
|
282
|
+
#### `icon` (string, required)
|
|
283
|
+
|
|
284
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
285
|
+
|
|
199
286
|
## `required` (boolean)
|
|
200
287
|
|
|
201
288
|
Indicates if the item is required and the value cannot be empty
|
|
@@ -308,6 +395,35 @@ Properties of the `image` object:
|
|
|
308
395
|
|
|
309
396
|
Indicates if the plugin is disabled or not
|
|
310
397
|
|
|
398
|
+
### `customPlugins` (array)
|
|
399
|
+
|
|
400
|
+
An array of objects that determine custom plugins.
|
|
401
|
+
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).
|
|
402
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
403
|
+
|
|
404
|
+
The object is an array with all elements of the type `object`.
|
|
405
|
+
|
|
406
|
+
The array object has the following properties:
|
|
407
|
+
|
|
408
|
+
#### `event` (string, required)
|
|
409
|
+
|
|
410
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
411
|
+
PIE will emit the event prefixed with "PIE-".
|
|
412
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
413
|
+
|
|
414
|
+
#### `iconAlt` (string, required)
|
|
415
|
+
|
|
416
|
+
The alt for the custom button icon
|
|
417
|
+
|
|
418
|
+
#### `iconType` (string, required)
|
|
419
|
+
|
|
420
|
+
The icon type.
|
|
421
|
+
Currently, only "SVG" is supported.
|
|
422
|
+
|
|
423
|
+
#### `icon` (string, required)
|
|
424
|
+
|
|
425
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
426
|
+
|
|
311
427
|
## `required` (boolean)
|
|
312
428
|
|
|
313
429
|
Indicates if the item is required and the value cannot be empty
|
|
@@ -388,6 +504,35 @@ Properties of the `image` object:
|
|
|
388
504
|
|
|
389
505
|
Indicates if the plugin is disabled or not
|
|
390
506
|
|
|
507
|
+
### `customPlugins` (array)
|
|
508
|
+
|
|
509
|
+
An array of objects that determine custom plugins.
|
|
510
|
+
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).
|
|
511
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
512
|
+
|
|
513
|
+
The object is an array with all elements of the type `object`.
|
|
514
|
+
|
|
515
|
+
The array object has the following properties:
|
|
516
|
+
|
|
517
|
+
#### `event` (string, required)
|
|
518
|
+
|
|
519
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
520
|
+
PIE will emit the event prefixed with "PIE-".
|
|
521
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
522
|
+
|
|
523
|
+
#### `iconAlt` (string, required)
|
|
524
|
+
|
|
525
|
+
The alt for the custom button icon
|
|
526
|
+
|
|
527
|
+
#### `iconType` (string, required)
|
|
528
|
+
|
|
529
|
+
The icon type.
|
|
530
|
+
Currently, only "SVG" is supported.
|
|
531
|
+
|
|
532
|
+
#### `icon` (string, required)
|
|
533
|
+
|
|
534
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
535
|
+
|
|
391
536
|
## `required` (boolean)
|
|
392
537
|
|
|
393
538
|
Indicates if the item is required and the value cannot be empty
|
|
@@ -457,6 +602,35 @@ Properties of the `image` object:
|
|
|
457
602
|
|
|
458
603
|
Indicates if the plugin is disabled or not
|
|
459
604
|
|
|
605
|
+
### `customPlugins` (array)
|
|
606
|
+
|
|
607
|
+
An array of objects that determine custom plugins.
|
|
608
|
+
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).
|
|
609
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
610
|
+
|
|
611
|
+
The object is an array with all elements of the type `object`.
|
|
612
|
+
|
|
613
|
+
The array object has the following properties:
|
|
614
|
+
|
|
615
|
+
#### `event` (string, required)
|
|
616
|
+
|
|
617
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
618
|
+
PIE will emit the event prefixed with "PIE-".
|
|
619
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
620
|
+
|
|
621
|
+
#### `iconAlt` (string, required)
|
|
622
|
+
|
|
623
|
+
The alt for the custom button icon
|
|
624
|
+
|
|
625
|
+
#### `iconType` (string, required)
|
|
626
|
+
|
|
627
|
+
The icon type.
|
|
628
|
+
Currently, only "SVG" is supported.
|
|
629
|
+
|
|
630
|
+
#### `icon` (string, required)
|
|
631
|
+
|
|
632
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
633
|
+
|
|
460
634
|
## `settings` (boolean)
|
|
461
635
|
|
|
462
636
|
Indicates if the item has to be displayed in the Settings Panel
|
|
@@ -683,6 +857,35 @@ Properties of the `image` object:
|
|
|
683
857
|
|
|
684
858
|
Indicates if the plugin is disabled or not
|
|
685
859
|
|
|
860
|
+
### `customPlugins` (array)
|
|
861
|
+
|
|
862
|
+
An array of objects that determine custom plugins.
|
|
863
|
+
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).
|
|
864
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
865
|
+
|
|
866
|
+
The object is an array with all elements of the type `object`.
|
|
867
|
+
|
|
868
|
+
The array object has the following properties:
|
|
869
|
+
|
|
870
|
+
#### `event` (string, required)
|
|
871
|
+
|
|
872
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
873
|
+
PIE will emit the event prefixed with "PIE-".
|
|
874
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
875
|
+
|
|
876
|
+
#### `iconAlt` (string, required)
|
|
877
|
+
|
|
878
|
+
The alt for the custom button icon
|
|
879
|
+
|
|
880
|
+
#### `iconType` (string, required)
|
|
881
|
+
|
|
882
|
+
The icon type.
|
|
883
|
+
Currently, only "SVG" is supported.
|
|
884
|
+
|
|
885
|
+
#### `icon` (string, required)
|
|
886
|
+
|
|
887
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
888
|
+
|
|
686
889
|
## `EditableHtmlButtonConfigure` (object)
|
|
687
890
|
|
|
688
891
|
Properties of the `EditableHtmlButtonConfigure` object:
|
|
@@ -691,6 +894,29 @@ Properties of the `EditableHtmlButtonConfigure` object:
|
|
|
691
894
|
|
|
692
895
|
Indicates if the plugin is disabled or not
|
|
693
896
|
|
|
897
|
+
## `CustomPlugin` (object)
|
|
898
|
+
|
|
899
|
+
Properties of the `CustomPlugin` object:
|
|
900
|
+
|
|
901
|
+
### `event` (string, required)
|
|
902
|
+
|
|
903
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
904
|
+
PIE will emit the event prefixed with "PIE-".
|
|
905
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
906
|
+
|
|
907
|
+
### `iconAlt` (string, required)
|
|
908
|
+
|
|
909
|
+
The alt for the custom button icon
|
|
910
|
+
|
|
911
|
+
### `iconType` (string, required)
|
|
912
|
+
|
|
913
|
+
The icon type.
|
|
914
|
+
Currently, only "SVG" is supported.
|
|
915
|
+
|
|
916
|
+
### `icon` (string, required)
|
|
917
|
+
|
|
918
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
919
|
+
|
|
694
920
|
## `EditableHtmlPluginConfigure` (object)
|
|
695
921
|
|
|
696
922
|
Properties of the `EditableHtmlPluginConfigure` object:
|
|
@@ -731,6 +957,35 @@ Properties of the `image` object:
|
|
|
731
957
|
|
|
732
958
|
Indicates if the plugin is disabled or not
|
|
733
959
|
|
|
960
|
+
#### `customPlugins` (array)
|
|
961
|
+
|
|
962
|
+
An array of objects that determine custom plugins.
|
|
963
|
+
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).
|
|
964
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
965
|
+
|
|
966
|
+
The object is an array with all elements of the type `object`.
|
|
967
|
+
|
|
968
|
+
The array object has the following properties:
|
|
969
|
+
|
|
970
|
+
##### `event` (string, required)
|
|
971
|
+
|
|
972
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
973
|
+
PIE will emit the event prefixed with "PIE-".
|
|
974
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
975
|
+
|
|
976
|
+
##### `iconAlt` (string, required)
|
|
977
|
+
|
|
978
|
+
The alt for the custom button icon
|
|
979
|
+
|
|
980
|
+
##### `iconType` (string, required)
|
|
981
|
+
|
|
982
|
+
The icon type.
|
|
983
|
+
Currently, only "SVG" is supported.
|
|
984
|
+
|
|
985
|
+
##### `icon` (string, required)
|
|
986
|
+
|
|
987
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
988
|
+
|
|
734
989
|
### `settings` (boolean)
|
|
735
990
|
|
|
736
991
|
Indicates if the item has to be displayed in the Settings Panel
|
|
@@ -779,6 +1034,35 @@ Properties of the `image` object:
|
|
|
779
1034
|
|
|
780
1035
|
Indicates if the plugin is disabled or not
|
|
781
1036
|
|
|
1037
|
+
#### `customPlugins` (array)
|
|
1038
|
+
|
|
1039
|
+
An array of objects that determine custom plugins.
|
|
1040
|
+
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).
|
|
1041
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
1042
|
+
|
|
1043
|
+
The object is an array with all elements of the type `object`.
|
|
1044
|
+
|
|
1045
|
+
The array object has the following properties:
|
|
1046
|
+
|
|
1047
|
+
##### `event` (string, required)
|
|
1048
|
+
|
|
1049
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
1050
|
+
PIE will emit the event prefixed with "PIE-".
|
|
1051
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
1052
|
+
|
|
1053
|
+
##### `iconAlt` (string, required)
|
|
1054
|
+
|
|
1055
|
+
The alt for the custom button icon
|
|
1056
|
+
|
|
1057
|
+
##### `iconType` (string, required)
|
|
1058
|
+
|
|
1059
|
+
The icon type.
|
|
1060
|
+
Currently, only "SVG" is supported.
|
|
1061
|
+
|
|
1062
|
+
##### `icon` (string, required)
|
|
1063
|
+
|
|
1064
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
1065
|
+
|
|
782
1066
|
### `required` (boolean)
|
|
783
1067
|
|
|
784
1068
|
Indicates if the item is required and the value cannot be empty
|
package/docs/pie-schema.json
CHANGED
|
@@ -280,6 +280,43 @@
|
|
|
280
280
|
"title": "disabled"
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
+
},
|
|
284
|
+
"customPlugins": {
|
|
285
|
+
"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.",
|
|
286
|
+
"type": "array",
|
|
287
|
+
"items": {
|
|
288
|
+
"title": "CustomPlugin",
|
|
289
|
+
"type": "object",
|
|
290
|
+
"properties": {
|
|
291
|
+
"event": {
|
|
292
|
+
"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\"",
|
|
293
|
+
"type": "string",
|
|
294
|
+
"title": "event"
|
|
295
|
+
},
|
|
296
|
+
"iconAlt": {
|
|
297
|
+
"description": "The alt for the custom button icon",
|
|
298
|
+
"type": "string",
|
|
299
|
+
"title": "iconAlt"
|
|
300
|
+
},
|
|
301
|
+
"iconType": {
|
|
302
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
303
|
+
"type": "string",
|
|
304
|
+
"title": "iconType"
|
|
305
|
+
},
|
|
306
|
+
"icon": {
|
|
307
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
308
|
+
"type": "string",
|
|
309
|
+
"title": "icon"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"required": [
|
|
313
|
+
"event",
|
|
314
|
+
"icon",
|
|
315
|
+
"iconAlt",
|
|
316
|
+
"iconType"
|
|
317
|
+
]
|
|
318
|
+
},
|
|
319
|
+
"title": "customPlugins"
|
|
283
320
|
}
|
|
284
321
|
}
|
|
285
322
|
},
|
|
@@ -294,6 +331,38 @@
|
|
|
294
331
|
}
|
|
295
332
|
}
|
|
296
333
|
},
|
|
334
|
+
"CustomPlugin": {
|
|
335
|
+
"title": "CustomPlugin",
|
|
336
|
+
"type": "object",
|
|
337
|
+
"properties": {
|
|
338
|
+
"event": {
|
|
339
|
+
"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\"",
|
|
340
|
+
"type": "string",
|
|
341
|
+
"title": "event"
|
|
342
|
+
},
|
|
343
|
+
"iconAlt": {
|
|
344
|
+
"description": "The alt for the custom button icon",
|
|
345
|
+
"type": "string",
|
|
346
|
+
"title": "iconAlt"
|
|
347
|
+
},
|
|
348
|
+
"iconType": {
|
|
349
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
350
|
+
"type": "string",
|
|
351
|
+
"title": "iconType"
|
|
352
|
+
},
|
|
353
|
+
"icon": {
|
|
354
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
355
|
+
"type": "string",
|
|
356
|
+
"title": "icon"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"required": [
|
|
360
|
+
"event",
|
|
361
|
+
"icon",
|
|
362
|
+
"iconAlt",
|
|
363
|
+
"iconType"
|
|
364
|
+
]
|
|
365
|
+
},
|
|
297
366
|
"EditableHtmlPluginConfigure": {
|
|
298
367
|
"title": "EditableHtmlPluginConfigure",
|
|
299
368
|
"type": "object",
|
|
@@ -345,6 +414,43 @@
|
|
|
345
414
|
"title": "disabled"
|
|
346
415
|
}
|
|
347
416
|
}
|
|
417
|
+
},
|
|
418
|
+
"customPlugins": {
|
|
419
|
+
"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.",
|
|
420
|
+
"type": "array",
|
|
421
|
+
"items": {
|
|
422
|
+
"title": "CustomPlugin",
|
|
423
|
+
"type": "object",
|
|
424
|
+
"properties": {
|
|
425
|
+
"event": {
|
|
426
|
+
"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\"",
|
|
427
|
+
"type": "string",
|
|
428
|
+
"title": "event"
|
|
429
|
+
},
|
|
430
|
+
"iconAlt": {
|
|
431
|
+
"description": "The alt for the custom button icon",
|
|
432
|
+
"type": "string",
|
|
433
|
+
"title": "iconAlt"
|
|
434
|
+
},
|
|
435
|
+
"iconType": {
|
|
436
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
437
|
+
"type": "string",
|
|
438
|
+
"title": "iconType"
|
|
439
|
+
},
|
|
440
|
+
"icon": {
|
|
441
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
442
|
+
"type": "string",
|
|
443
|
+
"title": "icon"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"required": [
|
|
447
|
+
"event",
|
|
448
|
+
"icon",
|
|
449
|
+
"iconAlt",
|
|
450
|
+
"iconType"
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
"title": "customPlugins"
|
|
348
454
|
}
|
|
349
455
|
}
|
|
350
456
|
},
|
|
@@ -411,6 +517,43 @@
|
|
|
411
517
|
"title": "disabled"
|
|
412
518
|
}
|
|
413
519
|
}
|
|
520
|
+
},
|
|
521
|
+
"customPlugins": {
|
|
522
|
+
"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.",
|
|
523
|
+
"type": "array",
|
|
524
|
+
"items": {
|
|
525
|
+
"title": "CustomPlugin",
|
|
526
|
+
"type": "object",
|
|
527
|
+
"properties": {
|
|
528
|
+
"event": {
|
|
529
|
+
"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\"",
|
|
530
|
+
"type": "string",
|
|
531
|
+
"title": "event"
|
|
532
|
+
},
|
|
533
|
+
"iconAlt": {
|
|
534
|
+
"description": "The alt for the custom button icon",
|
|
535
|
+
"type": "string",
|
|
536
|
+
"title": "iconAlt"
|
|
537
|
+
},
|
|
538
|
+
"iconType": {
|
|
539
|
+
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
540
|
+
"type": "string",
|
|
541
|
+
"title": "iconType"
|
|
542
|
+
},
|
|
543
|
+
"icon": {
|
|
544
|
+
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
545
|
+
"type": "string",
|
|
546
|
+
"title": "icon"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"required": [
|
|
550
|
+
"event",
|
|
551
|
+
"icon",
|
|
552
|
+
"iconAlt",
|
|
553
|
+
"iconType"
|
|
554
|
+
]
|
|
555
|
+
},
|
|
556
|
+
"title": "customPlugins"
|
|
414
557
|
}
|
|
415
558
|
}
|
|
416
559
|
},
|
package/docs/pie-schema.json.md
CHANGED
|
@@ -231,6 +231,35 @@ Properties of the `image` object:
|
|
|
231
231
|
|
|
232
232
|
Indicates if the plugin is disabled or not
|
|
233
233
|
|
|
234
|
+
### `customPlugins` (array)
|
|
235
|
+
|
|
236
|
+
An array of objects that determine custom plugins.
|
|
237
|
+
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).
|
|
238
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
239
|
+
|
|
240
|
+
The object is an array with all elements of the type `object`.
|
|
241
|
+
|
|
242
|
+
The array object has the following properties:
|
|
243
|
+
|
|
244
|
+
#### `event` (string, required)
|
|
245
|
+
|
|
246
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
247
|
+
PIE will emit the event prefixed with "PIE-".
|
|
248
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
249
|
+
|
|
250
|
+
#### `iconAlt` (string, required)
|
|
251
|
+
|
|
252
|
+
The alt for the custom button icon
|
|
253
|
+
|
|
254
|
+
#### `iconType` (string, required)
|
|
255
|
+
|
|
256
|
+
The icon type.
|
|
257
|
+
Currently, only "SVG" is supported.
|
|
258
|
+
|
|
259
|
+
#### `icon` (string, required)
|
|
260
|
+
|
|
261
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
262
|
+
|
|
234
263
|
## `EditableHtmlButtonConfigure` (object)
|
|
235
264
|
|
|
236
265
|
Properties of the `EditableHtmlButtonConfigure` object:
|
|
@@ -239,6 +268,29 @@ Properties of the `EditableHtmlButtonConfigure` object:
|
|
|
239
268
|
|
|
240
269
|
Indicates if the plugin is disabled or not
|
|
241
270
|
|
|
271
|
+
## `CustomPlugin` (object)
|
|
272
|
+
|
|
273
|
+
Properties of the `CustomPlugin` object:
|
|
274
|
+
|
|
275
|
+
### `event` (string, required)
|
|
276
|
+
|
|
277
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
278
|
+
PIE will emit the event prefixed with "PIE-".
|
|
279
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
280
|
+
|
|
281
|
+
### `iconAlt` (string, required)
|
|
282
|
+
|
|
283
|
+
The alt for the custom button icon
|
|
284
|
+
|
|
285
|
+
### `iconType` (string, required)
|
|
286
|
+
|
|
287
|
+
The icon type.
|
|
288
|
+
Currently, only "SVG" is supported.
|
|
289
|
+
|
|
290
|
+
### `icon` (string, required)
|
|
291
|
+
|
|
292
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
293
|
+
|
|
242
294
|
## `EditableHtmlPluginConfigure` (object)
|
|
243
295
|
|
|
244
296
|
Properties of the `EditableHtmlPluginConfigure` object:
|
|
@@ -279,6 +331,35 @@ Properties of the `image` object:
|
|
|
279
331
|
|
|
280
332
|
Indicates if the plugin is disabled or not
|
|
281
333
|
|
|
334
|
+
#### `customPlugins` (array)
|
|
335
|
+
|
|
336
|
+
An array of objects that determine custom plugins.
|
|
337
|
+
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).
|
|
338
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
339
|
+
|
|
340
|
+
The object is an array with all elements of the type `object`.
|
|
341
|
+
|
|
342
|
+
The array object has the following properties:
|
|
343
|
+
|
|
344
|
+
##### `event` (string, required)
|
|
345
|
+
|
|
346
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
347
|
+
PIE will emit the event prefixed with "PIE-".
|
|
348
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
349
|
+
|
|
350
|
+
##### `iconAlt` (string, required)
|
|
351
|
+
|
|
352
|
+
The alt for the custom button icon
|
|
353
|
+
|
|
354
|
+
##### `iconType` (string, required)
|
|
355
|
+
|
|
356
|
+
The icon type.
|
|
357
|
+
Currently, only "SVG" is supported.
|
|
358
|
+
|
|
359
|
+
##### `icon` (string, required)
|
|
360
|
+
|
|
361
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
362
|
+
|
|
282
363
|
### `settings` (boolean)
|
|
283
364
|
|
|
284
365
|
Indicates if the item has to be displayed in the Settings Panel
|
|
@@ -327,6 +408,35 @@ Properties of the `image` object:
|
|
|
327
408
|
|
|
328
409
|
Indicates if the plugin is disabled or not
|
|
329
410
|
|
|
411
|
+
#### `customPlugins` (array)
|
|
412
|
+
|
|
413
|
+
An array of objects that determine custom plugins.
|
|
414
|
+
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).
|
|
415
|
+
Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
|
|
416
|
+
|
|
417
|
+
The object is an array with all elements of the type `object`.
|
|
418
|
+
|
|
419
|
+
The array object has the following properties:
|
|
420
|
+
|
|
421
|
+
##### `event` (string, required)
|
|
422
|
+
|
|
423
|
+
The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
|
|
424
|
+
PIE will emit the event prefixed with "PIE-".
|
|
425
|
+
Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
|
|
426
|
+
|
|
427
|
+
##### `iconAlt` (string, required)
|
|
428
|
+
|
|
429
|
+
The alt for the custom button icon
|
|
430
|
+
|
|
431
|
+
##### `iconType` (string, required)
|
|
432
|
+
|
|
433
|
+
The icon type.
|
|
434
|
+
Currently, only "SVG" is supported.
|
|
435
|
+
|
|
436
|
+
##### `icon` (string, required)
|
|
437
|
+
|
|
438
|
+
The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
|
|
439
|
+
|
|
330
440
|
### `required` (boolean)
|
|
331
441
|
|
|
332
442
|
Indicates if the item is required and the value cannot be empty
|
package/module/configure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.3/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
package/module/element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.3/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
package/module/index.html
CHANGED
package/module/manifest.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/multiple-choice",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.11.0",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@pie-lib/pie-toolbox-math-rendering-module",
|
|
7
|
-
"version": "1.5.
|
|
7
|
+
"version": "1.5.3"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"name": "@pie-lib/pie-toolbox-module",
|
package/module/print.html
CHANGED
package/module/print.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.3/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/multiple-choice",
|
|
3
3
|
"repository": "pie-framework/pie-elements",
|
|
4
|
-
"version": "8.11.
|
|
4
|
+
"version": "8.11.1-next.16+44cb8eb36",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"react-test-renderer": "^16.3.2",
|
|
19
19
|
"react-transition-group": "^2.3.1"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "44cb8eb36e997cd5218007c604c8d94137022f6e",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"postpublish": "../../scripts/postpublish"
|
|
24
24
|
},
|