@yomotech/view-toolkit 0.0.31 → 0.0.32

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 (72) hide show
  1. package/ng-package.json +7 -0
  2. package/package.json +38 -49
  3. package/src/lib/app-version.ts +2 -0
  4. package/src/lib/components/autocomplete/autocomplete.css +0 -0
  5. package/src/lib/components/autocomplete/autocomplete.html +23 -0
  6. package/src/lib/components/autocomplete/autocomplete.ts +71 -0
  7. package/src/lib/components/button/button.css +0 -0
  8. package/src/lib/components/button/button.html +1 -0
  9. package/src/lib/components/button/button.ts +11 -0
  10. package/src/lib/components/date/date.css +0 -0
  11. package/src/lib/components/date/date.html +1 -0
  12. package/src/lib/components/date/date.ts +11 -0
  13. package/src/lib/components/dropdown/dropdown.css +0 -0
  14. package/src/lib/components/dropdown/dropdown.html +1 -0
  15. package/src/lib/components/dropdown/dropdown.ts +11 -0
  16. package/src/lib/components/error-message/error-message.css +0 -0
  17. package/src/lib/components/error-message/error-message.html +1 -0
  18. package/src/lib/components/error-message/error-message.ts +11 -0
  19. package/src/lib/components/label/label.css +0 -0
  20. package/src/lib/components/label/label.html +7 -0
  21. package/src/lib/components/label/label.ts +33 -0
  22. package/src/lib/components/string/string.css +0 -0
  23. package/src/lib/components/string/string.html +4 -0
  24. package/src/lib/components/string/string.ts +22 -0
  25. package/src/lib/components/textbox/textbox.css +0 -0
  26. package/src/lib/components/textbox/textbox.html +7 -0
  27. package/src/lib/components/textbox/textbox.ts +33 -0
  28. package/src/lib/components/time/time.css +0 -0
  29. package/src/lib/components/time/time.html +1 -0
  30. package/src/lib/components/time/time.ts +11 -0
  31. package/src/lib/containers/card/card.component.css +0 -0
  32. package/src/lib/containers/card/card.component.html +450 -0
  33. package/src/lib/containers/card/card.component.ts +474 -0
  34. package/src/lib/containers/form/form.component.css +101 -0
  35. package/src/lib/containers/form/form.component.html +305 -0
  36. package/src/lib/containers/form/form.component.ts +333 -0
  37. package/src/lib/containers/grid/grid.component.css +0 -0
  38. package/src/lib/containers/grid/grid.component.html +212 -0
  39. package/src/lib/containers/grid/grid.component.ts +228 -0
  40. package/src/lib/containers/header-menu/header-menu.component.css +0 -0
  41. package/src/lib/containers/header-menu/header-menu.component.html +72 -0
  42. package/src/lib/containers/header-menu/header-menu.component.ts +105 -0
  43. package/src/lib/containers/logs/logs.component.css +160 -0
  44. package/src/lib/containers/logs/logs.component.html +89 -0
  45. package/src/lib/containers/logs/logs.component.ts +29 -0
  46. package/src/lib/containers/model/model.component.css +0 -0
  47. package/src/lib/containers/model/model.component.html +351 -0
  48. package/src/lib/containers/model/model.component.ts +436 -0
  49. package/src/lib/containers/pagination/pagination.component.css +0 -0
  50. package/src/lib/containers/pagination/pagination.component.html +41 -0
  51. package/src/lib/containers/pagination/pagination.component.ts +100 -0
  52. package/src/lib/containers/side-menu/side-menu.component.css +173 -0
  53. package/src/lib/containers/side-menu/side-menu.component.html +126 -0
  54. package/src/lib/containers/side-menu/side-menu.component.ts +458 -0
  55. package/src/lib/services/app-version-reset.service.ts +59 -0
  56. package/src/lib/services/config.service.ts +144 -0
  57. package/src/lib/services/couchdb.ts +275 -0
  58. package/src/lib/services/mobile-keycloak.service.ts +116 -0
  59. package/src/lib/services/network-log.service.ts +27 -0
  60. package/src/lib/services/notification.service.ts +26 -0
  61. package/src/lib/services/request.service.ts +125 -0
  62. package/src/lib/services/utility.service.ts +600 -0
  63. package/src/lib/view-toolkit.module.ts +57 -0
  64. package/src/lib/view-toolkit.spec.ts +23 -0
  65. package/src/lib/view-toolkit.ts +15 -0
  66. package/src/public-api.ts +25 -0
  67. package/tsconfig.lib.json +17 -0
  68. package/tsconfig.lib.prod.json +11 -0
  69. package/tsconfig.spec.json +15 -0
  70. package/fesm2022/yomotech-view-toolkit.mjs +0 -3597
  71. package/fesm2022/yomotech-view-toolkit.mjs.map +0 -1
  72. package/types/yomotech-view-toolkit.d.ts +0 -648
@@ -1,648 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, ChangeDetectorRef, NgZone, SimpleChanges, OnInit, OnChanges, AfterViewInit, ElementRef } from '@angular/core';
3
- import * as i1 from '@angular/common';
4
- import { Platform } from '@angular/cdk/platform';
5
- import * as rxjs from 'rxjs';
6
- import { HttpClient, HttpHeaders } from '@angular/common/http';
7
- import { OAuthService } from 'angular-oauth2-oidc';
8
- import { NzModalService } from 'ng-zorro-antd/modal';
9
- import { OktaAuthStateService } from '@okta/okta-angular';
10
- import { ToastrService } from 'ngx-toastr';
11
- import { NgForm } from '@angular/forms';
12
- import OktaAuth from '@okta/okta-auth-js';
13
- import { DialogService } from 'primeng/dynamicdialog';
14
- import { NzI18nService } from 'ng-zorro-antd/i18n';
15
-
16
- declare class RequestService {
17
- private http;
18
- pageSize: number;
19
- constructor(http: HttpClient);
20
- getAllProject(): rxjs.Observable<Object>;
21
- getEnvironmet(selectedProject: any): rxjs.Observable<Object>;
22
- getSectionInfo(url: string, envUrl?: any, passToken?: boolean, selectedProject?: string, userInfo?: any): rxjs.Observable<Object>;
23
- getMainLayout(selectedProject: any): rxjs.Observable<Object>;
24
- getInfo(url: string): rxjs.Observable<Object>;
25
- dynamicCall(method: string | undefined, body: any | undefined, url: string, passToken?: boolean, selectedProject?: string, userInfo?: any): rxjs.Observable<Object>;
26
- createAuthorizationHeader(userInfo: any, tokenExist?: boolean): HttpHeaders;
27
- getLoginUser(token: any): rxjs.Observable<Object>;
28
- saveDb(token: any, userInfo: any, order?: any): void;
29
- getSaveOrder(token: any, userInfo: any, fromDate: any, toDate: any): rxjs.Observable<Object>;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<RequestService, never>;
31
- static ɵprov: i0.ɵɵInjectableDeclaration<RequestService>;
32
- }
33
-
34
- declare class UtilityService {
35
- private platform;
36
- private requestService;
37
- stripe: any;
38
- constructor(platform: Platform, requestService: RequestService);
39
- getScope(scope: any): string;
40
- getProperty(scope: any, itemInfo?: any): {
41
- key: any;
42
- productSchema: any;
43
- };
44
- setStorage(key: string, value: any): Promise<void>;
45
- getStorage(key: string): Promise<string | null>;
46
- setLocalStorage(key: string, value: any): Promise<void>;
47
- removeLocalStorage(keyName: string): Promise<void>;
48
- removeStorage(key: string): Promise<void>;
49
- getLocalStorage<T = unknown>(key: string): Promise<any>;
50
- showAllProjects(): Promise<void>;
51
- parseBodyObject(obj: any): any;
52
- getTotalPrice(tableitemInfo: any): number;
53
- getTotalQuantity(tableitemInfo: any): number;
54
- replacePaginationParams(url: string, currentPage: number, pageSize: number): string;
55
- customButton(option: any, propertySchema: any, projectSeleted: any, environment: any): void;
56
- setDefaultUser(item: any, userInfo: any, environment: any): any;
57
- setTableData(data: any, options: any | undefined, tableitemInfo: any, projectSeleted: any): any;
58
- setOktaWebCredential(environment: any, projectName: any): {
59
- logo: string;
60
- baseUrl: any;
61
- clientId: any;
62
- redirectUri: any;
63
- authParams: {
64
- pkce: boolean;
65
- issuer: any;
66
- scopes: any;
67
- };
68
- };
69
- setOktaMobileCredential(environment: any): {
70
- appId: any;
71
- authorizationBaseUrl: any;
72
- accessTokenEndpoint: any;
73
- redirectUrl: any;
74
- scope: any;
75
- responseType: any;
76
- pkceEnabled: any;
77
- };
78
- setupStripePaymentForm(environment: any, form: any, onCardChange: (message: string) => void): Promise<void>;
79
- formData(form: any, environment: any, cartInfo: any): Promise<void>;
80
- normalizeDatesForStorage(obj: any): any;
81
- isDateLike(value: any): boolean;
82
- toLocalISOString(date: Date): string;
83
- restoreDatesFromStorage(records: any[], propertySchema: any): any[];
84
- parseLocalISODate(value: string): Date;
85
- convertToDailyLogs(cardOrCards: any | any[]): any[];
86
- private applyTimeToDay;
87
- private startOfDay;
88
- private endOfDay;
89
- private isSameDay;
90
- private toLocalISO;
91
- static ɵfac: i0.ɵɵFactoryDeclaration<UtilityService, never>;
92
- static ɵprov: i0.ɵɵInjectableDeclaration<UtilityService>;
93
- }
94
-
95
- declare class CardComponent {
96
- private utilityService;
97
- private platform;
98
- private http;
99
- private cdr;
100
- private zone;
101
- private modalService;
102
- private oauthService;
103
- private requestService;
104
- itemInfo: any;
105
- currentPage: number;
106
- pageSize: number;
107
- selectedLanguageInfo: any;
108
- mobileDisplay: boolean;
109
- pages: number[];
110
- cardButtonClick: EventEmitter<any>;
111
- cardHeaderButtonClick: EventEmitter<any>;
112
- linkDetails: EventEmitter<any>;
113
- imageDetails: EventEmitter<any>;
114
- onPageSizeChange: EventEmitter<any>;
115
- onPageChange: EventEmitter<any>;
116
- cardPerRow: string;
117
- isLoading: boolean;
118
- layoutSchemaCopy: any;
119
- headerSchemaCopy: any;
120
- footerSchemaCopy: any;
121
- constructor(utilityService: UtilityService, platform: Platform, http: HttpClient, cdr: ChangeDetectorRef, zone: NgZone, modalService: NzModalService, oauthService: OAuthService, requestService: RequestService);
122
- ngOnInit(): void;
123
- ngOnChanges(changes: SimpleChanges): void;
124
- private safeUpdate;
125
- forceNumericKeyboard(event: any): void;
126
- onDateTyping(event: any): void;
127
- updatebuttonLanguage<T>(schema: T, translations: Record<string, string>): T;
128
- updateLayoutLanguage<T>(schema: T, translations: Record<string, string>): T;
129
- dateChangeEvent(filter: any, value: any): void;
130
- applyDateFilter(filters: any): Promise<void>;
131
- getSaveOrder(token: string, userInfo: any, fromDate: any, toDate: any): Promise<any>;
132
- formatToOffsetISO(date: Date): string;
133
- extractFilterValues(schema: Record<string, any>): Record<string, any>;
134
- invokeOnPageSizeChange(pageSize: any): void;
135
- invokeGoToPage(page: any): void;
136
- invokeOnCardHeader(element: any): void;
137
- invokeOnCardFooter(element: any): void;
138
- invokeButtonClick(layout: any, record: any, recordIndex: any): Promise<void>;
139
- showConfirm(option: any, recordIndex: any): void;
140
- d4_SaveAll(): Promise<void>;
141
- deleteRecord(recordIndex: any, data_url: any): void;
142
- deleteAllRecord(): void;
143
- saveToDb(orders: any, orderIndex?: any, data_url?: any, deleteAll?: boolean): Promise<void>;
144
- webSaveDb(token: any, userInfo: any, order?: any, orderIndex?: any, dataUrl?: any, deleteAll?: boolean): void;
145
- mobileSaveDb(token: string, userInfo: any, order: any | undefined, orderIndex: number, dataUrl: any, deleteAll?: boolean): Promise<any>;
146
- showLinkDetails(option: any, record: any): void;
147
- showImageDetails(option: any, record: any): void;
148
- getProperty(scope: any): {
149
- key: any;
150
- productSchema: any;
151
- };
152
- getStyleWithoutClasses(styleObject: any): {
153
- classes: any;
154
- style: any;
155
- };
156
- getScope(scope: any): string;
157
- static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
158
- static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "vl-card", never, { "itemInfo": { "alias": "itemInfo"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "mobileDisplay": { "alias": "mobileDisplay"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; }, { "cardButtonClick": "cardButtonClick"; "cardHeaderButtonClick": "cardHeaderButtonClick"; "linkDetails": "linkDetails"; "imageDetails": "imageDetails"; "onPageSizeChange": "onPageSizeChange"; "onPageChange": "onPageChange"; }, never, never, true, never>;
159
- }
160
-
161
- declare class FormComponent implements OnInit, OnChanges, AfterViewInit {
162
- customEmailPattern: string;
163
- showPassword: boolean;
164
- formCopy: any;
165
- errorMessages: any;
166
- creditCardError: any;
167
- form: any;
168
- selectedLanguageInfo: any;
169
- formButtonClick: EventEmitter<any>;
170
- checkBoxChangeEvent: EventEmitter<any>;
171
- ngOnInit(): void;
172
- ngOnChanges(changes: SimpleChanges): void;
173
- ngAfterViewInit(): void;
174
- private safeClone;
175
- private applySelectedLanguage;
176
- translateSchema(schema: any, selectedLanguage: any): any;
177
- getStyleWithoutClasses(styleObject: any): {
178
- classes: string;
179
- style: any;
180
- };
181
- getSectionBodyStyle(formSection: any): any;
182
- getFieldWrapperStyle(formField: any): any;
183
- getFieldInnerLayoutStyle(formField: any): any;
184
- getScope(scope: any): string;
185
- togglePasswordVisibility(): void;
186
- invokeFormBtnClick(option: any, propertySchema: any): void;
187
- setformData(): void;
188
- setErroMessage(formField: any, errorMessages: any, field: any): string;
189
- setValidations(): void;
190
- static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
191
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "vl-form", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; "creditCardError": { "alias": "creditCardError"; "required": false; }; "form": { "alias": "form"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; }, { "formButtonClick": "formButtonClick"; "checkBoxChangeEvent": "checkBoxChangeEvent"; }, never, never, true, never>;
192
- }
193
-
194
- declare class NotificationService {
195
- toastr: ToastrService;
196
- constructor(toastr: ToastrService);
197
- success(message: string, time?: number): void;
198
- info(message: string, time?: number): void;
199
- warning(message: string, time?: number): void;
200
- error(error: string, time?: number, message?: string): void;
201
- static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
202
- static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
203
- }
204
-
205
- declare class GridComponent implements AfterViewInit {
206
- private requestService;
207
- private utilityService;
208
- private notificationService;
209
- private oktaAuthService;
210
- isLogined: boolean;
211
- tableitemInfoCopy: any;
212
- errorMessages: any;
213
- environment: any;
214
- selectedLanguageInfo: any;
215
- tableitemInfo: any;
216
- form: any;
217
- isTableDataLoad: boolean;
218
- currenTableOptions: any;
219
- projectSeleted: any;
220
- pageSize: number;
221
- currentPage: number;
222
- pages: number[];
223
- userInfo: any;
224
- onPageChange: EventEmitter<any>;
225
- onPageSizeChange: EventEmitter<any>;
226
- onGridScroll: EventEmitter<any>;
227
- showGridLink: EventEmitter<any>;
228
- gridButtonClick: EventEmitter<any>;
229
- gridIncreamentClick: EventEmitter<any>;
230
- gridDecreamentClick: EventEmitter<any>;
231
- gridImgClick: EventEmitter<any>;
232
- constructor(requestService: RequestService, utilityService: UtilityService, notificationService: NotificationService, oktaAuthService: OktaAuthStateService);
233
- ngAfterViewInit(): void;
234
- ngOnChanges(changes: SimpleChanges): void;
235
- translateSchema(schema: any, SelectedLanguage: any): any;
236
- getScope(scope: any): string;
237
- getStyleWithoutClasses(styleObject: any): {
238
- classes: any;
239
- style: any;
240
- };
241
- onScrollEvent(event: any): void;
242
- showLinkDetails(option: any, data: any): void;
243
- invokeGridBtnClick(option: any, propertySchema: any): void;
244
- upsertAction(option: any, data: any): void;
245
- setActionColumn(option: any, data: any): boolean;
246
- findDynamicKeyAndValue(object: Record<string, any>): {
247
- keyName: string;
248
- value: any;
249
- } | null;
250
- incrementQuantity(index: any, field: any, option: any): void;
251
- invokeTableImageClick(column: any, data: any): void;
252
- decrementQuantity(index: any, field: any, option: any): void;
253
- invokeOnPageSizeChange(pageSize: any): void;
254
- invokeGoToPage(page: any): void;
255
- authenticating(): void;
256
- static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
257
- 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>;
258
- }
259
-
260
- declare class HeaderMenuComponent implements AfterViewInit {
261
- private oktaAuthService;
262
- private requestService;
263
- private utilityService;
264
- private platform;
265
- isLogined: boolean;
266
- headerItems: any[];
267
- headerLayout: any;
268
- environment: any;
269
- projectSeleted: any;
270
- cartInfo: any;
271
- buttonClick: EventEmitter<any>;
272
- showTableContent: EventEmitter<any>;
273
- searchItems: EventEmitter<any>;
274
- constructor(oktaAuthService: OktaAuthStateService, requestService: RequestService, utilityService: UtilityService, platform: Platform);
275
- ngAfterViewInit(): void;
276
- getStyle(styleObject: any): Record<string, any>;
277
- isVisible(header: any): boolean;
278
- shouldShowDefaultButton(header: any): boolean;
279
- invokeSearchedItems(option: any, search: any): void;
280
- invokeHeaderButtonClick(option: any): void;
281
- invokeShowtableContent(option: any): void;
282
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderMenuComponent, never>;
283
- 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>;
284
- }
285
-
286
- declare class NetworkLogService {
287
- private logs;
288
- addLog(log: any): void;
289
- getLogsByDate(date: string): any[];
290
- getAll(): any[];
291
- clear(): void;
292
- static ɵfac: i0.ɵɵFactoryDeclaration<NetworkLogService, never>;
293
- static ɵprov: i0.ɵɵInjectableDeclaration<NetworkLogService>;
294
- }
295
-
296
- declare class LogsComponent {
297
- private logService;
298
- logs: any[];
299
- expandedRow: number | null;
300
- constructor(logService: NetworkLogService);
301
- ngOnInit(): void;
302
- toggleRow(index: number): void;
303
- static ɵfac: i0.ɵɵFactoryDeclaration<LogsComponent, never>;
304
- static ɵcmp: i0.ɵɵComponentDeclaration<LogsComponent, "vl-logs", never, {}, {}, never, never, true, never>;
305
- }
306
-
307
- declare class ModelComponent implements AfterViewInit {
308
- matchData: any[];
309
- errorMessages: any;
310
- isModalShow: boolean;
311
- modalItemInfo: any;
312
- selectedLanguageInfo: any;
313
- userInfo: any;
314
- invokeButtonClick: EventEmitter<any>;
315
- invokeSetFormData: EventEmitter<any>;
316
- modalClose: EventEmitter<void>;
317
- copyLayoutSchema: any;
318
- isLoading: boolean;
319
- constructor();
320
- ngAfterViewInit(): void;
321
- ngOnChanges(changes: SimpleChanges): Promise<void>;
322
- updateLayoutLanguage<T>(schema: T, translations: Record<string, string>): T;
323
- mapDataToPropertySchema(data: any, modalItemInfo: any): void;
324
- setAutoCompleteData(): Promise<void>;
325
- fetchAutocompleteData(formField: any): Promise<any>;
326
- resolveAutocompleteConfig(config: any, userInfo: any): {
327
- url: string;
328
- method: any;
329
- params: any;
330
- headers: {
331
- Authorization: string;
332
- Accept: string;
333
- } | {
334
- Authorization?: undefined;
335
- Accept?: undefined;
336
- };
337
- };
338
- buildCompany(userInfo: any): string;
339
- resolveToken(template: string, context: any): string;
340
- getScope(scope: any): string;
341
- autocompChangeEvent(event: any): void;
342
- autocompFocusOutEvent(event: any): void;
343
- autocompSelectEvent(event: any): void;
344
- setErroMessage(formField: any, errorMessages: any, errorType: any): any;
345
- getStyleWithoutClasses(styleObject: any): {
346
- classes: any;
347
- style: any;
348
- };
349
- dateChangeEvent(formField: any, value: any): void;
350
- onDateTyping(event: any): void;
351
- forceNumericKeyboard(event: any): void;
352
- onTimeTyping(event: any): void;
353
- timeChangeEvent(formField: any, value: any): void;
354
- handleRules(formField: any, value: any): void;
355
- resetRule(rule: any, formField: any): void;
356
- isRuleTriggered(rule: any, formField: any): boolean;
357
- applyDurationRule(rule: any, formField: any): void;
358
- invokeSetformData(): void;
359
- invokeFormBtnClick(option: any, propertySchema: any, form: NgForm): void;
360
- checkValidty(form: NgForm): boolean;
361
- onCancel(): void;
362
- static ɵfac: i0.ɵɵFactoryDeclaration<ModelComponent, never>;
363
- static ɵcmp: i0.ɵɵComponentDeclaration<ModelComponent, "vl-model", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; "isModalShow": { "alias": "isModalShow"; "required": false; }; "modalItemInfo": { "alias": "modalItemInfo"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; }, { "invokeButtonClick": "invokeButtonClick"; "invokeSetFormData": "invokeSetFormData"; "modalClose": "modalClose"; }, never, never, true, never>;
364
- }
365
-
366
- declare class PaginationComponent {
367
- private platform;
368
- itemInfo: any;
369
- pageSize: any;
370
- currentPage: number;
371
- pages: number[];
372
- pageSizeChange: EventEmitter<any>;
373
- onGoToPage: EventEmitter<any>;
374
- isMobile: boolean;
375
- constructor(platform: Platform);
376
- ngOnInit(): void;
377
- get paginationStyle(): any;
378
- get listStyle(): any;
379
- get sizeControlStyle(): any;
380
- get labelStyle(): any;
381
- get selectStyle(): any;
382
- getStyle(styleObject: any): Record<string, any>;
383
- getPageItemStyle(page?: number, disabled?: boolean): Record<string, any>;
384
- invokeOnPageSizeChange(pageSize: any): void;
385
- invokeGoToPage(page: number): void;
386
- static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
387
- 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>;
388
- }
389
-
390
- declare class Couchdb {
391
- private utilityService;
392
- private readonly couchDbBaseUrl;
393
- constructor(utilityService: UtilityService);
394
- getTenantDatabases(tenantKey: any): Promise<any[]>;
395
- private parseJsonOrText;
396
- private stringifyErrorDetails;
397
- getFileContentFromCouchDb(couchDbName: string, filePath: string): Promise<any | null>;
398
- private isBinaryMediaFile;
399
- private getMimeType;
400
- private getImageMimeType;
401
- private fromBase64;
402
- private isJsonFile;
403
- private getDocumentUrl;
404
- private getDbUrl;
405
- private getReadHeaders;
406
- private buildTenantHeaders;
407
- getImageSrcFromCouchDb(couchDbName: string, filePath: string): Promise<string>;
408
- static ɵfac: i0.ɵɵFactoryDeclaration<Couchdb, never>;
409
- static ɵprov: i0.ɵɵInjectableDeclaration<Couchdb>;
410
- }
411
-
412
- declare class ConfigService {
413
- private couchdbService;
414
- private utilityService;
415
- private platform;
416
- private config;
417
- private skipOkta;
418
- private keycloakConfig;
419
- constructor(couchdbService: Couchdb, utilityService: UtilityService, platform: Platform);
420
- loadOktaConfig(projectName: string): Promise<void>;
421
- setConfiguration(config: any): void;
422
- skipOktaConfig(): void;
423
- get oktaConfig(): any;
424
- loadKeycloakConfig(projectName: string): Promise<void>;
425
- getKeycloakConfig(): any;
426
- getKeycloakMobileConfig(): {
427
- issuer: any;
428
- clientId: any;
429
- redirectUri: any;
430
- logoutRedirectUri: any;
431
- scope: any;
432
- responseType: any;
433
- } | null;
434
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService, never>;
435
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
436
- }
437
-
438
- interface MobileAuthTokens {
439
- access_token: string;
440
- refresh_token?: string;
441
- id_token?: string;
442
- expires_in?: number;
443
- token_type?: string;
444
- }
445
- declare class MobileKeycloakService {
446
- private config;
447
- private http;
448
- private utilityService;
449
- private platform;
450
- private tokens;
451
- constructor(config: ConfigService, http: HttpClient, utilityService: UtilityService, platform: Platform);
452
- login(): Promise<any>;
453
- getUserInfo(accessToken: any, issuer: any): Promise<any>;
454
- getAccessToken(): string | null;
455
- getRefreshToken(): string | null;
456
- logout(): Promise<void>;
457
- static ɵfac: i0.ɵɵFactoryDeclaration<MobileKeycloakService, never>;
458
- static ɵprov: i0.ɵɵInjectableDeclaration<MobileKeycloakService>;
459
- }
460
-
461
- declare class SideMenuComponent implements AfterViewInit {
462
- private i18n;
463
- private mobileKeycloakService;
464
- private couchdbService;
465
- private oauthService;
466
- private platform;
467
- private requestService;
468
- private utilityService;
469
- private dialogService;
470
- private oktaAuthService;
471
- private notificationService;
472
- private oktaAuth;
473
- isCollapsed: boolean;
474
- isMobile: boolean;
475
- projectsLayoutSchema: any;
476
- loginUser: any;
477
- isLogined: boolean;
478
- loginedUserInfo: any;
479
- menuItemsCopy: any;
480
- settingMenu: any;
481
- setLanguage: boolean;
482
- tenantKey: any;
483
- tenantName: any;
484
- menuItems: any[];
485
- userInfo: any;
486
- settings: any;
487
- projects: any;
488
- environment: any;
489
- projectSeleted: any;
490
- languageChange: EventEmitter<any>;
491
- invokeMenu: EventEmitter<any>;
492
- menuToggle: EventEmitter<any>;
493
- invokeProject: EventEmitter<any>;
494
- errorMessage: EventEmitter<any>;
495
- deleteProject: EventEmitter<any>;
496
- PRIME_DE: {
497
- firstDayOfWeek: number;
498
- dayNames: string[];
499
- dayNamesShort: string[];
500
- dayNamesMin: string[];
501
- monthNames: string[];
502
- monthNamesShort: string[];
503
- today: string;
504
- clear: string;
505
- dateFormat: string;
506
- weekHeader: string;
507
- };
508
- PRIME_EN: {
509
- firstDayOfWeek: number;
510
- dayNames: string[];
511
- dayNamesShort: string[];
512
- dayNamesMin: string[];
513
- monthNames: string[];
514
- monthNamesShort: string[];
515
- today: string;
516
- clear: string;
517
- dateFormat: string;
518
- weekHeader: string;
519
- };
520
- sideMenu: ElementRef;
521
- constructor(i18n: NzI18nService, mobileKeycloakService: MobileKeycloakService, couchdbService: Couchdb, oauthService: OAuthService, platform: Platform, requestService: RequestService, utilityService: UtilityService, dialogService: DialogService, oktaAuthService: OktaAuthStateService, notificationService: NotificationService, oktaAuth: OktaAuth);
522
- onDocumentClick(event: MouseEvent): void;
523
- toggleCollapsed(): void;
524
- ngOnInit(): Promise<void>;
525
- ngOnChanges(changes: SimpleChanges): void;
526
- setProjectSetting(): Promise<void>;
527
- ngAfterViewInit(): Promise<void>;
528
- getDeviceLanguage(): Promise<string>;
529
- setLoginUser(): Promise<void>;
530
- getUserInfoFromToken(token: string): {
531
- sub: any;
532
- name: any;
533
- role: any;
534
- email: any;
535
- iat: any;
536
- exp: any;
537
- } | null;
538
- setSettingImages(): Promise<void>;
539
- getMediaSrc(file: any): string;
540
- isUrl(value: string): boolean;
541
- setLoginedUser(user: any): Promise<void>;
542
- initializeProjects(): void;
543
- invokeNavigate(menu: any, parentMenu?: any): Promise<void>;
544
- openLogsTable(): void;
545
- deleteMenuItem(subChild: any, index: any, event: any): void;
546
- navigateToProject(project: any): void;
547
- changeLanguage(lang: any): Promise<void>;
548
- static ɵfac: i0.ɵɵFactoryDeclaration<SideMenuComponent, never>;
549
- static ɵcmp: i0.ɵɵComponentDeclaration<SideMenuComponent, "vl-side-menu", never, { "menuItems": { "alias": "menuItems"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "projects": { "alias": "projects"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "projectSeleted": { "alias": "projectSeleted"; "required": false; }; }, { "languageChange": "languageChange"; "invokeMenu": "invokeMenu"; "menuToggle": "menuToggle"; "invokeProject": "invokeProject"; "errorMessage": "errorMessage"; "deleteProject": "deleteProject"; }, never, never, true, never>;
550
- }
551
-
552
- declare class Autocomplete {
553
- formField: any;
554
- modalItemInfo: any;
555
- matchData: any;
556
- selectedLanguageInfo: any;
557
- errorMessages: any;
558
- autocompSelect: EventEmitter<any>;
559
- autocompChange: EventEmitter<any>;
560
- autocompFocusOut: EventEmitter<any>;
561
- autocompSelectEvent(event: any, formField: any): void;
562
- autocompChangeEvent(event: any, formField: any): void;
563
- autocompFocusOutEvent(event: any, formField: any): void;
564
- getScope(scope: any): string;
565
- getStyleWithoutClasses(styleObject: any): {
566
- classes: any;
567
- style: any;
568
- };
569
- setErroMessage(formField: any, errorMessages: any, errorType: any): any;
570
- static ɵfac: i0.ɵɵFactoryDeclaration<Autocomplete, never>;
571
- 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; }; }, { "autocompSelect": "autocompSelect"; "autocompChange": "autocompChange"; "autocompFocusOut": "autocompFocusOut"; }, never, never, true, never>;
572
- }
573
-
574
- declare class Button {
575
- static ɵfac: i0.ɵɵFactoryDeclaration<Button, never>;
576
- static ɵcmp: i0.ɵɵComponentDeclaration<Button, "vl-button", never, {}, {}, never, never, true, never>;
577
- }
578
-
579
- declare class Date$1 {
580
- static ɵfac: i0.ɵɵFactoryDeclaration<Date$1, never>;
581
- static ɵcmp: i0.ɵɵComponentDeclaration<Date$1, "vl-date", never, {}, {}, never, never, true, never>;
582
- }
583
-
584
- declare class Dropdown {
585
- static ɵfac: i0.ɵɵFactoryDeclaration<Dropdown, never>;
586
- static ɵcmp: i0.ɵɵComponentDeclaration<Dropdown, "vl-dropdown", never, {}, {}, never, never, true, never>;
587
- }
588
-
589
- declare class ErrorMessage {
590
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMessage, never>;
591
- static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMessage, "vl-error-message", never, {}, {}, never, never, true, never>;
592
- }
593
-
594
- declare class Label {
595
- formField: any;
596
- modalItemInfo: any;
597
- getScope(scope: any): string;
598
- getStyleWithoutClasses(styleObject: any): {
599
- classes: any;
600
- style: any;
601
- };
602
- static ɵfac: i0.ɵɵFactoryDeclaration<Label, never>;
603
- static ɵcmp: i0.ɵɵComponentDeclaration<Label, "vl-label", never, { "formField": { "alias": "formField"; "required": false; }; "modalItemInfo": { "alias": "modalItemInfo"; "required": false; }; }, {}, never, never, true, never>;
604
- }
605
-
606
- declare class String {
607
- formField: any;
608
- modalItemInfo: any;
609
- getScope(scope: any): string;
610
- static ɵfac: i0.ɵɵFactoryDeclaration<String, never>;
611
- static ɵcmp: i0.ɵɵComponentDeclaration<String, "vl-string", never, { "formField": { "alias": "formField"; "required": false; }; "modalItemInfo": { "alias": "modalItemInfo"; "required": false; }; }, {}, never, never, true, never>;
612
- }
613
-
614
- declare class Textbox {
615
- formField: any;
616
- modalItemInfo: any;
617
- getScope(scope: any): string;
618
- getStyleWithoutClasses(styleObject: any): {
619
- classes: any;
620
- style: any;
621
- };
622
- static ɵfac: i0.ɵɵFactoryDeclaration<Textbox, never>;
623
- static ɵcmp: i0.ɵɵComponentDeclaration<Textbox, "vl-textbox", never, { "formField": { "alias": "formField"; "required": false; }; "modalItemInfo": { "alias": "modalItemInfo"; "required": false; }; }, {}, never, never, true, never>;
624
- }
625
-
626
- declare class Time {
627
- static ɵfac: i0.ɵɵFactoryDeclaration<Time, never>;
628
- static ɵcmp: i0.ɵɵComponentDeclaration<Time, "vl-time", never, {}, {}, never, never, true, never>;
629
- }
630
-
631
- declare class ViewToolkitModule {
632
- static ɵfac: i0.ɵɵFactoryDeclaration<ViewToolkitModule, never>;
633
- static ɵmod: i0.ɵɵNgModuleDeclaration<ViewToolkitModule, never, [typeof i1.CommonModule, typeof CardComponent, typeof FormComponent, typeof GridComponent, typeof HeaderMenuComponent, typeof LogsComponent, typeof ModelComponent, typeof PaginationComponent, typeof SideMenuComponent, typeof Autocomplete, typeof Button, typeof Date$1, typeof Dropdown, typeof ErrorMessage, typeof Label, typeof String, typeof Textbox, typeof Time], [typeof CardComponent, typeof FormComponent, typeof GridComponent, typeof HeaderMenuComponent, typeof LogsComponent, typeof ModelComponent, typeof PaginationComponent, typeof SideMenuComponent]>;
634
- static ɵinj: i0.ɵɵInjectorDeclaration<ViewToolkitModule>;
635
- }
636
-
637
- declare class AppVersionResetService {
638
- private platform;
639
- constructor(platform: Platform);
640
- run(): Promise<void>;
641
- private clearNativeIfChanged;
642
- private clearWebStores;
643
- static ɵfac: i0.ɵɵFactoryDeclaration<AppVersionResetService, never>;
644
- static ɵprov: i0.ɵɵInjectableDeclaration<AppVersionResetService>;
645
- }
646
-
647
- export { AppVersionResetService, CardComponent, ConfigService, Couchdb, FormComponent, GridComponent, HeaderMenuComponent, LogsComponent, MobileKeycloakService, ModelComponent, NetworkLogService, NotificationService, PaginationComponent, RequestService, SideMenuComponent, UtilityService, ViewToolkitModule };
648
- export type { MobileAuthTokens };