@web-utils/component 2.7.12 → 2.7.14

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 (110) hide show
  1. package/dist/chunks/{ConfigSelect.vue_vue_type_template_lang.e7a9d5b7.js → ConfigSelect.vue_vue_type_template_lang.dfc91f07.js} +20 -15
  2. package/dist/chunks/{ConfigTable.vue_vue_type_template_lang.e9060616.js → ConfigTable.vue_vue_type_template_lang.b27540fd.js} +1 -1
  3. package/dist/chunks/{ConfigUpload.vue_vue_type_template_lang.48dd814b.js → ConfigUpload.vue_vue_type_template_lang.129c0ced.js} +18 -13
  4. package/dist/chunks/{WidgetConfig.vue_vue_type_template_lang.d3cd0479.js → WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js} +16 -16
  5. package/dist/chunks/{WidgetForm.vue_vue_type_template_lang.fbb7d6b7.js → WidgetForm.vue_vue_type_template_lang.d4b05679.js} +10 -10
  6. package/dist/chunks/{WidgetFormGroup.vue_vue_type_template_lang.47789aae.js → WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js} +13 -13
  7. package/dist/chunks/{WidgetFormTable.vue_vue_type_template_lang.30625146.js → WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js} +4 -3
  8. package/dist/chunks/{dataformat.d3fd2d1b.js → dataformat.65b92bfe.js} +36 -35
  9. package/dist/chunks/detail.d67573b1.js +28 -0
  10. package/dist/chunks/dic.70feb9b4.js +135 -0
  11. package/dist/chunks/{event.43b42228.js → event.dd6f522d.js} +3 -3
  12. package/dist/chunks/{init.3b47bb80.js → init.7c58eb34.js} +10 -10
  13. package/dist/chunks/{monaco.1dbdc960.js → monaco.cefcb9f5.js} +92 -85
  14. package/dist/chunks/{packages.6f252850.js → packages.1fc9ccba.js} +1 -1
  15. package/dist/chunks/slot.4b391395.js +27 -0
  16. package/dist/chunks/util.23fe58fb.js +261 -0
  17. package/dist/components/afd-column/index.js +1 -1
  18. package/dist/components/affix/index.js +2 -2
  19. package/dist/components/base.css +1 -1
  20. package/dist/components/carousel/index.js +2 -2
  21. package/dist/components/chat/index.js +9 -9
  22. package/dist/components/column/index.js +25 -25
  23. package/dist/components/column-default/index.js +3 -2
  24. package/dist/components/column-dynamic/index.js +1 -1
  25. package/dist/components/column-menu/index.js +11 -11
  26. package/dist/components/column-slot/index.js +54 -53
  27. package/dist/components/config-custom/index.js +3 -3
  28. package/dist/components/config-event/index.js +5 -5
  29. package/dist/components/config-rate/index.js +1 -1
  30. package/dist/components/config-rate/style.css +1 -1
  31. package/dist/components/config-select/index.js +3 -3
  32. package/dist/components/config-switch/index.js +5 -5
  33. package/dist/components/config-switch/style.css +1 -1
  34. package/dist/components/config-table/index.js +3 -3
  35. package/dist/components/config-tree/index.js +3 -3
  36. package/dist/components/config-tree/style.css +1 -1
  37. package/dist/components/config-upload/index.js +1 -1
  38. package/dist/components/dialog-excel/index.js +37 -40
  39. package/dist/components/dialog-filter/index.js +19 -19
  40. package/dist/components/dialog-form/index.js +1 -1
  41. package/dist/components/element-dialog/index.js +2 -2
  42. package/dist/components/element-dialog/style.css +1 -1
  43. package/dist/components/flow/index.js +17 -18
  44. package/dist/components/flow-node/index.js +1 -1
  45. package/dist/components/form-temp/index.js +3 -3
  46. package/dist/components/fy-array/index.js +2 -2
  47. package/dist/components/fy-cascader/index.js +13 -13
  48. package/dist/components/fy-checkbox/index.js +4 -4
  49. package/dist/components/fy-code/index.js +1 -1
  50. package/dist/components/fy-curd/index.js +68 -69
  51. package/dist/components/fy-date/index.js +1 -1
  52. package/dist/components/fy-dialog-form/index.js +11 -11
  53. package/dist/components/fy-draggable/index.js +5 -7
  54. package/dist/components/fy-dynamic/index.js +32 -28
  55. package/dist/components/fy-empty/index.js +1 -1
  56. package/dist/components/fy-form/index.js +153 -141
  57. package/dist/components/fy-form-design/index.js +31 -31
  58. package/dist/components/fy-input/index.js +60 -46
  59. package/dist/components/fy-input-color/index.js +34 -29
  60. package/dist/components/fy-input-icon/index.js +1 -1
  61. package/dist/components/fy-input-map/index.js +14 -14
  62. package/dist/components/fy-input-number/index.js +1 -1
  63. package/dist/components/fy-input-table/index.js +2 -2
  64. package/dist/components/fy-input-tree/index.js +12 -12
  65. package/dist/components/fy-radio/index.js +1 -1
  66. package/dist/components/fy-rate/index.js +1 -1
  67. package/dist/components/fy-select/index.js +3 -3
  68. package/dist/components/fy-slider/index.js +2 -2
  69. package/dist/components/fy-switch/index.js +1 -1
  70. package/dist/components/fy-tabs/index.js +2 -2
  71. package/dist/components/fy-time/index.js +2 -2
  72. package/dist/components/fy-title/index.js +1 -1
  73. package/dist/components/fy-tree/index.js +3 -3
  74. package/dist/components/fy-u-editor/index.js +26 -24
  75. package/dist/components/fy-upload/index.js +198 -312
  76. package/dist/components/header-menu/index.js +2 -2
  77. package/dist/components/header-search/index.js +16 -15
  78. package/dist/components/image-cropper/index.js +299 -0
  79. package/dist/components/image-cropper/style.css +1 -0
  80. package/dist/components/image-preview/index.js +346 -0
  81. package/dist/components/image-preview/style.css +1 -0
  82. package/dist/components/keyboard/index.js +58 -63
  83. package/dist/components/license/index.js +7 -7
  84. package/dist/components/login/index.js +37 -32
  85. package/dist/components/name-avatar/index.js +1 -1
  86. package/dist/components/pageable-table/index.js +1 -1
  87. package/dist/components/pageable-view/index.js +26 -26
  88. package/dist/components/photo-swipe/index.js +71 -166
  89. package/dist/components/queue/index.js +6 -6
  90. package/dist/components/record-video/index.js +18 -18
  91. package/dist/components/search/index.js +3 -3
  92. package/dist/components/sign/index.js +64 -59
  93. package/dist/components/skeleton/index.js +1 -1
  94. package/dist/components/table-page/index.js +5 -5
  95. package/dist/components/text-ellipsis/index.js +11 -10
  96. package/dist/components/verify/index.js +25 -25
  97. package/dist/components/widget-config/index.js +8 -8
  98. package/dist/components/widget-form/index.js +7 -7
  99. package/dist/components/widget-form-group/index.js +8 -8
  100. package/dist/components/widget-form-item/index.js +14 -13
  101. package/dist/components/widget-form-table/index.js +14 -14
  102. package/dist/index.css +109 -40
  103. package/dist/index.es.js +4069 -3731
  104. package/package.json +6 -56
  105. package/web-types.json +28 -10
  106. package/dist/chunks/detail.ac4d421a.js +0 -28
  107. package/dist/chunks/dic.79d9f595.js +0 -133
  108. package/dist/chunks/slot.1b8d2b1b.js +0 -27
  109. package/dist/chunks/util.80e28481.js +0 -250
  110. package/dist/components/photo-swipe/style.css +0 -1
@@ -1,5 +1,5 @@
1
- import { p as r, e as l } from "../../chunks/event.43b42228.js";
2
- import { s as i } from "../../chunks/util.80e28481.js";
1
+ import { p as r, e as l } from "../../chunks/event.dd6f522d.js";
2
+ import { s as i } from "../../chunks/util.23fe58fb.js";
3
3
  import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var p = function() {
5
5
  var t = this, o = t.$createElement, s = t._self._c || o;
@@ -1,4 +1,4 @@
1
- import { p as c, e as l } from "../../chunks/event.43b42228.js";
1
+ import { p as c, e as l } from "../../chunks/event.dd6f522d.js";
2
2
  import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  var o = function() {
4
4
  var e = this, t = e.$createElement, a = e._self._c || t;
@@ -19,7 +19,7 @@ var r = function() {
19
19
  return e("ElTabPane", {
20
20
  key: s,
21
21
  attrs: {
22
- name: s + "",
22
+ name: `${s}`,
23
23
  disabled: n.disabled
24
24
  }
25
25
  }, [e("span", {
@@ -64,7 +64,7 @@ const c = {
64
64
  },
65
65
  methods: {
66
66
  changeTabs(t) {
67
- this.active = t + "";
67
+ this.active = `${t}`;
68
68
  }
69
69
  }
70
70
  }, i = {};
@@ -1,4 +1,4 @@
1
- import { p as o, e as l } from "../../chunks/event.43b42228.js";
1
+ import { p as o, e as l } from "../../chunks/event.dd6f522d.js";
2
2
  import { isBlank as i } from "@web-utils/core";
3
3
  import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var c = function() {
@@ -59,7 +59,7 @@ const d = {
59
59
  },
60
60
  computed: {
61
61
  componentName() {
62
- let e = this.pickerOptions || {};
62
+ const e = this.pickerOptions || {};
63
63
  return e.start || e.end || e.step ? "elTimeSelect" : "elTimePicker";
64
64
  },
65
65
  isRange() {
@@ -1,4 +1,4 @@
1
- import { p as r, e as _ } from "../../chunks/event.43b42228.js";
1
+ import { p as r, e as _ } from "../../chunks/event.dd6f522d.js";
2
2
  import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  var o = function() {
4
4
  var e = this, t = e.$createElement, n = e._self._c || t;
@@ -1,4 +1,4 @@
1
- import { s as d, o as l, k as r } from "../../chunks/util.80e28481.js";
1
+ import { s as d, o as l, k as r } from "../../chunks/util.23fe58fb.js";
2
2
  import { p as u } from "../../chunks/permission.ce5d2121.js";
3
3
  import { isBlank as p } from "@web-utils/core";
4
4
  import { n as f } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
@@ -298,7 +298,7 @@ const v = {
298
298
  methods: {
299
299
  optVal: l,
300
300
  menuIcon(e) {
301
- return l(this.option[e + "Text"], e);
301
+ return l(this.option[`${e}Text`], e);
302
302
  },
303
303
  getPermission(e) {
304
304
  return typeof this.permission == "function" ? this.permission(e, this.node.data || {}) : p(this.permission[e]) ? !0 : this.permission[e];
@@ -359,7 +359,7 @@ const v = {
359
359
  n = n || this.form;
360
360
  const o = n[this.valueKey];
361
361
  this.node.data = this.form;
362
- let { parentList: s, index: a } = this.findData(o);
362
+ const { parentList: s, index: a } = this.findData(o);
363
363
  if (s) {
364
364
  const h = s.splice(a, 1)[0];
365
365
  n[this.childrenKey] = h[this.childrenKey], s.splice(a, 0, n);
@@ -1,14 +1,14 @@
1
1
  import "@wangeditor/editor/dist/css/style.css";
2
2
  import { createEditor as p, createToolbar as f } from "@wangeditor/editor";
3
- import { i as m } from "../../chunks/util.80e28481.js";
3
+ import { i as m } from "../../chunks/util.23fe58fb.js";
4
4
  import { n as y } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
5
5
  const g = (t) => {
6
- let { region: r, endpoint: i, accessKeyId: s, accessKeySecret: e, bucket: n } = t;
6
+ const { region: r, endpoint: i, accessKeyId: s, accessKeySecret: e, bucket: n } = t;
7
7
  return new window.OSS({ region: r, endpoint: i, accessKeyId: s, accessKeySecret: e, bucket: n });
8
8
  }, C = (t, r, i) => {
9
9
  let { scope: s, deadline: e } = i;
10
- var n = JSON.stringify({ scope: s, deadline: e }), a = v(S(n)), c = window.CryptoJS.HmacSHA1(a, r), o = c.toString(window.CryptoJS.enc.Base64), l = t + ":" + _(o) + ":" + a;
11
- return l;
10
+ var n = JSON.stringify({ scope: s, deadline: e }), a = b(S(n)), l = window.CryptoJS.HmacSHA1(a, r), o = l.toString(window.CryptoJS.enc.Base64), c = t + ":" + v(o) + ":" + a;
11
+ return c;
12
12
  };
13
13
  function S(t) {
14
14
  var r, i, s, e;
@@ -147,7 +147,7 @@ new Array(
147
147
  -1,
148
148
  -1
149
149
  );
150
- function v(t) {
150
+ function b(t) {
151
151
  var r, i, s, e, n, a;
152
152
  for (s = t.length, i = 0, r = ""; i < s; ) {
153
153
  if (e = t.charCodeAt(i++) & 255, i == s) {
@@ -162,9 +162,9 @@ function v(t) {
162
162
  }
163
163
  return r;
164
164
  }
165
- var _ = function(t) {
165
+ var v = function(t) {
166
166
  return t = t.replace(/\+/g, "-"), t = t.replace(/\//g, "_"), t;
167
- }, b = function() {
167
+ }, _ = function() {
168
168
  var t = this, r = t.$createElement, i = t._self._c || r;
169
169
  return i("div", {
170
170
  staticClass: "avue-ueditor"
@@ -273,14 +273,14 @@ const F = {
273
273
  readOnly: this.disabled,
274
274
  MENU_CONF: {
275
275
  uploadImage: {
276
- customUpload: async (c) => {
277
- const o = await this.uploadFile(c);
276
+ customUpload: async (l) => {
277
+ const o = await this.uploadFile(l);
278
278
  this.editor.dangerouslyInsertHtml(o);
279
279
  }
280
280
  },
281
281
  uploadVideo: {
282
- customUpload: async (c) => {
283
- const o = await this.uploadFile(c);
282
+ customUpload: async (l) => {
283
+ const o = await this.uploadFile(l);
284
284
  this.editor.dangerouslyInsertHtml(o);
285
285
  }
286
286
  }
@@ -288,12 +288,12 @@ const F = {
288
288
  onFocus: () => {
289
289
  this.$emit("focus", this.value);
290
290
  },
291
- onBlur: (c) => {
292
- const o = c.getHtml();
291
+ onBlur: (l) => {
292
+ const o = l.getHtml();
293
293
  this.$emit("blur", o);
294
294
  },
295
- onChange: (c) => {
296
- const o = c.getHtml();
295
+ onChange: (l) => {
296
+ const o = l.getHtml();
297
297
  this.$emit("input", o);
298
298
  },
299
299
  ...e
@@ -319,7 +319,9 @@ const F = {
319
319
  const s = Object.assign(this.headers, {
320
320
  "Content-Type": "multipart/form-data"
321
321
  });
322
- let e = {}, n, a = new FormData(), c = this.action;
322
+ let e = {}, n;
323
+ const a = new FormData();
324
+ let l = this.action;
323
325
  if (a.append(this.fileName, t), Object.keys(this.data).forEach((o) => {
324
326
  a.append(o, this.data[o]);
325
327
  }), this.isQiniuOSS) {
@@ -328,7 +330,7 @@ const F = {
328
330
  scope: e.scope,
329
331
  deadline: new Date().getTime() + e.deadline * 3600
330
332
  });
331
- a.append("token", o), c = "http://up.qiniu.com/";
333
+ a.append("token", o), l = "http://up.qiniu.com/";
332
334
  } else
333
335
  this.isAliOSS && (e = this.ali, n = g({
334
336
  region: e.region,
@@ -337,10 +339,10 @@ const F = {
337
339
  accessKeySecret: e.accessKeySecret,
338
340
  bucket: e.bucket
339
341
  }));
340
- (() => this.isAliOSS ? n.put(t.name, t) : this.$axios.post(c, a, { headers: s }))().then((o) => {
341
- let l = {};
342
- this.isAliOSS ? (l = o, l.url) : this.isQiniuOSS ? (l = o.data, l.key = e.url + l.key, l.key) : typeof this.resKey == "function" ? l = this.resKey(o.data) : (l = m(o.data, this.resKey), l = l[this.urlKey]);
343
- var h = this.homeUrl + l;
342
+ (() => this.isAliOSS ? n.put(t.name, t) : this.$axios.post(l, a, { headers: s }))().then((o) => {
343
+ let c;
344
+ this.isAliOSS ? c = o : this.isQiniuOSS ? (c = o.data, c.key = e.url + c.key) : typeof this.resKey == "function" ? c = this.resKey(o.data) : (c = m(o.data, this.resKey), c = c[this.urlKey]);
345
+ const h = this.homeUrl + c;
344
346
  r(h);
345
347
  }).catch((o) => {
346
348
  i(o);
@@ -354,7 +356,7 @@ const F = {
354
356
  }, u = {};
355
357
  var A = /* @__PURE__ */ y(
356
358
  F,
357
- b,
359
+ _,
358
360
  x,
359
361
  !1,
360
362
  O,
@@ -366,9 +368,9 @@ function O(t) {
366
368
  for (let r in u)
367
369
  this[r] = u[r];
368
370
  }
369
- const j = /* @__PURE__ */ function() {
371
+ const k = /* @__PURE__ */ function() {
370
372
  return A.exports;
371
373
  }();
372
374
  export {
373
- j as default
375
+ k as default
374
376
  };