@katlux/toolkit 0.1.0-beta.50 → 0.1.0-beta.52
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/module.json +1 -1
- package/dist/runtime/components/KButton/KButton.global.d.vue.ts +1 -1
- package/dist/runtime/components/KButton/KButton.global.vue.d.ts +1 -1
- package/dist/runtime/components/KButton/KButton.logic.d.ts +1 -1
- package/dist/runtime/components/KCheckbox/KCheckbox.global.d.vue.ts +21 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.global.vue +3 -1
- package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +21 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.logic.d.ts +11 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.logic.js +9 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +47 -6
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +9 -3
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +47 -6
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +25 -3
- package/dist/runtime/components/KCombobox/KCombobox.logic.js +61 -6
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +29 -9
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue +2 -21
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +29 -9
- package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +15 -4
- package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.js +16 -5
- package/dist/runtime/components/KDatatable/KDataIterator.global.d.vue.ts +1 -1
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +1 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +22 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +3 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +22 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +11 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +9 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +22 -1
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +3 -1
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +22 -1
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +11 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +9 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +21 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +3 -1
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +21 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.d.ts +12 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.js +9 -0
- package/dist/runtime/components/KLoader/KLoader.global.d.vue.ts +1 -1
- package/dist/runtime/components/KLoader/KLoader.global.vue.d.ts +1 -1
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +21 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +3 -1
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +21 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.d.ts +11 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.js +9 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.global.d.vue.ts +21 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.global.vue +3 -1
- package/dist/runtime/components/KRadiobox/KRadiobox.global.vue.d.ts +21 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.logic.d.ts +11 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.logic.js +9 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +21 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.vue +3 -1
- package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +21 -0
- package/dist/runtime/components/KTextarea/KTextarea.logic.d.ts +11 -0
- package/dist/runtime/components/KTextarea/KTextarea.logic.js +9 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +20 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.vue +3 -1
- package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +20 -0
- package/dist/runtime/components/KTextbox/KTextbox.logic.d.ts +11 -0
- package/dist/runtime/components/KTextbox/KTextbox.logic.js +9 -0
- package/dist/runtime/components/KToast/KToast.global.d.vue.ts +57 -0
- package/dist/runtime/components/KToast/KToast.global.vue +32 -0
- package/dist/runtime/components/KToast/KToast.global.vue.d.ts +57 -0
- package/dist/runtime/components/KToast/KToast.logic.d.ts +34 -0
- package/dist/runtime/components/KToast/KToast.logic.js +47 -0
- package/dist/runtime/components/KTree/KTree.global.d.vue.ts +1 -1
- package/dist/runtime/components/KTree/KTree.global.vue.d.ts +1 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +35 -6
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +8 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +35 -6
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +17 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +18 -1
- package/dist/runtime/presets/default/assets/scss/index.css +27 -0
- package/dist/runtime/presets/default/assets/scss/index.scss +30 -0
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue +10 -6
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +4 -2
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +25 -21
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +4 -2
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue +91 -79
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +13 -1
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue +12 -1
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue +4 -0
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KLoader/KLoader.vue +13 -2
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue +4 -0
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue +10 -6
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue +5 -1
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +7 -3
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KToast/KToast.d.vue.ts +17 -0
- package/dist/runtime/presets/default/components/KToast/KToast.vue +118 -0
- package/dist/runtime/presets/default/components/KToast/KToast.vue.d.ts +17 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.d.vue.ts +4 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +11 -1
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
1
2
|
export interface KHourPickerProps {
|
|
2
3
|
step?: number;
|
|
3
4
|
format?: string;
|
|
@@ -8,6 +9,8 @@ export interface KHourPickerProps {
|
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
isOpen?: boolean;
|
|
10
11
|
showClear?: boolean;
|
|
12
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
13
|
+
validationText?: string;
|
|
11
14
|
}
|
|
12
15
|
export declare const KHourPickerDefaultProps: {
|
|
13
16
|
step: {
|
|
@@ -46,6 +49,15 @@ export declare const KHourPickerDefaultProps: {
|
|
|
46
49
|
type: BooleanConstructor;
|
|
47
50
|
default: boolean;
|
|
48
51
|
};
|
|
52
|
+
validation: {
|
|
53
|
+
type: PropType<KHourPickerProps["validation"]>;
|
|
54
|
+
default: null;
|
|
55
|
+
validator: (value: string) => boolean;
|
|
56
|
+
};
|
|
57
|
+
validationText: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
49
61
|
};
|
|
50
62
|
export declare function useKHourPickerLogic(props: KHourPickerProps): {
|
|
51
63
|
isOpen: import("vue").Ref<boolean, boolean>;
|
|
@@ -36,6 +36,15 @@ export const KHourPickerDefaultProps = {
|
|
|
36
36
|
showClear: {
|
|
37
37
|
type: Boolean,
|
|
38
38
|
default: false
|
|
39
|
+
},
|
|
40
|
+
validation: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: null,
|
|
43
|
+
validator: (value) => [null, "success", "warning", "error"].includes(value)
|
|
44
|
+
},
|
|
45
|
+
validationText: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: ""
|
|
39
48
|
}
|
|
40
49
|
};
|
|
41
50
|
export function useKHourPickerLogic(props) {
|
|
@@ -25,7 +25,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
27
|
}>> & Readonly<{}>, {
|
|
28
|
-
size: "
|
|
28
|
+
size: "large" | "medium" | "small";
|
|
29
29
|
overlay: boolean;
|
|
30
30
|
loading: boolean;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -25,7 +25,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
27
|
}>> & Readonly<{}>, {
|
|
28
|
-
size: "
|
|
28
|
+
size: "large" | "medium" | "small";
|
|
29
29
|
overlay: boolean;
|
|
30
30
|
loading: boolean;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type KMaskTextboxProps } from './KMaskTextbox.logic.js';
|
|
1
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
3
|
modelValue: {
|
|
3
4
|
type: StringConstructor;
|
|
@@ -15,6 +16,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
15
16
|
type: StringConstructor;
|
|
16
17
|
required: boolean;
|
|
17
18
|
};
|
|
19
|
+
validation: {
|
|
20
|
+
type: import("vue").PropType<KMaskTextboxProps["validation"]>;
|
|
21
|
+
default: null;
|
|
22
|
+
validator: (value: string) => boolean;
|
|
23
|
+
};
|
|
24
|
+
validationText: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
18
28
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
29
|
"update:modelValue": (value: string) => any;
|
|
20
30
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -34,9 +44,20 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
34
44
|
type: StringConstructor;
|
|
35
45
|
required: boolean;
|
|
36
46
|
};
|
|
47
|
+
validation: {
|
|
48
|
+
type: import("vue").PropType<KMaskTextboxProps["validation"]>;
|
|
49
|
+
default: null;
|
|
50
|
+
validator: (value: string) => boolean;
|
|
51
|
+
};
|
|
52
|
+
validationText: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
37
56
|
}>> & Readonly<{
|
|
38
57
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
39
58
|
}>, {
|
|
59
|
+
validation: "error" | "success" | "warning" | null | undefined;
|
|
60
|
+
validationText: string;
|
|
40
61
|
modelValue: string;
|
|
41
62
|
placeholder: string;
|
|
42
63
|
showClear: boolean;
|
|
@@ -11,7 +11,9 @@ const templateProps = computed(() => ({
|
|
|
11
11
|
maskedValue: maskedValue.value,
|
|
12
12
|
placeholder: placeholder.value,
|
|
13
13
|
showClear: showClear.value,
|
|
14
|
-
mask: props.mask
|
|
14
|
+
mask: props.mask,
|
|
15
|
+
validation: props.validation,
|
|
16
|
+
validationText: props.validationText
|
|
15
17
|
}));
|
|
16
18
|
</script>
|
|
17
19
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type KMaskTextboxProps } from './KMaskTextbox.logic.js';
|
|
1
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
3
|
modelValue: {
|
|
3
4
|
type: StringConstructor;
|
|
@@ -15,6 +16,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
15
16
|
type: StringConstructor;
|
|
16
17
|
required: boolean;
|
|
17
18
|
};
|
|
19
|
+
validation: {
|
|
20
|
+
type: import("vue").PropType<KMaskTextboxProps["validation"]>;
|
|
21
|
+
default: null;
|
|
22
|
+
validator: (value: string) => boolean;
|
|
23
|
+
};
|
|
24
|
+
validationText: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
18
28
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
29
|
"update:modelValue": (value: string) => any;
|
|
20
30
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -34,9 +44,20 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
34
44
|
type: StringConstructor;
|
|
35
45
|
required: boolean;
|
|
36
46
|
};
|
|
47
|
+
validation: {
|
|
48
|
+
type: import("vue").PropType<KMaskTextboxProps["validation"]>;
|
|
49
|
+
default: null;
|
|
50
|
+
validator: (value: string) => boolean;
|
|
51
|
+
};
|
|
52
|
+
validationText: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
37
56
|
}>> & Readonly<{
|
|
38
57
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
39
58
|
}>, {
|
|
59
|
+
validation: "error" | "success" | "warning" | null | undefined;
|
|
60
|
+
validationText: string;
|
|
40
61
|
modelValue: string;
|
|
41
62
|
placeholder: string;
|
|
42
63
|
showClear: boolean;
|
|
@@ -3,6 +3,8 @@ export interface KMaskTextboxProps {
|
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
showClear?: boolean;
|
|
5
5
|
mask: string;
|
|
6
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
7
|
+
validationText?: string;
|
|
6
8
|
}
|
|
7
9
|
export interface KMaskTextboxEmits {
|
|
8
10
|
(e: 'update:modelValue', value: string): void;
|
|
@@ -24,6 +26,15 @@ export declare const KMaskTextboxDefaultProps: {
|
|
|
24
26
|
type: StringConstructor;
|
|
25
27
|
required: boolean;
|
|
26
28
|
};
|
|
29
|
+
validation: {
|
|
30
|
+
type: import("vue").PropType<KMaskTextboxProps["validation"]>;
|
|
31
|
+
default: null;
|
|
32
|
+
validator: (value: string) => boolean;
|
|
33
|
+
};
|
|
34
|
+
validationText: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
27
38
|
};
|
|
28
39
|
/**
|
|
29
40
|
* Pattern definition for mask characters
|
|
@@ -15,6 +15,15 @@ export const KMaskTextboxDefaultProps = {
|
|
|
15
15
|
mask: {
|
|
16
16
|
type: String,
|
|
17
17
|
required: true
|
|
18
|
+
},
|
|
19
|
+
validation: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: null,
|
|
22
|
+
validator: (value) => [null, "success", "warning", "error"].includes(value)
|
|
23
|
+
},
|
|
24
|
+
validationText: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
18
27
|
}
|
|
19
28
|
};
|
|
20
29
|
function getMaskPatternDef(mask, position) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type KRadioboxProps } from './KRadiobox.logic.js';
|
|
1
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
3
|
label: {
|
|
3
4
|
type: StringConstructor;
|
|
@@ -9,6 +10,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
9
10
|
type: BooleanConstructor;
|
|
10
11
|
default: boolean;
|
|
11
12
|
};
|
|
13
|
+
validation: {
|
|
14
|
+
type: import("vue").PropType<KRadioboxProps["validation"]>;
|
|
15
|
+
default: null;
|
|
16
|
+
validator: (value: string) => boolean;
|
|
17
|
+
};
|
|
18
|
+
validationText: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
12
22
|
modelValue: {
|
|
13
23
|
type: import("vue").PropType<any>;
|
|
14
24
|
};
|
|
@@ -25,6 +35,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
25
35
|
type: BooleanConstructor;
|
|
26
36
|
default: boolean;
|
|
27
37
|
};
|
|
38
|
+
validation: {
|
|
39
|
+
type: import("vue").PropType<KRadioboxProps["validation"]>;
|
|
40
|
+
default: null;
|
|
41
|
+
validator: (value: string) => boolean;
|
|
42
|
+
};
|
|
43
|
+
validationText: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
28
47
|
modelValue: {
|
|
29
48
|
type: import("vue").PropType<any>;
|
|
30
49
|
};
|
|
@@ -32,6 +51,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
32
51
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
33
52
|
}>, {
|
|
34
53
|
disabled: boolean;
|
|
54
|
+
validation: "error" | "success" | "warning" | null | undefined;
|
|
55
|
+
validationText: string;
|
|
35
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
57
|
declare const _default: typeof __VLS_export;
|
|
37
58
|
export default _default;
|
|
@@ -11,7 +11,9 @@ const templateProps = computed(() => ({
|
|
|
11
11
|
model: model.value,
|
|
12
12
|
label: props.label,
|
|
13
13
|
value: props.value,
|
|
14
|
-
disabled: props.disabled
|
|
14
|
+
disabled: props.disabled,
|
|
15
|
+
validation: props.validation,
|
|
16
|
+
validationText: props.validationText
|
|
15
17
|
}));
|
|
16
18
|
</script>
|
|
17
19
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type KRadioboxProps } from './KRadiobox.logic.js';
|
|
1
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
3
|
label: {
|
|
3
4
|
type: StringConstructor;
|
|
@@ -9,6 +10,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
9
10
|
type: BooleanConstructor;
|
|
10
11
|
default: boolean;
|
|
11
12
|
};
|
|
13
|
+
validation: {
|
|
14
|
+
type: import("vue").PropType<KRadioboxProps["validation"]>;
|
|
15
|
+
default: null;
|
|
16
|
+
validator: (value: string) => boolean;
|
|
17
|
+
};
|
|
18
|
+
validationText: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
12
22
|
modelValue: {
|
|
13
23
|
type: import("vue").PropType<any>;
|
|
14
24
|
};
|
|
@@ -25,6 +35,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
25
35
|
type: BooleanConstructor;
|
|
26
36
|
default: boolean;
|
|
27
37
|
};
|
|
38
|
+
validation: {
|
|
39
|
+
type: import("vue").PropType<KRadioboxProps["validation"]>;
|
|
40
|
+
default: null;
|
|
41
|
+
validator: (value: string) => boolean;
|
|
42
|
+
};
|
|
43
|
+
validationText: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
28
47
|
modelValue: {
|
|
29
48
|
type: import("vue").PropType<any>;
|
|
30
49
|
};
|
|
@@ -32,6 +51,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
32
51
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
33
52
|
}>, {
|
|
34
53
|
disabled: boolean;
|
|
54
|
+
validation: "error" | "success" | "warning" | null | undefined;
|
|
55
|
+
validationText: string;
|
|
35
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
57
|
declare const _default: typeof __VLS_export;
|
|
37
58
|
export default _default;
|
|
@@ -2,6 +2,8 @@ export interface KRadioboxProps {
|
|
|
2
2
|
label?: string;
|
|
3
3
|
value?: string;
|
|
4
4
|
disabled?: boolean;
|
|
5
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
6
|
+
validationText?: string;
|
|
5
7
|
}
|
|
6
8
|
export declare const KRadioboxDefaultProps: {
|
|
7
9
|
label: {
|
|
@@ -14,6 +16,15 @@ export declare const KRadioboxDefaultProps: {
|
|
|
14
16
|
type: BooleanConstructor;
|
|
15
17
|
default: boolean;
|
|
16
18
|
};
|
|
19
|
+
validation: {
|
|
20
|
+
type: import("vue").PropType<KRadioboxProps["validation"]>;
|
|
21
|
+
default: null;
|
|
22
|
+
validator: (value: string) => boolean;
|
|
23
|
+
};
|
|
24
|
+
validationText: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
17
28
|
};
|
|
18
29
|
export declare function useKRadioboxLogic(props: KRadioboxProps, model: any): {
|
|
19
30
|
label: string | undefined;
|
|
@@ -8,6 +8,15 @@ export const KRadioboxDefaultProps = {
|
|
|
8
8
|
disabled: {
|
|
9
9
|
type: Boolean,
|
|
10
10
|
default: false
|
|
11
|
+
},
|
|
12
|
+
validation: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: null,
|
|
15
|
+
validator: (value) => [null, "success", "warning", "error"].includes(value)
|
|
16
|
+
},
|
|
17
|
+
validationText: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
11
20
|
}
|
|
12
21
|
};
|
|
13
22
|
export function useKRadioboxLogic(props, model) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type KTextareaProps } from './KTextarea.logic.js';
|
|
1
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
3
|
modelValue: {
|
|
3
4
|
type: StringConstructor;
|
|
@@ -11,6 +12,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
11
12
|
type: NumberConstructor;
|
|
12
13
|
default: number;
|
|
13
14
|
};
|
|
15
|
+
validation: {
|
|
16
|
+
type: import("vue").PropType<KTextareaProps["validation"]>;
|
|
17
|
+
default: null;
|
|
18
|
+
validator: (value: string) => boolean;
|
|
19
|
+
};
|
|
20
|
+
validationText: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
14
24
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
25
|
"update:modelValue": (value: string) => any;
|
|
16
26
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -26,10 +36,21 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
26
36
|
type: NumberConstructor;
|
|
27
37
|
default: number;
|
|
28
38
|
};
|
|
39
|
+
validation: {
|
|
40
|
+
type: import("vue").PropType<KTextareaProps["validation"]>;
|
|
41
|
+
default: null;
|
|
42
|
+
validator: (value: string) => boolean;
|
|
43
|
+
};
|
|
44
|
+
validationText: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
29
48
|
}>> & Readonly<{
|
|
30
49
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
31
50
|
}>, {
|
|
32
51
|
rows: number;
|
|
52
|
+
validation: "error" | "success" | "warning" | null | undefined;
|
|
53
|
+
validationText: string;
|
|
33
54
|
placeholder: string;
|
|
34
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
56
|
declare const _default: typeof __VLS_export;
|
|
@@ -10,7 +10,9 @@ const presetComponent = usePresetComponent("KTextarea", KTextareaDefault);
|
|
|
10
10
|
const templateProps = computed(() => ({
|
|
11
11
|
text: text.value,
|
|
12
12
|
placeholder: props.placeholder,
|
|
13
|
-
rows: props.rows
|
|
13
|
+
rows: props.rows,
|
|
14
|
+
validation: props.validation,
|
|
15
|
+
validationText: props.validationText
|
|
14
16
|
}));
|
|
15
17
|
</script>
|
|
16
18
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type KTextareaProps } from './KTextarea.logic.js';
|
|
1
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
3
|
modelValue: {
|
|
3
4
|
type: StringConstructor;
|
|
@@ -11,6 +12,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
11
12
|
type: NumberConstructor;
|
|
12
13
|
default: number;
|
|
13
14
|
};
|
|
15
|
+
validation: {
|
|
16
|
+
type: import("vue").PropType<KTextareaProps["validation"]>;
|
|
17
|
+
default: null;
|
|
18
|
+
validator: (value: string) => boolean;
|
|
19
|
+
};
|
|
20
|
+
validationText: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
14
24
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
25
|
"update:modelValue": (value: string) => any;
|
|
16
26
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -26,10 +36,21 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
26
36
|
type: NumberConstructor;
|
|
27
37
|
default: number;
|
|
28
38
|
};
|
|
39
|
+
validation: {
|
|
40
|
+
type: import("vue").PropType<KTextareaProps["validation"]>;
|
|
41
|
+
default: null;
|
|
42
|
+
validator: (value: string) => boolean;
|
|
43
|
+
};
|
|
44
|
+
validationText: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
29
48
|
}>> & Readonly<{
|
|
30
49
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
31
50
|
}>, {
|
|
32
51
|
rows: number;
|
|
52
|
+
validation: "error" | "success" | "warning" | null | undefined;
|
|
53
|
+
validationText: string;
|
|
33
54
|
placeholder: string;
|
|
34
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
56
|
declare const _default: typeof __VLS_export;
|
|
@@ -2,6 +2,8 @@ export interface KTextareaProps {
|
|
|
2
2
|
modelValue: string;
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
rows?: number;
|
|
5
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
6
|
+
validationText?: string;
|
|
5
7
|
}
|
|
6
8
|
export interface KTextareaEmits {
|
|
7
9
|
(e: 'update:modelValue', value: string): void;
|
|
@@ -28,4 +30,13 @@ export declare const KTextareaDefaultProps: {
|
|
|
28
30
|
type: NumberConstructor;
|
|
29
31
|
default: number;
|
|
30
32
|
};
|
|
33
|
+
validation: {
|
|
34
|
+
type: import("vue").PropType<KTextareaProps["validation"]>;
|
|
35
|
+
default: null;
|
|
36
|
+
validator: (value: string) => boolean;
|
|
37
|
+
};
|
|
38
|
+
validationText: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
31
42
|
};
|
|
@@ -20,5 +20,14 @@ export const KTextareaDefaultProps = {
|
|
|
20
20
|
rows: {
|
|
21
21
|
type: Number,
|
|
22
22
|
default: 4
|
|
23
|
+
},
|
|
24
|
+
validation: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: null,
|
|
27
|
+
validator: (value) => [null, "success", "warning", "error"].includes(value)
|
|
28
|
+
},
|
|
29
|
+
validationText: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ""
|
|
23
32
|
}
|
|
24
33
|
};
|
|
@@ -17,6 +17,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
17
17
|
default: string;
|
|
18
18
|
validator: (value: string) => boolean;
|
|
19
19
|
};
|
|
20
|
+
validation: {
|
|
21
|
+
type: import("vue").PropType<KTextboxProps["validation"]>;
|
|
22
|
+
default: null;
|
|
23
|
+
validator: (value: string) => boolean;
|
|
24
|
+
};
|
|
25
|
+
validationText: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
20
29
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
21
30
|
"update:modelValue": (value: string) => any;
|
|
22
31
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -37,10 +46,21 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
37
46
|
default: string;
|
|
38
47
|
validator: (value: string) => boolean;
|
|
39
48
|
};
|
|
49
|
+
validation: {
|
|
50
|
+
type: import("vue").PropType<KTextboxProps["validation"]>;
|
|
51
|
+
default: null;
|
|
52
|
+
validator: (value: string) => boolean;
|
|
53
|
+
};
|
|
54
|
+
validationText: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
40
58
|
}>> & Readonly<{
|
|
41
59
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
42
60
|
}>, {
|
|
43
61
|
type: "number" | "text" | "url" | "search" | "password" | "email" | "tel" | undefined;
|
|
62
|
+
validation: "error" | "success" | "warning" | null | undefined;
|
|
63
|
+
validationText: string;
|
|
44
64
|
modelValue: string;
|
|
45
65
|
placeholder: string;
|
|
46
66
|
showClear: boolean;
|
|
@@ -17,6 +17,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
17
17
|
default: string;
|
|
18
18
|
validator: (value: string) => boolean;
|
|
19
19
|
};
|
|
20
|
+
validation: {
|
|
21
|
+
type: import("vue").PropType<KTextboxProps["validation"]>;
|
|
22
|
+
default: null;
|
|
23
|
+
validator: (value: string) => boolean;
|
|
24
|
+
};
|
|
25
|
+
validationText: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
20
29
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
21
30
|
"update:modelValue": (value: string) => any;
|
|
22
31
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -37,10 +46,21 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
37
46
|
default: string;
|
|
38
47
|
validator: (value: string) => boolean;
|
|
39
48
|
};
|
|
49
|
+
validation: {
|
|
50
|
+
type: import("vue").PropType<KTextboxProps["validation"]>;
|
|
51
|
+
default: null;
|
|
52
|
+
validator: (value: string) => boolean;
|
|
53
|
+
};
|
|
54
|
+
validationText: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
40
58
|
}>> & Readonly<{
|
|
41
59
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
42
60
|
}>, {
|
|
43
61
|
type: "number" | "text" | "url" | "search" | "password" | "email" | "tel" | undefined;
|
|
62
|
+
validation: "error" | "success" | "warning" | null | undefined;
|
|
63
|
+
validationText: string;
|
|
44
64
|
modelValue: string;
|
|
45
65
|
placeholder: string;
|
|
46
66
|
showClear: boolean;
|
|
@@ -3,6 +3,8 @@ export interface KTextboxProps {
|
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
showClear?: boolean;
|
|
5
5
|
type?: 'text' | 'password' | 'email' | 'url' | 'tel' | 'search' | 'number';
|
|
6
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
7
|
+
validationText?: string;
|
|
6
8
|
}
|
|
7
9
|
export interface KTextboxEmits {
|
|
8
10
|
(e: 'update:modelValue', value: string): void;
|
|
@@ -36,4 +38,13 @@ export declare const KTextboxDefaultProps: {
|
|
|
36
38
|
default: string;
|
|
37
39
|
validator: (value: string) => boolean;
|
|
38
40
|
};
|
|
41
|
+
validation: {
|
|
42
|
+
type: import("vue").PropType<KTextboxProps["validation"]>;
|
|
43
|
+
default: null;
|
|
44
|
+
validator: (value: string) => boolean;
|
|
45
|
+
};
|
|
46
|
+
validationText: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
39
50
|
};
|
|
@@ -35,5 +35,14 @@ export const KTextboxDefaultProps = {
|
|
|
35
35
|
validator: (value) => {
|
|
36
36
|
return ["text", "password", "email", "url", "tel", "search", "number"].includes(value);
|
|
37
37
|
}
|
|
38
|
+
},
|
|
39
|
+
validation: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: null,
|
|
42
|
+
validator: (value) => [null, "success", "warning", "error"].includes(value)
|
|
43
|
+
},
|
|
44
|
+
validationText: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: ""
|
|
38
47
|
}
|
|
39
48
|
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
text: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
timeout: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
teleport: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
type: {
|
|
19
|
+
type: import("vue").PropType<import("./KToast.logic.js").KToastType>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
close: (...args: any[]) => void;
|
|
24
|
+
"update:modelValue": (...args: any[]) => void;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
modelValue: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
text: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
timeout: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
teleport: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
type: {
|
|
43
|
+
type: import("vue").PropType<import("./KToast.logic.js").KToastType>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
}>> & Readonly<{
|
|
47
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
text: string;
|
|
51
|
+
type: import("./KToast.logic.js").KToastType;
|
|
52
|
+
modelValue: boolean;
|
|
53
|
+
timeout: number;
|
|
54
|
+
teleport: boolean;
|
|
55
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
56
|
+
declare const _default: typeof __VLS_export;
|
|
57
|
+
export default _default;
|