@masterteam/components 0.0.98 → 0.0.100
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/assets/common.css +1 -1
- package/fesm2022/masterteam-components-breadcrumb.mjs +2 -2
- package/fesm2022/masterteam-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/masterteam-components-client-page-menu.mjs +53 -4
- package/fesm2022/masterteam-components-client-page-menu.mjs.map +1 -1
- package/fesm2022/masterteam-components-client-page.mjs +2 -2
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +20 -38
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-sidebar.mjs +2 -2
- package/fesm2022/masterteam-components-sidebar.mjs.map +1 -1
- package/fesm2022/masterteam-components-upload-field.mjs +145 -96
- package/fesm2022/masterteam-components-upload-field.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +2 -0
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-client-page-menu.d.ts +9 -1
- package/types/masterteam-components-entities.d.ts +8 -6
- package/types/masterteam-components-upload-field.d.ts +20 -15
- package/types/masterteam-components.d.ts +2 -0
|
@@ -12,40 +12,45 @@ declare class UploadField implements ControlValueAccessor {
|
|
|
12
12
|
readonly size: _angular_core.InputSignal<"normal" | "large" | "xlarge" | undefined>;
|
|
13
13
|
readonly userImgClass: _angular_core.InputSignal<string | undefined>;
|
|
14
14
|
readonly shape: _angular_core.InputSignal<"circle" | "field" | "card">;
|
|
15
|
+
readonly multiple: _angular_core.InputSignal<boolean>;
|
|
15
16
|
readonly accept: _angular_core.InputSignal<string | undefined>;
|
|
16
17
|
readonly isDragging: _angular_core.ModelSignal<boolean>;
|
|
17
18
|
readonly fileSizeLimit: _angular_core.InputSignal<number | undefined>;
|
|
18
19
|
readonly: _angular_core.InputSignal<boolean>;
|
|
19
20
|
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
20
|
-
onChange: _angular_core.OutputEmitterRef<any>;
|
|
21
|
-
requiredValidator: typeof Validators.required;
|
|
22
|
-
value: _angular_core.WritableSignal<any>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
readonly onChange: _angular_core.OutputEmitterRef<any>;
|
|
22
|
+
readonly requiredValidator: typeof Validators.required;
|
|
23
|
+
readonly value: _angular_core.WritableSignal<any>;
|
|
24
|
+
readonly files: _angular_core.Signal<any[]>;
|
|
25
|
+
readonly primaryFile: _angular_core.Signal<any>;
|
|
26
|
+
readonly imgPath: _angular_core.Signal<string | undefined>;
|
|
27
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
28
|
+
readonly uploadProgress: _angular_core.WritableSignal<number>;
|
|
29
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
30
|
+
private readonly httpClient;
|
|
31
|
+
private readonly pendingUploads;
|
|
27
32
|
onTouched: () => void;
|
|
28
|
-
onModelChange: (value: any
|
|
29
|
-
ngControl: NgControl;
|
|
30
|
-
imgPath: _angular_core.Signal<string | undefined>;
|
|
33
|
+
onModelChange: (value: any) => void;
|
|
34
|
+
readonly ngControl: NgControl;
|
|
31
35
|
constructor();
|
|
32
36
|
writeValue(value: any): void;
|
|
33
|
-
private fetchMetadata;
|
|
34
37
|
registerOnChange(fn: any): void;
|
|
35
38
|
registerOnTouched(fn: any): void;
|
|
36
39
|
setDisabledState(disabled: boolean): void;
|
|
37
40
|
onAdd(item: any): void;
|
|
38
|
-
onDelete(): void;
|
|
39
|
-
onFileSelect(event:
|
|
40
|
-
|
|
41
|
+
onDelete(item?: any): void;
|
|
42
|
+
onFileSelect(event: Event): void;
|
|
43
|
+
prepareFiles(files: File[]): void;
|
|
41
44
|
uploadFile(file: File): void;
|
|
42
45
|
handleUploadDone(file: any): void;
|
|
43
46
|
downloadFile(value: any): void;
|
|
44
47
|
onDragOver(event: DragEvent): void;
|
|
45
48
|
onDragLeave(event: DragEvent): void;
|
|
46
49
|
onDrop(event: DragEvent): void;
|
|
50
|
+
protected resolveImgPath(value: any): string | undefined;
|
|
51
|
+
private fetchMetadata;
|
|
47
52
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UploadField, never>;
|
|
48
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UploadField, "mt-upload-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "endPoint": { "alias": "endPoint"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userImgClass": { "alias": "userImgClass"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "isDragging": { "alias": "isDragging"; "required": false; "isSignal": true; }; "fileSizeLimit": { "alias": "fileSizeLimit"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, { "isDragging": "isDraggingChange"; "onChange": "onChange"; }, never, never, true, never>;
|
|
53
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UploadField, "mt-upload-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "endPoint": { "alias": "endPoint"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userImgClass": { "alias": "userImgClass"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "isDragging": { "alias": "isDragging"; "required": false; "isSignal": true; }; "fileSizeLimit": { "alias": "fileSizeLimit"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, { "isDragging": "isDraggingChange"; "onChange": "onChange"; }, never, never, true, never>;
|
|
49
54
|
}
|
|
50
55
|
|
|
51
56
|
declare class SecureImagePipe implements PipeTransform, OnDestroy {
|
|
@@ -201,6 +201,7 @@ declare class UploadFileFieldConfig extends BaseFieldConfig {
|
|
|
201
201
|
endPoint?: string;
|
|
202
202
|
userImgClass?: string;
|
|
203
203
|
shape?: string;
|
|
204
|
+
multiple?: boolean;
|
|
204
205
|
accept?: string;
|
|
205
206
|
fileSizeLimit?: number | undefined;
|
|
206
207
|
context: HttpContext | undefined;
|
|
@@ -211,6 +212,7 @@ declare class UploadFileFieldConfig extends BaseFieldConfig {
|
|
|
211
212
|
endPoint?: string;
|
|
212
213
|
userImgClass?: string;
|
|
213
214
|
shape?: string;
|
|
215
|
+
multiple?: boolean;
|
|
214
216
|
accept?: string;
|
|
215
217
|
fileSizeLimit?: number | undefined;
|
|
216
218
|
context?: HttpContext | undefined;
|