@ieeesa-npm/presentation 0.17.7 → 0.17.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/assets/constants.json +256 -64
- package/esm2022/lib/components/header/header.component.mjs +49 -7
- package/esm2022/lib/components/image-preview/image-preview.component.mjs +7 -5
- package/esm2022/lib/models/header-config.model.mjs +1 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +78 -33
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/chips/chips.component.d.ts +3 -0
- package/lib/components/file-upload/file-upload.component.d.ts +3 -0
- package/lib/components/header/header.component.d.ts +19 -3
- package/lib/components/image-preview/image-preview.component.d.ts +2 -2
- package/lib/models/header-config.model.d.ts +2 -0
- package/lib/services/file-upload.service.d.ts +8 -1
- package/package.json +1 -1
- package/src/lib/assets/constants.json +257 -65
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { HeaderConfig } from '../../models/header-config.model';
|
|
3
3
|
import { BreakpointObserverService, AuthService, StorageService } from '@ieeesa-npm/utility';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { Menu } from '../../models/menu.model';
|
|
6
6
|
import { IconButton } from '../../models/icon-button.model';
|
|
7
|
+
import { SharedService } from '@ieeesa-npm/shared';
|
|
8
|
+
import { FileUploadService } from '../../services/file-upload.service';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
/**
|
|
9
11
|
* Implements & displays application logo, title, signed in user information, sign-out link, and hamburger link for mobile view.
|
|
10
12
|
* @class HeaderComponent
|
|
11
13
|
*/
|
|
12
|
-
export declare class HeaderComponent implements OnDestroy {
|
|
14
|
+
export declare class HeaderComponent implements OnInit, OnDestroy {
|
|
13
15
|
private breakPointObserverService;
|
|
14
16
|
private authService;
|
|
15
17
|
private storageService;
|
|
18
|
+
private sharedService;
|
|
19
|
+
private fileUploadService;
|
|
16
20
|
private headerConfigInfo;
|
|
17
21
|
screenTexts: any;
|
|
18
22
|
private profileMenuOptions;
|
|
19
23
|
menuItems: Menu[];
|
|
20
24
|
isMobileView: boolean;
|
|
25
|
+
imageUrl: string;
|
|
26
|
+
logo: string;
|
|
27
|
+
imageAltText: string;
|
|
21
28
|
/**
|
|
22
29
|
* HeaderConfig represents the configurable properties required for header component.
|
|
23
30
|
* Input property of the component to get the configurable values such as logo, app title, signed in user name and logout redirect URL.
|
|
@@ -32,7 +39,11 @@ export declare class HeaderComponent implements OnDestroy {
|
|
|
32
39
|
toggleNavMenuClick: EventEmitter<Event>;
|
|
33
40
|
profileMenuClick: EventEmitter<Menu>;
|
|
34
41
|
userProfileIconButton: IconButton;
|
|
35
|
-
constructor(breakPointObserverService: BreakpointObserverService, authService: AuthService, storageService: StorageService);
|
|
42
|
+
constructor(breakPointObserverService: BreakpointObserverService, authService: AuthService, storageService: StorageService, sharedService: SharedService, fileUploadService: FileUploadService);
|
|
43
|
+
/**
|
|
44
|
+
* Sets the appBaseUrl and gets the logo download AWS pre-signed URL from API.
|
|
45
|
+
*/
|
|
46
|
+
ngOnInit(): void;
|
|
36
47
|
/**
|
|
37
48
|
* Desktop event to navigate to logout page.
|
|
38
49
|
* @memberof HeaderComponent
|
|
@@ -52,6 +63,11 @@ export declare class HeaderComponent implements OnDestroy {
|
|
|
52
63
|
* @memberof HeaderComponent
|
|
53
64
|
*/
|
|
54
65
|
onUserProfileMenuClick(menu: Menu): void;
|
|
66
|
+
/**
|
|
67
|
+
* Retrieves pre-signed URL for downloading the logo from Amazon S3 bucket.
|
|
68
|
+
* @memberof HeaderComponent
|
|
69
|
+
*/
|
|
70
|
+
getFileDownloadPresignedUrls(fileName: string): void;
|
|
55
71
|
/**
|
|
56
72
|
* Modifies the menu items based on mobile or desktop.
|
|
57
73
|
*/
|
|
@@ -3,9 +3,9 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class ImagePreviewComponent implements OnInit {
|
|
4
4
|
isSvg: boolean;
|
|
5
5
|
imageURL: string;
|
|
6
|
-
|
|
6
|
+
imageAltText: string;
|
|
7
7
|
set imageUrl(value: string);
|
|
8
8
|
ngOnInit(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreviewComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImagePreviewComponent, "ieeesa-image-preview", never, { "imageUrl": { "alias": "imageUrl"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImagePreviewComponent, "ieeesa-image-preview", never, { "imageAltText": { "alias": "imageAltText"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -140,6 +140,9 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
140
140
|
toolTip: string;
|
|
141
141
|
isToolTipNeeded: boolean;
|
|
142
142
|
}[];
|
|
143
|
+
errors: {
|
|
144
|
+
"2029": string;
|
|
145
|
+
};
|
|
143
146
|
};
|
|
144
147
|
footer: {
|
|
145
148
|
alt: {
|
|
@@ -169,7 +172,11 @@ export declare class FileUploadService implements OnDestroy {
|
|
|
169
172
|
breadcrumb: {
|
|
170
173
|
label: {
|
|
171
174
|
initial: string;
|
|
172
|
-
};
|
|
175
|
+
}; /**
|
|
176
|
+
* Returns file upload status.
|
|
177
|
+
* @return {boolean}
|
|
178
|
+
* @memberof FileUploadService
|
|
179
|
+
*/
|
|
173
180
|
};
|
|
174
181
|
loader: {
|
|
175
182
|
ariaLabel: {
|
package/package.json
CHANGED
|
@@ -176,7 +176,10 @@
|
|
|
176
176
|
"toolTip": "",
|
|
177
177
|
"isToolTipNeeded": false
|
|
178
178
|
}
|
|
179
|
-
]
|
|
179
|
+
],
|
|
180
|
+
"errors": {
|
|
181
|
+
"2029": "Application Logo is required."
|
|
182
|
+
}
|
|
180
183
|
},
|
|
181
184
|
"footer": {
|
|
182
185
|
"alt": {
|
|
@@ -269,69 +272,258 @@
|
|
|
269
272
|
"ariaDescription": "Choose background color.",
|
|
270
273
|
"ariaDescribedById": "ariaColorPicker",
|
|
271
274
|
"paletteColors": [
|
|
272
|
-
{
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
{
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
{
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
{
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
{
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
{
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
{
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
{
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
{
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
{
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
{
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
{
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
{
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
{
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
{
|
|
333
|
-
|
|
334
|
-
|
|
275
|
+
{
|
|
276
|
+
"name": "IEEE SA Blue",
|
|
277
|
+
"hexCode": "#00B5E2"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "IEEE Master Brand Blue",
|
|
281
|
+
"hexCode": "#00629B"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "IEEE SA Medium Blue",
|
|
285
|
+
"hexCode": "#4AC9E3"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "IEEE SA Dark Grey",
|
|
289
|
+
"hexCode": "#63666A"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "IEEE SA Medium Grey",
|
|
293
|
+
"hexCode": "#A7A8AA"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "IEEE SA Light Grey",
|
|
297
|
+
"hexCode": "#D9D9D6"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "IEEE Brand Yellow",
|
|
301
|
+
"hexCode": "#FFD100"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "IEEE Brand Orange",
|
|
305
|
+
"hexCode": "#FFA300"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "IEEE Brand Red",
|
|
309
|
+
"hexCode": "#BA0C2F"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "IEEE White",
|
|
313
|
+
"hexCode": "#FFFFFF"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "IEEE Neutral 95",
|
|
317
|
+
"hexCode": "#F1F1F1"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "IEEE Neutral Variant 95",
|
|
321
|
+
"hexCode": "#F0F0F0"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "IEEE Primary Brand 95",
|
|
325
|
+
"hexCode": "#EAF3F9"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "IEEE Primary 95",
|
|
329
|
+
"hexCode": "#DAE9F1"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "IEEE SA Medium Blue 95",
|
|
333
|
+
"hexCode": "#F8FCFF"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "IEEE Brand Yellow 95",
|
|
337
|
+
"hexCode": "#FFFBEB"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"name": "IEEE Brand Orange 95",
|
|
341
|
+
"hexCode": "#FFF8EB"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "IEEE Error 99",
|
|
345
|
+
"hexCode": "#FFFBF9"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "IEEE SA Dark Grey 90",
|
|
349
|
+
"hexCode": "#CCD2DA"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "IEEE Neutral 90",
|
|
353
|
+
"hexCode": "#DDDCE2"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "IEEE Neutral Variant 90",
|
|
357
|
+
"hexCode": "#E3E3E3"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "IEEE Primary Brand 90",
|
|
361
|
+
"hexCode": "#D2F0F8"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "IEEE primary 90",
|
|
365
|
+
"hexCode": "#C0DEEF"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "IEEE SA Medium Blue 90",
|
|
369
|
+
"hexCode": "#EDFAFC"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "IEEE Brand Yellow 90",
|
|
373
|
+
"hexCode": "#FFF8D6"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"name": "IEEE brand orange 90",
|
|
377
|
+
"hexCode": "#FFEFD3"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "IEEE Error 90",
|
|
381
|
+
"hexCode": "#F9DEDC"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "IEEE SA Dark Grey 80",
|
|
385
|
+
"hexCode": "#B2B7BE"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"name": "IEEE Neutral 80",
|
|
389
|
+
"hexCode": "#C6C5CA"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "IEEE Neutral Variant 80",
|
|
393
|
+
"hexCode": "#D1D1D1"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "IEEE Primary Brand 80",
|
|
397
|
+
"hexCode": "#9EE3F4"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "IEEE Primary 80",
|
|
401
|
+
"hexCode": "#8CBDDA"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"name": "IEEE SA Medium Blue 80",
|
|
405
|
+
"hexCode": "#DBF4F9"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "IEEE Brand Yellow 80",
|
|
409
|
+
"hexCode": "#FFF0AA"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"name": "IEEE Brand Orange 80",
|
|
413
|
+
"hexCode": "#FFE0AA"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "IEEE Error 80",
|
|
417
|
+
"hexCode": "#F2B8B5"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "IEEE SA Dark Grey 60",
|
|
421
|
+
"hexCode": "#878B8F"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "IEEE Neutral 60",
|
|
425
|
+
"hexCode": "#939094"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "IEEE Neutral Variant 60",
|
|
429
|
+
"hexCode": "#9B9B9B"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "IEEE Primary Brand 60",
|
|
433
|
+
"hexCode": "#52D2F1"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "IEEE Primary 60",
|
|
437
|
+
"hexCode": "#4393C1"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "IEEE SA Medium Blue 60",
|
|
441
|
+
"hexCode": "#B7E9F4"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "IEEE Brand Yellow 60",
|
|
445
|
+
"hexCode": "#FFE156"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"name": "IEEE Brand Orange 60",
|
|
449
|
+
"hexCode": "#FFC256"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "IEEE Error 60",
|
|
453
|
+
"hexCode": "#E46962"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "IEEE SA Dark Grey 30",
|
|
457
|
+
"hexCode": "#4A4D50"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"name": "IEEE Neutral 30",
|
|
461
|
+
"hexCode": "#484649"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"name": "IEEE Neutral Variant 30",
|
|
465
|
+
"hexCode": "#49454F"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "IEEE Primary Brand 30",
|
|
469
|
+
"hexCode": "#0188AA"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"name": "IEEE Primary 30",
|
|
473
|
+
"hexCode": "#004982"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "IEEE SA Medium Blue",
|
|
477
|
+
"hexCode": "#3BA1B6"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "IEEE Brand Yellow 30",
|
|
481
|
+
"hexCode": "#C2A002"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "IEEE Brand Orange 30",
|
|
485
|
+
"hexCode": "#BC7902"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "IEEE Error 40",
|
|
489
|
+
"hexCode": "#B3261E"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "IEEE SA Dark Grey 20",
|
|
493
|
+
"hexCode": "#333436"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "IEEE Neutral 20",
|
|
497
|
+
"hexCode": "#313033"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"name": "IEEE Neutral Variant 20",
|
|
501
|
+
"hexCode": "#322F37"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"name": "IEEE Primary Brand 20",
|
|
505
|
+
"hexCode": "#015E75"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"name": "IEEE Primary 20",
|
|
509
|
+
"hexCode": "#00314E"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "IEEE SA Medium Blue",
|
|
513
|
+
"hexCode": "#2C7988"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "IEEE Brand Yellow 20",
|
|
517
|
+
"hexCode": "#866E02"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "IEEE Brand Orange 20",
|
|
521
|
+
"hexCode": "#825300"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "IEEE Error 20",
|
|
525
|
+
"hexCode": "#680015"
|
|
526
|
+
}
|
|
335
527
|
]
|
|
336
528
|
},
|
|
337
529
|
"fileUpload": {
|
|
@@ -379,4 +571,4 @@
|
|
|
379
571
|
"list": {
|
|
380
572
|
"defaultIndentation": 12
|
|
381
573
|
}
|
|
382
|
-
}
|
|
574
|
+
}
|