@kong/kongponents 9.33.2 → 9.33.3
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/kongponents.css +1 -1
- package/dist/kongponents.es.js +1696 -1741
- package/dist/kongponents.umd.js +14 -14
- package/dist/types/components/KTextArea/KTextArea.vue.d.ts +10 -141
- package/dist/types/types/text-area.d.ts +85 -5
- package/package.json +1 -1
|
@@ -1,144 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
overlayLabel: {
|
|
12
|
-
type: BooleanConstructor;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
labelAttributes: {
|
|
16
|
-
type: ObjectConstructor;
|
|
17
|
-
default: () => {};
|
|
18
|
-
};
|
|
19
|
-
characterLimit: {
|
|
20
|
-
type: (BooleanConstructor | NumberConstructor)[];
|
|
21
|
-
default: number;
|
|
22
|
-
validator: (limit: number | boolean) => boolean;
|
|
23
|
-
};
|
|
24
|
-
rows: {
|
|
25
|
-
type: NumberConstructor;
|
|
26
|
-
default: number;
|
|
27
|
-
};
|
|
28
|
-
error: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
resizable: {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
default: boolean;
|
|
35
|
-
};
|
|
36
|
-
autosize: {
|
|
37
|
-
type: BooleanConstructor;
|
|
38
|
-
default: boolean;
|
|
39
|
-
};
|
|
40
|
-
help: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated in favor of `resizable` prop
|
|
46
|
-
*/
|
|
47
|
-
isResizable: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: boolean;
|
|
50
|
-
validator: (value: boolean) => boolean;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated in favor of `error` prop
|
|
54
|
-
*/
|
|
55
|
-
hasError: {
|
|
56
|
-
type: BooleanConstructor;
|
|
57
|
-
default: boolean;
|
|
58
|
-
validator: (value: boolean) => boolean;
|
|
59
|
-
};
|
|
60
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
61
|
-
input: (val: string) => any;
|
|
62
|
-
"update:modelValue": (val: string) => any;
|
|
63
|
-
"char-limit-exceeded": (data: TextAreaLimitExceed) => any;
|
|
64
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
-
modelValue: {
|
|
66
|
-
type: StringConstructor;
|
|
67
|
-
default: string;
|
|
68
|
-
};
|
|
69
|
-
label: {
|
|
70
|
-
type: StringConstructor;
|
|
71
|
-
default: string;
|
|
72
|
-
};
|
|
73
|
-
overlayLabel: {
|
|
74
|
-
type: BooleanConstructor;
|
|
75
|
-
default: boolean;
|
|
76
|
-
};
|
|
77
|
-
labelAttributes: {
|
|
78
|
-
type: ObjectConstructor;
|
|
79
|
-
default: () => {};
|
|
80
|
-
};
|
|
81
|
-
characterLimit: {
|
|
82
|
-
type: (BooleanConstructor | NumberConstructor)[];
|
|
83
|
-
default: number;
|
|
84
|
-
validator: (limit: number | boolean) => boolean;
|
|
85
|
-
};
|
|
86
|
-
rows: {
|
|
87
|
-
type: NumberConstructor;
|
|
88
|
-
default: number;
|
|
89
|
-
};
|
|
90
|
-
error: {
|
|
91
|
-
type: BooleanConstructor;
|
|
92
|
-
default: boolean;
|
|
93
|
-
};
|
|
94
|
-
resizable: {
|
|
95
|
-
type: BooleanConstructor;
|
|
96
|
-
default: boolean;
|
|
97
|
-
};
|
|
98
|
-
autosize: {
|
|
99
|
-
type: BooleanConstructor;
|
|
100
|
-
default: boolean;
|
|
101
|
-
};
|
|
102
|
-
help: {
|
|
103
|
-
type: StringConstructor;
|
|
104
|
-
default: string;
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* @deprecated in favor of `resizable` prop
|
|
108
|
-
*/
|
|
109
|
-
isResizable: {
|
|
110
|
-
type: BooleanConstructor;
|
|
111
|
-
default: boolean;
|
|
112
|
-
validator: (value: boolean) => boolean;
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* @deprecated in favor of `error` prop
|
|
116
|
-
*/
|
|
117
|
-
hasError: {
|
|
118
|
-
type: BooleanConstructor;
|
|
119
|
-
default: boolean;
|
|
120
|
-
validator: (value: boolean) => boolean;
|
|
121
|
-
};
|
|
122
|
-
}>> & Readonly<{
|
|
123
|
-
onInput?: ((val: string) => any) | undefined;
|
|
124
|
-
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
125
|
-
"onChar-limit-exceeded"?: ((data: TextAreaLimitExceed) => any) | undefined;
|
|
126
|
-
}>, {
|
|
127
|
-
label: string;
|
|
128
|
-
error: boolean;
|
|
129
|
-
help: string;
|
|
130
|
-
rows: number;
|
|
131
|
-
modelValue: string;
|
|
132
|
-
labelAttributes: Record<string, any>;
|
|
133
|
-
characterLimit: number | boolean;
|
|
134
|
-
hasError: boolean;
|
|
135
|
-
resizable: boolean;
|
|
136
|
-
overlayLabel: boolean;
|
|
137
|
-
autosize: boolean;
|
|
138
|
-
isResizable: boolean;
|
|
139
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
140
|
-
'label-tooltip'?: (props: {}) => any;
|
|
141
|
-
}>;
|
|
1
|
+
import type { TextAreaProps, TextAreaSlots } from '../../../types';
|
|
2
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<TextAreaProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
input: (value: string) => any;
|
|
4
|
+
"update:modelValue": (value: string) => any;
|
|
5
|
+
"char-limit-exceeded": (data: import("../../../types").LimitExceededData) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<TextAreaProps> & Readonly<{
|
|
7
|
+
onInput?: ((value: string) => any) | undefined;
|
|
8
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
|
+
"onChar-limit-exceeded"?: ((data: import("../../../types").LimitExceededData) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TextAreaSlots>;
|
|
142
11
|
export default _default;
|
|
143
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
144
13
|
new (): {
|
|
@@ -1,6 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { LimitExceededData } from './input';
|
|
2
|
+
import type { LabelAttributes } from './label';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `LimitExceededData` instead.
|
|
5
|
+
*/
|
|
6
|
+
export type TextAreaLimitExceed = LimitExceededData;
|
|
7
|
+
export interface TextAreaProps {
|
|
8
|
+
/**
|
|
9
|
+
* To set the value of the textarea without using `v-model`.
|
|
10
|
+
* @default ''
|
|
11
|
+
*/
|
|
12
|
+
modelValue?: string;
|
|
13
|
+
/**
|
|
14
|
+
* String to be used as the textarea label.
|
|
15
|
+
* @default ''
|
|
16
|
+
*/
|
|
17
|
+
label?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Use the `labelAttributes` prop to configure the KLabel's props when using the `label` prop.
|
|
20
|
+
* @default {}
|
|
21
|
+
*/
|
|
22
|
+
labelAttributes?: LabelAttributes;
|
|
23
|
+
/**
|
|
24
|
+
* Use this prop to specify a character limit for the input.
|
|
25
|
+
* See the @char-limit-exceeded event for more details.
|
|
26
|
+
* @default 2048
|
|
27
|
+
*/
|
|
28
|
+
characterLimit?: false | number;
|
|
29
|
+
/**
|
|
30
|
+
* `rows` can be used to specify height of the textarea.
|
|
31
|
+
* @default 5
|
|
32
|
+
*/
|
|
33
|
+
rows?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Boolean to indicate whether the element is in an error state and should apply error styling.
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
error?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to allow vertically resizing using the drag handle in the right-hand corner of the textarea.
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
resizable?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether to automatically adjust the height of the textarea based on its content.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
autosize?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* String to be displayed as help text.
|
|
51
|
+
* @default ''
|
|
52
|
+
*/
|
|
53
|
+
help?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Whether to allow vertically resizing using the drag handle in the right-hand corner of the textarea.
|
|
56
|
+
* @default false
|
|
57
|
+
* @deprecated Use `resizable` instead.
|
|
58
|
+
*/
|
|
59
|
+
isResizable?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Boolean to indicate whether the element is in an error state and should apply error styling.
|
|
62
|
+
* @default false
|
|
63
|
+
* @deprecated Use `error` instead.
|
|
64
|
+
*/
|
|
65
|
+
hasError?: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface TextAreaEmits {
|
|
68
|
+
/**
|
|
69
|
+
* Triggered when the value of the textarea changes.
|
|
70
|
+
*/
|
|
71
|
+
input: [value: string];
|
|
72
|
+
/**
|
|
73
|
+
* Triggered when the value of the textarea changes.
|
|
74
|
+
*/
|
|
75
|
+
'update:modelValue': [value: string];
|
|
76
|
+
/**
|
|
77
|
+
* Triggers when the text starts or stops exceeding the limit, returns an object @LimitExceededData.
|
|
78
|
+
*/
|
|
79
|
+
'char-limit-exceeded': [data: LimitExceededData];
|
|
80
|
+
}
|
|
81
|
+
export interface TextAreaSlots {
|
|
82
|
+
/**
|
|
83
|
+
* Slot for tooltip content if textarea has a label and label has tooltip.
|
|
84
|
+
*/
|
|
85
|
+
'label-tooltip'?: () => any;
|
|
6
86
|
}
|