@wemake4u/form-player-se 1.0.47 → 1.0.49
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/THIRD_PARTY_LICENSES.txt +6 -0
- package/esm2022/lib/builtIn/function.json +16 -0
- package/esm2022/lib/components/actionsCellRenderer/actionsCellRenderer.component.mjs +18 -14
- package/esm2022/lib/components/badge/badge.component.mjs +16 -0
- package/esm2022/lib/components/hostCellRenderer/hostCellRenderer.component.mjs +10 -8
- package/esm2022/lib/controls/factory.mjs +7 -1
- package/esm2022/lib/controls/navigator.mjs +4 -0
- package/esm2022/lib/controls/treerlist.mjs +4 -0
- package/esm2022/lib/dialog/dialog.component.mjs +10 -8
- package/esm2022/lib/directives/collapse.directive.mjs +3 -3
- package/esm2022/lib/directives/date.directive.mjs +139 -44
- package/esm2022/lib/directives/dialog.directive.mjs +7 -1
- package/esm2022/lib/directives/dropdown.directive.mjs +13 -8
- package/esm2022/lib/directives/file.directive.mjs +212 -0
- package/esm2022/lib/directives/filemanager.directive.mjs +233 -0
- package/esm2022/lib/directives/filepicker.directive.mjs +40 -0
- package/esm2022/lib/directives/jsonfile.directive.mjs +59 -0
- package/esm2022/lib/directives/navigator.directive.mjs +76 -0
- package/esm2022/lib/directives/repeat.directive.mjs +8 -7
- package/esm2022/lib/directives/tab.badge.directive.mjs +95 -0
- package/esm2022/lib/directives/tabitem.directive.mjs +7 -4
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +62 -149
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +11 -8
- package/esm2022/lib/locale/locale-de.mjs +6 -2
- package/esm2022/lib/locale/locale-en.mjs +6 -2
- package/esm2022/lib/locale/locale-es.mjs +6 -2
- package/esm2022/lib/locale/locale-fr.mjs +6 -2
- package/esm2022/lib/locale/locale-it.mjs +6 -2
- package/esm2022/lib/locale/locale-pt.mjs +6 -2
- package/esm2022/lib/pipes/times.mjs +14 -0
- package/esm2022/lib/services/builder.service.mjs +43 -89
- package/esm2022/lib/services/compute.service.mjs +9 -9
- package/esm2022/lib/services/dialog.service.mjs +35 -4
- package/esm2022/lib/services/disable.service.mjs +30 -11
- package/esm2022/lib/services/event.service.mjs +14 -12
- package/esm2022/lib/services/form.service.mjs +32 -46
- package/esm2022/lib/services/function.service.mjs +6 -2
- package/esm2022/lib/services/grid.service.mjs +20 -14
- package/esm2022/lib/services/lifetime.service.mjs +36 -0
- package/esm2022/lib/services/programmability.service.mjs +22 -18
- package/esm2022/lib/services/status.service.mjs +88 -25
- package/esm2022/lib/services/validation.service.mjs +7 -7
- package/esm2022/lib/utils/FormArrayEx.mjs +63 -0
- package/esm2022/lib/utils/window.mjs +3 -2
- package/fesm2022/wemake4u-form-player-se.mjs +1460 -509
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/components/badge/badge.component.d.ts +13 -0
- package/lib/components/deleteRowRenderer/deleteRowRenderer.component.d.ts +4 -0
- package/lib/components/objectURLRenderer/objectURLRenderer.component.d.ts +4 -0
- package/lib/components/setFilter/setFilter.component.d.ts +4 -0
- package/lib/controls/navigator.d.ts +3 -0
- package/lib/controls/treerlist.d.ts +3 -0
- package/lib/dialog/dialog.component.d.ts +30 -2
- package/lib/directives/collapse.directive.d.ts +3 -2
- package/lib/directives/date.directive.d.ts +15 -4
- package/lib/directives/dropdown.directive.d.ts +2 -2
- package/lib/directives/file.directive.d.ts +31 -0
- package/lib/directives/filemanager.directive.d.ts +47 -0
- package/lib/directives/filepicker.directive.d.ts +23 -0
- package/lib/directives/jsonfile.directive.d.ts +14 -0
- package/lib/directives/navigator.directive.d.ts +22 -0
- package/lib/directives/tab.badge.directive.d.ts +28 -0
- package/lib/directives/tabitem.directive.d.ts +2 -1
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +38 -11
- package/lib/dynamic-form/dynamic-form.component.d.ts +29 -1
- package/lib/locale/locale-de.d.ts +4 -0
- package/lib/locale/locale-en.d.ts +4 -0
- package/lib/locale/locale-es.d.ts +4 -0
- package/lib/locale/locale-fr.d.ts +4 -0
- package/lib/locale/locale-it.d.ts +4 -0
- package/lib/locale/locale-pt.d.ts +4 -0
- package/lib/locale/locale.d.ts +28 -0
- package/lib/pipes/times.d.ts +7 -0
- package/lib/services/builder.service.d.ts +6 -10
- package/lib/services/compute.service.d.ts +2 -1
- package/lib/services/dialog.service.d.ts +10 -3
- package/lib/services/disable.service.d.ts +5 -1
- package/lib/services/event.service.d.ts +1 -1
- package/lib/services/form.service.d.ts +5 -2
- package/lib/services/function.service.d.ts +1 -0
- package/lib/services/grid.service.d.ts +1 -1
- package/lib/services/lifetime.service.d.ts +12 -0
- package/lib/services/programmability.service.d.ts +3 -1
- package/lib/services/status.service.d.ts +18 -4
- package/lib/services/validation.service.d.ts +2 -1
- package/lib/utils/FormArrayEx.d.ts +26 -0
- package/package.json +3 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class BadgeComponent {
|
|
3
|
+
badge: {
|
|
4
|
+
type: string;
|
|
5
|
+
text: string;
|
|
6
|
+
};
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "app-badge", never, { "badge": { "alias": "badge"; "required": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
export interface Badge {
|
|
11
|
+
type: string;
|
|
12
|
+
text: string;
|
|
13
|
+
}
|
|
@@ -49,6 +49,10 @@ export declare class DeleteRowRendererComponent implements ICellRendererAngularC
|
|
|
49
49
|
NextElement: string;
|
|
50
50
|
Elements: string;
|
|
51
51
|
Of: string;
|
|
52
|
+
Download: string;
|
|
53
|
+
Uploading: string;
|
|
54
|
+
Downloading: string;
|
|
55
|
+
Deleting: string;
|
|
52
56
|
};
|
|
53
57
|
agInit(params: any): void;
|
|
54
58
|
onClick(event: Event): void;
|
|
@@ -50,6 +50,10 @@ export declare class ObjectURLRendererComponent implements ICellRendererAngularC
|
|
|
50
50
|
NextElement: string;
|
|
51
51
|
Elements: string;
|
|
52
52
|
Of: string;
|
|
53
|
+
Download: string;
|
|
54
|
+
Uploading: string;
|
|
55
|
+
Downloading: string;
|
|
56
|
+
Deleting: string;
|
|
53
57
|
};
|
|
54
58
|
agInit(params: ICellRendererParams): void;
|
|
55
59
|
onClick(event: Event): void;
|
|
@@ -51,6 +51,10 @@ export declare class SetFilterComponent implements IFilterAngularComp {
|
|
|
51
51
|
NextElement: string;
|
|
52
52
|
Elements: string;
|
|
53
53
|
Of: string;
|
|
54
|
+
Download: string;
|
|
55
|
+
Uploading: string;
|
|
56
|
+
Downloading: string;
|
|
57
|
+
Deleting: string;
|
|
54
58
|
};
|
|
55
59
|
selectAll: boolean;
|
|
56
60
|
searchText: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormDialogOptions, DialogAction } from '../services/dialog.service';
|
|
1
|
+
import { FormDialogOptions, DialogAction, SirioDialogExService } from '../services/dialog.service';
|
|
2
2
|
import { SirioDialogElement } from 'ngx-sirio-lib';
|
|
3
3
|
import { LanguageService } from '@wemake4u/interact';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -56,6 +56,10 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
56
56
|
NextElement: string;
|
|
57
57
|
Elements: string;
|
|
58
58
|
Of: string;
|
|
59
|
+
Download: string;
|
|
60
|
+
Uploading: string;
|
|
61
|
+
Downloading: string;
|
|
62
|
+
Deleting: string;
|
|
59
63
|
};
|
|
60
64
|
en: {
|
|
61
65
|
TypeToSearch: string;
|
|
@@ -104,6 +108,10 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
104
108
|
NextElement: string;
|
|
105
109
|
Elements: string;
|
|
106
110
|
Of: string;
|
|
111
|
+
Download: string;
|
|
112
|
+
Uploading: string;
|
|
113
|
+
Downloading: string;
|
|
114
|
+
Deleting: string;
|
|
107
115
|
};
|
|
108
116
|
de: {
|
|
109
117
|
TypeToSearch: string;
|
|
@@ -152,6 +160,10 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
152
160
|
NextElement: string;
|
|
153
161
|
Elements: string;
|
|
154
162
|
Of: string;
|
|
163
|
+
Download: string;
|
|
164
|
+
Uploading: string;
|
|
165
|
+
Downloading: string;
|
|
166
|
+
Deleting: string;
|
|
155
167
|
};
|
|
156
168
|
fr: {
|
|
157
169
|
TypeToSearch: string;
|
|
@@ -200,6 +212,10 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
200
212
|
NextElement: string;
|
|
201
213
|
Elements: string;
|
|
202
214
|
Of: string;
|
|
215
|
+
Download: string;
|
|
216
|
+
Uploading: string;
|
|
217
|
+
Downloading: string;
|
|
218
|
+
Deleting: string;
|
|
203
219
|
};
|
|
204
220
|
es: {
|
|
205
221
|
TypeToSearch: string;
|
|
@@ -248,6 +264,10 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
248
264
|
NextElement: string;
|
|
249
265
|
Elements: string;
|
|
250
266
|
Of: string;
|
|
267
|
+
Download: string;
|
|
268
|
+
Uploading: string;
|
|
269
|
+
Downloading: string;
|
|
270
|
+
Deleting: string;
|
|
251
271
|
};
|
|
252
272
|
pt: {
|
|
253
273
|
TypeToSearch: string;
|
|
@@ -296,6 +316,10 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
296
316
|
NextElement: string;
|
|
297
317
|
Elements: string;
|
|
298
318
|
Of: string;
|
|
319
|
+
Download: string;
|
|
320
|
+
Uploading: string;
|
|
321
|
+
Downloading: string;
|
|
322
|
+
Deleting: string;
|
|
299
323
|
};
|
|
300
324
|
};
|
|
301
325
|
TypeToSearch: string;
|
|
@@ -344,8 +368,12 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
344
368
|
NextElement: string;
|
|
345
369
|
Elements: string;
|
|
346
370
|
Of: string;
|
|
371
|
+
Download: string;
|
|
372
|
+
Uploading: string;
|
|
373
|
+
Downloading: string;
|
|
374
|
+
Deleting: string;
|
|
347
375
|
};
|
|
348
|
-
constructor(languageService: LanguageService);
|
|
376
|
+
constructor(languageService: LanguageService, sirioDialogExService: SirioDialogExService);
|
|
349
377
|
ngOnInit(): void;
|
|
350
378
|
options: FormDialogOptions;
|
|
351
379
|
ngAfterViewInit(): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ElementRef, Renderer2, OnChanges, SimpleChanges, OnDestroy, DestroyRef } from '@angular/core';
|
|
2
2
|
import { ListenerService } from '../services/listener.service';
|
|
3
3
|
import { LanguageService } from '@wemake4u/interact';
|
|
4
|
+
import { EvaluateOptions } from '../services/programmability.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class CollapseDirective implements OnChanges, OnDestroy {
|
|
6
7
|
private el;
|
|
@@ -9,8 +10,8 @@ export declare class CollapseDirective implements OnChanges, OnDestroy {
|
|
|
9
10
|
private listenerService;
|
|
10
11
|
private languageService;
|
|
11
12
|
maxHeight: number | null;
|
|
12
|
-
onCollapse?: () => void;
|
|
13
|
-
onExpand?: () => void;
|
|
13
|
+
onCollapse?: (options?: EvaluateOptions) => void;
|
|
14
|
+
onExpand?: (options?: EvaluateOptions) => void;
|
|
14
15
|
component: any;
|
|
15
16
|
private currentHeight;
|
|
16
17
|
private button;
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
+
import { AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
1
2
|
import { SirioDatepickerComponent } from 'ngx-sirio-lib';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DateDirective {
|
|
4
|
+
export declare class DateDirective implements OnChanges, AfterViewInit {
|
|
4
5
|
private sirioDatepicker;
|
|
6
|
+
pick: any;
|
|
7
|
+
minDate: any;
|
|
8
|
+
maxDate: any;
|
|
5
9
|
constructor(sirioDatepicker: SirioDatepickerComponent);
|
|
10
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
11
|
+
ngAfterViewInit(): void;
|
|
12
|
+
private displayFormat;
|
|
13
|
+
private configurePicker;
|
|
14
|
+
private getPickLevel;
|
|
15
|
+
private getDate;
|
|
16
|
+
private getDisplayFormat;
|
|
6
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateDirective, [{ host: true; }]>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DateDirective, "[isoDate]", never, {}, {}, never, never, true, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateDirective, "[isoDate]", never, { "pick": { "alias": "pick"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
19
|
}
|
|
9
|
-
export declare function dateToDisplay(value: string): string | null;
|
|
10
|
-
export declare function dateToStore(value: string): string | null;
|
|
20
|
+
export declare function dateToDisplay(value: string, displayFormat?: string): string | null;
|
|
21
|
+
export declare function dateToStore(value: string, displayFormat?: string): string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, OnDestroy, ElementRef, Renderer2, DestroyRef } from '@angular/core';
|
|
2
2
|
import { ListenerService } from '../services/listener.service';
|
|
3
3
|
import { SirioSelectComponent } from 'ngx-sirio-lib';
|
|
4
|
-
import {
|
|
4
|
+
import { EvaluateOptions } from '../services/programmability.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class DropdownDirective implements AfterViewInit, OnDestroy {
|
|
7
7
|
private el;
|
|
@@ -10,7 +10,7 @@ export declare class DropdownDirective implements AfterViewInit, OnDestroy {
|
|
|
10
10
|
private destroyRef;
|
|
11
11
|
private sirioSelect;
|
|
12
12
|
component: any;
|
|
13
|
-
onSelectionChanged?: (
|
|
13
|
+
onSelectionChanged?: (options?: EvaluateOptions) => void;
|
|
14
14
|
constructor(el: ElementRef, renderer: Renderer2, listenerService: ListenerService, destroyRef: DestroyRef, sirioSelect: SirioSelectComponent);
|
|
15
15
|
ngAfterViewInit(): void;
|
|
16
16
|
ngOnInit(): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DestroyRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ToastService } from '../services/toast.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FileHandlerDirective {
|
|
6
|
+
protected toastService: ToastService;
|
|
7
|
+
protected destroyRef: DestroyRef;
|
|
8
|
+
constructor(toastService: ToastService, destroyRef: DestroyRef);
|
|
9
|
+
downloadHandler?: (file: any) => Observable<any> | string;
|
|
10
|
+
getExtension(file?: FileInfo | null): string;
|
|
11
|
+
getIcon(file: File): string;
|
|
12
|
+
getSize(file?: FileInfo | null): string;
|
|
13
|
+
canDownload(file: any): boolean;
|
|
14
|
+
isLocal(file: any): file is File;
|
|
15
|
+
downloadLocal(file: File): void;
|
|
16
|
+
isHandled(file: any): file is {
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
downloadHandled(file: any): void;
|
|
21
|
+
isDownloading(file: any): boolean;
|
|
22
|
+
private readonly downloadingHandled;
|
|
23
|
+
private downloadUrl;
|
|
24
|
+
private isBase64;
|
|
25
|
+
private isUri;
|
|
26
|
+
protected logError(error: Error): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileHandlerDirective, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileHandlerDirective, "[fileHandler]", ["fileHandler"], { "downloadHandler": { "alias": "downloadHandler"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
30
|
+
type FileInfo = Pick<File, 'name' | 'size'>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { DestroyRef, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { NgControl } from '@angular/forms';
|
|
3
|
+
import { SirioFileUploadComponent } from 'ngx-sirio-lib';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { ToastService } from '../services/toast.service';
|
|
6
|
+
import { FileHandlerDirective } from './file.directive';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class FileManagerDirective extends FileHandlerDirective implements OnChanges, OnDestroy {
|
|
9
|
+
private ngControl;
|
|
10
|
+
private fileUpload;
|
|
11
|
+
private renderer;
|
|
12
|
+
instantUpload: boolean | null;
|
|
13
|
+
readonly: boolean | null;
|
|
14
|
+
multiple: boolean | null;
|
|
15
|
+
uploadHandler?: (file: File) => Observable<any>;
|
|
16
|
+
deleteHandler?: (file: File) => Observable<boolean>;
|
|
17
|
+
constructor(ngControl: NgControl, fileUpload: SirioFileUploadComponent, renderer: Renderer2, toastService: ToastService, destroyRef: DestroyRef);
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
20
|
+
canRemove(file: File): boolean;
|
|
21
|
+
removeFile(file: File): void;
|
|
22
|
+
canDownload(file: File): boolean;
|
|
23
|
+
isUploading(file: File): boolean;
|
|
24
|
+
isDeleting(file: File): boolean;
|
|
25
|
+
private instantSubscription;
|
|
26
|
+
private lastSingleUploaded;
|
|
27
|
+
private setupInstant;
|
|
28
|
+
private cleanupInstant;
|
|
29
|
+
private setupButton;
|
|
30
|
+
private onAddFile;
|
|
31
|
+
private onRemoveFile;
|
|
32
|
+
private onRemovingFile;
|
|
33
|
+
private removeFromUploader;
|
|
34
|
+
private refreshButton;
|
|
35
|
+
private markUploaded;
|
|
36
|
+
private getStatus;
|
|
37
|
+
private setStatus;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileManagerDirective, [{ self: true; }, null, null, null, null]>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileManagerDirective, "[fileManager]", ["fileManager"], { "instantUpload": { "alias": "instantUpload"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "uploadHandler": { "alias": "uploadHandler"; "required": false; }; "deleteHandler": { "alias": "deleteHandler"; "required": false; }; }, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
41
|
+
export declare enum UploadStatus {
|
|
42
|
+
Uploading = 0,
|
|
43
|
+
Uploaded = 1,
|
|
44
|
+
Deleting = 2,
|
|
45
|
+
Deleted = 3,
|
|
46
|
+
Failed = 4
|
|
47
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AfterViewChecked, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FileListReadonlyDirective implements AfterViewChecked {
|
|
4
|
+
private host;
|
|
5
|
+
private renderer;
|
|
6
|
+
readonly: boolean | null;
|
|
7
|
+
constructor(host: ElementRef<HTMLElement>, renderer: Renderer2);
|
|
8
|
+
ngAfterViewChecked(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileListReadonlyDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileListReadonlyDirective, "ngx-sirio-file-upload", never, { "readonly": { "alias": "readonly"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
export declare enum UploadStatus {
|
|
13
|
+
Uploading = 0,
|
|
14
|
+
Uploaded = 1,
|
|
15
|
+
Failed = 2
|
|
16
|
+
}
|
|
17
|
+
export interface UploadFile<TResult = any> {
|
|
18
|
+
file: File;
|
|
19
|
+
status: UploadStatus;
|
|
20
|
+
progress: number;
|
|
21
|
+
result?: TResult;
|
|
22
|
+
error?: any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
|
+
import { NgControl } from '@angular/forms';
|
|
3
|
+
import { SubscribeService } from '../services/subscribe.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class JsonFileDirective implements OnInit {
|
|
6
|
+
private ngControl;
|
|
7
|
+
private subscribe;
|
|
8
|
+
private destroyRef;
|
|
9
|
+
constructor(ngControl: NgControl, subscribe: SubscribeService, destroyRef: DestroyRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
private defineJson;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JsonFileDirective, [{ self: true; }, null, null]>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<JsonFileDirective, "ngx-sirio-file-upload", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NavigatorStateDirective implements AfterViewInit {
|
|
4
|
+
private _total;
|
|
5
|
+
private _index;
|
|
6
|
+
private _requestedIndex;
|
|
7
|
+
private initialized;
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
indexChange: EventEmitter<number>;
|
|
10
|
+
set total(value: number);
|
|
11
|
+
get total(): number;
|
|
12
|
+
get index(): number;
|
|
13
|
+
set index(value: number);
|
|
14
|
+
canNext(): boolean;
|
|
15
|
+
canPrevious(): boolean;
|
|
16
|
+
next(): void;
|
|
17
|
+
previous(): void;
|
|
18
|
+
private recalculate;
|
|
19
|
+
private setIndex;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigatorStateDirective, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NavigatorStateDirective, "[navigatorState]", ["navigatorState"], { "total": { "alias": "total"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, { "indexChange": "indexChange"; }, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AfterViewInit, ApplicationRef, DestroyRef, ElementRef, EnvironmentInjector, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Badge } from '../components/badge/badge.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TabBadgesDirective implements AfterViewInit {
|
|
5
|
+
private host;
|
|
6
|
+
private appRef;
|
|
7
|
+
private environmentInjector;
|
|
8
|
+
private renderer;
|
|
9
|
+
private destroyRef;
|
|
10
|
+
constructor(host: ElementRef, appRef: ApplicationRef, environmentInjector: EnvironmentInjector, renderer: Renderer2, destroyRef: DestroyRef);
|
|
11
|
+
ngAfterViewInit(): void;
|
|
12
|
+
setBadge(index: number, badge: Badge | null): void;
|
|
13
|
+
private badges;
|
|
14
|
+
private pendingBadges;
|
|
15
|
+
private findAnchor;
|
|
16
|
+
private createBadge;
|
|
17
|
+
private dispose;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabBadgesDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabBadgesDirective, "[tabBadges]", ["tabBadges"], {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
export declare class TabBadgeDirective implements OnChanges {
|
|
22
|
+
tabBadges: TabBadgesDirective;
|
|
23
|
+
tabIndex: number;
|
|
24
|
+
badge: Badge | null;
|
|
25
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabBadgeDirective, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabBadgeDirective, "[tabBadge]", never, { "tabBadges": { "alias": "tabBadges"; "required": true; }; "tabIndex": { "alias": "tabIndex"; "required": true; }; "badge": { "alias": "badge"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -3,7 +3,8 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class TabItemDirective implements OnChanges {
|
|
4
4
|
componentRef: any;
|
|
5
5
|
disabled: any;
|
|
6
|
+
label: any;
|
|
6
7
|
ngOnChanges(changes: SimpleChanges): void;
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabItemDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TabItemDirective, "[tabItem]", never, { "componentRef": { "alias": "componentRef"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabItemDirective, "[tabItem]", never, { "componentRef": { "alias": "componentRef"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
10
|
}
|
|
@@ -16,6 +16,7 @@ import { GridService } from '../services/grid.service';
|
|
|
16
16
|
import { ChartService } from '../services/chart.service';
|
|
17
17
|
import { AutoFocusService } from '../services/autofocus.service';
|
|
18
18
|
import { FunctionService } from '../services/function.service';
|
|
19
|
+
import { NavigatorStateDirective } from '../directives/navigator.directive';
|
|
19
20
|
import { Observable } from 'rxjs';
|
|
20
21
|
import { FlatNode } from '../utils/flatten';
|
|
21
22
|
import { SirioFileUploadComponent, NgxSirioEvent, ButtonColors } from 'ngx-sirio-lib';
|
|
@@ -99,6 +100,10 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
99
100
|
NextElement: string;
|
|
100
101
|
Elements: string;
|
|
101
102
|
Of: string;
|
|
103
|
+
Download: string;
|
|
104
|
+
Uploading: string;
|
|
105
|
+
Downloading: string;
|
|
106
|
+
Deleting: string;
|
|
102
107
|
};
|
|
103
108
|
en: {
|
|
104
109
|
TypeToSearch: string;
|
|
@@ -147,6 +152,10 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
147
152
|
NextElement: string;
|
|
148
153
|
Elements: string;
|
|
149
154
|
Of: string;
|
|
155
|
+
Download: string;
|
|
156
|
+
Uploading: string;
|
|
157
|
+
Downloading: string;
|
|
158
|
+
Deleting: string;
|
|
150
159
|
};
|
|
151
160
|
de: {
|
|
152
161
|
TypeToSearch: string;
|
|
@@ -195,6 +204,10 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
195
204
|
NextElement: string;
|
|
196
205
|
Elements: string;
|
|
197
206
|
Of: string;
|
|
207
|
+
Download: string;
|
|
208
|
+
Uploading: string;
|
|
209
|
+
Downloading: string;
|
|
210
|
+
Deleting: string;
|
|
198
211
|
};
|
|
199
212
|
fr: {
|
|
200
213
|
TypeToSearch: string;
|
|
@@ -243,6 +256,10 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
243
256
|
NextElement: string;
|
|
244
257
|
Elements: string;
|
|
245
258
|
Of: string;
|
|
259
|
+
Download: string;
|
|
260
|
+
Uploading: string;
|
|
261
|
+
Downloading: string;
|
|
262
|
+
Deleting: string;
|
|
246
263
|
};
|
|
247
264
|
es: {
|
|
248
265
|
TypeToSearch: string;
|
|
@@ -291,6 +308,10 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
291
308
|
NextElement: string;
|
|
292
309
|
Elements: string;
|
|
293
310
|
Of: string;
|
|
311
|
+
Download: string;
|
|
312
|
+
Uploading: string;
|
|
313
|
+
Downloading: string;
|
|
314
|
+
Deleting: string;
|
|
294
315
|
};
|
|
295
316
|
pt: {
|
|
296
317
|
TypeToSearch: string;
|
|
@@ -339,6 +360,10 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
339
360
|
NextElement: string;
|
|
340
361
|
Elements: string;
|
|
341
362
|
Of: string;
|
|
363
|
+
Download: string;
|
|
364
|
+
Uploading: string;
|
|
365
|
+
Downloading: string;
|
|
366
|
+
Deleting: string;
|
|
342
367
|
};
|
|
343
368
|
};
|
|
344
369
|
TypeToSearch: string;
|
|
@@ -387,6 +412,10 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
387
412
|
NextElement: string;
|
|
388
413
|
Elements: string;
|
|
389
414
|
Of: string;
|
|
415
|
+
Download: string;
|
|
416
|
+
Uploading: string;
|
|
417
|
+
Downloading: string;
|
|
418
|
+
Deleting: string;
|
|
390
419
|
};
|
|
391
420
|
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, weak: WeakService, register: RegisterService, metadata: MetadataService, languageService: LanguageService, global: GlobalService, functionService: FunctionService, formService: FormService, grid: GridService, chart: ChartService, dialog: DialogService, autoFocus: AutoFocusService, el: ElementRef);
|
|
392
421
|
ngOnInit(): void;
|
|
@@ -405,6 +434,10 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
405
434
|
evaluate(text: string | null, cacheable?: boolean, extendContext?: ExtendContextFn): any;
|
|
406
435
|
evaluateColor(value: string | null): ButtonColors | null;
|
|
407
436
|
evaluateConditional(conditional: any): boolean;
|
|
437
|
+
evaluateWithEvent(text: string | null, event: any): any;
|
|
438
|
+
evaluateWithEventAsBoolean(text: string | null, event?: any, defaultValue?: boolean): any;
|
|
439
|
+
evaluateWithEventAsString(text: string | null, event?: any, defaultValue?: string): string;
|
|
440
|
+
evaluateWithEventAsHandler(text: string | null, event: any): any;
|
|
408
441
|
getTreeColumns(component: any): any;
|
|
409
442
|
getTreeSource(component: any): Observable<FlatNode<any>[]>;
|
|
410
443
|
getTemplate(value: string): any;
|
|
@@ -430,15 +463,12 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
430
463
|
getGridModules(component: any): Module[];
|
|
431
464
|
onGridSelectionChanged(component: any, event: any): void;
|
|
432
465
|
getRowSource(component: any): any;
|
|
433
|
-
|
|
466
|
+
callExpression(expression: any): (() => void) | undefined;
|
|
434
467
|
refreshRowSource(component: any): () => void;
|
|
435
|
-
addItem(formArray: FormArray): void;
|
|
436
|
-
removeItem(formArray: FormArray, index: number, withConfirm: boolean): void;
|
|
437
|
-
navigationIndex: number;
|
|
438
|
-
navigateItem(formArray: FormArray, delta?: number): void;
|
|
468
|
+
addItem(formArray: FormArray, state: NavigatorStateDirective): void;
|
|
469
|
+
removeItem(formArray: FormArray, index: number, withConfirm: boolean, state: NavigatorStateDirective): void;
|
|
439
470
|
moveUpItem(formArray: FormArray, index: number): void;
|
|
440
471
|
moveDownItem(formArray: FormArray, index: number): void;
|
|
441
|
-
createUploadTables(component: any): any;
|
|
442
472
|
fileUploaded($event: NgxSirioEvent<SirioFileUploadComponent>): void;
|
|
443
473
|
getFeelableProperties(component: any): Record<string, any> | null;
|
|
444
474
|
getGroupOutline(component: any): {
|
|
@@ -476,18 +506,15 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
476
506
|
getLightView(component: any): string;
|
|
477
507
|
getPanels(component: any): Observable<any>;
|
|
478
508
|
isTextOverflow(el: HTMLElement): boolean;
|
|
509
|
+
preventLabelFileOpen(event: MouseEvent): void;
|
|
479
510
|
private noData;
|
|
480
511
|
private get language();
|
|
481
512
|
private invalidate;
|
|
513
|
+
private getEventOptions;
|
|
482
514
|
private getControlFromPath;
|
|
483
515
|
private getAsObservable;
|
|
484
516
|
private applyCssClasses;
|
|
485
517
|
private applyInlineStyles;
|
|
486
|
-
private evaluateFuncOrValue;
|
|
487
|
-
private invokeFuncOrValue;
|
|
488
|
-
private configureDatepicker;
|
|
489
|
-
private markForAutoFocus;
|
|
490
|
-
private requireAutoFocus;
|
|
491
518
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldsComponent, never>;
|
|
492
519
|
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "form": { "alias": "form"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "recursionLevel": { "alias": "recursionLevel"; "required": false; }; "identity": { "alias": "identity"; "required": false; }; "identityIndex": { "alias": "identityIndex"; "required": false; }; "disableAutoFocus": { "alias": "disableAutoFocus"; "required": false; }; }, {}, never, never, true, never>;
|
|
493
520
|
}
|
|
@@ -94,6 +94,10 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
94
94
|
NextElement: string;
|
|
95
95
|
Elements: string;
|
|
96
96
|
Of: string;
|
|
97
|
+
Download: string;
|
|
98
|
+
Uploading: string;
|
|
99
|
+
Downloading: string;
|
|
100
|
+
Deleting: string;
|
|
97
101
|
};
|
|
98
102
|
en: {
|
|
99
103
|
TypeToSearch: string;
|
|
@@ -142,6 +146,10 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
142
146
|
NextElement: string;
|
|
143
147
|
Elements: string;
|
|
144
148
|
Of: string;
|
|
149
|
+
Download: string;
|
|
150
|
+
Uploading: string;
|
|
151
|
+
Downloading: string;
|
|
152
|
+
Deleting: string;
|
|
145
153
|
};
|
|
146
154
|
de: {
|
|
147
155
|
TypeToSearch: string;
|
|
@@ -190,6 +198,10 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
190
198
|
NextElement: string;
|
|
191
199
|
Elements: string;
|
|
192
200
|
Of: string;
|
|
201
|
+
Download: string;
|
|
202
|
+
Uploading: string;
|
|
203
|
+
Downloading: string;
|
|
204
|
+
Deleting: string;
|
|
193
205
|
};
|
|
194
206
|
fr: {
|
|
195
207
|
TypeToSearch: string;
|
|
@@ -238,6 +250,10 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
238
250
|
NextElement: string;
|
|
239
251
|
Elements: string;
|
|
240
252
|
Of: string;
|
|
253
|
+
Download: string;
|
|
254
|
+
Uploading: string;
|
|
255
|
+
Downloading: string;
|
|
256
|
+
Deleting: string;
|
|
241
257
|
};
|
|
242
258
|
es: {
|
|
243
259
|
TypeToSearch: string;
|
|
@@ -286,6 +302,10 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
286
302
|
NextElement: string;
|
|
287
303
|
Elements: string;
|
|
288
304
|
Of: string;
|
|
305
|
+
Download: string;
|
|
306
|
+
Uploading: string;
|
|
307
|
+
Downloading: string;
|
|
308
|
+
Deleting: string;
|
|
289
309
|
};
|
|
290
310
|
pt: {
|
|
291
311
|
TypeToSearch: string;
|
|
@@ -334,6 +354,10 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
334
354
|
NextElement: string;
|
|
335
355
|
Elements: string;
|
|
336
356
|
Of: string;
|
|
357
|
+
Download: string;
|
|
358
|
+
Uploading: string;
|
|
359
|
+
Downloading: string;
|
|
360
|
+
Deleting: string;
|
|
337
361
|
};
|
|
338
362
|
};
|
|
339
363
|
TypeToSearch: string;
|
|
@@ -382,6 +406,10 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
382
406
|
NextElement: string;
|
|
383
407
|
Elements: string;
|
|
384
408
|
Of: string;
|
|
409
|
+
Download: string;
|
|
410
|
+
Uploading: string;
|
|
411
|
+
Downloading: string;
|
|
412
|
+
Deleting: string;
|
|
385
413
|
};
|
|
386
414
|
ngOnDestroy(): void;
|
|
387
415
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -397,7 +425,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
397
425
|
set activeNav(value: number);
|
|
398
426
|
getFormGroup(path: string | null): FormGroup;
|
|
399
427
|
getFormStatus(form: any, index: number): SirioStepperProgressStatus;
|
|
400
|
-
|
|
428
|
+
countErrors(form: any): number;
|
|
401
429
|
activateForm(event: NgxSirioEvent<SirioStepperProgressBarComponent>): void;
|
|
402
430
|
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
403
431
|
evaluateTemplate(value: string | null): string;
|