hlrender 0.0.281 → 0.0.282

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 (137) hide show
  1. package/{_pdf-548ad0f3.js → _pdf-d2478121.js} +8 -8
  2. package/{_txt-24c93a61.js → _txt-fd32f949.js} +6 -6
  3. package/{_unsupport-94709676.js → _unsupport-10d1d421.js} +1 -1
  4. package/{affix-widget-1a6310d4.js → affix-widget-77ddfdb9.js} +16 -16
  5. package/{alert-widget-571bba6e.js → alert-widget-c1f66236.js} +16 -16
  6. package/{anchor-widget-7f9b4704.js → anchor-widget-05148dd1.js} +13 -13
  7. package/{auto-complete-widget-28e2a290.js → auto-complete-widget-9bd9881e.js} +16 -16
  8. package/{avatar-widget-49f2752a.js → avatar-widget-89758349.js} +16 -16
  9. package/{backtop-widget-30564189.js → backtop-widget-068a28c5.js} +16 -16
  10. package/{badge-widget-0818febb.js → badge-widget-e5ddb65c.js} +16 -16
  11. package/{barcode-widget-ffc961ea.js → barcode-widget-6882a0ee.js} +19 -19
  12. package/{baseImp-e43868e7.js → baseImp-a05aa287.js} +1405 -1306
  13. package/{breadcrumb-widget-77002c24.js → breadcrumb-widget-1efe16dc.js} +13 -13
  14. package/{button-widget-e8070fb5.js → button-widget-cd209307.js} +16 -16
  15. package/{cache-widget-6cc29c5e.js → cache-widget-c6dc1d4d.js} +15 -15
  16. package/{card-widget-ca2bb1ad.js → card-widget-e99850fe.js} +14 -14
  17. package/{carousel-widget-4ffc62fc.js → carousel-widget-0e5da3dd.js} +14 -14
  18. package/{cascader-widget-74a7b297.js → cascader-widget-c960147f.js} +15 -15
  19. package/{chart-widget-e18a19f7.js → chart-widget-3da22d60.js} +29 -29
  20. package/{checkbox-widget-31023095.js → checkbox-widget-24946378.js} +15 -15
  21. package/{collapse-widget-50f525a9.js → collapse-widget-09465fbb.js} +14 -14
  22. package/{color-picker-widget-e624aa47.js → color-picker-widget-88d01165.js} +15 -15
  23. package/{cont-cell-widget-f308c538.js → cont-cell-widget-ed0e5d83.js} +1 -1
  24. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-98452cda.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-e2ea7130.js} +11 -11
  25. package/{cont-widget-41b64d3c.js → cont-widget-4b88e7e5.js} +15 -15
  26. package/{content-wrapper-2f8a8778.js → content-wrapper-b85ff3c9.js} +7 -7
  27. package/{content-wrapper.vue_vue_type_script_setup_true_lang-f2107cfb.js → content-wrapper.vue_vue_type_script_setup_true_lang-4adfe6d4.js} +7 -7
  28. package/{countdown-widget-4a53b867.js → countdown-widget-19441bfe.js} +16 -16
  29. package/cssClass-d5b2a013.js +24 -0
  30. package/{date-picker-range-widget-852eb4c0.js → date-picker-range-widget-b7a93200.js} +15 -15
  31. package/{date-picker-widget-d20afc47.js → date-picker-widget-85161b08.js} +15 -15
  32. package/default-slot-widget-46a8a1ee.js +27 -0
  33. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-9e5c9bd8.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-c2a09043.js} +7 -7
  34. package/{descriptions-widget-50eee1e8.js → descriptions-widget-fa392515.js} +14 -14
  35. package/{dialog-5573c8b7.js → dialog-64d549cc.js} +2 -2
  36. package/{dialog-widget-2dad7b95.js → dialog-widget-42c8990c.js} +15 -15
  37. package/{divider-widget-01b38854.js → divider-widget-07e594c7.js} +16 -16
  38. package/drag-wrapper-f78636d1.js +279 -0
  39. package/{drawer-widget-939bde62.js → drawer-widget-1c1dd8e2.js} +15 -15
  40. package/{dropdown-widget-3a3df408.js → dropdown-widget-47274915.js} +14 -14
  41. package/{empty-widget-809007bc.js → empty-widget-e7aa5b70.js} +16 -16
  42. package/{enum-type-54c8c6ff.js → enum-type-42dd79a1.js} +191 -316
  43. package/{enum-type-90590ca7.js → enum-type-51f144c1.js} +1 -1
  44. package/{expression-843cb957.js → expression-d4680713.js} +959 -944
  45. package/feedback-widget-f1e2b360.js +27 -0
  46. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-744d22c3.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-dc498e85.js} +6 -6
  47. package/{fieldobj-eb2feee2.js → fieldobj-a2678999.js} +1 -1
  48. package/{file-upload-widget-ab82c308.js → file-upload-widget-451addd2.js} +20 -20
  49. package/{form-item-wrapper-dc9f2e85.js → form-item-wrapper-228b6375.js} +11 -11
  50. package/{form-widget-551effdf.js → form-widget-9f5290b7.js} +53 -53
  51. package/{grid-col-widget-c02ffb7e.js → grid-col-widget-fd469073.js} +1 -1
  52. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-2635b1fb.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-c90ca8e7.js} +5 -5
  53. package/{grid-widget-7783b8a6.js → grid-widget-9a62f39a.js} +17 -17
  54. package/{hcard-widget-d116f0b2.js → hcard-widget-c75b1b6f.js} +14 -14
  55. package/{html-text-widget-fde30e97.js → html-text-widget-bb760458.js} +14 -14
  56. package/{icon-widget-58f29aa4.js → icon-widget-39740e64.js} +13 -13
  57. package/iframe-widget-6c513e2d.js +127 -0
  58. package/{image-widget-51e5ed47.js → image-widget-6658a5e2.js} +13 -13
  59. package/{index-e6ed9f5a.js → index-6afb8bee.js} +64 -64
  60. package/{index-9d408ab3.js → index-6e69a58f.js} +4 -4
  61. package/{index-ab77f273.js → index-ee925296.js} +1 -1
  62. package/{input-number-widget-c5081b1b.js → input-number-widget-d8266ca4.js} +19 -19
  63. package/{input-tag-widget-2ffdb2ec.js → input-tag-widget-0d69bd56.js} +16 -16
  64. package/{input-widget-29acc552.js → input-widget-eaba46a8.js} +16 -16
  65. package/{label-wrapper-e1cc338d.js → label-wrapper-c772b8f2.js} +5 -5
  66. package/{label-wrapper.vue_vue_type_style_index_0_lang-e4bea232.js → label-wrapper.vue_vue_type_style_index_0_lang-82c93f40.js} +3 -3
  67. package/{link-widget-a6a6e2ee.js → link-widget-ba4d6aa4.js} +16 -16
  68. package/{ltable-col-widget-4db824e1.js → ltable-col-widget-c421ff75.js} +1 -1
  69. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-77c5fb3e.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-99261216.js} +56 -56
  70. package/{ltable-widget-a3fb3718.js → ltable-widget-35df30a2.js} +19 -19
  71. package/{mention-widget-83f669d6.js → mention-widget-6301f55a.js} +16 -16
  72. package/{menu-widget-92aff85b.js → menu-widget-e2d328e3.js} +48 -48
  73. package/{model-widget-e78a71d0.js → model-widget-094f97d8.js} +13 -13
  74. package/{multirow-e54c3ff7.js → multirow-88dc90dd.js} +53 -53
  75. package/{multirow-widget-71e28030.js → multirow-widget-cc00757f.js} +46 -46
  76. package/package.json +1 -1
  77. package/{pagination-widget-9b4b03ef.js → pagination-widget-57ef2182.js} +13 -13
  78. package/{picture-upload-widget-fc052b6c.js → picture-upload-widget-c602e32a.js} +37 -37
  79. package/{progress-widget-c9044fa3.js → progress-widget-4c04b55c.js} +14 -14
  80. package/{qrcode-widget-70e3e032.js → qrcode-widget-dbd3212d.js} +25 -25
  81. package/{radio-widget-38b4713c.js → radio-widget-9e2a9b43.js} +15 -15
  82. package/{range-widget-1268a463.js → range-widget-6a4d2259.js} +16 -16
  83. package/{rate-widget-9d0fbe3b.js → rate-widget-5de20ced.js} +15 -15
  84. package/render.es.js +155 -154
  85. package/render.style.css +1 -1
  86. package/render.umd.js +126 -126
  87. package/{result-widget-dff9b20e.js → result-widget-fd88b2b1.js} +14 -14
  88. package/{rich-editor-widget-673f0312.js → rich-editor-widget-e14dcbe6.js} +23 -23
  89. package/{router-widget-2b256e76.js → router-widget-ea67f0ba.js} +13 -13
  90. package/{segmented-widget-f94759b2.js → segmented-widget-11bd4e4d.js} +13 -13
  91. package/{select-widget-a5794d9d.js → select-widget-2a9fa056.js} +15 -15
  92. package/{sfc-66e5b989.js → sfc-1b884c50.js} +114 -96
  93. package/{sfcview-60d56dab.js → sfcview-33b88ef4.js} +14 -14
  94. package/{share-field-dc9be135.js → share-field-ec8c208e.js} +94 -94
  95. package/{share-file-78434836.js → share-file-3087c9f9.js} +70 -70
  96. package/{skeleton-widget-ebdbfd1b.js → skeleton-widget-35dd8bd6.js} +16 -16
  97. package/{skeletonItem-widget-d201868b.js → skeletonItem-widget-dc2311cd.js} +13 -13
  98. package/{slider-widget-046814a0.js → slider-widget-7df4253d.js} +15 -15
  99. package/slot-6db6ac8e.js +360 -0
  100. package/{space-widget-5e30a357.js → space-widget-6fc38426.js} +14 -14
  101. package/{splitter-widget-2fa37fc7.js → splitter-widget-f4629b33.js} +14 -14
  102. package/{static-text-widget-24513e6b.js → static-text-widget-a54245c0.js} +14 -14
  103. package/{statistic-widget-9acbbea7.js → statistic-widget-2b39fcff.js} +16 -16
  104. package/{steps-widget-38d93f31.js → steps-widget-bb63027b.js} +13 -13
  105. package/{subMenu-widget-23007af2.js → subMenu-widget-a0d1771a.js} +8 -8
  106. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-e57e4ad0.js → subMenu-widget.vue_vue_type_script_setup_true_lang-6ec20ca0.js} +6 -6
  107. package/{switch-widget-0b65d046.js → switch-widget-d454ac66.js} +15 -15
  108. package/{tab-pane-widget-93f2901b.js → tab-pane-widget-5df8b474.js} +1 -1
  109. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ab5debe0.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-3bfd8f17.js} +8 -8
  110. package/table-col-widget-38f163df.js +23 -0
  111. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-e4ff6a5d.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-21bd0d44.js} +7 -7
  112. package/{table-widget-906bd14a.js → table-widget-af19ac4d.js} +61 -61
  113. package/{tabs-widget-652f9592.js → tabs-widget-eb2292e7.js} +7 -7
  114. package/{tag-widget-b7dcc617.js → tag-widget-c5e8cb90.js} +16 -16
  115. package/{text-widget-b029f026.js → text-widget-bb44b9c7.js} +16 -16
  116. package/{textarea-widget-d9c0bfdb.js → textarea-widget-c6a1b4ba.js} +15 -15
  117. package/{time-picker-range-widget-a95172e3.js → time-picker-range-widget-b3a3ff54.js} +15 -15
  118. package/{time-picker-widget-cd50707b.js → time-picker-widget-bbc1e186.js} +15 -15
  119. package/{time-select-widget-5c310493.js → time-select-widget-e098c664.js} +15 -15
  120. package/{timeline-widget-4d95600d.js → timeline-widget-90ec82c4.js} +14 -14
  121. package/tmpl-widget-702c58d7.js +99 -0
  122. package/{tooltip-widget-949acbc8.js → tooltip-widget-5eb579d5.js} +14 -14
  123. package/{tour-widget-b95b85c0.js → tour-widget-aa29b856.js} +23 -23
  124. package/{transfer-widget-80b58022.js → transfer-widget-593d18ed.js} +16 -16
  125. package/{tree-select-widget-b3328139.js → tree-select-widget-f8568c4e.js} +15 -15
  126. package/{tree-widget-bb4b799f.js → tree-widget-1d871bf4.js} +13 -13
  127. package/{uuid-aab81f94.js → uuid-0888fc5f.js} +1 -1
  128. package/{verifycode-widget-ba096ca4.js → verifycode-widget-cd1b3fb4.js} +21 -21
  129. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2b5032e8.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-a9e4f996.js} +7 -7
  130. package/{wrapper-widget-41ce114e.js → wrapper-widget-38438697.js} +9 -8
  131. package/default-slot-widget-1f6e991f.js +0 -27
  132. package/drag-wrapper-d98cad09.js +0 -295
  133. package/feedback-widget-295b041f.js +0 -27
  134. package/iframe-widget-e8e0557b.js +0 -122
  135. package/slot-100f7831.js +0 -341
  136. package/table-col-widget-cbf9b823.js +0 -23
  137. package/tmpl-widget-baa4063a.js +0 -98
@@ -1,72 +1,75 @@
1
- import { isRef as A, watch as F, isReactive as M, toRaw as k } from "vue";
2
- function d(e, t, r = []) {
1
+ var L = Object.defineProperty;
2
+ var F = (e, t, r) => t in e ? L(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var m = (e, t, r) => (F(e, typeof t != "symbol" ? t + "" : t, r), r);
4
+ import { isRef as T, watch as M, isReactive as k, toRaw as H } from "vue";
5
+ function c(e, t, r = []) {
3
6
  if (e === t || e !== e && t !== t)
4
7
  return !0;
5
8
  const a = typeof e;
6
- return a !== typeof t ? !1 : e == null || t == null || a === "function" ? e === t : a !== "object" ? !1 : H(e, t);
9
+ return a !== typeof t ? !1 : e == null || t == null || a === "function" ? e === t : a !== "object" ? !1 : B(e, t);
7
10
  }
8
- function H(e, t, r = []) {
11
+ function B(e, t, r = []) {
9
12
  const a = r.length;
10
- for (let s = 0; s < a; s += 2)
11
- if (r[s] === e && r[s + 1] === t)
13
+ for (let i = 0; i < a; i += 2)
14
+ if (r[i] === e && r[i + 1] === t)
12
15
  return !0;
13
16
  if (r.push(e, t), Array.isArray(e)) {
14
17
  if (!Array.isArray(t) || e.length !== t.length)
15
18
  return !1;
16
- for (let s = 0; s < e.length; s++)
17
- if (!d(e[s], t[s], r))
19
+ for (let i = 0; i < e.length; i++)
20
+ if (!c(e[i], t[i], r))
18
21
  return !1;
19
22
  return r.pop(), r.pop(), !0;
20
23
  }
21
24
  if (e instanceof Date && t instanceof Date) {
22
- const s = e.getTime() === t.getTime();
23
- return r.pop(), r.pop(), s;
25
+ const i = e.getTime() === t.getTime();
26
+ return r.pop(), r.pop(), i;
24
27
  }
25
28
  if (e instanceof RegExp && t instanceof RegExp) {
26
- const s = e.source === t.source && e.flags === t.flags;
27
- return r.pop(), r.pop(), s;
29
+ const i = e.source === t.source && e.flags === t.flags;
30
+ return r.pop(), r.pop(), i;
28
31
  }
29
32
  if (e instanceof Map && t instanceof Map) {
30
33
  if (e.size !== t.size)
31
34
  return !1;
32
- for (const [s, h] of e)
33
- if (!t.has(s) || !d(h, t.get(s), r))
35
+ for (const [i, p] of e)
36
+ if (!t.has(i) || !c(p, t.get(i), r))
34
37
  return !1;
35
38
  return r.pop(), r.pop(), !0;
36
39
  }
37
40
  if (e instanceof Set && t instanceof Set) {
38
41
  if (e.size !== t.size)
39
42
  return !1;
40
- const s = Array.from(e), h = Array.from(t);
41
- for (const D of s) {
42
- let T = !1;
43
- for (const L of h)
44
- if (d(D, L, r)) {
45
- T = !0;
43
+ const i = Array.from(e), p = Array.from(t);
44
+ for (const P of i) {
45
+ let _ = !1;
46
+ for (const D of p)
47
+ if (c(P, D, r)) {
48
+ _ = !0;
46
49
  break;
47
50
  }
48
- if (!T)
51
+ if (!_)
49
52
  return !1;
50
53
  }
51
54
  return r.pop(), r.pop(), !0;
52
55
  }
53
- if (b(e) && b(t)) {
54
- const s = B(e, t);
55
- return r.pop(), r.pop(), s;
56
+ if (y(e) && y(t)) {
57
+ const i = U(e, t);
58
+ return r.pop(), r.pop(), i;
56
59
  }
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)
60
+ const n = Object.keys(e), o = Object.keys(t), s = Object.getOwnPropertySymbols(e), R = Object.getOwnPropertySymbols(t);
61
+ if (n.length + s.length !== o.length + R.length)
59
62
  return r.pop(), r.pop(), !1;
60
- for (const s of [...n, ...i])
61
- if (!d(e[s], t[s], r))
63
+ for (const i of [...n, ...s])
64
+ if (!c(e[i], t[i], r))
62
65
  return r.pop(), r.pop(), !1;
63
- const c = Object.getPrototypeOf(e), m = Object.getPrototypeOf(t);
64
- return c !== m ? (r.pop(), r.pop(), !1) : (r.pop(), r.pop(), !0);
66
+ const O = Object.getPrototypeOf(e), v = Object.getPrototypeOf(t);
67
+ return O !== v ? (r.pop(), r.pop(), !1) : (r.pop(), r.pop(), !0);
65
68
  }
66
- function b(e) {
69
+ function y(e) {
67
70
  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
71
  }
69
- function B(e, t) {
72
+ function U(e, t) {
70
73
  if (e.byteLength !== t.byteLength)
71
74
  return !1;
72
75
  if (e instanceof ArrayBuffer && t instanceof ArrayBuffer) {
@@ -87,52 +90,39 @@ function B(e, t) {
87
90
  return !1;
88
91
  return !0;
89
92
  }
90
- const U = (e) => e === null, I = (e) => e === void 0, u = (e) => U(e) || I(e), le = (e) => !u(e) && !isNaN(e) && typeof e == "number", p = (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), ce = (e) => e !== void 0 && typeof e == "function", ue = (e) => e !== void 0 && typeof e == "string", de = (e) => u(e) || !/[^\s]/.test(String(e)), pe = (e, t) => {
93
+ const V = (e) => e === null, E = (e) => e === void 0, l = (e) => V(e) || E(e), de = (e) => l(e) || !/[^\s]/.test(String(e));
94
+ function ue(e) {
95
+ return !G(e);
96
+ }
97
+ const G = (e) => {
98
+ var t;
99
+ return Array.isArray(e) ? !!e && e.length > 0 : !!e && ((t = w(e)) == null ? void 0 : t.length) > 0;
100
+ }, pe = (e) => !l(e) && !isNaN(e) && typeof e == "number", h = (e) => e !== void 0 && typeof e == "object" || Object.prototype.toString.call(e) === "[object Object]", W = (e) => Object.prototype.toString.call(e) === "[object Array]" || Array.isArray(e), me = (e) => e !== void 0 && typeof e == "function", fe = (e) => e !== void 0 && typeof e == "string", K = (e) => Promise.resolve(e) === e, ge = (e, t) => {
91
101
  const { hasOwnProperty: r } = Object.prototype;
92
102
  return !!e && !!t && r.call(e, t);
93
103
  };
94
- function N(e = {}, t = {}, r = !0) {
95
- let a;
96
- if (t == null)
97
- return e;
98
- if (e === null)
99
- return t;
100
- u(e) && (e = Array.isArray(t) ? [] : {});
101
- for (a in t) {
102
- var n = e[a], o = t[a];
103
- d(n, o) || (!u(n) && p(n) && (!r || !V(n)) ? e[a] = N(n, o, r) : e[a] = o);
104
- }
105
- return e;
106
- }
107
- function me(e) {
108
- var t;
109
- e && ((t = S(e)) == null || t.forEach((r) => delete e[r]));
110
- }
111
- function fe(e) {
104
+ function he(e) {
112
105
  var t;
113
- return u(e) || ((t = S(e)) == null ? void 0 : t.length) <= 0;
106
+ e && ((t = w(e)) == null || t.forEach((r) => delete e[r]));
114
107
  }
115
- const ge = (e) => {
116
- var t;
117
- return Array.isArray(e) ? !!e && e.length > 0 : !!e && ((t = S(e)) == null ? void 0 : t.length) > 0;
118
- }, E = (e, t) => {
108
+ const S = (e, t) => {
119
109
  var n;
120
- if (u(t) || t === "")
110
+ if (l(t) || t === "")
121
111
  return e;
122
112
  const r = (n = t == null ? void 0 : t.trim()) == null ? void 0 : n.split(".");
123
113
  var a = e;
124
114
  return r == null || r.forEach((o) => {
125
- var i = a == null ? void 0 : a[o];
126
- a = !u(a) && !u(i) ? i : null;
115
+ var s = a == null ? void 0 : a[o];
116
+ a = !l(a) && !l(s) ? s : null;
127
117
  }), a;
128
- }, he = (e, t, r, a = !1) => {
129
- if (!e || !t || a && I(r))
118
+ }, _e = (e, t, r, a = !1) => {
119
+ if (!e || !t || a && E(r))
130
120
  return;
131
121
  const n = { [t]: r };
132
- return N(e, n), e;
133
- }, w = (e) => {
122
+ return C(e, n), e;
123
+ }, b = (e) => {
134
124
  function t(a) {
135
- return a.map((n) => w(n));
125
+ return a.map((n) => b(n));
136
126
  }
137
127
  function r(a) {
138
128
  let n = null;
@@ -141,145 +131,36 @@ const ge = (e) => {
141
131
  if (a) {
142
132
  n = {};
143
133
  for (let o in a)
144
- n[o] = w(a[o]);
134
+ n[o] = b(a[o]);
145
135
  n.__proto__ = Object.getPrototypeOf(a);
146
136
  }
147
137
  return n;
148
138
  }
149
- return p(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) : [], ye = (e, t) => {
151
- let r = [];
152
- function a(n) {
153
- for (const [o, i] of Object.entries(n)) {
154
- const l = o;
155
- i && p(i) ? (t !== !0 && r.push(l), a(i)) : r.push(l);
156
- }
157
- }
158
- return a(e), r;
159
- }, _e = (e, t) => {
160
- let r = [];
161
- function a(n, o) {
162
- for (const [i, l] of Object.entries(n)) {
163
- const c = `${o ? o + "." : ""}${i}`;
164
- l && p(l) ? (t !== !0 && r.push({ key: i, path: c }), a(l, c)) : r.push({ key: i, path: c });
165
- }
139
+ return h(e) ? Array.isArray(e) ? t(e) : r(e) : e;
140
+ }, w = (e) => e ? Array.isArray(e) && e.length > 0 ? Object.keys(e[0]) : Object.keys(e) : [];
141
+ function C(e = {}, t = {}, r = !0) {
142
+ let a;
143
+ if (t == null)
144
+ return e;
145
+ if (e === null)
146
+ return t;
147
+ l(e) && (e = Array.isArray(t) ? [] : {});
148
+ for (a in t) {
149
+ var n = e[a], o = t[a];
150
+ c(n, o) || (!l(n) && h(n) && (!r || !W(n)) ? e[a] = C(n, o, r) : e[a] = o);
166
151
  }
167
- return a(e), r;
168
- }, G = (e) => Promise.resolve(e) === e, Se = (e) => Array.from(new Set(e)), Te = (e, t, r) => (e === void 0 && (e = []), e == null || e.splice(t + 1, 0, r), e), be = (e, t) => (e == null || e.splice(t, 1), e), Ee = (e, t) => ([e[t - 1], e[t]] = [e[t], e[t - 1]], e), we = (e, t) => ([e[t], e[t + 1]] = [e[t + 1], e[t]], e), O = (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] && O(o[t], t, r, a, n);
171
- });
172
- }, Ce = (e, t, r) => {
173
- var a = [];
174
- return !e || !Array.isArray(e) || O(e, t, r, (n) => {
175
- a.push(n);
176
- }), a;
177
- }, W = (e, t, r, a) => {
178
- e == null || e.forEach((n) => {
179
- if (a != null && a(n))
180
- t.push(n);
181
- else {
182
- var o = t.length;
183
- W(n == null ? void 0 : n[r], t, r, a);
184
- var i = t.length;
185
- i !== o && t.push(n);
186
- }
187
- });
188
- };
189
- function K(e, t, r) {
152
+ return e;
153
+ }
154
+ function z(e, t, r) {
190
155
  for (const a in e)
191
156
  if (e.hasOwnProperty(a)) {
192
157
  const n = e[a];
193
158
  if (t(e, a, n), r != null && r(e, a, n))
194
159
  continue;
195
- typeof n == "object" && n !== null && K(n, t, r);
160
+ typeof n == "object" && n !== null && z(n, t, r);
196
161
  }
197
162
  }
198
- const Ae = (e) => Array.isArray(e) ? e.join(" ") : "", Ie = (...e) => {
199
- var t;
200
- return !e || e.length <= 0 ? [] : e.length == 1 && ((t = e[0]) != null && t.hasOwnProperty("length")) && Array.isArray(e) ? Object.values(e[0]) : e;
201
- }, Ne = (e, t, r) => {
202
- if (t < 0 || t >= e.length || r < 0 || r >= e.length || t === r)
203
- return [...e];
204
- const a = [...e], [n] = a.splice(t, 1);
205
- return a.splice(r, 0, n), a;
206
- };
207
- function Oe(e, t) {
208
- return !e || e.length <= 0 ? null : e.reduce((r, a) => {
209
- const n = Array.isArray(t(a)) ? t(a) : [t(a)];
210
- var o = r.find((i) => JSON.stringify(i.group) === JSON.stringify(n));
211
- return o ? o.children.push(a) : r.push({ group: n, children: [a] }), r;
212
- }, []);
213
- }
214
- const ve = (e) => {
215
- var t = {};
216
- return Object.keys(e).sort((r, a) => r.localeCompare(a)).map((r) => t[r] = e[r]), t;
217
- };
218
- function Y(e, t) {
219
- return e.localeCompare(t, void 0, { numeric: !0, sensitivity: "base" });
220
- }
221
- function z(e, t) {
222
- if (e === t)
223
- return 0;
224
- let r = 0;
225
- if (typeof e == "string" && typeof t == "string") {
226
- if (r = Y(e, t), r !== 0)
227
- return r;
228
- } else
229
- r = e < t ? 1 : -1;
230
- return r;
231
- }
232
- function Re(e, ...t) {
233
- return !e || e.length <= 0 ? e : [...e].sort((r, a) => {
234
- for (const n of t) {
235
- const { selector: o, direction: i = "asc", method: l } = typeof n == "function" ? { selector: n } : n, c = o(r), m = o(a), s = l ? l(c, m) : z(c, m);
236
- if (s !== 0)
237
- return i === "desc" ? s : -s;
238
- }
239
- return 0;
240
- });
241
- }
242
- function Pe(e, t, r) {
243
- if (!e)
244
- return {
245
- data: [],
246
- totalItems: 0,
247
- totalPages: 0,
248
- currentPage: 1
249
- };
250
- const a = e == null ? void 0 : e.length, n = Math.ceil(a / r), o = (t - 1) * r, i = o + r;
251
- return {
252
- data: e == null ? void 0 : e.slice(o, i),
253
- totalItems: a,
254
- totalPages: n,
255
- currentPage: t
256
- };
257
- }
258
- function xe(e, t) {
259
- const r = /* @__PURE__ */ new Set();
260
- return e.filter((a) => {
261
- const n = t.map((o) => a[o]).join("|");
262
- return r.has(n) ? !1 : r.add(n);
263
- });
264
- }
265
- const C = (e) => {
266
- if (typeof e != "object" || e === null)
267
- return Promise.resolve(e);
268
- if (e instanceof Promise)
269
- return e;
270
- if (Array.isArray(e))
271
- return Promise.all(e.map(C));
272
- const t = Object.keys(e), r = t.map((a) => C(e[a]));
273
- return new Promise((a, n) => {
274
- Promise.all(r).then((o) => {
275
- const i = {};
276
- t.forEach((l, c) => {
277
- i[l] = o[c];
278
- }), a(i);
279
- });
280
- });
281
- };
282
- var J = {
163
+ var Y = {
283
164
  name: "zh-cn",
284
165
  el: {
285
166
  breadcrumb: { label: "面包屑" },
@@ -455,7 +336,7 @@ var J = {
455
336
  }
456
337
  }
457
338
  };
458
- const q = {
339
+ const J = {
459
340
  application: {
460
341
  "zh-CN": "简体中文",
461
342
  productTitle: "页面设计器"
@@ -2509,7 +2390,7 @@ vars:页面设置中的全局变量`,
2509
2390
  codeEdit: "源代码编辑"
2510
2391
  }
2511
2392
  }
2512
- }, j = {
2393
+ }, q = {
2513
2394
  render: {
2514
2395
  hint: {
2515
2396
  prompt: "提示",
@@ -2559,7 +2440,7 @@ vars:页面设置中的全局变量`,
2559
2440
  // nonSubFormType: '组件类型不是子表单'
2560
2441
  }
2561
2442
  }
2562
- }, Q = {
2443
+ }, j = {
2563
2444
  extension: {
2564
2445
  // widgetLabel: {
2565
2446
  // card: '卡片',
@@ -2580,7 +2461,7 @@ vars:页面设置中的全局变量`,
2580
2461
  // effect: '显示效果'
2581
2462
  // }
2582
2463
  }
2583
- }, X = {
2464
+ }, Q = {
2584
2465
  ace: {
2585
2466
  hint: {
2586
2467
  allRefList: "获取所有组件实例",
@@ -3355,113 +3236,125 @@ hlpreview("打印模板uuid"|"打印模板uuid"[],{test:1},{apiUrl:"接口地址
3355
3236
  }
3356
3237
  }
3357
3238
  };
3358
- function y(e) {
3239
+ function f(e) {
3359
3240
  if (e === null)
3360
3241
  return null;
3361
3242
  if (e !== void 0)
3362
3243
  return e;
3363
3244
  }
3364
- function De(e, t) {
3365
- return t === !0 ? Z(e) : $(e);
3245
+ function ye(e, t) {
3246
+ return t === !0 ? $(e) : X(e);
3366
3247
  }
3367
- function $(e) {
3368
- if (!u(e))
3248
+ function X(e) {
3249
+ if (!l(e))
3369
3250
  return Array.isArray(e) ? e == null ? void 0 : e[0] : e;
3370
3251
  }
3371
- function Z(e) {
3372
- if (!u(e))
3252
+ function $(e) {
3253
+ if (!l(e))
3373
3254
  return Array.isArray(e) ? e : [e];
3374
3255
  }
3375
- function Le(e, t = !1) {
3256
+ function Se(e, t = !1) {
3376
3257
  var r = Number(e);
3377
3258
  return isNaN(r) ? t ? e : void 0 : r;
3378
3259
  }
3379
- const Fe = (e) => A(e) ? e == null ? void 0 : e.value : e, Me = (e) => ee(v(e)), ke = (e) => new Promise((t, r) => {
3380
- if (G(e)) {
3260
+ class Z {
3261
+ constructor(t) {
3262
+ m(this, "enabled");
3263
+ m(this, "prefix");
3264
+ this.enabled = t.enabled ?? !1, this.prefix = t.prefix || "[HLForm]";
3265
+ }
3266
+ // 核心方法:如果未启用,直接返回,零性能损耗
3267
+ error(...t) {
3268
+ this.enabled && console.error(`${this.prefix} [ERROR]`, ...t);
3269
+ }
3270
+ info(...t) {
3271
+ this.enabled && console.info(`${this.prefix} [INFO]`, ...t);
3272
+ }
3273
+ // 动态更新配置的方法(可选)
3274
+ updateOptions(t) {
3275
+ this.enabled = t.enabled, this.prefix = t.prefix || this.prefix;
3276
+ }
3277
+ }
3278
+ const be = Symbol("GlobalLogger"), ee = !0, d = new Z({ enabled: !ee }), Te = (e) => T(e) ? e == null ? void 0 : e.value : e, Ee = (e) => te(A(e)), we = (e) => new Promise((t, r) => {
3279
+ if (K(e)) {
3381
3280
  e.then((n) => {
3382
- t(y(n));
3281
+ t(f(n));
3383
3282
  });
3384
3283
  return;
3385
3284
  }
3386
- if (!A(e)) {
3387
- t(y(e));
3285
+ if (!T(e)) {
3286
+ t(f(e));
3388
3287
  return;
3389
3288
  }
3390
3289
  let a = null;
3391
- a = F(() => e == null ? void 0 : e.value, (n) => {
3290
+ a = M(() => e == null ? void 0 : e.value, (n) => {
3392
3291
  if (n != null) {
3393
3292
  try {
3394
3293
  a == null || a();
3395
3294
  } catch (o) {
3396
- console.log(o);
3295
+ d.error("watchRefTmpl", o);
3397
3296
  }
3398
- t(y(n));
3297
+ t(f(n));
3399
3298
  }
3400
3299
  }, { immediate: !0 });
3401
3300
  });
3402
- function _(e, t = /* @__PURE__ */ new WeakMap()) {
3403
- if (typeof e != "object" || e === null || !M(e))
3301
+ function g(e, t = /* @__PURE__ */ new WeakMap()) {
3302
+ if (typeof e != "object" || e === null || !k(e))
3404
3303
  return e;
3405
3304
  if (t.has(e))
3406
3305
  return t.get(e);
3407
- const r = k(e) || e, a = Array.isArray(r) ? [] : {};
3306
+ const r = H(e) || e, a = Array.isArray(r) ? [] : {};
3408
3307
  if (t.set(e, a), Array.isArray(r)) {
3409
3308
  for (let o = 0; o < r.length; o++)
3410
- a[o] = _(r[o], t);
3309
+ a[o] = g(r[o], t);
3411
3310
  return a;
3412
3311
  }
3413
3312
  const n = Reflect.ownKeys(r);
3414
3313
  for (const o of n) {
3415
- const i = r[o];
3416
- a[o] = _(i, t);
3314
+ const s = r[o];
3315
+ a[o] = g(s, t);
3417
3316
  }
3418
3317
  return a;
3419
3318
  }
3420
- const g = {
3421
- info: (e, ...t) => {
3422
- },
3423
- error: (e, t, ...r) => {
3424
- console.log(`[Error] ${e}`, t, ...r);
3425
- }
3426
- }, ee = (e, t) => {
3427
- if (e == null || e == null || e === "")
3319
+ const te = (e, t) => {
3320
+ if (e == null || e === "")
3428
3321
  return null;
3429
3322
  try {
3430
3323
  return typeof e == "string" ? JSON.parse(e, t) : typeof e == "object" || (e == null ? void 0 : e.constructor) === Object ? e : null;
3431
3324
  } catch (r) {
3432
- return g.error("JSON.parse", r, { text: e }), null;
3325
+ return d.error("JSON.parse", r, { text: e }), null;
3433
3326
  }
3434
- }, v = (e, t, r) => {
3435
- if (e == "" || e == null || e == null)
3327
+ }, A = (e, t, r) => {
3328
+ if (e === "" || e === null || e === void 0)
3436
3329
  return "";
3437
3330
  if (typeof e == "string")
3438
3331
  return e;
3439
3332
  try {
3440
3333
  return JSON.stringify(e, t, r);
3441
3334
  } catch (a) {
3442
- return g.error("JSON.stringify", a, e), "";
3335
+ return d.error("JSON.stringify", a, e), "";
3443
3336
  }
3444
- }, He = (e) => {
3445
- if (e == "" || e == null || e == null)
3337
+ }, Ce = (e) => {
3338
+ if (e === "" || e === null || e === void 0)
3446
3339
  return !1;
3447
3340
  try {
3448
- if (p(e))
3341
+ if (h(e))
3449
3342
  return !0;
3450
3343
  const t = JSON.parse(e);
3451
3344
  return !!(t && typeof t == "object");
3452
3345
  } catch (t) {
3453
- return g.error("JSON.parse", t, e), !1;
3346
+ return d.error("JSON.parse", t, e), !1;
3454
3347
  }
3455
- }, Be = (e) => {
3456
- if (e == "" || e == null || e == null)
3348
+ }, Ae = (e) => {
3349
+ if (e === "" || e === null || e === void 0)
3457
3350
  return null;
3458
3351
  try {
3459
3352
  const t = JSON.stringify(e);
3460
3353
  return JSON.parse(t);
3461
3354
  } catch (t) {
3462
- return g.error("cloneObj", t, { data: e }), _(e);
3355
+ return d.error("cloneObj", t, { data: e }), g(e);
3463
3356
  }
3464
- }, R = {
3357
+ }, I = {
3465
3358
  /**
3466
3359
  * 获取缓存
3467
3360
  * @param key 存储名称
@@ -3476,7 +3369,7 @@ const g = {
3476
3369
  * @param value 存储内容
3477
3370
  */
3478
3371
  set(e, t) {
3479
- typeof t == "object" ? localStorage.setItem(e, v(t)) : localStorage.setItem(e, String(t));
3372
+ typeof t == "object" ? localStorage.setItem(e, A(t)) : localStorage.setItem(e, String(t));
3480
3373
  },
3481
3374
  /**
3482
3375
  * 移除缓存
@@ -3485,39 +3378,39 @@ const g = {
3485
3378
  remove(e) {
3486
3379
  localStorage.removeItem(e);
3487
3380
  }
3488
- }, te = {
3381
+ }, re = {
3489
3382
  "zh-CN": {
3490
3383
  custionLocale: {},
3384
+ ...Y,
3491
3385
  ...J,
3492
3386
  ...q,
3493
3387
  ...j,
3494
- ...Q,
3495
- ...X
3388
+ ...Q
3496
3389
  }
3497
- }, P = "v_form_locale", x = function() {
3498
- return { lang: R.get(P) || "zh-CN" };
3499
- }, re = function(e) {
3500
- f.setLang(e), R.set(P, e);
3501
- }, Ue = () => {
3502
- let e = x();
3503
- re(e == null ? void 0 : e.lang);
3504
- }, f = ae({
3505
- locale: x(),
3506
- messages: te
3390
+ }, x = "v_form_locale", N = function() {
3391
+ return { lang: I.get(x) || "zh-CN" };
3392
+ }, ae = function(e) {
3393
+ u.setLang(e), I.set(x, e);
3394
+ }, Ie = () => {
3395
+ let e = N();
3396
+ ae(e == null ? void 0 : e.lang);
3397
+ }, u = ne({
3398
+ locale: N(),
3399
+ messages: re
3507
3400
  });
3508
- function ae(e) {
3401
+ function ne(e) {
3509
3402
  return {
3510
3403
  messages: e.messages,
3511
3404
  locale: e.locale,
3512
3405
  $st(t, r = !0, ...a) {
3513
3406
  t = t == null ? void 0 : t.trim();
3514
3407
  let n = this.messages[this.locale.lang];
3515
- const o = E(n, t);
3408
+ const o = S(n, t);
3516
3409
  return typeof o == "function" ? o(...a) : o !== null ? o : r ? t : "";
3517
3410
  },
3518
3411
  $st2(t, r) {
3519
3412
  let a = this.messages[this.locale.lang];
3520
- const n = E(a, t);
3413
+ const n = S(a, t);
3521
3414
  return n !== null ? n : this.$st(r);
3522
3415
  },
3523
3416
  setLang(t) {
@@ -3525,73 +3418,55 @@ function ae(e) {
3525
3418
  }
3526
3419
  };
3527
3420
  }
3528
- const Ve = function(e) {
3529
- return f.$st(e);
3530
- }, Ge = {
3421
+ const xe = function(e) {
3422
+ return u.$st(e);
3423
+ }, Ne = {
3531
3424
  i18nt(e, t = !0) {
3532
- return e ? f.$st(e, t) : "";
3425
+ return e ? u.$st(e, t) : "";
3533
3426
  },
3534
3427
  i18n2t(e, t) {
3535
- return f.$st2(e, t);
3428
+ return u.$st2(e, t);
3536
3429
  }
3537
3430
  };
3538
- var ne = /* @__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))(ne || {}), oe = /* @__PURE__ */ ((e) => (e.typescript = "typescript", e.javascript = "javascript", e.css = "css", e.html = "html", e.json = "json", e.sql = "sql", e.text = "text", e))(oe || {}), ie = /* @__PURE__ */ ((e) => (e.sysVar = "sysVar", e.sysFunc = "sysFunc", e.sysData = "sysData", e.schema = "schema", e))(ie || {});
3431
+ var oe = /* @__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))(oe || {}), ie = /* @__PURE__ */ ((e) => (e.typescript = "typescript", e.javascript = "javascript", e.css = "css", e.html = "html", e.json = "json", e.sql = "sql", e.text = "text", e))(ie || {}), le = /* @__PURE__ */ ((e) => (e.sysVar = "sysVar", e.sysFunc = "sysFunc", e.sysData = "sysData", e.schema = "schema", e))(le || {});
3539
3432
  export {
3540
- be as $,
3541
- pe as A,
3542
- ne as B,
3543
- Le as C,
3544
- Me as D,
3545
- O as E,
3546
- Fe as F,
3547
- w as G,
3548
- K as H,
3549
- ke as I,
3550
- G as J,
3551
- Be as K,
3552
- C as L,
3553
- me as M,
3554
- d as N,
3555
- Se as O,
3556
- Ie as P,
3557
- le as Q,
3558
- E as R,
3559
- Ae as S,
3560
- Ne as T,
3561
- oe as U,
3562
- fe as V,
3563
- ye as W,
3564
- Ve as X,
3565
- _e as Y,
3566
- W as Z,
3567
- Te as _,
3568
- ue as a,
3569
- we as a0,
3570
- Ee as a1,
3571
- Ce as a2,
3572
- Ue as b,
3573
- y as c,
3574
- N as d,
3575
- Ge as e,
3576
- ee as f,
3577
- ge as g,
3578
- v as h,
3579
- u as i,
3433
+ z as A,
3434
+ oe as B,
3435
+ we as C,
3436
+ K as D,
3437
+ Ae as E,
3438
+ he as F,
3439
+ c as G,
3440
+ pe as H,
3441
+ S as I,
3442
+ ie as J,
3443
+ ue as K,
3444
+ be as L,
3445
+ xe as M,
3446
+ fe as a,
3447
+ Ie as b,
3448
+ f as c,
3449
+ C as d,
3450
+ Ne as e,
3451
+ te as f,
3452
+ G as g,
3453
+ A as h,
3454
+ l as i,
3580
3455
  de as j,
3581
- I as k,
3582
- U as l,
3583
- g as m,
3584
- p as n,
3585
- S as o,
3586
- ie as p,
3587
- ve as q,
3588
- R as r,
3589
- he as s,
3590
- De as t,
3591
- xe as u,
3592
- Re as v,
3593
- Oe as w,
3594
- Pe as x,
3595
- He as y,
3596
- ce as z
3456
+ E as k,
3457
+ d as l,
3458
+ V as m,
3459
+ h as n,
3460
+ w as o,
3461
+ le as p,
3462
+ I as q,
3463
+ Ce as r,
3464
+ _e as s,
3465
+ ye as t,
3466
+ me as u,
3467
+ ge as v,
3468
+ Se as w,
3469
+ Ee as x,
3470
+ Te as y,
3471
+ b as z
3597
3472
  };