gzhr-ui 1.1.0 → 1.2.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.
@@ -0,0 +1,83 @@
1
+ import { l as n } from "./vendor-WGaPw_tu.mjs";
2
+ import { ref as f, onUnmounted as c } from "vue";
3
+ function d(e) {
4
+ return (r) => e.forEach((t) => {
5
+ r.use(t);
6
+ });
7
+ }
8
+ const _ = (e) => (e.install = (s) => {
9
+ const r = (e == null ? void 0 : e.name) || "UnnamedComponent";
10
+ s.component(r, e);
11
+ }, e);
12
+ function l(e) {
13
+ let s = Array.isArray(e) ? [] : {};
14
+ if (e && typeof e == "object")
15
+ for (let r in e)
16
+ e[r] && typeof e[r] == "object" ? s[r] = l(e[r]) : s[r] = e[r];
17
+ return s;
18
+ }
19
+ function o(e, s = "ParentOID", r = "OID", t = "children") {
20
+ const g = /* @__PURE__ */ new Map(), a = [];
21
+ return e.forEach((p) => {
22
+ g.set(p[r], p);
23
+ }), e.forEach((p) => {
24
+ const u = p[s];
25
+ if (i(u))
26
+ a.push(p);
27
+ else {
28
+ const m = g.get(u);
29
+ m && (m[t] ?? (m[t] = []), m[t].push(p));
30
+ }
31
+ }), a;
32
+ }
33
+ function i(e) {
34
+ return e === "00000000-0000-0000-0000-000000000000" || n(e);
35
+ }
36
+ function T(e) {
37
+ return /^(#([0-9a-fA-F]{3}){1,2}|rgba?\(\d+%?,\s*\d+%?,\s*\d+%?(,\s*[0-9.]+)?\)|hsla?\(\d+%?,\s*\d+%?,\s*\d+%?(,\s*[0-9.]+)?\))$/.test(e);
38
+ }
39
+ function v(e) {
40
+ return e === "png" || e === "jpg" || e === "gif" || e === "jpeg" || e === "bmp" || e === "webp" ? !1 : e === "mp3" || e === "mpeg" || e === "mp4" || e === "ogg" || e === "wav" || e === "webm" ? "/Images/img_fileType/VIDEO.png" : e === "pdf" ? "/Images/img_fileType/PDF.png" : e === "doc" || e === "docx" ? "/Images/img_fileType/WORD.png" : e === "xls" || e === "xlsx" ? "/Images/img_fileType/ECEL.png" : e === "ppt" || e === "pptx" ? "/Images/img_fileType/PPT.png" : e === "zip" || e === "rar" ? "/Images/img_fileType/ZIP.png" : e === "txt" ? "/Images/img_fileType/TET.png" : e === "csv" ? "/Images/img_fileType/CSV.png" : e === "dwg" ? "/Images/img_fileType/PUB.png" : e === "xmind" ? "/Images/img_fileType/XMIND.png" : e === "md" ? "/Images/img_fileType/MD.png" : [
41
+ "3dm",
42
+ "3ds",
43
+ "3mf",
44
+ "amf",
45
+ "bim",
46
+ "brep",
47
+ "dae",
48
+ "fbx",
49
+ "fcstd",
50
+ "gltf",
51
+ "ifc",
52
+ "iges",
53
+ "step",
54
+ "stl",
55
+ "obj",
56
+ "off",
57
+ "ply",
58
+ "wrl"
59
+ ].includes(e) ? "/Images/img_fileType/3D.png" : "/Images/img_fileType/none.png";
60
+ }
61
+ const h = (e, s) => {
62
+ const r = f(0), t = f(0), g = () => {
63
+ r.value = e.clientWidth, t.value = e.clientHeight, s && typeof s == "function" && s({ clientWidth: r.value, clientHeight: t.value });
64
+ }, a = new ResizeObserver(g);
65
+ return g(), a.observe(e), c(() => {
66
+ a.disconnect();
67
+ }), { clientWidth: r, clientHeight: t };
68
+ }, w = (e, s) => {
69
+ const r = e.__vccOpts || e;
70
+ for (const [t, g] of s)
71
+ r[t] = g;
72
+ return r;
73
+ };
74
+ export {
75
+ w as _,
76
+ o as b,
77
+ l as d,
78
+ v as g,
79
+ T as i,
80
+ d as m,
81
+ h as u,
82
+ _ as w
83
+ };
@@ -12,6 +12,10 @@ export declare const HrTable: {
12
12
  pagination: {
13
13
  type: ObjectConstructor;
14
14
  };
15
+ gridRef: {
16
+ type: ObjectConstructor;
17
+ default: () => {};
18
+ };
15
19
  }>> & Readonly<{
16
20
  onFilterSearch?: ((...args: any[]) => any) | undefined;
17
21
  onSortChange?: ((...args: any[]) => any) | undefined;
@@ -22,6 +26,7 @@ export declare const HrTable: {
22
26
  onPickPeople?: ((...args: any[]) => any) | undefined;
23
27
  onFileClick?: ((...args: any[]) => any) | undefined;
24
28
  onRemoteMethod?: ((...args: any[]) => any) | undefined;
29
+ onChooseBefor?: ((...args: any[]) => any) | undefined;
25
30
  }>, {
26
31
  gridRef: import('vue').Ref<VxeUI.VxeGridInstance<any> | undefined, VxeUI.VxeGridInstance<any> | undefined>;
27
32
  gridOptions: import('vue').ComputedRef<VxeUI.VxeGridProps<any>>;
@@ -35,8 +40,10 @@ export declare const HrTable: {
35
40
  PickPeople: (...args: any[]) => void;
36
41
  FileClick: (...args: any[]) => void;
37
42
  RemoteMethod: (...args: any[]) => void;
43
+ ChooseBefor: (...args: any[]) => void;
38
44
  }, import('vue').PublicProps, {
39
45
  data: unknown[];
46
+ gridRef: Record<string, any>;
40
47
  config: Record<string, any>;
41
48
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
42
49
  P: {};
@@ -57,6 +64,10 @@ export declare const HrTable: {
57
64
  pagination: {
58
65
  type: ObjectConstructor;
59
66
  };
67
+ gridRef: {
68
+ type: ObjectConstructor;
69
+ default: () => {};
70
+ };
60
71
  }>> & Readonly<{
61
72
  onFilterSearch?: ((...args: any[]) => any) | undefined;
62
73
  onSortChange?: ((...args: any[]) => any) | undefined;
@@ -67,11 +78,13 @@ export declare const HrTable: {
67
78
  onPickPeople?: ((...args: any[]) => any) | undefined;
68
79
  onFileClick?: ((...args: any[]) => any) | undefined;
69
80
  onRemoteMethod?: ((...args: any[]) => any) | undefined;
81
+ onChooseBefor?: ((...args: any[]) => any) | undefined;
70
82
  }>, {
71
83
  gridRef: import('vue').Ref<VxeUI.VxeGridInstance<any> | undefined, VxeUI.VxeGridInstance<any> | undefined>;
72
84
  gridOptions: import('vue').ComputedRef<VxeUI.VxeGridProps<any>>;
73
85
  }, {}, {}, {}, {
74
86
  data: unknown[];
87
+ gridRef: Record<string, any>;
75
88
  config: Record<string, any>;
76
89
  }>;
77
90
  __isFragment?: never;
@@ -89,6 +102,10 @@ export declare const HrTable: {
89
102
  pagination: {
90
103
  type: ObjectConstructor;
91
104
  };
105
+ gridRef: {
106
+ type: ObjectConstructor;
107
+ default: () => {};
108
+ };
92
109
  }>> & Readonly<{
93
110
  onFilterSearch?: ((...args: any[]) => any) | undefined;
94
111
  onSortChange?: ((...args: any[]) => any) | undefined;
@@ -99,6 +116,7 @@ export declare const HrTable: {
99
116
  onPickPeople?: ((...args: any[]) => any) | undefined;
100
117
  onFileClick?: ((...args: any[]) => any) | undefined;
101
118
  onRemoteMethod?: ((...args: any[]) => any) | undefined;
119
+ onChooseBefor?: ((...args: any[]) => any) | undefined;
102
120
  }>, {
103
121
  gridRef: import('vue').Ref<VxeUI.VxeGridInstance<any> | undefined, VxeUI.VxeGridInstance<any> | undefined>;
104
122
  gridOptions: import('vue').ComputedRef<VxeUI.VxeGridProps<any>>;
@@ -112,8 +130,10 @@ export declare const HrTable: {
112
130
  PickPeople: (...args: any[]) => void;
113
131
  FileClick: (...args: any[]) => void;
114
132
  RemoteMethod: (...args: any[]) => void;
133
+ ChooseBefor: (...args: any[]) => void;
115
134
  }, string, {
116
135
  data: unknown[];
136
+ gridRef: Record<string, any>;
117
137
  config: Record<string, any>;
118
138
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
119
139
  export { VxeUI };
@@ -11,6 +11,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
11
11
  pagination: {
12
12
  type: ObjectConstructor;
13
13
  };
14
+ gridRef: {
15
+ type: ObjectConstructor;
16
+ default: () => {};
17
+ };
14
18
  }>, {
15
19
  gridRef: import('vue').Ref<VxeGridInstance<any> | undefined, VxeGridInstance<any> | undefined>;
16
20
  gridOptions: import('vue').ComputedRef<VxeGridProps<any>>;
@@ -24,6 +28,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
24
28
  PickPeople: (...args: any[]) => void;
25
29
  FileClick: (...args: any[]) => void;
26
30
  RemoteMethod: (...args: any[]) => void;
31
+ ChooseBefor: (...args: any[]) => void;
27
32
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
28
33
  config: {
29
34
  type: ObjectConstructor;
@@ -36,6 +41,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
36
41
  pagination: {
37
42
  type: ObjectConstructor;
38
43
  };
44
+ gridRef: {
45
+ type: ObjectConstructor;
46
+ default: () => {};
47
+ };
39
48
  }>> & Readonly<{
40
49
  onFilterSearch?: ((...args: any[]) => any) | undefined;
41
50
  onSortChange?: ((...args: any[]) => any) | undefined;
@@ -46,8 +55,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
46
55
  onPickPeople?: ((...args: any[]) => any) | undefined;
47
56
  onFileClick?: ((...args: any[]) => any) | undefined;
48
57
  onRemoteMethod?: ((...args: any[]) => any) | undefined;
58
+ onChooseBefor?: ((...args: any[]) => any) | undefined;
49
59
  }>, {
50
60
  data: unknown[];
61
+ gridRef: Record<string, any>;
51
62
  config: Record<string, any>;
52
63
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
53
64
  export default _default;
@@ -1,3 +1,3 @@
1
1
  declare const installer: (app: import('vue').App) => void;
2
- export * from '@gzhr-ui/components';
2
+ export * from '../components';
3
3
  export default installer;