@katlux/toolkit 0.1.0-beta.47 → 0.1.0-beta.49

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 (29) 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/KCalendar/KCalendar.global.d.vue.ts +11 -12
  4. package/dist/runtime/components/KCalendar/KCalendar.global.vue.d.ts +11 -12
  5. package/dist/runtime/components/KCalendar/KCalendar.logic.d.ts +1 -0
  6. package/dist/runtime/components/KCalendar/KCalendar.logic.js +25 -10
  7. package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +0 -20
  8. package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +0 -12
  9. package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +1 -1
  10. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +1 -1
  11. package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +3 -7
  12. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +1 -1
  13. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +1 -1
  14. package/dist/runtime/components/KDropdown/KDropdown.global.vue +7 -2
  15. package/dist/runtime/components/KDropdown/KDropdown.logic.d.ts +4 -3
  16. package/dist/runtime/components/KDropdown/KDropdown.logic.js +11 -9
  17. package/dist/runtime/components/KModal/KModal.global.vue +3 -2
  18. package/dist/runtime/components/KModal/KModal.logic.d.ts +1 -1
  19. package/dist/runtime/components/KModal/KModal.logic.js +2 -2
  20. package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +2 -2
  21. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +2 -2
  22. package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +3 -3
  23. package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +3 -3
  24. package/dist/runtime/presets/default/assets/scss/css-variables.css +6 -3
  25. package/dist/runtime/presets/default/assets/scss/css-variables.scss +6 -3
  26. package/dist/runtime/presets/default/assets/scss/index.css +6 -3
  27. package/dist/runtime/presets/default/components/KModal/KModal.vue +2 -1
  28. package/dist/runtime/presets/default/components/KPanel/KPanel.vue +2 -2
  29. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@katlux/toolkit",
3
3
  "configKey": "katluxToolkit",
4
- "version": "0.1.0-beta.47",
4
+ "version": "0.1.0-beta.49",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -22,7 +22,7 @@ export interface KButtonEmits {
22
22
  export declare function useKButtonLogic(props: KButtonProps, emit: KButtonEmits): {
23
23
  isLink: import("vue").ComputedRef<boolean>;
24
24
  isDisabled: import("vue").ComputedRef<boolean | undefined>;
25
- buttonClasses: import("vue").ComputedRef<("info" | "default" | "primary" | "danger" | "success" | "warning" | "light" | "dark" | "small" | "large" | "medium" | {
25
+ buttonClasses: import("vue").ComputedRef<("info" | "default" | "small" | "primary" | "danger" | "success" | "warning" | "light" | "dark" | "large" | "medium" | {
26
26
  disabled: boolean | undefined;
27
27
  })[]>;
28
28
  onClick: () => void;
@@ -9,19 +9,19 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
9
9
  default: number;
10
10
  };
11
11
  definedDays: {
12
- type: PropType<import("./types.js").IDefinedDay[]>;
12
+ type: import("vue").PropType<import("./types.js").IDefinedDay[]>;
13
13
  default: () => never[];
14
14
  };
15
15
  markedDays: {
16
- type: PropType<import("./types.js").IMarkedDay[]>;
16
+ type: import("vue").PropType<import("./types.js").IMarkedDay[]>;
17
17
  default: () => never[];
18
18
  };
19
19
  day: {
20
- type: PropType<Date | String>;
20
+ type: import("vue").PropType<Date | String>;
21
21
  required: boolean;
22
22
  };
23
23
  selectedDay: {
24
- type: PropType<Date | String>;
24
+ type: import("vue").PropType<Date | String>;
25
25
  default: null;
26
26
  };
27
27
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -38,19 +38,19 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
38
38
  default: number;
39
39
  };
40
40
  definedDays: {
41
- type: PropType<import("./types.js").IDefinedDay[]>;
41
+ type: import("vue").PropType<import("./types.js").IDefinedDay[]>;
42
42
  default: () => never[];
43
43
  };
44
44
  markedDays: {
45
- type: PropType<import("./types.js").IMarkedDay[]>;
45
+ type: import("vue").PropType<import("./types.js").IMarkedDay[]>;
46
46
  default: () => never[];
47
47
  };
48
48
  day: {
49
- type: PropType<Date | String>;
49
+ type: import("vue").PropType<Date | String>;
50
50
  required: boolean;
51
51
  };
52
52
  selectedDay: {
53
- type: PropType<Date | String>;
53
+ type: import("vue").PropType<Date | String>;
54
54
  default: null;
55
55
  };
56
56
  }>> & Readonly<{
@@ -59,10 +59,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
59
59
  }>, {
60
60
  view: string;
61
61
  viewCount: number;
62
- definedDays: any;
63
- markedDays: any;
64
- day: any;
65
- selectedDay: any;
62
+ definedDays: import("./types.js").IDefinedDay[];
63
+ markedDays: import("./types.js").IMarkedDay[];
64
+ selectedDay: String | Date;
66
65
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
67
66
  declare const _default: typeof __VLS_export;
68
67
  export default _default;
@@ -9,19 +9,19 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
9
9
  default: number;
10
10
  };
11
11
  definedDays: {
12
- type: PropType<import("./types.js").IDefinedDay[]>;
12
+ type: import("vue").PropType<import("./types.js").IDefinedDay[]>;
13
13
  default: () => never[];
14
14
  };
15
15
  markedDays: {
16
- type: PropType<import("./types.js").IMarkedDay[]>;
16
+ type: import("vue").PropType<import("./types.js").IMarkedDay[]>;
17
17
  default: () => never[];
18
18
  };
19
19
  day: {
20
- type: PropType<Date | String>;
20
+ type: import("vue").PropType<Date | String>;
21
21
  required: boolean;
22
22
  };
23
23
  selectedDay: {
24
- type: PropType<Date | String>;
24
+ type: import("vue").PropType<Date | String>;
25
25
  default: null;
26
26
  };
27
27
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -38,19 +38,19 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
38
38
  default: number;
39
39
  };
40
40
  definedDays: {
41
- type: PropType<import("./types.js").IDefinedDay[]>;
41
+ type: import("vue").PropType<import("./types.js").IDefinedDay[]>;
42
42
  default: () => never[];
43
43
  };
44
44
  markedDays: {
45
- type: PropType<import("./types.js").IMarkedDay[]>;
45
+ type: import("vue").PropType<import("./types.js").IMarkedDay[]>;
46
46
  default: () => never[];
47
47
  };
48
48
  day: {
49
- type: PropType<Date | String>;
49
+ type: import("vue").PropType<Date | String>;
50
50
  required: boolean;
51
51
  };
52
52
  selectedDay: {
53
- type: PropType<Date | String>;
53
+ type: import("vue").PropType<Date | String>;
54
54
  default: null;
55
55
  };
56
56
  }>> & Readonly<{
@@ -59,10 +59,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
59
59
  }>, {
60
60
  view: string;
61
61
  viewCount: number;
62
- definedDays: any;
63
- markedDays: any;
64
- day: any;
65
- selectedDay: any;
62
+ definedDays: import("./types.js").IDefinedDay[];
63
+ markedDays: import("./types.js").IMarkedDay[];
64
+ selectedDay: String | Date;
66
65
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
67
66
  declare const _default: typeof __VLS_export;
68
67
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { type PropType } from 'vue';
1
2
  import type { IMarkedDay, IDefinedDay } from './types.js';
2
3
  export interface KCalendarProps {
3
4
  view?: string;
@@ -33,14 +33,30 @@ export function useKCalendarLogic(props, emit) {
33
33
  const actualWeek = ref();
34
34
  const actualYear = ref();
35
35
  const currentView = computed(() => props.view ?? "month");
36
+ function initViewFromDate(dateInput) {
37
+ if (!dateInput) return false;
38
+ const date = typeof dateInput === "string" ? new Date(dateInput) : dateInput;
39
+ if (!isNaN(date.getTime())) {
40
+ actualMonth.value = date.getMonth() + 1;
41
+ actualYear.value = date.getFullYear();
42
+ return true;
43
+ }
44
+ return false;
45
+ }
36
46
  watch(
37
47
  () => props.day,
38
48
  (newVal) => {
39
49
  if (!newVal) return;
40
- const date = typeof newVal === "string" ? new Date(newVal) : newVal;
41
- if (!isNaN(date.getTime())) {
42
- actualMonth.value = date.getMonth() + 1;
43
- actualYear.value = date.getFullYear();
50
+ initViewFromDate(newVal);
51
+ },
52
+ { immediate: true }
53
+ );
54
+ watch(
55
+ () => props.selectedDay,
56
+ (newValue) => {
57
+ monthSelectedDay.value = newValue ?? "";
58
+ if (!props.day && actualYear.value === void 0) {
59
+ initViewFromDate(newValue);
44
60
  }
45
61
  },
46
62
  { immediate: true }
@@ -52,14 +68,13 @@ export function useKCalendarLogic(props, emit) {
52
68
  emit("update:selectedDay", newValue);
53
69
  }
54
70
  );
55
- watch(
56
- () => props.selectedDay,
57
- (newValue) => {
58
- monthSelectedDay.value = newValue;
59
- }
60
- );
61
71
  onMounted(() => {
62
72
  monthSelectedDay.value = props.selectedDay || "";
73
+ if (actualYear.value === void 0) {
74
+ const now = /* @__PURE__ */ new Date();
75
+ actualMonth.value = now.getMonth() + 1;
76
+ actualYear.value = now.getFullYear();
77
+ }
63
78
  });
64
79
  const months = [
65
80
  "January",
@@ -1,20 +0,0 @@
1
- import { ADataProvider } from '@katlux/providers';
2
- export interface KDataIteratorProps {
3
- dataProvider: ADataProvider;
4
- visibleFields?: Array<string> | null;
5
- loading?: boolean;
6
- search?: string;
7
- itemsPerPage?: number;
8
- page?: number;
9
- }
10
- export declare const KDataIteratorDefaultProps: {
11
- visibleFields: null;
12
- loading: boolean;
13
- search: string;
14
- itemsPerPage: number;
15
- page: number;
16
- };
17
- export declare function useKDataIteratorLogic(props: KDataIteratorProps): {
18
- selectedRows: import("vue").Ref<any[], any[]>;
19
- selectAll: import("vue").Ref<boolean, boolean>;
20
- };
@@ -1,12 +0,0 @@
1
- import { ADataProvider } from '@katlux/providers';
2
- export interface KDatatableProps {
3
- dataProvider: ADataProvider;
4
- visibleFields?: Array<string> | null;
5
- }
6
- export declare const KDatatableDefaultProps: {
7
- visibleFields: null;
8
- };
9
- export declare function useKDatatableLogic(props: KDatatableProps): {
10
- selectedRows: import("vue").Ref<any[], any[]>;
11
- selectAll: import("vue").Ref<boolean, boolean>;
12
- };
@@ -78,8 +78,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
78
78
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
79
79
  }>, {
80
80
  isOpen: boolean;
81
- day: string | Date;
82
81
  modelValue: string | Date;
82
+ day: string | Date;
83
83
  teleportTo: string;
84
84
  format: string;
85
85
  showClear: boolean;
@@ -78,8 +78,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
78
78
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
79
79
  }>, {
80
80
  isOpen: boolean;
81
- day: string | Date;
82
81
  modelValue: string | Date;
82
+ day: string | Date;
83
83
  teleportTo: string;
84
84
  format: string;
85
85
  showClear: boolean;
@@ -46,18 +46,14 @@ export function useKDatePickerLogic(props) {
46
46
  }
47
47
  const format = props.format;
48
48
  let day = "", month = "", year = "";
49
- let rawIdx = 0;
50
49
  for (let i = 0; i < format.length; i++) {
51
50
  const char = format[i];
52
51
  if (char === "M") {
53
- month += newVal[rawIdx] || "";
54
- rawIdx++;
52
+ month += newVal[i] || "";
55
53
  } else if (char === "D") {
56
- day += newVal[rawIdx] || "";
57
- rawIdx++;
54
+ day += newVal[i] || "";
58
55
  } else if (char === "Y") {
59
- year += newVal[rawIdx] || "";
60
- rawIdx++;
56
+ year += newVal[i] || "";
61
57
  }
62
58
  }
63
59
  if (month.length === 2 && day.length === 2 && year.length === 4) {
@@ -92,8 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
92
92
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
93
93
  }>, {
94
94
  isOpen: boolean;
95
- day: string | Date;
96
95
  modelValue: string | Date;
96
+ day: string | Date;
97
97
  teleportTo: string;
98
98
  format: string;
99
99
  showClear: boolean;
@@ -92,8 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
92
92
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
93
93
  }>, {
94
94
  isOpen: boolean;
95
- day: string | Date;
96
95
  modelValue: string | Date;
96
+ day: string | Date;
97
97
  teleportTo: string;
98
98
  format: string;
99
99
  showClear: boolean;
@@ -1,12 +1,17 @@
1
1
  <script setup>
2
2
  import { useKDropdownLogic, KDropdownDefaultProps } from "./KDropdown.logic";
3
3
  import { usePresetComponent } from "../../composables/usePresetComponent";
4
- import { computed } from "vue";
4
+ import { computed, watch } from "vue";
5
5
  import KDropdownDefault from "../../presets/default/components/KDropdown/KDropdown.vue";
6
6
  const props = defineProps(KDropdownDefaultProps);
7
7
  const emit = defineEmits(["update:isOpen"]);
8
- const { open, dropdownRect, clickoutside, teleportTarget, isInModal } = useKDropdownLogic(props, emit);
8
+ const { open, dropdownRect, clickoutside, teleportTarget, isInModal, updatePosition } = useKDropdownLogic(props, emit);
9
9
  const presetComponent = usePresetComponent("KDropdown", KDropdownDefault);
10
+ watch(presetComponent, () => {
11
+ if (open.value) {
12
+ updatePosition();
13
+ }
14
+ });
10
15
  const templateProps = computed(() => ({
11
16
  open: open.value,
12
17
  fullWidth: props.fullWidth,
@@ -1,4 +1,4 @@
1
- import { type PropType } from 'vue';
1
+ import { type PropType, type Ref } from 'vue';
2
2
  export interface KDropdownProps {
3
3
  isOpen: boolean;
4
4
  fullWidth: boolean;
@@ -27,8 +27,8 @@ export declare const KDropdownDefaultProps: {
27
27
  };
28
28
  };
29
29
  export declare function useKDropdownLogic(props: KDropdownProps, emit: KDropdownEmits): {
30
- open: import("vue").Ref<boolean, boolean>;
31
- dropdownRect: import("vue").Ref<{
30
+ open: Ref<boolean, boolean>;
31
+ dropdownRect: Ref<{
32
32
  top: number;
33
33
  left: number;
34
34
  width: number;
@@ -44,4 +44,5 @@ export declare function useKDropdownLogic(props: KDropdownProps, emit: KDropdown
44
44
  clickoutside: () => void;
45
45
  teleportTarget: import("vue").ComputedRef<string>;
46
46
  isInModal: import("vue").ComputedRef<boolean>;
47
+ updatePosition: () => void;
47
48
  };
@@ -20,10 +20,17 @@ export const KDropdownDefaultProps = {
20
20
  };
21
21
  export function useKDropdownLogic(props, emit) {
22
22
  const modalPortalId = inject(KMODAL_PORTAL_ID_KEY, null);
23
- const isInModal = computed(() => !!modalPortalId);
23
+ const isInModal = computed(() => !!modalPortalId?.value);
24
24
  const teleportTarget = computed(() => {
25
25
  if (props.teleportTo) return props.teleportTo;
26
- if (isInModal.value) return `#${modalPortalId}`;
26
+ if (isInModal.value && modalPortalId?.value) {
27
+ const targetId = `#${modalPortalId.value}`;
28
+ if (typeof document !== "undefined" && !document.querySelector(targetId)) {
29
+ const activePortal = document.querySelector(".modal-portal");
30
+ if (activePortal && activePortal.id) return `#${activePortal.id}`;
31
+ }
32
+ return targetId;
33
+ }
27
34
  return "body";
28
35
  });
29
36
  const open = ref(false);
@@ -87,12 +94,6 @@ export function useKDropdownLogic(props, emit) {
87
94
  }
88
95
  );
89
96
  onMounted(() => {
90
- if (props.isOpen) {
91
- updatePosition();
92
- nextTick(() => {
93
- open.value = true;
94
- });
95
- }
96
97
  window.addEventListener("scroll", onScrollResize, true);
97
98
  window.addEventListener("resize", onScrollResize);
98
99
  });
@@ -105,6 +106,7 @@ export function useKDropdownLogic(props, emit) {
105
106
  dropdownRect,
106
107
  clickoutside,
107
108
  teleportTarget,
108
- isInModal
109
+ isInModal,
110
+ updatePosition
109
111
  };
110
112
  }
@@ -4,7 +4,8 @@ import { usePresetComponent } from "../../composables/usePresetComponent";
4
4
  import { computed } from "vue";
5
5
  import KModalDefault from "../../presets/default/components/KModal/KModal.vue";
6
6
  const props = defineProps(KModalDefaultProps);
7
- const stableId = globalThis.useId ? globalThis.useId() : `k-modal-${Math.random().toString(36).slice(2, 9)}`;
7
+ const useId = globalThis.useId || (() => `k-modal-${Math.random().toString(36).slice(2, 9)}`);
8
+ const stableId = useId();
8
9
  const { modalId, opened, openModal, closeModal } = useKModalLogic(props, stableId);
9
10
  defineExpose({
10
11
  openModal,
@@ -12,7 +13,7 @@ defineExpose({
12
13
  });
13
14
  const presetComponent = usePresetComponent("KModal", KModalDefault);
14
15
  const templateProps = computed(() => ({
15
- modalId,
16
+ modalId: modalId.value,
16
17
  opened: opened.value,
17
18
  closeModal
18
19
  }));
@@ -3,7 +3,7 @@ export interface KModalProps {
3
3
  }
4
4
  export declare const KModalDefaultProps: {};
5
5
  export declare function useKModalLogic(props: KModalProps, stableId: string): {
6
- modalId: string;
6
+ modalId: import("vue").ComputedRef<string>;
7
7
  opened: import("vue").Ref<boolean, boolean>;
8
8
  openModal: () => void;
9
9
  closeModal: () => void;
@@ -1,8 +1,8 @@
1
- import { ref, provide } from "vue";
1
+ import { ref, provide, computed } from "vue";
2
2
  export const KMODAL_PORTAL_ID_KEY = "KMODAL_PORTAL_ID";
3
3
  export const KModalDefaultProps = {};
4
4
  export function useKModalLogic(props, stableId) {
5
- const modalId = stableId;
5
+ const modalId = computed(() => stableId);
6
6
  provide(KMODAL_PORTAL_ID_KEY, modalId);
7
7
  const opened = ref(false);
8
8
  function openModal() {
@@ -103,8 +103,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
103
103
  onChange?: ((value: any) => any) | undefined;
104
104
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
105
105
  }>, {
106
- parentKey: string;
107
- idKey: string;
108
106
  disabled: boolean;
109
107
  loading: boolean;
110
108
  modelValue: any;
@@ -114,6 +112,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
114
112
  closeOnSelect: boolean;
115
113
  multiSelect: boolean;
116
114
  iconField: string;
115
+ idKey: string;
116
+ parentKey: string;
117
117
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
118
118
  declare const _default: typeof __VLS_export;
119
119
  export default _default;
@@ -103,8 +103,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
103
103
  onChange?: ((value: any) => any) | undefined;
104
104
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
105
105
  }>, {
106
- parentKey: string;
107
- idKey: string;
108
106
  disabled: boolean;
109
107
  loading: boolean;
110
108
  modelValue: any;
@@ -114,6 +112,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
114
112
  closeOnSelect: boolean;
115
113
  multiSelect: boolean;
116
114
  iconField: string;
115
+ idKey: string;
116
+ parentKey: string;
117
117
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
118
118
  declare const _default: typeof __VLS_export;
119
119
  export default _default;
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
81
81
  default: () => {};
82
82
  };
83
83
  }>> & Readonly<{}>, {
84
- parentKey: string;
85
- idKey: string;
86
- expandedByDefault: boolean;
87
84
  bulkActions: import("@katlux/providers").IKDatatableAction[];
88
85
  rowActions: import("./KTreeView.logic.js").IRowAction[];
89
86
  cellSlots: Record<string, any>;
90
87
  headerSlots: Record<string, any>;
91
88
  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;
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
81
81
  default: () => {};
82
82
  };
83
83
  }>> & Readonly<{}>, {
84
- parentKey: string;
85
- idKey: string;
86
- expandedByDefault: boolean;
87
84
  bulkActions: import("@katlux/providers").IKDatatableAction[];
88
85
  rowActions: import("./KTreeView.logic.js").IRowAction[];
89
86
  cellSlots: Record<string, any>;
90
87
  headerSlots: Record<string, any>;
91
88
  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;
@@ -124,9 +124,11 @@
124
124
  --button-bg-dark: var(--neutral-900);
125
125
  --button-text-dark: var(--font-color-light);
126
126
  --button-hover-bg-dark: var(--neutral-700);
127
- --panel-bg-default: var(--yellow-300);
128
- --panel-header-bg-default: var(--yellow-500);
129
- --panel-footer-bg-default: var(--blue-100);
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);
130
132
  --panel-bg-primary: var(--blue-300);
131
133
  --panel-header-bg-primary: var(--blue-500);
132
134
  --panel-footer-bg-primary: var(--blue-100);
@@ -162,6 +164,7 @@
162
164
  --component-gap: var(--gap-sm);
163
165
  --layover: var(--neutral-600);
164
166
  --modal-overlay-bg: rgba(0, 0, 0, 0.5);
167
+ --modal-backdrop-blur: 0px;
165
168
  --layout-header-height: 60px;
166
169
  --layout-header-bg: var(--background-color);
167
170
  --layout-sidebar-width: 200px;
@@ -178,9 +178,11 @@
178
178
  --button-hover-bg-dark: var(--neutral-700);
179
179
 
180
180
  // Panel Colors - Default
181
- --panel-bg-default: var(--yellow-300);
182
- --panel-header-bg-default: var(--yellow-500);
183
- --panel-footer-bg-default: var(--blue-100);
181
+ --panel-bg-opacity: 1;
182
+ --panel-blur: 0px;
183
+ --panel-bg-default: var(--neutral-50);
184
+ --panel-header-bg-default: var(--neutral-100);
185
+ --panel-footer-bg-default: var(--neutral-100);
184
186
 
185
187
  // Panel Colors - Primary
186
188
  --panel-bg-primary: var(--blue-300);
@@ -236,6 +238,7 @@
236
238
  --component-gap: var(--gap-sm);
237
239
  --layover: var(--neutral-600);
238
240
  --modal-overlay-bg: rgba(0, 0, 0, 0.5);
241
+ --modal-backdrop-blur: 0px;
239
242
 
240
243
  // Layout Variables
241
244
  --layout-header-height: 60px;
@@ -141,9 +141,11 @@ li {
141
141
  --button-bg-dark: var(--neutral-900);
142
142
  --button-text-dark: var(--font-color-light);
143
143
  --button-hover-bg-dark: var(--neutral-700);
144
- --panel-bg-default: var(--yellow-300);
145
- --panel-header-bg-default: var(--yellow-500);
146
- --panel-footer-bg-default: var(--blue-100);
144
+ --panel-bg-opacity: 1;
145
+ --panel-blur: 0px;
146
+ --panel-bg-default: var(--neutral-50);
147
+ --panel-header-bg-default: var(--neutral-100);
148
+ --panel-footer-bg-default: var(--neutral-100);
147
149
  --panel-bg-primary: var(--blue-300);
148
150
  --panel-header-bg-primary: var(--blue-500);
149
151
  --panel-footer-bg-primary: var(--blue-100);
@@ -179,6 +181,7 @@ li {
179
181
  --component-gap: var(--gap-sm);
180
182
  --layover: var(--neutral-600);
181
183
  --modal-overlay-bg: rgba(0, 0, 0, 0.5);
184
+ --modal-backdrop-blur: 0px;
182
185
  --layout-header-height: 60px;
183
186
  --layout-header-bg: var(--background-color);
184
187
  --layout-sidebar-width: 200px;
@@ -1,6 +1,6 @@
1
1
  <template lang="pug">
2
2
  dialog.k-dialog(ref="dialogRef" @close="closeModal" @click="handleBackdropClick")
3
- .modal-portal(:id="modalId" style="position: absolute; top: 0; left: 0;")
3
+ .modal-portal(:id="modalId" style="position: absolute; top: 0; left: 0; z-index: 2000;")
4
4
  KPanel(no-gap flex-content scrollable).modal-container
5
5
  template(#header)
6
6
  slot(name="header")
@@ -57,6 +57,7 @@ const handleBackdropClick = (event: MouseEvent) => {
57
57
 
58
58
  &::backdrop {
59
59
  background-color: var(--modal-overlay-bg);
60
+ backdrop-filter: blur(var(--modal-backdrop-blur));
60
61
  }
61
62
 
62
63
  .modal-container {
@@ -33,8 +33,8 @@ const props = withDefaults(defineProps<{
33
33
  border-radius: var(--border-radius-lg);
34
34
  border: 1px solid var(--neutral-200);
35
35
  box-shadow: var(--shadow-md);
36
- background-color: color-mix(in srgb, var(--current-panel-bg), transparent 99%);
37
- backdrop-filter: blur(8px);
36
+ background-color: color-mix(in srgb, var(--current-panel-bg), transparent calc((1 - var(--panel-bg-opacity)) * 100%));
37
+ backdrop-filter: blur(var(--panel-blur));
38
38
  width: 100%;
39
39
  display: flex;
40
40
  flex-direction: column;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@katlux/toolkit",
3
- "version": "0.1.0-beta.47",
3
+ "version": "0.1.0-beta.49",
4
4
  "description": "Core UI toolkit and utilities for the Katlux ecosystem",
5
5
  "author": "Katlux",
6
6
  "license": "MIT",