@kp-ui/lowcode 2.14.0-alpha.4 → 2.14.0-beta

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 (57) hide show
  1. package/install.js +24 -45
  2. package/package.json +1 -1
  3. package/src/components/form-designer/form-widget/container-widget/container-wrapper.vue.js +17 -17
  4. package/src/components/form-designer/form-widget/container-widget/grid-col-widget.vue.js +10 -10
  5. package/src/components/form-designer/form-widget/container-widget/index.js +6 -7
  6. package/src/components/form-designer/form-widget/container-widget/table-cell-widget.vue.js +9 -9
  7. package/src/components/form-designer/form-widget/field-widget/button-widget.vue.js +2 -2
  8. package/src/components/form-designer/form-widget/field-widget/diy-compontent-widget.vue.js +1 -1
  9. package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue.js +32 -32
  10. package/src/components/form-designer/form-widget/field-widget/input-widget.vue.js +3 -3
  11. package/src/components/form-designer/form-widget/field-widget/select-widget.vue.js +7 -7
  12. package/src/components/form-designer/form-widget/field-widget/static-content-wrapper.vue.js +18 -18
  13. package/src/components/form-designer/index.vue.js +21 -25
  14. package/src/components/form-designer/setting-panel/index.vue.js +55 -54
  15. package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue2.js +10 -10
  16. package/src/components/form-designer/setting-panel/property-editor/buttonIcon-editor.vue.js +14 -11
  17. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +2 -2
  18. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +116 -118
  19. package/src/components/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue.js +11 -11
  20. package/src/components/form-designer/setting-panel/property-editor/field-button/danger-editor.vue.js +13 -11
  21. package/src/components/form-designer/setting-panel/property-editor/field-button/ghost-editor.vue.js +15 -13
  22. package/src/components/form-designer/setting-panel/property-editor/field-button/icon-editor.vue.js +17 -14
  23. package/src/components/form-designer/setting-panel/property-editor/field-button/shape-editor.vue.js +14 -12
  24. package/src/components/form-designer/setting-panel/property-editor/field-dropdown/dropdown-menuList-editor.vue.js +15 -11
  25. package/src/components/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue.js +2 -2
  26. package/src/components/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue.js +2 -2
  27. package/src/components/form-designer/setting-panel/property-editor/field-treeSelect/treeSelect-treeDefaultExpandAll-editor.vue.js +16 -14
  28. package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue.js +16 -13
  29. package/src/components/form-designer/setting-panel/property-editor/name-editor.vue.js +7 -3
  30. package/src/components/form-designer/setting-panel/property-editor/placement-editor.vue.js +24 -22
  31. package/src/components/form-designer/setting-panel/property-editor/validation-editor.vue.js +15 -12
  32. package/src/components/form-designer/toolbar-panel/index.vue.js +2 -2
  33. package/src/components/form-designer/toolbar-panel/index.vue2.js +66 -67
  34. package/src/components/form-designer/widget-panel/advanced/data-table.js +6 -1
  35. package/src/components/form-designer/widget-panel/basicFields/color.js +2 -7
  36. package/src/components/form-designer/widget-panel/index.vue.js +16 -16
  37. package/src/components/form-render/index.vue.js +10 -10
  38. package/src/components/http-editor/index.vue.js +27 -23
  39. package/src/components/public/ActionButtonListRender.vue.js +24 -19
  40. package/src/components/public/ActionButtonListRender.vue2.js +1 -1
  41. package/src/lang/en-US.js +17 -0
  42. package/src/lang/zh-CN.js +17 -0
  43. package/stats.html +1 -1
  44. package/styles/style.css +1 -1
  45. package/types/install.d.ts +3 -14
  46. package/src/components/form-render/container-item/data-table-item.vue.js +0 -149
  47. package/src/components/form-render/container-item/grid-col-item.vue.js +0 -149
  48. package/src/components/form-render/container-item/grid-item.vue.js +0 -92
  49. package/src/components/form-render/container-item/grid-sub-form-item.vue.js +0 -319
  50. package/src/components/form-render/container-item/index.js +0 -24
  51. package/src/components/form-render/container-item/sub-form-item.vue.js +0 -429
  52. package/src/components/form-render/container-item/tab-item.vue.js +0 -160
  53. package/src/components/form-render/container-item/table-cell-item.vue.js +0 -95
  54. package/src/components/form-render/container-item/table-item.vue.js +0 -96
  55. package/src/components/form-render/container-item/vf-collapse-item.vue.js +0 -252
  56. package/src/components/form-render/container-item/vf-dialog-item.vue.js +0 -12
  57. package/src/components/form-render/container-item/vf-drawer-item.vue.js +0 -12
package/install.js CHANGED
@@ -1,55 +1,34 @@
1
1
  /* empty css */
2
- import { default as h } from "./src/components/form-designer/index.vue.js";
3
- import { default as W } from "./src/components/form-render/index.vue.js";
4
- import { i18n as m } from "./src/utils/i18n.js";
2
+ import { i18n as n } from "./src/utils/i18n.js";
5
3
  import "./_virtual/virtual_svg-icons-register.js";
6
- import { addAdvancedFieldSchema as I, addBasicFieldSchema as S, addContainerWidgetSchema as P, addCustomWidgetSchema as v } from "./src/components/form-designer/widget-panel/widgetsConfig.js";
7
- import { basicFieldsEnums as y } from "./src/components/form-designer/widget-panel/basicFieldsEnums.js";
8
- import { default as B } from "./src/components/form-designer/form-widget/container-widget/containerMixin.js";
9
- import { default as L } from "./src/components/form-designer/form-widget/container-widget/container-wrapper.vue.js";
10
- import p from "./src/components/form-designer/form-widget/container-widget/index.js";
11
- import d from "./src/components/form-render/container-item/index.js";
12
- import { default as V } from "./src/components/form-designer/form-widget/field-widget/index.js";
13
- import { default as j } from "./src/components/form-designer/refMixinDesign.js";
14
- import { default as q } from "./src/components/form-render/refMixin.js";
15
- import { default as G } from "./src/components/form-render/container-item/container-item-wrapper.vue.js";
16
- import { default as J } from "./src/components/form-render/container-item/containerItemMixin.js";
17
- import { default as N } from "./src/components/form-designer/form-widget/field-widget/static-content-wrapper.vue.js";
18
- import { default as Q } from "./src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue.js";
19
- import { default as X } from "./src/components/form-designer/form-widget/field-widget/fieldMixin.js";
20
- import { openCustomerModal as s } from "./src/components/public/CustomerModal/useCustomerModal.js";
21
- import { default as Z } from "./src/components/form-render/SubmitButtonRender.vue.js";
22
- import { default as ee } from "./src/utils/emitter.js";
23
- import { useLowcode as re } from "./src/hooks/useLowcode.js";
4
+ import { addAdvancedFieldSchema as h, addBasicFieldSchema as w, addContainerWidgetSchema as C, addCustomWidgetSchema as F } from "./src/components/form-designer/widget-panel/widgetsConfig.js";
5
+ import { basicFieldsEnums as S } from "./src/components/form-designer/widget-panel/basicFieldsEnums.js";
6
+ import { default as R } from "./src/components/form-designer/index.vue.js";
7
+ import { default as W } from "./src/components/form-render/index.vue.js";
8
+ import s from "./src/components/form-designer/form-widget/container-widget/index.js";
9
+ import { openCustomerModal as p } from "./src/components/public/CustomerModal/useCustomerModal.js";
10
+ import { default as A } from "./src/components/form-render/SubmitButtonRender.vue.js";
11
+ import { default as I } from "./src/utils/emitter.js";
12
+ import { useLowcode as U } from "./src/hooks/useLowcode.js";
24
13
  const $ = (r) => {
25
- const { app: e, http: o, factoryRender: t, useMountApp: a, getUserInfo: i } = r;
26
- e.config.globalProperties.$http = o, e.config.globalProperties.$getUserInfo = i, e.config.globalProperties.$factoryRender = t, e.config.globalProperties.$i18n = m.$st, e.config.globalProperties.$openCustomerModal = (n) => s(n, a), e.use(p), e.use(d);
27
- const f = window.$vform ?? {};
14
+ const { app: o, http: e, factoryRender: t, useMountApp: i, getUserInfo: a } = r;
15
+ o.config.globalProperties.$http = e, o.config.globalProperties.$getUserInfo = a, o.config.globalProperties.$factoryRender = t, o.config.globalProperties.$i18n = n.$st, o.config.globalProperties.$openCustomerModal = (m) => p(m, i), o.use(s);
16
+ const d = window.$vform ?? {};
28
17
  window.$vform = {
29
- ...f,
30
- $http: o
18
+ ...d,
19
+ $http: e
31
20
  };
32
21
  };
33
22
  export {
34
- G as ContainerItemWrapper,
35
- L as ContainerWrapper,
36
- V as FieldComponents,
37
- Q as FormItemWrapper,
38
- N as StaticContentWrapper,
39
- Z as SubmitButtonRender,
40
- h as VFormDesigner,
23
+ A as SubmitButtonRender,
24
+ R as VFormDesigner,
41
25
  W as VFormRender,
42
- I as addAdvancedFieldSchema,
43
- S as addBasicFieldSchema,
44
- P as addContainerWidgetSchema,
45
- v as addCustomWidgetSchema,
46
- y as basicFieldsEnums,
47
- J as containerItemMixin,
48
- B as containerMixin,
49
- ee as emitter,
50
- X as fieldMixin,
51
- q as refMixin,
52
- j as refMixinDesign,
26
+ h as addAdvancedFieldSchema,
27
+ w as addBasicFieldSchema,
28
+ C as addContainerWidgetSchema,
29
+ F as addCustomWidgetSchema,
30
+ S as basicFieldsEnums,
31
+ I as emitter,
53
32
  $ as registerLowcodeCore,
54
- re as useLowcode
33
+ U as useLowcode
55
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kp-ui/lowcode",
3
- "version": "2.14.0-alpha.4",
3
+ "version": "2.14.0-beta",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,12 +1,12 @@
1
- import c from "../../../../utils/i18n.js";
1
+ import m from "../../../../utils/i18n.js";
2
2
  import w from "./containerMixin.js";
3
- import u from "../../../svg-icon/index.vue.js";
3
+ import { SvgIcon as u } from "tmgc2-share";
4
4
  import { resolveComponent as v, createElementBlock as o, openBlock as s, normalizeClass as k, renderSlot as C, createCommentVNode as l, createElementVNode as g, withModifiers as a, createVNode as d, toDisplayString as y } from "vue";
5
5
  /* empty css */
6
- import f from "../../../../../_virtual/_plugin-vue_export-helper.js";
7
- const h = {
6
+ import h from "../../../../../_virtual/_plugin-vue_export-helper.js";
7
+ const f = {
8
8
  name: "container-wrapper",
9
- mixins: [c, w],
9
+ mixins: [m, w],
10
10
  components: {
11
11
  SvgIcon: u
12
12
  },
@@ -29,10 +29,10 @@ const h = {
29
29
  key: 1,
30
30
  class: "drag-handler"
31
31
  }, P = ["title"], S = { key: 0 };
32
- function V(t, i, e, _, B, m) {
32
+ function V(t, i, e, _, B, c) {
33
33
  const n = v("svg-icon");
34
34
  return s(), o("div", {
35
- class: k(["container-wrapper", [m.customClass]])
35
+ class: k(["container-wrapper", [c.customClass]])
36
36
  }, [
37
37
  C(t.$slots, "default", {}, void 0, !0),
38
38
  e.designer.selectedId === e.widget.id && !e.widget.internal ? (s(), o("div", b, [
@@ -40,67 +40,67 @@ function V(t, i, e, _, B, m) {
40
40
  title: t.i18nt("designer.hint.selectParentWidget"),
41
41
  onClick: i[0] || (i[0] = a((r) => t.selectParentWidget(e.widget), ["stop"]))
42
42
  }, [
43
- d(n, { "icon-class": "el-back" })
43
+ d(n, { "icon-class": "icon-el-back" })
44
44
  ], 8, p),
45
45
  e.parentList && e.parentList.length > 1 ? (s(), o("i", {
46
46
  key: 0,
47
47
  title: t.i18nt("designer.hint.moveUpWidget"),
48
48
  onClick: i[1] || (i[1] = a((r) => t.moveUpWidget(), ["stop"]))
49
49
  }, [
50
- d(n, { "icon-class": "el-move-up" })
50
+ d(n, { "icon-class": "icon-el-move-up" })
51
51
  ], 8, W)) : l("", !0),
52
52
  e.parentList && e.parentList.length > 1 ? (s(), o("i", {
53
53
  key: 1,
54
54
  title: t.i18nt("designer.hint.moveDownWidget"),
55
55
  onClick: i[2] || (i[2] = a((r) => t.moveDownWidget(), ["stop"]))
56
56
  }, [
57
- d(n, { "icon-class": "el-move-down" })
57
+ d(n, { "icon-class": "icon-el-move-down" })
58
58
  ], 8, L)) : l("", !0),
59
59
  e.widget.type === "table" ? (s(), o("i", {
60
60
  key: 2,
61
61
  title: t.i18nt("designer.hint.insertRow"),
62
62
  onClick: i[3] || (i[3] = a((r) => t.appendTableRow(e.widget), ["stop"]))
63
63
  }, [
64
- d(n, { "icon-class": "el-insert-row" })
64
+ d(n, { "icon-class": "icon-el-insert-row" })
65
65
  ], 8, N)) : l("", !0),
66
66
  e.widget.type === "table" ? (s(), o("i", {
67
67
  key: 3,
68
68
  title: t.i18nt("designer.hint.insertColumn"),
69
69
  onClick: i[4] || (i[4] = a((r) => t.appendTableCol(e.widget), ["stop"]))
70
70
  }, [
71
- d(n, { "icon-class": "el-insert-column" })
71
+ d(n, { "icon-class": "icon-el-insert-column" })
72
72
  ], 8, j)) : l("", !0),
73
73
  e.widget.type === "grid" || e.widget.type === "table" ? (s(), o("i", {
74
74
  key: 4,
75
75
  title: t.i18nt("designer.hint.cloneWidget"),
76
76
  onClick: i[5] || (i[5] = a((r) => t.cloneContainer(e.widget), ["stop"]))
77
77
  }, [
78
- d(n, { "icon-class": "el-clone" })
78
+ d(n, { "icon-class": "icon-el-clone" })
79
79
  ], 8, I)) : l("", !0),
80
80
  g("i", {
81
81
  title: t.i18nt("designer.hint.remove"),
82
82
  onClick: i[6] || (i[6] = a((...r) => t.removeWidget && t.removeWidget(...r), ["stop"]))
83
83
  }, [
84
- d(n, { "icon-class": "el-delete" })
84
+ d(n, { "icon-class": "icon-el-delete" })
85
85
  ], 8, O)
86
86
  ])) : l("", !0),
87
87
  e.designer.selectedId === e.widget.id && !e.widget.internal ? (s(), o("div", D, [
88
88
  g("i", {
89
89
  title: t.i18nt("designer.hint.dragHandler")
90
90
  }, [
91
- d(n, { "icon-class": "el-drag-move" })
91
+ d(n, { "icon-class": "icon-el-drag-move" })
92
92
  ], 8, P),
93
93
  g("i", null, y(e.widget.showName || t.i18n2t(
94
94
  `designer.widgetLabel.${e.widget.type}`,
95
95
  `extension.widgetLabel.${e.widget.type}`
96
96
  )), 1),
97
97
  e.widget.options.hidden === !0 ? (s(), o("i", S, [
98
- d(n, { "icon-class": "el-hide" })
98
+ d(n, { "icon-class": "icon-el-hide" })
99
99
  ])) : l("", !0)
100
100
  ])) : l("", !0)
101
101
  ], 2);
102
102
  }
103
- const A = /* @__PURE__ */ f(h, [["render", V], ["__scopeId", "data-v-4b4d3f4d"]]);
103
+ const A = /* @__PURE__ */ h(f, [["render", V], ["__scopeId", "data-v-a5686394"]]);
104
104
  export {
105
105
  A as default
106
106
  };
@@ -1,6 +1,6 @@
1
1
  import L from "../../../../utils/i18n.js";
2
2
  import C from "../field-widget/index.js";
3
- import k from "../../../svg-icon/index.vue.js";
3
+ import { SvgIcon as k } from "tmgc2-share";
4
4
  import W from "../../refMixinDesign.js";
5
5
  import x from "../../../../lib/vuedraggable/src/vuedraggable.js";
6
6
  import { resolveComponent as p, createBlock as c, createCommentVNode as g, openBlock as o, mergeProps as w, withModifiers as d, withCtx as f, createVNode as r, createElementBlock as h, createElementVNode as a, resolveDynamicComponent as y, toDisplayString as D } from "vue";
@@ -149,11 +149,11 @@ const G = {
149
149
  }, H = { class: "form-widget-list" }, S = {
150
150
  key: 0,
151
151
  class: "grid-col-action"
152
- }, O = ["title"], U = ["title"], E = ["title"], I = ["title"], T = ["title"], M = {
152
+ }, O = ["title"], U = ["title"], E = ["title"], I = ["title"], T = ["title"], b = {
153
153
  key: 1,
154
154
  class: "grid-col-handler"
155
155
  };
156
- function N(e, i, t, b, u, n) {
156
+ function M(e, i, t, N, u, n) {
157
157
  const v = p("draggable"), l = p("svg-icon"), P = p("a-col");
158
158
  return t.widget.type === "grid-col" ? (o(), c(P, w({
159
159
  key: 0,
@@ -204,43 +204,43 @@ function N(e, i, t, b, u, n) {
204
204
  title: e.i18nt("designer.hint.selectParentWidget"),
205
205
  onClick: i[2] || (i[2] = d((s) => n.selectParentWidget(t.widget), ["stop"]))
206
206
  }, [
207
- r(l, { "icon-class": "el-back" })
207
+ r(l, { "icon-class": "icon-el-back" })
208
208
  ], 8, O),
209
209
  t.parentList && t.parentList.length > 1 ? (o(), h("i", {
210
210
  key: 0,
211
211
  title: e.i18nt("designer.hint.moveUpWidget"),
212
212
  onClick: i[3] || (i[3] = d((s) => n.moveUpWidget(), ["stop"]))
213
213
  }, [
214
- r(l, { "icon-class": "el-move-up" })
214
+ r(l, { "icon-class": "icon-el-move-up" })
215
215
  ], 8, U)) : g("", !0),
216
216
  t.parentList && t.parentList.length > 1 ? (o(), h("i", {
217
217
  key: 1,
218
218
  title: e.i18nt("designer.hint.moveDownWidget"),
219
219
  onClick: i[4] || (i[4] = d((s) => n.moveDownWidget(), ["stop"]))
220
220
  }, [
221
- r(l, { "icon-class": "el-move-down" })
221
+ r(l, { "icon-class": "icon-el-move-down" })
222
222
  ], 8, E)) : g("", !0),
223
223
  a("i", {
224
224
  title: e.i18nt("designer.hint.cloneWidget"),
225
225
  onClick: i[5] || (i[5] = d((s) => n.cloneGridCol(t.widget), ["stop"]))
226
226
  }, [
227
- r(l, { "icon-class": "el-clone" })
227
+ r(l, { "icon-class": "icon-el-clone" })
228
228
  ], 8, I),
229
229
  a("i", {
230
230
  title: e.i18nt("designer.hint.remove"),
231
231
  onClick: i[6] || (i[6] = d((...s) => n.removeWidget && n.removeWidget(...s), ["stop"]))
232
232
  }, [
233
- r(l, { "icon-class": "el-delete" })
233
+ r(l, { "icon-class": "icon-el-delete" })
234
234
  ], 8, T)
235
235
  ])) : g("", !0),
236
- t.designer.selectedId === t.widget.id && t.widget.type === "grid-col" ? (o(), h("div", M, [
236
+ t.designer.selectedId === t.widget.id && t.widget.type === "grid-col" ? (o(), h("div", b, [
237
237
  a("i", null, D(e.i18nt("designer.widgetLabel." + t.widget.type)), 1)
238
238
  ])) : g("", !0)
239
239
  ]),
240
240
  _: 1
241
241
  }, 16, ["class", "style"])) : g("", !0);
242
242
  }
243
- const J = /* @__PURE__ */ _(G, [["render", N], ["__scopeId", "data-v-001977d2"]]);
243
+ const J = /* @__PURE__ */ _(G, [["render", M], ["__scopeId", "data-v-458b94dd"]]);
244
244
  export {
245
245
  J as default
246
246
  };
@@ -1,14 +1,13 @@
1
1
  import { defineAsyncComponent as r } from "vue";
2
2
  import { getFileName as m } from "../../../../utils/getFileName.js";
3
- const i = /* @__PURE__ */ Object.assign({ "./container-wrapper.vue": () => import("./container-wrapper.vue.js"), "./data-table-widget.vue": () => import("./data-table-widget.vue.js"), "./grid-col-widget.vue": () => import("./grid-col-widget.vue.js"), "./grid-sub-form-widget.vue": () => import("./grid-sub-form-widget.vue.js"), "./grid-widget.vue": () => import("./grid-widget.vue.js"), "./sub-form-widget.vue": () => import("./sub-form-widget.vue.js"), "./tab-widget.vue": () => import("./tab-widget.vue.js"), "./table-cell-widget.vue": () => import("./table-cell-widget.vue.js"), "./table-widget.vue": () => import("./table-widget.vue.js"), "./vf-box-item.vue": () => import("./vf-box-item.vue.js"), "./vf-box-widget.vue": () => import("./vf-box-widget.vue.js"), "./vf-collapse-widget.vue": () => import("./vf-collapse-widget.vue.js"), "./vf-dialog-widget.vue": () => import("./vf-dialog-widget.vue.js"), "./vf-drawer-widget.vue": () => import("./vf-drawer-widget.vue.js") }), g = {
4
- install(e) {
5
- for (const t in i) {
6
- const o = m(t);
7
- e.component(o, r(i[t]));
3
+ const t = /* @__PURE__ */ Object.assign({ "./container-wrapper.vue": () => import("./container-wrapper.vue.js"), "./data-table-widget.vue": () => import("./data-table-widget.vue.js"), "./grid-col-widget.vue": () => import("./grid-col-widget.vue.js"), "./grid-sub-form-widget.vue": () => import("./grid-sub-form-widget.vue.js"), "./grid-widget.vue": () => import("./grid-widget.vue.js"), "./sub-form-widget.vue": () => import("./sub-form-widget.vue.js"), "./tab-widget.vue": () => import("./tab-widget.vue.js"), "./table-cell-widget.vue": () => import("./table-cell-widget.vue.js"), "./table-widget.vue": () => import("./table-widget.vue.js"), "./vf-box-item.vue": () => import("./vf-box-item.vue.js"), "./vf-box-widget.vue": () => import("./vf-box-widget.vue.js"), "./vf-collapse-widget.vue": () => import("./vf-collapse-widget.vue.js"), "./vf-dialog-widget.vue": () => import("./vf-dialog-widget.vue.js"), "./vf-drawer-widget.vue": () => import("./vf-drawer-widget.vue.js") }), a = {
4
+ install(i) {
5
+ for (const e in t) {
6
+ const o = m(e);
7
+ i.component(o, r(t[e]));
8
8
  }
9
- console.log(e);
10
9
  }
11
10
  };
12
11
  export {
13
- g as default
12
+ a as default
14
13
  };
@@ -1,9 +1,9 @@
1
1
  import W from "../../../../utils/i18n.js";
2
2
  import x from "../field-widget/index.js";
3
- import A from "../../../svg-icon/index.vue.js";
3
+ import { SvgIcon as A } from "tmgc2-share";
4
4
  import L from "../../refMixinDesign.js";
5
5
  import v from "../../../../lib/vuedraggable/src/vuedraggable.js";
6
- import { resolveComponent as a, createElementBlock as c, openBlock as h, withModifiers as C, normalizeStyle as k, normalizeClass as D, createVNode as o, createCommentVNode as f, mergeProps as T, withCtx as s, createElementVNode as w, createBlock as u, resolveDynamicComponent as R, createTextVNode as d, toDisplayString as l } from "vue";
6
+ import { resolveComponent as a, createElementBlock as c, openBlock as h, withModifiers as C, normalizeStyle as k, normalizeClass as D, createVNode as o, createCommentVNode as u, mergeProps as T, withCtx as s, createElementVNode as w, createBlock as f, resolveDynamicComponent as R, createTextVNode as d, toDisplayString as l } from "vue";
7
7
  /* empty css */
8
8
  import _ from "../../../../../_virtual/_plugin-vue_export-helper.js";
9
9
  const M = {
@@ -237,14 +237,14 @@ function U(e, g, t, V, z, i) {
237
237
  }), {
238
238
  item: s(({ element: r, index: b }) => [
239
239
  w("div", E, [
240
- r.category === "container" ? (h(), u(R(r.type + "-widget"), {
240
+ r.category === "container" ? (h(), f(R(r.type + "-widget"), {
241
241
  widget: r,
242
242
  designer: t.designer,
243
243
  key: r.id,
244
244
  "parent-list": t.widget.widgetList,
245
245
  "index-of-parent-list": b,
246
246
  "parent-widget": t.widget
247
- }, null, 8, ["widget", "designer", "parent-list", "index-of-parent-list", "parent-widget"])) : (h(), u(R(r.type + "-widget"), {
247
+ }, null, 8, ["widget", "designer", "parent-list", "index-of-parent-list", "parent-widget"])) : (h(), f(R(r.type + "-widget"), {
248
248
  field: r,
249
249
  designer: t.designer,
250
250
  key: r.id,
@@ -262,7 +262,7 @@ function U(e, g, t, V, z, i) {
262
262
  title: e.i18nt("designer.hint.selectParentWidget"),
263
263
  onClick: g[2] || (g[2] = C((r) => i.selectParentWidget(), ["stop"]))
264
264
  }, [
265
- o(m, { "icon-class": "el-back" })
265
+ o(m, { "icon-class": "icon-el-back" })
266
266
  ], 8, S),
267
267
  o(I, {
268
268
  trigger: "click",
@@ -398,18 +398,18 @@ function U(e, g, t, V, z, i) {
398
398
  w("i", {
399
399
  title: e.i18nt("designer.hint.cellSetting")
400
400
  }, [
401
- o(m, { "icon-class": "el-menu" })
401
+ o(m, { "icon-class": "icon-el-menu" })
402
402
  ], 8, j)
403
403
  ]),
404
404
  _: 1
405
405
  }, 8, ["onCommand"])
406
- ])) : f("", !0),
406
+ ])) : u("", !0),
407
407
  t.designer.selectedId === t.widget.id && t.widget.type === "table-cell" ? (h(), c("div", P, [
408
408
  w("i", null, l(e.i18nt("designer.widgetLabel." + t.widget.type)), 1)
409
- ])) : f("", !0)
409
+ ])) : u("", !0)
410
410
  ], 14, B);
411
411
  }
412
- const X = /* @__PURE__ */ _(M, [["render", U], ["__scopeId", "data-v-6ef336b4"]]);
412
+ const X = /* @__PURE__ */ _(M, [["render", U], ["__scopeId", "data-v-0ac37b0d"]]);
413
413
  export {
414
414
  X as default
415
415
  };
@@ -2,7 +2,7 @@ import f from "./static-content-wrapper.vue.js";
2
2
  import m from "../../../../utils/emitter.js";
3
3
  import c from "../../../../utils/i18n.js";
4
4
  import u from "./fieldMixin.js";
5
- import g from "../../../svg-icon/index.vue.js";
5
+ import { SvgIcon as g } from "tmgc2-share";
6
6
  import { resolveComponent as i, createBlock as n, createCommentVNode as o, openBlock as d, withCtx as a, createVNode as b, normalizeClass as p, createTextVNode as h, toDisplayString as _ } from "vue";
7
7
  /* empty css */
8
8
  import y from "../../../../../_virtual/_plugin-vue_export-helper.js";
@@ -96,7 +96,7 @@ function w(t, C, e, F, I, k) {
96
96
  _: 1
97
97
  }, 8, ["designer", "field", "design-state", "display-style", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]));
98
98
  }
99
- const B = /* @__PURE__ */ y(x, [["render", w], ["__scopeId", "data-v-ac650374"]]);
99
+ const B = /* @__PURE__ */ y(x, [["render", w], ["__scopeId", "data-v-5e8a9c46"]]);
100
100
  export {
101
101
  B as default
102
102
  };
@@ -61,7 +61,7 @@ const x = {
61
61
  return f({
62
62
  functionBody: this.field.options.customRender,
63
63
  context: this,
64
- scope: { data: this.fieldModel },
64
+ params: { data: this.fieldModel },
65
65
  keys: ["data"]
66
66
  });
67
67
  }
@@ -1,6 +1,6 @@
1
- import C from "../../../svg-icon/index.vue.js";
1
+ import { SvgIcon as C } from "tmgc2-share";
2
2
  import F from "../../../../utils/i18n.js";
3
- import { resolveComponent as b, createElementBlock as n, openBlock as l, normalizeClass as y, createBlock as v, createCommentVNode as f, withModifiers as u, withCtx as r, renderSlot as I, createElementVNode as a, Fragment as c, createVNode as s, toDisplayString as m } from "vue";
3
+ import { resolveComponent as b, createElementBlock as n, openBlock as l, normalizeClass as y, createBlock as v, createCommentVNode as c, withModifiers as u, withCtx as r, renderSlot as I, createElementVNode as a, Fragment as g, createVNode as s, toDisplayString as m } from "vue";
4
4
  /* empty css */
5
5
  import W from "../../../../../_virtual/_plugin-vue_export-helper.js";
6
6
  const k = {
@@ -117,7 +117,7 @@ const k = {
117
117
  class: "drag-handler background-opacity"
118
118
  }, D = ["title"], B = { key: 0 };
119
119
  function U(i, d, e, E, R, t) {
120
- const o = b("svg-icon"), g = b("a-tooltip"), _ = b("a-form-item");
120
+ const o = b("svg-icon"), f = b("a-tooltip"), _ = b("a-form-item");
121
121
  return l(), n("div", {
122
122
  class: y(["field-wrapper", { "design-time-bottom-margin": !!this.designer }])
123
123
  }, [
@@ -135,9 +135,9 @@ function U(i, d, e, E, R, t) {
135
135
  label: r(() => [
136
136
  a("div", x, [
137
137
  e.field.options.labelIconClass ? (l(), n("span", S, [
138
- e.field.options.labelIconPosition === "front" ? (l(), n(c, { key: 0 }, [
139
- e.field.options.labelTooltip ? (l(), n(c, { key: 0 }, [
140
- s(g, {
138
+ e.field.options.labelIconPosition === "front" ? (l(), n(g, { key: 0 }, [
139
+ e.field.options.labelTooltip ? (l(), n(g, { key: 0 }, [
140
+ s(f, {
141
141
  title: e.field.options.labelTooltip,
142
142
  overlayStyle: { zIndex: 1e3 }
143
143
  }, {
@@ -148,7 +148,7 @@ function U(i, d, e, E, R, t) {
148
148
  ]),
149
149
  _: 1
150
150
  }, 8, ["title"]),
151
- s(g, {
151
+ s(f, {
152
152
  title: t.label,
153
153
  overlayStyle: { zIndex: 1e3 }
154
154
  }, {
@@ -157,11 +157,11 @@ function U(i, d, e, E, R, t) {
157
157
  ]),
158
158
  _: 1
159
159
  }, 8, ["title"])
160
- ], 64)) : (l(), n(c, { key: 1 }, [
160
+ ], 64)) : (l(), n(g, { key: 1 }, [
161
161
  s(o, {
162
162
  "icon-class": e.field.options.labelIconClass
163
163
  }, null, 8, ["icon-class"]),
164
- s(g, {
164
+ s(f, {
165
165
  title: t.label,
166
166
  overlayStyle: { zIndex: 1e3 }
167
167
  }, {
@@ -171,9 +171,9 @@ function U(i, d, e, E, R, t) {
171
171
  _: 1
172
172
  }, 8, ["title"])
173
173
  ], 64))
174
- ], 64)) : e.field.options.labelIconPosition === "rear" ? (l(), n(c, { key: 1 }, [
175
- e.field.options.labelTooltip ? (l(), n(c, { key: 0 }, [
176
- s(g, {
174
+ ], 64)) : e.field.options.labelIconPosition === "rear" ? (l(), n(g, { key: 1 }, [
175
+ e.field.options.labelTooltip ? (l(), n(g, { key: 0 }, [
176
+ s(f, {
177
177
  title: t.label,
178
178
  overlayStyle: { zIndex: 1e3 }
179
179
  }, {
@@ -182,7 +182,7 @@ function U(i, d, e, E, R, t) {
182
182
  ]),
183
183
  _: 1
184
184
  }, 8, ["title"]),
185
- s(g, {
185
+ s(f, {
186
186
  title: e.field.options.labelTooltip,
187
187
  overlayStyle: { zIndex: 1e3 }
188
188
  }, {
@@ -193,8 +193,8 @@ function U(i, d, e, E, R, t) {
193
193
  ]),
194
194
  _: 1
195
195
  }, 8, ["title"])
196
- ], 64)) : (l(), n(c, { key: 1 }, [
197
- s(g, {
196
+ ], 64)) : (l(), n(g, { key: 1 }, [
197
+ s(f, {
198
198
  title: t.label,
199
199
  overlayStyle: { zIndex: 1e3 }
200
200
  }, {
@@ -207,8 +207,8 @@ function U(i, d, e, E, R, t) {
207
207
  "icon-class": e.field.options.labelIconClass
208
208
  }, null, 8, ["icon-class"])
209
209
  ], 64))
210
- ], 64)) : f("", !0)
211
- ])) : (l(), v(g, {
210
+ ], 64)) : c("", !0)
211
+ ])) : (l(), v(f, {
212
212
  key: 1,
213
213
  title: t.label,
214
214
  overlayStyle: { zIndex: 1e3 }
@@ -224,54 +224,54 @@ function U(i, d, e, E, R, t) {
224
224
  I(i.$slots, "default", {}, void 0, !0)
225
225
  ]),
226
226
  _: 3
227
- }, 8, ["labelCol", "title", "size", "rules", "name", "labelAlign", "class"])) : f("", !0),
228
- this.designer ? (l(), n(c, { key: 1 }, [
227
+ }, 8, ["labelCol", "title", "size", "rules", "name", "labelAlign", "class"])) : c("", !0),
228
+ this.designer ? (l(), n(g, { key: 1 }, [
229
229
  e.designer.selectedId === e.field.id ? (l(), n("div", N, [
230
230
  a("i", {
231
231
  title: i.i18nt("designer.hint.selectParentWidget"),
232
232
  onClick: d[1] || (d[1] = u((h) => t.selectParentWidget(e.field), ["stop"]))
233
233
  }, [
234
- s(o, { "icon-class": "el-back" })
234
+ s(o, { "icon-class": "icon-el-back" })
235
235
  ], 8, A),
236
236
  e.parentList && e.parentList.length > 1 ? (l(), n("i", {
237
237
  key: 0,
238
238
  title: i.i18nt("designer.hint.moveUpWidget"),
239
239
  onClick: d[2] || (d[2] = u((h) => t.moveUpWidget(e.field), ["stop"]))
240
240
  }, [
241
- s(o, { "icon-class": "el-move-up" })
242
- ], 8, O)) : f("", !0),
241
+ s(o, { "icon-class": "icon-el-move-up" })
242
+ ], 8, O)) : c("", !0),
243
243
  e.parentList && e.parentList.length > 1 ? (l(), n("i", {
244
244
  key: 1,
245
245
  title: i.i18nt("designer.hint.moveDownWidget"),
246
246
  onClick: d[3] || (d[3] = u((h) => t.moveDownWidget(e.field), ["stop"]))
247
247
  }, [
248
- s(o, { "icon-class": "el-move-down" })
249
- ], 8, H)) : f("", !0),
248
+ s(o, { "icon-class": "icon-el-move-down" })
249
+ ], 8, H)) : c("", !0),
250
250
  a("i", {
251
251
  title: i.i18nt("designer.hint.remove"),
252
252
  onClick: d[4] || (d[4] = u((...h) => t.removeFieldWidget && t.removeFieldWidget(...h), ["stop"]))
253
253
  }, [
254
- s(o, { "icon-class": "el-delete" })
254
+ s(o, { "icon-class": "icon-el-delete" })
255
255
  ], 8, T)
256
- ])) : f("", !0),
256
+ ])) : c("", !0),
257
257
  e.designer.selectedId === e.field.id ? (l(), n("div", j, [
258
258
  a("i", {
259
259
  title: i.i18nt("designer.hint.dragHandler")
260
260
  }, [
261
- s(o, { "icon-class": "el-drag-move" })
261
+ s(o, { "icon-class": "icon-el-drag-move" })
262
262
  ], 8, D),
263
263
  a("i", null, m(i.i18n2t(
264
264
  `designer.widgetLabel.${e.field.type}`,
265
265
  `extension.widgetLabel.${e.field.type}`
266
266
  )), 1),
267
267
  e.field.options.hidden === !0 ? (l(), n("i", B, [
268
- s(o, { "icon-class": "el-hide" })
269
- ])) : f("", !0)
270
- ])) : f("", !0)
271
- ], 64)) : f("", !0)
268
+ s(o, { "icon-class": "icon-el-hide" })
269
+ ])) : c("", !0)
270
+ ])) : c("", !0)
271
+ ], 64)) : c("", !0)
272
272
  ], 2);
273
273
  }
274
- const K = /* @__PURE__ */ W(k, [["render", U], ["__scopeId", "data-v-4915fcf9"]]);
274
+ const K = /* @__PURE__ */ W(k, [["render", U], ["__scopeId", "data-v-c2f3bcb4"]]);
275
275
  export {
276
276
  K as default
277
277
  };
@@ -1,5 +1,5 @@
1
1
  import g from "./form-item-wrapper.vue.js";
2
- import w from "../../../svg-icon/index.vue.js";
2
+ import { SvgIcon as w } from "tmgc2-share";
3
3
  import b from "../../../../utils/emitter.js";
4
4
  import C from "../../../../utils/i18n.js";
5
5
  import y from "./fieldMixin.js";
@@ -109,7 +109,7 @@ function k(t, d, e, L, o, l) {
109
109
  name: "addonAfter",
110
110
  fn: i(() => [
111
111
  u(f, {
112
- "icon-class": "sousuo",
112
+ "icon-class": "icon-sousuo",
113
113
  onClick: t.handleClickIcon
114
114
  }, null, 8, ["onClick"])
115
115
  ]),
@@ -133,7 +133,7 @@ function k(t, d, e, L, o, l) {
133
133
  _: 1
134
134
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]));
135
135
  }
136
- const D = /* @__PURE__ */ M(z, [["render", k], ["__scopeId", "data-v-8bc02c92"]]);
136
+ const D = /* @__PURE__ */ M(z, [["render", k], ["__scopeId", "data-v-f16608cb"]]);
137
137
  export {
138
138
  D as default
139
139
  };
@@ -2,9 +2,9 @@ import C from "./form-item-wrapper.vue.js";
2
2
  import v from "../../../../utils/emitter.js";
3
3
  import F from "../../../../utils/i18n.js";
4
4
  import I from "./fieldMixin.js";
5
- import M from "../../../svg-icon/index.vue.js";
5
+ import { SvgIcon as M } from "tmgc2-share";
6
6
  import y from "../../../../mixins/useSelectMixin.js";
7
- import { resolveComponent as o, createBlock as r, createCommentVNode as d, openBlock as s, withCtx as a, withDirectives as m, createElementVNode as f, normalizeClass as O, createElementBlock as L, createVNode as u, mergeProps as x, vShow as c, toDisplayString as z } from "vue";
7
+ import { resolveComponent as o, createBlock as r, createCommentVNode as d, openBlock as s, withCtx as a, withDirectives as m, createElementVNode as u, normalizeClass as O, createElementBlock as L, createVNode as f, mergeProps as x, vShow as c, toDisplayString as z } from "vue";
8
8
  /* empty css */
9
9
  import R from "../../../../../_virtual/_plugin-vue_export-helper.js";
10
10
  const S = {
@@ -117,10 +117,10 @@ function E(e, i, t, _, n, p) {
117
117
  "sub-form-row-id": t.subFormRowId
118
118
  }, {
119
119
  default: a(() => [
120
- m(f("div", {
120
+ m(u("div", {
121
121
  class: O(["design-select-box", { useModal: t.field.options.useModal }])
122
122
  }, [
123
- m(u(h, x({
123
+ m(f(h, x({
124
124
  ref: "fieldEditor",
125
125
  value: n.fieldModel,
126
126
  "onUpdate:value": i[0] || (i[0] = (l) => n.fieldModel = l),
@@ -145,7 +145,7 @@ function E(e, i, t, _, n, p) {
145
145
  class: "useModal-svg",
146
146
  onClick: i[1] || (i[1] = (...l) => e.handleClickIcon && e.handleClickIcon(...l))
147
147
  }, [
148
- u(g, { "icon-class": "sousuo" })
148
+ f(g, { "icon-class": "icon-sousuo" })
149
149
  ])) : d("", !0)
150
150
  ], 2), [
151
151
  [c, !e.isReadMode]
@@ -157,7 +157,7 @@ function E(e, i, t, _, n, p) {
157
157
  overlayStyle: { zIndex: 1e3 }
158
158
  }, {
159
159
  default: a(() => [
160
- f("span", k, z(e.optionLabel), 1)
160
+ u("span", k, z(e.optionLabel), 1)
161
161
  ]),
162
162
  _: 1
163
163
  }, 8, ["title"])) : d("", !0)
@@ -165,7 +165,7 @@ function E(e, i, t, _, n, p) {
165
165
  _: 1
166
166
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]));
167
167
  }
168
- const H = /* @__PURE__ */ R(S, [["render", E], ["__scopeId", "data-v-9fdc9138"]]);
168
+ const H = /* @__PURE__ */ R(S, [["render", E], ["__scopeId", "data-v-9114078e"]]);
169
169
  export {
170
170
  H as default
171
171
  };