ui-core-abv 0.3.0 → 0.3.1
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/fesm2022/ui-core-abv.mjs +122 -82
- package/fesm2022/ui-core-abv.mjs.map +1 -1
- package/lib/components/button/button.component.d.ts +2 -0
- package/lib/components/dynamic-form/form/dynamic-form.component.d.ts +6 -1
- package/lib/components/inputs/file-input/file-input.component.d.ts +13 -11
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SimpleChanges } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class UicButtonComponent {
|
|
3
4
|
text: string;
|
|
@@ -11,6 +12,7 @@ export declare class UicButtonComponent {
|
|
|
11
12
|
color: ButtonColor;
|
|
12
13
|
buttonTypeClass: string;
|
|
13
14
|
ngOnInit(): void;
|
|
15
|
+
ngOnChange(sc: SimpleChanges): void;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicButtonComponent, never>;
|
|
15
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<UicButtonComponent, "ui-button", never, { "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
16
18
|
}
|
|
@@ -8,6 +8,8 @@ export declare class UicDynamicFormComponent {
|
|
|
8
8
|
fields: FormField[];
|
|
9
9
|
form: FormGroup;
|
|
10
10
|
disabled: boolean;
|
|
11
|
+
voiceToTextSilenceMs: number;
|
|
12
|
+
private readonly alertS;
|
|
11
13
|
colorToIcon: Record<string, string>;
|
|
12
14
|
flag: boolean;
|
|
13
15
|
cols: number;
|
|
@@ -19,7 +21,10 @@ export declare class UicDynamicFormComponent {
|
|
|
19
21
|
getInputColor(field: FormField, value: string): ButtonColor;
|
|
20
22
|
getIconByColor(field: FormField, color: string): string;
|
|
21
23
|
private recognition;
|
|
24
|
+
private voiceStopTimer;
|
|
25
|
+
private clearVoiceStopTimer;
|
|
26
|
+
private scheduleVoiceStop;
|
|
22
27
|
voiceToText(target: HTMLTextAreaElement, fieldName: string): void;
|
|
23
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicDynamicFormComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicDynamicFormComponent, "ui-dynamic-form", never, { "fields": { "alias": "fields"; "required": false; }; "form": { "alias": "form"; "required": true; }; "disabled": { "alias": "disabled"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicDynamicFormComponent, "ui-dynamic-form", never, { "fields": { "alias": "fields"; "required": false; }; "form": { "alias": "form"; "required": true; }; "disabled": { "alias": "disabled"; "required": false; }; "voiceToTextSilenceMs": { "alias": "voiceToTextSilenceMs"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
30
|
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { ButtonColor } from '../../button/button.component';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
type
|
|
3
|
+
export type UicFileInputValue = {
|
|
4
4
|
name: string;
|
|
5
|
-
blob
|
|
5
|
+
blob?: Blob;
|
|
6
|
+
path?: string;
|
|
6
7
|
};
|
|
7
8
|
declare const base: abstract new () => {
|
|
8
|
-
value:
|
|
9
|
-
valueChange: import("@angular/core").EventEmitter<
|
|
10
|
-
onChange: (value:
|
|
9
|
+
value: UicFileInputValue[];
|
|
10
|
+
valueChange: import("@angular/core").EventEmitter<UicFileInputValue[]>;
|
|
11
|
+
onChange: (value: UicFileInputValue[]) => void;
|
|
11
12
|
onTouched: () => void;
|
|
12
|
-
writeValue(obj:
|
|
13
|
+
writeValue(obj: UicFileInputValue[]): void;
|
|
13
14
|
registerOnChange(fn: any): void;
|
|
14
15
|
registerOnTouched(fn: any): void;
|
|
15
16
|
setDisabledState?(isDisabled: boolean): void;
|
|
16
|
-
notifyChange(value:
|
|
17
|
+
notifyChange(value: UicFileInputValue[]): void;
|
|
17
18
|
};
|
|
18
19
|
export declare class UicFileInputComponent extends base {
|
|
19
20
|
icon: string;
|
|
@@ -29,8 +30,8 @@ export declare class UicFileInputComponent extends base {
|
|
|
29
30
|
multy: boolean;
|
|
30
31
|
fileTypes: string[] | string | null;
|
|
31
32
|
private fileInput?;
|
|
32
|
-
value:
|
|
33
|
-
files:
|
|
33
|
+
value: UicFileInputValue[];
|
|
34
|
+
files: UicFileInputValue[];
|
|
34
35
|
isDragging: boolean;
|
|
35
36
|
get acceptAttribute(): string | null;
|
|
36
37
|
openFileBrowser(): void;
|
|
@@ -38,9 +39,9 @@ export declare class UicFileInputComponent extends base {
|
|
|
38
39
|
removeFile(index: number): void;
|
|
39
40
|
onDragOver(event: DragEvent): void;
|
|
40
41
|
onDragLeave(event: DragEvent): void;
|
|
41
|
-
getIcon(file:
|
|
42
|
+
getIcon(file: UicFileInputValue): string;
|
|
42
43
|
onDrop(event: DragEvent): void;
|
|
43
|
-
writeValue(value:
|
|
44
|
+
writeValue(value: UicFileInputValue[] | null): void;
|
|
44
45
|
private processIncomingFiles;
|
|
45
46
|
private mergeFiles;
|
|
46
47
|
private applyFiles;
|
|
@@ -48,6 +49,7 @@ export declare class UicFileInputComponent extends base {
|
|
|
48
49
|
private matchesAcceptTokens;
|
|
49
50
|
private isExcelType;
|
|
50
51
|
private isWordType;
|
|
52
|
+
downloadFile(item: UicFileInputValue): void;
|
|
51
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicFileInputComponent, never>;
|
|
52
54
|
static ɵcmp: i0.ɵɵComponentDeclaration<UicFileInputComponent, "ui-file-input", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "internalIconColor": { "alias": "internalIconColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "multy": { "alias": "multy"; "required": false; }; "fileTypes": { "alias": "fileTypes"; "required": false; }; }, {}, never, never, true, never>;
|
|
53
55
|
}
|