tttb 0.1.6
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.
Potentially problematic release.
This version of tttb might be problematic. Click here for more details.
- package/LICENSE +21 -0
- package/README.md +38 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/components.js +36 -0
- package/dist/directives.js +16 -0
- package/dist/hooks.js +1 -0
- package/dist/icons/brands.js +554 -0
- package/dist/icons/regular.js +278 -0
- package/dist/icons/solid.js +1989 -0
- package/dist/index.js +84 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +393 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +399 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +129 -0
- package/dist/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +130 -0
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +3074 -0
- package/dist/node_modules/@fortawesome/free-brands-svg-icons/index.js +3156 -0
- package/dist/node_modules/@fortawesome/free-regular-svg-icons/index.js +1228 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +9602 -0
- package/dist/node_modules/@fortawesome/vue-fontawesome/index.es.js +487 -0
- package/dist/node_modules/gsap/CSSPlugin.js +424 -0
- package/dist/node_modules/gsap/gsap-core.js +1645 -0
- package/dist/node_modules/gsap/index.js +13 -0
- package/dist/src/components/Button/index.js +6 -0
- package/dist/src/components/Button/index.vue.js +74 -0
- package/dist/src/components/Checkbox/index.js +6 -0
- package/dist/src/components/Checkbox/index.vue.js +43 -0
- package/dist/src/components/Dialog/DialogItem.vue.js +80 -0
- package/dist/src/components/Dialog/DialogPrompt.vue.js +60 -0
- package/dist/src/components/Dialog/index.js +6 -0
- package/dist/src/components/Dialog/index.vue.js +77 -0
- package/dist/src/components/Icon/index.js +6 -0
- package/dist/src/components/Icon/index.vue.js +17 -0
- package/dist/src/components/Icon/props.js +31 -0
- package/dist/src/components/Loading/index.js +6 -0
- package/dist/src/components/Loading/index.vue.js +45 -0
- package/dist/src/components/Message/index.js +6 -0
- package/dist/src/components/Message/index.vue.js +86 -0
- package/dist/src/components/Modal/index.js +6 -0
- package/dist/src/components/Modal/index.vue.js +53 -0
- package/dist/src/components/Nav/index.js +6 -0
- package/dist/src/components/Nav/index.vue.js +87 -0
- package/dist/src/components/Pagination/index.js +6 -0
- package/dist/src/components/Pagination/index.vue.js +165 -0
- package/dist/src/components/Popconfirm/index.js +6 -0
- package/dist/src/components/Popconfirm/index.vue.js +118 -0
- package/dist/src/components/Popover/index.js +6 -0
- package/dist/src/components/Popover/index.vue.js +34 -0
- package/dist/src/components/Switch/index.js +6 -0
- package/dist/src/components/Switch/index.vue.js +80 -0
- package/dist/src/components/Table/index.js +6 -0
- package/dist/src/components/Table/index.vue.js +42 -0
- package/dist/src/components/Timer/index.js +6 -0
- package/dist/src/components/Timer/index.vue.js +30 -0
- package/dist/src/components/Tooltip/TooltipContent.vue.js +25 -0
- package/dist/src/components/Tooltip/TooltipItem.vue.js +51 -0
- package/dist/src/components/Tooltip/TooltipLayer.vue.js +41 -0
- package/dist/src/components/Tooltip/constants.js +19 -0
- package/dist/src/components/Tooltip/index.js +6 -0
- package/dist/src/components/Tooltip/index.vue.js +49 -0
- package/dist/src/components/Tooltip/manager.js +102 -0
- package/dist/src/components/Tooltip/props.js +28 -0
- package/dist/src/components/Tooltip/useTooltip.js +38 -0
- package/dist/src/components/Warn/index.js +6 -0
- package/dist/src/components/Warn/index.vue.js +24 -0
- package/dist/src/components/Watermark/index.js +6 -0
- package/dist/src/components/Watermark/index.vue.js +69 -0
- package/dist/src/components/Watermark/useWatermarkBg.js +11 -0
- package/dist/src/components/helpers.js +21 -0
- package/dist/src/directives/vDelayIn.js +86 -0
- package/dist/src/directives/vLazy.js +63 -0
- package/dist/src/directives/vLoading.js +47 -0
- package/dist/src/directives/vRipple.js +78 -0
- package/dist/src/directives/vSlideIn.js +39 -0
- package/dist/src/directives/vTextJump.js +33 -0
- package/dist/src/directives/vTooltip.js +38 -0
- package/dist/src/utils/dialog.js +41 -0
- package/dist/src/utils/localStorage.js +25 -0
- package/dist/src/utils/msg.js +21 -0
- package/dist/src/utils/tools.js +70 -0
- package/dist/tttb.css +1 -0
- package/dist/utils.js +22 -0
- package/package.json +59 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { arrow as j, computePosition as A } from "../../dom/dist/floating-ui.dom.js";
|
|
2
|
+
import { autoUpdate as W, flip as X, offset as Y, platform as Z, shift as ee } from "../../dom/dist/floating-ui.dom.js";
|
|
3
|
+
import { isNode as B, getNodeName as F } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
4
|
+
import { getOverflowAncestors as te } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
5
|
+
import { computed as r, ref as c, shallowRef as I, watch as x, getCurrentScope as U, onScopeDispose as k, shallowReadonly as o, unref as q } from "vue";
|
|
6
|
+
function z(e) {
|
|
7
|
+
return e != null && typeof e == "object" && "$el" in e;
|
|
8
|
+
}
|
|
9
|
+
function V(e) {
|
|
10
|
+
if (z(e)) {
|
|
11
|
+
const l = e.$el;
|
|
12
|
+
return B(l) && F(l) === "#comment" ? null : l;
|
|
13
|
+
}
|
|
14
|
+
return e;
|
|
15
|
+
}
|
|
16
|
+
function i(e) {
|
|
17
|
+
return typeof e == "function" ? e() : q(e);
|
|
18
|
+
}
|
|
19
|
+
function K(e) {
|
|
20
|
+
return {
|
|
21
|
+
name: "arrow",
|
|
22
|
+
options: e,
|
|
23
|
+
fn(l) {
|
|
24
|
+
const t = V(i(e.element));
|
|
25
|
+
return t == null ? {} : j({
|
|
26
|
+
element: t,
|
|
27
|
+
padding: e.padding
|
|
28
|
+
}).fn(l);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function M(e) {
|
|
33
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
34
|
+
}
|
|
35
|
+
function C(e, l) {
|
|
36
|
+
const t = M(e);
|
|
37
|
+
return Math.round(l * t) / t;
|
|
38
|
+
}
|
|
39
|
+
function L(e, l, t) {
|
|
40
|
+
t === void 0 && (t = {});
|
|
41
|
+
const D = t.whileElementsMounted, s = r(() => {
|
|
42
|
+
var n;
|
|
43
|
+
return (n = i(t.open)) != null ? n : !0;
|
|
44
|
+
}), O = r(() => i(t.middleware)), p = r(() => {
|
|
45
|
+
var n;
|
|
46
|
+
return (n = i(t.placement)) != null ? n : "bottom";
|
|
47
|
+
}), w = r(() => {
|
|
48
|
+
var n;
|
|
49
|
+
return (n = i(t.strategy)) != null ? n : "absolute";
|
|
50
|
+
}), S = r(() => {
|
|
51
|
+
var n;
|
|
52
|
+
return (n = i(t.transform)) != null ? n : !0;
|
|
53
|
+
}), f = r(() => V(e.value)), u = r(() => V(l.value)), y = c(0), h = c(0), m = c(w.value), P = c(p.value), E = I({}), g = c(!1), _ = r(() => {
|
|
54
|
+
const n = {
|
|
55
|
+
position: m.value,
|
|
56
|
+
left: "0",
|
|
57
|
+
top: "0"
|
|
58
|
+
};
|
|
59
|
+
if (!u.value)
|
|
60
|
+
return n;
|
|
61
|
+
const a = C(u.value, y.value), b = C(u.value, h.value);
|
|
62
|
+
return S.value ? {
|
|
63
|
+
...n,
|
|
64
|
+
transform: "translate(" + a + "px, " + b + "px)",
|
|
65
|
+
...M(u.value) >= 1.5 && {
|
|
66
|
+
willChange: "transform"
|
|
67
|
+
}
|
|
68
|
+
} : {
|
|
69
|
+
position: m.value,
|
|
70
|
+
left: a + "px",
|
|
71
|
+
top: b + "px"
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
let d;
|
|
75
|
+
function v() {
|
|
76
|
+
if (f.value == null || u.value == null)
|
|
77
|
+
return;
|
|
78
|
+
const n = s.value;
|
|
79
|
+
A(f.value, u.value, {
|
|
80
|
+
middleware: O.value,
|
|
81
|
+
placement: p.value,
|
|
82
|
+
strategy: w.value
|
|
83
|
+
}).then((a) => {
|
|
84
|
+
y.value = a.x, h.value = a.y, m.value = a.strategy, P.value = a.placement, E.value = a.middlewareData, g.value = n !== !1;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function R() {
|
|
88
|
+
typeof d == "function" && (d(), d = void 0);
|
|
89
|
+
}
|
|
90
|
+
function N() {
|
|
91
|
+
if (R(), D === void 0) {
|
|
92
|
+
v();
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (f.value != null && u.value != null) {
|
|
96
|
+
d = D(f.value, u.value, v);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function $() {
|
|
101
|
+
s.value || (g.value = !1);
|
|
102
|
+
}
|
|
103
|
+
return x([O, p, w, s], v, {
|
|
104
|
+
flush: "sync"
|
|
105
|
+
}), x([f, u], N, {
|
|
106
|
+
flush: "sync"
|
|
107
|
+
}), x(s, $, {
|
|
108
|
+
flush: "sync"
|
|
109
|
+
}), U() && k(R), {
|
|
110
|
+
x: o(y),
|
|
111
|
+
y: o(h),
|
|
112
|
+
strategy: o(m),
|
|
113
|
+
placement: o(P),
|
|
114
|
+
middlewareData: o(E),
|
|
115
|
+
isPositioned: o(g),
|
|
116
|
+
floatingStyles: _,
|
|
117
|
+
update: v
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
K as arrow,
|
|
122
|
+
W as autoUpdate,
|
|
123
|
+
A as computePosition,
|
|
124
|
+
X as flip,
|
|
125
|
+
te as getOverflowAncestors,
|
|
126
|
+
Y as offset,
|
|
127
|
+
Z as platform,
|
|
128
|
+
ee as shift,
|
|
129
|
+
L as useFloating
|
|
130
|
+
};
|