@ieeesa-npm/presentation 0.16.2 → 0.16.3
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/components/image-preview/image-preview.component.mjs +28 -0
- package/esm2022/lib/components/inactive-tenant/inactive-tenant.component.mjs +46 -0
- package/esm2022/lib/models/accordion-info.model.mjs +14 -2
- package/esm2022/lib/models/app-config-info.model.mjs +1 -1
- package/esm2022/lib/models/inactive-tenant.model.mjs +2 -0
- package/esm2022/lib/services/file-upload.service.mjs +29 -5
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +110 -5
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/image-preview/image-preview.component.d.ts +11 -0
- package/lib/components/inactive-tenant/inactive-tenant.component.d.ts +21 -0
- package/lib/models/accordion-info.model.d.ts +7 -0
- package/lib/models/app-config-info.model.d.ts +2 -0
- package/lib/models/inactive-tenant.model.d.ts +5 -0
- package/lib/services/file-upload.service.d.ts +8 -22
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -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
|
+
}
|
|
@@ -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
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';
|
|
@@ -86,6 +88,7 @@ export * from './lib/models/color-format.model';
|
|
|
86
88
|
export * from './lib/models/allowed-file-types.model';
|
|
87
89
|
export * from './lib/models/file-upload-presigned-url-res.model';
|
|
88
90
|
export * from './lib/models/accordion-info.model';
|
|
91
|
+
export * from './lib/models/inactive-tenant.model';
|
|
89
92
|
export * from './lib/services/datepicker.service';
|
|
90
93
|
export * from './lib/services/form-utility.service';
|
|
91
94
|
export * from './lib/services/file-upload.service';
|