@katlux/toolkit 0.1.0-beta.73 → 0.1.0-beta.75
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/KCombobox/KCombobox.global.d.vue.ts +9 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +1 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +9 -0
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +5 -0
- package/dist/runtime/components/KCombobox/KCombobox.logic.js +11 -7
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +45 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue +11 -2
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +45 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +61 -1
- package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.js +112 -9
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +10 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +1 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +10 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +5 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +12 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +10 -1
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +1 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +10 -1
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +5 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +7 -0
- package/dist/runtime/components/KDropdown/KDropdown.logic.js +11 -29
- package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +9 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +1 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +9 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.d.ts +5 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.js +4 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.global.d.vue.ts +9 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.global.vue +1 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.global.vue.d.ts +9 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.logic.d.ts +5 -0
- package/dist/runtime/components/KHourSelect/KHourSelect.logic.js +4 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +9 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +1 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +9 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.d.ts +5 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.js +14 -5
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.d.vue.ts +9 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue +1 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue.d.ts +9 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.d.ts +5 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.js +4 -0
- package/dist/runtime/components/KSearchTree/KSearchTree.logic.d.ts +7 -1
- package/dist/runtime/components/KSearchTree/KSearchTree.logic.js +6 -1
- package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.d.ts +7 -1
- package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.js +6 -1
- package/dist/runtime/components/KSlider/KSlider.global.d.vue.ts +9 -0
- package/dist/runtime/components/KSlider/KSlider.global.vue +1 -0
- package/dist/runtime/components/KSlider/KSlider.global.vue.d.ts +9 -0
- package/dist/runtime/components/KSlider/KSlider.logic.d.ts +5 -0
- package/dist/runtime/components/KSlider/KSlider.logic.js +4 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +9 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.vue +1 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +9 -0
- package/dist/runtime/components/KTextarea/KTextarea.logic.d.ts +5 -0
- package/dist/runtime/components/KTextarea/KTextarea.logic.js +4 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +9 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.vue +1 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +9 -0
- package/dist/runtime/components/KTextbox/KTextbox.logic.d.ts +5 -0
- package/dist/runtime/components/KTextbox/KTextbox.logic.js +4 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +9 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +1 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +9 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +5 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +4 -0
- package/dist/runtime/presets/default/assets/scss/css-variables.css +3 -0
- package/dist/runtime/presets/default/assets/scss/css-variables.scss +3 -0
- package/dist/runtime/presets/default/assets/scss/index.css +11 -0
- package/dist/runtime/presets/default/assets/scss/index.scss +8 -1
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +22 -2
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.d.vue.ts +5 -0
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue +79 -47
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue.d.ts +5 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +2 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue +2 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue +2 -0
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue +2 -0
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue +2 -0
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue +2 -0
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.d.vue.ts +4 -1
- package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue +9 -1
- package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue.d.ts +4 -1
- package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.d.vue.ts +4 -1
- package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue +9 -1
- package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue.d.ts +4 -1
- package/dist/runtime/presets/default/components/KSlider/KSlider.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KSlider/KSlider.vue +2 -0
- package/dist/runtime/presets/default/components/KSlider/KSlider.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue +3 -1
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +36 -8
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +2 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
label: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
2
6
|
min: {
|
|
3
7
|
type: NumberConstructor;
|
|
4
8
|
default: number;
|
|
@@ -27,6 +31,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
27
31
|
"update:minValue": (value: any) => any;
|
|
28
32
|
"update:maxValue": (value: any) => any;
|
|
29
33
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
label: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
30
38
|
min: {
|
|
31
39
|
type: NumberConstructor;
|
|
32
40
|
default: number;
|
|
@@ -55,6 +63,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
55
63
|
"onUpdate:minValue"?: ((value: any) => any) | undefined;
|
|
56
64
|
"onUpdate:maxValue"?: ((value: any) => any) | undefined;
|
|
57
65
|
}>, {
|
|
66
|
+
label: string;
|
|
58
67
|
disabled: boolean;
|
|
59
68
|
step: number;
|
|
60
69
|
min: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export interface KRangeSliderProps {
|
|
2
|
+
label?: string;
|
|
2
3
|
min?: number;
|
|
3
4
|
max?: number;
|
|
4
5
|
step?: number;
|
|
@@ -25,6 +26,10 @@ export declare function useKRangeSliderLogic(props: KRangeSliderProps, minModel:
|
|
|
25
26
|
* Default props for KRangeSlider
|
|
26
27
|
*/
|
|
27
28
|
export declare const KRangeSliderDefaultProps: {
|
|
29
|
+
label: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
28
33
|
min: {
|
|
29
34
|
type: NumberConstructor;
|
|
30
35
|
default: number;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export interface KSearchTreeProps {
|
|
2
|
+
label?: string;
|
|
2
3
|
}
|
|
3
|
-
export declare const KSearchTreeDefaultProps: {
|
|
4
|
+
export declare const KSearchTreeDefaultProps: {
|
|
5
|
+
label: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
4
10
|
export declare function useKSearchTreeLogic(): {};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export interface KSearchTreeDropdownProps {
|
|
2
|
+
label?: string;
|
|
2
3
|
}
|
|
3
|
-
export declare const KSearchTreeDropdownDefaultProps: {
|
|
4
|
+
export declare const KSearchTreeDropdownDefaultProps: {
|
|
5
|
+
label: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
4
10
|
export declare function useKSearchTreeDropdownLogic(): {};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
label: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
2
6
|
min: {
|
|
3
7
|
type: NumberConstructor;
|
|
4
8
|
default: number;
|
|
@@ -22,6 +26,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
22
26
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
27
|
"update:value": (value: any) => any;
|
|
24
28
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
label: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
25
33
|
min: {
|
|
26
34
|
type: NumberConstructor;
|
|
27
35
|
default: number;
|
|
@@ -45,6 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
45
53
|
}>> & Readonly<{
|
|
46
54
|
"onUpdate:value"?: ((value: any) => any) | undefined;
|
|
47
55
|
}>, {
|
|
56
|
+
label: string;
|
|
48
57
|
value: number;
|
|
49
58
|
disabled: boolean;
|
|
50
59
|
step: number;
|
|
@@ -15,6 +15,7 @@ const {
|
|
|
15
15
|
} = useKSliderLogic(props, valueModel);
|
|
16
16
|
const presetComponent = usePresetComponent("KSlider", KSliderDefault);
|
|
17
17
|
const templateProps = computed(() => ({
|
|
18
|
+
label: props.label,
|
|
18
19
|
rangeMin: rangeMin.value,
|
|
19
20
|
rangeMax: rangeMax.value,
|
|
20
21
|
rangeStep: rangeStep.value,
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
label: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
2
6
|
min: {
|
|
3
7
|
type: NumberConstructor;
|
|
4
8
|
default: number;
|
|
@@ -22,6 +26,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
22
26
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
27
|
"update:value": (value: any) => any;
|
|
24
28
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
label: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
25
33
|
min: {
|
|
26
34
|
type: NumberConstructor;
|
|
27
35
|
default: number;
|
|
@@ -45,6 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
45
53
|
}>> & Readonly<{
|
|
46
54
|
"onUpdate:value"?: ((value: any) => any) | undefined;
|
|
47
55
|
}>, {
|
|
56
|
+
label: string;
|
|
48
57
|
value: number;
|
|
49
58
|
disabled: boolean;
|
|
50
59
|
step: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export interface KSliderProps {
|
|
2
|
+
label?: string;
|
|
2
3
|
min?: number;
|
|
3
4
|
max?: number;
|
|
4
5
|
step?: number;
|
|
@@ -22,6 +23,10 @@ export declare function useKSliderLogic(props: KSliderProps, valueModel: any): {
|
|
|
22
23
|
* Default props for KSlider
|
|
23
24
|
*/
|
|
24
25
|
export declare const KSliderDefaultProps: {
|
|
26
|
+
label: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
25
30
|
min: {
|
|
26
31
|
type: NumberConstructor;
|
|
27
32
|
default: number;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KTextareaProps } from './KTextarea.logic.js';
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
label: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
3
7
|
modelValue: {
|
|
4
8
|
type: StringConstructor;
|
|
5
9
|
required: boolean;
|
|
@@ -24,6 +28,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
24
28
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
25
29
|
"update:modelValue": (value: string) => any;
|
|
26
30
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
label: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
27
35
|
modelValue: {
|
|
28
36
|
type: StringConstructor;
|
|
29
37
|
required: boolean;
|
|
@@ -48,6 +56,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
48
56
|
}>> & Readonly<{
|
|
49
57
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
50
58
|
}>, {
|
|
59
|
+
label: string;
|
|
51
60
|
rows: number;
|
|
52
61
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
53
62
|
validationText: string;
|
|
@@ -8,6 +8,7 @@ const emit = defineEmits(["update:modelValue"]);
|
|
|
8
8
|
const { text } = useKTextareaLogic(props, emit);
|
|
9
9
|
const presetComponent = usePresetComponent("KTextarea", KTextareaDefault);
|
|
10
10
|
const templateProps = computed(() => ({
|
|
11
|
+
label: props.label,
|
|
11
12
|
text: text.value,
|
|
12
13
|
placeholder: props.placeholder,
|
|
13
14
|
rows: props.rows,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KTextareaProps } from './KTextarea.logic.js';
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
label: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
3
7
|
modelValue: {
|
|
4
8
|
type: StringConstructor;
|
|
5
9
|
required: boolean;
|
|
@@ -24,6 +28,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
24
28
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
25
29
|
"update:modelValue": (value: string) => any;
|
|
26
30
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
label: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
27
35
|
modelValue: {
|
|
28
36
|
type: StringConstructor;
|
|
29
37
|
required: boolean;
|
|
@@ -48,6 +56,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
48
56
|
}>> & Readonly<{
|
|
49
57
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
50
58
|
}>, {
|
|
59
|
+
label: string;
|
|
51
60
|
rows: number;
|
|
52
61
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
53
62
|
validationText: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export interface KTextareaProps {
|
|
2
|
+
label?: string;
|
|
2
3
|
modelValue: string;
|
|
3
4
|
placeholder?: string;
|
|
4
5
|
rows?: number;
|
|
@@ -18,6 +19,10 @@ export declare function useKTextareaLogic(props: KTextareaProps, emit: KTextarea
|
|
|
18
19
|
* Default props for KTextarea
|
|
19
20
|
*/
|
|
20
21
|
export declare const KTextareaDefaultProps: {
|
|
22
|
+
label: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
21
26
|
modelValue: {
|
|
22
27
|
type: StringConstructor;
|
|
23
28
|
required: boolean;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KTextboxProps } from './KTextbox.logic.js';
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
label: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
3
7
|
modelValue: {
|
|
4
8
|
type: StringConstructor;
|
|
5
9
|
default: string;
|
|
@@ -29,6 +33,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
29
33
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
34
|
"update:modelValue": (value: string) => any;
|
|
31
35
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
label: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
32
40
|
modelValue: {
|
|
33
41
|
type: StringConstructor;
|
|
34
42
|
default: string;
|
|
@@ -58,6 +66,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
58
66
|
}>> & Readonly<{
|
|
59
67
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
60
68
|
}>, {
|
|
69
|
+
label: string;
|
|
61
70
|
type: "number" | "text" | "url" | "search" | "password" | "email" | "tel" | undefined;
|
|
62
71
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
63
72
|
validationText: string;
|
|
@@ -8,6 +8,7 @@ const emit = defineEmits(["update:modelValue"]);
|
|
|
8
8
|
const { text, showClear, clear } = useKTextboxLogic(props, emit);
|
|
9
9
|
const presetComponent = usePresetComponent("KTextbox", KTextboxDefault);
|
|
10
10
|
const templateProps = computed(() => ({
|
|
11
|
+
label: props.label,
|
|
11
12
|
text: text.value,
|
|
12
13
|
showClear: showClear.value,
|
|
13
14
|
clear,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KTextboxProps } from './KTextbox.logic.js';
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
label: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
3
7
|
modelValue: {
|
|
4
8
|
type: StringConstructor;
|
|
5
9
|
default: string;
|
|
@@ -29,6 +33,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
29
33
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
34
|
"update:modelValue": (value: string) => any;
|
|
31
35
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
label: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
32
40
|
modelValue: {
|
|
33
41
|
type: StringConstructor;
|
|
34
42
|
default: string;
|
|
@@ -58,6 +66,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
58
66
|
}>> & Readonly<{
|
|
59
67
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
60
68
|
}>, {
|
|
69
|
+
label: string;
|
|
61
70
|
type: "number" | "text" | "url" | "search" | "password" | "email" | "tel" | undefined;
|
|
62
71
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
63
72
|
validationText: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export interface KTextboxProps {
|
|
2
|
+
label?: string;
|
|
2
3
|
modelValue?: string;
|
|
3
4
|
placeholder?: string;
|
|
4
5
|
showClear?: boolean;
|
|
@@ -21,6 +22,10 @@ export declare function useKTextboxLogic(props: KTextboxProps, emit: KTextboxEmi
|
|
|
21
22
|
* Default props for KTextbox
|
|
22
23
|
*/
|
|
23
24
|
export declare const KTextboxDefaultProps: {
|
|
25
|
+
label: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
24
29
|
modelValue: {
|
|
25
30
|
type: StringConstructor;
|
|
26
31
|
default: string;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KTreePickerProps } from './KTreePicker.logic.js';
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
label: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
3
7
|
modelValue: {
|
|
4
8
|
type: import("vue").PropType<any>;
|
|
5
9
|
default: null;
|
|
@@ -78,6 +82,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
78
82
|
"update:modelValue": (value: any) => any;
|
|
79
83
|
"update:isOptionsOpen": (value: boolean) => any;
|
|
80
84
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
85
|
+
label: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
81
89
|
modelValue: {
|
|
82
90
|
type: import("vue").PropType<any>;
|
|
83
91
|
default: null;
|
|
@@ -156,6 +164,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
156
164
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
157
165
|
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
158
166
|
}>, {
|
|
167
|
+
label: string;
|
|
159
168
|
parentKey: string;
|
|
160
169
|
idKey: string;
|
|
161
170
|
disabled: boolean;
|
|
@@ -22,6 +22,7 @@ watch(isOptionsOpen, (newVal) => {
|
|
|
22
22
|
});
|
|
23
23
|
const presetComponent = usePresetComponent("KTreePicker", KTreePickerDefault);
|
|
24
24
|
const templateProps = computed(() => ({
|
|
25
|
+
label: props.label,
|
|
25
26
|
// KTreePicker specific
|
|
26
27
|
modelValue: props.modelValue,
|
|
27
28
|
dataProvider: props.dataProvider,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KTreePickerProps } from './KTreePicker.logic.js';
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
label: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
3
7
|
modelValue: {
|
|
4
8
|
type: import("vue").PropType<any>;
|
|
5
9
|
default: null;
|
|
@@ -78,6 +82,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
78
82
|
"update:modelValue": (value: any) => any;
|
|
79
83
|
"update:isOptionsOpen": (value: boolean) => any;
|
|
80
84
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
85
|
+
label: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
81
89
|
modelValue: {
|
|
82
90
|
type: import("vue").PropType<any>;
|
|
83
91
|
default: null;
|
|
@@ -156,6 +164,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
156
164
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
157
165
|
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
158
166
|
}>, {
|
|
167
|
+
label: string;
|
|
159
168
|
parentKey: string;
|
|
160
169
|
idKey: string;
|
|
161
170
|
disabled: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ADataProvider } from '@katlux/providers';
|
|
2
2
|
import { type PropType } from 'vue';
|
|
3
3
|
export interface KTreePickerProps {
|
|
4
|
+
label?: string;
|
|
4
5
|
modelValue?: any;
|
|
5
6
|
dataProvider: ADataProvider;
|
|
6
7
|
labelField: string;
|
|
@@ -21,6 +22,10 @@ export interface KTreePickerProps {
|
|
|
21
22
|
fullWidth?: boolean;
|
|
22
23
|
}
|
|
23
24
|
export declare const KTreePickerDefaultProps: {
|
|
25
|
+
label: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
24
29
|
modelValue: {
|
|
25
30
|
type: PropType<any>;
|
|
26
31
|
default: null;
|
|
@@ -144,10 +144,13 @@
|
|
|
144
144
|
--panel-bg-info: var(--cyan-300);
|
|
145
145
|
--panel-header-bg-info: var(--cyan-500);
|
|
146
146
|
--panel-footer-bg-info: var(--cyan-100);
|
|
147
|
+
--input-bg: var(--neutral-50);
|
|
147
148
|
--input-border-radius: var(--border-radius-sm);
|
|
148
149
|
--input-border-color: var(--border-color-medium);
|
|
150
|
+
--input-hover-border-color: var(--neutral-400);
|
|
149
151
|
--input-focus-border-color: var(--primary-500);
|
|
150
152
|
--input-focus-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
|
|
153
|
+
--input-height: 40px;
|
|
151
154
|
--table-header-bg: var(--neutral-100);
|
|
152
155
|
--table-header-color: var(--neutral-700);
|
|
153
156
|
--table-border-color: var(--neutral-300);
|
|
@@ -210,10 +210,13 @@
|
|
|
210
210
|
--panel-footer-bg-info: var(--cyan-100);
|
|
211
211
|
|
|
212
212
|
// Input
|
|
213
|
+
--input-bg: var(--neutral-50);
|
|
213
214
|
--input-border-radius: var(--border-radius-sm);
|
|
214
215
|
--input-border-color: var(--border-color-medium);
|
|
216
|
+
--input-hover-border-color: var(--neutral-400);
|
|
215
217
|
--input-focus-border-color: var(--primary-500);
|
|
216
218
|
--input-focus-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
|
|
219
|
+
--input-height: 40px;
|
|
217
220
|
|
|
218
221
|
// Table
|
|
219
222
|
--table-header-bg: var(--neutral-100);
|
|
@@ -161,10 +161,13 @@ li {
|
|
|
161
161
|
--panel-bg-info: var(--cyan-300);
|
|
162
162
|
--panel-header-bg-info: var(--cyan-500);
|
|
163
163
|
--panel-footer-bg-info: var(--cyan-100);
|
|
164
|
+
--input-bg: var(--neutral-50);
|
|
164
165
|
--input-border-radius: var(--border-radius-sm);
|
|
165
166
|
--input-border-color: var(--border-color-medium);
|
|
167
|
+
--input-hover-border-color: var(--neutral-400);
|
|
166
168
|
--input-focus-border-color: var(--primary-500);
|
|
167
169
|
--input-focus-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
|
|
170
|
+
--input-height: 40px;
|
|
168
171
|
--table-header-bg: var(--neutral-100);
|
|
169
172
|
--table-header-color: var(--neutral-700);
|
|
170
173
|
--table-border-color: var(--neutral-300);
|
|
@@ -294,4 +297,12 @@ body {
|
|
|
294
297
|
|
|
295
298
|
.is-error {
|
|
296
299
|
border-color: var(--error-color) !important;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.k-input-label {
|
|
303
|
+
font-size: var(--font-size-xs);
|
|
304
|
+
color: var(--neutral-500);
|
|
305
|
+
margin-bottom: calc(var(--gap-sm) / 2);
|
|
306
|
+
display: block;
|
|
307
|
+
font-weight: 500;
|
|
297
308
|
}
|
|
@@ -39,4 +39,11 @@ body {
|
|
|
39
39
|
|
|
40
40
|
.is-error {
|
|
41
41
|
border-color: var(--error-color) !important;
|
|
42
|
-
}
|
|
42
|
+
}
|
|
43
|
+
.k-input-label {
|
|
44
|
+
font-size: var(--font-size-xs);
|
|
45
|
+
color: var(--neutral-500);
|
|
46
|
+
margin-bottom: calc(var(--gap-sm) / 2);
|
|
47
|
+
display: block;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.KCombobox-wrapper
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
3
4
|
.KCombobox(ref="activatorRef" :class="{ disabled: disabled, open: isOptionsOpen, ... (validation ? { [`is-${validation}`]: true } : {}) }")
|
|
4
5
|
KGrid(@click.stop="toggleDropdown" align="center" justify="space-between").KCombobox__selected-content-container
|
|
5
6
|
KGrid(align="center" wrap="no-wrap").KCombobox__selected-content
|
|
@@ -35,6 +36,7 @@ import KComboboxList from './KComboboxList.vue'
|
|
|
35
36
|
import type { ComboboxItem } from '../../../../components/KCombobox/KCombobox.logic'
|
|
36
37
|
|
|
37
38
|
const props = defineProps<{
|
|
39
|
+
label?: string
|
|
38
40
|
disabled: boolean
|
|
39
41
|
isOptionsOpen: boolean
|
|
40
42
|
labelField: string
|
|
@@ -72,15 +74,33 @@ const isOptionsOpenModel = computed({
|
|
|
72
74
|
</script>
|
|
73
75
|
|
|
74
76
|
<style lang="scss" scoped>
|
|
77
|
+
.KCombobox-wrapper {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
flex: 1;
|
|
81
|
+
min-width: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
75
84
|
.KCombobox {
|
|
76
85
|
box-sizing: border-box;
|
|
77
86
|
border: var(--input-border);
|
|
78
87
|
border-radius: var(--input-border-radius);
|
|
79
88
|
padding: 0px var(--component-gap);
|
|
80
89
|
|
|
81
|
-
background-color: var(--
|
|
82
|
-
height:
|
|
90
|
+
background-color: var(--input-bg);
|
|
91
|
+
height: var(--input-height);
|
|
83
92
|
position: relative;
|
|
93
|
+
transition: all var(--transition-fast, 0.2s ease);
|
|
94
|
+
|
|
95
|
+
&:focus-within, &.open {
|
|
96
|
+
border-color: var(--input-focus-border-color);
|
|
97
|
+
box-shadow: var(--input-focus-shadow);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:hover:not(.open) {
|
|
101
|
+
border-color: var(--input-hover-border-color);
|
|
102
|
+
}
|
|
103
|
+
|
|
84
104
|
&__selected-content-container {
|
|
85
105
|
cursor: pointer;
|
|
86
106
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ADataProvider } from '@katlux/providers';
|
|
2
|
+
import type { ICompositeInputConfig } from '../../../../components/KCompositeInput/KCompositeInput.logic.js';
|
|
2
3
|
type __VLS_Props = {
|
|
4
|
+
label?: string;
|
|
3
5
|
selectionValue: any;
|
|
4
6
|
inputValue: any;
|
|
5
7
|
modelValue: any[];
|
|
@@ -17,6 +19,9 @@ type __VLS_Props = {
|
|
|
17
19
|
teleportTo?: string;
|
|
18
20
|
validation?: 'success' | 'warning' | 'error' | null;
|
|
19
21
|
validationText?: string;
|
|
22
|
+
inputConfigField?: string;
|
|
23
|
+
validateAll?: boolean;
|
|
24
|
+
resolvedInputConfig?: ICompositeInputConfig;
|
|
20
25
|
};
|
|
21
26
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
22
27
|
"update:selectionValue": (value: any) => any;
|