@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.
Files changed (117) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/KButton/KButton.logic.d.ts +1 -1
  3. package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +9 -0
  4. package/dist/runtime/components/KCombobox/KCombobox.global.vue +1 -0
  5. package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +9 -0
  6. package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +5 -0
  7. package/dist/runtime/components/KCombobox/KCombobox.logic.js +11 -7
  8. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +45 -0
  9. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue +11 -2
  10. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +45 -0
  11. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +61 -1
  12. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.js +112 -9
  13. package/dist/runtime/components/KDatatable/KDataIterator.global.d.vue.ts +1 -1
  14. package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +1 -1
  15. package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +10 -1
  16. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +1 -0
  17. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +10 -1
  18. package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +5 -0
  19. package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +12 -0
  20. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +10 -1
  21. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +1 -0
  22. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +10 -1
  23. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +5 -0
  24. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +7 -0
  25. package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +9 -0
  26. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +1 -0
  27. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +9 -0
  28. package/dist/runtime/components/KHourPicker/KHourPicker.logic.d.ts +5 -0
  29. package/dist/runtime/components/KHourPicker/KHourPicker.logic.js +4 -0
  30. package/dist/runtime/components/KHourSelect/KHourSelect.global.d.vue.ts +9 -0
  31. package/dist/runtime/components/KHourSelect/KHourSelect.global.vue +1 -0
  32. package/dist/runtime/components/KHourSelect/KHourSelect.global.vue.d.ts +9 -0
  33. package/dist/runtime/components/KHourSelect/KHourSelect.logic.d.ts +5 -0
  34. package/dist/runtime/components/KHourSelect/KHourSelect.logic.js +4 -0
  35. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +9 -0
  36. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +1 -0
  37. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +9 -0
  38. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.d.ts +5 -0
  39. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.js +14 -5
  40. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.d.vue.ts +9 -0
  41. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue +1 -0
  42. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue.d.ts +9 -0
  43. package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.d.ts +5 -0
  44. package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.js +4 -0
  45. package/dist/runtime/components/KSearchTree/KSearchTree.logic.d.ts +7 -1
  46. package/dist/runtime/components/KSearchTree/KSearchTree.logic.js +6 -1
  47. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.d.ts +7 -1
  48. package/dist/runtime/components/KSearchTreeDropdown/KSearchTreeDropdown.logic.js +6 -1
  49. package/dist/runtime/components/KSlider/KSlider.global.d.vue.ts +9 -0
  50. package/dist/runtime/components/KSlider/KSlider.global.vue +1 -0
  51. package/dist/runtime/components/KSlider/KSlider.global.vue.d.ts +9 -0
  52. package/dist/runtime/components/KSlider/KSlider.logic.d.ts +5 -0
  53. package/dist/runtime/components/KSlider/KSlider.logic.js +4 -0
  54. package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +9 -0
  55. package/dist/runtime/components/KTextarea/KTextarea.global.vue +1 -0
  56. package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +9 -0
  57. package/dist/runtime/components/KTextarea/KTextarea.logic.d.ts +5 -0
  58. package/dist/runtime/components/KTextarea/KTextarea.logic.js +4 -0
  59. package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +9 -0
  60. package/dist/runtime/components/KTextbox/KTextbox.global.vue +1 -0
  61. package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +9 -0
  62. package/dist/runtime/components/KTextbox/KTextbox.logic.d.ts +5 -0
  63. package/dist/runtime/components/KTextbox/KTextbox.logic.js +4 -0
  64. package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +11 -2
  65. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +1 -0
  66. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +11 -2
  67. package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +5 -0
  68. package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +4 -0
  69. package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +3 -3
  70. package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +3 -3
  71. package/dist/runtime/presets/default/assets/scss/css-variables.css +3 -0
  72. package/dist/runtime/presets/default/assets/scss/css-variables.scss +3 -0
  73. package/dist/runtime/presets/default/assets/scss/index.css +11 -0
  74. package/dist/runtime/presets/default/assets/scss/index.scss +8 -1
  75. package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +1 -0
  76. package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +22 -2
  77. package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +1 -0
  78. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.d.vue.ts +5 -0
  79. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue +79 -47
  80. package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue.d.ts +5 -0
  81. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +1 -0
  82. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +2 -0
  83. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +1 -0
  84. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.d.vue.ts +1 -0
  85. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue +2 -0
  86. package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +1 -0
  87. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.d.vue.ts +1 -0
  88. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue +2 -0
  89. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +1 -0
  90. package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.d.vue.ts +1 -0
  91. package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue +2 -0
  92. package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue.d.ts +1 -0
  93. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.d.vue.ts +1 -0
  94. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue +2 -0
  95. package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue.d.ts +1 -0
  96. package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.d.vue.ts +1 -0
  97. package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue +2 -0
  98. package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue.d.ts +1 -0
  99. package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.d.vue.ts +4 -1
  100. package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue +9 -1
  101. package/dist/runtime/presets/default/components/KSearchTree/KSearchTree.vue.d.ts +4 -1
  102. package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.d.vue.ts +4 -1
  103. package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue +9 -1
  104. package/dist/runtime/presets/default/components/KSearchTreeDropdown/KSearchTreeDropdown.vue.d.ts +4 -1
  105. package/dist/runtime/presets/default/components/KSlider/KSlider.d.vue.ts +1 -0
  106. package/dist/runtime/presets/default/components/KSlider/KSlider.vue +2 -0
  107. package/dist/runtime/presets/default/components/KSlider/KSlider.vue.d.ts +1 -0
  108. package/dist/runtime/presets/default/components/KTextarea/KTextarea.d.vue.ts +1 -0
  109. package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue +3 -1
  110. package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue.d.ts +1 -0
  111. package/dist/runtime/presets/default/components/KTextbox/KTextbox.d.vue.ts +1 -0
  112. package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +36 -8
  113. package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue.d.ts +1 -0
  114. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.d.vue.ts +1 -0
  115. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +2 -0
  116. package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +1 -0
  117. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  <template lang="pug">
2
2
  .KCompositeInput-wrapper
3
- .KCompositeInput(:class="{'selection-right': selectionSide === 'right'}")
4
- KGrid(gap="0" align="stretch" :class="validation ? `is-${validation}` : ''")
3
+ label.k-input-label(v-if="label") {{ label }}
4
+ .KCompositeInput(:class="{'selection-right': selectionSide === 'right', 'layout-column': activeType === 'textarea'}")
5
+ KGrid(:direction="activeType === 'textarea' ? 'column' : 'row'" gap="0" align="stretch" :class="activeValidation ? `is-${activeValidation}` : ''")
5
6
  //- Selection Combobox
6
7
  .KCompositeInput-selection(:style="selectionStyle")
7
8
  KCombobox(
@@ -13,74 +14,79 @@
13
14
  :searchbox="searchbox"
14
15
  closeOnSelect
15
16
  :teleportTo="teleportTo"
16
- :validation="validation"
17
+ :validation="activeValidation"
17
18
  )
18
19
 
19
- //- Secondary Input
20
+ //- Secondary Input (driven by resolvedInputConfig)
20
21
  .KCompositeInput-main
21
- template(v-if="type === 'textbox'")
22
+ template(v-if="activeType === 'textbox'")
22
23
  KTextbox(
23
24
  v-model="inputValue"
24
- :type="inputType"
25
- :placeholder="inputPlaceholder"
26
- :showClear="showClear"
27
- :validation="validation"
25
+ :type="activeConfig.inputType"
26
+ :placeholder="activeConfig.placeholder"
27
+ :showClear="activeConfig.showClear"
28
+ :validation="activeValidation"
28
29
  )
29
- template(v-else-if="type === 'textarea'")
30
+ template(v-else-if="activeType === 'textarea'")
30
31
  KTextarea(
31
32
  v-model="inputValue"
32
- :placeholder="inputPlaceholder"
33
- :validation="validation"
33
+ :placeholder="activeConfig.placeholder"
34
+ :validation="activeValidation"
34
35
  )
35
- template(v-else-if="type === 'maskedtextbox'")
36
+ template(v-else-if="activeType === 'maskedtextbox'")
36
37
  KMaskTextbox(
37
38
  v-model="inputValue"
38
- :mask="mask"
39
- :placeholder="inputPlaceholder"
40
- :showClear="showClear"
41
- :validation="validation"
39
+ :mask="activeConfig.mask"
40
+ :placeholder="activeConfig.placeholder"
41
+ :showClear="activeConfig.showClear"
42
+ :validation="activeValidation"
42
43
  )
43
- template(v-else-if="type === 'combobox'")
44
- //- For internal combobox, we assume same items for now or specific logic could be added
44
+ template(v-else-if="activeType === 'combobox'")
45
45
  KCombobox(
46
46
  v-model="inputValue"
47
- :dataProvider="dataProvider"
48
- :labelField="labelField"
49
- :valueField="valueField"
50
- :placeholder="inputPlaceholder"
51
- :searchbox="searchbox"
47
+ :dataProvider="activeConfig.inputDataProvider || dataProvider"
48
+ :labelField="activeConfig.inputLabelField || labelField"
49
+ :valueField="activeConfig.inputValueField || valueField"
50
+ :placeholder="activeConfig.placeholder"
51
+ :searchbox="activeConfig.inputSearchbox || false"
52
52
  :teleportTo="teleportTo"
53
- :validation="validation"
53
+ :validation="activeValidation"
54
+ closeOnSelect
54
55
  )
55
- template(v-else-if="type === 'datepicker'")
56
+ template(v-else-if="activeType === 'datepicker'")
56
57
  KDatePicker(
57
58
  v-model="inputValue"
58
- :placeholder="inputPlaceholder"
59
- :showClear="showClear"
60
- :validation="validation"
59
+ :placeholder="activeConfig.placeholder"
60
+ :showClear="activeConfig.showClear"
61
+ :format="activeConfig.inputFormat"
62
+ :validation="activeValidation"
61
63
  )
62
- template(v-else-if="type === 'datetimepicker'")
64
+ template(v-else-if="activeType === 'datetimepicker'")
63
65
  KDateTimePicker(
64
66
  v-model="inputValue"
65
- :placeholder="inputPlaceholder"
66
- :showClear="showClear"
67
- :validation="validation"
67
+ :placeholder="activeConfig.placeholder"
68
+ :showClear="activeConfig.showClear"
69
+ :format="activeConfig.inputFormat"
70
+ :validation="activeValidation"
68
71
  )
69
- template(v-else-if="type === 'hourpicker'")
72
+ template(v-else-if="activeType === 'hourpicker'")
70
73
  KHourPicker(
71
74
  v-model="inputValue"
72
- :placeholder="inputPlaceholder"
73
- :showClear="showClear"
74
- :validation="validation"
75
+ :placeholder="activeConfig.placeholder"
76
+ :showClear="activeConfig.showClear"
77
+ :format="activeConfig.inputFormat"
78
+ :validation="activeValidation"
75
79
  )
76
- span.validation-text(v-if="validation && ['success', 'warning', 'error'].includes(validation) && validationText" :class="`is-${validation}`") {{ validationText }}
80
+ span.validation-text(v-if="activeValidation && ['success', 'warning', 'error'].includes(activeValidation) && activeValidationText" :class="`is-${activeValidation}`") {{ activeValidationText }}
77
81
  </template>
78
82
 
79
83
  <script lang="ts" setup>
80
84
  import { computed } from 'vue'
81
85
  import type { ADataProvider } from '@katlux/providers'
86
+ import type { ICompositeInputConfig } from '../../../../components/KCompositeInput/KCompositeInput.logic'
82
87
 
83
88
  const props = defineProps<{
89
+ label?: string
84
90
  selectionValue: any
85
91
  inputValue: any
86
92
  modelValue: any[]
@@ -98,6 +104,9 @@ const props = defineProps<{
98
104
  teleportTo?: string
99
105
  validation?: 'success' | 'warning' | 'error' | null
100
106
  validationText?: string
107
+ inputConfigField?: string
108
+ validateAll?: boolean
109
+ resolvedInputConfig?: ICompositeInputConfig
101
110
  }>()
102
111
 
103
112
  const emit = defineEmits<{
@@ -116,9 +125,32 @@ const inputValue = computed({
116
125
  })
117
126
 
118
127
  const selectionStyle = computed(() => ({
119
- width: '120px', // Default width for selection, can be made prop if needed
128
+ width: activeType.value === 'textarea' ? '100%' : '120px', // Default width for selection, can be made prop if needed
120
129
  flex: '0 0 auto'
121
130
  }))
131
+
132
+ // Use resolved config from logic layer, with fallback to component-level props
133
+ const activeConfig = computed<ICompositeInputConfig>(() => {
134
+ if (props.resolvedInputConfig) {
135
+ return props.resolvedInputConfig
136
+ }
137
+ // Fallback to component-level props
138
+ return {
139
+ type: props.type as any,
140
+ inputType: props.inputType,
141
+ mask: props.mask,
142
+ placeholder: props.inputPlaceholder,
143
+ showClear: props.showClear,
144
+ validation: props.validation,
145
+ validationText: props.validationText,
146
+ }
147
+ })
148
+
149
+ const activeType = computed(() => activeConfig.value.type || 'textbox')
150
+
151
+ const activeValidation = computed(() => activeConfig.value.validation || props.validation || null)
152
+
153
+ const activeValidationText = computed(() => activeConfig.value.validationText || props.validationText || '')
122
154
  </script>
123
155
 
124
156
  <style lang="scss" scoped>
@@ -126,7 +158,7 @@ const selectionStyle = computed(() => ({
126
158
  width: 100%;
127
159
 
128
160
  :deep(.KGrid) {
129
- border: 1px solid var(--neutral-200);
161
+ /*border: 1px solid var(--neutral-200);
130
162
  border-radius: var(--radius-md);
131
163
  overflow: hidden;
132
164
  background: var(--neutral-50);
@@ -134,11 +166,11 @@ const selectionStyle = computed(() => ({
134
166
  &:focus-within {
135
167
  border-color: var(--primary-500);
136
168
  box-shadow: 0 0 0 2px var(--primary-100);
137
- }
169
+ }*/
138
170
  }
139
171
 
140
172
  &-selection {
141
- border-right: 1px solid var(--neutral-200);
173
+ /*border-right: 1px solid var(--neutral-200);
142
174
 
143
175
  :deep(.KGrid).is-error & { border-right-color: var(--error-500); }
144
176
  :deep(.KGrid).is-warning & { border-right-color: var(--warning-500); }
@@ -149,7 +181,7 @@ const selectionStyle = computed(() => ({
149
181
  background: transparent !important;
150
182
  box-shadow: none !important;
151
183
  padding: 0 !important;
152
- }
184
+ }*/
153
185
  }
154
186
 
155
187
  &-main {
@@ -160,7 +192,7 @@ const selectionStyle = computed(() => ({
160
192
 
161
193
  :deep(.KTextbox), :deep(.KTextarea), :deep(.KMaskTextbox), :deep(.KCombobox),
162
194
  :deep(.KDatePicker), :deep(.KDateTimePicker), :deep(.KHourPicker) {
163
- width: 100%;
195
+ /*width: 100%;
164
196
  border: none !important;
165
197
  background: transparent !important;
166
198
  box-shadow: none !important;
@@ -181,7 +213,7 @@ const selectionStyle = computed(() => ({
181
213
  box-shadow: none !important;
182
214
  outline: none !important;
183
215
  padding: 0 12px !important;
184
- }
216
+ }*/
185
217
  }
186
218
  }
187
219
 
@@ -190,12 +222,12 @@ const selectionStyle = computed(() => ({
190
222
  flex-direction: row-reverse;
191
223
  }
192
224
  .KCompositeInput-selection {
193
- border-right: none;
225
+ /*border-right: none;
194
226
  border-left: 1px solid var(--neutral-200);
195
227
 
196
228
  :deep(.KGrid).is-error & { border-left-color: var(--error-500); }
197
229
  :deep(.KGrid).is-warning & { border-left-color: var(--warning-500); }
198
- :deep(.KGrid).is-success & { border-left-color: var(--success-500); }
230
+ :deep(.KGrid).is-success & { border-left-color: var(--success-500); }*/
199
231
  }
200
232
  }
201
233
  }
@@ -1,5 +1,7 @@
1
1
  import type { ADataProvider } from '@katlux/providers';
2
+ import type { ICompositeInputConfig } from '../../../../components/KCompositeInput/KCompositeInput.logic.js';
2
3
  type __VLS_Props = {
4
+ label?: string;
3
5
  selectionValue: any;
4
6
  inputValue: any;
5
7
  modelValue: any[];
@@ -17,6 +19,9 @@ type __VLS_Props = {
17
19
  teleportTo?: string;
18
20
  validation?: 'success' | 'warning' | 'error' | null;
19
21
  validationText?: string;
22
+ inputConfigField?: string;
23
+ validateAll?: boolean;
24
+ resolvedInputConfig?: ICompositeInputConfig;
20
25
  };
21
26
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
22
27
  "update:selectionValue": (value: any) => any;
@@ -1,5 +1,6 @@
1
1
  import type { IMarkedDay, IDefinedDay } from '../../../../components/KCalendar/types.js';
2
2
  type __VLS_Props = {
3
+ label?: string;
3
4
  maskedModel: string;
4
5
  calendarShow: boolean;
5
6
  _date: any;
@@ -1,5 +1,6 @@
1
1
  <template lang="pug">
2
2
  .KDatePicker(ref="activatorRef")
3
+ label.k-input-label(v-if="label") {{ label }}
3
4
  KMaskTextbox(
4
5
  v-model="maskedModel"
5
6
  :key="maskedModel"
@@ -24,6 +25,7 @@ import type {
24
25
  } from '../../../../components/KCalendar/types'
25
26
 
26
27
  const props = defineProps<{
28
+ label?: string
27
29
  maskedModel: string
28
30
  calendarShow: boolean
29
31
  _date: any
@@ -1,5 +1,6 @@
1
1
  import type { IMarkedDay, IDefinedDay } from '../../../../components/KCalendar/types.js';
2
2
  type __VLS_Props = {
3
+ label?: string;
3
4
  maskedModel: string;
4
5
  calendarShow: boolean;
5
6
  _date: any;
@@ -1,5 +1,6 @@
1
1
  import type { IMarkedDay, IDefinedDay } from '../../../../components/KCalendar/types.js';
2
2
  type __VLS_Props = {
3
+ label?: string;
3
4
  maskedModel: string;
4
5
  calendarShow: boolean;
5
6
  _date: any;
@@ -1,5 +1,6 @@
1
1
  <template lang="pug">
2
2
  .KDateTimePicker(ref="activatorRef" @click.stop="textboxClicked")
3
+ label.k-input-label(v-if="label") {{ label }}
3
4
  KMaskTextbox(
4
5
  v-model="maskedModel"
5
6
  :key="maskedModel"
@@ -28,6 +29,7 @@ import type {
28
29
  } from '../../../../components/KCalendar/types'
29
30
 
30
31
  const props = defineProps<{
32
+ label?: string
31
33
  maskedModel: string
32
34
  calendarShow: boolean
33
35
  _date: any
@@ -1,5 +1,6 @@
1
1
  import type { IMarkedDay, IDefinedDay } from '../../../../components/KCalendar/types.js';
2
2
  type __VLS_Props = {
3
+ label?: string;
3
4
  maskedModel: string;
4
5
  calendarShow: boolean;
5
6
  _date: any;
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  maskedModel: string;
3
4
  isOpen: boolean;
4
5
  step: number;
@@ -1,5 +1,6 @@
1
1
  <template lang="pug">
2
2
  .KHourPicker(ref="activatorRef")
3
+ label.k-input-label(v-if="label") {{ label }}
3
4
  KMaskTextbox(
4
5
  v-model:maskedValue="maskedModel"
5
6
  :mask="format"
@@ -35,6 +36,7 @@ import KHourSelect from '../../../../components/KHourSelect/KHourSelect.global.v
35
36
  import KMaskTextbox from '../../../../components/KMaskTextbox/KMaskTextbox.global.vue'
36
37
 
37
38
  const props = defineProps<{
39
+ label?: string
38
40
  maskedModel: string
39
41
  isOpen: boolean
40
42
  step: number
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  maskedModel: string;
3
4
  isOpen: boolean;
4
5
  step: number;
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  timeSlots: string[];
3
4
  selectedTime: string;
4
5
  selectTime: (time: string) => void;
@@ -1,5 +1,6 @@
1
1
  <template lang="pug">
2
2
  .KHourSelect
3
+ label.k-input-label(v-if="label") {{ label }}
3
4
  .time-list
4
5
  .time-item(
5
6
  v-for="time in timeSlots"
@@ -11,6 +12,7 @@
11
12
 
12
13
  <script lang="ts" setup>
13
14
  const props = defineProps<{
15
+ label?: string
14
16
  timeSlots: string[]
15
17
  selectedTime: string
16
18
  selectTime: (time: string) => void
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  timeSlots: string[];
3
4
  selectedTime: string;
4
5
  selectTime: (time: string) => void;
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  maskedValue: string;
3
4
  placeholder: string;
4
5
  showClear: boolean;
@@ -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,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  maskedValue: string;
3
4
  placeholder: string;
4
5
  showClear: boolean;
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  rangeMin: number;
3
4
  rangeMax: number;
4
5
  rangeStep: number;
@@ -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,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  rangeMin: number;
3
4
  rangeMax: number;
4
5
  rangeStep: number;
@@ -1,3 +1,6 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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></script>
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
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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,3 +1,6 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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></script>
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
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  rangeMin: number;
3
4
  rangeMax: number;
4
5
  rangeStep: number;
@@ -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,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  rangeMin: number;
3
4
  rangeMax: number;
4
5
  rangeStep: number;
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  placeholder: string;
3
4
  rows: number;
4
5
  validation?: 'success' | 'warning' | 'error' | null;
@@ -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(--neutral-50);
37
+ background-color: var(--input-bg);
36
38
  padding: var(--component-gap);
37
39
  font-family: inherit;
38
40
  font-size: 14px;
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  placeholder: string;
3
4
  rows: number;
4
5
  validation?: 'success' | 'warning' | 'error' | null;
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ label?: string;
2
3
  text: string;
3
4
  showClear: boolean;
4
5
  clear: () => void;