@katlux/toolkit 0.1.0-beta.6 → 0.1.0-beta.60
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/KBulkActions/KBulkActions.logic.d.ts +9 -2
- package/dist/runtime/components/KButton/KButton.logic.d.ts +1 -1
- 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/KCheckbox/KCheckbox.global.d.vue.ts +30 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.global.vue +4 -1
- package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +30 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.logic.d.ts +17 -0
- package/dist/runtime/components/KCheckbox/KCheckbox.logic.js +16 -1
- package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +75 -8
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +18 -4
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +75 -8
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +46 -8
- package/dist/runtime/components/KCombobox/KCombobox.logic.js +77 -9
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +169 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue +46 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +169 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +127 -0
- package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.js +160 -0
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue +1 -1
- package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +2 -2
- package/dist/runtime/components/KDatatable/KDatatable.global.vue +1 -1
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +2 -2
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +95 -8
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +27 -3
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +95 -8
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +43 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +106 -7
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +84 -8
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue +26 -3
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +84 -8
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +38 -1
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +161 -7
- package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +27 -0
- package/dist/runtime/components/KDropdown/KDropdown.global.vue +14 -4
- package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +27 -0
- package/dist/runtime/components/KDropdown/KDropdown.logic.d.ts +36 -1
- package/dist/runtime/components/KDropdown/KDropdown.logic.js +92 -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 +41 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue +27 -12
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +41 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.d.ts +26 -3
- package/dist/runtime/components/KHourPicker/KHourPicker.logic.js +34 -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/KMaskTextbox/KMaskTextbox.global.d.vue.ts +21 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue +4 -2
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +21 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.d.ts +11 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.logic.js +9 -0
- package/dist/runtime/components/KModal/KModal.global.d.vue.ts +14 -2
- package/dist/runtime/components/KModal/KModal.global.vue +5 -1
- package/dist/runtime/components/KModal/KModal.global.vue.d.ts +14 -2
- package/dist/runtime/components/KModal/KModal.logic.d.ts +10 -2
- package/dist/runtime/components/KModal/KModal.logic.js +12 -3
- package/dist/runtime/components/KPagination/KPagination.global.vue +1 -1
- 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/KRadiobox/KRadiobox.global.d.vue.ts +21 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.global.vue +3 -1
- package/dist/runtime/components/KRadiobox/KRadiobox.global.vue.d.ts +21 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.logic.d.ts +11 -0
- package/dist/runtime/components/KRadiobox/KRadiobox.logic.js +9 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +21 -0
- package/dist/runtime/components/KTextarea/KTextarea.global.vue +3 -1
- package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +21 -0
- package/dist/runtime/components/KTextarea/KTextarea.logic.d.ts +11 -0
- package/dist/runtime/components/KTextarea/KTextarea.logic.js +9 -0
- package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +35 -2
- package/dist/runtime/components/KTextbox/KTextbox.global.vue +7 -4
- package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +35 -2
- package/dist/runtime/components/KTextbox/KTextbox.logic.d.ts +21 -4
- package/dist/runtime/components/KTextbox/KTextbox.logic.js +21 -5
- package/dist/runtime/components/KToast/KToast.global.d.vue.ts +57 -0
- package/dist/runtime/components/KToast/KToast.global.vue +32 -0
- package/dist/runtime/components/KToast/KToast.global.vue.d.ts +57 -0
- package/dist/runtime/components/KToast/KToast.logic.d.ts +34 -0
- package/dist/runtime/components/KToast/KToast.logic.js +47 -0
- package/dist/runtime/components/KTree/KTree.logic.d.ts +1 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +65 -7
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +15 -3
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +65 -7
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +37 -5
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +32 -1
- package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +8 -8
- package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +8 -8
- package/dist/runtime/components/KTreeView/KTreeView.logic.d.ts +1 -1
- 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 +99 -13
- package/dist/runtime/presets/default/assets/scss/index.scss +42 -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.d.vue.ts +3 -0
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue +59 -42
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +7 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +108 -79
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +7 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue +79 -61
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.d.vue.ts +29 -0
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue +202 -0
- package/dist/runtime/presets/default/components/KCompositeInput/KCompositeInput.vue.d.ts +29 -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 +7 -0
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +58 -25
- package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +7 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.d.vue.ts +6 -0
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue +81 -52
- package/dist/runtime/presets/default/components/KDateTimePicker/KDateTimePicker.vue.d.ts +6 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.d.vue.ts +10 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue +57 -25
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue.d.ts +10 -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 +8 -2
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue +48 -28
- package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +8 -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 +65 -48
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue +117 -84
- package/dist/runtime/presets/default/components/KMaskTextbox/KMaskTextbox.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KModal/KModal.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KModal/KModal.vue +85 -35
- package/dist/runtime/presets/default/components/KModal/KModal.vue.d.ts +2 -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 +97 -34
- package/dist/runtime/presets/default/components/KPanel/KPanel.vue.d.ts +3 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue +40 -35
- package/dist/runtime/presets/default/components/KRadiobox/KRadiobox.vue.d.ts +2 -0
- 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.d.vue.ts +2 -0
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue +40 -21
- package/dist/runtime/presets/default/components/KTextarea/KTextarea.vue.d.ts +2 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.d.vue.ts +4 -1
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +76 -37
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue.d.ts +4 -1
- package/dist/runtime/presets/default/components/KToast/KToast.d.vue.ts +17 -0
- package/dist/runtime/presets/default/components/KToast/KToast.vue +118 -0
- package/dist/runtime/presets/default/components/KToast/KToast.vue.d.ts +17 -0
- package/dist/runtime/presets/default/components/KTree/KTree.vue +103 -80
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.d.vue.ts +6 -0
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +88 -55
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +6 -0
- 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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { KTreePickerDefaultProps, useKTreePickerLogic } from "./KTreePicker.logic";
|
|
3
3
|
import { usePresetComponent } from "../../composables/usePresetComponent";
|
|
4
|
-
import { computed } from "vue";
|
|
4
|
+
import { computed, watch } from "vue";
|
|
5
5
|
import KTreePickerDefault from "../../presets/default/components/KTreePicker/KTreePicker.vue";
|
|
6
6
|
const props = defineProps(KTreePickerDefaultProps);
|
|
7
|
-
const emit = defineEmits(["update:modelValue", "change"]);
|
|
7
|
+
const emit = defineEmits(["update:modelValue", "change", "update:isOptionsOpen"]);
|
|
8
8
|
const {
|
|
9
9
|
selectedItems,
|
|
10
10
|
isOptionsOpen,
|
|
@@ -17,6 +17,9 @@ const {
|
|
|
17
17
|
filteredOptions,
|
|
18
18
|
loading
|
|
19
19
|
} = useKTreePickerLogic(props, emit);
|
|
20
|
+
watch(isOptionsOpen, (newVal) => {
|
|
21
|
+
emit("update:isOptionsOpen", newVal);
|
|
22
|
+
});
|
|
20
23
|
const presetComponent = usePresetComponent("KTreePicker", KTreePickerDefault);
|
|
21
24
|
const templateProps = computed(() => ({
|
|
22
25
|
// KTreePicker specific
|
|
@@ -31,6 +34,7 @@ const templateProps = computed(() => ({
|
|
|
31
34
|
labelField: props.labelField,
|
|
32
35
|
placeholder: props.placeholder,
|
|
33
36
|
searchbox: props.searchbox,
|
|
37
|
+
searchPlaceholder: props.searchPlaceholder,
|
|
34
38
|
searchtext: searchtext.value,
|
|
35
39
|
multiSelect: props.multiSelect,
|
|
36
40
|
filteredOptions: filteredOptions.value,
|
|
@@ -40,7 +44,11 @@ const templateProps = computed(() => ({
|
|
|
40
44
|
selectItem,
|
|
41
45
|
isSelected,
|
|
42
46
|
loading: loading.value || props.loading,
|
|
43
|
-
closeOnSelect: props.closeOnSelect
|
|
47
|
+
closeOnSelect: props.closeOnSelect,
|
|
48
|
+
valueField: props.valueField || props.idKey,
|
|
49
|
+
validation: props.validation,
|
|
50
|
+
validationText: props.validationText,
|
|
51
|
+
fullWidth: props.fullWidth
|
|
44
52
|
}));
|
|
45
53
|
function onUpdateModelValue(val) {
|
|
46
54
|
emit("update:modelValue", val);
|
|
@@ -51,6 +59,9 @@ function onChange(val) {
|
|
|
51
59
|
function updateSearchText(val) {
|
|
52
60
|
searchtext.value = val;
|
|
53
61
|
}
|
|
62
|
+
function updateIsOptionsOpen(val) {
|
|
63
|
+
isOptionsOpen.value = val;
|
|
64
|
+
}
|
|
54
65
|
</script>
|
|
55
66
|
|
|
56
67
|
<template lang="pug">
|
|
@@ -60,6 +71,7 @@ component(
|
|
|
60
71
|
@update:modelValue="onUpdateModelValue"
|
|
61
72
|
@change="onChange"
|
|
62
73
|
@update:searchtext="updateSearchText"
|
|
74
|
+
@update:isOptionsOpen="updateIsOptionsOpen"
|
|
63
75
|
)
|
|
64
76
|
template(v-for="(_, slot) in $slots" #[slot]="scope")
|
|
65
77
|
slot(:name="slot" v-bind="scope")
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
+
import { type KTreePickerProps } from './KTreePicker.logic.js';
|
|
1
2
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
3
|
modelValue: {
|
|
3
|
-
type: PropType<any>;
|
|
4
|
+
type: import("vue").PropType<any>;
|
|
4
5
|
default: null;
|
|
5
6
|
};
|
|
6
7
|
dataProvider: {
|
|
7
|
-
type: PropType<ADataProvider>;
|
|
8
|
+
type: import("vue").PropType<import("@katlux/providers").ADataProvider>;
|
|
8
9
|
required: boolean;
|
|
9
10
|
};
|
|
10
11
|
labelField: {
|
|
11
12
|
type: StringConstructor;
|
|
12
13
|
required: boolean;
|
|
13
14
|
};
|
|
15
|
+
valueField: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
14
19
|
placeholder: {
|
|
15
20
|
type: StringConstructor;
|
|
16
21
|
default: string;
|
|
@@ -47,22 +52,48 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
47
52
|
type: BooleanConstructor;
|
|
48
53
|
default: boolean;
|
|
49
54
|
};
|
|
55
|
+
searchPlaceholder: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
validation: {
|
|
60
|
+
type: import("vue").PropType<KTreePickerProps["validation"]>;
|
|
61
|
+
default: null;
|
|
62
|
+
validator: (value: string) => boolean;
|
|
63
|
+
};
|
|
64
|
+
validationText: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
isOptionsOpen: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
fullWidth: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
50
76
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
51
77
|
change: (value: any) => any;
|
|
52
78
|
"update:modelValue": (value: any) => any;
|
|
79
|
+
"update:isOptionsOpen": (value: boolean) => any;
|
|
53
80
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
81
|
modelValue: {
|
|
55
|
-
type: PropType<any>;
|
|
82
|
+
type: import("vue").PropType<any>;
|
|
56
83
|
default: null;
|
|
57
84
|
};
|
|
58
85
|
dataProvider: {
|
|
59
|
-
type: PropType<ADataProvider>;
|
|
86
|
+
type: import("vue").PropType<import("@katlux/providers").ADataProvider>;
|
|
60
87
|
required: boolean;
|
|
61
88
|
};
|
|
62
89
|
labelField: {
|
|
63
90
|
type: StringConstructor;
|
|
64
91
|
required: boolean;
|
|
65
92
|
};
|
|
93
|
+
valueField: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: null;
|
|
96
|
+
};
|
|
66
97
|
placeholder: {
|
|
67
98
|
type: StringConstructor;
|
|
68
99
|
default: string;
|
|
@@ -99,21 +130,48 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
99
130
|
type: BooleanConstructor;
|
|
100
131
|
default: boolean;
|
|
101
132
|
};
|
|
133
|
+
searchPlaceholder: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
validation: {
|
|
138
|
+
type: import("vue").PropType<KTreePickerProps["validation"]>;
|
|
139
|
+
default: null;
|
|
140
|
+
validator: (value: string) => boolean;
|
|
141
|
+
};
|
|
142
|
+
validationText: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
|
+
isOptionsOpen: {
|
|
147
|
+
type: BooleanConstructor;
|
|
148
|
+
default: undefined;
|
|
149
|
+
};
|
|
150
|
+
fullWidth: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
102
154
|
}>> & Readonly<{
|
|
103
155
|
onChange?: ((value: any) => any) | undefined;
|
|
104
156
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
157
|
+
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
105
158
|
}>, {
|
|
159
|
+
parentKey: string;
|
|
160
|
+
idKey: string;
|
|
106
161
|
disabled: boolean;
|
|
107
162
|
loading: boolean;
|
|
163
|
+
validation: "error" | "success" | "warning" | null | undefined;
|
|
164
|
+
validationText: string;
|
|
108
165
|
modelValue: any;
|
|
109
166
|
searchbox: boolean;
|
|
167
|
+
searchPlaceholder: string;
|
|
168
|
+
isOptionsOpen: boolean;
|
|
110
169
|
placeholder: string;
|
|
111
|
-
|
|
170
|
+
fullWidth: boolean;
|
|
112
171
|
closeOnSelect: boolean;
|
|
113
172
|
multiSelect: boolean;
|
|
173
|
+
valueField: string;
|
|
114
174
|
iconField: string;
|
|
115
|
-
idKey: string;
|
|
116
|
-
parentKey: string;
|
|
117
175
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
118
176
|
declare const _default: typeof __VLS_export;
|
|
119
177
|
export default _default;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ADataProvider } from '@katlux/providers';
|
|
2
|
+
import { type PropType } from 'vue';
|
|
2
3
|
export interface KTreePickerProps {
|
|
3
4
|
modelValue?: any;
|
|
4
5
|
dataProvider: ADataProvider;
|
|
5
6
|
labelField: string;
|
|
7
|
+
valueField?: string;
|
|
6
8
|
placeholder?: string;
|
|
7
9
|
disabled?: boolean;
|
|
8
10
|
closeOnSelect?: boolean;
|
|
@@ -12,6 +14,11 @@ export interface KTreePickerProps {
|
|
|
12
14
|
loading?: boolean;
|
|
13
15
|
multiSelect?: boolean;
|
|
14
16
|
searchbox?: boolean;
|
|
17
|
+
searchPlaceholder?: string;
|
|
18
|
+
validation?: 'success' | 'warning' | 'error' | null;
|
|
19
|
+
validationText?: string;
|
|
20
|
+
isOptionsOpen?: boolean;
|
|
21
|
+
fullWidth?: boolean;
|
|
15
22
|
}
|
|
16
23
|
export declare const KTreePickerDefaultProps: {
|
|
17
24
|
modelValue: {
|
|
@@ -26,6 +33,10 @@ export declare const KTreePickerDefaultProps: {
|
|
|
26
33
|
type: StringConstructor;
|
|
27
34
|
required: boolean;
|
|
28
35
|
};
|
|
36
|
+
valueField: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: null;
|
|
39
|
+
};
|
|
29
40
|
placeholder: {
|
|
30
41
|
type: StringConstructor;
|
|
31
42
|
default: string;
|
|
@@ -62,16 +73,37 @@ export declare const KTreePickerDefaultProps: {
|
|
|
62
73
|
type: BooleanConstructor;
|
|
63
74
|
default: boolean;
|
|
64
75
|
};
|
|
76
|
+
searchPlaceholder: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
validation: {
|
|
81
|
+
type: PropType<KTreePickerProps["validation"]>;
|
|
82
|
+
default: null;
|
|
83
|
+
validator: (value: string) => boolean;
|
|
84
|
+
};
|
|
85
|
+
validationText: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
isOptionsOpen: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: undefined;
|
|
92
|
+
};
|
|
93
|
+
fullWidth: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
65
97
|
};
|
|
66
98
|
export declare function useKTreePickerLogic(props: KTreePickerProps, emit: any): {
|
|
67
|
-
selectedItems: import("vue").Ref<
|
|
99
|
+
selectedItems: import("vue").Ref<import("@katlux/providers").TDataRow[] | null, import("@katlux/providers").TDataRow[] | null>;
|
|
68
100
|
isOptionsOpen: import("vue").Ref<boolean, boolean>;
|
|
69
101
|
searchtext: import("vue").Ref<string, string>;
|
|
70
102
|
selectItem: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => void;
|
|
71
|
-
isSelected: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) =>
|
|
72
|
-
getSelectedContent: () =>
|
|
103
|
+
isSelected: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => boolean | undefined;
|
|
104
|
+
getSelectedContent: () => import("@katlux/providers").TDataRow[];
|
|
73
105
|
toggleDropdown: () => void;
|
|
74
106
|
closeDropdown: () => void;
|
|
75
|
-
filteredOptions: import("vue").ComputedRef<
|
|
76
|
-
loading:
|
|
107
|
+
filteredOptions: import("vue").ComputedRef<import("@katlux/providers").TDataRow[]>;
|
|
108
|
+
loading: import("vue").ComputedRef<Boolean>;
|
|
77
109
|
};
|
|
@@ -11,6 +11,10 @@ export const KTreePickerDefaultProps = {
|
|
|
11
11
|
type: String,
|
|
12
12
|
required: true
|
|
13
13
|
},
|
|
14
|
+
valueField: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: null
|
|
17
|
+
},
|
|
14
18
|
placeholder: {
|
|
15
19
|
type: String,
|
|
16
20
|
default: "Select..."
|
|
@@ -47,11 +51,38 @@ export const KTreePickerDefaultProps = {
|
|
|
47
51
|
searchbox: {
|
|
48
52
|
type: Boolean,
|
|
49
53
|
default: false
|
|
54
|
+
},
|
|
55
|
+
searchPlaceholder: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: "Search..."
|
|
58
|
+
},
|
|
59
|
+
validation: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: null,
|
|
62
|
+
validator: (value) => [null, "success", "warning", "error"].includes(value)
|
|
63
|
+
},
|
|
64
|
+
validationText: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: ""
|
|
67
|
+
},
|
|
68
|
+
isOptionsOpen: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: void 0
|
|
71
|
+
},
|
|
72
|
+
fullWidth: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: true
|
|
50
75
|
}
|
|
51
76
|
};
|
|
52
77
|
import { useKComboboxLogic } from "../KCombobox/KCombobox.logic.js";
|
|
53
78
|
export function useKTreePickerLogic(props, emit) {
|
|
54
|
-
const
|
|
79
|
+
const effectiveProps = new Proxy(props, {
|
|
80
|
+
get(target, key) {
|
|
81
|
+
if (key === "valueField") return target.valueField || target.idKey;
|
|
82
|
+
return target[key];
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
const comboboxLogic = useKComboboxLogic(effectiveProps, emit);
|
|
55
86
|
return {
|
|
56
87
|
...comboboxLogic
|
|
57
88
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
dataProvider: {
|
|
3
|
-
type: import("vue").PropType<ADataProvider>;
|
|
3
|
+
type: import("vue").PropType<import("@katlux/providers").ADataProvider>;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
columns: {
|
|
@@ -24,7 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
24
24
|
default: boolean;
|
|
25
25
|
};
|
|
26
26
|
bulkActions: {
|
|
27
|
-
type: import("vue").PropType<IKDatatableAction[]>;
|
|
27
|
+
type: import("vue").PropType<import("@katlux/providers").IKDatatableAction[]>;
|
|
28
28
|
default: () => never[];
|
|
29
29
|
};
|
|
30
30
|
rowActions: {
|
|
@@ -41,7 +41,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
41
41
|
};
|
|
42
42
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
43
|
dataProvider: {
|
|
44
|
-
type: import("vue").PropType<ADataProvider>;
|
|
44
|
+
type: import("vue").PropType<import("@katlux/providers").ADataProvider>;
|
|
45
45
|
required: true;
|
|
46
46
|
};
|
|
47
47
|
columns: {
|
|
@@ -65,7 +65,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
67
67
|
bulkActions: {
|
|
68
|
-
type: import("vue").PropType<IKDatatableAction[]>;
|
|
68
|
+
type: import("vue").PropType<import("@katlux/providers").IKDatatableAction[]>;
|
|
69
69
|
default: () => never[];
|
|
70
70
|
};
|
|
71
71
|
rowActions: {
|
|
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}>> & Readonly<{}>, {
|
|
84
|
-
|
|
84
|
+
parentKey: string;
|
|
85
|
+
idKey: string;
|
|
86
|
+
expandedByDefault: boolean;
|
|
87
|
+
bulkActions: import("@katlux/providers").IKDatatableAction[];
|
|
85
88
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
86
89
|
cellSlots: Record<string, any>;
|
|
87
90
|
headerSlots: Record<string, any>;
|
|
88
91
|
treeColumnIndex: number;
|
|
89
|
-
idKey: string;
|
|
90
|
-
parentKey: string;
|
|
91
|
-
expandedByDefault: boolean;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
93
|
declare const _default: typeof __VLS_export;
|
|
94
94
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
dataProvider: {
|
|
3
|
-
type: import("vue").PropType<ADataProvider>;
|
|
3
|
+
type: import("vue").PropType<import("@katlux/providers").ADataProvider>;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
columns: {
|
|
@@ -24,7 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
24
24
|
default: boolean;
|
|
25
25
|
};
|
|
26
26
|
bulkActions: {
|
|
27
|
-
type: import("vue").PropType<IKDatatableAction[]>;
|
|
27
|
+
type: import("vue").PropType<import("@katlux/providers").IKDatatableAction[]>;
|
|
28
28
|
default: () => never[];
|
|
29
29
|
};
|
|
30
30
|
rowActions: {
|
|
@@ -41,7 +41,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
41
41
|
};
|
|
42
42
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
43
|
dataProvider: {
|
|
44
|
-
type: import("vue").PropType<ADataProvider>;
|
|
44
|
+
type: import("vue").PropType<import("@katlux/providers").ADataProvider>;
|
|
45
45
|
required: true;
|
|
46
46
|
};
|
|
47
47
|
columns: {
|
|
@@ -65,7 +65,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
67
67
|
bulkActions: {
|
|
68
|
-
type: import("vue").PropType<IKDatatableAction[]>;
|
|
68
|
+
type: import("vue").PropType<import("@katlux/providers").IKDatatableAction[]>;
|
|
69
69
|
default: () => never[];
|
|
70
70
|
};
|
|
71
71
|
rowActions: {
|
|
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}>> & Readonly<{}>, {
|
|
84
|
-
|
|
84
|
+
parentKey: string;
|
|
85
|
+
idKey: string;
|
|
86
|
+
expandedByDefault: boolean;
|
|
87
|
+
bulkActions: import("@katlux/providers").IKDatatableAction[];
|
|
85
88
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
86
89
|
cellSlots: Record<string, any>;
|
|
87
90
|
headerSlots: Record<string, any>;
|
|
88
91
|
treeColumnIndex: number;
|
|
89
|
-
idKey: string;
|
|
90
|
-
parentKey: string;
|
|
91
|
-
expandedByDefault: boolean;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
93
|
declare const _default: typeof __VLS_export;
|
|
94
94
|
export default _default;
|
|
@@ -68,7 +68,7 @@ export declare const KTreeViewDefaultProps: {
|
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
export declare function useKTreeViewLogic(props: KTreeViewProps): {
|
|
71
|
-
visibleRows: import("vue").ComputedRef<
|
|
71
|
+
visibleRows: import("vue").ComputedRef<import("@katlux/providers").TDataRow[]>;
|
|
72
72
|
expandedNodes: any;
|
|
73
73
|
selectedRows: import("vue").Ref<any[], any[]>;
|
|
74
74
|
selectAll: import("vue").Ref<boolean, boolean>;
|
|
@@ -1,2 +1,18 @@
|
|
|
1
1
|
import { type Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Registry mapping preset names to their respective module loaders (via import.meta.glob).
|
|
4
|
+
* Preset modules must inject their components here via a Nuxt Plugin.
|
|
5
|
+
*/
|
|
6
|
+
export declare const presetLoadersRegistry: Map<string, Record<string, () => Promise<any>>>;
|
|
7
|
+
/**
|
|
8
|
+
* API for Nuxt modules to dynamically map their generated components
|
|
9
|
+
*/
|
|
10
|
+
export declare function registerPresetComponents(presetName: string, loaders: Record<string, () => Promise<any>>): void;
|
|
11
|
+
/**
|
|
12
|
+
* Composable for dynamically loading preset components
|
|
13
|
+
*
|
|
14
|
+
* @param componentBaseName - Base name of the component (e.g., 'KButton')
|
|
15
|
+
* @param defaultComponent - The default preset component to fall back to
|
|
16
|
+
* @returns The resolved Async Component
|
|
17
|
+
*/
|
|
2
18
|
export declare function usePresetComponent(componentBaseName: string, defaultComponent: Component): import("vue").ComputedRef<any>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { computed, defineAsyncComponent } from "vue";
|
|
2
2
|
import { useAppConfig } from "#app";
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export const presetLoadersRegistry = /* @__PURE__ */ new Map();
|
|
4
|
+
export function registerPresetComponents(presetName, loaders) {
|
|
5
|
+
presetLoadersRegistry.set(presetName, loaders);
|
|
6
|
+
}
|
|
6
7
|
export function usePresetComponent(componentBaseName, defaultComponent) {
|
|
7
8
|
const appConfig = useAppConfig();
|
|
8
9
|
const activePreset = computed(() => appConfig.katluxToolkit?.activePreset || "default");
|
|
@@ -10,27 +11,31 @@ export function usePresetComponent(componentBaseName, defaultComponent) {
|
|
|
10
11
|
if (activePreset.value === "default") {
|
|
11
12
|
return defaultComponent;
|
|
12
13
|
}
|
|
13
|
-
const cacheKey = `${activePreset.value}:${componentBaseName}`;
|
|
14
|
-
if (componentCache.has(cacheKey)) {
|
|
15
|
-
return componentCache.get(cacheKey);
|
|
16
|
-
}
|
|
17
14
|
let loader;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
const externalLoaders = presetLoadersRegistry.get(activePreset.value);
|
|
16
|
+
if (externalLoaders) {
|
|
17
|
+
const key = `./components/${componentBaseName}/${componentBaseName}.vue`;
|
|
18
|
+
loader = externalLoaders[key];
|
|
19
|
+
}
|
|
20
|
+
if (!loader) {
|
|
21
|
+
const internalLoaders = import.meta.glob([
|
|
22
|
+
"../presets/**/*.vue",
|
|
23
|
+
"../../runtime/presets/**/*.vue"
|
|
24
|
+
]);
|
|
25
|
+
const internalKey = `../presets/${activePreset.value}/components/${componentBaseName}/${componentBaseName}.vue`;
|
|
26
|
+
loader = internalLoaders[internalKey];
|
|
27
|
+
if (!loader) {
|
|
28
|
+
const altKey = `../../runtime/presets/${activePreset.value}/components/${componentBaseName}/${componentBaseName}.vue`;
|
|
29
|
+
loader = internalLoaders[altKey];
|
|
30
|
+
}
|
|
24
31
|
}
|
|
25
32
|
if (!loader) {
|
|
26
33
|
console.warn(`[${componentBaseName}] Preset "${activePreset.value}" not found, falling back to default`);
|
|
27
34
|
return defaultComponent;
|
|
28
35
|
}
|
|
29
|
-
|
|
36
|
+
return defineAsyncComponent({
|
|
30
37
|
loader,
|
|
31
38
|
errorComponent: defaultComponent
|
|
32
39
|
});
|
|
33
|
-
componentCache.set(cacheKey, asyncComp);
|
|
34
|
-
return asyncComp;
|
|
35
40
|
});
|
|
36
41
|
}
|
|
@@ -20,14 +20,44 @@
|
|
|
20
20
|
--neutral-700: #616161;
|
|
21
21
|
--neutral-800: #424242;
|
|
22
22
|
--neutral-900: #212121;
|
|
23
|
+
--yellow-100: #fef9c3;
|
|
24
|
+
--yellow-300: #fde047;
|
|
25
|
+
--yellow-500: #eab308;
|
|
26
|
+
--yellow-700: #a16207;
|
|
27
|
+
--yellow-900: #713f12;
|
|
28
|
+
--red-100: #fee2e2;
|
|
29
|
+
--red-300: #fca5a5;
|
|
30
|
+
--red-500: #ef4444;
|
|
31
|
+
--red-700: #b91c1c;
|
|
32
|
+
--red-900: #7f1d1d;
|
|
33
|
+
--blue-100: #dbeafe;
|
|
34
|
+
--blue-300: #93c5fd;
|
|
35
|
+
--blue-500: #3b82f6;
|
|
36
|
+
--blue-700: #1d4ed8;
|
|
37
|
+
--blue-900: #1e3a8a;
|
|
38
|
+
--pink-100: #fce7f3;
|
|
39
|
+
--pink-300: #f9a8d4;
|
|
40
|
+
--pink-500: #ec4899;
|
|
41
|
+
--pink-700: #be185d;
|
|
42
|
+
--pink-900: #831843;
|
|
43
|
+
--cyan-100: #cffafe;
|
|
44
|
+
--cyan-300: #67e8f9;
|
|
45
|
+
--cyan-500: #06b6d4;
|
|
46
|
+
--cyan-700: #0e7490;
|
|
47
|
+
--cyan-900: #164e63;
|
|
48
|
+
--green-100: #dcfce7;
|
|
49
|
+
--green-300: #86efac;
|
|
50
|
+
--green-500: #22c55e;
|
|
51
|
+
--green-700: #15803d;
|
|
52
|
+
--green-900: #14532d;
|
|
23
53
|
--success-color: var(--accent-500);
|
|
24
54
|
--success-color-light: var(--accent-100);
|
|
25
|
-
--warning-color:
|
|
26
|
-
--warning-color-light:
|
|
27
|
-
--error-color:
|
|
28
|
-
--error-color-light:
|
|
29
|
-
--info-color: var(--
|
|
30
|
-
--info-color-light: var(--
|
|
55
|
+
--warning-color: var(--yellow-500);
|
|
56
|
+
--warning-color-light: var(--yellow-100);
|
|
57
|
+
--error-color: var(--red-500);
|
|
58
|
+
--error-color-light: var(--red-100);
|
|
59
|
+
--info-color: var(--cyan-500);
|
|
60
|
+
--info-color-light: var(--cyan-100);
|
|
31
61
|
--font-color-primary: var(--neutral-800);
|
|
32
62
|
--font-color-secondary: var(--neutral-600);
|
|
33
63
|
--font-color-heading: var(--neutral-900);
|
|
@@ -81,19 +111,39 @@
|
|
|
81
111
|
--button-hover-bg-success: var(--accent-700);
|
|
82
112
|
--button-bg-warning: var(--warning-color);
|
|
83
113
|
--button-text-warning: var(--neutral-900);
|
|
84
|
-
--button-hover-bg-warning:
|
|
114
|
+
--button-hover-bg-warning: var(--yellow-700);
|
|
85
115
|
--button-bg-danger: var(--error-color);
|
|
86
116
|
--button-text-danger: var(--font-color-light);
|
|
87
|
-
--button-hover-bg-danger:
|
|
117
|
+
--button-hover-bg-danger: var(--red-700);
|
|
88
118
|
--button-bg-info: var(--info-color);
|
|
89
119
|
--button-text-info: var(--font-color-light);
|
|
90
|
-
--button-hover-bg-info: var(--
|
|
120
|
+
--button-hover-bg-info: var(--cyan-700);
|
|
91
121
|
--button-bg-light: var(--neutral-50);
|
|
92
122
|
--button-text-light: var(--neutral-900);
|
|
93
123
|
--button-hover-bg-light: var(--neutral-200);
|
|
94
124
|
--button-bg-dark: var(--neutral-900);
|
|
95
125
|
--button-text-dark: var(--font-color-light);
|
|
96
126
|
--button-hover-bg-dark: var(--neutral-700);
|
|
127
|
+
--panel-bg-opacity: 1;
|
|
128
|
+
--panel-blur: 0px;
|
|
129
|
+
--panel-bg-default: var(--neutral-50);
|
|
130
|
+
--panel-header-bg-default: var(--neutral-100);
|
|
131
|
+
--panel-footer-bg-default: var(--neutral-100);
|
|
132
|
+
--panel-bg-primary: var(--blue-300);
|
|
133
|
+
--panel-header-bg-primary: var(--blue-500);
|
|
134
|
+
--panel-footer-bg-primary: var(--blue-100);
|
|
135
|
+
--panel-bg-success: var(--green-300);
|
|
136
|
+
--panel-header-bg-success: var(--green-500);
|
|
137
|
+
--panel-footer-bg-success: var(--green-100);
|
|
138
|
+
--panel-bg-warning: var(--yellow-300);
|
|
139
|
+
--panel-header-bg-warning: var(--yellow-500);
|
|
140
|
+
--panel-footer-bg-warning: var(--yellow-100);
|
|
141
|
+
--panel-bg-danger: var(--red-300);
|
|
142
|
+
--panel-header-bg-danger: var(--red-500);
|
|
143
|
+
--panel-footer-bg-danger: var(--red-100);
|
|
144
|
+
--panel-bg-info: var(--cyan-300);
|
|
145
|
+
--panel-header-bg-info: var(--cyan-500);
|
|
146
|
+
--panel-footer-bg-info: var(--cyan-100);
|
|
97
147
|
--input-border-radius: var(--border-radius-sm);
|
|
98
148
|
--input-border-color: var(--border-color-medium);
|
|
99
149
|
--input-focus-border-color: var(--primary-500);
|
|
@@ -102,7 +152,7 @@
|
|
|
102
152
|
--table-header-color: var(--neutral-700);
|
|
103
153
|
--table-border-color: var(--neutral-300);
|
|
104
154
|
--table-row-hover: var(--neutral-100);
|
|
105
|
-
--table-row-selected:
|
|
155
|
+
--table-row-selected: var(--blue-100);
|
|
106
156
|
--checkbox-bg: var(--neutral-50);
|
|
107
157
|
--checkbox-checked-bg: var(--primary-500);
|
|
108
158
|
--checkbox-border-color: var(--border-color-medium);
|
|
@@ -114,6 +164,7 @@
|
|
|
114
164
|
--component-gap: var(--gap-sm);
|
|
115
165
|
--layover: var(--neutral-600);
|
|
116
166
|
--modal-overlay-bg: rgba(0, 0, 0, 0.5);
|
|
167
|
+
--modal-backdrop-blur: 0px;
|
|
117
168
|
--layout-header-height: 60px;
|
|
118
169
|
--layout-header-bg: var(--background-color);
|
|
119
170
|
--layout-sidebar-width: 200px;
|
|
@@ -127,12 +178,12 @@
|
|
|
127
178
|
--input-button-hover-bg: var(--neutral-400);
|
|
128
179
|
--input-button-font-color: var(--font-color-primary);
|
|
129
180
|
--input-focus-border-color: var(--primary-500);
|
|
130
|
-
--button-hover-bg-danger:
|
|
131
|
-
--button-hover-bg-info: var(--
|
|
181
|
+
--button-hover-bg-danger: var(--red-700);
|
|
182
|
+
--button-hover-bg-info: var(--cyan-700);
|
|
132
183
|
--button-hover-bg-light: var(--neutral-200);
|
|
133
184
|
--button-hover-bg-primary: var(--primary-700);
|
|
134
185
|
--button-hover-bg-success: var(--accent-700);
|
|
135
|
-
--button-hover-bg-warning:
|
|
186
|
+
--button-hover-bg-warning: var(--yellow-700);
|
|
136
187
|
--button-hover-bg-dark: var(--neutral-700);
|
|
137
188
|
--button-text-danger: var(--font-color-light);
|
|
138
189
|
--button-text-primary: var(--font-color-light);
|