@web-utils/component 3.0.4 → 3.0.5

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 (109) hide show
  1. package/address-input/index.mjs +22 -24
  2. package/awesome-button/index.mjs +29 -30
  3. package/card/index.mjs +40 -42
  4. package/carousel/index.mjs +25 -27
  5. package/chat/index.mjs +57 -67
  6. package/chunks/FormTemp.7f91629d.mjs +165 -0
  7. package/chunks/confirmable-mixin.817b542f.mjs +116 -0
  8. package/chunks/{dataformat.e655611c.mjs → dataformat.f995e2f9.mjs} +3 -3
  9. package/chunks/{event.10295951.mjs → event.b5d855dd.mjs} +1 -1
  10. package/chunks/{form-input-mixin.78a567bc.mjs → form-input-mixin.4632ad36.mjs} +1 -1
  11. package/chunks/{form-item-mixin.57cb2019.mjs → form-item-mixin.ad148e7b.mjs} +13 -13
  12. package/color-picker/index.mjs +128 -0
  13. package/confirm-button/index.mjs +1 -1
  14. package/confirmable/index.mjs +1 -1
  15. package/data-box/index.mjs +32 -34
  16. package/data-card/index.mjs +33 -35
  17. package/data-cardtext/index.mjs +27 -29
  18. package/data-display/index.mjs +33 -35
  19. package/data-icons/index.mjs +28 -30
  20. package/data-imgtext/index.mjs +27 -30
  21. package/data-operatext/index.mjs +39 -41
  22. package/data-panel/index.mjs +36 -38
  23. package/data-pay/index.mjs +20 -23
  24. package/data-price/index.mjs +32 -34
  25. package/data-progress/index.mjs +27 -30
  26. package/data-rotate/index.mjs +17 -19
  27. package/data-table-picker/index.mjs +22 -23
  28. package/data-tabs/index.mjs +31 -33
  29. package/dialog-form/index.mjs +22 -27
  30. package/dynamic-table/index.mjs +36 -40
  31. package/editable-progress/index.mjs +14 -16
  32. package/editable-tree/index.mjs +139 -143
  33. package/egd-collapse-item/index.mjs +2 -1
  34. package/element-dialog/index.mjs +24 -25
  35. package/flow-designer/index.mjs +1095 -1111
  36. package/form-block/index.mjs +22 -24
  37. package/form-cascader/index.mjs +20 -20
  38. package/form-checkbox-group/index.mjs +24 -25
  39. package/form-date-picker/index.mjs +18 -19
  40. package/form-holder/index.mjs +14 -15
  41. package/form-input/index.mjs +23 -23
  42. package/form-input-email/index.mjs +17 -17
  43. package/form-input-id-card/index.mjs +24 -24
  44. package/form-input-number/index.mjs +1 -1
  45. package/form-input-phone-number/index.mjs +26 -26
  46. package/form-input-tag/index.mjs +1 -1
  47. package/form-input-time/index.mjs +17 -17
  48. package/form-item/index.mjs +54 -56
  49. package/form-item-group/index.mjs +31 -33
  50. package/form-radio-group/index.mjs +51 -52
  51. package/form-select/index.mjs +31 -32
  52. package/form-switch/index.mjs +22 -22
  53. package/form-textarea/index.mjs +20 -20
  54. package/fy-array/index.mjs +61 -65
  55. package/fy-cascader/index.mjs +19 -20
  56. package/fy-checkbox/index.mjs +32 -37
  57. package/fy-code/index.mjs +13 -10
  58. package/fy-curd/index.mjs +638 -660
  59. package/fy-date/index.mjs +20 -21
  60. package/fy-draggable/index.mjs +19 -20
  61. package/fy-dynamic/index.mjs +26 -27
  62. package/fy-form/index.mjs +111 -122
  63. package/fy-form-design/index.mjs +1238 -1270
  64. package/fy-input/index.mjs +15 -17
  65. package/fy-input-color/index.mjs +25 -27
  66. package/fy-input-icon/index.mjs +20 -21
  67. package/fy-input-map/index.mjs +22 -24
  68. package/fy-input-number/index.mjs +22 -23
  69. package/fy-input-table/index.mjs +15 -17
  70. package/fy-input-tree/index.mjs +28 -32
  71. package/fy-progress/index.mjs +23 -24
  72. package/fy-radio/index.mjs +18 -23
  73. package/fy-rate/index.mjs +12 -13
  74. package/fy-select/index.mjs +40 -44
  75. package/fy-slider/index.mjs +17 -18
  76. package/fy-switch/index.mjs +20 -21
  77. package/fy-tabs/index.mjs +19 -21
  78. package/fy-time/index.mjs +14 -20
  79. package/fy-title/index.mjs +1 -1
  80. package/fy-tree/index.mjs +17 -21
  81. package/fy-upload/index.mjs +74 -76
  82. package/guide-steps/index.mjs +22 -24
  83. package/image-cropper/index.mjs +50 -51
  84. package/image-preview/index.mjs +24 -26
  85. package/index.mjs +480 -477
  86. package/input-number/index.mjs +13 -14
  87. package/input-number-range/index.mjs +23 -24
  88. package/login/index.mjs +35 -40
  89. package/nav-bar/index.mjs +13 -14
  90. package/notice/index.mjs +18 -19
  91. package/package.json +3 -3
  92. package/page-index/index.mjs +33 -34
  93. package/page-index-top/index.mjs +22 -24
  94. package/pageable-table/index.mjs +92 -96
  95. package/pageable-view/index.mjs +33 -34
  96. package/search/index.mjs +21 -23
  97. package/static-pageable-table/index.mjs +18 -20
  98. package/swiper/index.mjs +22 -23
  99. package/table-view/index.mjs +49 -53
  100. package/tag-render/index.mjs +19 -21
  101. package/text-ellipsis/index.mjs +11 -12
  102. package/tinymce-editor/index.mjs +50 -51
  103. package/toolbar-button/index.mjs +18 -19
  104. package/vue-cron/index.mjs +104 -112
  105. package/web-types.json +85 -1
  106. package/x-input-tag/index.mjs +47 -50
  107. package/chunks/FormTemp.d079292b.mjs +0 -139
  108. package/chunks/confirmable-mixin.26e1d0e0.mjs +0 -197
  109. package/chunks/detail.d6f8e347.mjs +0 -29
@@ -1,14 +1,13 @@
1
1
  import { s as o } from "../chunks/util.ae730cde.mjs";
2
- import r from "element-ui/lib/tooltip";
3
- import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var a = function() {
2
+ import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ var h = function() {
5
4
  var t = this, e = t.$createElement, i = t._self._c || e;
6
5
  return i("div", {
7
6
  staticClass: "avue-text-ellipsis",
8
7
  style: {
9
8
  width: t.setPx(t.width, "100%")
10
9
  }
11
- }, [t._t("before"), i(r, {
10
+ }, [t._t("before"), i("ElTooltip", {
12
11
  attrs: {
13
12
  content: t.text,
14
13
  disabled: !(t.useTooltip && t.isHide),
@@ -22,7 +21,7 @@ var a = function() {
22
21
  ref: "more",
23
22
  staticClass: "avue-text-ellipsis__more"
24
23
  }, [t._t("more")], 2), t._t("after")], 2);
25
- }, _ = [];
24
+ }, a = [];
26
25
  const f = {
27
26
  name: "TextEllipsis",
28
27
  props: {
@@ -84,23 +83,23 @@ const f = {
84
83
  }
85
84
  }
86
85
  }, l = {};
87
- var m = /* @__PURE__ */ h(
86
+ var _ = /* @__PURE__ */ r(
88
87
  f,
88
+ h,
89
89
  a,
90
- _,
91
90
  !1,
92
- c,
91
+ m,
93
92
  null,
94
93
  null,
95
94
  null
96
95
  );
97
- function c(t) {
96
+ function m(t) {
98
97
  for (let e in l)
99
98
  this[e] = l[e];
100
99
  }
101
- const d = /* @__PURE__ */ function() {
102
- return m.exports;
100
+ const u = /* @__PURE__ */ function() {
101
+ return _.exports;
103
102
  }();
104
103
  export {
105
- d as default
104
+ u as default
106
105
  };
@@ -1,15 +1,15 @@
1
- var _ = Object.defineProperty, F = Object.defineProperties;
2
- var C = Object.getOwnPropertyDescriptors;
1
+ var F = Object.defineProperty, C = Object.defineProperties;
2
+ var _ = Object.getOwnPropertyDescriptors;
3
3
  var y = Object.getOwnPropertySymbols;
4
4
  var T = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
- var w = (e, t, i) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, h = (e, t) => {
5
+ var w = (e, t, i) => t in e ? F(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, h = (e, t) => {
6
6
  for (var i in t || (t = {}))
7
7
  T.call(t, i) && w(e, i, t[i]);
8
8
  if (y)
9
9
  for (var i of y(t))
10
10
  B.call(t, i) && w(e, i, t[i]);
11
11
  return e;
12
- }, f = (e, t) => F(e, C(t));
12
+ }, f = (e, t) => C(e, _(t));
13
13
  var p = (e, t, i) => new Promise((a, n) => {
14
14
  var o = (s) => {
15
15
  try {
@@ -38,9 +38,8 @@ import "tinymce/plugins/fullscreen";
38
38
  import "tinymce/plugins/preview";
39
39
  import "tinymce/plugins/imagetools";
40
40
  import { getFilePrefix as D, guid as A } from "@web-utils/core";
41
- import $ from "element-ui/lib/upload";
42
41
  import { n as I } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
43
- const R = {
42
+ const $ = {
44
43
  Redo: "重做",
45
44
  Undo: "撤销",
46
45
  Cut: "剪切",
@@ -429,7 +428,7 @@ const R = {
429
428
  Spellcheck: "拼写检查",
430
429
  Caption: "标题",
431
430
  "Insert template": "插入模板"
432
- }, E = '方正小标宋="方正小标宋";仿宋GB2312="仿宋GB2312";微软雅黑="微软雅黑";宋体="宋体";黑体="黑体";仿宋="仿宋";楷体="楷体";隶书="隶书";幼圆="幼圆";Arial="Arial";', L = `
431
+ }, R = '方正小标宋="方正小标宋";仿宋GB2312="仿宋GB2312";微软雅黑="微软雅黑";宋体="宋体";黑体="黑体";仿宋="仿宋";楷体="楷体";隶书="隶书";幼圆="幼圆";Arial="Arial";', E = `
433
432
  * {
434
433
  margin: 0;
435
434
  padding: 0
@@ -477,11 +476,11 @@ function k(e) {
477
476
  a[n] = t.charCodeAt(n);
478
477
  return i;
479
478
  }
480
- function x(e) {
479
+ function L(e) {
481
480
  const t = e.split(",")[0].split(":")[1].split(";")[0], i = k(e);
482
481
  return new Blob([i], { type: t });
483
482
  }
484
- function H(e) {
483
+ function x(e) {
485
484
  const t = new DataView(e);
486
485
  if (t.getUint16(0, !1) !== 65496)
487
486
  return -2;
@@ -507,7 +506,7 @@ function H(e) {
507
506
  }
508
507
  return -1;
509
508
  }
510
- function M(e, t, i) {
509
+ function H(e, t, i) {
511
510
  const a = e.width, n = e.height;
512
511
  switch (i > 4 && (e.width = n, e.height = a), i) {
513
512
  case 2:
@@ -533,33 +532,33 @@ function M(e, t, i) {
533
532
  break;
534
533
  }
535
534
  }
536
- function q(e) {
535
+ function M(e) {
537
536
  return e.split(",")[0].split(":")[1].split(";")[0];
538
537
  }
539
- function O(e) {
540
- return `.${q(e).replace("image/", "")}`;
538
+ function q(e) {
539
+ return `.${M(e).replace("image/", "")}`;
541
540
  }
542
- function z(e, t) {
541
+ function O(e, t) {
543
542
  return p(this, null, function* () {
544
543
  return new Promise((i, a) => {
545
544
  const n = new Image();
546
545
  n.onload = function() {
547
- const o = U(n), l = H(k(n.src)), r = document.createElement("canvas"), s = r.getContext("2d"), d = t.compress.width, g = t.compress.height;
546
+ const o = U(n), l = x(k(n.src)), r = document.createElement("canvas"), s = r.getContext("2d"), d = t.compress.width, g = t.compress.height;
548
547
  let c = n.width, u = n.height;
549
- c < u && u > g ? (c = parseInt(`${g * n.width / n.height}`), u = g) : c >= u && c > d && (u = parseInt(`${d * n.height / n.width}`), c = d), r.width = c, r.height = u, l > 0 && M(r, s, l), s.drawImage(n, 0, 0, c, u / o);
548
+ c < u && u > g ? (c = parseInt(`${g * n.width / n.height}`), u = g) : c >= u && c > d && (u = parseInt(`${d * n.height / n.width}`), c = d), r.width = c, r.height = u, l > 0 && H(r, s, l), s.drawImage(n, 0, 0, c, u / o);
550
549
  const m = r.toDataURL("image/jpeg", t.compress.quality);
551
- /;base64,null/.test(m) || /;base64,$/.test(m) ? (t.onError(new Error(`Compress fail, dataURL is ${m}.`)), a(Error("图片压缩失败"))) : i(W(m, `${D(t.fileName)}.jpg`));
550
+ /;base64,null/.test(m) || /;base64,$/.test(m) ? (t.onError(new Error(`Compress fail, dataURL is ${m}.`)), a(Error("图片压缩失败"))) : i(j(m, `${D(t.fileName)}.jpg`));
552
551
  }, n.src = e;
553
552
  });
554
553
  });
555
554
  }
556
- function N(e, t) {
555
+ function z(e, t) {
557
556
  return p(this, null, function* () {
558
- const i = yield j(e);
559
- return z(i, h({ fileName: e.name }, t));
557
+ const i = yield N(e);
558
+ return O(i, h({ fileName: e.name }, t));
560
559
  });
561
560
  }
562
- function j(e) {
561
+ function N(e) {
563
562
  return new Promise((t, i) => {
564
563
  const a = new FileReader();
565
564
  a.onload = function(n) {
@@ -569,11 +568,11 @@ function j(e) {
569
568
  }, a.readAsDataURL(e);
570
569
  });
571
570
  }
572
- function W(e = "", t) {
573
- const i = x(e);
574
- return i.name = t || `image${O(e)}`, i;
571
+ function j(e = "", t) {
572
+ const i = L(e);
573
+ return i.name = t || `image${q(e)}`, i;
575
574
  }
576
- var G = function() {
575
+ var W = function() {
577
576
  var e = this, t = e.$createElement, i = e._self._c || t;
578
577
  return e.show ? i("div", {
579
578
  class: ["tinymce-editor", {
@@ -593,7 +592,7 @@ var G = function() {
593
592
  },
594
593
  expression: "val"
595
594
  }
596
- }), i($, {
595
+ }), i("ElUpload", {
597
596
  ref: "uploader",
598
597
  staticStyle: {
599
598
  display: "none"
@@ -606,9 +605,9 @@ var G = function() {
606
605
  accept: ".jpg,.jpeg,.png,.gif,.bmp"
607
606
  }
608
607
  }, [i("span")])], 1) : e._e();
609
- }, V = [];
610
- P.addI18n("zh_CN", R);
611
- const Y = {
608
+ }, G = [];
609
+ P.addI18n("zh_CN", $);
610
+ const V = {
612
611
  name: "TinymceWrapper",
613
612
  components: {
614
613
  Editor: S
@@ -693,7 +692,7 @@ const Y = {
693
692
  },
694
693
  toolbar: a,
695
694
  placeholder: "在这里输入文字",
696
- content_style: L,
695
+ content_style: E,
697
696
  fontname: "宋体",
698
697
  fontFamily: "宋体",
699
698
  branding: !1,
@@ -704,7 +703,7 @@ const Y = {
704
703
  height: "100%",
705
704
  elementpath: !1,
706
705
  plugins: `${t},${this.plugins}`,
707
- font_formats: E,
706
+ font_formats: R,
708
707
  fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt"
709
708
  }
710
709
  };
@@ -751,7 +750,7 @@ const Y = {
751
750
  var o, l;
752
751
  try {
753
752
  this.loading = this.$loading({ text: "压缩中...", background: "rgba(0,0,0,0.2)" });
754
- const r = yield N(e, {
753
+ const r = yield z(e, {
755
754
  compress: {
756
755
  width: 1920,
757
756
  height: 1600,
@@ -800,24 +799,24 @@ const Y = {
800
799
  }
801
800
  }
802
801
  }, b = {};
803
- var X = /* @__PURE__ */ I(
804
- Y,
805
- G,
802
+ var Y = /* @__PURE__ */ I(
806
803
  V,
804
+ W,
805
+ G,
807
806
  !1,
808
- Z,
807
+ X,
809
808
  null,
810
809
  null,
811
810
  null
812
811
  );
813
- function Z(e) {
812
+ function X(e) {
814
813
  for (let t in b)
815
814
  this[t] = b[t];
816
815
  }
817
- const J = /* @__PURE__ */ function() {
818
- return X.exports;
816
+ const Z = /* @__PURE__ */ function() {
817
+ return Y.exports;
819
818
  }();
820
- var K = function() {
819
+ var J = function() {
821
820
  var e = this, t = e.$createElement, i = e._self._c || t;
822
821
  return i("div", {
823
822
  staticStyle: {
@@ -897,10 +896,10 @@ var K = function() {
897
896
  }
898
897
  }
899
898
  }, "TinymceWrapper", e.$attrs, !1))]], 2);
900
- }, Q = [];
901
- const ee = {
899
+ }, K = [];
900
+ const Q = {
902
901
  name: "TinymceEditor",
903
- components: { TinymceWrapper: J },
902
+ components: { TinymceWrapper: Z },
904
903
  inject: {
905
904
  elForm: {
906
905
  default: ""
@@ -972,23 +971,23 @@ const ee = {
972
971
  }
973
972
  }
974
973
  }, v = {};
975
- var te = /* @__PURE__ */ I(
976
- ee,
977
- K,
974
+ var ee = /* @__PURE__ */ I(
978
975
  Q,
976
+ J,
977
+ K,
979
978
  !1,
980
- ie,
979
+ te,
981
980
  null,
982
981
  null,
983
982
  null
984
983
  );
985
- function ie(e) {
984
+ function te(e) {
986
985
  for (let t in v)
987
986
  this[t] = v[t];
988
987
  }
989
- const we = /* @__PURE__ */ function() {
990
- return te.exports;
988
+ const fe = /* @__PURE__ */ function() {
989
+ return ee.exports;
991
990
  }();
992
991
  export {
993
- we as default
992
+ fe as default
994
993
  };
@@ -1,5 +1,5 @@
1
- var s = (t, o, e) => new Promise((_, i) => {
2
- var p = (n) => {
1
+ var s = (t, o, e) => new Promise((c, i) => {
2
+ var _ = (n) => {
3
3
  try {
4
4
  a(e.next(n));
5
5
  } catch (l) {
@@ -11,15 +11,14 @@ var s = (t, o, e) => new Promise((_, i) => {
11
11
  } catch (l) {
12
12
  i(l);
13
13
  }
14
- }, a = (n) => n.done ? _(n.value) : Promise.resolve(n.value).then(p, u);
14
+ }, a = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(_, u);
15
15
  a((e = e.apply(t, o)).next());
16
16
  });
17
17
  import { isFunction as d } from "@web-utils/core";
18
- import r from "element-ui/lib/button";
19
- import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
20
- var m = function() {
18
+ import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
+ var f = function() {
21
20
  var t = this, o = t.$createElement, e = t._self._c || o;
22
- return t.footer || t.toolbar.footer ? e(r, {
21
+ return t.footer || t.toolbar.footer ? e("ElButton", {
23
22
  attrs: {
24
23
  disabled: t.disabled || t.loading,
25
24
  type: t.type
@@ -29,7 +28,7 @@ var m = function() {
29
28
  }
30
29
  }, [t._v(" " + t._s(t.label) + " ")]) : e("span", {
31
30
  staticClass: "form-toolbar-button"
32
- }, [e(r, {
31
+ }, [e("ElButton", {
33
32
  attrs: {
34
33
  icon: t.icon,
35
34
  type: "text",
@@ -43,7 +42,7 @@ var m = function() {
43
42
  staticClass: "separate-line"
44
43
  }) : t._e()], 1);
45
44
  }, b = [];
46
- const v = {
45
+ const m = {
47
46
  name: "ToolbarButton",
48
47
  inject: {
49
48
  toolbar: {
@@ -86,24 +85,24 @@ const v = {
86
85
  });
87
86
  }
88
87
  }
89
- }, c = {};
90
- var y = /* @__PURE__ */ f(
91
- v,
88
+ }, r = {};
89
+ var v = /* @__PURE__ */ p(
92
90
  m,
91
+ f,
93
92
  b,
94
93
  !1,
95
- g,
94
+ y,
96
95
  null,
97
96
  null,
98
97
  null
99
98
  );
100
- function g(t) {
101
- for (let o in c)
102
- this[o] = c[o];
99
+ function y(t) {
100
+ for (let o in r)
101
+ this[o] = r[o];
103
102
  }
104
- const x = /* @__PURE__ */ function() {
105
- return y.exports;
103
+ const k = /* @__PURE__ */ function() {
104
+ return v.exports;
106
105
  }();
107
106
  export {
108
- x as default
107
+ k as default
109
108
  };