@anguless/angulux 22.3.0 → 22.4.0
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/README.md +8 -6
- package/fesm2022/anguless-angulux-baseeditableholder.mjs +42 -3
- package/fesm2022/anguless-angulux-baseeditableholder.mjs.map +1 -1
- package/fesm2022/anguless-angulux-baseinput.mjs +38 -9
- package/fesm2022/anguless-angulux-baseinput.mjs.map +1 -1
- package/fesm2022/anguless-angulux-checkbox.mjs +7 -5
- package/fesm2022/anguless-angulux-checkbox.mjs.map +1 -1
- package/fesm2022/anguless-angulux-colorpicker.mjs +2 -0
- package/fesm2022/anguless-angulux-colorpicker.mjs.map +1 -1
- package/fesm2022/anguless-angulux-datepicker.mjs +33 -19
- package/fesm2022/anguless-angulux-datepicker.mjs.map +1 -1
- package/fesm2022/anguless-angulux-inputnumber.mjs +14 -14
- package/fesm2022/anguless-angulux-inputnumber.mjs.map +1 -1
- package/fesm2022/anguless-angulux-inputtext.mjs +36 -6
- package/fesm2022/anguless-angulux-inputtext.mjs.map +1 -1
- package/fesm2022/anguless-angulux-multiselect.mjs +8 -6
- package/fesm2022/anguless-angulux-multiselect.mjs.map +1 -1
- package/fesm2022/anguless-angulux-password.mjs +9 -8
- package/fesm2022/anguless-angulux-password.mjs.map +1 -1
- package/fesm2022/anguless-angulux-radiobutton.mjs +7 -5
- package/fesm2022/anguless-angulux-radiobutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-select.mjs +7 -3
- package/fesm2022/anguless-angulux-select.mjs.map +1 -1
- package/fesm2022/anguless-angulux-selectbutton.mjs +4 -3
- package/fesm2022/anguless-angulux-selectbutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-table.mjs +19 -5
- package/fesm2022/anguless-angulux-table.mjs.map +1 -1
- package/fesm2022/anguless-angulux-textarea.mjs +41 -10
- package/fesm2022/anguless-angulux-textarea.mjs.map +1 -1
- package/fesm2022/anguless-angulux-togglebutton.mjs +4 -3
- package/fesm2022/anguless-angulux-togglebutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-toggleswitch.mjs +5 -3
- package/fesm2022/anguless-angulux-toggleswitch.mjs.map +1 -1
- package/fesm2022/anguless-angulux-treetable.mjs +7 -7
- package/fesm2022/anguless-angulux-treetable.mjs.map +1 -1
- package/package.json +1 -1
- package/types/anguless-angulux-baseeditableholder.d.ts +21 -1
- package/types/anguless-angulux-baseinput.d.ts +9 -6
- package/types/anguless-angulux-inputtext.d.ts +18 -1
- package/types/anguless-angulux-textarea.d.ts +31 -14
package/package.json
CHANGED
|
@@ -15,6 +15,21 @@ declare class BaseEditableHolder<PT = any> extends BaseModelHolder<PT> implement
|
|
|
15
15
|
* @group Props
|
|
16
16
|
*/
|
|
17
17
|
invalid: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the user has visited the control. Once this or `dirty` is set, the invalid state
|
|
20
|
+
* style waits for interaction: it appears when the control is touched or dirty. Signal Forms'
|
|
21
|
+
* `[formField]` sets both, so an untouched required field is not shown as invalid. Leave both
|
|
22
|
+
* unset and `invalid` alone decides.
|
|
23
|
+
* @defaultValue undefined
|
|
24
|
+
* @group Props
|
|
25
|
+
*/
|
|
26
|
+
touched: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the user has changed the value. See `touched`.
|
|
29
|
+
* @defaultValue undefined
|
|
30
|
+
* @group Props
|
|
31
|
+
*/
|
|
32
|
+
dirty: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
18
33
|
/**
|
|
19
34
|
* When present, it specifies that the component should have disabled state style.
|
|
20
35
|
* @defaultValue false
|
|
@@ -29,6 +44,11 @@ declare class BaseEditableHolder<PT = any> extends BaseModelHolder<PT> implement
|
|
|
29
44
|
name: _angular_core.InputSignal<string | undefined>;
|
|
30
45
|
_disabled: _angular_core.WritableSignal<boolean>;
|
|
31
46
|
$disabled: _angular_core.Signal<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the invalid state is shown: `invalid`, held back until the control is touched or
|
|
49
|
+
* dirty when the form layer reports either. The style and `aria-invalid` both read this.
|
|
50
|
+
*/
|
|
51
|
+
$invalid: _angular_core.Signal<boolean>;
|
|
32
52
|
onModelChange: Function;
|
|
33
53
|
onModelTouched: Function;
|
|
34
54
|
writeDisabledState(value: boolean): void;
|
|
@@ -39,7 +59,7 @@ declare class BaseEditableHolder<PT = any> extends BaseModelHolder<PT> implement
|
|
|
39
59
|
registerOnTouched(fn: Function): void;
|
|
40
60
|
setDisabledState(val: boolean): void;
|
|
41
61
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseEditableHolder<any>, never>;
|
|
42
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseEditableHolder<any>, never, never, { "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
62
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseEditableHolder<any>, never, never, { "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
43
63
|
}
|
|
44
64
|
|
|
45
65
|
export { BaseEditableHolder };
|
|
@@ -29,23 +29,26 @@ declare class BaseInput<PT = any> extends BaseEditableHolder<PT> {
|
|
|
29
29
|
*/
|
|
30
30
|
inputSize: _angular_core.InputSignal<number | null | undefined>;
|
|
31
31
|
/**
|
|
32
|
-
* Specifies the value must match the pattern.
|
|
32
|
+
* Specifies the value must match the pattern. A list of regular expressions — what Signal
|
|
33
|
+
* Forms binds through `[formField]` — is ignored, because the form validates those itself.
|
|
33
34
|
* @defaultValue undefined
|
|
34
35
|
* @group Props
|
|
35
36
|
*/
|
|
36
|
-
pattern: _angular_core.
|
|
37
|
+
pattern: _angular_core.InputSignalWithTransform<string | null | undefined, string | readonly RegExp[] | null | undefined>;
|
|
37
38
|
/**
|
|
38
|
-
* The value must be greater than or equal to the value.
|
|
39
|
+
* The value must be greater than or equal to the value. A numeric string is read as a number;
|
|
40
|
+
* anything else that is not a finite number, such as the `Date` limit of a date field, is ignored.
|
|
39
41
|
* @defaultValue undefined
|
|
40
42
|
* @group Props
|
|
41
43
|
*/
|
|
42
|
-
min: _angular_core.
|
|
44
|
+
min: _angular_core.InputSignalWithTransform<number | null | undefined, unknown>;
|
|
43
45
|
/**
|
|
44
|
-
* The value must be less than or equal to the value.
|
|
46
|
+
* The value must be less than or equal to the value. A numeric string is read as a number;
|
|
47
|
+
* anything else that is not a finite number, such as the `Date` limit of a date field, is ignored.
|
|
45
48
|
* @defaultValue undefined
|
|
46
49
|
* @group Props
|
|
47
50
|
*/
|
|
48
|
-
max: _angular_core.
|
|
51
|
+
max: _angular_core.InputSignalWithTransform<number | null | undefined, unknown>;
|
|
49
52
|
/**
|
|
50
53
|
* Unless the step is set to the any literal, the value must be min + an integral multiple of the step.
|
|
51
54
|
* @defaultValue undefined
|
|
@@ -94,7 +94,24 @@ declare class InputText extends BaseModelHolder<InputTextPassThrough> {
|
|
|
94
94
|
* @group Props
|
|
95
95
|
*/
|
|
96
96
|
invalid: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
97
|
+
/**
|
|
98
|
+
* Whether the user has visited the field. Once this or `dirty` is set, the invalid state
|
|
99
|
+
* style waits for interaction: it appears when the field is touched or dirty. Signal Forms'
|
|
100
|
+
* `[formField]` sets both, so an untouched required field is not shown as invalid. Leave both
|
|
101
|
+
* unset and `invalid` alone decides.
|
|
102
|
+
* @defaultValue undefined
|
|
103
|
+
* @group Props
|
|
104
|
+
*/
|
|
105
|
+
touched: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the user has changed the value. See `touched`.
|
|
108
|
+
* @defaultValue undefined
|
|
109
|
+
* @group Props
|
|
110
|
+
*/
|
|
111
|
+
dirty: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
97
112
|
$variant: _angular_core.Signal<"filled" | "outlined" | null>;
|
|
113
|
+
/** Whether the invalid state is shown — the same rule as `BaseEditableHolder.$invalid`. */
|
|
114
|
+
$invalid: _angular_core.Signal<boolean>;
|
|
98
115
|
_componentStyle: InputTextStyle;
|
|
99
116
|
constructor();
|
|
100
117
|
onAfterViewInit(): void;
|
|
@@ -104,7 +121,7 @@ declare class InputText extends BaseModelHolder<InputTextPassThrough> {
|
|
|
104
121
|
get hasFluid(): boolean;
|
|
105
122
|
get dataP(): string | undefined;
|
|
106
123
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputText, never>;
|
|
107
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<InputText, "[aglInputText]", never, { "hostName": { "alias": "hostName"; "required": false; }; "ptInputText": { "alias": "ptInputText"; "required": false; "isSignal": true; }; "pInputTextPT": { "alias": "pInputTextPT"; "required": false; "isSignal": true; }; "pInputTextUnstyled": { "alias": "pInputTextUnstyled"; "required": false; "isSignal": true; }; "aglSize": { "alias": "aglSize"; "required": false; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.Bind; inputs: {}; outputs: {}; }]>;
|
|
124
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<InputText, "[aglInputText]", never, { "hostName": { "alias": "hostName"; "required": false; }; "ptInputText": { "alias": "ptInputText"; "required": false; "isSignal": true; }; "pInputTextPT": { "alias": "pInputTextPT"; "required": false; "isSignal": true; }; "pInputTextUnstyled": { "alias": "pInputTextUnstyled"; "required": false; "isSignal": true; }; "aglSize": { "alias": "aglSize"; "required": false; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.Bind; inputs: {}; outputs: {}; }]>;
|
|
108
125
|
}
|
|
109
126
|
declare class InputTextModule {
|
|
110
127
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputTextModule, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { EventEmitter } from '@angular/core';
|
|
3
3
|
import { NgControl } from '@angular/forms';
|
|
4
4
|
import { BaseModelHolder } from '@anguless/angulux/basemodelholder';
|
|
@@ -38,8 +38,8 @@ declare class TextareaStyle extends BaseStyle {
|
|
|
38
38
|
'p-invalid': any;
|
|
39
39
|
})[];
|
|
40
40
|
};
|
|
41
|
-
static ɵfac:
|
|
42
|
-
static ɵprov:
|
|
41
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextareaStyle, never>;
|
|
42
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TextareaStyle>;
|
|
43
43
|
}
|
|
44
44
|
interface TextareaStyle extends BaseStyle {
|
|
45
45
|
}
|
|
@@ -57,13 +57,13 @@ declare class Textarea extends BaseModelHolder<TextareaPassThrough> {
|
|
|
57
57
|
* @defaultValue undefined
|
|
58
58
|
* @group Props
|
|
59
59
|
*/
|
|
60
|
-
pTextareaPT:
|
|
60
|
+
pTextareaPT: _angular_core.InputSignal<TextareaPassThrough>;
|
|
61
61
|
/**
|
|
62
62
|
* Indicates whether the component should be rendered without styles.
|
|
63
63
|
* @defaultValue undefined
|
|
64
64
|
* @group Props
|
|
65
65
|
*/
|
|
66
|
-
pTextareaUnstyled:
|
|
66
|
+
pTextareaUnstyled: _angular_core.InputSignal<boolean | undefined>;
|
|
67
67
|
/**
|
|
68
68
|
* When present, textarea size changes as being typed.
|
|
69
69
|
* @group Props
|
|
@@ -79,20 +79,37 @@ declare class Textarea extends BaseModelHolder<TextareaPassThrough> {
|
|
|
79
79
|
* @defaultValue undefined
|
|
80
80
|
* @group Props
|
|
81
81
|
*/
|
|
82
|
-
variant:
|
|
82
|
+
variant: _angular_core.InputSignal<"filled" | "outlined" | undefined>;
|
|
83
83
|
/**
|
|
84
84
|
* Spans 100% width of the container when enabled.
|
|
85
85
|
* @defaultValue undefined
|
|
86
86
|
* @group Props
|
|
87
87
|
*/
|
|
88
|
-
fluid:
|
|
88
|
+
fluid: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
89
89
|
/**
|
|
90
90
|
* When present, it specifies that the component should have invalid state style.
|
|
91
91
|
* @defaultValue false
|
|
92
92
|
* @group Props
|
|
93
93
|
*/
|
|
94
|
-
invalid:
|
|
95
|
-
|
|
94
|
+
invalid: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the user has visited the field. Once this or `dirty` is set, the invalid state
|
|
97
|
+
* style waits for interaction: it appears when the field is touched or dirty. Signal Forms'
|
|
98
|
+
* `[formField]` sets both, so an untouched required field is not shown as invalid. Leave both
|
|
99
|
+
* unset and `invalid` alone decides.
|
|
100
|
+
* @defaultValue undefined
|
|
101
|
+
* @group Props
|
|
102
|
+
*/
|
|
103
|
+
touched: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the user has changed the value. See `touched`.
|
|
106
|
+
* @defaultValue undefined
|
|
107
|
+
* @group Props
|
|
108
|
+
*/
|
|
109
|
+
dirty: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
110
|
+
$variant: _angular_core.Signal<"filled" | "outlined" | null>;
|
|
111
|
+
/** Whether the invalid state is shown — the same rule as `BaseEditableHolder.$invalid`. */
|
|
112
|
+
$invalid: _angular_core.Signal<boolean>;
|
|
96
113
|
/**
|
|
97
114
|
* Callback to invoke on textarea resize.
|
|
98
115
|
* @param {(Event | {})} event - Custom resize event.
|
|
@@ -112,14 +129,14 @@ declare class Textarea extends BaseModelHolder<TextareaPassThrough> {
|
|
|
112
129
|
resize(event?: Event): void;
|
|
113
130
|
updateState(): void;
|
|
114
131
|
onDestroy(): void;
|
|
115
|
-
static ɵfac:
|
|
116
|
-
static ɵdir:
|
|
132
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Textarea, never>;
|
|
133
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Textarea, "[aglTextarea], [aglInputTextarea]", never, { "pTextareaPT": { "alias": "pTextareaPT"; "required": false; "isSignal": true; }; "pTextareaUnstyled": { "alias": "pTextareaUnstyled"; "required": false; "isSignal": true; }; "autoResize": { "alias": "autoResize"; "required": false; }; "aglSize": { "alias": "aglSize"; "required": false; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; }, { "onResize": "onResize"; }, never, never, true, [{ directive: typeof i1.Bind; inputs: {}; outputs: {}; }]>;
|
|
117
134
|
static ngAcceptInputType_autoResize: unknown;
|
|
118
135
|
}
|
|
119
136
|
declare class TextareaModule {
|
|
120
|
-
static ɵfac:
|
|
121
|
-
static ɵmod:
|
|
122
|
-
static ɵinj:
|
|
137
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextareaModule, never>;
|
|
138
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<TextareaModule, never, [typeof Textarea], [typeof Textarea]>;
|
|
139
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<TextareaModule>;
|
|
123
140
|
}
|
|
124
141
|
|
|
125
142
|
export { Textarea, TextareaClasses, TextareaModule, TextareaStyle };
|