@pie-element/likert 0.26.1-next.5 → 0.27.0

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.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.27.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@0.26.0...@pie-element/likert@0.27.0) (2024-04-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * **inline-dropdown:** upgrade pie-toolbox PD-2465 ([828d1c1](https://github.com/pie-framework/pie-elements/commit/828d1c1bc9e9221c1e141baaa8f89a4929ad0eb9))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.26.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@0.25.0...@pie-element/likert@0.26.0) (2024-04-01)
7
18
 
8
19
 
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.22.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@0.21.0...@pie-element/likert-configure@0.22.0) (2024-04-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * **inline-dropdown:** upgrade pie-toolbox PD-2465 ([828d1c1](https://github.com/pie-framework/pie-elements/commit/828d1c1bc9e9221c1e141baaa8f89a4929ad0eb9))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.21.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@0.20.0...@pie-element/likert-configure@0.21.0) (2024-04-01)
7
18
 
8
19
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/likert-configure",
3
3
  "private": true,
4
- "version": "0.21.0",
4
+ "version": "0.22.0",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
11
  "@pie-framework/pie-configure-events": "^1.3.0",
12
- "@pie-lib/pie-toolbox": "1.12.3",
12
+ "@pie-lib/pie-toolbox": "1.13.0",
13
13
  "debug": "^4.1.1",
14
14
  "prop-types": "^15.6.2",
15
15
  "react": "^16.8.1",
@@ -75,6 +75,43 @@
75
75
  "title": "disabled"
76
76
  }
77
77
  }
78
+ },
79
+ "customPlugins": {
80
+ "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.",
81
+ "type": "array",
82
+ "items": {
83
+ "title": "CustomPlugin",
84
+ "type": "object",
85
+ "properties": {
86
+ "event": {
87
+ "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\"",
88
+ "type": "string",
89
+ "title": "event"
90
+ },
91
+ "iconAlt": {
92
+ "description": "The alt for the custom button icon",
93
+ "type": "string",
94
+ "title": "iconAlt"
95
+ },
96
+ "iconType": {
97
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
98
+ "type": "string",
99
+ "title": "iconType"
100
+ },
101
+ "icon": {
102
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
103
+ "type": "string",
104
+ "title": "icon"
105
+ }
106
+ },
107
+ "required": [
108
+ "event",
109
+ "icon",
110
+ "iconAlt",
111
+ "iconType"
112
+ ]
113
+ },
114
+ "title": "customPlugins"
78
115
  }
79
116
  }
80
117
  },
@@ -146,6 +183,43 @@
146
183
  "title": "disabled"
147
184
  }
148
185
  }
186
+ },
187
+ "customPlugins": {
188
+ "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.",
189
+ "type": "array",
190
+ "items": {
191
+ "title": "CustomPlugin",
192
+ "type": "object",
193
+ "properties": {
194
+ "event": {
195
+ "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\"",
196
+ "type": "string",
197
+ "title": "event"
198
+ },
199
+ "iconAlt": {
200
+ "description": "The alt for the custom button icon",
201
+ "type": "string",
202
+ "title": "iconAlt"
203
+ },
204
+ "iconType": {
205
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
206
+ "type": "string",
207
+ "title": "iconType"
208
+ },
209
+ "icon": {
210
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
211
+ "type": "string",
212
+ "title": "icon"
213
+ }
214
+ },
215
+ "required": [
216
+ "event",
217
+ "icon",
218
+ "iconAlt",
219
+ "iconType"
220
+ ]
221
+ },
222
+ "title": "customPlugins"
149
223
  }
150
224
  }
151
225
  },
@@ -213,6 +287,43 @@
213
287
  "title": "disabled"
214
288
  }
215
289
  }
290
+ },
291
+ "customPlugins": {
292
+ "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.",
293
+ "type": "array",
294
+ "items": {
295
+ "title": "CustomPlugin",
296
+ "type": "object",
297
+ "properties": {
298
+ "event": {
299
+ "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\"",
300
+ "type": "string",
301
+ "title": "event"
302
+ },
303
+ "iconAlt": {
304
+ "description": "The alt for the custom button icon",
305
+ "type": "string",
306
+ "title": "iconAlt"
307
+ },
308
+ "iconType": {
309
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
310
+ "type": "string",
311
+ "title": "iconType"
312
+ },
313
+ "icon": {
314
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
315
+ "type": "string",
316
+ "title": "icon"
317
+ }
318
+ },
319
+ "required": [
320
+ "event",
321
+ "icon",
322
+ "iconAlt",
323
+ "iconType"
324
+ ]
325
+ },
326
+ "title": "customPlugins"
216
327
  }
217
328
  }
218
329
  },
@@ -267,6 +378,43 @@
267
378
  "title": "disabled"
268
379
  }
269
380
  }
381
+ },
382
+ "customPlugins": {
383
+ "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.",
384
+ "type": "array",
385
+ "items": {
386
+ "title": "CustomPlugin",
387
+ "type": "object",
388
+ "properties": {
389
+ "event": {
390
+ "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\"",
391
+ "type": "string",
392
+ "title": "event"
393
+ },
394
+ "iconAlt": {
395
+ "description": "The alt for the custom button icon",
396
+ "type": "string",
397
+ "title": "iconAlt"
398
+ },
399
+ "iconType": {
400
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
401
+ "type": "string",
402
+ "title": "iconType"
403
+ },
404
+ "icon": {
405
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
406
+ "type": "string",
407
+ "title": "icon"
408
+ }
409
+ },
410
+ "required": [
411
+ "event",
412
+ "icon",
413
+ "iconAlt",
414
+ "iconType"
415
+ ]
416
+ },
417
+ "title": "customPlugins"
270
418
  }
271
419
  }
272
420
  },
@@ -413,6 +561,43 @@
413
561
  "title": "disabled"
414
562
  }
415
563
  }
564
+ },
565
+ "customPlugins": {
566
+ "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.",
567
+ "type": "array",
568
+ "items": {
569
+ "title": "CustomPlugin",
570
+ "type": "object",
571
+ "properties": {
572
+ "event": {
573
+ "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\"",
574
+ "type": "string",
575
+ "title": "event"
576
+ },
577
+ "iconAlt": {
578
+ "description": "The alt for the custom button icon",
579
+ "type": "string",
580
+ "title": "iconAlt"
581
+ },
582
+ "iconType": {
583
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
584
+ "type": "string",
585
+ "title": "iconType"
586
+ },
587
+ "icon": {
588
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
589
+ "type": "string",
590
+ "title": "icon"
591
+ }
592
+ },
593
+ "required": [
594
+ "event",
595
+ "icon",
596
+ "iconAlt",
597
+ "iconType"
598
+ ]
599
+ },
600
+ "title": "customPlugins"
416
601
  }
417
602
  }
418
603
  },
@@ -480,6 +665,43 @@
480
665
  "title": "disabled"
481
666
  }
482
667
  }
668
+ },
669
+ "customPlugins": {
670
+ "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.",
671
+ "type": "array",
672
+ "items": {
673
+ "title": "CustomPlugin",
674
+ "type": "object",
675
+ "properties": {
676
+ "event": {
677
+ "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\"",
678
+ "type": "string",
679
+ "title": "event"
680
+ },
681
+ "iconAlt": {
682
+ "description": "The alt for the custom button icon",
683
+ "type": "string",
684
+ "title": "iconAlt"
685
+ },
686
+ "iconType": {
687
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
688
+ "type": "string",
689
+ "title": "iconType"
690
+ },
691
+ "icon": {
692
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
693
+ "type": "string",
694
+ "title": "icon"
695
+ }
696
+ },
697
+ "required": [
698
+ "event",
699
+ "icon",
700
+ "iconAlt",
701
+ "iconType"
702
+ ]
703
+ },
704
+ "title": "customPlugins"
483
705
  }
484
706
  }
485
707
  },
@@ -494,6 +716,38 @@
494
716
  }
495
717
  }
496
718
  },
719
+ "CustomPlugin": {
720
+ "title": "CustomPlugin",
721
+ "type": "object",
722
+ "properties": {
723
+ "event": {
724
+ "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\"",
725
+ "type": "string",
726
+ "title": "event"
727
+ },
728
+ "iconAlt": {
729
+ "description": "The alt for the custom button icon",
730
+ "type": "string",
731
+ "title": "iconAlt"
732
+ },
733
+ "iconType": {
734
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
735
+ "type": "string",
736
+ "title": "iconType"
737
+ },
738
+ "icon": {
739
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
740
+ "type": "string",
741
+ "title": "icon"
742
+ }
743
+ },
744
+ "required": [
745
+ "event",
746
+ "icon",
747
+ "iconAlt",
748
+ "iconType"
749
+ ]
750
+ },
497
751
  "EditableHtmlPluginConfigure": {
498
752
  "title": "EditableHtmlPluginConfigure",
499
753
  "type": "object",
@@ -545,6 +799,43 @@
545
799
  "title": "disabled"
546
800
  }
547
801
  }
802
+ },
803
+ "customPlugins": {
804
+ "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.",
805
+ "type": "array",
806
+ "items": {
807
+ "title": "CustomPlugin",
808
+ "type": "object",
809
+ "properties": {
810
+ "event": {
811
+ "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\"",
812
+ "type": "string",
813
+ "title": "event"
814
+ },
815
+ "iconAlt": {
816
+ "description": "The alt for the custom button icon",
817
+ "type": "string",
818
+ "title": "iconAlt"
819
+ },
820
+ "iconType": {
821
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
822
+ "type": "string",
823
+ "title": "iconType"
824
+ },
825
+ "icon": {
826
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
827
+ "type": "string",
828
+ "title": "icon"
829
+ }
830
+ },
831
+ "required": [
832
+ "event",
833
+ "icon",
834
+ "iconAlt",
835
+ "iconType"
836
+ ]
837
+ },
838
+ "title": "customPlugins"
548
839
  }
549
840
  }
550
841
  },
@@ -58,6 +58,35 @@ Properties of the `image` object:
58
58
 
59
59
  Indicates if the plugin is disabled or not
60
60
 
61
+ ### `customPlugins` (array)
62
+
63
+ An array of objects that determine custom plugins.
64
+ 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).
65
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
66
+
67
+ The object is an array with all elements of the type `object`.
68
+
69
+ The array object has the following properties:
70
+
71
+ #### `event` (string, required)
72
+
73
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
74
+ PIE will emit the event prefixed with "PIE-".
75
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
76
+
77
+ #### `iconAlt` (string, required)
78
+
79
+ The alt for the custom button icon
80
+
81
+ #### `iconType` (string, required)
82
+
83
+ The icon type.
84
+ Currently, only "SVG" is supported.
85
+
86
+ #### `icon` (string, required)
87
+
88
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
89
+
61
90
  ## `required` (boolean)
62
91
 
63
92
  Indicates if the item is required and the value cannot be empty
@@ -110,6 +139,35 @@ Properties of the `image` object:
110
139
 
111
140
  Indicates if the plugin is disabled or not
112
141
 
142
+ ### `customPlugins` (array)
143
+
144
+ An array of objects that determine custom plugins.
145
+ 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).
146
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
147
+
148
+ The object is an array with all elements of the type `object`.
149
+
150
+ The array object has the following properties:
151
+
152
+ #### `event` (string, required)
153
+
154
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
155
+ PIE will emit the event prefixed with "PIE-".
156
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
157
+
158
+ #### `iconAlt` (string, required)
159
+
160
+ The alt for the custom button icon
161
+
162
+ #### `iconType` (string, required)
163
+
164
+ The icon type.
165
+ Currently, only "SVG" is supported.
166
+
167
+ #### `icon` (string, required)
168
+
169
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
170
+
113
171
  ## `required` (boolean)
114
172
 
115
173
  Indicates if the item is required and the value cannot be empty
@@ -158,6 +216,35 @@ Properties of the `image` object:
158
216
 
159
217
  Indicates if the plugin is disabled or not
160
218
 
219
+ ## `customPlugins` (array)
220
+
221
+ An array of objects that determine custom plugins.
222
+ 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).
223
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
224
+
225
+ The object is an array with all elements of the type `object`.
226
+
227
+ The array object has the following properties:
228
+
229
+ ### `event` (string, required)
230
+
231
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
232
+ PIE will emit the event prefixed with "PIE-".
233
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
234
+
235
+ ### `iconAlt` (string, required)
236
+
237
+ The alt for the custom button icon
238
+
239
+ ### `iconType` (string, required)
240
+
241
+ The icon type.
242
+ Currently, only "SVG" is supported.
243
+
244
+ ### `icon` (string, required)
245
+
246
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
247
+
161
248
  # `likertChoice` (object)
162
249
 
163
250
  Properties of the `likertChoice` object:
@@ -198,6 +285,35 @@ Properties of the `image` object:
198
285
 
199
286
  Indicates if the plugin is disabled or not
200
287
 
288
+ ### `customPlugins` (array)
289
+
290
+ An array of objects that determine custom plugins.
291
+ 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).
292
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
293
+
294
+ The object is an array with all elements of the type `object`.
295
+
296
+ The array object has the following properties:
297
+
298
+ #### `event` (string, required)
299
+
300
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
301
+ PIE will emit the event prefixed with "PIE-".
302
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
303
+
304
+ #### `iconAlt` (string, required)
305
+
306
+ The alt for the custom button icon
307
+
308
+ #### `iconType` (string, required)
309
+
310
+ The icon type.
311
+ Currently, only "SVG" is supported.
312
+
313
+ #### `icon` (string, required)
314
+
315
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
316
+
201
317
  ## `settings` (boolean)
202
318
 
203
319
  Indicates if the item has to be displayed in the Settings Panel
@@ -316,6 +432,35 @@ Properties of the `image` object:
316
432
 
317
433
  Indicates if the plugin is disabled or not
318
434
 
435
+ #### `customPlugins` (array)
436
+
437
+ An array of objects that determine custom plugins.
438
+ 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).
439
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
440
+
441
+ The object is an array with all elements of the type `object`.
442
+
443
+ The array object has the following properties:
444
+
445
+ ##### `event` (string, required)
446
+
447
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
448
+ PIE will emit the event prefixed with "PIE-".
449
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
450
+
451
+ ##### `iconAlt` (string, required)
452
+
453
+ The alt for the custom button icon
454
+
455
+ ##### `iconType` (string, required)
456
+
457
+ The icon type.
458
+ Currently, only "SVG" is supported.
459
+
460
+ ##### `icon` (string, required)
461
+
462
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
463
+
319
464
  ### `required` (boolean)
320
465
 
321
466
  Indicates if the item is required and the value cannot be empty
@@ -364,6 +509,35 @@ Properties of the `image` object:
364
509
 
365
510
  Indicates if the plugin is disabled or not
366
511
 
512
+ ### `customPlugins` (array)
513
+
514
+ An array of objects that determine custom plugins.
515
+ 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).
516
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
517
+
518
+ The object is an array with all elements of the type `object`.
519
+
520
+ The array object has the following properties:
521
+
522
+ #### `event` (string, required)
523
+
524
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
525
+ PIE will emit the event prefixed with "PIE-".
526
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
527
+
528
+ #### `iconAlt` (string, required)
529
+
530
+ The alt for the custom button icon
531
+
532
+ #### `iconType` (string, required)
533
+
534
+ The icon type.
535
+ Currently, only "SVG" is supported.
536
+
537
+ #### `icon` (string, required)
538
+
539
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
540
+
367
541
  ## `EditableHtmlButtonConfigure` (object)
368
542
 
369
543
  Properties of the `EditableHtmlButtonConfigure` object:
@@ -372,6 +546,29 @@ Properties of the `EditableHtmlButtonConfigure` object:
372
546
 
373
547
  Indicates if the plugin is disabled or not
374
548
 
549
+ ## `CustomPlugin` (object)
550
+
551
+ Properties of the `CustomPlugin` object:
552
+
553
+ ### `event` (string, required)
554
+
555
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
556
+ PIE will emit the event prefixed with "PIE-".
557
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
558
+
559
+ ### `iconAlt` (string, required)
560
+
561
+ The alt for the custom button icon
562
+
563
+ ### `iconType` (string, required)
564
+
565
+ The icon type.
566
+ Currently, only "SVG" is supported.
567
+
568
+ ### `icon` (string, required)
569
+
570
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
571
+
375
572
  ## `EditableHtmlPluginConfigure` (object)
376
573
 
377
574
  Properties of the `EditableHtmlPluginConfigure` object:
@@ -412,6 +609,35 @@ Properties of the `image` object:
412
609
 
413
610
  Indicates if the plugin is disabled or not
414
611
 
612
+ #### `customPlugins` (array)
613
+
614
+ An array of objects that determine custom plugins.
615
+ 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).
616
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
617
+
618
+ The object is an array with all elements of the type `object`.
619
+
620
+ The array object has the following properties:
621
+
622
+ ##### `event` (string, required)
623
+
624
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
625
+ PIE will emit the event prefixed with "PIE-".
626
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
627
+
628
+ ##### `iconAlt` (string, required)
629
+
630
+ The alt for the custom button icon
631
+
632
+ ##### `iconType` (string, required)
633
+
634
+ The icon type.
635
+ Currently, only "SVG" is supported.
636
+
637
+ ##### `icon` (string, required)
638
+
639
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
640
+
415
641
  ### `settings` (boolean)
416
642
 
417
643
  Indicates if the item has to be displayed in the Settings Panel
@@ -156,6 +156,43 @@
156
156
  "title": "disabled"
157
157
  }
158
158
  }
159
+ },
160
+ "customPlugins": {
161
+ "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.",
162
+ "type": "array",
163
+ "items": {
164
+ "title": "CustomPlugin",
165
+ "type": "object",
166
+ "properties": {
167
+ "event": {
168
+ "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\"",
169
+ "type": "string",
170
+ "title": "event"
171
+ },
172
+ "iconAlt": {
173
+ "description": "The alt for the custom button icon",
174
+ "type": "string",
175
+ "title": "iconAlt"
176
+ },
177
+ "iconType": {
178
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
179
+ "type": "string",
180
+ "title": "iconType"
181
+ },
182
+ "icon": {
183
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
184
+ "type": "string",
185
+ "title": "icon"
186
+ }
187
+ },
188
+ "required": [
189
+ "event",
190
+ "icon",
191
+ "iconAlt",
192
+ "iconType"
193
+ ]
194
+ },
195
+ "title": "customPlugins"
159
196
  }
160
197
  }
161
198
  },
@@ -223,6 +260,43 @@
223
260
  "title": "disabled"
224
261
  }
225
262
  }
263
+ },
264
+ "customPlugins": {
265
+ "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.",
266
+ "type": "array",
267
+ "items": {
268
+ "title": "CustomPlugin",
269
+ "type": "object",
270
+ "properties": {
271
+ "event": {
272
+ "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\"",
273
+ "type": "string",
274
+ "title": "event"
275
+ },
276
+ "iconAlt": {
277
+ "description": "The alt for the custom button icon",
278
+ "type": "string",
279
+ "title": "iconAlt"
280
+ },
281
+ "iconType": {
282
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
283
+ "type": "string",
284
+ "title": "iconType"
285
+ },
286
+ "icon": {
287
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
288
+ "type": "string",
289
+ "title": "icon"
290
+ }
291
+ },
292
+ "required": [
293
+ "event",
294
+ "icon",
295
+ "iconAlt",
296
+ "iconType"
297
+ ]
298
+ },
299
+ "title": "customPlugins"
226
300
  }
227
301
  }
228
302
  },
@@ -237,6 +311,38 @@
237
311
  }
238
312
  }
239
313
  },
314
+ "CustomPlugin": {
315
+ "title": "CustomPlugin",
316
+ "type": "object",
317
+ "properties": {
318
+ "event": {
319
+ "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\"",
320
+ "type": "string",
321
+ "title": "event"
322
+ },
323
+ "iconAlt": {
324
+ "description": "The alt for the custom button icon",
325
+ "type": "string",
326
+ "title": "iconAlt"
327
+ },
328
+ "iconType": {
329
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
330
+ "type": "string",
331
+ "title": "iconType"
332
+ },
333
+ "icon": {
334
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
335
+ "type": "string",
336
+ "title": "icon"
337
+ }
338
+ },
339
+ "required": [
340
+ "event",
341
+ "icon",
342
+ "iconAlt",
343
+ "iconType"
344
+ ]
345
+ },
240
346
  "EditableHtmlPluginConfigure": {
241
347
  "title": "EditableHtmlPluginConfigure",
242
348
  "type": "object",
@@ -288,6 +394,43 @@
288
394
  "title": "disabled"
289
395
  }
290
396
  }
397
+ },
398
+ "customPlugins": {
399
+ "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.",
400
+ "type": "array",
401
+ "items": {
402
+ "title": "CustomPlugin",
403
+ "type": "object",
404
+ "properties": {
405
+ "event": {
406
+ "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\"",
407
+ "type": "string",
408
+ "title": "event"
409
+ },
410
+ "iconAlt": {
411
+ "description": "The alt for the custom button icon",
412
+ "type": "string",
413
+ "title": "iconAlt"
414
+ },
415
+ "iconType": {
416
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
417
+ "type": "string",
418
+ "title": "iconType"
419
+ },
420
+ "icon": {
421
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
422
+ "type": "string",
423
+ "title": "icon"
424
+ }
425
+ },
426
+ "required": [
427
+ "event",
428
+ "icon",
429
+ "iconAlt",
430
+ "iconType"
431
+ ]
432
+ },
433
+ "title": "customPlugins"
291
434
  }
292
435
  }
293
436
  },
@@ -124,6 +124,35 @@ Properties of the `image` object:
124
124
 
125
125
  Indicates if the plugin is disabled or not
126
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
+
127
156
  ### `required` (boolean)
128
157
 
129
158
  Indicates if the item is required and the value cannot be empty
@@ -172,6 +201,35 @@ Properties of the `image` object:
172
201
 
173
202
  Indicates if the plugin is disabled or not
174
203
 
204
+ ### `customPlugins` (array)
205
+
206
+ An array of objects that determine custom plugins.
207
+ 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).
208
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
209
+
210
+ The object is an array with all elements of the type `object`.
211
+
212
+ The array object has the following properties:
213
+
214
+ #### `event` (string, required)
215
+
216
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
217
+ PIE will emit the event prefixed with "PIE-".
218
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
219
+
220
+ #### `iconAlt` (string, required)
221
+
222
+ The alt for the custom button icon
223
+
224
+ #### `iconType` (string, required)
225
+
226
+ The icon type.
227
+ Currently, only "SVG" is supported.
228
+
229
+ #### `icon` (string, required)
230
+
231
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
232
+
175
233
  ## `EditableHtmlButtonConfigure` (object)
176
234
 
177
235
  Properties of the `EditableHtmlButtonConfigure` object:
@@ -180,6 +238,29 @@ Properties of the `EditableHtmlButtonConfigure` object:
180
238
 
181
239
  Indicates if the plugin is disabled or not
182
240
 
241
+ ## `CustomPlugin` (object)
242
+
243
+ Properties of the `CustomPlugin` object:
244
+
245
+ ### `event` (string, required)
246
+
247
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
248
+ PIE will emit the event prefixed with "PIE-".
249
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
250
+
251
+ ### `iconAlt` (string, required)
252
+
253
+ The alt for the custom button icon
254
+
255
+ ### `iconType` (string, required)
256
+
257
+ The icon type.
258
+ Currently, only "SVG" is supported.
259
+
260
+ ### `icon` (string, required)
261
+
262
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
263
+
183
264
  ## `EditableHtmlPluginConfigure` (object)
184
265
 
185
266
  Properties of the `EditableHtmlPluginConfigure` object:
@@ -220,6 +301,35 @@ Properties of the `image` object:
220
301
 
221
302
  Indicates if the plugin is disabled or not
222
303
 
304
+ #### `customPlugins` (array)
305
+
306
+ An array of objects that determine custom plugins.
307
+ 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).
308
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
309
+
310
+ The object is an array with all elements of the type `object`.
311
+
312
+ The array object has the following properties:
313
+
314
+ ##### `event` (string, required)
315
+
316
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
317
+ PIE will emit the event prefixed with "PIE-".
318
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
319
+
320
+ ##### `iconAlt` (string, required)
321
+
322
+ The alt for the custom button icon
323
+
324
+ ##### `iconType` (string, required)
325
+
326
+ The icon type.
327
+ Currently, only "SVG" is supported.
328
+
329
+ ##### `icon` (string, required)
330
+
331
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
332
+
223
333
  ### `settings` (boolean)
224
334
 
225
335
  Indicates if the item has to be displayed in the Settings Panel
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "0.26.1-next.5+579694d54",
7
+ "version": "0.27.0",
8
8
  "description": "",
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "@material-ui/core": "^3.9.2",
14
14
  "@pie-framework/pie-player-events": "^0.1.0",
15
- "@pie-lib/pie-toolbox": "1.12.3",
15
+ "@pie-lib/pie-toolbox": "1.13.0",
16
16
  "classnames": "^2.2.5",
17
17
  "debug": "^4.1.1",
18
18
  "lodash": "^4.17.10",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "author": "",
26
26
  "license": "ISC",
27
- "gitHead": "579694d5468995065657b651f06ec9513d0476b6",
27
+ "gitHead": "8aa41b3cc02c1b22eabc23d971e0b6659e82eee7",
28
28
  "main": "lib/index.js",
29
29
  "module": "src/index.js"
30
30
  }