@skyux/validation 4.0.0 → 5.0.0-beta.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.
Files changed (39) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -1
  3. package/bundles/skyux-validation.umd.js +110 -256
  4. package/bundles/skyux-validation.umd.js.map +1 -1
  5. package/documentation.json +905 -0
  6. package/esm2015/modules/email-validation/email-validation.directive.js +18 -11
  7. package/esm2015/modules/email-validation/email-validation.module.js +22 -17
  8. package/esm2015/modules/url-validation/url-validation.directive.js +18 -11
  9. package/esm2015/modules/url-validation/url-validation.module.js +22 -17
  10. package/esm2015/modules/validation/validation.js +1 -1
  11. package/esm2015/modules/validators/validators.js +15 -1
  12. package/esm2015/public-api.js +7 -0
  13. package/esm2015/skyux-validation.js +2 -4
  14. package/fesm2015/skyux-validation.js +88 -46
  15. package/fesm2015/skyux-validation.js.map +1 -1
  16. package/modules/email-validation/email-validation.directive.d.ts +8 -0
  17. package/modules/email-validation/email-validation.module.d.ts +6 -0
  18. package/modules/url-validation/url-validation.directive.d.ts +8 -0
  19. package/modules/url-validation/url-validation.module.d.ts +6 -0
  20. package/modules/validators/validators.d.ts +14 -0
  21. package/package.json +9 -23
  22. package/{public_api.d.ts → public-api.d.ts} +2 -0
  23. package/skyux-validation.d.ts +2 -3
  24. package/CHANGELOG.md +0 -44
  25. package/bundles/skyux-validation.umd.min.js +0 -16
  26. package/bundles/skyux-validation.umd.min.js.map +0 -1
  27. package/esm2015/public_api.js +0 -5
  28. package/esm5/modules/email-validation/email-validation.directive.js +0 -40
  29. package/esm5/modules/email-validation/email-validation.module.js +0 -24
  30. package/esm5/modules/url-validation/url-validation.directive.js +0 -40
  31. package/esm5/modules/url-validation/url-validation.module.js +0 -24
  32. package/esm5/modules/validation/validation.js +0 -18
  33. package/esm5/modules/validators/validators.js +0 -25
  34. package/esm5/public_api.js +0 -5
  35. package/esm5/skyux-validation.js +0 -7
  36. package/fesm5/skyux-validation.js +0 -158
  37. package/fesm5/skyux-validation.js.map +0 -1
  38. package/skyux-validation.metadata.json +0 -1
  39. package/src/assets/locales/resources_en_US.json +0 -1
@@ -0,0 +1,905 @@
1
+ {
2
+ "anchorIds": {
3
+ "SkyEmailValidationModule": "class-skyemailvalidationmodule",
4
+ "SkyUrlValidationModule": "class-skyurlvalidationmodule",
5
+ "SkyValidation": "class-skyvalidation",
6
+ "SkyValidators": "class-skyvalidators",
7
+ "SkyEmailValidationDirective": "class-skyemailvalidationdirective",
8
+ "SkyUrlValidationDirective": "class-skyurlvalidationdirective"
9
+ },
10
+ "typedoc": {
11
+ "id": 0,
12
+ "name": "@skyux/validation",
13
+ "kind": 0,
14
+ "kindString": "Project",
15
+ "flags": {},
16
+ "originalName": "",
17
+ "children": [
18
+ {
19
+ "id": 25,
20
+ "name": "SkyEmailValidationModule",
21
+ "kind": 128,
22
+ "kindString": "Class",
23
+ "flags": {},
24
+ "decorators": [
25
+ {
26
+ "name": "NgModule",
27
+ "type": {
28
+ "type": "reference",
29
+ "name": "NgModule"
30
+ },
31
+ "arguments": {
32
+ "obj": "{\n declarations: [\n SkyEmailValidationDirective\n ],\n imports: [\n FormsModule\n ],\n exports: [\n SkyEmailValidationDirective\n ]\n}"
33
+ }
34
+ }
35
+ ],
36
+ "children": [
37
+ {
38
+ "id": 26,
39
+ "name": "constructor",
40
+ "kind": 512,
41
+ "kindString": "Constructor",
42
+ "flags": {},
43
+ "signatures": [
44
+ {
45
+ "id": 27,
46
+ "name": "new SkyEmailValidationModule",
47
+ "kind": 16384,
48
+ "kindString": "Constructor signature",
49
+ "flags": {},
50
+ "type": {
51
+ "type": "reference",
52
+ "id": 25,
53
+ "name": "SkyEmailValidationModule"
54
+ }
55
+ }
56
+ ]
57
+ }
58
+ ],
59
+ "groups": [
60
+ {
61
+ "title": "Constructors",
62
+ "kind": 512,
63
+ "children": [
64
+ 26
65
+ ]
66
+ }
67
+ ],
68
+ "sources": [
69
+ {
70
+ "fileName": "projects/validation/src/modules/email-validation/email-validation.module.ts",
71
+ "line": 21,
72
+ "character": 13
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ "id": 28,
78
+ "name": "SkyUrlValidationModule",
79
+ "kind": 128,
80
+ "kindString": "Class",
81
+ "flags": {},
82
+ "decorators": [
83
+ {
84
+ "name": "NgModule",
85
+ "type": {
86
+ "type": "reference",
87
+ "name": "NgModule"
88
+ },
89
+ "arguments": {
90
+ "obj": "{\n declarations: [\n SkyUrlValidationDirective\n ],\n imports: [\n FormsModule\n ],\n exports: [\n SkyUrlValidationDirective\n ]\n}"
91
+ }
92
+ }
93
+ ],
94
+ "children": [
95
+ {
96
+ "id": 29,
97
+ "name": "constructor",
98
+ "kind": 512,
99
+ "kindString": "Constructor",
100
+ "flags": {},
101
+ "signatures": [
102
+ {
103
+ "id": 30,
104
+ "name": "new SkyUrlValidationModule",
105
+ "kind": 16384,
106
+ "kindString": "Constructor signature",
107
+ "flags": {},
108
+ "type": {
109
+ "type": "reference",
110
+ "id": 28,
111
+ "name": "SkyUrlValidationModule"
112
+ }
113
+ }
114
+ ]
115
+ }
116
+ ],
117
+ "groups": [
118
+ {
119
+ "title": "Constructors",
120
+ "kind": 512,
121
+ "children": [
122
+ 29
123
+ ]
124
+ }
125
+ ],
126
+ "sources": [
127
+ {
128
+ "fileName": "projects/validation/src/modules/url-validation/url-validation.module.ts",
129
+ "line": 23,
130
+ "character": 13
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ "id": 31,
136
+ "name": "SkyValidation",
137
+ "kind": 128,
138
+ "kindString": "Class",
139
+ "flags": {
140
+ "isAbstract": true
141
+ },
142
+ "children": [
143
+ {
144
+ "id": 38,
145
+ "name": "constructor",
146
+ "kind": 512,
147
+ "kindString": "Constructor",
148
+ "flags": {},
149
+ "signatures": [
150
+ {
151
+ "id": 39,
152
+ "name": "new SkyValidation",
153
+ "kind": 16384,
154
+ "kindString": "Constructor signature",
155
+ "flags": {},
156
+ "type": {
157
+ "type": "reference",
158
+ "id": 31,
159
+ "name": "SkyValidation"
160
+ }
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ "id": 32,
166
+ "name": "isEmail",
167
+ "kind": 2048,
168
+ "kindString": "Method",
169
+ "flags": {
170
+ "isPublic": true,
171
+ "isStatic": true
172
+ },
173
+ "sources": [
174
+ {
175
+ "fileName": "projects/validation/src/modules/validation/validation.ts",
176
+ "line": 2,
177
+ "character": 16
178
+ }
179
+ ],
180
+ "signatures": [
181
+ {
182
+ "id": 33,
183
+ "name": "isEmail",
184
+ "kind": 4096,
185
+ "kindString": "Call signature",
186
+ "flags": {},
187
+ "parameters": [
188
+ {
189
+ "id": 34,
190
+ "name": "emailAddress",
191
+ "kind": 32768,
192
+ "kindString": "Parameter",
193
+ "flags": {},
194
+ "type": {
195
+ "type": "intrinsic",
196
+ "name": "string"
197
+ }
198
+ }
199
+ ],
200
+ "type": {
201
+ "type": "intrinsic",
202
+ "name": "boolean"
203
+ }
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "id": 35,
209
+ "name": "isUrl",
210
+ "kind": 2048,
211
+ "kindString": "Method",
212
+ "flags": {
213
+ "isPublic": true,
214
+ "isStatic": true
215
+ },
216
+ "sources": [
217
+ {
218
+ "fileName": "projects/validation/src/modules/validation/validation.ts",
219
+ "line": 10,
220
+ "character": 16
221
+ }
222
+ ],
223
+ "signatures": [
224
+ {
225
+ "id": 36,
226
+ "name": "isUrl",
227
+ "kind": 4096,
228
+ "kindString": "Call signature",
229
+ "flags": {},
230
+ "parameters": [
231
+ {
232
+ "id": 37,
233
+ "name": "url",
234
+ "kind": 32768,
235
+ "kindString": "Parameter",
236
+ "flags": {},
237
+ "type": {
238
+ "type": "intrinsic",
239
+ "name": "string"
240
+ }
241
+ }
242
+ ],
243
+ "type": {
244
+ "type": "intrinsic",
245
+ "name": "boolean"
246
+ }
247
+ }
248
+ ]
249
+ }
250
+ ],
251
+ "groups": [
252
+ {
253
+ "title": "Constructors",
254
+ "kind": 512,
255
+ "children": [
256
+ 38
257
+ ]
258
+ },
259
+ {
260
+ "title": "Methods",
261
+ "kind": 2048,
262
+ "children": [
263
+ 32,
264
+ 35
265
+ ]
266
+ }
267
+ ],
268
+ "sources": [
269
+ {
270
+ "fileName": "projects/validation/src/modules/validation/validation.ts",
271
+ "line": 1,
272
+ "character": 22
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "id": 40,
278
+ "name": "SkyValidators",
279
+ "kind": 128,
280
+ "kindString": "Class",
281
+ "flags": {},
282
+ "children": [
283
+ {
284
+ "id": 47,
285
+ "name": "constructor",
286
+ "kind": 512,
287
+ "kindString": "Constructor",
288
+ "flags": {},
289
+ "signatures": [
290
+ {
291
+ "id": 48,
292
+ "name": "new SkyValidators",
293
+ "kind": 16384,
294
+ "kindString": "Constructor signature",
295
+ "flags": {},
296
+ "type": {
297
+ "type": "reference",
298
+ "id": 40,
299
+ "name": "SkyValidators"
300
+ }
301
+ }
302
+ ]
303
+ },
304
+ {
305
+ "id": 41,
306
+ "name": "email",
307
+ "kind": 2048,
308
+ "kindString": "Method",
309
+ "flags": {
310
+ "isPublic": true,
311
+ "isStatic": true
312
+ },
313
+ "sources": [
314
+ {
315
+ "fileName": "projects/validation/src/modules/validators/validators.ts",
316
+ "line": 22,
317
+ "character": 16
318
+ }
319
+ ],
320
+ "signatures": [
321
+ {
322
+ "id": 42,
323
+ "name": "email",
324
+ "kind": 4096,
325
+ "kindString": "Call signature",
326
+ "flags": {},
327
+ "comment": {
328
+ "shortText": "Validates email addresses in reactive forms. Add this validator directly to the form control\nmodel in the component class. If users enter values that are not valid email addresses, the\nvalidator throws an error. Since this is a sync validator, it returns a set of validation\nerrors or `undefined` immediately when users enter values."
329
+ },
330
+ "parameters": [
331
+ {
332
+ "id": 43,
333
+ "name": "control",
334
+ "kind": 32768,
335
+ "kindString": "Parameter",
336
+ "flags": {},
337
+ "comment": {
338
+ "text": "\n"
339
+ },
340
+ "type": {
341
+ "type": "reference",
342
+ "name": "AbstractControl"
343
+ }
344
+ }
345
+ ],
346
+ "type": {
347
+ "type": "reference",
348
+ "name": "ValidationErrors"
349
+ }
350
+ }
351
+ ]
352
+ },
353
+ {
354
+ "id": 44,
355
+ "name": "url",
356
+ "kind": 2048,
357
+ "kindString": "Method",
358
+ "flags": {
359
+ "isPublic": true,
360
+ "isStatic": true
361
+ },
362
+ "sources": [
363
+ {
364
+ "fileName": "projects/validation/src/modules/validators/validators.ts",
365
+ "line": 39,
366
+ "character": 16
367
+ }
368
+ ],
369
+ "signatures": [
370
+ {
371
+ "id": 45,
372
+ "name": "url",
373
+ "kind": 4096,
374
+ "kindString": "Call signature",
375
+ "flags": {},
376
+ "comment": {
377
+ "shortText": "Validates URLs in reactive forms. Add this validator directly to the form control model in\nthe component class. If users enter values that are not valid URLs, the validator throws an\nerror. Since this is a sync validator, it returns a set of validation errors or `undefined`\nimmediately when users enter values."
378
+ },
379
+ "parameters": [
380
+ {
381
+ "id": 46,
382
+ "name": "control",
383
+ "kind": 32768,
384
+ "kindString": "Parameter",
385
+ "flags": {},
386
+ "comment": {
387
+ "text": "\n"
388
+ },
389
+ "type": {
390
+ "type": "reference",
391
+ "name": "AbstractControl"
392
+ }
393
+ }
394
+ ],
395
+ "type": {
396
+ "type": "reference",
397
+ "name": "ValidationErrors"
398
+ }
399
+ }
400
+ ]
401
+ }
402
+ ],
403
+ "groups": [
404
+ {
405
+ "title": "Constructors",
406
+ "kind": 512,
407
+ "children": [
408
+ 47
409
+ ]
410
+ },
411
+ {
412
+ "title": "Methods",
413
+ "kind": 2048,
414
+ "children": [
415
+ 41,
416
+ 44
417
+ ]
418
+ }
419
+ ],
420
+ "sources": [
421
+ {
422
+ "fileName": "projects/validation/src/modules/validators/validators.ts",
423
+ "line": 13,
424
+ "character": 13
425
+ }
426
+ ]
427
+ },
428
+ {
429
+ "id": 1,
430
+ "name": "SkyEmailValidationDirective",
431
+ "kind": 128,
432
+ "kindString": "Class",
433
+ "flags": {},
434
+ "comment": {
435
+ "shortText": "Creates an input to validate email addresses. Place this attribute on an `input` element.\nIf users enter values that are not valid email addresses, an error message appears.\nThe directive uses `NgModel` to bind data."
436
+ },
437
+ "decorators": [
438
+ {
439
+ "name": "Directive",
440
+ "type": {
441
+ "type": "reference",
442
+ "name": "Directive"
443
+ },
444
+ "arguments": {
445
+ "obj": "{\n selector: '[skyEmailValidation]',\n providers: [SKY_EMAIL_VALIDATION_VALIDATOR]\n}"
446
+ }
447
+ }
448
+ ],
449
+ "children": [
450
+ {
451
+ "id": 2,
452
+ "name": "constructor",
453
+ "kind": 512,
454
+ "kindString": "Constructor",
455
+ "flags": {},
456
+ "signatures": [
457
+ {
458
+ "id": 3,
459
+ "name": "SkyEmailValidationDirective",
460
+ "kind": 16384,
461
+ "kindString": "Constructor signature",
462
+ "flags": {},
463
+ "type": {
464
+ "type": "reference",
465
+ "id": 1,
466
+ "name": "SkyEmailValidationDirective"
467
+ }
468
+ }
469
+ ]
470
+ },
471
+ {
472
+ "id": 10,
473
+ "name": "emailIsValid",
474
+ "kind": 2048,
475
+ "kindString": "Method",
476
+ "flags": {
477
+ "isPublic": true
478
+ },
479
+ "sources": [
480
+ {
481
+ "fileName": "projects/validation/src/modules/email-validation/email-validation.directive.ts",
482
+ "line": 53,
483
+ "character": 9
484
+ }
485
+ ],
486
+ "signatures": [
487
+ {
488
+ "id": 11,
489
+ "name": "emailIsValid",
490
+ "kind": 4096,
491
+ "kindString": "Call signature",
492
+ "flags": {},
493
+ "parameters": [
494
+ {
495
+ "id": 12,
496
+ "name": "email",
497
+ "kind": 32768,
498
+ "kindString": "Parameter",
499
+ "flags": {},
500
+ "type": {
501
+ "type": "intrinsic",
502
+ "name": "string"
503
+ }
504
+ }
505
+ ],
506
+ "type": {
507
+ "type": "intrinsic",
508
+ "name": "boolean"
509
+ }
510
+ }
511
+ ]
512
+ },
513
+ {
514
+ "id": 4,
515
+ "name": "validate",
516
+ "kind": 2048,
517
+ "kindString": "Method",
518
+ "flags": {
519
+ "isPublic": true
520
+ },
521
+ "sources": [
522
+ {
523
+ "fileName": "projects/validation/src/modules/email-validation/email-validation.directive.ts",
524
+ "line": 36,
525
+ "character": 9
526
+ }
527
+ ],
528
+ "signatures": [
529
+ {
530
+ "id": 5,
531
+ "name": "validate",
532
+ "kind": 4096,
533
+ "kindString": "Call signature",
534
+ "flags": {},
535
+ "parameters": [
536
+ {
537
+ "id": 6,
538
+ "name": "control",
539
+ "kind": 32768,
540
+ "kindString": "Parameter",
541
+ "flags": {},
542
+ "type": {
543
+ "type": "reference",
544
+ "name": "AbstractControl"
545
+ }
546
+ }
547
+ ],
548
+ "type": {
549
+ "type": "reflection",
550
+ "declaration": {
551
+ "id": 7,
552
+ "name": "__type",
553
+ "kind": 65536,
554
+ "kindString": "Type literal",
555
+ "flags": {},
556
+ "indexSignature": {
557
+ "id": 8,
558
+ "name": "__index",
559
+ "kind": 8192,
560
+ "kindString": "Index signature",
561
+ "flags": {},
562
+ "parameters": [
563
+ {
564
+ "id": 9,
565
+ "name": "key",
566
+ "kind": 32768,
567
+ "flags": {},
568
+ "type": {
569
+ "type": "intrinsic",
570
+ "name": "string"
571
+ }
572
+ }
573
+ ],
574
+ "type": {
575
+ "type": "intrinsic",
576
+ "name": "any"
577
+ }
578
+ }
579
+ }
580
+ },
581
+ "implementationOf": {
582
+ "type": "reference",
583
+ "name": "Validator.validate"
584
+ }
585
+ }
586
+ ],
587
+ "implementationOf": {
588
+ "type": "reference",
589
+ "name": "Validator.validate"
590
+ }
591
+ }
592
+ ],
593
+ "groups": [
594
+ {
595
+ "title": "Constructors",
596
+ "kind": 512,
597
+ "children": [
598
+ 2
599
+ ]
600
+ },
601
+ {
602
+ "title": "Methods",
603
+ "kind": 2048,
604
+ "children": [
605
+ 10,
606
+ 4
607
+ ]
608
+ }
609
+ ],
610
+ "sources": [
611
+ {
612
+ "fileName": "projects/validation/src/modules/email-validation/email-validation.directive.ts",
613
+ "line": 34,
614
+ "character": 13
615
+ }
616
+ ],
617
+ "implementedTypes": [
618
+ {
619
+ "type": "reference",
620
+ "name": "Validator"
621
+ }
622
+ ]
623
+ },
624
+ {
625
+ "id": 13,
626
+ "name": "SkyUrlValidationDirective",
627
+ "kind": 128,
628
+ "kindString": "Class",
629
+ "flags": {},
630
+ "comment": {
631
+ "shortText": "Creates an input to validate URLs. Place this attribute on an `input` element.\nIf users enters values that are not valid URLs, an error message appears.\nThis directive uses `NgModel` to bind data."
632
+ },
633
+ "decorators": [
634
+ {
635
+ "name": "Directive",
636
+ "type": {
637
+ "type": "reference",
638
+ "name": "Directive"
639
+ },
640
+ "arguments": {
641
+ "obj": "{\n selector: '[skyUrlValidation]',\n providers: [SKY_URL_VALIDATION_VALIDATOR]\n}"
642
+ }
643
+ }
644
+ ],
645
+ "children": [
646
+ {
647
+ "id": 14,
648
+ "name": "constructor",
649
+ "kind": 512,
650
+ "kindString": "Constructor",
651
+ "flags": {},
652
+ "signatures": [
653
+ {
654
+ "id": 15,
655
+ "name": "SkyUrlValidationDirective",
656
+ "kind": 16384,
657
+ "kindString": "Constructor signature",
658
+ "flags": {},
659
+ "type": {
660
+ "type": "reference",
661
+ "id": 13,
662
+ "name": "SkyUrlValidationDirective"
663
+ }
664
+ }
665
+ ]
666
+ },
667
+ {
668
+ "id": 22,
669
+ "name": "urlIsValid",
670
+ "kind": 2048,
671
+ "kindString": "Method",
672
+ "flags": {
673
+ "isPublic": true
674
+ },
675
+ "sources": [
676
+ {
677
+ "fileName": "projects/validation/src/modules/url-validation/url-validation.directive.ts",
678
+ "line": 51,
679
+ "character": 9
680
+ }
681
+ ],
682
+ "signatures": [
683
+ {
684
+ "id": 23,
685
+ "name": "urlIsValid",
686
+ "kind": 4096,
687
+ "kindString": "Call signature",
688
+ "flags": {},
689
+ "parameters": [
690
+ {
691
+ "id": 24,
692
+ "name": "url",
693
+ "kind": 32768,
694
+ "kindString": "Parameter",
695
+ "flags": {},
696
+ "type": {
697
+ "type": "intrinsic",
698
+ "name": "string"
699
+ }
700
+ }
701
+ ],
702
+ "type": {
703
+ "type": "intrinsic",
704
+ "name": "boolean"
705
+ }
706
+ }
707
+ ]
708
+ },
709
+ {
710
+ "id": 16,
711
+ "name": "validate",
712
+ "kind": 2048,
713
+ "kindString": "Method",
714
+ "flags": {
715
+ "isPublic": true
716
+ },
717
+ "sources": [
718
+ {
719
+ "fileName": "projects/validation/src/modules/url-validation/url-validation.directive.ts",
720
+ "line": 35,
721
+ "character": 9
722
+ }
723
+ ],
724
+ "signatures": [
725
+ {
726
+ "id": 17,
727
+ "name": "validate",
728
+ "kind": 4096,
729
+ "kindString": "Call signature",
730
+ "flags": {},
731
+ "parameters": [
732
+ {
733
+ "id": 18,
734
+ "name": "control",
735
+ "kind": 32768,
736
+ "kindString": "Parameter",
737
+ "flags": {},
738
+ "type": {
739
+ "type": "reference",
740
+ "name": "AbstractControl"
741
+ }
742
+ }
743
+ ],
744
+ "type": {
745
+ "type": "reflection",
746
+ "declaration": {
747
+ "id": 19,
748
+ "name": "__type",
749
+ "kind": 65536,
750
+ "kindString": "Type literal",
751
+ "flags": {},
752
+ "indexSignature": {
753
+ "id": 20,
754
+ "name": "__index",
755
+ "kind": 8192,
756
+ "kindString": "Index signature",
757
+ "flags": {},
758
+ "parameters": [
759
+ {
760
+ "id": 21,
761
+ "name": "key",
762
+ "kind": 32768,
763
+ "flags": {},
764
+ "type": {
765
+ "type": "intrinsic",
766
+ "name": "string"
767
+ }
768
+ }
769
+ ],
770
+ "type": {
771
+ "type": "intrinsic",
772
+ "name": "any"
773
+ }
774
+ }
775
+ }
776
+ },
777
+ "implementationOf": {
778
+ "type": "reference",
779
+ "name": "Validator.validate"
780
+ }
781
+ }
782
+ ],
783
+ "implementationOf": {
784
+ "type": "reference",
785
+ "name": "Validator.validate"
786
+ }
787
+ }
788
+ ],
789
+ "groups": [
790
+ {
791
+ "title": "Constructors",
792
+ "kind": 512,
793
+ "children": [
794
+ 14
795
+ ]
796
+ },
797
+ {
798
+ "title": "Methods",
799
+ "kind": 2048,
800
+ "children": [
801
+ 22,
802
+ 16
803
+ ]
804
+ }
805
+ ],
806
+ "sources": [
807
+ {
808
+ "fileName": "projects/validation/src/modules/url-validation/url-validation.directive.ts",
809
+ "line": 34,
810
+ "character": 13
811
+ }
812
+ ],
813
+ "implementedTypes": [
814
+ {
815
+ "type": "reference",
816
+ "name": "Validator"
817
+ }
818
+ ]
819
+ }
820
+ ],
821
+ "groups": [
822
+ {
823
+ "title": "Classes",
824
+ "kind": 128,
825
+ "children": [
826
+ 25,
827
+ 28,
828
+ 31,
829
+ 40,
830
+ 1,
831
+ 13
832
+ ]
833
+ }
834
+ ],
835
+ "sources": [
836
+ {
837
+ "fileName": "projects/validation/src/public-api.ts",
838
+ "line": 1,
839
+ "character": 0
840
+ }
841
+ ]
842
+ },
843
+ "codeExamples": [
844
+ {
845
+ "fileName": "email-validation-demo.component.html",
846
+ "filePath": "/projects/validation/documentation/code-examples/email-validation/control-validator/email-validation-demo.component.html",
847
+ "rawContents": "<form\n novalidate\n [formGroup]=\"formGroup\"\n>\n <div\n class=\"sky-form-group\"\n >\n <sky-input-box>\n <label\n class=\"sky-control-label\"\n [for]=\"emailInput.id\"\n >\n Email address\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"email\"\n skyId\n #emailInput=\"skyId\"\n />\n </sky-input-box>\n </div>\n\n <ng-container *ngIf=\"emailControl.errors && emailControl.touched\">\n\n <div *ngIf=\"emailControl.errors.required\"\n class=\"sky-error-label\"\n >\n Email address is required.\n </div>\n\n <div *ngIf=\"emailControl.errors.skyEmail && emailControl.dirty\"\n class=\"sky-error-label\"\n >\n Enter a valid email in the \"joe@abc.com\" format.\n </div>\n\n </ng-container>\n\n</form>\n"
848
+ },
849
+ {
850
+ "fileName": "email-validation-demo.component.ts",
851
+ "filePath": "/projects/validation/documentation/code-examples/email-validation/control-validator/email-validation-demo.component.ts",
852
+ "rawContents": "import {\n Component,\n OnInit\n} from '@angular/core';\n\nimport {\n AbstractControl,\n FormBuilder,\n FormControl,\n FormGroup,\n Validators\n} from '@angular/forms';\n\nimport {\n SkyValidators\n} from '@skyux/validation';\n\n@Component({\n selector: 'app-email-validation-demo',\n templateUrl: './email-validation-demo.component.html'\n})\nexport class EmailValidationDemoComponent implements OnInit {\n\n public get emailControl(): AbstractControl {\n return this.formGroup.get('email');\n }\n\n public formGroup: FormGroup;\n\n constructor(\n private formBuilder: FormBuilder\n ) { }\n\n public ngOnInit(): void {\n this.formGroup = this.formBuilder.group({\n email: new FormControl(undefined, [\n Validators.required,\n SkyValidators.email\n ])\n });\n }\n}\n"
853
+ },
854
+ {
855
+ "fileName": "email-validation-demo.module.ts",
856
+ "filePath": "/projects/validation/documentation/code-examples/email-validation/control-validator/email-validation-demo.module.ts",
857
+ "rawContents": "import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n FormsModule,\n ReactiveFormsModule\n} from '@angular/forms';\n\nimport {\n SkyIdModule\n} from '@skyux/core';\n\nimport {\n SkyInputBoxModule\n} from '@skyux/forms';\n\nimport {\n SkyEmailValidationModule\n} from '@skyux/validation';\n\nimport {\n EmailValidationDemoComponent\n} from './email-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SkyEmailValidationModule,\n SkyIdModule,\n SkyInputBoxModule\n ],\n exports: [\n EmailValidationDemoComponent\n ],\n declarations: [\n EmailValidationDemoComponent\n ]\n})\nexport class EmailValidationDemoModule { }\n"
858
+ },
859
+ {
860
+ "fileName": "email-validation-demo.component.html",
861
+ "filePath": "/projects/validation/documentation/code-examples/email-validation/directive/email-validation-demo.component.html",
862
+ "rawContents": "<form\n novalidate\n>\n <div\n class=\"sky-form-group\"\n >\n <sky-input-box>\n <label\n class=\"sky-control-label\"\n [for]=\"emailInput.id\"\n >\n Email address\n </label>\n <input\n class=\"sky-form-control\"\n name=\"emailAddress\"\n skyEmailValidation\n skyId\n [(ngModel)]=\"demoModel.emailAddress\"\n #emailInput=\"skyId\"\n #emailControl=\"ngModel\"\n />\n </sky-input-box>\n </div>\n\n <div *ngIf=\"emailControl.errors?.skyEmail && emailControl.dirty && emailControl.touched\"\n class=\"sky-error-label\"\n >\n Enter a valid email in the \"joe@abc.com\" format.\n </div>\n</form>\n"
863
+ },
864
+ {
865
+ "fileName": "email-validation-demo.component.ts",
866
+ "filePath": "/projects/validation/documentation/code-examples/email-validation/directive/email-validation-demo.component.ts",
867
+ "rawContents": "import {\n Component\n} from '@angular/core';\n\n@Component({\n selector: 'app-email-validation-demo',\n templateUrl: './email-validation-demo.component.html'\n})\nexport class EmailValidationDemoComponent {\n\n public demoModel: {\n emailAddress?: string;\n } = {};\n\n}\n"
868
+ },
869
+ {
870
+ "fileName": "email-validation-demo.module.ts",
871
+ "filePath": "/projects/validation/documentation/code-examples/email-validation/directive/email-validation-demo.module.ts",
872
+ "rawContents": "import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n FormsModule\n} from '@angular/forms';\n\nimport {\n SkyIdModule\n} from '@skyux/core';\n\nimport {\n SkyInputBoxModule\n} from '@skyux/forms';\n\nimport {\n SkyEmailValidationModule\n} from '@skyux/validation';\n\nimport {\n EmailValidationDemoComponent\n} from './email-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n SkyEmailValidationModule,\n SkyIdModule,\n SkyInputBoxModule\n ],\n exports: [\n EmailValidationDemoComponent\n ],\n declarations: [\n EmailValidationDemoComponent\n ]\n})\nexport class EmailValidationDemoModule { }\n"
873
+ },
874
+ {
875
+ "fileName": "url-validation-demo.component.html",
876
+ "filePath": "/projects/validation/documentation/code-examples/url-validation/control-validator/url-validation-demo.component.html",
877
+ "rawContents": "<form\n novalidate\n [formGroup]=\"formGroup\"\n>\n <div\n class=\"sky-form-group\"\n >\n <sky-input-box>\n <label\n class=\"sky-control-label\"\n [for]=\"urlInput.id\"\n >\n URL\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"url\"\n skyId\n #urlInput=\"skyId\"\n />\n </sky-input-box>\n </div>\n\n <ng-container *ngIf=\"urlControl.errors && urlControl.touched\">\n\n <div *ngIf=\"urlControl.errors.required\"\n class=\"sky-error-label\"\n >\n URL is required.\n </div>\n\n <div *ngIf=\"urlControl.errors.skyUrl && urlControl.dirty\"\n class=\"sky-error-label\"\n >\n Enter a valid URL in the \"http(s)://site.domain\" format.\n </div>\n\n </ng-container>\n\n</form>\n"
878
+ },
879
+ {
880
+ "fileName": "url-validation-demo.component.ts",
881
+ "filePath": "/projects/validation/documentation/code-examples/url-validation/control-validator/url-validation-demo.component.ts",
882
+ "rawContents": "import {\n Component,\n OnInit\n} from '@angular/core';\n\nimport {\n AbstractControl,\n FormBuilder,\n FormControl,\n FormGroup,\n Validators\n} from '@angular/forms';\n\nimport {\n SkyValidators\n} from '@skyux/validation';\n\n@Component({\n selector: 'app-url-validation-demo',\n templateUrl: './url-validation-demo.component.html'\n})\nexport class UrlValidationDemoComponent implements OnInit {\n\n public get urlControl(): AbstractControl {\n return this.formGroup.get('url');\n }\n\n public formGroup: FormGroup;\n\n constructor(\n private formBuilder: FormBuilder\n ) { }\n\n public ngOnInit(): void {\n this.formGroup = this.formBuilder.group({\n url: new FormControl(undefined, [\n Validators.required,\n SkyValidators.url\n ])\n });\n }\n}\n"
883
+ },
884
+ {
885
+ "fileName": "url-validation-demo.module.ts",
886
+ "filePath": "/projects/validation/documentation/code-examples/url-validation/control-validator/url-validation-demo.module.ts",
887
+ "rawContents": "import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n FormsModule,\n ReactiveFormsModule\n} from '@angular/forms';\n\nimport {\n SkyIdModule\n} from '@skyux/core';\n\nimport {\n SkyInputBoxModule\n} from '@skyux/forms';\n\nimport {\n SkyUrlValidationModule\n} from '@skyux/validation';\n\nimport {\n UrlValidationDemoComponent\n} from './url-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyUrlValidationModule\n ],\n exports: [\n UrlValidationDemoComponent\n ],\n declarations: [\n UrlValidationDemoComponent\n ]\n})\nexport class UrlValidationDemoModule { }\n"
888
+ },
889
+ {
890
+ "fileName": "url-validation-demo.component.html",
891
+ "filePath": "/projects/validation/documentation/code-examples/url-validation/directive/url-validation-demo.component.html",
892
+ "rawContents": "<form\n novalidate\n>\n <div\n class=\"sky-form-group\"\n >\n <sky-input-box>\n <label\n class=\"sky-control-label\"\n [for]=\"urlInput.id\"\n >\n Url\n </label>\n <input\n class=\"sky-form-control\"\n name=\"url\"\n skyUrlValidation\n skyId\n [(ngModel)]=\"demoModel.url\"\n #urlInput=\"skyId\"\n #urlControl=\"ngModel\"\n />\n </sky-input-box>\n </div>\n\n <div *ngIf=\"urlControl.errors?.skyUrl && urlControl.dirty && urlControl.touched\"\n class=\"sky-error-label\"\n >\n Enter a valid URL in the \"http(s)://site.domain\" format.\n </div>\n</form>\n"
893
+ },
894
+ {
895
+ "fileName": "url-validation-demo.component.ts",
896
+ "filePath": "/projects/validation/documentation/code-examples/url-validation/directive/url-validation-demo.component.ts",
897
+ "rawContents": "import {\n Component\n} from '@angular/core';\n\n@Component({\n selector: 'app-url-validation-demo',\n templateUrl: './url-validation-demo.component.html'\n})\nexport class UrlValidationDemoComponent {\n\n public demoModel: {\n url?: string;\n } = {};\n\n}\n"
898
+ },
899
+ {
900
+ "fileName": "url-validation-demo.module.ts",
901
+ "filePath": "/projects/validation/documentation/code-examples/url-validation/directive/url-validation-demo.module.ts",
902
+ "rawContents": "import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n FormsModule\n} from '@angular/forms';\n\nimport {\n SkyIdModule\n} from '@skyux/core';\n\nimport {\n SkyInputBoxModule\n} from '@skyux/forms';\n\nimport {\n SkyUrlValidationModule\n} from '@skyux/validation';\n\nimport {\n UrlValidationDemoComponent\n} from './url-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyUrlValidationModule\n ],\n exports: [\n UrlValidationDemoComponent\n ],\n declarations: [\n UrlValidationDemoComponent\n ]\n})\nexport class UrlValidationDemoModule { }\n"
903
+ }
904
+ ]
905
+ }