@everymatrix/general-input 1.10.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.
Files changed (106) hide show
  1. package/dist/cjs/checkbox-input_9.cjs.entry.js +686 -0
  2. package/dist/cjs/general-input.cjs.entry.js +45 -0
  3. package/dist/cjs/general-input.cjs.js +19 -0
  4. package/dist/cjs/index-64a5cb7f.js +1214 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/loader.cjs.js +21 -0
  7. package/dist/collection/collection-manifest.json +21 -0
  8. package/dist/collection/components/checkbox-input/checkbox-input.css +20 -0
  9. package/dist/collection/components/checkbox-input/checkbox-input.js +196 -0
  10. package/dist/collection/components/date-input/date-input.css +60 -0
  11. package/dist/collection/components/date-input/date-input.js +242 -0
  12. package/dist/collection/components/email-input/email-input.css +60 -0
  13. package/dist/collection/components/email-input/email-input.js +259 -0
  14. package/dist/collection/components/general-input/general-input.css +3 -0
  15. package/dist/collection/components/general-input/general-input.js +204 -0
  16. package/dist/collection/components/number-input/number-input.css +67 -0
  17. package/dist/collection/components/number-input/number-input.js +245 -0
  18. package/dist/collection/components/password-input/password-input.css +60 -0
  19. package/dist/collection/components/password-input/password-input.js +210 -0
  20. package/dist/collection/components/radio-input/radio-input.css +22 -0
  21. package/dist/collection/components/radio-input/radio-input.js +245 -0
  22. package/dist/collection/components/select-input/select-input.css +49 -0
  23. package/dist/collection/components/select-input/select-input.js +308 -0
  24. package/dist/collection/components/tel-input/tel-input.css +67 -0
  25. package/dist/collection/components/tel-input/tel-input.js +294 -0
  26. package/dist/collection/components/text-input/text-input.css +60 -0
  27. package/dist/collection/components/text-input/text-input.js +278 -0
  28. package/dist/collection/index.js +1 -0
  29. package/dist/collection/utils/locale.utils.js +27 -0
  30. package/dist/collection/utils/types.js +1 -0
  31. package/dist/collection/utils/utils.js +5 -0
  32. package/dist/components/checkbox-input.d.ts +11 -0
  33. package/dist/components/checkbox-input.js +6 -0
  34. package/dist/components/checkbox-input2.js +78 -0
  35. package/dist/components/date-input.d.ts +11 -0
  36. package/dist/components/date-input.js +6 -0
  37. package/dist/components/date-input2.js +90 -0
  38. package/dist/components/email-input.d.ts +11 -0
  39. package/dist/components/email-input.js +6 -0
  40. package/dist/components/email-input2.js +108 -0
  41. package/dist/components/general-input.d.ts +11 -0
  42. package/dist/components/general-input.js +123 -0
  43. package/dist/components/index.d.ts +26 -0
  44. package/dist/components/index.js +1 -0
  45. package/dist/components/locale.utils.js +29 -0
  46. package/dist/components/number-input.d.ts +11 -0
  47. package/dist/components/number-input.js +6 -0
  48. package/dist/components/number-input2.js +96 -0
  49. package/dist/components/password-input.d.ts +11 -0
  50. package/dist/components/password-input.js +6 -0
  51. package/dist/components/password-input2.js +93 -0
  52. package/dist/components/radio-input.d.ts +11 -0
  53. package/dist/components/radio-input.js +6 -0
  54. package/dist/components/radio-input2.js +89 -0
  55. package/dist/components/select-input.d.ts +11 -0
  56. package/dist/components/select-input.js +6 -0
  57. package/dist/components/select-input2.js +127 -0
  58. package/dist/components/tel-input.d.ts +11 -0
  59. package/dist/components/tel-input.js +6 -0
  60. package/dist/components/tel-input2.js +111 -0
  61. package/dist/components/text-input.d.ts +11 -0
  62. package/dist/components/text-input.js +6 -0
  63. package/dist/components/text-input2.js +112 -0
  64. package/dist/esm/checkbox-input_9.entry.js +674 -0
  65. package/dist/esm/general-input.entry.js +41 -0
  66. package/dist/esm/general-input.js +17 -0
  67. package/dist/esm/index-df80f936.js +1188 -0
  68. package/dist/esm/index.js +1 -0
  69. package/dist/esm/loader.js +17 -0
  70. package/dist/esm/polyfills/core-js.js +11 -0
  71. package/dist/esm/polyfills/css-shim.js +1 -0
  72. package/dist/esm/polyfills/dom.js +79 -0
  73. package/dist/esm/polyfills/es5-html-element.js +1 -0
  74. package/dist/esm/polyfills/index.js +34 -0
  75. package/dist/esm/polyfills/system.js +6 -0
  76. package/dist/general-input/general-input.esm.js +1 -0
  77. package/dist/general-input/index.esm.js +0 -0
  78. package/dist/general-input/p-c9e79656.entry.js +1 -0
  79. package/dist/general-input/p-d9f7fa2e.js +1 -0
  80. package/dist/general-input/p-dea0a4ac.entry.js +1 -0
  81. package/dist/index.cjs.js +1 -0
  82. package/dist/index.js +1 -0
  83. package/dist/stencil.config.js +22 -0
  84. package/dist/types/Users/user/workspace/everymatrix/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +2 -0
  85. package/dist/types/components/checkbox-input/checkbox-input.d.ts +39 -0
  86. package/dist/types/components/date-input/date-input.d.ts +47 -0
  87. package/dist/types/components/email-input/email-input.d.ts +51 -0
  88. package/dist/types/components/general-input/general-input.d.ts +40 -0
  89. package/dist/types/components/number-input/number-input.d.ts +48 -0
  90. package/dist/types/components/password-input/password-input.d.ts +42 -0
  91. package/dist/types/components/radio-input/radio-input.d.ts +48 -0
  92. package/dist/types/components/select-input/select-input.d.ts +55 -0
  93. package/dist/types/components/tel-input/tel-input.d.ts +59 -0
  94. package/dist/types/components.d.ts +749 -0
  95. package/dist/types/index.d.ts +1 -0
  96. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  97. package/dist/types/utils/locale.utils.d.ts +5 -0
  98. package/dist/types/utils/types.d.ts +55 -0
  99. package/dist/types/utils/utils.d.ts +1 -0
  100. package/loader/cdn.js +3 -0
  101. package/loader/index.cjs.js +3 -0
  102. package/loader/index.d.ts +12 -0
  103. package/loader/index.es2017.js +3 -0
  104. package/loader/index.js +4 -0
  105. package/loader/package.json +10 -0
  106. package/package.json +19 -0
@@ -0,0 +1,749 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { InputStateEvent, InputValueEvent, Option, ValidationSchema } from "./utils/types";
9
+ export namespace Components {
10
+ interface CheckboxInput {
11
+ /**
12
+ * Name of input to be shown to the user.
13
+ */
14
+ "displayName": string;
15
+ /**
16
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
17
+ */
18
+ "emitValue": boolean;
19
+ /**
20
+ * Currently selected language.
21
+ */
22
+ "language": string;
23
+ /**
24
+ * Name of the input.
25
+ */
26
+ "name": string;
27
+ /**
28
+ * Object of validation rules for the input.
29
+ */
30
+ "validation": ValidationSchema;
31
+ }
32
+ interface DateInput {
33
+ /**
34
+ * State passed down from the parent element. Will trigger the input to check for validity.
35
+ */
36
+ "checkValidity": boolean;
37
+ /**
38
+ * Default value for the input.
39
+ */
40
+ "defaultValue": string;
41
+ /**
42
+ * Name of input to be shown to the user.
43
+ */
44
+ "displayName": string;
45
+ /**
46
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
47
+ */
48
+ "emitValue": boolean;
49
+ /**
50
+ * Currently selected language.
51
+ */
52
+ "language": string;
53
+ /**
54
+ * Name of the input.
55
+ */
56
+ "name": string;
57
+ /**
58
+ * Object of validation rules for the input.
59
+ */
60
+ "validation": ValidationSchema;
61
+ }
62
+ interface EmailInput {
63
+ /**
64
+ * State passed down from the parent element. Will trigger the input to check for validity.
65
+ */
66
+ "checkValidity": boolean;
67
+ /**
68
+ * Default value for the input.
69
+ */
70
+ "defaultValue": string;
71
+ /**
72
+ * Name of input to be shown to the user.
73
+ */
74
+ "displayName": string;
75
+ /**
76
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
77
+ */
78
+ "emitValue": boolean;
79
+ /**
80
+ * Currently selected language.
81
+ */
82
+ "language": string;
83
+ /**
84
+ * Name of the input.
85
+ */
86
+ "name": string;
87
+ /**
88
+ * Object of validation rules for the input.
89
+ */
90
+ "validation": ValidationSchema;
91
+ }
92
+ interface GeneralInput {
93
+ /**
94
+ * Special behaviour an input should have. Can be fetching for data.
95
+ */
96
+ "action": string;
97
+ /**
98
+ * Default value for the input.
99
+ */
100
+ "defaultValue": any;
101
+ /**
102
+ * Name of input to be shown to the user.
103
+ */
104
+ "displayName": string;
105
+ /**
106
+ * State passed down from the parent element. Will trigger the child specialised input to send it's value through an event.
107
+ */
108
+ "emitValue": boolean;
109
+ /**
110
+ * Currently selected language.
111
+ */
112
+ "language": string;
113
+ /**
114
+ * Name of the input.
115
+ */
116
+ "name": string;
117
+ /**
118
+ * For input elements that have multiple options or choises.
119
+ */
120
+ "options": any;
121
+ /**
122
+ * Type the general-input should take. Can take the default HTML input values.
123
+ */
124
+ "type": string;
125
+ /**
126
+ * Object of validation rules for the input.
127
+ */
128
+ "validation": ValidationSchema;
129
+ }
130
+ interface NumberInput {
131
+ /**
132
+ * State passed down from the parent element. Will trigger the input to check for validity.
133
+ */
134
+ "checkValidity": boolean;
135
+ /**
136
+ * Default value for the input.
137
+ */
138
+ "defaultValue": number;
139
+ /**
140
+ * Name of input to be shown to the user.
141
+ */
142
+ "displayName": string;
143
+ /**
144
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
145
+ */
146
+ "emitValue": boolean;
147
+ /**
148
+ * Currently selected language.
149
+ */
150
+ "language": string;
151
+ /**
152
+ * Name of the input.
153
+ */
154
+ "name": string;
155
+ /**
156
+ * Object of validation rules for the input.
157
+ */
158
+ "validation": ValidationSchema;
159
+ }
160
+ interface PasswordInput {
161
+ /**
162
+ * Name of input to be shown to the user.
163
+ */
164
+ "displayName": string;
165
+ /**
166
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
167
+ */
168
+ "emitValue": boolean;
169
+ /**
170
+ * Currently selected language.
171
+ */
172
+ "language": string;
173
+ /**
174
+ * Name of the input.
175
+ */
176
+ "name": string;
177
+ /**
178
+ * Object of validation rules for the input.
179
+ */
180
+ "validation": ValidationSchema;
181
+ }
182
+ interface RadioInput {
183
+ /**
184
+ * State passed down from the parent element. Will trigger the input to check for validity.
185
+ */
186
+ "checkValidity": boolean;
187
+ /**
188
+ * Name of input to be shown to the user.
189
+ */
190
+ "displayName": string;
191
+ /**
192
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
193
+ */
194
+ "emitValue": boolean;
195
+ /**
196
+ * Currently selected language.
197
+ */
198
+ "language": string;
199
+ /**
200
+ * Name of the input.
201
+ */
202
+ "name": string;
203
+ /**
204
+ * Options of the input.
205
+ */
206
+ "optionsGroup": Option[];
207
+ /**
208
+ * Object of validation rules for the input.
209
+ */
210
+ "validation": ValidationSchema;
211
+ }
212
+ interface SelectInput {
213
+ /**
214
+ * Special behaviour an input should have. Can be fetching for data.
215
+ */
216
+ "action": string;
217
+ /**
218
+ * State passed down from the parent element. Will trigger the input to check for validity.
219
+ */
220
+ "checkValidity": boolean;
221
+ /**
222
+ * Name of input to be shown to the user.
223
+ */
224
+ "displayName": string;
225
+ /**
226
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
227
+ */
228
+ "emitValue": boolean;
229
+ /**
230
+ * Currently selected language.
231
+ */
232
+ "language": string;
233
+ /**
234
+ * Name of the input.
235
+ */
236
+ "name": string;
237
+ /**
238
+ * Options of the input.
239
+ */
240
+ "options": Option[];
241
+ /**
242
+ * Object of validation rules for the input.
243
+ */
244
+ "validation": ValidationSchema;
245
+ }
246
+ interface TelInput {
247
+ /**
248
+ * Special behaviour an input should have. Can be fetching for data.
249
+ */
250
+ "action": string;
251
+ /**
252
+ * State passed down from the parent element. Will trigger the input to check for validity.
253
+ */
254
+ "checkValidity": boolean;
255
+ /**
256
+ * Default value for the input.
257
+ */
258
+ "defaultValue": number | string;
259
+ /**
260
+ * Name of input to be shown to the user.
261
+ */
262
+ "displayName": string;
263
+ /**
264
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
265
+ */
266
+ "emitValue": boolean;
267
+ /**
268
+ * Currently selected language.
269
+ */
270
+ "language": string;
271
+ /**
272
+ * Name of the input.
273
+ */
274
+ "name": string;
275
+ /**
276
+ * Boolean that defines if the widget show labels or placeholders.
277
+ */
278
+ "showLabels": boolean;
279
+ /**
280
+ * Object of validation rules for the input.
281
+ */
282
+ "validation": ValidationSchema;
283
+ }
284
+ interface TextInput {
285
+ /**
286
+ * State passed down from the parent element. Will trigger the input to check for validity.
287
+ */
288
+ "checkValidity": boolean;
289
+ /**
290
+ * Default value for the input.
291
+ */
292
+ "defaultValue": string;
293
+ /**
294
+ * Name of input to be shown to the user.
295
+ */
296
+ "displayName": string;
297
+ /**
298
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
299
+ */
300
+ "emitValue": boolean;
301
+ /**
302
+ * Currently selected language.
303
+ */
304
+ "language": string;
305
+ /**
306
+ * Name of the input.
307
+ */
308
+ "name": string;
309
+ /**
310
+ * -----------------------
311
+ */
312
+ "rules": string;
313
+ /**
314
+ * Object of validation rules for the input.
315
+ */
316
+ "validation": ValidationSchema;
317
+ }
318
+ }
319
+ declare global {
320
+ interface HTMLCheckboxInputElement extends Components.CheckboxInput, HTMLStencilElement {
321
+ }
322
+ var HTMLCheckboxInputElement: {
323
+ prototype: HTMLCheckboxInputElement;
324
+ new (): HTMLCheckboxInputElement;
325
+ };
326
+ interface HTMLDateInputElement extends Components.DateInput, HTMLStencilElement {
327
+ }
328
+ var HTMLDateInputElement: {
329
+ prototype: HTMLDateInputElement;
330
+ new (): HTMLDateInputElement;
331
+ };
332
+ interface HTMLEmailInputElement extends Components.EmailInput, HTMLStencilElement {
333
+ }
334
+ var HTMLEmailInputElement: {
335
+ prototype: HTMLEmailInputElement;
336
+ new (): HTMLEmailInputElement;
337
+ };
338
+ interface HTMLGeneralInputElement extends Components.GeneralInput, HTMLStencilElement {
339
+ }
340
+ var HTMLGeneralInputElement: {
341
+ prototype: HTMLGeneralInputElement;
342
+ new (): HTMLGeneralInputElement;
343
+ };
344
+ interface HTMLNumberInputElement extends Components.NumberInput, HTMLStencilElement {
345
+ }
346
+ var HTMLNumberInputElement: {
347
+ prototype: HTMLNumberInputElement;
348
+ new (): HTMLNumberInputElement;
349
+ };
350
+ interface HTMLPasswordInputElement extends Components.PasswordInput, HTMLStencilElement {
351
+ }
352
+ var HTMLPasswordInputElement: {
353
+ prototype: HTMLPasswordInputElement;
354
+ new (): HTMLPasswordInputElement;
355
+ };
356
+ interface HTMLRadioInputElement extends Components.RadioInput, HTMLStencilElement {
357
+ }
358
+ var HTMLRadioInputElement: {
359
+ prototype: HTMLRadioInputElement;
360
+ new (): HTMLRadioInputElement;
361
+ };
362
+ interface HTMLSelectInputElement extends Components.SelectInput, HTMLStencilElement {
363
+ }
364
+ var HTMLSelectInputElement: {
365
+ prototype: HTMLSelectInputElement;
366
+ new (): HTMLSelectInputElement;
367
+ };
368
+ interface HTMLTelInputElement extends Components.TelInput, HTMLStencilElement {
369
+ }
370
+ var HTMLTelInputElement: {
371
+ prototype: HTMLTelInputElement;
372
+ new (): HTMLTelInputElement;
373
+ };
374
+ interface HTMLTextInputElement extends Components.TextInput, HTMLStencilElement {
375
+ }
376
+ var HTMLTextInputElement: {
377
+ prototype: HTMLTextInputElement;
378
+ new (): HTMLTextInputElement;
379
+ };
380
+ interface HTMLElementTagNameMap {
381
+ "checkbox-input": HTMLCheckboxInputElement;
382
+ "date-input": HTMLDateInputElement;
383
+ "email-input": HTMLEmailInputElement;
384
+ "general-input": HTMLGeneralInputElement;
385
+ "number-input": HTMLNumberInputElement;
386
+ "password-input": HTMLPasswordInputElement;
387
+ "radio-input": HTMLRadioInputElement;
388
+ "select-input": HTMLSelectInputElement;
389
+ "tel-input": HTMLTelInputElement;
390
+ "text-input": HTMLTextInputElement;
391
+ }
392
+ }
393
+ declare namespace LocalJSX {
394
+ interface CheckboxInput {
395
+ /**
396
+ * Name of input to be shown to the user.
397
+ */
398
+ "displayName"?: string;
399
+ /**
400
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
401
+ */
402
+ "emitValue"?: boolean;
403
+ /**
404
+ * Currently selected language.
405
+ */
406
+ "language"?: string;
407
+ /**
408
+ * Name of the input.
409
+ */
410
+ "name"?: string;
411
+ "onSendInputValue"?: (event: CustomEvent<InputValueEvent>) => void;
412
+ "onSendValidityState"?: (event: CustomEvent<InputStateEvent>) => void;
413
+ /**
414
+ * Object of validation rules for the input.
415
+ */
416
+ "validation"?: ValidationSchema;
417
+ }
418
+ interface DateInput {
419
+ /**
420
+ * State passed down from the parent element. Will trigger the input to check for validity.
421
+ */
422
+ "checkValidity"?: boolean;
423
+ /**
424
+ * Default value for the input.
425
+ */
426
+ "defaultValue"?: string;
427
+ /**
428
+ * Name of input to be shown to the user.
429
+ */
430
+ "displayName"?: string;
431
+ /**
432
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
433
+ */
434
+ "emitValue"?: boolean;
435
+ /**
436
+ * Currently selected language.
437
+ */
438
+ "language"?: string;
439
+ /**
440
+ * Name of the input.
441
+ */
442
+ "name"?: string;
443
+ "onSendInputValue"?: (event: CustomEvent<InputValueEvent>) => void;
444
+ "onSendValidityState"?: (event: CustomEvent<InputStateEvent>) => void;
445
+ /**
446
+ * Object of validation rules for the input.
447
+ */
448
+ "validation"?: ValidationSchema;
449
+ }
450
+ interface EmailInput {
451
+ /**
452
+ * State passed down from the parent element. Will trigger the input to check for validity.
453
+ */
454
+ "checkValidity"?: boolean;
455
+ /**
456
+ * Default value for the input.
457
+ */
458
+ "defaultValue"?: string;
459
+ /**
460
+ * Name of input to be shown to the user.
461
+ */
462
+ "displayName"?: string;
463
+ /**
464
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
465
+ */
466
+ "emitValue"?: boolean;
467
+ /**
468
+ * Currently selected language.
469
+ */
470
+ "language"?: string;
471
+ /**
472
+ * Name of the input.
473
+ */
474
+ "name"?: string;
475
+ "onSendInputValue"?: (event: CustomEvent<InputValueEvent>) => void;
476
+ "onSendValidityState"?: (event: CustomEvent<InputStateEvent>) => void;
477
+ /**
478
+ * Object of validation rules for the input.
479
+ */
480
+ "validation"?: ValidationSchema;
481
+ }
482
+ interface GeneralInput {
483
+ /**
484
+ * Special behaviour an input should have. Can be fetching for data.
485
+ */
486
+ "action"?: string;
487
+ /**
488
+ * Default value for the input.
489
+ */
490
+ "defaultValue"?: any;
491
+ /**
492
+ * Name of input to be shown to the user.
493
+ */
494
+ "displayName"?: string;
495
+ /**
496
+ * State passed down from the parent element. Will trigger the child specialised input to send it's value through an event.
497
+ */
498
+ "emitValue"?: boolean;
499
+ /**
500
+ * Currently selected language.
501
+ */
502
+ "language"?: string;
503
+ /**
504
+ * Name of the input.
505
+ */
506
+ "name"?: string;
507
+ /**
508
+ * For input elements that have multiple options or choises.
509
+ */
510
+ "options"?: any;
511
+ /**
512
+ * Type the general-input should take. Can take the default HTML input values.
513
+ */
514
+ "type"?: string;
515
+ /**
516
+ * Object of validation rules for the input.
517
+ */
518
+ "validation"?: ValidationSchema;
519
+ }
520
+ interface NumberInput {
521
+ /**
522
+ * State passed down from the parent element. Will trigger the input to check for validity.
523
+ */
524
+ "checkValidity"?: boolean;
525
+ /**
526
+ * Default value for the input.
527
+ */
528
+ "defaultValue"?: number;
529
+ /**
530
+ * Name of input to be shown to the user.
531
+ */
532
+ "displayName"?: string;
533
+ /**
534
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
535
+ */
536
+ "emitValue"?: boolean;
537
+ /**
538
+ * Currently selected language.
539
+ */
540
+ "language"?: string;
541
+ /**
542
+ * Name of the input.
543
+ */
544
+ "name"?: string;
545
+ "onSendInputValue"?: (event: CustomEvent<InputValueEvent>) => void;
546
+ "onSendValidityState"?: (event: CustomEvent<InputStateEvent>) => void;
547
+ /**
548
+ * Object of validation rules for the input.
549
+ */
550
+ "validation"?: ValidationSchema;
551
+ }
552
+ interface PasswordInput {
553
+ /**
554
+ * Name of input to be shown to the user.
555
+ */
556
+ "displayName"?: string;
557
+ /**
558
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
559
+ */
560
+ "emitValue"?: boolean;
561
+ /**
562
+ * Currently selected language.
563
+ */
564
+ "language"?: string;
565
+ /**
566
+ * Name of the input.
567
+ */
568
+ "name"?: string;
569
+ "onSendInputValue"?: (event: CustomEvent<InputValueEvent>) => void;
570
+ "onSendValidityState"?: (event: CustomEvent<InputStateEvent>) => void;
571
+ /**
572
+ * Object of validation rules for the input.
573
+ */
574
+ "validation"?: ValidationSchema;
575
+ }
576
+ interface RadioInput {
577
+ /**
578
+ * State passed down from the parent element. Will trigger the input to check for validity.
579
+ */
580
+ "checkValidity"?: boolean;
581
+ /**
582
+ * Name of input to be shown to the user.
583
+ */
584
+ "displayName"?: string;
585
+ /**
586
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
587
+ */
588
+ "emitValue"?: boolean;
589
+ /**
590
+ * Currently selected language.
591
+ */
592
+ "language"?: string;
593
+ /**
594
+ * Name of the input.
595
+ */
596
+ "name"?: string;
597
+ "onSendInputValue"?: (event: CustomEvent<InputValueEvent>) => void;
598
+ "onSendValidityState"?: (event: CustomEvent<InputStateEvent>) => void;
599
+ /**
600
+ * Options of the input.
601
+ */
602
+ "optionsGroup"?: Option[];
603
+ /**
604
+ * Object of validation rules for the input.
605
+ */
606
+ "validation"?: ValidationSchema;
607
+ }
608
+ interface SelectInput {
609
+ /**
610
+ * Special behaviour an input should have. Can be fetching for data.
611
+ */
612
+ "action"?: string;
613
+ /**
614
+ * State passed down from the parent element. Will trigger the input to check for validity.
615
+ */
616
+ "checkValidity"?: boolean;
617
+ /**
618
+ * Name of input to be shown to the user.
619
+ */
620
+ "displayName"?: string;
621
+ /**
622
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
623
+ */
624
+ "emitValue"?: boolean;
625
+ /**
626
+ * Currently selected language.
627
+ */
628
+ "language"?: string;
629
+ /**
630
+ * Name of the input.
631
+ */
632
+ "name"?: string;
633
+ "onSendInputValue"?: (event: CustomEvent<InputValueEvent>) => void;
634
+ "onSendValidityState"?: (event: CustomEvent<InputStateEvent>) => void;
635
+ /**
636
+ * Options of the input.
637
+ */
638
+ "options"?: Option[];
639
+ /**
640
+ * Object of validation rules for the input.
641
+ */
642
+ "validation"?: ValidationSchema;
643
+ }
644
+ interface TelInput {
645
+ /**
646
+ * Special behaviour an input should have. Can be fetching for data.
647
+ */
648
+ "action"?: string;
649
+ /**
650
+ * State passed down from the parent element. Will trigger the input to check for validity.
651
+ */
652
+ "checkValidity"?: boolean;
653
+ /**
654
+ * Default value for the input.
655
+ */
656
+ "defaultValue"?: number | string;
657
+ /**
658
+ * Name of input to be shown to the user.
659
+ */
660
+ "displayName"?: string;
661
+ /**
662
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
663
+ */
664
+ "emitValue"?: boolean;
665
+ /**
666
+ * Currently selected language.
667
+ */
668
+ "language"?: string;
669
+ /**
670
+ * Name of the input.
671
+ */
672
+ "name"?: string;
673
+ "onSendInputValue"?: (event: CustomEvent<InputValueEvent>) => void;
674
+ "onSendValidityState"?: (event: CustomEvent<InputStateEvent>) => void;
675
+ /**
676
+ * Boolean that defines if the widget show labels or placeholders.
677
+ */
678
+ "showLabels"?: boolean;
679
+ /**
680
+ * Object of validation rules for the input.
681
+ */
682
+ "validation"?: ValidationSchema;
683
+ }
684
+ interface TextInput {
685
+ /**
686
+ * State passed down from the parent element. Will trigger the input to check for validity.
687
+ */
688
+ "checkValidity"?: boolean;
689
+ /**
690
+ * Default value for the input.
691
+ */
692
+ "defaultValue"?: string;
693
+ /**
694
+ * Name of input to be shown to the user.
695
+ */
696
+ "displayName"?: string;
697
+ /**
698
+ * State passed down from the parent element. Will trigger the input to send it's value through an event.
699
+ */
700
+ "emitValue"?: boolean;
701
+ /**
702
+ * Currently selected language.
703
+ */
704
+ "language"?: string;
705
+ /**
706
+ * Name of the input.
707
+ */
708
+ "name"?: string;
709
+ "onSendInputValue"?: (event: CustomEvent<InputValueEvent>) => void;
710
+ "onSendValidityState"?: (event: CustomEvent<InputStateEvent>) => void;
711
+ /**
712
+ * -----------------------
713
+ */
714
+ "rules"?: string;
715
+ /**
716
+ * Object of validation rules for the input.
717
+ */
718
+ "validation"?: ValidationSchema;
719
+ }
720
+ interface IntrinsicElements {
721
+ "checkbox-input": CheckboxInput;
722
+ "date-input": DateInput;
723
+ "email-input": EmailInput;
724
+ "general-input": GeneralInput;
725
+ "number-input": NumberInput;
726
+ "password-input": PasswordInput;
727
+ "radio-input": RadioInput;
728
+ "select-input": SelectInput;
729
+ "tel-input": TelInput;
730
+ "text-input": TextInput;
731
+ }
732
+ }
733
+ export { LocalJSX as JSX };
734
+ declare module "@stencil/core" {
735
+ export namespace JSX {
736
+ interface IntrinsicElements {
737
+ "checkbox-input": LocalJSX.CheckboxInput & JSXBase.HTMLAttributes<HTMLCheckboxInputElement>;
738
+ "date-input": LocalJSX.DateInput & JSXBase.HTMLAttributes<HTMLDateInputElement>;
739
+ "email-input": LocalJSX.EmailInput & JSXBase.HTMLAttributes<HTMLEmailInputElement>;
740
+ "general-input": LocalJSX.GeneralInput & JSXBase.HTMLAttributes<HTMLGeneralInputElement>;
741
+ "number-input": LocalJSX.NumberInput & JSXBase.HTMLAttributes<HTMLNumberInputElement>;
742
+ "password-input": LocalJSX.PasswordInput & JSXBase.HTMLAttributes<HTMLPasswordInputElement>;
743
+ "radio-input": LocalJSX.RadioInput & JSXBase.HTMLAttributes<HTMLRadioInputElement>;
744
+ "select-input": LocalJSX.SelectInput & JSXBase.HTMLAttributes<HTMLSelectInputElement>;
745
+ "tel-input": LocalJSX.TelInput & JSXBase.HTMLAttributes<HTMLTelInputElement>;
746
+ "text-input": LocalJSX.TextInput & JSXBase.HTMLAttributes<HTMLTextInputElement>;
747
+ }
748
+ }
749
+ }