@web-utils/component 3.0.2 → 3.0.3

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 (166) hide show
  1. package/address-input/index.mjs +14 -14
  2. package/chat/index.mjs +39 -40
  3. package/chunk-file-uploader/index.mjs +35 -594
  4. package/chunk-file-uploader/style.css +1 -1
  5. package/chunks/FormTemp.d079292b.mjs +139 -0
  6. package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
  7. package/chunks/detail.d6f8e347.mjs +29 -0
  8. package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
  9. package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
  10. package/chunks/form-input-mixin.78a567bc.mjs +24 -0
  11. package/chunks/form-item-mixin.57cb2019.mjs +140 -0
  12. package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
  13. package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
  14. package/chunks/input-number-mixin.41a066be.mjs +60 -0
  15. package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
  16. package/count-up/index.mjs +17 -14
  17. package/data-box/index.mjs +18 -19
  18. package/data-display/index.mjs +17 -18
  19. package/data-icons/index.mjs +16 -17
  20. package/data-panel/index.mjs +20 -21
  21. package/data-pay/index.mjs +15 -16
  22. package/data-progress/index.mjs +19 -20
  23. package/data-rotate/index.mjs +35 -36
  24. package/data-table-picker/index.mjs +23 -25
  25. package/data-tabs/index.mjs +15 -16
  26. package/dialog-form/index.mjs +11 -12
  27. package/dynamic-table/index.mjs +34 -35
  28. package/easy-popup/index.mjs +56 -29
  29. package/editable-tree/index.mjs +485 -134
  30. package/element-dialog/index.mjs +127 -37
  31. package/empty-view/index.mjs +31 -13
  32. package/flex-column/index.mjs +1 -1
  33. package/flex-item/index.mjs +1 -1
  34. package/flex-row/index.mjs +1 -1
  35. package/flow/index.mjs +40 -105
  36. package/flow-designer/index.mjs +555 -615
  37. package/flow-node/index.mjs +47 -15
  38. package/flow-viewer/index.mjs +78 -167
  39. package/form-cascader/index.mjs +24 -24
  40. package/form-checkbox-group/index.mjs +35 -79
  41. package/form-date-picker/index.mjs +22 -22
  42. package/form-holder/index.mjs +1 -1
  43. package/form-input/index.mjs +86 -28
  44. package/form-input-email/index.mjs +18 -18
  45. package/form-input-id-card/index.mjs +27 -27
  46. package/form-input-number/index.mjs +59 -219
  47. package/form-input-phone-number/index.mjs +27 -27
  48. package/form-input-tag/index.mjs +38 -160
  49. package/form-input-time/index.mjs +16 -16
  50. package/form-item/index.mjs +146 -15
  51. package/form-item-group/index.mjs +164 -14
  52. package/form-radio-group/index.mjs +41 -41
  53. package/form-select/index.mjs +20 -20
  54. package/form-switch/index.mjs +19 -19
  55. package/form-textarea/index.mjs +29 -29
  56. package/form-view/index.mjs +42 -46
  57. package/fy-array/index.mjs +2 -2
  58. package/fy-cascader/index.mjs +15 -15
  59. package/fy-checkbox/index.mjs +1 -1
  60. package/fy-code/index.mjs +1 -1
  61. package/fy-curd/index.mjs +2824 -210
  62. package/fy-date/index.mjs +59 -17
  63. package/fy-draggable/index.mjs +1 -1
  64. package/fy-dynamic/index.mjs +208 -64
  65. package/fy-empty/index.mjs +29 -12
  66. package/fy-form/index.mjs +743 -178
  67. package/fy-form-design/index.mjs +1013 -1540
  68. package/fy-input/index.mjs +105 -17
  69. package/fy-input-color/index.mjs +67 -16
  70. package/fy-input-icon/index.mjs +119 -23
  71. package/fy-input-map/index.mjs +14 -15
  72. package/fy-input-number/index.mjs +1 -1
  73. package/fy-input-table/index.mjs +19 -21
  74. package/fy-input-tree/index.mjs +3 -3
  75. package/fy-radio/index.mjs +1 -1
  76. package/fy-rate/index.mjs +50 -16
  77. package/fy-select/index.mjs +126 -29
  78. package/fy-slider/index.mjs +2 -2
  79. package/fy-switch/index.mjs +1 -1
  80. package/fy-tabs/index.mjs +51 -15
  81. package/fy-time/index.mjs +1 -1
  82. package/fy-title/index.mjs +1 -1
  83. package/fy-tree/index.mjs +23 -25
  84. package/fy-u-editor/index.mjs +1 -1
  85. package/fy-upload/index.mjs +2 -2
  86. package/highlight-j-s/index.mjs +29 -19
  87. package/icon-temp/index.mjs +30 -12
  88. package/iframe-window/index.mjs +18 -19
  89. package/image-cropper/index.mjs +22 -23
  90. package/image-preview/index.mjs +1 -1
  91. package/input-number/index.mjs +173 -63
  92. package/license/index.mjs +1 -1
  93. package/loading-view/index.mjs +33 -15
  94. package/login/index.mjs +1 -1
  95. package/nav-bar/index.mjs +31 -15
  96. package/package.json +1 -1
  97. package/page/index.mjs +20 -12
  98. package/page-header/index.mjs +34 -13
  99. package/page-index-top/index.mjs +53 -100
  100. package/page-skeleton/index.mjs +35 -18
  101. package/page-skeleton-new/index.mjs +15 -16
  102. package/pageable-table/index.mjs +228 -86
  103. package/pageable-view/index.mjs +1 -1
  104. package/present-view/index.mjs +71 -75
  105. package/record-video/index.mjs +1 -1
  106. package/resize-observer/index.mjs +29 -21
  107. package/search/index.mjs +9 -9
  108. package/search-popover/index.mjs +1 -1
  109. package/sign/index.mjs +1 -1
  110. package/split-pane/index.mjs +45 -40
  111. package/swiper/index.mjs +13 -14
  112. package/table-view/index.mjs +97 -631
  113. package/text-ellipsis/index.mjs +1 -1
  114. package/tinymce-editor/index.mjs +63 -63
  115. package/toolbar/index.mjs +208 -15
  116. package/toolbar-button/index.mjs +56 -30
  117. package/verify/index.mjs +1 -1
  118. package/watermark/index.mjs +1 -1
  119. package/web-types.json +1 -1
  120. package/x-input-tag/index.mjs +118 -49
  121. package/chunks/CountUp.f1a19f35.mjs +0 -124
  122. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
  123. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
  124. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
  125. package/chunks/ElementDialog.d8f3105c.mjs +0 -211
  126. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
  127. package/chunks/EmptyView.e2430422.mjs +0 -51
  128. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
  129. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
  130. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
  131. package/chunks/FormItem.2920ac0c.mjs +0 -45
  132. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
  133. package/chunks/FormItemGroup.41daddb6.mjs +0 -64
  134. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
  135. package/chunks/FyCurd.8acd2983.mjs +0 -548
  136. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
  137. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
  138. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
  139. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
  140. package/chunks/FyForm.0294e494.mjs +0 -439
  141. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
  142. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
  143. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
  144. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
  145. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
  146. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
  147. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
  148. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
  149. package/chunks/IconTemp.42c48e1f.mjs +0 -32
  150. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
  151. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
  152. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
  153. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
  154. package/chunks/Page.81f4b8d9.mjs +0 -32
  155. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
  156. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
  157. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
  158. package/chunks/PageableTable.333cbdc1.mjs +0 -335
  159. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
  160. package/chunks/ResizeObserver.60f728f0.mjs +0 -54
  161. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
  162. package/chunks/TableColumn.8503272e.mjs +0 -106
  163. package/chunks/Toolbar.5c539dbb.mjs +0 -24
  164. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
  165. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
  166. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
@@ -1,4 +1,4 @@
1
- import { s as o } from "../chunks/util.7844e2c2.mjs";
1
+ import { s as o } from "../chunks/util.ae730cde.mjs";
2
2
  import r from "element-ui/lib/tooltip";
3
3
  import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
4
  var a = function() {
@@ -1,15 +1,15 @@
1
- var F = Object.defineProperty, C = Object.defineProperties;
2
- var B = Object.getOwnPropertyDescriptors;
3
- var w = Object.getOwnPropertySymbols;
4
- var T = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
5
- var b = (e, t, i) => t in e ? F(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, h = (e, t) => {
1
+ var _ = Object.defineProperty, F = Object.defineProperties;
2
+ var C = Object.getOwnPropertyDescriptors;
3
+ var y = Object.getOwnPropertySymbols;
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) => {
6
6
  for (var i in t || (t = {}))
7
- T.call(t, i) && b(e, i, t[i]);
8
- if (w)
9
- for (var i of w(t))
10
- P.call(t, i) && b(e, i, t[i]);
7
+ T.call(t, i) && w(e, i, t[i]);
8
+ if (y)
9
+ for (var i of y(t))
10
+ B.call(t, i) && w(e, i, t[i]);
11
11
  return e;
12
- }, f = (e, t) => C(e, B(t));
12
+ }, f = (e, t) => F(e, C(t));
13
13
  var p = (e, t, i) => new Promise((a, n) => {
14
14
  var o = (s) => {
15
15
  try {
@@ -27,8 +27,8 @@ var p = (e, t, i) => new Promise((a, n) => {
27
27
  r((i = i.apply(e, t)).next());
28
28
  });
29
29
  import "tinymce/skins/lightgray/skin.min.css";
30
- import S from "tinymce";
31
- import D from "@tinymce/tinymce-vue";
30
+ import P from "tinymce";
31
+ import S from "@tinymce/tinymce-vue";
32
32
  import "tinymce/themes/modern/theme";
33
33
  import "tinymce/plugins/contextmenu";
34
34
  import "tinymce/plugins/wordcount";
@@ -37,10 +37,10 @@ import "tinymce/plugins/image";
37
37
  import "tinymce/plugins/fullscreen";
38
38
  import "tinymce/plugins/preview";
39
39
  import "tinymce/plugins/imagetools";
40
- import { getFilePrefix as A, guid as $ } from "@web-utils/core";
41
- import R from "element-ui/lib/upload";
42
- import { n as k } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
43
- const E = {
40
+ import { getFilePrefix as D, guid as A } from "@web-utils/core";
41
+ import $ from "element-ui/lib/upload";
42
+ import { n as I } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
43
+ const R = {
44
44
  Redo: "重做",
45
45
  Undo: "撤销",
46
46
  Cut: "剪切",
@@ -429,7 +429,7 @@ const E = {
429
429
  Spellcheck: "拼写检查",
430
430
  Caption: "标题",
431
431
  "Insert template": "插入模板"
432
- }, L = '方正小标宋="方正小标宋";仿宋GB2312="仿宋GB2312";微软雅黑="微软雅黑";宋体="宋体";黑体="黑体";仿宋="仿宋";楷体="楷体";隶书="隶书";幼圆="幼圆";Arial="Arial";', U = `
432
+ }, E = '方正小标宋="方正小标宋";仿宋GB2312="仿宋GB2312";微软雅黑="微软雅黑";宋体="宋体";黑体="黑体";仿宋="仿宋";楷体="楷体";隶书="隶书";幼圆="幼圆";Arial="Arial";', L = `
433
433
  * {
434
434
  margin: 0;
435
435
  padding: 0
@@ -454,7 +454,7 @@ body {
454
454
  max-width: 100%;
455
455
  }
456
456
  `;
457
- function x(e) {
457
+ function U(e) {
458
458
  let t;
459
459
  const i = e.naturalHeight, a = document.createElement("canvas");
460
460
  a.width = 1, a.height = i;
@@ -471,17 +471,17 @@ function x(e) {
471
471
  const s = r / i;
472
472
  return s === 0 ? 1 : s;
473
473
  }
474
- function _(e) {
474
+ function k(e) {
475
475
  const t = atob(e.split(",")[1]), i = new ArrayBuffer(t.length), a = new Uint8Array(i);
476
476
  for (let n = 0; n < t.length; n++)
477
477
  a[n] = t.charCodeAt(n);
478
478
  return i;
479
479
  }
480
- function H(e) {
481
- const t = e.split(",")[0].split(":")[1].split(";")[0], i = _(e);
480
+ function x(e) {
481
+ const t = e.split(",")[0].split(":")[1].split(";")[0], i = k(e);
482
482
  return new Blob([i], { type: t });
483
483
  }
484
- function M(e) {
484
+ function H(e) {
485
485
  const t = new DataView(e);
486
486
  if (t.getUint16(0, !1) !== 65496)
487
487
  return -2;
@@ -507,7 +507,7 @@ function M(e) {
507
507
  }
508
508
  return -1;
509
509
  }
510
- function q(e, t, i) {
510
+ function M(e, t, i) {
511
511
  const a = e.width, n = e.height;
512
512
  switch (i > 4 && (e.width = n, e.height = a), i) {
513
513
  case 2:
@@ -533,33 +533,33 @@ function q(e, t, i) {
533
533
  break;
534
534
  }
535
535
  }
536
- function O(e) {
536
+ function q(e) {
537
537
  return e.split(",")[0].split(":")[1].split(";")[0];
538
538
  }
539
- function z(e) {
540
- return `.${O(e).replace("image/", "")}`;
539
+ function O(e) {
540
+ return `.${q(e).replace("image/", "")}`;
541
541
  }
542
- function N(e, t) {
542
+ function z(e, t) {
543
543
  return p(this, null, function* () {
544
544
  return new Promise((i, a) => {
545
545
  const n = new Image();
546
546
  n.onload = function() {
547
- const o = x(n), l = M(_(n.src)), r = document.createElement("canvas"), s = r.getContext("2d"), d = t.compress.width, g = t.compress.height;
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;
548
548
  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 && q(r, s, l), s.drawImage(n, 0, 0, c, u / o);
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);
550
550
  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, `${A(t.fileName)}.jpg`));
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`));
552
552
  }, n.src = e;
553
553
  });
554
554
  });
555
555
  }
556
- function j(e, t) {
556
+ function N(e, t) {
557
557
  return p(this, null, function* () {
558
- const i = yield G(e);
559
- return N(i, h({ fileName: e.name }, t));
558
+ const i = yield j(e);
559
+ return z(i, h({ fileName: e.name }, t));
560
560
  });
561
561
  }
562
- function G(e) {
562
+ function j(e) {
563
563
  return new Promise((t, i) => {
564
564
  const a = new FileReader();
565
565
  a.onload = function(n) {
@@ -570,10 +570,10 @@ function G(e) {
570
570
  });
571
571
  }
572
572
  function W(e = "", t) {
573
- const i = H(e);
574
- return i.name = t || `image${z(e)}`, i;
573
+ const i = x(e);
574
+ return i.name = t || `image${O(e)}`, i;
575
575
  }
576
- var V = function() {
576
+ var G = function() {
577
577
  var e = this, t = e.$createElement, i = e._self._c || t;
578
578
  return e.show ? i("div", {
579
579
  class: ["tinymce-editor", {
@@ -593,7 +593,7 @@ var V = function() {
593
593
  },
594
594
  expression: "val"
595
595
  }
596
- }), i(R, {
596
+ }), i($, {
597
597
  ref: "uploader",
598
598
  staticStyle: {
599
599
  display: "none"
@@ -606,12 +606,12 @@ var V = function() {
606
606
  accept: ".jpg,.jpeg,.png,.gif,.bmp"
607
607
  }
608
608
  }, [i("span")])], 1) : e._e();
609
- }, Y = [];
610
- S.addI18n("zh_CN", E);
611
- const X = {
609
+ }, V = [];
610
+ P.addI18n("zh_CN", R);
611
+ const Y = {
612
612
  name: "TinymceWrapper",
613
613
  components: {
614
- Editor: D
614
+ Editor: S
615
615
  },
616
616
  inject: {
617
617
  elForm: {
@@ -693,7 +693,7 @@ const X = {
693
693
  },
694
694
  toolbar: a,
695
695
  placeholder: "在这里输入文字",
696
- content_style: U,
696
+ content_style: L,
697
697
  fontname: "宋体",
698
698
  fontFamily: "宋体",
699
699
  branding: !1,
@@ -704,7 +704,7 @@ const X = {
704
704
  height: "100%",
705
705
  elementpath: !1,
706
706
  plugins: `${t},${this.plugins}`,
707
- font_formats: L,
707
+ font_formats: E,
708
708
  fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt"
709
709
  }
710
710
  };
@@ -751,7 +751,7 @@ const X = {
751
751
  var o, l;
752
752
  try {
753
753
  this.loading = this.$loading({ text: "压缩中...", background: "rgba(0,0,0,0.2)" });
754
- const r = yield j(e, {
754
+ const r = yield N(e, {
755
755
  compress: {
756
756
  width: 1920,
757
757
  height: 1600,
@@ -760,7 +760,7 @@ const X = {
760
760
  });
761
761
  this.loading.text = "上传中...";
762
762
  const s = yield this.api((o = this.getUploadUrl) == null ? void 0 : o.call(this), r, {
763
- data: { unid: $(), type: this.fileLabel },
763
+ data: { unid: A(), type: this.fileLabel },
764
764
  onprogress(d) {
765
765
  i == null || i(d);
766
766
  }
@@ -799,23 +799,23 @@ const X = {
799
799
  return e.replace("/var/local/data/merge", "");
800
800
  }
801
801
  }
802
- }, v = {};
803
- var Z = /* @__PURE__ */ k(
804
- X,
805
- V,
802
+ }, b = {};
803
+ var X = /* @__PURE__ */ I(
806
804
  Y,
805
+ G,
806
+ V,
807
807
  !1,
808
- J,
808
+ Z,
809
809
  null,
810
810
  null,
811
811
  null
812
812
  );
813
- function J(e) {
814
- for (let t in v)
815
- this[t] = v[t];
813
+ function Z(e) {
814
+ for (let t in b)
815
+ this[t] = b[t];
816
816
  }
817
- const y = /* @__PURE__ */ function() {
818
- return Z.exports;
817
+ const J = /* @__PURE__ */ function() {
818
+ return X.exports;
819
819
  }();
820
820
  var K = function() {
821
821
  var e = this, t = e.$createElement, i = e._self._c || t;
@@ -826,7 +826,7 @@ var K = function() {
826
826
  style: {
827
827
  height: e.height
828
828
  }
829
- }, [e.lazy ? [e.focus && !e.inputDisabled ? i(y, e._b({
829
+ }, [e.lazy ? [e.focus && !e.inputDisabled ? i("TinymceWrapper", e._b({
830
830
  ref: "editor",
831
831
  attrs: {
832
832
  "query-params": e.queryParams,
@@ -877,7 +877,7 @@ var K = function() {
877
877
  domProps: {
878
878
  innerHTML: e._s(e.value)
879
879
  }
880
- }) : i(y, e._b({
880
+ }) : i("TinymceWrapper", e._b({
881
881
  ref: "editor",
882
882
  attrs: {
883
883
  "query-params": e.queryParams,
@@ -900,7 +900,7 @@ var K = function() {
900
900
  }, Q = [];
901
901
  const ee = {
902
902
  name: "TinymceEditor",
903
- components: { TinymceWrapper: y },
903
+ components: { TinymceWrapper: J },
904
904
  inject: {
905
905
  elForm: {
906
906
  default: ""
@@ -971,8 +971,8 @@ const ee = {
971
971
  this.getEditor().insertContent(e);
972
972
  }
973
973
  }
974
- }, I = {};
975
- var te = /* @__PURE__ */ k(
974
+ }, v = {};
975
+ var te = /* @__PURE__ */ I(
976
976
  ee,
977
977
  K,
978
978
  Q,
@@ -983,8 +983,8 @@ var te = /* @__PURE__ */ k(
983
983
  null
984
984
  );
985
985
  function ie(e) {
986
- for (let t in I)
987
- this[t] = I[t];
986
+ for (let t in v)
987
+ this[t] = v[t];
988
988
  }
989
989
  const we = /* @__PURE__ */ function() {
990
990
  return te.exports;
package/toolbar/index.mjs CHANGED
@@ -1,24 +1,217 @@
1
- import { _ as t } from "../chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs";
2
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- let _, r;
4
- const n = {};
5
- var s = /* @__PURE__ */ o(
6
- t,
7
- _,
8
- r,
1
+ import { NOOP as b } from "@web-utils/core";
2
+ import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ const u = {
4
+ back: {
5
+ label: "返回",
6
+ type: "primary",
7
+ icon: "el-icon-d-arrow-left"
8
+ },
9
+ cancel: {
10
+ label: "取消",
11
+ icon: "fa fa-undo"
12
+ },
13
+ create: {
14
+ label: "新增",
15
+ type: "primary",
16
+ icon: "el-icon-plus"
17
+ },
18
+ save: {
19
+ label: "保存",
20
+ type: "primary",
21
+ icon: "fa fa-save"
22
+ },
23
+ withdraw: {
24
+ label: "撤回",
25
+ type: "primary",
26
+ icon: "fa fa-undo"
27
+ },
28
+ edit: {
29
+ label: "编辑",
30
+ type: "primary",
31
+ icon: "el-icon-edit-outline"
32
+ },
33
+ submit: {
34
+ label: "提交审批",
35
+ type: "primary",
36
+ icon: "fa fa-check"
37
+ },
38
+ publish: {
39
+ label: "发布",
40
+ type: "primary",
41
+ icon: "fa fa-send"
42
+ },
43
+ agree: {
44
+ label: "同意",
45
+ type: "primary",
46
+ icon: "fa fa-check-square-o"
47
+ },
48
+ disagree: {
49
+ label: "不同意",
50
+ type: "primary",
51
+ icon: "fa fa-mail-reply"
52
+ },
53
+ reject: {
54
+ label: "退回",
55
+ type: "primary",
56
+ icon: "fa fa-reply"
57
+ },
58
+ finish: {
59
+ label: "完成",
60
+ type: "primary",
61
+ icon: "fa fa-check-square"
62
+ },
63
+ enable: {
64
+ label: "启用",
65
+ type: "primary",
66
+ icon: "el-icon-circle-check"
67
+ },
68
+ exp: {
69
+ label: "导出",
70
+ type: "primary",
71
+ icon: "el-icon-download"
72
+ },
73
+ imp: {
74
+ label: "导入",
75
+ type: "primary",
76
+ icon: "el-icon-upload"
77
+ },
78
+ del: {
79
+ label: "删除",
80
+ type: "primary",
81
+ icon: "el-icon-delete"
82
+ },
83
+ disabled: {
84
+ label: "禁用",
85
+ type: "primary",
86
+ icon: "el-icon-remove-outline"
87
+ },
88
+ reload: {
89
+ label: "刷新",
90
+ type: "primary",
91
+ icon: "el-icon-refresh"
92
+ },
93
+ search: {
94
+ label: "搜索",
95
+ icon: "el-icon-search",
96
+ separateLine: !1
97
+ }
98
+ }, d = {
99
+ name: "Toolbar",
100
+ provide() {
101
+ return {
102
+ toolbar: this
103
+ };
104
+ },
105
+ props: {
106
+ searchable: Boolean,
107
+ buttons: {
108
+ type: Array,
109
+ default: () => ["back"]
110
+ },
111
+ back: {
112
+ type: Function
113
+ },
114
+ cancel: {
115
+ type: Function
116
+ },
117
+ emitter: {
118
+ type: String,
119
+ default: "self"
120
+ },
121
+ footer: Boolean,
122
+ label: {
123
+ type: Object,
124
+ default: () => ({})
125
+ }
126
+ },
127
+ methods: {
128
+ goBack() {
129
+ const e = this.$route.path;
130
+ this.$bus("closeTab", e, this);
131
+ },
132
+ fire(e, t) {
133
+ this.emitter === "parent" ? this.$parent && this.$parent.$emit(e, t, this) : this.$emit(e, t, this);
134
+ },
135
+ createButton(e, {
136
+ label: t,
137
+ icon: o,
138
+ type: i,
139
+ separateLine: a = !0
140
+ }) {
141
+ var r;
142
+ const n = this.$createElement;
143
+ let l;
144
+ const s = ((r = this.label) == null ? void 0 : r[e]) || t;
145
+ return ["back", "cancel"].includes(e) ? l = this.goBack : l = (c) => (this.$listeners[e] || b)(c), n("ToolbarButton", {
146
+ attrs: {
147
+ "separate-line": a,
148
+ icon: o,
149
+ label: s,
150
+ footer: this.footer,
151
+ type: i
152
+ },
153
+ on: {
154
+ click: l
155
+ }
156
+ });
157
+ },
158
+ getLeftButtons() {
159
+ var o, i;
160
+ const {
161
+ createButton: e
162
+ } = this;
163
+ return ((i = (o = this.$scopedSlots)["toolbar-left"]) == null ? void 0 : i.call(o)) || this.buttons.map((a) => {
164
+ var l, s, r, c, p;
165
+ const n = u[a];
166
+ return n ? ((s = (l = this.$scopedSlots)[a]) == null ? void 0 : s.call(l)) || e(a, n) : a === "slot" && (p = (c = (r = this.$scopedSlots).default) == null ? void 0 : c.call(r, {
167
+ buttons: this.buttons,
168
+ footer: this.footer
169
+ })) != null ? p : null;
170
+ });
171
+ },
172
+ getRightButtons() {
173
+ var t, o;
174
+ return ((o = (t = this.$scopedSlots)["toolbar-right"]) == null ? void 0 : o.call(t)) || this.getSearchButton();
175
+ },
176
+ getSearchButton() {
177
+ const {
178
+ createButton: e
179
+ } = this;
180
+ return this.searchable ? e("search", u.search) : null;
181
+ }
182
+ },
183
+ render() {
184
+ const e = arguments[0];
185
+ return this.footer ? e("div", {
186
+ class: "footer-bar"
187
+ }, [this.getLeftButtons()]) : e("div", {
188
+ class: "toolbar"
189
+ }, [e("div", {
190
+ class: "toolbar-left"
191
+ }, [this.getLeftButtons()]), e("div", {
192
+ class: "toolbar-right"
193
+ }, [this.getRightButtons()])]);
194
+ }
195
+ };
196
+ let y, m;
197
+ const h = {};
198
+ var _ = /* @__PURE__ */ f(
199
+ d,
200
+ y,
201
+ m,
9
202
  !1,
10
- l,
203
+ g,
11
204
  null,
12
205
  null,
13
206
  null
14
207
  );
15
- function l(u) {
16
- for (let e in n)
17
- this[e] = n[e];
208
+ function g(e) {
209
+ for (let t in h)
210
+ this[t] = h[t];
18
211
  }
19
- const a = /* @__PURE__ */ function() {
20
- return s.exports;
212
+ const S = /* @__PURE__ */ function() {
213
+ return _.exports;
21
214
  }();
22
215
  export {
23
- a as default
216
+ S as default
24
217
  };
@@ -1,23 +1,49 @@
1
- var i = (n, t, e) => new Promise((c, s) => {
2
- var u = (o) => {
1
+ var s = (t, o, e) => new Promise((_, i) => {
2
+ var p = (n) => {
3
3
  try {
4
- a(e.next(o));
5
- } catch (r) {
6
- s(r);
4
+ a(e.next(n));
5
+ } catch (l) {
6
+ i(l);
7
7
  }
8
- }, p = (o) => {
8
+ }, u = (n) => {
9
9
  try {
10
- a(e.throw(o));
11
- } catch (r) {
12
- s(r);
10
+ a(e.throw(n));
11
+ } catch (l) {
12
+ i(l);
13
13
  }
14
- }, a = (o) => o.done ? c(o.value) : Promise.resolve(o.value).then(u, p);
15
- a((e = e.apply(n, t)).next());
14
+ }, a = (n) => n.done ? _(n.value) : Promise.resolve(n.value).then(p, u);
15
+ a((e = e.apply(t, o)).next());
16
16
  });
17
- import { isFunction as f } from "@web-utils/core";
18
- import { s as d, r as _ } from "../chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs";
19
- import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
20
- const y = {
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() {
21
+ var t = this, o = t.$createElement, e = t._self._c || o;
22
+ return t.footer || t.toolbar.footer ? e(r, {
23
+ attrs: {
24
+ disabled: t.disabled || t.loading,
25
+ type: t.type
26
+ },
27
+ on: {
28
+ click: t.onClick
29
+ }
30
+ }, [t._v(" " + t._s(t.label) + " ")]) : e("span", {
31
+ staticClass: "form-toolbar-button"
32
+ }, [e(r, {
33
+ attrs: {
34
+ icon: t.icon,
35
+ type: "text",
36
+ disabled: t.disabled || t.loading,
37
+ size: "mini"
38
+ },
39
+ on: {
40
+ click: t.onClick
41
+ }
42
+ }, [t._v(" " + t._s(t.label) + " ")]), t.separateLine ? e("span", {
43
+ staticClass: "separate-line"
44
+ }) : t._e()], 1);
45
+ }, b = [];
46
+ const v = {
21
47
  name: "ToolbarButton",
22
48
  inject: {
23
49
  toolbar: {
@@ -47,36 +73,36 @@ const y = {
47
73
  };
48
74
  },
49
75
  methods: {
50
- onClick(n) {
51
- return i(this, null, function* () {
76
+ onClick(t) {
77
+ return s(this, null, function* () {
52
78
  this.loading = !0;
53
- const { click: t } = this.$listeners;
54
- if (f(t))
79
+ const { click: o } = this.$listeners;
80
+ if (d(o))
55
81
  try {
56
- yield t(n);
82
+ yield o(t);
57
83
  } catch (e) {
58
84
  }
59
85
  this.loading = !1;
60
86
  });
61
87
  }
62
88
  }
63
- }, l = {};
64
- var g = /* @__PURE__ */ m(
65
- y,
66
- _,
67
- d,
89
+ }, c = {};
90
+ var y = /* @__PURE__ */ f(
91
+ v,
92
+ m,
93
+ b,
68
94
  !1,
69
- h,
95
+ g,
70
96
  null,
71
97
  null,
72
98
  null
73
99
  );
74
- function h(n) {
75
- for (let t in l)
76
- this[t] = l[t];
100
+ function g(t) {
101
+ for (let o in c)
102
+ this[o] = c[o];
77
103
  }
78
104
  const x = /* @__PURE__ */ function() {
79
- return g.exports;
105
+ return y.exports;
80
106
  }();
81
107
  export {
82
108
  x as default
package/verify/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as n } from "../chunks/util.7844e2c2.mjs";
1
+ import { s as n } from "../chunks/util.ae730cde.mjs";
2
2
  import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var l = function() {
4
4
  var t = this, e = t.$createElement, s = t._self._c || e;
@@ -10,7 +10,7 @@ var u = (n, t, e) => t in n ? d(n, t, { enumerable: !0, configurable: !0, writab
10
10
  v.call(t, e) && u(n, e, t[e]);
11
11
  return n;
12
12
  }, c = (n, t) => g(n, y(t));
13
- import { g as b } from "../chunks/index.d91bd77a.mjs";
13
+ import { g as b } from "../chunks/index.57f871af.mjs";
14
14
  import { n as S } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
15
15
  const k = {
16
16
  name: "Watermark",
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": "3.0.2",
5
+ "version": "3.0.3",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",