@ieeesa-npm/presentation 0.16.2 → 0.16.4

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 (27) hide show
  1. package/esm2022/lib/components/image-preview/image-preview.component.mjs +28 -0
  2. package/esm2022/lib/components/inactive-tenant/inactive-tenant.component.mjs +46 -0
  3. package/esm2022/lib/components/tabs/tabs.component.mjs +5 -21
  4. package/esm2022/lib/models/accordion-info.model.mjs +14 -2
  5. package/esm2022/lib/models/app-config-info.model.mjs +1 -1
  6. package/esm2022/lib/models/inactive-tenant.model.mjs +2 -0
  7. package/esm2022/lib/models/list-item.model.mjs +1 -1
  8. package/esm2022/lib/services/file-upload.service.mjs +29 -5
  9. package/esm2022/public-api.mjs +4 -2
  10. package/fesm2022/ieeesa-npm-presentation.mjs +113 -24
  11. package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
  12. package/lib/components/dynamic-form/dynamic-form.component.d.ts +1 -1
  13. package/lib/components/file-upload/file-upload.component.d.ts +2 -2
  14. package/lib/components/image-preview/image-preview.component.d.ts +11 -0
  15. package/lib/components/inactive-tenant/inactive-tenant.component.d.ts +21 -0
  16. package/lib/components/tabs/tabs.component.d.ts +1 -6
  17. package/lib/directives/dynamic-form-field/dynamic-form-field.directive.d.ts +1 -1
  18. package/lib/directives/file-upload/file-upload.directive.d.ts +1 -1
  19. package/lib/models/accordion-info.model.d.ts +7 -0
  20. package/lib/models/app-config-info.model.d.ts +2 -0
  21. package/lib/models/inactive-tenant.model.d.ts +5 -0
  22. package/lib/models/list-item.model.d.ts +1 -0
  23. package/lib/services/file-upload.service.d.ts +8 -22
  24. package/package.json +1 -1
  25. package/public-api.d.ts +3 -1
  26. package/esm2022/lib/models/route-params.model.mjs +0 -2
  27. package/lib/models/route-params.model.d.ts +0 -4
@@ -79,7 +79,7 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit {
79
79
  formTimeSelected: EventEmitter<SelectedTime>;
80
80
  supportTextLinkClick: EventEmitter<LinkEventEmitType>;
81
81
  formSlideToggleChange: EventEmitter<SlideToggleOption>;
82
- formFileUpload: EventEmitter<FileList | File>;
82
+ formFileUpload: EventEmitter<File | FileList>;
83
83
  dropdownOpenedChange: EventEmitter<SelectOpenedState>;
84
84
  formColorPickerChange: EventEmitter<string>;
85
85
  formRadioOptionSelected: EventEmitter<RadioOption>;
@@ -288,8 +288,8 @@ export declare class FileUploadComponent implements OnInit {
288
288
  private uploadedSizeValue;
289
289
  get uploadedSize(): number;
290
290
  set uploadedSize(value: number);
291
- uploadSelectedFiles: EventEmitter<FileList | File>;
292
- downloadSelectedFile: EventEmitter<FileList | File>;
291
+ uploadSelectedFiles: EventEmitter<File | FileList>;
292
+ downloadSelectedFile: EventEmitter<File | FileList>;
293
293
  constructor(formUtilityService: FormUtilityService, fileUploadService: FileUploadService);
294
294
  /**
295
295
  * Initializes component properties and retrieves configuration.
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ImagePreviewComponent implements OnInit {
4
+ isSvg: boolean;
5
+ imageURL: string;
6
+ imageName: string;
7
+ set imageUrl(value: string);
8
+ ngOnInit(): void;
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>;
11
+ }
@@ -0,0 +1,21 @@
1
+ import { InactiveTenantDisplay } from '../../models/inactive-tenant.model';
2
+ import { AppConfigInfo } from '../../models/app-config-info.model';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Provides reusable implementation to Inactive tenant error page by getting the application config and display contents information as an input to the component.
6
+ * @export
7
+ * @class InactiveTenantComponent
8
+ */
9
+ export declare class InactiveTenantComponent {
10
+ /**
11
+ * AppConfigInfo data can be passed as input while calling this component using selector.
12
+ * @usage <nesc-inactive-tenant [appConfigInfo]="appConfigInfo" [inactiveTenantDisplay]="inactiveTenantDisplay"></nesc-inactive-tenant> or routes: Route[]=[{ path: 'landing', component: InactiveTenantComponent, data:{appConfigInfo:appConfigInfo} }]
13
+ * @type {AppConfigInfo}
14
+ * @type {InactiveTenantDisplay}
15
+ * @memberof InactiveTenantComponent
16
+ */
17
+ appConfigInfo: AppConfigInfo;
18
+ inactiveTenantDisplay: InactiveTenantDisplay;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<InactiveTenantComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<InactiveTenantComponent, "ieeesa-inactive-tenant", never, { "appConfigInfo": { "alias": "appConfigInfo"; "required": false; }; "inactiveTenantDisplay": { "alias": "inactiveTenantDisplay"; "required": false; }; }, {}, never, never, true, never>;
21
+ }
@@ -26,11 +26,6 @@ export declare class TabsComponent implements OnInit, OnDestroy {
26
26
  formSubmit: EventEmitter<FormGroup<any>[]>;
27
27
  constants: any;
28
28
  modalConfigTexts: any;
29
- eventId: string;
30
- meetingId: string;
31
- routePaths: any;
32
- apiBaseURL: string;
33
- userPermissions: any;
34
29
  constructor(dialog: MatDialog);
35
30
  /**
36
31
  * Verifies tabs count and calls createComponent() to load selected component.
@@ -70,5 +65,5 @@ export declare class TabsComponent implements OnInit, OnDestroy {
70
65
  */
71
66
  ngOnDestroy(): void;
72
67
  static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
73
- static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "ieeesa-tabs", never, { "selectedTabIndex": { "alias": "selectedTabIndex"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "isFormChanged": { "alias": "isFormChanged"; "required": false; }; "confirmationModalConfig": { "alias": "confirmationModalConfig"; "required": false; }; "eventId": { "alias": "eventId"; "required": false; }; "meetingId": { "alias": "meetingId"; "required": false; }; "routePaths": { "alias": "routePaths"; "required": false; }; "apiBaseURL": { "alias": "apiBaseURL"; "required": false; }; "userPermissions": { "alias": "userPermissions"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; }, never, never, true, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "ieeesa-tabs", never, { "selectedTabIndex": { "alias": "selectedTabIndex"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "isFormChanged": { "alias": "isFormChanged"; "required": false; }; "confirmationModalConfig": { "alias": "confirmationModalConfig"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; }, never, never, true, never>;
74
69
  }
@@ -72,7 +72,7 @@ export declare class DynamicFormFieldDirective implements FormField, OnInit, OnD
72
72
  formSlideToggleChange: EventEmitter<SlideToggleOption>;
73
73
  dropdownOpenedChange: EventEmitter<SelectOpenedState>;
74
74
  formColorPickerChange: EventEmitter<string>;
75
- formFileUpload: EventEmitter<FileList | File>;
75
+ formFileUpload: EventEmitter<File | FileList>;
76
76
  formRadioOptionSelected: EventEmitter<RadioOption>;
77
77
  component: ComponentRef<any>;
78
78
  constructor(container: ViewContainerRef);
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
8
8
  export declare class FileUploadDirective {
9
9
  allowedFileTypes: string[];
10
10
  isMultiFileUpload: boolean;
11
- fileDropped: EventEmitter<FileList | File>;
11
+ fileDropped: EventEmitter<File | FileList>;
12
12
  /**
13
13
  * Binds the 'multiple' attribute based on the value of allowMultiple property.
14
14
  * @readonly
@@ -3,3 +3,10 @@ export interface AccordionInfo {
3
3
  title: string;
4
4
  isDisabled: boolean;
5
5
  }
6
+ export declare enum AccordionDetails {
7
+ BASIC_DETAILS = 1,
8
+ ROLES_AND_PERMISSIONS = 2,
9
+ GROUP_TYPES = 3,
10
+ MEETINGS_AND_EVENTS = 4,
11
+ BALLOTS = 5
12
+ }
@@ -13,4 +13,6 @@ export interface AppConfigInfo {
13
13
  signOutRedirectionCookie: string;
14
14
  createAccountRouteUrl?: string;
15
15
  createAccountUrl?: string;
16
+ helpLink?: string;
17
+ logoUrl?: string;
16
18
  }
@@ -0,0 +1,5 @@
1
+ export interface InactiveTenantDisplay {
2
+ errorMessage: string;
3
+ helpLink: string;
4
+ supportText: string;
5
+ }
@@ -5,6 +5,7 @@ export interface ListItem {
5
5
  parentId: string | null;
6
6
  title: string;
7
7
  description?: string;
8
+ moreInfo?: any;
8
9
  level: number;
9
10
  rank: number;
10
11
  subItems?: ListItem[];
@@ -37,10 +37,7 @@ export declare class FileUploadService implements OnDestroy {
37
37
  chips: {
38
38
  noOfDefaultVisibleChips: number;
39
39
  label: {
40
- viewAll: string; /**
41
- * This service interacts with the server to obtain pre-signed URLs for file upload and uploads files to Amazon S3.
42
- * @class FileUploadService
43
- */
40
+ viewAll: string;
44
41
  viewLess: string;
45
42
  };
46
43
  ariaLabel: {
@@ -76,11 +73,6 @@ export declare class FileUploadService implements OnDestroy {
76
73
  };
77
74
  ariaLabel: {
78
75
  search: string;
79
- /**
80
- * Sets the base URL for API requests.
81
- * @param {string} apiBaseUrl -API base URL.
82
- * @memberof FileUploadService
83
- */
84
76
  selectAll: string;
85
77
  select: string;
86
78
  link: string;
@@ -112,11 +104,6 @@ export declare class FileUploadService implements OnDestroy {
112
104
  id: number;
113
105
  iconURL: string;
114
106
  toolTip: string;
115
- /**
116
- * Gets file upload progress.
117
- * @param {*} message
118
- * @memberof FileUploadService
119
- */
120
107
  ariaLabel: string;
121
108
  }[];
122
109
  };
@@ -174,12 +161,6 @@ export declare class FileUploadService implements OnDestroy {
174
161
  };
175
162
  welcome: {
176
163
  buttons: {
177
- /**
178
- * Retrieves presigned URL for downloading files to Amazon S3 bucket.
179
- * @param {(File | FileList)} file
180
- * @return {Observable<string>}
181
- * @memberof FileUploadService
182
- */
183
164
  label: string;
184
165
  ariaLabel: string;
185
166
  url: string;
@@ -201,7 +182,12 @@ export declare class FileUploadService implements OnDestroy {
201
182
  };
202
183
  colorPicker: {
203
184
  selectLabel: string;
204
- cancelLabel: string;
185
+ cancelLabel: string; /**
186
+ * Retrieves presigned URL for downloading files to Amazon S3 bucket.
187
+ * @param {(File | FileList)} file
188
+ * @return {Observable<string>}
189
+ * @memberof FileUploadService
190
+ */
205
191
  defaultColor: string;
206
192
  ariaLabel: string;
207
193
  ariaDescription: string;
@@ -320,7 +306,7 @@ export declare class FileUploadService implements OnDestroy {
320
306
  * @return {Observable<string>}
321
307
  * @memberof FileUploadService
322
308
  */
323
- getFileDownloadPresignedUrls(file: File | FileList): Observable<string>;
309
+ getFileDownloadPresignedUrls(file: File | FileList | string): Observable<string>;
324
310
  /**
325
311
  * Downloads file to AWS S3 using a presigned URL.
326
312
  * @return {Observable<any>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.16.2",
3
+ "version": "0.16.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
package/public-api.d.ts CHANGED
@@ -35,6 +35,8 @@ export * from './lib/components/card/card.component';
35
35
  export * from './lib/components/color-picker/color-picker.component';
36
36
  export * from './lib/components/file-upload/file-upload.component';
37
37
  export * from './lib/components/accordion/accordion.component';
38
+ export * from './lib/components/inactive-tenant/inactive-tenant.component';
39
+ export * from './lib/components/image-preview/image-preview.component';
38
40
  export * from './lib/directives/dynamic-form-field/dynamic-form-field.directive';
39
41
  export * from './lib/directives/focus-invalid-form-field/focus-invalid-form-field.directive';
40
42
  export * from './lib/directives/set-background/set-background.directive';
@@ -62,7 +64,6 @@ export * from './lib/models/list-item.model';
62
64
  export * from './lib/models/menu.model';
63
65
  export * from './lib/models/navigation-menu.model';
64
66
  export * from './lib/models/radio-option.model';
65
- export * from './lib/models/route-params.model';
66
67
  export * from './lib/models/search.model';
67
68
  export * from './lib/models/select-opened-state.model';
68
69
  export * from './lib/models/select-option.model';
@@ -86,6 +87,7 @@ export * from './lib/models/color-format.model';
86
87
  export * from './lib/models/allowed-file-types.model';
87
88
  export * from './lib/models/file-upload-presigned-url-res.model';
88
89
  export * from './lib/models/accordion-info.model';
90
+ export * from './lib/models/inactive-tenant.model';
89
91
  export * from './lib/services/datepicker.service';
90
92
  export * from './lib/services/form-utility.service';
91
93
  export * from './lib/services/file-upload.service';
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUtcGFyYW1zLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcHJlc2VudGF0aW9uL3NyYy9saWIvbW9kZWxzL3JvdXRlLXBhcmFtcy5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBSb3V0ZVBhcmFtcyB7XHJcbiAgZXZlbnRJZDogc3RyaW5nO1xyXG4gIG1lZXRpbmdJZDogc3RyaW5nO1xyXG59XHJcbiJdfQ==
@@ -1,4 +0,0 @@
1
- export interface RouteParams {
2
- eventId: string;
3
- meetingId: string;
4
- }