tsv2-library 0.3.21 → 0.3.23
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/dist/node_modules/picocolors/types.d.ts +29 -0
- package/dist/src/components/v2/InputBadge/InputBadge.vue.d.ts +6 -0
- package/dist/src/components/v2/Textarea/Textarea.vue.d.ts +18 -0
- package/dist/style.css +1 -1
- package/dist/tsv2-library.es.js +22889 -19317
- package/package.json +3 -1
- package/src/components/v2/InputBadge/InputBadge.vue.d.ts +6 -0
- package/src/components/v2/Textarea/Textarea.vue.d.ts +18 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type Formatter = (input: string | number | null | undefined) => string;
|
|
2
|
+
export interface Colors {
|
|
3
|
+
isColorSupported: boolean;
|
|
4
|
+
reset: Formatter;
|
|
5
|
+
bold: Formatter;
|
|
6
|
+
dim: Formatter;
|
|
7
|
+
italic: Formatter;
|
|
8
|
+
underline: Formatter;
|
|
9
|
+
inverse: Formatter;
|
|
10
|
+
hidden: Formatter;
|
|
11
|
+
strikethrough: Formatter;
|
|
12
|
+
black: Formatter;
|
|
13
|
+
red: Formatter;
|
|
14
|
+
green: Formatter;
|
|
15
|
+
yellow: Formatter;
|
|
16
|
+
blue: Formatter;
|
|
17
|
+
magenta: Formatter;
|
|
18
|
+
cyan: Formatter;
|
|
19
|
+
white: Formatter;
|
|
20
|
+
gray: Formatter;
|
|
21
|
+
bgBlack: Formatter;
|
|
22
|
+
bgRed: Formatter;
|
|
23
|
+
bgGreen: Formatter;
|
|
24
|
+
bgYellow: Formatter;
|
|
25
|
+
bgBlue: Formatter;
|
|
26
|
+
bgMagenta: Formatter;
|
|
27
|
+
bgCyan: Formatter;
|
|
28
|
+
bgWhite: Formatter;
|
|
29
|
+
}
|
|
@@ -4,6 +4,12 @@ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
|
4
4
|
* InputBadge component props
|
|
5
5
|
*/
|
|
6
6
|
export interface InputBadgeProps {
|
|
7
|
+
/**
|
|
8
|
+
* The type of input, wether input text or input email
|
|
9
|
+
*
|
|
10
|
+
* @default text
|
|
11
|
+
*/
|
|
12
|
+
type?: 'text' | 'email';
|
|
7
13
|
/**
|
|
8
14
|
* The model value. Used for input without validation.
|
|
9
15
|
*/
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
ClassComponent,
|
|
13
13
|
GlobalComponentConstructor,
|
|
14
14
|
Nullable,
|
|
15
|
+
PassThrough,
|
|
15
16
|
} from 'v2/ts-helpers';
|
|
16
17
|
import { InputTextProps } from '../InputText/InputText.vue.d';
|
|
17
18
|
|
|
@@ -33,6 +34,22 @@ export interface TextareaContext {
|
|
|
33
34
|
|
|
34
35
|
export type Condition = 'empty' | 'exceed';
|
|
35
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Custom passthrough(pt) options.
|
|
39
|
+
* @see {@link TextareaProps.pt}
|
|
40
|
+
*/
|
|
41
|
+
export interface TextareaPassThroughOptions {
|
|
42
|
+
/**
|
|
43
|
+
* Used to pass attributes to the root's DOM element.
|
|
44
|
+
*/
|
|
45
|
+
root?: TextareaPassThroughOptionType;
|
|
46
|
+
/**
|
|
47
|
+
* Used to manage all lifecycle hooks.
|
|
48
|
+
* @see {@link BaseComponent.ComponentHooks}
|
|
49
|
+
*/
|
|
50
|
+
hooks?: ComponentHooks;
|
|
51
|
+
}
|
|
52
|
+
|
|
36
53
|
export type CustomValidation = Partial<Record<Condition, string>>;
|
|
37
54
|
/**
|
|
38
55
|
* Defines valid properties in Textarea component. In addition to these, all properties of TextareaHTMLAttributes can be used in this component.
|
|
@@ -100,6 +117,7 @@ export interface TextareaProps
|
|
|
100
117
|
* The input label. Tell the user what input is this.
|
|
101
118
|
*/
|
|
102
119
|
label?: string;
|
|
120
|
+
textareaPt?: PassThrough<TextareaPassThroughOptions>;
|
|
103
121
|
}
|
|
104
122
|
|
|
105
123
|
/**
|