@katlux/toolkit 0.1.0-beta.26 → 0.1.0-beta.31
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.cjs +31 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +31 -0
- package/dist/runtime/components/KButton/KButton.logic.d.ts +1 -1
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +72 -0
- package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +20 -0
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +12 -0
- 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/KPanel/KPanel.global.d.vue.ts +3 -28
- package/dist/runtime/components/KPanel/KPanel.global.vue +6 -3
- package/dist/runtime/components/KPanel/KPanel.global.vue.d.ts +3 -28
- 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/components/KTreeView/KTreeView.global.d.vue.ts +3 -3
- package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +3 -3
- package/dist/runtime/presets/default/components/KGrid/KGrid.vue +1 -1
- package/package.json +1 -1
package/dist/module.cjs
CHANGED
|
@@ -18,8 +18,39 @@ const module$1 = kit.defineNuxtModule({
|
|
|
18
18
|
const cssPath = resolve("./runtime/presets/default/assets/scss/index.css");
|
|
19
19
|
const finalCssPath = node_fs.existsSync(scssPath) ? scssPath : cssPath;
|
|
20
20
|
nuxt.options.css.push(finalCssPath);
|
|
21
|
+
const sharedIgnored = [
|
|
22
|
+
"**/node_modules/**",
|
|
23
|
+
"**/.nuxt/**",
|
|
24
|
+
"**/.output/**",
|
|
25
|
+
"**/dist/**",
|
|
26
|
+
"**/.git/**",
|
|
27
|
+
"**/tmp/**",
|
|
28
|
+
"**/.firebase/**"
|
|
29
|
+
];
|
|
30
|
+
nuxt.options.watchers = nuxt.options.watchers || {};
|
|
31
|
+
const chokidar = nuxt.options.watchers.chokidar = nuxt.options.watchers.chokidar || {};
|
|
32
|
+
const existingIgnored = chokidar.ignored ? Array.isArray(chokidar.ignored) ? chokidar.ignored : [chokidar.ignored] : [];
|
|
33
|
+
chokidar.ignored = [.../* @__PURE__ */ new Set([...existingIgnored, ...sharedIgnored])];
|
|
34
|
+
chokidar.usePolling = true;
|
|
35
|
+
chokidar.interval = 1e3;
|
|
36
|
+
nuxt.options.nitro = nuxt.options.nitro || {};
|
|
37
|
+
const watchOptions = nuxt.options.nitro.watchOptions = nuxt.options.nitro.watchOptions || {};
|
|
38
|
+
watchOptions.usePolling = true;
|
|
39
|
+
watchOptions.interval = 1e3;
|
|
40
|
+
watchOptions.ignored = sharedIgnored;
|
|
21
41
|
nuxt.hook("vite:extendConfig", (config) => {
|
|
22
42
|
const server = config.server || (config.server = {});
|
|
43
|
+
const watch = server.watch || (server.watch = {});
|
|
44
|
+
const currentIgnored = watch.ignored || [];
|
|
45
|
+
if (Array.isArray(currentIgnored)) {
|
|
46
|
+
watch.ignored = [.../* @__PURE__ */ new Set([...currentIgnored, ...sharedIgnored])];
|
|
47
|
+
} else if (currentIgnored) {
|
|
48
|
+
watch.ignored = [currentIgnored, ...sharedIgnored];
|
|
49
|
+
} else {
|
|
50
|
+
watch.ignored = sharedIgnored;
|
|
51
|
+
}
|
|
52
|
+
watch.usePolling = true;
|
|
53
|
+
watch.interval = 1e3;
|
|
23
54
|
const fs = server.fs || (server.fs = {});
|
|
24
55
|
const allow = fs.allow || (fs.allow = []);
|
|
25
56
|
if (!allow.includes(runtimePath)) {
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -15,8 +15,39 @@ const module$1 = defineNuxtModule({
|
|
|
15
15
|
const cssPath = resolve("./runtime/presets/default/assets/scss/index.css");
|
|
16
16
|
const finalCssPath = existsSync(scssPath) ? scssPath : cssPath;
|
|
17
17
|
nuxt.options.css.push(finalCssPath);
|
|
18
|
+
const sharedIgnored = [
|
|
19
|
+
"**/node_modules/**",
|
|
20
|
+
"**/.nuxt/**",
|
|
21
|
+
"**/.output/**",
|
|
22
|
+
"**/dist/**",
|
|
23
|
+
"**/.git/**",
|
|
24
|
+
"**/tmp/**",
|
|
25
|
+
"**/.firebase/**"
|
|
26
|
+
];
|
|
27
|
+
nuxt.options.watchers = nuxt.options.watchers || {};
|
|
28
|
+
const chokidar = nuxt.options.watchers.chokidar = nuxt.options.watchers.chokidar || {};
|
|
29
|
+
const existingIgnored = chokidar.ignored ? Array.isArray(chokidar.ignored) ? chokidar.ignored : [chokidar.ignored] : [];
|
|
30
|
+
chokidar.ignored = [.../* @__PURE__ */ new Set([...existingIgnored, ...sharedIgnored])];
|
|
31
|
+
chokidar.usePolling = true;
|
|
32
|
+
chokidar.interval = 1e3;
|
|
33
|
+
nuxt.options.nitro = nuxt.options.nitro || {};
|
|
34
|
+
const watchOptions = nuxt.options.nitro.watchOptions = nuxt.options.nitro.watchOptions || {};
|
|
35
|
+
watchOptions.usePolling = true;
|
|
36
|
+
watchOptions.interval = 1e3;
|
|
37
|
+
watchOptions.ignored = sharedIgnored;
|
|
18
38
|
nuxt.hook("vite:extendConfig", (config) => {
|
|
19
39
|
const server = config.server || (config.server = {});
|
|
40
|
+
const watch = server.watch || (server.watch = {});
|
|
41
|
+
const currentIgnored = watch.ignored || [];
|
|
42
|
+
if (Array.isArray(currentIgnored)) {
|
|
43
|
+
watch.ignored = [.../* @__PURE__ */ new Set([...currentIgnored, ...sharedIgnored])];
|
|
44
|
+
} else if (currentIgnored) {
|
|
45
|
+
watch.ignored = [currentIgnored, ...sharedIgnored];
|
|
46
|
+
} else {
|
|
47
|
+
watch.ignored = sharedIgnored;
|
|
48
|
+
}
|
|
49
|
+
watch.usePolling = true;
|
|
50
|
+
watch.interval = 1e3;
|
|
20
51
|
const fs = server.fs || (server.fs = {});
|
|
21
52
|
const allow = fs.allow || (fs.allow = []);
|
|
22
53
|
if (!allow.includes(runtimePath)) {
|
|
@@ -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" | "
|
|
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;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ADataProvider } from '@katlux/providers';
|
|
2
|
+
import { type TDataRow } from '@katlux/providers';
|
|
3
|
+
export type ComboboxItem = TDataRow;
|
|
4
|
+
export interface KComboboxProps {
|
|
5
|
+
dataProvider: ADataProvider;
|
|
6
|
+
closeOnSelect?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
multiSelect?: boolean;
|
|
9
|
+
maxSelectedDisplay?: number | string | false;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
searchbox?: boolean;
|
|
12
|
+
visibleFields?: Array<String> | null;
|
|
13
|
+
labelField: string;
|
|
14
|
+
modelValue?: ComboboxItem | ComboboxItem[] | null;
|
|
15
|
+
}
|
|
16
|
+
export interface KComboboxEmits {
|
|
17
|
+
(e: 'update:modelValue', value: ComboboxItem | ComboboxItem[] | null): void;
|
|
18
|
+
}
|
|
19
|
+
export declare const KComboboxDefaultProps: {
|
|
20
|
+
dataProvider: {
|
|
21
|
+
type: PropType<ADataProvider>;
|
|
22
|
+
required: boolean;
|
|
23
|
+
};
|
|
24
|
+
closeOnSelect: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
disabled: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
multiSelect: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
maxSelectedDisplay: {
|
|
37
|
+
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
placeholder: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
searchbox: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
visibleFields: {
|
|
49
|
+
type: PropType<Array<String>>;
|
|
50
|
+
default: null;
|
|
51
|
+
};
|
|
52
|
+
labelField: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
required: boolean;
|
|
55
|
+
};
|
|
56
|
+
modelValue: {
|
|
57
|
+
type: PropType<ComboboxItem | ComboboxItem[] | null>;
|
|
58
|
+
default: null;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export declare function useKComboboxLogic(props: KComboboxProps, emit: KComboboxEmits): {
|
|
62
|
+
selectedItems: import("vue").Ref<TDataRow[] | null, TDataRow[] | null>;
|
|
63
|
+
isOptionsOpen: import("vue").Ref<boolean, boolean>;
|
|
64
|
+
searchtext: import("vue").Ref<string, string>;
|
|
65
|
+
selectItem: (option: ComboboxItem) => void;
|
|
66
|
+
isSelected: (option: ComboboxItem) => boolean | undefined;
|
|
67
|
+
getSelectedContent: () => TDataRow[];
|
|
68
|
+
toggleDropdown: () => void;
|
|
69
|
+
closeDropdown: () => void;
|
|
70
|
+
filteredOptions: import("vue").ComputedRef<TDataRow[]>;
|
|
71
|
+
loading: import("vue").Ref<Boolean, Boolean>;
|
|
72
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -1,60 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
wrap: {
|
|
7
|
-
type: PropType<"wrap" | "nowrap">;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
flexChild: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
|
-
align: {
|
|
15
|
-
type: PropType<"start" | "center" | "end" | "stretch" | "baseline">;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
justify: {
|
|
19
|
-
type: PropType<"start" | "center" | "end" | "space-between" | "around" | "evenly">;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
noGap: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
-
direction: {
|
|
28
|
-
type: PropType<"row" | "column">;
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
|
-
wrap: {
|
|
32
|
-
type: PropType<"wrap" | "nowrap">;
|
|
33
|
-
default: string;
|
|
34
|
-
};
|
|
35
|
-
flexChild: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
align: {
|
|
40
|
-
type: PropType<"start" | "center" | "end" | "stretch" | "baseline">;
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
|
-
justify: {
|
|
44
|
-
type: PropType<"start" | "center" | "end" | "space-between" | "around" | "evenly">;
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
47
|
-
noGap: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: boolean;
|
|
50
|
-
};
|
|
51
|
-
}>> & Readonly<{}>, {
|
|
52
|
-
wrap: any;
|
|
53
|
-
direction: any;
|
|
1
|
+
import { type KGridProps } from './KGrid.logic.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<KGridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KGridProps> & Readonly<{}>, {
|
|
3
|
+
wrap: "wrap" | "nowrap";
|
|
4
|
+
direction: "row" | "column";
|
|
54
5
|
flexChild: boolean;
|
|
55
|
-
align:
|
|
56
|
-
justify:
|
|
6
|
+
align: "start" | "center" | "end" | "stretch" | "baseline";
|
|
7
|
+
justify: "start" | "center" | "end" | "space-between" | "around" | "evenly";
|
|
57
8
|
noGap: boolean;
|
|
58
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
59
10
|
declare const _default: typeof __VLS_export;
|
|
60
11
|
export default _default;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { useKGridLogic
|
|
2
|
+
import { useKGridLogic } from "./KGrid.logic";
|
|
3
3
|
import { usePresetComponent } from "../../composables/usePresetComponent";
|
|
4
4
|
import { computed } from "vue";
|
|
5
5
|
import KGridDefault from "../../presets/default/components/KGrid/KGrid.vue";
|
|
6
|
-
const props = defineProps(
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
direction: { type: String, required: false, default: "row" },
|
|
8
|
+
wrap: { type: String, required: false, default: "wrap" },
|
|
9
|
+
flexChild: { type: Boolean, required: false, default: false },
|
|
10
|
+
align: { type: String, required: false, default: "start" },
|
|
11
|
+
justify: { type: String, required: false, default: "start" },
|
|
12
|
+
noGap: { type: Boolean, required: false, default: false }
|
|
13
|
+
});
|
|
7
14
|
const { classes } = useKGridLogic(props);
|
|
8
15
|
const presetComponent = usePresetComponent("KGrid", KGridDefault);
|
|
9
16
|
const templateProps = computed(() => ({
|
|
@@ -1,60 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
wrap: {
|
|
7
|
-
type: PropType<"wrap" | "nowrap">;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
flexChild: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
|
-
align: {
|
|
15
|
-
type: PropType<"start" | "center" | "end" | "stretch" | "baseline">;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
justify: {
|
|
19
|
-
type: PropType<"start" | "center" | "end" | "space-between" | "around" | "evenly">;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
noGap: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
-
direction: {
|
|
28
|
-
type: PropType<"row" | "column">;
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
|
-
wrap: {
|
|
32
|
-
type: PropType<"wrap" | "nowrap">;
|
|
33
|
-
default: string;
|
|
34
|
-
};
|
|
35
|
-
flexChild: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
align: {
|
|
40
|
-
type: PropType<"start" | "center" | "end" | "stretch" | "baseline">;
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
|
-
justify: {
|
|
44
|
-
type: PropType<"start" | "center" | "end" | "space-between" | "around" | "evenly">;
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
47
|
-
noGap: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: boolean;
|
|
50
|
-
};
|
|
51
|
-
}>> & Readonly<{}>, {
|
|
52
|
-
wrap: any;
|
|
53
|
-
direction: any;
|
|
1
|
+
import { type KGridProps } from './KGrid.logic.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<KGridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KGridProps> & Readonly<{}>, {
|
|
3
|
+
wrap: "wrap" | "nowrap";
|
|
4
|
+
direction: "row" | "column";
|
|
54
5
|
flexChild: boolean;
|
|
55
|
-
align:
|
|
56
|
-
justify:
|
|
6
|
+
align: "start" | "center" | "end" | "stretch" | "baseline";
|
|
7
|
+
justify: "start" | "center" | "end" | "space-between" | "around" | "evenly";
|
|
57
8
|
noGap: boolean;
|
|
58
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
59
10
|
declare const _default: typeof __VLS_export;
|
|
60
11
|
export default _default;
|
|
@@ -1,33 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
noGap: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
|
-
flexContent: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
-
title: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
noGap: {
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
flexContent: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
}>> & Readonly<{}>, {
|
|
1
|
+
import { type KPanelProps } from './KPanel.logic.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<KPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KPanelProps> & Readonly<{}>, {
|
|
28
3
|
title: string;
|
|
29
4
|
noGap: boolean;
|
|
30
5
|
flexContent: boolean;
|
|
31
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
7
|
declare const _default: typeof __VLS_export;
|
|
33
8
|
export default _default;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { useKPanelLogic
|
|
2
|
+
import { useKPanelLogic } from "./KPanel.logic";
|
|
3
3
|
import { usePresetComponent } from "../../composables/usePresetComponent";
|
|
4
4
|
import { computed } from "vue";
|
|
5
5
|
import KPanelDefault from "../../presets/default/components/KPanel/KPanel.vue";
|
|
6
|
-
const props = defineProps(
|
|
7
|
-
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
title: { type: String, required: false, default: "" },
|
|
8
|
+
noGap: { type: Boolean, required: false, default: true },
|
|
9
|
+
flexContent: { type: Boolean, required: false, default: false }
|
|
10
|
+
});
|
|
8
11
|
const presetComponent = usePresetComponent("KPanel", KPanelDefault);
|
|
9
12
|
const templateProps = computed(() => ({
|
|
10
13
|
noGap: props.noGap,
|
|
@@ -1,33 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
noGap: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
|
-
flexContent: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
-
title: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
noGap: {
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
flexContent: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
}>> & Readonly<{}>, {
|
|
1
|
+
import { type KPanelProps } from './KPanel.logic.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<KPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KPanelProps> & Readonly<{}>, {
|
|
28
3
|
title: string;
|
|
29
4
|
noGap: boolean;
|
|
30
5
|
flexContent: boolean;
|
|
31
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
7
|
declare const _default: typeof __VLS_export;
|
|
33
8
|
export default _default;
|
|
@@ -103,6 +103,8 @@ 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;
|
|
106
108
|
disabled: boolean;
|
|
107
109
|
loading: boolean;
|
|
108
110
|
modelValue: any;
|
|
@@ -112,8 +114,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
112
114
|
closeOnSelect: boolean;
|
|
113
115
|
multiSelect: boolean;
|
|
114
116
|
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,6 +103,8 @@ 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;
|
|
106
108
|
disabled: boolean;
|
|
107
109
|
loading: boolean;
|
|
108
110
|
modelValue: any;
|
|
@@ -112,8 +114,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
112
114
|
closeOnSelect: boolean;
|
|
113
115
|
multiSelect: boolean;
|
|
114
116
|
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;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { ADataProvider } from '@katlux/providers';
|
|
2
|
+
export interface KTreePickerProps {
|
|
3
|
+
modelValue?: any;
|
|
4
|
+
dataProvider: ADataProvider;
|
|
5
|
+
labelField: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
closeOnSelect?: boolean;
|
|
9
|
+
idKey?: string;
|
|
10
|
+
parentKey?: string;
|
|
11
|
+
iconField?: string;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
multiSelect?: boolean;
|
|
14
|
+
searchbox?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const KTreePickerDefaultProps: {
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: PropType<any>;
|
|
19
|
+
default: null;
|
|
20
|
+
};
|
|
21
|
+
dataProvider: {
|
|
22
|
+
type: PropType<ADataProvider>;
|
|
23
|
+
required: boolean;
|
|
24
|
+
};
|
|
25
|
+
labelField: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: boolean;
|
|
28
|
+
};
|
|
29
|
+
placeholder: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
disabled: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
closeOnSelect: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
idKey: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
parentKey: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
iconField: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
loading: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
multiSelect: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
searchbox: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare function useKTreePickerLogic(props: KTreePickerProps, emit: any): {
|
|
67
|
+
selectedItems: import("vue").Ref<import("@katlux/providers").TDataRow[] | null, import("@katlux/providers").TDataRow[] | null>;
|
|
68
|
+
isOptionsOpen: import("vue").Ref<boolean, boolean>;
|
|
69
|
+
searchtext: import("vue").Ref<string, string>;
|
|
70
|
+
selectItem: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => void;
|
|
71
|
+
isSelected: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => boolean | undefined;
|
|
72
|
+
getSelectedContent: () => import("@katlux/providers").TDataRow[];
|
|
73
|
+
toggleDropdown: () => void;
|
|
74
|
+
closeDropdown: () => void;
|
|
75
|
+
filteredOptions: import("vue").ComputedRef<import("@katlux/providers").TDataRow[]>;
|
|
76
|
+
loading: import("vue").Ref<Boolean, Boolean>;
|
|
77
|
+
};
|
|
@@ -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;
|