@kws3/ui 2.0.5 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/CHANGELOG.mdx +10 -0
  2. package/buttons/ConfirmButton.svelte +7 -6
  3. package/buttons/DeleteButton.svelte +14 -8
  4. package/buttons/ProcessButton.svelte +15 -9
  5. package/buttons/SubmitButton.svelte +11 -8
  6. package/canvas/Canvas.svelte +263 -0
  7. package/canvas/ESignature.svelte +101 -0
  8. package/canvas/PenControls.svelte +234 -0
  9. package/canvas/PenInput.svelte +152 -0
  10. package/charts/AreaChart.svelte +2 -2
  11. package/charts/BarChart.svelte +2 -2
  12. package/charts/Chart.svelte +16 -12
  13. package/charts/DonutChart.svelte +2 -2
  14. package/charts/LineChart.svelte +2 -2
  15. package/charts/MixedChart.svelte +2 -2
  16. package/charts/PieChart.svelte +2 -2
  17. package/charts/RadialChart.svelte +2 -2
  18. package/charts/utils.d.ts +553 -0
  19. package/charts/utils.d.ts.map +1 -0
  20. package/charts/utils.js +27 -4
  21. package/controls/Checkbox.svelte +7 -6
  22. package/controls/FileUpload.svelte +5 -4
  23. package/controls/NumberInput.svelte +5 -5
  24. package/controls/Radio.svelte +2 -2
  25. package/controls/RangeSlider.svelte +3 -3
  26. package/controls/Toggle.svelte +2 -2
  27. package/controls/ToggleButtons.svelte +1 -1
  28. package/datagrid/GridView/GridRow.svelte +4 -4
  29. package/datagrid/GridView/GridView.svelte +7 -4
  30. package/datagrid/Pagination/Pagination.svelte +12 -11
  31. package/form/index.d.ts +15 -0
  32. package/form/index.d.ts.map +1 -0
  33. package/forms/AutoComplete.svelte +5 -5
  34. package/forms/Datepicker.svelte +4 -3
  35. package/forms/MaskedInput.svelte +1 -1
  36. package/forms/PasswordInput.svelte +224 -0
  37. package/forms/PasswordValidator/validatePassword.d.ts +5 -0
  38. package/forms/PasswordValidator/validatePassword.d.ts.map +1 -0
  39. package/forms/SearchInput.svelte +10 -5
  40. package/forms/Timepicker.svelte +9 -6
  41. package/forms/actions.d.ts +9 -0
  42. package/forms/actions.d.ts.map +1 -0
  43. package/forms/actions.js +6 -0
  44. package/forms/colorpicker/Colorpicker.d.ts +3 -0
  45. package/forms/colorpicker/Colorpicker.d.ts.map +1 -0
  46. package/forms/colorpicker/Colorpicker.js +12 -2
  47. package/forms/colorpicker/Colorpicker.svelte +10 -3
  48. package/forms/select/MultiSelect.svelte +8 -9
  49. package/forms/select/SearchableSelect.svelte +10 -5
  50. package/helpers/CardModal.svelte +7 -2
  51. package/helpers/ClipboardCopier.svelte +3 -3
  52. package/helpers/Dialog/Dialog.svelte +9 -7
  53. package/helpers/Dialog/index.d.ts +42 -0
  54. package/helpers/Dialog/index.d.ts.map +1 -0
  55. package/helpers/Dialog/index.js +58 -19
  56. package/helpers/Divider.svelte +10 -4
  57. package/helpers/FloatingUI/Floatie.svelte +1 -1
  58. package/helpers/FloatingUI/index.d.ts +51 -0
  59. package/helpers/FloatingUI/index.d.ts.map +1 -0
  60. package/helpers/FloatingUI/index.js +13 -0
  61. package/helpers/Icon.svelte +14 -7
  62. package/helpers/Loader.svelte +5 -5
  63. package/helpers/Message.svelte +11 -6
  64. package/helpers/Modal.svelte +7 -2
  65. package/helpers/Notification.svelte +6 -2
  66. package/helpers/Popover.svelte +13 -6
  67. package/helpers/Skeleton.svelte +3 -3
  68. package/helpers/Timeline/Timeline.svelte +1 -1
  69. package/helpers/Timeline/TimelineItem.svelte +8 -4
  70. package/helpers/Tooltip.d.ts +19 -0
  71. package/helpers/Tooltip.d.ts.map +1 -0
  72. package/helpers/Tooltip.js +14 -1
  73. package/index.d.ts +69 -0
  74. package/index.d.ts.map +1 -0
  75. package/index.js +7 -0
  76. package/internal/DrawingPad.d.ts +86 -0
  77. package/internal/DrawingPad.d.ts.map +1 -0
  78. package/internal/DrawingPad.js +306 -0
  79. package/internal/UndoManager.d.ts +17 -0
  80. package/internal/UndoManager.d.ts.map +1 -0
  81. package/internal/UndoManager.js +84 -0
  82. package/internal/fuzzy.d.ts +24 -0
  83. package/internal/fuzzy.d.ts.map +1 -0
  84. package/internal/index.d.ts +16 -0
  85. package/internal/index.d.ts.map +1 -0
  86. package/internal/index.js +5 -1
  87. package/internal/scrollIntoActiveElement.d.ts +2 -0
  88. package/internal/scrollIntoActiveElement.d.ts.map +1 -0
  89. package/keyboard/index.d.ts +30 -0
  90. package/keyboard/index.d.ts.map +1 -0
  91. package/keyboard/index.js +1 -1
  92. package/package.json +7 -4
  93. package/resizeObserver/index.d.ts +8 -0
  94. package/resizeObserver/index.d.ts.map +1 -0
  95. package/search/index.d.ts +17 -0
  96. package/search/index.d.ts.map +1 -0
  97. package/settings.d.ts +22 -0
  98. package/settings.d.ts.map +1 -0
  99. package/settings.js +6 -1
  100. package/styles/Canvas.scss +100 -0
  101. package/transitions/components/getEasing.d.ts +2 -0
  102. package/transitions/components/getEasing.d.ts.map +1 -0
  103. package/tsconfig.json +33 -0
  104. package/types/index.d.ts +103 -9
  105. package/types/type-defs/index.d.ts +64 -0
  106. package/utils/index.d.ts +77 -0
  107. package/utils/index.d.ts.map +1 -0
  108. package/types/type-defs/index.ts +0 -14
@@ -0,0 +1,553 @@
1
+ export function pieChartOptions(labels: any, is_sparkline: any): {
2
+ chart: {
3
+ type: string;
4
+ dropShadow: {
5
+ enabled: boolean;
6
+ };
7
+ toolbar: {
8
+ show: boolean;
9
+ };
10
+ sparkline: {
11
+ enabled: boolean;
12
+ };
13
+ };
14
+ colors: string[];
15
+ fill: {
16
+ opacity: number;
17
+ };
18
+ stroke: {
19
+ width: number;
20
+ };
21
+ states: {
22
+ active: {
23
+ filter: {
24
+ type: string;
25
+ };
26
+ };
27
+ };
28
+ dataLabels: {
29
+ enabled: boolean;
30
+ };
31
+ tooltip: {
32
+ shared: boolean;
33
+ intersect: boolean;
34
+ fillSeriesColor: boolean;
35
+ x: {
36
+ show: boolean;
37
+ formatter: any;
38
+ };
39
+ theme: boolean;
40
+ };
41
+ labels: any;
42
+ legend: {
43
+ position: string;
44
+ horizontalAlign: string;
45
+ labels: {
46
+ useSeriesColors: boolean;
47
+ };
48
+ markers: {
49
+ size: number;
50
+ shape: string;
51
+ };
52
+ };
53
+ };
54
+ export function donutChartOptions(labels: any, is_sparkline: any): {
55
+ chart: {
56
+ type: string;
57
+ dropShadow: {
58
+ enabled: boolean;
59
+ };
60
+ toolbar: {
61
+ show: boolean;
62
+ };
63
+ sparkline: {
64
+ enabled: boolean;
65
+ };
66
+ };
67
+ colors: string[];
68
+ fill: {
69
+ opacity: number;
70
+ };
71
+ stroke: {
72
+ width: number;
73
+ };
74
+ states: {
75
+ active: {
76
+ filter: {
77
+ type: string;
78
+ };
79
+ };
80
+ };
81
+ dataLabels: {
82
+ enabled: boolean;
83
+ };
84
+ tooltip: {
85
+ shared: boolean;
86
+ intersect: boolean;
87
+ fillSeriesColor: boolean;
88
+ x: {
89
+ show: boolean;
90
+ formatter: any;
91
+ };
92
+ theme: boolean;
93
+ };
94
+ labels: any;
95
+ legend: {
96
+ position: string;
97
+ horizontalAlign: string;
98
+ labels: {
99
+ useSeriesColors: boolean;
100
+ };
101
+ markers: {
102
+ size: number;
103
+ shape: string;
104
+ };
105
+ };
106
+ };
107
+ export function radialChartOptions(labels: any, startAngle: any, endAngle: any, is_sparkline: any): {
108
+ chart: {
109
+ type: string;
110
+ dropShadow: {
111
+ enabled: boolean;
112
+ };
113
+ toolbar: {
114
+ show: boolean;
115
+ };
116
+ sparkline: {
117
+ enabled: boolean;
118
+ };
119
+ };
120
+ colors: string[];
121
+ fill: {
122
+ opacity: number;
123
+ };
124
+ stroke: {
125
+ width: number;
126
+ };
127
+ states: {
128
+ active: {
129
+ filter: {
130
+ type: string;
131
+ };
132
+ };
133
+ };
134
+ dataLabels: {
135
+ enabled: boolean;
136
+ };
137
+ tooltip: {
138
+ shared: boolean;
139
+ intersect: boolean;
140
+ fillSeriesColor: boolean;
141
+ x: {
142
+ show: boolean;
143
+ formatter: any;
144
+ };
145
+ theme: boolean;
146
+ };
147
+ labels: any;
148
+ legend: {
149
+ position: string;
150
+ horizontalAlign: string;
151
+ labels: {
152
+ useSeriesColors: boolean;
153
+ };
154
+ markers: {
155
+ size: number;
156
+ shape: string;
157
+ };
158
+ };
159
+ };
160
+ export function mixedChartOptions(xAxis: any, yAxis: any, is_sparkline: any): {
161
+ chart: {
162
+ type: string;
163
+ stacked: boolean;
164
+ dropShadow: {
165
+ enabled: boolean;
166
+ };
167
+ toolbar: {
168
+ show: boolean;
169
+ };
170
+ sparkline: {
171
+ enabled: boolean;
172
+ };
173
+ zoom: {
174
+ enabled: boolean;
175
+ };
176
+ };
177
+ colors: string[];
178
+ fill: {
179
+ opacity: number;
180
+ };
181
+ states: {
182
+ active: {
183
+ filter: {
184
+ type: string;
185
+ };
186
+ };
187
+ };
188
+ grid: {
189
+ clipMarkers: boolean;
190
+ };
191
+ dataLabels: {
192
+ enabled: boolean;
193
+ };
194
+ markers: {
195
+ size: number;
196
+ shape: string;
197
+ strokeWidth: number;
198
+ hover: {
199
+ sizeOffset: number;
200
+ };
201
+ };
202
+ plotOptions: {
203
+ bar: {
204
+ horizontal: boolean;
205
+ };
206
+ };
207
+ tooltip: {
208
+ shared: boolean;
209
+ intersect: boolean;
210
+ x: {
211
+ show: boolean;
212
+ };
213
+ y: ({
214
+ formatter?: undefined;
215
+ } | {
216
+ formatter: any;
217
+ })[];
218
+ fixed: {
219
+ enabled: boolean;
220
+ position: string;
221
+ offsetY: number;
222
+ offsetX: number;
223
+ };
224
+ theme: boolean;
225
+ };
226
+ xaxis: {
227
+ categories: any;
228
+ axisBorder: {
229
+ show: boolean;
230
+ };
231
+ axisTicks: {
232
+ show: boolean;
233
+ };
234
+ };
235
+ yaxis: any;
236
+ stroke: {
237
+ width: number;
238
+ curve: string;
239
+ };
240
+ legend: {
241
+ position: string;
242
+ horizontalAlign: string;
243
+ fontSize: string;
244
+ labels: {
245
+ useSeriesColors: boolean;
246
+ };
247
+ markers: {
248
+ width: number;
249
+ height: number;
250
+ radius: number;
251
+ };
252
+ itemMargin: {
253
+ horizontal: number;
254
+ vertical: number;
255
+ };
256
+ };
257
+ };
258
+ export function barChartOptions(xAxis: any, yAxis: any, is_sparkline: any, is_horizontal: any, is_distributed: any, is_stacked: any, is_stacked_full: any): {
259
+ chart: {
260
+ type: string;
261
+ stacked: boolean;
262
+ dropShadow: {
263
+ enabled: boolean;
264
+ };
265
+ toolbar: {
266
+ show: boolean;
267
+ };
268
+ sparkline: {
269
+ enabled: boolean;
270
+ };
271
+ zoom: {
272
+ enabled: boolean;
273
+ };
274
+ };
275
+ colors: string[];
276
+ fill: {
277
+ opacity: number;
278
+ };
279
+ states: {
280
+ active: {
281
+ filter: {
282
+ type: string;
283
+ };
284
+ };
285
+ };
286
+ grid: {
287
+ clipMarkers: boolean;
288
+ };
289
+ dataLabels: {
290
+ enabled: boolean;
291
+ };
292
+ markers: {
293
+ size: number;
294
+ shape: string;
295
+ strokeWidth: number;
296
+ hover: {
297
+ sizeOffset: number;
298
+ };
299
+ };
300
+ plotOptions: {
301
+ bar: {
302
+ horizontal: boolean;
303
+ };
304
+ };
305
+ tooltip: {
306
+ shared: boolean;
307
+ intersect: boolean;
308
+ x: {
309
+ show: boolean;
310
+ };
311
+ y: ({
312
+ formatter?: undefined;
313
+ } | {
314
+ formatter: any;
315
+ })[];
316
+ fixed: {
317
+ enabled: boolean;
318
+ position: string;
319
+ offsetY: number;
320
+ offsetX: number;
321
+ };
322
+ theme: boolean;
323
+ };
324
+ xaxis: {
325
+ categories: any;
326
+ axisBorder: {
327
+ show: boolean;
328
+ };
329
+ axisTicks: {
330
+ show: boolean;
331
+ };
332
+ };
333
+ yaxis: any;
334
+ stroke: {
335
+ width: number;
336
+ curve: string;
337
+ };
338
+ legend: {
339
+ position: string;
340
+ horizontalAlign: string;
341
+ fontSize: string;
342
+ labels: {
343
+ useSeriesColors: boolean;
344
+ };
345
+ markers: {
346
+ width: number;
347
+ height: number;
348
+ radius: number;
349
+ };
350
+ itemMargin: {
351
+ horizontal: number;
352
+ vertical: number;
353
+ };
354
+ };
355
+ };
356
+ export function lineChartOptions(xAxis: any, yAxis: any, is_sparkline: any): {
357
+ chart: {
358
+ type: string;
359
+ stacked: boolean;
360
+ dropShadow: {
361
+ enabled: boolean;
362
+ };
363
+ toolbar: {
364
+ show: boolean;
365
+ };
366
+ sparkline: {
367
+ enabled: boolean;
368
+ };
369
+ zoom: {
370
+ enabled: boolean;
371
+ };
372
+ };
373
+ colors: string[];
374
+ fill: {
375
+ opacity: number;
376
+ };
377
+ states: {
378
+ active: {
379
+ filter: {
380
+ type: string;
381
+ };
382
+ };
383
+ };
384
+ grid: {
385
+ clipMarkers: boolean;
386
+ };
387
+ dataLabels: {
388
+ enabled: boolean;
389
+ };
390
+ markers: {
391
+ size: number;
392
+ shape: string;
393
+ strokeWidth: number;
394
+ hover: {
395
+ sizeOffset: number;
396
+ };
397
+ };
398
+ plotOptions: {
399
+ bar: {
400
+ horizontal: boolean;
401
+ };
402
+ };
403
+ tooltip: {
404
+ shared: boolean;
405
+ intersect: boolean;
406
+ x: {
407
+ show: boolean;
408
+ };
409
+ y: ({
410
+ formatter?: undefined;
411
+ } | {
412
+ formatter: any;
413
+ })[];
414
+ fixed: {
415
+ enabled: boolean;
416
+ position: string;
417
+ offsetY: number;
418
+ offsetX: number;
419
+ };
420
+ theme: boolean;
421
+ };
422
+ xaxis: {
423
+ categories: any;
424
+ axisBorder: {
425
+ show: boolean;
426
+ };
427
+ axisTicks: {
428
+ show: boolean;
429
+ };
430
+ };
431
+ yaxis: any;
432
+ stroke: {
433
+ width: number;
434
+ curve: string;
435
+ };
436
+ legend: {
437
+ position: string;
438
+ horizontalAlign: string;
439
+ fontSize: string;
440
+ labels: {
441
+ useSeriesColors: boolean;
442
+ };
443
+ markers: {
444
+ width: number;
445
+ height: number;
446
+ radius: number;
447
+ };
448
+ itemMargin: {
449
+ horizontal: number;
450
+ vertical: number;
451
+ };
452
+ };
453
+ };
454
+ export function areaChartOptions(xAxis: any, yAxis: any, is_sparkline: any): {
455
+ chart: {
456
+ type: string;
457
+ stacked: boolean;
458
+ dropShadow: {
459
+ enabled: boolean;
460
+ };
461
+ toolbar: {
462
+ show: boolean;
463
+ };
464
+ sparkline: {
465
+ enabled: boolean;
466
+ };
467
+ zoom: {
468
+ enabled: boolean;
469
+ };
470
+ };
471
+ colors: string[];
472
+ fill: {
473
+ opacity: number;
474
+ };
475
+ states: {
476
+ active: {
477
+ filter: {
478
+ type: string;
479
+ };
480
+ };
481
+ };
482
+ grid: {
483
+ clipMarkers: boolean;
484
+ };
485
+ dataLabels: {
486
+ enabled: boolean;
487
+ };
488
+ markers: {
489
+ size: number;
490
+ shape: string;
491
+ strokeWidth: number;
492
+ hover: {
493
+ sizeOffset: number;
494
+ };
495
+ };
496
+ plotOptions: {
497
+ bar: {
498
+ horizontal: boolean;
499
+ };
500
+ };
501
+ tooltip: {
502
+ shared: boolean;
503
+ intersect: boolean;
504
+ x: {
505
+ show: boolean;
506
+ };
507
+ y: ({
508
+ formatter?: undefined;
509
+ } | {
510
+ formatter: any;
511
+ })[];
512
+ fixed: {
513
+ enabled: boolean;
514
+ position: string;
515
+ offsetY: number;
516
+ offsetX: number;
517
+ };
518
+ theme: boolean;
519
+ };
520
+ xaxis: {
521
+ categories: any;
522
+ axisBorder: {
523
+ show: boolean;
524
+ };
525
+ axisTicks: {
526
+ show: boolean;
527
+ };
528
+ };
529
+ yaxis: any;
530
+ stroke: {
531
+ width: number;
532
+ curve: string;
533
+ };
534
+ legend: {
535
+ position: string;
536
+ horizontalAlign: string;
537
+ fontSize: string;
538
+ labels: {
539
+ useSeriesColors: boolean;
540
+ };
541
+ markers: {
542
+ width: number;
543
+ height: number;
544
+ radius: number;
545
+ };
546
+ itemMargin: {
547
+ horizontal: number;
548
+ vertical: number;
549
+ };
550
+ };
551
+ };
552
+ export function merge(target: any, source: any): any;
553
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoGC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIC;AAlOM,qDAoBN"}
package/charts/utils.js CHANGED
@@ -1,5 +1,3 @@
1
- import ApexCharts from "apexcharts/dist/apexcharts.esm";
2
-
3
1
  const themeColors = [
4
2
  "#284BED",
5
3
  "#ED6134",
@@ -9,8 +7,33 @@ const themeColors = [
9
7
  "#77ED11",
10
8
  ];
11
9
 
12
- //@ts-ignore
13
- export const merge = ApexCharts.merge;
10
+ const isObject = (item) => {
11
+ return (
12
+ item && typeof item === "object" && !Array.isArray(item) && item != null
13
+ );
14
+ };
15
+
16
+ export const merge = (target, source) => {
17
+ let output = Object.assign({}, target);
18
+ if (isObject(target) && isObject(source)) {
19
+ Object.keys(source).forEach((key) => {
20
+ if (isObject(source[key])) {
21
+ if (!(key in target)) {
22
+ Object.assign(output, {
23
+ [key]: source[key],
24
+ });
25
+ } else {
26
+ output[key] = merge(target[key], source[key]);
27
+ }
28
+ } else {
29
+ Object.assign(output, {
30
+ [key]: source[key],
31
+ });
32
+ }
33
+ });
34
+ }
35
+ return output;
36
+ };
14
37
 
15
38
  export function pieChartOptions(labels, is_sparkline) {
16
39
  return {
@@ -2,8 +2,8 @@
2
2
  @component
3
3
 
4
4
 
5
- @param {''|'small'|'medium'|'large'} [size=""] - Size of the Checkbox, Default: `""`
6
- @param {''|'primary'|'warning'|'info'|'danger'|'dark'|'light'} [color=""] - Colour of the Checkbox, Default: `""`
5
+ @param {SizeOptions} [size=] - Size of the Checkbox, Default: ``
6
+ @param {ColorOptions} [color=] - Colour of the Checkbox, Default: ``
7
7
  @param {string} [style=""] - Inline CSS for the Checkbox, Default: `""`
8
8
  @param {boolean} [inverted=false] - Inverts the Checkbox colour theme, Default: `false`
9
9
  @param {boolean} [circle=false] - Makes the Checkbox round, Default: `false`
@@ -13,11 +13,11 @@ Checked\Not Checked, Default: `false`
13
13
  @param {boolean} [disabled=false] - Disables the Checkbox, Default: `false`
14
14
  @param {string} [icon="check"] - The name of the icon that is to be used in the Checkbox, Default: `"check"`
15
15
  @param {string} [label_style=""] - Inline CSS for the Checkbox label, Default: `""`
16
- @param {''|'fa'|'lar'|'las'|'gg'|'unicons'} [icon_family="null"] - Icon family to be used
16
+ @param {FontFamilies} [icon_family=] - Icon family to be used
17
17
 
18
18
  Defaults to global family set via `Icon.setDefaultIconType()`
19
19
 
20
- Ultimately defaults to `fa`, if family is not set anywhere, Default: `"null"`
20
+ Ultimately defaults to `fa`, if family is not set anywhere, Default: ``
21
21
  @param {string} [class=""] - CSS classes of the Checkbox, Default: `""`
22
22
 
23
23
  ### Events
@@ -50,6 +50,7 @@ Ultimately defaults to `fa`, if family is not set anywhere, Default: `"null"`
50
50
  *
51
51
  * @typedef {import('@kws3/ui/types').ColorOptions} ColorOptions
52
52
  * @typedef {import('@kws3/ui/types').SizeOptions} SizeOptions
53
+ * @typedef {import('@kws3/ui/types').FontFamilies} FontFamilies
53
54
  *
54
55
  */
55
56
  /**
@@ -59,7 +60,7 @@ Ultimately defaults to `fa`, if family is not set anywhere, Default: `"null"`
59
60
  export let size = "",
60
61
  /**
61
62
  * Colour of the Checkbox
62
- * @type {Exclude<ColorOptions, 'success'>}
63
+ * @type {ColorOptions}
63
64
  */
64
65
  color = "",
65
66
  /**
@@ -106,7 +107,7 @@ Ultimately defaults to `fa`, if family is not set anywhere, Default: `"null"`
106
107
  *
107
108
  * Ultimately defaults to `fa`, if family is not set anywhere
108
109
  *
109
- * @type {string|''|'fa'|'lar'|'las'|'gg'|'unicons'|'material'}
110
+ * @type {FontFamilies}
110
111
  */
111
112
  icon_family = "";
112
113
 
@@ -7,12 +7,12 @@
7
7
  It is returned back in the `getFile()` call from `file_chosen` event, Default: `""`
8
8
  @param {string} [message="Choose File..."] - Message displayed in uploader, Default: `"Choose File..."`
9
9
  @param {string} [info=""] - Information / help / subtitle displayed under the uploader, Default: `""`
10
- @param {''|'grey'|'primary'|'warning'|'success'|'info'|'danger'|'dark'|'light'} [info_color="grey"] - Color of the information text, Default: `"grey"`
10
+ @param {ExtendedColorOptions} [info_color=grey] - Color of the information text, Default: `grey`
11
11
  @param {number} [max=5000000] - Maximum allowed size in bytes, Default: `5000000`
12
12
  @param {any} [allowed=*] - Allowed file types - accepts the string `"*"`, or an array of file type suffixes, Default: `*`
13
13
  @param {boolean} [disabled=false] - Disables the uploader, Default: `false`
14
- @param {''|'small'|'medium'|'large'} [size=""] - Size of the File Input, Default: `""`
15
- @param {''|'primary'|'warning'|'success'|'info'|'danger'|'dark'|'light'} [color=""] - Color of the File Input, Default: `""`
14
+ @param {SizeOptions} [size=] - Size of the File Input, Default: ``
15
+ @param {ColorOptions} [color=] - Color of the File Input, Default: ``
16
16
  @param {string} [class=""] - CSS classes for the Uploader, Default: `""`
17
17
 
18
18
  ### Events
@@ -91,6 +91,7 @@ The following functions are returned in `event.detail`:
91
91
  /**
92
92
  *
93
93
  * @typedef {import('@kws3/ui/types').ColorOptions} ColorOptions
94
+ * @typedef {import('@kws3/ui/types').ExtendedColorOptions} ExtendedColorOptions
94
95
  * @typedef {import('@kws3/ui/types').SizeOptions} SizeOptions
95
96
  *
96
97
  */
@@ -112,7 +113,7 @@ The following functions are returned in `event.detail`:
112
113
  info = "",
113
114
  /**
114
115
  * Color of the information text
115
- * @type {ColorOptions | 'grey'}
116
+ * @type {ExtendedColorOptions}
116
117
  */
117
118
  info_color = "grey",
118
119
  /**
@@ -2,7 +2,7 @@
2
2
  @component
3
3
 
4
4
 
5
- @param {''|'small'|'medium'|'large'} [size=""] - Size of the component, Default: `""`
5
+ @param {SizeOptions} [size=] - Size of the component, Default: ``
6
6
  @param {number} [value=0] - Current value
7
7
 
8
8
  This property can be bound to, to fetch the current value
@@ -15,11 +15,11 @@ This will be overridden if `min` is higher, or `max` is lower, Default: `0`
15
15
  @param {boolean} [fullwidth=false] - Forces the NumberInput to occupy the full width of it's container, Default: `false`
16
16
  @param {boolean} [typeable=true] - Allows typing the value into the input, Default: `true`
17
17
  @param {string} [minus_icon="minus"] - Name of the icon that is to be displayed in the minus button, Default: `"minus"`
18
- @param {''|'success'|'primary'|'warning'|'info'|'danger'|'dark'|'light'} [minus_icon_color="danger"] - Color of the Minus Icon, Default: `"danger"`
19
- @param {''|'success'|'primary'|'warning'|'info'|'danger'|'dark'|'light'} [minus_button_color=""] - Color of the Minus Button, Default: `""`
18
+ @param {ColorOptions} [minus_icon_color=danger] - Color of the Minus Icon, Default: `danger`
19
+ @param {ColorOptions} [minus_button_color=] - Color of the Minus Button, Default: ``
20
20
  @param {string} [plus_icon="plus"] - Name of the icon that is to be displayed in the plus button, Default: `"plus"`
21
- @param {''|'success'|'primary'|'warning'|'info'|'danger'|'dark'|'light'} [plus_icon_color="success"] - Color of the Plus Icon, Default: `"success"`
22
- @param {''|'success'|'primary'|'warning'|'info'|'danger'|'dark'|'light'} [plus_button_color=""] - Color of the Plus Button, Default: `""`
21
+ @param {ColorOptions} [plus_icon_color=success] - Color of the Plus Icon, Default: `success`
22
+ @param {ColorOptions} [plus_button_color=] - Color of the Plus Button, Default: ``
23
23
  @param {boolean} [input_only=false] - Show input without controls, Default: `false`
24
24
  @param {boolean} [force_integer=false] - Prevent decimal numbers such as `1.5`, Default: `false`
25
25
  @param {string} [style=""] - Inline CSS for component, Default: `""`