@web-utils/component 4.0.6 → 4.0.8

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 (84) hide show
  1. package/chat/index.mjs +3 -2
  2. package/chunks/configComponents.CpKi15WN.mjs +49 -0
  3. package/chunks/{dictionary.D9gKwItv.mjs → dictionary.3O-Io7Vh.mjs} +1 -1
  4. package/chunks/index.BmYCjxZQ.mjs +47 -0
  5. package/confirm-button/index.mjs +14 -9
  6. package/confirmable/index.mjs +13 -8
  7. package/data-table-picker/index.mjs +10 -8
  8. package/editable-tree/index.mjs +3 -2
  9. package/element-dialog/index.mjs +3 -2
  10. package/flex-column/index.mjs +6 -5
  11. package/flex-item/index.mjs +6 -5
  12. package/flex-row/index.mjs +3 -2
  13. package/flow/index.mjs +3 -2
  14. package/flow-node/index.mjs +4 -3
  15. package/form-cascader/index.mjs +17 -13
  16. package/form-checkbox/index.mjs +12 -7
  17. package/form-checkbox-group/index.mjs +14 -9
  18. package/form-date-picker/index.mjs +10 -5
  19. package/form-holder/index.mjs +5 -4
  20. package/form-input/index.mjs +11 -6
  21. package/form-input-cron-expression/index.mjs +13 -8
  22. package/form-input-email/index.mjs +17 -12
  23. package/form-input-id-card/index.mjs +19 -15
  24. package/form-input-number/index.mjs +23 -16
  25. package/form-input-phone-number/index.mjs +12 -8
  26. package/form-input-tag/index.mjs +12 -7
  27. package/form-input-time/index.mjs +7 -2
  28. package/form-item/index.mjs +6 -2
  29. package/form-radio-group/index.mjs +12 -7
  30. package/form-select/index.mjs +6 -2
  31. package/form-switch/index.mjs +12 -7
  32. package/form-table/index.mjs +28 -22
  33. package/form-table-plus/index.mjs +14 -10
  34. package/form-textarea/index.mjs +11 -6
  35. package/form-tree-select/index.mjs +17 -9
  36. package/form-tree-select-multiple/index.mjs +19 -11
  37. package/fy-array/index.mjs +5 -2
  38. package/fy-cascader/index.mjs +17 -13
  39. package/fy-checkbox/index.mjs +23 -19
  40. package/fy-code/index.mjs +10 -9
  41. package/fy-curd/index.mjs +4 -2
  42. package/fy-date/index.mjs +9 -5
  43. package/fy-draggable/index.mjs +3 -2
  44. package/fy-dynamic/index.mjs +14 -11
  45. package/fy-empty/index.mjs +4 -3
  46. package/fy-form/index.mjs +5 -2
  47. package/fy-input/index.mjs +14 -10
  48. package/fy-input-color/index.mjs +15 -11
  49. package/fy-input-icon/index.mjs +8 -4
  50. package/fy-input-map/index.mjs +8 -5
  51. package/fy-input-number/index.mjs +16 -12
  52. package/fy-input-table/index.mjs +5 -2
  53. package/fy-input-tree/index.mjs +5 -2
  54. package/fy-radio/index.mjs +13 -9
  55. package/fy-rate/index.mjs +11 -7
  56. package/fy-select/index.mjs +4 -2
  57. package/fy-slider/index.mjs +10 -7
  58. package/fy-switch/index.mjs +9 -5
  59. package/fy-time/index.mjs +6 -3
  60. package/fy-title/index.mjs +16 -12
  61. package/fy-u-editor/index.mjs +3 -2
  62. package/fy-upload/index.mjs +4 -2
  63. package/image-cropper/index.mjs +3 -2
  64. package/index.mjs +682 -743
  65. package/license/index.mjs +3 -2
  66. package/package.json +1 -1
  67. package/pageable-table/index.mjs +6 -3
  68. package/pageable-view/index.mjs +7 -6
  69. package/photo-swipe/index.mjs +15 -56
  70. package/picker-table-view/index.mjs +24 -23
  71. package/record-video/index.mjs +11 -10
  72. package/resize-observer/index.mjs +3 -2
  73. package/search/index.mjs +4 -2
  74. package/sign/index.mjs +3 -2
  75. package/table-column/index.mjs +6 -3
  76. package/table-view/index.mjs +18 -17
  77. package/tabs-view/index.mjs +1 -1
  78. package/text-ellipsis/index.mjs +3 -2
  79. package/toolbar/index.mjs +4 -3
  80. package/toolbar-button/index.mjs +4 -3
  81. package/verify/index.mjs +8 -7
  82. package/watermark/index.mjs +15 -14
  83. package/web-types.json +1 -1
  84. package/chunks/configComponents.BHkQi547.mjs +0 -45
@@ -1,6 +1,7 @@
1
- import { g as f } from "../chunks/index.9OxHjTIE.mjs";
2
- import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- const p = {
1
+ import { g as p } from "../chunks/index.9OxHjTIE.mjs";
2
+ import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import "@web-utils/core";
4
+ const f = {
4
5
  name: "Watermark",
5
6
  functional: !0,
6
7
  props: {
@@ -47,29 +48,29 @@ const p = {
47
48
  default: "rgba(0,0,0,0)"
48
49
  }
49
50
  },
50
- render(n, { props: { width: l, height: r, text: o, backgroundColor: s, rotate: c, color: u }, data: e }) {
51
- const a = document.createElement("canvas");
52
- a.width = l, a.height = r;
53
- const t = a.getContext("2d");
54
- return t.font = "15px Verdana", t.fillStyle = s, t.fillRect(0, 0, l, r), t.translate(l / 2, r / 2), t.rotate(c * Math.PI / 180), t.fillStyle = u, t.textAlign = "center", t.textBaseline = "middle", t.fillText(o, 0, 0), n("div", {
55
- class: f(e.class, `watermark ${e.staticClass || ""}`),
51
+ render(n, { props: { width: a, height: l, text: o, backgroundColor: s, rotate: c, color: i }, data: e }) {
52
+ const r = document.createElement("canvas");
53
+ r.width = a, r.height = l;
54
+ const t = r.getContext("2d");
55
+ return t.font = "15px Verdana", t.fillStyle = s, t.fillRect(0, 0, a, l), t.translate(a / 2, l / 2), t.rotate(c * Math.PI / 180), t.fillStyle = i, t.textAlign = "center", t.textBaseline = "middle", t.fillText(o, 0, 0), n("div", {
56
+ class: p(e.class, `watermark ${e.staticClass || ""}`),
56
57
  style: {
57
58
  ...e.style || {},
58
59
  ...e.staticStyle || {},
59
- background: `url(${a.toDataURL("image/png")}) left top repeat`
60
+ background: `url(${r.toDataURL("image/png")}) left top repeat`
60
61
  }
61
62
  });
62
63
  }
63
64
  }, m = null, d = null;
64
- var g = /* @__PURE__ */ i(
65
- p,
65
+ var g = /* @__PURE__ */ u(
66
+ f,
66
67
  m,
67
68
  d,
68
69
  !1,
69
70
  null,
70
71
  null
71
72
  );
72
- const x = g.exports;
73
+ const b = g.exports;
73
74
  export {
74
- x as default
75
+ b as default
75
76
  };
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": "4.0.6",
5
+ "version": "4.0.8",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",
@@ -1,45 +0,0 @@
1
- import { isObject as n, isString as c } from "@web-utils/core";
2
- const r = {
3
- privilege: {
4
- processButtons(o) {
5
- return o.map((t) => {
6
- if (n(t)) {
7
- const e = t, s = {};
8
- for (const i in e)
9
- c(e[i]) && (s[i] = a(e[i]));
10
- return s;
11
- }
12
- return t;
13
- });
14
- },
15
- hasAuthority(o) {
16
- return !0;
17
- }
18
- }
19
- }, g = (o) => {
20
- var t, e;
21
- return (e = (t = r.privilege) == null ? void 0 : t.processButtons) == null ? void 0 : e.call(t, o);
22
- }, a = (o) => {
23
- var t, e;
24
- return (e = (t = r.privilege) == null ? void 0 : t.hasAuthority) == null ? void 0 : e.call(t, o);
25
- }, u = (o) => {
26
- var t, e;
27
- return (e = (t = r.toolbar) == null ? void 0 : t.goBack) == null ? void 0 : e.call(t, o);
28
- }, l = () => {
29
- var o, t;
30
- return (t = (o = r.tableView) == null ? void 0 : o.reload) == null ? void 0 : t.call(o);
31
- }, b = (o, t) => {
32
- var e, s;
33
- return (s = (e = r.dict) == null ? void 0 : e.getDictTreeByType) == null ? void 0 : s.call(e, o, t);
34
- }, y = (o) => {
35
- var t, e;
36
- return (e = (t = r.dict) == null ? void 0 : t.remote) == null ? void 0 : e.call(t, o);
37
- };
38
- export {
39
- l as a,
40
- u as b,
41
- b as g,
42
- a as h,
43
- g as p,
44
- y as r
45
- };