@katlux/toolkit 0.1.0-beta.57 → 0.1.0-beta.59
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/KCombobox/KCombobox.global.d.vue.ts +18 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +5 -1
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +18 -0
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +10 -0
- package/dist/runtime/components/KCombobox/KCombobox.logic.js +8 -0
- package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +0 -20
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +0 -12
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +9 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +2 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +9 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +5 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +4 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +9 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +2 -1
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +9 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +5 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +4 -0
- package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +1 -1
- package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +1 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +20 -2
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +3 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +20 -2
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +10 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +8 -0
- 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/components/KCombobox/KCombobox.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +18 -12
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue +2 -1
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +2 -1
- 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 +3 -1
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue +2 -1
- package/dist/runtime/presets/default/components/KTree/KTree.vue +1 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +22 -20
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +2 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -22,7 +22,7 @@ export interface KButtonEmits {
|
|
|
22
22
|
export declare function useKButtonLogic(props: KButtonProps, emit: KButtonEmits): {
|
|
23
23
|
isLink: import("vue").ComputedRef<boolean>;
|
|
24
24
|
isDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
25
|
-
buttonClasses: import("vue").ComputedRef<("info" | "default" | "primary" | "danger" | "success" | "warning" | "light" | "dark" | "
|
|
25
|
+
buttonClasses: import("vue").ComputedRef<("info" | "default" | "small" | "primary" | "danger" | "success" | "warning" | "light" | "dark" | "large" | "medium" | {
|
|
26
26
|
disabled: boolean | undefined;
|
|
27
27
|
})[]>;
|
|
28
28
|
onClick: () => void;
|
|
@@ -28,6 +28,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
28
28
|
type: BooleanConstructor;
|
|
29
29
|
default: boolean;
|
|
30
30
|
};
|
|
31
|
+
searchPlaceholder: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
31
35
|
visibleFields: {
|
|
32
36
|
type: import("vue").PropType<Array<String>>;
|
|
33
37
|
default: null;
|
|
@@ -61,6 +65,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
61
65
|
type: BooleanConstructor;
|
|
62
66
|
default: undefined;
|
|
63
67
|
};
|
|
68
|
+
fullWidth: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
64
72
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
65
73
|
"update:modelValue": (value: any) => any;
|
|
66
74
|
"update:isOptionsOpen": (value: boolean) => any;
|
|
@@ -93,6 +101,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
93
101
|
type: BooleanConstructor;
|
|
94
102
|
default: boolean;
|
|
95
103
|
};
|
|
104
|
+
searchPlaceholder: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
96
108
|
visibleFields: {
|
|
97
109
|
type: import("vue").PropType<Array<String>>;
|
|
98
110
|
default: null;
|
|
@@ -126,6 +138,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
126
138
|
type: BooleanConstructor;
|
|
127
139
|
default: undefined;
|
|
128
140
|
};
|
|
141
|
+
fullWidth: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
129
145
|
}>> & Readonly<{
|
|
130
146
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
131
147
|
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
@@ -135,9 +151,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
135
151
|
validationText: string;
|
|
136
152
|
modelValue: any;
|
|
137
153
|
searchbox: boolean;
|
|
154
|
+
searchPlaceholder: string;
|
|
138
155
|
isOptionsOpen: boolean;
|
|
139
156
|
placeholder: string;
|
|
140
157
|
teleportTo: string;
|
|
158
|
+
fullWidth: boolean;
|
|
141
159
|
closeOnSelect: boolean;
|
|
142
160
|
multiSelect: boolean;
|
|
143
161
|
maxSelectedDisplay: string | number | boolean;
|
|
@@ -27,6 +27,7 @@ const templateProps = computed(() => ({
|
|
|
27
27
|
labelField: props.labelField,
|
|
28
28
|
placeholder: props.placeholder,
|
|
29
29
|
searchbox: props.searchbox,
|
|
30
|
+
searchPlaceholder: props.searchPlaceholder,
|
|
30
31
|
searchtext: searchtext.value,
|
|
31
32
|
filteredOptions: filteredOptions.value,
|
|
32
33
|
getSelectedContent,
|
|
@@ -38,7 +39,8 @@ const templateProps = computed(() => ({
|
|
|
38
39
|
teleportTo: props.teleportTo,
|
|
39
40
|
valueField: props.valueField,
|
|
40
41
|
validation: props.validation,
|
|
41
|
-
validationText: props.validationText
|
|
42
|
+
validationText: props.validationText,
|
|
43
|
+
fullWidth: props.fullWidth
|
|
42
44
|
}));
|
|
43
45
|
function updateSearchText(val) {
|
|
44
46
|
searchtext.value = val;
|
|
@@ -50,4 +52,6 @@ function updateIsOptionsOpen(val) {
|
|
|
50
52
|
|
|
51
53
|
<template lang="pug">
|
|
52
54
|
component(:is="presetComponent" v-bind="{...templateProps, ...$attrs}" @update:searchtext="updateSearchText" @update:isOptionsOpen="updateIsOptionsOpen")
|
|
55
|
+
template(v-for="(_, slot) in $slots" #[slot]="scope")
|
|
56
|
+
slot(:name="slot" v-bind="scope")
|
|
53
57
|
</template>
|
|
@@ -28,6 +28,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
28
28
|
type: BooleanConstructor;
|
|
29
29
|
default: boolean;
|
|
30
30
|
};
|
|
31
|
+
searchPlaceholder: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
31
35
|
visibleFields: {
|
|
32
36
|
type: import("vue").PropType<Array<String>>;
|
|
33
37
|
default: null;
|
|
@@ -61,6 +65,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
61
65
|
type: BooleanConstructor;
|
|
62
66
|
default: undefined;
|
|
63
67
|
};
|
|
68
|
+
fullWidth: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
64
72
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
65
73
|
"update:modelValue": (value: any) => any;
|
|
66
74
|
"update:isOptionsOpen": (value: boolean) => any;
|
|
@@ -93,6 +101,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
93
101
|
type: BooleanConstructor;
|
|
94
102
|
default: boolean;
|
|
95
103
|
};
|
|
104
|
+
searchPlaceholder: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
96
108
|
visibleFields: {
|
|
97
109
|
type: import("vue").PropType<Array<String>>;
|
|
98
110
|
default: null;
|
|
@@ -126,6 +138,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
126
138
|
type: BooleanConstructor;
|
|
127
139
|
default: undefined;
|
|
128
140
|
};
|
|
141
|
+
fullWidth: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
129
145
|
}>> & Readonly<{
|
|
130
146
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
131
147
|
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
@@ -135,9 +151,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
135
151
|
validationText: string;
|
|
136
152
|
modelValue: any;
|
|
137
153
|
searchbox: boolean;
|
|
154
|
+
searchPlaceholder: string;
|
|
138
155
|
isOptionsOpen: boolean;
|
|
139
156
|
placeholder: string;
|
|
140
157
|
teleportTo: string;
|
|
158
|
+
fullWidth: boolean;
|
|
141
159
|
closeOnSelect: boolean;
|
|
142
160
|
multiSelect: boolean;
|
|
143
161
|
maxSelectedDisplay: string | number | boolean;
|
|
@@ -10,12 +10,14 @@ export interface KComboboxProps {
|
|
|
10
10
|
maxSelectedDisplay?: number | string | false;
|
|
11
11
|
placeholder?: string;
|
|
12
12
|
searchbox?: boolean;
|
|
13
|
+
searchPlaceholder?: string;
|
|
13
14
|
visibleFields?: Array<String> | null;
|
|
14
15
|
labelField: string;
|
|
15
16
|
valueField?: string;
|
|
16
17
|
modelValue?: any;
|
|
17
18
|
teleportTo?: string;
|
|
18
19
|
isOptionsOpen?: boolean;
|
|
20
|
+
fullWidth?: boolean;
|
|
19
21
|
validation?: 'success' | 'warning' | 'error' | null;
|
|
20
22
|
validationText?: string;
|
|
21
23
|
}
|
|
@@ -52,6 +54,10 @@ export declare const KComboboxDefaultProps: {
|
|
|
52
54
|
type: BooleanConstructor;
|
|
53
55
|
default: boolean;
|
|
54
56
|
};
|
|
57
|
+
searchPlaceholder: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
55
61
|
visibleFields: {
|
|
56
62
|
type: PropType<Array<String>>;
|
|
57
63
|
default: null;
|
|
@@ -85,6 +91,10 @@ export declare const KComboboxDefaultProps: {
|
|
|
85
91
|
type: BooleanConstructor;
|
|
86
92
|
default: undefined;
|
|
87
93
|
};
|
|
94
|
+
fullWidth: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
88
98
|
};
|
|
89
99
|
export declare function useKComboboxLogic(props: KComboboxProps, emit: KComboboxEmits): {
|
|
90
100
|
selectedItems: import("vue").Ref<TDataRow[] | null, TDataRow[] | null>;
|
|
@@ -31,6 +31,10 @@ export const KComboboxDefaultProps = {
|
|
|
31
31
|
type: Boolean,
|
|
32
32
|
default: false
|
|
33
33
|
},
|
|
34
|
+
searchPlaceholder: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "Search..."
|
|
37
|
+
},
|
|
34
38
|
visibleFields: {
|
|
35
39
|
type: Array,
|
|
36
40
|
default: null
|
|
@@ -63,6 +67,10 @@ export const KComboboxDefaultProps = {
|
|
|
63
67
|
isOptionsOpen: {
|
|
64
68
|
type: Boolean,
|
|
65
69
|
default: void 0
|
|
70
|
+
},
|
|
71
|
+
fullWidth: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: true
|
|
66
74
|
}
|
|
67
75
|
};
|
|
68
76
|
export function useKComboboxLogic(props, emit) {
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ADataProvider } from '@katlux/providers';
|
|
2
|
-
export interface KDataIteratorProps {
|
|
3
|
-
dataProvider: ADataProvider;
|
|
4
|
-
visibleFields?: Array<string> | null;
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
search?: string;
|
|
7
|
-
itemsPerPage?: number;
|
|
8
|
-
page?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const KDataIteratorDefaultProps: {
|
|
11
|
-
visibleFields: null;
|
|
12
|
-
loading: boolean;
|
|
13
|
-
search: string;
|
|
14
|
-
itemsPerPage: number;
|
|
15
|
-
page: number;
|
|
16
|
-
};
|
|
17
|
-
export declare function useKDataIteratorLogic(props: KDataIteratorProps): {
|
|
18
|
-
selectedRows: import("vue").Ref<any[], any[]>;
|
|
19
|
-
selectAll: import("vue").Ref<boolean, boolean>;
|
|
20
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ADataProvider } from '@katlux/providers';
|
|
2
|
-
export interface KDatatableProps {
|
|
3
|
-
dataProvider: ADataProvider;
|
|
4
|
-
visibleFields?: Array<string> | null;
|
|
5
|
-
}
|
|
6
|
-
export declare const KDatatableDefaultProps: {
|
|
7
|
-
visibleFields: null;
|
|
8
|
-
};
|
|
9
|
-
export declare function useKDatatableLogic(props: KDatatableProps): {
|
|
10
|
-
selectedRows: import("vue").Ref<any[], any[]>;
|
|
11
|
-
selectAll: import("vue").Ref<boolean, boolean>;
|
|
12
|
-
};
|
|
@@ -32,6 +32,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
32
32
|
type: import("vue").PropType<string>;
|
|
33
33
|
default: undefined;
|
|
34
34
|
};
|
|
35
|
+
placeholder: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
35
39
|
validation: {
|
|
36
40
|
type: import("vue").PropType<KDatePickerProps["validation"]>;
|
|
37
41
|
default: null;
|
|
@@ -84,6 +88,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
84
88
|
type: import("vue").PropType<string>;
|
|
85
89
|
default: undefined;
|
|
86
90
|
};
|
|
91
|
+
placeholder: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
87
95
|
validation: {
|
|
88
96
|
type: import("vue").PropType<KDatePickerProps["validation"]>;
|
|
89
97
|
default: null;
|
|
@@ -109,6 +117,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
109
117
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
110
118
|
validationText: string;
|
|
111
119
|
modelValue: string | Date;
|
|
120
|
+
placeholder: string;
|
|
112
121
|
teleportTo: string;
|
|
113
122
|
showClear: boolean;
|
|
114
123
|
align: "left" | "right" | undefined;
|
|
@@ -29,7 +29,8 @@ const templateProps = computed(() => ({
|
|
|
29
29
|
teleportTo: props.teleportTo,
|
|
30
30
|
validation: props.validation,
|
|
31
31
|
validationText: props.validationText,
|
|
32
|
-
align: props.align
|
|
32
|
+
align: props.align,
|
|
33
|
+
placeholder: props.placeholder
|
|
33
34
|
}));
|
|
34
35
|
const handleClear = () => {
|
|
35
36
|
_date.value = "";
|
|
@@ -32,6 +32,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
32
32
|
type: import("vue").PropType<string>;
|
|
33
33
|
default: undefined;
|
|
34
34
|
};
|
|
35
|
+
placeholder: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
35
39
|
validation: {
|
|
36
40
|
type: import("vue").PropType<KDatePickerProps["validation"]>;
|
|
37
41
|
default: null;
|
|
@@ -84,6 +88,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
84
88
|
type: import("vue").PropType<string>;
|
|
85
89
|
default: undefined;
|
|
86
90
|
};
|
|
91
|
+
placeholder: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
87
95
|
validation: {
|
|
88
96
|
type: import("vue").PropType<KDatePickerProps["validation"]>;
|
|
89
97
|
default: null;
|
|
@@ -109,6 +117,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
109
117
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
110
118
|
validationText: string;
|
|
111
119
|
modelValue: string | Date;
|
|
120
|
+
placeholder: string;
|
|
112
121
|
teleportTo: string;
|
|
113
122
|
showClear: boolean;
|
|
114
123
|
align: "left" | "right" | undefined;
|
|
@@ -9,6 +9,7 @@ export interface KDatePickerProps {
|
|
|
9
9
|
calendarDefinedDays: IDefinedDay[];
|
|
10
10
|
calendarMarkedDays: IMarkedDay[];
|
|
11
11
|
teleportTo?: string;
|
|
12
|
+
placeholder?: string;
|
|
12
13
|
validation?: 'success' | 'warning' | 'error' | null;
|
|
13
14
|
validationText?: string;
|
|
14
15
|
align?: 'left' | 'right';
|
|
@@ -46,6 +47,10 @@ export declare const KDatePickerDefaultProps: {
|
|
|
46
47
|
type: PropType<string>;
|
|
47
48
|
default: undefined;
|
|
48
49
|
};
|
|
50
|
+
placeholder: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
49
54
|
validation: {
|
|
50
55
|
type: PropType<KDatePickerProps["validation"]>;
|
|
51
56
|
default: null;
|
|
@@ -40,6 +40,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
40
40
|
type: import("vue").PropType<string>;
|
|
41
41
|
default: undefined;
|
|
42
42
|
};
|
|
43
|
+
placeholder: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
43
47
|
validation: {
|
|
44
48
|
type: import("vue").PropType<KDateTimePickerProps["validation"]>;
|
|
45
49
|
default: null;
|
|
@@ -95,6 +99,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
95
99
|
type: import("vue").PropType<string>;
|
|
96
100
|
default: undefined;
|
|
97
101
|
};
|
|
102
|
+
placeholder: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: undefined;
|
|
105
|
+
};
|
|
98
106
|
validation: {
|
|
99
107
|
type: import("vue").PropType<KDateTimePickerProps["validation"]>;
|
|
100
108
|
default: null;
|
|
@@ -115,6 +123,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
115
123
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
116
124
|
validationText: string;
|
|
117
125
|
modelValue: string | Date;
|
|
126
|
+
placeholder: string;
|
|
118
127
|
teleportTo: string;
|
|
119
128
|
showClear: boolean;
|
|
120
129
|
format: string;
|
|
@@ -34,7 +34,8 @@ const templateProps = computed(() => ({
|
|
|
34
34
|
timeSelected,
|
|
35
35
|
teleportTo: props.teleportTo,
|
|
36
36
|
validation: props.validation,
|
|
37
|
-
validationText: props.validationText
|
|
37
|
+
validationText: props.validationText,
|
|
38
|
+
placeholder: props.placeholder
|
|
38
39
|
}));
|
|
39
40
|
const handleClear = () => {
|
|
40
41
|
_date.value = "";
|
|
@@ -40,6 +40,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
40
40
|
type: import("vue").PropType<string>;
|
|
41
41
|
default: undefined;
|
|
42
42
|
};
|
|
43
|
+
placeholder: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
43
47
|
validation: {
|
|
44
48
|
type: import("vue").PropType<KDateTimePickerProps["validation"]>;
|
|
45
49
|
default: null;
|
|
@@ -95,6 +99,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
95
99
|
type: import("vue").PropType<string>;
|
|
96
100
|
default: undefined;
|
|
97
101
|
};
|
|
102
|
+
placeholder: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: undefined;
|
|
105
|
+
};
|
|
98
106
|
validation: {
|
|
99
107
|
type: import("vue").PropType<KDateTimePickerProps["validation"]>;
|
|
100
108
|
default: null;
|
|
@@ -115,6 +123,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
115
123
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
116
124
|
validationText: string;
|
|
117
125
|
modelValue: string | Date;
|
|
126
|
+
placeholder: string;
|
|
118
127
|
teleportTo: string;
|
|
119
128
|
showClear: boolean;
|
|
120
129
|
format: string;
|
|
@@ -11,6 +11,7 @@ export interface KDateTimePickerProps {
|
|
|
11
11
|
calendarDefinedDays?: IDefinedDay[];
|
|
12
12
|
calendarMarkedDays?: IMarkedDay[];
|
|
13
13
|
teleportTo?: string;
|
|
14
|
+
placeholder?: string;
|
|
14
15
|
validation?: 'success' | 'warning' | 'error' | null;
|
|
15
16
|
validationText?: string;
|
|
16
17
|
}
|
|
@@ -55,6 +56,10 @@ export declare const KDateTimePickerDefaultProps: {
|
|
|
55
56
|
type: PropType<string>;
|
|
56
57
|
default: undefined;
|
|
57
58
|
};
|
|
59
|
+
placeholder: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
58
63
|
validation: {
|
|
59
64
|
type: PropType<KDateTimePickerProps["validation"]>;
|
|
60
65
|
default: null;
|
|
@@ -47,8 +47,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
47
47
|
}>, {
|
|
48
48
|
isOpen: boolean;
|
|
49
49
|
teleportTo: string;
|
|
50
|
-
align: "left" | "right";
|
|
51
50
|
fullWidth: boolean;
|
|
51
|
+
align: "left" | "right";
|
|
52
52
|
anchorEl: HTMLElement;
|
|
53
53
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
54
|
declare const _default: typeof __VLS_export;
|
|
@@ -47,8 +47,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
47
47
|
}>, {
|
|
48
48
|
isOpen: boolean;
|
|
49
49
|
teleportTo: string;
|
|
50
|
-
align: "left" | "right";
|
|
51
50
|
fullWidth: boolean;
|
|
51
|
+
align: "left" | "right";
|
|
52
52
|
anchorEl: HTMLElement;
|
|
53
53
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
54
|
declare const _default: typeof __VLS_export;
|
|
@@ -52,6 +52,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
52
52
|
type: BooleanConstructor;
|
|
53
53
|
default: boolean;
|
|
54
54
|
};
|
|
55
|
+
searchPlaceholder: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
55
59
|
validation: {
|
|
56
60
|
type: import("vue").PropType<KTreePickerProps["validation"]>;
|
|
57
61
|
default: null;
|
|
@@ -65,6 +69,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
65
69
|
type: BooleanConstructor;
|
|
66
70
|
default: undefined;
|
|
67
71
|
};
|
|
72
|
+
fullWidth: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
68
76
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
69
77
|
change: (value: any) => any;
|
|
70
78
|
"update:modelValue": (value: any) => any;
|
|
@@ -122,6 +130,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
122
130
|
type: BooleanConstructor;
|
|
123
131
|
default: boolean;
|
|
124
132
|
};
|
|
133
|
+
searchPlaceholder: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
125
137
|
validation: {
|
|
126
138
|
type: import("vue").PropType<KTreePickerProps["validation"]>;
|
|
127
139
|
default: null;
|
|
@@ -135,25 +147,31 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
135
147
|
type: BooleanConstructor;
|
|
136
148
|
default: undefined;
|
|
137
149
|
};
|
|
150
|
+
fullWidth: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
138
154
|
}>> & Readonly<{
|
|
139
155
|
onChange?: ((value: any) => any) | undefined;
|
|
140
156
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
141
157
|
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
142
158
|
}>, {
|
|
143
|
-
parentKey: string;
|
|
144
|
-
idKey: string;
|
|
145
159
|
disabled: boolean;
|
|
146
160
|
loading: boolean;
|
|
147
161
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
148
162
|
validationText: string;
|
|
149
163
|
modelValue: any;
|
|
150
164
|
searchbox: boolean;
|
|
165
|
+
searchPlaceholder: string;
|
|
151
166
|
isOptionsOpen: boolean;
|
|
152
167
|
placeholder: string;
|
|
168
|
+
fullWidth: boolean;
|
|
153
169
|
closeOnSelect: boolean;
|
|
154
170
|
multiSelect: boolean;
|
|
155
171
|
valueField: string;
|
|
156
172
|
iconField: string;
|
|
173
|
+
idKey: string;
|
|
174
|
+
parentKey: string;
|
|
157
175
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
158
176
|
declare const _default: typeof __VLS_export;
|
|
159
177
|
export default _default;
|
|
@@ -34,6 +34,7 @@ const templateProps = computed(() => ({
|
|
|
34
34
|
labelField: props.labelField,
|
|
35
35
|
placeholder: props.placeholder,
|
|
36
36
|
searchbox: props.searchbox,
|
|
37
|
+
searchPlaceholder: props.searchPlaceholder,
|
|
37
38
|
searchtext: searchtext.value,
|
|
38
39
|
multiSelect: props.multiSelect,
|
|
39
40
|
filteredOptions: filteredOptions.value,
|
|
@@ -46,7 +47,8 @@ const templateProps = computed(() => ({
|
|
|
46
47
|
closeOnSelect: props.closeOnSelect,
|
|
47
48
|
valueField: props.valueField || props.idKey,
|
|
48
49
|
validation: props.validation,
|
|
49
|
-
validationText: props.validationText
|
|
50
|
+
validationText: props.validationText,
|
|
51
|
+
fullWidth: props.fullWidth
|
|
50
52
|
}));
|
|
51
53
|
function onUpdateModelValue(val) {
|
|
52
54
|
emit("update:modelValue", val);
|
|
@@ -52,6 +52,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
52
52
|
type: BooleanConstructor;
|
|
53
53
|
default: boolean;
|
|
54
54
|
};
|
|
55
|
+
searchPlaceholder: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
55
59
|
validation: {
|
|
56
60
|
type: import("vue").PropType<KTreePickerProps["validation"]>;
|
|
57
61
|
default: null;
|
|
@@ -65,6 +69,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
65
69
|
type: BooleanConstructor;
|
|
66
70
|
default: undefined;
|
|
67
71
|
};
|
|
72
|
+
fullWidth: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
68
76
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
69
77
|
change: (value: any) => any;
|
|
70
78
|
"update:modelValue": (value: any) => any;
|
|
@@ -122,6 +130,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
122
130
|
type: BooleanConstructor;
|
|
123
131
|
default: boolean;
|
|
124
132
|
};
|
|
133
|
+
searchPlaceholder: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
125
137
|
validation: {
|
|
126
138
|
type: import("vue").PropType<KTreePickerProps["validation"]>;
|
|
127
139
|
default: null;
|
|
@@ -135,25 +147,31 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
135
147
|
type: BooleanConstructor;
|
|
136
148
|
default: undefined;
|
|
137
149
|
};
|
|
150
|
+
fullWidth: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
138
154
|
}>> & Readonly<{
|
|
139
155
|
onChange?: ((value: any) => any) | undefined;
|
|
140
156
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
141
157
|
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
142
158
|
}>, {
|
|
143
|
-
parentKey: string;
|
|
144
|
-
idKey: string;
|
|
145
159
|
disabled: boolean;
|
|
146
160
|
loading: boolean;
|
|
147
161
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
148
162
|
validationText: string;
|
|
149
163
|
modelValue: any;
|
|
150
164
|
searchbox: boolean;
|
|
165
|
+
searchPlaceholder: string;
|
|
151
166
|
isOptionsOpen: boolean;
|
|
152
167
|
placeholder: string;
|
|
168
|
+
fullWidth: boolean;
|
|
153
169
|
closeOnSelect: boolean;
|
|
154
170
|
multiSelect: boolean;
|
|
155
171
|
valueField: string;
|
|
156
172
|
iconField: string;
|
|
173
|
+
idKey: string;
|
|
174
|
+
parentKey: string;
|
|
157
175
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
158
176
|
declare const _default: typeof __VLS_export;
|
|
159
177
|
export default _default;
|
|
@@ -14,9 +14,11 @@ export interface KTreePickerProps {
|
|
|
14
14
|
loading?: boolean;
|
|
15
15
|
multiSelect?: boolean;
|
|
16
16
|
searchbox?: boolean;
|
|
17
|
+
searchPlaceholder?: string;
|
|
17
18
|
validation?: 'success' | 'warning' | 'error' | null;
|
|
18
19
|
validationText?: string;
|
|
19
20
|
isOptionsOpen?: boolean;
|
|
21
|
+
fullWidth?: boolean;
|
|
20
22
|
}
|
|
21
23
|
export declare const KTreePickerDefaultProps: {
|
|
22
24
|
modelValue: {
|
|
@@ -71,6 +73,10 @@ export declare const KTreePickerDefaultProps: {
|
|
|
71
73
|
type: BooleanConstructor;
|
|
72
74
|
default: boolean;
|
|
73
75
|
};
|
|
76
|
+
searchPlaceholder: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
74
80
|
validation: {
|
|
75
81
|
type: PropType<KTreePickerProps["validation"]>;
|
|
76
82
|
default: null;
|
|
@@ -84,6 +90,10 @@ export declare const KTreePickerDefaultProps: {
|
|
|
84
90
|
type: BooleanConstructor;
|
|
85
91
|
default: undefined;
|
|
86
92
|
};
|
|
93
|
+
fullWidth: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
87
97
|
};
|
|
88
98
|
export declare function useKTreePickerLogic(props: KTreePickerProps, emit: any): {
|
|
89
99
|
selectedItems: import("vue").Ref<import("@katlux/providers").TDataRow[] | null, import("@katlux/providers").TDataRow[] | null>;
|
|
@@ -52,6 +52,10 @@ export const KTreePickerDefaultProps = {
|
|
|
52
52
|
type: Boolean,
|
|
53
53
|
default: false
|
|
54
54
|
},
|
|
55
|
+
searchPlaceholder: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: "Search..."
|
|
58
|
+
},
|
|
55
59
|
validation: {
|
|
56
60
|
type: String,
|
|
57
61
|
default: null,
|
|
@@ -64,6 +68,10 @@ export const KTreePickerDefaultProps = {
|
|
|
64
68
|
isOptionsOpen: {
|
|
65
69
|
type: Boolean,
|
|
66
70
|
default: void 0
|
|
71
|
+
},
|
|
72
|
+
fullWidth: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: true
|
|
67
75
|
}
|
|
68
76
|
};
|
|
69
77
|
import { useKComboboxLogic } from "../KCombobox/KCombobox.logic.js";
|
|
@@ -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;
|
|
87
84
|
bulkActions: import("@katlux/providers").IKDatatableAction[];
|
|
88
85
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
89
86
|
cellSlots: Record<string, any>;
|
|
90
87
|
headerSlots: Record<string, any>;
|
|
91
88
|
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;
|
|
87
84
|
bulkActions: import("@katlux/providers").IKDatatableAction[];
|
|
88
85
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
89
86
|
cellSlots: Record<string, any>;
|
|
90
87
|
headerSlots: Record<string, any>;
|
|
91
88
|
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;
|
|
@@ -5,6 +5,7 @@ type __VLS_Props = {
|
|
|
5
5
|
labelField: string;
|
|
6
6
|
placeholder: string;
|
|
7
7
|
searchbox: boolean;
|
|
8
|
+
searchPlaceholder: string;
|
|
8
9
|
searchtext: string;
|
|
9
10
|
filteredOptions: any[];
|
|
10
11
|
getSelectedContent: () => any[];
|
|
@@ -14,6 +15,7 @@ type __VLS_Props = {
|
|
|
14
15
|
isSelected: (option: ComboboxItem) => boolean;
|
|
15
16
|
loading: boolean;
|
|
16
17
|
teleportTo?: string;
|
|
18
|
+
fullWidth: boolean;
|
|
17
19
|
validation?: 'success' | 'warning' | 'error' | null;
|
|
18
20
|
validationText?: string;
|
|
19
21
|
};
|
|
@@ -10,23 +10,27 @@
|
|
|
10
10
|
) {{ item[labelField] }}
|
|
11
11
|
.KCombobox__selected-content-placeholder(v-else) {{placeholder}}
|
|
12
12
|
KIcon(iconname="chevron" width="20" height="20").chevron
|
|
13
|
-
KDropdown(v-model:isOpen="isOptionsOpenModel" :anchorEl="activatorRef" fullWidth :teleportTo="teleportTo").KCombobox__options
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
KDropdown(v-model:isOpen="isOptionsOpenModel" :anchorEl="activatorRef" :fullWidth="fullWidth" :teleportTo="teleportTo").KCombobox__options
|
|
14
|
+
template(v-if="slots.default")
|
|
15
|
+
slot(name="default")
|
|
16
|
+
KComboboxList(
|
|
17
|
+
v-else
|
|
18
|
+
:searchbox="searchbox"
|
|
19
|
+
:searchPlaceholder="searchPlaceholder"
|
|
20
|
+
v-model:searchtext="searchtextModel"
|
|
21
|
+
:loading="loading"
|
|
22
|
+
:filteredOptions="filteredOptions"
|
|
23
|
+
:labelField="labelField"
|
|
24
|
+
:selectItem="selectItem"
|
|
25
|
+
:isSelected="isSelected"
|
|
26
|
+
)
|
|
24
27
|
span.validation-text(v-if="validation && ['success', 'warning', 'error'].includes(validation) && validationText" :class="`is-${validation}`") {{ validationText }}
|
|
25
28
|
</template>
|
|
26
29
|
|
|
27
30
|
<script lang="ts" setup>
|
|
28
|
-
import { computed, ref } from 'vue'
|
|
31
|
+
import { computed, ref, useSlots } from 'vue'
|
|
29
32
|
const activatorRef = ref<HTMLElement | null>(null)
|
|
33
|
+
const slots = useSlots()
|
|
30
34
|
import KComboboxList from './KComboboxList.vue'
|
|
31
35
|
import type { ComboboxItem } from '../../../../components/KCombobox/KCombobox.logic'
|
|
32
36
|
|
|
@@ -36,6 +40,7 @@ const props = defineProps<{
|
|
|
36
40
|
labelField: string
|
|
37
41
|
placeholder: string
|
|
38
42
|
searchbox: boolean
|
|
43
|
+
searchPlaceholder: string
|
|
39
44
|
searchtext: string
|
|
40
45
|
filteredOptions: any[]
|
|
41
46
|
getSelectedContent: () => any[]
|
|
@@ -45,6 +50,7 @@ const props = defineProps<{
|
|
|
45
50
|
isSelected: (option: ComboboxItem) => boolean
|
|
46
51
|
loading: boolean
|
|
47
52
|
teleportTo?: string
|
|
53
|
+
fullWidth: boolean
|
|
48
54
|
validation?: 'success' | 'warning' | 'error' | null
|
|
49
55
|
validationText?: string
|
|
50
56
|
}>()
|
|
@@ -5,6 +5,7 @@ type __VLS_Props = {
|
|
|
5
5
|
labelField: string;
|
|
6
6
|
placeholder: string;
|
|
7
7
|
searchbox: boolean;
|
|
8
|
+
searchPlaceholder: string;
|
|
8
9
|
searchtext: string;
|
|
9
10
|
filteredOptions: any[];
|
|
10
11
|
getSelectedContent: () => any[];
|
|
@@ -14,6 +15,7 @@ type __VLS_Props = {
|
|
|
14
15
|
isSelected: (option: ComboboxItem) => boolean;
|
|
15
16
|
loading: boolean;
|
|
16
17
|
teleportTo?: string;
|
|
18
|
+
fullWidth: boolean;
|
|
17
19
|
validation?: 'success' | 'warning' | 'error' | null;
|
|
18
20
|
validationText?: string;
|
|
19
21
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.KCombobox__options-content
|
|
3
|
-
KTextbox(v-if="searchbox" v-model="searchtextModel" placeholder="
|
|
3
|
+
KTextbox(v-if="searchbox" v-model="searchtextModel" :placeholder="searchPlaceholder" :showClear="true")
|
|
4
4
|
.KCombobox__loading(v-if="loading")
|
|
5
5
|
.KCombobox__loading-spinner
|
|
6
6
|
ul.KCombobox__options-list(v-else)
|
|
@@ -21,6 +21,7 @@ import type { ComboboxItem } from '../../../../components/KCombobox/KCombobox.lo
|
|
|
21
21
|
const props = defineProps<{
|
|
22
22
|
searchbox: boolean
|
|
23
23
|
searchtext: string
|
|
24
|
+
searchPlaceholder: string
|
|
24
25
|
loading: boolean
|
|
25
26
|
filteredOptions: any[]
|
|
26
27
|
labelField: string
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
v-model="maskedModel"
|
|
5
5
|
:key="maskedModel"
|
|
6
6
|
:mask="format"
|
|
7
|
-
:placeholder="format"
|
|
7
|
+
:placeholder="placeholder || format"
|
|
8
8
|
@click.stop="textboxClicked"
|
|
9
9
|
:showClear="showClear"
|
|
10
10
|
@clear="onClear"
|
|
@@ -36,6 +36,7 @@ const props = defineProps<{
|
|
|
36
36
|
onClear?: () => void
|
|
37
37
|
dateSelected: (date: Date) => void
|
|
38
38
|
teleportTo?: string
|
|
39
|
+
placeholder?: string
|
|
39
40
|
validation?: 'success' | 'warning' | 'error' | null
|
|
40
41
|
validationText?: string
|
|
41
42
|
align?: 'left' | 'right'
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
v-model="maskedModel"
|
|
5
5
|
:key="maskedModel"
|
|
6
6
|
:mask="format"
|
|
7
|
-
:placeholder="format"
|
|
7
|
+
:placeholder="placeholder || (format || 'MM-DD-YYYY HH:mm')"
|
|
8
|
+
@click.stop="textboxClicked"
|
|
8
9
|
:showClear="showClear"
|
|
9
10
|
@clear="onClear"
|
|
10
11
|
:validation="validation"
|
|
@@ -43,6 +44,7 @@ const props = defineProps<{
|
|
|
43
44
|
dateSelected: (date: Date) => void
|
|
44
45
|
timeSelected: (time: string) => void
|
|
45
46
|
teleportTo?: string
|
|
47
|
+
placeholder?: string
|
|
46
48
|
validation?: 'success' | 'warning' | 'error' | null
|
|
47
49
|
validationText?: string
|
|
48
50
|
}>()
|
|
@@ -34,7 +34,8 @@ const dialogStyle = computed(() => {
|
|
|
34
34
|
const style: any = {
|
|
35
35
|
position: 'absolute',
|
|
36
36
|
top: `${props.dropdownRect.top}px`,
|
|
37
|
-
width: props.fullWidth ?
|
|
37
|
+
width: props.fullWidth ? 'fit-content' : 'fit-content',
|
|
38
|
+
minWidth: props.fullWidth ? `${props.dropdownRect.width}px` : 'auto',
|
|
38
39
|
zIndex: 2000
|
|
39
40
|
}
|
|
40
41
|
|
|
@@ -8,6 +8,7 @@ type __VLS_Props = {
|
|
|
8
8
|
labelField: string;
|
|
9
9
|
placeholder: string;
|
|
10
10
|
searchbox: boolean;
|
|
11
|
+
searchPlaceholder: string;
|
|
11
12
|
multiSelect: boolean;
|
|
12
13
|
searchtext: string;
|
|
13
14
|
filteredOptions: any[];
|
|
@@ -18,6 +19,7 @@ type __VLS_Props = {
|
|
|
18
19
|
isSelected: (option: any) => boolean;
|
|
19
20
|
loading: boolean;
|
|
20
21
|
closeOnSelect: boolean;
|
|
22
|
+
fullWidth: boolean;
|
|
21
23
|
validation?: 'success' | 'warning' | 'error' | null;
|
|
22
24
|
validationText?: string;
|
|
23
25
|
};
|
|
@@ -14,30 +14,30 @@ KCombobox(
|
|
|
14
14
|
:selectItem="selectItem"
|
|
15
15
|
:isSelected="isSelected"
|
|
16
16
|
:loading="loading"
|
|
17
|
+
:fullWidth="fullWidth"
|
|
17
18
|
:validation="validation"
|
|
18
19
|
:validationText="validationText"
|
|
19
20
|
)
|
|
20
|
-
|
|
21
|
-
.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
showClear
|
|
27
|
-
)
|
|
28
|
-
KTree(
|
|
29
|
-
:dataProvider="dataProvider"
|
|
30
|
-
:idKey="idKey"
|
|
31
|
-
:parentKey="parentKey"
|
|
32
|
-
:labelField="labelField"
|
|
33
|
-
:iconField="iconField"
|
|
34
|
-
:loading="loading"
|
|
35
|
-
:multiSelect="multiSelect"
|
|
36
|
-
:isNodeSelected="isSelected"
|
|
37
|
-
:searchtext="searchtext"
|
|
38
|
-
:selectable="true"
|
|
39
|
-
@select="onTreeSelect"
|
|
21
|
+
.KTreePicker__tree-container
|
|
22
|
+
.KTreePicker__search(v-if="searchbox")
|
|
23
|
+
KTextbox(
|
|
24
|
+
v-model="searchtextModel"
|
|
25
|
+
:placeholder="searchPlaceholder"
|
|
26
|
+
showClear
|
|
40
27
|
)
|
|
28
|
+
KTree(
|
|
29
|
+
:dataProvider="dataProvider"
|
|
30
|
+
:idKey="idKey"
|
|
31
|
+
:parentKey="parentKey"
|
|
32
|
+
:labelField="labelField"
|
|
33
|
+
:iconField="iconField"
|
|
34
|
+
:loading="loading"
|
|
35
|
+
:multiSelect="multiSelect"
|
|
36
|
+
:isNodeSelected="isSelected"
|
|
37
|
+
:searchtext="searchtext"
|
|
38
|
+
:selectable="true"
|
|
39
|
+
@select="onTreeSelect"
|
|
40
|
+
)
|
|
41
41
|
</template>
|
|
42
42
|
|
|
43
43
|
<script lang="ts" setup>
|
|
@@ -56,6 +56,7 @@ const props = defineProps<{
|
|
|
56
56
|
labelField: string
|
|
57
57
|
placeholder: string
|
|
58
58
|
searchbox: boolean
|
|
59
|
+
searchPlaceholder: string
|
|
59
60
|
multiSelect: boolean
|
|
60
61
|
searchtext: string
|
|
61
62
|
filteredOptions: any[]
|
|
@@ -66,6 +67,7 @@ const props = defineProps<{
|
|
|
66
67
|
isSelected: (option: any) => boolean
|
|
67
68
|
loading: boolean
|
|
68
69
|
closeOnSelect: boolean
|
|
70
|
+
fullWidth: boolean
|
|
69
71
|
validation?: 'success' | 'warning' | 'error' | null
|
|
70
72
|
validationText?: string
|
|
71
73
|
}>()
|
|
@@ -8,6 +8,7 @@ type __VLS_Props = {
|
|
|
8
8
|
labelField: string;
|
|
9
9
|
placeholder: string;
|
|
10
10
|
searchbox: boolean;
|
|
11
|
+
searchPlaceholder: string;
|
|
11
12
|
multiSelect: boolean;
|
|
12
13
|
searchtext: string;
|
|
13
14
|
filteredOptions: any[];
|
|
@@ -18,6 +19,7 @@ type __VLS_Props = {
|
|
|
18
19
|
isSelected: (option: any) => boolean;
|
|
19
20
|
loading: boolean;
|
|
20
21
|
closeOnSelect: boolean;
|
|
22
|
+
fullWidth: boolean;
|
|
21
23
|
validation?: 'success' | 'warning' | 'error' | null;
|
|
22
24
|
validationText?: string;
|
|
23
25
|
};
|