@skyux/avatar 12.0.0-alpha.12 → 12.0.0-alpha.13

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 (2) hide show
  1. package/package.json +19 -22
  2. package/documentation.json +0 -2062
@@ -1,2062 +0,0 @@
1
- {
2
- "anchorIds": {
3
- "SkyAvatarModule": "class-skyavatarmodule",
4
- "SkyAvatarComponent": "class-skyavatarcomponent",
5
- "SkyAvatarSize": "type-alias-skyavatarsize",
6
- "SkyAvatarSrc": "type-alias-skyavatarsrc",
7
- "SkyAvatarHarness": "class-skyavatarharness",
8
- "SkyAvatarHarnessFilters": "interface-skyavatarharnessfilters"
9
- },
10
- "typedoc": {
11
- "id": 0,
12
- "name": "@skyux/avatar",
13
- "variant": "project",
14
- "kind": 1,
15
- "flags": {},
16
- "children": [
17
- {
18
- "id": 5,
19
- "name": "SkyAvatarModule",
20
- "variant": "declaration",
21
- "kind": 128,
22
- "flags": {},
23
- "children": [],
24
- "groups": [
25
- {
26
- "title": "Constructors",
27
- "children": [
28
- 6
29
- ]
30
- }
31
- ],
32
- "sources": [
33
- {
34
- "fileName": "projects/avatar/src/modules/avatar/avatar.module.ts",
35
- "line": 24,
36
- "character": 13,
37
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.module.ts#L24"
38
- }
39
- ],
40
- "decorators": [
41
- {
42
- "name": "NgModule",
43
- "arguments": {
44
- "obj": "@NgModule({\n declarations: [SkyAvatarInnerComponent, SkyAvatarComponent],\n imports: [\n CommonModule,\n SkyAvatarResourcesModule,\n SkyErrorModule,\n SkyFileAttachmentsModule,\n SkyThemeModule,\n ],\n providers: [SkyFileSizePipe],\n exports: [SkyAvatarComponent],\n})"
45
- }
46
- }
47
- ]
48
- },
49
- {
50
- "id": 8,
51
- "name": "SkyAvatarComponent",
52
- "variant": "declaration",
53
- "kind": 128,
54
- "flags": {},
55
- "children": [
56
- {
57
- "id": 9,
58
- "name": "constructor",
59
- "variant": "declaration",
60
- "kind": 512,
61
- "flags": {},
62
- "sources": [
63
- {
64
- "fileName": "projects/avatar/src/modules/avatar/avatar.component.ts",
65
- "line": 110,
66
- "character": 2,
67
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L110"
68
- }
69
- ],
70
- "signatures": [
71
- {
72
- "id": 10,
73
- "name": "SkyAvatarComponent",
74
- "variant": "signature",
75
- "kind": 16384,
76
- "flags": {},
77
- "sources": [
78
- {
79
- "fileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
80
- "line": 110,
81
- "character": 2,
82
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L110"
83
- }
84
- ],
85
- "parameters": [
86
- {
87
- "id": 11,
88
- "name": "errorService",
89
- "variant": "param",
90
- "kind": 32768,
91
- "flags": {},
92
- "type": {
93
- "type": "reference",
94
- "target": {
95
- "sourceFileName": "libs/components/errors/src/lib/modules/error/error-modal.service.ts",
96
- "qualifiedName": "SkyErrorModalService"
97
- },
98
- "name": "SkyErrorModalService",
99
- "package": "@skyux/errors"
100
- }
101
- },
102
- {
103
- "id": 12,
104
- "name": "fileSizePipe",
105
- "variant": "param",
106
- "kind": 32768,
107
- "flags": {},
108
- "type": {
109
- "type": "reference",
110
- "target": {
111
- "sourceFileName": "libs/components/forms/src/lib/modules/file-attachment/shared/file-size.pipe.ts",
112
- "qualifiedName": "SkyFileSizePipe"
113
- },
114
- "name": "SkyFileSizePipe",
115
- "package": "@skyux/forms"
116
- }
117
- },
118
- {
119
- "id": 13,
120
- "name": "resourcesService",
121
- "variant": "param",
122
- "kind": 32768,
123
- "flags": {},
124
- "type": {
125
- "type": "reference",
126
- "target": {
127
- "sourceFileName": "libs/components/i18n/src/lib/modules/i18n/lib-resources.service.ts",
128
- "qualifiedName": "SkyLibResourcesService"
129
- },
130
- "name": "SkyLibResourcesService",
131
- "package": "@skyux/i18n"
132
- }
133
- }
134
- ],
135
- "type": {
136
- "type": "reference",
137
- "target": 8,
138
- "name": "SkyAvatarComponent",
139
- "package": "@skyux/avatar"
140
- }
141
- }
142
- ]
143
- },
144
- {
145
- "id": 28,
146
- "name": "avatarChanged",
147
- "variant": "declaration",
148
- "kind": 1024,
149
- "flags": {
150
- "isPublic": true
151
- },
152
- "comment": {
153
- "summary": [
154
- {
155
- "kind": "text",
156
- "text": "Emits a "
157
- },
158
- {
159
- "kind": "code",
160
- "text": "`SkyFileItem`"
161
- },
162
- {
163
- "kind": "text",
164
- "text": " object when the image is updated."
165
- }
166
- ]
167
- },
168
- "sources": [
169
- {
170
- "fileName": "projects/avatar/src/modules/avatar/avatar.component.ts",
171
- "line": 94,
172
- "character": 9,
173
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L94"
174
- }
175
- ],
176
- "type": {
177
- "type": "reference",
178
- "target": {
179
- "sourceFileName": "node_modules/@angular/core/index.d.ts",
180
- "qualifiedName": "EventEmitter"
181
- },
182
- "typeArguments": [
183
- {
184
- "type": "reference",
185
- "target": {
186
- "sourceFileName": "libs/components/forms/src/lib/modules/file-attachment/shared/file-item.ts",
187
- "qualifiedName": "SkyFileItem"
188
- },
189
- "name": "SkyFileItem",
190
- "package": "@skyux/forms"
191
- }
192
- ],
193
- "name": "EventEmitter",
194
- "package": "@angular/core"
195
- },
196
- "defaultValue": "...",
197
- "decorators": [
198
- {
199
- "name": "Output"
200
- }
201
- ]
202
- },
203
- {
204
- "id": 26,
205
- "name": "maxFileSize",
206
- "variant": "declaration",
207
- "kind": 1024,
208
- "flags": {
209
- "isPublic": true
210
- },
211
- "comment": {
212
- "summary": [
213
- {
214
- "kind": "text",
215
- "text": "The maximum file size for the image in bytes."
216
- }
217
- ],
218
- "blockTags": [
219
- {
220
- "tag": "@default",
221
- "content": [
222
- {
223
- "kind": "code",
224
- "text": "```ts\n512000 bytes\n```"
225
- }
226
- ]
227
- }
228
- ]
229
- },
230
- "sources": [
231
- {
232
- "fileName": "projects/avatar/src/modules/avatar/avatar.component.ts",
233
- "line": 80,
234
- "character": 9,
235
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L80"
236
- }
237
- ],
238
- "type": {
239
- "type": "intrinsic",
240
- "name": "number"
241
- },
242
- "defaultValue": "MAX_FILE_SIZE_DEFAULT",
243
- "decorators": [
244
- {
245
- "name": "Input"
246
- }
247
- ]
248
- },
249
- {
250
- "id": 27,
251
- "name": "size",
252
- "variant": "declaration",
253
- "kind": 1024,
254
- "flags": {
255
- "isPublic": true
256
- },
257
- "comment": {
258
- "summary": [
259
- {
260
- "kind": "text",
261
- "text": "The size of the avatar.\nAcceptable values are: "
262
- },
263
- {
264
- "kind": "code",
265
- "text": "`\"small\"`"
266
- },
267
- {
268
- "kind": "text",
269
- "text": ", "
270
- },
271
- {
272
- "kind": "code",
273
- "text": "`\"medium\"`"
274
- },
275
- {
276
- "kind": "text",
277
- "text": ", and "
278
- },
279
- {
280
- "kind": "code",
281
- "text": "`\"large\"`"
282
- },
283
- {
284
- "kind": "text",
285
- "text": "."
286
- }
287
- ],
288
- "blockTags": [
289
- {
290
- "tag": "@default",
291
- "content": [
292
- {
293
- "kind": "code",
294
- "text": "```ts\n\"large\"\n```"
295
- }
296
- ]
297
- }
298
- ]
299
- },
300
- "sources": [
301
- {
302
- "fileName": "projects/avatar/src/modules/avatar/avatar.component.ts",
303
- "line": 88,
304
- "character": 9,
305
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L88"
306
- }
307
- ],
308
- "type": {
309
- "type": "reference",
310
- "target": 3,
311
- "name": "SkyAvatarSize",
312
- "package": "@skyux/avatar"
313
- },
314
- "decorators": [
315
- {
316
- "name": "Input"
317
- }
318
- ]
319
- },
320
- {
321
- "id": 14,
322
- "name": "canChange",
323
- "variant": "declaration",
324
- "kind": 262144,
325
- "flags": {
326
- "isPublic": true
327
- },
328
- "sources": [
329
- {
330
- "fileName": "projects/avatar/src/modules/avatar/avatar.component.ts",
331
- "line": 37,
332
- "character": 13,
333
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L37"
334
- },
335
- {
336
- "fileName": "projects/avatar/src/modules/avatar/avatar.component.ts",
337
- "line": 41,
338
- "character": 13,
339
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L41"
340
- }
341
- ],
342
- "getSignature": {
343
- "id": 15,
344
- "name": "canChange",
345
- "variant": "signature",
346
- "kind": 524288,
347
- "flags": {},
348
- "sources": [
349
- {
350
- "fileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
351
- "line": 41,
352
- "character": 2,
353
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L41"
354
- }
355
- ],
356
- "type": {
357
- "type": "intrinsic",
358
- "name": "boolean"
359
- }
360
- },
361
- "setSignature": {
362
- "id": 16,
363
- "name": "canChange",
364
- "variant": "signature",
365
- "kind": 1048576,
366
- "flags": {},
367
- "comment": {
368
- "summary": [
369
- {
370
- "kind": "text",
371
- "text": "Whether users can change the image. To select a different image,\nusers click the image or drag another image on top of it,\nmuch like the "
372
- },
373
- {
374
- "kind": "code",
375
- "text": "`sky-file-drop`"
376
- },
377
- {
378
- "kind": "text",
379
- "text": " component in the\n[file attachment module](https://developer.blackbaud.com/skyux/components/file-attachments/file-attachment)."
380
- }
381
- ],
382
- "blockTags": [
383
- {
384
- "tag": "@default",
385
- "content": [
386
- {
387
- "kind": "code",
388
- "text": "```ts\nfalse\n```"
389
- }
390
- ]
391
- }
392
- ]
393
- },
394
- "sources": [
395
- {
396
- "fileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
397
- "line": 36,
398
- "character": 2,
399
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L36"
400
- }
401
- ],
402
- "parameters": [
403
- {
404
- "id": 17,
405
- "name": "value",
406
- "variant": "param",
407
- "kind": 32768,
408
- "flags": {},
409
- "type": {
410
- "type": "intrinsic",
411
- "name": "boolean"
412
- }
413
- }
414
- ],
415
- "type": {
416
- "type": "intrinsic",
417
- "name": "void"
418
- }
419
- },
420
- "decorators": [
421
- {
422
- "name": "Input"
423
- }
424
- ]
425
- },
426
- {
427
- "id": 18,
428
- "name": "name",
429
- "variant": "declaration",
430
- "kind": 262144,
431
- "flags": {
432
- "isPublic": true
433
- },
434
- "sources": [
435
- {
436
- "fileName": "projects/avatar/src/modules/avatar/avatar.component.ts",
437
- "line": 54,
438
- "character": 13,
439
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L54"
440
- },
441
- {
442
- "fileName": "projects/avatar/src/modules/avatar/avatar.component.ts",
443
- "line": 58,
444
- "character": 13,
445
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L58"
446
- }
447
- ],
448
- "getSignature": {
449
- "id": 19,
450
- "name": "name",
451
- "variant": "signature",
452
- "kind": 524288,
453
- "flags": {},
454
- "sources": [
455
- {
456
- "fileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
457
- "line": 58,
458
- "character": 2,
459
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L58"
460
- }
461
- ],
462
- "type": {
463
- "type": "intrinsic",
464
- "name": "string"
465
- }
466
- },
467
- "setSignature": {
468
- "id": 20,
469
- "name": "name",
470
- "variant": "signature",
471
- "kind": 1048576,
472
- "flags": {},
473
- "comment": {
474
- "summary": [
475
- {
476
- "kind": "text",
477
- "text": "The name of the record that the avatar represents.\nIf the "
478
- },
479
- {
480
- "kind": "code",
481
- "text": "`src`"
482
- },
483
- {
484
- "kind": "text",
485
- "text": " property does not specify an image, the component displays\ninitials from the first and last words in the name. To ensure\nthat the component extracts the correct initials, specify a name with no prefix\nor suffix, or just specify initials with a space between them. This property is\nnot required, but the component requires either the "
486
- },
487
- {
488
- "kind": "code",
489
- "text": "`name`"
490
- },
491
- {
492
- "kind": "text",
493
- "text": " or "
494
- },
495
- {
496
- "kind": "code",
497
- "text": "`src`"
498
- },
499
- {
500
- "kind": "text",
501
- "text": " property."
502
- }
503
- ]
504
- },
505
- "sources": [
506
- {
507
- "fileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
508
- "line": 53,
509
- "character": 2,
510
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L53"
511
- }
512
- ],
513
- "parameters": [
514
- {
515
- "id": 21,
516
- "name": "value",
517
- "variant": "param",
518
- "kind": 32768,
519
- "flags": {},
520
- "type": {
521
- "type": "intrinsic",
522
- "name": "string"
523
- }
524
- }
525
- ],
526
- "type": {
527
- "type": "intrinsic",
528
- "name": "void"
529
- }
530
- },
531
- "decorators": [
532
- {
533
- "name": "Input"
534
- }
535
- ]
536
- },
537
- {
538
- "id": 22,
539
- "name": "src",
540
- "variant": "declaration",
541
- "kind": 262144,
542
- "flags": {
543
- "isPublic": true
544
- },
545
- "sources": [
546
- {
547
- "fileName": "projects/avatar/src/modules/avatar/avatar.component.ts",
548
- "line": 67,
549
- "character": 13,
550
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L67"
551
- },
552
- {
553
- "fileName": "projects/avatar/src/modules/avatar/avatar.component.ts",
554
- "line": 71,
555
- "character": 13,
556
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L71"
557
- }
558
- ],
559
- "getSignature": {
560
- "id": 23,
561
- "name": "src",
562
- "variant": "signature",
563
- "kind": 524288,
564
- "flags": {},
565
- "sources": [
566
- {
567
- "fileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
568
- "line": 71,
569
- "character": 2,
570
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L71"
571
- }
572
- ],
573
- "type": {
574
- "type": "reference",
575
- "target": 4,
576
- "name": "SkyAvatarSrc",
577
- "package": "@skyux/avatar"
578
- }
579
- },
580
- "setSignature": {
581
- "id": 24,
582
- "name": "src",
583
- "variant": "signature",
584
- "kind": 1048576,
585
- "flags": {},
586
- "comment": {
587
- "summary": [
588
- {
589
- "kind": "text",
590
- "text": "The image to identify a record. This property is\nnot required, but the component requires either the "
591
- },
592
- {
593
- "kind": "code",
594
- "text": "`name`"
595
- },
596
- {
597
- "kind": "text",
598
- "text": " or "
599
- },
600
- {
601
- "kind": "code",
602
- "text": "`src`"
603
- },
604
- {
605
- "kind": "text",
606
- "text": " property."
607
- }
608
- ]
609
- },
610
- "sources": [
611
- {
612
- "fileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
613
- "line": 66,
614
- "character": 2,
615
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L66"
616
- }
617
- ],
618
- "parameters": [
619
- {
620
- "id": 25,
621
- "name": "value",
622
- "variant": "param",
623
- "kind": 32768,
624
- "flags": {},
625
- "type": {
626
- "type": "reference",
627
- "target": 4,
628
- "name": "SkyAvatarSrc",
629
- "package": "@skyux/avatar"
630
- }
631
- }
632
- ],
633
- "type": {
634
- "type": "intrinsic",
635
- "name": "void"
636
- }
637
- },
638
- "decorators": [
639
- {
640
- "name": "Input"
641
- }
642
- ]
643
- },
644
- {
645
- "id": 37,
646
- "name": "photoDrop",
647
- "variant": "declaration",
648
- "kind": 2048,
649
- "flags": {
650
- "isPublic": true
651
- },
652
- "sources": [
653
- {
654
- "fileName": "projects/avatar/src/modules/avatar/avatar.component.ts",
655
- "line": 125,
656
- "character": 9,
657
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L125"
658
- }
659
- ],
660
- "signatures": [
661
- {
662
- "id": 38,
663
- "name": "photoDrop",
664
- "variant": "signature",
665
- "kind": 4096,
666
- "flags": {},
667
- "sources": [
668
- {
669
- "fileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
670
- "line": 125,
671
- "character": 2,
672
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L125"
673
- }
674
- ],
675
- "parameters": [
676
- {
677
- "id": 39,
678
- "name": "result",
679
- "variant": "param",
680
- "kind": 32768,
681
- "flags": {},
682
- "type": {
683
- "type": "reference",
684
- "target": {
685
- "sourceFileName": "libs/components/forms/src/lib/modules/file-attachment/file-drop/file-drop-change.ts",
686
- "qualifiedName": "SkyFileDropChange"
687
- },
688
- "name": "SkyFileDropChange",
689
- "package": "@skyux/forms"
690
- }
691
- }
692
- ],
693
- "type": {
694
- "type": "intrinsic",
695
- "name": "void"
696
- }
697
- }
698
- ],
699
- "decorators": []
700
- }
701
- ],
702
- "groups": [
703
- {
704
- "title": "Constructors",
705
- "children": [
706
- 9
707
- ]
708
- },
709
- {
710
- "title": "Properties",
711
- "children": [
712
- 28,
713
- 26,
714
- 27
715
- ]
716
- },
717
- {
718
- "title": "Accessors",
719
- "children": [
720
- 14,
721
- 18,
722
- 22
723
- ]
724
- },
725
- {
726
- "title": "Methods",
727
- "children": [
728
- 37
729
- ]
730
- }
731
- ],
732
- "sources": [
733
- {
734
- "fileName": "projects/avatar/src/modules/avatar/avatar.component.ts",
735
- "line": 28,
736
- "character": 13,
737
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar.component.ts#L28"
738
- }
739
- ],
740
- "decorators": [
741
- {
742
- "name": "Component",
743
- "arguments": {
744
- "obj": "@Component({\n selector: 'sky-avatar',\n templateUrl: './avatar.component.html',\n styleUrls: ['./avatar.component.scss'],\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})"
745
- }
746
- }
747
- ]
748
- },
749
- {
750
- "id": 3,
751
- "name": "SkyAvatarSize",
752
- "variant": "declaration",
753
- "kind": 4194304,
754
- "flags": {},
755
- "sources": [
756
- {
757
- "fileName": "projects/avatar/src/modules/avatar/avatar-size.ts",
758
- "line": 1,
759
- "character": 12,
760
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar-size.ts#L1"
761
- }
762
- ],
763
- "type": {
764
- "type": "union",
765
- "types": [
766
- {
767
- "type": "literal",
768
- "value": "large"
769
- },
770
- {
771
- "type": "literal",
772
- "value": "medium"
773
- },
774
- {
775
- "type": "literal",
776
- "value": "small"
777
- }
778
- ]
779
- }
780
- },
781
- {
782
- "id": 4,
783
- "name": "SkyAvatarSrc",
784
- "variant": "declaration",
785
- "kind": 4194304,
786
- "flags": {},
787
- "sources": [
788
- {
789
- "fileName": "projects/avatar/src/modules/avatar/avatar-src.ts",
790
- "line": 1,
791
- "character": 12,
792
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/src/lib/modules/avatar/avatar-src.ts#L1"
793
- }
794
- ],
795
- "type": {
796
- "type": "union",
797
- "types": [
798
- {
799
- "type": "intrinsic",
800
- "name": "string"
801
- },
802
- {
803
- "type": "reference",
804
- "target": {
805
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.dom.d.ts",
806
- "qualifiedName": "Blob"
807
- },
808
- "name": "Blob",
809
- "package": "typescript"
810
- },
811
- {
812
- "type": "reference",
813
- "target": {
814
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.dom.d.ts",
815
- "qualifiedName": "File"
816
- },
817
- "name": "File",
818
- "package": "typescript"
819
- }
820
- ]
821
- }
822
- },
823
- {
824
- "id": 63,
825
- "name": "SkyAvatarHarness",
826
- "variant": "declaration",
827
- "kind": 128,
828
- "flags": {},
829
- "comment": {
830
- "summary": [
831
- {
832
- "kind": "text",
833
- "text": "Harness for interacting with an avatar component in tests."
834
- }
835
- ]
836
- },
837
- "children": [
838
- {
839
- "id": 73,
840
- "name": "constructor",
841
- "variant": "declaration",
842
- "kind": 512,
843
- "flags": {},
844
- "sources": [
845
- {
846
- "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
847
- "line": 38,
848
- "character": 4
849
- }
850
- ],
851
- "signatures": [
852
- {
853
- "id": 74,
854
- "name": "new SkyAvatarHarness",
855
- "variant": "signature",
856
- "kind": 16384,
857
- "flags": {},
858
- "sources": [
859
- {
860
- "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
861
- "line": 38,
862
- "character": 4
863
- }
864
- ],
865
- "parameters": [
866
- {
867
- "id": 75,
868
- "name": "locatorFactory",
869
- "variant": "param",
870
- "kind": 32768,
871
- "flags": {},
872
- "type": {
873
- "type": "reference",
874
- "target": {
875
- "sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
876
- "qualifiedName": "LocatorFactory"
877
- },
878
- "name": "LocatorFactory",
879
- "package": "@angular/cdk"
880
- }
881
- }
882
- ],
883
- "type": {
884
- "type": "reference",
885
- "target": 63,
886
- "name": "SkyAvatarHarness",
887
- "package": "@skyux/avatar"
888
- },
889
- "inheritedFrom": {
890
- "type": "reference",
891
- "target": -1,
892
- "name": "SkyComponentHarness.constructor"
893
- }
894
- }
895
- ],
896
- "inheritedFrom": {
897
- "type": "reference",
898
- "target": -1,
899
- "name": "SkyComponentHarness.constructor"
900
- }
901
- },
902
- {
903
- "id": 93,
904
- "name": "closeError",
905
- "variant": "declaration",
906
- "kind": 2048,
907
- "flags": {
908
- "isPublic": true
909
- },
910
- "sources": [
911
- {
912
- "fileName": "projects/avatar/src/testing/modules/avatar/avatar-harness.ts",
913
- "line": 116,
914
- "character": 15,
915
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L116"
916
- }
917
- ],
918
- "signatures": [
919
- {
920
- "id": 94,
921
- "name": "closeError",
922
- "variant": "signature",
923
- "kind": 4096,
924
- "flags": {},
925
- "comment": {
926
- "summary": [
927
- {
928
- "kind": "text",
929
- "text": "Closes the currently displayed error."
930
- }
931
- ]
932
- },
933
- "sources": [
934
- {
935
- "fileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
936
- "line": 116,
937
- "character": 2,
938
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L116"
939
- }
940
- ],
941
- "type": {
942
- "type": "reference",
943
- "target": {
944
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.es5.d.ts",
945
- "qualifiedName": "Promise"
946
- },
947
- "typeArguments": [
948
- {
949
- "type": "intrinsic",
950
- "name": "void"
951
- }
952
- ],
953
- "name": "Promise",
954
- "package": "typescript"
955
- }
956
- }
957
- ],
958
- "decorators": []
959
- },
960
- {
961
- "id": 85,
962
- "name": "dropAvatarFile",
963
- "variant": "declaration",
964
- "kind": 2048,
965
- "flags": {
966
- "isPublic": true
967
- },
968
- "sources": [
969
- {
970
- "fileName": "projects/avatar/src/testing/modules/avatar/avatar-harness.ts",
971
- "line": 76,
972
- "character": 15,
973
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L76"
974
- }
975
- ],
976
- "signatures": [
977
- {
978
- "id": 86,
979
- "name": "dropAvatarFile",
980
- "variant": "signature",
981
- "kind": 4096,
982
- "flags": {},
983
- "comment": {
984
- "summary": [
985
- {
986
- "kind": "text",
987
- "text": "Simulates the user selecting or dropping an image onto the component."
988
- }
989
- ]
990
- },
991
- "sources": [
992
- {
993
- "fileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
994
- "line": 76,
995
- "character": 2,
996
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L76"
997
- }
998
- ],
999
- "parameters": [
1000
- {
1001
- "id": 87,
1002
- "name": "file",
1003
- "variant": "param",
1004
- "kind": 32768,
1005
- "flags": {},
1006
- "type": {
1007
- "type": "reference",
1008
- "target": {
1009
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.dom.d.ts",
1010
- "qualifiedName": "File"
1011
- },
1012
- "name": "File",
1013
- "package": "typescript"
1014
- }
1015
- },
1016
- {
1017
- "id": 88,
1018
- "name": "waitForChange",
1019
- "variant": "param",
1020
- "kind": 32768,
1021
- "flags": {
1022
- "isOptional": true
1023
- },
1024
- "type": {
1025
- "type": "intrinsic",
1026
- "name": "boolean"
1027
- }
1028
- }
1029
- ],
1030
- "type": {
1031
- "type": "reference",
1032
- "target": {
1033
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.es5.d.ts",
1034
- "qualifiedName": "Promise"
1035
- },
1036
- "typeArguments": [
1037
- {
1038
- "type": "intrinsic",
1039
- "name": "void"
1040
- }
1041
- ],
1042
- "name": "Promise",
1043
- "package": "typescript"
1044
- }
1045
- }
1046
- ],
1047
- "decorators": []
1048
- },
1049
- {
1050
- "id": 83,
1051
- "name": "getCanChange",
1052
- "variant": "declaration",
1053
- "kind": 2048,
1054
- "flags": {
1055
- "isPublic": true
1056
- },
1057
- "sources": [
1058
- {
1059
- "fileName": "projects/avatar/src/testing/modules/avatar/avatar-harness.ts",
1060
- "line": 69,
1061
- "character": 15,
1062
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L69"
1063
- }
1064
- ],
1065
- "signatures": [
1066
- {
1067
- "id": 84,
1068
- "name": "getCanChange",
1069
- "variant": "signature",
1070
- "kind": 4096,
1071
- "flags": {},
1072
- "comment": {
1073
- "summary": [
1074
- {
1075
- "kind": "text",
1076
- "text": "Gets whether users can change the image."
1077
- }
1078
- ]
1079
- },
1080
- "sources": [
1081
- {
1082
- "fileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1083
- "line": 69,
1084
- "character": 2,
1085
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L69"
1086
- }
1087
- ],
1088
- "type": {
1089
- "type": "reference",
1090
- "target": {
1091
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.es5.d.ts",
1092
- "qualifiedName": "Promise"
1093
- },
1094
- "typeArguments": [
1095
- {
1096
- "type": "intrinsic",
1097
- "name": "boolean"
1098
- }
1099
- ],
1100
- "name": "Promise",
1101
- "package": "typescript"
1102
- }
1103
- }
1104
- ],
1105
- "decorators": []
1106
- },
1107
- {
1108
- "id": 79,
1109
- "name": "getInitials",
1110
- "variant": "declaration",
1111
- "kind": 2048,
1112
- "flags": {
1113
- "isPublic": true
1114
- },
1115
- "sources": [
1116
- {
1117
- "fileName": "projects/avatar/src/testing/modules/avatar/avatar-harness.ts",
1118
- "line": 43,
1119
- "character": 15,
1120
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L43"
1121
- }
1122
- ],
1123
- "signatures": [
1124
- {
1125
- "id": 80,
1126
- "name": "getInitials",
1127
- "variant": "signature",
1128
- "kind": 4096,
1129
- "flags": {},
1130
- "comment": {
1131
- "summary": [
1132
- {
1133
- "kind": "text",
1134
- "text": "Gets the initials displayed when no image URL is specified."
1135
- }
1136
- ]
1137
- },
1138
- "sources": [
1139
- {
1140
- "fileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1141
- "line": 43,
1142
- "character": 2,
1143
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L43"
1144
- }
1145
- ],
1146
- "type": {
1147
- "type": "reference",
1148
- "target": {
1149
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.es5.d.ts",
1150
- "qualifiedName": "Promise"
1151
- },
1152
- "typeArguments": [
1153
- {
1154
- "type": "intrinsic",
1155
- "name": "string"
1156
- }
1157
- ],
1158
- "name": "Promise",
1159
- "package": "typescript"
1160
- }
1161
- }
1162
- ],
1163
- "decorators": []
1164
- },
1165
- {
1166
- "id": 81,
1167
- "name": "getSrc",
1168
- "variant": "declaration",
1169
- "kind": 2048,
1170
- "flags": {
1171
- "isPublic": true
1172
- },
1173
- "sources": [
1174
- {
1175
- "fileName": "projects/avatar/src/testing/modules/avatar/avatar-harness.ts",
1176
- "line": 56,
1177
- "character": 15,
1178
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L56"
1179
- }
1180
- ],
1181
- "signatures": [
1182
- {
1183
- "id": 82,
1184
- "name": "getSrc",
1185
- "variant": "signature",
1186
- "kind": 4096,
1187
- "flags": {},
1188
- "comment": {
1189
- "summary": [
1190
- {
1191
- "kind": "text",
1192
- "text": "Gets the avatar's current image URL or Blob."
1193
- }
1194
- ]
1195
- },
1196
- "sources": [
1197
- {
1198
- "fileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1199
- "line": 56,
1200
- "character": 2,
1201
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L56"
1202
- }
1203
- ],
1204
- "type": {
1205
- "type": "reference",
1206
- "target": {
1207
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.es5.d.ts",
1208
- "qualifiedName": "Promise"
1209
- },
1210
- "typeArguments": [
1211
- {
1212
- "type": "union",
1213
- "types": [
1214
- {
1215
- "type": "intrinsic",
1216
- "name": "string"
1217
- },
1218
- {
1219
- "type": "reference",
1220
- "target": {
1221
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.dom.d.ts",
1222
- "qualifiedName": "Blob"
1223
- },
1224
- "name": "Blob",
1225
- "package": "typescript"
1226
- }
1227
- ]
1228
- }
1229
- ],
1230
- "name": "Promise",
1231
- "package": "typescript"
1232
- }
1233
- }
1234
- ],
1235
- "decorators": []
1236
- },
1237
- {
1238
- "id": 89,
1239
- "name": "hasFileTypeError",
1240
- "variant": "declaration",
1241
- "kind": 2048,
1242
- "flags": {
1243
- "isPublic": true
1244
- },
1245
- "sources": [
1246
- {
1247
- "fileName": "projects/avatar/src/testing/modules/avatar/avatar-harness.ts",
1248
- "line": 98,
1249
- "character": 15,
1250
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L98"
1251
- }
1252
- ],
1253
- "signatures": [
1254
- {
1255
- "id": 90,
1256
- "name": "hasFileTypeError",
1257
- "variant": "signature",
1258
- "kind": 4096,
1259
- "flags": {},
1260
- "comment": {
1261
- "summary": [
1262
- {
1263
- "kind": "text",
1264
- "text": "Gets whether an error indicating an invalid file type is displayed."
1265
- }
1266
- ]
1267
- },
1268
- "sources": [
1269
- {
1270
- "fileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1271
- "line": 98,
1272
- "character": 2,
1273
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L98"
1274
- }
1275
- ],
1276
- "type": {
1277
- "type": "reference",
1278
- "target": {
1279
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.es5.d.ts",
1280
- "qualifiedName": "Promise"
1281
- },
1282
- "typeArguments": [
1283
- {
1284
- "type": "intrinsic",
1285
- "name": "boolean"
1286
- }
1287
- ],
1288
- "name": "Promise",
1289
- "package": "typescript"
1290
- }
1291
- }
1292
- ],
1293
- "decorators": []
1294
- },
1295
- {
1296
- "id": 91,
1297
- "name": "hasMaxSizeError",
1298
- "variant": "declaration",
1299
- "kind": 2048,
1300
- "flags": {
1301
- "isPublic": true
1302
- },
1303
- "sources": [
1304
- {
1305
- "fileName": "projects/avatar/src/testing/modules/avatar/avatar-harness.ts",
1306
- "line": 107,
1307
- "character": 15,
1308
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L107"
1309
- }
1310
- ],
1311
- "signatures": [
1312
- {
1313
- "id": 92,
1314
- "name": "hasMaxSizeError",
1315
- "variant": "signature",
1316
- "kind": 4096,
1317
- "flags": {},
1318
- "comment": {
1319
- "summary": [
1320
- {
1321
- "kind": "text",
1322
- "text": "Gets whether an error indicating an invalid file size is displayed."
1323
- }
1324
- ]
1325
- },
1326
- "sources": [
1327
- {
1328
- "fileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1329
- "line": 107,
1330
- "character": 2,
1331
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L107"
1332
- }
1333
- ],
1334
- "type": {
1335
- "type": "reference",
1336
- "target": {
1337
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.es5.d.ts",
1338
- "qualifiedName": "Promise"
1339
- },
1340
- "typeArguments": [
1341
- {
1342
- "type": "intrinsic",
1343
- "name": "boolean"
1344
- }
1345
- ],
1346
- "name": "Promise",
1347
- "package": "typescript"
1348
- }
1349
- }
1350
- ],
1351
- "decorators": []
1352
- },
1353
- {
1354
- "id": 104,
1355
- "name": "host",
1356
- "variant": "declaration",
1357
- "kind": 2048,
1358
- "flags": {},
1359
- "sources": [
1360
- {
1361
- "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
1362
- "line": 40,
1363
- "character": 4
1364
- }
1365
- ],
1366
- "signatures": [
1367
- {
1368
- "id": 105,
1369
- "name": "host",
1370
- "variant": "signature",
1371
- "kind": 4096,
1372
- "flags": {},
1373
- "comment": {
1374
- "summary": [
1375
- {
1376
- "kind": "text",
1377
- "text": "Gets a "
1378
- },
1379
- {
1380
- "kind": "code",
1381
- "text": "`Promise`"
1382
- },
1383
- {
1384
- "kind": "text",
1385
- "text": " for the "
1386
- },
1387
- {
1388
- "kind": "code",
1389
- "text": "`TestElement`"
1390
- },
1391
- {
1392
- "kind": "text",
1393
- "text": " representing the host element of the component."
1394
- }
1395
- ]
1396
- },
1397
- "sources": [
1398
- {
1399
- "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
1400
- "line": 40,
1401
- "character": 4
1402
- }
1403
- ],
1404
- "type": {
1405
- "type": "reference",
1406
- "target": {
1407
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.es5.d.ts",
1408
- "qualifiedName": "Promise"
1409
- },
1410
- "typeArguments": [
1411
- {
1412
- "type": "reference",
1413
- "target": {
1414
- "sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
1415
- "qualifiedName": "TestElement"
1416
- },
1417
- "name": "TestElement",
1418
- "package": "@angular/cdk"
1419
- }
1420
- ],
1421
- "name": "Promise",
1422
- "package": "typescript"
1423
- },
1424
- "inheritedFrom": {
1425
- "type": "reference",
1426
- "target": -1,
1427
- "name": "SkyComponentHarness.host"
1428
- }
1429
- }
1430
- ],
1431
- "inheritedFrom": {
1432
- "type": "reference",
1433
- "target": -1,
1434
- "name": "SkyComponentHarness.host"
1435
- }
1436
- },
1437
- {
1438
- "id": 65,
1439
- "name": "with",
1440
- "variant": "declaration",
1441
- "kind": 2048,
1442
- "flags": {
1443
- "isPublic": true,
1444
- "isStatic": true
1445
- },
1446
- "sources": [
1447
- {
1448
- "fileName": "projects/avatar/src/testing/modules/avatar/avatar-harness.ts",
1449
- "line": 34,
1450
- "character": 16,
1451
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L34"
1452
- }
1453
- ],
1454
- "signatures": [
1455
- {
1456
- "id": 66,
1457
- "name": "with",
1458
- "variant": "signature",
1459
- "kind": 4096,
1460
- "flags": {},
1461
- "comment": {
1462
- "summary": [
1463
- {
1464
- "kind": "text",
1465
- "text": "Gets a "
1466
- },
1467
- {
1468
- "kind": "code",
1469
- "text": "`HarnessPredicate`"
1470
- },
1471
- {
1472
- "kind": "text",
1473
- "text": " that can be used to search for a\n"
1474
- },
1475
- {
1476
- "kind": "code",
1477
- "text": "`SkyAvatarHarness`"
1478
- },
1479
- {
1480
- "kind": "text",
1481
- "text": " that meets certain criteria."
1482
- }
1483
- ]
1484
- },
1485
- "sources": [
1486
- {
1487
- "fileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1488
- "line": 34,
1489
- "character": 2,
1490
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L34"
1491
- }
1492
- ],
1493
- "parameters": [
1494
- {
1495
- "id": 67,
1496
- "name": "filters",
1497
- "variant": "param",
1498
- "kind": 32768,
1499
- "flags": {},
1500
- "type": {
1501
- "type": "reference",
1502
- "target": 124,
1503
- "name": "SkyAvatarHarnessFilters",
1504
- "package": "@skyux/avatar"
1505
- }
1506
- }
1507
- ],
1508
- "type": {
1509
- "type": "reference",
1510
- "target": {
1511
- "sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
1512
- "qualifiedName": "HarnessPredicate"
1513
- },
1514
- "typeArguments": [
1515
- {
1516
- "type": "reference",
1517
- "target": 63,
1518
- "name": "SkyAvatarHarness",
1519
- "package": "@skyux/avatar"
1520
- }
1521
- ],
1522
- "name": "HarnessPredicate",
1523
- "package": "@angular/cdk"
1524
- }
1525
- }
1526
- ],
1527
- "decorators": []
1528
- }
1529
- ],
1530
- "groups": [
1531
- {
1532
- "title": "Constructors",
1533
- "children": [
1534
- 73
1535
- ]
1536
- },
1537
- {
1538
- "title": "Methods",
1539
- "children": [
1540
- 93,
1541
- 85,
1542
- 83,
1543
- 79,
1544
- 81,
1545
- 89,
1546
- 91,
1547
- 104,
1548
- 65
1549
- ]
1550
- }
1551
- ],
1552
- "sources": [
1553
- {
1554
- "fileName": "projects/avatar/src/testing/modules/avatar/avatar-harness.ts",
1555
- "line": 18,
1556
- "character": 13,
1557
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts#L18"
1558
- }
1559
- ],
1560
- "extendedTypes": [
1561
- {
1562
- "type": "reference",
1563
- "target": {
1564
- "sourceFileName": "libs/components/core/testing/src/shared/component-harness.ts",
1565
- "qualifiedName": "SkyComponentHarness"
1566
- },
1567
- "name": "SkyComponentHarness",
1568
- "package": "@skyux/core"
1569
- }
1570
- ],
1571
- "decorators": []
1572
- },
1573
- {
1574
- "id": 124,
1575
- "name": "SkyAvatarHarnessFilters",
1576
- "variant": "declaration",
1577
- "kind": 256,
1578
- "flags": {},
1579
- "comment": {
1580
- "summary": [
1581
- {
1582
- "kind": "text",
1583
- "text": "A set of criteria that can be used to filter a list of SkyAvatarHarness instances."
1584
- }
1585
- ]
1586
- },
1587
- "children": [
1588
- {
1589
- "id": 127,
1590
- "name": "ancestor",
1591
- "variant": "declaration",
1592
- "kind": 1024,
1593
- "flags": {
1594
- "isOptional": true
1595
- },
1596
- "comment": {
1597
- "summary": [
1598
- {
1599
- "kind": "text",
1600
- "text": "Only find instances that are nested under an element with the given selector."
1601
- }
1602
- ]
1603
- },
1604
- "sources": [
1605
- {
1606
- "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
1607
- "line": 28,
1608
- "character": 4
1609
- }
1610
- ],
1611
- "type": {
1612
- "type": "intrinsic",
1613
- "name": "string"
1614
- },
1615
- "inheritedFrom": {
1616
- "type": "reference",
1617
- "target": -1,
1618
- "name": "SkyHarnessFilters.ancestor"
1619
- }
1620
- },
1621
- {
1622
- "id": 125,
1623
- "name": "dataSkyId",
1624
- "variant": "declaration",
1625
- "kind": 1024,
1626
- "flags": {
1627
- "isOptional": true
1628
- },
1629
- "comment": {
1630
- "summary": [
1631
- {
1632
- "kind": "text",
1633
- "text": "Only find instances whose "
1634
- },
1635
- {
1636
- "kind": "code",
1637
- "text": "`data-sky-id`"
1638
- },
1639
- {
1640
- "kind": "text",
1641
- "text": " attribute matches the given value."
1642
- }
1643
- ]
1644
- },
1645
- "sources": [
1646
- {
1647
- "fileName": "libs/components/core/testing/src/shared/harness-filters.ts",
1648
- "line": 10,
1649
- "character": 2,
1650
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/core/testing/src/shared/harness-filters.ts#L10"
1651
- }
1652
- ],
1653
- "type": {
1654
- "type": "union",
1655
- "types": [
1656
- {
1657
- "type": "intrinsic",
1658
- "name": "string"
1659
- },
1660
- {
1661
- "type": "reference",
1662
- "target": {
1663
- "sourceFileName": "node_modules/@skyux/dev-infra-private/node_modules/typescript/lib/lib.es5.d.ts",
1664
- "qualifiedName": "RegExp"
1665
- },
1666
- "name": "RegExp",
1667
- "package": "typescript"
1668
- }
1669
- ]
1670
- },
1671
- "inheritedFrom": {
1672
- "type": "reference",
1673
- "target": -1,
1674
- "name": "SkyHarnessFilters.dataSkyId"
1675
- }
1676
- },
1677
- {
1678
- "id": 126,
1679
- "name": "selector",
1680
- "variant": "declaration",
1681
- "kind": 1024,
1682
- "flags": {
1683
- "isOptional": true
1684
- },
1685
- "comment": {
1686
- "summary": [
1687
- {
1688
- "kind": "text",
1689
- "text": "Only find instances whose host element matches the given selector."
1690
- }
1691
- ]
1692
- },
1693
- "sources": [
1694
- {
1695
- "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
1696
- "line": 26,
1697
- "character": 4
1698
- }
1699
- ],
1700
- "type": {
1701
- "type": "intrinsic",
1702
- "name": "string"
1703
- },
1704
- "inheritedFrom": {
1705
- "type": "reference",
1706
- "target": -1,
1707
- "name": "SkyHarnessFilters.selector"
1708
- }
1709
- }
1710
- ],
1711
- "groups": [
1712
- {
1713
- "title": "Properties",
1714
- "children": [
1715
- 127,
1716
- 125,
1717
- 126
1718
- ]
1719
- }
1720
- ],
1721
- "sources": [
1722
- {
1723
- "fileName": "projects/avatar/src/testing/modules/avatar/avatar-harness-filters.ts",
1724
- "line": 7,
1725
- "character": 17,
1726
- "url": "https://github.com/blackbaud/skyux/blob/22753be/libs/components/avatar/testing/src/modules/avatar/avatar-harness-filters.ts#L7"
1727
- }
1728
- ],
1729
- "extendedTypes": [
1730
- {
1731
- "type": "reference",
1732
- "target": {
1733
- "sourceFileName": "libs/components/core/testing/src/shared/harness-filters.ts",
1734
- "qualifiedName": "SkyHarnessFilters"
1735
- },
1736
- "name": "SkyHarnessFilters",
1737
- "package": "@skyux/core"
1738
- }
1739
- ]
1740
- }
1741
- ],
1742
- "groups": [
1743
- {
1744
- "title": "Modules",
1745
- "children": [
1746
- 1,
1747
- 2
1748
- ]
1749
- }
1750
- ],
1751
- "packageName": "@skyux/avatar",
1752
- "readme": [
1753
- {
1754
- "kind": "text",
1755
- "text": "# avatar\n\nThis library was generated with [Nx](https://nx.dev).\n\n## Running unit tests\n\nRun "
1756
- },
1757
- {
1758
- "kind": "code",
1759
- "text": "`nx test avatar`"
1760
- },
1761
- {
1762
- "kind": "text",
1763
- "text": " to execute the unit tests."
1764
- }
1765
- ],
1766
- "symbolIdMap": {
1767
- "1": {
1768
- "sourceFileName": "libs/components/avatar/src/index.ts",
1769
- "qualifiedName": ""
1770
- },
1771
- "2": {
1772
- "sourceFileName": "libs/components/avatar/testing/src/public-api.ts",
1773
- "qualifiedName": ""
1774
- },
1775
- "3": {
1776
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar-size.ts",
1777
- "qualifiedName": "SkyAvatarSize"
1778
- },
1779
- "4": {
1780
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar-src.ts",
1781
- "qualifiedName": "SkyAvatarSrc"
1782
- },
1783
- "5": {
1784
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.module.ts",
1785
- "qualifiedName": "SkyAvatarModule"
1786
- },
1787
- "8": {
1788
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1789
- "qualifiedName": "SkyAvatarComponent"
1790
- },
1791
- "9": {
1792
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1793
- "qualifiedName": "SkyAvatarComponent.__constructor"
1794
- },
1795
- "10": {
1796
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1797
- "qualifiedName": "SkyAvatarComponent"
1798
- },
1799
- "11": {
1800
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1801
- "qualifiedName": "errorService"
1802
- },
1803
- "12": {
1804
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1805
- "qualifiedName": "fileSizePipe"
1806
- },
1807
- "13": {
1808
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1809
- "qualifiedName": "resourcesService"
1810
- },
1811
- "14": {
1812
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1813
- "qualifiedName": "SkyAvatarComponent.canChange"
1814
- },
1815
- "15": {
1816
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1817
- "qualifiedName": "SkyAvatarComponent.canChange"
1818
- },
1819
- "16": {
1820
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1821
- "qualifiedName": "SkyAvatarComponent.canChange"
1822
- },
1823
- "17": {
1824
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1825
- "qualifiedName": "value"
1826
- },
1827
- "18": {
1828
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1829
- "qualifiedName": "SkyAvatarComponent.name"
1830
- },
1831
- "19": {
1832
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1833
- "qualifiedName": "SkyAvatarComponent.name"
1834
- },
1835
- "20": {
1836
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1837
- "qualifiedName": "SkyAvatarComponent.name"
1838
- },
1839
- "21": {
1840
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1841
- "qualifiedName": "value"
1842
- },
1843
- "22": {
1844
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1845
- "qualifiedName": "SkyAvatarComponent.src"
1846
- },
1847
- "23": {
1848
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1849
- "qualifiedName": "SkyAvatarComponent.src"
1850
- },
1851
- "24": {
1852
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1853
- "qualifiedName": "SkyAvatarComponent.src"
1854
- },
1855
- "25": {
1856
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1857
- "qualifiedName": "value"
1858
- },
1859
- "26": {
1860
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1861
- "qualifiedName": "SkyAvatarComponent.maxFileSize"
1862
- },
1863
- "27": {
1864
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1865
- "qualifiedName": "SkyAvatarComponent.size"
1866
- },
1867
- "28": {
1868
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1869
- "qualifiedName": "SkyAvatarComponent.avatarChanged"
1870
- },
1871
- "37": {
1872
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1873
- "qualifiedName": "SkyAvatarComponent.photoDrop"
1874
- },
1875
- "38": {
1876
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1877
- "qualifiedName": "SkyAvatarComponent.photoDrop"
1878
- },
1879
- "39": {
1880
- "sourceFileName": "libs/components/avatar/src/lib/modules/avatar/avatar.component.ts",
1881
- "qualifiedName": "result"
1882
- },
1883
- "63": {
1884
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1885
- "qualifiedName": "SkyAvatarHarness"
1886
- },
1887
- "65": {
1888
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1889
- "qualifiedName": "SkyAvatarHarness.with"
1890
- },
1891
- "66": {
1892
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1893
- "qualifiedName": "SkyAvatarHarness.with"
1894
- },
1895
- "67": {
1896
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1897
- "qualifiedName": "filters"
1898
- },
1899
- "73": {
1900
- "sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
1901
- "qualifiedName": "ComponentHarness.__constructor"
1902
- },
1903
- "74": {
1904
- "sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
1905
- "qualifiedName": "SkyAvatarHarness"
1906
- },
1907
- "75": {
1908
- "sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
1909
- "qualifiedName": "locatorFactory"
1910
- },
1911
- "79": {
1912
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1913
- "qualifiedName": "SkyAvatarHarness.getInitials"
1914
- },
1915
- "80": {
1916
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1917
- "qualifiedName": "SkyAvatarHarness.getInitials"
1918
- },
1919
- "81": {
1920
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1921
- "qualifiedName": "SkyAvatarHarness.getSrc"
1922
- },
1923
- "82": {
1924
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1925
- "qualifiedName": "SkyAvatarHarness.getSrc"
1926
- },
1927
- "83": {
1928
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1929
- "qualifiedName": "SkyAvatarHarness.getCanChange"
1930
- },
1931
- "84": {
1932
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1933
- "qualifiedName": "SkyAvatarHarness.getCanChange"
1934
- },
1935
- "85": {
1936
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1937
- "qualifiedName": "SkyAvatarHarness.dropAvatarFile"
1938
- },
1939
- "86": {
1940
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1941
- "qualifiedName": "SkyAvatarHarness.dropAvatarFile"
1942
- },
1943
- "87": {
1944
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1945
- "qualifiedName": "file"
1946
- },
1947
- "88": {
1948
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1949
- "qualifiedName": "waitForChange"
1950
- },
1951
- "89": {
1952
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1953
- "qualifiedName": "SkyAvatarHarness.hasFileTypeError"
1954
- },
1955
- "90": {
1956
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1957
- "qualifiedName": "SkyAvatarHarness.hasFileTypeError"
1958
- },
1959
- "91": {
1960
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1961
- "qualifiedName": "SkyAvatarHarness.hasMaxSizeError"
1962
- },
1963
- "92": {
1964
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1965
- "qualifiedName": "SkyAvatarHarness.hasMaxSizeError"
1966
- },
1967
- "93": {
1968
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1969
- "qualifiedName": "SkyAvatarHarness.closeError"
1970
- },
1971
- "94": {
1972
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness.ts",
1973
- "qualifiedName": "SkyAvatarHarness.closeError"
1974
- },
1975
- "104": {
1976
- "sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
1977
- "qualifiedName": "ComponentHarness.host"
1978
- },
1979
- "105": {
1980
- "sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
1981
- "qualifiedName": "ComponentHarness.host"
1982
- },
1983
- "124": {
1984
- "sourceFileName": "libs/components/avatar/testing/src/modules/avatar/avatar-harness-filters.ts",
1985
- "qualifiedName": "SkyAvatarHarnessFilters"
1986
- },
1987
- "125": {
1988
- "sourceFileName": "libs/components/core/testing/src/shared/harness-filters.ts",
1989
- "qualifiedName": "SkyHarnessFilters.dataSkyId"
1990
- },
1991
- "126": {
1992
- "sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
1993
- "qualifiedName": "BaseHarnessFilters.selector"
1994
- },
1995
- "127": {
1996
- "sourceFileName": "node_modules/@angular/cdk/testing/index.d.ts",
1997
- "qualifiedName": "BaseHarnessFilters.ancestor"
1998
- }
1999
- }
2000
- },
2001
- "codeExamples": [
2002
- {
2003
- "fileName": "demo.service.ts",
2004
- "filePath": "/projects/avatar/documentation/code-examples/avatar/demo.service.ts",
2005
- "rawContents": "import { Injectable } from '@angular/core';\n\nimport { Observable, delay, of } from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DemoService {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n public uploadAvatar(_file: File): Observable<void> {\n // Simulate uploading the file to a web service.\n return of(undefined).pipe(delay(500));\n }\n}\n"
2006
- },
2007
- {
2008
- "fileName": "demo.component.ts",
2009
- "filePath": "/projects/avatar/documentation/code-examples/avatar/demo.component.ts",
2010
- "rawContents": "import { Component, inject, signal } from '@angular/core';\nimport { SkyAvatarModule } from '@skyux/avatar';\nimport { SkyFileItem } from '@skyux/forms';\n\nimport { DemoService } from './demo.service';\n\n@Component({\n selector: 'app-demo',\n templateUrl: './demo.component.html',\n imports: [SkyAvatarModule],\n})\nexport class DemoComponent {\n #demoSvc = inject(DemoService);\n\n protected readonly avatar = signal<string | File>(\n 'https://imgur.com/tBiGElW.png',\n );\n protected readonly name = signal('Robert C. Hernandez');\n\n protected onAvatarChanged(fileItem: SkyFileItem): void {\n /**\n * This is where you might upload the new avatar,\n * but for this demo we'll just update it locally.\n */\n if (fileItem) {\n this.#demoSvc.uploadAvatar(fileItem.file).subscribe(() => {\n this.avatar.set(fileItem.file);\n });\n }\n }\n}\n"
2011
- },
2012
- {
2013
- "fileName": "demo.component.spec.ts",
2014
- "filePath": "/projects/avatar/documentation/code-examples/avatar/demo.component.spec.ts",
2015
- "rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { SkyAvatarHarness } from '@skyux/avatar/testing';\n\nimport { of } from 'rxjs';\n\nimport { DemoComponent } from './demo.component';\nimport { DemoService } from './demo.service';\n\ndescribe('Basic avatar harness', () => {\n let uploadAvatarSpy: jasmine.Spy;\n\n beforeEach(() => {\n uploadAvatarSpy = jasmine\n .createSpy('uploadAvatarSpy')\n .and.returnValue(of(undefined));\n\n TestBed.configureTestingModule({\n providers: [\n {\n provide: DemoService,\n useValue: {\n uploadAvatar: uploadAvatarSpy,\n },\n },\n ],\n });\n });\n\n async function setupTest(): Promise<{\n fixture: ComponentFixture<DemoComponent>;\n harness: SkyAvatarHarness;\n }> {\n const fixture = TestBed.createComponent(DemoComponent);\n const loader = TestbedHarnessEnvironment.loader(fixture);\n const harness: SkyAvatarHarness = await loader.getHarness(\n SkyAvatarHarness.with({ dataSkyId: 'user-profile-avatar' }),\n );\n\n return { fixture, harness };\n }\n\n function createTestFile(fileSize: number): File {\n return new File(['a'.repeat(fileSize)], 'test.png', {\n type: 'image/png',\n });\n }\n\n it('should display the expected avatar image', async () => {\n const { harness } = await setupTest();\n\n await expectAsync(harness.getInitials()).toBeResolvedTo(undefined);\n await expectAsync(harness.getSrc()).toBeResolvedTo(\n 'https://imgur.com/tBiGElW.png',\n );\n });\n\n it('should allow the user to change the avatar', async () => {\n const { harness } = await setupTest();\n\n await expectAsync(harness.getCanChange()).toBeResolvedTo(true);\n });\n\n it('should upload a new avatar and set the avatar src', async () => {\n const { harness } = await setupTest();\n\n const testFile = createTestFile(100);\n\n await harness.dropAvatarFile(testFile, true);\n\n expect(uploadAvatarSpy).toHaveBeenCalledOnceWith(testFile);\n\n await expectAsync(harness.getSrc()).toBeResolvedTo(jasmine.any(Blob));\n });\n\n it('should now allow files larger than 1,000 bytes', async () => {\n const { harness } = await setupTest();\n\n const maxFileSize = 1000;\n\n await harness.dropAvatarFile(createTestFile(maxFileSize));\n await expectAsync(harness.hasMaxSizeError()).toBeResolvedTo(false);\n\n await harness.dropAvatarFile(createTestFile(maxFileSize + 1));\n await expectAsync(harness.hasMaxSizeError()).toBeResolvedTo(true);\n\n await harness.closeError();\n });\n});\n"
2016
- },
2017
- {
2018
- "fileName": "demo.component.html",
2019
- "filePath": "/projects/avatar/documentation/code-examples/avatar/demo.component.html",
2020
- "rawContents": "<sky-avatar\n data-sky-id=\"user-profile-avatar\"\n [canChange]=\"true\"\n [maxFileSize]=\"1000\"\n [name]=\"name()\"\n [src]=\"avatar()\"\n (avatarChanged)=\"onAvatarChanged($event)\"\n/>\n"
2021
- }
2022
- ],
2023
- "codeExampleDependencies": {
2024
- "/projects/avatar/documentation/code-examples/avatar": {
2025
- "@angular-devkit/core": "19.2.1",
2026
- "@angular-devkit/schematics": "19.2.1",
2027
- "@angular/animations": "19.2.1",
2028
- "@angular/cdk": "19.2.2",
2029
- "@angular/cli": "19.2.1",
2030
- "@angular/common": "19.2.1",
2031
- "@angular/core": "19.2.1",
2032
- "@angular/forms": "19.2.1",
2033
- "@angular/platform-browser": "19.2.1",
2034
- "@angular/router": "19.2.1",
2035
- "@blackbaud/skyux-design-tokens": "0.0.45",
2036
- "@schematics/angular": "19.2.1",
2037
- "@skyux-sdk/testing": "12.0.0-alpha.12",
2038
- "@skyux/assets": "12.0.0-alpha.12",
2039
- "@skyux/avatar": "12.0.0-alpha.12",
2040
- "@skyux/core": "12.0.0-alpha.12",
2041
- "@skyux/errors": "12.0.0-alpha.12",
2042
- "@skyux/forms": "12.0.0-alpha.12",
2043
- "@skyux/help-inline": "12.0.0-alpha.12",
2044
- "@skyux/i18n": "12.0.0-alpha.12",
2045
- "@skyux/icon": "12.0.0-alpha.12",
2046
- "@skyux/icons": "7.16.0",
2047
- "@skyux/indicators": "12.0.0-alpha.12",
2048
- "@skyux/modals": "12.0.0-alpha.12",
2049
- "@skyux/popovers": "12.0.0-alpha.12",
2050
- "@skyux/theme": "12.0.0-alpha.12",
2051
- "@types/node": "20.14.12",
2052
- "ajv": "8.17.1",
2053
- "axe-core": "4.10.3",
2054
- "fontfaceobserver": "2.3.0",
2055
- "jsonc-parser": "3.3.1",
2056
- "minimist": "1.2.8",
2057
- "rxjs": "7.8.1",
2058
- "tslib": "2.8.1",
2059
- "zone.js": "0.15.0"
2060
- }
2061
- }
2062
- }