@web-utils/component 2.8.28 → 2.8.29

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.
@@ -1,15 +1,15 @@
1
- var k = Object.defineProperty, v = Object.defineProperties;
2
- var h = Object.getOwnPropertyDescriptors;
1
+ var h = Object.defineProperty, M = Object.defineProperties;
2
+ var C = Object.getOwnPropertyDescriptors;
3
3
  var x = Object.getOwnPropertySymbols;
4
- var M = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
5
- var b = (e, t, a) => t in e ? k(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, w = (e, t) => {
4
+ var D = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
5
+ var b = (e, t, a) => t in e ? h(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, w = (e, t) => {
6
6
  for (var a in t || (t = {}))
7
- M.call(t, a) && b(e, a, t[a]);
7
+ D.call(t, a) && b(e, a, t[a]);
8
8
  if (x)
9
9
  for (var a of x(t))
10
- C.call(t, a) && b(e, a, t[a]);
10
+ F.call(t, a) && b(e, a, t[a]);
11
11
  return e;
12
- }, S = (e, t) => v(e, h(t));
12
+ }, S = (e, t) => M(e, C(t));
13
13
  var T = (e, t, a) => new Promise((o, n) => {
14
14
  var r = (i) => {
15
15
  try {
@@ -26,29 +26,29 @@ var T = (e, t, a) => new Promise((o, n) => {
26
26
  }, f = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(r, c);
27
27
  f((a = a.apply(e, t)).next());
28
28
  });
29
- import D from "element-ui/lib/loading";
30
- import F from "element-ui/lib/message-box";
29
+ import v from "element-ui/lib/loading";
30
+ import B from "element-ui/lib/message-box";
31
31
  import { isFunction as p } from "@web-utils/core";
32
32
  function I(e, t, a) {
33
33
  return T(this, null, function* () {
34
- const { stop: o, prevent: n, message: r, loadable: c, loadingText: f, confirmable: i, confirmType: l, confirmText: B } = t;
34
+ const { stop: o, prevent: n, message: r, loadable: c, loadingText: f, confirmable: i, confirmType: l, confirmText: k } = t;
35
35
  o && e.stopPropagation(), n && e.preventDefault();
36
- const { before: g, click: s, cancel: d, after: m } = a;
37
- if (p(s))
36
+ const { before: s, click: d, cancel: g, after: m } = a;
37
+ if (p(d))
38
38
  try {
39
39
  let u = !0;
40
- if (p(g) && (u = yield g(e)), u === !1)
40
+ if (p(s) && (u = yield s(e)), u === !1)
41
41
  return;
42
- i && (yield F.confirm(r || B, { type: l }));
42
+ i && (yield (B.confirm || B.default.confirm)(r || k, { type: l }));
43
43
  let y;
44
- c && (y = D.service({ background: "rgba(0,0,0,0.3)", text: f }));
44
+ c && (y = (v.service || v.default.service)({ background: "rgba(0,0,0,0.3)", text: f }));
45
45
  try {
46
- yield s(e);
46
+ yield d(e);
47
47
  } catch (L) {
48
48
  }
49
49
  c && y.close(), p(m) && (yield m(e));
50
50
  } catch (u) {
51
- p(d) && (yield d(u));
51
+ p(g) && (yield g(u));
52
52
  }
53
53
  });
54
54
  }
@@ -1,4 +1,4 @@
1
- import { c as e } from "../chunks/confirmable-mixin.2bfe1ab9.mjs";
1
+ import { c as e } from "../chunks/confirmable-mixin.d89088b0.mjs";
2
2
  import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  const i = {
4
4
  props: {
@@ -1,4 +1,4 @@
1
- import { c as o } from "../chunks/confirmable-mixin.2bfe1ab9.mjs";
1
+ import { c as o } from "../chunks/confirmable-mixin.d89088b0.mjs";
2
2
  import { n as t } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  const r = {
4
4
  name: "Confirmable",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "2.8.28",
4
+ "version": "2.8.29",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@web-utils/component",
5
- "version": "2.8.28",
5
+ "version": "2.8.29",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",