gzhr-ui 1.1.1 → 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.
- package/dist/es/{button-AUbGcyD2.mjs → button-CikfXsFN.mjs} +1 -1
- package/dist/es/{icon-CEVo1fgl.mjs → icon-CLm1uydX.mjs} +2 -2
- package/dist/{index.css → es/index.css} +1 -1
- package/dist/es/index.mjs +5 -5
- package/dist/es/{table-Bar49oDO.mjs → table-BjB1RhE5.mjs} +271 -243
- package/dist/es/utils-SCnEv9cY.mjs +83 -0
- package/dist/es/{vendor-PkgYxc4K.mjs → vendor-WGaPw_tu.mjs} +18979 -18997
- package/dist/types/components/button/index.d.ts +1 -1
- package/dist/types/components/table/index.d.ts +21 -6
- package/dist/types/components/table/src/index.vue.d.ts +11 -0
- package/dist/types/core/index.d.ts +1 -1
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.js +17 -15
- package/package.json +15 -13
- package/dist/es/utils-DZxjjV-b.mjs +0 -108
|
@@ -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
|
+
};
|