@opentinyvue/vue-guide 3.22.0 → 3.22.1

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 +66 -67
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -72,7 +72,7 @@ var Guide = defineComponent({
72
72
  });
73
73
  }
74
74
  });
75
- var version = "3.22.0";
75
+ var version = "3.undefined";
76
76
  Guide.model = {
77
77
  prop: "modelValue",
78
78
  event: "update:modelValue"
package/lib/pc.js CHANGED
@@ -4,6 +4,39 @@ import '@opentinyvue/vue-theme/guide/index.css';
4
4
  import Shepherd from 'shepherd.js';
5
5
  import { openBlock, createElementBlock, renderSlot } from 'vue';
6
6
 
7
+ function _createForOfIteratorHelperLoose(r, e) {
8
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
9
+ if (t) return (t = t.call(r)).next.bind(t);
10
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
11
+ t && (r = t);
12
+ var o = 0;
13
+ return function() {
14
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
15
+ };
16
+ }
17
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
18
+ }
19
+ function _unsupportedIterableToArray(r, a) {
20
+ if (r) {
21
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
22
+ var t = {}.toString.call(r).slice(8, -1);
23
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
24
+ }
25
+ }
26
+ function _arrayLikeToArray(r, a) {
27
+ (null == a || a > r.length) && (a = r.length);
28
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
29
+ return n;
30
+ }
31
+ var _export_sfc = function _export_sfc2(sfc, props) {
32
+ var target = sfc.__vccOpts || sfc;
33
+ for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
34
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
35
+ target[key] = val;
36
+ }
37
+ return target;
38
+ };
39
+
7
40
  function _regeneratorRuntime() {
8
41
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
9
42
  _regeneratorRuntime = function _regeneratorRuntime2() {
@@ -242,6 +275,15 @@ function _regeneratorRuntime() {
242
275
  return this.delegate = { iterator: values(e2), resultName: r2, nextLoc: n2 }, "next" === this.method && (this.arg = t), y;
243
276
  } }, e;
244
277
  }
278
+ function _extends() {
279
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
280
+ for (var e = 1; e < arguments.length; e++) {
281
+ var t = arguments[e];
282
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
283
+ }
284
+ return n;
285
+ }, _extends.apply(null, arguments);
286
+ }
245
287
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
246
288
  try {
247
289
  var i = n[a](c), u = i.value;
@@ -265,15 +307,6 @@ function _asyncToGenerator(n) {
265
307
  });
266
308
  };
267
309
  }
268
- function _extends() {
269
- return _extends = Object.assign ? Object.assign.bind() : function(n) {
270
- for (var e = 1; e < arguments.length; e++) {
271
- var t = arguments[e];
272
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
273
- }
274
- return n;
275
- }, _extends.apply(null, arguments);
276
- }
277
310
  function evaluate(value, param) {
278
311
  return typeof value === "function" ? value(param) : value;
279
312
  }
@@ -286,27 +319,27 @@ function getAlignment(placement) {
286
319
  function getSideAxis(placement) {
287
320
  return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
288
321
  }
289
- function convertValueToCoords(_x6, _x7) {
322
+ function convertValueToCoords(_x, _x2) {
290
323
  return _convertValueToCoords.apply(this, arguments);
291
324
  }
292
325
  function _convertValueToCoords() {
293
- _convertValueToCoords = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee9(state, options) {
294
- var placement, platform2, elements, rtl, side, alignment, isVertical, mainAxisMulti, crossAxisMulti, rawValue, _ref7, mainAxis, crossAxis, alignmentAxis;
295
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
296
- while (1) switch (_context9.prev = _context9.next) {
326
+ _convertValueToCoords = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee2(state, options) {
327
+ var placement, platform, elements, rtl, side, alignment, isVertical, mainAxisMulti, crossAxisMulti, rawValue, _ref, mainAxis, crossAxis, alignmentAxis;
328
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
329
+ while (1) switch (_context2.prev = _context2.next) {
297
330
  case 0:
298
- placement = state.placement, platform2 = state.platform, elements = state.elements;
299
- _context9.next = 3;
300
- return platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating);
331
+ placement = state.placement, platform = state.platform, elements = state.elements;
332
+ _context2.next = 3;
333
+ return platform.isRTL == null ? void 0 : platform.isRTL(elements.floating);
301
334
  case 3:
302
- rtl = _context9.sent;
335
+ rtl = _context2.sent;
303
336
  side = getSide(placement);
304
337
  alignment = getAlignment(placement);
305
338
  isVertical = getSideAxis(placement) === "y";
306
339
  mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
307
340
  crossAxisMulti = rtl && isVertical ? -1 : 1;
308
341
  rawValue = evaluate(options, state);
309
- _ref7 = typeof rawValue === "number" ? {
342
+ _ref = typeof rawValue === "number" ? {
310
343
  mainAxis: rawValue,
311
344
  crossAxis: 0,
312
345
  alignmentAxis: null
@@ -314,11 +347,11 @@ function _convertValueToCoords() {
314
347
  mainAxis: rawValue.mainAxis || 0,
315
348
  crossAxis: rawValue.crossAxis || 0,
316
349
  alignmentAxis: rawValue.alignmentAxis
317
- }, mainAxis = _ref7.mainAxis, crossAxis = _ref7.crossAxis, alignmentAxis = _ref7.alignmentAxis;
350
+ }, mainAxis = _ref.mainAxis, crossAxis = _ref.crossAxis, alignmentAxis = _ref.alignmentAxis;
318
351
  if (alignment && typeof alignmentAxis === "number") {
319
352
  crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
320
353
  }
321
- return _context9.abrupt("return", isVertical ? {
354
+ return _context2.abrupt("return", isVertical ? {
322
355
  x: crossAxis * crossAxisMulti,
323
356
  y: mainAxis * mainAxisMulti
324
357
  } : {
@@ -327,9 +360,9 @@ function _convertValueToCoords() {
327
360
  });
328
361
  case 13:
329
362
  case "end":
330
- return _context9.stop();
363
+ return _context2.stop();
331
364
  }
332
- }, _callee9);
365
+ }, _callee2);
333
366
  }));
334
367
  return _convertValueToCoords.apply(this, arguments);
335
368
  }
@@ -341,23 +374,23 @@ var offset$1 = function offset$12(options) {
341
374
  name: "offset",
342
375
  options,
343
376
  fn: function fn(state) {
344
- return _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee5() {
377
+ return _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee() {
345
378
  var _middlewareData$offse, _middlewareData$arrow, x, y, placement, middlewareData, diffCoords;
346
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
347
- while (1) switch (_context5.prev = _context5.next) {
379
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
380
+ while (1) switch (_context.prev = _context.next) {
348
381
  case 0:
349
382
  x = state.x, y = state.y, placement = state.placement, middlewareData = state.middlewareData;
350
- _context5.next = 3;
383
+ _context.next = 3;
351
384
  return convertValueToCoords(state, options);
352
385
  case 3:
353
- diffCoords = _context5.sent;
386
+ diffCoords = _context.sent;
354
387
  if (!(placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset)) {
355
- _context5.next = 6;
388
+ _context.next = 6;
356
389
  break;
357
390
  }
358
- return _context5.abrupt("return", {});
391
+ return _context.abrupt("return", {});
359
392
  case 6:
360
- return _context5.abrupt("return", {
393
+ return _context.abrupt("return", {
361
394
  x: x + diffCoords.x,
362
395
  y: y + diffCoords.y,
363
396
  data: _extends({}, diffCoords, {
@@ -366,48 +399,14 @@ var offset$1 = function offset$12(options) {
366
399
  });
367
400
  case 7:
368
401
  case "end":
369
- return _context5.stop();
402
+ return _context.stop();
370
403
  }
371
- }, _callee5);
404
+ }, _callee);
372
405
  }))();
373
406
  }
374
407
  };
375
408
  };
376
409
  var offset = offset$1;
377
-
378
- function _createForOfIteratorHelperLoose(r, e) {
379
- var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
380
- if (t) return (t = t.call(r)).next.bind(t);
381
- if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
382
- t && (r = t);
383
- var o = 0;
384
- return function() {
385
- return o >= r.length ? { done: true } : { done: false, value: r[o++] };
386
- };
387
- }
388
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
389
- }
390
- function _unsupportedIterableToArray(r, a) {
391
- if (r) {
392
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
393
- var t = {}.toString.call(r).slice(8, -1);
394
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
395
- }
396
- }
397
- function _arrayLikeToArray(r, a) {
398
- (null == a || a > r.length) && (a = r.length);
399
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
400
- return n;
401
- }
402
- var _export_sfc = function _export_sfc2(sfc, props) {
403
- var target = sfc.__vccOpts || sfc;
404
- for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
405
- var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
406
- target[key] = val;
407
- }
408
- return target;
409
- };
410
-
411
410
  var _sfc_main = defineComponent({
412
411
  props: [].concat(props, ["showStep", "domData", "mainAxis", "crossAxis", "alignmentAxis", "popPosition", "modalOverlayOpeningPadding", "modalOverlayOpeningRadius", "arrow", "lightClass", "width", "height"]),
413
412
  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": "3.22.0",
4
+ "version": "3.22.1",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,