@net7/components 3.12.3 → 3.13.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/esm2020/lib/components/button/button.mjs +3 -1
- package/esm2020/lib/components/button/button.mock.mjs +3 -3
- package/esm2020/lib/components/input-checkbox/input-checkbox.mjs +3 -3
- package/esm2020/lib/components/input-select/input-select.mjs +3 -3
- package/esm2020/lib/components/input-text/input-text.mjs +3 -3
- package/esm2020/lib/components/input-text/input-text.mock.mjs +2 -1
- package/esm2020/lib/components/input-textarea/input-textarea.mjs +3 -3
- package/esm2020/lib/components/text-viewer/text-viewer.mjs +3 -3
- package/esm2020/lib/components/text-viewer/text-viewer.mock.mjs +16 -13
- package/esm2020/lib/shared-interfaces.mjs +1 -1
- package/fesm2015/net7-components.mjs +31 -25
- package/fesm2015/net7-components.mjs.map +1 -1
- package/fesm2020/net7-components.mjs +31 -25
- package/fesm2020/net7-components.mjs.map +1 -1
- package/lib/components/input-checkbox/input-checkbox.d.ts +4 -0
- package/lib/components/input-select/input-select.d.ts +4 -0
- package/lib/components/input-text/input-text.d.ts +19 -1
- package/lib/components/input-textarea/input-textarea.d.ts +39 -3
- package/lib/components/text-viewer/text-viewer.d.ts +2 -0
- package/lib/shared-interfaces.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OnOff } from '../../shared-interfaces';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Interface for InputTextData
|
|
@@ -24,7 +25,11 @@ export interface InputTextData {
|
|
|
24
25
|
*/
|
|
25
26
|
type?: 'text' | 'number';
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
+
* The name of the control.
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* A hint to the user of what can be entered in the control.
|
|
28
33
|
*/
|
|
29
34
|
placeholder?: string;
|
|
30
35
|
/**
|
|
@@ -63,6 +68,19 @@ export interface InputTextData {
|
|
|
63
68
|
* Input maximun allowed value (only for type=number)
|
|
64
69
|
*/
|
|
65
70
|
max?: number;
|
|
71
|
+
/**
|
|
72
|
+
* The maximum number of characters (UTF-16 code units) that the user can enter.
|
|
73
|
+
* If this value isn't specified, the user can enter an unlimited number of characters.
|
|
74
|
+
*/
|
|
75
|
+
maxlength?: number;
|
|
76
|
+
/**
|
|
77
|
+
* The minimum number of characters (UTF-16 code units) required that the user should enter.
|
|
78
|
+
*/
|
|
79
|
+
minlength?: number;
|
|
80
|
+
/** Indicates whether the value of the control can be automatically completed by the browser. */
|
|
81
|
+
autocomplete?: OnOff;
|
|
82
|
+
/** Specifies that the user must fill in a value before submitting a form. */
|
|
83
|
+
required?: boolean;
|
|
66
84
|
/**
|
|
67
85
|
* Additional HTML Classes
|
|
68
86
|
*/
|
|
@@ -1,16 +1,52 @@
|
|
|
1
|
+
import { OnOff } from '../../shared-interfaces';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare type InputTextareaData = {
|
|
3
4
|
/** Unique ID for the text input element */
|
|
4
5
|
id: string;
|
|
5
|
-
/**
|
|
6
|
+
/** A hint to the user of what can be entered in the control. */
|
|
6
7
|
placeholder?: string;
|
|
7
8
|
/** Default value of the textarea */
|
|
8
9
|
value?: string | number | null;
|
|
9
10
|
/** Label for the textarea */
|
|
10
11
|
label?: string;
|
|
11
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Indicates that the user cannot interact with the control.
|
|
14
|
+
* If this attribute is not specified, the control inherits its setting
|
|
15
|
+
* from the containing element.
|
|
16
|
+
*/
|
|
12
17
|
disabled?: boolean;
|
|
13
|
-
/**
|
|
18
|
+
/** Indicates whether the value of the control can be automatically completed by the browser. */
|
|
19
|
+
autocomplete?: OnOff;
|
|
20
|
+
/**
|
|
21
|
+
* Lets you specify that a form control should have input focus when the page loads.
|
|
22
|
+
* Only one form-associated element in a document can have this attribute specified.
|
|
23
|
+
*/
|
|
24
|
+
autofocus?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The maximum number of characters (UTF-16 code units) that the user can enter.
|
|
27
|
+
* If this value isn't specified, the user can enter an unlimited number of characters.
|
|
28
|
+
*/
|
|
29
|
+
maxlength?: number;
|
|
30
|
+
/**
|
|
31
|
+
* The minimum number of characters (UTF-16 code units) required that the user should enter.
|
|
32
|
+
*/
|
|
33
|
+
minlength?: number;
|
|
34
|
+
/** The name of the control. */
|
|
35
|
+
name?: string;
|
|
36
|
+
/** Specifies that the user must fill in a value before submitting a form. */
|
|
37
|
+
required?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The number of visible text lines for the control.
|
|
40
|
+
* If it is specified, it must be a positive integer.
|
|
41
|
+
* @defaultValue 2
|
|
42
|
+
*/
|
|
43
|
+
rows?: number;
|
|
44
|
+
/**
|
|
45
|
+
* The visible width of the text control, in average character widths.
|
|
46
|
+
* If it is specified, it must be a positive integer.
|
|
47
|
+
* @defaultValue 20
|
|
48
|
+
*/
|
|
49
|
+
cols?: number;
|
|
14
50
|
/** Payload that is sent when the user changes the value */
|
|
15
51
|
inputPayload?: any;
|
|
16
52
|
/** Payload that is sent when the user presses the "Enter" key */
|