halov 0.26.306 → 0.26.401
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/README.md +8 -8
- package/dist/components/GridConfigBox.vue.d.ts +7851 -0
- package/dist/components/HaloForm.vue.d.ts +4 -4
- package/dist/components/HaloGrid.vue.d.ts +1 -1
- package/dist/components/InputModal.vue.d.ts +5 -0
- package/dist/components/ObjectTreeView.vue.d.ts +19 -47
- package/dist/composables/useGridConfigTool.d.ts +16 -0
- package/dist/halov.es.js +4275 -3898
- package/dist/halov.umd.cjs +6 -6
- package/dist/types/HaloTypes.d.ts +12 -0
- package/package.json +1 -1
|
@@ -312,11 +312,11 @@ declare function __VLS_template(): {
|
|
|
312
312
|
loading: boolean;
|
|
313
313
|
keyField: string;
|
|
314
314
|
multiSelect: boolean;
|
|
315
|
+
flexHeight: boolean;
|
|
315
316
|
checkable: boolean;
|
|
316
317
|
withEdit: boolean;
|
|
317
318
|
withDelete: boolean;
|
|
318
319
|
withDetails: boolean;
|
|
319
|
-
flexHeight: boolean;
|
|
320
320
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
321
321
|
nTableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
322
322
|
readonly onUnstableColumnResize: import('vue').PropType<(resizedWidth: number, limitedWidth: number, column: import('naive-ui').TableBaseColumn, getColumnWidth: (key: import('naive-ui').ColumnKey) => number | undefined) => void>;
|
|
@@ -8190,11 +8190,11 @@ declare function __VLS_template(): {
|
|
|
8190
8190
|
loading: boolean;
|
|
8191
8191
|
keyField: string;
|
|
8192
8192
|
multiSelect: boolean;
|
|
8193
|
+
flexHeight: boolean;
|
|
8193
8194
|
checkable: boolean;
|
|
8194
8195
|
withEdit: boolean;
|
|
8195
8196
|
withDelete: boolean;
|
|
8196
8197
|
withDetails: boolean;
|
|
8197
|
-
flexHeight: boolean;
|
|
8198
8198
|
}> | null;
|
|
8199
8199
|
};
|
|
8200
8200
|
rootEl: HTMLDivElement;
|
|
@@ -8336,11 +8336,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
8336
8336
|
loading: boolean;
|
|
8337
8337
|
keyField: string;
|
|
8338
8338
|
multiSelect: boolean;
|
|
8339
|
+
flexHeight: boolean;
|
|
8339
8340
|
checkable: boolean;
|
|
8340
8341
|
withEdit: boolean;
|
|
8341
8342
|
withDelete: boolean;
|
|
8342
8343
|
withDetails: boolean;
|
|
8343
|
-
flexHeight: boolean;
|
|
8344
8344
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
8345
8345
|
nTableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
8346
8346
|
readonly onUnstableColumnResize: import('vue').PropType<(resizedWidth: number, limitedWidth: number, column: import('naive-ui').TableBaseColumn, getColumnWidth: (key: import('naive-ui').ColumnKey) => number | undefined) => void>;
|
|
@@ -16214,11 +16214,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
16214
16214
|
loading: boolean;
|
|
16215
16215
|
keyField: string;
|
|
16216
16216
|
multiSelect: boolean;
|
|
16217
|
+
flexHeight: boolean;
|
|
16217
16218
|
checkable: boolean;
|
|
16218
16219
|
withEdit: boolean;
|
|
16219
16220
|
withDelete: boolean;
|
|
16220
16221
|
withDetails: boolean;
|
|
16221
|
-
flexHeight: boolean;
|
|
16222
16222
|
}> | null;
|
|
16223
16223
|
}, HTMLDivElement>;
|
|
16224
16224
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -45,11 +45,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
45
45
|
loading: boolean;
|
|
46
46
|
keyField: string;
|
|
47
47
|
multiSelect: boolean;
|
|
48
|
+
flexHeight: boolean;
|
|
48
49
|
checkable: boolean;
|
|
49
50
|
withEdit: boolean;
|
|
50
51
|
withDelete: boolean;
|
|
51
52
|
withDetails: boolean;
|
|
52
|
-
flexHeight: boolean;
|
|
53
53
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
54
54
|
nTableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
55
55
|
readonly onUnstableColumnResize: import('vue').PropType<(resizedWidth: number, limitedWidth: number, column: import('naive-ui').TableBaseColumn, getColumnWidth: (key: import('naive-ui').ColumnKey) => number | undefined) => void>;
|
|
@@ -6,14 +6,19 @@ type __VLS_Props = {
|
|
|
6
6
|
maxLength?: number;
|
|
7
7
|
type?: 'text' | 'password' | 'textarea';
|
|
8
8
|
lines?: number;
|
|
9
|
+
clearable?: boolean;
|
|
9
10
|
show: boolean;
|
|
10
11
|
submitting?: boolean;
|
|
11
12
|
};
|
|
12
13
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
14
|
close: (...args: any[]) => void;
|
|
15
|
+
"update:value": (...args: any[]) => void;
|
|
16
|
+
"update:show": (...args: any[]) => void;
|
|
14
17
|
commit: (...args: any[]) => void;
|
|
15
18
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
19
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
17
22
|
onCommit?: ((...args: any[]) => any) | undefined;
|
|
18
23
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
24
|
export default _default;
|
|
@@ -1,60 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VNodeChild } from 'vue';
|
|
2
2
|
import { TreeOption } from 'naive-ui';
|
|
3
3
|
export type NodeIconRender = (info: {
|
|
4
4
|
option: TreeOption;
|
|
5
5
|
checked: boolean;
|
|
6
6
|
selected: boolean;
|
|
7
7
|
}) => VNodeChild;
|
|
8
|
-
|
|
9
|
-
selectedId
|
|
10
|
-
rootId
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
moveAction: StringConstructor;
|
|
24
|
-
sortAction: StringConstructor;
|
|
25
|
-
treeNodeMapper: PropType<(data: any) => TreeOption>;
|
|
26
|
-
labelRender: FunctionConstructor;
|
|
27
|
-
searchWords: StringConstructor;
|
|
28
|
-
iconRender: PropType<NodeIconRender>;
|
|
29
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
selectedId?: number | string;
|
|
10
|
+
rootId?: number | string;
|
|
11
|
+
rootName?: string;
|
|
12
|
+
data?: Array<any>;
|
|
13
|
+
loadTreeAction: string;
|
|
14
|
+
moveAction?: string;
|
|
15
|
+
sortAction?: string;
|
|
16
|
+
treeNodeMapper?: (data: any) => TreeOption;
|
|
17
|
+
labelRender?: Function;
|
|
18
|
+
searchWords?: string;
|
|
19
|
+
iconRender?: NodeIconRender;
|
|
20
|
+
additionKeys?: Record<string, unknown>;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
23
|
"update:selectedId": (...args: any[]) => void;
|
|
31
24
|
"update:path": (...args: any[]) => void;
|
|
32
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
33
|
-
selectedId: (StringConstructor | NumberConstructor)[];
|
|
34
|
-
rootId: {
|
|
35
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
|
-
rootName: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
|
-
data: PropType<any>;
|
|
43
|
-
loadTreeAction: {
|
|
44
|
-
type: StringConstructor;
|
|
45
|
-
required: true;
|
|
46
|
-
};
|
|
47
|
-
moveAction: StringConstructor;
|
|
48
|
-
sortAction: StringConstructor;
|
|
49
|
-
treeNodeMapper: PropType<(data: any) => TreeOption>;
|
|
50
|
-
labelRender: FunctionConstructor;
|
|
51
|
-
searchWords: StringConstructor;
|
|
52
|
-
iconRender: PropType<NodeIconRender>;
|
|
53
|
-
}>> & Readonly<{
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
54
26
|
"onUpdate:selectedId"?: ((...args: any[]) => any) | undefined;
|
|
55
27
|
"onUpdate:path"?: ((...args: any[]) => any) | undefined;
|
|
56
28
|
}>, {
|
|
57
|
-
rootId:
|
|
29
|
+
rootId: number | string;
|
|
58
30
|
rootName: string;
|
|
59
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
60
32
|
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GridColumn, Action, ActionT, DataGridConfig } from '../types/HaloTypes';
|
|
2
|
+
export interface GridConfigModalOptions {
|
|
3
|
+
gridId?: string;
|
|
4
|
+
pageSize?: number;
|
|
5
|
+
gridColumns?: Array<GridColumn>;
|
|
6
|
+
}
|
|
7
|
+
export interface GridConfigArgs {
|
|
8
|
+
gridId?: string;
|
|
9
|
+
onConfigChanged?: ActionT<DataGridConfig | undefined | null>;
|
|
10
|
+
onPageSizeChanged?: ActionT<number>;
|
|
11
|
+
onReset?: Action;
|
|
12
|
+
}
|
|
13
|
+
export declare const useGridConfigTool: (args: GridConfigArgs) => {
|
|
14
|
+
showConfigModal: (options: GridConfigModalOptions) => void;
|
|
15
|
+
loadGridConfig: (callback?: ActionT<DataGridConfig | null | undefined>) => void;
|
|
16
|
+
};
|