@reactables/forms 0.7.0-alpha.0 → 0.7.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,667 @@
1
+ export declare const initialState: {
2
+ root: {
3
+ asyncValidatorErrors: {};
4
+ asyncValidateInProgress: {};
5
+ pending: boolean;
6
+ valid: boolean;
7
+ childrenValid: boolean;
8
+ errors: {
9
+ firstNameNotSameAsLast: boolean;
10
+ };
11
+ pristineValue: {
12
+ firstName: string;
13
+ lastName: string;
14
+ email: string;
15
+ phone: string;
16
+ emergencyContacts: {
17
+ firstName: string;
18
+ lastName: string;
19
+ email: string;
20
+ relation: string;
21
+ }[];
22
+ doctorInfo: {
23
+ firstName: string;
24
+ lastName: string;
25
+ email: string;
26
+ };
27
+ };
28
+ dirty: boolean;
29
+ touched: boolean;
30
+ value: {
31
+ firstName: string;
32
+ lastName: string;
33
+ email: string;
34
+ phone: string;
35
+ emergencyContacts: {
36
+ firstName: string;
37
+ lastName: string;
38
+ email: string;
39
+ relation: string;
40
+ }[];
41
+ doctorInfo: {
42
+ firstName: string;
43
+ lastName: string;
44
+ email: string;
45
+ };
46
+ };
47
+ controlRef: any[];
48
+ validatorErrors: {
49
+ firstNameNotSameAsLast: boolean;
50
+ };
51
+ config: {
52
+ validators: string[];
53
+ controls: {
54
+ firstName: {
55
+ initialValue: string;
56
+ validators: string[];
57
+ };
58
+ lastName: {
59
+ initialValue: string;
60
+ validators: string[];
61
+ };
62
+ email: {
63
+ initialValue: string;
64
+ validators: string[];
65
+ };
66
+ phone: {
67
+ initialValue: string;
68
+ validators: string[];
69
+ };
70
+ emergencyContacts: {
71
+ validators: string[];
72
+ controls: {
73
+ validators: string[];
74
+ controls: {
75
+ firstName: {
76
+ initialValue: string;
77
+ validators: string[];
78
+ };
79
+ lastName: {
80
+ initialValue: string;
81
+ validators: string[];
82
+ };
83
+ email: {
84
+ initialValue: string;
85
+ validators: string[];
86
+ };
87
+ relation: {
88
+ initialValue: string;
89
+ validators: string[];
90
+ };
91
+ };
92
+ }[];
93
+ };
94
+ doctorInfo: {
95
+ validators: string[];
96
+ controls: {
97
+ firstName: {
98
+ initialValue: string;
99
+ validators: string[];
100
+ };
101
+ lastName: {
102
+ initialValue: string;
103
+ validators: string[];
104
+ };
105
+ email: {
106
+ initialValue: string;
107
+ validators: string[];
108
+ };
109
+ };
110
+ };
111
+ };
112
+ };
113
+ key: string;
114
+ };
115
+ firstName: {
116
+ asyncValidatorErrors: {};
117
+ asyncValidateInProgress: {};
118
+ pending: boolean;
119
+ valid: boolean;
120
+ childrenValid: boolean;
121
+ errors: {
122
+ required: boolean;
123
+ };
124
+ pristineValue: string;
125
+ dirty: boolean;
126
+ touched: boolean;
127
+ value: string;
128
+ controlRef: string[];
129
+ validatorErrors: {
130
+ required: boolean;
131
+ };
132
+ config: {
133
+ initialValue: string;
134
+ validators: string[];
135
+ };
136
+ key: string;
137
+ };
138
+ lastName: {
139
+ asyncValidatorErrors: {};
140
+ asyncValidateInProgress: {};
141
+ pending: boolean;
142
+ valid: boolean;
143
+ childrenValid: boolean;
144
+ errors: {
145
+ required: boolean;
146
+ };
147
+ pristineValue: string;
148
+ dirty: boolean;
149
+ touched: boolean;
150
+ value: string;
151
+ controlRef: string[];
152
+ validatorErrors: {
153
+ required: boolean;
154
+ };
155
+ config: {
156
+ initialValue: string;
157
+ validators: string[];
158
+ };
159
+ key: string;
160
+ };
161
+ email: {
162
+ asyncValidatorErrors: {};
163
+ asyncValidateInProgress: {};
164
+ pending: boolean;
165
+ valid: boolean;
166
+ childrenValid: boolean;
167
+ errors: {
168
+ required: boolean;
169
+ email: boolean;
170
+ };
171
+ pristineValue: string;
172
+ dirty: boolean;
173
+ touched: boolean;
174
+ value: string;
175
+ controlRef: string[];
176
+ validatorErrors: {
177
+ required: boolean;
178
+ email: boolean;
179
+ };
180
+ config: {
181
+ initialValue: string;
182
+ validators: string[];
183
+ };
184
+ key: string;
185
+ };
186
+ phone: {
187
+ asyncValidatorErrors: {};
188
+ asyncValidateInProgress: {};
189
+ pending: boolean;
190
+ valid: boolean;
191
+ childrenValid: boolean;
192
+ errors: {
193
+ required: boolean;
194
+ phoneNumber: boolean;
195
+ };
196
+ pristineValue: string;
197
+ dirty: boolean;
198
+ touched: boolean;
199
+ value: string;
200
+ controlRef: string[];
201
+ validatorErrors: {
202
+ required: boolean;
203
+ phoneNumber: boolean;
204
+ };
205
+ config: {
206
+ initialValue: string;
207
+ validators: string[];
208
+ };
209
+ key: string;
210
+ };
211
+ emergencyContacts: {
212
+ asyncValidatorErrors: {};
213
+ asyncValidateInProgress: {};
214
+ pending: boolean;
215
+ valid: boolean;
216
+ childrenValid: boolean;
217
+ errors: {
218
+ required: boolean;
219
+ };
220
+ pristineValue: {
221
+ firstName: string;
222
+ lastName: string;
223
+ email: string;
224
+ relation: string;
225
+ }[];
226
+ dirty: boolean;
227
+ touched: boolean;
228
+ value: {
229
+ firstName: string;
230
+ lastName: string;
231
+ email: string;
232
+ relation: string;
233
+ }[];
234
+ controlRef: string[];
235
+ validatorErrors: {
236
+ required: boolean;
237
+ };
238
+ config: {
239
+ validators: string[];
240
+ controls: {
241
+ validators: string[];
242
+ controls: {
243
+ firstName: {
244
+ initialValue: string;
245
+ validators: string[];
246
+ };
247
+ lastName: {
248
+ initialValue: string;
249
+ validators: string[];
250
+ };
251
+ email: {
252
+ initialValue: string;
253
+ validators: string[];
254
+ };
255
+ relation: {
256
+ initialValue: string;
257
+ validators: string[];
258
+ };
259
+ };
260
+ }[];
261
+ };
262
+ key: string;
263
+ };
264
+ 'emergencyContacts.0': {
265
+ asyncValidatorErrors: {};
266
+ asyncValidateInProgress: {};
267
+ pending: boolean;
268
+ valid: boolean;
269
+ childrenValid: boolean;
270
+ errors: {
271
+ firstNameNotSameAsLast: boolean;
272
+ };
273
+ pristineValue: {
274
+ firstName: string;
275
+ lastName: string;
276
+ email: string;
277
+ relation: string;
278
+ };
279
+ dirty: boolean;
280
+ touched: boolean;
281
+ value: {
282
+ firstName: string;
283
+ lastName: string;
284
+ email: string;
285
+ relation: string;
286
+ };
287
+ controlRef: (string | number)[];
288
+ validatorErrors: {
289
+ firstNameNotSameAsLast: boolean;
290
+ };
291
+ config: {
292
+ validators: string[];
293
+ controls: {
294
+ firstName: {
295
+ initialValue: string;
296
+ validators: string[];
297
+ };
298
+ lastName: {
299
+ initialValue: string;
300
+ validators: string[];
301
+ };
302
+ email: {
303
+ initialValue: string;
304
+ validators: string[];
305
+ };
306
+ relation: {
307
+ initialValue: string;
308
+ validators: string[];
309
+ };
310
+ };
311
+ };
312
+ key: string;
313
+ };
314
+ 'emergencyContacts.0.firstName': {
315
+ asyncValidatorErrors: {};
316
+ asyncValidateInProgress: {};
317
+ pending: boolean;
318
+ valid: boolean;
319
+ childrenValid: boolean;
320
+ errors: {
321
+ required: boolean;
322
+ };
323
+ pristineValue: string;
324
+ dirty: boolean;
325
+ touched: boolean;
326
+ value: string;
327
+ controlRef: (string | number)[];
328
+ validatorErrors: {
329
+ required: boolean;
330
+ };
331
+ config: {
332
+ initialValue: string;
333
+ validators: string[];
334
+ };
335
+ key: string;
336
+ };
337
+ 'emergencyContacts.0.lastName': {
338
+ asyncValidatorErrors: {};
339
+ asyncValidateInProgress: {};
340
+ pending: boolean;
341
+ valid: boolean;
342
+ childrenValid: boolean;
343
+ errors: {
344
+ required: boolean;
345
+ };
346
+ pristineValue: string;
347
+ dirty: boolean;
348
+ touched: boolean;
349
+ value: string;
350
+ controlRef: (string | number)[];
351
+ validatorErrors: {
352
+ required: boolean;
353
+ };
354
+ config: {
355
+ initialValue: string;
356
+ validators: string[];
357
+ };
358
+ key: string;
359
+ };
360
+ 'emergencyContacts.0.email': {
361
+ asyncValidatorErrors: {};
362
+ asyncValidateInProgress: {};
363
+ pending: boolean;
364
+ valid: boolean;
365
+ childrenValid: boolean;
366
+ errors: {
367
+ required: boolean;
368
+ email: boolean;
369
+ };
370
+ pristineValue: string;
371
+ dirty: boolean;
372
+ touched: boolean;
373
+ value: string;
374
+ controlRef: (string | number)[];
375
+ validatorErrors: {
376
+ required: boolean;
377
+ email: boolean;
378
+ };
379
+ config: {
380
+ initialValue: string;
381
+ validators: string[];
382
+ };
383
+ key: string;
384
+ };
385
+ 'emergencyContacts.0.relation': {
386
+ asyncValidatorErrors: {};
387
+ asyncValidateInProgress: {};
388
+ pending: boolean;
389
+ valid: boolean;
390
+ childrenValid: boolean;
391
+ errors: {
392
+ required: boolean;
393
+ };
394
+ pristineValue: string;
395
+ dirty: boolean;
396
+ touched: boolean;
397
+ value: string;
398
+ controlRef: (string | number)[];
399
+ validatorErrors: {
400
+ required: boolean;
401
+ };
402
+ config: {
403
+ initialValue: string;
404
+ validators: string[];
405
+ };
406
+ key: string;
407
+ };
408
+ 'emergencyContacts.1': {
409
+ asyncValidatorErrors: {};
410
+ asyncValidateInProgress: {};
411
+ pending: boolean;
412
+ valid: boolean;
413
+ childrenValid: boolean;
414
+ errors: {
415
+ firstNameNotSameAsLast: boolean;
416
+ };
417
+ pristineValue: {
418
+ firstName: string;
419
+ lastName: string;
420
+ email: string;
421
+ relation: string;
422
+ };
423
+ dirty: boolean;
424
+ touched: boolean;
425
+ value: {
426
+ firstName: string;
427
+ lastName: string;
428
+ email: string;
429
+ relation: string;
430
+ };
431
+ controlRef: (string | number)[];
432
+ validatorErrors: {
433
+ firstNameNotSameAsLast: boolean;
434
+ };
435
+ config: {
436
+ validators: string[];
437
+ controls: {
438
+ firstName: {
439
+ initialValue: string;
440
+ validators: string[];
441
+ };
442
+ lastName: {
443
+ initialValue: string;
444
+ validators: string[];
445
+ };
446
+ email: {
447
+ initialValue: string;
448
+ validators: string[];
449
+ };
450
+ relation: {
451
+ initialValue: string;
452
+ validators: string[];
453
+ };
454
+ };
455
+ };
456
+ key: string;
457
+ };
458
+ 'emergencyContacts.1.firstName': {
459
+ asyncValidatorErrors: {};
460
+ asyncValidateInProgress: {};
461
+ pending: boolean;
462
+ valid: boolean;
463
+ childrenValid: boolean;
464
+ errors: {
465
+ required: boolean;
466
+ };
467
+ pristineValue: string;
468
+ dirty: boolean;
469
+ touched: boolean;
470
+ value: string;
471
+ controlRef: (string | number)[];
472
+ validatorErrors: {
473
+ required: boolean;
474
+ };
475
+ config: {
476
+ initialValue: string;
477
+ validators: string[];
478
+ };
479
+ key: string;
480
+ };
481
+ 'emergencyContacts.1.lastName': {
482
+ asyncValidatorErrors: {};
483
+ asyncValidateInProgress: {};
484
+ pending: boolean;
485
+ valid: boolean;
486
+ childrenValid: boolean;
487
+ errors: {
488
+ required: boolean;
489
+ };
490
+ pristineValue: string;
491
+ dirty: boolean;
492
+ touched: boolean;
493
+ value: string;
494
+ controlRef: (string | number)[];
495
+ validatorErrors: {
496
+ required: boolean;
497
+ };
498
+ config: {
499
+ initialValue: string;
500
+ validators: string[];
501
+ };
502
+ key: string;
503
+ };
504
+ 'emergencyContacts.1.email': {
505
+ asyncValidatorErrors: {};
506
+ asyncValidateInProgress: {};
507
+ pending: boolean;
508
+ valid: boolean;
509
+ childrenValid: boolean;
510
+ errors: {
511
+ required: boolean;
512
+ email: boolean;
513
+ };
514
+ pristineValue: string;
515
+ dirty: boolean;
516
+ touched: boolean;
517
+ value: string;
518
+ controlRef: (string | number)[];
519
+ validatorErrors: {
520
+ required: boolean;
521
+ email: boolean;
522
+ };
523
+ config: {
524
+ initialValue: string;
525
+ validators: string[];
526
+ };
527
+ key: string;
528
+ };
529
+ 'emergencyContacts.1.relation': {
530
+ asyncValidatorErrors: {};
531
+ asyncValidateInProgress: {};
532
+ pending: boolean;
533
+ valid: boolean;
534
+ childrenValid: boolean;
535
+ errors: {
536
+ required: boolean;
537
+ };
538
+ pristineValue: string;
539
+ dirty: boolean;
540
+ touched: boolean;
541
+ value: string;
542
+ controlRef: (string | number)[];
543
+ validatorErrors: {
544
+ required: boolean;
545
+ };
546
+ config: {
547
+ initialValue: string;
548
+ validators: string[];
549
+ };
550
+ key: string;
551
+ };
552
+ doctorInfo: {
553
+ asyncValidatorErrors: {};
554
+ asyncValidateInProgress: {};
555
+ pending: boolean;
556
+ valid: boolean;
557
+ childrenValid: boolean;
558
+ errors: {
559
+ firstNameNotSameAsLast: boolean;
560
+ };
561
+ pristineValue: {
562
+ firstName: string;
563
+ lastName: string;
564
+ email: string;
565
+ };
566
+ dirty: boolean;
567
+ touched: boolean;
568
+ value: {
569
+ firstName: string;
570
+ lastName: string;
571
+ email: string;
572
+ };
573
+ controlRef: string[];
574
+ validatorErrors: {
575
+ firstNameNotSameAsLast: boolean;
576
+ };
577
+ config: {
578
+ validators: string[];
579
+ controls: {
580
+ firstName: {
581
+ initialValue: string;
582
+ validators: string[];
583
+ };
584
+ lastName: {
585
+ initialValue: string;
586
+ validators: string[];
587
+ };
588
+ email: {
589
+ initialValue: string;
590
+ validators: string[];
591
+ };
592
+ };
593
+ };
594
+ key: string;
595
+ };
596
+ 'doctorInfo.firstName': {
597
+ asyncValidatorErrors: {};
598
+ asyncValidateInProgress: {};
599
+ pending: boolean;
600
+ valid: boolean;
601
+ childrenValid: boolean;
602
+ errors: {
603
+ required: boolean;
604
+ };
605
+ pristineValue: string;
606
+ dirty: boolean;
607
+ touched: boolean;
608
+ value: string;
609
+ controlRef: string[];
610
+ validatorErrors: {
611
+ required: boolean;
612
+ };
613
+ config: {
614
+ initialValue: string;
615
+ validators: string[];
616
+ };
617
+ key: string;
618
+ };
619
+ 'doctorInfo.lastName': {
620
+ asyncValidatorErrors: {};
621
+ asyncValidateInProgress: {};
622
+ pending: boolean;
623
+ valid: boolean;
624
+ childrenValid: boolean;
625
+ errors: {
626
+ required: boolean;
627
+ };
628
+ pristineValue: string;
629
+ dirty: boolean;
630
+ touched: boolean;
631
+ value: string;
632
+ controlRef: string[];
633
+ validatorErrors: {
634
+ required: boolean;
635
+ };
636
+ config: {
637
+ initialValue: string;
638
+ validators: string[];
639
+ };
640
+ key: string;
641
+ };
642
+ 'doctorInfo.email': {
643
+ asyncValidatorErrors: {};
644
+ asyncValidateInProgress: {};
645
+ pending: boolean;
646
+ valid: boolean;
647
+ childrenValid: boolean;
648
+ errors: {
649
+ required: boolean;
650
+ email: boolean;
651
+ };
652
+ pristineValue: string;
653
+ dirty: boolean;
654
+ touched: boolean;
655
+ value: string;
656
+ controlRef: string[];
657
+ validatorErrors: {
658
+ required: boolean;
659
+ email: boolean;
660
+ };
661
+ config: {
662
+ initialValue: string;
663
+ validators: string[];
664
+ };
665
+ key: string;
666
+ };
667
+ };
@@ -0,0 +1,10 @@
1
+ import { ValidatorFn } from '../Models';
2
+ interface FullName {
3
+ firstName: string;
4
+ lastName: string;
5
+ }
6
+ export declare const firstNameNotSameAsLast: (value: FullName) => {
7
+ firstNameNotSameAsLast: boolean;
8
+ };
9
+ export declare const phoneNumber: ValidatorFn;
10
+ export {};
@@ -1,11 +1,3 @@
1
1
  import { FormGroupConfig } from '../Models/Configs';
2
- interface FullName {
3
- firstName: string;
4
- lastName: string;
5
- }
6
- export declare const firstNameNotSameAsLast: (value: FullName) => {
7
- firstNameNotSameAsLast: boolean;
8
- };
9
2
  export declare const asyncEmergencyContactConfigs: FormGroupConfig[];
10
3
  export declare const asyncConfig: FormGroupConfig;
11
- export {};
@@ -1,11 +1,3 @@
1
1
  import { FormGroupConfig } from '../Models/Configs';
2
- interface FullName {
3
- firstName: string;
4
- lastName: string;
5
- }
6
- export declare const firstNameNotSameAsLast: (value: FullName) => {
7
- firstNameNotSameAsLast: boolean;
8
- };
9
2
  export declare const emergencyContactConfigs: FormGroupConfig[];
10
3
  export declare const config: FormGroupConfig;
11
- export {};
@@ -1,4 +1,3 @@
1
1
  import { ValidatorFn } from '../Models/Validators';
2
2
  export declare const required: ValidatorFn;
3
3
  export declare const email: ValidatorFn;
4
- export declare const phoneNumber: ValidatorFn;