@skyux/validation 9.0.0-alpha.0 → 9.0.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.
- package/documentation.json +100 -100
- package/esm2022/index.mjs +5 -6
- package/index.d.ts +5 -5
- package/package.json +1 -1
package/documentation.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"originalName": "",
|
|
18
18
|
"children": [
|
|
19
19
|
{
|
|
20
|
-
"id":
|
|
20
|
+
"id": 1,
|
|
21
21
|
"name": "SkyEmailValidationModule",
|
|
22
22
|
"kind": 128,
|
|
23
23
|
"kindString": "Class",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"title": "Constructors",
|
|
43
43
|
"kind": 512,
|
|
44
44
|
"children": [
|
|
45
|
-
|
|
45
|
+
2
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
],
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
"id":
|
|
58
|
+
"id": 6,
|
|
59
59
|
"name": "SkyUrlValidationModule",
|
|
60
60
|
"kind": 128,
|
|
61
61
|
"kindString": "Class",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"title": "Constructors",
|
|
81
81
|
"kind": 512,
|
|
82
82
|
"children": [
|
|
83
|
-
|
|
83
|
+
7
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
],
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
"id":
|
|
96
|
+
"id": 9,
|
|
97
97
|
"name": "SkyValidation",
|
|
98
98
|
"kind": 128,
|
|
99
99
|
"kindString": "Class",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
},
|
|
103
103
|
"children": [
|
|
104
104
|
{
|
|
105
|
-
"id":
|
|
105
|
+
"id": 10,
|
|
106
106
|
"name": "isEmail",
|
|
107
107
|
"kind": 2048,
|
|
108
108
|
"kindString": "Method",
|
|
@@ -119,14 +119,14 @@
|
|
|
119
119
|
],
|
|
120
120
|
"signatures": [
|
|
121
121
|
{
|
|
122
|
-
"id":
|
|
122
|
+
"id": 11,
|
|
123
123
|
"name": "isEmail",
|
|
124
124
|
"kind": 4096,
|
|
125
125
|
"kindString": "Call signature",
|
|
126
126
|
"flags": {},
|
|
127
127
|
"parameters": [
|
|
128
128
|
{
|
|
129
|
-
"id":
|
|
129
|
+
"id": 12,
|
|
130
130
|
"name": "emailAddress",
|
|
131
131
|
"kind": 32768,
|
|
132
132
|
"kindString": "Parameter",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
]
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
|
-
"id":
|
|
148
|
+
"id": 13,
|
|
149
149
|
"name": "isUrl",
|
|
150
150
|
"kind": 2048,
|
|
151
151
|
"kindString": "Method",
|
|
@@ -162,14 +162,14 @@
|
|
|
162
162
|
],
|
|
163
163
|
"signatures": [
|
|
164
164
|
{
|
|
165
|
-
"id":
|
|
165
|
+
"id": 14,
|
|
166
166
|
"name": "isUrl",
|
|
167
167
|
"kind": 4096,
|
|
168
168
|
"kindString": "Call signature",
|
|
169
169
|
"flags": {},
|
|
170
170
|
"parameters": [
|
|
171
171
|
{
|
|
172
|
-
"id":
|
|
172
|
+
"id": 15,
|
|
173
173
|
"name": "value",
|
|
174
174
|
"kind": 32768,
|
|
175
175
|
"kindString": "Parameter",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
|
-
"id":
|
|
183
|
+
"id": 16,
|
|
184
184
|
"name": "options",
|
|
185
185
|
"kind": 32768,
|
|
186
186
|
"kindString": "Parameter",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
},
|
|
190
190
|
"type": {
|
|
191
191
|
"type": "reference",
|
|
192
|
-
"id":
|
|
192
|
+
"id": 4,
|
|
193
193
|
"name": "SkyUrlValidationOptions"
|
|
194
194
|
}
|
|
195
195
|
}
|
|
@@ -207,15 +207,15 @@
|
|
|
207
207
|
"title": "Constructors",
|
|
208
208
|
"kind": 512,
|
|
209
209
|
"children": [
|
|
210
|
-
|
|
210
|
+
17
|
|
211
211
|
]
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
"title": "Methods",
|
|
215
215
|
"kind": 2048,
|
|
216
216
|
"children": [
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
10,
|
|
218
|
+
13
|
|
219
219
|
]
|
|
220
220
|
}
|
|
221
221
|
],
|
|
@@ -228,14 +228,14 @@
|
|
|
228
228
|
]
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
|
-
"id":
|
|
231
|
+
"id": 19,
|
|
232
232
|
"name": "SkyValidators",
|
|
233
233
|
"kind": 128,
|
|
234
234
|
"kindString": "Class",
|
|
235
235
|
"flags": {},
|
|
236
236
|
"children": [
|
|
237
237
|
{
|
|
238
|
-
"id":
|
|
238
|
+
"id": 20,
|
|
239
239
|
"name": "email",
|
|
240
240
|
"kind": 2048,
|
|
241
241
|
"kindString": "Method",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
],
|
|
253
253
|
"signatures": [
|
|
254
254
|
{
|
|
255
|
-
"id":
|
|
255
|
+
"id": 21,
|
|
256
256
|
"name": "email",
|
|
257
257
|
"kind": 4096,
|
|
258
258
|
"kindString": "Call signature",
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
},
|
|
263
263
|
"parameters": [
|
|
264
264
|
{
|
|
265
|
-
"id":
|
|
265
|
+
"id": 22,
|
|
266
266
|
"name": "control",
|
|
267
267
|
"kind": 32768,
|
|
268
268
|
"kindString": "Parameter",
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
]
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
|
-
"id":
|
|
298
|
+
"id": 23,
|
|
299
299
|
"name": "url",
|
|
300
300
|
"kind": 2048,
|
|
301
301
|
"kindString": "Method",
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
],
|
|
313
313
|
"signatures": [
|
|
314
314
|
{
|
|
315
|
-
"id":
|
|
315
|
+
"id": 24,
|
|
316
316
|
"name": "url",
|
|
317
317
|
"kind": 4096,
|
|
318
318
|
"kindString": "Call signature",
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
},
|
|
323
323
|
"parameters": [
|
|
324
324
|
{
|
|
325
|
-
"id":
|
|
325
|
+
"id": 25,
|
|
326
326
|
"name": "abstractControl",
|
|
327
327
|
"kind": 32768,
|
|
328
328
|
"kindString": "Parameter",
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
}
|
|
354
354
|
},
|
|
355
355
|
{
|
|
356
|
-
"id":
|
|
356
|
+
"id": 26,
|
|
357
357
|
"name": "url",
|
|
358
358
|
"kind": 4096,
|
|
359
359
|
"kindString": "Call signature",
|
|
@@ -363,14 +363,14 @@
|
|
|
363
363
|
},
|
|
364
364
|
"parameters": [
|
|
365
365
|
{
|
|
366
|
-
"id":
|
|
366
|
+
"id": 27,
|
|
367
367
|
"name": "skyUrlValidationOptions",
|
|
368
368
|
"kind": 32768,
|
|
369
369
|
"kindString": "Parameter",
|
|
370
370
|
"flags": {},
|
|
371
371
|
"type": {
|
|
372
372
|
"type": "reference",
|
|
373
|
-
"id":
|
|
373
|
+
"id": 4,
|
|
374
374
|
"name": "SkyUrlValidationOptions"
|
|
375
375
|
}
|
|
376
376
|
}
|
|
@@ -390,15 +390,15 @@
|
|
|
390
390
|
"title": "Constructors",
|
|
391
391
|
"kind": 512,
|
|
392
392
|
"children": [
|
|
393
|
-
|
|
393
|
+
28
|
|
394
394
|
]
|
|
395
395
|
},
|
|
396
396
|
{
|
|
397
397
|
"title": "Methods",
|
|
398
398
|
"kind": 2048,
|
|
399
399
|
"children": [
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
20,
|
|
401
|
+
23
|
|
402
402
|
]
|
|
403
403
|
}
|
|
404
404
|
],
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
]
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
|
-
"id":
|
|
414
|
+
"id": 30,
|
|
415
415
|
"name": "SkyEmailValidationDirective",
|
|
416
416
|
"kind": 128,
|
|
417
417
|
"kindString": "Class",
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
],
|
|
436
436
|
"children": [
|
|
437
437
|
{
|
|
438
|
-
"id":
|
|
438
|
+
"id": 36,
|
|
439
439
|
"name": "emailIsValid",
|
|
440
440
|
"kind": 2048,
|
|
441
441
|
"kindString": "Method",
|
|
@@ -451,14 +451,14 @@
|
|
|
451
451
|
],
|
|
452
452
|
"signatures": [
|
|
453
453
|
{
|
|
454
|
-
"id":
|
|
454
|
+
"id": 37,
|
|
455
455
|
"name": "emailIsValid",
|
|
456
456
|
"kind": 4096,
|
|
457
457
|
"kindString": "Call signature",
|
|
458
458
|
"flags": {},
|
|
459
459
|
"parameters": [
|
|
460
460
|
{
|
|
461
|
-
"id":
|
|
461
|
+
"id": 38,
|
|
462
462
|
"name": "email",
|
|
463
463
|
"kind": 32768,
|
|
464
464
|
"kindString": "Parameter",
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
]
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
|
-
"id":
|
|
480
|
+
"id": 33,
|
|
481
481
|
"name": "validate",
|
|
482
482
|
"kind": 2048,
|
|
483
483
|
"kindString": "Method",
|
|
@@ -493,14 +493,14 @@
|
|
|
493
493
|
],
|
|
494
494
|
"signatures": [
|
|
495
495
|
{
|
|
496
|
-
"id":
|
|
496
|
+
"id": 34,
|
|
497
497
|
"name": "validate",
|
|
498
498
|
"kind": 4096,
|
|
499
499
|
"kindString": "Call signature",
|
|
500
500
|
"flags": {},
|
|
501
501
|
"parameters": [
|
|
502
502
|
{
|
|
503
|
-
"id":
|
|
503
|
+
"id": 35,
|
|
504
504
|
"name": "control",
|
|
505
505
|
"kind": 32768,
|
|
506
506
|
"kindString": "Parameter",
|
|
@@ -546,15 +546,15 @@
|
|
|
546
546
|
"title": "Constructors",
|
|
547
547
|
"kind": 512,
|
|
548
548
|
"children": [
|
|
549
|
-
|
|
549
|
+
31
|
|
550
550
|
]
|
|
551
551
|
},
|
|
552
552
|
{
|
|
553
553
|
"title": "Methods",
|
|
554
554
|
"kind": 2048,
|
|
555
555
|
"children": [
|
|
556
|
-
|
|
557
|
-
|
|
556
|
+
36,
|
|
557
|
+
33
|
|
558
558
|
]
|
|
559
559
|
}
|
|
560
560
|
],
|
|
@@ -575,7 +575,7 @@
|
|
|
575
575
|
]
|
|
576
576
|
},
|
|
577
577
|
{
|
|
578
|
-
"id":
|
|
578
|
+
"id": 39,
|
|
579
579
|
"name": "SkyUrlValidationDirective",
|
|
580
580
|
"kind": 128,
|
|
581
581
|
"kindString": "Class",
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
],
|
|
600
600
|
"children": [
|
|
601
601
|
{
|
|
602
|
-
"id":
|
|
602
|
+
"id": 42,
|
|
603
603
|
"name": "skyUrlValidation",
|
|
604
604
|
"kind": 262144,
|
|
605
605
|
"kindString": "Accessor",
|
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
],
|
|
628
628
|
"setSignature": [
|
|
629
629
|
{
|
|
630
|
-
"id":
|
|
630
|
+
"id": 43,
|
|
631
631
|
"name": "skyUrlValidation",
|
|
632
632
|
"kind": 1048576,
|
|
633
633
|
"kindString": "Set signature",
|
|
@@ -637,14 +637,14 @@
|
|
|
637
637
|
},
|
|
638
638
|
"parameters": [
|
|
639
639
|
{
|
|
640
|
-
"id":
|
|
640
|
+
"id": 44,
|
|
641
641
|
"name": "value",
|
|
642
642
|
"kind": 32768,
|
|
643
643
|
"kindString": "Parameter",
|
|
644
644
|
"flags": {},
|
|
645
645
|
"type": {
|
|
646
646
|
"type": "reference",
|
|
647
|
-
"id":
|
|
647
|
+
"id": 4,
|
|
648
648
|
"name": "SkyUrlValidationOptions"
|
|
649
649
|
}
|
|
650
650
|
}
|
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
]
|
|
658
658
|
},
|
|
659
659
|
{
|
|
660
|
-
"id":
|
|
660
|
+
"id": 51,
|
|
661
661
|
"name": "registerOnValidatorChange",
|
|
662
662
|
"kind": 2048,
|
|
663
663
|
"kindString": "Method",
|
|
@@ -673,14 +673,14 @@
|
|
|
673
673
|
],
|
|
674
674
|
"signatures": [
|
|
675
675
|
{
|
|
676
|
-
"id":
|
|
676
|
+
"id": 52,
|
|
677
677
|
"name": "registerOnValidatorChange",
|
|
678
678
|
"kind": 4096,
|
|
679
679
|
"kindString": "Call signature",
|
|
680
680
|
"flags": {},
|
|
681
681
|
"parameters": [
|
|
682
682
|
{
|
|
683
|
-
"id":
|
|
683
|
+
"id": 53,
|
|
684
684
|
"name": "fn",
|
|
685
685
|
"kind": 32768,
|
|
686
686
|
"kindString": "Parameter",
|
|
@@ -688,14 +688,14 @@
|
|
|
688
688
|
"type": {
|
|
689
689
|
"type": "reflection",
|
|
690
690
|
"declaration": {
|
|
691
|
-
"id":
|
|
691
|
+
"id": 54,
|
|
692
692
|
"name": "__type",
|
|
693
693
|
"kind": 65536,
|
|
694
694
|
"kindString": "Type literal",
|
|
695
695
|
"flags": {},
|
|
696
696
|
"signatures": [
|
|
697
697
|
{
|
|
698
|
-
"id":
|
|
698
|
+
"id": 55,
|
|
699
699
|
"name": "__type",
|
|
700
700
|
"kind": 4096,
|
|
701
701
|
"kindString": "Call signature",
|
|
@@ -726,7 +726,7 @@
|
|
|
726
726
|
}
|
|
727
727
|
},
|
|
728
728
|
{
|
|
729
|
-
"id":
|
|
729
|
+
"id": 48,
|
|
730
730
|
"name": "validate",
|
|
731
731
|
"kind": 2048,
|
|
732
732
|
"kindString": "Method",
|
|
@@ -742,14 +742,14 @@
|
|
|
742
742
|
],
|
|
743
743
|
"signatures": [
|
|
744
744
|
{
|
|
745
|
-
"id":
|
|
745
|
+
"id": 49,
|
|
746
746
|
"name": "validate",
|
|
747
747
|
"kind": 4096,
|
|
748
748
|
"kindString": "Call signature",
|
|
749
749
|
"flags": {},
|
|
750
750
|
"parameters": [
|
|
751
751
|
{
|
|
752
|
-
"id":
|
|
752
|
+
"id": 50,
|
|
753
753
|
"name": "control",
|
|
754
754
|
"kind": 32768,
|
|
755
755
|
"kindString": "Parameter",
|
|
@@ -795,22 +795,22 @@
|
|
|
795
795
|
"title": "Constructors",
|
|
796
796
|
"kind": 512,
|
|
797
797
|
"children": [
|
|
798
|
-
|
|
798
|
+
40
|
|
799
799
|
]
|
|
800
800
|
},
|
|
801
801
|
{
|
|
802
802
|
"title": "Accessors",
|
|
803
803
|
"kind": 262144,
|
|
804
804
|
"children": [
|
|
805
|
-
|
|
805
|
+
42
|
|
806
806
|
]
|
|
807
807
|
},
|
|
808
808
|
{
|
|
809
809
|
"title": "Methods",
|
|
810
810
|
"kind": 2048,
|
|
811
811
|
"children": [
|
|
812
|
-
|
|
813
|
-
|
|
812
|
+
51,
|
|
813
|
+
48
|
|
814
814
|
]
|
|
815
815
|
}
|
|
816
816
|
],
|
|
@@ -831,7 +831,7 @@
|
|
|
831
831
|
]
|
|
832
832
|
},
|
|
833
833
|
{
|
|
834
|
-
"id":
|
|
834
|
+
"id": 4,
|
|
835
835
|
"name": "SkyUrlValidationOptions",
|
|
836
836
|
"kind": 256,
|
|
837
837
|
"kindString": "Interface",
|
|
@@ -841,7 +841,7 @@
|
|
|
841
841
|
},
|
|
842
842
|
"children": [
|
|
843
843
|
{
|
|
844
|
-
"id":
|
|
844
|
+
"id": 5,
|
|
845
845
|
"name": "rulesetVersion",
|
|
846
846
|
"kind": 1024,
|
|
847
847
|
"kindString": "Property",
|
|
@@ -876,7 +876,7 @@
|
|
|
876
876
|
"title": "Properties",
|
|
877
877
|
"kind": 1024,
|
|
878
878
|
"children": [
|
|
879
|
-
|
|
879
|
+
5
|
|
880
880
|
]
|
|
881
881
|
}
|
|
882
882
|
],
|
|
@@ -894,19 +894,19 @@
|
|
|
894
894
|
"title": "Classes",
|
|
895
895
|
"kind": 128,
|
|
896
896
|
"children": [
|
|
897
|
-
27,
|
|
898
|
-
32,
|
|
899
|
-
35,
|
|
900
|
-
45,
|
|
901
897
|
1,
|
|
902
|
-
|
|
898
|
+
6,
|
|
899
|
+
9,
|
|
900
|
+
19,
|
|
901
|
+
30,
|
|
902
|
+
39
|
|
903
903
|
]
|
|
904
904
|
},
|
|
905
905
|
{
|
|
906
906
|
"title": "Interfaces",
|
|
907
907
|
"kind": 256,
|
|
908
908
|
"children": [
|
|
909
|
-
|
|
909
|
+
4
|
|
910
910
|
]
|
|
911
911
|
}
|
|
912
912
|
],
|
|
@@ -920,34 +920,29 @@
|
|
|
920
920
|
},
|
|
921
921
|
"codeExamples": [
|
|
922
922
|
{
|
|
923
|
-
"fileName": "
|
|
924
|
-
"filePath": "/projects/validation/documentation/code-examples/
|
|
925
|
-
"rawContents": "
|
|
926
|
-
},
|
|
927
|
-
{
|
|
928
|
-
"fileName": "email-validation-demo.component.ts",
|
|
929
|
-
"filePath": "/projects/validation/documentation/code-examples/email-validation/control-validator/email-validation-demo.component.ts",
|
|
930
|
-
"rawContents": "import { Component } from '@angular/core';\nimport {\n AbstractControl,\n UntypedFormBuilder,\n UntypedFormControl,\n UntypedFormGroup,\n Validators,\n} from '@angular/forms';\nimport { SkyValidators } from '@skyux/validation';\n\n@Component({\n selector: 'app-email-validation-demo',\n templateUrl: './email-validation-demo.component.html',\n})\nexport class EmailValidationDemoComponent {\n public get emailControl(): AbstractControl | null {\n return this.formGroup.get('email');\n }\n\n public formGroup: UntypedFormGroup;\n\n constructor(formBuilder: UntypedFormBuilder) {\n this.formGroup = formBuilder.group({\n email: new UntypedFormControl(undefined, [\n Validators.required,\n SkyValidators.email,\n ]),\n });\n }\n}\n"
|
|
923
|
+
"fileName": "url-validation-demo.module.ts",
|
|
924
|
+
"filePath": "/projects/validation/documentation/code-examples/url-validation/directive/url-validation-demo.module.ts",
|
|
925
|
+
"rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SkyInputBoxModule } from '@skyux/forms';\nimport { SkyStatusIndicatorModule } from '@skyux/indicators';\nimport { SkyUrlValidationModule } from '@skyux/validation';\n\nimport { UrlValidationDemoComponent } from './url-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n SkyInputBoxModule,\n SkyStatusIndicatorModule,\n SkyUrlValidationModule,\n ],\n exports: [UrlValidationDemoComponent],\n declarations: [UrlValidationDemoComponent],\n})\nexport class UrlValidationDemoModule {}\n"
|
|
931
926
|
},
|
|
932
927
|
{
|
|
933
|
-
"fileName": "
|
|
934
|
-
"filePath": "/projects/validation/documentation/code-examples/
|
|
935
|
-
"rawContents": "import {
|
|
928
|
+
"fileName": "url-validation-demo.component.ts",
|
|
929
|
+
"filePath": "/projects/validation/documentation/code-examples/url-validation/directive/url-validation-demo.component.ts",
|
|
930
|
+
"rawContents": "import { Component } from '@angular/core';\nimport { SkyUrlValidationOptions } from '@skyux/validation';\n\n@Component({\n selector: 'app-url-validation-demo',\n templateUrl: './url-validation-demo.component.html',\n})\nexport class UrlValidationDemoComponent {\n public demoModel: {\n url?: string;\n } = {};\n\n public skyUrlValidationOptions: SkyUrlValidationOptions = {\n rulesetVersion: 2,\n };\n}\n"
|
|
936
931
|
},
|
|
937
932
|
{
|
|
938
|
-
"fileName": "
|
|
939
|
-
"filePath": "/projects/validation/documentation/code-examples/
|
|
940
|
-
"rawContents": "<form novalidate>\n <div class=\"sky-form-group\">\n <sky-input-box labelText=\"
|
|
933
|
+
"fileName": "url-validation-demo.component.html",
|
|
934
|
+
"filePath": "/projects/validation/documentation/code-examples/url-validation/directive/url-validation-demo.component.html",
|
|
935
|
+
"rawContents": "<form novalidate>\n <div class=\"sky-form-group\">\n <sky-input-box labelText=\"URL\">\n <input\n name=\"url\"\n [skyUrlValidation]=\"skyUrlValidationOptions\"\n [(ngModel)]=\"demoModel.url\"\n />\n </sky-input-box>\n </div>\n</form>\n"
|
|
941
936
|
},
|
|
942
937
|
{
|
|
943
|
-
"fileName": "
|
|
944
|
-
"filePath": "/projects/validation/documentation/code-examples/
|
|
945
|
-
"rawContents": "import {
|
|
938
|
+
"fileName": "url-validation-demo.module.ts",
|
|
939
|
+
"filePath": "/projects/validation/documentation/code-examples/url-validation/control-validator/url-validation-demo.module.ts",
|
|
940
|
+
"rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { SkyInputBoxModule } from '@skyux/forms';\nimport { SkyStatusIndicatorModule } from '@skyux/indicators';\nimport { SkyUrlValidationModule } from '@skyux/validation';\n\nimport { UrlValidationDemoComponent } from './url-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SkyInputBoxModule,\n SkyStatusIndicatorModule,\n SkyUrlValidationModule,\n ],\n exports: [UrlValidationDemoComponent],\n declarations: [UrlValidationDemoComponent],\n})\nexport class UrlValidationDemoModule {}\n"
|
|
946
941
|
},
|
|
947
942
|
{
|
|
948
|
-
"fileName": "
|
|
949
|
-
"filePath": "/projects/validation/documentation/code-examples/
|
|
950
|
-
"rawContents": "import {
|
|
943
|
+
"fileName": "url-validation-demo.component.ts",
|
|
944
|
+
"filePath": "/projects/validation/documentation/code-examples/url-validation/control-validator/url-validation-demo.component.ts",
|
|
945
|
+
"rawContents": "import { Component } from '@angular/core';\nimport {\n AbstractControl,\n UntypedFormBuilder,\n UntypedFormControl,\n UntypedFormGroup,\n Validators,\n} from '@angular/forms';\nimport { SkyValidators } from '@skyux/validation';\n\n@Component({\n selector: 'app-url-validation-demo',\n templateUrl: './url-validation-demo.component.html',\n})\nexport class UrlValidationDemoComponent {\n public get urlControl(): AbstractControl | null {\n return this.formGroup.get('url');\n }\n\n public formGroup: UntypedFormGroup;\n\n constructor(formBuilder: UntypedFormBuilder) {\n this.formGroup = formBuilder.group({\n url: new UntypedFormControl(undefined, [\n Validators.required,\n SkyValidators.url({\n rulesetVersion: 2,\n }),\n ]),\n });\n }\n}\n"
|
|
951
946
|
},
|
|
952
947
|
{
|
|
953
948
|
"fileName": "url-validation-demo.component.html",
|
|
@@ -955,29 +950,34 @@
|
|
|
955
950
|
"rawContents": "<form novalidate [formGroup]=\"formGroup\">\n <div class=\"sky-form-group\">\n <sky-input-box labelText=\"URL\">\n <input formControlName=\"url\" type=\"text\" />\n </sky-input-box>\n </div>\n</form>\n"
|
|
956
951
|
},
|
|
957
952
|
{
|
|
958
|
-
"fileName": "
|
|
959
|
-
"filePath": "/projects/validation/documentation/code-examples/
|
|
960
|
-
"rawContents": "import {
|
|
953
|
+
"fileName": "email-validation-demo.module.ts",
|
|
954
|
+
"filePath": "/projects/validation/documentation/code-examples/email-validation/directive/email-validation-demo.module.ts",
|
|
955
|
+
"rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SkyInputBoxModule } from '@skyux/forms';\nimport { SkyStatusIndicatorModule } from '@skyux/indicators';\nimport { SkyEmailValidationModule } from '@skyux/validation';\n\nimport { EmailValidationDemoComponent } from './email-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n SkyEmailValidationModule,\n SkyInputBoxModule,\n SkyStatusIndicatorModule,\n ],\n exports: [EmailValidationDemoComponent],\n declarations: [EmailValidationDemoComponent],\n})\nexport class EmailValidationDemoModule {}\n"
|
|
961
956
|
},
|
|
962
957
|
{
|
|
963
|
-
"fileName": "
|
|
964
|
-
"filePath": "/projects/validation/documentation/code-examples/
|
|
965
|
-
"rawContents": "import {
|
|
958
|
+
"fileName": "email-validation-demo.component.ts",
|
|
959
|
+
"filePath": "/projects/validation/documentation/code-examples/email-validation/directive/email-validation-demo.component.ts",
|
|
960
|
+
"rawContents": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-email-validation-demo',\n templateUrl: './email-validation-demo.component.html',\n})\nexport class EmailValidationDemoComponent {\n public demoModel: {\n emailAddress?: string;\n } = {};\n}\n"
|
|
966
961
|
},
|
|
967
962
|
{
|
|
968
|
-
"fileName": "
|
|
969
|
-
"filePath": "/projects/validation/documentation/code-examples/
|
|
970
|
-
"rawContents": "<form novalidate>\n <div class=\"sky-form-group\">\n <sky-input-box labelText=\"
|
|
963
|
+
"fileName": "email-validation-demo.component.html",
|
|
964
|
+
"filePath": "/projects/validation/documentation/code-examples/email-validation/directive/email-validation-demo.component.html",
|
|
965
|
+
"rawContents": "<form novalidate>\n <div class=\"sky-form-group\">\n <sky-input-box labelText=\"Email address\">\n <input\n class=\"sky-form-control\"\n name=\"emailAddress\"\n skyEmailValidation\n type=\"text\"\n [(ngModel)]=\"demoModel.emailAddress\"\n />\n </sky-input-box>\n </div>\n</form>\n"
|
|
971
966
|
},
|
|
972
967
|
{
|
|
973
|
-
"fileName": "
|
|
974
|
-
"filePath": "/projects/validation/documentation/code-examples/
|
|
975
|
-
"rawContents": "import {
|
|
968
|
+
"fileName": "email-validation-demo.module.ts",
|
|
969
|
+
"filePath": "/projects/validation/documentation/code-examples/email-validation/control-validator/email-validation-demo.module.ts",
|
|
970
|
+
"rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { SkyInputBoxModule } from '@skyux/forms';\nimport { SkyStatusIndicatorModule } from '@skyux/indicators';\nimport { SkyEmailValidationModule } from '@skyux/validation';\n\nimport { EmailValidationDemoComponent } from './email-validation-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SkyEmailValidationModule,\n SkyInputBoxModule,\n SkyStatusIndicatorModule,\n ],\n exports: [EmailValidationDemoComponent],\n declarations: [EmailValidationDemoComponent],\n})\nexport class EmailValidationDemoModule {}\n"
|
|
976
971
|
},
|
|
977
972
|
{
|
|
978
|
-
"fileName": "
|
|
979
|
-
"filePath": "/projects/validation/documentation/code-examples/
|
|
980
|
-
"rawContents": "import {
|
|
973
|
+
"fileName": "email-validation-demo.component.ts",
|
|
974
|
+
"filePath": "/projects/validation/documentation/code-examples/email-validation/control-validator/email-validation-demo.component.ts",
|
|
975
|
+
"rawContents": "import { Component } from '@angular/core';\nimport {\n AbstractControl,\n UntypedFormBuilder,\n UntypedFormControl,\n UntypedFormGroup,\n Validators,\n} from '@angular/forms';\nimport { SkyValidators } from '@skyux/validation';\n\n@Component({\n selector: 'app-email-validation-demo',\n templateUrl: './email-validation-demo.component.html',\n})\nexport class EmailValidationDemoComponent {\n public get emailControl(): AbstractControl | null {\n return this.formGroup.get('email');\n }\n\n public formGroup: UntypedFormGroup;\n\n constructor(formBuilder: UntypedFormBuilder) {\n this.formGroup = formBuilder.group({\n email: new UntypedFormControl(undefined, [\n Validators.required,\n SkyValidators.email,\n ]),\n });\n }\n}\n"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"fileName": "email-validation-demo.component.html",
|
|
979
|
+
"filePath": "/projects/validation/documentation/code-examples/email-validation/control-validator/email-validation-demo.component.html",
|
|
980
|
+
"rawContents": "<form novalidate [formGroup]=\"formGroup\">\n <div class=\"sky-form-group\">\n <sky-input-box labelText=\"Email address\">\n <input formControlName=\"email\" type=\"text\" />\n </sky-input-box>\n </div>\n</form>\n"
|
|
981
981
|
}
|
|
982
982
|
]
|
|
983
983
|
}
|
package/esm2022/index.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export * from './lib/modules/validators/validators';
|
|
1
|
+
export { SkyEmailValidationModule } from './lib/modules/email-validation/email-validation.module';
|
|
2
|
+
export { SkyUrlValidationModule } from './lib/modules/url-validation/url-validation.module';
|
|
3
|
+
export { SkyValidation } from './lib/modules/validation/validation';
|
|
4
|
+
export { SkyValidators } from './lib/modules/validators/validators';
|
|
6
5
|
// Components and directives must be exported to support Angular's "partial" Ivy compiler.
|
|
7
6
|
// Obscure names are used to indicate types are not part of the public API.
|
|
8
7
|
export { SkyEmailValidationDirective as λ1 } from './lib/modules/email-validation/email-validation.directive';
|
|
9
8
|
export { SkyUrlValidationDirective as λ2 } from './lib/modules/url-validation/url-validation.directive';
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvdmFsaWRhdGlvbi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sd0RBQXdELENBQUM7QUFFbEcsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sb0RBQW9ELENBQUM7QUFDNUYsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUVwRSwwRkFBMEY7QUFDMUYsMkVBQTJFO0FBQzNFLE9BQU8sRUFBRSwyQkFBMkIsSUFBSSxFQUFFLEVBQUUsTUFBTSwyREFBMkQsQ0FBQztBQUM5RyxPQUFPLEVBQUUseUJBQXlCLElBQUksRUFBRSxFQUFFLE1BQU0sdURBQXVELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBTa3lFbWFpbFZhbGlkYXRpb25Nb2R1bGUgfSBmcm9tICcuL2xpYi9tb2R1bGVzL2VtYWlsLXZhbGlkYXRpb24vZW1haWwtdmFsaWRhdGlvbi5tb2R1bGUnO1xuZXhwb3J0IHsgU2t5VXJsVmFsaWRhdGlvbk9wdGlvbnMgfSBmcm9tICcuL2xpYi9tb2R1bGVzL3VybC12YWxpZGF0aW9uL3VybC12YWxpZGF0aW9uLW9wdGlvbnMnO1xuZXhwb3J0IHsgU2t5VXJsVmFsaWRhdGlvbk1vZHVsZSB9IGZyb20gJy4vbGliL21vZHVsZXMvdXJsLXZhbGlkYXRpb24vdXJsLXZhbGlkYXRpb24ubW9kdWxlJztcbmV4cG9ydCB7IFNreVZhbGlkYXRpb24gfSBmcm9tICcuL2xpYi9tb2R1bGVzL3ZhbGlkYXRpb24vdmFsaWRhdGlvbic7XG5leHBvcnQgeyBTa3lWYWxpZGF0b3JzIH0gZnJvbSAnLi9saWIvbW9kdWxlcy92YWxpZGF0b3JzL3ZhbGlkYXRvcnMnO1xuXG4vLyBDb21wb25lbnRzIGFuZCBkaXJlY3RpdmVzIG11c3QgYmUgZXhwb3J0ZWQgdG8gc3VwcG9ydCBBbmd1bGFyJ3MgXCJwYXJ0aWFsXCIgSXZ5IGNvbXBpbGVyLlxuLy8gT2JzY3VyZSBuYW1lcyBhcmUgdXNlZCB0byBpbmRpY2F0ZSB0eXBlcyBhcmUgbm90IHBhcnQgb2YgdGhlIHB1YmxpYyBBUEkuXG5leHBvcnQgeyBTa3lFbWFpbFZhbGlkYXRpb25EaXJlY3RpdmUgYXMgzrsxIH0gZnJvbSAnLi9saWIvbW9kdWxlcy9lbWFpbC12YWxpZGF0aW9uL2VtYWlsLXZhbGlkYXRpb24uZGlyZWN0aXZlJztcbmV4cG9ydCB7IFNreVVybFZhbGlkYXRpb25EaXJlY3RpdmUgYXMgzrsyIH0gZnJvbSAnLi9saWIvbW9kdWxlcy91cmwtdmFsaWRhdGlvbi91cmwtdmFsaWRhdGlvbi5kaXJlY3RpdmUnO1xuIl19
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export { SkyEmailValidationModule } from './lib/modules/email-validation/email-validation.module';
|
|
2
|
+
export { SkyUrlValidationOptions } from './lib/modules/url-validation/url-validation-options';
|
|
3
|
+
export { SkyUrlValidationModule } from './lib/modules/url-validation/url-validation.module';
|
|
4
|
+
export { SkyValidation } from './lib/modules/validation/validation';
|
|
5
|
+
export { SkyValidators } from './lib/modules/validators/validators';
|
|
6
6
|
export { SkyEmailValidationDirective as λ1 } from './lib/modules/email-validation/email-validation.directive';
|
|
7
7
|
export { SkyUrlValidationDirective as λ2 } from './lib/modules/url-validation/url-validation.directive';
|