halov 26.812.0 → 26.902.0
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/components/GridConfigModal.vue.d.ts +9 -0
- package/dist/components/HaloForm.vue.d.ts +7 -6
- package/dist/components/HaloGrid.vue.d.ts +3 -6
- package/dist/composables/useGridConfigTool.d.ts +2 -0
- package/dist/halov.es.js +4525 -4493
- package/dist/halov.umd.cjs +7 -7
- package/dist/plugins/StringHelper.d.ts +2 -0
- package/dist/plugins/Utility.d.ts +1 -0
- package/dist/types/HaloTypes.d.ts +3 -0
- package/package.json +66 -66
|
@@ -4,11 +4,20 @@ export interface ColumnConfig {
|
|
|
4
4
|
title: string;
|
|
5
5
|
visible: boolean;
|
|
6
6
|
sortIndex: number;
|
|
7
|
+
prefix?: string;
|
|
8
|
+
suffix?: string;
|
|
9
|
+
renderTemplate?: string;
|
|
10
|
+
cssClass?: string;
|
|
11
|
+
cssStyle?: string;
|
|
12
|
+
alignment?: "default" | "left" | "center" | "right";
|
|
13
|
+
width?: string | number;
|
|
7
14
|
}
|
|
8
15
|
export interface GridConfig {
|
|
9
16
|
dataGridId: string;
|
|
10
17
|
columns: Array<ColumnConfig>;
|
|
11
18
|
pageSize: number;
|
|
19
|
+
sortColumns?: string;
|
|
20
|
+
frozenColumns?: number;
|
|
12
21
|
}
|
|
13
22
|
type __VLS_Props = {
|
|
14
23
|
gridId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
-
import { SaveEventArgs, SearchArgs, FormGroupLayout, ExtendedAction, GridColumn, BatchAddConfig, BeforeSaveFunction, SelectOption, Func, Func1 } from '../types/HaloTypes';
|
|
2
|
+
import { SaveEventArgs, SearchArgs, FormGroupLayout, ExtendedAction, GridColumn, SearchItem, BatchAddConfig, BeforeSaveFunction, SelectOption, Func, Func1 } from '../types/HaloTypes';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
name?: string;
|
|
5
5
|
autoLoad?: boolean;
|
|
@@ -54,7 +54,7 @@ type __VLS_Props = {
|
|
|
54
54
|
additionKeys?: Record<string, unknown>;
|
|
55
55
|
searchGroupOptions?: Array<string | SelectOption>;
|
|
56
56
|
defaultSortBy?: string;
|
|
57
|
-
defaultSortDirection?:
|
|
57
|
+
defaultSortDirection?: "Asc" | "Desc";
|
|
58
58
|
propertyModal?: Func<boolean | VNode>;
|
|
59
59
|
};
|
|
60
60
|
declare function reloadPage(pageIndex?: number): void;
|
|
@@ -110,6 +110,7 @@ declare function __VLS_template(): {
|
|
|
110
110
|
referencePage?: string | undefined;
|
|
111
111
|
tagSource?: string | undefined;
|
|
112
112
|
className?: (string | Array<string>) | undefined;
|
|
113
|
+
cssStyle?: string | undefined;
|
|
113
114
|
render?: ((rowData: Record<string, unknown>, rowIndex: number) => import('vue').VNodeChild) | undefined;
|
|
114
115
|
click?: ((rowData: Record<string, unknown>, rowIndex: number) => void) | undefined;
|
|
115
116
|
children?: /*elided*/ any[] | undefined;
|
|
@@ -236,7 +237,7 @@ declare function __VLS_template(): {
|
|
|
236
237
|
};
|
|
237
238
|
refs: {
|
|
238
239
|
searchFormRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
239
|
-
searchItems: Array<
|
|
240
|
+
searchItems: Array<SearchItem | string>;
|
|
240
241
|
searchArgs?: Record<string, any>;
|
|
241
242
|
groupOptions?: Array<string | SelectOption>;
|
|
242
243
|
groupBy?: string;
|
|
@@ -258,7 +259,7 @@ declare function __VLS_template(): {
|
|
|
258
259
|
M: {};
|
|
259
260
|
Defaults: {};
|
|
260
261
|
}, Readonly<{
|
|
261
|
-
searchItems: Array<
|
|
262
|
+
searchItems: Array<SearchItem | string>;
|
|
262
263
|
searchArgs?: Record<string, any>;
|
|
263
264
|
groupOptions?: Array<string | SelectOption>;
|
|
264
265
|
groupBy?: string;
|
|
@@ -8260,7 +8261,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
8260
8261
|
gridFlexHeight: boolean;
|
|
8261
8262
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
8262
8263
|
searchFormRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
8263
|
-
searchItems: Array<
|
|
8264
|
+
searchItems: Array<SearchItem | string>;
|
|
8264
8265
|
searchArgs?: Record<string, any>;
|
|
8265
8266
|
groupOptions?: Array<string | SelectOption>;
|
|
8266
8267
|
groupBy?: string;
|
|
@@ -8282,7 +8283,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
8282
8283
|
M: {};
|
|
8283
8284
|
Defaults: {};
|
|
8284
8285
|
}, Readonly<{
|
|
8285
|
-
searchItems: Array<
|
|
8286
|
+
searchItems: Array<SearchItem | string>;
|
|
8286
8287
|
searchArgs?: Record<string, any>;
|
|
8287
8288
|
groupOptions?: Array<string | SelectOption>;
|
|
8288
8289
|
groupBy?: string;
|
|
@@ -16,13 +16,10 @@ type __VLS_Props = {
|
|
|
16
16
|
selectedIds?: Array<number | string>;
|
|
17
17
|
flexHeight?: boolean;
|
|
18
18
|
};
|
|
19
|
-
declare function selectRow(key: string, exclusive?: boolean): void;
|
|
20
|
-
declare function selectRows(keys: Array<string>, exclusive?: boolean): void;
|
|
21
|
-
declare function getSelectedRowKeys(): Array<string | number>;
|
|
22
19
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
23
|
-
selectRow:
|
|
24
|
-
selectRows:
|
|
25
|
-
getSelectedRowKeys:
|
|
20
|
+
selectRow: (key: string, exclusive?: boolean) => void;
|
|
21
|
+
selectRows: (keys: Array<string>, exclusive?: boolean) => void;
|
|
22
|
+
getSelectedRowKeys: () => Array<string | number>;
|
|
26
23
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
24
|
editRow: (...args: any[]) => void;
|
|
28
25
|
deleteRow: (...args: any[]) => void;
|
|
@@ -11,6 +11,8 @@ export interface GridConfigArgs {
|
|
|
11
11
|
onReset?: Action;
|
|
12
12
|
}
|
|
13
13
|
export declare const useGridConfigTool: (args: GridConfigArgs) => {
|
|
14
|
+
hasGridId: () => boolean | "" | undefined;
|
|
15
|
+
getConfig: () => DataGridConfig | null | undefined;
|
|
14
16
|
showConfigModal: (options: GridConfigModalOptions) => void;
|
|
15
17
|
loadGridConfig: (callback?: ActionT<DataGridConfig | null | undefined>) => void;
|
|
16
18
|
};
|