@katlux/toolkit 0.1.0-beta.74 → 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/KButton/KButton.logic.d.ts +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/KDatatable/KDataIterator.global.d.vue.ts +1 -1
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +1 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +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/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 +11 -2
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +1 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +11 -2
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +5 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +4 -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/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
|
@@ -11,8 +11,8 @@ interface Props {
|
|
|
11
11
|
page?: number;
|
|
12
12
|
}
|
|
13
13
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
-
bulkActions: IKDatatableAction[];
|
|
15
14
|
search: string;
|
|
15
|
+
bulkActions: IKDatatableAction[];
|
|
16
16
|
loading: boolean;
|
|
17
17
|
visibleFields: Array<string> | null;
|
|
18
18
|
rowActions: IKDatatableAction[];
|
|
@@ -11,8 +11,8 @@ interface Props {
|
|
|
11
11
|
page?: number;
|
|
12
12
|
}
|
|
13
13
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
-
bulkActions: IKDatatableAction[];
|
|
15
14
|
search: string;
|
|
15
|
+
bulkActions: IKDatatableAction[];
|
|
16
16
|
loading: boolean;
|
|
17
17
|
visibleFields: Array<string> | null;
|
|
18
18
|
rowActions: IKDatatableAction[];
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KDatePickerProps } from './KDatePicker.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
|
format: {
|
|
4
8
|
type: StringConstructor;
|
|
5
9
|
default: string;
|
|
@@ -56,6 +60,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
56
60
|
"update:day": (value: string | Date) => any;
|
|
57
61
|
"update:isOpen": (value: boolean) => any;
|
|
58
62
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
|
+
label: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
59
67
|
format: {
|
|
60
68
|
type: StringConstructor;
|
|
61
69
|
default: string;
|
|
@@ -112,11 +120,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
112
120
|
"onUpdate:day"?: ((value: string | Date) => any) | undefined;
|
|
113
121
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
114
122
|
}>, {
|
|
123
|
+
label: string;
|
|
115
124
|
isOpen: boolean;
|
|
116
|
-
day: string | Date;
|
|
117
125
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
118
126
|
validationText: string;
|
|
119
127
|
modelValue: string | Date;
|
|
128
|
+
day: string | Date;
|
|
120
129
|
placeholder: string;
|
|
121
130
|
teleportTo: string;
|
|
122
131
|
showClear: boolean;
|
|
@@ -15,6 +15,7 @@ const {
|
|
|
15
15
|
} = useKDatePickerLogic(props);
|
|
16
16
|
const presetComponent = usePresetComponent("KDatePicker", KDatePickerDefault);
|
|
17
17
|
const templateProps = computed(() => ({
|
|
18
|
+
label: props.label,
|
|
18
19
|
maskedModel: maskedModel.value,
|
|
19
20
|
calendarShow: calendarShow.value,
|
|
20
21
|
_date: _date.value,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KDatePickerProps } from './KDatePicker.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
|
format: {
|
|
4
8
|
type: StringConstructor;
|
|
5
9
|
default: string;
|
|
@@ -56,6 +60,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
56
60
|
"update:day": (value: string | Date) => any;
|
|
57
61
|
"update:isOpen": (value: boolean) => any;
|
|
58
62
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
|
+
label: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
59
67
|
format: {
|
|
60
68
|
type: StringConstructor;
|
|
61
69
|
default: string;
|
|
@@ -112,11 +120,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
112
120
|
"onUpdate:day"?: ((value: string | Date) => any) | undefined;
|
|
113
121
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
114
122
|
}>, {
|
|
123
|
+
label: string;
|
|
115
124
|
isOpen: boolean;
|
|
116
|
-
day: string | Date;
|
|
117
125
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
118
126
|
validationText: string;
|
|
119
127
|
modelValue: string | Date;
|
|
128
|
+
day: string | Date;
|
|
120
129
|
placeholder: string;
|
|
121
130
|
teleportTo: string;
|
|
122
131
|
showClear: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import type { IMarkedDay, IDefinedDay } from '../KCalendar/types.js';
|
|
3
3
|
export interface KDatePickerProps {
|
|
4
|
+
label?: string;
|
|
4
5
|
format: string;
|
|
5
6
|
day?: Date | string;
|
|
6
7
|
modelValue?: Date | string;
|
|
@@ -15,6 +16,10 @@ export interface KDatePickerProps {
|
|
|
15
16
|
align?: 'left' | 'right';
|
|
16
17
|
}
|
|
17
18
|
export declare const KDatePickerDefaultProps: {
|
|
19
|
+
label: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
18
23
|
format: {
|
|
19
24
|
type: StringConstructor;
|
|
20
25
|
default: string;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ref, watch, onMounted, computed } from "vue";
|
|
2
2
|
export const KDatePickerDefaultProps = {
|
|
3
|
+
label: {
|
|
4
|
+
type: String,
|
|
5
|
+
default: ""
|
|
6
|
+
},
|
|
3
7
|
format: {
|
|
4
8
|
type: String,
|
|
5
9
|
default: "MM-DD-YYYY"
|
|
@@ -144,6 +148,14 @@ export function useKDatePickerLogic(props) {
|
|
|
144
148
|
watch(() => props.isOpen, (newVal) => {
|
|
145
149
|
calendarShow.value = !!newVal;
|
|
146
150
|
});
|
|
151
|
+
watch(() => props.format, () => {
|
|
152
|
+
if (_date.value && _date.value !== "") {
|
|
153
|
+
const d = _date.value instanceof Date ? _date.value : new Date(_date.value);
|
|
154
|
+
if (!isNaN(d.getTime())) {
|
|
155
|
+
maskedModel.value = formatDate(d);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
});
|
|
147
159
|
const calendarDay = computed(() => {
|
|
148
160
|
const val = props.modelValue || props.day;
|
|
149
161
|
if (val) {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KDateTimePickerProps } from './KDateTimePicker.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
|
format: {
|
|
4
8
|
type: StringConstructor;
|
|
5
9
|
default: string;
|
|
@@ -59,6 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
59
63
|
"update:calendarShow": (value: boolean) => any;
|
|
60
64
|
"update:isOpen": (value: boolean) => any;
|
|
61
65
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
label: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
62
70
|
format: {
|
|
63
71
|
type: StringConstructor;
|
|
64
72
|
default: string;
|
|
@@ -118,11 +126,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
118
126
|
"onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
|
|
119
127
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
120
128
|
}>, {
|
|
129
|
+
label: string;
|
|
121
130
|
isOpen: boolean;
|
|
122
|
-
day: string | Date;
|
|
123
131
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
124
132
|
validationText: string;
|
|
125
133
|
modelValue: string | Date;
|
|
134
|
+
day: string | Date;
|
|
126
135
|
placeholder: string;
|
|
127
136
|
teleportTo: string;
|
|
128
137
|
showClear: boolean;
|
|
@@ -17,6 +17,7 @@ const {
|
|
|
17
17
|
} = useKDateTimePickerLogic(props);
|
|
18
18
|
const presetComponent = usePresetComponent("KDateTimePicker", KDateTimePickerDefault);
|
|
19
19
|
const templateProps = computed(() => ({
|
|
20
|
+
label: props.label,
|
|
20
21
|
maskedModel: maskedModel.value,
|
|
21
22
|
calendarShow: calendarShow.value,
|
|
22
23
|
_date: _date.value,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KDateTimePickerProps } from './KDateTimePicker.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
|
format: {
|
|
4
8
|
type: StringConstructor;
|
|
5
9
|
default: string;
|
|
@@ -59,6 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
59
63
|
"update:calendarShow": (value: boolean) => any;
|
|
60
64
|
"update:isOpen": (value: boolean) => any;
|
|
61
65
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
label: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
62
70
|
format: {
|
|
63
71
|
type: StringConstructor;
|
|
64
72
|
default: string;
|
|
@@ -118,11 +126,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
118
126
|
"onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
|
|
119
127
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
120
128
|
}>, {
|
|
129
|
+
label: string;
|
|
121
130
|
isOpen: boolean;
|
|
122
|
-
day: string | Date;
|
|
123
131
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
124
132
|
validationText: string;
|
|
125
133
|
modelValue: string | Date;
|
|
134
|
+
day: string | Date;
|
|
126
135
|
placeholder: string;
|
|
127
136
|
teleportTo: string;
|
|
128
137
|
showClear: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import type { IMarkedDay, IDefinedDay } from '../KCalendar/types.js';
|
|
3
3
|
export interface KDateTimePickerProps {
|
|
4
|
+
label?: string;
|
|
4
5
|
format?: string;
|
|
5
6
|
timeFormat?: string;
|
|
6
7
|
day?: Date | string;
|
|
@@ -16,6 +17,10 @@ export interface KDateTimePickerProps {
|
|
|
16
17
|
validationText?: string;
|
|
17
18
|
}
|
|
18
19
|
export declare const KDateTimePickerDefaultProps: {
|
|
20
|
+
label: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
19
24
|
format: {
|
|
20
25
|
type: StringConstructor;
|
|
21
26
|
default: string;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ref, watch, onMounted, computed } from "vue";
|
|
2
2
|
export const KDateTimePickerDefaultProps = {
|
|
3
|
+
label: {
|
|
4
|
+
type: String,
|
|
5
|
+
default: ""
|
|
6
|
+
},
|
|
3
7
|
format: {
|
|
4
8
|
type: String,
|
|
5
9
|
default: "MM-DD-YYYY HH:mm"
|
|
@@ -218,6 +222,9 @@ export function useKDateTimePickerLogic(props) {
|
|
|
218
222
|
watch(() => props.isOpen, (newVal) => {
|
|
219
223
|
calendarShow.value = !!newVal;
|
|
220
224
|
});
|
|
225
|
+
watch(() => props.format, () => {
|
|
226
|
+
updateMaskedModel();
|
|
227
|
+
});
|
|
221
228
|
return {
|
|
222
229
|
_date,
|
|
223
230
|
_time,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KHourPickerProps } from './KHourPicker.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
|
step: {
|
|
4
8
|
type: NumberConstructor;
|
|
5
9
|
default: number;
|
|
@@ -49,6 +53,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
49
53
|
"update:modelValue": (value: string) => any;
|
|
50
54
|
"update:isOpen": (value: boolean) => any;
|
|
51
55
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
label: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
52
60
|
step: {
|
|
53
61
|
type: NumberConstructor;
|
|
54
62
|
default: number;
|
|
@@ -98,6 +106,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
98
106
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
99
107
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
100
108
|
}>, {
|
|
109
|
+
label: string;
|
|
101
110
|
isOpen: boolean;
|
|
102
111
|
disabled: boolean;
|
|
103
112
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
@@ -15,6 +15,7 @@ const {
|
|
|
15
15
|
} = useKHourPickerLogic(props);
|
|
16
16
|
const presetComponent = usePresetComponent("KHourPicker", KHourPickerDefault);
|
|
17
17
|
const templateProps = computed(() => ({
|
|
18
|
+
label: props.label,
|
|
18
19
|
maskedModel: maskedModel.value,
|
|
19
20
|
isOpen: isOpen.value,
|
|
20
21
|
step: props.step,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KHourPickerProps } from './KHourPicker.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
|
step: {
|
|
4
8
|
type: NumberConstructor;
|
|
5
9
|
default: number;
|
|
@@ -49,6 +53,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
49
53
|
"update:modelValue": (value: string) => any;
|
|
50
54
|
"update:isOpen": (value: boolean) => any;
|
|
51
55
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
label: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
52
60
|
step: {
|
|
53
61
|
type: NumberConstructor;
|
|
54
62
|
default: number;
|
|
@@ -98,6 +106,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
98
106
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
99
107
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
100
108
|
}>, {
|
|
109
|
+
label: string;
|
|
101
110
|
isOpen: boolean;
|
|
102
111
|
disabled: boolean;
|
|
103
112
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
export interface KHourPickerProps {
|
|
3
|
+
label?: string;
|
|
3
4
|
step?: number;
|
|
4
5
|
format?: string;
|
|
5
6
|
startHour?: string;
|
|
@@ -13,6 +14,10 @@ export interface KHourPickerProps {
|
|
|
13
14
|
validationText?: string;
|
|
14
15
|
}
|
|
15
16
|
export declare const KHourPickerDefaultProps: {
|
|
17
|
+
label: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
16
21
|
step: {
|
|
17
22
|
type: NumberConstructor;
|
|
18
23
|
default: number;
|
|
@@ -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
|
step: {
|
|
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:modelValue": (value: string) => any;
|
|
24
28
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
label: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
25
33
|
step: {
|
|
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:modelValue"?: ((value: string) => any) | undefined;
|
|
47
55
|
}>, {
|
|
56
|
+
label: string;
|
|
48
57
|
modelValue: string;
|
|
49
58
|
format: string;
|
|
50
59
|
step: number;
|
|
@@ -12,6 +12,7 @@ const {
|
|
|
12
12
|
} = useKHourSelectLogic(props);
|
|
13
13
|
const presetComponent = usePresetComponent("KHourSelect", KHourSelectDefault);
|
|
14
14
|
const templateProps = computed(() => ({
|
|
15
|
+
label: props.label,
|
|
15
16
|
timeSlots: timeSlots.value,
|
|
16
17
|
selectedTime: selectedTime.value,
|
|
17
18
|
selectTime: handleSelectTime
|
|
@@ -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
|
step: {
|
|
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:modelValue": (value: string) => any;
|
|
24
28
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
label: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
25
33
|
step: {
|
|
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:modelValue"?: ((value: string) => any) | undefined;
|
|
47
55
|
}>, {
|
|
56
|
+
label: string;
|
|
48
57
|
modelValue: string;
|
|
49
58
|
format: string;
|
|
50
59
|
step: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export interface KHourSelectProps {
|
|
2
|
+
label?: string;
|
|
2
3
|
step?: number;
|
|
3
4
|
format?: string;
|
|
4
5
|
startHour?: string;
|
|
@@ -6,6 +7,10 @@ export interface KHourSelectProps {
|
|
|
6
7
|
modelValue?: string;
|
|
7
8
|
}
|
|
8
9
|
export declare const KHourSelectDefaultProps: {
|
|
10
|
+
label: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
9
14
|
step: {
|
|
10
15
|
type: NumberConstructor;
|
|
11
16
|
default: number;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KMaskTextboxProps } from './KMaskTextbox.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;
|
|
@@ -28,6 +32,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
28
32
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
29
33
|
"update:modelValue": (value: string) => any;
|
|
30
34
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
label: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
31
39
|
modelValue: {
|
|
32
40
|
type: StringConstructor;
|
|
33
41
|
default: string;
|
|
@@ -56,6 +64,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
56
64
|
}>> & Readonly<{
|
|
57
65
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
58
66
|
}>, {
|
|
67
|
+
label: string;
|
|
59
68
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
60
69
|
validationText: string;
|
|
61
70
|
modelValue: string;
|
|
@@ -8,6 +8,7 @@ const emit = defineEmits(["update:modelValue"]);
|
|
|
8
8
|
const { maskedValue, handleClear, placeholder, showClear } = useKMaskTextboxLogic(props, emit);
|
|
9
9
|
const presetComponent = usePresetComponent("KMaskTextbox", KMaskTextboxDefault);
|
|
10
10
|
const templateProps = computed(() => ({
|
|
11
|
+
label: props.label,
|
|
11
12
|
maskedValue: maskedValue.value,
|
|
12
13
|
placeholder: placeholder.value,
|
|
13
14
|
showClear: showClear.value,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type KMaskTextboxProps } from './KMaskTextbox.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;
|
|
@@ -28,6 +32,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
28
32
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
29
33
|
"update:modelValue": (value: string) => any;
|
|
30
34
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
label: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
31
39
|
modelValue: {
|
|
32
40
|
type: StringConstructor;
|
|
33
41
|
default: string;
|
|
@@ -56,6 +64,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
56
64
|
}>> & Readonly<{
|
|
57
65
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
58
66
|
}>, {
|
|
67
|
+
label: string;
|
|
59
68
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
60
69
|
validationText: string;
|
|
61
70
|
modelValue: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export interface KMaskTextboxProps {
|
|
2
|
+
label?: string;
|
|
2
3
|
modelValue?: string;
|
|
3
4
|
placeholder?: string;
|
|
4
5
|
showClear?: boolean;
|
|
@@ -10,6 +11,10 @@ export interface KMaskTextboxEmits {
|
|
|
10
11
|
(e: 'update:modelValue', value: string): void;
|
|
11
12
|
}
|
|
12
13
|
export declare const KMaskTextboxDefaultProps: {
|
|
14
|
+
label: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
13
18
|
modelValue: {
|
|
14
19
|
type: StringConstructor;
|
|
15
20
|
default: string;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { computed, ref } from "vue";
|
|
1
|
+
import { computed, ref, watch } from "vue";
|
|
2
2
|
export const KMaskTextboxDefaultProps = {
|
|
3
|
+
label: {
|
|
4
|
+
type: String,
|
|
5
|
+
default: ""
|
|
6
|
+
},
|
|
3
7
|
modelValue: {
|
|
4
8
|
type: String,
|
|
5
9
|
default: ""
|
|
@@ -168,10 +172,15 @@ export function handleMaskInput(newValue, mask, currentValue) {
|
|
|
168
172
|
return masked;
|
|
169
173
|
}
|
|
170
174
|
export function useKMaskTextboxLogic(props, emit) {
|
|
171
|
-
const internalValue = ref(
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
+
const internalValue = ref("");
|
|
176
|
+
watch(() => [props.modelValue, props.mask], () => {
|
|
177
|
+
const raw = extractRawValue(internalValue.value, props.mask);
|
|
178
|
+
if (raw !== props.modelValue || internalValue.value === "") {
|
|
179
|
+
internalValue.value = applyMask(props.modelValue || "", props.mask);
|
|
180
|
+
} else {
|
|
181
|
+
internalValue.value = applyMask(raw, props.mask);
|
|
182
|
+
}
|
|
183
|
+
}, { immediate: true });
|
|
175
184
|
const maskedValue = computed({
|
|
176
185
|
get: () => internalValue.value,
|
|
177
186
|
set: (newValue) => {
|
|
@@ -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;
|
|
@@ -18,6 +18,7 @@ const {
|
|
|
18
18
|
} = useKRangeSliderLogic(props, minModel, maxModel);
|
|
19
19
|
const presetComponent = usePresetComponent("KRangeSlider", KRangeSliderDefault);
|
|
20
20
|
const templateProps = computed(() => ({
|
|
21
|
+
label: props.label,
|
|
21
22
|
rangeMin: rangeMin.value,
|
|
22
23
|
rangeMax: rangeMax.value,
|
|
23
24
|
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;
|
|
@@ -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;
|