@skyux/phone-field 5.0.0-beta.0 → 5.0.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 (76) hide show
  1. package/LICENSE +21 -0
  2. package/bundles/skyux-phone-field-testing.umd.js +630 -495
  3. package/bundles/skyux-phone-field.umd.js +669 -442
  4. package/documentation.json +2159 -0
  5. package/esm2015/modules/phone-field/phone-field-adapter.service.js +15 -15
  6. package/esm2015/modules/phone-field/phone-field-input.directive.js +57 -53
  7. package/esm2015/modules/phone-field/phone-field.component.js +174 -128
  8. package/esm2015/modules/phone-field/phone-field.module.js +34 -21
  9. package/esm2015/modules/phone-field/types/country.js +2 -1
  10. package/esm2015/modules/phone-field/types/number-return-format.js +2 -1
  11. package/esm2015/modules/shared/sky-phone-field-resources.module.js +60 -0
  12. package/esm2015/public-api.js +8 -0
  13. package/esm2015/skyux-phone-field.js +2 -7
  14. package/esm2015/testing/phonefield/phone-field-fixture.js +8 -6
  15. package/esm2015/testing/phonefield/phone-field-testing.module.js +24 -15
  16. package/esm2015/testing/public-api.js +3 -0
  17. package/esm2015/testing/skyux-phone-field-testing.js +2 -2
  18. package/fesm2015/skyux-phone-field-testing.js +31 -18
  19. package/fesm2015/skyux-phone-field-testing.js.map +1 -1
  20. package/fesm2015/skyux-phone-field.js +320 -219
  21. package/fesm2015/skyux-phone-field.js.map +1 -1
  22. package/modules/phone-field/phone-field-adapter.service.d.ts +3 -0
  23. package/modules/phone-field/phone-field-input.directive.d.ts +3 -0
  24. package/modules/phone-field/phone-field.component.d.ts +3 -0
  25. package/modules/phone-field/phone-field.module.d.ts +13 -0
  26. package/modules/shared/sky-phone-field-resources.module.d.ts +14 -0
  27. package/package.json +13 -29
  28. package/public-api.d.ts +5 -0
  29. package/skyux-phone-field.d.ts +2 -6
  30. package/testing/package.json +2 -5
  31. package/testing/phonefield/phone-field-testing.module.d.ts +6 -0
  32. package/testing/{public_api.d.ts → public-api.d.ts} +0 -0
  33. package/testing/skyux-phone-field-testing.d.ts +2 -1
  34. package/CHANGELOG.md +0 -110
  35. package/bundles/skyux-phone-field-testing.umd.js.map +0 -1
  36. package/bundles/skyux-phone-field-testing.umd.min.js +0 -16
  37. package/bundles/skyux-phone-field-testing.umd.min.js.map +0 -1
  38. package/bundles/skyux-phone-field.umd.js.map +0 -1
  39. package/bundles/skyux-phone-field.umd.min.js +0 -16
  40. package/bundles/skyux-phone-field.umd.min.js.map +0 -1
  41. package/esm2015/modules/shared/phone-field-resources.module.js +0 -17
  42. package/esm2015/plugin-resources/phone-field-resources-provider.js +0 -16
  43. package/esm2015/public_api.js +0 -2
  44. package/esm2015/testing/public_api.js +0 -3
  45. package/esm5/modules/phone-field/phone-field-adapter.service.js +0 -65
  46. package/esm5/modules/phone-field/phone-field-input.directive.js +0 -284
  47. package/esm5/modules/phone-field/phone-field.component.js +0 -318
  48. package/esm5/modules/phone-field/phone-field.module.js +0 -40
  49. package/esm5/modules/phone-field/types/country.js +0 -1
  50. package/esm5/modules/phone-field/types/number-return-format.js +0 -1
  51. package/esm5/modules/shared/phone-field-resources.module.js +0 -20
  52. package/esm5/plugin-resources/phone-field-resources-provider.js +0 -17
  53. package/esm5/public_api.js +0 -2
  54. package/esm5/skyux-phone-field.js +0 -10
  55. package/esm5/testing/phonefield/phone-field-fixture.js +0 -280
  56. package/esm5/testing/phonefield/phone-field-testing.module.js +0 -21
  57. package/esm5/testing/public_api.js +0 -3
  58. package/esm5/testing/skyux-phone-field-testing.js +0 -5
  59. package/fesm5/skyux-phone-field-testing.js +0 -305
  60. package/fesm5/skyux-phone-field-testing.js.map +0 -1
  61. package/fesm5/skyux-phone-field.js +0 -718
  62. package/fesm5/skyux-phone-field.js.map +0 -1
  63. package/modules/shared/phone-field-resources.module.d.ts +0 -2
  64. package/plugin-resources/phone-field-resources-provider.d.ts +0 -5
  65. package/public_api.d.ts +0 -3
  66. package/skyux-phone-field.metadata.json +0 -1
  67. package/src/assets/img/guidelines/anatomy.png +0 -0
  68. package/src/assets/img/guidelines/phone-country-input.png +0 -0
  69. package/src/assets/img/guidelines/phone-country-picker.png +0 -0
  70. package/src/assets/img/guidelines/phone-input-base.png +0 -0
  71. package/src/assets/img/guidelines/phone-input-error-no-message.png +0 -0
  72. package/src/assets/img/guidelines/phone-input-error.png +0 -0
  73. package/src/assets/img/guidelines/phone-input-focused.png +0 -0
  74. package/src/assets/img/guidelines/phone-input-form.png +0 -0
  75. package/src/assets/locales/resources_en_US.json +0 -26
  76. package/testing/skyux-phone-field-testing.metadata.json +0 -1
@@ -0,0 +1,2159 @@
1
+ {
2
+ "anchorIds": {
3
+ "SkyPhoneFieldModule": "class-skyphonefieldmodule",
4
+ "SkyPhoneFieldComponent": "class-skyphonefieldcomponent",
5
+ "SkyPhoneFieldInputDirective": "class-skyphonefieldinputdirective",
6
+ "SkyPhoneFieldCountry": "interface-skyphonefieldcountry",
7
+ "SkyPhoneFieldNumberReturnFormat": "type-alias-skyphonefieldnumberreturnformat"
8
+ },
9
+ "typedoc": {
10
+ "id": 0,
11
+ "name": "@skyux/phone-field",
12
+ "kind": 1,
13
+ "kindString": "Project",
14
+ "flags": {},
15
+ "originalName": "",
16
+ "children": [
17
+ {
18
+ "id": 133,
19
+ "name": "SkyPhoneFieldModule",
20
+ "kind": 128,
21
+ "kindString": "Class",
22
+ "flags": {},
23
+ "decorators": [
24
+ {
25
+ "name": "NgModule",
26
+ "type": {
27
+ "type": "reference",
28
+ "name": "NgModule"
29
+ },
30
+ "arguments": {
31
+ "obj": "{\n declarations: [SkyPhoneFieldComponent, SkyPhoneFieldInputDirective],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n SkyCountryFieldModule,\n SkyI18nModule,\n SkyIconModule,\n SkyPhoneFieldResourcesModule,\n SkyThemeModule,\n ],\n exports: [SkyPhoneFieldComponent, SkyPhoneFieldInputDirective],\n}"
32
+ }
33
+ }
34
+ ],
35
+ "children": [
36
+ {
37
+ "id": 134,
38
+ "name": "constructor",
39
+ "kind": 512,
40
+ "kindString": "Constructor",
41
+ "flags": {},
42
+ "signatures": [
43
+ {
44
+ "id": 135,
45
+ "name": "new SkyPhoneFieldModule",
46
+ "kind": 16384,
47
+ "kindString": "Constructor signature",
48
+ "flags": {},
49
+ "type": {
50
+ "type": "reference",
51
+ "id": 133,
52
+ "name": "SkyPhoneFieldModule"
53
+ }
54
+ }
55
+ ]
56
+ }
57
+ ],
58
+ "groups": [
59
+ {
60
+ "title": "Constructors",
61
+ "kind": 512,
62
+ "children": [
63
+ 134
64
+ ]
65
+ }
66
+ ],
67
+ "sources": [
68
+ {
69
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.module.ts",
70
+ "line": 35,
71
+ "character": 13
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "id": 1,
77
+ "name": "SkyPhoneFieldComponent",
78
+ "kind": 128,
79
+ "kindString": "Class",
80
+ "flags": {},
81
+ "decorators": [
82
+ {
83
+ "name": "Component",
84
+ "type": {
85
+ "type": "reference",
86
+ "name": "Component"
87
+ },
88
+ "arguments": {
89
+ "obj": "{\n selector: 'sky-phone-field',\n templateUrl: './phone-field.component.html',\n styleUrls: ['./phone-field.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n SkyPhoneFieldAdapterService,\n // Prevents the embedded country field component from changing its behavior based on\n // being inside an input box. The phone field itself will handle the required changes\n // for input box.\n {\n provide: SkyInputBoxHostService,\n useValue: undefined,\n },\n ],\n animations: [\n trigger('blockAnimationOnLoad', [transition(':enter', [])]),\n trigger('countrySearchAnimation', [\n transition(':enter', [\n style({\n opacity: 0,\n width: 0,\n }),\n animate(\n '200ms ease-in',\n style({\n opacity: 1,\n width: '*',\n })\n ),\n ]),\n transition(':leave', [\n animate(\n '200ms ease-in',\n style({\n opacity: 0,\n width: 0,\n })\n ),\n ]),\n ]),\n trigger('phoneInputAnimation', [\n transition(':enter', [\n style({\n opacity: 0,\n }),\n animate(\n '150ms ease-in',\n style({\n opacity: 1,\n })\n ),\n ]),\n transition(':leave', [\n animate(\n '150ms ease-in',\n style({\n opacity: 0,\n })\n ),\n ]),\n ]),\n ],\n}"
90
+ }
91
+ }
92
+ ],
93
+ "children": [
94
+ {
95
+ "id": 2,
96
+ "name": "constructor",
97
+ "kind": 512,
98
+ "kindString": "Constructor",
99
+ "flags": {},
100
+ "sources": [
101
+ {
102
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
103
+ "line": 239,
104
+ "character": 2
105
+ }
106
+ ],
107
+ "signatures": [
108
+ {
109
+ "id": 3,
110
+ "name": "SkyPhoneFieldComponent",
111
+ "kind": 16384,
112
+ "kindString": "Constructor signature",
113
+ "flags": {},
114
+ "parameters": [
115
+ {
116
+ "id": 4,
117
+ "name": "formBuilder",
118
+ "kind": 32768,
119
+ "kindString": "Parameter",
120
+ "flags": {},
121
+ "type": {
122
+ "type": "reference",
123
+ "name": "FormBuilder"
124
+ }
125
+ },
126
+ {
127
+ "id": 5,
128
+ "name": "adapterService",
129
+ "kind": 32768,
130
+ "kindString": "Parameter",
131
+ "flags": {},
132
+ "type": {
133
+ "type": "reference",
134
+ "name": "SkyPhoneFieldAdapterService"
135
+ }
136
+ },
137
+ {
138
+ "id": 6,
139
+ "name": "changeDetector",
140
+ "kind": 32768,
141
+ "kindString": "Parameter",
142
+ "flags": {},
143
+ "type": {
144
+ "type": "reference",
145
+ "name": "ChangeDetectorRef"
146
+ }
147
+ },
148
+ {
149
+ "id": 7,
150
+ "name": "themeSvc",
151
+ "kind": 32768,
152
+ "kindString": "Parameter",
153
+ "flags": {
154
+ "isOptional": true
155
+ },
156
+ "decorators": [
157
+ {
158
+ "name": "Optional",
159
+ "type": {
160
+ "type": "reference",
161
+ "name": "Optional"
162
+ },
163
+ "arguments": {}
164
+ }
165
+ ],
166
+ "type": {
167
+ "type": "reference",
168
+ "name": "SkyThemeService"
169
+ }
170
+ },
171
+ {
172
+ "id": 8,
173
+ "name": "inputBoxHostSvc",
174
+ "kind": 32768,
175
+ "kindString": "Parameter",
176
+ "flags": {
177
+ "isOptional": true
178
+ },
179
+ "decorators": [
180
+ {
181
+ "name": "Optional",
182
+ "type": {
183
+ "type": "reference",
184
+ "name": "Optional"
185
+ },
186
+ "arguments": {}
187
+ },
188
+ {
189
+ "name": "SkipSelf",
190
+ "type": {
191
+ "type": "reference",
192
+ "name": "SkipSelf"
193
+ },
194
+ "arguments": {}
195
+ }
196
+ ],
197
+ "type": {
198
+ "type": "reference",
199
+ "name": "SkyInputBoxHostService"
200
+ }
201
+ }
202
+ ],
203
+ "type": {
204
+ "type": "reference",
205
+ "id": 1,
206
+ "name": "SkyPhoneFieldComponent"
207
+ }
208
+ }
209
+ ]
210
+ },
211
+ {
212
+ "id": 9,
213
+ "name": "allowExtensions",
214
+ "kind": 1024,
215
+ "kindString": "Property",
216
+ "flags": {
217
+ "isPublic": true
218
+ },
219
+ "comment": {
220
+ "shortText": "Indicates whether or not phone number extensions are allowed.",
221
+ "tags": [
222
+ {
223
+ "tag": "default",
224
+ "text": "true\n"
225
+ }
226
+ ]
227
+ },
228
+ "decorators": [
229
+ {
230
+ "name": "Input",
231
+ "type": {
232
+ "type": "reference",
233
+ "name": "Input"
234
+ },
235
+ "arguments": {}
236
+ }
237
+ ],
238
+ "sources": [
239
+ {
240
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
241
+ "line": 121,
242
+ "character": 9
243
+ }
244
+ ],
245
+ "type": {
246
+ "type": "intrinsic",
247
+ "name": "boolean"
248
+ },
249
+ "defaultValue": "true"
250
+ },
251
+ {
252
+ "id": 17,
253
+ "name": "countries",
254
+ "kind": 1024,
255
+ "kindString": "Property",
256
+ "flags": {
257
+ "isPublic": true
258
+ },
259
+ "sources": [
260
+ {
261
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
262
+ "line": 167,
263
+ "character": 9
264
+ }
265
+ ],
266
+ "type": {
267
+ "type": "array",
268
+ "elementType": {
269
+ "type": "reference",
270
+ "id": 136,
271
+ "name": "SkyPhoneFieldCountry"
272
+ }
273
+ }
274
+ },
275
+ {
276
+ "id": 21,
277
+ "name": "countrySearchForm",
278
+ "kind": 1024,
279
+ "kindString": "Property",
280
+ "flags": {
281
+ "isPublic": true
282
+ },
283
+ "sources": [
284
+ {
285
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
286
+ "line": 175,
287
+ "character": 9
288
+ }
289
+ ],
290
+ "type": {
291
+ "type": "reference",
292
+ "name": "FormGroup"
293
+ }
294
+ },
295
+ {
296
+ "id": 19,
297
+ "name": "countrySearchShown",
298
+ "kind": 1024,
299
+ "kindString": "Property",
300
+ "flags": {
301
+ "isPublic": true
302
+ },
303
+ "sources": [
304
+ {
305
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
306
+ "line": 171,
307
+ "character": 9
308
+ }
309
+ ],
310
+ "type": {
311
+ "type": "intrinsic",
312
+ "name": "boolean"
313
+ },
314
+ "defaultValue": "false"
315
+ },
316
+ {
317
+ "id": 18,
318
+ "name": "countrySelectDisabled",
319
+ "kind": 1024,
320
+ "kindString": "Property",
321
+ "flags": {
322
+ "isPublic": true
323
+ },
324
+ "sources": [
325
+ {
326
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
327
+ "line": 169,
328
+ "character": 9
329
+ }
330
+ ],
331
+ "type": {
332
+ "type": "intrinsic",
333
+ "name": "boolean"
334
+ },
335
+ "defaultValue": "false"
336
+ },
337
+ {
338
+ "id": 36,
339
+ "name": "inputBoxHostSvc",
340
+ "kind": 1024,
341
+ "kindString": "Property",
342
+ "flags": {
343
+ "isPublic": true,
344
+ "isOptional": true
345
+ },
346
+ "type": {
347
+ "type": "reference",
348
+ "name": "SkyInputBoxHostService"
349
+ }
350
+ },
351
+ {
352
+ "id": 20,
353
+ "name": "phoneInputShown",
354
+ "kind": 1024,
355
+ "kindString": "Property",
356
+ "flags": {
357
+ "isPublic": true
358
+ },
359
+ "sources": [
360
+ {
361
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
362
+ "line": 173,
363
+ "character": 9
364
+ }
365
+ ],
366
+ "type": {
367
+ "type": "intrinsic",
368
+ "name": "boolean"
369
+ },
370
+ "defaultValue": "true"
371
+ },
372
+ {
373
+ "id": 14,
374
+ "name": "returnFormat",
375
+ "kind": 1024,
376
+ "kindString": "Property",
377
+ "flags": {
378
+ "isPublic": true
379
+ },
380
+ "comment": {
381
+ "shortText": "Specifies the format for validated phone numbers.",
382
+ "tags": [
383
+ {
384
+ "tag": "default",
385
+ "text": "'default'\n"
386
+ }
387
+ ]
388
+ },
389
+ "decorators": [
390
+ {
391
+ "name": "Input",
392
+ "type": {
393
+ "type": "reference",
394
+ "name": "Input"
395
+ },
396
+ "arguments": {}
397
+ }
398
+ ],
399
+ "sources": [
400
+ {
401
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
402
+ "line": 150,
403
+ "character": 9
404
+ }
405
+ ],
406
+ "type": {
407
+ "type": "reference",
408
+ "id": 143,
409
+ "name": "SkyPhoneFieldNumberReturnFormat"
410
+ },
411
+ "defaultValue": "'default'"
412
+ },
413
+ {
414
+ "id": 16,
415
+ "name": "selectedCountryChange",
416
+ "kind": 1024,
417
+ "kindString": "Property",
418
+ "flags": {
419
+ "isPublic": true
420
+ },
421
+ "comment": {
422
+ "shortText": "Emits a `SkyPhoneFieldCountry` object when the selected country in the country search\ninput changes."
423
+ },
424
+ "decorators": [
425
+ {
426
+ "name": "Output",
427
+ "type": {
428
+ "type": "reference",
429
+ "name": "Output"
430
+ },
431
+ "arguments": {}
432
+ }
433
+ ],
434
+ "sources": [
435
+ {
436
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
437
+ "line": 165,
438
+ "character": 9
439
+ }
440
+ ],
441
+ "type": {
442
+ "type": "reference",
443
+ "typeArguments": [
444
+ {
445
+ "type": "reference",
446
+ "id": 136,
447
+ "name": "SkyPhoneFieldCountry"
448
+ }
449
+ ],
450
+ "name": "EventEmitter"
451
+ },
452
+ "defaultValue": "..."
453
+ },
454
+ {
455
+ "id": 15,
456
+ "name": "supportedCountryISOs",
457
+ "kind": 1024,
458
+ "kindString": "Property",
459
+ "flags": {
460
+ "isPublic": true
461
+ },
462
+ "comment": {
463
+ "shortText": "Specifies the [International Organization for Standardization Alpha 2](https://www.nationsonline.org/oneworld/country_code_list.htm)\ncountry codes for the countries that users can select. By default, all countries are available."
464
+ },
465
+ "decorators": [
466
+ {
467
+ "name": "Input",
468
+ "type": {
469
+ "type": "reference",
470
+ "name": "Input"
471
+ },
472
+ "arguments": {}
473
+ }
474
+ ],
475
+ "sources": [
476
+ {
477
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
478
+ "line": 157,
479
+ "character": 9
480
+ }
481
+ ],
482
+ "type": {
483
+ "type": "array",
484
+ "elementType": {
485
+ "type": "intrinsic",
486
+ "name": "string"
487
+ }
488
+ }
489
+ },
490
+ {
491
+ "id": 35,
492
+ "name": "themeSvc",
493
+ "kind": 1024,
494
+ "kindString": "Property",
495
+ "flags": {
496
+ "isPublic": true,
497
+ "isOptional": true
498
+ },
499
+ "type": {
500
+ "type": "reference",
501
+ "name": "SkyThemeService"
502
+ }
503
+ },
504
+ {
505
+ "id": 10,
506
+ "name": "defaultCountry",
507
+ "kind": 262144,
508
+ "kindString": "Accessor",
509
+ "flags": {
510
+ "isPublic": true
511
+ },
512
+ "decorators": [
513
+ {
514
+ "name": "Input",
515
+ "type": {
516
+ "type": "reference",
517
+ "name": "Input"
518
+ },
519
+ "arguments": {}
520
+ }
521
+ ],
522
+ "sources": [
523
+ {
524
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
525
+ "line": 131,
526
+ "character": 13
527
+ }
528
+ ],
529
+ "getSignature": [
530
+ {
531
+ "id": 11,
532
+ "name": "defaultCountry",
533
+ "kind": 524288,
534
+ "kindString": "Get signature",
535
+ "flags": {},
536
+ "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."
538
+ },
539
+ "type": {
540
+ "type": "intrinsic",
541
+ "name": "string"
542
+ }
543
+ }
544
+ ],
545
+ "setSignature": [
546
+ {
547
+ "id": 12,
548
+ "name": "defaultCountry",
549
+ "kind": 1048576,
550
+ "kindString": "Set signature",
551
+ "flags": {},
552
+ "comment": {
553
+ "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.",
554
+ "tags": [
555
+ {
556
+ "tag": "default",
557
+ "text": "us\n"
558
+ }
559
+ ]
560
+ },
561
+ "parameters": [
562
+ {
563
+ "id": 13,
564
+ "name": "value",
565
+ "kind": 32768,
566
+ "kindString": "Parameter",
567
+ "flags": {},
568
+ "type": {
569
+ "type": "intrinsic",
570
+ "name": "string"
571
+ }
572
+ }
573
+ ],
574
+ "type": {
575
+ "type": "intrinsic",
576
+ "name": "void"
577
+ }
578
+ }
579
+ ]
580
+ },
581
+ {
582
+ "id": 22,
583
+ "name": "selectedCountry",
584
+ "kind": 262144,
585
+ "kindString": "Accessor",
586
+ "flags": {
587
+ "isPublic": true
588
+ },
589
+ "decorators": [
590
+ {
591
+ "name": "Input",
592
+ "type": {
593
+ "type": "reference",
594
+ "name": "Input"
595
+ },
596
+ "arguments": {}
597
+ }
598
+ ],
599
+ "sources": [
600
+ {
601
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
602
+ "line": 181,
603
+ "character": 13
604
+ }
605
+ ],
606
+ "getSignature": [
607
+ {
608
+ "id": 23,
609
+ "name": "selectedCountry",
610
+ "kind": 524288,
611
+ "kindString": "Get signature",
612
+ "flags": {},
613
+ "comment": {
614
+ "shortText": "Specifies the currently selected country to validate against."
615
+ },
616
+ "type": {
617
+ "type": "reference",
618
+ "id": 136,
619
+ "name": "SkyPhoneFieldCountry"
620
+ }
621
+ }
622
+ ],
623
+ "setSignature": [
624
+ {
625
+ "id": 24,
626
+ "name": "selectedCountry",
627
+ "kind": 1048576,
628
+ "kindString": "Set signature",
629
+ "flags": {},
630
+ "comment": {
631
+ "shortText": "Specifies the currently selected country to validate against."
632
+ },
633
+ "parameters": [
634
+ {
635
+ "id": 25,
636
+ "name": "newCountry",
637
+ "kind": 32768,
638
+ "kindString": "Parameter",
639
+ "flags": {},
640
+ "type": {
641
+ "type": "reference",
642
+ "id": 136,
643
+ "name": "SkyPhoneFieldCountry"
644
+ }
645
+ }
646
+ ],
647
+ "type": {
648
+ "type": "intrinsic",
649
+ "name": "void"
650
+ }
651
+ }
652
+ ]
653
+ },
654
+ {
655
+ "id": 47,
656
+ "name": "countrySearchAnimationEnd",
657
+ "kind": 2048,
658
+ "kindString": "Method",
659
+ "flags": {
660
+ "isPublic": true
661
+ },
662
+ "sources": [
663
+ {
664
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
665
+ "line": 333,
666
+ "character": 9
667
+ }
668
+ ],
669
+ "signatures": [
670
+ {
671
+ "id": 48,
672
+ "name": "countrySearchAnimationEnd",
673
+ "kind": 4096,
674
+ "kindString": "Call signature",
675
+ "flags": {},
676
+ "parameters": [
677
+ {
678
+ "id": 49,
679
+ "name": "e",
680
+ "kind": 32768,
681
+ "kindString": "Parameter",
682
+ "flags": {},
683
+ "type": {
684
+ "type": "reference",
685
+ "name": "AnimationEvent_2"
686
+ }
687
+ }
688
+ ],
689
+ "type": {
690
+ "type": "intrinsic",
691
+ "name": "void"
692
+ }
693
+ }
694
+ ]
695
+ },
696
+ {
697
+ "id": 39,
698
+ "name": "ngOnDestroy",
699
+ "kind": 2048,
700
+ "kindString": "Method",
701
+ "flags": {
702
+ "isPublic": true
703
+ },
704
+ "sources": [
705
+ {
706
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
707
+ "line": 300,
708
+ "character": 9
709
+ }
710
+ ],
711
+ "signatures": [
712
+ {
713
+ "id": 40,
714
+ "name": "ngOnDestroy",
715
+ "kind": 4096,
716
+ "kindString": "Call signature",
717
+ "flags": {},
718
+ "type": {
719
+ "type": "intrinsic",
720
+ "name": "void"
721
+ },
722
+ "implementationOf": {
723
+ "type": "reference",
724
+ "name": "OnDestroy.ngOnDestroy"
725
+ }
726
+ }
727
+ ],
728
+ "implementationOf": {
729
+ "type": "reference",
730
+ "name": "OnDestroy.ngOnDestroy"
731
+ }
732
+ },
733
+ {
734
+ "id": 37,
735
+ "name": "ngOnInit",
736
+ "kind": 2048,
737
+ "kindString": "Method",
738
+ "flags": {
739
+ "isPublic": true
740
+ },
741
+ "sources": [
742
+ {
743
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
744
+ "line": 269,
745
+ "character": 9
746
+ }
747
+ ],
748
+ "signatures": [
749
+ {
750
+ "id": 38,
751
+ "name": "ngOnInit",
752
+ "kind": 4096,
753
+ "kindString": "Call signature",
754
+ "flags": {},
755
+ "type": {
756
+ "type": "intrinsic",
757
+ "name": "void"
758
+ },
759
+ "implementationOf": {
760
+ "type": "reference",
761
+ "name": "OnInit.ngOnInit"
762
+ }
763
+ }
764
+ ],
765
+ "implementationOf": {
766
+ "type": "reference",
767
+ "name": "OnInit.ngOnInit"
768
+ }
769
+ },
770
+ {
771
+ "id": 50,
772
+ "name": "phoneInputAnimationEnd",
773
+ "kind": 2048,
774
+ "kindString": "Method",
775
+ "flags": {
776
+ "isPublic": true
777
+ },
778
+ "sources": [
779
+ {
780
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
781
+ "line": 343,
782
+ "character": 9
783
+ }
784
+ ],
785
+ "signatures": [
786
+ {
787
+ "id": 51,
788
+ "name": "phoneInputAnimationEnd",
789
+ "kind": 4096,
790
+ "kindString": "Call signature",
791
+ "flags": {},
792
+ "parameters": [
793
+ {
794
+ "id": 52,
795
+ "name": "e",
796
+ "kind": 32768,
797
+ "kindString": "Parameter",
798
+ "flags": {},
799
+ "type": {
800
+ "type": "reference",
801
+ "name": "AnimationEvent_2"
802
+ }
803
+ }
804
+ ],
805
+ "type": {
806
+ "type": "intrinsic",
807
+ "name": "void"
808
+ }
809
+ }
810
+ ]
811
+ },
812
+ {
813
+ "id": 53,
814
+ "name": "setCountryByDialCode",
815
+ "kind": 2048,
816
+ "kindString": "Method",
817
+ "flags": {
818
+ "isPublic": true
819
+ },
820
+ "sources": [
821
+ {
822
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
823
+ "line": 356,
824
+ "character": 9
825
+ }
826
+ ],
827
+ "signatures": [
828
+ {
829
+ "id": 54,
830
+ "name": "setCountryByDialCode",
831
+ "kind": 4096,
832
+ "kindString": "Call signature",
833
+ "flags": {},
834
+ "parameters": [
835
+ {
836
+ "id": 55,
837
+ "name": "phoneNumber",
838
+ "kind": 32768,
839
+ "kindString": "Parameter",
840
+ "flags": {},
841
+ "type": {
842
+ "type": "intrinsic",
843
+ "name": "string"
844
+ }
845
+ }
846
+ ],
847
+ "type": {
848
+ "type": "intrinsic",
849
+ "name": "boolean"
850
+ }
851
+ }
852
+ ]
853
+ },
854
+ {
855
+ "id": 44,
856
+ "name": "toggleCountrySearch",
857
+ "kind": 2048,
858
+ "kindString": "Method",
859
+ "flags": {
860
+ "isPublic": true
861
+ },
862
+ "sources": [
863
+ {
864
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
865
+ "line": 319,
866
+ "character": 9
867
+ }
868
+ ],
869
+ "signatures": [
870
+ {
871
+ "id": 45,
872
+ "name": "toggleCountrySearch",
873
+ "kind": 4096,
874
+ "kindString": "Call signature",
875
+ "flags": {},
876
+ "parameters": [
877
+ {
878
+ "id": 46,
879
+ "name": "showSearch",
880
+ "kind": 32768,
881
+ "kindString": "Parameter",
882
+ "flags": {},
883
+ "type": {
884
+ "type": "intrinsic",
885
+ "name": "boolean"
886
+ }
887
+ }
888
+ ],
889
+ "type": {
890
+ "type": "intrinsic",
891
+ "name": "void"
892
+ }
893
+ }
894
+ ]
895
+ }
896
+ ],
897
+ "groups": [
898
+ {
899
+ "title": "Constructors",
900
+ "kind": 512,
901
+ "children": [
902
+ 2
903
+ ]
904
+ },
905
+ {
906
+ "title": "Properties",
907
+ "kind": 1024,
908
+ "children": [
909
+ 9,
910
+ 17,
911
+ 21,
912
+ 19,
913
+ 18,
914
+ 36,
915
+ 20,
916
+ 14,
917
+ 16,
918
+ 15,
919
+ 35
920
+ ]
921
+ },
922
+ {
923
+ "title": "Accessors",
924
+ "kind": 262144,
925
+ "children": [
926
+ 10,
927
+ 22
928
+ ]
929
+ },
930
+ {
931
+ "title": "Methods",
932
+ "kind": 2048,
933
+ "children": [
934
+ 47,
935
+ 39,
936
+ 37,
937
+ 50,
938
+ 53,
939
+ 44
940
+ ]
941
+ }
942
+ ],
943
+ "sources": [
944
+ {
945
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field.component.ts",
946
+ "line": 115,
947
+ "character": 13
948
+ }
949
+ ],
950
+ "implementedTypes": [
951
+ {
952
+ "type": "reference",
953
+ "name": "OnDestroy"
954
+ },
955
+ {
956
+ "type": "reference",
957
+ "name": "OnInit"
958
+ }
959
+ ]
960
+ },
961
+ {
962
+ "id": 56,
963
+ "name": "SkyPhoneFieldInputDirective",
964
+ "kind": 128,
965
+ "kindString": "Class",
966
+ "flags": {},
967
+ "comment": {
968
+ "shortText": "Creates a button, search input, and text input for entering and validating\ninternational phone numbers. Place this attribute on an `input` element, and wrap\nthat element in a `sky-phone-field` component. By default, the country selector\nbutton displays a flag icon for the default country, and the phone number input\ndisplays a sample of the correct phone number format. When users select the country\nselector button, they expose the country search input, which is\n[an autocomplete input](https://developer.blackbaud.com/skyux/components/autocomplete)\nthat allows them to select different countries. When users enter `+` followed by an\ninternational dial code in the phone number input, the country automatically switches\nto the country associated with the dial code.",
969
+ "tags": [
970
+ {
971
+ "tag": "required",
972
+ "text": "\n"
973
+ }
974
+ ]
975
+ },
976
+ "decorators": [
977
+ {
978
+ "name": "Directive",
979
+ "type": {
980
+ "type": "reference",
981
+ "name": "Directive"
982
+ },
983
+ "arguments": {
984
+ "obj": "{\n selector: '[skyPhoneFieldInput]',\n providers: [SKY_PHONE_FIELD_VALUE_ACCESSOR, SKY_PHONE_FIELD_VALIDATOR],\n}"
985
+ }
986
+ }
987
+ ],
988
+ "children": [
989
+ {
990
+ "id": 57,
991
+ "name": "constructor",
992
+ "kind": 512,
993
+ "kindString": "Constructor",
994
+ "flags": {
995
+ "isPublic": true
996
+ },
997
+ "sources": [
998
+ {
999
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1000
+ "line": 125,
1001
+ "character": 2
1002
+ }
1003
+ ],
1004
+ "signatures": [
1005
+ {
1006
+ "id": 58,
1007
+ "name": "SkyPhoneFieldInputDirective",
1008
+ "kind": 16384,
1009
+ "kindString": "Constructor signature",
1010
+ "flags": {},
1011
+ "parameters": [
1012
+ {
1013
+ "id": 59,
1014
+ "name": "changeDetector",
1015
+ "kind": 32768,
1016
+ "kindString": "Parameter",
1017
+ "flags": {},
1018
+ "type": {
1019
+ "type": "reference",
1020
+ "name": "ChangeDetectorRef"
1021
+ }
1022
+ },
1023
+ {
1024
+ "id": 60,
1025
+ "name": "elRef",
1026
+ "kind": 32768,
1027
+ "kindString": "Parameter",
1028
+ "flags": {},
1029
+ "type": {
1030
+ "type": "reference",
1031
+ "typeArguments": [
1032
+ {
1033
+ "type": "intrinsic",
1034
+ "name": "any"
1035
+ }
1036
+ ],
1037
+ "name": "ElementRef"
1038
+ }
1039
+ },
1040
+ {
1041
+ "id": 61,
1042
+ "name": "adapterService",
1043
+ "kind": 32768,
1044
+ "kindString": "Parameter",
1045
+ "flags": {},
1046
+ "decorators": [
1047
+ {
1048
+ "name": "Optional",
1049
+ "type": {
1050
+ "type": "reference",
1051
+ "name": "Optional"
1052
+ },
1053
+ "arguments": {}
1054
+ }
1055
+ ],
1056
+ "type": {
1057
+ "type": "reference",
1058
+ "name": "SkyPhoneFieldAdapterService"
1059
+ }
1060
+ },
1061
+ {
1062
+ "id": 62,
1063
+ "name": "phoneFieldComponent",
1064
+ "kind": 32768,
1065
+ "kindString": "Parameter",
1066
+ "flags": {},
1067
+ "decorators": [
1068
+ {
1069
+ "name": "Optional",
1070
+ "type": {
1071
+ "type": "reference",
1072
+ "name": "Optional"
1073
+ },
1074
+ "arguments": {}
1075
+ }
1076
+ ],
1077
+ "type": {
1078
+ "type": "reference",
1079
+ "id": 1,
1080
+ "name": "SkyPhoneFieldComponent"
1081
+ }
1082
+ }
1083
+ ],
1084
+ "type": {
1085
+ "type": "reference",
1086
+ "id": 56,
1087
+ "name": "SkyPhoneFieldInputDirective"
1088
+ }
1089
+ }
1090
+ ]
1091
+ },
1092
+ {
1093
+ "id": 67,
1094
+ "name": "skyPhoneFieldNoValidate",
1095
+ "kind": 1024,
1096
+ "kindString": "Property",
1097
+ "flags": {
1098
+ "isPublic": true
1099
+ },
1100
+ "comment": {
1101
+ "shortText": "Indicates whether to prevent validation on the phone number input. For validation,\nphone numbers are driven through the `ngModel` attribute that you specify on an\n`input` element or on a `FormControl` in a reactive form. To prevent validation,\nset this property to `true`.",
1102
+ "tags": [
1103
+ {
1104
+ "tag": "default",
1105
+ "text": "false\n"
1106
+ }
1107
+ ]
1108
+ },
1109
+ "decorators": [
1110
+ {
1111
+ "name": "Input",
1112
+ "type": {
1113
+ "type": "reference",
1114
+ "name": "Input"
1115
+ },
1116
+ "arguments": {}
1117
+ }
1118
+ ],
1119
+ "sources": [
1120
+ {
1121
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1122
+ "line": 92,
1123
+ "character": 9
1124
+ }
1125
+ ],
1126
+ "type": {
1127
+ "type": "intrinsic",
1128
+ "name": "boolean"
1129
+ },
1130
+ "defaultValue": "false"
1131
+ },
1132
+ {
1133
+ "id": 63,
1134
+ "name": "disabled",
1135
+ "kind": 262144,
1136
+ "kindString": "Accessor",
1137
+ "flags": {
1138
+ "isPublic": true
1139
+ },
1140
+ "decorators": [
1141
+ {
1142
+ "name": "Input",
1143
+ "type": {
1144
+ "type": "reference",
1145
+ "name": "Input"
1146
+ },
1147
+ "arguments": {}
1148
+ }
1149
+ ],
1150
+ "sources": [
1151
+ {
1152
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1153
+ "line": 74,
1154
+ "character": 13
1155
+ }
1156
+ ],
1157
+ "getSignature": [
1158
+ {
1159
+ "id": 64,
1160
+ "name": "disabled",
1161
+ "kind": 524288,
1162
+ "kindString": "Get signature",
1163
+ "flags": {},
1164
+ "comment": {
1165
+ "shortText": "Indicates whether to disable the phone field."
1166
+ },
1167
+ "type": {
1168
+ "type": "intrinsic",
1169
+ "name": "boolean"
1170
+ }
1171
+ }
1172
+ ],
1173
+ "setSignature": [
1174
+ {
1175
+ "id": 65,
1176
+ "name": "disabled",
1177
+ "kind": 1048576,
1178
+ "kindString": "Set signature",
1179
+ "flags": {},
1180
+ "comment": {
1181
+ "shortText": "Indicates whether to disable the phone field.",
1182
+ "tags": [
1183
+ {
1184
+ "tag": "default",
1185
+ "text": "false\n"
1186
+ }
1187
+ ]
1188
+ },
1189
+ "parameters": [
1190
+ {
1191
+ "id": 66,
1192
+ "name": "value",
1193
+ "kind": 32768,
1194
+ "kindString": "Parameter",
1195
+ "flags": {},
1196
+ "type": {
1197
+ "type": "intrinsic",
1198
+ "name": "boolean"
1199
+ }
1200
+ }
1201
+ ],
1202
+ "type": {
1203
+ "type": "intrinsic",
1204
+ "name": "void"
1205
+ }
1206
+ }
1207
+ ]
1208
+ },
1209
+ {
1210
+ "id": 80,
1211
+ "name": "ngAfterViewInit",
1212
+ "kind": 2048,
1213
+ "kindString": "Method",
1214
+ "flags": {
1215
+ "isPublic": true
1216
+ },
1217
+ "sources": [
1218
+ {
1219
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1220
+ "line": 152,
1221
+ "character": 9
1222
+ }
1223
+ ],
1224
+ "signatures": [
1225
+ {
1226
+ "id": 81,
1227
+ "name": "ngAfterViewInit",
1228
+ "kind": 4096,
1229
+ "kindString": "Call signature",
1230
+ "flags": {},
1231
+ "type": {
1232
+ "type": "intrinsic",
1233
+ "name": "void"
1234
+ },
1235
+ "implementationOf": {
1236
+ "type": "reference",
1237
+ "name": "AfterViewInit.ngAfterViewInit"
1238
+ }
1239
+ }
1240
+ ],
1241
+ "implementationOf": {
1242
+ "type": "reference",
1243
+ "name": "AfterViewInit.ngAfterViewInit"
1244
+ }
1245
+ },
1246
+ {
1247
+ "id": 82,
1248
+ "name": "ngOnDestroy",
1249
+ "kind": 2048,
1250
+ "kindString": "Method",
1251
+ "flags": {
1252
+ "isPublic": true
1253
+ },
1254
+ "sources": [
1255
+ {
1256
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1257
+ "line": 172,
1258
+ "character": 9
1259
+ }
1260
+ ],
1261
+ "signatures": [
1262
+ {
1263
+ "id": 83,
1264
+ "name": "ngOnDestroy",
1265
+ "kind": 4096,
1266
+ "kindString": "Call signature",
1267
+ "flags": {},
1268
+ "type": {
1269
+ "type": "intrinsic",
1270
+ "name": "void"
1271
+ },
1272
+ "implementationOf": {
1273
+ "type": "reference",
1274
+ "name": "OnDestroy.ngOnDestroy"
1275
+ }
1276
+ }
1277
+ ],
1278
+ "implementationOf": {
1279
+ "type": "reference",
1280
+ "name": "OnDestroy.ngOnDestroy"
1281
+ }
1282
+ },
1283
+ {
1284
+ "id": 78,
1285
+ "name": "ngOnInit",
1286
+ "kind": 2048,
1287
+ "kindString": "Method",
1288
+ "flags": {
1289
+ "isPublic": true
1290
+ },
1291
+ "sources": [
1292
+ {
1293
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1294
+ "line": 132,
1295
+ "character": 9
1296
+ }
1297
+ ],
1298
+ "signatures": [
1299
+ {
1300
+ "id": 79,
1301
+ "name": "ngOnInit",
1302
+ "kind": 4096,
1303
+ "kindString": "Call signature",
1304
+ "flags": {},
1305
+ "type": {
1306
+ "type": "intrinsic",
1307
+ "name": "void"
1308
+ },
1309
+ "implementationOf": {
1310
+ "type": "reference",
1311
+ "name": "OnInit.ngOnInit"
1312
+ }
1313
+ }
1314
+ ],
1315
+ "implementationOf": {
1316
+ "type": "reference",
1317
+ "name": "OnInit.ngOnInit"
1318
+ }
1319
+ },
1320
+ {
1321
+ "id": 87,
1322
+ "name": "onInputBlur",
1323
+ "kind": 2048,
1324
+ "kindString": "Method",
1325
+ "flags": {
1326
+ "isPublic": true
1327
+ },
1328
+ "decorators": [
1329
+ {
1330
+ "name": "HostListener",
1331
+ "type": {
1332
+ "type": "reference",
1333
+ "name": "HostListener"
1334
+ },
1335
+ "arguments": {
1336
+ "eventName": "'blur'"
1337
+ }
1338
+ }
1339
+ ],
1340
+ "sources": [
1341
+ {
1342
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1343
+ "line": 194,
1344
+ "character": 9
1345
+ }
1346
+ ],
1347
+ "signatures": [
1348
+ {
1349
+ "id": 88,
1350
+ "name": "onInputBlur",
1351
+ "kind": 4096,
1352
+ "kindString": "Call signature",
1353
+ "flags": {},
1354
+ "comment": {
1355
+ "shortText": "Marks reactive form controls as touched on input blur events"
1356
+ },
1357
+ "type": {
1358
+ "type": "intrinsic",
1359
+ "name": "void"
1360
+ }
1361
+ }
1362
+ ]
1363
+ },
1364
+ {
1365
+ "id": 84,
1366
+ "name": "onInputChange",
1367
+ "kind": 2048,
1368
+ "kindString": "Method",
1369
+ "flags": {
1370
+ "isPublic": true
1371
+ },
1372
+ "decorators": [
1373
+ {
1374
+ "name": "HostListener",
1375
+ "type": {
1376
+ "type": "reference",
1377
+ "name": "HostListener"
1378
+ },
1379
+ "arguments": {
1380
+ "eventName": "'change'",
1381
+ "args": "['$event']"
1382
+ }
1383
+ }
1384
+ ],
1385
+ "sources": [
1386
+ {
1387
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1388
+ "line": 182,
1389
+ "character": 9
1390
+ }
1391
+ ],
1392
+ "signatures": [
1393
+ {
1394
+ "id": 85,
1395
+ "name": "onInputChange",
1396
+ "kind": 4096,
1397
+ "kindString": "Call signature",
1398
+ "flags": {},
1399
+ "comment": {
1400
+ "shortText": "Writes the new value for reactive forms on change events on the input element"
1401
+ },
1402
+ "parameters": [
1403
+ {
1404
+ "id": 86,
1405
+ "name": "event",
1406
+ "kind": 32768,
1407
+ "kindString": "Parameter",
1408
+ "flags": {},
1409
+ "comment": {
1410
+ "shortText": "The change event that was received\n"
1411
+ },
1412
+ "type": {
1413
+ "type": "intrinsic",
1414
+ "name": "any"
1415
+ }
1416
+ }
1417
+ ],
1418
+ "type": {
1419
+ "type": "intrinsic",
1420
+ "name": "void"
1421
+ }
1422
+ }
1423
+ ]
1424
+ },
1425
+ {
1426
+ "id": 89,
1427
+ "name": "onInputTyping",
1428
+ "kind": 2048,
1429
+ "kindString": "Method",
1430
+ "flags": {
1431
+ "isPublic": true
1432
+ },
1433
+ "decorators": [
1434
+ {
1435
+ "name": "HostListener",
1436
+ "type": {
1437
+ "type": "reference",
1438
+ "name": "HostListener"
1439
+ },
1440
+ "arguments": {
1441
+ "eventName": "'input'",
1442
+ "args": "['$event']"
1443
+ }
1444
+ }
1445
+ ],
1446
+ "sources": [
1447
+ {
1448
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1449
+ "line": 199,
1450
+ "character": 9
1451
+ }
1452
+ ],
1453
+ "signatures": [
1454
+ {
1455
+ "id": 90,
1456
+ "name": "onInputTyping",
1457
+ "kind": 4096,
1458
+ "kindString": "Call signature",
1459
+ "flags": {},
1460
+ "parameters": [
1461
+ {
1462
+ "id": 91,
1463
+ "name": "event",
1464
+ "kind": 32768,
1465
+ "kindString": "Parameter",
1466
+ "flags": {},
1467
+ "type": {
1468
+ "type": "intrinsic",
1469
+ "name": "any"
1470
+ }
1471
+ }
1472
+ ],
1473
+ "type": {
1474
+ "type": "intrinsic",
1475
+ "name": "void"
1476
+ }
1477
+ }
1478
+ ]
1479
+ },
1480
+ {
1481
+ "id": 95,
1482
+ "name": "registerOnChange",
1483
+ "kind": 2048,
1484
+ "kindString": "Method",
1485
+ "flags": {
1486
+ "isPublic": true
1487
+ },
1488
+ "sources": [
1489
+ {
1490
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1491
+ "line": 217,
1492
+ "character": 9
1493
+ }
1494
+ ],
1495
+ "signatures": [
1496
+ {
1497
+ "id": 96,
1498
+ "name": "registerOnChange",
1499
+ "kind": 4096,
1500
+ "kindString": "Call signature",
1501
+ "flags": {},
1502
+ "parameters": [
1503
+ {
1504
+ "id": 97,
1505
+ "name": "fn",
1506
+ "kind": 32768,
1507
+ "kindString": "Parameter",
1508
+ "flags": {},
1509
+ "type": {
1510
+ "type": "reflection",
1511
+ "declaration": {
1512
+ "id": 98,
1513
+ "name": "__type",
1514
+ "kind": 65536,
1515
+ "kindString": "Type literal",
1516
+ "flags": {},
1517
+ "signatures": [
1518
+ {
1519
+ "id": 99,
1520
+ "name": "__type",
1521
+ "kind": 4096,
1522
+ "kindString": "Call signature",
1523
+ "flags": {},
1524
+ "parameters": [
1525
+ {
1526
+ "id": 100,
1527
+ "name": "value",
1528
+ "kind": 32768,
1529
+ "kindString": "Parameter",
1530
+ "flags": {},
1531
+ "type": {
1532
+ "type": "intrinsic",
1533
+ "name": "any"
1534
+ }
1535
+ }
1536
+ ],
1537
+ "type": {
1538
+ "type": "intrinsic",
1539
+ "name": "any"
1540
+ }
1541
+ }
1542
+ ]
1543
+ }
1544
+ }
1545
+ }
1546
+ ],
1547
+ "type": {
1548
+ "type": "intrinsic",
1549
+ "name": "void"
1550
+ },
1551
+ "implementationOf": {
1552
+ "type": "reference",
1553
+ "name": "ControlValueAccessor.registerOnChange"
1554
+ }
1555
+ }
1556
+ ],
1557
+ "implementationOf": {
1558
+ "type": "reference",
1559
+ "name": "ControlValueAccessor.registerOnChange"
1560
+ }
1561
+ },
1562
+ {
1563
+ "id": 101,
1564
+ "name": "registerOnTouched",
1565
+ "kind": 2048,
1566
+ "kindString": "Method",
1567
+ "flags": {
1568
+ "isPublic": true
1569
+ },
1570
+ "sources": [
1571
+ {
1572
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1573
+ "line": 221,
1574
+ "character": 9
1575
+ }
1576
+ ],
1577
+ "signatures": [
1578
+ {
1579
+ "id": 102,
1580
+ "name": "registerOnTouched",
1581
+ "kind": 4096,
1582
+ "kindString": "Call signature",
1583
+ "flags": {},
1584
+ "parameters": [
1585
+ {
1586
+ "id": 103,
1587
+ "name": "fn",
1588
+ "kind": 32768,
1589
+ "kindString": "Parameter",
1590
+ "flags": {},
1591
+ "type": {
1592
+ "type": "reflection",
1593
+ "declaration": {
1594
+ "id": 104,
1595
+ "name": "__type",
1596
+ "kind": 65536,
1597
+ "kindString": "Type literal",
1598
+ "flags": {},
1599
+ "signatures": [
1600
+ {
1601
+ "id": 105,
1602
+ "name": "__type",
1603
+ "kind": 4096,
1604
+ "kindString": "Call signature",
1605
+ "flags": {},
1606
+ "type": {
1607
+ "type": "intrinsic",
1608
+ "name": "any"
1609
+ }
1610
+ }
1611
+ ]
1612
+ }
1613
+ }
1614
+ }
1615
+ ],
1616
+ "type": {
1617
+ "type": "intrinsic",
1618
+ "name": "void"
1619
+ },
1620
+ "implementationOf": {
1621
+ "type": "reference",
1622
+ "name": "ControlValueAccessor.registerOnTouched"
1623
+ }
1624
+ }
1625
+ ],
1626
+ "implementationOf": {
1627
+ "type": "reference",
1628
+ "name": "ControlValueAccessor.registerOnTouched"
1629
+ }
1630
+ },
1631
+ {
1632
+ "id": 106,
1633
+ "name": "registerOnValidatorChange",
1634
+ "kind": 2048,
1635
+ "kindString": "Method",
1636
+ "flags": {
1637
+ "isPublic": true
1638
+ },
1639
+ "sources": [
1640
+ {
1641
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1642
+ "line": 225,
1643
+ "character": 9
1644
+ }
1645
+ ],
1646
+ "signatures": [
1647
+ {
1648
+ "id": 107,
1649
+ "name": "registerOnValidatorChange",
1650
+ "kind": 4096,
1651
+ "kindString": "Call signature",
1652
+ "flags": {},
1653
+ "parameters": [
1654
+ {
1655
+ "id": 108,
1656
+ "name": "fn",
1657
+ "kind": 32768,
1658
+ "kindString": "Parameter",
1659
+ "flags": {},
1660
+ "type": {
1661
+ "type": "reflection",
1662
+ "declaration": {
1663
+ "id": 109,
1664
+ "name": "__type",
1665
+ "kind": 65536,
1666
+ "kindString": "Type literal",
1667
+ "flags": {},
1668
+ "signatures": [
1669
+ {
1670
+ "id": 110,
1671
+ "name": "__type",
1672
+ "kind": 4096,
1673
+ "kindString": "Call signature",
1674
+ "flags": {},
1675
+ "type": {
1676
+ "type": "intrinsic",
1677
+ "name": "void"
1678
+ }
1679
+ }
1680
+ ]
1681
+ }
1682
+ }
1683
+ }
1684
+ ],
1685
+ "type": {
1686
+ "type": "intrinsic",
1687
+ "name": "void"
1688
+ },
1689
+ "implementationOf": {
1690
+ "type": "reference",
1691
+ "name": "Validator.registerOnValidatorChange"
1692
+ }
1693
+ }
1694
+ ],
1695
+ "implementationOf": {
1696
+ "type": "reference",
1697
+ "name": "Validator.registerOnValidatorChange"
1698
+ }
1699
+ },
1700
+ {
1701
+ "id": 111,
1702
+ "name": "setDisabledState",
1703
+ "kind": 2048,
1704
+ "kindString": "Method",
1705
+ "flags": {
1706
+ "isPublic": true
1707
+ },
1708
+ "sources": [
1709
+ {
1710
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1711
+ "line": 233,
1712
+ "character": 9
1713
+ }
1714
+ ],
1715
+ "signatures": [
1716
+ {
1717
+ "id": 112,
1718
+ "name": "setDisabledState",
1719
+ "kind": 4096,
1720
+ "kindString": "Call signature",
1721
+ "flags": {},
1722
+ "comment": {
1723
+ "shortText": "Sets the disabled state on the input"
1724
+ },
1725
+ "parameters": [
1726
+ {
1727
+ "id": 113,
1728
+ "name": "isDisabled",
1729
+ "kind": 32768,
1730
+ "kindString": "Parameter",
1731
+ "flags": {},
1732
+ "comment": {
1733
+ "shortText": "the new value of the input's disabled state\n"
1734
+ },
1735
+ "type": {
1736
+ "type": "intrinsic",
1737
+ "name": "boolean"
1738
+ }
1739
+ }
1740
+ ],
1741
+ "type": {
1742
+ "type": "intrinsic",
1743
+ "name": "void"
1744
+ },
1745
+ "implementationOf": {
1746
+ "type": "reference",
1747
+ "name": "ControlValueAccessor.setDisabledState"
1748
+ }
1749
+ }
1750
+ ],
1751
+ "implementationOf": {
1752
+ "type": "reference",
1753
+ "name": "ControlValueAccessor.setDisabledState"
1754
+ }
1755
+ },
1756
+ {
1757
+ "id": 114,
1758
+ "name": "validate",
1759
+ "kind": 2048,
1760
+ "kindString": "Method",
1761
+ "flags": {
1762
+ "isPublic": true
1763
+ },
1764
+ "sources": [
1765
+ {
1766
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1767
+ "line": 241,
1768
+ "character": 9
1769
+ }
1770
+ ],
1771
+ "signatures": [
1772
+ {
1773
+ "id": 115,
1774
+ "name": "validate",
1775
+ "kind": 4096,
1776
+ "kindString": "Call signature",
1777
+ "flags": {},
1778
+ "comment": {
1779
+ "shortText": "Validate's the form control's current value"
1780
+ },
1781
+ "parameters": [
1782
+ {
1783
+ "id": 116,
1784
+ "name": "control",
1785
+ "kind": 32768,
1786
+ "kindString": "Parameter",
1787
+ "flags": {},
1788
+ "comment": {
1789
+ "shortText": "the form control for the input\n"
1790
+ },
1791
+ "type": {
1792
+ "type": "reference",
1793
+ "name": "AbstractControl"
1794
+ }
1795
+ }
1796
+ ],
1797
+ "type": {
1798
+ "type": "reference",
1799
+ "name": "ValidationErrors"
1800
+ },
1801
+ "implementationOf": {
1802
+ "type": "reference",
1803
+ "name": "Validator.validate"
1804
+ }
1805
+ }
1806
+ ],
1807
+ "implementationOf": {
1808
+ "type": "reference",
1809
+ "name": "Validator.validate"
1810
+ }
1811
+ },
1812
+ {
1813
+ "id": 92,
1814
+ "name": "writeValue",
1815
+ "kind": 2048,
1816
+ "kindString": "Method",
1817
+ "flags": {
1818
+ "isPublic": true
1819
+ },
1820
+ "sources": [
1821
+ {
1822
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1823
+ "line": 211,
1824
+ "character": 9
1825
+ }
1826
+ ],
1827
+ "signatures": [
1828
+ {
1829
+ "id": 93,
1830
+ "name": "writeValue",
1831
+ "kind": 4096,
1832
+ "kindString": "Call signature",
1833
+ "flags": {},
1834
+ "comment": {
1835
+ "shortText": "Writes the new value for reactive forms"
1836
+ },
1837
+ "parameters": [
1838
+ {
1839
+ "id": 94,
1840
+ "name": "value",
1841
+ "kind": 32768,
1842
+ "kindString": "Parameter",
1843
+ "flags": {},
1844
+ "comment": {
1845
+ "shortText": "The new value for the input\n"
1846
+ },
1847
+ "type": {
1848
+ "type": "intrinsic",
1849
+ "name": "string"
1850
+ }
1851
+ }
1852
+ ],
1853
+ "type": {
1854
+ "type": "intrinsic",
1855
+ "name": "void"
1856
+ },
1857
+ "implementationOf": {
1858
+ "type": "reference",
1859
+ "name": "ControlValueAccessor.writeValue"
1860
+ }
1861
+ }
1862
+ ],
1863
+ "implementationOf": {
1864
+ "type": "reference",
1865
+ "name": "ControlValueAccessor.writeValue"
1866
+ }
1867
+ }
1868
+ ],
1869
+ "groups": [
1870
+ {
1871
+ "title": "Constructors",
1872
+ "kind": 512,
1873
+ "children": [
1874
+ 57
1875
+ ]
1876
+ },
1877
+ {
1878
+ "title": "Properties",
1879
+ "kind": 1024,
1880
+ "children": [
1881
+ 67
1882
+ ]
1883
+ },
1884
+ {
1885
+ "title": "Accessors",
1886
+ "kind": 262144,
1887
+ "children": [
1888
+ 63
1889
+ ]
1890
+ },
1891
+ {
1892
+ "title": "Methods",
1893
+ "kind": 2048,
1894
+ "children": [
1895
+ 80,
1896
+ 82,
1897
+ 78,
1898
+ 87,
1899
+ 84,
1900
+ 89,
1901
+ 95,
1902
+ 101,
1903
+ 106,
1904
+ 111,
1905
+ 114,
1906
+ 92
1907
+ ]
1908
+ }
1909
+ ],
1910
+ "sources": [
1911
+ {
1912
+ "fileName": "projects/phone-field/src/modules/phone-field/phone-field-input.directive.ts",
1913
+ "line": 66,
1914
+ "character": 13
1915
+ }
1916
+ ],
1917
+ "implementedTypes": [
1918
+ {
1919
+ "type": "reference",
1920
+ "name": "OnInit"
1921
+ },
1922
+ {
1923
+ "type": "reference",
1924
+ "name": "OnDestroy"
1925
+ },
1926
+ {
1927
+ "type": "reference",
1928
+ "name": "AfterViewInit"
1929
+ },
1930
+ {
1931
+ "type": "reference",
1932
+ "name": "ControlValueAccessor"
1933
+ },
1934
+ {
1935
+ "type": "reference",
1936
+ "name": "Validator"
1937
+ }
1938
+ ]
1939
+ },
1940
+ {
1941
+ "id": 136,
1942
+ "name": "SkyPhoneFieldCountry",
1943
+ "kind": 256,
1944
+ "kindString": "Interface",
1945
+ "flags": {},
1946
+ "children": [
1947
+ {
1948
+ "id": 138,
1949
+ "name": "dialCode",
1950
+ "kind": 1024,
1951
+ "kindString": "Property",
1952
+ "flags": {
1953
+ "isOptional": true
1954
+ },
1955
+ "comment": {
1956
+ "shortText": "Specifies the country's international dial code."
1957
+ },
1958
+ "sources": [
1959
+ {
1960
+ "fileName": "projects/phone-field/src/modules/phone-field/types/country.ts",
1961
+ "line": 12,
1962
+ "character": 2
1963
+ }
1964
+ ],
1965
+ "type": {
1966
+ "type": "intrinsic",
1967
+ "name": "string"
1968
+ }
1969
+ },
1970
+ {
1971
+ "id": 139,
1972
+ "name": "exampleNumber",
1973
+ "kind": 1024,
1974
+ "kindString": "Property",
1975
+ "flags": {
1976
+ "isOptional": true
1977
+ },
1978
+ "comment": {
1979
+ "shortText": "Specifies a placeholder value to demonstrate the country's number format. This\nvalue is `undefined` until a country is selected to validate against."
1980
+ },
1981
+ "sources": [
1982
+ {
1983
+ "fileName": "projects/phone-field/src/modules/phone-field/types/country.ts",
1984
+ "line": 17,
1985
+ "character": 2
1986
+ }
1987
+ ],
1988
+ "type": {
1989
+ "type": "intrinsic",
1990
+ "name": "string"
1991
+ }
1992
+ },
1993
+ {
1994
+ "id": 137,
1995
+ "name": "iso2",
1996
+ "kind": 1024,
1997
+ "kindString": "Property",
1998
+ "flags": {},
1999
+ "comment": {
2000
+ "shortText": "Specifies the country's\n[International Organization for Standardization Alpha 2](https://www.nationsonline.org/oneworld/country_code_list.htm)\ncountry code.",
2001
+ "tags": [
2002
+ {
2003
+ "tag": "required",
2004
+ "text": "\n"
2005
+ }
2006
+ ]
2007
+ },
2008
+ "sources": [
2009
+ {
2010
+ "fileName": "projects/phone-field/src/modules/phone-field/types/country.ts",
2011
+ "line": 8,
2012
+ "character": 2
2013
+ }
2014
+ ],
2015
+ "type": {
2016
+ "type": "intrinsic",
2017
+ "name": "string"
2018
+ }
2019
+ },
2020
+ {
2021
+ "id": 140,
2022
+ "name": "name",
2023
+ "kind": 1024,
2024
+ "kindString": "Property",
2025
+ "flags": {
2026
+ "isOptional": true
2027
+ },
2028
+ "comment": {
2029
+ "shortText": "Specifies the name of the country."
2030
+ },
2031
+ "sources": [
2032
+ {
2033
+ "fileName": "projects/phone-field/src/modules/phone-field/types/country.ts",
2034
+ "line": 21,
2035
+ "character": 2
2036
+ }
2037
+ ],
2038
+ "type": {
2039
+ "type": "intrinsic",
2040
+ "name": "string"
2041
+ }
2042
+ }
2043
+ ],
2044
+ "groups": [
2045
+ {
2046
+ "title": "Properties",
2047
+ "kind": 1024,
2048
+ "children": [
2049
+ 138,
2050
+ 139,
2051
+ 137,
2052
+ 140
2053
+ ]
2054
+ }
2055
+ ],
2056
+ "sources": [
2057
+ {
2058
+ "fileName": "projects/phone-field/src/modules/phone-field/types/country.ts",
2059
+ "line": 1,
2060
+ "character": 17
2061
+ }
2062
+ ]
2063
+ },
2064
+ {
2065
+ "id": 143,
2066
+ "name": "SkyPhoneFieldNumberReturnFormat",
2067
+ "kind": 4194304,
2068
+ "kindString": "Type alias",
2069
+ "flags": {},
2070
+ "comment": {
2071
+ "shortText": "Represents the format for validated phone numbers. `default` returns the national format for the\ndefault country, `national` returns the national format for all countries, and `international`\nreturns the international format for all countries."
2072
+ },
2073
+ "sources": [
2074
+ {
2075
+ "fileName": "projects/phone-field/src/modules/phone-field/types/number-return-format.ts",
2076
+ "line": 6,
2077
+ "character": 12
2078
+ }
2079
+ ],
2080
+ "type": {
2081
+ "type": "union",
2082
+ "types": [
2083
+ {
2084
+ "type": "literal",
2085
+ "value": "default"
2086
+ },
2087
+ {
2088
+ "type": "literal",
2089
+ "value": "international"
2090
+ },
2091
+ {
2092
+ "type": "literal",
2093
+ "value": "national"
2094
+ }
2095
+ ]
2096
+ }
2097
+ }
2098
+ ],
2099
+ "groups": [
2100
+ {
2101
+ "title": "Classes",
2102
+ "kind": 128,
2103
+ "children": [
2104
+ 133,
2105
+ 1,
2106
+ 56
2107
+ ]
2108
+ },
2109
+ {
2110
+ "title": "Interfaces",
2111
+ "kind": 256,
2112
+ "children": [
2113
+ 136
2114
+ ]
2115
+ },
2116
+ {
2117
+ "title": "Type aliases",
2118
+ "kind": 4194304,
2119
+ "children": [
2120
+ 143
2121
+ ]
2122
+ }
2123
+ ],
2124
+ "sources": [
2125
+ {
2126
+ "fileName": "projects/phone-field/src/public-api.ts",
2127
+ "line": 1,
2128
+ "character": 0
2129
+ }
2130
+ ]
2131
+ },
2132
+ "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
+ {
2139
+ "fileName": "phone-field-demo.component.html",
2140
+ "filePath": "/projects/phone-field/documentation/code-examples/phone-field/basic/phone-field-demo.component.html",
2141
+ "rawContents": "<form class=\"phone-field-demo\" [formGroup]=\"phoneForm\">\n <sky-input-box>\n <sky-phone-field [defaultCountry]=\"'us'\">\n <input formControlName=\"phoneControl\" skyPhoneFieldInput />\n </sky-phone-field>\n </sky-input-box>\n\n <sky-status-indicator\n *ngIf=\"!phoneControl.valid\"\n descriptionType=\"none\"\n indicatorType=\"danger\"\n >\n Enter a phone number matching the format for the selected country.\n </sky-status-indicator>\n</form>\n"
2142
+ },
2143
+ {
2144
+ "fileName": "phone-field-demo.component.scss",
2145
+ "filePath": "/projects/phone-field/documentation/code-examples/phone-field/basic/phone-field-demo.component.scss",
2146
+ "rawContents": ".phone-field-demo {\n width: 50%;\n\n &.ng-valid ::ng-deep .sky-phone-field {\n margin-bottom: 0;\n }\n}\n"
2147
+ },
2148
+ {
2149
+ "fileName": "phone-field-demo.component.ts",
2150
+ "filePath": "/projects/phone-field/documentation/code-examples/phone-field/basic/phone-field-demo.component.ts",
2151
+ "rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormControl, FormGroup } from '@angular/forms';\n\n@Component({\n selector: 'app-phone-field-demo',\n templateUrl: './phone-field-demo.component.html',\n styleUrls: ['./phone-field-demo.component.scss'],\n})\nexport class PhoneFieldDemoComponent implements OnInit {\n public phoneControl: FormControl;\n\n public phoneForm: FormGroup;\n\n public ngOnInit(): void {\n this.phoneControl = new FormControl();\n this.phoneForm = new FormGroup({\n phoneControl: this.phoneControl,\n });\n }\n}\n"
2152
+ },
2153
+ {
2154
+ "fileName": "phone-field-demo.module.ts",
2155
+ "filePath": "/projects/phone-field/documentation/code-examples/phone-field/basic/phone-field-demo.module.ts",
2156
+ "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
+ }
2158
+ ]
2159
+ }