@ieeesa-npm/presentation 0.30.7 → 0.31.1
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 +2 -1
- package/esm2022/lib/components/accordion/accordion.component.mjs +2 -2
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +1 -1
- package/esm2022/lib/components/card/card.component.mjs +3 -3
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +1 -1
- package/esm2022/lib/components/chips/chips.component.mjs +2 -2
- package/esm2022/lib/components/data-table/data-table.component.mjs +4 -3
- package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +2 -2
- package/esm2022/lib/components/export-format-popover/export-format-popover.component.mjs +206 -0
- package/esm2022/lib/components/export-success-dialog/export-success-dialog.component.mjs +39 -0
- package/esm2022/lib/components/file-download/file-download.component.mjs +21 -12
- package/esm2022/lib/components/file-upload/file-upload.component.mjs +2 -2
- package/esm2022/lib/components/filter/filter.component.mjs +2 -2
- package/esm2022/lib/components/form-support-text/form-support-text.component.mjs +3 -2
- package/esm2022/lib/components/header/header.component.mjs +15 -10
- package/esm2022/lib/components/icon-button/icon-button.component.mjs +1 -1
- package/esm2022/lib/components/list/list.component.mjs +3 -2
- package/esm2022/lib/components/menu/menu.component.mjs +1 -1
- package/esm2022/lib/components/modal/modal.component.mjs +8 -6
- package/esm2022/lib/components/modal-confirmation/modal-confirmation.component.mjs +2 -2
- package/esm2022/lib/components/modal-info/modal-info.component.mjs +41 -0
- package/esm2022/lib/components/multi-select-autocomplete/multi-select-autocomplete.component.mjs +1 -1
- package/esm2022/lib/components/notification/notification.component.mjs +3 -2
- package/esm2022/lib/components/policy-confirmation-dialog/policy-confirmation-dialog.component.mjs +58 -0
- package/esm2022/lib/components/select/select.component.mjs +1 -1
- package/esm2022/lib/components/tabs/tabs.component.mjs +1 -1
- package/esm2022/lib/components/tile/tile.component.mjs +2 -2
- package/esm2022/lib/directives/dynamic-form-field/dynamic-form-field.directive.mjs +1 -1
- package/esm2022/lib/directives/set-background/set-background.directive.mjs +4 -3
- package/esm2022/lib/models/card-button.model.mjs +1 -1
- package/esm2022/lib/models/export-format-popover.model.mjs +10 -0
- package/esm2022/lib/models/export-success-dialog.model.mjs +2 -0
- package/esm2022/lib/models/field-config.model.mjs +1 -1
- package/esm2022/lib/models/filters-options.model.mjs +1 -1
- package/esm2022/lib/models/list-item.model.mjs +1 -1
- package/esm2022/lib/models/policy-confirmation-dialog.model.mjs +2 -0
- package/esm2022/lib/pipes/safe.pipe.mjs +44 -0
- package/esm2022/lib/services/break-point-observer.service.mjs +36 -0
- package/esm2022/lib/services/file-upload.service.mjs +2 -2
- package/esm2022/public-api.mjs +12 -6
- package/fesm2022/ieeesa-npm-presentation.mjs +489 -79
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/accordion/accordion.component.d.ts +1 -1
- package/lib/components/autocomplete/autocomplete.component.d.ts +1 -1
- package/lib/components/card/card.component.d.ts +2 -2
- package/lib/components/checkbox/checkbox.component.d.ts +1 -2
- package/lib/components/chips/chips.component.d.ts +4 -9
- package/lib/components/data-table/data-table.component.d.ts +2 -3
- package/lib/components/dynamic-form/dynamic-form.component.d.ts +1 -3
- package/lib/components/export-format-popover/export-format-popover.component.d.ts +91 -0
- package/lib/components/export-success-dialog/export-success-dialog.component.d.ts +24 -0
- package/lib/components/file-download/file-download.component.d.ts +5 -4
- package/lib/components/file-upload/file-upload.component.d.ts +11 -12
- package/lib/components/filter/filter.component.d.ts +2 -4
- package/lib/components/header/header.component.d.ts +6 -6
- package/lib/components/icon-button/icon-button.component.d.ts +1 -1
- package/lib/components/list/list.component.d.ts +1 -1
- package/lib/components/menu/menu.component.d.ts +1 -1
- package/lib/components/modal/modal.component.d.ts +1 -1
- package/lib/components/modal-confirmation/modal-confirmation.component.d.ts +1 -2
- package/lib/components/modal-info/modal-info.component.d.ts +23 -0
- package/lib/components/multi-select-autocomplete/multi-select-autocomplete.component.d.ts +1 -1
- package/lib/components/policy-confirmation-dialog/policy-confirmation-dialog.component.d.ts +36 -0
- package/lib/components/select/select.component.d.ts +1 -1
- package/lib/components/tabs/tabs.component.d.ts +1 -2
- package/lib/components/tile/tile.component.d.ts +1 -1
- package/lib/directives/dynamic-form-field/dynamic-form-field.directive.d.ts +2 -2
- package/lib/directives/set-background/set-background.directive.d.ts +1 -1
- package/lib/models/card-button.model.d.ts +1 -1
- package/lib/models/export-format-popover.model.d.ts +15 -0
- package/lib/models/export-success-dialog.model.d.ts +8 -0
- package/lib/models/field-config.model.d.ts +1 -3
- package/lib/models/filters-options.model.d.ts +1 -1
- package/lib/models/list-item.model.d.ts +1 -1
- package/lib/models/policy-confirmation-dialog.model.d.ts +9 -0
- package/lib/pipes/safe.pipe.d.ts +16 -0
- package/lib/services/break-point-observer.service.d.ts +21 -0
- package/lib/services/file-upload.service.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +10 -5
- package/src/lib/assets/constants.json +2 -1
- package/esm2022/lib/models/align-type.model.mjs +0 -11
- package/esm2022/lib/models/checkbox-option.model.mjs +0 -2
- package/esm2022/lib/models/confirmation-modal-data.model.mjs +0 -2
- package/esm2022/lib/models/icon-button.model.mjs +0 -2
- package/esm2022/lib/models/select-option.model.mjs +0 -2
- package/lib/models/align-type.model.d.ts +0 -8
- package/lib/models/checkbox-option.model.d.ts +0 -8
- package/lib/models/confirmation-modal-data.model.d.ts +0 -11
- package/lib/models/icon-button.model.d.ts +0 -8
- package/lib/models/select-option.model.d.ts +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { MatAccordion } from '@angular/material/expansion';
|
|
3
3
|
import { AccordionInfo } from '../../models/accordion-info.model';
|
|
4
|
-
import { BreakpointObserverService } from '
|
|
4
|
+
import { BreakpointObserverService } from '../../services/break-point-observer.service';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class AccordionComponent implements OnDestroy {
|
|
@@ -4,7 +4,7 @@ import { FormGroup } from '@angular/forms';
|
|
|
4
4
|
import { FieldConfig } from '../../models/field-config.model';
|
|
5
5
|
import { FormField } from '../../models/form-field.model';
|
|
6
6
|
import { AutoCompleteOption } from '../../models/autocomplete-option.model';
|
|
7
|
-
import { SelectOption } from '
|
|
7
|
+
import { SelectOption } from '@ieeesa-npm/models';
|
|
8
8
|
import { FormUtilityService } from '../../services/form-utility.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
-
import { BreakpointObserverService } from '
|
|
2
|
+
import { BreakpointObserverService } from '../../services/break-point-observer.service';
|
|
3
3
|
import { ButtonType } from '../../models/button-type.model';
|
|
4
4
|
import { CardButton } from '../../models/card-button.model';
|
|
5
5
|
import { CardInfo } from '../../models/card-info.model';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
|
-
import { AlignType } from '
|
|
7
|
+
import { AlignType } from '@ieeesa-npm/models';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class CardComponent implements OnDestroy {
|
|
10
10
|
private breakPointObserverService;
|
|
@@ -4,9 +4,8 @@ import { SelectionModel } from '@angular/cdk/collections';
|
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { FieldConfig } from '../../models/field-config.model';
|
|
6
6
|
import { FormField } from '../../models/form-field.model';
|
|
7
|
-
import { CheckboxOption } from '
|
|
7
|
+
import { CheckboxOption, IconButton } from '@ieeesa-npm/models';
|
|
8
8
|
import { FormUtilityService } from '../../services/form-utility.service';
|
|
9
|
-
import { IconButton } from '../../models/icon-button.model';
|
|
10
9
|
import * as i0 from "@angular/core";
|
|
11
10
|
/**
|
|
12
11
|
* Provides implementation of all types of checkboxes.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { MatChipListbox } from '@angular/material/chips';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
|
-
import { BreakpointObserverService } from '
|
|
4
|
+
import { BreakpointObserverService } from '../../services/break-point-observer.service';
|
|
5
5
|
import { ChipOption, ChipOrientation, ChipsType } from '../../models/chip-option.model';
|
|
6
|
-
import { IconButton } from '
|
|
6
|
+
import { IconButton } from '@ieeesa-npm/models';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* Chips component allow users to view information, make selections, filter content.
|
|
@@ -155,13 +155,7 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
155
155
|
iconURL: string;
|
|
156
156
|
label: string;
|
|
157
157
|
ariaLabel: string;
|
|
158
|
-
toolTip: string;
|
|
159
|
-
* Allows Angular to detect the specific chip option that needs to change or be added by tracking option unique Id.
|
|
160
|
-
* @param {number} index
|
|
161
|
-
* @param {ChipOption} option
|
|
162
|
-
* @return {*} {(number | string)}
|
|
163
|
-
* @memberof ChipComponent
|
|
164
|
-
*/
|
|
158
|
+
toolTip: string;
|
|
165
159
|
isToolTipNeeded: boolean;
|
|
166
160
|
}[];
|
|
167
161
|
errors: {
|
|
@@ -320,6 +314,7 @@ export declare class ChipsComponent implements OnInit, OnDestroy {
|
|
|
320
314
|
};
|
|
321
315
|
};
|
|
322
316
|
};
|
|
317
|
+
breakPointMaxWidth: string;
|
|
323
318
|
};
|
|
324
319
|
chipsType: typeof ChipsType;
|
|
325
320
|
orientations: typeof ChipOrientation;
|
|
@@ -4,11 +4,10 @@ import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
|
4
4
|
import { MatSort, Sort, SortDirection } from '@angular/material/sort';
|
|
5
5
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
|
-
import { BreakpointObserverService
|
|
7
|
+
import { BreakpointObserverService } from '../../services/break-point-observer.service';
|
|
8
|
+
import { SafeType, IconButton, CheckboxOption } from '@ieeesa-npm/models';
|
|
8
9
|
import { TableColumnSchema, TableColumnType } from '../../models/table-schema.model';
|
|
9
10
|
import { PaginatorConfig } from '../../models/paginator-config.model';
|
|
10
|
-
import { CheckboxOption } from '../../models/checkbox-option.model';
|
|
11
|
-
import { IconButton } from '../../models/icon-button.model';
|
|
12
11
|
import { TableActions } from '../../models/table-actions.model';
|
|
13
12
|
import { ChipOption } from '../../models/chip-option.model';
|
|
14
13
|
import { SearchType } from '../../models/search.model';
|
|
@@ -4,15 +4,13 @@ import { FormModel } from '../../models/form.model';
|
|
|
4
4
|
import { FieldConfig } from '../../models/field-config.model';
|
|
5
5
|
import { FormGrid } from '../../models/form-grid.model';
|
|
6
6
|
import { DynamicFormFieldDirective } from '../../directives/dynamic-form-field/dynamic-form-field.directive';
|
|
7
|
-
import { AlignType } from '
|
|
8
|
-
import { CheckboxOption } from '../../models/checkbox-option.model';
|
|
7
|
+
import { AlignType, IconButton, CheckboxOption } from '@ieeesa-npm/models';
|
|
9
8
|
import { SelectedDate } from '../../models/selected-date.model';
|
|
10
9
|
import { SelectedTime } from '../../models/selected-time.model';
|
|
11
10
|
import { LinkEventEmitType } from '../../models/event-emit-type.model';
|
|
12
11
|
import { SlideToggleOption } from '../../models/slide-toggle-options.model';
|
|
13
12
|
import { SelectOpenedState } from '../../models/select-opened-state.model';
|
|
14
13
|
import { RadioOption } from '../../models/radio-option.model';
|
|
15
|
-
import { IconButton } from '../../models/icon-button.model';
|
|
16
14
|
import { AutoCompleteOption } from '../../models/autocomplete-option.model';
|
|
17
15
|
import { FileUploadStatus } from '../../models/file-upload-status.model';
|
|
18
16
|
import { FileDownloadAndDeleteConfig } from '../../models/file-download-config.model';
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { Overlay, OverlayPositionBuilder } from '@angular/cdk/overlay';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { ExportFormat, ExportFormatOption } from '../../models/export-format-popover.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* ExportFormatPopoverComponent renders a CDK Overlay popover anchored below
|
|
8
|
+
* a trigger element, presenting format selection cards (CSV / Excel).
|
|
9
|
+
* The popover supports keyboard navigation (Tab between options, Enter to select,
|
|
10
|
+
* Escape to close) and emits the selected format or a close event.
|
|
11
|
+
*
|
|
12
|
+
* @export
|
|
13
|
+
* @class ExportFormatPopoverComponent
|
|
14
|
+
* @implements {OnInit}
|
|
15
|
+
* @implements {OnChanges}
|
|
16
|
+
* @implements {OnDestroy}
|
|
17
|
+
*/
|
|
18
|
+
export declare class ExportFormatPopoverComponent implements OnInit, OnChanges, OnDestroy {
|
|
19
|
+
private overlay;
|
|
20
|
+
private overlayPositionBuilder;
|
|
21
|
+
private viewContainerRef;
|
|
22
|
+
/** Array of format options to display in the popover */
|
|
23
|
+
formatOptions: ExportFormatOption[];
|
|
24
|
+
/** The element the popover attaches to (anchor point) */
|
|
25
|
+
origin: ElementRef;
|
|
26
|
+
/** Controls overlay visibility */
|
|
27
|
+
isOpen: boolean;
|
|
28
|
+
/** Title text displayed at the top of the popover */
|
|
29
|
+
popoverTitle: string;
|
|
30
|
+
/** Subtitle map for format options (keyed by ExportFormat value) */
|
|
31
|
+
formatSubtitles: Record<string, string>;
|
|
32
|
+
/** Tracks the currently selected format for visual highlight */
|
|
33
|
+
selectedFormat: ExportFormat | null;
|
|
34
|
+
/** Emits when user selects a format */
|
|
35
|
+
formatSelected: EventEmitter<ExportFormat>;
|
|
36
|
+
/** Emits when popover closes without selection */
|
|
37
|
+
closed: EventEmitter<void>;
|
|
38
|
+
popoverTemplate: TemplateRef<unknown>;
|
|
39
|
+
private overlayRef;
|
|
40
|
+
private portal;
|
|
41
|
+
destroy$: Subject<boolean>;
|
|
42
|
+
constructor(overlay: Overlay, overlayPositionBuilder: OverlayPositionBuilder, viewContainerRef: ViewContainerRef);
|
|
43
|
+
/**
|
|
44
|
+
* Lifecycle hook — initial setup.
|
|
45
|
+
* @memberof ExportFormatPopoverComponent
|
|
46
|
+
*/
|
|
47
|
+
ngOnInit(): void;
|
|
48
|
+
/**
|
|
49
|
+
* Responds to input changes — opens or closes the overlay when `isOpen` changes.
|
|
50
|
+
* @param {SimpleChanges} changes
|
|
51
|
+
* @memberof ExportFormatPopoverComponent
|
|
52
|
+
*/
|
|
53
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
54
|
+
/**
|
|
55
|
+
* Creates and opens the CDK overlay positioned below the origin element.
|
|
56
|
+
* @memberof ExportFormatPopoverComponent
|
|
57
|
+
*/
|
|
58
|
+
private openOverlay;
|
|
59
|
+
/**
|
|
60
|
+
* Detaches and disposes the overlay.
|
|
61
|
+
* @memberof ExportFormatPopoverComponent
|
|
62
|
+
*/
|
|
63
|
+
private closeOverlay;
|
|
64
|
+
/**
|
|
65
|
+
* Closes the popover and emits the `closed` event.
|
|
66
|
+
* @memberof ExportFormatPopoverComponent
|
|
67
|
+
*/
|
|
68
|
+
private close;
|
|
69
|
+
/**
|
|
70
|
+
* Handles format option selection via click or Enter key.
|
|
71
|
+
* Emits the selected format and closes the overlay.
|
|
72
|
+
* @param {ExportFormat} format - The selected export format value
|
|
73
|
+
* @memberof ExportFormatPopoverComponent
|
|
74
|
+
*/
|
|
75
|
+
onFormatSelect(format: ExportFormat): void;
|
|
76
|
+
/**
|
|
77
|
+
* TrackBy function for *ngFor on format options.
|
|
78
|
+
* @param {number} index
|
|
79
|
+
* @param {ExportFormatOption} option
|
|
80
|
+
* @return {string}
|
|
81
|
+
* @memberof ExportFormatPopoverComponent
|
|
82
|
+
*/
|
|
83
|
+
trackByFormat(index: number, option: ExportFormatOption): string;
|
|
84
|
+
/**
|
|
85
|
+
* Cleans up overlay and subscriptions on component destroy.
|
|
86
|
+
* @memberof ExportFormatPopoverComponent
|
|
87
|
+
*/
|
|
88
|
+
ngOnDestroy(): void;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExportFormatPopoverComponent, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExportFormatPopoverComponent, "ieeesa-export-format-popover", never, { "formatOptions": { "alias": "formatOptions"; "required": false; }; "origin": { "alias": "origin"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "popoverTitle": { "alias": "popoverTitle"; "required": false; }; "formatSubtitles": { "alias": "formatSubtitles"; "required": false; }; }, { "formatSelected": "formatSelected"; "closed": "closed"; }, never, never, true, never>;
|
|
91
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { ExportSuccessDialogData } from '../../models/export-success-dialog.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* ExportSuccessDialogComponent displays a centered success message after
|
|
6
|
+
* a file export completes. Shows the filename in bold and a single "Close" button.
|
|
7
|
+
*
|
|
8
|
+
* Opens via `MatDialog.open(ExportSuccessDialogComponent, { data: ExportSuccessDialogData })`.
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @class ExportSuccessDialogComponent
|
|
12
|
+
*/
|
|
13
|
+
export declare class ExportSuccessDialogComponent {
|
|
14
|
+
data: ExportSuccessDialogData;
|
|
15
|
+
private dialogRef;
|
|
16
|
+
constructor(data: ExportSuccessDialogData, dialogRef: MatDialogRef<ExportSuccessDialogComponent>);
|
|
17
|
+
/**
|
|
18
|
+
* Handles the Close button click — closes the dialog.
|
|
19
|
+
* @memberof ExportSuccessDialogComponent
|
|
20
|
+
*/
|
|
21
|
+
onClose(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExportSuccessDialogComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExportSuccessDialogComponent, "ieeesa-export-success-dialog", never, {}, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -4,13 +4,13 @@ import { FileUploadService } from '../../services/file-upload.service';
|
|
|
4
4
|
import { FileDownloadAndDeleteConfig } from '../../models/file-download-config.model';
|
|
5
5
|
import { DownloadAttachment } from '../../models/download-file.model';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
|
-
import {
|
|
8
|
-
import { AlignType } from '
|
|
7
|
+
import { AlertsService } from '@ieeesa-npm/utility';
|
|
8
|
+
import { AlignType } from '@ieeesa-npm/models';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class FileDownloadComponent implements OnInit, OnDestroy {
|
|
11
11
|
formUtilityService: FormUtilityService;
|
|
12
|
-
sharedService: SharedService;
|
|
13
12
|
private fileUploadService;
|
|
13
|
+
private alertService;
|
|
14
14
|
constants: {
|
|
15
15
|
ariaLabel: {
|
|
16
16
|
clear: string;
|
|
@@ -308,6 +308,7 @@ export declare class FileDownloadComponent implements OnInit, OnDestroy {
|
|
|
308
308
|
};
|
|
309
309
|
};
|
|
310
310
|
};
|
|
311
|
+
breakPointMaxWidth: string;
|
|
311
312
|
};
|
|
312
313
|
destroy$: Subject<boolean>;
|
|
313
314
|
preSignedUrl: string;
|
|
@@ -327,7 +328,7 @@ export declare class FileDownloadComponent implements OnInit, OnDestroy {
|
|
|
327
328
|
disabled: boolean;
|
|
328
329
|
};
|
|
329
330
|
apiBaseUrl: string;
|
|
330
|
-
constructor(formUtilityService: FormUtilityService,
|
|
331
|
+
constructor(formUtilityService: FormUtilityService, fileUploadService: FileUploadService, alertService: AlertsService);
|
|
331
332
|
/**
|
|
332
333
|
* Sets API base URL to file upload service
|
|
333
334
|
* @memberof FileDownloadComponent
|
|
@@ -5,7 +5,7 @@ import { FieldConfig } from '../../models/field-config.model';
|
|
|
5
5
|
import { AllowedFileTypes } from '../../models/allowed-file-types.model';
|
|
6
6
|
import { FileUploadService } from '../../services/file-upload.service';
|
|
7
7
|
import { AlignBrowsedFiles } from '../../models/align-browsed-files.model';
|
|
8
|
-
import { AlignType } from '
|
|
8
|
+
import { AlignType } from '@ieeesa-npm/models';
|
|
9
9
|
import { FileUploadStatus } from '../../models/file-upload-status.model';
|
|
10
10
|
import { FileDownloadAndDeleteConfig } from '../../models/file-download-config.model';
|
|
11
11
|
import { DownloadAttachment } from '../../models/download-file.model';
|
|
@@ -232,7 +232,10 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
232
232
|
fileUpload: string;
|
|
233
233
|
allowedFileSize1: string;
|
|
234
234
|
allowedFileSize2: string;
|
|
235
|
-
allowedFileFormat: string;
|
|
235
|
+
allowedFileFormat: string; /**
|
|
236
|
+
* Emits downloadSelectedFile event.
|
|
237
|
+
* @memberof FileUploadComponent
|
|
238
|
+
*/
|
|
236
239
|
browseFiles: string;
|
|
237
240
|
uploadProgress: string;
|
|
238
241
|
upload: string;
|
|
@@ -282,10 +285,6 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
282
285
|
maxFilesUploadedOnce: number;
|
|
283
286
|
};
|
|
284
287
|
};
|
|
285
|
-
/**
|
|
286
|
-
* Based on isMultiFileUpload flag return files to download.
|
|
287
|
-
* @memberof FileUploadComponent
|
|
288
|
-
*/
|
|
289
288
|
list: {
|
|
290
289
|
defaultIndentation: number;
|
|
291
290
|
dragAndDropIconUrl: string;
|
|
@@ -307,11 +306,7 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
307
306
|
buttons: {
|
|
308
307
|
id: number;
|
|
309
308
|
ariaLabel: string;
|
|
310
|
-
iconURL: string;
|
|
311
|
-
* Sets empty value to file form control once it is clicked.
|
|
312
|
-
* @param {Event} event
|
|
313
|
-
* @memberof FileUploadComponent
|
|
314
|
-
*/
|
|
309
|
+
iconURL: string;
|
|
315
310
|
toolTip: string;
|
|
316
311
|
disabled: boolean;
|
|
317
312
|
}[];
|
|
@@ -325,12 +320,16 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
325
320
|
};
|
|
326
321
|
};
|
|
327
322
|
};
|
|
323
|
+
breakPointMaxWidth: string;
|
|
328
324
|
};
|
|
329
325
|
fileUploadLabel: {
|
|
330
326
|
fileUpload: string;
|
|
331
327
|
allowedFileSize1: string;
|
|
332
328
|
allowedFileSize2: string;
|
|
333
|
-
allowedFileFormat: string;
|
|
329
|
+
allowedFileFormat: string; /**
|
|
330
|
+
* Emits downloadSelectedFile event.
|
|
331
|
+
* @memberof FileUploadComponent
|
|
332
|
+
*/
|
|
334
333
|
browseFiles: string;
|
|
335
334
|
uploadProgress: string;
|
|
336
335
|
upload: string;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { BreakpointObserverService } from '
|
|
2
|
+
import { BreakpointObserverService } from '../../services/break-point-observer.service';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
|
-
import { CheckboxOption } from '
|
|
5
|
-
import { IconButton } from '../../models/icon-button.model';
|
|
4
|
+
import { CheckboxOption, IconButton, SelectOption } from '@ieeesa-npm/models';
|
|
6
5
|
import { ChipOption, FilterOptionType } from '../../models/chip-option.model';
|
|
7
6
|
import { FiltersAndOptions } from '../../models/filters-options.model';
|
|
8
|
-
import { SelectOption } from '../../models/select-option.model';
|
|
9
7
|
import { SelectComponent } from '../../components/select/select.component';
|
|
10
8
|
import { SelectOpenedState } from '../../models/select-opened-state.model';
|
|
11
9
|
import * as i0 from "@angular/core";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { HeaderConfig } from '../../models/header-config.model';
|
|
3
|
-
import { BreakpointObserverService
|
|
3
|
+
import { BreakpointObserverService } from '../../services/break-point-observer.service';
|
|
4
|
+
import { AuthService, StorageService, AlertsService } from '@ieeesa-npm/utility';
|
|
5
|
+
import { IconButton } from '@ieeesa-npm/models';
|
|
4
6
|
import { Subject } from 'rxjs';
|
|
5
7
|
import { Menu } from '../../models/menu.model';
|
|
6
|
-
import { IconButton } from '../../models/icon-button.model';
|
|
7
|
-
import { SharedService } from '@ieeesa-npm/shared';
|
|
8
8
|
import { FileUploadService } from '../../services/file-upload.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
@@ -15,7 +15,7 @@ export declare class HeaderComponent implements OnInit, OnDestroy {
|
|
|
15
15
|
private breakPointObserverService;
|
|
16
16
|
private authService;
|
|
17
17
|
private storageService;
|
|
18
|
-
private
|
|
18
|
+
private alertService;
|
|
19
19
|
private fileUploadService;
|
|
20
20
|
private headerConfigInfo;
|
|
21
21
|
screenTexts: any;
|
|
@@ -39,7 +39,7 @@ export declare class HeaderComponent implements OnInit, OnDestroy {
|
|
|
39
39
|
toggleNavMenuClick: EventEmitter<Event>;
|
|
40
40
|
profileMenuClick: EventEmitter<Menu>;
|
|
41
41
|
userProfileIconButton: IconButton;
|
|
42
|
-
constructor(breakPointObserverService: BreakpointObserverService, authService: AuthService, storageService: StorageService,
|
|
42
|
+
constructor(breakPointObserverService: BreakpointObserverService, authService: AuthService, storageService: StorageService, alertService: AlertsService, fileUploadService: FileUploadService);
|
|
43
43
|
/**
|
|
44
44
|
* Sets the appBaseUrl and gets the logo download AWS pre-signed URL from API.
|
|
45
45
|
*/
|
|
@@ -50,8 +50,8 @@ export declare class HeaderComponent implements OnInit, OnDestroy {
|
|
|
50
50
|
getImageUrl(): void;
|
|
51
51
|
/**
|
|
52
52
|
* Desktop event to navigate to logout page.
|
|
53
|
+
* Deletes the application specific and SSO related cookies.
|
|
53
54
|
* @memberof HeaderComponent
|
|
54
|
-
* It will deletes the application specific and SSO related cookies
|
|
55
55
|
*/
|
|
56
56
|
logout(): void;
|
|
57
57
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { ListHeader, ListItem } from '../../models/list-item.model';
|
|
3
3
|
import { Menu } from '../../models/menu.model';
|
|
4
|
-
import { IconButton } from '
|
|
4
|
+
import { IconButton } from '@ieeesa-npm/models';
|
|
5
5
|
import { FileDownloadAndDeleteConfig } from '../../models/file-download-config.model';
|
|
6
6
|
import { DownloadAttachment } from '../../models/download-file.model';
|
|
7
7
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { Menu } from '../../models/menu.model';
|
|
3
|
-
import { IconButton } from '
|
|
3
|
+
import { IconButton } from '@ieeesa-npm/models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Creates menu and the menu items are icon based buttons
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentRef, EventEmitter, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { ModalType } from '@ieeesa-npm/
|
|
3
|
+
import { ModalType } from '@ieeesa-npm/models';
|
|
4
4
|
import { ToggleButton } from '../../models/toggle-button.model';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MatDialogRef } from "@angular/material/dialog";
|
|
2
|
-
import { AlignType } from
|
|
3
|
-
import { ConfirmationModalData } from "../../models/confirmation-modal-data.model";
|
|
2
|
+
import { AlignType, ConfirmationModalData } from '@ieeesa-npm/models';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* ModalConfirmationComponent is used to get user confirmation and this component should be invoked by using Angular material MatDialog open method.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { InfoModalData } from '@ieeesa-npm/models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* ModalInfoComponent is a simple informational dialog that displays a centered message
|
|
6
|
+
* with a single dismissal button.
|
|
7
|
+
*
|
|
8
|
+
* @usageNotes - Pass ModalInfoComponent and data options as parameters to MatDialog open method:
|
|
9
|
+
* this.dialog.open(ModalInfoComponent, { data: { message: '...', buttonLabel: 'OK' } })
|
|
10
|
+
* @class ModalInfoComponent
|
|
11
|
+
*/
|
|
12
|
+
export declare class ModalInfoComponent {
|
|
13
|
+
data: InfoModalData;
|
|
14
|
+
private dialogRef;
|
|
15
|
+
constructor(data: InfoModalData, dialogRef: MatDialogRef<ModalInfoComponent>);
|
|
16
|
+
/**
|
|
17
|
+
* Closes the info dialog.
|
|
18
|
+
* @memberof ModalInfoComponent
|
|
19
|
+
*/
|
|
20
|
+
onClose(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalInfoComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalInfoComponent, "ieeesa-modal-info", never, {}, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -5,7 +5,7 @@ import { Subject } from 'rxjs';
|
|
|
5
5
|
import { MatChipInputEvent } from '@angular/material/chips';
|
|
6
6
|
import { FormUtilityService } from '../../services/form-utility.service';
|
|
7
7
|
import { AutoCompleteOption } from '../../models/autocomplete-option.model';
|
|
8
|
-
import { SelectOption } from '
|
|
8
|
+
import { SelectOption } from '@ieeesa-npm/models';
|
|
9
9
|
import { FieldConfig } from '../../models/field-config.model';
|
|
10
10
|
import { FormField } from '../../models/form-field.model';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { PolicyConfirmationDialogData } from '../../models/policy-confirmation-dialog.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* PolicyConfirmationDialogComponent is a reusable confirmation dialog that displays
|
|
6
|
+
* a configurable title, body text, and Cancel/Confirm action buttons.
|
|
7
|
+
* Used for the IEEE Data Access and Use Policy confirmation in the attendance export flow.
|
|
8
|
+
*
|
|
9
|
+
* Opens via `MatDialog.open(PolicyConfirmationDialogComponent, { data: PolicyConfirmationDialogData })`.
|
|
10
|
+
* Returns `true` on confirm, `false` on cancel or close.
|
|
11
|
+
*
|
|
12
|
+
* @export
|
|
13
|
+
* @class PolicyConfirmationDialogComponent
|
|
14
|
+
*/
|
|
15
|
+
export declare class PolicyConfirmationDialogComponent {
|
|
16
|
+
data: PolicyConfirmationDialogData;
|
|
17
|
+
private dialogRef;
|
|
18
|
+
constructor(data: PolicyConfirmationDialogData, dialogRef: MatDialogRef<PolicyConfirmationDialogComponent>);
|
|
19
|
+
/**
|
|
20
|
+
* Handles the Confirm button click — closes the dialog returning `true`.
|
|
21
|
+
* @memberof PolicyConfirmationDialogComponent
|
|
22
|
+
*/
|
|
23
|
+
onConfirm(): void;
|
|
24
|
+
/**
|
|
25
|
+
* Handles the Cancel button click — closes the dialog returning `false`.
|
|
26
|
+
* @memberof PolicyConfirmationDialogComponent
|
|
27
|
+
*/
|
|
28
|
+
onCancel(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Handles the X (close) button click — closes the dialog returning `false`.
|
|
31
|
+
* @memberof PolicyConfirmationDialogComponent
|
|
32
|
+
*/
|
|
33
|
+
onClose(): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PolicyConfirmationDialogComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PolicyConfirmationDialogComponent, "ieeesa-policy-confirmation-dialog", never, {}, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, AfterViewInit, QueryList } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { SelectOption } from '
|
|
3
|
+
import { SelectOption } from '@ieeesa-npm/models';
|
|
4
4
|
import { FieldConfig } from '../../models/field-config.model';
|
|
5
5
|
import { SearchType } from '../../models/search.model';
|
|
6
6
|
import { SearchComponent } from '../../components/search/search.component';
|
|
@@ -2,10 +2,9 @@ import { ComponentRef, EventEmitter, OnDestroy, OnInit, ViewContainerRef } from
|
|
|
2
2
|
import { MatTabChangeEvent, MatTabGroup } from '@angular/material/tabs';
|
|
3
3
|
import { Tab } from '../../models/tab.model';
|
|
4
4
|
import { MatDialog } from '@angular/material/dialog';
|
|
5
|
-
import { ConfirmationModalData } from '../../models/confirmation-modal-data.model';
|
|
6
5
|
import { Subject } from 'rxjs';
|
|
7
6
|
import { FormGroup } from '@angular/forms';
|
|
8
|
-
import { EventsAndMeetingRouteConfig, UserPermission } from '@ieeesa-npm/
|
|
7
|
+
import { EventsAndMeetingRouteConfig, UserPermission, ConfirmationModalData } from '@ieeesa-npm/models';
|
|
9
8
|
import { CustomProperties } from '../../models/custom-properties.model';
|
|
10
9
|
import * as i0 from "@angular/core";
|
|
11
10
|
export declare class TabsComponent implements OnInit, OnDestroy {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { Button, Tile } from '../../models/tile.model';
|
|
3
|
-
import { AlignType } from '
|
|
3
|
+
import { AlignType } from '@ieeesa-npm/models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Creates tile component.
|
|
@@ -3,14 +3,14 @@ import { FormGroup } from '@angular/forms';
|
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { FieldConfig } from '../../models/field-config.model';
|
|
5
5
|
import { FormField } from '../../models/form-field.model';
|
|
6
|
-
import { CheckboxOption } from '
|
|
6
|
+
import { CheckboxOption } from '@ieeesa-npm/models';
|
|
7
7
|
import { SelectedDate } from '../../models/selected-date.model';
|
|
8
8
|
import { SelectedTime } from '../../models/selected-time.model';
|
|
9
9
|
import { LinkEventEmitType } from '../../models/event-emit-type.model';
|
|
10
10
|
import { SlideToggleOption } from '../../models/slide-toggle-options.model';
|
|
11
11
|
import { SelectOpenedState } from '../../models/select-opened-state.model';
|
|
12
12
|
import { RadioOption } from '../../models/radio-option.model';
|
|
13
|
-
import { IconButton } from '
|
|
13
|
+
import { IconButton } from '@ieeesa-npm/models';
|
|
14
14
|
import { AutoCompleteOption } from '../../models/autocomplete-option.model';
|
|
15
15
|
import { FileUploadStatus } from '../../models/file-upload-status.model';
|
|
16
16
|
import { FileDownloadAndDeleteConfig } from '../../models/file-download-config.model';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { SafeStyle } from '@angular/platform-browser';
|
|
3
|
-
import { SafePipe } from '
|
|
3
|
+
import { SafePipe } from '../../pipes/safe.pipe';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Sets background color and image for the attached element.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Available export file formats for attendance data
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ExportFormat {
|
|
5
|
+
CSV = "csv",
|
|
6
|
+
EXCEL = "xls"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Configuration option for a format selection card in the export format popover
|
|
10
|
+
*/
|
|
11
|
+
export interface ExportFormatOption {
|
|
12
|
+
label: string;
|
|
13
|
+
value: ExportFormat;
|
|
14
|
+
ariaLabel: string;
|
|
15
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ValidatorFn } from '@angular/forms';
|
|
2
|
-
import { CheckboxOption } from '../models/checkbox-option.model';
|
|
3
2
|
import { DatePicker } from '../models/date-picker.model';
|
|
4
3
|
import { RadioOption } from '../models/radio-option.model';
|
|
5
4
|
import { SearchType } from '../models/search.model';
|
|
6
|
-
import { SelectOption } from '
|
|
5
|
+
import { SelectOption, AlignType, CheckboxOption } from '@ieeesa-npm/models';
|
|
7
6
|
import { AutoCompleteOption } from '../models/autocomplete-option.model';
|
|
8
7
|
import { LinkType } from './link-type.model';
|
|
9
8
|
import { SlideToggleOption } from './slide-toggle-options.model';
|
|
@@ -11,7 +10,6 @@ import { ColorFormat, ColorsAnimation } from './color-format.model';
|
|
|
11
10
|
import { AllowedFileTypes } from './allowed-file-types.model';
|
|
12
11
|
import { EditorConfig } from 'ngx-simple-text-editor';
|
|
13
12
|
import { AlignBrowsedFiles } from './align-browsed-files.model';
|
|
14
|
-
import { AlignType } from './align-type.model';
|
|
15
13
|
export interface FieldConfig {
|
|
16
14
|
isSortNeeded?: boolean;
|
|
17
15
|
disabled?: boolean;
|