@web-utils/component 4.0.0 → 4.0.2

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 (172) hide show
  1. package/awesome-button/index.mjs +25 -55
  2. package/base.css +1 -1
  3. package/card/style.css +1 -1
  4. package/carousel/style.css +1 -1
  5. package/chat/style.css +1 -1
  6. package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
  7. package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
  8. package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
  9. package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
  10. package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
  11. package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
  12. package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
  13. package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
  14. package/chunks/configComponents.BDhlZU8F.mjs +23 -0
  15. package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
  16. package/chunks/core.DJEgjQW6.mjs +54 -0
  17. package/chunks/dictionary.DqiP9x2m.mjs +25 -0
  18. package/chunks/dictionary.DsN-2ukC.mjs +70 -0
  19. package/chunks/form-input.B8z37eqj.mjs +31 -0
  20. package/chunks/form-item.D-H-wCPE.mjs +233 -0
  21. package/chunks/form-validate.CVarNHKX.mjs +12 -0
  22. package/chunks/helper.BiMLcEEk.mjs +41 -0
  23. package/chunks/index.9OxHjTIE.mjs +16 -0
  24. package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
  25. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  26. package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
  27. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  28. package/color-picker/index.mjs +19 -37
  29. package/comment/style.css +1 -1
  30. package/confirm-button/index.mjs +1 -1
  31. package/confirmable/index.mjs +1 -1
  32. package/context-menu/style.css +1 -1
  33. package/count-up/index.mjs +13 -24
  34. package/custom-scrollbar/index.mjs +1 -2
  35. package/data-operatext/style.css +1 -1
  36. package/data-panel/style.css +1 -1
  37. package/data-pay/style.css +1 -1
  38. package/data-price/style.css +1 -1
  39. package/data-rotate/style.css +1 -1
  40. package/data-table-picker/index.mjs +1 -1
  41. package/data-tabs/style.css +1 -1
  42. package/dialog-form/index.mjs +16 -28
  43. package/dynamic-table/style.css +1 -1
  44. package/easy-popup/index.mjs +22 -40
  45. package/easy-popup/style.css +1 -1
  46. package/editable-tree/index.mjs +203 -250
  47. package/editable-tree/style.css +1 -1
  48. package/element-dialog/index.mjs +30 -52
  49. package/element-dialog/style.css +1 -1
  50. package/flex-column/index.mjs +13 -25
  51. package/flex-item/index.mjs +15 -27
  52. package/flex-row/index.mjs +13 -25
  53. package/flow-designer/index.mjs +343 -374
  54. package/flow-designer/style.css +1 -1
  55. package/flow-viewer/index.mjs +64 -91
  56. package/form-block/index.mjs +33 -26
  57. package/form-card/index.mjs +25 -0
  58. package/form-cascader/index.mjs +70 -67
  59. package/form-checkbox/index.mjs +71 -0
  60. package/form-checkbox-group/index.mjs +33 -53
  61. package/form-date-picker/index.mjs +44 -73
  62. package/form-holder/index.mjs +54 -40
  63. package/form-holder/style.css +1 -0
  64. package/form-input/index.mjs +62 -40
  65. package/form-input-cron-expression/index.mjs +77 -0
  66. package/form-input-cron-expression/style.css +1 -0
  67. package/form-input-email/index.mjs +21 -33
  68. package/form-input-id-card/index.mjs +25 -38
  69. package/form-input-number/index.mjs +39 -42
  70. package/form-input-number/style.css +1 -1
  71. package/form-input-phone-number/index.mjs +26 -37
  72. package/form-input-tag/index.mjs +32 -34
  73. package/form-input-time/index.mjs +22 -37
  74. package/form-item/index.mjs +109 -101
  75. package/form-item/style.css +1 -1
  76. package/form-item-config-provider/index.mjs +18 -10
  77. package/form-item-group/index.mjs +73 -69
  78. package/form-item-group/style.css +1 -1
  79. package/form-radio-group/index.mjs +41 -36
  80. package/form-radio-group/style.css +1 -1
  81. package/form-select/index.mjs +142 -75
  82. package/form-select/style.css +1 -0
  83. package/form-switch/index.mjs +29 -34
  84. package/form-table/index.mjs +85 -0
  85. package/form-table-plus/index.mjs +109 -0
  86. package/form-textarea/index.mjs +23 -35
  87. package/form-tree-select/index.mjs +72 -0
  88. package/form-tree-select/style.css +1 -0
  89. package/form-tree-select-multiple/index.mjs +78 -0
  90. package/form-view/index.mjs +37 -69
  91. package/form-view/style.css +1 -1
  92. package/fy-curd/index.mjs +131 -140
  93. package/fy-curd/style.css +1 -1
  94. package/fy-draggable/index.mjs +16 -26
  95. package/fy-draggable/style.css +1 -1
  96. package/fy-dynamic/index.mjs +48 -57
  97. package/fy-empty/style.css +1 -1
  98. package/fy-form/style.css +1 -1
  99. package/fy-form-design/index.mjs +314 -339
  100. package/fy-form-design/style.css +1 -1
  101. package/fy-input-map/index.mjs +40 -50
  102. package/fy-input-map/style.css +1 -1
  103. package/fy-input-table/index.mjs +31 -41
  104. package/fy-u-editor/index.mjs +77 -103
  105. package/fy-upload/style.css +1 -1
  106. package/highlight-j-s/style.css +1 -1
  107. package/image-cropper/index.mjs +14 -65
  108. package/image-preview/index.mjs +17 -45
  109. package/image-preview/style.css +1 -1
  110. package/image-viewer/style.css +1 -1
  111. package/index.mjs +666 -496
  112. package/input-number/index.mjs +64 -9
  113. package/keyboard/style.css +1 -1
  114. package/monaco-editor/index.mjs +43 -71
  115. package/name-avatar/style.css +1 -1
  116. package/package.json +5 -4
  117. package/page-index/index.mjs +30 -54
  118. package/page-index-top/index.mjs +25 -47
  119. package/pageable-table/index.mjs +385 -218
  120. package/pageable-table/style.css +1 -1
  121. package/pageable-view/index.mjs +56 -95
  122. package/photo-swipe/index.mjs +51 -74
  123. package/picker-table-view/index.mjs +117 -0
  124. package/present-view/index.mjs +43 -77
  125. package/present-view/style.css +1 -1
  126. package/resize-observer/index.mjs +1 -1
  127. package/resize-observer/style.css +1 -1
  128. package/search/style.css +1 -1
  129. package/search-popover/index.mjs +28 -48
  130. package/search-popover/style.css +1 -1
  131. package/sign/index.mjs +1 -1
  132. package/sign-panel/style.css +1 -1
  133. package/skeleton-panel/index.mjs +38 -0
  134. package/skeleton-panel/style.css +1 -0
  135. package/split-pane/index.mjs +31 -49
  136. package/split-pane/style.css +1 -1
  137. package/sub-table/index.mjs +206 -0
  138. package/sub-table/style.css +1 -0
  139. package/sub-table-plus/index.mjs +231 -0
  140. package/sub-table-plus/style.css +1 -0
  141. package/swiper/index.mjs +18 -38
  142. package/swiper/style.css +1 -1
  143. package/tab/index.mjs +1 -1
  144. package/tab/style.css +1 -1
  145. package/tab-item/index.mjs +2 -2
  146. package/table-column/index.mjs +166 -37
  147. package/table-column/style.css +1 -0
  148. package/table-view/index.mjs +177 -132
  149. package/table-view/style.css +1 -1
  150. package/tabs-view/index.mjs +104 -0
  151. package/tabs-view/style.css +1 -0
  152. package/tag-render/index.mjs +13 -24
  153. package/toolbar/index.mjs +115 -58
  154. package/toolbar/style.css +1 -1
  155. package/toolbar-button/index.mjs +92 -48
  156. package/vue-cron/index.mjs +47 -65
  157. package/vue-qr-code/index.mjs +14 -32
  158. package/vue-quill-editor/index.mjs +13 -24
  159. package/vue-tags-input/index.mjs +10 -21
  160. package/vue-tree-select/index.mjs +352 -393
  161. package/vue-tree-select/style.css +1 -1
  162. package/vue-video-player/index.mjs +34 -63
  163. package/watermark/index.mjs +21 -31
  164. package/web-types.json +9240 -3840
  165. package/x-input-tag/index.mjs +29 -61
  166. package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
  167. package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
  168. package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
  169. package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
  170. package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
  171. package/toolbar-button/style.css +0 -1
  172. /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
@@ -1,22 +1,10 @@
1
- var p = Object.defineProperty;
2
- var n = Object.getOwnPropertySymbols;
3
- var l = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
4
- var s = (o, e, t) => e in o ? p(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, a = (o, e) => {
5
- for (var t in e || (e = {}))
6
- l.call(e, t) && s(o, t, e[t]);
7
- if (n)
8
- for (var t of n(e))
9
- c.call(e, t) && s(o, t, e[t]);
10
- return o;
11
- };
12
- import { B as u } from "../chunks/util.DqFv_pWg.mjs";
13
- import { VueCropper as f } from "vue-cropper";
14
- import m from "vue";
15
- import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
16
- const r = {
1
+ import { B as r } from "../chunks/util.DqFv_pWg.mjs";
2
+ import { VueCropper as n } from "vue-cropper";
3
+ import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ const p = {
17
5
  name: "ImageCropper",
18
6
  components: {
19
- VueCropper: f
7
+ VueCropper: n
20
8
  },
21
9
  data() {
22
10
  return {
@@ -49,7 +37,7 @@ const r = {
49
37
  this.visible = !1, this.$refs.cropper.getCropData((o) => {
50
38
  var t, i;
51
39
  let e = o;
52
- this.option.type === "file" && (e = u(o, `${(/* @__PURE__ */ new Date()).getTime()}.${this.option.outputType}`)), (i = (t = this.option).callback) == null || i.call(t, e);
40
+ this.option.type === "file" && (e = r(o, `${(/* @__PURE__ */ new Date()).getTime()}.${this.option.outputType}`)), (i = (t = this.option).callback) == null || i.call(t, e);
53
41
  });
54
42
  },
55
43
  cancel(o) {
@@ -57,49 +45,10 @@ const r = {
57
45
  o == null || o(), this.visible = !1, (t = (e = this.option).cancel) == null || t.call(e), typeof this.option.beforeClose == "function" && this.option.beforeClose(), this.$destroy(), this.$el.remove();
58
46
  }
59
47
  }
60
- }, d = (o = {}) => {
61
- const e = m.extend(r), t = a({
62
- outputSize: 1,
63
- // 裁剪生成图片的质量(可选0.1 - 1)
64
- outputType: "jpeg",
65
- // 裁剪生成图片的格式(jpeg || png || webp)
66
- info: !0,
67
- // 图片大小信息
68
- canScale: !0,
69
- // 图片是否允许滚轮缩放
70
- autoCrop: !0,
71
- // 是否默认生成截图框
72
- fixed: !1,
73
- // 是否开启截图框宽高固定比例
74
- full: !1,
75
- // false按原比例裁切图片,不失真
76
- fixedBox: !1,
77
- // 固定截图框大小,不允许改变
78
- canMove: !0,
79
- // 上传图片是否可以移动
80
- canMoveBox: !0,
81
- // 截图框能否拖动
82
- original: !1,
83
- // 上传图片按照原始比例渲染
84
- centerBox: !0,
85
- // 截图框是否被限制在图片里面
86
- height: !0,
87
- // 是否按照设备的dpr 输出等比例图片
88
- infoTrue: !1,
89
- // true为展示真实输出图片宽高,false展示看到的截图框宽高
90
- enlarge: 1
91
- }, o), i = new e({
92
- data: {
93
- option: t
94
- }
95
- }).$mount();
96
- return document.body.appendChild(i.$el), i.show(), i;
97
48
  };
98
- r.imageCropper = d;
99
- const v = r;
100
- var g = function() {
49
+ var a = function() {
101
50
  var e = this, t = e._self._c;
102
- return e._self._setupProxy, t("ElementDialog", { staticClass: "avue-cropper", attrs: { visible: e.visible, "before-close": e.cancel, title: "图片剪裁", "close-on-press-escape": !1, "close-on-click-modal": !1, "modal-append-to-body": e.$AVUE.modalAppendToBody, "append-to-body": e.$AVUE.appendToBody, width: "1000px" }, on: { "update:visible": function(i) {
51
+ return t("ElementDialog", { staticClass: "avue-cropper", attrs: { visible: e.visible, "before-close": e.cancel, title: "图片剪裁", "close-on-press-escape": !1, "close-on-click-modal": !1, "modal-append-to-body": e.$AVUE.modalAppendToBody, "append-to-body": e.$AVUE.appendToBody, width: "1000px" }, on: { "update:visible": function(i) {
103
52
  e.visible = i;
104
53
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
105
54
  return [t("ElButton", { attrs: { size: "small", type: "primary" }, on: { click: e.submit } }, [e._v(" 确 定 ")]), t("ElButton", { attrs: { size: "small" }, on: { click: function(i) {
@@ -110,15 +59,15 @@ var g = function() {
110
59
  } } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-zoom-out" }, on: { click: function(i) {
111
60
  return e.changeScale(-1);
112
61
  } } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-refresh-left" }, on: { click: e.rotateLeft } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-refresh-right" }, on: { click: e.rotateRight } })], 1)]), t("div", { staticClass: "show-preview" }, [t("div", { staticClass: "preview", style: e.previews.div }, [t("img", { style: e.previews.img, attrs: { src: e.previews.url, alt: "" } })])])])]);
113
- }, y = [], x = /* @__PURE__ */ h(
114
- v,
115
- g,
116
- y,
62
+ }, l = [], c = /* @__PURE__ */ s(
63
+ p,
64
+ a,
65
+ l,
117
66
  !1,
118
67
  null,
119
68
  null
120
69
  );
121
- const w = x.exports;
70
+ const h = c.exports;
122
71
  export {
123
- w as default
72
+ h as default
124
73
  };
@@ -1,19 +1,7 @@
1
- var m = Object.defineProperty;
2
- var l = Object.getOwnPropertySymbols;
3
- var h = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
4
- var r = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, c = (i, e) => {
5
- for (var t in e || (e = {}))
6
- h.call(e, t) && r(i, t, e[t]);
7
- if (l)
8
- for (var t of l(e))
9
- v.call(e, t) && r(i, t, e[t]);
10
- return i;
11
- };
12
- import { i as _ } from "../chunks/util.DqFv_pWg.mjs";
13
- import { setPx as u } from "@web-utils/core";
14
- import f from "vue";
15
- import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
16
- const o = {
1
+ import { i as r } from "../chunks/util.DqFv_pWg.mjs";
2
+ import { setPx as o } from "@web-utils/core";
3
+ import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ const u = {
17
5
  name: "ImagePreview",
18
6
  data() {
19
7
  return {
@@ -30,8 +18,8 @@ const o = {
30
18
  computed: {
31
19
  styleBoxName() {
32
20
  return {
33
- marginLeft: u(this.left),
34
- marginTop: u(this.top)
21
+ marginLeft: o(this.left),
22
+ marginTop: o(this.top)
35
23
  };
36
24
  },
37
25
  styleName() {
@@ -65,7 +53,7 @@ const o = {
65
53
  });
66
54
  },
67
55
  isMediaType(i) {
68
- return _(i.url, i.type);
56
+ return r(i.url, i.type);
69
57
  },
70
58
  subScale() {
71
59
  this.scale !== 0.2 && (this.scale = parseFloat((this.scale - 0.2).toFixed(2)));
@@ -80,8 +68,8 @@ const o = {
80
68
  let e = i.clientX, t = i.clientY;
81
69
  const s = 2;
82
70
  document.onmousemove = (a) => {
83
- const n = a.clientX - e, d = a.clientY - t;
84
- e = a.clientX, t = a.clientY, this.left = this.left + n * s, this.top = this.top + d * s;
71
+ const n = a.clientX - e, l = a.clientY - t;
72
+ e = a.clientX, t = a.clientY, this.left = this.left + n * s, this.top = this.top + l * s;
85
73
  }, document.onmouseup = () => {
86
74
  document.onmousemove = null, document.onmouseup = null;
87
75
  };
@@ -93,26 +81,10 @@ const o = {
93
81
  this.isShow = !1, typeof this.ops.beforeClose == "function" && this.ops.beforeClose(this.datas, this.index), this.$destroy(), this.$el.remove();
94
82
  }
95
83
  }
96
- }, g = (i = [], e = 0, t = {}) => {
97
- const s = f.extend(o), a = {
98
- datas: i,
99
- index: e,
100
- ops: c({
101
- closeOnClickModal: !1,
102
- beforeClose: null,
103
- click: null,
104
- modal: !0
105
- }, t)
106
- }, n = new s({
107
- data: a
108
- }).$mount();
109
- return document.body.appendChild(n.$el), n.isShow = !0, n;
110
84
  };
111
- o.imagePreview = g;
112
- const w = o;
113
- var C = function() {
85
+ var d = function() {
114
86
  var e = this, t = e._self._c;
115
- return e._self._setupProxy, e.isShow ? t("div", { staticClass: "avue-image-preview" }, [e.ops.modal ? t("div", { staticClass: "avue-image-preview__mask", on: { click: e.close } }) : e._e(), t("span", { staticClass: "el-image-viewer__btn el-image-viewer__close", on: { click: e.close } }, [t("i", { staticClass: "el-icon-circle-close" })]), e.isRrrow ? t("span", { staticClass: "el-image-viewer__btn el-image-viewer__prev", on: { click: function(s) {
87
+ return e.isShow ? t("div", { staticClass: "avue-image-preview" }, [e.ops.modal ? t("div", { staticClass: "avue-image-preview__mask", on: { click: e.close } }) : e._e(), t("span", { staticClass: "el-image-viewer__btn el-image-viewer__close", on: { click: e.close } }, [t("i", { staticClass: "el-icon-circle-close" })]), e.isRrrow ? t("span", { staticClass: "el-image-viewer__btn el-image-viewer__prev", on: { click: function(s) {
116
88
  return e.handlePrev();
117
89
  } } }, [t("i", { staticClass: "el-icon-arrow-left" })]) : e._e(), e.isRrrow ? t("span", { staticClass: "el-image-viewer__btn el-image-viewer__next", on: { click: function(s) {
118
90
  return e.handleNext();
@@ -130,15 +102,15 @@ var C = function() {
130
102
  } } }), t("i", { staticClass: "el-icon-refresh-right", on: { click: function(s) {
131
103
  e.rotate = e.rotate + 90;
132
104
  } } })])])]) : e._e();
133
- }, x = [], k = /* @__PURE__ */ p(
134
- w,
135
- C,
136
- x,
105
+ }, h = [], m = /* @__PURE__ */ c(
106
+ u,
107
+ d,
108
+ h,
137
109
  !1,
138
110
  null,
139
111
  null
140
112
  );
141
- const N = k.exports;
113
+ const p = m.exports;
142
114
  export {
143
- N as default
115
+ p as default
144
116
  };
@@ -1 +1 @@
1
- .avue-img--center{justify-content:center;align-items:center;display:flex}.avue-img--fullscreen .el-dialog__body{height:100%}.avue-image-preview{z-index:9998;width:100%;height:100%;transition:all .5s;position:fixed;top:0;left:0}.avue-image-preview .el-image-viewer__close i{color:#fff}.avue-image-preview .el-image-viewer__btn{z-index:1024}.avue-image-preview img{cursor:pointer;transition:all .5s}.avue-image-preview__file{text-align:center}.avue-image-preview__file a{color:#fff}.avue-image-preview__file i{cursor:pointer;font-size:80px}.avue-image-preview__mask{background:rgba(0,0,0,.5);width:100%;height:100%;position:absolute;top:0;left:0}.avue-image-preview__box{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.avue-image-preview__box .el-carousel{width:90%;height:100%}.avue-image-preview__box .el-carousel__container{height:100%}.avue-image-preview__box .el-carousel__item{justify-content:center;align-items:center;width:100%;height:100%;display:flex}
1
+ .avue-img--center{justify-content:center;align-items:center;display:flex}.avue-img--fullscreen .el-dialog__body{height:100%}.avue-image-preview{z-index:9998;width:100%;height:100%;transition:all .5s;position:fixed;top:0;left:0}.avue-image-preview .el-image-viewer__close i{color:#fff}.avue-image-preview .el-image-viewer__btn{z-index:1024}.avue-image-preview img{cursor:pointer;transition:all .5s}.avue-image-preview__file{text-align:center}.avue-image-preview__file a{color:#fff}.avue-image-preview__file i{cursor:pointer;font-size:80px}.avue-image-preview__mask{background:#00000080;width:100%;height:100%;position:absolute;top:0;left:0}.avue-image-preview__box{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.avue-image-preview__box .el-carousel{width:90%;height:100%}.avue-image-preview__box .el-carousel__container{height:100%}.avue-image-preview__box .el-carousel__item{justify-content:center;align-items:center;width:100%;height:100%;display:flex}
@@ -1 +1 @@
1
- .image-viewer .image-item{cursor:pointer;background-color:transparent;background-position:50%;background-repeat:no-repeat;background-size:cover;border:none;outline:none;width:100px;height:100px;display:inline-block}.viewer-backdrop{background-color:#5e5e5e}
1
+ .image-viewer .image-item{cursor:pointer;background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:cover;border:none;outline:none;width:100px;height:100px;display:inline-block}.viewer-backdrop{background-color:#5e5e5e}