@yomotech/view-toolkit 1.0.8 → 1.0.12
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
|
@@ -26,7 +26,7 @@ declare class RequestService {
|
|
|
26
26
|
getInfo(url: string): rxjs.Observable<Object>;
|
|
27
27
|
dynamicCall(method: string | undefined, body: any | undefined, url: string, passToken?: boolean, selectedProject?: string, userInfo?: any): rxjs.Observable<Object>;
|
|
28
28
|
createAuthorizationHeader(userInfo: any, tokenExist?: boolean): HttpHeaders;
|
|
29
|
-
getLoginUser(token: any): rxjs.Observable<Object>;
|
|
29
|
+
getLoginUser(token: any, issuer?: string): rxjs.Observable<Object>;
|
|
30
30
|
saveDb(token: any, userInfo: any, order?: any): void;
|
|
31
31
|
getSaveOrder(token: string, userInfo: any, fromDate: string, toDate: string): rxjs.Observable<Object>;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<RequestService, never>;
|
|
@@ -112,11 +112,38 @@ declare class Couchdb {
|
|
|
112
112
|
private getImageMimeType;
|
|
113
113
|
private fromBase64;
|
|
114
114
|
private isJsonFile;
|
|
115
|
+
/**
|
|
116
|
+
* Decides whether a stored file may be decoded as UTF-8 text.
|
|
117
|
+
*
|
|
118
|
+
* Only what is recognised here is decoded; everything else is handed back as
|
|
119
|
+
* binary. Note that SVG counts as binary on purpose even though it is text:
|
|
120
|
+
* callers such as the menu icons expect the media object with a `src`, and
|
|
121
|
+
* classifying it as text would change the shape they receive.
|
|
122
|
+
*/
|
|
123
|
+
private isTextFile;
|
|
115
124
|
private getDocumentUrl;
|
|
116
125
|
private getDbUrl;
|
|
117
126
|
private getReadHeaders;
|
|
118
127
|
private buildTenantHeaders;
|
|
119
128
|
getImageSrcFromCouchDb(couchDbName: string, filePath: string): Promise<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Returns a URL that a <video>, <audio> or <img> element can load directly.
|
|
131
|
+
*
|
|
132
|
+
* Unlike getImageSrcFromCouchDb above, this never reads the file. It asks
|
|
133
|
+
* jwt-auth for a short-lived signed URL and hands that back, so the browser
|
|
134
|
+
* fetches the attachment itself - with Range requests, so a video starts on
|
|
135
|
+
* the first chunk and a seek costs one request instead of the whole file.
|
|
136
|
+
*
|
|
137
|
+
* The reason a signed URL is needed at all: a media element issues its own
|
|
138
|
+
* HTTP requests, for the initial load and again for every seek, and those
|
|
139
|
+
* requests carry none of the tenant headers buildTenantHeaders adds here.
|
|
140
|
+
* The token in the query string is the only credential the element can pass.
|
|
141
|
+
*
|
|
142
|
+
* The path comes back from the endpoint and is used as given. The signature
|
|
143
|
+
* covers the raw, still-encoded path, so rebuilding it here with a different
|
|
144
|
+
* encoding would produce a URL that fails with a bare 403.
|
|
145
|
+
*/
|
|
146
|
+
getMediaUrlFromCouchDb(couchDbName: string, filePath: string, attachmentName?: string): Promise<string>;
|
|
120
147
|
static ɵfac: i0.ɵɵFactoryDeclaration<Couchdb, never>;
|
|
121
148
|
static ɵprov: i0.ɵɵInjectableDeclaration<Couchdb>;
|
|
122
149
|
}
|
|
@@ -291,10 +318,29 @@ declare class FormComponent implements OnInit, OnChanges, AfterViewInit {
|
|
|
291
318
|
setformData(): void;
|
|
292
319
|
setErroMessage(formField: any, errorMessages: any, field: any): string;
|
|
293
320
|
setValidations(): void;
|
|
321
|
+
matchData: any;
|
|
322
|
+
getLabel(formField: any): any;
|
|
323
|
+
onPickerContainerPointerDown(event: any, datePicker: any): void;
|
|
324
|
+
onPickerInputFocus(event: any, datePicker: any): void;
|
|
325
|
+
openPickerFromIcon(event: any, datePicker: any): void;
|
|
326
|
+
onPickerShown(): void;
|
|
327
|
+
onPickerClose(): void;
|
|
328
|
+
dateChangeEvent(formField: any, event: any): void;
|
|
329
|
+
onDateTyping(event: any): void;
|
|
330
|
+
onTimeTyping(event: any): void;
|
|
331
|
+
onTimePanelShow(formField: any): void;
|
|
332
|
+
blockPickerIconClick(event: any): void;
|
|
333
|
+
timeChangeEvent(formField: any, event: any): void;
|
|
334
|
+
autocompChangeEvent(event: any, formfield: any): void;
|
|
335
|
+
autocompFocusOutEvent(event: any, formfield: any): void;
|
|
294
336
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
295
337
|
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>;
|
|
296
338
|
}
|
|
297
339
|
|
|
340
|
+
interface GridColumnFilterState {
|
|
341
|
+
operator: string;
|
|
342
|
+
value: string;
|
|
343
|
+
}
|
|
298
344
|
declare class GridComponent implements AfterViewInit {
|
|
299
345
|
private requestService;
|
|
300
346
|
private utilityService;
|
|
@@ -322,9 +368,17 @@ declare class GridComponent implements AfterViewInit {
|
|
|
322
368
|
gridIncreamentClick: EventEmitter<any>;
|
|
323
369
|
gridDecreamentClick: EventEmitter<any>;
|
|
324
370
|
gridImgClick: EventEmitter<any>;
|
|
371
|
+
filteredTableData: any[];
|
|
372
|
+
filtersApplied: boolean;
|
|
373
|
+
private readonly columnFilterStates;
|
|
374
|
+
readonly filterOperators: {
|
|
375
|
+
label: string;
|
|
376
|
+
value: string;
|
|
377
|
+
}[];
|
|
325
378
|
constructor(requestService: RequestService, utilityService: UtilityService, notificationService: NotificationService, oktaAuthService: OktaAuthStateService);
|
|
326
379
|
ngAfterViewInit(): void;
|
|
327
380
|
ngOnChanges(changes: SimpleChanges): void;
|
|
381
|
+
get gridDisplayData(): any[];
|
|
328
382
|
translateSchema(schema: any, SelectedLanguage: any): any;
|
|
329
383
|
getScope(scope: any): string;
|
|
330
384
|
getStyleWithoutClasses(styleObject: any): {
|
|
@@ -346,6 +400,23 @@ declare class GridComponent implements AfterViewInit {
|
|
|
346
400
|
invokeOnPageSizeChange(pageSize: any): void;
|
|
347
401
|
invokeGoToPage(page: any): void;
|
|
348
402
|
authenticating(): void;
|
|
403
|
+
private readonly sortFunctionCache;
|
|
404
|
+
getColumnSortFn(column: any): ((firstRow: any, secondRow: any) => number) | boolean;
|
|
405
|
+
private getColumnFieldName;
|
|
406
|
+
private getColumnPropertyDefinition;
|
|
407
|
+
private compareGridValues;
|
|
408
|
+
hasAnyColumnFilter(): boolean;
|
|
409
|
+
getColumnFilterState(column: any): GridColumnFilterState;
|
|
410
|
+
private getColumnFilterKey;
|
|
411
|
+
getColumnFilterPlaceholder(column: any): string;
|
|
412
|
+
setColumnFilterOperator(column: any, operator: string): void;
|
|
413
|
+
getFilterOperatorLabel(operatorValue: string): string;
|
|
414
|
+
setColumnFilterValue(column: any, value: string): void;
|
|
415
|
+
hasActiveColumnFilter(column: any): boolean;
|
|
416
|
+
applyColumnFilters(): void;
|
|
417
|
+
clearColumnFilter(column: any): void;
|
|
418
|
+
private hasFilterValue;
|
|
419
|
+
private matchesColumnFilter;
|
|
349
420
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
|
|
350
421
|
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>;
|
|
351
422
|
}
|
|
@@ -357,6 +428,7 @@ declare class HeaderMenuComponent implements AfterViewInit {
|
|
|
357
428
|
private couchdbService;
|
|
358
429
|
private platform;
|
|
359
430
|
isLogined: boolean;
|
|
431
|
+
propertyschema: any;
|
|
360
432
|
headerItems: any[];
|
|
361
433
|
headerLayout: any;
|
|
362
434
|
environment: any;
|