@katlux/toolkit 0.1.0-beta.52 → 0.1.0-beta.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@katlux/toolkit",
3
3
  "configKey": "katluxToolkit",
4
- "version": "0.1.0-beta.52",
4
+ "version": "0.1.0-beta.53",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -46,7 +46,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
46
46
  }>> & Readonly<{
47
47
  onClick?: (() => any) | undefined;
48
48
  }>, {
49
- size: "large" | "medium" | "small" | undefined;
49
+ size: "small" | "large" | "medium" | undefined;
50
50
  type: "info" | "default" | "primary" | "danger" | "success" | "warning" | "light" | "dark" | undefined;
51
51
  disabled: boolean;
52
52
  href: string;
@@ -46,7 +46,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
46
46
  }>> & Readonly<{
47
47
  onClick?: (() => any) | undefined;
48
48
  }>, {
49
- size: "large" | "medium" | "small" | undefined;
49
+ size: "small" | "large" | "medium" | undefined;
50
50
  type: "info" | "default" | "primary" | "danger" | "success" | "warning" | "light" | "dark" | undefined;
51
51
  disabled: boolean;
52
52
  href: string;
@@ -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" | "large" | "medium" | "small" | {
25
+ buttonClasses: import("vue").ComputedRef<("info" | "default" | "primary" | "danger" | "success" | "warning" | "light" | "dark" | "small" | "large" | "medium" | {
26
26
  disabled: boolean | undefined;
27
27
  })[]>;
28
28
  onClick: () => void;
@@ -11,9 +11,9 @@ interface Props {
11
11
  page?: number;
12
12
  }
13
13
  declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
+ bulkActions: IKDatatableAction[];
14
15
  search: string;
15
16
  loading: boolean;
16
- bulkActions: IKDatatableAction[];
17
17
  visibleFields: Array<string> | null;
18
18
  rowActions: IKDatatableAction[];
19
19
  itemsPerPage: number;
@@ -11,9 +11,9 @@ interface Props {
11
11
  page?: number;
12
12
  }
13
13
  declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
+ bulkActions: IKDatatableAction[];
14
15
  search: string;
15
16
  loading: boolean;
16
- bulkActions: IKDatatableAction[];
17
17
  visibleFields: Array<string> | null;
18
18
  rowActions: IKDatatableAction[];
19
19
  itemsPerPage: number;
@@ -0,0 +1,20 @@
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
+ };
@@ -0,0 +1,12 @@
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
+ };
@@ -25,7 +25,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
25
25
  default: string;
26
26
  };
27
27
  }>> & Readonly<{}>, {
28
- size: "large" | "medium" | "small";
28
+ size: "small" | "large" | "medium";
29
29
  overlay: boolean;
30
30
  loading: boolean;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -25,7 +25,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
25
25
  default: string;
26
26
  };
27
27
  }>> & Readonly<{}>, {
28
- size: "large" | "medium" | "small";
28
+ size: "small" | "large" | "medium";
29
29
  overlay: boolean;
30
30
  loading: boolean;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -130,6 +130,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
130
130
  onChange?: ((value: any) => any) | undefined;
131
131
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
132
132
  }>, {
133
+ parentKey: string;
134
+ idKey: string;
133
135
  disabled: boolean;
134
136
  loading: boolean;
135
137
  validation: "error" | "success" | "warning" | null | undefined;
@@ -141,8 +143,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
141
143
  multiSelect: boolean;
142
144
  valueField: string;
143
145
  iconField: string;
144
- idKey: string;
145
- parentKey: string;
146
146
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
147
147
  declare const _default: typeof __VLS_export;
148
148
  export default _default;
@@ -130,6 +130,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
130
130
  onChange?: ((value: any) => any) | undefined;
131
131
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
132
132
  }>, {
133
+ parentKey: string;
134
+ idKey: string;
133
135
  disabled: boolean;
134
136
  loading: boolean;
135
137
  validation: "error" | "success" | "warning" | null | undefined;
@@ -141,8 +143,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
141
143
  multiSelect: boolean;
142
144
  valueField: string;
143
145
  iconField: string;
144
- idKey: string;
145
- parentKey: string;
146
146
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
147
147
  declare const _default: typeof __VLS_export;
148
148
  export default _default;
@@ -64,11 +64,13 @@ export const KTreePickerDefaultProps = {
64
64
  };
65
65
  import { useKComboboxLogic } from "../KCombobox/KCombobox.logic.js";
66
66
  export function useKTreePickerLogic(props, emit) {
67
- const logicProps = {
68
- ...props,
69
- valueField: props.valueField || props.idKey
70
- };
71
- const comboboxLogic = useKComboboxLogic(logicProps, emit);
67
+ const effectiveProps = new Proxy(props, {
68
+ get(target, key) {
69
+ if (key === "valueField") return target.valueField || target.idKey;
70
+ return target[key];
71
+ }
72
+ });
73
+ const comboboxLogic = useKComboboxLogic(effectiveProps, emit);
72
74
  return {
73
75
  ...comboboxLogic
74
76
  };
@@ -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;
84
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;
@@ -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;
84
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;
@@ -2,7 +2,7 @@
2
2
  .KDropdown-source
3
3
  Teleport(v-if="isMounted && open && teleportTarget" :to="teleportTarget")
4
4
  .KDropdown-teleported
5
- .KDropdown(v-click-outside="clickoutside" :style="dialogStyle" v-bind="$attrs")
5
+ .KDropdown(v-click-outside="{ handler: clickoutside, extraInside: anchorEl }" :style="dialogStyle" v-bind="$attrs")
6
6
  KPanel.KDropdown-container(:class="{'fullWidth': fullWidth}")
7
7
  slot
8
8
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@katlux/toolkit",
3
- "version": "0.1.0-beta.52",
3
+ "version": "0.1.0-beta.53",
4
4
  "description": "Core UI toolkit and utilities for the Katlux ecosystem",
5
5
  "author": "Katlux",
6
6
  "license": "MIT",