@katlux/toolkit 0.1.0-beta.74 → 0.1.0-beta.76
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 +11 -2
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +1 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +11 -2
- 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 +47 -2
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue +11 -2
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +47 -2
- 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 +11 -2
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +1 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +11 -2
- 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 +11 -2
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +1 -0
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +11 -2
- 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 +10 -1
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +1 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +10 -1
- 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 +10 -1
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +1 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +10 -1
- 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 +10 -1
- package/dist/runtime/components/KTextarea/KTextarea.global.vue +1 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +10 -1
- 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 +10 -1
- package/dist/runtime/components/KTextbox/KTextbox.global.vue +1 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +10 -1
- 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 +13 -4
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +1 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +13 -4
- 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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.KMaskTextbox
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
3
4
|
KTextbox(
|
|
4
5
|
:modelValue="maskedValue"
|
|
5
6
|
:placeholder="placeholder"
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
import { getMaskPatternDef } from '../../../../components/KMaskTextbox/KMaskTextbox.logic'
|
|
18
19
|
|
|
19
20
|
const props = defineProps<{
|
|
21
|
+
label?: string
|
|
20
22
|
maskedValue: string
|
|
21
23
|
placeholder: string
|
|
22
24
|
showClear: boolean
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.KRangeSlider(:class="{ disabled: isDisabled }")
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
3
4
|
.slider-container(@click="handleTrackClick")
|
|
4
5
|
.slider-track
|
|
5
6
|
.slider-range(:style="{ left: minPercent + '%', width: (maxPercent - minPercent) + '%' }")
|
|
@@ -28,6 +29,7 @@ import { computed } from 'vue'
|
|
|
28
29
|
|
|
29
30
|
// Default template for KRangeSlider
|
|
30
31
|
const props = defineProps<{
|
|
32
|
+
label?: string
|
|
31
33
|
rangeMin: number
|
|
32
34
|
rangeMax: number
|
|
33
35
|
rangeStep: number
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
5
|
declare const _default: typeof __VLS_export;
|
|
3
6
|
export default _default;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.KSearchTree
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
3
4
|
// Impl
|
|
4
5
|
</template>
|
|
5
|
-
<script lang="ts" setup
|
|
6
|
+
<script lang="ts" setup>
|
|
7
|
+
const props = defineProps<{
|
|
8
|
+
label?: string
|
|
9
|
+
}>()
|
|
10
|
+
</script>
|
|
11
|
+
<style lang="scss">
|
|
12
|
+
|
|
13
|
+
</style>
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
5
|
declare const _default: typeof __VLS_export;
|
|
3
6
|
export default _default;
|
package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.d.vue.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
5
|
declare const _default: typeof __VLS_export;
|
|
3
6
|
export default _default;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.KSearchTreeDropdown
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
3
4
|
// Impl
|
|
4
5
|
</template>
|
|
5
|
-
<script lang="ts" setup
|
|
6
|
+
<script lang="ts" setup>
|
|
7
|
+
const props = defineProps<{
|
|
8
|
+
label?: string
|
|
9
|
+
}>()
|
|
10
|
+
</script>
|
|
11
|
+
<style lang="scss">
|
|
12
|
+
|
|
13
|
+
</style>
|
package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
5
|
declare const _default: typeof __VLS_export;
|
|
3
6
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.KSlider(:class="{ disabled: isDisabled }")
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
3
4
|
.slider-container(@click="handleTrackClick")
|
|
4
5
|
.slider-track
|
|
5
6
|
.slider-fill(:style="{ width: valuePercent + '%' }")
|
|
@@ -19,6 +20,7 @@ import { computed } from 'vue'
|
|
|
19
20
|
|
|
20
21
|
// Default template for KSlider
|
|
21
22
|
const props = defineProps<{
|
|
23
|
+
label?: string
|
|
22
24
|
rangeMin: number
|
|
23
25
|
rangeMax: number
|
|
24
26
|
rangeStep: number
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.KTextarea-wrapper(:class="$attrs.class" :style="$attrs.style")
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
3
4
|
textarea.KTextarea(v-bind="textareaAttrs" v-model="text" :placeholder="placeholder" :rows="rows" :class="validation ? `is-${validation}` : ''")
|
|
4
5
|
span.validation-text(v-if="validation && ['success', 'warning', 'error'].includes(validation) && validationText" :class="`is-${validation}`") {{ validationText }}
|
|
5
6
|
</template>
|
|
@@ -15,6 +16,7 @@ defineOptions({
|
|
|
15
16
|
const text = defineModel<string>('text')
|
|
16
17
|
|
|
17
18
|
const props = defineProps<{
|
|
19
|
+
label?: string
|
|
18
20
|
placeholder: string
|
|
19
21
|
rows: number
|
|
20
22
|
validation?: 'success' | 'warning' | 'error' | null
|
|
@@ -32,7 +34,7 @@ const textareaAttrs = computed(() => {
|
|
|
32
34
|
.KTextarea {
|
|
33
35
|
border: var(--input-border);
|
|
34
36
|
border-radius: var(--input-border-radius);
|
|
35
|
-
background-color: var(--
|
|
37
|
+
background-color: var(--input-bg);
|
|
36
38
|
padding: var(--component-gap);
|
|
37
39
|
font-family: inherit;
|
|
38
40
|
font-size: 14px;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.KTextbox-wrapper(:class="$attrs.class" :style="$attrs.style")
|
|
3
|
-
|
|
3
|
+
label.k-input-label(v-if="label") {{ label }}
|
|
4
|
+
.KTextbox(:class="validation ? `is-${validation}` : ''")
|
|
4
5
|
input(v-bind="inputAttrs" :type="props.type" v-model="text" :placeholder="placeholder")
|
|
5
6
|
KIcon(v-if="showClear" @click.stop="clear" @mousedown.stop iconname="close" width="10" height="10").closeIcon
|
|
6
7
|
span.validation-text(v-if="validation && ['success', 'warning', 'error'].includes(validation) && validationText" :class="`is-${validation}`") {{ validationText }}
|
|
@@ -15,6 +16,7 @@ defineOptions({
|
|
|
15
16
|
|
|
16
17
|
// Default template for KTextbox
|
|
17
18
|
const props = defineProps<{
|
|
19
|
+
label?: string
|
|
18
20
|
text: string
|
|
19
21
|
showClear: boolean
|
|
20
22
|
clear: () => void
|
|
@@ -41,21 +43,44 @@ const inputAttrs = computed(() => {
|
|
|
41
43
|
</script>
|
|
42
44
|
|
|
43
45
|
<style lang="scss" scoped>
|
|
46
|
+
.KTextbox-wrapper {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
flex: 1;
|
|
50
|
+
min-width: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
44
53
|
.KTextbox {
|
|
54
|
+
position: relative;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
45
57
|
border: var(--input-border);
|
|
46
58
|
border-radius: var(--input-border-radius);
|
|
47
59
|
overflow: hidden;
|
|
48
|
-
background-color: var(--
|
|
49
|
-
height:
|
|
60
|
+
background-color: var(--input-bg);
|
|
61
|
+
height: var(--input-height);
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
transition: all var(--transition-fast, 0.2s ease);
|
|
64
|
+
|
|
65
|
+
&:focus-within {
|
|
66
|
+
border-color: var(--input-focus-border-color);
|
|
67
|
+
box-shadow: var(--input-focus-shadow);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:hover {
|
|
71
|
+
border-color: var(--input-hover-border-color);
|
|
72
|
+
}
|
|
50
73
|
|
|
51
74
|
input {
|
|
52
|
-
|
|
53
|
-
box-sizing: border-box;
|
|
54
|
-
flex-grow: 1;
|
|
75
|
+
flex: 1;
|
|
55
76
|
min-width: 0;
|
|
56
|
-
|
|
77
|
+
background-color: var(--input-bg);
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
padding: 0 var(--component-gap);
|
|
57
80
|
border: none;
|
|
58
81
|
outline: none;
|
|
82
|
+
height: 100%;
|
|
83
|
+
width: 100%;
|
|
59
84
|
|
|
60
85
|
/* Hide arrows in Chrome, Safari, Edge, Opera */
|
|
61
86
|
&::-webkit-outer-spin-button,
|
|
@@ -71,7 +96,10 @@ const inputAttrs = computed(() => {
|
|
|
71
96
|
}
|
|
72
97
|
|
|
73
98
|
.closeIcon {
|
|
74
|
-
|
|
99
|
+
position: absolute;
|
|
100
|
+
right: var(--component-gap);
|
|
101
|
+
top: 50%;
|
|
102
|
+
transform: translateY(-50%);
|
|
75
103
|
color: var(--icon-color-medium);
|
|
76
104
|
cursor: pointer;
|
|
77
105
|
flex-shrink: 0;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
KCombobox(
|
|
3
|
+
:label="label"
|
|
3
4
|
:dataProvider="dataProvider"
|
|
4
5
|
:disabled="disabled"
|
|
5
6
|
v-model:isOptionsOpen="isOptionsOpenModel"
|
|
@@ -44,6 +45,7 @@ KCombobox(
|
|
|
44
45
|
import { computed } from 'vue'
|
|
45
46
|
// Props passed from global component (which handles the logic)
|
|
46
47
|
const props = defineProps<{
|
|
48
|
+
label?: string
|
|
47
49
|
// Tree specific
|
|
48
50
|
dataProvider: any
|
|
49
51
|
idKey?: string
|