@masterteam/components 0.0.34 → 0.0.36
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/dialog/index.d.ts +1 -1
- package/fesm2022/masterteam-components-button.mjs +3 -3
- package/fesm2022/masterteam-components-button.mjs.map +1 -1
- package/fesm2022/masterteam-components-color-picker-field.mjs +1 -1
- package/fesm2022/masterteam-components-color-picker-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-dialog.mjs.map +1 -1
- package/fesm2022/masterteam-components-field-validation.mjs +3 -0
- package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula-builder.mjs +1 -1
- package/fesm2022/masterteam-components-formula-builder.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +56 -9
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-text-field.mjs +45 -12
- package/fesm2022/masterteam-components-text-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-tooltip.mjs +5 -5
- package/fesm2022/masterteam-components-tooltip.mjs.map +1 -1
- package/fesm2022/masterteam-components-upload-field.mjs +330 -0
- package/fesm2022/masterteam-components-upload-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-user-search-field.mjs +6 -7
- package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +16 -1
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/index.d.ts +15 -1
- package/package.json +34 -30
- package/table/index.d.ts +23 -6
- package/text-field/index.d.ts +6 -3
- package/tooltip/index.d.ts +1 -1
- package/upload-field/index.d.ts +43 -0
package/text-field/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, Validators, NgControl } from '@angular/forms';
|
|
4
|
-
import { KeyFilterPattern } from 'primeng/keyfilter';
|
|
5
4
|
import { isInvalid } from '@masterteam/components';
|
|
5
|
+
import { MTIcon } from '@masterteam/icons';
|
|
6
6
|
|
|
7
7
|
declare class TextField implements ControlValueAccessor, OnInit, OnChanges {
|
|
8
|
+
private dir;
|
|
8
9
|
inputText: HTMLInputElement;
|
|
9
10
|
readonly field: _angular_core.InputSignal<boolean>;
|
|
10
11
|
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
@@ -14,12 +15,14 @@ declare class TextField implements ControlValueAccessor, OnInit, OnChanges {
|
|
|
14
15
|
readonly type: _angular_core.InputSignal<string>;
|
|
15
16
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
16
17
|
readonly pInputs: _angular_core.InputSignal<Partial<HTMLInputElement> | undefined>;
|
|
17
|
-
readonly pKeyFilter: _angular_core.InputSignal<RegExp | KeyFilterPattern | undefined>;
|
|
18
18
|
readonly required: _angular_core.InputSignal<boolean>;
|
|
19
|
+
readonly icon: _angular_core.InputSignal<MTIcon | undefined>;
|
|
20
|
+
readonly iconPosition: _angular_core.InputSignal<"start" | "end">;
|
|
19
21
|
styleClass: string;
|
|
20
22
|
requiredValidator: typeof Validators.required;
|
|
21
23
|
value: _angular_core.WritableSignal<string | null>;
|
|
22
24
|
disabled: _angular_core.WritableSignal<boolean>;
|
|
25
|
+
iconPos: _angular_core.Signal<"right" | "left">;
|
|
23
26
|
alphaNum: RegExp;
|
|
24
27
|
onTouched: () => void;
|
|
25
28
|
onModelChange: (value: any) => void;
|
|
@@ -35,7 +38,7 @@ declare class TextField implements ControlValueAccessor, OnInit, OnChanges {
|
|
|
35
38
|
registerOnTouched(fn: any): void;
|
|
36
39
|
setDisabledState(disabled: boolean): void;
|
|
37
40
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextField, never>;
|
|
38
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextField, "mt-text-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "
|
|
41
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextField, "mt-text-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
export { TextField };
|
package/tooltip/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as i1 from 'primeng/tooltip';
|
|
|
3
3
|
|
|
4
4
|
declare class Tooltip {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tooltip, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Tooltip, "[mtTooltip]", never, {}, {}, never, never, true, [{ directive: typeof i1.Tooltip; inputs: { "pTooltip": "mtTooltip"; "tooltipPosition": "
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Tooltip, "[mtTooltip]", never, {}, {}, never, never, true, [{ directive: typeof i1.Tooltip; inputs: { "pTooltip": "mtTooltip"; "tooltipPosition": "tooltipPosition"; "tooltipEvent": "tooltipEvent"; "appendTo": "appendTo"; "tooltipStyleClass": "tooltipStyleClass"; "escape": "escape"; "showDelay": "showDelay"; "hideDelay": "hideDelay"; "life": "life"; "positionTop": "positionTop"; "positionLeft": "positionLeft"; "autoHide": "autoHide"; "fitContent": "fitContent"; "hideOnEscape": "hideOnEscape"; "tooltipDisabled": "tooltipDisabled"; }; outputs: {}; }]>;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export { Tooltip };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, Validators, NgControl } from '@angular/forms';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
|
|
5
|
+
declare class UploadField implements ControlValueAccessor {
|
|
6
|
+
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
7
|
+
readonly endPoint: _angular_core.InputSignal<string>;
|
|
8
|
+
readonly size: _angular_core.InputSignal<string>;
|
|
9
|
+
readonly isUserField: _angular_core.InputSignal<boolean>;
|
|
10
|
+
readonly accept: _angular_core.InputSignal<string | undefined>;
|
|
11
|
+
readonly isDragging: _angular_core.ModelSignal<boolean>;
|
|
12
|
+
readonly fileSizeLimit: _angular_core.InputSignal<number | undefined>;
|
|
13
|
+
onChange: _angular_core.OutputEmitterRef<any>;
|
|
14
|
+
requiredValidator: typeof Validators.required;
|
|
15
|
+
value: _angular_core.WritableSignal<any>;
|
|
16
|
+
disabled: _angular_core.WritableSignal<boolean>;
|
|
17
|
+
uploadProgress: _angular_core.WritableSignal<number>;
|
|
18
|
+
httpClient: HttpClient;
|
|
19
|
+
loading: _angular_core.WritableSignal<boolean>;
|
|
20
|
+
onTouched: () => void;
|
|
21
|
+
onModelChange: (value: any[]) => void;
|
|
22
|
+
ngControl: NgControl;
|
|
23
|
+
imgPath: _angular_core.Signal<string | undefined>;
|
|
24
|
+
constructor();
|
|
25
|
+
writeValue(value: any[]): void;
|
|
26
|
+
registerOnChange(fn: any): void;
|
|
27
|
+
registerOnTouched(fn: any): void;
|
|
28
|
+
setDisabledState(disabled: boolean): void;
|
|
29
|
+
onAdd(item: any): void;
|
|
30
|
+
onDelete(): void;
|
|
31
|
+
onFileSelect(event: any): void;
|
|
32
|
+
prepareImage(files: FileList): void;
|
|
33
|
+
uploadFile(file: File): void;
|
|
34
|
+
handleUploadDone(file: any): void;
|
|
35
|
+
downloadFile(value: any): void;
|
|
36
|
+
onDragOver(event: DragEvent): void;
|
|
37
|
+
onDragLeave(event: DragEvent): void;
|
|
38
|
+
onDrop(event: DragEvent): void;
|
|
39
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UploadField, never>;
|
|
40
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UploadField, "mt-upload-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "endPoint": { "alias": "endPoint"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "isUserField": { "alias": "isUserField"; "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; }; }, { "isDragging": "isDraggingChange"; "onChange": "onChange"; }, never, never, true, never>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { UploadField };
|