@deot/docs-client 1.1.3 → 1.1.4
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 +2 -3
- package/dist/chunks/browser-Cmwcvs-d.js +505 -0
- package/dist/chunks/cdn-DEvdGJu2-bmlgKy4E.js +38 -0
- package/dist/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +14 -0
- package/dist/chunks/compile-Bw7v7QE--Dd1-R95H.js +79920 -0
- package/dist/chunks/compiler-sfc.esm-browser-B4_kBkG5.js +24975 -0
- package/dist/chunks/dayjs.min-B3g34Qcz.js +300 -0
- package/dist/chunks/dist-0ySyXNpo.js +415 -0
- package/dist/chunks/dist-BUw25nXJ.js +65 -0
- package/dist/chunks/dist-BeOE8qTX.js +345 -0
- package/dist/chunks/dist-Bm7SK-km.js +24517 -0
- package/dist/chunks/dist-C3V7reR4.js +197 -0
- package/dist/chunks/dist-C8z9l0mA.js +58 -0
- package/dist/chunks/dist-CI9Lp9Cj.js +247 -0
- package/dist/chunks/dist-COjpr4FU.js +426 -0
- package/dist/chunks/dist-CQir6D4y.js +244 -0
- package/dist/chunks/dist-CuJyl-ef.js +17 -0
- package/dist/chunks/dist-Cxf7_ocf.js +44 -0
- package/dist/chunks/dist-DF4kisl2.js +43 -0
- package/dist/chunks/dist-DLj8yJdm.js +38 -0
- package/dist/chunks/dist-DN0sqx7H.js +39 -0
- package/dist/chunks/dist-DWqBe2Ah.js +132 -0
- package/dist/chunks/dist-D_Uqh6m9.js +80 -0
- package/dist/chunks/dist-DcIU51zW.js +166 -0
- package/dist/chunks/dist-DlmO7OlF.js +22 -0
- package/dist/chunks/dist-kiZUqqzR.js +27 -0
- package/dist/chunks/dist-oZ12SGqg.js +6 -0
- package/dist/chunks/dist-uXnwGrO3.js +76 -0
- package/dist/chunks/dist-va7FmnW4.js +156 -0
- package/dist/chunks/{echarts-I1Rk_oCV.js → echarts-Dk-pu7GM.js} +450 -398
- package/dist/chunks/files-C5UMzYxA-q9oJ4PrI.js +110 -0
- package/dist/chunks/html2canvas-Deo0mM5K.js +4022 -0
- package/dist/chunks/index.es-UlJ0gfdF.js +5757 -0
- package/dist/chunks/jspdf.es.min-CJc40v7q.js +17873 -0
- package/dist/chunks/jsx-CwMPlI4_-CAiik-V7.js +128454 -0
- package/dist/chunks/jszip.min-BbVwZKYP.js +3044 -0
- package/dist/chunks/linker-JHdz37DK-CWgUtxZ5.js +118 -0
- package/dist/chunks/local-sandbox-B8IJ5jWb-BgfU3iQ4.js +300 -0
- package/dist/chunks/lodash-Cxf6dD_I.js +5161 -0
- package/dist/chunks/modules-DlLJF_vd-DcNdL6sc.js +153 -0
- package/dist/chunks/{photoswipe.esm-CT37djgx.js → photoswipe.esm-B0V-xGTB.js} +36 -31
- package/dist/chunks/pinia-pDJilYOg.js +326 -0
- package/dist/chunks/purify.es-BiqY1C6m.js +867 -0
- package/dist/chunks/remote-DfXAsO9n-C_MtPVYr.js +75 -0
- package/dist/chunks/script-xKUjE8pf-oF69rg-w.js +14941 -0
- package/dist/chunks/store-D8vwi-HV-RFStijWr.js +16936 -0
- package/dist/chunks/vue-router-C0mj8Ot5.js +1196 -0
- package/dist/chunks/vue.runtime.esm-bundler-XxHGOLq2.js +4879 -0
- package/dist/index.cjs +17 -17
- package/dist/index.d.ts +1 -1
- package/dist/index.js +41713 -103389
- package/dist/index.style.css +3 -4
- package/package.json +9 -9
- package/dist/chunks/_commonjsHelpers-BFTU3MAI-D_7z5o6A.js +0 -8
- package/dist/chunks/jsx-H2PmTOgp-C0GVSSMR.js +0 -128281
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
globalThis.process;
|
|
2
|
+
import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
+
//#region node_modules/.pnpm/@deot+helper-dom@1.1.5/node_modules/@deot/helper-dom/dist/index.js
|
|
4
|
+
var t = /* @__PURE__ */ e({
|
|
5
|
+
addClass: () => i,
|
|
6
|
+
composedPath: () => a,
|
|
7
|
+
contains: () => o,
|
|
8
|
+
el: () => s,
|
|
9
|
+
getScroller: () => u,
|
|
10
|
+
getStyle: () => c,
|
|
11
|
+
hasClass: () => r,
|
|
12
|
+
isScroller: () => l,
|
|
13
|
+
off: () => d,
|
|
14
|
+
on: () => f,
|
|
15
|
+
once: () => p,
|
|
16
|
+
prefixStyle: () => g,
|
|
17
|
+
removeClass: () => _,
|
|
18
|
+
scrollIntoView: () => v,
|
|
19
|
+
setStyle: () => y
|
|
20
|
+
}), n = typeof window > "u", r = (e, t) => {
|
|
21
|
+
if (n || !t) return !1;
|
|
22
|
+
if (t.includes(" ")) throw Error("[@deot/helper-dom]: 类名不应该包含空格");
|
|
23
|
+
return e.classList ? e.classList.contains(t) : (" " + e.className + " ").indexOf(" " + t + " ") > -1;
|
|
24
|
+
}, i = (e, t) => {
|
|
25
|
+
if (n || !t) return;
|
|
26
|
+
let i = e.className, a = t.split(" ");
|
|
27
|
+
for (let t = 0, n = a.length; t < n; t++) {
|
|
28
|
+
let n = a[t];
|
|
29
|
+
n && (e.classList ? e.classList.add(n) : r(e, n) || (i += " " + n));
|
|
30
|
+
}
|
|
31
|
+
e.classList || (e.className = i);
|
|
32
|
+
}, a = (e) => {
|
|
33
|
+
let t = e.composedPath && e.composedPath() || [];
|
|
34
|
+
if (t.length) return t;
|
|
35
|
+
let n = e.target?.parentNode;
|
|
36
|
+
/* istanbul ignore next -- @preserve */
|
|
37
|
+
for (; n;) t.push(n), n = n.parentNode;
|
|
38
|
+
return t;
|
|
39
|
+
}, o = (e, t) => {
|
|
40
|
+
if (n || !t) return !1;
|
|
41
|
+
let r = t.getBoundingClientRect(), i;
|
|
42
|
+
return i = !e || [
|
|
43
|
+
window,
|
|
44
|
+
document,
|
|
45
|
+
document.documentElement
|
|
46
|
+
].includes(e) ? {
|
|
47
|
+
top: 0,
|
|
48
|
+
right: window.innerWidth,
|
|
49
|
+
bottom: window.innerHeight,
|
|
50
|
+
left: 0
|
|
51
|
+
} : e.getBoundingClientRect(), r.top < i.bottom && r.bottom > i.top && r.right > i.left && r.left < i.right;
|
|
52
|
+
}, s = (e) => {
|
|
53
|
+
if (n) return null;
|
|
54
|
+
let t;
|
|
55
|
+
if (t = typeof e == "object" ? e : document.querySelector(e), !t) throw Error("[@deot/helper-dom]: el缺失");
|
|
56
|
+
return t;
|
|
57
|
+
}, c = (e, t) => {
|
|
58
|
+
if (n || !t) return "";
|
|
59
|
+
t === "float" && (t = "cssFloat");
|
|
60
|
+
try {
|
|
61
|
+
let n = document.defaultView.getComputedStyle(e, "");
|
|
62
|
+
return e.style[t] || n?.[t] || "";
|
|
63
|
+
} catch {
|
|
64
|
+
/* istanbul ignore next -- @preserve */
|
|
65
|
+
return e.style[t] || "";
|
|
66
|
+
}
|
|
67
|
+
}, l = (e, t) => {
|
|
68
|
+
if (n || !e) return !1;
|
|
69
|
+
let { className: r, direction: i } = t || {}, a = i ? c(e, `overflow-${i}`) : "";
|
|
70
|
+
return (!a || a === "visible") && (a = c(e, "overflow")), !!(a.match(/(scroll|auto)/) || r?.test(e.className));
|
|
71
|
+
}, u = (e, t) => {
|
|
72
|
+
if (n || !e) return null;
|
|
73
|
+
let r = e;
|
|
74
|
+
for (; r;) {
|
|
75
|
+
if ([
|
|
76
|
+
window,
|
|
77
|
+
document,
|
|
78
|
+
document.documentElement
|
|
79
|
+
].includes(r)) return window;
|
|
80
|
+
if (l(r, t)) return r;
|
|
81
|
+
r = r?.parentNode;
|
|
82
|
+
}
|
|
83
|
+
return r;
|
|
84
|
+
}, d = (e, t, r, i) => {
|
|
85
|
+
n || e.removeEventListener(t, r, i || !1);
|
|
86
|
+
}, f = (e, t, r, i) => n ? () => {} : (e.addEventListener(t, r, i || !1), () => {
|
|
87
|
+
e.removeEventListener(t, r, i || !1);
|
|
88
|
+
}), p = (e, t, r, i) => {
|
|
89
|
+
if (n) return () => {};
|
|
90
|
+
let a = f(e, t, function(...e) {
|
|
91
|
+
r && r.apply(this, e), a();
|
|
92
|
+
}, i);
|
|
93
|
+
return a;
|
|
94
|
+
}, m = n ? {} : document.createElement("div").style, h = (() => {
|
|
95
|
+
let e = {
|
|
96
|
+
webkit: "webkitTransform",
|
|
97
|
+
Moz: "MozTransform",
|
|
98
|
+
O: "OTransform",
|
|
99
|
+
ms: "msTransform",
|
|
100
|
+
standard: "transform"
|
|
101
|
+
}, t = {
|
|
102
|
+
webkit: "-webkit-",
|
|
103
|
+
Moz: "-moz-",
|
|
104
|
+
O: "-o-",
|
|
105
|
+
ms: "-ms-",
|
|
106
|
+
standard: ""
|
|
107
|
+
};
|
|
108
|
+
for (let n in e) if (m[e[n]] !== void 0) return {
|
|
109
|
+
camel: n,
|
|
110
|
+
kebab: t[n]
|
|
111
|
+
};
|
|
112
|
+
return !1;
|
|
113
|
+
})(), g = (e) => n || h === !1 ? {
|
|
114
|
+
camel: e,
|
|
115
|
+
kebab: e
|
|
116
|
+
} : {
|
|
117
|
+
camel: h.camel + e.charAt(0).toUpperCase() + e.substr(1),
|
|
118
|
+
kebab: h.kebab + e
|
|
119
|
+
}, _ = (e, t) => {
|
|
120
|
+
if (n || !t) return;
|
|
121
|
+
let i = t.split(" "), a = " " + e.className + " ";
|
|
122
|
+
for (let t = 0, n = i.length; t < n; t++) {
|
|
123
|
+
let n = i[t];
|
|
124
|
+
if (n) {
|
|
125
|
+
if (e.classList) {
|
|
126
|
+
e.classList.remove(n);
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
/* istanbul ignore next -- @preserve */
|
|
130
|
+
r(e, n) && (a = a.replace(" " + n + " ", " "));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
e.classList || (e.className = a.trim());
|
|
134
|
+
}, v = async (e, t) => {
|
|
135
|
+
if (n) return;
|
|
136
|
+
let { from: r = 0, to: i = 0, duration: a = 300 } = t || {}, o = Math.abs(r - i), s = Math.ceil(o / a * 50), c, l = new Promise((e) => {
|
|
137
|
+
c = e;
|
|
138
|
+
}), u = (t, n) => {
|
|
139
|
+
if (t === n) {
|
|
140
|
+
c();
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
let r = t + s > n ? n : t + s;
|
|
144
|
+
t > n && (r = t - s < n ? n : t - s), e === window ? window.scrollTo(r, r) : e.scrollTop = r, window.requestAnimationFrame(() => u(r, n));
|
|
145
|
+
};
|
|
146
|
+
return u(r, i), l;
|
|
147
|
+
}, y = (e, t, r) => {
|
|
148
|
+
if (!n && t) {
|
|
149
|
+
if (typeof t == "object") for (let n in t)
|
|
150
|
+
/* istanbul ignore if -- @preserve */
|
|
151
|
+
Object.hasOwnProperty.call(t, n) && y(e, n, t[n]);
|
|
152
|
+
else e.style[t] = r;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
//#endregion
|
|
156
|
+
export { s as a, d as c, _ as d, v as f, t as i, f as l, a as n, u as o, o as r, c as s, i as t, g as u };
|