@skyux/phone-field 5.0.2 → 5.5.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.
- package/README.md +6 -4
- package/bundles/skyux-phone-field-testing.umd.js +4 -4
- package/bundles/skyux-phone-field.umd.js +21 -20
- package/documentation.json +107 -28
- package/esm2015/index.js +8 -0
- package/esm2015/index.js.map +1 -0
- package/esm2015/lib/modules/phone-field/phone-field-adapter.service.js +64 -0
- package/esm2015/lib/modules/phone-field/phone-field-adapter.service.js.map +1 -0
- package/esm2015/lib/modules/phone-field/phone-field-input.directive.js +279 -0
- package/esm2015/lib/modules/phone-field/phone-field-input.directive.js.map +1 -0
- package/esm2015/{modules → lib/modules}/phone-field/phone-field.component.js +11 -9
- package/esm2015/lib/modules/phone-field/phone-field.component.js.map +1 -0
- package/esm2015/lib/modules/phone-field/phone-field.module.js +50 -0
- package/esm2015/lib/modules/phone-field/phone-field.module.js.map +1 -0
- package/esm2015/lib/modules/phone-field/types/country.js +2 -0
- package/esm2015/lib/modules/phone-field/types/country.js.map +1 -0
- package/esm2015/lib/modules/phone-field/types/number-return-format.js +2 -0
- package/esm2015/lib/modules/phone-field/types/number-return-format.js.map +1 -0
- package/esm2015/lib/modules/shared/sky-phone-field-resources.module.js +60 -0
- package/esm2015/lib/modules/shared/sky-phone-field-resources.module.js.map +1 -0
- package/esm2015/skyux-phone-field.js +2 -2
- package/esm2015/skyux-phone-field.js.map +1 -0
- package/esm2015/testing/phonefield/phone-field-fixture.js +1 -1
- package/esm2015/testing/phonefield/phone-field-fixture.js.map +1 -0
- package/esm2015/testing/phonefield/phone-field-testing.module.js +5 -5
- package/esm2015/testing/phonefield/phone-field-testing.module.js.map +1 -0
- package/esm2015/testing/public-api.js +1 -1
- package/esm2015/testing/public-api.js.map +1 -0
- package/esm2015/testing/skyux-phone-field-testing.js +1 -1
- package/esm2015/testing/skyux-phone-field-testing.js.map +1 -0
- package/fesm2015/skyux-phone-field-testing.js +4 -4
- package/fesm2015/skyux-phone-field-testing.js.map +1 -1
- package/fesm2015/skyux-phone-field.js +21 -20
- package/fesm2015/skyux-phone-field.js.map +1 -1
- package/index.d.ts +5 -0
- package/{modules → lib/modules}/phone-field/phone-field-adapter.service.d.ts +0 -0
- package/{modules → lib/modules}/phone-field/phone-field-input.directive.d.ts +0 -0
- package/{modules → lib/modules}/phone-field/phone-field.component.d.ts +3 -2
- package/{modules → lib/modules}/phone-field/phone-field.module.d.ts +0 -0
- package/{modules → lib/modules}/phone-field/types/country.d.ts +0 -0
- package/{modules → lib/modules}/phone-field/types/number-return-format.d.ts +0 -0
- package/{modules → lib/modules}/shared/sky-phone-field-resources.module.d.ts +0 -0
- package/package.json +24 -10
- package/skyux-phone-field.d.ts +1 -1
- package/LICENSE +0 -21
- package/esm2015/modules/phone-field/phone-field-adapter.service.js +0 -63
- package/esm2015/modules/phone-field/phone-field-input.directive.js +0 -277
- package/esm2015/modules/phone-field/phone-field.module.js +0 -50
- package/esm2015/modules/phone-field/types/country.js +0 -2
- package/esm2015/modules/phone-field/types/number-return-format.js +0 -2
- package/esm2015/modules/shared/sky-phone-field-resources.module.js +0 -60
- package/esm2015/public-api.js +0 -8
- package/public-api.d.ts +0 -5
package/documentation.json
CHANGED
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
"name": "NgModule",
|
|
26
26
|
"type": {
|
|
27
27
|
"type": "reference",
|
|
28
|
+
"qualifiedName": "NgModuleDecorator",
|
|
29
|
+
"package": "@angular/core",
|
|
28
30
|
"name": "NgModule"
|
|
29
31
|
},
|
|
30
32
|
"arguments": {
|
|
@@ -83,6 +85,8 @@
|
|
|
83
85
|
"name": "Component",
|
|
84
86
|
"type": {
|
|
85
87
|
"type": "reference",
|
|
88
|
+
"qualifiedName": "ComponentDecorator",
|
|
89
|
+
"package": "@angular/core",
|
|
86
90
|
"name": "Component"
|
|
87
91
|
},
|
|
88
92
|
"arguments": {
|
|
@@ -100,7 +104,7 @@
|
|
|
100
104
|
"sources": [
|
|
101
105
|
{
|
|
102
106
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
103
|
-
"line":
|
|
107
|
+
"line": 240,
|
|
104
108
|
"character": 2
|
|
105
109
|
}
|
|
106
110
|
],
|
|
@@ -120,6 +124,8 @@
|
|
|
120
124
|
"flags": {},
|
|
121
125
|
"type": {
|
|
122
126
|
"type": "reference",
|
|
127
|
+
"qualifiedName": "FormBuilder",
|
|
128
|
+
"package": "@angular/forms",
|
|
123
129
|
"name": "FormBuilder"
|
|
124
130
|
}
|
|
125
131
|
},
|
|
@@ -142,6 +148,8 @@
|
|
|
142
148
|
"flags": {},
|
|
143
149
|
"type": {
|
|
144
150
|
"type": "reference",
|
|
151
|
+
"qualifiedName": "ChangeDetectorRef",
|
|
152
|
+
"package": "@angular/core",
|
|
145
153
|
"name": "ChangeDetectorRef"
|
|
146
154
|
}
|
|
147
155
|
},
|
|
@@ -158,6 +166,8 @@
|
|
|
158
166
|
"name": "Optional",
|
|
159
167
|
"type": {
|
|
160
168
|
"type": "reference",
|
|
169
|
+
"qualifiedName": "OptionalDecorator",
|
|
170
|
+
"package": "@angular/core",
|
|
161
171
|
"name": "Optional"
|
|
162
172
|
},
|
|
163
173
|
"arguments": {}
|
|
@@ -181,6 +191,8 @@
|
|
|
181
191
|
"name": "Optional",
|
|
182
192
|
"type": {
|
|
183
193
|
"type": "reference",
|
|
194
|
+
"qualifiedName": "OptionalDecorator",
|
|
195
|
+
"package": "@angular/core",
|
|
184
196
|
"name": "Optional"
|
|
185
197
|
},
|
|
186
198
|
"arguments": {}
|
|
@@ -189,6 +201,8 @@
|
|
|
189
201
|
"name": "SkipSelf",
|
|
190
202
|
"type": {
|
|
191
203
|
"type": "reference",
|
|
204
|
+
"qualifiedName": "SkipSelfDecorator",
|
|
205
|
+
"package": "@angular/core",
|
|
192
206
|
"name": "SkipSelf"
|
|
193
207
|
},
|
|
194
208
|
"arguments": {}
|
|
@@ -230,6 +244,8 @@
|
|
|
230
244
|
"name": "Input",
|
|
231
245
|
"type": {
|
|
232
246
|
"type": "reference",
|
|
247
|
+
"qualifiedName": "InputDecorator",
|
|
248
|
+
"package": "@angular/core",
|
|
233
249
|
"name": "Input"
|
|
234
250
|
},
|
|
235
251
|
"arguments": {}
|
|
@@ -259,7 +275,7 @@
|
|
|
259
275
|
"sources": [
|
|
260
276
|
{
|
|
261
277
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
262
|
-
"line":
|
|
278
|
+
"line": 168,
|
|
263
279
|
"character": 9
|
|
264
280
|
}
|
|
265
281
|
],
|
|
@@ -283,12 +299,14 @@
|
|
|
283
299
|
"sources": [
|
|
284
300
|
{
|
|
285
301
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
286
|
-
"line":
|
|
302
|
+
"line": 176,
|
|
287
303
|
"character": 9
|
|
288
304
|
}
|
|
289
305
|
],
|
|
290
306
|
"type": {
|
|
291
307
|
"type": "reference",
|
|
308
|
+
"qualifiedName": "FormGroup",
|
|
309
|
+
"package": "@angular/forms",
|
|
292
310
|
"name": "FormGroup"
|
|
293
311
|
}
|
|
294
312
|
},
|
|
@@ -303,7 +321,7 @@
|
|
|
303
321
|
"sources": [
|
|
304
322
|
{
|
|
305
323
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
306
|
-
"line":
|
|
324
|
+
"line": 172,
|
|
307
325
|
"character": 9
|
|
308
326
|
}
|
|
309
327
|
],
|
|
@@ -324,7 +342,7 @@
|
|
|
324
342
|
"sources": [
|
|
325
343
|
{
|
|
326
344
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
327
|
-
"line":
|
|
345
|
+
"line": 170,
|
|
328
346
|
"character": 9
|
|
329
347
|
}
|
|
330
348
|
],
|
|
@@ -359,7 +377,7 @@
|
|
|
359
377
|
"sources": [
|
|
360
378
|
{
|
|
361
379
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
362
|
-
"line":
|
|
380
|
+
"line": 174,
|
|
363
381
|
"character": 9
|
|
364
382
|
}
|
|
365
383
|
],
|
|
@@ -378,11 +396,11 @@
|
|
|
378
396
|
"isPublic": true
|
|
379
397
|
},
|
|
380
398
|
"comment": {
|
|
381
|
-
"shortText": "Specifies the format for validated phone numbers
|
|
399
|
+
"shortText": "Specifies the format for validated phone numbers.\nOptions include: `\"default\"`, `\"international\"`, and `\"national\"`.",
|
|
382
400
|
"tags": [
|
|
383
401
|
{
|
|
384
402
|
"tag": "default",
|
|
385
|
-
"text": "
|
|
403
|
+
"text": "\"default\"\n"
|
|
386
404
|
}
|
|
387
405
|
]
|
|
388
406
|
},
|
|
@@ -391,6 +409,8 @@
|
|
|
391
409
|
"name": "Input",
|
|
392
410
|
"type": {
|
|
393
411
|
"type": "reference",
|
|
412
|
+
"qualifiedName": "InputDecorator",
|
|
413
|
+
"package": "@angular/core",
|
|
394
414
|
"name": "Input"
|
|
395
415
|
},
|
|
396
416
|
"arguments": {}
|
|
@@ -399,7 +419,7 @@
|
|
|
399
419
|
"sources": [
|
|
400
420
|
{
|
|
401
421
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
402
|
-
"line":
|
|
422
|
+
"line": 151,
|
|
403
423
|
"character": 9
|
|
404
424
|
}
|
|
405
425
|
],
|
|
@@ -426,6 +446,8 @@
|
|
|
426
446
|
"name": "Output",
|
|
427
447
|
"type": {
|
|
428
448
|
"type": "reference",
|
|
449
|
+
"qualifiedName": "OutputDecorator",
|
|
450
|
+
"package": "@angular/core",
|
|
429
451
|
"name": "Output"
|
|
430
452
|
},
|
|
431
453
|
"arguments": {}
|
|
@@ -434,7 +456,7 @@
|
|
|
434
456
|
"sources": [
|
|
435
457
|
{
|
|
436
458
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
437
|
-
"line":
|
|
459
|
+
"line": 166,
|
|
438
460
|
"character": 9
|
|
439
461
|
}
|
|
440
462
|
],
|
|
@@ -447,6 +469,8 @@
|
|
|
447
469
|
"name": "SkyPhoneFieldCountry"
|
|
448
470
|
}
|
|
449
471
|
],
|
|
472
|
+
"qualifiedName": "EventEmitter",
|
|
473
|
+
"package": "@angular/core",
|
|
450
474
|
"name": "EventEmitter"
|
|
451
475
|
},
|
|
452
476
|
"defaultValue": "..."
|
|
@@ -467,6 +491,8 @@
|
|
|
467
491
|
"name": "Input",
|
|
468
492
|
"type": {
|
|
469
493
|
"type": "reference",
|
|
494
|
+
"qualifiedName": "InputDecorator",
|
|
495
|
+
"package": "@angular/core",
|
|
470
496
|
"name": "Input"
|
|
471
497
|
},
|
|
472
498
|
"arguments": {}
|
|
@@ -475,7 +501,7 @@
|
|
|
475
501
|
"sources": [
|
|
476
502
|
{
|
|
477
503
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
478
|
-
"line":
|
|
504
|
+
"line": 158,
|
|
479
505
|
"character": 9
|
|
480
506
|
}
|
|
481
507
|
],
|
|
@@ -514,6 +540,8 @@
|
|
|
514
540
|
"name": "Input",
|
|
515
541
|
"type": {
|
|
516
542
|
"type": "reference",
|
|
543
|
+
"qualifiedName": "InputDecorator",
|
|
544
|
+
"package": "@angular/core",
|
|
517
545
|
"name": "Input"
|
|
518
546
|
},
|
|
519
547
|
"arguments": {}
|
|
@@ -534,7 +562,13 @@
|
|
|
534
562
|
"kindString": "Get signature",
|
|
535
563
|
"flags": {},
|
|
536
564
|
"comment": {
|
|
537
|
-
"shortText": "Specifies the\n[International Organization for Standardization Alpha 2](https://www.nationsonline.org/oneworld/country_code_list.htm)\ncountry code for the default country. The country selector button displays a flag\nicon for this default country until users select a different country."
|
|
565
|
+
"shortText": "Specifies the\n[International Organization for Standardization Alpha 2](https://www.nationsonline.org/oneworld/country_code_list.htm)\ncountry code for the default country. The country selector button displays a flag\nicon for this default country until users select a different country.",
|
|
566
|
+
"tags": [
|
|
567
|
+
{
|
|
568
|
+
"tag": "default",
|
|
569
|
+
"text": "\"us\"\n"
|
|
570
|
+
}
|
|
571
|
+
]
|
|
538
572
|
},
|
|
539
573
|
"type": {
|
|
540
574
|
"type": "intrinsic",
|
|
@@ -554,7 +588,7 @@
|
|
|
554
588
|
"tags": [
|
|
555
589
|
{
|
|
556
590
|
"tag": "default",
|
|
557
|
-
"text": "us\n"
|
|
591
|
+
"text": "\"us\"\n"
|
|
558
592
|
}
|
|
559
593
|
]
|
|
560
594
|
},
|
|
@@ -591,6 +625,8 @@
|
|
|
591
625
|
"name": "Input",
|
|
592
626
|
"type": {
|
|
593
627
|
"type": "reference",
|
|
628
|
+
"qualifiedName": "InputDecorator",
|
|
629
|
+
"package": "@angular/core",
|
|
594
630
|
"name": "Input"
|
|
595
631
|
},
|
|
596
632
|
"arguments": {}
|
|
@@ -599,7 +635,7 @@
|
|
|
599
635
|
"sources": [
|
|
600
636
|
{
|
|
601
637
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
602
|
-
"line":
|
|
638
|
+
"line": 182,
|
|
603
639
|
"character": 13
|
|
604
640
|
}
|
|
605
641
|
],
|
|
@@ -662,7 +698,7 @@
|
|
|
662
698
|
"sources": [
|
|
663
699
|
{
|
|
664
700
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
665
|
-
"line":
|
|
701
|
+
"line": 334,
|
|
666
702
|
"character": 9
|
|
667
703
|
}
|
|
668
704
|
],
|
|
@@ -682,6 +718,8 @@
|
|
|
682
718
|
"flags": {},
|
|
683
719
|
"type": {
|
|
684
720
|
"type": "reference",
|
|
721
|
+
"qualifiedName": "AnimationEvent_2",
|
|
722
|
+
"package": "@angular/animations",
|
|
685
723
|
"name": "AnimationEvent_2"
|
|
686
724
|
}
|
|
687
725
|
}
|
|
@@ -704,7 +742,7 @@
|
|
|
704
742
|
"sources": [
|
|
705
743
|
{
|
|
706
744
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
707
|
-
"line":
|
|
745
|
+
"line": 301,
|
|
708
746
|
"character": 9
|
|
709
747
|
}
|
|
710
748
|
],
|
|
@@ -741,7 +779,7 @@
|
|
|
741
779
|
"sources": [
|
|
742
780
|
{
|
|
743
781
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
744
|
-
"line":
|
|
782
|
+
"line": 270,
|
|
745
783
|
"character": 9
|
|
746
784
|
}
|
|
747
785
|
],
|
|
@@ -778,7 +816,7 @@
|
|
|
778
816
|
"sources": [
|
|
779
817
|
{
|
|
780
818
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
781
|
-
"line":
|
|
819
|
+
"line": 344,
|
|
782
820
|
"character": 9
|
|
783
821
|
}
|
|
784
822
|
],
|
|
@@ -798,6 +836,8 @@
|
|
|
798
836
|
"flags": {},
|
|
799
837
|
"type": {
|
|
800
838
|
"type": "reference",
|
|
839
|
+
"qualifiedName": "AnimationEvent_2",
|
|
840
|
+
"package": "@angular/animations",
|
|
801
841
|
"name": "AnimationEvent_2"
|
|
802
842
|
}
|
|
803
843
|
}
|
|
@@ -820,7 +860,7 @@
|
|
|
820
860
|
"sources": [
|
|
821
861
|
{
|
|
822
862
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
823
|
-
"line":
|
|
863
|
+
"line": 357,
|
|
824
864
|
"character": 9
|
|
825
865
|
}
|
|
826
866
|
],
|
|
@@ -862,7 +902,7 @@
|
|
|
862
902
|
"sources": [
|
|
863
903
|
{
|
|
864
904
|
"fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
|
|
865
|
-
"line":
|
|
905
|
+
"line": 320,
|
|
866
906
|
"character": 9
|
|
867
907
|
}
|
|
868
908
|
],
|
|
@@ -950,10 +990,14 @@
|
|
|
950
990
|
"implementedTypes": [
|
|
951
991
|
{
|
|
952
992
|
"type": "reference",
|
|
993
|
+
"qualifiedName": "OnDestroy",
|
|
994
|
+
"package": "@angular/core",
|
|
953
995
|
"name": "OnDestroy"
|
|
954
996
|
},
|
|
955
997
|
{
|
|
956
998
|
"type": "reference",
|
|
999
|
+
"qualifiedName": "OnInit",
|
|
1000
|
+
"package": "@angular/core",
|
|
957
1001
|
"name": "OnInit"
|
|
958
1002
|
}
|
|
959
1003
|
]
|
|
@@ -978,6 +1022,8 @@
|
|
|
978
1022
|
"name": "Directive",
|
|
979
1023
|
"type": {
|
|
980
1024
|
"type": "reference",
|
|
1025
|
+
"qualifiedName": "DirectiveDecorator",
|
|
1026
|
+
"package": "@angular/core",
|
|
981
1027
|
"name": "Directive"
|
|
982
1028
|
},
|
|
983
1029
|
"arguments": {
|
|
@@ -1017,6 +1063,8 @@
|
|
|
1017
1063
|
"flags": {},
|
|
1018
1064
|
"type": {
|
|
1019
1065
|
"type": "reference",
|
|
1066
|
+
"qualifiedName": "ChangeDetectorRef",
|
|
1067
|
+
"package": "@angular/core",
|
|
1020
1068
|
"name": "ChangeDetectorRef"
|
|
1021
1069
|
}
|
|
1022
1070
|
},
|
|
@@ -1034,6 +1082,8 @@
|
|
|
1034
1082
|
"name": "any"
|
|
1035
1083
|
}
|
|
1036
1084
|
],
|
|
1085
|
+
"qualifiedName": "ElementRef",
|
|
1086
|
+
"package": "@angular/core",
|
|
1037
1087
|
"name": "ElementRef"
|
|
1038
1088
|
}
|
|
1039
1089
|
},
|
|
@@ -1048,6 +1098,8 @@
|
|
|
1048
1098
|
"name": "Optional",
|
|
1049
1099
|
"type": {
|
|
1050
1100
|
"type": "reference",
|
|
1101
|
+
"qualifiedName": "OptionalDecorator",
|
|
1102
|
+
"package": "@angular/core",
|
|
1051
1103
|
"name": "Optional"
|
|
1052
1104
|
},
|
|
1053
1105
|
"arguments": {}
|
|
@@ -1069,6 +1121,8 @@
|
|
|
1069
1121
|
"name": "Optional",
|
|
1070
1122
|
"type": {
|
|
1071
1123
|
"type": "reference",
|
|
1124
|
+
"qualifiedName": "OptionalDecorator",
|
|
1125
|
+
"package": "@angular/core",
|
|
1072
1126
|
"name": "Optional"
|
|
1073
1127
|
},
|
|
1074
1128
|
"arguments": {}
|
|
@@ -1111,6 +1165,8 @@
|
|
|
1111
1165
|
"name": "Input",
|
|
1112
1166
|
"type": {
|
|
1113
1167
|
"type": "reference",
|
|
1168
|
+
"qualifiedName": "InputDecorator",
|
|
1169
|
+
"package": "@angular/core",
|
|
1114
1170
|
"name": "Input"
|
|
1115
1171
|
},
|
|
1116
1172
|
"arguments": {}
|
|
@@ -1142,6 +1198,8 @@
|
|
|
1142
1198
|
"name": "Input",
|
|
1143
1199
|
"type": {
|
|
1144
1200
|
"type": "reference",
|
|
1201
|
+
"qualifiedName": "InputDecorator",
|
|
1202
|
+
"package": "@angular/core",
|
|
1145
1203
|
"name": "Input"
|
|
1146
1204
|
},
|
|
1147
1205
|
"arguments": {}
|
|
@@ -1162,7 +1220,13 @@
|
|
|
1162
1220
|
"kindString": "Get signature",
|
|
1163
1221
|
"flags": {},
|
|
1164
1222
|
"comment": {
|
|
1165
|
-
"shortText": "Indicates whether to disable the phone field."
|
|
1223
|
+
"shortText": "Indicates whether to disable the phone field.",
|
|
1224
|
+
"tags": [
|
|
1225
|
+
{
|
|
1226
|
+
"tag": "default",
|
|
1227
|
+
"text": "false\n"
|
|
1228
|
+
}
|
|
1229
|
+
]
|
|
1166
1230
|
},
|
|
1167
1231
|
"type": {
|
|
1168
1232
|
"type": "intrinsic",
|
|
@@ -1330,6 +1394,8 @@
|
|
|
1330
1394
|
"name": "HostListener",
|
|
1331
1395
|
"type": {
|
|
1332
1396
|
"type": "reference",
|
|
1397
|
+
"qualifiedName": "HostListenerDecorator",
|
|
1398
|
+
"package": "@angular/core",
|
|
1333
1399
|
"name": "HostListener"
|
|
1334
1400
|
},
|
|
1335
1401
|
"arguments": {
|
|
@@ -1374,6 +1440,8 @@
|
|
|
1374
1440
|
"name": "HostListener",
|
|
1375
1441
|
"type": {
|
|
1376
1442
|
"type": "reference",
|
|
1443
|
+
"qualifiedName": "HostListenerDecorator",
|
|
1444
|
+
"package": "@angular/core",
|
|
1377
1445
|
"name": "HostListener"
|
|
1378
1446
|
},
|
|
1379
1447
|
"arguments": {
|
|
@@ -1435,6 +1503,8 @@
|
|
|
1435
1503
|
"name": "HostListener",
|
|
1436
1504
|
"type": {
|
|
1437
1505
|
"type": "reference",
|
|
1506
|
+
"qualifiedName": "HostListenerDecorator",
|
|
1507
|
+
"package": "@angular/core",
|
|
1438
1508
|
"name": "HostListener"
|
|
1439
1509
|
},
|
|
1440
1510
|
"arguments": {
|
|
@@ -1790,12 +1860,16 @@
|
|
|
1790
1860
|
},
|
|
1791
1861
|
"type": {
|
|
1792
1862
|
"type": "reference",
|
|
1863
|
+
"qualifiedName": "AbstractControl",
|
|
1864
|
+
"package": "@angular/forms",
|
|
1793
1865
|
"name": "AbstractControl"
|
|
1794
1866
|
}
|
|
1795
1867
|
}
|
|
1796
1868
|
],
|
|
1797
1869
|
"type": {
|
|
1798
1870
|
"type": "reference",
|
|
1871
|
+
"qualifiedName": "ValidationErrors",
|
|
1872
|
+
"package": "@angular/forms",
|
|
1799
1873
|
"name": "ValidationErrors"
|
|
1800
1874
|
},
|
|
1801
1875
|
"implementationOf": {
|
|
@@ -1917,22 +1991,32 @@
|
|
|
1917
1991
|
"implementedTypes": [
|
|
1918
1992
|
{
|
|
1919
1993
|
"type": "reference",
|
|
1994
|
+
"qualifiedName": "OnInit",
|
|
1995
|
+
"package": "@angular/core",
|
|
1920
1996
|
"name": "OnInit"
|
|
1921
1997
|
},
|
|
1922
1998
|
{
|
|
1923
1999
|
"type": "reference",
|
|
2000
|
+
"qualifiedName": "OnDestroy",
|
|
2001
|
+
"package": "@angular/core",
|
|
1924
2002
|
"name": "OnDestroy"
|
|
1925
2003
|
},
|
|
1926
2004
|
{
|
|
1927
2005
|
"type": "reference",
|
|
2006
|
+
"qualifiedName": "AfterViewInit",
|
|
2007
|
+
"package": "@angular/core",
|
|
1928
2008
|
"name": "AfterViewInit"
|
|
1929
2009
|
},
|
|
1930
2010
|
{
|
|
1931
2011
|
"type": "reference",
|
|
2012
|
+
"qualifiedName": "ControlValueAccessor",
|
|
2013
|
+
"package": "@angular/forms",
|
|
1932
2014
|
"name": "ControlValueAccessor"
|
|
1933
2015
|
},
|
|
1934
2016
|
{
|
|
1935
2017
|
"type": "reference",
|
|
2018
|
+
"qualifiedName": "Validator",
|
|
2019
|
+
"package": "@angular/forms",
|
|
1936
2020
|
"name": "Validator"
|
|
1937
2021
|
}
|
|
1938
2022
|
]
|
|
@@ -2123,18 +2207,13 @@
|
|
|
2123
2207
|
],
|
|
2124
2208
|
"sources": [
|
|
2125
2209
|
{
|
|
2126
|
-
"fileName": "
|
|
2210
|
+
"fileName": "index.ts",
|
|
2127
2211
|
"line": 1,
|
|
2128
2212
|
"character": 0
|
|
2129
2213
|
}
|
|
2130
2214
|
]
|
|
2131
2215
|
},
|
|
2132
2216
|
"codeExamples": [
|
|
2133
|
-
{
|
|
2134
|
-
"fileName": ".eslintrc.json",
|
|
2135
|
-
"filePath": "/projects/phone-field/documentation/code-examples/.eslintrc.json",
|
|
2136
|
-
"rawContents": "{\n \"extends\": [\"../../.eslintrc.json\"],\n \"overrides\": [\n {\n \"files\": [\"*.ts\"],\n \"rules\": {\n \"@angular-eslint/directive-selector\": [\n \"error\",\n {\n \"type\": \"attribute\",\n \"prefix\": \"app\",\n \"style\": \"camelCase\"\n }\n ],\n \"@angular-eslint/component-selector\": [\n \"error\",\n {\n \"type\": \"element\",\n \"prefix\": \"app\",\n \"style\": \"kebab-case\"\n }\n ]\n }\n }\n ]\n}\n"
|
|
2137
|
-
},
|
|
2138
2217
|
{
|
|
2139
2218
|
"fileName": "phone-field-demo.component.html",
|
|
2140
2219
|
"filePath": "/projects/phone-field/documentation/code-examples/phone-field/basic/phone-field-demo.component.html",
|
|
@@ -2156,4 +2235,4 @@
|
|
|
2156
2235
|
"rawContents": "import { CommonModule } from '@angular/common';\n\nimport { NgModule } from '@angular/core';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyStatusIndicatorModule } from '@skyux/indicators';\n\nimport { SkyPhoneFieldModule } from '@skyux/phone-field';\n\nimport { PhoneFieldDemoComponent } from './phone-field-demo.component';\n\n@NgModule({\n declarations: [PhoneFieldDemoComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyInputBoxModule,\n SkyPhoneFieldModule,\n SkyStatusIndicatorModule,\n ],\n exports: [PhoneFieldDemoComponent],\n})\nexport class PhoneFieldDemoModule {}\n"
|
|
2157
2236
|
}
|
|
2158
2237
|
]
|
|
2159
|
-
}
|
|
2238
|
+
}
|
package/esm2015/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './lib/modules/phone-field/phone-field.module';
|
|
2
|
+
export * from './lib/modules/phone-field/types/country';
|
|
3
|
+
export * from './lib/modules/phone-field/types/number-return-format';
|
|
4
|
+
// Components and directives must be exported to support Angular's "partial" Ivy compiler.
|
|
5
|
+
// Obscure names are used to indicate types are not part of the public API.
|
|
6
|
+
export { SkyPhoneFieldComponent as λ1 } from './lib/modules/phone-field/phone-field.component';
|
|
7
|
+
export { SkyPhoneFieldInputDirective as λ2 } from './lib/modules/phone-field/phone-field-input.directive';
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/components/phone-field/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,sDAAsD,CAAC;AAErE,0FAA0F;AAC1F,2EAA2E;AAC3E,OAAO,EAAE,sBAAsB,IAAI,EAAE,EAAE,MAAM,iDAAiD,CAAC;AAC/F,OAAO,EAAE,2BAA2B,IAAI,EAAE,EAAE,MAAM,uDAAuD,CAAC","sourcesContent":["export * from './lib/modules/phone-field/phone-field.module';\nexport * from './lib/modules/phone-field/types/country';\nexport * from './lib/modules/phone-field/types/number-return-format';\n\n// Components and directives must be exported to support Angular's \"partial\" Ivy compiler.\n// Obscure names are used to indicate types are not part of the public API.\nexport { SkyPhoneFieldComponent as λ1 } from './lib/modules/phone-field/phone-field.component';\nexport { SkyPhoneFieldInputDirective as λ2 } from './lib/modules/phone-field/phone-field-input.directive';\n"]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Injectable, Renderer2 } from '@angular/core';
|
|
2
|
+
import { SkyLibResourcesService } from '@skyux/i18n';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { takeUntil } from 'rxjs/operators';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@skyux/i18n";
|
|
7
|
+
/**
|
|
8
|
+
* Service for interacting with the DOM elements of the phone field.
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export class SkyPhoneFieldAdapterService {
|
|
12
|
+
constructor(renderer, resourcesService) {
|
|
13
|
+
this.renderer = renderer;
|
|
14
|
+
this.resourcesService = resourcesService;
|
|
15
|
+
this.ngUnsubscribe = new Subject();
|
|
16
|
+
}
|
|
17
|
+
ngOnDestroy() {
|
|
18
|
+
this.ngUnsubscribe.next();
|
|
19
|
+
this.ngUnsubscribe.complete();
|
|
20
|
+
}
|
|
21
|
+
addElementClass(elementRef, className) {
|
|
22
|
+
this.renderer.addClass(elementRef.nativeElement, className);
|
|
23
|
+
}
|
|
24
|
+
setElementDisabledState(elementRef, disabled) {
|
|
25
|
+
this.renderer.setProperty(elementRef.nativeElement, 'disabled', disabled);
|
|
26
|
+
}
|
|
27
|
+
setElementPlaceholder(elementRef, placeholder) {
|
|
28
|
+
this.renderer.setAttribute(elementRef.nativeElement, 'placeholder', placeholder);
|
|
29
|
+
}
|
|
30
|
+
setElementType(elementRef) {
|
|
31
|
+
this.renderer.setAttribute(elementRef.nativeElement, 'type', 'tel');
|
|
32
|
+
}
|
|
33
|
+
setElementValue(elementRef, value) {
|
|
34
|
+
if (value) {
|
|
35
|
+
this.renderer.setProperty(elementRef.nativeElement, 'value', value);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
setAriaLabel(element) {
|
|
39
|
+
/* Sanity check */
|
|
40
|
+
/* istanbul ignore else */
|
|
41
|
+
if (!element.nativeElement.getAttribute('aria-label')) {
|
|
42
|
+
this.resourcesService
|
|
43
|
+
.getString('skyux_phone_field_default_label')
|
|
44
|
+
.pipe(takeUntil(this.ngUnsubscribe))
|
|
45
|
+
.subscribe((value) => {
|
|
46
|
+
this.renderer.setAttribute(element.nativeElement, 'aria-label', value);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
focusCountrySearchElement(el) {
|
|
51
|
+
const input = el.querySelector('textarea');
|
|
52
|
+
input.focus();
|
|
53
|
+
}
|
|
54
|
+
focusPhoneInput(el) {
|
|
55
|
+
const input = el.querySelector('.sky-phone-field-container input');
|
|
56
|
+
input.focus();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
SkyPhoneFieldAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyPhoneFieldAdapterService, deps: [{ token: i0.Renderer2 }, { token: i1.SkyLibResourcesService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
60
|
+
SkyPhoneFieldAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyPhoneFieldAdapterService });
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyPhoneFieldAdapterService, decorators: [{
|
|
62
|
+
type: Injectable
|
|
63
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i1.SkyLibResourcesService }]; } });
|
|
64
|
+
//# sourceMappingURL=phone-field-adapter.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone-field-adapter.service.js","sourceRoot":"","sources":["../../../../../../../../libs/components/phone-field/src/lib/modules/phone-field/phone-field-adapter.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,SAAS,EAAc,MAAM,eAAe,CAAC;AAE7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;;;AAE3C;;;GAGG;AAEH,MAAM,OAAO,2BAA2B;IAGtC,YACU,QAAmB,EACnB,gBAAwC;QADxC,aAAQ,GAAR,QAAQ,CAAW;QACnB,qBAAgB,GAAhB,gBAAgB,CAAwB;QAJ1C,kBAAa,GAAG,IAAI,OAAO,EAAE,CAAC;IAKnC,CAAC;IAEG,WAAW;QAChB,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;QAC1B,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC;IAChC,CAAC;IAEM,eAAe,CAAC,UAAsB,EAAE,SAAiB;QAC9D,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;IAC9D,CAAC;IAEM,uBAAuB,CAC5B,UAAsB,EACtB,QAAiB;QAEjB,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,aAAa,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC5E,CAAC;IAEM,qBAAqB,CAC1B,UAAsB,EACtB,WAAmB;QAEnB,IAAI,CAAC,QAAQ,CAAC,YAAY,CACxB,UAAU,CAAC,aAAa,EACxB,aAAa,EACb,WAAW,CACZ,CAAC;IACJ,CAAC;IAEM,cAAc,CAAC,UAAsB;QAC1C,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACtE,CAAC;IAEM,eAAe,CAAC,UAAsB,EAAE,KAAa;QAC1D,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,aAAa,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;SACrE;IACH,CAAC;IAEM,YAAY,CAAC,OAAmB;QACrC,kBAAkB;QAClB,0BAA0B;QAC1B,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE;YACrD,IAAI,CAAC,gBAAgB;iBAClB,SAAS,CAAC,iCAAiC,CAAC;iBAC5C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;iBACnC,SAAS,CAAC,CAAC,KAAa,EAAE,EAAE;gBAC3B,IAAI,CAAC,QAAQ,CAAC,YAAY,CACxB,OAAO,CAAC,aAAa,EACrB,YAAY,EACZ,KAAK,CACN,CAAC;YACJ,CAAC,CAAC,CAAC;SACN;IACH,CAAC;IAEM,yBAAyB,CAAC,EAAW;QAC1C,MAAM,KAAK,GAAgB,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QACxD,KAAK,CAAC,KAAK,EAAE,CAAC;IAChB,CAAC;IAEM,eAAe,CAAC,EAAW;QAChC,MAAM,KAAK,GAAgB,EAAE,CAAC,aAAa,CACzC,kCAAkC,CACnC,CAAC;QACF,KAAK,CAAC,KAAK,EAAE,CAAC;IAChB,CAAC;;yHAxEU,2BAA2B;6HAA3B,2BAA2B;4FAA3B,2BAA2B;kBADvC,UAAU","sourcesContent":["import { Injectable, OnDestroy, Renderer2, ElementRef } from '@angular/core';\n\nimport { SkyLibResourcesService } from '@skyux/i18n';\n\nimport { Subject } from 'rxjs';\n\nimport { takeUntil } from 'rxjs/operators';\n\n/**\n * Service for interacting with the DOM elements of the phone field.\n * @internal\n */\n@Injectable()\nexport class SkyPhoneFieldAdapterService implements OnDestroy {\n private ngUnsubscribe = new Subject();\n\n constructor(\n private renderer: Renderer2,\n private resourcesService: SkyLibResourcesService\n ) {}\n\n public ngOnDestroy(): void {\n this.ngUnsubscribe.next();\n this.ngUnsubscribe.complete();\n }\n\n public addElementClass(elementRef: ElementRef, className: string): void {\n this.renderer.addClass(elementRef.nativeElement, className);\n }\n\n public setElementDisabledState(\n elementRef: ElementRef,\n disabled: boolean\n ): void {\n this.renderer.setProperty(elementRef.nativeElement, 'disabled', disabled);\n }\n\n public setElementPlaceholder(\n elementRef: ElementRef,\n placeholder: string\n ): void {\n this.renderer.setAttribute(\n elementRef.nativeElement,\n 'placeholder',\n placeholder\n );\n }\n\n public setElementType(elementRef: ElementRef): void {\n this.renderer.setAttribute(elementRef.nativeElement, 'type', 'tel');\n }\n\n public setElementValue(elementRef: ElementRef, value: string): void {\n if (value) {\n this.renderer.setProperty(elementRef.nativeElement, 'value', value);\n }\n }\n\n public setAriaLabel(element: ElementRef): void {\n /* Sanity check */\n /* istanbul ignore else */\n if (!element.nativeElement.getAttribute('aria-label')) {\n this.resourcesService\n .getString('skyux_phone_field_default_label')\n .pipe(takeUntil(this.ngUnsubscribe))\n .subscribe((value: string) => {\n this.renderer.setAttribute(\n element.nativeElement,\n 'aria-label',\n value\n );\n });\n }\n }\n\n public focusCountrySearchElement(el: Element): void {\n const input: HTMLElement = el.querySelector('textarea');\n input.focus();\n }\n\n public focusPhoneInput(el: Element): void {\n const input: HTMLElement = el.querySelector(\n '.sky-phone-field-container input'\n );\n input.focus();\n }\n}\n"]}
|