@tedi-design-system/angular 5.0.1-rc.2 → 5.0.1-rc.4
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/community/components/form/file-dropzone/file-dropzone.component.d.ts +17 -9
- package/community/components/form/file-dropzone/file-dropzone.component.d.ts.map +1 -1
- package/community/components/form/file-dropzone/file.service.d.ts +3 -12
- package/community/components/form/file-dropzone/file.service.d.ts.map +1 -1
- package/community/components/form/file-dropzone/types.d.ts +11 -1
- package/community/components/form/file-dropzone/types.d.ts.map +1 -1
- package/community/components/form/file-dropzone/utils.d.ts +3 -3
- package/community/components/form/file-dropzone/utils.d.ts.map +1 -1
- package/fesm2022/tedi-design-system-angular-community.mjs +147 -142
- package/fesm2022/tedi-design-system-angular-community.mjs.map +1 -1
- package/fesm2022/tedi-design-system-angular-tedi.mjs +242 -199
- package/fesm2022/tedi-design-system-angular-tedi.mjs.map +1 -1
- package/package.json +1 -1
- package/tedi/components/buttons/info-button/info-button.component.d.ts +8 -1
- package/tedi/components/buttons/info-button/info-button.component.d.ts.map +1 -1
- package/tedi/components/content/carousel/carousel-content/carousel-content.component.d.ts +1 -0
- package/tedi/components/content/carousel/carousel-content/carousel-content.component.d.ts.map +1 -1
- package/tedi/components/overlay/tooltip/tooltip-trigger/tooltip-trigger.component.d.ts +3 -0
- package/tedi/components/overlay/tooltip/tooltip-trigger/tooltip-trigger.component.d.ts.map +1 -1
- package/tedi/components/overlay/tooltip/tooltip.component.d.ts +7 -3
- package/tedi/components/overlay/tooltip/tooltip.component.d.ts.map +1 -1
- package/tedi/services/translation/translations.d.ts +7 -0
- package/tedi/services/translation/translations.d.ts.map +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ElementRef, OnInit } from "@angular/core";
|
|
2
|
-
import { ControlValueAccessor } from "@angular/forms";
|
|
3
|
-
import { DropzoneValidatorFunction, FeedbackTextProps, FileDropzone, FileInputMode, SizeDisplayStandard } from "./types";
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl, ValidationErrors } from "@angular/forms";
|
|
3
|
+
import { DropzoneValidatorFunction, FeedbackTextProps, FileDropzone, FileDropzoneErrors, FileInputMode, SizeDisplayStandard, ValidationState } from "./types";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FileDropzoneComponent implements ControlValueAccessor, OnInit {
|
|
6
|
+
_ngControl: NgControl;
|
|
6
7
|
/**
|
|
7
8
|
* Specifies the allowed file types (e.g., "image/png, image/jpeg").
|
|
8
9
|
*
|
|
@@ -80,6 +81,7 @@ export declare class FileDropzoneComponent implements ControlValueAccessor, OnIn
|
|
|
80
81
|
/**
|
|
81
82
|
* Validation functions that can be used to validate files.
|
|
82
83
|
* Each function should return a string error message if validation fails, or undefined if it passes
|
|
84
|
+
* Validators are only added once during component initialization, otherwise use addAsyncValidators on the FormControl.
|
|
83
85
|
*/
|
|
84
86
|
validators: import("@angular/core").InputSignal<DropzoneValidatorFunction[]>;
|
|
85
87
|
/**
|
|
@@ -96,20 +98,25 @@ export declare class FileDropzoneComponent implements ControlValueAccessor, OnIn
|
|
|
96
98
|
* Output event triggered when a file is removed.
|
|
97
99
|
**/
|
|
98
100
|
fileDelete: import("@angular/core").OutputEmitterRef<FileDropzone>;
|
|
99
|
-
fileInputElement: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
100
|
-
formatBytes: (bytes: number) => string;
|
|
101
|
-
private _uploadState;
|
|
102
101
|
private _onChange;
|
|
103
102
|
private _onTouched;
|
|
104
103
|
private _translationService;
|
|
105
104
|
private _fileService;
|
|
105
|
+
private _destroyRef;
|
|
106
|
+
fileInputElement: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
107
|
+
formatBytes: (bytes: number) => string;
|
|
108
|
+
uploadState: import("@angular/core").WritableSignal<ValidationState>;
|
|
106
109
|
isDragActive: import("@angular/core").WritableSignal<boolean>;
|
|
107
110
|
disabled: import("@angular/core").WritableSignal<boolean>;
|
|
108
|
-
uploadError: import("@angular/core").WritableSignal<string |
|
|
111
|
+
uploadError: import("@angular/core").WritableSignal<string | undefined>;
|
|
109
112
|
files: import("@angular/core").Signal<FileDropzone[]>;
|
|
110
113
|
classes: import("@angular/core").Signal<string>;
|
|
111
114
|
helperText: import("@angular/core").Signal<FeedbackTextProps>;
|
|
115
|
+
constructor(_ngControl: NgControl);
|
|
112
116
|
ngOnInit(): void;
|
|
117
|
+
formChanges(): void;
|
|
118
|
+
runValidators: (control: AbstractControl<FileDropzone[]>) => Promise<ValidationErrors | null>;
|
|
119
|
+
validateFiles(files: FileDropzone[]): FileDropzoneErrors;
|
|
113
120
|
fileClasses: (file: FileDropzone) => string;
|
|
114
121
|
tooltipClasses: (file: FileDropzone) => string;
|
|
115
122
|
selectionChange: (event: Event) => void;
|
|
@@ -120,14 +127,15 @@ export declare class FileDropzoneComponent implements ControlValueAccessor, OnIn
|
|
|
120
127
|
onDragLeave: (event: DragEvent) => void;
|
|
121
128
|
onDrop: (event: DragEvent) => Promise<void>;
|
|
122
129
|
addFiles(files: FileDropzone[] | File[]): Promise<void>;
|
|
123
|
-
removeFile(file: FileDropzone): void
|
|
124
|
-
private
|
|
130
|
+
removeFile(file: FileDropzone): Promise<void>;
|
|
131
|
+
private _currentErrorState;
|
|
132
|
+
private _getNewState;
|
|
125
133
|
onContainerClick(): void;
|
|
126
134
|
writeValue(files: FileDropzone[]): void;
|
|
127
135
|
registerOnChange(fn: (value: FileDropzone[]) => void): void;
|
|
128
136
|
registerOnTouched(fn: () => void): void;
|
|
129
137
|
setDisabledState(isDisabled: boolean): void;
|
|
130
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileDropzoneComponent,
|
|
138
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileDropzoneComponent, [{ self: true; }]>;
|
|
131
139
|
static ɵcmp: i0.ɵɵComponentDeclaration<FileDropzoneComponent, "tedi-file-dropzone", never, { "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "sizeDisplayStandard": { "alias": "sizeDisplayStandard"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "validateIndividually": { "alias": "validateIndividually"; "required": false; "isSignal": true; }; "defaultFiles": { "alias": "defaultFiles"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "uploadFolder": { "alias": "uploadFolder"; "required": false; "isSignal": true; }; "validators": { "alias": "validators"; "required": false; "isSignal": true; }; "hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; }, { "fileChange": "fileChange"; "fileDelete": "fileDelete"; }, never, ["[helper-text]", "[file-list]", "[error-text]"], true, never>;
|
|
132
140
|
}
|
|
133
141
|
//# sourceMappingURL=file-dropzone.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-dropzone.component.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/file-dropzone/file-dropzone.component.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"file-dropzone.component.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/file-dropzone/file-dropzone.component.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,UAAU,EACV,MAAM,EAGP,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,SAAS,EAET,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAcxB,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,eAAe,EAChB,MAAM,SAAS,CAAC;;AASjB,qBAoBa,qBAAsB,YAAW,oBAAoB,EAAE,MAAM;IAwJ7C,UAAU,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AG,MAAM,CASxC;IAEF,cAAc,GAAI,MAAM,YAAY,KAAG,MAAM,CAI3C;IAEF,eAAe,GAAI,OAAO,KAAK,UAK7B;IAGF,MAAM;IAKN,cAAc;IAKd,UAAU,GAAI,OAAO,SAAS,UAE5B;IAGF,WAAW,GAAI,OAAO,SAAS,UAO7B;IAGF,WAAW,GAAI,OAAO,SAAS,UAI7B;IAGF,MAAM,GAAU,OAAO,SAAS,mBAO9B;IAEI,QAAQ,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE;IAWvC,UAAU,CAAC,IAAI,EAAE,YAAY;IAQnC,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,YAAY;IAYpB,gBAAgB;IAIhB,UAAU,CAAC,KAAK,EAAE,YAAY,EAAE;IAIhC,gBAAgB,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI;IAIpD,iBAAiB,CAAC,EAAE,EAAE,MAAM,IAAI;IAIhC,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;yCAtVhC,qBAAqB;2CAArB,qBAAqB;CAyVjC"}
|
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
import { Signal } from "@angular/core";
|
|
2
|
-
import {
|
|
2
|
+
import { FileDropzone, FileInputMode } from "./types";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FileService {
|
|
5
|
-
maxSize: Signal<number>;
|
|
6
|
-
accept: Signal<string>;
|
|
7
5
|
mode: Signal<FileInputMode>;
|
|
8
|
-
validators: Signal<DropzoneValidatorFunction[]>;
|
|
9
|
-
sizeDisplayStandard: Signal<SizeDisplayStandard>;
|
|
10
|
-
uploadState: import("@angular/core").WritableSignal<ValidationState>;
|
|
11
6
|
protected _files: import("@angular/core").WritableSignal<FileDropzone[]>;
|
|
12
|
-
private _translateService;
|
|
13
7
|
get files(): Signal<FileDropzone[]>;
|
|
14
|
-
addFiles(files: FileDropzone[] | File[]): Promise<
|
|
15
|
-
reValidateFiles(): void;
|
|
8
|
+
addFiles(files: FileDropzone[] | File[]): Promise<void>;
|
|
16
9
|
normalizeFiles(files: FileDropzone[] | File[]): FileDropzone[];
|
|
17
|
-
removeFiles(files: FileDropzone[]):
|
|
18
|
-
private _getNewState;
|
|
19
|
-
private _checkErrorState;
|
|
10
|
+
removeFiles(files: FileDropzone[]): Promise<void>;
|
|
20
11
|
private _renameDuplicates;
|
|
21
12
|
private _copyFile;
|
|
22
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.service.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/file-dropzone/file.service.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"file.service.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/file-dropzone/file.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAU,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;;AAEtD,qBACa,WAAW;IACtB,IAAI,wBAAgD;IAEpD,SAAS,CAAC,MAAM,yDAA8B;IAE9C,IAAI,KAAK,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC,CAElC;IAEY,QAAQ,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAkC7D,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,YAAY,EAAE;IAgBxD,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAQhD,iBAAiB;IA2B/B,OAAO,CAAC,SAAS;yCA9FN,WAAW;6CAAX,WAAW;CAuGvB"}
|
|
@@ -15,9 +15,19 @@ export declare class FileDropzone {
|
|
|
15
15
|
get size(): number;
|
|
16
16
|
get type(): string;
|
|
17
17
|
}
|
|
18
|
+
export interface FileDropzoneError {
|
|
19
|
+
fileName: string;
|
|
20
|
+
code: string;
|
|
21
|
+
message: string;
|
|
22
|
+
}
|
|
23
|
+
export type FileDropzoneErrors = FileDropzoneError[];
|
|
24
|
+
export declare enum FileDropzoneErrorCode {
|
|
25
|
+
FILE_TOO_LARGE = "file-too-large",
|
|
26
|
+
INVALID_FILE_TYPE = "invalid-file-type"
|
|
27
|
+
}
|
|
18
28
|
export type FileInputMode = "append" | "replace";
|
|
19
29
|
export type ValidationState = "none" | "valid" | "invalid";
|
|
20
|
-
export type DropzoneValidatorFunction = (maxSize: number, acceptFileTypes: string, file: FileDropzone, standard: SizeDisplayStandard, translate: (key: string, ...args: unknown[]) => string) =>
|
|
30
|
+
export type DropzoneValidatorFunction = (maxSize: number, acceptFileTypes: string, file: FileDropzone, standard: SizeDisplayStandard, translate: (key: string, ...args: unknown[]) => string) => FileDropzoneError | undefined;
|
|
21
31
|
export type SizeDisplayStandard = "SI" | "IEC";
|
|
22
32
|
export {};
|
|
23
33
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/file-dropzone/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAE1C,KAAK,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAE7E,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAC3C,eAAe,CAAC,qBAAqB,CAAC,EACtC,MAAM,CACP,CAAC;AAEF,qBAAa,YAAY;IAIvB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAIrB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
|
2
2
|
export declare function formatBytes(bytes: number, standard: SizeDisplayStandard): string;
|
|
3
3
|
export declare function roundNumber(num: number, decimals?: number): string;
|
|
4
4
|
export declare function getDefaultHelpers(accept: string, maxSize: number, standard: SizeDisplayStandard, translate?: (key: string, ...args: unknown[]) => string): string;
|
|
5
|
-
export declare function validateFileSize(maxSize: number, acceptFileTypes: string, file: FileDropzone, standard: SizeDisplayStandard, translate: (key: string, ...args: unknown[]) => string):
|
|
6
|
-
export declare function validateFileType(maxSize: number, acceptFileTypes: string, file: FileDropzone, standard: SizeDisplayStandard, translate: (key: string, ...args: unknown[]) => string):
|
|
5
|
+
export declare function validateFileSize(maxSize: number, acceptFileTypes: string, file: FileDropzone, standard: SizeDisplayStandard, translate: (key: string, ...args: unknown[]) => string): FileDropzoneError | undefined;
|
|
6
|
+
export declare function validateFileType(maxSize: number, acceptFileTypes: string, file: FileDropzone, standard: SizeDisplayStandard, translate: (key: string, ...args: unknown[]) => string): FileDropzoneError | undefined;
|
|
7
7
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/file-dropzone/utils.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/file-dropzone/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,iBAAiB,EAEjB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,mBAAmB,GAC5B,MAAM,CAyBR;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,SAAI,GAAG,MAAM,CAG7D;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,mBAAmB,EAC7B,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,MAAM,GACtD,MAAM,CAiBR;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,mBAAmB,EAC7B,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,MAAM,GACrD,iBAAiB,GAAG,SAAS,CAc/B;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,mBAAmB,EAC7B,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,MAAM,GACrD,iBAAiB,GAAG,SAAS,CAgC/B"}
|