hlrender 0.0.239 → 0.0.241

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 (193) hide show
  1. package/_image-4162224b.js +28 -0
  2. package/{_pdf-305e5a7a.js → _pdf-68d429e2.js} +14 -14
  3. package/{_txt-cecb5427.js → _txt-cae17b86.js} +12 -12
  4. package/_unsupport-b8307858.js +35 -0
  5. package/{_video-21c5b64e.js → _video-bc981b0b.js} +8 -8
  6. package/affix-widget-206f82ff.js +47 -0
  7. package/alert-widget-48ac2ae0.js +47 -0
  8. package/{anchor-link-widget-919ac0ee.js → anchor-link-widget-dae98704.js} +1 -1
  9. package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-c6ab731a.js +36 -0
  10. package/anchor-widget-2394a0ac.js +60 -0
  11. package/{auto-complete-widget-6f0de1bb.js → auto-complete-widget-b1949ba1.js} +30 -30
  12. package/avatar-widget-ea2f5842.js +41 -0
  13. package/backtop-widget-33a9c281.js +47 -0
  14. package/badge-widget-38519bd6.js +53 -0
  15. package/{barcode-widget-7fc44f8c.js → barcode-widget-f6e052a2.js} +14 -14
  16. package/baseImp-cf2a056f.js +12245 -0
  17. package/{breadcrumb-widget-b09a45d7.js → breadcrumb-widget-3b25f641.js} +24 -21
  18. package/button-widget-9f8ba534.js +57 -0
  19. package/cache-widget-5d7386cb.js +53 -0
  20. package/{card-widget-feb6e34a.js → card-widget-738fe0dc.js} +33 -33
  21. package/{carousel-widget-3ff30326.js → carousel-widget-4d37e1f3.js} +21 -21
  22. package/{cascader-widget-4fef75a8.js → cascader-widget-371d58f6.js} +59 -59
  23. package/{chart-widget-fbdce0db.js → chart-widget-5d31b504.js} +17 -17
  24. package/checkbox-widget-0072c102.js +113 -0
  25. package/collapse-widget-485a4451.js +94 -0
  26. package/color-bae04003.js +59 -0
  27. package/color-picker-widget-df648695.js +56 -0
  28. package/{cont-cell-widget-56a58b71.js → cont-cell-widget-293cee86.js} +1 -1
  29. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-738afb13.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-08981f90.js} +17 -17
  30. package/{cont-widget-5de61a58.js → cont-widget-677d012d.js} +7 -7
  31. package/content-wrapper-44a5887d.js +16 -0
  32. package/content-wrapper.vue_vue_type_script_setup_true_lang-4ab88b8e.js +38 -0
  33. package/countdown-widget-8d5636b8.js +53 -0
  34. package/{date-picker-range-widget-9327cc4b.js → date-picker-range-widget-623b1c04.js} +25 -25
  35. package/{date-picker-widget-27335405.js → date-picker-widget-989230ea.js} +33 -33
  36. package/default-slot-widget-184375d4.js +26 -0
  37. package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8444de52.js +84 -0
  38. package/{descriptions-widget-abf88edf.js → descriptions-widget-8a41c70b.js} +22 -22
  39. package/{dialog-bb4f1f51.js → dialog-8ecdabe5.js} +2 -2
  40. package/{dialog-widget-affeb26a.js → dialog-widget-fdf07199.js} +16 -16
  41. package/divider-widget-480eec10.js +47 -0
  42. package/drag-wrapper-8ba8d26a.js +256 -0
  43. package/{drawer-widget-1153b308.js → drawer-widget-f14cbeb1.js} +16 -16
  44. package/{dropdown-widget-07078c8b.js → dropdown-widget-5d0414ec.js} +25 -25
  45. package/empty-widget-35365e0e.js +47 -0
  46. package/{enum-type-d9039fa1.js → enum-type-05ccb088.js} +331 -108
  47. package/{enum-type-6aec5442.js → enum-type-35e3b2e0.js} +143 -109
  48. package/{expression-f3029af0.js → expression-a880b354.js} +13 -12
  49. package/feedback-widget-4a439150.js +26 -0
  50. package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-b04a1d28.js +90 -0
  51. package/{fieldobj-51ea9fd4.js → fieldobj-4d9ab4ce.js} +1 -1
  52. package/{file-upload-widget-3d529a72.js → file-upload-widget-407f3b6f.js} +107 -107
  53. package/form-item-wrapper-002adf08.js +86 -0
  54. package/{form-widget-c7aadc35.js → form-widget-7308fc3f.js} +28 -28
  55. package/{grid-col-widget-31f034df.js → grid-col-widget-a8dd7ebe.js} +1 -1
  56. package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-e76e6d58.js +41 -0
  57. package/{grid-widget-16efe87a.js → grid-widget-8e32f92f.js} +5 -5
  58. package/hcard-widget-c4671309.js +94 -0
  59. package/{html-text-widget-689e7370.js → html-text-widget-d40831f7.js} +15 -15
  60. package/icon-3ea488c1.js +177 -0
  61. package/icon-widget-6c27fd6b.js +62 -0
  62. package/iframe-widget-13ff4929.js +113 -0
  63. package/{image-widget-bb79778f.js → image-widget-ae7fcd72.js} +18 -18
  64. package/index-31e1760d.js +19 -0
  65. package/index-658d06a4.js +46 -0
  66. package/{index-def6ce54.js → index-67481ab5.js} +44 -44
  67. package/{index-ddd23411.js → index-6bcfdc22.js} +1668 -1678
  68. package/index-7d31ccfb.js +65 -0
  69. package/{index-752aa342.js → index-847ef399.js} +4821 -3681
  70. package/{input-number-widget-9b8da52e.js → input-number-widget-37c014bb.js} +19 -19
  71. package/input-tag-widget-bcc1bd3e.js +71 -0
  72. package/{input-widget-b68feb0b.js → input-widget-ebed702a.js} +25 -25
  73. package/{label-wrapper-70f516f3.js → label-wrapper-7e85c84b.js} +6 -6
  74. package/label-wrapper.vue_vue_type_style_index_0_lang-57a4c003.js +63 -0
  75. package/link-widget-ea2a7cc9.js +65 -0
  76. package/{ltable-col-widget-c05a0f75.js → ltable-col-widget-91f26266.js} +1 -1
  77. package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-bbe5ac06.js +278 -0
  78. package/{ltable-widget-0e14fcb3.js → ltable-widget-111c9922.js} +11 -11
  79. package/mention-widget-b66ac807.js +82 -0
  80. package/{menu-widget-92944b29.js → menu-widget-46659645.js} +40 -40
  81. package/model-widget-093857b9.js +155 -0
  82. package/{multirow-ef17557e.js → multirow-50d903a8.js} +7 -7
  83. package/multirow-widget-d550d2ee.js +723 -0
  84. package/package.json +1 -1
  85. package/{pagination-widget-ba41b179.js → pagination-widget-4998f804.js} +23 -23
  86. package/{picture-upload-widget-b3233664.js → picture-upload-widget-3102164b.js} +35 -35
  87. package/{progress-widget-bf490d7f.js → progress-widget-514e315d.js} +31 -31
  88. package/{qrcode-widget-8bdc470f.js → qrcode-widget-e331f58f.js} +18 -18
  89. package/radio-widget-df89345f.js +87 -0
  90. package/{range-widget-3de3d728.js → range-widget-b972e54c.js} +21 -21
  91. package/rate-widget-88301af3.js +56 -0
  92. package/render.es.js +1433 -1468
  93. package/render.style.css +1 -1
  94. package/render.umd.js +456 -454
  95. package/result-widget-623c24cf.js +67 -0
  96. package/rich-editor-widget-e8ab8b01.js +74 -0
  97. package/{router-widget-6e7a7727.js → router-widget-2daa2c82.js} +24 -24
  98. package/segmented-widget-caf0f51a.js +89 -0
  99. package/select-widget-469026c5.js +369 -0
  100. package/{sfc-bad92d5d.js → sfc-8b7e2487.js} +9 -9
  101. package/{sfcview-086204d9.js → sfcview-addac91a.js} +8 -8
  102. package/share-field-6fc223d3.js +812 -0
  103. package/{share-file-75ca566e.js → share-file-7432d2c5.js} +10 -10
  104. package/skeleton-widget-ff72bbaa.js +79 -0
  105. package/skeletonItem-widget-0a4f3d54.js +51 -0
  106. package/slider-widget-01359ef3.js +62 -0
  107. package/slot-1605ee49.js +329 -0
  108. package/space-widget-d8c7642f.js +103 -0
  109. package/splitter-widget-169878d5.js +96 -0
  110. package/{static-text-widget-612ba08c.js → static-text-widget-1dd47867.js} +15 -15
  111. package/statistic-widget-9b3c6dfa.js +47 -0
  112. package/{steps-widget-fc0e9312.js → steps-widget-b872e743.js} +30 -30
  113. package/{subMenu-widget-48ff5cef.js → subMenu-widget-1cb5e243.js} +9 -9
  114. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-abf7e791.js → subMenu-widget.vue_vue_type_script_setup_true_lang-5c50e597.js} +17 -17
  115. package/switch-widget-45e34bfb.js +56 -0
  116. package/{tab-pane-widget-4993afd4.js → tab-pane-widget-2b27921e.js} +1 -1
  117. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-7dac41b9.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-671795c3.js} +7 -7
  118. package/table-col-widget-13763429.js +22 -0
  119. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-c25508ef.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-b2343af4.js} +13 -13
  120. package/{table-widget-45308b11.js → table-widget-dd36a5c4.js} +95 -95
  121. package/tabs-widget-5616ead0.js +81 -0
  122. package/tag-widget-1a56a996.js +47 -0
  123. package/text-widget-75a360ea.js +47 -0
  124. package/{textarea-widget-56c9a88b.js → textarea-widget-c15e1c51.js} +20 -20
  125. package/time-picker-range-widget-96a2df74.js +81 -0
  126. package/time-picker-widget-15e10aba.js +64 -0
  127. package/{time-select-widget-213d9cfb.js → time-select-widget-a42a3207.js} +25 -25
  128. package/{tmpl-widget-d65666b0.js → tmpl-widget-929ad1e9.js} +34 -33
  129. package/tooltip-widget-57b89602.js +95 -0
  130. package/tour-widget-8376d229.js +148 -0
  131. package/transfer-widget-fb2462c7.js +81 -0
  132. package/tree-select-widget-bbb86849.js +149 -0
  133. package/tree-widget-3549ff5c.js +90 -0
  134. package/{uuid-b62f2c76.js → uuid-68f25733.js} +1 -1
  135. package/{verifycode-widget-e1513c4e.js → verifycode-widget-e7e45e49.js} +14 -14
  136. package/vertical-progress-widget-c44812e6.js +52 -0
  137. package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js +282 -0
  138. package/{wrapper-widget-595773d5.js → wrapper-widget-b06bb4ff.js} +10 -10
  139. package/_image-fab8c8e2.js +0 -28
  140. package/_unsupport-d50224e3.js +0 -35
  141. package/affix-widget-164ebcf1.js +0 -39
  142. package/alert-widget-ea994a6a.js +0 -39
  143. package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +0 -35
  144. package/anchor-widget-1556fb56.js +0 -57
  145. package/avatar-widget-34662b7b.js +0 -39
  146. package/backtop-widget-b04b2989.js +0 -39
  147. package/badge-widget-607a83ae.js +0 -45
  148. package/baseImp-5c466035.js +0 -11761
  149. package/button-widget-007795bc.js +0 -49
  150. package/cache-widget-66e15ef6.js +0 -53
  151. package/checkbox-widget-37286554.js +0 -115
  152. package/collapse-widget-4f728579.js +0 -91
  153. package/color-picker-widget-035a1437.js +0 -56
  154. package/content-wrapper-d0fd2c66.js +0 -16
  155. package/content-wrapper.vue_vue_type_script_setup_true_lang-528a43b4.js +0 -38
  156. package/default-slot-widget-4667aa3c.js +0 -26
  157. package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-1c3154df.js +0 -77
  158. package/divider-widget-d5aa4c7a.js +0 -39
  159. package/drag-wrapper-fd7ed8e5.js +0 -255
  160. package/empty-widget-17ff5dd3.js +0 -39
  161. package/feedback-widget-dd3c9912.js +0 -26
  162. package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-ae8fd77d.js +0 -82
  163. package/form-item-wrapper-3e85105e.js +0 -86
  164. package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-4cbbbbd6.js +0 -41
  165. package/icon-a0e0cdb0.js +0 -119
  166. package/icon-widget-90609a93.js +0 -62
  167. package/iframe-widget-2d5c6840.js +0 -116
  168. package/index-56592f6b.js +0 -65
  169. package/index-ae1f26e5.js +0 -46
  170. package/label-wrapper.vue_vue_type_style_index_0_lang-ab1f665c.js +0 -63
  171. package/link-widget-97bdd33e.js +0 -57
  172. package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d5d6bb28.js +0 -278
  173. package/model-widget-f56225e4.js +0 -122
  174. package/multirow-widget-c2be3852.js +0 -723
  175. package/radio-widget-d4050344.js +0 -85
  176. package/rate-widget-f4cbbd7c.js +0 -56
  177. package/result-widget-b0610176.js +0 -67
  178. package/rich-editor-widget-cc2076b1.js +0 -74
  179. package/select-widget-b6ddbbf4.js +0 -346
  180. package/share-field-6ba09f55.js +0 -806
  181. package/slider-widget-9ce64cd4.js +0 -62
  182. package/slot-92796df0.js +0 -327
  183. package/switch-widget-163f9c41.js +0 -56
  184. package/table-col-widget-b7d259ad.js +0 -22
  185. package/tabs-widget-98776656.js +0 -81
  186. package/tag-widget-b93765a0.js +0 -39
  187. package/text-widget-8911c99b.js +0 -39
  188. package/time-picker-range-widget-4617e19a.js +0 -81
  189. package/time-picker-widget-9b6354f8.js +0 -64
  190. package/tree-select-widget-d9fb0b80.js +0 -147
  191. package/tree-widget-1d696deb.js +0 -90
  192. package/vertical-progress-widget-fa6b14ff.js +0 -52
  193. package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c068c9f3.js +0 -282
@@ -1,10 +1,10 @@
1
- import { defineComponent as f, resolveDirective as O, openBlock as t, createBlock as m, mergeProps as j, unref as n, withCtx as x, createElementBlock as o, normalizeClass as A, withDirectives as L, createElementVNode as B, Fragment as s, renderList as u, createCommentVNode as N } from "vue";
2
- import { w as P } from "./expression-f3029af0.js";
1
+ import { defineComponent as f, resolveDirective as I, openBlock as t, createBlock as m, mergeProps as O, unref as n, withCtx as j, createElementBlock as o, normalizeClass as A, withDirectives as L, createElementVNode as B, Fragment as s, renderList as u, createCommentVNode as N } from "vue";
2
+ import { w as P } from "./expression-a880b354.js";
3
3
  import { I as S } from "./widget-base-8eece820.js";
4
- import { _ as V } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c068c9f3.js";
5
- import { _ as W } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d5d6bb28.js";
6
- import { c as $ } from "./slot-92796df0.js";
7
- import { b as z } from "./share-field-6ba09f55.js";
4
+ import { _ as V } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js";
5
+ import { _ as W } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-bbe5ac06.js";
6
+ import { c as $ } from "./slot-1605ee49.js";
7
+ import { b as z } from "./share-field-6fc223d3.js";
8
8
  import { _ as D } from "./_plugin-vue_export-helper-dad06003.js";
9
9
  const E = ["element-loading-text"], F = f({ componentName: P.ContainerWidget }), T = /* @__PURE__ */ f({
10
10
  ...F,
@@ -13,11 +13,11 @@ const E = ["element-loading-text"], F = f({ componentName: P.ContainerWidget }),
13
13
  setup(w, { expose: b }) {
14
14
  const l = w, { extendAttrs: d, fieldObj: y, exposed: v } = z(l), { customClass: h } = $({ widget: l.widget });
15
15
  return b({ ...v }), (e, q) => {
16
- const k = O("loading");
17
- return t(), m(V, j(e.$props, {
16
+ const k = I("loading");
17
+ return t(), m(V, O(e.$props, {
18
18
  "prop-options": { fieldObj: n(y) }
19
19
  }), {
20
- default: x(() => {
20
+ default: j(() => {
21
21
  var a, p, g;
22
22
  return [
23
23
  (t(), o("div", {
@@ -32,7 +32,7 @@ const E = ["element-loading-text"], F = f({ componentName: P.ContainerWidget }),
32
32
  (t(!0), o(s, null, u((p = e.widget) == null ? void 0 : p.rows, (r, C) => (t(), o("tr", {
33
33
  key: r.id
34
34
  }, [
35
- (t(!0), o(s, null, u(r.cols, (i, I) => {
35
+ (t(!0), o(s, null, u(r.cols, (i, x) => {
36
36
  var _, c;
37
37
  return t(), o(s, null, [
38
38
  i.merged ? N("", !0) : (t(), m(W, {
@@ -47,7 +47,7 @@ const E = ["element-loading-text"], F = f({ componentName: P.ContainerWidget }),
47
47
  rowIndex: C,
48
48
  rowLength: (_ = e.widget) == null ? void 0 : _.rows.length,
49
49
  rowArray: (c = e.widget) == null ? void 0 : c.rows,
50
- colIndex: I,
50
+ colIndex: x,
51
51
  colLength: r.cols.length,
52
52
  colArray: r.cols
53
53
  }
@@ -0,0 +1,82 @@
1
+ import { defineComponent as c, computed as S, resolveComponent as x, openBlock as m, createBlock as n, mergeProps as d, unref as r, withCtx as u, isRef as z, toHandlers as A, createSlots as D, renderList as W, resolveDynamicComponent as B, createCommentVNode as f } from "vue";
2
+ import { e as E } from "./enum-type-05ccb088.js";
3
+ import { I as L } from "./field-base-1acf3ada.js";
4
+ import { b as P } from "./share-field-6fc223d3.js";
5
+ import { g as T } from "./slot-1605ee49.js";
6
+ import $ from "./form-item-wrapper-002adf08.js";
7
+ import { w as h } from "./expression-a880b354.js";
8
+ import { D as H } from "./drag-wrapper-8ba8d26a.js";
9
+ import "./widget-base-8eece820.js";
10
+ import "./multirow-50d903a8.js";
11
+ import "./baseImp-cf2a056f.js";
12
+ import "./enum-type-35e3b2e0.js";
13
+ import "./icon-3ea488c1.js";
14
+ import "./dialog-8ecdabe5.js";
15
+ import "./_commonjsHelpers-e7ea1525.js";
16
+ import "./uuid-68f25733.js";
17
+ import "element-plus";
18
+ import "./index-847ef399.js";
19
+ import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js";
20
+ import "./index-7d31ccfb.js";
21
+ import "./_plugin-vue_export-helper-dad06003.js";
22
+ import "./fieldobj-4d9ab4ce.js";
23
+ import "./label-wrapper.vue_vue_type_style_index_0_lang-57a4c003.js";
24
+ import "./source-map-b04aec4a.js";
25
+ import "./esprima-e8d15055.js";
26
+ const K = c({ componentName: h.FieldWidget }), ge = /* @__PURE__ */ c({
27
+ ...K,
28
+ __name: "mention-widget",
29
+ props: { ...L },
30
+ setup(g, { expose: v }) {
31
+ const b = g, { fieldName: M, fieldEditor: y, fieldKey: w, fieldModel: a, rules: k, slots: C, attrs: V, extendAttrs: i, events: j, exposed: F, fieldObj: I, optionItems: N } = P(b), O = S(() => {
32
+ var o, t, p;
33
+ return {
34
+ ...V.value,
35
+ props: {
36
+ label: (o = i.value) == null ? void 0 : o.props_label,
37
+ value: (t = i.value) == null ? void 0 : t.props_value,
38
+ disabled: (p = i.value) == null ? void 0 : p.props_disabled
39
+ }
40
+ };
41
+ });
42
+ return v({ ...F }), (o, t) => {
43
+ const p = x("el-mention");
44
+ return m(), n($, d(o.$props, {
45
+ propOptions: { fieldObj: r(I), rules: r(k) }
46
+ }), {
47
+ default: u(({ data: s }) => {
48
+ var l;
49
+ return [
50
+ (m(), n(p, d({
51
+ ref_key: "fieldEditor",
52
+ ref: y,
53
+ modelValue: r(a),
54
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => z(a) ? a.value = e : null)
55
+ }, O.value, A(r(j)), {
56
+ class: s.injectClass,
57
+ key: r(w),
58
+ style: s.injectStyle,
59
+ size: s.size,
60
+ options: r(N)
61
+ }), D({ _: 2 }, [
62
+ W(r(T)(r(C), o.designState, (l = r(i)) == null ? void 0 : l.slotable), (e) => ({
63
+ name: e == null ? void 0 : e.slotName,
64
+ fn: u(() => [
65
+ e != null && e.default ? (m(), n(B(e == null ? void 0 : e.default), { key: 0 })) : f("", !0),
66
+ e != null && e.widgetList ? (m(), n(H, d({ key: 1 }, o.$props, {
67
+ widget: e,
68
+ dragTip: r(E).i18nt("designer.hint.draggableArea1")
69
+ }), null, 16, ["widget", "dragTip"])) : f("", !0)
70
+ ])
71
+ }))
72
+ ]), 1040, ["modelValue", "class", "style", "size", "options"]))
73
+ ];
74
+ }),
75
+ _: 1
76
+ }, 16, ["propOptions"]);
77
+ };
78
+ }
79
+ });
80
+ export {
81
+ ge as default
82
+ };
@@ -1,24 +1,24 @@
1
- import { defineComponent as j, computed as _, watch as k, onMounted as I, nextTick as ee, resolveComponent as re, openBlock as C, createBlock as E, mergeProps as M, unref as a, withCtx as O, toHandlers as ne, createVNode as te } from "vue";
2
- import { g as oe, J as f, K as le, P as ue } from "./baseImp-5c466035.js";
3
- import { u as ae } from "./icon-a0e0cdb0.js";
4
- import { G as ce, E as R, d as b, Y as se } from "./enum-type-d9039fa1.js";
1
+ import { defineComponent as j, computed as _, watch as k, onMounted as I, nextTick as ee, resolveComponent as re, openBlock as C, createBlock as E, mergeProps as M, unref as i, withCtx as O, toHandlers as ne, createVNode as te } from "vue";
2
+ import { g as oe, J as f, K as le, P as ue } from "./baseImp-cf2a056f.js";
3
+ import { u as ae } from "./icon-3ea488c1.js";
4
+ import { G as se, E as R, d as b, Y as ce } from "./enum-type-05ccb088.js";
5
5
  import { I as ie } from "./field-base-1acf3ada.js";
6
- import { _ as fe } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c068c9f3.js";
7
- import { b as pe } from "./share-field-6ba09f55.js";
8
- import { w as me, f as ve } from "./expression-f3029af0.js";
9
- import { _ as he } from "./subMenu-widget.vue_vue_type_script_setup_true_lang-abf7e791.js";
10
- import { $ as B } from "./enum-type-6aec5442.js";
11
- import "./dialog-bb4f1f51.js";
6
+ import { _ as fe } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js";
7
+ import { b as pe } from "./share-field-6fc223d3.js";
8
+ import { w as me, f as ve } from "./expression-a880b354.js";
9
+ import { _ as he } from "./subMenu-widget.vue_vue_type_script_setup_true_lang-5c50e597.js";
10
+ import { $ as B } from "./enum-type-35e3b2e0.js";
11
+ import "./dialog-8ecdabe5.js";
12
12
  import "./_commonjsHelpers-e7ea1525.js";
13
- import "./uuid-b62f2c76.js";
13
+ import "./uuid-68f25733.js";
14
14
  import "element-plus";
15
15
  import "./widget-base-8eece820.js";
16
- import "./index-752aa342.js";
17
- import "./index-56592f6b.js";
16
+ import "./index-847ef399.js";
17
+ import "./index-7d31ccfb.js";
18
18
  import "./_plugin-vue_export-helper-dad06003.js";
19
- import "./fieldobj-51ea9fd4.js";
20
- import "./multirow-ef17557e.js";
21
- import "./slot-92796df0.js";
19
+ import "./fieldobj-4d9ab4ce.js";
20
+ import "./multirow-50d903a8.js";
21
+ import "./slot-1605ee49.js";
22
22
  import "./source-map-b04aec4a.js";
23
23
  import "./esprima-e8d15055.js";
24
24
  const de = j({ componentName: me.FieldWidget }), Ke = /* @__PURE__ */ j({
@@ -26,21 +26,21 @@ const de = j({ componentName: me.FieldWidget }), Ke = /* @__PURE__ */ j({
26
26
  __name: "menu-widget",
27
27
  props: { ...ie },
28
28
  setup(A, { expose: G }) {
29
- const V = A, { fieldEditor: g, fieldKey: $, attrs: c, events: w, extendAttrs: s, optionItems: l, refreshOptionItems: D, activeOptionItems: y, filterOptionItems: P, exposed: S, fieldObj: W, existEvent: K, handleEvent: L } = pe(V), { instance: N } = ae(), H = oe({ instance: N }), p = (e) => e == null ? void 0 : e.route, u = (e) => e == null ? void 0 : e.value, J = (e) => {
29
+ const V = A, { fieldEditor: g, fieldKey: $, attrs: a, events: w, extendAttrs: s, optionItems: l, refreshOptionItems: D, activeOptionItems: y, filterOptionItems: P, exposed: S, fieldObj: W, existEvent: K, handleEvent: L } = pe(V), { instance: N } = ae(), H = oe({ instance: N }), p = (e) => e == null ? void 0 : e.route, u = (e) => e == null ? void 0 : e.value, J = (e) => {
30
30
  const n = p(e);
31
31
  if (!n)
32
32
  return "";
33
33
  const r = f.getLocationQueryParams(), t = le(ue.getValue(e.buildUrlParams) || "", { urlParams: r, ctx: H });
34
34
  let o = "";
35
35
  return e != null && e.attachUrlParams ? o = f.buildUrl(n, { ...r, ...t }) : o = f.buildUrl(n, t), o;
36
- }, F = _(() => {
37
- const e = ce(l == null ? void 0 : l.value);
36
+ }, x = _(() => {
37
+ const e = se(l == null ? void 0 : l.value);
38
38
  return R(e, "children", (n) => !0, (n) => {
39
39
  m(e, u(n)) ? n.route = J(n) || u(n) : n.route = u(n);
40
40
  }), e;
41
41
  }), Q = (e) => {
42
42
  let n = "";
43
- return R(F.value, "children", (r) => u(r) === e, (r) => {
43
+ return R(x.value, "children", (r) => u(r) === e, (r) => {
44
44
  n = p(r) || u(r);
45
45
  }), n;
46
46
  }, U = (e, n) => e == null ? void 0 : e.some((r) => {
@@ -55,8 +55,8 @@ const de = j({ componentName: me.FieldWidget }), Ke = /* @__PURE__ */ j({
55
55
  var o = ve.isActiveItem;
56
56
  if (K(o))
57
57
  return L(o, { item: t });
58
- const i = p(t), Z = f.getBaseUrl(i);
59
- return !!i && (n == null ? void 0 : n.endsWith(Z));
58
+ const c = p(t), Z = f.getBaseUrl(c);
59
+ return !!c && (n == null ? void 0 : n.endsWith(Z));
60
60
  });
61
61
  return r == null ? void 0 : r.map((t) => u(t));
62
62
  }, q = () => {
@@ -65,7 +65,7 @@ const de = j({ componentName: me.FieldWidget }), Ke = /* @__PURE__ */ j({
65
65
  }, v = _(() => {
66
66
  var r;
67
67
  var e = q();
68
- if ((r = c == null ? void 0 : c.value) != null && r.router && !V.designState) {
68
+ if ((r = a == null ? void 0 : a.value) != null && r.router && !V.designState) {
69
69
  var n = Y();
70
70
  return n && (n == null ? void 0 : n.length) > 0 ? n : e;
71
71
  }
@@ -77,25 +77,25 @@ const de = j({ componentName: me.FieldWidget }), Ke = /* @__PURE__ */ j({
77
77
  }), d = _(() => {
78
78
  var e = P((r) => {
79
79
  var t, o;
80
- return ((t = v.value) == null ? void 0 : t.some((i) => U([r], i))) || ((o = v.value) == null ? void 0 : o.some((i) => m(r == null ? void 0 : r.children, i)));
80
+ return ((t = v.value) == null ? void 0 : t.some((c) => U([r], c))) || ((o = v.value) == null ? void 0 : o.some((c) => m(r == null ? void 0 : r.children, c)));
81
81
  }), n = e == null ? void 0 : e.map((r) => u(r));
82
82
  return ((n == null ? void 0 : n.length) || 0) <= 0 ? [] : n;
83
83
  }), z = () => {
84
84
  var n;
85
85
  const e = {};
86
- h.value && b(e, { defaultActive: h.value }), d.value && ((n = d.value) == null ? void 0 : n.length) > 0 && b(e, { defaultOpeneds: d.value }), b(c.value, e);
87
- }, T = (e, n) => {
86
+ h.value && b(e, { defaultActive: h.value }), d.value && ((n = d.value) == null ? void 0 : n.length) > 0 && b(e, { defaultOpeneds: d.value }), b(a.value, e);
87
+ }, F = (e, n) => {
88
88
  var r, t;
89
89
  U(l == null ? void 0 : l.value, e) && (n ? (r = g.value) == null || r.open(e) : (t = g.value) == null || t.close(e));
90
90
  }, X = (e) => {
91
91
  e == null || e.forEach((n) => {
92
- T(n, !0);
92
+ F(n, !0);
93
93
  });
94
- }, x = (e = !0) => {
94
+ }, T = (e = !0) => {
95
95
  P((n) => {
96
96
  try {
97
97
  const r = u(n);
98
- T(r, !e);
98
+ F(r, !e);
99
99
  } catch {
100
100
  }
101
101
  return !0;
@@ -105,10 +105,10 @@ const de = j({ componentName: me.FieldWidget }), Ke = /* @__PURE__ */ j({
105
105
  z();
106
106
  }, { immediate: !0 }), I(() => {
107
107
  var e;
108
- (e = s == null ? void 0 : s.value) != null && e.openAll && x(!1), k(() => d.value, (n) => {
108
+ (e = s == null ? void 0 : s.value) != null && e.openAll && T(!1), k(() => d.value, (n) => {
109
109
  ee(() => {
110
110
  var r;
111
- (r = s == null ? void 0 : s.value) != null && r.openAll || (x(!0), X(n));
111
+ (r = s == null ? void 0 : s.value) != null && r.openAll || (T(!0), X(n));
112
112
  });
113
113
  });
114
114
  }), G({
@@ -118,19 +118,19 @@ const de = j({ componentName: me.FieldWidget }), Ke = /* @__PURE__ */ j({
118
118
  },
119
119
  getActiveTree: () => {
120
120
  var e = [];
121
- return se(l == null ? void 0 : l.value, e, "children", (n) => h.value === p(n)), e.reverse();
121
+ return ce(l == null ? void 0 : l.value, e, "children", (n) => h.value === p(n)), e.reverse();
122
122
  }
123
123
  }), (e, n) => {
124
124
  const r = re("el-menu");
125
125
  return C(), E(fe, M(e.$props, {
126
- "prop-options": { fieldObj: a(W) }
126
+ "prop-options": { fieldObj: i(W) }
127
127
  }), {
128
128
  default: O(({ data: t }) => [
129
129
  (C(), E(r, M({
130
130
  ref_key: "fieldEditor",
131
131
  ref: g,
132
- key: a($)
133
- }, a(c), ne(a(w)), {
132
+ key: i($)
133
+ }, i(a), ne(i(w)), {
134
134
  class: t.injectClass,
135
135
  style: t.injectStyle
136
136
  }), {
@@ -138,14 +138,14 @@ const de = j({ componentName: me.FieldWidget }), Ke = /* @__PURE__ */ j({
138
138
  var o;
139
139
  return [
140
140
  te(he, {
141
- items: a(F),
142
- useRouter: (o = a(c)) == null ? void 0 : o.router,
143
- defaultActive: a(h)
141
+ items: x.value,
142
+ useRouter: (o = i(a)) == null ? void 0 : o.router,
143
+ defaultActive: h.value
144
144
  }, null, 8, ["items", "useRouter", "defaultActive"])
145
145
  ];
146
146
  }),
147
- _: 2
148
- }, 1040, ["class", "style"]))
147
+ _: 1
148
+ }, 16, ["class", "style"]))
149
149
  ]),
150
150
  _: 1
151
151
  }, 16, ["prop-options"]);
@@ -0,0 +1,155 @@
1
+ import { defineComponent as q, resolveComponent as T, openBlock as y, createBlock as h, mergeProps as z, unref as a, withCtx as _, createElementVNode as k, createElementBlock as V, Fragment as G, renderList as H, createVNode as J, resolveDynamicComponent as Q, createTextVNode as I, toDisplayString as w, createCommentVNode as N } from "vue";
2
+ import { I as U } from "./widget-base-8eece820.js";
3
+ import { b as X } from "./share-field-6fc223d3.js";
4
+ import { _ as Y } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b6d87607.js";
5
+ import { W as g } from "./enum-type-35e3b2e0.js";
6
+ import { c as F } from "./baseImp-cf2a056f.js";
7
+ import { e as A } from "./enum-type-05ccb088.js";
8
+ import { Plus as Z, Edit as ee } from "./index-6bcfdc22.js";
9
+ import { l as ne } from "./expression-a880b354.js";
10
+ import "./multirow-50d903a8.js";
11
+ import "./index-847ef399.js";
12
+ import "./uuid-68f25733.js";
13
+ import "./_commonjsHelpers-e7ea1525.js";
14
+ import "./slot-1605ee49.js";
15
+ import "./icon-3ea488c1.js";
16
+ import "./index-7d31ccfb.js";
17
+ import "./_plugin-vue_export-helper-dad06003.js";
18
+ import "./fieldobj-4d9ab4ce.js";
19
+ import "./dialog-8ecdabe5.js";
20
+ import "element-plus";
21
+ import "./source-map-b04aec4a.js";
22
+ import "./esprima-e8d15055.js";
23
+ const te = { style: { display: "flex", "flex-direction": "row" } }, oe = { style: { flex: "1" } }, Ce = /* @__PURE__ */ q({
24
+ __name: "model-widget",
25
+ props: {
26
+ ...U
27
+ },
28
+ setup(D, { expose: P }) {
29
+ const S = D, { exposed: t, attrs: e, events: f, instance: B, optionItems: x, fieldObj: E } = X(S), O = A.i18nt("designer.hint.addButtonText"), K = A.i18nt("designer.hint.saveButtonText"), W = () => {
30
+ var n;
31
+ switch ((n = e.value) == null ? void 0 : n.compName) {
32
+ case "tag":
33
+ case "text":
34
+ return "info";
35
+ default:
36
+ return "default";
37
+ }
38
+ }, R = (n) => {
39
+ var p, c, l;
40
+ const r = (p = e == null ? void 0 : e.value) == null ? void 0 : p.relatedIds;
41
+ if (!r || (r == null ? void 0 : r.length) <= 0)
42
+ return !1;
43
+ const { transFormula: u } = F();
44
+ var s = n == null ? void 0 : n[(c = e == null ? void 0 : e.value) == null ? void 0 : c.contentKey];
45
+ return (l = Array.from(r)) == null ? void 0 : l.some((o, m) => {
46
+ const v = u(o), d = t == null ? void 0 : t.findRefById(v, B);
47
+ var i = t == null ? void 0 : t.callRefFunc(d, g.getValue);
48
+ return i == null ? void 0 : i.includes(s);
49
+ });
50
+ }, $ = (n) => {
51
+ var p, c, l;
52
+ const r = (p = e == null ? void 0 : e.value) == null ? void 0 : p.relatedIds;
53
+ if (!r || (r == null ? void 0 : r.length) <= 0)
54
+ return;
55
+ const { transFormula: u } = F();
56
+ var s = n == null ? void 0 : n[(c = e == null ? void 0 : e.value) == null ? void 0 : c.contentKey];
57
+ (l = Array.from(r)) == null || l.forEach((o, m) => {
58
+ var C, b;
59
+ const v = u(o), d = t == null ? void 0 : t.findRefById(v, B);
60
+ var i = t == null ? void 0 : t.callRefFunc(d, g.getValue), M = i == null ? void 0 : i.includes(s);
61
+ M ? t == null || t.callRefFunc(d, g.setValue, { content: ne(i, s) }) : (C = e == null ? void 0 : e.value) != null && C.appendOnClick && (t == null || t.callRefFunc(d, g.insertOnMousePos, { content: n == null ? void 0 : n[(b = e == null ? void 0 : e.value) == null ? void 0 : b.contentKey] }));
62
+ });
63
+ }, j = () => {
64
+ var c, l, o, m;
65
+ const n = (c = e == null ? void 0 : e.value) == null ? void 0 : c.relatedIds;
66
+ if (!n || (n == null ? void 0 : n.length) <= 0)
67
+ return;
68
+ const { transFormula: r } = F(), u = r(n == null ? void 0 : n[0]), s = t == null ? void 0 : t.findRefById(u, B);
69
+ var p = t == null ? void 0 : t.callRefFunc(s, g.getValue);
70
+ (m = (l = f == null ? void 0 : f.value) == null ? void 0 : l.save) == null || m.call(l, p, (o = e == null ? void 0 : e.value) == null ? void 0 : o.operateData);
71
+ }, L = () => {
72
+ var n, r, u;
73
+ (u = (n = f == null ? void 0 : f.value) == null ? void 0 : n.add) == null || u.call(n, (r = e == null ? void 0 : e.value) == null ? void 0 : r.operateData);
74
+ };
75
+ return P({
76
+ ...t
77
+ }), (n, r) => {
78
+ const u = T("el-badge"), s = T("el-button");
79
+ return y(), h(Y, z(n.$props, {
80
+ "prop-options": { fieldObj: a(E) }
81
+ }), {
82
+ default: _(({ data: p }) => {
83
+ var c, l;
84
+ return [
85
+ k("div", te, [
86
+ k("div", oe, [
87
+ (y(!0), V(G, null, H(a(x), (o, m) => (y(), V("span", {
88
+ key: m,
89
+ style: { position: "relative", display: "inline-block" }
90
+ }, [
91
+ J(u, {
92
+ "is-dot": R(o)
93
+ }, {
94
+ default: _(() => {
95
+ var v;
96
+ return [
97
+ (y(), h(Q(`el-${(v = a(e)) == null ? void 0 : v.compName}`), {
98
+ type: R(o) ? "primary" : W(),
99
+ style: { cursor: "pointer", margin: "3px 9px" },
100
+ onClick: () => {
101
+ var d, i;
102
+ $(o), (i = (d = a(f)) == null ? void 0 : d.click) == null || i.call(d, o);
103
+ }
104
+ }, {
105
+ default: _(() => [
106
+ I(w(o == null ? void 0 : o.label), 1)
107
+ ]),
108
+ _: 2
109
+ }, 1032, ["type", "onClick"]))
110
+ ];
111
+ }),
112
+ _: 2
113
+ }, 1032, ["is-dot"])
114
+ ]))), 128))
115
+ ]),
116
+ k("div", null, [
117
+ (c = a(e)) != null && c.showAddButton ? (y(), h(s, {
118
+ key: 0,
119
+ onClick: L,
120
+ icon: a(Z)
121
+ }, {
122
+ default: _(() => {
123
+ var o;
124
+ return [
125
+ I(w(((o = a(e)) == null ? void 0 : o.addButtonText) || a(O)), 1)
126
+ ];
127
+ }),
128
+ _: 1
129
+ }, 8, ["icon"])) : N("", !0),
130
+ (l = a(e)) != null && l.showSaveButton ? (y(), h(s, {
131
+ key: 1,
132
+ type: "primary",
133
+ onClick: j,
134
+ icon: a(ee)
135
+ }, {
136
+ default: _(() => {
137
+ var o;
138
+ return [
139
+ I(w(((o = a(e)) == null ? void 0 : o.saveButtonText) || a(K)), 1)
140
+ ];
141
+ }),
142
+ _: 1
143
+ }, 8, ["icon"])) : N("", !0)
144
+ ])
145
+ ])
146
+ ];
147
+ }),
148
+ _: 1
149
+ }, 16, ["prop-options"]);
150
+ };
151
+ }
152
+ });
153
+ export {
154
+ Ce as default
155
+ };
@@ -1,11 +1,11 @@
1
- import { b as X, B as Y, c as Z } from "./baseImp-5c466035.js";
2
- import { g as x, c as I, t as L, r as R } from "./index-752aa342.js";
3
- import { c as T, F as k, g as d } from "./slot-92796df0.js";
4
- import { i as K, o as b, d as B, I as rr, M as q, D as er, g as tr, k as P } from "./enum-type-d9039fa1.js";
1
+ import { b as X, B as Y, c as Z } from "./baseImp-cf2a056f.js";
2
+ import { g as x, c as I, t as L, r as R } from "./index-847ef399.js";
3
+ import { c as T, F as k, g as d } from "./slot-1605ee49.js";
4
+ import { i as K, o as b, d as B, I as rr, M as q, D as er, g as tr, k as P } from "./enum-type-05ccb088.js";
5
5
  import { reactive as A, ref as sr } from "vue";
6
- import { u as or } from "./icon-a0e0cdb0.js";
7
- import { u as nr, g as ur } from "./uuid-b62f2c76.js";
8
- import { f as a } from "./expression-f3029af0.js";
6
+ import { u as or } from "./icon-3ea488c1.js";
7
+ import { u as nr, g as ur } from "./uuid-68f25733.js";
8
+ import { f as a } from "./expression-a880b354.js";
9
9
  function ir() {
10
10
  const e = {}, g = (r, t) => {
11
11
  var s, n, u, o;