@web-utils/component 3.0.6 → 3.1.0

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/address-input/index.mjs +20 -57
  2. package/affix/index.mjs +26 -47
  3. package/aside-menu/index.mjs +18 -43
  4. package/avatar/index.mjs +27 -49
  5. package/awesome-button/index.mjs +35 -43
  6. package/capsule-tab/index.mjs +16 -34
  7. package/card/index.mjs +21 -76
  8. package/carousel/index.mjs +14 -49
  9. package/chat/index.mjs +104 -414
  10. package/chunk-file-uploader/index.mjs +21 -38
  11. package/chunks/FormTemp.aa57efb4.mjs +125 -0
  12. package/code-mirror-editor/index.mjs +69 -79
  13. package/color-picker/index.mjs +29 -60
  14. package/comment/index.mjs +17 -48
  15. package/confirm-button/index.mjs +11 -19
  16. package/confirmable/index.mjs +12 -20
  17. package/context-menu/index.mjs +42 -144
  18. package/count-up/index.mjs +18 -25
  19. package/custom-scrollbar/index.mjs +13 -22
  20. package/data-box/index.mjs +15 -66
  21. package/data-card/index.mjs +16 -65
  22. package/data-cardtext/index.mjs +16 -52
  23. package/data-display/index.mjs +18 -62
  24. package/data-icons/index.mjs +16 -68
  25. package/data-imgtext/index.mjs +18 -79
  26. package/data-operatext/index.mjs +18 -75
  27. package/data-panel/index.mjs +16 -63
  28. package/data-pay/index.mjs +20 -122
  29. package/data-price/index.mjs +18 -60
  30. package/data-progress/index.mjs +16 -67
  31. package/data-rotate/index.mjs +16 -66
  32. package/data-table-picker/index.mjs +25 -88
  33. package/data-tabs/index.mjs +16 -64
  34. package/dialog-form/index.mjs +48 -94
  35. package/dynamic-table/index.mjs +43 -127
  36. package/e-charts/index.mjs +21 -34
  37. package/easy-popup/index.mjs +35 -61
  38. package/editable-progress/index.mjs +22 -77
  39. package/editable-tree/index.mjs +235 -546
  40. package/egd-collapse/index.mjs +13 -26
  41. package/egd-collapse-item/index.mjs +27 -87
  42. package/element-dialog/index.mjs +69 -133
  43. package/empty-view/index.mjs +13 -33
  44. package/error-view/index.mjs +14 -34
  45. package/flex-column/index.mjs +15 -23
  46. package/flex-item/index.mjs +18 -26
  47. package/flex-row/index.mjs +23 -31
  48. package/flex-scroller/index.mjs +16 -27
  49. package/flow/index.mjs +70 -110
  50. package/flow-designer/index.mjs +1215 -4804
  51. package/flow-node/index.mjs +15 -51
  52. package/flow-viewer/index.mjs +64 -89
  53. package/form-block/index.mjs +43 -62
  54. package/form-button/index.mjs +10 -18
  55. package/form-cascader/index.mjs +49 -100
  56. package/form-checkbox-group/index.mjs +43 -110
  57. package/form-date-picker/index.mjs +51 -97
  58. package/form-holder/index.mjs +25 -42
  59. package/form-input/index.mjs +40 -90
  60. package/form-input-email/index.mjs +35 -79
  61. package/form-input-id-card/index.mjs +40 -87
  62. package/form-input-number/index.mjs +42 -102
  63. package/form-input-phone-number/index.mjs +34 -75
  64. package/form-input-tag/index.mjs +31 -73
  65. package/form-input-time/index.mjs +42 -87
  66. package/form-item/index.mjs +70 -89
  67. package/form-item-config-provider/index.mjs +12 -20
  68. package/form-item-group/index.mjs +46 -65
  69. package/form-radio-group/index.mjs +50 -108
  70. package/form-select/index.mjs +44 -95
  71. package/form-switch/index.mjs +38 -85
  72. package/form-textarea/index.mjs +31 -75
  73. package/form-view/index.mjs +112 -260
  74. package/fy-array/index.mjs +35 -121
  75. package/fy-article/index.mjs +12 -43
  76. package/fy-cascader/index.mjs +26 -67
  77. package/fy-checkbox/index.mjs +27 -77
  78. package/fy-code/index.mjs +19 -33
  79. package/fy-curd/index.mjs +810 -2017
  80. package/fy-date/index.mjs +18 -59
  81. package/fy-draggable/index.mjs +81 -140
  82. package/fy-dynamic/index.mjs +85 -204
  83. package/fy-empty/index.mjs +14 -35
  84. package/fy-form/index.mjs +254 -571
  85. package/fy-form-design/index.mjs +1489 -6084
  86. package/fy-form-design/style.css +1 -1
  87. package/fy-input/index.mjs +34 -104
  88. package/fy-input-color/index.mjs +22 -67
  89. package/fy-input-icon/index.mjs +37 -122
  90. package/fy-input-map/index.mjs +57 -149
  91. package/fy-input-number/index.mjs +18 -53
  92. package/fy-input-table/index.mjs +36 -102
  93. package/fy-input-tree/index.mjs +51 -138
  94. package/fy-progress/index.mjs +12 -31
  95. package/fy-radio/index.mjs +20 -51
  96. package/fy-rate/index.mjs +18 -51
  97. package/fy-select/index.mjs +49 -134
  98. package/fy-slider/index.mjs +19 -52
  99. package/fy-switch/index.mjs +18 -48
  100. package/fy-tabs/index.mjs +19 -51
  101. package/fy-time/index.mjs +22 -62
  102. package/fy-title/index.mjs +14 -25
  103. package/fy-tree/index.mjs +74 -216
  104. package/fy-u-editor/index.mjs +50 -64
  105. package/fy-upload/index.mjs +167 -338
  106. package/guide-steps/index.mjs +33 -53
  107. package/highlight-j-s/index.mjs +13 -27
  108. package/icon-card/index.mjs +12 -36
  109. package/icon-temp/index.mjs +12 -34
  110. package/iframe-window/index.mjs +13 -40
  111. package/image-cropper/index.mjs +46 -171
  112. package/image-preview/index.mjs +54 -168
  113. package/image-viewer/index.mjs +24 -50
  114. package/index.css +1 -0
  115. package/index.mjs +3973 -501
  116. package/input-number/index.mjs +84 -173
  117. package/input-number-range/index.mjs +20 -70
  118. package/j-s-x-component/index.mjs +3 -3
  119. package/keep-view-alive/index.mjs +47 -55
  120. package/keyboard/index.mjs +100 -113
  121. package/license/index.mjs +34 -51
  122. package/loading-view/index.mjs +14 -34
  123. package/login/index.mjs +33 -161
  124. package/monaco-editor/index.mjs +13 -21
  125. package/name-avatar/index.mjs +13 -32
  126. package/nav-bar/index.mjs +12 -31
  127. package/not-implement/index.mjs +14 -25
  128. package/notice/index.mjs +32 -80
  129. package/package.json +1 -1
  130. package/page/index.mjs +11 -23
  131. package/page-header/index.mjs +16 -37
  132. package/page-index/index.mjs +42 -93
  133. package/page-index-top/index.mjs +42 -84
  134. package/page-skeleton/index.mjs +24 -39
  135. package/page-skeleton-new/index.mjs +21 -68
  136. package/pageable-table/index.mjs +105 -227
  137. package/pageable-view/index.mjs +30 -83
  138. package/photo-swipe/index.mjs +62 -87
  139. package/present-view/index.mjs +114 -267
  140. package/queue/index.mjs +14 -29
  141. package/record-video/index.mjs +29 -66
  142. package/resize-observer/index.mjs +18 -30
  143. package/search/index.mjs +47 -81
  144. package/search-popover/index.mjs +57 -329
  145. package/sign/index.mjs +43 -60
  146. package/sign-panel/index.mjs +40 -151
  147. package/skeleton/index.mjs +18 -44
  148. package/split-pane/index.mjs +45 -129
  149. package/stateful/index.mjs +18 -26
  150. package/static-pageable-table/index.mjs +18 -44
  151. package/swiper/index.mjs +53 -94
  152. package/tab/index.mjs +13 -39
  153. package/tab-item/index.mjs +23 -37
  154. package/table-column/index.mjs +27 -35
  155. package/table-view/index.mjs +89 -209
  156. package/tag-render/index.mjs +34 -69
  157. package/text-ellipsis/index.mjs +22 -47
  158. package/tinymce-editor/index.mjs +174 -285
  159. package/toolbar/index.mjs +21 -42
  160. package/toolbar-button/index.mjs +25 -54
  161. package/verify/index.mjs +16 -29
  162. package/vue-cron/index.mjs +272 -1089
  163. package/vue-qr-code/index.mjs +19 -27
  164. package/vue-quill-editor/index.mjs +15 -27
  165. package/vue-tags-input/index.mjs +104 -224
  166. package/vue-tree-select/index.mjs +595 -742
  167. package/vue-video-player/index.mjs +42 -57
  168. package/watermark/index.mjs +27 -35
  169. package/web-types.json +1 -1
  170. package/x-input-tag/index.mjs +50 -112
  171. package/chunks/FormTemp.7f91629d.mjs +0 -165
  172. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- import { n as S } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- let T = class {
1
+ import { n as v } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ let S = class {
3
3
  constructor(e) {
4
4
  if (typeof e != "object") {
5
5
  console.error('aKeyboard: The obj parameter needs to be an object <In "new aKeyboard()">');
@@ -9,12 +9,12 @@ let T = class {
9
9
  const r = document.querySelector(e.el);
10
10
  let c = "";
11
11
  if (typeof e.style == "object")
12
- for (const t in e.style)
13
- c += `${t}: ${e.style[t]};`;
12
+ for (const n in e.style)
13
+ c += `${n}: ${e.style[n]};`;
14
14
  let i = `<div class="akeyboard-keyboard${e.fixedBottomCenter ? " akeyboard-keyboard-fixedBottomCenter" : ""}" style="${c}">`;
15
15
  const o = [];
16
- for (let t = 1; t < 10; t++)
17
- o.push(t.toString());
16
+ for (let n = 1; n < 10; n++)
17
+ o.push(n.toString());
18
18
  o.push("0");
19
19
  const s = e.keys || [
20
20
  ["`"].concat(o).concat(["-", "=", "Delete"]),
@@ -23,104 +23,104 @@ let T = class {
23
23
  ["Shift", "z", "x", "c", "v", "b", "n", "m", ",", ".", "/", "Shift"],
24
24
  ["Space"]
25
25
  ];
26
- let n;
26
+ let t;
27
27
  const a = [], m = [];
28
- for (let t = 0; t < s.length; t++) {
29
- a.push([]), m.push([]), n = s[t];
30
- for (let l = 0; l < n.length; l++) {
31
- if (n[l].length === 1) {
32
- switch (m[t].push(n[l].toUpperCase()), n[l]) {
28
+ for (let n = 0; n < s.length; n++) {
29
+ a.push([]), m.push([]), t = s[n];
30
+ for (let l = 0; l < t.length; l++) {
31
+ if (t[l].length === 1) {
32
+ switch (m[n].push(t[l].toUpperCase()), t[l]) {
33
33
  case "`":
34
- a[t].push("~");
34
+ a[n].push("~");
35
35
  continue;
36
36
  case "1":
37
- a[t].push("!");
37
+ a[n].push("!");
38
38
  continue;
39
39
  case "2":
40
- a[t].push("@");
40
+ a[n].push("@");
41
41
  continue;
42
42
  case "3":
43
- a[t].push("#");
43
+ a[n].push("#");
44
44
  continue;
45
45
  case "4":
46
- a[t].push("$");
46
+ a[n].push("$");
47
47
  continue;
48
48
  case "5":
49
- a[t].push("%");
49
+ a[n].push("%");
50
50
  continue;
51
51
  case "6":
52
- a[t].push("^");
52
+ a[n].push("^");
53
53
  continue;
54
54
  case "7":
55
- a[t].push("&");
55
+ a[n].push("&");
56
56
  continue;
57
57
  case "8":
58
- a[t].push("*");
58
+ a[n].push("*");
59
59
  continue;
60
60
  case "9":
61
- a[t].push("(");
61
+ a[n].push("(");
62
62
  continue;
63
63
  case "0":
64
- a[t].push(")");
64
+ a[n].push(")");
65
65
  continue;
66
66
  case "-":
67
- a[t].push("_");
67
+ a[n].push("_");
68
68
  continue;
69
69
  case "=":
70
- a[t].push("+");
70
+ a[n].push("+");
71
71
  continue;
72
72
  case "[":
73
- a[t].push("{");
73
+ a[n].push("{");
74
74
  continue;
75
75
  case "]":
76
- a[t].push("}");
76
+ a[n].push("}");
77
77
  continue;
78
78
  case "\\":
79
- a[t].push("|");
79
+ a[n].push("|");
80
80
  continue;
81
81
  case ";":
82
- a[t].push(":");
82
+ a[n].push(":");
83
83
  continue;
84
84
  case "'":
85
- a[t].push('"');
85
+ a[n].push('"');
86
86
  continue;
87
87
  case ",":
88
- a[t].push("<");
88
+ a[n].push("<");
89
89
  continue;
90
90
  case ".":
91
- a[t].push(">");
91
+ a[n].push(">");
92
92
  continue;
93
93
  case "/":
94
- a[t].push("?");
94
+ a[n].push("?");
95
95
  continue;
96
96
  }
97
- a[t].push(n[l].toUpperCase());
97
+ a[n].push(t[l].toUpperCase());
98
98
  continue;
99
99
  }
100
- a[t].push(n[l]), m[t].push(n[l]);
100
+ a[n].push(t[l]), m[n].push(t[l]);
101
101
  }
102
102
  }
103
- for (let t = 0; t < s.length; t++) {
104
- n = s[t], i += '<div class="akeyboard-keyboard-innerKeys">';
105
- for (let l = 0; l < n.length; l++)
106
- i += `<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${n[l]}">${n[l]}</div>`;
103
+ for (let n = 0; n < s.length; n++) {
104
+ t = s[n], i += '<div class="akeyboard-keyboard-innerKeys">';
105
+ for (let l = 0; l < t.length; l++)
106
+ i += `<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${t[l]}">${t[l]}</div>`;
107
107
  i += "</div>";
108
108
  }
109
109
  i += "</div>", r.innerHTML = i;
110
110
  let K = !1;
111
- s.forEach((t) => {
112
- t.includes("Shift") && (K = !0);
111
+ s.forEach((n) => {
112
+ n.includes("Shift") && (K = !0);
113
113
  }), K && document.querySelectorAll(`${e.el} .akeyboard-keyboard-keys-Shift`).forEach((l) => {
114
114
  l.onclick = function() {
115
115
  if (!this.isShift) {
116
- const y = document.querySelector(`${e.el} .akeyboard-keyboard-keys-Caps`);
117
- if (y && y.isCaps)
116
+ const d = document.querySelector(`${e.el} .akeyboard-keyboard-keys-Caps`);
117
+ if (d && d.isCaps)
118
118
  return;
119
119
  l.isShift = !0, l.innerHTML = "SHIFT", this.classList.add("keyboard-keyboard-keys-focus");
120
- const u = document.querySelectorAll(`${e.el} .akeyboard-keyboard-innerKeys`);
120
+ const y = document.querySelectorAll(`${e.el} .akeyboard-keyboard-innerKeys`);
121
121
  let b;
122
- for (let h = 0; h < u.length; h++) {
123
- b = u[h];
122
+ for (let h = 0; h < y.length; h++) {
123
+ b = y[h];
124
124
  for (let f = 0; f < b.childNodes.length; f++)
125
125
  a[h][f] !== "Shift" && (b.childNodes[f].innerHTML = a[h][f]);
126
126
  }
@@ -129,27 +129,27 @@ let T = class {
129
129
  l.isShift = !1, l.innerHTML = "Shift", this.classList.remove("keyboard-keyboard-keys-focus");
130
130
  const p = document.querySelectorAll(`${e.el} .akeyboard-keyboard-innerKeys`);
131
131
  let k;
132
- for (let y = 0; y < p.length; y++) {
133
- k = p[y];
134
- for (let u = 0; u < k.childNodes.length; u++)
135
- k.childNodes[u].innerHTML = s[y][u];
132
+ for (let d = 0; d < p.length; d++) {
133
+ k = p[d];
134
+ for (let y = 0; y < k.childNodes.length; y++)
135
+ k.childNodes[y].innerHTML = s[d][y];
136
136
  }
137
137
  };
138
138
  });
139
- let v = !1;
140
- s.forEach((t) => {
141
- t.includes("Caps") && (v = !0);
142
- }), v && document.querySelectorAll(`${e.el} .akeyboard-keyboard-keys-Caps`).forEach((l) => {
139
+ let g = !1;
140
+ s.forEach((n) => {
141
+ n.includes("Caps") && (g = !0);
142
+ }), g && document.querySelectorAll(`${e.el} .akeyboard-keyboard-keys-Caps`).forEach((l) => {
143
143
  l.onclick = function() {
144
144
  if (!this.isCaps) {
145
- const y = document.querySelector(`${e.el} .akeyboard-keyboard-keys-Shift`);
146
- if (y && y.isShift)
145
+ const d = document.querySelector(`${e.el} .akeyboard-keyboard-keys-Shift`);
146
+ if (d && d.isShift)
147
147
  return;
148
148
  this.isCaps = !0, this.classList.add("keyboard-keyboard-keys-focus");
149
- const u = document.querySelectorAll(`${e.el} .akeyboard-keyboard-innerKeys`);
149
+ const y = document.querySelectorAll(`${e.el} .akeyboard-keyboard-innerKeys`);
150
150
  let b;
151
- for (let h = 0; h < u.length; h++) {
152
- b = u[h];
151
+ for (let h = 0; h < y.length; h++) {
152
+ b = y[h];
153
153
  for (let f = 0; f < b.childNodes.length; f++)
154
154
  b.childNodes[f].innerHTML = m[h][f];
155
155
  }
@@ -158,10 +158,10 @@ let T = class {
158
158
  this.isCaps = !1, this.classList.remove("keyboard-keyboard-keys-focus");
159
159
  const p = document.querySelectorAll(`${e.el} .akeyboard-keyboard-innerKeys`);
160
160
  let k;
161
- for (let y = 0; y < p.length; y++) {
162
- k = p[y];
163
- for (let u = 0; u < k.childNodes.length; u++)
164
- k.childNodes[u].innerHTML = s[y][u];
161
+ for (let d = 0; d < p.length; d++) {
162
+ k = p[d];
163
+ for (let y = 0; y < k.childNodes.length; y++)
164
+ k.childNodes[y].innerHTML = s[d][y];
165
165
  }
166
166
  };
167
167
  });
@@ -176,34 +176,34 @@ let T = class {
176
176
  return;
177
177
  }
178
178
  const o = document.querySelector(e), s = document.querySelectorAll(`${this.obj.el} .akeyboard-keyboard-keys`);
179
- for (let n = 0; n < s.length; n++)
180
- if (!["Shift", "Caps"].includes(s[n].innerHTML)) {
181
- if (s[n].innerHTML === "Delete") {
182
- s[n].onclick = function() {
179
+ for (let t = 0; t < s.length; t++)
180
+ if (!["Shift", "Caps"].includes(s[t].innerHTML)) {
181
+ if (s[t].innerHTML === "Delete") {
182
+ s[t].onclick = function() {
183
183
  o[r] = o[r].substr(0, o[r].length - 1), c("Delete", o[r]);
184
184
  };
185
185
  continue;
186
186
  }
187
- if (s[n].innerHTML === "Tab") {
188
- s[n].onclick = function() {
187
+ if (s[t].innerHTML === "Tab") {
188
+ s[t].onclick = function() {
189
189
  o[r] += " ", c("Tab", o[r]);
190
190
  };
191
191
  continue;
192
192
  }
193
- if (s[n].innerHTML === "Enter") {
194
- s[n].onclick = function() {
193
+ if (s[t].innerHTML === "Enter") {
194
+ s[t].onclick = function() {
195
195
  o[r] += `
196
196
  `, c("Enter", o[r]);
197
197
  };
198
198
  continue;
199
199
  }
200
- if (s[n].innerHTML === "Space") {
201
- s[n].onclick = function() {
200
+ if (s[t].innerHTML === "Space") {
201
+ s[t].onclick = function() {
202
202
  o[r] += " ", c("Space", o[r]);
203
203
  };
204
204
  continue;
205
205
  }
206
- i && typeof i == "object" && Object.keys(i).length > 0 && i[s[n].innerHTML] ? s[n].onclick = i[s[n].innerHTML] : s[n].onclick = function() {
206
+ i && typeof i == "object" && Object.keys(i).length > 0 && i[s[t].innerHTML] ? s[t].onclick = i[s[t].innerHTML] : s[t].onclick = function() {
207
207
  o[r] += this.innerText, c(this.innerText, o[r]);
208
208
  };
209
209
  }
@@ -221,7 +221,7 @@ let T = class {
221
221
  c ? c.onclick = r : console.error(`Can not find key: ${e}`);
222
222
  }
223
223
  };
224
- class $ {
224
+ class T {
225
225
  constructor(e) {
226
226
  if (typeof e != "object") {
227
227
  console.error('aKeyboard: The obj parameter needs to be an object <In "new aKeyboard()">');
@@ -249,21 +249,21 @@ class $ {
249
249
  return;
250
250
  }
251
251
  const o = document.querySelector(e), s = document.querySelectorAll(`${this.obj.el} .akeyboard-keyboard-keys`);
252
- for (let n = 0; n < s.length; n++) {
253
- if (s[n].innerHTML === "Delete") {
254
- s[n].onclick = function() {
252
+ for (let t = 0; t < s.length; t++) {
253
+ if (s[t].innerHTML === "Delete") {
254
+ s[t].onclick = function() {
255
255
  o[r] = o[r].substr(0, o[r].length - 1), c("Delete", o[r]);
256
256
  };
257
257
  continue;
258
258
  }
259
- if (s[n].innerHTML === "Enter") {
260
- s[n].onclick = function() {
259
+ if (s[t].innerHTML === "Enter") {
260
+ s[t].onclick = function() {
261
261
  o[r] += `
262
262
  `, c("Enter", o[r]);
263
263
  };
264
264
  continue;
265
265
  }
266
- i && typeof i == "object" && Object.keys(i).length > 0 && i[s[n].innerHTML] ? s[n].onclick = i[s[n].innerHTML] : s[n].onclick = function() {
266
+ i && typeof i == "object" && Object.keys(i).length > 0 && i[s[t].innerHTML] ? s[t].onclick = i[s[t].innerHTML] : s[t].onclick = function() {
267
267
  o[r] += this.innerText, c(this.innerText, o[r]);
268
268
  };
269
269
  }
@@ -281,17 +281,7 @@ class $ {
281
281
  c ? c.onclick = r : console.error(`Can not find key: ${e}`);
282
282
  }
283
283
  }
284
- var E = function() {
285
- var d = this, e = d.$createElement, r = d._self._c || e;
286
- return r("div", {
287
- class: ["avue-keyboard", d.className]
288
- }, [r("div", {
289
- attrs: {
290
- id: "keyboard"
291
- }
292
- })]);
293
- }, _ = [];
294
- const L = {
284
+ const $ = {
295
285
  name: "Keyboard",
296
286
  props: {
297
287
  ele: {
@@ -302,12 +292,12 @@ const L = {
302
292
  theme: {
303
293
  type: String,
304
294
  default: "default",
305
- validator: (d) => ["default", "dark", "green", "classic"].includes(d)
295
+ validator: (u) => ["default", "dark", "green", "classic"].includes(u)
306
296
  },
307
297
  type: {
308
298
  type: String,
309
299
  default: "default",
310
- validator: (d) => ["default", "number", "mobile"].includes(d)
300
+ validator: (u) => ["default", "number", "mobile"].includes(u)
311
301
  },
312
302
  fixedBottomCenter: {
313
303
  type: Boolean,
@@ -340,46 +330,43 @@ const L = {
340
330
  init() {
341
331
  if (!this.ele)
342
332
  return;
343
- let d;
333
+ let u;
344
334
  const e = {
345
335
  el: "#keyboard",
346
336
  style: {},
347
337
  keys: this.keys,
348
338
  fixedBottomCenter: this.fixedBottomCenter
349
339
  };
350
- this.type === "default" ? d = new T(e) : this.type === "number" && (d = new $(e));
340
+ this.type === "default" ? u = new S(e) : this.type === "number" && (u = new T(e));
351
341
  const r = this.ele.indexOf("#") === 0 ? this.ele.substring(1) : this.ele;
352
- d.inputOn(
342
+ u.inputOn(
353
343
  `#${r}`,
354
344
  "value",
355
345
  (c, i) => {
356
346
  this.$emit("click", c, i);
357
347
  },
358
348
  this.rebind ? this.customClick : null
359
- ), this.keyboard = d;
349
+ ), this.keyboard = u;
360
350
  },
361
- bindClick(d, e) {
362
- this.keyboard.onclick(d, e), this.customClick[d] = e;
351
+ bindClick(u, e) {
352
+ this.keyboard.onclick(u, e), this.customClick[u] = e;
363
353
  }
364
354
  }
365
- }, g = {};
366
- var C = /* @__PURE__ */ S(
367
- L,
355
+ };
356
+ var E = function() {
357
+ var e = this, r = e._self._c;
358
+ return r("div", { class: ["avue-keyboard", e.className] }, [r("div", { attrs: { id: "keyboard" } })]);
359
+ }, L = [], _ = /* @__PURE__ */ v(
360
+ $,
368
361
  E,
369
- _,
362
+ L,
370
363
  !1,
371
- H,
364
+ null,
372
365
  null,
373
366
  null,
374
367
  null
375
368
  );
376
- function H(d) {
377
- for (let e in g)
378
- this[e] = g[e];
379
- }
380
- const x = /* @__PURE__ */ function() {
381
- return C.exports;
382
- }();
369
+ const M = _.exports;
383
370
  export {
384
- x as default
371
+ M as default
385
372
  };
package/license/index.mjs CHANGED
@@ -1,20 +1,6 @@
1
- import { C as l } from "../chunks/util.ae730cde.mjs";
2
- import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var m = function() {
4
- var t = this, e = t.$createElement, s = t._self._c || e;
5
- return s("div", {
6
- staticClass: "avue-license",
7
- staticStyle: {
8
- position: "relative"
9
- }
10
- }, [s("canvas", {
11
- ref: "canvas",
12
- attrs: {
13
- id: `canvas${t.id}`
14
- }
15
- }), t._t("default")], 2);
16
- }, f = [];
17
- const w = {
1
+ import { C as r } from "../chunks/util.ae730cde.mjs";
2
+ import { n as l } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ const g = {
18
4
  name: "License",
19
5
  props: {
20
6
  id: {
@@ -56,79 +42,76 @@ const w = {
56
42
  methods: {
57
43
  init() {
58
44
  this.draw = !1;
59
- const t = new Image();
60
- t.src = this.img, t.onload = () => {
61
- const e = this.option.width || t.width, s = this.option.width ? t.height / t.width * this.option.width : t.height;
62
- this.$refs.canvas.width = e, this.$refs.canvas.height = s, this.context.clearRect(0, 0, e, s), this.context.drawImage(t, 0, 0, e, s), this.list.forEach((i, a) => {
45
+ const i = new Image();
46
+ i.src = this.img, i.onload = () => {
47
+ const e = this.option.width || i.width, s = this.option.width ? i.height / i.width * this.option.width : i.height;
48
+ this.$refs.canvas.width = e, this.$refs.canvas.height = s, this.context.clearRect(0, 0, e, s), this.context.drawImage(i, 0, 0, e, s), this.list.forEach((t, a) => {
63
49
  const o = () => {
64
50
  a === this.list.length - 1 && setTimeout(() => {
65
51
  this.draw = !0;
66
52
  }, 0);
67
53
  };
68
- if (i.img) {
54
+ if (t.img) {
69
55
  const n = new Image();
70
- n.src = i.img, n.onload = () => {
71
- const h = i.width || n.width, c = i.width ? n.height / n.width * i.width : n.height;
72
- this.context.drawImage(n, i.left, i.top, h, c), o();
56
+ n.src = t.img, n.onload = () => {
57
+ const h = t.width || n.width, c = t.width ? n.height / n.width * t.width : n.height;
58
+ this.context.drawImage(n, t.left, t.top, h, c), o();
73
59
  };
74
60
  } else
75
- i.bold ? this.context.font = `bold ${i.size}px ${i.style}` : this.context.font = `${i.size}px ${i.style}`, this.context.fillStyle = i.color, this.context.fillText(i.text, i.left, i.top), this.context.stroke(), o();
61
+ t.bold ? this.context.font = `bold ${t.size}px ${t.style}` : this.context.font = `${t.size}px ${t.style}`, this.context.fillStyle = t.color, this.context.fillText(t.text, t.left, t.top), this.context.stroke(), o();
76
62
  });
77
63
  };
78
64
  },
79
- getFile(t = (/* @__PURE__ */ new Date()).getTime()) {
65
+ getFile(i = (/* @__PURE__ */ new Date()).getTime()) {
80
66
  return new Promise((e) => {
81
67
  const s = setInterval(() => {
82
68
  if (this.draw) {
83
- const i = this.canvas.toDataURL("image/jpeg", 1), a = this.dataURLtoFile(i, t);
69
+ const t = this.canvas.toDataURL("image/jpeg", 1), a = this.dataURLtoFile(t, i);
84
70
  clearInterval(s), e(a);
85
71
  }
86
72
  }, 1e3);
87
73
  });
88
74
  },
89
- downFile(t = (/* @__PURE__ */ new Date()).getTime()) {
90
- l(this.base64, t);
75
+ downFile(i = (/* @__PURE__ */ new Date()).getTime()) {
76
+ r(this.base64, i);
91
77
  },
92
78
  getBase64() {
93
- return new Promise((t) => {
79
+ return new Promise((i) => {
94
80
  const e = setInterval(() => {
95
81
  if (this.draw) {
96
82
  const s = this.canvas.toDataURL("image/jpeg", 1);
97
- this.base64 = s, clearInterval(e), t(s);
83
+ this.base64 = s, clearInterval(e), i(s);
98
84
  }
99
85
  }, 100);
100
86
  });
101
87
  },
102
- getPdf(t = (/* @__PURE__ */ new Date()).getTime()) {
103
- const e = this.canvas.width, s = this.canvas.height, i = e / 592.28 * 841.89;
88
+ getPdf(i = (/* @__PURE__ */ new Date()).getTime()) {
89
+ const e = this.canvas.width, s = this.canvas.height, t = e / 592.28 * 841.89;
104
90
  let a = s, o = 0;
105
- const n = 595.28, h = 592.28 / e * s, c = this.canvas.toDataURL("image/jpeg", 1), r = new window.jsPDF("", "pt", "a4");
106
- if (a < i)
107
- r.addImage(c, "JPEG", 0, 0, n, h);
91
+ const n = 595.28, h = 592.28 / e * s, c = this.canvas.toDataURL("image/jpeg", 1), d = new window.jsPDF("", "pt", "a4");
92
+ if (a < t)
93
+ d.addImage(c, "JPEG", 0, 0, n, h);
108
94
  else
109
95
  for (; a > 0; )
110
- r.addImage(c, "JPEG", 0, o, n, h), a -= i, o -= 841.89, a > 0 && r.addPage();
111
- r.save(`${t}.pdf`);
96
+ d.addImage(c, "JPEG", 0, o, n, h), a -= t, o -= 841.89, a > 0 && d.addPage();
97
+ d.save(`${i}.pdf`);
112
98
  }
113
99
  }
114
- }, d = {};
115
- var p = /* @__PURE__ */ g(
116
- w,
100
+ };
101
+ var m = function() {
102
+ var e = this, s = e._self._c;
103
+ return s("div", { staticClass: "avue-license", staticStyle: { position: "relative" } }, [s("canvas", { ref: "canvas", attrs: { id: `canvas${e.id}` } }), e._t("default")], 2);
104
+ }, f = [], w = /* @__PURE__ */ l(
105
+ g,
117
106
  m,
118
107
  f,
119
108
  !1,
120
- v,
109
+ null,
121
110
  null,
122
111
  null,
123
112
  null
124
113
  );
125
- function v(t) {
126
- for (let e in d)
127
- this[e] = d[e];
128
- }
129
- const _ = /* @__PURE__ */ function() {
130
- return p.exports;
131
- }();
114
+ const u = w.exports;
132
115
  export {
133
- _ as default
116
+ u as default
134
117
  };
@@ -1,24 +1,5 @@
1
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var s = function() {
3
- var t = this, e = t.$createElement, n = t._self._c || e;
4
- return n("div", {
5
- staticClass: "loading-view",
6
- style: {
7
- fontSize: t.fontSize,
8
- height: t.height
9
- }
10
- }, [t._t("default", function() {
11
- return [n("div", {
12
- staticClass: "flex-column horizon-center"
13
- }, [n("i", {
14
- staticClass: "el-icon-loading",
15
- style: {
16
- fontSize: t.iconSize
17
- }
18
- }), n("p", [t._v(t._s(t.loadingTips))])])];
19
- })], 2);
20
- }, a = [];
21
- const l = {
1
+ import { n as t } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const i = {
22
3
  name: "LoadingView",
23
4
  props: {
24
5
  loadingTips: {
@@ -38,24 +19,23 @@ const l = {
38
19
  default: "100%"
39
20
  }
40
21
  }
41
- }, i = {};
42
- var r = /* @__PURE__ */ o(
43
- l,
44
- s,
22
+ };
23
+ var o = function() {
24
+ var e = this, n = e._self._c;
25
+ return n("div", { staticClass: "loading-view", style: { fontSize: e.fontSize, height: e.height } }, [e._t("default", function() {
26
+ return [n("div", { staticClass: "flex-column horizon-center" }, [n("i", { staticClass: "el-icon-loading", style: { fontSize: e.iconSize } }), n("p", [e._v(e._s(e.loadingTips))])])];
27
+ })], 2);
28
+ }, a = [], l = /* @__PURE__ */ t(
29
+ i,
30
+ o,
45
31
  a,
46
32
  !1,
47
- _,
33
+ null,
48
34
  null,
49
35
  null,
50
36
  null
51
37
  );
52
- function _(t) {
53
- for (let e in i)
54
- this[e] = i[e];
55
- }
56
- const u = /* @__PURE__ */ function() {
57
- return r.exports;
58
- }();
38
+ const _ = l.exports;
59
39
  export {
60
- u as default
40
+ _ as default
61
41
  };