@web-utils/component 4.0.9 → 4.0.10

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 (99) hide show
  1. package/chat/index.mjs +2 -3
  2. package/chunks/{FormTemp.Bu2VCxUh.mjs → FormTemp.BQxO5IQq.mjs} +1 -1
  3. package/chunks/MonacoEditor.D31t4FTy.mjs +327 -0
  4. package/chunks/PhotoSwipe.BunkqqPu.mjs +80 -0
  5. package/chunks/{configComponents.CpKi15WN.mjs → configComponents.DQaqUQFs.mjs} +4 -4
  6. package/chunks/{core.DJEgjQW6.mjs → core.0Exl13Mz.mjs} +3 -3
  7. package/chunks/{dictionary.3O-Io7Vh.mjs → dictionary.C6NmC-bT.mjs} +16 -16
  8. package/confirm-button/index.mjs +9 -14
  9. package/confirmable/index.mjs +8 -13
  10. package/data-display/index.mjs +1 -1
  11. package/data-table-picker/index.mjs +8 -10
  12. package/editable-tree/index.mjs +2 -3
  13. package/element-dialog/index.mjs +2 -3
  14. package/flex-column/index.mjs +5 -6
  15. package/flex-item/index.mjs +5 -6
  16. package/flex-row/index.mjs +2 -3
  17. package/flow/index.mjs +2 -3
  18. package/flow-designer/index.mjs +1 -1
  19. package/flow-node/index.mjs +3 -4
  20. package/flow-viewer/index.mjs +1 -1
  21. package/form-button/index.mjs +1 -1
  22. package/form-cascader/index.mjs +13 -17
  23. package/form-checkbox/index.mjs +7 -12
  24. package/form-checkbox-group/index.mjs +9 -14
  25. package/form-date-picker/index.mjs +5 -10
  26. package/form-holder/index.mjs +4 -5
  27. package/form-input/index.mjs +6 -11
  28. package/form-input-cron-expression/index.mjs +8 -13
  29. package/form-input-email/index.mjs +12 -17
  30. package/form-input-id-card/index.mjs +15 -19
  31. package/form-input-number/index.mjs +16 -23
  32. package/form-input-phone-number/index.mjs +8 -12
  33. package/form-input-tag/index.mjs +7 -12
  34. package/form-input-time/index.mjs +2 -7
  35. package/form-item/index.mjs +2 -6
  36. package/form-radio-group/index.mjs +7 -12
  37. package/form-select/index.mjs +2 -6
  38. package/form-switch/index.mjs +7 -12
  39. package/form-table/index.mjs +22 -28
  40. package/form-table-plus/index.mjs +10 -14
  41. package/form-textarea/index.mjs +6 -11
  42. package/form-tree-select/index.mjs +9 -17
  43. package/form-tree-select-multiple/index.mjs +11 -19
  44. package/form-view/index.mjs +1 -1
  45. package/fy-array/index.mjs +2 -5
  46. package/fy-cascader/index.mjs +13 -17
  47. package/fy-checkbox/index.mjs +19 -23
  48. package/fy-code/index.mjs +9 -10
  49. package/fy-curd/index.mjs +4 -6
  50. package/fy-date/index.mjs +5 -9
  51. package/fy-draggable/index.mjs +2 -3
  52. package/fy-dynamic/index.mjs +11 -14
  53. package/fy-empty/index.mjs +3 -4
  54. package/fy-form/index.mjs +3 -6
  55. package/fy-form-design/index.mjs +13 -14
  56. package/fy-input/index.mjs +10 -14
  57. package/fy-input-color/index.mjs +11 -15
  58. package/fy-input-icon/index.mjs +5 -9
  59. package/fy-input-map/index.mjs +5 -8
  60. package/fy-input-number/index.mjs +12 -16
  61. package/fy-input-table/index.mjs +2 -5
  62. package/fy-input-tree/index.mjs +2 -5
  63. package/fy-radio/index.mjs +9 -13
  64. package/fy-rate/index.mjs +7 -11
  65. package/fy-select/index.mjs +2 -4
  66. package/fy-slider/index.mjs +7 -10
  67. package/fy-switch/index.mjs +5 -9
  68. package/fy-time/index.mjs +3 -6
  69. package/fy-title/index.mjs +12 -16
  70. package/fy-u-editor/index.mjs +2 -3
  71. package/fy-upload/index.mjs +2 -4
  72. package/image-cropper/index.mjs +2 -3
  73. package/index.mjs +369 -545
  74. package/license/index.mjs +2 -3
  75. package/monaco-editor/index.mjs +5 -205
  76. package/package.json +1 -1
  77. package/page-skeleton/index.mjs +3 -3
  78. package/pageable-table/index.mjs +3 -6
  79. package/pageable-view/index.mjs +6 -7
  80. package/photo-swipe/index.mjs +3 -36
  81. package/picker-table-view/index.mjs +23 -24
  82. package/present-view/index.mjs +1 -1
  83. package/record-video/index.mjs +10 -11
  84. package/resize-observer/index.mjs +2 -3
  85. package/search/index.mjs +2 -4
  86. package/sign/index.mjs +2 -3
  87. package/split-pane/index.mjs +1 -1
  88. package/swiper/index.mjs +1 -1
  89. package/table-column/index.mjs +4 -7
  90. package/table-view/index.mjs +4 -5
  91. package/tabs-view/index.mjs +1 -1
  92. package/text-ellipsis/index.mjs +2 -3
  93. package/toolbar/index.mjs +3 -4
  94. package/toolbar-button/index.mjs +3 -4
  95. package/verify/index.mjs +7 -8
  96. package/watermark/index.mjs +14 -15
  97. package/web-types.json +1 -1
  98. package/chunks/index.BmYCjxZQ.mjs +0 -47
  99. package/chunks/json-beautifier.Bp3GslGm.mjs +0 -123
package/chat/index.mjs CHANGED
@@ -1,7 +1,6 @@
1
1
  import { formatDate as r } from "@web-utils/integrations/dayjs";
2
2
  import { s as l } from "../chunks/util.DqFv_pWg.mjs";
3
3
  import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
- import "@web-utils/core";
5
4
  const d = {
6
5
  name: "Chat",
7
6
  props: {
@@ -261,7 +260,7 @@ var u = function() {
261
260
  null,
262
261
  null
263
262
  );
264
- const b = m.exports;
263
+ const y = m.exports;
265
264
  export {
266
- b as default
265
+ y as default
267
266
  };
@@ -29,7 +29,7 @@ const R = (n = {}, e = {}, s = {}, r = []) => {
29
29
  return e.formatter && typeof e.formatter == "function" && (t = e.formatter(n, n[e.prop], t, e)), t;
30
30
  }, Y = {
31
31
  name: "FormTemp",
32
- components: { FyUEditor: () => import("./fy-u-editor/index.mjs") },
32
+ components: { FyUEditor: () => import("../fy-u-editor/index.mjs") },
33
33
  mixins: [j],
34
34
  props: {
35
35
  value: [String, Object, Number, Boolean, Array],
@@ -0,0 +1,327 @@
1
+ import * as d from "monaco-editor/esm/vs/editor/editor.api";
2
+ import { NOOP as _ } from "@web-utils/core";
3
+ import { n as x } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ const y = /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, w = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/;
5
+ let u, g;
6
+ const j = {
7
+ // table of character substitutions
8
+ "\b": "\\b",
9
+ " ": "\\t",
10
+ "\n": "\\n",
11
+ "\f": "\\f",
12
+ "\r": "\\r",
13
+ '"': '\\"',
14
+ "'": "\\'",
15
+ "\\": "\\\\"
16
+ };
17
+ let c;
18
+ function M(t, e = {}) {
19
+ const i = e.space || 2, n = e.dropQuotesOnKeys !== !1, o = e.dropQuotesOnNumbers || !1, r = e.inlineShortArrays || !1, a = e.inlineShortArraysDepth || 1, f = e.quoteType || "single", h = e.minify || !1;
20
+ o && v(t);
21
+ let l = O(t, null, h ? void 0 : i, n, f);
22
+ if (r && !h) {
23
+ let s = $(l);
24
+ if (a > 1)
25
+ for (let b = 1; b < a && (l = s, s = $(l), s !== l); b++)
26
+ ;
27
+ l = s;
28
+ }
29
+ return l;
30
+ }
31
+ function v(t) {
32
+ if (!E(t)) return;
33
+ const e = Object.keys(t);
34
+ e && e.forEach(function(i) {
35
+ const n = t[i];
36
+ if (typeof n == "string") {
37
+ const o = n - 0;
38
+ t[i] = isNaN(o) ? n : o;
39
+ } else (E(n) || Array.isArray(n)) && v(n);
40
+ });
41
+ }
42
+ function E(t) {
43
+ return t && typeof t == "object";
44
+ }
45
+ function $(t, e) {
46
+ if (e || (e = 80), typeof e != "number" || e < 20)
47
+ throw Error(`Invalid width '${e}'. Expecting number equal or larger than 20.`);
48
+ const i = t.split(`
49
+ `);
50
+ let n = 0, o = null, r = [];
51
+ for (; n < i.length; ) {
52
+ const a = !!i[n].match(/\[/), f = !!i[n].match(/\],?/);
53
+ if (a && !f)
54
+ r = [i[n]], o = n;
55
+ else if (f && !a && o) {
56
+ r.push((i[n] || "").trim());
57
+ const h = r.join(" ");
58
+ h.length < e && (i.splice(o, n - o + 1, h), n = o), o = null, r = [];
59
+ } else
60
+ o && r.push((i[n] || "").trim());
61
+ n += 1;
62
+ }
63
+ return i.join(`
64
+ `);
65
+ }
66
+ function O(t, e, i, n, o) {
67
+ let r;
68
+ if (u = "", g = "", typeof i == "number")
69
+ for (r = 0; r < i; r += 1)
70
+ g += " ";
71
+ else typeof i == "string" && (g = i);
72
+ return c = e, m("", { "": t }, n, o);
73
+ }
74
+ function m(t, e, i, n) {
75
+ let o, r, a, f;
76
+ const h = u;
77
+ let l, s = e[t];
78
+ switch (s && typeof s == "object" && typeof s.toJSON == "function" && (s = s.toJSON(t)), typeof c == "function" && (s = c.call(e, t, s)), typeof s) {
79
+ case "function":
80
+ return s;
81
+ case "string":
82
+ return p(s, n);
83
+ case "number":
84
+ return isFinite(s) ? String(s) : "null";
85
+ case "boolean":
86
+ case "null":
87
+ return String(s);
88
+ // If the type is 'object', we might be dealing with an object or an array or
89
+ // null.
90
+ case "object":
91
+ if (!s)
92
+ return "null";
93
+ if (u += g, l = [], Object.prototype.toString.apply(s) === "[object Array]") {
94
+ for (f = s.length, o = 0; o < f; o += 1)
95
+ l[o] = m(o, s, i, n) || "null";
96
+ return a = l.length === 0 ? "[]" : u ? `[
97
+ ${u}${l.join(`,
98
+ ${u}`)}
99
+ ${h}]` : `[${l.join(",")}]`, u = h, a;
100
+ }
101
+ if (c && typeof c == "object")
102
+ for (f = c.length, o = 0; o < f; o += 1)
103
+ typeof c[o] == "string" && (r = c[o], a = m(r, s, i, n), a && l.push((i ? S(r, n) : p(r, n)) + (u ? ": " : ":") + a));
104
+ else
105
+ for (r in s)
106
+ Object.prototype.hasOwnProperty.call(s, r) && (a = m(r, s, i, n), a && l.push((i ? S(r, n) : p(r, n)) + (u ? ": " : ":") + a));
107
+ return a = l.length === 0 ? "{}" : u ? `{
108
+ ${u}${l.join(`,
109
+ ${u}`)}
110
+ ${h}}` : `{${l.join(",")}}`, u = h, a;
111
+ }
112
+ }
113
+ function p(t, e) {
114
+ y.lastIndex = 0;
115
+ let i = '"';
116
+ return e === "single" && (i = "'"), y.test(t) ? i + t.replace(y, function(n) {
117
+ const o = j[n];
118
+ return typeof o == "string" ? o : `\\u${`0000${n.charCodeAt(0).toString(16)}`.slice(-4)}`;
119
+ }) + i : i + t + i;
120
+ }
121
+ function S(t, e) {
122
+ return w.test(t) ? t : p(t, e);
123
+ }
124
+ const A = {
125
+ name: "MonacoEditor",
126
+ props: {
127
+ diffEditor: { type: Boolean, default: !1 },
128
+ // 是否使用 diff 模式
129
+ width: { type: [String, Number], default: "100%" },
130
+ height: { type: [String, Number], default: "100%" },
131
+ original: String,
132
+ // 只有在 diff 模式下有效
133
+ value: [String, Object],
134
+ language: { type: String, default: "javascript" },
135
+ theme: { type: String, default: "vs" },
136
+ readOnly: { type: Boolean, default: !1 },
137
+ options: {
138
+ type: Object,
139
+ default() {
140
+ return {};
141
+ }
142
+ },
143
+ editorMounted: { type: Function, default: _ },
144
+ editorBeforeMount: { type: Function, default: _ },
145
+ keyIndex: { type: String }
146
+ },
147
+ data() {
148
+ return {
149
+ fullscreen: !1
150
+ };
151
+ },
152
+ computed: {
153
+ style() {
154
+ return this.fullscreen ? {} : {
155
+ width: /^\d+$/.test(this.width) ? `${this.width}px` : this.width,
156
+ height: /^\d+$/.test(this.height) ? `${this.height}px` : this.height,
157
+ position: "relative"
158
+ };
159
+ }
160
+ },
161
+ watch: {
162
+ options: {
163
+ deep: !0,
164
+ handler(t) {
165
+ var e;
166
+ (e = this.editor) == null || e.updateOptions(t);
167
+ }
168
+ },
169
+ keyIndex() {
170
+ let t = this.value;
171
+ typeof t == "object" && (t = M(t)), this.editor && t !== this._getValue() && this._setValue(t);
172
+ },
173
+ language() {
174
+ if (this.editor)
175
+ if (this.diffEditor) {
176
+ const { original: t, modified: e } = this.editor.getModel();
177
+ d.editor.setModelLanguage(t, this.language), d.editor.setModelLanguage(e, this.language);
178
+ } else
179
+ d.editor.setModelLanguage(this.editor.getModel(), this.language);
180
+ },
181
+ theme() {
182
+ this.editor && d.editor.setTheme(this.theme);
183
+ },
184
+ style() {
185
+ this.$nextTick(() => {
186
+ var t;
187
+ (t = this.editor) == null || t.layout();
188
+ });
189
+ },
190
+ value(t) {
191
+ this.editor && t !== this._getValue() && this._setValue(t);
192
+ }
193
+ },
194
+ mounted() {
195
+ this.initMonaco(), window.addEventListener("resize", this.onResize);
196
+ },
197
+ beforeDestroy() {
198
+ var t;
199
+ window.removeEventListener("resize", this.onResize), (t = this.editor) == null || t.dispose();
200
+ },
201
+ methods: {
202
+ initMonaco() {
203
+ const { value: t, language: e, theme: i, readOnly: n, options: o } = this;
204
+ Object.assign(o, this._editorBeforeMount()), this.editor = d.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, {
205
+ value: typeof t == "string" ? t : M(t),
206
+ language: e,
207
+ theme: i,
208
+ readOnly: n,
209
+ ...o
210
+ }), this.diffEditor && this._setModel(this.value, this.original), this._editorMounted(this.editor), this.editor.addAction({
211
+ id: "f1",
212
+ label: "full screen",
213
+ keybindings: [d.KeyCode.F1],
214
+ run: (r) => {
215
+ this.toggleFullScreen();
216
+ }
217
+ }), this.editor.addAction({
218
+ id: "escape",
219
+ label: "exit full screen",
220
+ keybindings: [d.KeyCode.Escape],
221
+ run: (r) => {
222
+ this.fullscreen = !1;
223
+ }
224
+ });
225
+ },
226
+ toggleFullScreen() {
227
+ this.fullscreen = !this.fullscreen;
228
+ },
229
+ async onResize() {
230
+ await this.$nextTick();
231
+ const t = this.$el;
232
+ this.editor.layout({
233
+ width: t.clientWidth,
234
+ height: t.clientHeight
235
+ });
236
+ },
237
+ _handleFullScreen() {
238
+ this.isMaximum ? this.minEditor() : this.maxEditor();
239
+ },
240
+ // 放大
241
+ maxEditor() {
242
+ this.isMaximum = !0;
243
+ const t = this.$el;
244
+ this.originSize = {
245
+ width: t.clientWidth,
246
+ height: t.clientHeight
247
+ }, t.classList.add("editor-fullscreen"), this.editor.layout({
248
+ height: document.body.clientHeight,
249
+ width: document.body.clientWidth
250
+ }), document.addEventListener("keyup", this.handleEsc);
251
+ },
252
+ handleEsc(t) {
253
+ t.keyCode === 27 && this.minEditor();
254
+ },
255
+ // 缩小
256
+ minEditor() {
257
+ this.isMaximum = !1, this.$el.classList.remove("editor-fullscreen"), this.editor.layout({
258
+ height: this.originSize.height,
259
+ width: this.originSize.width
260
+ }), document.removeEventListener("keyup", this.handleEsc);
261
+ },
262
+ _getEditor() {
263
+ return this.editor ? this.diffEditor ? this.editor.modifiedEditor : this.editor : null;
264
+ },
265
+ _setModel(t, e) {
266
+ const { language: i } = this, n = d.editor.createModel(e, i), o = d.editor.createModel(t, i);
267
+ this.editor.setModel({
268
+ original: n,
269
+ modified: o
270
+ });
271
+ },
272
+ _setValue(t) {
273
+ const e = this._getEditor();
274
+ if (e) return e.setValue(t);
275
+ },
276
+ _getValue() {
277
+ const t = this._getEditor();
278
+ return t ? t.getValue() : "";
279
+ },
280
+ _editorBeforeMount() {
281
+ return this.editorBeforeMount(d) || {};
282
+ },
283
+ _editorMounted(t) {
284
+ this.editorMounted(t, d), this.diffEditor ? t.onDidUpdateDiff((e) => {
285
+ const i = this._getValue();
286
+ this._emitChange(i, e);
287
+ }) : t.onDidChangeModelContent((e) => {
288
+ const i = this._getValue();
289
+ this._emitChange(i, e);
290
+ });
291
+ },
292
+ _emitChange(t, e) {
293
+ this.$emit("change", t, e), this.$emit("input", t);
294
+ }
295
+ },
296
+ render(t) {
297
+ const e = this.options.fullScreen;
298
+ return t("div", { class: ["monaco_editor_container", this.fullscreen ? "fullscreen" : ""], style: this.style }, [
299
+ e ? t("i", {
300
+ class: "el-icon-full-screen",
301
+ style: {
302
+ width: "1.2em",
303
+ height: "1.2em",
304
+ position: "absolute",
305
+ left: "0px",
306
+ top: "0px",
307
+ zIndex: "1",
308
+ cursor: "pointer"
309
+ },
310
+ on: { click: this._handleFullScreen }
311
+ }) : ""
312
+ ]);
313
+ }
314
+ }, k = null, z = null;
315
+ var C = /* @__PURE__ */ x(
316
+ A,
317
+ k,
318
+ z,
319
+ !1,
320
+ null,
321
+ null
322
+ );
323
+ const F = C.exports;
324
+ export {
325
+ F as M,
326
+ M as c
327
+ };
@@ -0,0 +1,80 @@
1
+ import g from "photoswipe";
2
+ import "photoswipe/dist/photoswipe.css";
3
+ import { n as u } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ function d(t) {
5
+ new g(t).init();
6
+ }
7
+ async function l(t, r, n = { selector: "chat-image" }) {
8
+ const c = t.target;
9
+ if (!(!c || c.classList.contains(n.selector) || c.tagName === "IMG"))
10
+ return;
11
+ const e = r.querySelectorAll(n.selector === "img" ? n.selector : `.${n.selector}`), a = [...e].findIndex((o) => o === c);
12
+ a >= 0 && (n.index = a);
13
+ const i = await w(e);
14
+ await d({ dataSource: i, index: a });
15
+ }
16
+ async function w(t) {
17
+ const r = [];
18
+ for (let n = 0, c = t.length; n < c; n++) {
19
+ const e = t[n], a = e.getAttribute("data-src") || e.getAttribute("src"), i = {
20
+ src: a,
21
+ msrc: a,
22
+ alt: e.getAttribute("data-title") || e.getAttribute("alt"),
23
+ element: e
24
+ }, o = e.getAttribute("data-height"), h = e.getAttribute("data-width");
25
+ let s = { width: h, height: o };
26
+ !o && !h && (s = await f(e), e.setAttribute("data-height", s.height), e.setAttribute("data-width", s.width)), i.w = s.width, i.width = s.width, i.h = s.height, i.height = s.height, r.push(i);
27
+ }
28
+ return r;
29
+ }
30
+ function f(t) {
31
+ const r = t.getAttribute("data-src") || t.getAttribute("src"), n = t.getAttribute("data-height"), c = t.getAttribute("data-width");
32
+ return n && c ? { width: c, height: n } : t.complete ? {
33
+ width: t.naturalWidth,
34
+ height: t.naturalHeight
35
+ } : new Promise((e) => {
36
+ const a = new Image();
37
+ a.src = r;
38
+ const i = {};
39
+ a.complete ? (i.width = a.width, i.height = a.height, e(i)) : (a.onload = () => {
40
+ i.width = a.width, i.height = a.height, e(i);
41
+ }, a.onerror = () => {
42
+ i.width = 0, i.height = 0, e(i);
43
+ });
44
+ });
45
+ }
46
+ const m = {
47
+ name: "PhotoSwipe",
48
+ props: {
49
+ urls: Array,
50
+ selector: {
51
+ type: String,
52
+ default: "img"
53
+ }
54
+ },
55
+ methods: {
56
+ async preview(t) {
57
+ await l(t, this.$refs.wrapper, { selector: this.selector });
58
+ }
59
+ }
60
+ };
61
+ var p = function() {
62
+ var r = this, n = r._self._c;
63
+ return n("div", { ref: "wrapper" }, [r._t("default", function() {
64
+ return r._l(r.urls, function(c) {
65
+ return n("img", { key: c.src, staticStyle: { cursor: "pointer" }, attrs: { width: "100", src: c.src, alt: "" }, on: { click: r.preview } });
66
+ });
67
+ }, { urls: r.urls, preview: r.preview })], 2);
68
+ }, _ = [], b = /* @__PURE__ */ u(
69
+ m,
70
+ p,
71
+ _,
72
+ !1,
73
+ null,
74
+ null
75
+ );
76
+ const v = b.exports;
77
+ export {
78
+ v as P,
79
+ l as p
80
+ };
@@ -39,11 +39,11 @@ const r = {
39
39
  a(r, e);
40
40
  };
41
41
  export {
42
- b as a,
43
- m as b,
42
+ y as a,
43
+ f as b,
44
44
  h as c,
45
- y as g,
45
+ m as g,
46
46
  p as h,
47
47
  l as p,
48
- f as r
48
+ b as r
49
49
  };
@@ -47,8 +47,8 @@ const a = (n) => {
47
47
  }), i;
48
48
  };
49
49
  export {
50
- j as a,
51
- a as b,
50
+ b as a,
51
+ j as b,
52
52
  u as f,
53
- b as t
53
+ a as t
54
54
  };
@@ -1,15 +1,15 @@
1
- import { t as D, a as l } from "./core.DJEgjQW6.mjs";
2
- import { g as d, r as w } from "./configComponents.CpKi15WN.mjs";
3
- const $ = {}, h = {}, m = {}, C = (t, i = !0, { options: r, treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
1
+ import { a as g, b as l } from "./core.0Exl13Mz.mjs";
2
+ import { a as d, b } from "./configComponents.DQaqUQFs.mjs";
3
+ const $ = {}, h = {}, m = {}, w = (t, i = !0, { options: r, treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
4
4
  let e = t;
5
5
  o && (e = `${t}-${n}-${c}${r ? "-options" : ""}`);
6
6
  const a = $[e];
7
- return i && a ? a : o ? O(t, i, { idAsValue: n, labelAsValue: c }) : K(t, i);
8
- }, K = (t, i = !0) => {
7
+ return i && a ? a : o ? K(t, i, { idAsValue: n, labelAsValue: c }) : C(t, i);
8
+ }, C = (t, i = !0) => {
9
9
  if (m[t])
10
10
  return m[t];
11
11
  const r = new Promise((o, n) => {
12
- i && $[t] ? o($[t]) : w(t).then((c) => {
12
+ i && $[t] ? o($[t]) : b(t).then((c) => {
13
13
  let e = c.data.data;
14
14
  if (i) {
15
15
  const a = {};
@@ -23,20 +23,20 @@ const $ = {}, h = {}, m = {}, C = (t, i = !0, { options: r, treeDict: o, idAsVal
23
23
  });
24
24
  });
25
25
  return m[t] = r, r;
26
- }, O = (t, i = !0, { idAsValue: r, labelAsValue: o } = {}) => {
26
+ }, K = (t, i = !0, { idAsValue: r, labelAsValue: o } = {}) => {
27
27
  const n = `${t}-${r}-${o}`;
28
28
  if (m[n])
29
29
  return m[n];
30
30
  const c = new Promise((e, a) => {
31
31
  i && $[n] ? e($[n]) : d(t, { idAsValue: r, labelAsValue: o }).then((f) => {
32
32
  const s = f.data.data;
33
- i && ($[n] = s, $[`${n}-options`] = D(s), h[n] = l(s)), m[n] = null, e(s);
33
+ i && ($[n] = s, $[`${n}-options`] = g(s), h[n] = l(s)), m[n] = null, e(s);
34
34
  }).catch((f) => {
35
35
  m[n] = null, a(f);
36
36
  });
37
37
  });
38
38
  return m[n] = c, c;
39
- }, T = async (t, i, r = !0, { treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
39
+ }, O = async (t, i, r = !0, { treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
40
40
  let e = t;
41
41
  o && (e = `${t}-${n}-${c}`);
42
42
  const a = h[e];
@@ -44,15 +44,15 @@ const $ = {}, h = {}, m = {}, C = (t, i = !0, { options: r, treeDict: o, idAsVal
44
44
  if (r && a)
45
45
  f = a[i];
46
46
  else {
47
- let s = await C(t, r, { treeDict: o, idAsValue: n, labelAsValue: c });
47
+ let s = await w(t, r, { treeDict: o, idAsValue: n, labelAsValue: c });
48
48
  if (r)
49
49
  f = h[e][i];
50
50
  else {
51
- o && (s = D(s));
52
- for (let g = 0; g < s.length; g++) {
53
- const u = s[g];
54
- if (u.value === i) {
55
- f = u;
51
+ o && (s = g(s));
52
+ for (let u = 0; u < s.length; u++) {
53
+ const D = s[u];
54
+ if (D.value === i) {
55
+ f = D;
56
56
  break;
57
57
  }
58
58
  }
@@ -61,7 +61,7 @@ const $ = {}, h = {}, m = {}, C = (t, i = !0, { options: r, treeDict: o, idAsVal
61
61
  return f;
62
62
  }, z = async (t, i, r = !0, { treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
63
63
  var e;
64
- return ((e = await T(t, i, r, { treeDict: o, idAsValue: n, labelAsValue: c })) == null ? void 0 : e.label) || i || "";
64
+ return ((e = await O(t, i, r, { treeDict: o, idAsValue: n, labelAsValue: c })) == null ? void 0 : e.label) || i || "";
65
65
  };
66
66
  export {
67
67
  z as g
@@ -1,10 +1,5 @@
1
- import { c as t } from "../chunks/confirmable-mixin.B2TtLAdk.mjs";
2
- import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- import "element-ui/lib/loading";
4
- import "element-ui/lib/message-box";
5
- import "@web-utils/core";
6
- import "../chunks/index.B2TRddqf.mjs";
7
- import "async-validator";
1
+ import { c as n } from "../chunks/confirmable-mixin.B2TtLAdk.mjs";
2
+ import { n as t } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
3
  const o = {
9
4
  props: {
10
5
  type: {
@@ -36,17 +31,17 @@ const o = {
36
31
  }
37
32
  }, e = {
38
33
  name: "ConfirmButton",
39
- mixins: [t, o]
40
- }, i = null, r = null;
41
- var a = /* @__PURE__ */ n(
34
+ mixins: [n, o]
35
+ }, a = null, l = null;
36
+ var i = /* @__PURE__ */ t(
42
37
  e,
43
- i,
44
- r,
38
+ a,
39
+ l,
45
40
  !1,
46
41
  null,
47
42
  null
48
43
  );
49
- const d = a.exports;
44
+ const p = i.exports;
50
45
  export {
51
- d as default
46
+ p as default
52
47
  };
@@ -1,23 +1,18 @@
1
1
  import { c as n } from "../chunks/confirmable-mixin.B2TtLAdk.mjs";
2
2
  import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- import "element-ui/lib/loading";
4
- import "element-ui/lib/message-box";
5
- import "@web-utils/core";
6
- import "../chunks/index.B2TRddqf.mjs";
7
- import "async-validator";
8
- const r = {
3
+ const e = {
9
4
  name: "Confirmable",
10
5
  mixins: [n]
11
- }, m = null, t = null;
12
- var i = /* @__PURE__ */ o(
13
- r,
14
- m,
15
- t,
6
+ }, s = null, l = null;
7
+ var r = /* @__PURE__ */ o(
8
+ e,
9
+ s,
10
+ l,
16
11
  !1,
17
12
  null,
18
13
  null
19
14
  );
20
- const _ = i.exports;
15
+ const t = r.exports;
21
16
  export {
22
- _ as default
17
+ t as default
23
18
  };
@@ -1,4 +1,4 @@
1
- import o from "./count-up/index.mjs";
1
+ import o from "../count-up/index.mjs";
2
2
  import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const r = {
4
4
  name: "DataDisplay",
@@ -1,7 +1,5 @@
1
- import { f as l } from "../chunks/index.B2TRddqf.mjs";
1
+ import { f as i } from "../chunks/index.B2TRddqf.mjs";
2
2
  import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- import "@web-utils/core";
4
- import "async-validator";
5
3
  const o = {
6
4
  name: "DataTablePicker",
7
5
  props: {
@@ -34,7 +32,7 @@ const o = {
34
32
  };
35
33
  },
36
34
  methods: {
37
- filterTableColumnProperties: l,
35
+ filterTableColumnProperties: i,
38
36
  selectionChange(t) {
39
37
  this.selectedRows = t;
40
38
  },
@@ -54,11 +52,11 @@ const o = {
54
52
  }
55
53
  };
56
54
  var r = function() {
57
- var e = this, i = e._self._c;
58
- return i("ElementDialog", { ref: "dialog", attrs: { visible: e.visible, title: e.title, width: e.width, height: e.height, embed: "", "flex-column": "" }, on: { close: e.close }, scopedSlots: e._u([{ key: "default", fn: function() {
59
- return [e._t("search-form"), i("PageableTable", { ref: "pageableTable", staticStyle: { height: "60vh" }, attrs: { "highlight-current-row": "", "hide-on-single-page": "", model: e.model, columns: e.columns, api: e.api, "row-class-name": "pointer", multiple: e.multiple }, on: { "selection-change": e.selectionChange, "row-click": e.toggleRowSelection, "current-change": e.currentChange } }, [e._t("default")], 2)];
55
+ var e = this, l = e._self._c;
56
+ return l("ElementDialog", { ref: "dialog", attrs: { visible: e.visible, title: e.title, width: e.width, height: e.height, embed: "", "flex-column": "" }, on: { close: e.close }, scopedSlots: e._u([{ key: "default", fn: function() {
57
+ return [e._t("search-form"), l("PageableTable", { ref: "pageableTable", staticStyle: { height: "60vh" }, attrs: { "highlight-current-row": "", "hide-on-single-page": "", model: e.model, columns: e.columns, api: e.api, "row-class-name": "pointer", multiple: e.multiple }, on: { "selection-change": e.selectionChange, "row-click": e.toggleRowSelection, "current-change": e.currentChange } }, [e._t("default")], 2)];
60
58
  }, proxy: !0 }, { key: "footer", fn: function() {
61
- return [i("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.confirm } }, [e._v(" 确 定 ")]), i("ElButton", { attrs: { size: "mini" }, on: { click: e.close } }, [e._v(" 关 闭 ")])];
59
+ return [l("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.confirm } }, [e._v(" 确 定 ")]), l("ElButton", { attrs: { size: "mini" }, on: { click: e.close } }, [e._v(" 关 闭 ")])];
62
60
  }, proxy: !0 }], null, !0) });
63
61
  }, s = [], a = /* @__PURE__ */ n(
64
62
  o,
@@ -68,7 +66,7 @@ var r = function() {
68
66
  null,
69
67
  null
70
68
  );
71
- const f = a.exports;
69
+ const h = a.exports;
72
70
  export {
73
- f as default
71
+ h as default
74
72
  };
@@ -4,7 +4,6 @@ import { cloneDeep as f } from "@web-utils/integrations/lodash";
4
4
  import { a as v, b as $ } from "../chunks/index.B2TRddqf.mjs";
5
5
  import b from "vue";
6
6
  import { n as k } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
- import "async-validator";
8
7
  function c(t, e) {
9
8
  for (const i in e)
10
9
  b.set(t, i, e[i]);
@@ -476,7 +475,7 @@ var _ = function() {
476
475
  null,
477
476
  null
478
477
  );
479
- const S = K.exports;
478
+ const z = K.exports;
480
479
  export {
481
- S as default
480
+ z as default
482
481
  };