@katlux/toolkit 0.1.0-beta.73 → 0.1.0-beta.74

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.73",
4
+ "version": "0.1.0-beta.74",
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;
@@ -11,8 +11,8 @@ 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
- search: string;
15
14
  bulkActions: IKDatatableAction[];
15
+ search: string;
16
16
  loading: boolean;
17
17
  visibleFields: Array<string> | null;
18
18
  rowActions: IKDatatableAction[];
@@ -11,8 +11,8 @@ 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
- search: string;
15
14
  bulkActions: IKDatatableAction[];
15
+ search: string;
16
16
  loading: boolean;
17
17
  visibleFields: Array<string> | null;
18
18
  rowActions: IKDatatableAction[];
@@ -113,13 +113,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
113
113
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
114
114
  }>, {
115
115
  isOpen: boolean;
116
+ day: string | Date;
116
117
  validation: "error" | "success" | "warning" | null | undefined;
117
118
  validationText: string;
118
119
  modelValue: string | Date;
119
120
  placeholder: string;
120
121
  teleportTo: string;
121
122
  showClear: boolean;
122
- day: string | Date;
123
123
  align: "left" | "right" | undefined;
124
124
  format: string;
125
125
  calendarDefinedDays: import("../KCalendar/types.js").IDefinedDay[];
@@ -113,13 +113,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
113
113
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
114
114
  }>, {
115
115
  isOpen: boolean;
116
+ day: string | Date;
116
117
  validation: "error" | "success" | "warning" | null | undefined;
117
118
  validationText: string;
118
119
  modelValue: string | Date;
119
120
  placeholder: string;
120
121
  teleportTo: string;
121
122
  showClear: boolean;
122
- day: string | Date;
123
123
  align: "left" | "right" | undefined;
124
124
  format: string;
125
125
  calendarDefinedDays: import("../KCalendar/types.js").IDefinedDay[];
@@ -119,13 +119,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
119
119
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
120
120
  }>, {
121
121
  isOpen: boolean;
122
+ day: string | Date;
122
123
  validation: "error" | "success" | "warning" | null | undefined;
123
124
  validationText: string;
124
125
  modelValue: string | Date;
125
126
  placeholder: string;
126
127
  teleportTo: string;
127
128
  showClear: boolean;
128
- day: string | Date;
129
129
  format: string;
130
130
  calendarDefinedDays: import("../KCalendar/types.js").IDefinedDay[];
131
131
  calendarMarkedDays: import("../KCalendar/types.js").IMarkedDay[];
@@ -119,13 +119,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
119
119
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
120
120
  }>, {
121
121
  isOpen: boolean;
122
+ day: string | Date;
122
123
  validation: "error" | "success" | "warning" | null | undefined;
123
124
  validationText: string;
124
125
  modelValue: string | Date;
125
126
  placeholder: string;
126
127
  teleportTo: string;
127
128
  showClear: boolean;
128
- day: string | Date;
129
129
  format: string;
130
130
  calendarDefinedDays: import("../KCalendar/types.js").IDefinedDay[];
131
131
  calendarMarkedDays: import("../KCalendar/types.js").IMarkedDay[];
@@ -118,35 +118,17 @@ export function useKDropdownLogic(props, emit) {
118
118
  const spaceAbove = rect.top;
119
119
  const rawSpace = resolvedDir === "top" ? spaceAbove : spaceBelow;
120
120
  const maxHeight = Math.min(300, rawSpace - 8);
121
- if (teleportTarget.value === "body" || teleportTarget.value === void 0) {
122
- dropdownRect.value = {
123
- top: rect.bottom,
124
- left: rect.left,
125
- right: document.documentElement.clientWidth - rect.right,
126
- bottom: document.documentElement.clientHeight - rect.top,
127
- width: rect.width,
128
- height: rect.height,
129
- maxHeight,
130
- resolvedDirection: resolvedDir,
131
- resolvedAlign: resolvedAl
132
- };
133
- } else {
134
- const portalEl = document.querySelector(teleportTarget.value);
135
- const portalRect = portalEl ? portalEl.getBoundingClientRect() : { top: 0, left: 0, bottom: 0, right: 0 };
136
- const portalWidth = portalEl ? portalEl.clientWidth : viewportWidth;
137
- const portalHeight = portalEl ? portalEl.clientHeight : viewportHeight;
138
- dropdownRect.value = {
139
- top: rect.bottom - portalRect.top,
140
- left: rect.left - portalRect.left,
141
- right: portalWidth - (rect.right - portalRect.left),
142
- bottom: portalHeight - (rect.top - portalRect.top),
143
- width: rect.width,
144
- height: rect.height,
145
- maxHeight,
146
- resolvedDirection: resolvedDir,
147
- resolvedAlign: resolvedAl
148
- };
149
- }
121
+ dropdownRect.value = {
122
+ top: rect.bottom,
123
+ left: rect.left,
124
+ right: viewportWidth - rect.right,
125
+ bottom: viewportHeight - rect.top,
126
+ width: rect.width,
127
+ height: rect.height,
128
+ maxHeight,
129
+ resolvedDirection: resolvedDir,
130
+ resolvedAlign: resolvedAl
131
+ };
150
132
  }
151
133
  }
152
134
  } catch (e) {
@@ -156,8 +156,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
156
156
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
157
157
  "onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
158
158
  }>, {
159
- parentKey: string;
160
- idKey: string;
161
159
  disabled: boolean;
162
160
  loading: boolean;
163
161
  validation: "error" | "success" | "warning" | null | undefined;
@@ -172,6 +170,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
172
170
  multiSelect: boolean;
173
171
  valueField: string;
174
172
  iconField: string;
173
+ idKey: string;
174
+ parentKey: string;
175
175
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
176
176
  declare const _default: typeof __VLS_export;
177
177
  export default _default;
@@ -156,8 +156,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
156
156
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
157
157
  "onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
158
158
  }>, {
159
- parentKey: string;
160
- idKey: string;
161
159
  disabled: boolean;
162
160
  loading: boolean;
163
161
  validation: "error" | "success" | "warning" | null | undefined;
@@ -172,6 +170,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
172
170
  multiSelect: boolean;
173
171
  valueField: string;
174
172
  iconField: string;
173
+ idKey: string;
174
+ parentKey: string;
175
175
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
176
176
  declare const _default: typeof __VLS_export;
177
177
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@katlux/toolkit",
3
- "version": "0.1.0-beta.73",
3
+ "version": "0.1.0-beta.74",
4
4
  "description": "Core UI toolkit and utilities for the Katlux ecosystem",
5
5
  "author": "Katlux",
6
6
  "license": "MIT",