@kp-ui/lowcode 2.14.0-beta → 2.14.0-beta.2

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 (61) hide show
  1. package/install.js +26 -25
  2. package/package.json +2 -2
  3. package/src/components/form-designer/form-widget/field-widget/diy-compontent-widget.vue.js +1 -1
  4. package/src/components/form-designer/index.vue.js +55 -54
  5. package/src/components/form-designer/setting-panel/form-crud-setting.vue.js +62 -23
  6. package/src/components/form-designer/setting-panel/index.vue.js +4 -386
  7. package/src/components/form-designer/setting-panel/index.vue2.js +273 -0
  8. package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue2.js +5 -4
  9. package/src/components/form-designer/setting-panel/property-editor/container-data-table/customRowEvent/data-table-customRow-editor.vue.js +1 -0
  10. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-dsEnabled-editor.vue.js +5 -4
  11. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-pagination-editor.vue.js +1 -0
  12. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-selections-editor.vue2.js +24 -24
  13. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue.js +9 -8
  14. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +1 -1
  15. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +7 -6
  16. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/bodyStyle-editor.vue2.js +7 -6
  17. package/src/components/form-designer/setting-panel/property-editor/customRender-editor.vue.js +2 -40
  18. package/src/components/form-designer/setting-panel/property-editor/customRender-editor.vue2.js +41 -0
  19. package/src/components/form-designer/setting-panel/property-editor/event-handler/onClickIcon-editor.vue.js +2 -47
  20. package/src/components/form-designer/setting-panel/property-editor/event-handler/onClickIcon-editor.vue2.js +44 -0
  21. package/src/components/form-designer/setting-panel/property-editor/event-handler/onCreated-editor.vue.js +2 -47
  22. package/src/components/form-designer/setting-panel/property-editor/event-handler/onCreated-editor.vue2.js +43 -0
  23. package/src/components/form-designer/setting-panel/property-editor/event-handler/onOkButtonClick-editor.vue.js +2 -46
  24. package/src/components/form-designer/setting-panel/property-editor/event-handler/onOkButtonClick-editor.vue2.js +43 -0
  25. package/src/components/form-designer/setting-panel/property-editor/event-handler/onValidate-editor.vue.js +2 -47
  26. package/src/components/form-designer/setting-panel/property-editor/event-handler/onValidate-editor.vue2.js +44 -0
  27. package/src/components/form-designer/setting-panel/property-editor/field-dropdown/dropdown-menuList-editor.vue.js +2 -66
  28. package/src/components/form-designer/setting-panel/property-editor/field-dropdown/dropdown-menuList-editor.vue2.js +42 -0
  29. package/src/components/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue.js +5 -4
  30. package/src/components/form-designer/setting-panel/property-editor/hidden-editor.vue.js +6 -5
  31. package/src/components/form-designer/setting-panel/property-editor/index.js +146 -152
  32. package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue.js +8 -7
  33. package/src/components/form-designer/setting-panel/property-editor/optionItems-editor.vue.js +38 -35
  34. package/src/components/form-designer/setting-panel/propertyRegister.js +0 -12
  35. package/src/components/form-render/container-item/data-table-item.vue.js +149 -0
  36. package/src/components/form-render/container-item/grid-col-item.vue.js +149 -0
  37. package/src/components/form-render/container-item/grid-item.vue.js +92 -0
  38. package/src/components/form-render/container-item/grid-sub-form-item.vue.js +319 -0
  39. package/src/components/form-render/container-item/index.js +24 -0
  40. package/src/components/form-render/container-item/sub-form-item.vue.js +429 -0
  41. package/src/components/form-render/container-item/tab-item.vue.js +160 -0
  42. package/src/components/form-render/container-item/table-cell-item.vue.js +95 -0
  43. package/src/components/form-render/container-item/table-item.vue.js +96 -0
  44. package/src/components/form-render/container-item/vf-collapse-item.vue.js +252 -0
  45. package/src/components/form-render/container-item/vf-dialog-item.vue.js +12 -0
  46. package/src/components/form-render/container-item/vf-drawer-item.vue.js +12 -0
  47. package/src/components/form-render/index.vue.js +12 -14
  48. package/src/components/http-editor/index.vue.js +10 -10
  49. package/src/components/public/ActionButtonListRender.vue.js +19 -24
  50. package/src/lang/en-US.js +1 -3
  51. package/src/lang/zh-CN.js +0 -3
  52. package/src/utils/useEmitter.js +57 -0
  53. package/src/utils/util.js +50 -49
  54. package/stats.html +1 -1
  55. package/styles/style.css +1 -1
  56. package/src/components/form-designer/setting-panel/property-editor/displayStyle-editor.vue.js +0 -46
  57. package/src/components/form-designer/setting-panel/property-editor/event-handler/onVformAdd-editor.vue.js +0 -49
  58. package/src/components/form-designer/setting-panel/property-editor/multipleSelect-editor.vue.js +0 -30
  59. package/src/components/form-designer/setting-panel/property-editor/uploadTip-editor.vue.js +0 -31
  60. package/src/components/form-designer/setting-panel/property-editor/uploadURL-editor.vue.js +0 -44
  61. package/src/components/form-designer/setting-panel/property-editor/withCredentials-editor.vue.js +0 -30
@@ -1,48 +1,4 @@
1
- import s from "../../../../../utils/i18n.js";
2
- import d from "./eventMixin.js";
3
- import { resolveComponent as n, createBlock as c, openBlock as m, withCtx as o, createVNode as p, normalizeClass as u, createTextVNode as f, toDisplayString as _ } from "vue";
4
- import k from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const v = {
6
- name: "onOkButtonClick-editor",
7
- mixins: [s, d],
8
- props: {
9
- designer: Object,
10
- selectedWidget: Object,
11
- optionModel: Object,
12
- eventHandled: {
13
- type: Boolean,
14
- default: !1
15
- }
16
- },
17
- data() {
18
- return {
19
- eventParams: []
20
- };
21
- }
22
- };
23
- function b(e, t, i, C, r, g) {
24
- const a = n("a-button"), l = n("a-form-item");
25
- return m(), c(l, {
26
- label: "onOkButtonClick",
27
- "label-width": "150px"
28
- }, {
29
- default: o(() => [
30
- p(a, {
31
- plain: "",
32
- shape: "round",
33
- class: u([i.eventHandled ? "button-text-highlight" : ""]),
34
- onClick: t[0] || (t[0] = (x) => e.editEventHandler("onOkButtonClick", r.eventParams))
35
- }, {
36
- default: o(() => [
37
- f(_(e.i18nt("designer.setting.addEventHandler")), 1)
38
- ]),
39
- _: 1
40
- }, 8, ["class"])
41
- ]),
42
- _: 1
43
- });
44
- }
45
- const j = /* @__PURE__ */ k(v, [["render", b]]);
1
+ import f from "./onOkButtonClick-editor.vue2.js";
46
2
  export {
47
- j as default
3
+ f as default
48
4
  };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as c, resolveComponent as o, createBlock as m, openBlock as p, withCtx as n, createVNode as u, unref as e, normalizeClass as d, createTextVNode as k, toDisplayString as _ } from "vue";
2
+ import { useI18n as f } from "../../../../../utils/i18n.js";
3
+ import { useEmitter as C } from "../../../../../utils/useEmitter.js";
4
+ const v = /* @__PURE__ */ c({
5
+ name: "onOkButtonClick-editor",
6
+ __name: "onOkButtonClick-editor",
7
+ props: {
8
+ optionModel: { default: {
9
+ onOkButtonClick: ""
10
+ } }
11
+ },
12
+ setup(B) {
13
+ const { i18nt: i } = f(), { onChangeEditEventHandler: r } = C();
14
+ return (a, t) => {
15
+ const l = o("a-button"), s = o("a-form-item");
16
+ return p(), m(s, {
17
+ label: "onOkButtonClick",
18
+ "label-width": "150px"
19
+ }, {
20
+ default: n(() => [
21
+ u(l, {
22
+ plain: "",
23
+ shape: "round",
24
+ class: d([a.optionModel.onOkButtonClick ? "button-text-highlight" : ""]),
25
+ onClick: t[0] || (t[0] = (g) => e(r)({
26
+ attr: "onOkButtonClick",
27
+ eventParams: []
28
+ }))
29
+ }, {
30
+ default: n(() => [
31
+ k(_(e(i)("designer.setting.addEventHandler")), 1)
32
+ ]),
33
+ _: 1
34
+ }, 8, ["class"])
35
+ ]),
36
+ _: 1
37
+ });
38
+ };
39
+ }
40
+ });
41
+ export {
42
+ v as default
43
+ };
@@ -1,49 +1,4 @@
1
- import d from "../../../../../utils/i18n.js";
2
- import s from "./eventMixin.js";
3
- import { resolveComponent as n, createBlock as m, openBlock as p, withCtx as o, createVNode as c, normalizeClass as f, createTextVNode as u, toDisplayString as _ } from "vue";
4
- import v from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const b = {
6
- name: "onValidate-editor",
7
- mixins: [d, s],
8
- props: {
9
- designer: Object,
10
- selectedWidget: Object,
11
- optionModel: Object,
12
- eventHandled: {
13
- type: Boolean,
14
- default: !1
15
- }
16
- },
17
- data() {
18
- return {
19
- eventParams: ["rule", "value"]
20
- };
21
- }
22
- };
23
- function g(e, t, a, x, i, V) {
24
- const l = n("a-button"), r = n("a-form-item");
25
- return p(), m(r, {
26
- label: "onValidate",
27
- labelAlign: "left",
28
- "label-width": "150px"
29
- }, {
30
- default: o(() => [
31
- c(l, {
32
- plain: "",
33
- shape: "round",
34
- class: f([a.eventHandled ? "button-text-highlight" : ""]),
35
- onClick: t[0] || (t[0] = (h) => e.editEventHandler("onValidate", i.eventParams))
36
- }, {
37
- default: o(() => [
38
- u(_(e.i18nt("designer.setting.addEventHandler")), 1)
39
- ]),
40
- _: 1
41
- }, 8, ["class"])
42
- ]),
43
- _: 1
44
- });
45
- }
46
- const B = /* @__PURE__ */ v(b, [["render", g]]);
1
+ import f from "./onValidate-editor.vue2.js";
47
2
  export {
48
- B as default
3
+ f as default
49
4
  };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as s, resolveComponent as t, createBlock as m, openBlock as p, withCtx as o, createVNode as u, unref as n, normalizeClass as c, createTextVNode as _, toDisplayString as f } from "vue";
2
+ import { useI18n as V } from "../../../../../utils/i18n.js";
3
+ import { useEmitter as g } from "../../../../../utils/useEmitter.js";
4
+ const E = /* @__PURE__ */ s({
5
+ name: "onValidate-editor",
6
+ __name: "onValidate-editor",
7
+ props: {
8
+ optionModel: { default: {
9
+ onValidate: ""
10
+ } }
11
+ },
12
+ setup(b) {
13
+ const { i18nt: a } = V(), { onChangeEditEventHandler: l } = g();
14
+ return (i, e) => {
15
+ const r = t("a-button"), d = t("a-form-item");
16
+ return p(), m(d, {
17
+ label: "onValidate",
18
+ labelAlign: "left",
19
+ "label-width": "150px"
20
+ }, {
21
+ default: o(() => [
22
+ u(r, {
23
+ plain: "",
24
+ shape: "round",
25
+ class: c([i.optionModel.onValidate ? "button-text-highlight" : ""]),
26
+ onClick: e[0] || (e[0] = (h) => n(l)({
27
+ attr: "onValidate",
28
+ eventParams: ["rule", "value"]
29
+ }))
30
+ }, {
31
+ default: o(() => [
32
+ _(f(n(a)("designer.setting.addEventHandler")), 1)
33
+ ]),
34
+ _: 1
35
+ }, 8, ["class"])
36
+ ]),
37
+ _: 1
38
+ });
39
+ };
40
+ }
41
+ });
42
+ export {
43
+ E as default
44
+ };
@@ -1,68 +1,4 @@
1
- import m from "../../../../../utils/i18n.js";
2
- import c from "../../../../code-editor/code-modal-editor.vue.js";
3
- import { resolveComponent as e, createElementBlock as u, openBlock as f, Fragment as b, createVNode as o, withCtx as s, createTextVNode as _, toDisplayString as g } from "vue";
4
- import D from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const h = {
6
- name: "menuList-editor",
7
- mixins: [m],
8
- components: { CodeModalEditor: c },
9
- props: {
10
- designer: Object,
11
- selectedWidget: Object,
12
- optionModel: Object
13
- },
14
- data() {
15
- return {
16
- tableDataOptions: ""
17
- };
18
- },
19
- methods: {
20
- saveTableData() {
21
- try {
22
- this.optionModel.menuList = JSON.parse(this.tableDataOptions);
23
- } catch (t) {
24
- this.$message.error(
25
- this.i18nt("designer.hint.invalidOptionsData") + t.message
26
- );
27
- }
28
- },
29
- openTableDataEdit() {
30
- this.tableDataOptions = JSON.stringify(this.optionModel.menuList, null, " "), this.$refs.CodeModalEditorRef.open(this.tableDataOptions);
31
- }
32
- }
33
- };
34
- function O(t, n, E, C, a, i) {
35
- const r = e("a-button"), l = e("a-form-item"), d = e("CodeModalEditor");
36
- return f(), u(b, null, [
37
- o(l, {
38
- label: t.i18nt("designer.setting.menuList")
39
- }, {
40
- default: s(() => [
41
- o(r, {
42
- type: "primary",
43
- shape: "round",
44
- onClick: i.openTableDataEdit
45
- }, {
46
- default: s(() => [
47
- _(g(t.i18nt("designer.setting.editAction")), 1)
48
- ]),
49
- _: 1
50
- }, 8, ["onClick"])
51
- ]),
52
- _: 1
53
- }, 8, ["label"]),
54
- o(d, {
55
- ref: "CodeModalEditorRef",
56
- mode: "json",
57
- readonly: !1,
58
- modelValue: a.tableDataOptions,
59
- "onUpdate:modelValue": n[0] || (n[0] = (p) => a.tableDataOptions = p),
60
- title: t.i18nt("designer.setting.tableDataEdit"),
61
- onSave: i.saveTableData
62
- }, null, 8, ["modelValue", "title", "onSave"])
63
- ], 64);
64
- }
65
- const S = /* @__PURE__ */ D(h, [["render", O]]);
1
+ import f from "./dropdown-menuList-editor.vue2.js";
66
2
  export {
67
- S as default
3
+ f as default
68
4
  };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as a, resolveComponent as o, createBlock as d, openBlock as p, unref as e, withCtx as r, createVNode as u, createTextVNode as l, toDisplayString as _ } from "vue";
2
+ import { useI18n as c } from "../../../../../utils/i18n.js";
3
+ import { useEmitter as f } from "../../../../../utils/useEmitter.js";
4
+ const v = /* @__PURE__ */ a({
5
+ name: "menuList-editor",
6
+ __name: "dropdown-menuList-editor",
7
+ props: {
8
+ optionModel: { default: {
9
+ onCreated: ""
10
+ } }
11
+ },
12
+ setup(g) {
13
+ const { i18nt: t } = c(), { onChangeEditEventHandler: i } = f();
14
+ return (C, n) => {
15
+ const s = o("a-button"), m = o("a-form-item");
16
+ return p(), d(m, {
17
+ label: e(t)("designer.setting.menuList")
18
+ }, {
19
+ default: r(() => [
20
+ u(s, {
21
+ type: "primary",
22
+ shape: "round",
23
+ onClick: n[0] || (n[0] = (L) => e(i)({
24
+ title: e(t)("designer.setting.menuList"),
25
+ attr: "menuList",
26
+ mode: "json"
27
+ }))
28
+ }, {
29
+ default: r(() => [
30
+ l(_(e(t)("designer.setting.editAction")), 1)
31
+ ]),
32
+ _: 1
33
+ })
34
+ ]),
35
+ _: 1
36
+ }, 8, ["label"]);
37
+ };
38
+ }
39
+ });
40
+ export {
41
+ v as default
42
+ };
@@ -1,8 +1,9 @@
1
1
  import m from "../../../../../utils/i18n.js";
2
- import { resolveComponent as l, createElementBlock as d, openBlock as s, Fragment as c, createVNode as t, withCtx as p } from "vue";
2
+ import { resolveComponent as l, createElementBlock as s, openBlock as d, Fragment as c, createVNode as t, withCtx as p } from "vue";
3
3
  /* empty css */
4
4
  import _ from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const f = {
6
+ inheritAttrs: !1,
6
7
  name: "htmlContent-editor",
7
8
  mixins: [m],
8
9
  props: {
@@ -11,9 +12,9 @@ const f = {
11
12
  optionModel: Object
12
13
  }
13
14
  };
14
- function u(r, e, o, b, h, C) {
15
+ function u(r, e, o, h, b, C) {
15
16
  const n = l("a-form-item"), a = l("a-textarea");
16
- return s(), d(c, null, [
17
+ return d(), s(c, null, [
17
18
  t(n, {
18
19
  label: r.i18nt("designer.setting.htmlContent")
19
20
  }, null, 8, ["label"]),
@@ -30,7 +31,7 @@ function u(r, e, o, b, h, C) {
30
31
  })
31
32
  ], 64);
32
33
  }
33
- const w = /* @__PURE__ */ _(f, [["render", u], ["__scopeId", "data-v-be634f5e"]]);
34
+ const w = /* @__PURE__ */ _(f, [["render", u], ["__scopeId", "data-v-4319ebf0"]]);
34
35
  export {
35
36
  w as default
36
37
  };
@@ -1,9 +1,10 @@
1
1
  import p from "../../../../utils/i18n.js";
2
2
  import h from "./event-handler/eventMixin.js";
3
- import { resolveComponent as l, createElementBlock as f, openBlock as s, Fragment as _, createVNode as n, createBlock as g, createCommentVNode as k, withCtx as o, normalizeClass as b, createTextVNode as M, toDisplayString as v } from "vue";
3
+ import { resolveComponent as l, createElementBlock as f, openBlock as c, Fragment as _, createVNode as n, createBlock as g, createCommentVNode as k, withCtx as o, normalizeClass as b, createTextVNode as M, toDisplayString as v } from "vue";
4
4
  import H from "../../../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const C = {
6
6
  name: "hidden-editor",
7
+ inheritAttrs: !1,
7
8
  mixins: [p, h],
8
9
  props: {
9
10
  designer: Object,
@@ -17,9 +18,9 @@ const C = {
17
18
  }
18
19
  };
19
20
  function x(d, e, t, j, m, w) {
20
- const a = l("a-switch"), u = l("a-button"), r = l("a-space"), c = l("a-form-item");
21
- return s(), f(_, null, [
22
- n(c, {
21
+ const a = l("a-switch"), u = l("a-button"), r = l("a-space"), s = l("a-form-item");
22
+ return c(), f(_, null, [
23
+ n(s, {
23
24
  label: d.i18nt("designer.setting.hidden")
24
25
  }, {
25
26
  default: o(() => [
@@ -45,7 +46,7 @@ function x(d, e, t, j, m, w) {
45
46
  ]),
46
47
  _: 1
47
48
  }, 8, ["label"]),
48
- t.optionModel.hidden ? (s(), g(c, {
49
+ t.optionModel.hidden ? (c(), g(s, {
49
50
  key: 0,
50
51
  label: d.i18nt("designer.setting.holdHidden")
51
52
  }, {