hlrender 0.0.202 → 0.0.206

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 (118) hide show
  1. package/{_pdf-7c668149.js → _pdf-253395f0.js} +6 -6
  2. package/{_txt-31429e8d.js → _txt-a707bc5c.js} +6 -6
  3. package/{_unsupport-35f551f9.js → _unsupport-3eb82daa.js} +1 -1
  4. package/{affix-widget-ddc78fd2.js → affix-widget-9ddc9909.js} +16 -16
  5. package/{alert-widget-a9d39f29.js → alert-widget-b75af0a6.js} +16 -16
  6. package/{anchor-widget-3d626be6.js → anchor-widget-92f6a72c.js} +13 -13
  7. package/{auto-complete-widget-7db0de11.js → auto-complete-widget-58a69dc8.js} +16 -16
  8. package/{avatar-widget-481b4ab1.js → avatar-widget-c00a510a.js} +16 -16
  9. package/{backtop-widget-27954a77.js → backtop-widget-0faa98ca.js} +16 -16
  10. package/{badge-widget-8fd64136.js → badge-widget-4b7945ad.js} +16 -16
  11. package/{barcode-widget-213a15b9.js → barcode-widget-5d740bfe.js} +13 -13
  12. package/{baseImp-242db99f.js → baseImp-0b9badc9.js} +12 -6
  13. package/{breadcrumb-widget-71a1c2fd.js → breadcrumb-widget-3ffd9785.js} +13 -13
  14. package/{button-widget-9f5a3fb4.js → button-widget-4330d78b.js} +16 -16
  15. package/{cache-widget-38b72fda.js → cache-widget-b2a554e7.js} +15 -15
  16. package/{card-widget-1528e123.js → card-widget-7f693641.js} +14 -14
  17. package/{carousel-widget-95b2c9ed.js → carousel-widget-7dab0441.js} +14 -14
  18. package/{cascader-widget-fe9aff54.js → cascader-widget-ba4cc7e3.js} +15 -15
  19. package/{chart-widget-611e48bd.js → chart-widget-6f82e01b.js} +13 -13
  20. package/{checkbox-widget-09707dc4.js → checkbox-widget-30ee7abd.js} +15 -15
  21. package/{collapse-widget-0b6b4eca.js → collapse-widget-ed56e9ce.js} +14 -14
  22. package/{color-picker-widget-84549c6f.js → color-picker-widget-195a3ea3.js} +15 -15
  23. package/{cont-cell-widget-77c16652.js → cont-cell-widget-4f4c2dc7.js} +1 -1
  24. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-a4d8969a.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-ba79328e.js} +5 -5
  25. package/{cont-widget-17f438f8.js → cont-widget-edcb1bef.js} +5 -5
  26. package/{content-wrapper-9d93e627.js → content-wrapper-26074a64.js} +7 -7
  27. package/{content-wrapper.vue_vue_type_script_setup_true_lang-55618b6d.js → content-wrapper.vue_vue_type_script_setup_true_lang-218c9ef7.js} +3 -3
  28. package/{date-picker-range-widget-d6e754cd.js → date-picker-range-widget-715aaf81.js} +15 -15
  29. package/{date-picker-widget-b8e833dc.js → date-picker-widget-29b8b420.js} +15 -15
  30. package/default-slot-widget-da675376.js +26 -0
  31. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-fcf48830.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-382c2367.js} +7 -7
  32. package/{descriptions-widget-e294abe8.js → descriptions-widget-0860d156.js} +14 -14
  33. package/{dialog-cb26ee83.js → dialog-1931c6d5.js} +2 -2
  34. package/{dialog-widget-03845073.js → dialog-widget-6116c6c0.js} +15 -15
  35. package/{divider-widget-f03b1dd9.js → divider-widget-61b89338.js} +16 -16
  36. package/{drag-wrapper-6f9d27ca.js → drag-wrapper-6fe1fa7c.js} +6 -6
  37. package/{drawer-widget-1d3d5b3f.js → drawer-widget-584a4933.js} +15 -15
  38. package/{dropdown-widget-0c7af6ed.js → dropdown-widget-03803162.js} +14 -14
  39. package/{empty-widget-ea1bbed0.js → empty-widget-7006a86b.js} +16 -16
  40. package/{enum-type-1c0ae1da.js → enum-type-371a21c2.js} +897 -266
  41. package/{enum-type-768f07b9.js → enum-type-f421870d.js} +1 -1
  42. package/{expression-d514d13e.js → expression-242aaf07.js} +2 -2
  43. package/feedback-widget-0ebf7939.js +26 -0
  44. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-5b8dd13d.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-47527ebd.js} +5 -5
  45. package/{fieldobj-5eca64a8.js → fieldobj-45322a50.js} +1 -1
  46. package/{file-upload-widget-2d109e94.js → file-upload-widget-d4c0318e.js} +20 -20
  47. package/{form-item-wrapper-b761d512.js → form-item-wrapper-6cc630c2.js} +11 -11
  48. package/{form-widget-034a08b6.js → form-widget-cbc6e330.js} +10 -10
  49. package/{grid-col-widget-64f6dcd4.js → grid-col-widget-99aae520.js} +1 -1
  50. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-c8c7af67.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-2814f7a3.js} +5 -5
  51. package/{grid-widget-63a5f5dc.js → grid-widget-37242663.js} +5 -5
  52. package/{html-text-widget-39de395d.js → html-text-widget-5d901d37.js} +14 -14
  53. package/{icon-widget-a92659c0.js → icon-widget-578b9c9c.js} +13 -13
  54. package/{iframe-widget-52faa612.js → iframe-widget-0421d341.js} +13 -13
  55. package/{image-widget-17dd79c8.js → image-widget-45f2084e.js} +13 -13
  56. package/{index-2f190dda.js → index-0ec53886.js} +4 -4
  57. package/{index-a152420d.js → index-71414f55.js} +1 -1
  58. package/{index-38b887d7.js → index-e87f6095.js} +5 -5
  59. package/{input-number-widget-2ec5fbb9.js → input-number-widget-e5f194ee.js} +15 -15
  60. package/{input-widget-0fcb2818.js → input-widget-2e387198.js} +16 -16
  61. package/{label-wrapper-0b97fbf7.js → label-wrapper-74ac3d25.js} +5 -5
  62. package/{label-wrapper.vue_vue_type_style_index_0_lang-21ba79d3.js → label-wrapper.vue_vue_type_style_index_0_lang-a752a09a.js} +3 -3
  63. package/{link-widget-5874c9bd.js → link-widget-c4b88869.js} +16 -16
  64. package/{ltable-col-widget-dba43068.js → ltable-col-widget-d997607a.js} +1 -1
  65. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-b21fceac.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d76a0dda.js} +9 -9
  66. package/{ltable-widget-003f718c.js → ltable-widget-3fd4f8fa.js} +5 -5
  67. package/{menu-widget-d0e533ed.js → menu-widget-4922b9ad.js} +14 -14
  68. package/{model-widget-31487103.js → model-widget-d2b07b57.js} +13 -13
  69. package/{multirow-d79e0604.js → multirow-0925cb09.js} +6 -6
  70. package/{multirow-widget-0b8d2b58.js → multirow-widget-438d3717.js} +15 -15
  71. package/package.json +1 -1
  72. package/{pagination-widget-f7ab8680.js → pagination-widget-bb45f999.js} +13 -13
  73. package/{picture-upload-widget-78d34bf8.js → picture-upload-widget-6a01717b.js} +16 -16
  74. package/{progress-widget-6c7e162f.js → progress-widget-5e36a47c.js} +14 -14
  75. package/{propresult-e4364460.js → propresult-7e5e2a86.js} +1 -1
  76. package/{qrcode-widget-16957a62.js → qrcode-widget-1f993823.js} +13 -13
  77. package/{radio-widget-188c1438.js → radio-widget-845c5f3a.js} +15 -15
  78. package/{range-widget-7f289ea1.js → range-widget-55e8fc67.js} +16 -16
  79. package/{rate-widget-2dd26126.js → rate-widget-488e03ea.js} +15 -15
  80. package/render.es.js +852 -853
  81. package/render.umd.js +835 -272
  82. package/{result-widget-2aa7e9a0.js → result-widget-a3d87088.js} +14 -14
  83. package/{rich-editor-widget-a00fe33d.js → rich-editor-widget-38df15ad.js} +15 -15
  84. package/{router-widget-967e9b1d.js → router-widget-f444b2b5.js} +13 -13
  85. package/{select-widget-c17f0591.js → select-widget-c91806f0.js} +15 -15
  86. package/{sfc-cfdb858f.js → sfc-906b2ece.js} +8 -8
  87. package/{sfcview-5e86900c.js → sfcview-44b09d06.js} +7 -7
  88. package/{share-field-fcd3dafc.js → share-field-e617229c.js} +134 -133
  89. package/{share-file-73cef45a.js → share-file-b00abb8f.js} +6 -6
  90. package/{slider-widget-07a59d1e.js → slider-widget-14047cb7.js} +15 -15
  91. package/{slot-7eaafaa3.js → slot-d17a0232.js} +4 -4
  92. package/{static-text-widget-91ff9511.js → static-text-widget-9fc4c89f.js} +14 -14
  93. package/{steps-widget-b1e0882e.js → steps-widget-998ecf65.js} +13 -13
  94. package/{subMenu-widget-31b2de2f.js → subMenu-widget-abae98b6.js} +8 -8
  95. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-705e9942.js → subMenu-widget.vue_vue_type_script_setup_true_lang-92a3f7dd.js} +3 -3
  96. package/{switch-widget-a555b084.js → switch-widget-d9e89a5f.js} +15 -15
  97. package/{tab-pane-widget-ac8c950e.js → tab-pane-widget-23653113.js} +1 -1
  98. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-66244ac0.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ffb2c743.js} +5 -5
  99. package/table-col-widget-b85130e9.js +22 -0
  100. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-27776f4a.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8cd47cfd.js} +6 -6
  101. package/{table-widget-7fd05bf7.js → table-widget-36fcd9ae.js} +15 -15
  102. package/{tabs-widget-dc5727ef.js → tabs-widget-8f782f21.js} +7 -7
  103. package/{tag-widget-1a6e5fc4.js → tag-widget-308644a0.js} +16 -16
  104. package/{text-widget-538a206e.js → text-widget-4d09c9f5.js} +16 -16
  105. package/{textarea-widget-9b7f1126.js → textarea-widget-0768353e.js} +15 -15
  106. package/{time-picker-range-widget-61caae19.js → time-picker-range-widget-b72dc3f2.js} +15 -15
  107. package/{time-picker-widget-5753a44d.js → time-picker-widget-d73cf0c9.js} +15 -15
  108. package/{time-select-widget-6d373331.js → time-select-widget-6c2e583c.js} +15 -15
  109. package/{tmpl-widget-3fb389f8.js → tmpl-widget-f9e1d402.js} +14 -14
  110. package/{tree-select-widget-d987b456.js → tree-select-widget-52d4da3f.js} +15 -15
  111. package/{tree-widget-6b6ff0ad.js → tree-widget-1b6c7c89.js} +13 -13
  112. package/{uuid-81bac653.js → uuid-7e57e368.js} +1 -1
  113. package/{verifycode-widget-15cf3e5c.js → verifycode-widget-ec65a0c7.js} +13 -13
  114. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-00da89c5.js} +7 -7
  115. package/{wrapper-widget-e243df5a.js → wrapper-widget-aeca5e2e.js} +6 -6
  116. package/default-slot-widget-187a0a77.js +0 -26
  117. package/feedback-widget-f6ab7210.js +0 -26
  118. package/table-col-widget-c0db0601.js +0 -22
@@ -1,78 +1,78 @@
1
- import { isRef as N, watch as v, isReactive as M, toRaw as L } from "vue";
1
+ import { isRef as b, watch as x, isReactive as L, toRaw as B } from "vue";
2
2
  function p(e, t, r = []) {
3
3
  if (e === t || e !== e && t !== t)
4
4
  return !0;
5
- const n = typeof e;
6
- return n !== typeof t ? !1 : e == null || t == null || n === "function" ? e === t : n !== "object" ? !1 : B(e, t);
5
+ const a = typeof e;
6
+ return a !== typeof t ? !1 : e == null || t == null || a === "function" ? e === t : a !== "object" ? !1 : M(e, t);
7
7
  }
8
- function B(e, t, r = []) {
9
- const n = r.length;
10
- for (let l = 0; l < n; l += 2)
11
- if (r[l] === e && r[l + 1] === t)
8
+ function M(e, t, r = []) {
9
+ const a = r.length;
10
+ for (let s = 0; s < a; s += 2)
11
+ if (r[s] === e && r[s + 1] === t)
12
12
  return !0;
13
13
  if (r.push(e, t), Array.isArray(e)) {
14
14
  if (!Array.isArray(t) || e.length !== t.length)
15
15
  return !1;
16
- for (let l = 0; l < e.length; l++)
17
- if (!p(e[l], t[l], r))
16
+ for (let s = 0; s < e.length; s++)
17
+ if (!p(e[s], t[s], r))
18
18
  return !1;
19
19
  return r.pop(), r.pop(), !0;
20
20
  }
21
21
  if (e instanceof Date && t instanceof Date) {
22
- const l = e.getTime() === t.getTime();
23
- return r.pop(), r.pop(), l;
22
+ const s = e.getTime() === t.getTime();
23
+ return r.pop(), r.pop(), s;
24
24
  }
25
25
  if (e instanceof RegExp && t instanceof RegExp) {
26
- const l = e.source === t.source && e.flags === t.flags;
27
- return r.pop(), r.pop(), l;
26
+ const s = e.source === t.source && e.flags === t.flags;
27
+ return r.pop(), r.pop(), s;
28
28
  }
29
29
  if (e instanceof Map && t instanceof Map) {
30
30
  if (e.size !== t.size)
31
31
  return !1;
32
- for (const [l, E] of e)
33
- if (!t.has(l) || !p(E, t.get(l), r))
32
+ for (const [s, h] of e)
33
+ if (!t.has(s) || !p(h, t.get(s), r))
34
34
  return !1;
35
35
  return r.pop(), r.pop(), !0;
36
36
  }
37
37
  if (e instanceof Set && t instanceof Set) {
38
38
  if (e.size !== t.size)
39
39
  return !1;
40
- const l = Array.from(e), E = Array.from(t);
41
- for (const I of l) {
42
- let A = !1;
43
- for (const P of E)
44
- if (p(I, P, r)) {
45
- A = !0;
40
+ const s = Array.from(e), h = Array.from(t);
41
+ for (const P of s) {
42
+ let T = !1;
43
+ for (const v of h)
44
+ if (p(P, v, r)) {
45
+ T = !0;
46
46
  break;
47
47
  }
48
- if (!A)
48
+ if (!T)
49
49
  return !1;
50
50
  }
51
51
  return r.pop(), r.pop(), !0;
52
52
  }
53
- if (y(e) && y(t)) {
54
- const l = H(e, t);
55
- return r.pop(), r.pop(), l;
53
+ if (A(e) && A(t)) {
54
+ const s = H(e, t);
55
+ return r.pop(), r.pop(), s;
56
56
  }
57
- const o = Object.keys(e), a = Object.keys(t), i = Object.getOwnPropertySymbols(e), u = Object.getOwnPropertySymbols(t);
58
- if (o.length + i.length !== a.length + u.length)
57
+ const n = Object.keys(e), o = Object.keys(t), i = Object.getOwnPropertySymbols(e), l = Object.getOwnPropertySymbols(t);
58
+ if (n.length + i.length !== o.length + l.length)
59
59
  return r.pop(), r.pop(), !1;
60
- for (const l of [...o, ...i])
61
- if (!p(e[l], t[l], r))
60
+ for (const s of [...n, ...i])
61
+ if (!p(e[s], t[s], r))
62
62
  return r.pop(), r.pop(), !1;
63
- const s = Object.getPrototypeOf(e), d = Object.getPrototypeOf(t);
64
- return s !== d ? (r.pop(), r.pop(), !1) : (r.pop(), r.pop(), !0);
63
+ const u = Object.getPrototypeOf(e), d = Object.getPrototypeOf(t);
64
+ return u !== d ? (r.pop(), r.pop(), !1) : (r.pop(), r.pop(), !0);
65
65
  }
66
- function y(e) {
66
+ function A(e) {
67
67
  return e instanceof Int8Array || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int16Array || e instanceof Uint16Array || e instanceof Int32Array || e instanceof Uint32Array || e instanceof Float32Array || e instanceof Float64Array || e instanceof DataView || e instanceof ArrayBuffer;
68
68
  }
69
69
  function H(e, t) {
70
70
  if (e.byteLength !== t.byteLength)
71
71
  return !1;
72
72
  if (e instanceof ArrayBuffer && t instanceof ArrayBuffer) {
73
- const r = new Uint8Array(e), n = new Uint8Array(t);
74
- for (let o = 0; o < r.length; o++)
75
- if (r[o] !== n[o])
73
+ const r = new Uint8Array(e), a = new Uint8Array(t);
74
+ for (let n = 0; n < r.length; n++)
75
+ if (r[n] !== a[n])
76
76
  return !1;
77
77
  return !0;
78
78
  }
@@ -87,143 +87,143 @@ function H(e, t) {
87
87
  return !1;
88
88
  return !0;
89
89
  }
90
- const V = (e) => e === null, D = (e) => e === void 0, c = (e) => V(e) || D(e), ie = (e) => !c(e) && !isNaN(e) && typeof e == "number", f = (e) => e !== void 0 && typeof e == "object" || Object.prototype.toString.call(e) === "[object Object]", U = (e) => Object.prototype.toString.call(e) === "[object Array]" || Array.isArray(e), le = (e) => e !== void 0 && typeof e == "function", ue = (e) => e !== void 0 && typeof e == "string", se = (e) => c(e) || !/[^\s]/.test(String(e)), ce = (e, t) => {
90
+ const k = (e) => e === null, N = (e) => e === void 0, c = (e) => k(e) || N(e), se = (e) => !c(e) && !isNaN(e) && typeof e == "number", m = (e) => e !== void 0 && typeof e == "object" || Object.prototype.toString.call(e) === "[object Object]", V = (e) => Object.prototype.toString.call(e) === "[object Array]" || Array.isArray(e), le = (e) => e !== void 0 && typeof e == "function", ue = (e) => e !== void 0 && typeof e == "string", ce = (e) => c(e) || !/[^\s]/.test(String(e)), de = (e, t) => {
91
91
  const { hasOwnProperty: r } = Object.prototype;
92
92
  return !!e && !!t && r.call(e, t);
93
93
  };
94
- function R(e = {}, t = {}, r = !0) {
95
- let n;
94
+ function I(e = {}, t = {}, r = !0) {
95
+ let a;
96
96
  if (t == null)
97
97
  return e;
98
98
  if (e === null)
99
99
  return t;
100
100
  c(e) && (e = Array.isArray(t) ? [] : {});
101
- for (n in t) {
102
- var o = e[n], a = t[n];
103
- p(o, a) || (!c(o) && f(o) && (!r || !U(o)) ? e[n] = R(o, a, r) : e[n] = a);
101
+ for (a in t) {
102
+ var n = e[a], o = t[a];
103
+ p(n, o) || (!c(n) && m(n) && (!r || !V(n)) ? e[a] = I(n, o, r) : e[a] = o);
104
104
  }
105
105
  return e;
106
106
  }
107
- function de(e) {
107
+ function pe(e) {
108
108
  var t;
109
109
  e && ((t = S(e)) == null || t.forEach((r) => delete e[r]));
110
110
  }
111
- function pe(e) {
111
+ function me(e) {
112
112
  var t;
113
113
  return c(e) || ((t = S(e)) == null ? void 0 : t.length) <= 0;
114
114
  }
115
115
  const fe = (e) => {
116
116
  var t;
117
117
  return Array.isArray(e) ? !!e && e.length > 0 : !!e && ((t = S(e)) == null ? void 0 : t.length) > 0;
118
- }, _ = (e, t) => {
119
- var o;
118
+ }, C = (e, t) => {
119
+ var n;
120
120
  if (c(t) || t === "")
121
121
  return e;
122
- const r = (o = t == null ? void 0 : t.trim()) == null ? void 0 : o.split(".");
123
- var n = e;
124
- return r == null || r.forEach((a) => {
125
- var i = n == null ? void 0 : n[a];
126
- n = !c(n) && !c(i) ? i : null;
127
- }), n;
128
- }, me = (e, t, r, n = !1) => {
129
- if (!e || !t || n && D(r))
122
+ const r = (n = t == null ? void 0 : t.trim()) == null ? void 0 : n.split(".");
123
+ var a = e;
124
+ return r == null || r.forEach((o) => {
125
+ var i = a == null ? void 0 : a[o];
126
+ a = !c(a) && !c(i) ? i : null;
127
+ }), a;
128
+ }, ge = (e, t, r, a = !1) => {
129
+ if (!e || !t || a && N(r))
130
130
  return;
131
- const o = { [t]: r };
132
- return R(e, o), e;
133
- }, C = (e) => {
134
- function t(n) {
135
- return n.map((o) => C(o));
131
+ const n = { [t]: r };
132
+ return I(e, n), e;
133
+ }, w = (e) => {
134
+ function t(a) {
135
+ return a.map((n) => w(n));
136
136
  }
137
- function r(n) {
138
- let o = null;
139
- if (n instanceof Date)
140
- return new Date(n.getTime());
141
- if (n) {
142
- o = {};
143
- for (let a in n)
144
- o[a] = C(n[a]);
145
- o.__proto__ = Object.getPrototypeOf(n);
137
+ function r(a) {
138
+ let n = null;
139
+ if (a instanceof Date)
140
+ return new Date(a.getTime());
141
+ if (a) {
142
+ n = {};
143
+ for (let o in a)
144
+ n[o] = w(a[o]);
145
+ n.__proto__ = Object.getPrototypeOf(a);
146
146
  }
147
- return o;
147
+ return n;
148
148
  }
149
- return f(e) ? Array.isArray(e) ? t(e) : r(e) : e;
150
- }, S = (e) => e ? Array.isArray(e) && e.length > 0 ? Object.keys(e[0]) : Object.keys(e) : [], ge = (e, t) => {
149
+ return m(e) ? Array.isArray(e) ? t(e) : r(e) : e;
150
+ }, S = (e) => e ? Array.isArray(e) && e.length > 0 ? Object.keys(e[0]) : Object.keys(e) : [], he = (e, t) => {
151
151
  let r = [];
152
- function n(o) {
153
- for (const [a, i] of Object.entries(o)) {
154
- const u = a;
155
- i && f(i) ? (t !== !0 && r.push(u), n(i)) : r.push(u);
152
+ function a(n) {
153
+ for (const [o, i] of Object.entries(n)) {
154
+ const l = o;
155
+ i && m(i) ? (t !== !0 && r.push(l), a(i)) : r.push(l);
156
156
  }
157
157
  }
158
- return n(e), r;
159
- }, Ee = (e, t) => {
158
+ return a(e), r;
159
+ }, ye = (e, t) => {
160
160
  let r = [];
161
- function n(o, a) {
162
- for (const [i, u] of Object.entries(o)) {
163
- const s = `${a ? a + "." : ""}${i}`;
164
- u && f(u) ? (t !== !0 && r.push({ key: i, path: s }), n(u, s)) : r.push({ key: i, path: s });
161
+ function a(n, o) {
162
+ for (const [i, l] of Object.entries(n)) {
163
+ const u = `${o ? o + "." : ""}${i}`;
164
+ l && m(l) ? (t !== !0 && r.push({ key: i, path: u }), a(l, u)) : r.push({ key: i, path: u });
165
165
  }
166
166
  }
167
- return n(e), r;
168
- }, G = (e) => Promise.resolve(e) === e, he = (e) => Array.from(new Set(e)), Te = (e, t, r) => (e === void 0 && (e = []), e == null || e.splice(t + 1, 0, r), e), Se = (e, t) => (e == null || e.splice(t, 1), e), Ae = (e, t) => ([e[t - 1], e[t]] = [e[t], e[t - 1]], e), ye = (e, t) => ([e[t], e[t + 1]] = [e[t + 1], e[t]], e), k = (e, t, r, n, o) => {
169
- !e || !Array.isArray(e) || e == null || e.forEach((a, i, u) => {
170
- (r ? r(a, i, u) : !0) ? n == null || n(a, i, u) : o == null || o(a, i, u), a[t] && k(a[t], t, r, n, o);
167
+ return a(e), r;
168
+ }, U = (e) => Promise.resolve(e) === e, Ee = (e) => Array.from(new Set(e)), Se = (e, t, r) => (e === void 0 && (e = []), e == null || e.splice(t + 1, 0, r), e), Te = (e, t) => (e == null || e.splice(t, 1), e), Ae = (e, t) => ([e[t - 1], e[t]] = [e[t], e[t - 1]], e), Ce = (e, t) => ([e[t], e[t + 1]] = [e[t + 1], e[t]], e), W = (e, t, r, a, n) => {
169
+ !e || !Array.isArray(e) || e == null || e.forEach((o, i, l) => {
170
+ (r ? r(o, i, l) : !0) ? a == null || a(o, i, l) : n == null || n(o, i, l), o[t] && W(o[t], t, r, a, n);
171
171
  });
172
- }, W = (e, t, r, n) => {
173
- e == null || e.forEach((o) => {
174
- if (n != null && n(o))
175
- t.push(o);
172
+ }, G = (e, t, r, a) => {
173
+ e == null || e.forEach((n) => {
174
+ if (a != null && a(n))
175
+ t.push(n);
176
176
  else {
177
- var a = t.length;
178
- W(o == null ? void 0 : o[r], t, r, n);
177
+ var o = t.length;
178
+ G(n == null ? void 0 : n[r], t, r, a);
179
179
  var i = t.length;
180
- i !== a && t.push(o);
180
+ i !== o && t.push(n);
181
181
  }
182
182
  });
183
183
  };
184
184
  function K(e, t) {
185
185
  for (const r in e)
186
186
  if (e.hasOwnProperty(r)) {
187
- const n = e[r];
188
- t(e, r, n), typeof n == "object" && n !== null && K(n, t);
187
+ const a = e[r];
188
+ t(e, r, a), typeof a == "object" && a !== null && K(a, t);
189
189
  }
190
190
  }
191
- const _e = (e) => Array.isArray(e) ? e.join(" ") : "", Ce = (...e) => {
191
+ const we = (e) => Array.isArray(e) ? e.join(" ") : "", _e = (...e) => {
192
192
  var t;
193
193
  return !e || e.length <= 0 ? [] : e.length == 1 && ((t = e[0]) != null && t.hasOwnProperty("length")) && Array.isArray(e) ? Object.values(e[0]) : e;
194
194
  };
195
- function we(e, t) {
196
- return e.reduce((r, n) => {
197
- const o = Array.isArray(t(n)) ? t(n) : [t(n)];
198
- var a = r.find((i) => JSON.stringify(i.group) === JSON.stringify(o));
199
- return a ? a.children.push(n) : r.push({ group: o, children: [n] }), r;
195
+ function be(e, t) {
196
+ return e.reduce((r, a) => {
197
+ const n = Array.isArray(t(a)) ? t(a) : [t(a)];
198
+ var o = r.find((i) => JSON.stringify(i.group) === JSON.stringify(n));
199
+ return o ? o.children.push(a) : r.push({ group: n, children: [a] }), r;
200
200
  }, []);
201
201
  }
202
202
  const Ne = (e) => {
203
203
  var t = {};
204
- return Object.keys(e).sort((r, n) => r.localeCompare(n)).map((r) => t[r] = e[r]), t;
204
+ return Object.keys(e).sort((r, a) => r.localeCompare(a)).map((r) => t[r] = e[r]), t;
205
205
  };
206
- function J(e, t) {
206
+ function Y(e, t) {
207
207
  return e.localeCompare(t, void 0, { numeric: !0, sensitivity: "base" });
208
208
  }
209
- function De(e, ...t) {
210
- return [...e].sort((r, n) => {
211
- for (const o of t) {
212
- const { selector: a, direction: i = "asc" } = typeof o == "function" ? { selector: o } : o, u = a(r), s = a(n);
213
- if (u === s)
209
+ function Ie(e, ...t) {
210
+ return [...e].sort((r, a) => {
211
+ for (const n of t) {
212
+ const { selector: o, direction: i = "asc" } = typeof n == "function" ? { selector: n } : n, l = o(r), u = o(a);
213
+ if (l === u)
214
214
  continue;
215
215
  let d = 0;
216
- if (typeof u == "string" && typeof s == "string") {
217
- if (d = J(u, s), d !== 0)
216
+ if (typeof l == "string" && typeof u == "string") {
217
+ if (d = Y(l, u), d !== 0)
218
218
  return d;
219
219
  } else
220
- d = u < s ? 1 : -1;
220
+ d = l < u ? 1 : -1;
221
221
  return i === "desc" ? d : -d;
222
222
  }
223
223
  return 0;
224
224
  });
225
225
  }
226
- function Re(e, t, r) {
226
+ function De(e, t, r) {
227
227
  if (!e)
228
228
  return {
229
229
  data: [],
@@ -231,39 +231,39 @@ function Re(e, t, r) {
231
231
  totalPages: 0,
232
232
  currentPage: 1
233
233
  };
234
- const n = e == null ? void 0 : e.length, o = Math.ceil(n / r), a = (t - 1) * r, i = a + r;
234
+ const a = e == null ? void 0 : e.length, n = Math.ceil(a / r), o = (t - 1) * r, i = o + r;
235
235
  return {
236
- data: e == null ? void 0 : e.slice(a, i),
237
- totalItems: n,
238
- totalPages: o,
236
+ data: e == null ? void 0 : e.slice(o, i),
237
+ totalItems: a,
238
+ totalPages: n,
239
239
  currentPage: t
240
240
  };
241
241
  }
242
- function be(e, t) {
242
+ function Re(e, t) {
243
243
  const r = /* @__PURE__ */ new Set();
244
- return e.filter((n) => {
245
- const o = t.map((a) => n[a]).join("|");
246
- return r.has(o) ? !1 : r.add(o);
244
+ return e.filter((a) => {
245
+ const n = t.map((o) => a[o]).join("|");
246
+ return r.has(n) ? !1 : r.add(n);
247
247
  });
248
248
  }
249
- const w = (e) => {
249
+ const _ = (e) => {
250
250
  if (typeof e != "object" || e === null)
251
251
  return Promise.resolve(e);
252
252
  if (e instanceof Promise)
253
253
  return e;
254
254
  if (Array.isArray(e))
255
- return Promise.all(e.map(w));
256
- const t = Object.keys(e), r = t.map((n) => w(e[n]));
257
- return new Promise((n, o) => {
258
- Promise.all(r).then((a) => {
255
+ return Promise.all(e.map(_));
256
+ const t = Object.keys(e), r = t.map((a) => _(e[a]));
257
+ return new Promise((a, n) => {
258
+ Promise.all(r).then((o) => {
259
259
  const i = {};
260
- t.forEach((u, s) => {
261
- i[u] = a[s];
262
- }), n(i);
260
+ t.forEach((l, u) => {
261
+ i[l] = o[u];
262
+ }), a(i);
263
263
  });
264
264
  });
265
265
  };
266
- var Y = {
266
+ var J = {
267
267
  name: "zh-cn",
268
268
  el: {
269
269
  breadcrumb: {
@@ -2204,35 +2204,6 @@ vars:页面设置中的全局变量`,
2204
2204
  marginPadding: "边距",
2205
2205
  state: "状态",
2206
2206
  codeEdit: "源代码编辑"
2207
- },
2208
- acehint: {
2209
- allRefList: "获取所有组件实例",
2210
- getField: "获取组件原始配置",
2211
- getFormData: "获取表单数据集",
2212
- getValue: "获取组件值",
2213
- setValue: "设置组件值",
2214
- findRefByName: "查询组件",
2215
- getWidgetOption: "获取组件属性",
2216
- setWidgetOption: "设置组件属性",
2217
- refreshKey: "刷新组件",
2218
- getRowScope: "获取组件绑定的数据",
2219
- getOneSchemaData: "查询数据源",
2220
- getSchemaDatas: "查询多个数据源,结果为数组",
2221
- getSchemaDataObject: "查询多个数据源,结果为字典",
2222
- addCssClass: "添加样式类",
2223
- removeCssClass: "删除样式类",
2224
- resetField: "重置组件",
2225
- refreshDefaultValue: "重置组件为默认值",
2226
- focus: "获取焦点",
2227
- blur: "失去焦点",
2228
- loadOptionItems: "设置组件选项列表",
2229
- getCheckedItems: "获取选项型组件已选的选项",
2230
- getCheckedLabels: "获取选项型组件已选项文本",
2231
- setRequired: "设置必填",
2232
- setLabel: "设置标签",
2233
- setHidden: "设置隐藏",
2234
- setDisabled: "设置禁用",
2235
- setReadonly: "设置只读"
2236
2207
  }
2237
2208
  }
2238
2209
  }, q = {
@@ -2285,7 +2256,7 @@ vars:页面设置中的全局变量`,
2285
2256
  // nonSubFormType: '组件类型不是子表单'
2286
2257
  }
2287
2258
  }
2288
- }, X = {
2259
+ }, j = {
2289
2260
  extension: {
2290
2261
  // widgetLabel: {
2291
2262
  // card: '卡片',
@@ -2306,66 +2277,725 @@ vars:页面设置中的全局变量`,
2306
2277
  // effect: '显示效果'
2307
2278
  // }
2308
2279
  }
2280
+ }, Q = {
2281
+ ace: {
2282
+ hint: {
2283
+ allRefList: "获取所有组件实例",
2284
+ getField: `/**
2285
+ * 获取组件原始配置
2286
+ * @returns Object
2287
+ */
2288
+ getField():Object`,
2289
+ getFormData: `/**
2290
+ * 获取表单数据集
2291
+ * @returns Object
2292
+ */
2293
+ getFormData():Object`,
2294
+ getValue: `/**
2295
+ * 获取组件值
2296
+ * @returns String|Number|Object|List
2297
+ */
2298
+ getValue():any`,
2299
+ setValue: `/**
2300
+ * 设置组件值
2301
+ * @param newValue,新的组件值
2302
+ */
2303
+ setValue(1):void`,
2304
+ findRefByName: `/**
2305
+ * 查询组件
2306
+ * @returns Object,组件引用
2307
+ */
2308
+ findRefByName():Object`,
2309
+ getWidgetOption: `/**
2310
+ * 获取组件属性
2311
+ * @returns Object,组件属性
2312
+ */
2313
+ getWidgetOption():Object`,
2314
+ setWidgetOption: `/**
2315
+ * 设置组件属性
2316
+ * @param optionName,属性名
2317
+ * @param optionValue,新的属性值
2318
+ */
2319
+ setWidgetOption("hidden", false):void`,
2320
+ refreshKey: `/**
2321
+ * 刷新组件
2322
+ */
2323
+ refreshKey():void`,
2324
+ getRowScope: `/**
2325
+ * 获取组件绑定的数据
2326
+ * 一般结构为{row:Object}
2327
+ * @returns Object,父级组件传递的绑定值
2328
+ */
2329
+ getRowScope():Object`,
2330
+ getOneSchemaData: `/**
2331
+ * 查询数据源
2332
+ * 数据源信息与全局设置中对应数据源的描述一致
2333
+ * @param schemaName,数据源名称
2334
+ * @param data,数据源参数,与数据源中的data配置相对应
2335
+ * @returns Object,数据源查询结果,promise异步结果
2336
+ */
2337
+ getOneSchemaData("queryAPI",{test:1}):Object`,
2338
+ getSchemaDatas: `/**
2339
+ * 查询多个数据源,结果为数组(元素的顺序与schemaNames一致)
2340
+ * 数据源信息与全局设置中对应数据源的描述一致
2341
+ * @param schemaNames,数据源名称数组,
2342
+ * @param data,数据源参数,与数据源中的data配置相对应
2343
+ * @param progressFn,进度回调。详情如下:
2344
+ * progressFn:(percentage: number, data: any, index: number, name: string, schemaDescp?: string)
2345
+ * #percentage,进度百分比
2346
+ * #data,调用结果
2347
+ * #index,数据源在数组中的索引号
2348
+ * #name,数据源名称
2349
+ * #schemaDescp,数据源描述,
2350
+ * @returns List,数据源查询结果,promise异步结果
2351
+ */
2352
+ getSchemaDatas(schemaNames,data,progressFn):List`,
2353
+ getSchemaDataObject: `/**
2354
+ * 查询多个数据源,结果为字典(元素的顺序与schemaNames一致)
2355
+ * 数据源信息与全局设置中对应数据源的描述一致
2356
+ * @param schemaNames,数据源名称数组,
2357
+ * @param data,数据源参数,与数据源中的data配置相对应
2358
+ * @param progressFn,进度回调。详情如下:
2359
+ * progressFn:(percentage: number, data: any, index: number, name: string, schemaDescp?: string)
2360
+ * #percentage,进度百分比
2361
+ * #data,调用结果
2362
+ * #index,数据源在数组中的索引号
2363
+ * #name,数据源名称
2364
+ * #schemaDescp,数据源描述,
2365
+ * @returns List,数据源查询结果,promise异步结果
2366
+ */
2367
+ getSchemaDataObject(schemaNames,data,progressFn):Object`,
2368
+ addCssClass: `/**
2369
+ * 添加样式类
2370
+ * 如引用自全局css时,需现在全局设置中的css编辑添加此类,如
2371
+ * .testClass:{color:red;}
2372
+ * @param className,类名
2373
+ */
2374
+ addCssClass("testClass"):void`,
2375
+ removeCssClass: `/**
2376
+ * 删除样式类
2377
+ * @param className,类名
2378
+ */
2379
+ removeCssClass("testClass"):void`,
2380
+ resetField: `/**
2381
+ * 重置组件
2382
+ */
2383
+ resetField():void`,
2384
+ refreshDefaultValue: `/**
2385
+ * 重置组件为默认值
2386
+ */
2387
+ refreshDefaultValue():void`,
2388
+ focus: `/**
2389
+ * 获取焦点
2390
+ */
2391
+ focus():void`,
2392
+ blur: `/**
2393
+ * 失去焦点
2394
+ */
2395
+ blur():void`,
2396
+ loadOptionItems: `/**
2397
+ * 设置组件选项列表
2398
+ * @param items,新的选项列表
2399
+ */
2400
+ loadOptionItems([{"value":1,"label":"测试"}]):void`,
2401
+ getCheckedItems: `/**
2402
+ * 获取选项型组件已选的选项
2403
+ * @param value,选项值
2404
+ * @returns List,选中的选项对象
2405
+ */
2406
+ getCheckedItems([1,2,3]):List`,
2407
+ getCheckedLabels: `/**
2408
+ * 获取选项型组件已选项文本,如label属性
2409
+ * @returns List,选中的选项对象
2410
+ */
2411
+ getCheckedLabels():List`,
2412
+ setRequired: `/**
2413
+ * 设置必填
2414
+ * @param flag,标志位
2415
+ */
2416
+ setRequired(true):void`,
2417
+ setLabel: `/**
2418
+ * 设置标签
2419
+ * @param newLabel,新的标签名称
2420
+ */
2421
+ setLabel(true):void`,
2422
+ setHidden: `/**
2423
+ * 设置隐藏
2424
+ * @param flag,标志位
2425
+ */
2426
+ setHidden(true):void`,
2427
+ setDisabled: `/**
2428
+ * 设置禁用
2429
+ * @param flag,标志位
2430
+ */
2431
+ setDisabled(true):void`,
2432
+ setReadonly: `/**
2433
+ * 设置只读
2434
+ * @param flag,标志位
2435
+ */
2436
+ setReadonly(true):void`,
2437
+ exporting: "是否为导出状态",
2438
+ exportExcel: ` /**
2439
+ * 导出excel文件
2440
+ * @param data 原始表数据
2441
+ * @param columns 导出列,ColumnConfig[]
2442
+ * #interface ColumnConfig {
2443
+ prop: string;
2444
+ label: string;
2445
+ children?: ColumnConfig[];
2446
+ width?: number;
2447
+ formatter?: ( row: any,col:any,value: any,index:number) => any;
2448
+ }
2449
+ * @param config 导出配置,ExportConfig
2450
+ #interface ExportConfig {
2451
+ filename?: string;
2452
+ sheetName?: string;
2453
+ headerStyle?: any;
2454
+ dataStyle?: any;
2455
+ autoWidth?: boolean;
2456
+ }
2457
+ * @returns ExportResult。导出结果ExportResult
2458
+ # interface ExportResult {
2459
+ success: boolean;
2460
+ message: string;
2461
+ filename?: string;
2462
+ }
2463
+ */
2464
+ exportExcel([{a:1}]):ExportResult`,
2465
+ CBC_Pkcs7: `/**
2466
+ * CBC加密
2467
+ * @param key,加密KEY
2468
+ * @param iv,加密IV
2469
+ * @returns String,加密结果
2470
+ */
2471
+ CBC_Pkcs7("123321","123321"):String`,
2472
+ ECB_Pkcs7: `/**
2473
+ * EBC加密
2474
+ * @param key,加密KEY
2475
+ * @param iv,加密IV
2476
+ * @returns String,加密结果
2477
+ */
2478
+ ECB_Pkcs7("123321","123321"):String`,
2479
+ saveBlob: `/**
2480
+ * 保存文件
2481
+ * @param filename,文件名
2482
+ * @returns 保存结果,详情如下
2483
+ * #interface resultinf {
2484
+ data?: any,
2485
+ isSuccess: boolean,
2486
+ message?: string
2487
+ }
2488
+ */
2489
+ saveBlob(blob,"测试文件.jpg"):resultinf`,
2490
+ downloadFile: `/**
2491
+ * 下载文件
2492
+ * @param url,下载地址
2493
+ * @param filename,文件名
2494
+ * @returns 下载结果,详情如下
2495
+ * #interface resultinf {
2496
+ data?: any,
2497
+ isSuccess: boolean,
2498
+ message?: string
2499
+ }
2500
+ */
2501
+ downloadFile("http://test.com","测试文件.jpg"):resultinf`,
2502
+ previewFile: `/**
2503
+ * 预览文件
2504
+ * @param url,文件地址
2505
+ * @returns 预览结果,详情如下
2506
+ * #interface resultinf {
2507
+ data?: any,
2508
+ isSuccess: boolean,
2509
+ message?: string
2510
+ }
2511
+ */
2512
+ previewFile("http://test.com","测试文件.jpg"):resultinf`,
2513
+ localStorageRemove: `/**
2514
+ * 移除缓存
2515
+ * @param key 存储名称
2516
+ */
2517
+ remove("keyName"):void`,
2518
+ localStorageSet: `/**
2519
+ * 设置缓存
2520
+ * @param key 存储名称
2521
+ * @param value 存储内容
2522
+ */
2523
+ set("keyName","2"):void`,
2524
+ localStorageGet: `/**
2525
+ * 获取缓存
2526
+ * @param key 存储名称
2527
+ * @returns string
2528
+ */
2529
+ get("keyName"):void`,
2530
+ httpReq: `/**
2531
+ * 通用请求
2532
+ * @param conf 请求配置,扩展自InternalAxiosRequestConfig&{
2533
+ * willFetch:(dataParams: any, response: any) => any,
2534
+ * errorFetch:(dataParams: any, conf: InternalAxiosRequestConfig) => any,
2535
+ * fitFetch:(dataParams: any, response: any) => any
2536
+ * }
2537
+ * @param dataParams 请求入参
2538
+ * @returns 对象。请求结果
2539
+ */`,
2540
+ httpGet: `/**
2541
+ * get请求方式
2542
+ * @param conf 请求配置,扩展自InternalAxiosRequestConfig&{
2543
+ * willFetch:(dataParams: any, response: any) => any,
2544
+ * errorFetch:(dataParams: any, conf: InternalAxiosRequestConfig) => any,
2545
+ * fitFetch:(dataParams: any, response: any) => any
2546
+ * }
2547
+ * @param dataParams 请求入参
2548
+ * @returns 对象。请求结果
2549
+ */`,
2550
+ httpPost: `/**
2551
+ * post请求方式
2552
+ * @param conf 请求配置,扩展自InternalAxiosRequestConfig&{
2553
+ * willFetch:(dataParams: any, response: any) => any,
2554
+ * errorFetch:(dataParams: any, conf: InternalAxiosRequestConfig) => any,
2555
+ * fitFetch:(dataParams: any, response: any) => any
2556
+ * }
2557
+ * @param dataParams 请求入参
2558
+ * @returns 对象。请求结果
2559
+ */`,
2560
+ cookieGet: `/**
2561
+ * 获取cookie缓存
2562
+ * @param key 存储名称
2563
+ */
2564
+ get("keyName"):string`,
2565
+ cookieSet: `/**
2566
+ * 获取cookie缓存
2567
+ * @param key 存储名称
2568
+ * @param value 存储值
2569
+ * @param minutes 有效分钟
2570
+ */
2571
+ set("keyName","1",20):void`,
2572
+ cookieRemove: `/**
2573
+ * 移除cookie缓存
2574
+ * @param key 存储名称
2575
+ */
2576
+ remove("keyName"):void`,
2577
+ cookieGetAll: `/**
2578
+ * 获取全部cookie
2579
+ * @param key 存储名称
2580
+ * @returns Object,缓存键值对
2581
+ */
2582
+ getAll():Object`,
2583
+ isUrl: `/**
2584
+ * 是否为url地址
2585
+ * @param s 字符串
2586
+ * @returns 布尔值。
2587
+ */
2588
+ isUrl("s123")`,
2589
+ refreshUrl: `/**
2590
+ * 刷新当前页
2591
+ */
2592
+ refreshUrl()`,
2593
+ resolveByCurrentUrl: ` /**
2594
+ * 将相对路径转换为绝对路径
2595
+ * @param relativePath 相对路径
2596
+ * @param hashPre 哈希前缀
2597
+ * @returns 字符串。
2598
+ */
2599
+ resolveByCurrentUrl("/a/2","preStr")`,
2600
+ buildUrl: `/**
2601
+ * 网址拼接
2602
+ * @param baseUrl 基础网址
2603
+ * @param params 参数列表
2604
+ * @param options addtimestamp是否添加时间戳,encode 是否编码
2605
+ * @returns 字符串
2606
+ */
2607
+ buildUrl("http://test.com",{a:1,b:2},{encode:true,addtimestamp:true}):String`,
2608
+ getBaseUrl: `/**
2609
+ * 获取网址基础地址
2610
+ * @param url 网址
2611
+ * @returns 字符串
2612
+ */
2613
+ getBaseUrl("http://test.com/a?v=1"):String`,
2614
+ getQueryParam: `/**
2615
+ * 获取网址参数
2616
+ * @param url 网址
2617
+ * @param key 参数名称
2618
+ * @returns 参数值
2619
+ */
2620
+ getQueryParam("http://test.com/a?v=1","v"):String`,
2621
+ getQueryParams: `/**
2622
+ * 获取网址参数
2623
+ * @param url 网址
2624
+ * @returns 参数值
2625
+ */
2626
+ getQueryParams("http://test.com/a?v=1"):Object`,
2627
+ getLocationQueryParam: `/**
2628
+ * 获取当前网址参数
2629
+ * @param key 参数名称
2630
+ * @returns 参数值
2631
+ */
2632
+ getLocationQueryParam("v"):String`,
2633
+ getLocationQueryParams: `/**
2634
+ * 获取网址参数
2635
+ * @returns 参数值
2636
+ */
2637
+ getLocationQueryParams():Object`,
2638
+ buildUrlByLocalQuery: `/**
2639
+ * 传入当前页的url参数
2640
+ * @param baseUrl 基础url
2641
+ * @returns 字符串。新的url
2642
+ */
2643
+ buildUrlByLocalQuery("http://test.com/a?v=1"):String`,
2644
+ isIdcardValid: `/**
2645
+ * 身份证号是否合规
2646
+ * @param idcard 身份证号
2647
+ * @returns 布尔值。
2648
+ */
2649
+ isValid("123321"):Boolean`,
2650
+ convertToIdcard18: `/**
2651
+ * 将15位身份证转为18位
2652
+ * @param idcard 15位身份证号
2653
+ * @returns 字符串。
2654
+ */
2655
+ convertTo18("123321"):String`,
2656
+ getIdcardInfo: `/**
2657
+ * 获取身份证信息
2658
+ * @param idcard 身份证号
2659
+ * @returns IdcardInfo,详情如下
2660
+ * #interface IdcardInfo{
2661
+ provinceCode:string;
2662
+ provinceName:string;
2663
+ cityCode:string;
2664
+ cityName:string;
2665
+ birthday:string;
2666
+ age:string;
2667
+ }
2668
+ */
2669
+ getInfo("123321"):IdcardInfo`,
2670
+ uniqueBy: `/**
2671
+ * 数组对象去重
2672
+ * @param arr 数组对象
2673
+ * @param keys 键列表
2674
+ * @returns List。
2675
+ */
2676
+ uniqueBy([{a:1,b:2},{a:1,b:3}],["a"]):List`,
2677
+ sortBy: `/**
2678
+ * 数组对象排序
2679
+ * @param arr 数组对象
2680
+ * @param criteria 排序方式数组
2681
+ * @returns List。
2682
+ */
2683
+ sortBy([{a:1,b:2},{a:1,b:3}],{selector:(x)=>x.a,direction:"desc"},{selector:(x)=>x.b,direction:"asc"}):List`,
2684
+ groupBy: `/**
2685
+ * 数组对象分组
2686
+ * @param arr 数组对象
2687
+ * @param keySelector 分组方法(数组)
2688
+ * @returns List。
2689
+ */
2690
+ groupBy([{a:1,b:2},{a:1,b:3}],[(x)=>x.a]):List`,
2691
+ pageBy: `/**
2692
+ * 数组对象分页
2693
+ * @param arr 数组对象
2694
+ * @param currentPage 当前页码
2695
+ * @param pageSize 每页行数
2696
+ * @returns List。
2697
+ */
2698
+ pageBy([{a:1,b:2},{a:1,b:3}],2,10):List`,
2699
+ sendMsg: `/**
2700
+ * 给window窗体发送消息
2701
+ * @param window 窗体
2702
+ * @param msg 消息,支持json对象
2703
+ * @returns 布尔值。发送结果
2704
+ */
2705
+ send(window,"test"):Boolean`,
2706
+ receiveMsg: `/**
2707
+ * 监听接收消息
2708
+ * @param callback 接收到的消息回调
2709
+ * callback:(msg: { data: any, origin: string })=>void
2710
+ * @param handleOnce 单次执行,监听到结果即时停止监听
2711
+ */
2712
+ receive((msg: { data: any, origin: string })=>{},true):void`,
2713
+ sendToIframe: `/**
2714
+ * 给iframe窗体发送消息
2715
+ * @param ifmDom iframe的引用dom
2716
+ * @param msg 消息
2717
+ * @returns 布尔值。
2718
+ */
2719
+ sendToIframe(ifmDom,"test"):Boolean`,
2720
+ sendToParent: `/**
2721
+ * 给父窗体发送消息
2722
+ * @param msg 消息
2723
+ * @returns 布尔值。
2724
+ */
2725
+ sendToParent("test"):Boolean`,
2726
+ sendToIframeByName: `/**
2727
+ * 根据窗体name给iframe窗体发送消息
2728
+ * @param iframeName iframe的name属性
2729
+ * @param msg 消息
2730
+ * @returns 布尔值。
2731
+ */
2732
+ sendToIframeByName("ifmName","test"):Boolean`,
2733
+ openWindow: `/**
2734
+ * 打开窗口
2735
+ * @param url 链接地址
2736
+ * @param options
2737
+ * #interface openOptionAPI{
2738
+ * target:boolean;//是否新开窗口
2739
+ * width:Number;//窗口宽度;
2740
+ * height:Number;//高度
2741
+ * }
2742
+ * @param mywindow window对象
2743
+ * @param withQuery 附加当前窗口url参数
2744
+ */
2745
+ openWindow("http://test.com",{target:true,height:300,width:300},window,true)`,
2746
+ findUpWindow: `/**
2747
+ * 向上查找 window 或 iframe
2748
+ * @param startWindow 起始窗口
2749
+ * @param targetId 目标ID (iframe.id 或 window.name)
2750
+ * @param options OAPI
2751
+ * #interface OAPI{
2752
+ * includeSelf: boolean;//查询范围是否包含startWindow
2753
+ * }
2754
+ * @returns RAPI
2755
+ * #interface RAPI{
2756
+ * window: window;
2757
+ * iframe: HTMLIFrameElement
2758
+ * }
2759
+ */
2760
+ findUp(window,"testID",{includeSelf:true}):RAPI`,
2761
+ findDownWindow: `/**
2762
+ * 向下递归查找 window 或 iframe
2763
+ * @param rootWindow 起始窗口
2764
+ * @param targetId 目标ID
2765
+ * @returns RAPI
2766
+ * #interface RAPI{
2767
+ * window: window;
2768
+ * iframe: HTMLIFrameElement
2769
+ * }
2770
+ */
2771
+ findDown(window,"testID"):RAPI`,
2772
+ findWindow: `/**
2773
+ * 双向查找 window 或 iframe
2774
+ * @param startWindow 起始窗口
2775
+ * @param targetId 目标ID
2776
+ * @param direction 查找方向: 'up'|'down'|'both' (默认 'both')
2777
+ * @returns RAPI
2778
+ * #interface RAPI{
2779
+ * window: window;
2780
+ * iframe: HTMLIFrameElement
2781
+ * }
2782
+ */
2783
+ find(window,"testID","up"):RAPI`,
2784
+ findByIframeId: `/**
2785
+ * 通过 iframe ID 直接获取 window
2786
+ * @param iframeId iframe 元素 ID
2787
+ * @param startWindow 起始窗口
2788
+ * @returns RAPI
2789
+ * #interface RAPI{
2790
+ * window: window;
2791
+ * iframe: HTMLIFrameElement
2792
+ * }
2793
+ */
2794
+ findByIframeId("testID",window):RAPI`,
2795
+ findTopWindow: `/**
2796
+ * 获取当前窗口的顶级窗口
2797
+ * @param startWindow 起始窗口
2798
+ * @returns window
2799
+ */
2800
+ findTop("testID",window):window`,
2801
+ ElNotification: `/**
2802
+ * 通知
2803
+ * @param options OAPI
2804
+ #interface OAPI{
2805
+ title:string;//标题
2806
+ message:string;//内容
2807
+ type:string;//类型,info|success|warning|error
2808
+ }
2809
+ */
2810
+ ElNotification({title:'标题',message:'内容',type:'info'}):void`,
2811
+ ElMessageBox: `/**
2812
+ * 消息提示
2813
+ * @param options OAPI
2814
+ #interface OAPI{
2815
+ title:string;//标题
2816
+ message:string;//内容
2817
+ type:string;//类型,info|success|warning|error
2818
+ }
2819
+ */
2820
+ ElMessageBox({title:'标题',message:'内容',type:'info'}):void`,
2821
+ ElMessage: `/**
2822
+ * 消息弹出框
2823
+ * @param options OAPI
2824
+ #interface OAPI{
2825
+ title:string;//标题
2826
+ message:string;//内容
2827
+ type:string;//类型,info|success|warning|error
2828
+ }
2829
+ */
2830
+ ElMessage({title:'标题',message:'内容',type:'info'}):void`,
2831
+ toJson: `/**
2832
+ * 对象转字符串
2833
+ * @param obj 对象
2834
+ */
2835
+ toJson("消息"):String`,
2836
+ fromJson: `/**
2837
+ * 字符串转对象
2838
+ * @param str 字符串
2839
+ */
2840
+ fromJson('{"test":1}'):Object`,
2841
+ encryptSM2: `/**
2842
+ * 非对称国密加密
2843
+ * @param data 明文
2844
+ * @param publicKey 公钥
2845
+ */
2846
+ encrypt({a:1,b:2},"公钥"):String`,
2847
+ decryptSM2: `/**
2848
+ * 非对称国密解密
2849
+ * @param data 密文
2850
+ * @param privateKey 私钥
2851
+ */
2852
+ decrypt("data","私钥"):Object`,
2853
+ encryptSM4: `/**
2854
+ * 对称国密加密
2855
+ * @param data 明文
2856
+ * @param key KEY
2857
+ * @param iv IV
2858
+ */
2859
+ encrypt({a:1,b:2},"key","IV"):String`,
2860
+ decryptSM4: `/**
2861
+ * 对称国密解密
2862
+ * @param data 密文
2863
+ * @param key KEY
2864
+ * @param iv IV
2865
+ */
2866
+ decrypt("data","key","IV"):Object`,
2867
+ traceBody: `/**
2868
+ * 根据原始数据计算校验内容
2869
+ * 1、req增加添加时间戳键值对
2870
+ * 2、key根据ascii排序
2871
+ * 3、对象转字符串
2872
+ * 4、字符串+digestKey
2873
+ * 5、md5加密(第四步)
2874
+ * 6、base64(第五步)
2875
+ * 7、req增加dataDigest键值对
2876
+ * @param req 原始数据
2877
+ * @param digestKey 加盐字符串
2878
+ * @returns 对象。
2879
+ */
2880
+ traceBody({a:1,b:2},"加盐字符串"):Object`,
2881
+ encodeSM2: `/**
2882
+ * 加盐+非对称国密解密
2883
+ * @param data 密文
2884
+ * @param digestKey 加盐字符串
2885
+ * @param publicKey 公钥
2886
+ */
2887
+ encodeSM2({a:1,b:2},"加盐字符串", "公钥"):String`,
2888
+ decodeSM2: `/**
2889
+ * 加盐+非对称国密解密
2890
+ * @param data 密文
2891
+ * @param privateKey 私钥
2892
+ */
2893
+ decodeSM2("密文","私钥"):Object`,
2894
+ encodeSM4: `/**
2895
+ * 加盐+对称国密加密
2896
+ * @param data 明文
2897
+ * @param digestKey 加盐字符串
2898
+ * @param key KEY
2899
+ * @param iv IV
2900
+ */
2901
+ encodeSM4({a:1,b:2},"加盐字符串","key","IV"):String`,
2902
+ decodeSM4: `/**
2903
+ * 对称国密解密
2904
+ * @param data 密文
2905
+ * @param key KEY
2906
+ * @param iv IV
2907
+ */
2908
+ decodeSM4("密文","key","IV"):Object`
2909
+ },
2910
+ encryptData: `/**
2911
+ * 系统集成数据解密
2912
+ * @param data 明文
2913
+ */
2914
+ encryptData({a:1,b:2}):String`,
2915
+ decryptData: `/**
2916
+ * 系统集成数据解密
2917
+ * @param data 密文
2918
+ */
2919
+ decryptData("密文"):Object`,
2920
+ encryptToUrl: `/**
2921
+ * 系统集成对data数据加密
2922
+ * 构成键值对{[key]:加密后的data}
2923
+ * @param key 目标参数名
2924
+ * @param data 原始参数数据
2925
+ */
2926
+ encryptToUrl("test",{a:1}):Object`,
2927
+ decryptFromUrl: `/**
2928
+ * 系统集成对url地址参数解密
2929
+ * 构成键值对
2930
+ * @param url url地址
2931
+ */
2932
+ decryptFromUrl("http://test.com?req=密文参数"):Object`,
2933
+ decryptFromLocation: `/**
2934
+ * 系统集成对当前url地址参数解密
2935
+ * 构成键值对
2936
+ */
2937
+ decryptFromLocation():Object`
2938
+ }
2309
2939
  };
2310
- function h(e) {
2940
+ function y(e) {
2311
2941
  if (!c(e))
2312
2942
  return e;
2313
2943
  }
2314
- function Fe(e, t) {
2315
- return t === !0 ? Q(e) : $(e);
2944
+ function Oe(e, t) {
2945
+ return t === !0 ? $(e) : X(e);
2316
2946
  }
2317
- function $(e) {
2947
+ function X(e) {
2318
2948
  if (!c(e))
2319
2949
  return Array.isArray(e) ? e == null ? void 0 : e[0] : e;
2320
2950
  }
2321
- function Q(e) {
2951
+ function $(e) {
2322
2952
  if (!c(e))
2323
2953
  return Array.isArray(e) ? e : [e];
2324
2954
  }
2325
- function Oe(e, t = !1) {
2955
+ function Fe(e, t = !1) {
2326
2956
  var r = Number(e);
2327
2957
  return isNaN(r) ? t ? e : void 0 : r;
2328
2958
  }
2329
- const xe = (e) => N(e) ? e == null ? void 0 : e.value : e, Ie = (e) => Z(b(e)), Pe = (e) => new Promise((t, r) => {
2330
- if (G(e)) {
2331
- e.then((o) => {
2332
- t(h(o));
2959
+ const Pe = (e) => b(e) ? e == null ? void 0 : e.value : e, ve = (e) => Z(D(e)), xe = (e) => new Promise((t, r) => {
2960
+ if (U(e)) {
2961
+ e.then((n) => {
2962
+ t(y(n));
2333
2963
  });
2334
2964
  return;
2335
2965
  }
2336
- if (!N(e)) {
2337
- t(h(e));
2966
+ if (!b(e)) {
2967
+ t(y(e));
2338
2968
  return;
2339
2969
  }
2340
- let n = null;
2341
- n = v(() => e == null ? void 0 : e.value, (o) => {
2342
- if (o != null) {
2970
+ let a = null;
2971
+ a = x(() => e == null ? void 0 : e.value, (n) => {
2972
+ if (n != null) {
2343
2973
  try {
2344
- n == null || n();
2345
- } catch (a) {
2346
- console.log(a);
2974
+ a == null || a();
2975
+ } catch (o) {
2976
+ console.log(o);
2347
2977
  }
2348
- t(h(o));
2978
+ t(y(n));
2349
2979
  }
2350
2980
  }, { immediate: !0 });
2351
2981
  });
2352
- function T(e, t = /* @__PURE__ */ new WeakMap()) {
2353
- if (typeof e != "object" || e === null || !M(e))
2982
+ function E(e, t = /* @__PURE__ */ new WeakMap()) {
2983
+ if (typeof e != "object" || e === null || !L(e))
2354
2984
  return e;
2355
2985
  if (t.has(e))
2356
2986
  return t.get(e);
2357
- const r = L(e) || e, n = Array.isArray(r) ? [] : {};
2358
- if (t.set(e, n), Array.isArray(r)) {
2359
- for (let a = 0; a < r.length; a++)
2360
- n[a] = T(r[a], t);
2361
- return n;
2987
+ const r = B(e) || e, a = Array.isArray(r) ? [] : {};
2988
+ if (t.set(e, a), Array.isArray(r)) {
2989
+ for (let o = 0; o < r.length; o++)
2990
+ a[o] = E(r[o], t);
2991
+ return a;
2362
2992
  }
2363
- const o = Reflect.ownKeys(r);
2364
- for (const a of o) {
2365
- const i = r[a];
2366
- n[a] = T(i, t);
2993
+ const n = Reflect.ownKeys(r);
2994
+ for (const o of n) {
2995
+ const i = r[o];
2996
+ a[o] = E(i, t);
2367
2997
  }
2368
- return n;
2998
+ return a;
2369
2999
  }
2370
3000
  const g = {
2371
3001
  info: (e, ...t) => {
@@ -2381,33 +3011,33 @@ const g = {
2381
3011
  } catch (r) {
2382
3012
  return g.error("JSON.parse", r, { text: e }), null;
2383
3013
  }
2384
- }, b = (e, t, r) => {
3014
+ }, D = (e, t, r) => {
2385
3015
  if (e == null || e == null)
2386
3016
  return "";
2387
3017
  if (typeof e == "string")
2388
3018
  return e;
2389
3019
  try {
2390
3020
  return JSON.stringify(e, t, r);
2391
- } catch (n) {
2392
- return g.error("JSON.stringify", n, e), "";
3021
+ } catch (a) {
3022
+ return g.error("JSON.stringify", a, e), "";
2393
3023
  }
2394
- }, ve = (e) => {
3024
+ }, Le = (e) => {
2395
3025
  try {
2396
- if (f(e))
3026
+ if (m(e))
2397
3027
  return !0;
2398
3028
  const t = JSON.parse(e);
2399
3029
  return !!(t && typeof t == "object");
2400
3030
  } catch (t) {
2401
3031
  return g.error("JSON.parse", t, e), !1;
2402
3032
  }
2403
- }, Me = (e) => {
3033
+ }, Be = (e) => {
2404
3034
  try {
2405
3035
  const t = JSON.stringify(e);
2406
3036
  return JSON.parse(t);
2407
3037
  } catch (t) {
2408
- return g.error("cloneObj", t, { data: e }), T(e);
3038
+ return g.error("cloneObj", t, { data: e }), E(e);
2409
3039
  }
2410
- }, F = {
3040
+ }, R = {
2411
3041
  /**
2412
3042
  * 获取缓存
2413
3043
  * @param key 存储名称
@@ -2422,7 +3052,7 @@ const g = {
2422
3052
  * @param value 存储内容
2423
3053
  */
2424
3054
  set(e, t) {
2425
- typeof t == "object" ? localStorage.setItem(e, b(t)) : localStorage.setItem(e, String(t));
3055
+ typeof t == "object" ? localStorage.setItem(e, D(t)) : localStorage.setItem(e, String(t));
2426
3056
  },
2427
3057
  /**
2428
3058
  * 移除缓存
@@ -2431,109 +3061,110 @@ const g = {
2431
3061
  remove(e) {
2432
3062
  localStorage.removeItem(e);
2433
3063
  }
2434
- }, j = {
3064
+ }, ee = {
2435
3065
  "zh-CN": {
2436
3066
  custionLocale: {},
2437
- ...Y,
3067
+ ...J,
2438
3068
  ...z,
2439
3069
  ...q,
2440
- ...X
3070
+ ...j,
3071
+ ...Q
2441
3072
  }
2442
- }, O = "v_form_locale", x = function() {
2443
- return { lang: F.get(O) || "zh-CN" };
2444
- }, ee = function(e) {
2445
- m.setLang(e), F.set(O, e);
2446
- }, Le = () => {
2447
- let e = x();
2448
- ee(e == null ? void 0 : e.lang);
2449
- }, m = te({
2450
- locale: x(),
2451
- messages: j
3073
+ }, O = "v_form_locale", F = function() {
3074
+ return { lang: R.get(O) || "zh-CN" };
3075
+ }, te = function(e) {
3076
+ f.setLang(e), R.set(O, e);
3077
+ }, Me = () => {
3078
+ let e = F();
3079
+ te(e == null ? void 0 : e.lang);
3080
+ }, f = re({
3081
+ locale: F(),
3082
+ messages: ee
2452
3083
  });
2453
- function te(e) {
3084
+ function re(e) {
2454
3085
  return {
2455
3086
  messages: e.messages,
2456
3087
  locale: e.locale,
2457
- $st(t, r = !0, ...n) {
3088
+ $st(t, r = !0, ...a) {
2458
3089
  t = t == null ? void 0 : t.trim();
2459
- let o = this.messages[this.locale.lang];
2460
- const a = _(o, t);
2461
- return typeof a == "function" ? a(...n) : a !== null ? a : r ? t : "";
3090
+ let n = this.messages[this.locale.lang];
3091
+ const o = C(n, t);
3092
+ return typeof o == "function" ? o(...a) : o !== null ? o : r ? t : "";
2462
3093
  },
2463
3094
  $st2(t, r) {
2464
- let n = this.messages[this.locale.lang];
2465
- const o = _(n, t);
2466
- return o !== null ? o : this.$st(r);
3095
+ let a = this.messages[this.locale.lang];
3096
+ const n = C(a, t);
3097
+ return n !== null ? n : this.$st(r);
2467
3098
  },
2468
3099
  setLang(t) {
2469
3100
  this.locale.lang = t;
2470
3101
  }
2471
3102
  };
2472
3103
  }
2473
- const Be = function(e) {
2474
- return m.$st(e);
2475
- }, He = {
3104
+ const He = function(e) {
3105
+ return f.$st(e);
3106
+ }, ke = {
2476
3107
  i18nt(e, t = !0) {
2477
- return e ? m.$st(e, t) : "";
3108
+ return e ? f.$st(e, t) : "";
2478
3109
  },
2479
3110
  i18n2t(e, t) {
2480
- return m.$st2(e, t);
3111
+ return f.$st2(e, t);
2481
3112
  }
2482
3113
  };
2483
- var re = /* @__PURE__ */ ((e) => (e.string = "string", e.number = "number", e.bigint = "bigint", e.boolean = "boolean", e.symbol = "symbol", e.undefined = "undefined", e.object = "object", e.function = "function", e.array = "array", e.any = "any", e.date = "date", e))(re || {}), ne = /* @__PURE__ */ ((e) => (e.typescript = "typescript", e.javascript = "javascript", e.css = "css", e.html = "html", e.json = "json", e.sql = "sql", e.text = "text", e))(ne || {}), oe = /* @__PURE__ */ ((e) => (e.sysVar = "sysVar", e.sysFunc = "sysFunc", e.sysData = "sysData", e.schema = "schema", e))(oe || {});
3114
+ var ae = /* @__PURE__ */ ((e) => (e.string = "string", e.number = "number", e.bigint = "bigint", e.boolean = "boolean", e.symbol = "symbol", e.undefined = "undefined", e.object = "object", e.function = "function", e.array = "array", e.any = "any", e.date = "date", e))(ae || {}), ne = /* @__PURE__ */ ((e) => (e.typescript = "typescript", e.javascript = "javascript", e.css = "css", e.html = "html", e.json = "json", e.sql = "sql", e.text = "text", e))(ne || {}), oe = /* @__PURE__ */ ((e) => (e.sysVar = "sysVar", e.sysFunc = "sysFunc", e.sysData = "sysData", e.schema = "schema", e))(oe || {});
2484
3115
  export {
2485
3116
  Ae as $,
2486
- Oe as A,
2487
- re as B,
2488
- Ie as C,
2489
- xe as D,
2490
- C as E,
3117
+ Fe as A,
3118
+ ae as B,
3119
+ ve as C,
3120
+ Pe as D,
3121
+ w as E,
2491
3122
  K as F,
2492
- k as G,
2493
- Pe as H,
2494
- ve as I,
2495
- G as J,
2496
- Me as K,
2497
- w as L,
2498
- de as M,
2499
- he as N,
2500
- Ce as O,
2501
- ie as P,
2502
- _ as Q,
2503
- _e as R,
3123
+ W as G,
3124
+ xe as H,
3125
+ Le as I,
3126
+ U as J,
3127
+ Be as K,
3128
+ _ as L,
3129
+ pe as M,
3130
+ Ee as N,
3131
+ _e as O,
3132
+ se as P,
3133
+ C as Q,
3134
+ we as R,
2504
3135
  ne as S,
2505
- pe as T,
2506
- ge as U,
2507
- Be as V,
2508
- Ee as W,
2509
- W as X,
2510
- Te as Y,
2511
- Se as Z,
2512
- ye as _,
3136
+ me as T,
3137
+ he as U,
3138
+ He as V,
3139
+ ye as W,
3140
+ G as X,
3141
+ Se as Y,
3142
+ Te as Z,
3143
+ Ce as _,
2513
3144
  ue as a,
2514
- Le as b,
2515
- h as c,
2516
- R as d,
2517
- He as e,
3145
+ Me as b,
3146
+ y as c,
3147
+ I as d,
3148
+ ke as e,
2518
3149
  Z as f,
2519
3150
  fe as g,
2520
- b as h,
3151
+ D as h,
2521
3152
  c as i,
2522
- se as j,
2523
- D as k,
2524
- V as l,
3153
+ ce as j,
3154
+ N as k,
3155
+ k as l,
2525
3156
  g as m,
2526
- f as n,
3157
+ m as n,
2527
3158
  S as o,
2528
3159
  oe as p,
2529
3160
  Ne as q,
2530
- F as r,
2531
- me as s,
2532
- Fe as t,
2533
- be as u,
2534
- De as v,
2535
- we as w,
2536
- Re as x,
3161
+ R as r,
3162
+ ge as s,
3163
+ Oe as t,
3164
+ Re as u,
3165
+ Ie as v,
3166
+ be as w,
3167
+ De as x,
2537
3168
  le as y,
2538
- ce as z
3169
+ de as z
2539
3170
  };