@katlux/toolkit 0.1.0-beta.5 → 0.1.0-beta.50
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/compiled/composables/usePresetComponent.mjs +21 -16
- package/dist/module.cjs +52 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +52 -0
- package/dist/runtime/components/KCalendar/KCalendar.global.d.vue.ts +11 -12
- package/dist/runtime/components/KCalendar/KCalendar.global.vue.d.ts +11 -12
- package/dist/runtime/components/KCalendar/KCalendar.logic.d.ts +1 -0
- package/dist/runtime/components/KCalendar/KCalendar.logic.js +25 -10
- package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +18 -10
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +6 -2
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +18 -10
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +78 -0
- package/dist/runtime/components/KCombobox/KCombobox.logic.js +8 -3
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +149 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue +65 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +149 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +116 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.js +149 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +56 -8
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +23 -3
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +56 -8
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +22 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +89 -7
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +54 -8
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +23 -3
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +54 -8
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +22 -1
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +148 -7
- package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +18 -0
- package/dist/runtime/components/KDropdown/KDropdown.global.vue +13 -4
- package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +18 -0
- package/dist/runtime/components/KDropdown/KDropdown.logic.d.ts +28 -1
- package/dist/runtime/components/KDropdown/KDropdown.logic.js +85 -4
- package/dist/runtime/components/KGrid/KGrid.global.d.vue.ts +7 -56
- package/dist/runtime/components/KGrid/KGrid.global.vue +9 -2
- package/dist/runtime/components/KGrid/KGrid.global.vue.d.ts +7 -56
- package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +20 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +25 -12
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +20 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.d.ts +14 -3
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.js +25 -10
- package/dist/runtime/components/KHourSelect/KHourSelect.logic.js +4 -1
- package/dist/runtime/components/KIcon/KIcon.global.d.vue.ts +1 -1
- package/dist/runtime/components/KIcon/KIcon.global.vue.d.ts +1 -1
- package/dist/runtime/components/KIcon/KIcon.logic.d.ts +1 -1
- package/dist/runtime/components/KIcon/KIcon.logic.js +13 -8
- package/dist/runtime/components/KLoader/KLoader.global.d.vue.ts +3 -3
- package/dist/runtime/components/KLoader/KLoader.global.vue.d.ts +3 -3
- package/dist/runtime/components/KLoader/KLoader.logic.d.ts +8 -1
- package/dist/runtime/components/KLoader/KLoader.logic.js +1 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +1 -1
- package/dist/runtime/components/KModal/KModal.global.vue +4 -1
- package/dist/runtime/components/KModal/KModal.logic.d.ts +3 -1
- package/dist/runtime/components/KModal/KModal.logic.js +6 -2
- package/dist/runtime/components/KPanel/KPanel.global.d.vue.ts +5 -28
- package/dist/runtime/components/KPanel/KPanel.global.vue +12 -4
- package/dist/runtime/components/KPanel/KPanel.global.vue.d.ts +5 -28
- package/dist/runtime/components/KPanel/KPanel.logic.d.ts +10 -0
- package/dist/runtime/components/KPanel/KPanel.logic.js +8 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +15 -2
- package/dist/runtime/components/KTextbox/KTextbox.global.vue +5 -4
- package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +15 -2
- package/dist/runtime/components/KTextbox/KTextbox.logic.d.ts +10 -4
- package/dist/runtime/components/KTextbox/KTextbox.logic.js +12 -5
- package/dist/runtime/components/KTree/KTree.global.d.vue.ts +1 -1
- package/dist/runtime/components/KTree/KTree.global.vue.d.ts +1 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +2 -2
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +2 -2
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +77 -0
- package/dist/runtime/composables/usePresetComponent.d.ts +16 -0
- package/dist/runtime/composables/usePresetComponent.js +21 -16
- package/dist/runtime/presets/default/assets/scss/css-variables.css +64 -13
- package/dist/runtime/presets/default/assets/scss/css-variables.scss +286 -0
- package/dist/runtime/presets/default/assets/scss/docs.scss +52 -0
- package/dist/runtime/presets/default/assets/scss/index.css +72 -13
- package/dist/runtime/presets/default/assets/scss/index.scss +12 -0
- package/dist/runtime/presets/default/assets/scss/mixins.scss +94 -0
- package/dist/runtime/presets/default/assets/scss/reset.scss +16 -0
- package/dist/runtime/presets/default/components/KAccordion/KAccordion.vue +5 -2
- package/dist/runtime/presets/default/components/KAccordion/KAccordionItem.vue +40 -37
- package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.vue +29 -22
- package/dist/runtime/presets/default/components/KButton/KButton.vue +147 -428
- package/dist/runtime/presets/default/components/KCalendar/KCalendar.vue +57 -53
- package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.vue +189 -161
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue +46 -36
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +90 -70
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue +78 -60
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.d.vue.ts +27 -0
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue +190 -0
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue.d.ts +27 -0
- package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue +40 -31
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +110 -92
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +44 -25
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue +68 -52
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.d.vue.ts +8 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue +46 -25
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue.d.ts +8 -0
- package/dist/runtime/presets/default/components/KGantt/KGantt.vue +337 -241
- package/dist/runtime/presets/default/components/KGantt/KGanttRuler.vue +40 -35
- package/dist/runtime/presets/default/components/KGantt/KGanttTimeline.vue +170 -140
- package/dist/runtime/presets/default/components/KGrid/KGrid.vue +62 -60
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.d.vue.ts +6 -2
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue +44 -28
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +6 -2
- package/dist/runtime/presets/default/components/KHourSelect/KHourSelect.vue +34 -28
- package/dist/runtime/presets/default/components/KIcon/KIcon.d.vue.ts +1 -1
- package/dist/runtime/presets/default/components/KIcon/KIcon.vue +31 -22
- package/dist/runtime/presets/default/components/KIcon/KIcon.vue.d.ts +1 -1
- package/dist/runtime/presets/default/components/KLoader/KLoader.vue +53 -47
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue +113 -84
- package/dist/runtime/presets/default/components/KModal/KModal.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KModal/KModal.vue +64 -35
- package/dist/runtime/presets/default/components/KModal/KModal.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KPagination/KPagination.vue +42 -40
- package/dist/runtime/presets/default/components/KPanel/KPanel.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KPanel/KPanel.vue +95 -34
- package/dist/runtime/presets/default/components/KPanel/KPanel.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue +30 -29
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue +158 -125
- package/dist/runtime/presets/default/components/KSlider/KSlider.vue +123 -100
- package/dist/runtime/presets/default/components/KTabs/KTabItem.vue +40 -37
- package/dist/runtime/presets/default/components/KTabs/KTabs.vue +9 -6
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue +23 -20
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.d.vue.ts +2 -1
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +49 -36
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue.d.ts +2 -1
- package/dist/runtime/presets/default/components/KTree/KTree.vue +102 -80
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +55 -34
- package/dist/runtime/presets/default/components/KTreeView/KTreeCell.vue +31 -30
- package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue +34 -27
- package/package.json +5 -5
|
@@ -20,61 +20,65 @@
|
|
|
20
20
|
)
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
|
-
<script setup>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
23
|
+
<script lang="ts" setup>
|
|
24
|
+
import type { IMarkedDay, IDefinedDay } from '../../../../components/KCalendar/types'
|
|
25
|
+
|
|
26
|
+
const props = defineProps<{
|
|
27
|
+
view: string
|
|
28
|
+
viewCount: number
|
|
29
|
+
actualYear: any
|
|
30
|
+
monthSelectedDay: any
|
|
31
|
+
goToPrev: () => void
|
|
32
|
+
goToNext: () => void
|
|
33
|
+
getMonthName: (i: number) => string
|
|
34
|
+
showingMonth: (i: number) => number
|
|
35
|
+
showingYear: (i: number) => number
|
|
36
|
+
getExpandedDefinedDays: (i: number) => IDefinedDay[]
|
|
37
|
+
getExpandedMarkedDays: (i: number) => IMarkedDay[]
|
|
38
|
+
dayClicked: (date: Date) => void
|
|
39
|
+
}>()
|
|
38
40
|
</script>
|
|
39
41
|
|
|
40
|
-
<style scoped>
|
|
42
|
+
<style lang="scss" scoped>
|
|
41
43
|
.KCalendar {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
44
|
+
width: fit-content;
|
|
45
|
+
.view-header {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
flex-wrap: nowrap;
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
.prev,
|
|
51
|
+
.next {
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
transition: all 0.2s ease;
|
|
54
|
+
width: 28px;
|
|
55
|
+
height: 28px;
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: center;
|
|
59
|
+
border-radius: 4px;
|
|
60
|
+
&:hover {
|
|
61
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.months {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: row;
|
|
68
|
+
flex-wrap: wrap;
|
|
69
|
+
gap: var(--grid-gap);
|
|
70
|
+
max-width: 790px;
|
|
71
|
+
width: fit-content;
|
|
72
|
+
.month {
|
|
73
|
+
//flex: 0 0 calc(33.333% - (2 * var(--grid-gap)) / 3);
|
|
74
|
+
max-width: 250px;
|
|
75
|
+
min-width: 250px;
|
|
76
|
+
//max-width: calc(33% - var(--grid-gap));
|
|
77
|
+
|
|
78
|
+
.month-name {
|
|
79
|
+
text-align: center;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
79
83
|
}
|
|
80
84
|
</style>
|
|
@@ -21,169 +21,197 @@
|
|
|
21
21
|
)
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
|
-
<script setup>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
24
|
+
<script lang="ts" setup>
|
|
25
|
+
import type { IMarkedDay } from '../../../../components/KCalendar/types'
|
|
26
|
+
|
|
27
|
+
const props = defineProps<{
|
|
28
|
+
year: number
|
|
29
|
+
month: number
|
|
30
|
+
weekdays: string[]
|
|
31
|
+
calendarDays: (number|string)[]
|
|
32
|
+
isMarked: (day: number | string) => boolean
|
|
33
|
+
isSelectedDay: (day: number) => boolean
|
|
34
|
+
getMarkedDayClass: (day: number) => string
|
|
35
|
+
selectDay: (day: number) => void
|
|
36
|
+
getCalendarDaysData: (day: number) => IMarkedDay[]
|
|
37
|
+
}>()
|
|
36
38
|
</script>
|
|
37
39
|
|
|
38
|
-
<style scoped>
|
|
40
|
+
<style lang="scss" scoped>
|
|
41
|
+
@use 'sass:color';
|
|
42
|
+
|
|
39
43
|
.KCalendarMonth {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
.
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
.
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
44
|
+
width: 100%;
|
|
45
|
+
.calendar-header {
|
|
46
|
+
width: 100%;
|
|
47
|
+
display: grid;
|
|
48
|
+
grid-template-columns: repeat(7, 1fr);
|
|
49
|
+
align-items: center;
|
|
50
|
+
|
|
51
|
+
.weekday {
|
|
52
|
+
text-align: center;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
.calendar-days {
|
|
56
|
+
display: grid;
|
|
57
|
+
grid-template-columns: repeat(7, 1fr);
|
|
58
|
+
.day {
|
|
59
|
+
text-align: center;
|
|
60
|
+
position: relative;
|
|
61
|
+
padding: 4px;
|
|
62
|
+
border-radius: 4px;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
transition: all 0.2s ease;
|
|
65
|
+
width: 28px;
|
|
66
|
+
height: 28px;
|
|
67
|
+
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: row;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.marked {
|
|
78
|
+
&:hover {
|
|
79
|
+
opacity: 0.8;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.empty {
|
|
84
|
+
cursor: default;
|
|
85
|
+
|
|
86
|
+
&:hover {
|
|
87
|
+
background-color: transparent;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Type-based styling
|
|
92
|
+
&.success {
|
|
93
|
+
color: var(--accent-700);
|
|
94
|
+
background-color: var(--accent-100);
|
|
95
|
+
|
|
96
|
+
&:hover {
|
|
97
|
+
background-color: var(--accent-300);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.error {
|
|
102
|
+
color: var(--error-color);
|
|
103
|
+
background-color: var(--error-color-light);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.warning {
|
|
107
|
+
color: var(--warning-color);
|
|
108
|
+
background-color: var(--warning-color-light);
|
|
109
|
+
|
|
110
|
+
&:hover {
|
|
111
|
+
background-color: var(--warning-color-light);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&.primary {
|
|
116
|
+
color: var(--primary-700);
|
|
117
|
+
background-color: var(--primary-100);
|
|
118
|
+
|
|
119
|
+
&:hover {
|
|
120
|
+
background-color: var(--primary-300);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.secondary {
|
|
125
|
+
color: var(--font-color-primary);
|
|
126
|
+
background-color: var(--neutral-100);
|
|
127
|
+
|
|
128
|
+
&:hover {
|
|
129
|
+
background-color: var(--neutral-200);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.dark {
|
|
134
|
+
color: var(--font-color-light);
|
|
135
|
+
background-color: var(--neutral-700);
|
|
136
|
+
|
|
137
|
+
&:hover {
|
|
138
|
+
background-color: var(--neutral-500);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&.offday {
|
|
143
|
+
font-style: italic;
|
|
144
|
+
color: var(--neutral-500);
|
|
145
|
+
}
|
|
146
|
+
&.bold {
|
|
147
|
+
font-weight: bold;
|
|
148
|
+
}
|
|
149
|
+
&.underlined {
|
|
150
|
+
text-decoration: underline;
|
|
151
|
+
}
|
|
152
|
+
&.disabled {
|
|
153
|
+
color: var(--neutral-400);
|
|
154
|
+
pointer-events: none;
|
|
155
|
+
background: var(--neutral-100);
|
|
156
|
+
opacity: 0.6;
|
|
157
|
+
}
|
|
158
|
+
&.circled {
|
|
159
|
+
.day-number {
|
|
160
|
+
display: inline-block;
|
|
161
|
+
border: 2px solid var(--primary-500);
|
|
162
|
+
border-radius: 50%;
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
background: var(--background-color-light);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
&.selected {
|
|
168
|
+
background-color: var(--primary-100);
|
|
169
|
+
color: var(--primary-700);
|
|
170
|
+
.day-number {
|
|
171
|
+
display: inline-block;
|
|
172
|
+
border: 2px solid var(--primary-900);
|
|
173
|
+
border-radius: 50%;
|
|
174
|
+
box-sizing: border-box;
|
|
175
|
+
background: var(--background-color-light);
|
|
176
|
+
width: 23px;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
.marked-indicators-row {
|
|
180
|
+
position: absolute;
|
|
181
|
+
top: 2px;
|
|
182
|
+
right: 2px;
|
|
183
|
+
display: flex;
|
|
184
|
+
gap: 2px;
|
|
185
|
+
z-index: 2;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
.marked-indicator {
|
|
188
|
+
width: 6px;
|
|
189
|
+
height: 6px;
|
|
190
|
+
border-radius: 50%;
|
|
191
|
+
opacity: 0.7;
|
|
192
|
+
display: inline-block;
|
|
193
|
+
|
|
194
|
+
&.primary {
|
|
195
|
+
background-color: var(--primary-500);
|
|
196
|
+
}
|
|
197
|
+
&.success {
|
|
198
|
+
background-color: var(--success-color);
|
|
199
|
+
}
|
|
200
|
+
&.warning {
|
|
201
|
+
background-color: var(--warning-color);
|
|
202
|
+
}
|
|
203
|
+
&.error {
|
|
204
|
+
background-color: var(--error-color);
|
|
205
|
+
}
|
|
206
|
+
&.secondary {
|
|
207
|
+
background-color: var(--neutral-500);
|
|
208
|
+
}
|
|
209
|
+
&.dark {
|
|
210
|
+
background-color: var(--neutral-100);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
188
216
|
}
|
|
189
217
|
</style>
|
|
@@ -7,45 +7,55 @@ label.KCheckbox
|
|
|
7
7
|
slot
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
|
-
<script setup>
|
|
11
|
-
import { computed } from
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
<script lang="ts" setup>
|
|
11
|
+
import { computed } from 'vue'
|
|
12
|
+
|
|
13
|
+
// Default template for KCheckbox
|
|
14
|
+
const props = defineProps<{
|
|
15
|
+
model: any
|
|
16
|
+
checkboxValue: any
|
|
17
|
+
isDisabled: boolean
|
|
18
|
+
}>()
|
|
19
|
+
|
|
20
|
+
const emit = defineEmits<{
|
|
21
|
+
(e: 'update:model', value: any): void
|
|
22
|
+
}>()
|
|
23
|
+
|
|
18
24
|
const internalModel = computed({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})
|
|
25
|
+
get: () => props.model,
|
|
26
|
+
set: (value) => emit('update:model', value)
|
|
27
|
+
})
|
|
22
28
|
</script>
|
|
23
29
|
|
|
24
|
-
<style scoped>
|
|
30
|
+
<style lang="scss" scoped>
|
|
25
31
|
.KCheckbox {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
32
|
+
display: flex;
|
|
33
|
+
gap: 5px;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
|
|
36
|
+
input {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.icon-container {
|
|
41
|
+
border: var(--input-border);
|
|
42
|
+
width: var(--box-padding);
|
|
43
|
+
height: var(--box-padding);
|
|
44
|
+
text-align: center;
|
|
45
|
+
line-height: var(--box-padding);
|
|
46
|
+
border-radius: var(--input-border-radius);
|
|
47
|
+
background-color: var(--checkbox-bg);
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.icon {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:checked + .icon-container > .icon {
|
|
58
|
+
display: block;
|
|
59
|
+
}
|
|
50
60
|
}
|
|
51
61
|
</style>
|
|
@@ -13,11 +13,14 @@ type __VLS_Props = {
|
|
|
13
13
|
selectItem: (option: ComboboxItem) => void;
|
|
14
14
|
isSelected: (option: ComboboxItem) => boolean;
|
|
15
15
|
loading: boolean;
|
|
16
|
+
teleportTo?: string;
|
|
16
17
|
};
|
|
17
18
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
19
|
"update:searchtext": (value: string) => any;
|
|
20
|
+
"update:isOptionsOpen": (value: boolean) => any;
|
|
19
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
22
|
"onUpdate:searchtext"?: ((value: string) => any) | undefined;
|
|
23
|
+
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
21
24
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
25
|
declare const _default: typeof __VLS_export;
|
|
23
26
|
export default _default;
|