@katlux/toolkit 0.1.0-beta.50 → 0.1.0-beta.51
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.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 +36 -6
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +4 -1
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +36 -6
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +19 -3
- package/dist/runtime/components/KCombobox/KCombobox.logic.js +52 -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.logic.d.ts +20 -0
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +12 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +24 -3
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +3 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +24 -3
- 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 +24 -3
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +3 -1
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +24 -3
- 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/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/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 +37 -8
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +4 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +37 -8
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +17 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +18 -1
- package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +3 -3
- package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +3 -3
- 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 +2 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +25 -21
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +2 -0
- 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/KTreePicker/KTreePicker.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +4 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,16 +1,21 @@
|
|
|
1
|
+
import { type KTreePickerProps } from './KTreePicker.logic.js';
|
|
1
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
3
|
modelValue: {
|
|
3
|
-
type: PropType<any>;
|
|
4
|
+
type: import("vue").PropType<any>;
|
|
4
5
|
default: null;
|
|
5
6
|
};
|
|
6
7
|
dataProvider: {
|
|
7
|
-
type: PropType<import("@katlux/providers").ADataProvider>;
|
|
8
|
+
type: import("vue").PropType<import("@katlux/providers").ADataProvider>;
|
|
8
9
|
required: boolean;
|
|
9
10
|
};
|
|
10
11
|
labelField: {
|
|
11
12
|
type: StringConstructor;
|
|
12
13
|
required: boolean;
|
|
13
14
|
};
|
|
15
|
+
valueField: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
14
19
|
placeholder: {
|
|
15
20
|
type: StringConstructor;
|
|
16
21
|
default: string;
|
|
@@ -47,22 +52,35 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
47
52
|
type: BooleanConstructor;
|
|
48
53
|
default: boolean;
|
|
49
54
|
};
|
|
55
|
+
validation: {
|
|
56
|
+
type: import("vue").PropType<KTreePickerProps["validation"]>;
|
|
57
|
+
default: null;
|
|
58
|
+
validator: (value: string) => boolean;
|
|
59
|
+
};
|
|
60
|
+
validationText: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
50
64
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
51
65
|
change: (value: any) => any;
|
|
52
66
|
"update:modelValue": (value: any) => any;
|
|
53
67
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
68
|
modelValue: {
|
|
55
|
-
type: PropType<any>;
|
|
69
|
+
type: import("vue").PropType<any>;
|
|
56
70
|
default: null;
|
|
57
71
|
};
|
|
58
72
|
dataProvider: {
|
|
59
|
-
type: PropType<import("@katlux/providers").ADataProvider>;
|
|
73
|
+
type: import("vue").PropType<import("@katlux/providers").ADataProvider>;
|
|
60
74
|
required: boolean;
|
|
61
75
|
};
|
|
62
76
|
labelField: {
|
|
63
77
|
type: StringConstructor;
|
|
64
78
|
required: boolean;
|
|
65
79
|
};
|
|
80
|
+
valueField: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: null;
|
|
83
|
+
};
|
|
66
84
|
placeholder: {
|
|
67
85
|
type: StringConstructor;
|
|
68
86
|
default: string;
|
|
@@ -99,21 +117,32 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
99
117
|
type: BooleanConstructor;
|
|
100
118
|
default: boolean;
|
|
101
119
|
};
|
|
120
|
+
validation: {
|
|
121
|
+
type: import("vue").PropType<KTreePickerProps["validation"]>;
|
|
122
|
+
default: null;
|
|
123
|
+
validator: (value: string) => boolean;
|
|
124
|
+
};
|
|
125
|
+
validationText: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
102
129
|
}>> & Readonly<{
|
|
103
130
|
onChange?: ((value: any) => any) | undefined;
|
|
104
131
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
105
132
|
}>, {
|
|
133
|
+
parentKey: string;
|
|
134
|
+
idKey: string;
|
|
106
135
|
disabled: boolean;
|
|
107
136
|
loading: boolean;
|
|
137
|
+
validation: "error" | "success" | "warning" | null | undefined;
|
|
138
|
+
validationText: string;
|
|
108
139
|
modelValue: any;
|
|
109
|
-
dataProvider: any;
|
|
110
|
-
placeholder: string;
|
|
111
140
|
searchbox: boolean;
|
|
141
|
+
placeholder: string;
|
|
112
142
|
closeOnSelect: boolean;
|
|
113
143
|
multiSelect: boolean;
|
|
144
|
+
valueField: string;
|
|
114
145
|
iconField: string;
|
|
115
|
-
idKey: string;
|
|
116
|
-
parentKey: string;
|
|
117
146
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
118
147
|
declare const _default: typeof __VLS_export;
|
|
119
148
|
export default _default;
|
|
@@ -40,7 +40,10 @@ const templateProps = computed(() => ({
|
|
|
40
40
|
selectItem,
|
|
41
41
|
isSelected,
|
|
42
42
|
loading: loading.value || props.loading,
|
|
43
|
-
closeOnSelect: props.closeOnSelect
|
|
43
|
+
closeOnSelect: props.closeOnSelect,
|
|
44
|
+
valueField: props.valueField || props.idKey,
|
|
45
|
+
validation: props.validation,
|
|
46
|
+
validationText: props.validationText
|
|
44
47
|
}));
|
|
45
48
|
function onUpdateModelValue(val) {
|
|
46
49
|
emit("update:modelValue", val);
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
+
import { type KTreePickerProps } from './KTreePicker.logic.js';
|
|
1
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
3
|
modelValue: {
|
|
3
|
-
type: PropType<any>;
|
|
4
|
+
type: import("vue").PropType<any>;
|
|
4
5
|
default: null;
|
|
5
6
|
};
|
|
6
7
|
dataProvider: {
|
|
7
|
-
type: PropType<import("@katlux/providers").ADataProvider>;
|
|
8
|
+
type: import("vue").PropType<import("@katlux/providers").ADataProvider>;
|
|
8
9
|
required: boolean;
|
|
9
10
|
};
|
|
10
11
|
labelField: {
|
|
11
12
|
type: StringConstructor;
|
|
12
13
|
required: boolean;
|
|
13
14
|
};
|
|
15
|
+
valueField: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
14
19
|
placeholder: {
|
|
15
20
|
type: StringConstructor;
|
|
16
21
|
default: string;
|
|
@@ -47,22 +52,35 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
47
52
|
type: BooleanConstructor;
|
|
48
53
|
default: boolean;
|
|
49
54
|
};
|
|
55
|
+
validation: {
|
|
56
|
+
type: import("vue").PropType<KTreePickerProps["validation"]>;
|
|
57
|
+
default: null;
|
|
58
|
+
validator: (value: string) => boolean;
|
|
59
|
+
};
|
|
60
|
+
validationText: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
50
64
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
51
65
|
change: (value: any) => any;
|
|
52
66
|
"update:modelValue": (value: any) => any;
|
|
53
67
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
68
|
modelValue: {
|
|
55
|
-
type: PropType<any>;
|
|
69
|
+
type: import("vue").PropType<any>;
|
|
56
70
|
default: null;
|
|
57
71
|
};
|
|
58
72
|
dataProvider: {
|
|
59
|
-
type: PropType<import("@katlux/providers").ADataProvider>;
|
|
73
|
+
type: import("vue").PropType<import("@katlux/providers").ADataProvider>;
|
|
60
74
|
required: boolean;
|
|
61
75
|
};
|
|
62
76
|
labelField: {
|
|
63
77
|
type: StringConstructor;
|
|
64
78
|
required: boolean;
|
|
65
79
|
};
|
|
80
|
+
valueField: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: null;
|
|
83
|
+
};
|
|
66
84
|
placeholder: {
|
|
67
85
|
type: StringConstructor;
|
|
68
86
|
default: string;
|
|
@@ -99,21 +117,32 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
99
117
|
type: BooleanConstructor;
|
|
100
118
|
default: boolean;
|
|
101
119
|
};
|
|
120
|
+
validation: {
|
|
121
|
+
type: import("vue").PropType<KTreePickerProps["validation"]>;
|
|
122
|
+
default: null;
|
|
123
|
+
validator: (value: string) => boolean;
|
|
124
|
+
};
|
|
125
|
+
validationText: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
102
129
|
}>> & Readonly<{
|
|
103
130
|
onChange?: ((value: any) => any) | undefined;
|
|
104
131
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
105
132
|
}>, {
|
|
133
|
+
parentKey: string;
|
|
134
|
+
idKey: string;
|
|
106
135
|
disabled: boolean;
|
|
107
136
|
loading: boolean;
|
|
137
|
+
validation: "error" | "success" | "warning" | null | undefined;
|
|
138
|
+
validationText: string;
|
|
108
139
|
modelValue: any;
|
|
109
|
-
dataProvider: any;
|
|
110
|
-
placeholder: string;
|
|
111
140
|
searchbox: boolean;
|
|
141
|
+
placeholder: string;
|
|
112
142
|
closeOnSelect: boolean;
|
|
113
143
|
multiSelect: boolean;
|
|
144
|
+
valueField: string;
|
|
114
145
|
iconField: string;
|
|
115
|
-
idKey: string;
|
|
116
|
-
parentKey: string;
|
|
117
146
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
118
147
|
declare const _default: typeof __VLS_export;
|
|
119
148
|
export default _default;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ADataProvider } from '@katlux/providers';
|
|
2
|
+
import { type PropType } from 'vue';
|
|
2
3
|
export interface KTreePickerProps {
|
|
3
4
|
modelValue?: any;
|
|
4
5
|
dataProvider: ADataProvider;
|
|
5
6
|
labelField: string;
|
|
7
|
+
valueField?: string;
|
|
6
8
|
placeholder?: string;
|
|
7
9
|
disabled?: boolean;
|
|
8
10
|
closeOnSelect?: boolean;
|
|
@@ -12,6 +14,8 @@ export interface KTreePickerProps {
|
|
|
12
14
|
loading?: boolean;
|
|
13
15
|
multiSelect?: boolean;
|
|
14
16
|
searchbox?: boolean;
|
|
17
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
18
|
+
validationText?: string;
|
|
15
19
|
}
|
|
16
20
|
export declare const KTreePickerDefaultProps: {
|
|
17
21
|
modelValue: {
|
|
@@ -26,6 +30,10 @@ export declare const KTreePickerDefaultProps: {
|
|
|
26
30
|
type: StringConstructor;
|
|
27
31
|
required: boolean;
|
|
28
32
|
};
|
|
33
|
+
valueField: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: null;
|
|
36
|
+
};
|
|
29
37
|
placeholder: {
|
|
30
38
|
type: StringConstructor;
|
|
31
39
|
default: string;
|
|
@@ -62,6 +70,15 @@ export declare const KTreePickerDefaultProps: {
|
|
|
62
70
|
type: BooleanConstructor;
|
|
63
71
|
default: boolean;
|
|
64
72
|
};
|
|
73
|
+
validation: {
|
|
74
|
+
type: PropType<KTreePickerProps["validation"]>;
|
|
75
|
+
default: null;
|
|
76
|
+
validator: (value: string) => boolean;
|
|
77
|
+
};
|
|
78
|
+
validationText: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
65
82
|
};
|
|
66
83
|
export declare function useKTreePickerLogic(props: KTreePickerProps, emit: any): {
|
|
67
84
|
selectedItems: import("vue").Ref<import("@katlux/providers").TDataRow[] | null, import("@katlux/providers").TDataRow[] | null>;
|
|
@@ -11,6 +11,10 @@ export const KTreePickerDefaultProps = {
|
|
|
11
11
|
type: String,
|
|
12
12
|
required: true
|
|
13
13
|
},
|
|
14
|
+
valueField: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: null
|
|
17
|
+
},
|
|
14
18
|
placeholder: {
|
|
15
19
|
type: String,
|
|
16
20
|
default: "Select..."
|
|
@@ -47,11 +51,24 @@ export const KTreePickerDefaultProps = {
|
|
|
47
51
|
searchbox: {
|
|
48
52
|
type: Boolean,
|
|
49
53
|
default: false
|
|
54
|
+
},
|
|
55
|
+
validation: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: null,
|
|
58
|
+
validator: (value) => [null, "success", "warning", "error"].includes(value)
|
|
59
|
+
},
|
|
60
|
+
validationText: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: ""
|
|
50
63
|
}
|
|
51
64
|
};
|
|
52
65
|
import { useKComboboxLogic } from "../KCombobox/KCombobox.logic.js";
|
|
53
66
|
export function useKTreePickerLogic(props, emit) {
|
|
54
|
-
const
|
|
67
|
+
const logicProps = {
|
|
68
|
+
...props,
|
|
69
|
+
valueField: props.valueField || props.idKey
|
|
70
|
+
};
|
|
71
|
+
const comboboxLogic = useKComboboxLogic(logicProps, emit);
|
|
55
72
|
return {
|
|
56
73
|
...comboboxLogic
|
|
57
74
|
};
|
|
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}>> & Readonly<{}>, {
|
|
84
|
+
parentKey: string;
|
|
85
|
+
idKey: string;
|
|
86
|
+
expandedByDefault: boolean;
|
|
84
87
|
bulkActions: import("@katlux/providers").IKDatatableAction[];
|
|
85
88
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
86
89
|
cellSlots: Record<string, any>;
|
|
87
90
|
headerSlots: Record<string, any>;
|
|
88
91
|
treeColumnIndex: number;
|
|
89
|
-
idKey: string;
|
|
90
|
-
parentKey: string;
|
|
91
|
-
expandedByDefault: boolean;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
93
|
declare const _default: typeof __VLS_export;
|
|
94
94
|
export default _default;
|
|
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}>> & Readonly<{}>, {
|
|
84
|
+
parentKey: string;
|
|
85
|
+
idKey: string;
|
|
86
|
+
expandedByDefault: boolean;
|
|
84
87
|
bulkActions: import("@katlux/providers").IKDatatableAction[];
|
|
85
88
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
86
89
|
cellSlots: Record<string, any>;
|
|
87
90
|
headerSlots: Record<string, any>;
|
|
88
91
|
treeColumnIndex: number;
|
|
89
|
-
idKey: string;
|
|
90
|
-
parentKey: string;
|
|
91
|
-
expandedByDefault: boolean;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
93
|
declare const _default: typeof __VLS_export;
|
|
94
94
|
export default _default;
|
|
@@ -267,4 +267,31 @@ body {
|
|
|
267
267
|
background-color: var(--layout-content-bg);
|
|
268
268
|
font-family: var(--font-family);
|
|
269
269
|
color: var(--font-color-primary);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.validation-text {
|
|
273
|
+
font-size: var(--font-size-xs);
|
|
274
|
+
margin-top: 4px;
|
|
275
|
+
display: block;
|
|
276
|
+
}
|
|
277
|
+
.validation-text.is-success {
|
|
278
|
+
color: var(--success-color);
|
|
279
|
+
}
|
|
280
|
+
.validation-text.is-warning {
|
|
281
|
+
color: var(--warning-color);
|
|
282
|
+
}
|
|
283
|
+
.validation-text.is-error {
|
|
284
|
+
color: var(--error-color);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.is-success {
|
|
288
|
+
border-color: var(--success-color) !important;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.is-warning {
|
|
292
|
+
border-color: var(--warning-color) !important;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.is-error {
|
|
296
|
+
border-color: var(--error-color) !important;
|
|
270
297
|
}
|
|
@@ -9,4 +9,34 @@ body {
|
|
|
9
9
|
background-color: var(--layout-content-bg);
|
|
10
10
|
font-family: var(--font-family);
|
|
11
11
|
color: var(--font-color-primary);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.validation-text {
|
|
15
|
+
font-size: var(--font-size-xs);
|
|
16
|
+
margin-top: 4px;
|
|
17
|
+
display: block;
|
|
18
|
+
|
|
19
|
+
&.is-success {
|
|
20
|
+
color: var(--success-color);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.is-warning {
|
|
24
|
+
color: var(--warning-color);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.is-error {
|
|
28
|
+
color: var(--error-color);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.is-success {
|
|
33
|
+
border-color: var(--success-color) !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.is-warning {
|
|
37
|
+
border-color: var(--warning-color) !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.is-error {
|
|
41
|
+
border-color: var(--error-color) !important;
|
|
12
42
|
}
|
|
@@ -2,6 +2,8 @@ type __VLS_Props = {
|
|
|
2
2
|
model: any;
|
|
3
3
|
checkboxValue: any;
|
|
4
4
|
isDisabled: boolean;
|
|
5
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
6
|
+
validationText?: string;
|
|
5
7
|
};
|
|
6
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
9
|
"update:model": (value: any) => any;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
.KCheckbox-wrapper
|
|
3
|
+
label.KCheckbox
|
|
4
|
+
input(type="checkbox" v-model="internalModel" :value="checkboxValue" :disabled="isDisabled")
|
|
5
|
+
.icon-container(:class="validation ? `is-${validation}` : ''")
|
|
6
|
+
KIcon.icon(iconname="check")
|
|
7
|
+
span
|
|
8
|
+
slot
|
|
9
|
+
span.validation-text(v-if="validation && ['success', 'warning', 'error'].includes(validation) && validationText" :class="`is-${validation}`") {{ validationText }}
|
|
8
10
|
</template>
|
|
9
11
|
|
|
10
12
|
<script lang="ts" setup>
|
|
@@ -15,6 +17,8 @@ const props = defineProps<{
|
|
|
15
17
|
model: any
|
|
16
18
|
checkboxValue: any
|
|
17
19
|
isDisabled: boolean
|
|
20
|
+
validation?: 'success' | 'warning' | 'error' | null
|
|
21
|
+
validationText?: string
|
|
18
22
|
}>()
|
|
19
23
|
|
|
20
24
|
const emit = defineEmits<{
|
|
@@ -2,6 +2,8 @@ type __VLS_Props = {
|
|
|
2
2
|
model: any;
|
|
3
3
|
checkboxValue: any;
|
|
4
4
|
isDisabled: boolean;
|
|
5
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
6
|
+
validationText?: string;
|
|
5
7
|
};
|
|
6
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
9
|
"update:model": (value: any) => any;
|
|
@@ -14,6 +14,8 @@ type __VLS_Props = {
|
|
|
14
14
|
isSelected: (option: ComboboxItem) => boolean;
|
|
15
15
|
loading: boolean;
|
|
16
16
|
teleportTo?: string;
|
|
17
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
18
|
+
validationText?: string;
|
|
17
19
|
};
|
|
18
20
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
21
|
"update:searchtext": (value: string) => any;
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
|
-
.KCombobox
|
|
3
|
-
|
|
4
|
-
KGrid(align="center"
|
|
5
|
-
.KCombobox__selected-content
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
.KCombobox-wrapper
|
|
3
|
+
.KCombobox(ref="activatorRef" :class="{ disabled: disabled, open: isOptionsOpen, ... (validation ? { [`is-${validation}`]: true } : {}) }")
|
|
4
|
+
KGrid(@click.stop="toggleDropdown" align="center" justify="space-between").KCombobox__selected-content-container
|
|
5
|
+
KGrid(align="center" wrap="no-wrap").KCombobox__selected-content
|
|
6
|
+
.KCombobox__selected-content-item(
|
|
7
|
+
v-if="getSelectedContent().length>0"
|
|
8
|
+
v-for="(item, index) in getSelectedContent()"
|
|
9
|
+
:key="item.value || item.id || index"
|
|
10
|
+
) {{ item[labelField] }}
|
|
11
|
+
.KCombobox__selected-content-placeholder(v-else) {{placeholder}}
|
|
12
|
+
KIcon(iconname="chevron" width="20" height="20").chevron
|
|
13
|
+
KDropdown(v-model:isOpen="isOptionsOpenModel" :anchorEl="activatorRef" fullWidth :teleportTo="teleportTo").KCombobox__options
|
|
14
|
+
slot
|
|
15
|
+
KComboboxList(
|
|
16
|
+
:searchbox="searchbox"
|
|
17
|
+
v-model:searchtext="searchtextModel"
|
|
18
|
+
:loading="loading"
|
|
19
|
+
:filteredOptions="filteredOptions"
|
|
20
|
+
:labelField="labelField"
|
|
21
|
+
:selectItem="selectItem"
|
|
22
|
+
:isSelected="isSelected"
|
|
23
|
+
)
|
|
24
|
+
span.validation-text(v-if="validation && ['success', 'warning', 'error'].includes(validation) && validationText" :class="`is-${validation}`") {{ validationText }}
|
|
23
25
|
</template>
|
|
24
26
|
|
|
25
27
|
<script lang="ts" setup>
|
|
@@ -43,6 +45,8 @@ const props = defineProps<{
|
|
|
43
45
|
isSelected: (option: ComboboxItem) => boolean
|
|
44
46
|
loading: boolean
|
|
45
47
|
teleportTo?: string
|
|
48
|
+
validation?: 'success' | 'warning' | 'error' | null
|
|
49
|
+
validationText?: string
|
|
46
50
|
}>()
|
|
47
51
|
|
|
48
52
|
const emit = defineEmits<{
|
|
@@ -14,6 +14,8 @@ type __VLS_Props = {
|
|
|
14
14
|
isSelected: (option: ComboboxItem) => boolean;
|
|
15
15
|
loading: boolean;
|
|
16
16
|
teleportTo?: string;
|
|
17
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
18
|
+
validationText?: string;
|
|
17
19
|
};
|
|
18
20
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
21
|
"update:searchtext": (value: string) => any;
|
|
@@ -15,6 +15,8 @@ type __VLS_Props = {
|
|
|
15
15
|
searchbox: boolean;
|
|
16
16
|
showClear: boolean;
|
|
17
17
|
teleportTo?: string;
|
|
18
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
19
|
+
validationText?: string;
|
|
18
20
|
};
|
|
19
21
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
22
|
"update:selectionValue": (value: any) => any;
|