@opentinyvue/vue-guide 2.22.0 → 2.23.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.
Files changed (3) hide show
  1. package/lib/index.js +1 -1
  2. package/lib/pc.js +213 -228
  3. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -72,7 +72,7 @@ var Guide = defineComponent({
72
72
  });
73
73
  }
74
74
  });
75
- var version = "2.22.0";
75
+ var version = "2.23.0";
76
76
  Guide.model = {
77
77
  prop: "modelValue",
78
78
  event: "update:modelValue"
package/lib/pc.js CHANGED
@@ -3,243 +3,268 @@ import { defineComponent, props, setup } from '@opentinyvue/vue-common';
3
3
  import '@opentinyvue/vue-theme/guide/index.css';
4
4
  import Shepherd from 'shepherd.js';
5
5
 
6
+ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
7
+ var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
8
+ if (render) {
9
+ options.render = render;
10
+ options.staticRenderFns = staticRenderFns;
11
+ options._compiled = true;
12
+ }
13
+ var hook;
14
+ if (injectStyles) {
15
+ hook = injectStyles;
16
+ }
17
+ if (hook) {
18
+ if (options.functional) {
19
+ options._injectStyles = hook;
20
+ var originalRender = options.render;
21
+ options.render = function renderWithStyleInjection(h, context) {
22
+ hook.call(context);
23
+ return originalRender(h, context);
24
+ };
25
+ } else {
26
+ var existing = options.beforeCreate;
27
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
28
+ }
29
+ }
30
+ return {
31
+ exports: scriptExports,
32
+ options
33
+ };
34
+ }
35
+
6
36
  function _regeneratorRuntime() {
7
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
37
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
8
38
  _regeneratorRuntime = function _regeneratorRuntime2() {
9
- return e;
39
+ return r;
10
40
  };
11
- var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function(t2, e2, r2) {
12
- t2[e2] = r2.value;
13
- }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag";
14
- function define(t2, e2, r2) {
15
- return Object.defineProperty(t2, e2, { value: r2, enumerable: true, configurable: true, writable: true }), t2[e2];
41
+ var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag";
42
+ function c(t2, r2, e2, n2) {
43
+ return Object.defineProperty(t2, r2, { value: e2, enumerable: !n2, configurable: !n2, writable: !n2 });
16
44
  }
17
45
  try {
18
- define({}, "");
46
+ c({}, "");
19
47
  } catch (t2) {
20
- define = function define2(t3, e2, r2) {
21
- return t3[e2] = r2;
48
+ c = function c2(t3, r2, e2) {
49
+ return t3[r2] = e2;
22
50
  };
23
51
  }
24
- function wrap(t2, e2, r2, n2) {
25
- var i2 = e2 && e2.prototype instanceof Generator ? e2 : Generator, a2 = Object.create(i2.prototype), c2 = new Context(n2 || []);
26
- return o(a2, "_invoke", { value: makeInvokeMethod(t2, r2, c2) }), a2;
52
+ function h(r2, e2, n2, o2) {
53
+ var i2 = e2 && e2.prototype instanceof Generator ? e2 : Generator, a2 = Object.create(i2.prototype);
54
+ return c(a2, "_invoke", /* @__PURE__ */ function(r3, e3, n3) {
55
+ var o3 = 1;
56
+ return function(i3, a3) {
57
+ if (3 === o3) throw Error("Generator is already running");
58
+ if (4 === o3) {
59
+ if ("throw" === i3) throw a3;
60
+ return { value: t, done: true };
61
+ }
62
+ for (n3.method = i3, n3.arg = a3; ; ) {
63
+ var u2 = n3.delegate;
64
+ if (u2) {
65
+ var c2 = d(u2, n3);
66
+ if (c2) {
67
+ if (c2 === f) continue;
68
+ return c2;
69
+ }
70
+ }
71
+ if ("next" === n3.method) n3.sent = n3._sent = n3.arg;
72
+ else if ("throw" === n3.method) {
73
+ if (1 === o3) throw o3 = 4, n3.arg;
74
+ n3.dispatchException(n3.arg);
75
+ } else "return" === n3.method && n3.abrupt("return", n3.arg);
76
+ o3 = 3;
77
+ var h2 = s(r3, e3, n3);
78
+ if ("normal" === h2.type) {
79
+ if (o3 = n3.done ? 4 : 2, h2.arg === f) continue;
80
+ return { value: h2.arg, done: n3.done };
81
+ }
82
+ "throw" === h2.type && (o3 = 4, n3.method = "throw", n3.arg = h2.arg);
83
+ }
84
+ };
85
+ }(r2, n2, new Context(o2 || [])), true), a2;
27
86
  }
28
- function tryCatch(t2, e2, r2) {
87
+ function s(t2, r2, e2) {
29
88
  try {
30
- return { type: "normal", arg: t2.call(e2, r2) };
89
+ return { type: "normal", arg: t2.call(r2, e2) };
31
90
  } catch (t3) {
32
91
  return { type: "throw", arg: t3 };
33
92
  }
34
93
  }
35
- e.wrap = wrap;
36
- var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {};
94
+ r.wrap = h;
95
+ var f = {};
37
96
  function Generator() {
38
97
  }
39
98
  function GeneratorFunction() {
40
99
  }
41
100
  function GeneratorFunctionPrototype() {
42
101
  }
43
- var p = {};
44
- define(p, a, function() {
102
+ var l = {};
103
+ c(l, i, function() {
45
104
  return this;
46
105
  });
47
- var d = Object.getPrototypeOf, v = d && d(d(values([])));
48
- v && v !== r && n.call(v, a) && (p = v);
49
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
50
- function defineIteratorMethods(t2) {
51
- ["next", "throw", "return"].forEach(function(e2) {
52
- define(t2, e2, function(t3) {
53
- return this._invoke(e2, t3);
106
+ var p = Object.getPrototypeOf, y = p && p(p(x([])));
107
+ y && y !== e && n.call(y, i) && (l = y);
108
+ var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
109
+ function g(t2) {
110
+ ["next", "throw", "return"].forEach(function(r2) {
111
+ c(t2, r2, function(t3) {
112
+ return this._invoke(r2, t3);
54
113
  });
55
114
  });
56
115
  }
57
- function AsyncIterator(t2, e2) {
58
- function invoke(r3, o2, i2, a2) {
59
- var c2 = tryCatch(t2[r3], t2, o2);
116
+ function AsyncIterator(t2, r2) {
117
+ function e2(o3, i2, a2, u2) {
118
+ var c2 = s(t2[o3], t2, i2);
60
119
  if ("throw" !== c2.type) {
61
- var u2 = c2.arg, h2 = u2.value;
62
- return h2 && "object" == typeof h2 && n.call(h2, "__await") ? e2.resolve(h2.__await).then(function(t3) {
63
- invoke("next", t3, i2, a2);
120
+ var h2 = c2.arg, f2 = h2.value;
121
+ return f2 && "object" == typeof f2 && n.call(f2, "__await") ? r2.resolve(f2.__await).then(function(t3) {
122
+ e2("next", t3, a2, u2);
64
123
  }, function(t3) {
65
- invoke("throw", t3, i2, a2);
66
- }) : e2.resolve(h2).then(function(t3) {
67
- u2.value = t3, i2(u2);
124
+ e2("throw", t3, a2, u2);
125
+ }) : r2.resolve(f2).then(function(t3) {
126
+ h2.value = t3, a2(h2);
68
127
  }, function(t3) {
69
- return invoke("throw", t3, i2, a2);
128
+ return e2("throw", t3, a2, u2);
70
129
  });
71
130
  }
72
- a2(c2.arg);
131
+ u2(c2.arg);
73
132
  }
74
- var r2;
75
- o(this, "_invoke", { value: function value(t3, n2) {
76
- function callInvokeWithMethodAndArg() {
77
- return new e2(function(e3, r3) {
78
- invoke(t3, n2, e3, r3);
133
+ var o2;
134
+ c(this, "_invoke", function(t3, n2) {
135
+ function i2() {
136
+ return new r2(function(r3, o3) {
137
+ e2(t3, n2, r3, o3);
79
138
  });
80
139
  }
81
- return r2 = r2 ? r2.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
82
- } });
140
+ return o2 = o2 ? o2.then(i2, i2) : i2();
141
+ }, true);
83
142
  }
84
- function makeInvokeMethod(e2, r2, n2) {
85
- var o2 = h;
86
- return function(i2, a2) {
87
- if (o2 === f) throw Error("Generator is already running");
88
- if (o2 === s) {
89
- if ("throw" === i2) throw a2;
90
- return { value: t, done: true };
91
- }
92
- for (n2.method = i2, n2.arg = a2; ; ) {
93
- var c2 = n2.delegate;
94
- if (c2) {
95
- var u2 = maybeInvokeDelegate(c2, n2);
96
- if (u2) {
97
- if (u2 === y) continue;
98
- return u2;
99
- }
100
- }
101
- if ("next" === n2.method) n2.sent = n2._sent = n2.arg;
102
- else if ("throw" === n2.method) {
103
- if (o2 === h) throw o2 = s, n2.arg;
104
- n2.dispatchException(n2.arg);
105
- } else "return" === n2.method && n2.abrupt("return", n2.arg);
106
- o2 = f;
107
- var p2 = tryCatch(e2, r2, n2);
108
- if ("normal" === p2.type) {
109
- if (o2 = n2.done ? s : l, p2.arg === y) continue;
110
- return { value: p2.arg, done: n2.done };
111
- }
112
- "throw" === p2.type && (o2 = s, n2.method = "throw", n2.arg = p2.arg);
113
- }
114
- };
115
- }
116
- function maybeInvokeDelegate(e2, r2) {
117
- var n2 = r2.method, o2 = e2.iterator[n2];
118
- if (o2 === t) return r2.delegate = null, "throw" === n2 && e2.iterator.return && (r2.method = "return", r2.arg = t, maybeInvokeDelegate(e2, r2), "throw" === r2.method) || "return" !== n2 && (r2.method = "throw", r2.arg = new TypeError("The iterator does not provide a '" + n2 + "' method")), y;
119
- var i2 = tryCatch(o2, e2.iterator, r2.arg);
120
- if ("throw" === i2.type) return r2.method = "throw", r2.arg = i2.arg, r2.delegate = null, y;
143
+ function d(r2, e2) {
144
+ var n2 = e2.method, o2 = r2.i[n2];
145
+ if (o2 === t) return e2.delegate = null, "throw" === n2 && r2.i.return && (e2.method = "return", e2.arg = t, d(r2, e2), "throw" === e2.method) || "return" !== n2 && (e2.method = "throw", e2.arg = new TypeError("The iterator does not provide a '" + n2 + "' method")), f;
146
+ var i2 = s(o2, r2.i, e2.arg);
147
+ if ("throw" === i2.type) return e2.method = "throw", e2.arg = i2.arg, e2.delegate = null, f;
121
148
  var a2 = i2.arg;
122
- return a2 ? a2.done ? (r2[e2.resultName] = a2.value, r2.next = e2.nextLoc, "return" !== r2.method && (r2.method = "next", r2.arg = t), r2.delegate = null, y) : a2 : (r2.method = "throw", r2.arg = new TypeError("iterator result is not an object"), r2.delegate = null, y);
149
+ return a2 ? a2.done ? (e2[r2.r] = a2.value, e2.next = r2.n, "return" !== e2.method && (e2.method = "next", e2.arg = t), e2.delegate = null, f) : a2 : (e2.method = "throw", e2.arg = new TypeError("iterator result is not an object"), e2.delegate = null, f);
123
150
  }
124
- function pushTryEntry(t2) {
125
- var e2 = { tryLoc: t2[0] };
126
- 1 in t2 && (e2.catchLoc = t2[1]), 2 in t2 && (e2.finallyLoc = t2[2], e2.afterLoc = t2[3]), this.tryEntries.push(e2);
151
+ function w(t2) {
152
+ this.tryEntries.push(t2);
127
153
  }
128
- function resetTryEntry(t2) {
129
- var e2 = t2.completion || {};
130
- e2.type = "normal", delete e2.arg, t2.completion = e2;
154
+ function m(r2) {
155
+ var e2 = r2[4] || {};
156
+ e2.type = "normal", e2.arg = t, r2[4] = e2;
131
157
  }
132
158
  function Context(t2) {
133
- this.tryEntries = [{ tryLoc: "root" }], t2.forEach(pushTryEntry, this), this.reset(true);
159
+ this.tryEntries = [[-1]], t2.forEach(w, this), this.reset(true);
134
160
  }
135
- function values(e2) {
136
- if (e2 || "" === e2) {
137
- var r2 = e2[a];
138
- if (r2) return r2.call(e2);
139
- if ("function" == typeof e2.next) return e2;
140
- if (!isNaN(e2.length)) {
141
- var o2 = -1, i2 = function next() {
142
- for (; ++o2 < e2.length; ) if (n.call(e2, o2)) return next.value = e2[o2], next.done = false, next;
143
- return next.value = t, next.done = true, next;
161
+ function x(r2) {
162
+ if (null != r2) {
163
+ var e2 = r2[i];
164
+ if (e2) return e2.call(r2);
165
+ if ("function" == typeof r2.next) return r2;
166
+ if (!isNaN(r2.length)) {
167
+ var o2 = -1, a2 = function e3() {
168
+ for (; ++o2 < r2.length; ) if (n.call(r2, o2)) return e3.value = r2[o2], e3.done = false, e3;
169
+ return e3.value = t, e3.done = true, e3;
144
170
  };
145
- return i2.next = i2;
171
+ return a2.next = a2;
146
172
  }
147
173
  }
148
- throw new TypeError(typeof e2 + " is not iterable");
174
+ throw new TypeError(typeof r2 + " is not iterable");
149
175
  }
150
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: true }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: true }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function(t2) {
151
- var e2 = "function" == typeof t2 && t2.constructor;
152
- return !!e2 && (e2 === GeneratorFunction || "GeneratorFunction" === (e2.displayName || e2.name));
153
- }, e.mark = function(t2) {
154
- return Object.setPrototypeOf ? Object.setPrototypeOf(t2, GeneratorFunctionPrototype) : (t2.__proto__ = GeneratorFunctionPrototype, define(t2, u, "GeneratorFunction")), t2.prototype = Object.create(g), t2;
155
- }, e.awrap = function(t2) {
176
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function(t2) {
177
+ var r2 = "function" == typeof t2 && t2.constructor;
178
+ return !!r2 && (r2 === GeneratorFunction || "GeneratorFunction" === (r2.displayName || r2.name));
179
+ }, r.mark = function(t2) {
180
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t2, GeneratorFunctionPrototype) : (t2.__proto__ = GeneratorFunctionPrototype, c(t2, u, "GeneratorFunction")), t2.prototype = Object.create(v), t2;
181
+ }, r.awrap = function(t2) {
156
182
  return { __await: t2 };
157
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function() {
183
+ }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function() {
158
184
  return this;
159
- }), e.AsyncIterator = AsyncIterator, e.async = function(t2, r2, n2, o2, i2) {
185
+ }), r.AsyncIterator = AsyncIterator, r.async = function(t2, e2, n2, o2, i2) {
160
186
  void 0 === i2 && (i2 = Promise);
161
- var a2 = new AsyncIterator(wrap(t2, r2, n2, o2), i2);
162
- return e.isGeneratorFunction(r2) ? a2 : a2.next().then(function(t3) {
187
+ var a2 = new AsyncIterator(h(t2, e2, n2, o2), i2);
188
+ return r.isGeneratorFunction(e2) ? a2 : a2.next().then(function(t3) {
163
189
  return t3.done ? t3.value : a2.next();
164
190
  });
165
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function() {
191
+ }, g(v), c(v, u, "Generator"), c(v, i, function() {
166
192
  return this;
167
- }), define(g, "toString", function() {
193
+ }), c(v, "toString", function() {
168
194
  return "[object Generator]";
169
- }), e.keys = function(t2) {
170
- var e2 = Object(t2), r2 = [];
171
- for (var n2 in e2) r2.push(n2);
172
- return r2.reverse(), function next() {
173
- for (; r2.length; ) {
174
- var t3 = r2.pop();
175
- if (t3 in e2) return next.value = t3, next.done = false, next;
176
- }
177
- return next.done = true, next;
195
+ }), r.keys = function(t2) {
196
+ var r2 = Object(t2), e2 = [];
197
+ for (var n2 in r2) e2.unshift(n2);
198
+ return function t3() {
199
+ for (; e2.length; ) if ((n2 = e2.pop()) in r2) return t3.value = n2, t3.done = false, t3;
200
+ return t3.done = true, t3;
178
201
  };
179
- }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e2) {
180
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e2) for (var r2 in this) "t" === r2.charAt(0) && n.call(this, r2) && !isNaN(+r2.slice(1)) && (this[r2] = t);
202
+ }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r2) {
203
+ if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r2) for (var e2 in this) "t" === e2.charAt(0) && n.call(this, e2) && !isNaN(+e2.slice(1)) && (this[e2] = t);
181
204
  }, stop: function stop() {
182
205
  this.done = true;
183
- var t2 = this.tryEntries[0].completion;
206
+ var t2 = this.tryEntries[0][4];
184
207
  if ("throw" === t2.type) throw t2.arg;
185
208
  return this.rval;
186
- }, dispatchException: function dispatchException(e2) {
187
- if (this.done) throw e2;
188
- var r2 = this;
189
- function handle(n2, o3) {
190
- return a2.type = "throw", a2.arg = e2, r2.next = n2, o3 && (r2.method = "next", r2.arg = t), !!o3;
209
+ }, dispatchException: function dispatchException(r2) {
210
+ if (this.done) throw r2;
211
+ var e2 = this;
212
+ function n2(t2) {
213
+ a2.type = "throw", a2.arg = r2, e2.next = t2;
191
214
  }
192
- for (var o2 = this.tryEntries.length - 1; o2 >= 0; --o2) {
193
- var i2 = this.tryEntries[o2], a2 = i2.completion;
194
- if ("root" === i2.tryLoc) return handle("end");
195
- if (i2.tryLoc <= this.prev) {
196
- var c2 = n.call(i2, "catchLoc"), u2 = n.call(i2, "finallyLoc");
197
- if (c2 && u2) {
198
- if (this.prev < i2.catchLoc) return handle(i2.catchLoc, true);
199
- if (this.prev < i2.finallyLoc) return handle(i2.finallyLoc);
200
- } else if (c2) {
201
- if (this.prev < i2.catchLoc) return handle(i2.catchLoc, true);
202
- } else {
203
- if (!u2) throw Error("try statement without catch or finally");
204
- if (this.prev < i2.finallyLoc) return handle(i2.finallyLoc);
205
- }
215
+ for (var o2 = e2.tryEntries.length - 1; o2 >= 0; --o2) {
216
+ var i2 = this.tryEntries[o2], a2 = i2[4], u2 = this.prev, c2 = i2[1], h2 = i2[2];
217
+ if (-1 === i2[0]) return n2("end"), false;
218
+ if (!c2 && !h2) throw Error("try statement without catch or finally");
219
+ if (null != i2[0] && i2[0] <= u2) {
220
+ if (u2 < c2) return this.method = "next", this.arg = t, n2(c2), true;
221
+ if (u2 < h2) return n2(h2), false;
206
222
  }
207
223
  }
208
- }, abrupt: function abrupt(t2, e2) {
209
- for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) {
210
- var o2 = this.tryEntries[r2];
211
- if (o2.tryLoc <= this.prev && n.call(o2, "finallyLoc") && this.prev < o2.finallyLoc) {
212
- var i2 = o2;
224
+ }, abrupt: function abrupt(t2, r2) {
225
+ for (var e2 = this.tryEntries.length - 1; e2 >= 0; --e2) {
226
+ var n2 = this.tryEntries[e2];
227
+ if (n2[0] > -1 && n2[0] <= this.prev && this.prev < n2[2]) {
228
+ var o2 = n2;
213
229
  break;
214
230
  }
215
231
  }
216
- i2 && ("break" === t2 || "continue" === t2) && i2.tryLoc <= e2 && e2 <= i2.finallyLoc && (i2 = null);
217
- var a2 = i2 ? i2.completion : {};
218
- return a2.type = t2, a2.arg = e2, i2 ? (this.method = "next", this.next = i2.finallyLoc, y) : this.complete(a2);
219
- }, complete: function complete(t2, e2) {
232
+ o2 && ("break" === t2 || "continue" === t2) && o2[0] <= r2 && r2 <= o2[2] && (o2 = null);
233
+ var i2 = o2 ? o2[4] : {};
234
+ return i2.type = t2, i2.arg = r2, o2 ? (this.method = "next", this.next = o2[2], f) : this.complete(i2);
235
+ }, complete: function complete(t2, r2) {
220
236
  if ("throw" === t2.type) throw t2.arg;
221
- return "break" === t2.type || "continue" === t2.type ? this.next = t2.arg : "return" === t2.type ? (this.rval = this.arg = t2.arg, this.method = "return", this.next = "end") : "normal" === t2.type && e2 && (this.next = e2), y;
237
+ return "break" === t2.type || "continue" === t2.type ? this.next = t2.arg : "return" === t2.type ? (this.rval = this.arg = t2.arg, this.method = "return", this.next = "end") : "normal" === t2.type && r2 && (this.next = r2), f;
222
238
  }, finish: function finish(t2) {
223
- for (var e2 = this.tryEntries.length - 1; e2 >= 0; --e2) {
224
- var r2 = this.tryEntries[e2];
225
- if (r2.finallyLoc === t2) return this.complete(r2.completion, r2.afterLoc), resetTryEntry(r2), y;
239
+ for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) {
240
+ var e2 = this.tryEntries[r2];
241
+ if (e2[2] === t2) return this.complete(e2[4], e2[3]), m(e2), f;
226
242
  }
227
243
  }, catch: function _catch(t2) {
228
- for (var e2 = this.tryEntries.length - 1; e2 >= 0; --e2) {
229
- var r2 = this.tryEntries[e2];
230
- if (r2.tryLoc === t2) {
231
- var n2 = r2.completion;
244
+ for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) {
245
+ var e2 = this.tryEntries[r2];
246
+ if (e2[0] === t2) {
247
+ var n2 = e2[4];
232
248
  if ("throw" === n2.type) {
233
249
  var o2 = n2.arg;
234
- resetTryEntry(r2);
250
+ m(e2);
235
251
  }
236
252
  return o2;
237
253
  }
238
254
  }
239
255
  throw Error("illegal catch attempt");
240
- }, delegateYield: function delegateYield(e2, r2, n2) {
241
- return this.delegate = { iterator: values(e2), resultName: r2, nextLoc: n2 }, "next" === this.method && (this.arg = t), y;
242
- } }, e;
256
+ }, delegateYield: function delegateYield(r2, e2, n2) {
257
+ return this.delegate = { i: x(r2), r: e2, n: n2 }, "next" === this.method && (this.arg = t), f;
258
+ } }, r;
259
+ }
260
+ function _extends() {
261
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
262
+ for (var e = 1; e < arguments.length; e++) {
263
+ var t = arguments[e];
264
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
265
+ }
266
+ return n;
267
+ }, _extends.apply(null, arguments);
243
268
  }
244
269
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
245
270
  try {
@@ -264,15 +289,6 @@ function _asyncToGenerator(n) {
264
289
  });
265
290
  };
266
291
  }
267
- function _extends() {
268
- return _extends = Object.assign ? Object.assign.bind() : function(n) {
269
- for (var e = 1; e < arguments.length; e++) {
270
- var t = arguments[e];
271
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
272
- }
273
- return n;
274
- }, _extends.apply(null, arguments);
275
- }
276
292
  function evaluate(value, param) {
277
293
  return typeof value === "function" ? value(param) : value;
278
294
  }
@@ -285,27 +301,27 @@ function getAlignment(placement) {
285
301
  function getSideAxis(placement) {
286
302
  return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
287
303
  }
288
- function convertValueToCoords(_x6, _x7) {
304
+ function convertValueToCoords(_x, _x2) {
289
305
  return _convertValueToCoords.apply(this, arguments);
290
306
  }
291
307
  function _convertValueToCoords() {
292
- _convertValueToCoords = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee9(state, options) {
293
- var placement, platform2, elements, rtl, side, alignment, isVertical, mainAxisMulti, crossAxisMulti, rawValue, _ref7, mainAxis, crossAxis, alignmentAxis;
294
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
295
- while (1) switch (_context9.prev = _context9.next) {
308
+ _convertValueToCoords = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2(state, options) {
309
+ var placement, platform, elements, rtl, side, alignment, isVertical, mainAxisMulti, crossAxisMulti, rawValue, _ref, mainAxis, crossAxis, alignmentAxis;
310
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
311
+ while (1) switch (_context2.prev = _context2.next) {
296
312
  case 0:
297
- placement = state.placement, platform2 = state.platform, elements = state.elements;
298
- _context9.next = 3;
299
- return platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating);
313
+ placement = state.placement, platform = state.platform, elements = state.elements;
314
+ _context2.next = 3;
315
+ return platform.isRTL == null ? void 0 : platform.isRTL(elements.floating);
300
316
  case 3:
301
- rtl = _context9.sent;
317
+ rtl = _context2.sent;
302
318
  side = getSide(placement);
303
319
  alignment = getAlignment(placement);
304
320
  isVertical = getSideAxis(placement) === "y";
305
321
  mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
306
322
  crossAxisMulti = rtl && isVertical ? -1 : 1;
307
323
  rawValue = evaluate(options, state);
308
- _ref7 = typeof rawValue === "number" ? {
324
+ _ref = typeof rawValue === "number" ? {
309
325
  mainAxis: rawValue,
310
326
  crossAxis: 0,
311
327
  alignmentAxis: null
@@ -313,11 +329,11 @@ function _convertValueToCoords() {
313
329
  mainAxis: rawValue.mainAxis || 0,
314
330
  crossAxis: rawValue.crossAxis || 0,
315
331
  alignmentAxis: rawValue.alignmentAxis
316
- }, mainAxis = _ref7.mainAxis, crossAxis = _ref7.crossAxis, alignmentAxis = _ref7.alignmentAxis;
332
+ }, mainAxis = _ref.mainAxis, crossAxis = _ref.crossAxis, alignmentAxis = _ref.alignmentAxis;
317
333
  if (alignment && typeof alignmentAxis === "number") {
318
334
  crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
319
335
  }
320
- return _context9.abrupt("return", isVertical ? {
336
+ return _context2.abrupt("return", isVertical ? {
321
337
  x: crossAxis * crossAxisMulti,
322
338
  y: mainAxis * mainAxisMulti
323
339
  } : {
@@ -326,9 +342,9 @@ function _convertValueToCoords() {
326
342
  });
327
343
  case 13:
328
344
  case "end":
329
- return _context9.stop();
345
+ return _context2.stop();
330
346
  }
331
- }, _callee9);
347
+ }, _callee2);
332
348
  }));
333
349
  return _convertValueToCoords.apply(this, arguments);
334
350
  }
@@ -340,23 +356,23 @@ var offset$1 = function offset$12(options) {
340
356
  name: "offset",
341
357
  options,
342
358
  fn: function fn(state) {
343
- return _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee5() {
359
+ return _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee() {
344
360
  var _middlewareData$offse, _middlewareData$arrow, x, y, placement, middlewareData, diffCoords;
345
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
346
- while (1) switch (_context5.prev = _context5.next) {
361
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
362
+ while (1) switch (_context.prev = _context.next) {
347
363
  case 0:
348
364
  x = state.x, y = state.y, placement = state.placement, middlewareData = state.middlewareData;
349
- _context5.next = 3;
365
+ _context.next = 3;
350
366
  return convertValueToCoords(state, options);
351
367
  case 3:
352
- diffCoords = _context5.sent;
368
+ diffCoords = _context.sent;
353
369
  if (!(placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset)) {
354
- _context5.next = 6;
370
+ _context.next = 6;
355
371
  break;
356
372
  }
357
- return _context5.abrupt("return", {});
373
+ return _context.abrupt("return", {});
358
374
  case 6:
359
- return _context5.abrupt("return", {
375
+ return _context.abrupt("return", {
360
376
  x: x + diffCoords.x,
361
377
  y: y + diffCoords.y,
362
378
  data: _extends({}, diffCoords, {
@@ -365,45 +381,14 @@ var offset$1 = function offset$12(options) {
365
381
  });
366
382
  case 7:
367
383
  case "end":
368
- return _context5.stop();
384
+ return _context.stop();
369
385
  }
370
- }, _callee5);
386
+ }, _callee);
371
387
  }))();
372
388
  }
373
389
  };
374
390
  };
375
391
  var offset = offset$1;
376
-
377
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
378
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
379
- if (render) {
380
- options.render = render;
381
- options.staticRenderFns = staticRenderFns;
382
- options._compiled = true;
383
- }
384
- var hook;
385
- if (injectStyles) {
386
- hook = injectStyles;
387
- }
388
- if (hook) {
389
- if (options.functional) {
390
- options._injectStyles = hook;
391
- var originalRender = options.render;
392
- options.render = function renderWithStyleInjection(h, context) {
393
- hook.call(context);
394
- return originalRender(h, context);
395
- };
396
- } else {
397
- var existing = options.beforeCreate;
398
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
399
- }
400
- }
401
- return {
402
- exports: scriptExports,
403
- options
404
- };
405
- }
406
-
407
392
  var __vue2_script = defineComponent({
408
393
  props: [].concat(props, ["showStep", "domData", "mainAxis", "crossAxis", "alignmentAxis", "popPosition", "modalOverlayOpeningPadding", "modalOverlayOpeningRadius", "arrow", "lightClass", "width", "height"]),
409
394
  setup: function setup$1(props2, context) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-guide",
3
3
  "type": "module",
4
- "version": "2.22.0",
4
+ "version": "2.23.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": "~2.22.0",
13
- "@opentinyvue/vue-common": "~2.22.0",
14
- "@opentinyvue/vue-renderless": "~3.22.0",
15
- "@opentinyvue/vue-theme": "~3.22.0",
12
+ "@opentinyvue/utils": "~3.23.0",
13
+ "@opentinyvue/vue-common": "~2.23.0",
14
+ "@opentinyvue/vue-renderless": "~3.23.0",
15
+ "@opentinyvue/vue-theme": "~3.23.0",
16
16
  "shepherd.js": "11.1.1"
17
17
  },
18
18
  "types": "index.d.ts"