@opentinyvue/vue-guide 3.24.0 → 3.26.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/lib/pc.js +12 -13
- package/package.json +5 -5
package/lib/pc.js
CHANGED
|
@@ -42,14 +42,14 @@ function _regenerator() {
|
|
|
42
42
|
var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag";
|
|
43
43
|
function i(r2, n2, o2, i2) {
|
|
44
44
|
var c2 = n2 && n2.prototype instanceof Generator ? n2 : Generator, u2 = Object.create(c2.prototype);
|
|
45
|
-
return _regeneratorDefine2(u2, "_invoke", function(r3, n3, o3) {
|
|
45
|
+
return _regeneratorDefine2(u2, "_invoke", (function(r3, n3, o3) {
|
|
46
46
|
var i3, c3, u3, f2 = 0, p = o3 || [], y = false, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d2(t2, r4) {
|
|
47
47
|
return i3 = t2, c3 = 0, u3 = e, G.n = r4, a;
|
|
48
48
|
} };
|
|
49
49
|
function d(r4, n4) {
|
|
50
50
|
for (c3 = r4, u3 = n4, t = 0; !y && f2 && !o4 && t < p.length; t++) {
|
|
51
51
|
var o4, i4 = p[t], d2 = G.p, l = i4[2];
|
|
52
|
-
r4 > 3 ? (o4 = l === n4) && (
|
|
52
|
+
r4 > 3 ? (o4 = l === n4) && (u3 = i4[(c3 = i4[4]) ? 5 : (c3 = 3, 3)], i4[4] = i4[5] = e) : i4[0] <= d2 && ((o4 = r4 < 2 && d2 < i4[1]) ? (c3 = 0, G.v = n4, G.n = i4[1]) : d2 < l && (o4 = r4 < 3 || i4[0] > n4 || n4 > l) && (i4[4] = r4, i4[5] = n4, G.n = l, c3 = 0));
|
|
53
53
|
}
|
|
54
54
|
if (o4 || r4 > 1) return a;
|
|
55
55
|
throw y = true, n4;
|
|
@@ -75,7 +75,7 @@ function _regenerator() {
|
|
|
75
75
|
}
|
|
76
76
|
return { value: t, done: y };
|
|
77
77
|
};
|
|
78
|
-
}(r2, o2, i2), true), u2;
|
|
78
|
+
})(r2, o2, i2), true), u2;
|
|
79
79
|
}
|
|
80
80
|
var a = {};
|
|
81
81
|
function Generator() {
|
|
@@ -107,15 +107,12 @@ function _regeneratorDefine2(e, r, n, t) {
|
|
|
107
107
|
i = 0;
|
|
108
108
|
}
|
|
109
109
|
_regeneratorDefine2 = function _regeneratorDefine(e2, r2, n2, t2) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return this._invoke(r3, n3, e3);
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
o("next", 0), o("throw", 1), o("return", 2);
|
|
110
|
+
function o(r3, n3) {
|
|
111
|
+
_regeneratorDefine2(e2, r3, function(e3) {
|
|
112
|
+
return this._invoke(r3, n3, e3);
|
|
113
|
+
});
|
|
118
114
|
}
|
|
115
|
+
r2 ? i ? i(e2, r2, { value: n2, enumerable: !t2, configurable: !t2, writable: !t2 }) : e2[r2] = n2 : (o("next", 0), o("throw", 1), o("return", 2));
|
|
119
116
|
}, _regeneratorDefine2(e, r, n, t);
|
|
120
117
|
}
|
|
121
118
|
function _extends() {
|
|
@@ -159,9 +156,11 @@ function getSide(placement) {
|
|
|
159
156
|
function getAlignment(placement) {
|
|
160
157
|
return placement.split("-")[1];
|
|
161
158
|
}
|
|
159
|
+
var yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
162
160
|
function getSideAxis(placement) {
|
|
163
|
-
return
|
|
161
|
+
return yAxisSides.has(getSide(placement)) ? "y" : "x";
|
|
164
162
|
}
|
|
163
|
+
var originSides = /* @__PURE__ */ new Set(["left", "top"]);
|
|
165
164
|
function convertValueToCoords(_x, _x2) {
|
|
166
165
|
return _convertValueToCoords.apply(this, arguments);
|
|
167
166
|
}
|
|
@@ -179,7 +178,7 @@ function _convertValueToCoords() {
|
|
|
179
178
|
side = getSide(placement);
|
|
180
179
|
alignment = getAlignment(placement);
|
|
181
180
|
isVertical = getSideAxis(placement) === "y";
|
|
182
|
-
mainAxisMulti =
|
|
181
|
+
mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
183
182
|
crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
184
183
|
rawValue = evaluate(options, state);
|
|
185
184
|
_ref = typeof rawValue === "number" ? {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-guide",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.26.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"module": "./lib/index.js",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@floating-ui/dom": "^1.0.10",
|
|
12
|
-
"@opentinyvue/utils": "~3.
|
|
13
|
-
"@opentinyvue/vue-common": "~3.
|
|
14
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
15
|
-
"@opentinyvue/vue-theme": "~3.
|
|
12
|
+
"@opentinyvue/utils": "~3.26.0",
|
|
13
|
+
"@opentinyvue/vue-common": "~3.26.0",
|
|
14
|
+
"@opentinyvue/vue-renderless": "~3.26.0",
|
|
15
|
+
"@opentinyvue/vue-theme": "~3.26.0",
|
|
16
16
|
"shepherd.js": "11.1.1"
|
|
17
17
|
},
|
|
18
18
|
"types": "index.d.ts"
|