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.
@@ -40,4 +40,6 @@ export declare function validateEmail(data: string): boolean;
40
40
  export declare function convertPercentValue(data: any, limit?: boolean): number | undefined;
41
41
  export declare function isNullOrWhiteSpace(str: string): boolean;
42
42
  export declare function onNullOrWhiteSpace(str: string, defaultStr: string): string;
43
+ export declare function mergeCssStyles(style1: string | undefined, style2: string | undefined): string | undefined;
44
+ export declare function mergeCssClass(class1: string | Array<string> | undefined, class2: string | Array<string> | undefined): Array<string> | undefined;
43
45
  export {};
@@ -6,6 +6,7 @@ export declare function openFile(url: string, contentType?: string, method?: str
6
6
  export declare function arrayRemoveIf<T>(array: Array<T>, callback: ArrayPredicate<T>): number;
7
7
  export declare function arrayGroupBy<T, K extends keyof any>(array: Array<T>, keyPicker: KeyPicker<T, K>): Record<K, Array<T>>;
8
8
  export declare function arrayMove<T>(array: Array<T>, oldIndex: number, newIndex: number): void;
9
+ export declare function arrayDistinct<T>(array: Array<T>, predicate?: (value: T) => unknown): Array<T>;
9
10
  export declare function searchField(name: string, title?: string, dataType?: string, searchMethod?: "normal" | "range", values?: string | Array<any> | ColumnValueSource | Record<string, unknown>, ts?: Translator): SearchItem;
10
11
  export interface RouteNode {
11
12
  name?: string;
@@ -74,12 +74,14 @@ export interface HaloColumn {
74
74
  search?: boolean | string | ColumnSearchOptions;
75
75
  group?: string;
76
76
  className?: string | Array<string>;
77
+ cssStyle?: string;
77
78
  render?(rowData: Record<string, unknown>, rowIndex: number): VNodeChild;
78
79
  click?(rowData: Record<string, unknown>, rowIndex: number): void;
79
80
  values?: ColumnValueSource | Array<any>;
80
81
  visible?: boolean | Predicate;
81
82
  referencePage?: string;
82
83
  tagSource?: string;
84
+ sortIndex?: number;
83
85
  description?: string;
84
86
  children?: Array<HaloColumn>;
85
87
  }
@@ -175,6 +177,7 @@ export interface GridColumn {
175
177
  referencePage?: string;
176
178
  tagSource?: string;
177
179
  className?: string | Array<string>;
180
+ cssStyle?: string;
178
181
  render?(rowData: Record<string, unknown>, rowIndex: number): VNodeChild;
179
182
  click?(rowData: Record<string, unknown>, rowIndex: number): void;
180
183
  children?: Array<GridColumn>;
package/package.json CHANGED
@@ -1,66 +1,66 @@
1
- {
2
- "name": "halov",
3
- "version": "26.812.0",
4
- "type": "module",
5
- "main": "dist/halov.umd.cjs",
6
- "module": "dist/halov.es.js",
7
- "types": "dist/index.d.ts",
8
- "description": "A halo client by VUE3",
9
- "author": "Funway Wang",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/halov.es.js",
14
- "require": "./dist/halov.umd.cjs"
15
- },
16
- "./styles": "./dist/style.css"
17
- },
18
- "files": [
19
- "dist"
20
- ],
21
- "scripts": {
22
- "dev": "vite --config playground/vite.config.ts",
23
- "build": "vite build && tsc -p tsconfig.build.json",
24
- "preview": "vite preview"
25
- },
26
- "peerDependencies": {
27
- "axios": "^1.11.0",
28
- "file-saver": "^2.0.5",
29
- "moment": "^2.30.1",
30
- "mustache": "^4.2.0",
31
- "naive-ui": "^2.41.0",
32
- "pinia": "^3.0.0",
33
- "vue": "^3.5.17",
34
- "vue-draggable-plus": "^0.6.0",
35
- "vue-router": "^4.5.1"
36
- },
37
- "devDependencies": {
38
- "@types/dagre": "^0.7.53",
39
- "@types/file-saver": "^2.0.7",
40
- "@types/mustache": "^4.2.6",
41
- "@types/node": "^22.15.18",
42
- "@vicons/carbon": "^0.13.0",
43
- "@vicons/fa": "^0.13.0",
44
- "@vicons/fluent": "^0.13.0",
45
- "@vicons/material": "^0.13.0",
46
- "@vitejs/plugin-vue": "^5.2.3",
47
- "@vue/tsconfig": "^0.7.0",
48
- "axios": "^1.11.0",
49
- "dependency-cruiser": "^16.10.4",
50
- "file-saver": "^2.0.5",
51
- "moment": "^2.30.1",
52
- "mustache": "^4.2.0",
53
- "pinia": "^3.0.3",
54
- "typescript": "~5.8.3",
55
- "vite": "^6.3.5",
56
- "vite-plugin-css-injected-by-js": "^3.5.2",
57
- "vite-plugin-dts": "^4.5.4",
58
- "vue": "^3.5.17",
59
- "vue-draggable-plus": "^0.6.0",
60
- "vue-router": "^4.5.1",
61
- "vue-tsc": "^2.2.8"
62
- },
63
- "allowScripts": {
64
- "esbuild@0.25.8": true
65
- }
66
- }
1
+ {
2
+ "name": "halov",
3
+ "version": "26.902.0",
4
+ "type": "module",
5
+ "main": "dist/halov.umd.cjs",
6
+ "module": "dist/halov.es.js",
7
+ "types": "dist/index.d.ts",
8
+ "description": "A halo client by VUE3",
9
+ "author": "Funway Wang",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/halov.es.js",
14
+ "require": "./dist/halov.umd.cjs"
15
+ },
16
+ "./styles": "./dist/style.css"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "scripts": {
22
+ "dev": "vite --config playground/vite.config.ts",
23
+ "build": "vite build && tsc -p tsconfig.build.json",
24
+ "preview": "vite preview"
25
+ },
26
+ "peerDependencies": {
27
+ "axios": "^1.11.0",
28
+ "file-saver": "^2.0.5",
29
+ "moment": "^2.30.1",
30
+ "mustache": "^4.2.0",
31
+ "naive-ui": "^2.41.0",
32
+ "pinia": "^3.0.0",
33
+ "vue": "^3.5.17",
34
+ "vue-draggable-plus": "^0.6.0",
35
+ "vue-router": "^4.5.1"
36
+ },
37
+ "devDependencies": {
38
+ "@types/dagre": "^0.7.53",
39
+ "@types/file-saver": "^2.0.7",
40
+ "@types/mustache": "^4.2.6",
41
+ "@types/node": "^22.15.18",
42
+ "@vicons/carbon": "^0.13.0",
43
+ "@vicons/fa": "^0.13.0",
44
+ "@vicons/fluent": "^0.13.0",
45
+ "@vicons/material": "^0.13.0",
46
+ "@vitejs/plugin-vue": "^5.2.3",
47
+ "@vue/tsconfig": "^0.7.0",
48
+ "axios": "^1.11.0",
49
+ "dependency-cruiser": "^16.10.4",
50
+ "file-saver": "^2.0.5",
51
+ "moment": "^2.30.1",
52
+ "mustache": "^4.2.0",
53
+ "pinia": "^3.0.3",
54
+ "typescript": "~5.8.3",
55
+ "vite": "^6.3.5",
56
+ "vite-plugin-css-injected-by-js": "^3.5.2",
57
+ "vite-plugin-dts": "^4.5.4",
58
+ "vue": "^3.5.17",
59
+ "vue-draggable-plus": "^0.6.0",
60
+ "vue-router": "^4.5.1",
61
+ "vue-tsc": "^2.2.8"
62
+ },
63
+ "allowScripts": {
64
+ "esbuild@0.25.8": true
65
+ }
66
+ }