@yomotech/view-toolkit 0.0.41 → 0.0.43
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/package.json
CHANGED
|
@@ -9,8 +9,8 @@ import { NzModalService } from 'ng-zorro-antd/modal';
|
|
|
9
9
|
import { OktaAuthStateService } from '@okta/okta-angular';
|
|
10
10
|
import { ToastrService } from 'ngx-toastr';
|
|
11
11
|
import { NgForm } from '@angular/forms';
|
|
12
|
+
import { DynamicDialogRef, DialogService } from 'primeng/dynamicdialog';
|
|
12
13
|
import OktaAuth from '@okta/okta-auth-js';
|
|
13
|
-
import { DialogService } from 'primeng/dynamicdialog';
|
|
14
14
|
import { NzI18nService } from 'ng-zorro-antd/i18n';
|
|
15
15
|
|
|
16
16
|
declare class RequestService {
|
|
@@ -91,6 +91,7 @@ declare class UtilityService {
|
|
|
91
91
|
private endOfDay;
|
|
92
92
|
private isSameDay;
|
|
93
93
|
private toLocalISO;
|
|
94
|
+
getMediaSrc(file: any): string;
|
|
94
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<UtilityService, never>;
|
|
95
96
|
static ɵprov: i0.ɵɵInjectableDeclaration<UtilityService>;
|
|
96
97
|
}
|
|
@@ -270,21 +271,46 @@ declare class GridComponent implements AfterViewInit {
|
|
|
270
271
|
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "vl-grid", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "tableitemInfo": { "alias": "tableitemInfo"; "required": false; }; "form": { "alias": "form"; "required": false; }; "isTableDataLoad": { "alias": "isTableDataLoad"; "required": false; }; "currenTableOptions": { "alias": "currenTableOptions"; "required": false; }; "projectSeleted": { "alias": "projectSeleted"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; }, { "onPageChange": "onPageChange"; "onPageSizeChange": "onPageSizeChange"; "onGridScroll": "onGridScroll"; "showGridLink": "showGridLink"; "gridButtonClick": "gridButtonClick"; "gridIncreamentClick": "gridIncreamentClick"; "gridDecreamentClick": "gridDecreamentClick"; "gridImgClick": "gridImgClick"; }, never, never, true, never>;
|
|
271
272
|
}
|
|
272
273
|
|
|
274
|
+
declare class Couchdb {
|
|
275
|
+
private utilityService;
|
|
276
|
+
private readonly couchDbBaseUrl;
|
|
277
|
+
constructor(utilityService: UtilityService);
|
|
278
|
+
getTenantDatabases(tenantKey: any): Promise<any[]>;
|
|
279
|
+
private parseJsonOrText;
|
|
280
|
+
private stringifyErrorDetails;
|
|
281
|
+
getFileContentFromCouchDb(couchDbName: string, filePath: string): Promise<any | null>;
|
|
282
|
+
private isBinaryMediaFile;
|
|
283
|
+
private getMimeType;
|
|
284
|
+
private getImageMimeType;
|
|
285
|
+
private fromBase64;
|
|
286
|
+
private isJsonFile;
|
|
287
|
+
private getDocumentUrl;
|
|
288
|
+
private getDbUrl;
|
|
289
|
+
private getReadHeaders;
|
|
290
|
+
private buildTenantHeaders;
|
|
291
|
+
getImageSrcFromCouchDb(couchDbName: string, filePath: string): Promise<string>;
|
|
292
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Couchdb, never>;
|
|
293
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Couchdb>;
|
|
294
|
+
}
|
|
295
|
+
|
|
273
296
|
declare class HeaderMenuComponent implements AfterViewInit {
|
|
274
297
|
private oktaAuthService;
|
|
275
298
|
private requestService;
|
|
276
299
|
private utilityService;
|
|
300
|
+
private couchdbService;
|
|
277
301
|
private platform;
|
|
278
302
|
isLogined: boolean;
|
|
279
303
|
headerItems: any[];
|
|
280
304
|
headerLayout: any;
|
|
281
305
|
environment: any;
|
|
306
|
+
tenantName: any;
|
|
282
307
|
projectSeleted: any;
|
|
283
308
|
cartInfo: any;
|
|
284
309
|
buttonClick: EventEmitter<any>;
|
|
285
310
|
showTableContent: EventEmitter<any>;
|
|
286
311
|
searchItems: EventEmitter<any>;
|
|
287
|
-
constructor(oktaAuthService: OktaAuthStateService, requestService: RequestService, utilityService: UtilityService, platform: Platform);
|
|
312
|
+
constructor(oktaAuthService: OktaAuthStateService, requestService: RequestService, utilityService: UtilityService, couchdbService: Couchdb, platform: Platform);
|
|
313
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
288
314
|
ngAfterViewInit(): void;
|
|
289
315
|
getStyle(styleObject: any): Record<string, any>;
|
|
290
316
|
isVisible(header: any): boolean;
|
|
@@ -292,8 +318,9 @@ declare class HeaderMenuComponent implements AfterViewInit {
|
|
|
292
318
|
invokeSearchedItems(option: any, search: any): void;
|
|
293
319
|
invokeHeaderButtonClick(option: any): void;
|
|
294
320
|
invokeShowtableContent(option: any): void;
|
|
321
|
+
setHeaderItems(items: any[]): Promise<any[]>;
|
|
295
322
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderMenuComponent, never>;
|
|
296
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderMenuComponent, "vl-header-menu", never, { "headerItems": { "alias": "headerItems"; "required": false; }; "headerLayout": { "alias": "headerLayout"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "projectSeleted": { "alias": "projectSeleted"; "required": false; }; "cartInfo": { "alias": "cartInfo"; "required": false; }; }, { "buttonClick": "buttonClick"; "showTableContent": "showTableContent"; "searchItems": "searchItems"; }, never, never, true, never>;
|
|
323
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderMenuComponent, "vl-header-menu", never, { "headerItems": { "alias": "headerItems"; "required": false; }; "headerLayout": { "alias": "headerLayout"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "tenantName": { "alias": "tenantName"; "required": false; }; "projectSeleted": { "alias": "projectSeleted"; "required": false; }; "cartInfo": { "alias": "cartInfo"; "required": false; }; }, { "buttonClick": "buttonClick"; "showTableContent": "showTableContent"; "searchItems": "searchItems"; }, never, never, true, never>;
|
|
297
324
|
}
|
|
298
325
|
|
|
299
326
|
declare class NetworkLogService {
|
|
@@ -317,21 +344,22 @@ declare class LogsComponent {
|
|
|
317
344
|
static ɵcmp: i0.ɵɵComponentDeclaration<LogsComponent, "vl-logs", never, {}, {}, never, never, true, never>;
|
|
318
345
|
}
|
|
319
346
|
|
|
320
|
-
declare class ModelComponent implements
|
|
347
|
+
declare class ModelComponent implements OnChanges {
|
|
348
|
+
private cdr;
|
|
349
|
+
private readonly dialogRef;
|
|
321
350
|
matchData: any[];
|
|
351
|
+
date2: Date | undefined;
|
|
322
352
|
errorMessages: any;
|
|
323
|
-
isModalShow: boolean;
|
|
324
353
|
modalItemInfo: any;
|
|
325
354
|
selectedLanguageInfo: any;
|
|
326
355
|
userInfo: any;
|
|
327
|
-
|
|
328
|
-
invokeSetFormData: EventEmitter<any>;
|
|
329
|
-
modalClose: EventEmitter<void>;
|
|
356
|
+
setFormDataHandler?: () => void | Promise<void>;
|
|
330
357
|
copyLayoutSchema: any;
|
|
331
358
|
isLoading: boolean;
|
|
332
|
-
constructor();
|
|
359
|
+
constructor(cdr: ChangeDetectorRef, dialogRef: DynamicDialogRef);
|
|
333
360
|
ngAfterViewInit(): void;
|
|
334
|
-
ngOnChanges(changes: SimpleChanges):
|
|
361
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
362
|
+
private initializeDialogContent;
|
|
335
363
|
updateLayoutLanguage<T>(schema: T, translations: Record<string, string>): T;
|
|
336
364
|
mapDataToPropertySchema(data: any, modalItemInfo: any): void;
|
|
337
365
|
setAutoCompleteData(): Promise<void>;
|
|
@@ -353,7 +381,7 @@ declare class ModelComponent implements AfterViewInit {
|
|
|
353
381
|
getScope(scope: any): string;
|
|
354
382
|
autocompChangeEvent(event: any): void;
|
|
355
383
|
autocompFocusOutEvent(event: any): void;
|
|
356
|
-
autocompSelectEvent(
|
|
384
|
+
autocompSelectEvent(obj: any, formField?: any): void;
|
|
357
385
|
setErroMessage(formField: any, errorMessages: any, errorType: any): any;
|
|
358
386
|
getStyleWithoutClasses(styleObject: any): {
|
|
359
387
|
classes: any;
|
|
@@ -377,7 +405,7 @@ declare class ModelComponent implements AfterViewInit {
|
|
|
377
405
|
checkValidty(form: NgForm): boolean;
|
|
378
406
|
onCancel(): void;
|
|
379
407
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModelComponent, never>;
|
|
380
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ModelComponent, "vl-model", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; "
|
|
408
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModelComponent, "vl-model", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; "modalItemInfo": { "alias": "modalItemInfo"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; "setFormDataHandler": { "alias": "setFormDataHandler"; "required": false; }; }, {}, never, never, true, never>;
|
|
381
409
|
}
|
|
382
410
|
|
|
383
411
|
declare class PaginationComponent {
|
|
@@ -404,28 +432,6 @@ declare class PaginationComponent {
|
|
|
404
432
|
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "vl-pagination", never, { "itemInfo": { "alias": "itemInfo"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; }, { "pageSizeChange": "pageSizeChange"; "onGoToPage": "onGoToPage"; }, never, never, true, never>;
|
|
405
433
|
}
|
|
406
434
|
|
|
407
|
-
declare class Couchdb {
|
|
408
|
-
private utilityService;
|
|
409
|
-
private readonly couchDbBaseUrl;
|
|
410
|
-
constructor(utilityService: UtilityService);
|
|
411
|
-
getTenantDatabases(tenantKey: any): Promise<any[]>;
|
|
412
|
-
private parseJsonOrText;
|
|
413
|
-
private stringifyErrorDetails;
|
|
414
|
-
getFileContentFromCouchDb(couchDbName: string, filePath: string): Promise<any | null>;
|
|
415
|
-
private isBinaryMediaFile;
|
|
416
|
-
private getMimeType;
|
|
417
|
-
private getImageMimeType;
|
|
418
|
-
private fromBase64;
|
|
419
|
-
private isJsonFile;
|
|
420
|
-
private getDocumentUrl;
|
|
421
|
-
private getDbUrl;
|
|
422
|
-
private getReadHeaders;
|
|
423
|
-
private buildTenantHeaders;
|
|
424
|
-
getImageSrcFromCouchDb(couchDbName: string, filePath: string): Promise<string>;
|
|
425
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Couchdb, never>;
|
|
426
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<Couchdb>;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
435
|
declare class ConfigService {
|
|
430
436
|
private couchdbService;
|
|
431
437
|
private utilityService;
|
|
@@ -572,10 +578,8 @@ declare class Autocomplete {
|
|
|
572
578
|
matchData: any;
|
|
573
579
|
selectedLanguageInfo: any;
|
|
574
580
|
errorMessages: any;
|
|
575
|
-
autocompSelect: EventEmitter<any>;
|
|
576
581
|
autocompChange: EventEmitter<any>;
|
|
577
582
|
autocompFocusOut: EventEmitter<any>;
|
|
578
|
-
autocompSelectEvent(event: any, formField: any): void;
|
|
579
583
|
autocompChangeEvent(event: any, formField: any): void;
|
|
580
584
|
autocompFocusOutEvent(event: any, formField: any): void;
|
|
581
585
|
getScope(scope: any): string;
|
|
@@ -585,7 +589,7 @@ declare class Autocomplete {
|
|
|
585
589
|
};
|
|
586
590
|
setErroMessage(formField: any, errorMessages: any, errorType: any): any;
|
|
587
591
|
static ɵfac: i0.ɵɵFactoryDeclaration<Autocomplete, never>;
|
|
588
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Autocomplete, "vl-autocomplete", never, { "formField": { "alias": "formField"; "required": false; }; "modalItemInfo": { "alias": "modalItemInfo"; "required": false; }; "matchData": { "alias": "matchData"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; }, { "
|
|
592
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Autocomplete, "vl-autocomplete", never, { "formField": { "alias": "formField"; "required": false; }; "modalItemInfo": { "alias": "modalItemInfo"; "required": false; }; "matchData": { "alias": "matchData"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; }, { "autocompChange": "autocompChange"; "autocompFocusOut": "autocompFocusOut"; }, never, never, true, never>;
|
|
589
593
|
}
|
|
590
594
|
|
|
591
595
|
declare class Button {
|