hlrender 0.0.3 → 0.0.4

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 (117) hide show
  1. package/{affix-widget-2a428176.js → affix-widget-018ddb2e.js} +16 -16
  2. package/{alert-widget-6430c136.js → alert-widget-10f4e6a7.js} +16 -16
  3. package/{anchor-widget-2cc76d2f.js → anchor-widget-9a0af749.js} +13 -13
  4. package/{auto-complete-widget-2d861165.js → auto-complete-widget-6e138c0f.js} +16 -16
  5. package/{avatar-widget-6e963b38.js → avatar-widget-3e5cbb28.js} +16 -16
  6. package/{backtop-widget-ddefd322.js → backtop-widget-b213f9ae.js} +16 -16
  7. package/{badge-widget-8754dd54.js → badge-widget-039e51e1.js} +16 -16
  8. package/{baseImp-75d44fdc.js → baseImp-39f6ee3c.js} +1096 -1095
  9. package/{breadcrumb-widget-d106ff2c.js → breadcrumb-widget-53502929.js} +13 -13
  10. package/{button-widget-86bc6ce1.js → button-widget-850524c1.js} +16 -16
  11. package/{cache-widget-91ccc78e.js → cache-widget-7306328f.js} +15 -15
  12. package/{card-widget-94ead248.js → card-widget-80867906.js} +14 -14
  13. package/{carousel-widget-594b9826.js → carousel-widget-fa21559c.js} +14 -14
  14. package/{cascader-widget-48a13fa7.js → cascader-widget-8aca15de.js} +15 -15
  15. package/{chart-widget-849c2efa.js → chart-widget-fc1347e2.js} +13 -13
  16. package/{checkbox-widget-a90c268c.js → checkbox-widget-66634956.js} +15 -15
  17. package/{collapse-widget-64a373e5.js → collapse-widget-4dbed395.js} +14 -14
  18. package/{color-picker-widget-107dcfd6.js → color-picker-widget-37be5424.js} +15 -15
  19. package/{cont-cell-widget-8b8c86bb.js → cont-cell-widget-159651e7.js} +1 -1
  20. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-2555e38d.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-9c632801.js} +5 -5
  21. package/{cont-widget-712b983c.js → cont-widget-b225c693.js} +4 -4
  22. package/content-wrapper-0276640c.js +14 -0
  23. package/{content-wrapper.vue_vue_type_script_setup_true_lang-64b272e8.js → content-wrapper.vue_vue_type_script_setup_true_lang-124746aa.js} +4 -4
  24. package/{date-picker-range-widget-71c01fa8.js → date-picker-range-widget-0adcf7b5.js} +15 -15
  25. package/{date-picker-widget-cf382ad7.js → date-picker-widget-f621ad32.js} +15 -15
  26. package/default-slot-widget-bf7b2bef.js +24 -0
  27. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-88a89e04.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-e79d72dd.js} +7 -7
  28. package/{descriptions-widget-b0508f02.js → descriptions-widget-fcb4ee13.js} +14 -14
  29. package/{dialog-9097cd3a.js → dialog-50ad7970.js} +2 -2
  30. package/{dialog-widget-1d2aeb22.js → dialog-widget-d47cb628.js} +15 -15
  31. package/{divider-widget-8b4ff227.js → divider-widget-31449cc4.js} +16 -16
  32. package/{drag-wrapper-d545a429.js → drag-wrapper-2db7a9b7.js} +11 -11
  33. package/{drawer-widget-e5cae59b.js → drawer-widget-519419fd.js} +15 -15
  34. package/{dropdown-widget-90eba236.js → dropdown-widget-fb4f1df4.js} +14 -14
  35. package/{empty-widget-700c46d3.js → empty-widget-d1ee6e93.js} +16 -16
  36. package/{enum-type-ad1f81ba.js → enum-type-4f7f8848.js} +47 -46
  37. package/{enum-type-a02d0ddc.js → enum-type-7d30197c.js} +1 -1
  38. package/{expression-402fef4a.js → expression-75bf8097.js} +3168 -3162
  39. package/feedback-widget-822f7297.js +24 -0
  40. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-8de0d422.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-8925f800.js} +5 -5
  41. package/{fieldobj-d49dbdc5.js → fieldobj-b3bb7e94.js} +1 -1
  42. package/{file-upload-widget-50e793e6.js → file-upload-widget-6a230baf.js} +16 -16
  43. package/{form-item-wrapper-3770b8d2.js → form-item-wrapper-851f1a6c.js} +11 -11
  44. package/form-widget-f7bb2e58.js +196 -0
  45. package/{grid-col-widget-44300d04.js → grid-col-widget-234d6c45.js} +1 -1
  46. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-8a45aa77.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ea71889d.js} +5 -5
  47. package/{grid-widget-26142b27.js → grid-widget-bde19481.js} +5 -5
  48. package/{html-text-widget-4637806e.js → html-text-widget-1eb54cf1.js} +14 -14
  49. package/{iframe-widget-0c47dceb.js → iframe-widget-72a1dbf2.js} +13 -13
  50. package/{image-widget-2b31b9ff.js → image-widget-269da907.js} +13 -13
  51. package/{index-30f0db15.js → index-72739fed.js} +4 -4
  52. package/{index-ed941348.js → index-93c9bbb8.js} +1 -1
  53. package/{index-ce2e6477.js → index-f18071b7.js} +5 -5
  54. package/{input-number-widget-5863f4e9.js → input-number-widget-d4787180.js} +15 -15
  55. package/{input-widget-b5c42dc7.js → input-widget-edbc67f1.js} +16 -16
  56. package/{label-wrapper-c2286145.js → label-wrapper-11b0324f.js} +5 -5
  57. package/{label-wrapper.vue_vue_type_style_index_0_lang-099c2073.js → label-wrapper.vue_vue_type_style_index_0_lang-a26e9dd9.js} +3 -3
  58. package/{link-widget-6d01d401.js → link-widget-12302f15.js} +16 -16
  59. package/{ltable-col-widget-309b4007.js → ltable-col-widget-08c17235.js} +1 -1
  60. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-7d1646d6.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-cacb9190.js} +10 -10
  61. package/{ltable-widget-00ae75e1.js → ltable-widget-b163b470.js} +5 -5
  62. package/{menu-widget-d9ddb076.js → menu-widget-6b2392d2.js} +14 -14
  63. package/{model-widget-73460f2d.js → model-widget-b79ca550.js} +13 -13
  64. package/multirow-c7128853.js +230 -0
  65. package/{multirow-widget-cbb353d8.js → multirow-widget-ffc7abd7.js} +202 -205
  66. package/package.json +1 -1
  67. package/{pagination-widget-a4301a5f.js → pagination-widget-3fa6869c.js} +13 -13
  68. package/{picture-upload-widget-6bfbb9c3.js → picture-upload-widget-3e681eab.js} +16 -16
  69. package/{progress-widget-092798ba.js → progress-widget-2d21d9f8.js} +14 -14
  70. package/{propresult-8a0911d7.js → propresult-5bc45f96.js} +1 -1
  71. package/{radio-widget-c14c112b.js → radio-widget-0a4c9000.js} +15 -15
  72. package/{range-widget-13be6e98.js → range-widget-1091858f.js} +16 -16
  73. package/{rate-widget-a568f58b.js → rate-widget-597dc881.js} +15 -15
  74. package/render.es.js +1468 -1459
  75. package/render.style.css +1 -1
  76. package/render.umd.js +273 -273
  77. package/{result-widget-8cbdcffb.js → result-widget-2366d7c2.js} +14 -14
  78. package/{rich-editor-widget-5347c0fb.js → rich-editor-widget-483ee254.js} +21 -21
  79. package/{router-widget-f34afbc1.js → router-widget-30845c47.js} +13 -13
  80. package/{select-widget-e0f4756d.js → select-widget-4ae99485.js} +15 -15
  81. package/{sfc-3a8e0889.js → sfc-4dd1268a.js} +8 -8
  82. package/share-field-bc3299a0.js +693 -0
  83. package/{share-file-241e0fcc.js → share-file-21d8dea0.js} +5 -5
  84. package/{slider-widget-c131ecf9.js → slider-widget-1da21bc8.js} +15 -15
  85. package/slot-75afa351.js +127 -0
  86. package/{static-text-widget-1e6c817e.js → static-text-widget-0aa8e754.js} +14 -14
  87. package/{steps-widget-93f66f08.js → steps-widget-ed9433d8.js} +13 -13
  88. package/subMenu-widget-5a945275.js +16 -0
  89. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-80e2bb5f.js → subMenu-widget.vue_vue_type_script_setup_true_lang-8d60c766.js} +3 -3
  90. package/{switch-widget-dbb606e6.js → switch-widget-436d00c9.js} +15 -15
  91. package/{tab-pane-widget-49c37d5c.js → tab-pane-widget-7c78d30b.js} +1 -1
  92. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-1dcb50c4.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ecdfcab5.js} +5 -5
  93. package/table-col-widget-8fbec2c8.js +20 -0
  94. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-e75630ba.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-0165f966.js} +6 -6
  95. package/{table-widget-a839d5d5.js → table-widget-98c0e580.js} +37 -37
  96. package/{tabs-widget-3dc76d5d.js → tabs-widget-5fca1b53.js} +9 -9
  97. package/{tag-widget-b2eb79a2.js → tag-widget-16e11318.js} +16 -16
  98. package/{text-widget-2b72d397.js → text-widget-d9eeb677.js} +16 -16
  99. package/{textarea-widget-3a3db0f2.js → textarea-widget-95e45d53.js} +15 -15
  100. package/{time-picker-range-widget-c0cfe97e.js → time-picker-range-widget-aa4c30be.js} +15 -15
  101. package/{time-picker-widget-c72def72.js → time-picker-widget-999ad593.js} +15 -15
  102. package/{time-select-widget-0ffcb167.js → time-select-widget-a95afa5a.js} +15 -15
  103. package/{tmpl-widget-dd53b8b0.js → tmpl-widget-8ee0d2b4.js} +26 -26
  104. package/{tree-select-widget-0d5b08bb.js → tree-select-widget-286290bc.js} +19 -19
  105. package/{tree-widget-55f540c3.js → tree-widget-8588a7c1.js} +24 -24
  106. package/{uuid-aedab58e.js → uuid-13f918d6.js} +13 -13
  107. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c554fff1.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d7f8deb9.js} +26 -26
  108. package/{wrapper-widget-5a1496c5.js → wrapper-widget-cd7ccd06.js} +6 -6
  109. package/content-wrapper-03fcad64.js +0 -14
  110. package/default-slot-widget-45214a89.js +0 -24
  111. package/feedback-widget-1fab6992.js +0 -24
  112. package/form-widget-b30bdd88.js +0 -183
  113. package/multirow-980395e2.js +0 -228
  114. package/share-field-cbdc0f7d.js +0 -689
  115. package/slot-252ff364.js +0 -131
  116. package/subMenu-widget-ad35946d.js +0 -16
  117. package/table-col-widget-1ed14423.js +0 -20
@@ -1,12 +1,12 @@
1
- import { defineComponent as te, resolveComponent as V, openBlock as l, createElementBlock as v, Fragment as O, createVNode as o, createCommentVNode as y, createBlock as W, createSlots as A, withCtx as r, createElementVNode as H, renderList as P, createTextVNode as c, toDisplayString as k, withModifiers as w, unref as n, renderSlot as L, computed as T, ref as _, resolveDynamicComponent as x, mergeProps as U } from "vue";
2
- import { c as se } from "./uuid-aedab58e.js";
1
+ import { defineComponent as te, resolveComponent as R, openBlock as l, createElementBlock as v, Fragment as O, createVNode as o, createCommentVNode as y, createBlock as W, createSlots as A, withCtx as r, createElementVNode as V, renderList as P, createTextVNode as c, toDisplayString as k, withModifiers as w, unref as n, renderSlot as L, computed as T, ref as _, resolveDynamicComponent as x, mergeProps as U } from "vue";
2
+ import { c as se } from "./uuid-13f918d6.js";
3
3
  import { I as de, a as oe } from "./widget-base-4c2d6265.js";
4
- import { a as m, G as ee } from "./enum-type-ad1f81ba.js";
5
- import { a as ne, i as le, j as re, k as ae, d as pe } from "./index-ce2e6477.js";
6
- import { S as g } from "./index-ed941348.js";
7
- import { y as ue } from "./baseImp-75d44fdc.js";
8
- import { d as q } from "./enum-type-a02d0ddc.js";
9
- import { u as ge } from "./fieldobj-d49dbdc5.js";
4
+ import { a as m, H as ee } from "./enum-type-4f7f8848.js";
5
+ import { a as ne, i as le, j as re, k as ae, d as pe } from "./index-f18071b7.js";
6
+ import { S as g } from "./index-93c9bbb8.js";
7
+ import { y as ue } from "./baseImp-39f6ee3c.js";
8
+ import { d as G } from "./enum-type-7d30197c.js";
9
+ import { u as ge } from "./fieldobj-b3bb7e94.js";
10
10
  const me = { key: 0 }, fe = { class: "clWhite" }, we = { class: "clWhite" }, ve = ["title"], ye = ["title"], We = ["title"], he = ["title"], Ce = /* @__PURE__ */ te({
11
11
  __name: "drag-handler",
12
12
  props: { ...de, parentTree: { type: Object, default: null }, hidden: { type: Boolean, default: !1 }, simple: { type: Boolean } },
@@ -22,7 +22,7 @@ const me = { key: 0 }, fe = { class: "clWhite" }, we = { class: "clWhite" }, ve
22
22
  };
23
23
  return (t, s) => {
24
24
  var b, S;
25
- const u = V("el-dropdown-item"), F = V("el-dropdown-menu"), d = V("el-dropdown"), $ = V("el-divider");
25
+ const u = R("el-dropdown-item"), F = R("el-dropdown-menu"), d = R("el-dropdown"), $ = R("el-divider");
26
26
  return l(), v(O, null, [
27
27
  f.hidden === !0 ? (l(), v("i", me, [
28
28
  o(g, { name: "@el-hide" })
@@ -32,7 +32,7 @@ const me = { key: 0 }, fe = { class: "clWhite" }, we = { class: "clWhite" }, ve
32
32
  onCommand: D
33
33
  }, A({
34
34
  default: r(() => [
35
- H("span", fe, [
35
+ V("span", fe, [
36
36
  o(g, { name: "@el-arrow-down" })
37
37
  ])
38
38
  ]),
@@ -108,7 +108,7 @@ const me = { key: 0 }, fe = { class: "clWhite" }, we = { class: "clWhite" }, ve
108
108
  default: r(() => {
109
109
  var i, h;
110
110
  return [
111
- H("span", we, [
111
+ V("span", we, [
112
112
  c(k(n(m).i18n2t(
113
113
  `designer.widgetLabel.${(i = t.widget) == null ? void 0 : i.type}`,
114
114
  `extension.widgetLabel.${(h = t.widget) == null ? void 0 : h.type}`
@@ -160,13 +160,13 @@ const me = { key: 0 }, fe = { class: "clWhite" }, we = { class: "clWhite" }, ve
160
160
  }, [
161
161
  o(g, { name: "@el-move-down" })
162
162
  ], 8, ye)) : y("", !0),
163
- H("i", {
163
+ V("i", {
164
164
  title: n(m).i18nt("designer.hint.cloneWidget"),
165
165
  onClick: s[6] || (s[6] = w((i) => n(I)(t.widget, t.parentList), ["stop"]))
166
166
  }, [
167
167
  o(g, { name: "@el-clone" })
168
168
  ], 8, We),
169
- H("i", {
169
+ V("i", {
170
170
  title: n(m).i18nt("designer.hint.remove"),
171
171
  onClick: s[7] || (s[7] = w((i) => n(j)(t.widget, t.parentWidget, t.parentList), ["stop"]))
172
172
  }, [
@@ -184,9 +184,9 @@ const Ne = /* @__PURE__ */ te({
184
184
  var K;
185
185
  const a = f, { selectWidget: z } = ne(a.designer), { widgetTree: E } = le((K = a.designer) == null ? void 0 : K.widgetList, !0), { pathNodes: j, parentTree: N } = re(E.value, a.widget), { size: B, displayLayout: I, labelAlign: D, labelWidth: t, formItemFlag: s, labelSuffix: u } = ae(a, se(j.value)), { idClass: F } = pe(a.widget), { getAttrProp: d } = ge(a), $ = T(() => d == null ? void 0 : d("hidden")), b = (e) => e && !["div", "span"].includes(e), S = T(() => {
186
186
  var e, p;
187
- return (e = a.widget) != null && e.type ? [q.grid, q.gridCol, q.wrapper].includes((p = a.widget) == null ? void 0 : p.type) : !1;
187
+ return (e = a.widget) != null && e.type ? [G.grid, G.gridCol, G.wrapper].includes((p = a.widget) == null ? void 0 : p.type) : !1;
188
188
  }), i = T(() => {
189
- const e = d == null ? void 0 : d("width"), p = d == null ? void 0 : d("ctrlWidth"), C = d == null ? void 0 : d("customClass"), R = d == null ? void 0 : d("componentWrapperClass");
189
+ const e = d == null ? void 0 : d("width"), p = d == null ? void 0 : d("ctrlWidth"), C = d == null ? void 0 : d("customClass"), H = d == null ? void 0 : d("componentWrapperClass");
190
190
  return {
191
191
  size: B.value,
192
192
  labelAlign: D.value,
@@ -201,36 +201,36 @@ const Ne = /* @__PURE__ */ te({
201
201
  //注:宽度全屏
202
202
  injectClass: [ee(C), e ? "" : "full-width", F],
203
203
  // filterDisplay.value ? displayStyle.value : ''
204
- componentWrapperClass: ee(R)
204
+ componentWrapperClass: ee(H)
205
205
  };
206
206
  }), h = T(() => {
207
207
  var e, p, C;
208
208
  return !!a.designer && ((e = a.widget) == null ? void 0 : e.id) === ((C = (p = a.designer) == null ? void 0 : p.selectedWidget) == null ? void 0 : C.id);
209
- }), G = _(), J = _(), ie = T(() => {
209
+ }), J = _(), M = _(), ie = T(() => {
210
210
  var e, p;
211
- if (G.value && J.value && h.value)
212
- return ((e = G.value) == null ? void 0 : e.offsetWidth) > ((p = J.value) == null ? void 0 : p.offsetWidth);
211
+ if (J.value && M.value && h.value)
212
+ return ((e = J.value) == null ? void 0 : e.offsetWidth) > ((p = M.value) == null ? void 0 : p.offsetWidth);
213
213
  });
214
214
  return (e, p) => {
215
- var C, R, Q, X;
215
+ var C, H, Q, X;
216
216
  return e.designState ? (l(), W(x(e.componentName), U({
217
217
  key: 0,
218
218
  class: ["field-wrapper", [n(h) ? "selected" : "", " drag-handler", e.propOptions.class, e.showWrapperComponent ? n(i).injectClass : null]],
219
219
  style: e.propOptions.style,
220
- onClick: p[0] || (p[0] = w((M) => n(z)(e.widget, e.parentWidget, e.parentList), ["stop"])),
220
+ onClick: p[0] || (p[0] = w((q) => n(z)(e.widget, e.parentWidget, e.parentList), ["stop"])),
221
221
  ref_key: "wrapperRef",
222
- ref: J,
222
+ ref: M,
223
223
  tabindex: 0
224
- }, b(e.componentName) ? (R = (C = e.propOptions) == null ? void 0 : C.fieldObj) == null ? void 0 : R.attrs : {}), {
224
+ }, b(e.componentName) ? (H = (C = e.propOptions) == null ? void 0 : C.fieldObj) == null ? void 0 : H.attrs : {}), {
225
225
  default: r(() => {
226
- var M, Y, Z;
226
+ var q, Y, Z;
227
227
  return [
228
228
  L(e.$slots, "default", { data: n(i) }),
229
- ((Y = (M = e.designer) == null ? void 0 : M.selectedWidget) == null ? void 0 : Y.id) === ((Z = e.widget) == null ? void 0 : Z.id) ? (l(), v("div", {
229
+ ((Y = (q = e.designer) == null ? void 0 : q.selectedWidget) == null ? void 0 : Y.id) === ((Z = e.widget) == null ? void 0 : Z.id) ? (l(), v("div", {
230
230
  key: 0,
231
231
  class: "action",
232
232
  ref_key: "dragHandlerRef",
233
- ref: G
233
+ ref: J
234
234
  }, [
235
235
  o(Ce, {
236
236
  simple: n(ie),
@@ -1,11 +1,11 @@
1
1
  import { ref as h, onMounted as j, watch as v, defineComponent as W, openBlock as b, createBlock as L, mergeProps as C, unref as n, withCtx as O, createElementBlock as R, normalizeClass as P, createVNode as q } from "vue";
2
2
  import { I as D } from "./widget-base-4c2d6265.js";
3
- import { D as y } from "./drag-wrapper-d545a429.js";
4
- import { _ as z } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c554fff1.js";
5
- import { w as B } from "./expression-402fef4a.js";
6
- import { W as g } from "./enum-type-a02d0ddc.js";
7
- import { b as F, a as S } from "./share-field-cbdc0f7d.js";
8
- import { c as $ } from "./slot-252ff364.js";
3
+ import { D as y } from "./drag-wrapper-2db7a9b7.js";
4
+ import { _ as z } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d7f8deb9.js";
5
+ import { w as B } from "./expression-75bf8097.js";
6
+ import { W as g } from "./enum-type-7d30197c.js";
7
+ import { b as F, a as S } from "./share-field-bc3299a0.js";
8
+ import { c as $ } from "./slot-75afa351.js";
9
9
  function E(a) {
10
10
  const d = h({}), { componentWrapperClass: l, customClass: c } = $({ widget: a.widget }), { exposed: s, attrs: p, fieldKey: f, fieldObj: m } = F(a), { setAllRefList: o } = S(d.value), r = (e = !1) => {
11
11
  o(g.setDisabled, { flag: e });
@@ -1,14 +0,0 @@
1
- import { _ as o } from "./content-wrapper.vue_vue_type_script_setup_true_lang-64b272e8.js";
2
- import "vue";
3
- import "./expression-402fef4a.js";
4
- import "./enum-type-ad1f81ba.js";
5
- import "./uuid-aedab58e.js";
6
- import "./_commonjsHelpers-e7ea1525.js";
7
- import "./baseImp-75d44fdc.js";
8
- import "./enum-type-a02d0ddc.js";
9
- import "./icon-e9532b43.js";
10
- import "./dialog-9097cd3a.js";
11
- import "element-plus";
12
- export {
13
- o as default
14
- };
@@ -1,24 +0,0 @@
1
- import { _ as o } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-88a89e04.js";
2
- import "vue";
3
- import "./enum-type-ad1f81ba.js";
4
- import "./field-base-5547436d.js";
5
- import "./widget-base-4c2d6265.js";
6
- import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c554fff1.js";
7
- import "./uuid-aedab58e.js";
8
- import "./index-ce2e6477.js";
9
- import "./enum-type-a02d0ddc.js";
10
- import "./baseImp-75d44fdc.js";
11
- import "./icon-e9532b43.js";
12
- import "./expression-402fef4a.js";
13
- import "./_commonjsHelpers-e7ea1525.js";
14
- import "./dialog-9097cd3a.js";
15
- import "element-plus";
16
- import "./index-ed941348.js";
17
- import "./_plugin-vue_export-helper-dad06003.js";
18
- import "./fieldobj-d49dbdc5.js";
19
- import "./slot-252ff364.js";
20
- import "./content-wrapper.vue_vue_type_script_setup_true_lang-64b272e8.js";
21
- import "./drag-wrapper-d545a429.js";
22
- export {
23
- o as default
24
- };
@@ -1,24 +0,0 @@
1
- import { _ as o } from "./feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-8de0d422.js";
2
- import "vue";
3
- import "./widget-base-4c2d6265.js";
4
- import "./drag-wrapper-d545a429.js";
5
- import "./baseImp-75d44fdc.js";
6
- import "./enum-type-ad1f81ba.js";
7
- import "./uuid-aedab58e.js";
8
- import "./enum-type-a02d0ddc.js";
9
- import "./icon-e9532b43.js";
10
- import "./expression-402fef4a.js";
11
- import "./_commonjsHelpers-e7ea1525.js";
12
- import "./dialog-9097cd3a.js";
13
- import "element-plus";
14
- import "./index-ce2e6477.js";
15
- import "./slot-252ff364.js";
16
- import "./_plugin-vue_export-helper-dad06003.js";
17
- import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c554fff1.js";
18
- import "./index-ed941348.js";
19
- import "./fieldobj-d49dbdc5.js";
20
- import "./share-field-cbdc0f7d.js";
21
- import "./multirow-980395e2.js";
22
- export {
23
- o as default
24
- };
@@ -1,183 +0,0 @@
1
- import { ref as K, onMounted as ae, nextTick as De, defineComponent as le, resolveComponent as we, resolveDirective as Ve, openBlock as Z, createBlock as ee, mergeProps as q, unref as m, withCtx as te, withDirectives as We, toHandlers as Le, createVNode as Oe } from "vue";
2
- import { I as Me } from "./widget-base-4c2d6265.js";
3
- import { D as Ne } from "./drag-wrapper-d545a429.js";
4
- import { _ as je } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c554fff1.js";
5
- import { c as Ee, w as U, e as z, b as S, f as F } from "./expression-402fef4a.js";
6
- import { u as Pe } from "./icon-e9532b43.js";
7
- import { u as xe, a as Se } from "./multirow-980395e2.js";
8
- import { i as $e } from "./enum-type-ad1f81ba.js";
9
- import { b as Ae, $ as Re, P as oe, B as ke } from "./baseImp-75d44fdc.js";
10
- import { f as ye } from "./index-ce2e6477.js";
11
- import { b as Ie, a as Be, u as He } from "./share-field-cbdc0f7d.js";
12
- import { W as Te } from "./enum-type-a02d0ddc.js";
13
- import { F as qe } from "./slot-252ff364.js";
14
- import { _ as ze } from "./_plugin-vue_export-helper-dad06003.js";
15
- function Ke(n) {
16
- const C = n.designer, s = C == null ? void 0 : C.pageConfig, b = n == null ? void 0 : n.widgetList, $ = K({}), O = {}, { syncUpdateFormModel: A, fieldModel: M, fieldName: N, fieldEditor: f, attrs: j, events: p, getFieldOptions: D, exposed: R, fieldObj: k, watchOption: u, propResultOpt: v, extendAttrs: d } = Ie(n), { off$: _, on$: w, emit$: y, broadcast: V } = Se();
17
- var { instance: W, proxy: I } = Pe();
18
- const { setAllRefList: ie } = Be($.value), G = { designState: n == null ? void 0 : n.designState, pageConfig: s, globalConfig: v == null ? void 0 : v.globalConfig }, { formModel: B, setData: ne, getData: J, clearData: de } = xe(b, { ...G, formData: M.value }), { handleFunc: H } = He({ options: s }, G), E = K({}), se = () => {
19
- _(F.fieldChange), w(F.fieldChange, (e) => {
20
- A(e == null ? void 0 : e.newValue), fe(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), I == null || I.$emit(z.formChange, N, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue, B);
21
- });
22
- }, re = () => {
23
- _(F.fieldValidation), w(F.fieldValidation, (e) => {
24
- var t;
25
- (t = f.value) == null || t.validateField(e == null ? void 0 : e.propName);
26
- });
27
- }, ce = () => {
28
- _(F.fieldRuleChange), w(F.fieldRuleChange, (e) => {
29
- var t;
30
- E.value = Object.assign(E.value, { [e == null ? void 0 : e.fieldName]: (t = e == null ? void 0 : e.rules) == null ? void 0 : t.map((o) => ({ required: o.required, message: o.message, trigger: o.trigger, validator: o.validator })) }), j.value.rules = E.value;
31
- });
32
- }, fe = (e, t, o) => {
33
- H(p.value.formDataChange, { fieldName: e, newValue: t, oldValue: o, formModel: B });
34
- }, ue = () => {
35
- H(p.value.formCreated);
36
- }, me = () => {
37
- H(p.value.formMounted);
38
- }, pe = () => {
39
- ce(), se(), re(), ue();
40
- }, ve = (e) => {
41
- var t;
42
- (t = f.value) == null || t.clearValidate(e);
43
- }, _e = () => {
44
- ie(Te.resetField), De(() => {
45
- ve();
46
- });
47
- }, ge = (e = !0, t = !1) => {
48
- var x, g, L;
49
- let o = J();
50
- if (!e)
51
- return o;
52
- let c = function() {
53
- }, P = new Promise(function(l, r) {
54
- c = function(a, i) {
55
- i ? r(i) : l(a);
56
- };
57
- });
58
- return (x = f.value) != null && x.validate ? (L = (g = f.value) == null ? void 0 : g.validate) == null || L.call(g, (l, r) => {
59
- if (l)
60
- c(o);
61
- else {
62
- let h = [];
63
- for (let he in r) {
64
- var a = r[he];
65
- a == null || a.forEach((T) => {
66
- const Fe = ye(b.value, (be) => ke.getName(be) === T.field), { getFieldOptions: Ce } = Ae(Fe[0], n), Y = Ce("label");
67
- T.message && h.push(Ee(Y ? "【" + Y + "】" : "", T.message, ":"));
68
- });
69
- }
70
- var i = h.join(";");
71
- t ? Re.multiple(h, () => {
72
- c(o);
73
- }) : c(o, i);
74
- }
75
- }) : c(o), P;
76
- }, Q = (e) => {
77
- ne(e), V(U.ContainerWidget, z.setFormData, e, W), V(U.FieldWidget, z.setFormData, e, W);
78
- }, X = (e) => new Promise((t, o) => {
79
- const c = (l) => {
80
- var a, i, h;
81
- const r = (a = d.value) != null && a.formDataLoaded ? (h = (i = d.value) == null ? void 0 : i.formDataLoaded) == null ? void 0 : h.call(i, J(), l) : l;
82
- r ? (Q(r), t(r)) : o();
83
- }, P = () => {
84
- u(e, S.newDataSource, void 0, (l) => {
85
- c(l);
86
- });
87
- }, x = () => {
88
- u(e, S.editDataSource, void 0, (l) => {
89
- var a, i;
90
- ((i = (a = d.value) == null ? void 0 : a.needFormAdd) == null ? void 0 : i.call(a, l)) ? L && P() : c(l);
91
- });
92
- }, g = oe.getValue(D(S.editDataSource, !0)) !== null, L = oe.getValue(D(S.newDataSource, !0)) !== null;
93
- g ? x() : L && P();
94
- });
95
- return pe(), ae(() => {
96
- $e(), me();
97
- }), {
98
- widgetRefList: $,
99
- allWidgetRefList: O,
100
- fieldEditor: f,
101
- formModel: B,
102
- pageConfig: s,
103
- widgetList: b,
104
- fieldModel: M,
105
- fieldName: N,
106
- attrs: j,
107
- extendAttrs: d,
108
- events: p,
109
- rules: E,
110
- loadData: X,
111
- exposed: {
112
- ...R,
113
- setValue: Q,
114
- getValue: ge,
115
- clearData: de,
116
- resetField: _e,
117
- loadData: X,
118
- emit$: y
119
- },
120
- fieldObj: k
121
- };
122
- }
123
- const Ue = le({ componentName: U.ContainerWidget }), Ge = /* @__PURE__ */ le({
124
- ...Ue,
125
- __name: "form-widget",
126
- props: { ...Me },
127
- setup(n, { expose: C }) {
128
- var v;
129
- const s = n, { exposed: b, fieldModel: $, formModel: O, fieldEditor: A, attrs: M, events: N, widgetRefList: f, extendAttrs: j, fieldName: p, fieldObj: D, loadData: R } = Ke({ ...s, widgetList: (v = s == null ? void 0 : s.widget) == null ? void 0 : v.widgetList }), k = p.value;
130
- qe.globalProvide({
131
- globalFormName: k
132
- });
133
- const u = K(!1);
134
- return ae(() => {
135
- var d;
136
- (d = j.value) != null && d.loadDataWhenInit && !s.designState && (u.value = !0, R(!0).then((_) => {
137
- u.value = !1;
138
- }).catch((_) => {
139
- u.value = !1;
140
- }));
141
- }), C({ ...b }), (d, _) => {
142
- const w = we("el-form"), y = Ve("loading");
143
- return Z(), ee(je, q(d.$props, {
144
- "prop-options": { fieldObj: m(D) }
145
- }), {
146
- default: te(({ data: V }) => {
147
- var W;
148
- return [
149
- We((Z(), ee(w, q({
150
- ref_key: "fieldEditor",
151
- ref: A,
152
- model: m(O)
153
- }, m(M), Le(m(N)), {
154
- class: V.injectClass,
155
- key: (W = m(D)) == null ? void 0 : W.fieldKey
156
- }), {
157
- default: te(() => [
158
- Oe(Ne, q(d.$props, {
159
- dragClass: "formDrag",
160
- model: m(O),
161
- provideModel: !0,
162
- "component-class": V.componentWrapperClass,
163
- refList: m(f)
164
- }), null, 16, ["model", "component-class", "refList"])
165
- ]),
166
- _: 2
167
- }, 1040, ["model", "class"])), [
168
- [y, u.value]
169
- ])
170
- ];
171
- }),
172
- _: 1
173
- }, 16, ["prop-options"]);
174
- };
175
- }
176
- });
177
- const Je = /* @__PURE__ */ ze(Ge, [["__scopeId", "data-v-d22a0b71"]]), ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
178
- __proto__: null,
179
- default: Je
180
- }, Symbol.toStringTag, { value: "Module" }));
181
- export {
182
- ct as _
183
- };
@@ -1,228 +0,0 @@
1
- import { b as Q, r as X, B as Y, c as Z } from "./baseImp-75d44fdc.js";
2
- import { g as L, c as I, t as R, r as T } from "./index-ce2e6477.js";
3
- import { c as k, F as d, g as rr } from "./slot-252ff364.js";
4
- import { h as J, o as v, d as V, n as K, k as er, t as a, b as A } from "./enum-type-ad1f81ba.js";
5
- import { reactive as B, watch as tr } from "vue";
6
- import { u as or } from "./icon-e9532b43.js";
7
- import { u as sr, g as ur } from "./uuid-aedab58e.js";
8
- import { f as G } from "./expression-402fef4a.js";
9
- function nr() {
10
- const t = {}, f = (r, e) => {
11
- var o, u, n, m;
12
- return r ? !!((o = r == null ? void 0 : r.proxy) != null && o.$options && ((n = (u = r == null ? void 0 : r.proxy) == null ? void 0 : u.$options) == null ? void 0 : n.componentName) === e || r != null && r.exposed && ((m = r == null ? void 0 : r.exposed) == null ? void 0 : m.componentName) === e) : !1;
13
- }, c = (r, e, o) => {
14
- r && v(r).forEach((u) => {
15
- f(r[u], e) && (o == null || o(r[u]));
16
- });
17
- }, g = (r, e, o) => {
18
- r && (f(r, e) ? o == null || o(r) : g(r.parent, e, o));
19
- };
20
- return {
21
- emit$(r, e) {
22
- t[r] && t[r].forEach((o) => {
23
- o(e);
24
- });
25
- },
26
- on$(r, e) {
27
- t[r] = t[r] || [], t[r].push(e);
28
- },
29
- off$(r, e) {
30
- if (t[r]) {
31
- if (J(e)) {
32
- t[r].length = 0;
33
- return;
34
- }
35
- for (let o = 0; o < t[r].length; o++)
36
- if (t[r][o] === e) {
37
- t[r].splice(o, 1);
38
- break;
39
- }
40
- }
41
- },
42
- dispatch(r, e, o, u) {
43
- let n = u.parent || u.root;
44
- g(n, r, (m) => {
45
- var l;
46
- m && (m.exposed.emit$ && m.exposed.emit$(e, o), m != null && m.proxy && ((l = m == null ? void 0 : m.proxy) == null || l.$emit(e, o)));
47
- });
48
- },
49
- broadcast(r, e, o, u) {
50
- c(u.widgetRefList, r, (n) => {
51
- n.emit$ && n.emit$.call(n, e, o);
52
- }), c(u.refList, r, (n) => {
53
- n.emit$ && n.emit$.call(n, e, o);
54
- });
55
- }
56
- };
57
- }
58
- const N = "", j = "_", H = (t, f) => J(f) ? t || "" : `${N}${t}${j}${f}`, y = (t) => {
59
- if (t != null && t.includes(j)) {
60
- var f = t.split(j);
61
- const c = f == null ? void 0 : f[0].substring(N.length), g = t.substring(N.length + c.length + 1);
62
- return { id: c, groupName: g };
63
- }
64
- return { id: t };
65
- };
66
- var ir = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.Inner2Inner = 1] = "Inner2Inner", t[t.Inner2Outer = 2] = "Inner2Outer", t[t.Outer2Inner = 3] = "Outer2Inner", t[t.Outer2Outer = 4] = "Outer2Outer", t[t.DiffInner = 5] = "DiffInner", t))(ir || {});
67
- const _r = (t, f) => {
68
- const c = y(t), g = c == null ? void 0 : c.groupName, r = y(f), e = r == null ? void 0 : r.groupName;
69
- return !g && !e ? 4 : g && !e ? 2 : g && e ? g !== e ? 5 : 1 : !g && e ? 3 : 0;
70
- };
71
- function fr(t, f) {
72
- const c = f == null ? void 0 : f.pageConfig, g = f == null ? void 0 : f.formData, r = B(g || {});
73
- var { instance: e } = or();
74
- return {
75
- formModel: r,
76
- pageConfig: c,
77
- widgetList: t,
78
- initData: () => {
79
- var l = L(t);
80
- l == null || l.forEach((F) => {
81
- const { computedDefaultValue: w, fieldName: _ } = Q(F.field, f, { s_fieldName: !0, s_defaultValue: !0 }, e);
82
- _.value && V(r, { [_.value]: w.value });
83
- });
84
- },
85
- setData: (l) => {
86
- K(r) ? v(r).forEach((F) => {
87
- l && l.hasOwnProperty(F) && (r[F] = er(l[F]));
88
- }) : V(r, l);
89
- },
90
- getData: () => X(r),
91
- clearData: () => {
92
- for (let l in r)
93
- delete r[l];
94
- }
95
- };
96
- }
97
- function gr() {
98
- const t = (r, e) => T(r, { newName: !0, recordSource: !0 }, (o, u) => H(o || u, e)), f = (r, e, o) => {
99
- var F, w;
100
- A(o) && (o = `${(F = sr()) == null ? void 0 : F.substring(0, 5)}_${!A(e == null ? void 0 : e.$index) && (e == null ? void 0 : e.$index) >= 0 ? e == null ? void 0 : e.$index : ""}`);
101
- var u = rr(r, !0);
102
- let n = u == null ? void 0 : u.map((_) => t(_, o));
103
- const m = g(n), { updateFomulaName: l } = Z();
104
- return (w = v(m)) == null || w.forEach((_) => {
105
- const C = m[_], p = C == null ? void 0 : C.name;
106
- n = l(n, p, _);
107
- }), { widget: n, id: ur(), data: e };
108
- }, c = (r, e, o, u) => {
109
- if (e || (e = []), o && (e == null ? void 0 : e.length) < o) {
110
- const l = o - (e == null ? void 0 : e.length);
111
- for (var n = 0; n < l; n++) {
112
- var m = {};
113
- e == null || e.push(m);
114
- }
115
- }
116
- return e == null ? void 0 : e.map((l, F) => {
117
- const w = u ? u(l, F) : l;
118
- return f(r, w, F + "");
119
- });
120
- }, g = (r, e) => {
121
- let o = {};
122
- return r && R(r, (u) => {
123
- const n = Y.getName(u), m = () => {
124
- n && (o[n] = u == null ? void 0 : u._source);
125
- };
126
- e ? e(u) && m() : m();
127
- }), o;
128
- };
129
- return {
130
- newSlot: f,
131
- reflectTargetWithSourceOne: g,
132
- getSlotFromData: c,
133
- parseGroupId: y,
134
- formatGroupId: H
135
- };
136
- }
137
- function vr(t) {
138
- const f = t == null ? void 0 : t.fieldName, c = B({}), g = B([]), { newSlot: r, reflectTargetWithSourceOne: e, getSlotFromData: o } = gr(), u = (s, i) => {
139
- var D;
140
- let h = {};
141
- const $ = e(i);
142
- return (D = v(s)) == null || D.map((E) => {
143
- var S, b, P;
144
- const O = (S = $ == null ? void 0 : $[E]) == null ? void 0 : S.name;
145
- O && (h[O] = s == null ? void 0 : s[E], (P = (b = v(s)) == null ? void 0 : b.filter((W) => W.startsWith(E + "_"))) == null || P.forEach((W) => {
146
- h[W == null ? void 0 : W.replace(E, O)] = s == null ? void 0 : s[W];
147
- }));
148
- }), h;
149
- }, n = (s, i) => {
150
- var D, E;
151
- let h = {};
152
- if (K(s)) {
153
- const O = e(i, (S) => !!(S != null && S.formItemFlag));
154
- (D = v(O)) == null || D.map((S) => {
155
- var b;
156
- S && (h[S] = s == null ? void 0 : s[(b = O == null ? void 0 : O[S]) == null ? void 0 : b.name]);
157
- });
158
- } else {
159
- var $ = { pageConfig: (E = t == null ? void 0 : t.designer) == null ? void 0 : E.pageConfig, formData: h, designState: t == null ? void 0 : t.designState };
160
- const { initData: O } = fr(i, $);
161
- O();
162
- }
163
- return h;
164
- }, m = (s, i) => {
165
- const h = n(i, s.widget);
166
- V(c, h);
167
- }, l = (s) => {
168
- var h;
169
- const i = n({}, s.widget);
170
- (h = v(i)) == null || h.forEach(($) => delete c[$]);
171
- }, F = () => {
172
- var s;
173
- (s = v(c)) == null || s.forEach((i) => delete c[i]);
174
- }, w = () => g == null ? void 0 : g.map((i) => u(c, i == null ? void 0 : i.widget)), _ = (s, i) => {
175
- F();
176
- const h = i(s);
177
- return h == null || h.forEach(($) => {
178
- const D = n($ == null ? void 0 : $.data, $ == null ? void 0 : $.widget);
179
- V(c, D);
180
- }), g.splice(0, g.length, ...h), g;
181
- }, C = (s) => {
182
- var h;
183
- var i = k({ ...t, widget: s });
184
- return (h = i.attrs) == null ? void 0 : h.value;
185
- }, p = (s, i, h) => I(s, i, g, h), M = (s) => {
186
- var i = w();
187
- tr(() => c, (h) => {
188
- var $ = w();
189
- a($) != a(i) && s($);
190
- }, { deep: !0, immediate: !0 });
191
- }, { off$: U, on$: q, emit$: x } = nr(), z = () => {
192
- U(G.fieldChange), q(G.fieldChange, (s) => {
193
- var i;
194
- (i = t == null ? void 0 : t.fieldChanged) == null || i.call(t);
195
- });
196
- };
197
- return (() => {
198
- const s = f;
199
- d.globalProvide({
200
- globalFormName: s,
201
- globalDataModel: c
202
- }), z();
203
- })(), {
204
- getSlotFromData: o,
205
- fromModel: n,
206
- toModel: u,
207
- newSlot: r,
208
- getWidgetOption: C,
209
- newFieldModelFromSlot: m,
210
- removeFieldModelFromSlot: l,
211
- getValue: w,
212
- setValue: _,
213
- findWidgetByNameWithSibId: p,
214
- listenFormModel: M,
215
- emit$: x,
216
- formModel: c,
217
- rowsData: g
218
- };
219
- }
220
- export {
221
- nr as a,
222
- gr as b,
223
- vr as c,
224
- ir as f,
225
- _r as g,
226
- y as p,
227
- fr as u
228
- };