hlrender 0.0.1

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 (118) hide show
  1. package/_commonjsHelpers-e7ea1525.js +36 -0
  2. package/_plugin-vue_export-helper-dad06003.js +9 -0
  3. package/affix-widget-b6cdaf6f.js +35 -0
  4. package/anchor-link-widget-919ac0ee.js +5 -0
  5. package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +35 -0
  6. package/anchor-widget-403fe70f.js +54 -0
  7. package/auto-complete-widget-597d8400.js +71 -0
  8. package/avatar-widget-c56add2d.js +35 -0
  9. package/backtop-widget-65d711e3.js +35 -0
  10. package/badge-widget-f6a08422.js +41 -0
  11. package/baseImp-70f1a9c5.js +11003 -0
  12. package/breadcrumb-widget-3791fbcf.js +76 -0
  13. package/button-widget-b539a793.js +45 -0
  14. package/cache-widget-89624589.js +50 -0
  15. package/card-widget-2890042f.js +109 -0
  16. package/carousel-widget-730618e4.js +72 -0
  17. package/cascader-widget-a364f226.js +94 -0
  18. package/chart-widget-d0b5993c.js +44282 -0
  19. package/checkbox-widget-5f87a8e5.js +76 -0
  20. package/collapse-widget-a654ac45.js +86 -0
  21. package/color-picker-widget-b5b274dd.js +53 -0
  22. package/cont-cell-widget-475412c6.js +8 -0
  23. package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-9aac0112.js +59 -0
  24. package/cont-widget-defa7dd6.js +42 -0
  25. package/content-wrapper-7ba06bbc.js +14 -0
  26. package/content-wrapper.vue_vue_type_script_setup_true_lang-56dfcc0b.js +37 -0
  27. package/date-picker-range-widget-e528dab6.js +69 -0
  28. package/date-picker-widget-a5d3e5ff.js +75 -0
  29. package/default-slot-widget-09d11567.js +22 -0
  30. package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-af9e9fc7.js +59 -0
  31. package/descriptions-widget-9711a62b.js +80 -0
  32. package/dialog-333d3421.js +124 -0
  33. package/dialog-widget-94d8ab5a.js +30 -0
  34. package/divider-widget-b835bbc3.js +35 -0
  35. package/drag-wrapper-227f198f.js +258 -0
  36. package/drawer-widget-3906d028.js +30 -0
  37. package/dropdown-widget-74696f3c.js +89 -0
  38. package/empty-widget-ba5e0039.js +61 -0
  39. package/enum-type-92806e9d.js +207 -0
  40. package/enum-type-be3a0b8b.js +2048 -0
  41. package/expression-63a787db.js +2181 -0
  42. package/feedback-widget-3140f73d.js +23 -0
  43. package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f8da09d0.js +82 -0
  44. package/field-base-5547436d.js +7 -0
  45. package/file-upload-widget-dcc0425c.js +95 -0
  46. package/form-item-wrapper-849d8a21.js +111 -0
  47. package/form-widget-1dcffd59.js +183 -0
  48. package/grid-col-widget-e6b1455d.js +8 -0
  49. package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ed554759.js +41 -0
  50. package/grid-widget-d7974890.js +43 -0
  51. package/html-text-widget-e13171fa.js +47 -0
  52. package/icon-e9532b43.js +119 -0
  53. package/iframe-widget-dee326a7.js +74 -0
  54. package/image-widget-d417c681.js +61 -0
  55. package/index-28e4bcfb.js +99 -0
  56. package/index-2d29f8d3.js +7233 -0
  57. package/index-ddd23411.js +4884 -0
  58. package/index-f54403db.js +65 -0
  59. package/index-fa19f5d9.js +10568 -0
  60. package/input-number-widget-548743d9.js +63 -0
  61. package/input-widget-81153a08.js +68 -0
  62. package/label-wrapper-13267254.js +12 -0
  63. package/label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js +80 -0
  64. package/link-widget-e2aeac9f.js +53 -0
  65. package/ltable-col-widget-ecfe9f02.js +8 -0
  66. package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-6c231f2e.js +256 -0
  67. package/ltable-widget-d5d81ac2.js +69 -0
  68. package/menu-widget-101389ec.js +93 -0
  69. package/model-widget-84277d11.js +119 -0
  70. package/multirow-3ade8c6e.js +341 -0
  71. package/multirow-widget copy-efbb1e00.js +855 -0
  72. package/multirow-widget-a73fd2b8.js +691 -0
  73. package/package.json +13 -0
  74. package/pagination-widget-12edf5f4.js +78 -0
  75. package/picture-upload-widget-bcef9cc8.js +99 -0
  76. package/progress-widget-f515a118.js +49 -0
  77. package/propresult-e424ed73.js +22 -0
  78. package/radio-widget-78f9cab9.js +76 -0
  79. package/range-widget-904ed0d6.js +71 -0
  80. package/rate-widget-efdab26c.js +53 -0
  81. package/render.es.js +4434 -0
  82. package/render.style.css +11 -0
  83. package/render.umd.js +160496 -0
  84. package/result-widget-b1688641.js +64 -0
  85. package/rich-editor-widget-f1bb90c7.js +74 -0
  86. package/router-widget-920b11e4.js +51 -0
  87. package/select-widget-f3a43687.js +285 -0
  88. package/sfc-b5fb0bca.js +2568 -0
  89. package/share-field-9834aef6.js +688 -0
  90. package/share-file-329736c4.js +121 -0
  91. package/slider-widget-5146c0c3.js +59 -0
  92. package/slot-c6523e8c.js +17 -0
  93. package/static-text-widget-307cd047.js +48 -0
  94. package/steps-widget-70c08c51.js +88 -0
  95. package/subMenu-widget-c1a614ad.js +16 -0
  96. package/subMenu-widget.vue_vue_type_script_setup_true_lang-1896e25e.js +69 -0
  97. package/switch-widget-a103faaa.js +53 -0
  98. package/tab-pane-widget-e7c83114.js +8 -0
  99. package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-12fa9f12.js +35 -0
  100. package/table-col-widget-f177b82e.js +20 -0
  101. package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5a1b4f92.js +80 -0
  102. package/table-widget-500902fd.js +160 -0
  103. package/tabs-widget-5e612fc0.js +68 -0
  104. package/tag-widget-8b945443.js +35 -0
  105. package/template-9ade074e.js +251730 -0
  106. package/text-widget-0d93ae9a.js +35 -0
  107. package/textarea-widget-d2464e70.js +53 -0
  108. package/time-picker-range-widget-7d92f5f0.js +55 -0
  109. package/time-picker-widget-3e0cc2c5.js +54 -0
  110. package/time-select-widget-b0b17501.js +54 -0
  111. package/tmpl-widget-b2402ddc.js +89 -0
  112. package/tree-select-widget-13f054e9.js +91 -0
  113. package/tree-widget-8bee698c.js +87 -0
  114. package/uuid-b302db3f.js +192 -0
  115. package/vue3-sfc-loader-b70bdce4.js +34688 -0
  116. package/widget-base-4c2d6265.js +27 -0
  117. package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js +277 -0
  118. package/wrapper-widget-4d87e124.js +78 -0
@@ -0,0 +1,121 @@
1
+ import { ref as x, computed as g } from "vue";
2
+ import { d as O, a as f, k as m } from "./enum-type-be3a0b8b.js";
3
+ import { u as re } from "./icon-e9532b43.js";
4
+ import { b as ne } from "./share-field-9834aef6.js";
5
+ import { e as s } from "./template-9ade074e.js";
6
+ import { k as oe } from "./uuid-b302db3f.js";
7
+ import { G as ae, x as v } from "./baseImp-70f1a9c5.js";
8
+ function me(S) {
9
+ const k = x({});
10
+ let o = [];
11
+ const B = (e) => {
12
+ e && (o = oe(e, !0));
13
+ }, D = () => {
14
+ E.value.clearFiles(), o.splice(0, o.length);
15
+ }, { fieldEditor: E, fieldKey: I, fieldModel: a, field: P, attrs: U, extendAttrs: i, events: T, exposed: V, isError: A, errorMsg: G, syncUpdateFormModel: C, emitFieldDataChange: M, existEvent: b, handleEvent: d, getWidgetOption: $, rules: j, fieldObj: H } = ne({ ...S, extInitFieldModel: B, exResetField: D }), { instance: K } = re(), N = ae({ instance: K }), F = x({ key: "" }), W = g(() => {
16
+ var e;
17
+ return o.length >= ((e = i.value) == null ? void 0 : e.limit);
18
+ }), q = g(() => {
19
+ var e;
20
+ return (e = i.value) == null ? void 0 : e.uploadTip;
21
+ }), J = (e, r) => {
22
+ var l;
23
+ let n = (l = i.value) == null ? void 0 : l.limit;
24
+ v.warning(f.i18nt("render.hint.uploadExceed").replace("${uploadLimit}", n));
25
+ }, Q = (e) => {
26
+ var z, L;
27
+ let r = !1, n = e.name.substring(e.name.lastIndexOf(".") + 1), l = (z = i.value) == null ? void 0 : z.fileTypes;
28
+ if (l && (l == null ? void 0 : l.length) > 0 && (r = l.some((h) => n.toLowerCase() === h.toLowerCase())), !r)
29
+ return v.error(f.i18nt("render.hint.unsupportedFileType") + n), !1;
30
+ let u = !1, t = 5, p = (L = i == null ? void 0 : i.value) == null ? void 0 : L.fileMaxSize;
31
+ if (p && (t = p), u = (e.size || 0) / 1024 / 1024 <= t, !u)
32
+ return v.error(f.i18nt("render.hint.fileSizeExceed") + t + "MB"), !1;
33
+ F.value.key = e.name;
34
+ const c = $("dataFn");
35
+ if (c) {
36
+ const h = c == null ? void 0 : c(N);
37
+ O(F.value, h);
38
+ }
39
+ return R(e);
40
+ }, R = (e) => {
41
+ if (b(s.onBeforeUpload)) {
42
+ let r = d(s.onBeforeUpload, { file: e });
43
+ return typeof r == "boolean" ? r : !0;
44
+ }
45
+ return !0;
46
+ }, X = (e, r, n) => {
47
+ if (r.status !== "success")
48
+ return;
49
+ let l = d(s.onUploadSuccess, { result: e, file: r, fileList: n });
50
+ _(n, l, e), l && l.name && (r.name = l.name), l && l.url && (r.url = l.url), o = m(n);
51
+ }, Y = (e, r, n) => {
52
+ b(s.onUploadError) ? d(s.onUploadError, { error: e, file: r, fileList: n }) : v.error(f.i18nt("render.hint.uploadError") + e);
53
+ }, Z = (e, r, n) => {
54
+ let l = -1, u = null;
55
+ o.forEach((t, p) => {
56
+ t.name === e && (t.url === r || n && t.uid === n) && (l = p, u = t);
57
+ }), l >= 0 && (o.splice(l, 1), ee(l), d(s.onFileRemove, { file: u, fileList: o.values }));
58
+ }, _ = (e, r, n) => {
59
+ let l = m(a.value);
60
+ r && r.name && r.url ? a.value.push({
61
+ name: r.name,
62
+ url: r.url
63
+ }) : n && n.name && n.url ? a.value.push({
64
+ name: n.name,
65
+ url: n.url
66
+ }) : a.value = m(e), C(a.value), M(a.value, l);
67
+ }, ee = (e, r) => {
68
+ let n = m(a.value);
69
+ a.value.splice(e, 1), C(a.value), M(a.value, n);
70
+ }, w = x(1), y = g(() => o == null ? void 0 : o.map((e) => e.url)), le = (e) => {
71
+ w.value = y.value.indexOf(e);
72
+ };
73
+ return O(U.value, {
74
+ onRemove: null,
75
+ onProgress: null,
76
+ onChange: null,
77
+ beforeRemove: null,
78
+ onPreview: le,
79
+ onSuccess: X,
80
+ onError: Y,
81
+ onExceed: J,
82
+ beforeUpload: Q
83
+ }), {
84
+ rules: j,
85
+ field: P,
86
+ fieldKey: I,
87
+ fieldModel: a,
88
+ attrs: U,
89
+ events: T,
90
+ fieldObj: H,
91
+ fileList: o,
92
+ fieldEditor: E,
93
+ headers: k,
94
+ uploadBtnHidden: W,
95
+ uploadData: F,
96
+ uploadTip: q,
97
+ previewIndex: w,
98
+ previewList: y,
99
+ isError: A,
100
+ errorMsg: G,
101
+ exposed: {
102
+ ...V
103
+ // initFileList
104
+ },
105
+ // getFieldOptions,
106
+ // handleEvent,
107
+ // handleFileExceed,
108
+ // beforeFileUpload,
109
+ // handleOnBeforeUpload,
110
+ // updateFieldModelAndEmitDataChangeForUpload,
111
+ // handleFileUpload,
112
+ // updateFieldModelAndEmitDataChangeForRemove,
113
+ removeUploadFile: Z
114
+ // handleUploadError,
115
+ // syncUpdateFormModel,
116
+ // emitFieldDataChange
117
+ };
118
+ }
119
+ export {
120
+ me as u
121
+ };
@@ -0,0 +1,59 @@
1
+ import { defineComponent as d, computed as C, resolveComponent as E, openBlock as l, createBlock as m, mergeProps as n, unref as e, withCtx as F, isRef as b, toHandlers as z, createTextVNode as I, toDisplayString as M } from "vue";
2
+ import { b as B } from "./share-field-9834aef6.js";
3
+ import { I as N } from "./field-base-5547436d.js";
4
+ import P from "./form-item-wrapper-849d8a21.js";
5
+ import { w as S } from "./template-9ade074e.js";
6
+ import { k as a } from "./uuid-b302db3f.js";
7
+ import "./enum-type-be3a0b8b.js";
8
+ import "./multirow-3ade8c6e.js";
9
+ import "./baseImp-70f1a9c5.js";
10
+ import "./enum-type-92806e9d.js";
11
+ import "./icon-e9532b43.js";
12
+ import "./dialog-333d3421.js";
13
+ import "element-plus";
14
+ import "./_commonjsHelpers-e7ea1525.js";
15
+ import "./index-fa19f5d9.js";
16
+ import "./slot-c6523e8c.js";
17
+ import "./widget-base-4c2d6265.js";
18
+ import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
19
+ import "./index-f54403db.js";
20
+ import "./_plugin-vue_export-helper-dad06003.js";
21
+ import "./label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js";
22
+ const W = d({ componentName: S.FieldWidget }), ie = /* @__PURE__ */ d({
23
+ ...W,
24
+ __name: "slider-widget",
25
+ props: { ...N },
26
+ setup(u, { expose: f }) {
27
+ const c = u, { fieldEditor: _, fieldModel: r, fieldKey: g, rules: v, attrs: o, events: y, exposed: O, fieldObj: k, isError: V, errorMsg: j } = B(c), t = C({
28
+ get: () => a(r.value, o.value.range),
29
+ set: (i) => {
30
+ r.value = a(i, o.value.range);
31
+ }
32
+ });
33
+ return f({ ...O }), (i, p) => {
34
+ const w = E("el-slider");
35
+ return l(), m(P, n(i.$props, {
36
+ propOptions: { fieldObj: e(k), rules: e(v), isError: e(V), errorMsg: e(j) }
37
+ }), {
38
+ default: F(({ data: s }) => [
39
+ (l(), m(w, n({
40
+ ref_key: "fieldEditor",
41
+ ref: _,
42
+ modelValue: e(t),
43
+ "onUpdate:modelValue": p[0] || (p[0] = (x) => b(t) ? t.value = x : null),
44
+ key: e(g)
45
+ }, e(o), z(e(y)), {
46
+ size: s.size,
47
+ class: s.injectClass,
48
+ style: s.injectStyle
49
+ }), null, 16, ["modelValue", "size", "class", "style"])),
50
+ I(" " + M(e(r)), 1)
51
+ ]),
52
+ _: 1
53
+ }, 16, ["propOptions"]);
54
+ };
55
+ }
56
+ });
57
+ export {
58
+ ie as default
59
+ };
@@ -0,0 +1,17 @@
1
+ import { m as f, d as u } from "./enum-type-be3a0b8b.js";
2
+ import { s as g } from "./template-9ade074e.js";
3
+ import { c as m } from "./uuid-b302db3f.js";
4
+ const w = (r, t = !0, i) => {
5
+ if (i != null && i === !1)
6
+ return [];
7
+ const a = d(r);
8
+ return t || (r == null ? void 0 : r.length) <= 0 ? a : a == null ? void 0 : a.filter((e) => {
9
+ var n;
10
+ return !!(e != null && e.widgetList) && ((n = e == null ? void 0 : e.widgetList) == null ? void 0 : n.length) > 0 || !!e.default || (e == null ? void 0 : e.slotName) === g.default;
11
+ });
12
+ }, L = (r, t) => r == null ? void 0 : r.find((i) => (i == null ? void 0 : i.slotName) === t), d = (r) => f(r) ? Array.isArray(r) ? r == null ? void 0 : r.map((t) => (u(t, { widgetList: [] }), m(t))) : (console.log("error slots", r), []) : [];
13
+ export {
14
+ L as a,
15
+ w as g,
16
+ d as i
17
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as e, openBlock as c, createBlock as d, mergeProps as _, unref as o, withCtx as u, createVNode as x } from "vue";
2
+ import { I as g } from "./field-base-5547436d.js";
3
+ import { b as w } from "./share-field-9834aef6.js";
4
+ import { w as C } from "./template-9ade074e.js";
5
+ import { _ as P } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
6
+ import { _ as b } from "./content-wrapper.vue_vue_type_script_setup_true_lang-56dfcc0b.js";
7
+ import { G as h } from "./enum-type-be3a0b8b.js";
8
+ import "./widget-base-4c2d6265.js";
9
+ import "./multirow-3ade8c6e.js";
10
+ import "./baseImp-70f1a9c5.js";
11
+ import "./uuid-b302db3f.js";
12
+ import "./enum-type-92806e9d.js";
13
+ import "./icon-e9532b43.js";
14
+ import "./dialog-333d3421.js";
15
+ import "element-plus";
16
+ import "./_commonjsHelpers-e7ea1525.js";
17
+ import "./index-fa19f5d9.js";
18
+ import "./slot-c6523e8c.js";
19
+ import "./index-f54403db.js";
20
+ import "./_plugin-vue_export-helper-dad06003.js";
21
+ const k = e({ componentName: C.FieldWidget }), M = /* @__PURE__ */ e({
22
+ ...k,
23
+ __name: "static-text-widget",
24
+ props: { ...g },
25
+ setup(p, { expose: i }) {
26
+ const m = p, { exposed: s, fieldEditor: n, attrs: a, extendAttrs: t, fieldObj: f } = w(m);
27
+ return i({ ...s }), (l, F) => (c(), d(P, _(l.$props, {
28
+ "prop-options": { fieldObj: o(f) }
29
+ }), {
30
+ default: u(() => {
31
+ var r;
32
+ return [
33
+ x(b, {
34
+ ref_key: "fieldEditor",
35
+ ref: n,
36
+ "component-name": "div",
37
+ allProps: { customClass: o(h)((r = o(t)) == null ? void 0 : r.customClass), content: o(a).content || o(t).content },
38
+ tohtml: !1
39
+ }, null, 8, ["allProps"])
40
+ ];
41
+ }),
42
+ _: 1
43
+ }, 16, ["prop-options"]));
44
+ }
45
+ });
46
+ export {
47
+ M as default
48
+ };
@@ -0,0 +1,88 @@
1
+ import { defineComponent as f, computed as E, ref as F, resolveComponent as u, openBlock as r, createBlock as s, mergeProps as i, unref as e, withCtx as o, toHandlers as M, createElementBlock as S, Fragment as T, renderList as B, createSlots as N, createElementVNode as _, createVNode as O } from "vue";
2
+ import { I as P } from "./field-base-5547436d.js";
3
+ import { _ as $ } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
4
+ import { b as K } from "./share-field-9834aef6.js";
5
+ import { S as W } from "./index-f54403db.js";
6
+ import { w as q } from "./template-9ade074e.js";
7
+ import { c as p } from "./uuid-b302db3f.js";
8
+ import "./widget-base-4c2d6265.js";
9
+ import "./enum-type-be3a0b8b.js";
10
+ import "./index-fa19f5d9.js";
11
+ import "./enum-type-92806e9d.js";
12
+ import "./baseImp-70f1a9c5.js";
13
+ import "./icon-e9532b43.js";
14
+ import "./dialog-333d3421.js";
15
+ import "element-plus";
16
+ import "./_commonjsHelpers-e7ea1525.js";
17
+ import "./multirow-3ade8c6e.js";
18
+ import "./slot-c6523e8c.js";
19
+ import "./_plugin-vue_export-helper-dad06003.js";
20
+ const z = ["innerHTML"], A = ["innerHTML"], D = f({ componentName: q.FieldWidget }), _e = /* @__PURE__ */ f({
21
+ ...D,
22
+ __name: "steps-widget",
23
+ props: { ...P },
24
+ setup(v, { expose: g }) {
25
+ const y = v, { fieldEditor: V, fieldKey: k, events: I, attrs: H, optionItems: L, activeOptionItemIndex: b, exposed: h, fieldObj: j } = K(y), l = E(() => a.value || b.value), a = F();
26
+ return g({
27
+ ...h,
28
+ setValue: (n) => {
29
+ a.value = n;
30
+ },
31
+ getValue: () => l.value
32
+ }), (n, Q) => {
33
+ const w = u("el-step"), x = u("el-steps");
34
+ return r(), s($, i(n.$props, {
35
+ "prop-options": { fieldObj: e(j) }
36
+ }), {
37
+ default: o(({ data: c }) => [
38
+ (r(), s(x, i({
39
+ ref_key: "fieldEditor",
40
+ ref: V,
41
+ key: e(k)
42
+ }, e(H), M(e(I)), {
43
+ active: e(l),
44
+ class: c.injectClass,
45
+ style: c.injectStyle
46
+ }), {
47
+ default: o(() => [
48
+ (r(!0), S(T, null, B(e(L), (t, C) => {
49
+ var m;
50
+ return r(), s(w, i(t, { key: C }), N({
51
+ title: o(() => [
52
+ _("span", {
53
+ innerHTML: t == null ? void 0 : t.label
54
+ }, null, 8, z)
55
+ ]),
56
+ description: o(() => {
57
+ var d;
58
+ return [
59
+ _("span", {
60
+ innerHTML: (d = e(p)(t)) == null ? void 0 : d.description
61
+ }, null, 8, A)
62
+ ];
63
+ }),
64
+ _: 2
65
+ }, [
66
+ (m = e(p)(t)) != null && m.icon ? {
67
+ name: "icon",
68
+ fn: o(() => [
69
+ O(W, {
70
+ name: e(p)(t).icon
71
+ }, null, 8, ["name"])
72
+ ]),
73
+ key: "0"
74
+ } : void 0
75
+ ]), 1040);
76
+ }), 128))
77
+ ]),
78
+ _: 2
79
+ }, 1040, ["active", "class", "style"]))
80
+ ]),
81
+ _: 1
82
+ }, 16, ["prop-options"]);
83
+ };
84
+ }
85
+ });
86
+ export {
87
+ _e as default
88
+ };
@@ -0,0 +1,16 @@
1
+ import { _ as o } from "./subMenu-widget.vue_vue_type_script_setup_true_lang-1896e25e.js";
2
+ import "vue";
3
+ import "./index-f54403db.js";
4
+ import "./enum-type-be3a0b8b.js";
5
+ import "./icon-e9532b43.js";
6
+ import "./_plugin-vue_export-helper-dad06003.js";
7
+ import "./enum-type-92806e9d.js";
8
+ import "./baseImp-70f1a9c5.js";
9
+ import "./uuid-b302db3f.js";
10
+ import "./template-9ade074e.js";
11
+ import "./_commonjsHelpers-e7ea1525.js";
12
+ import "./dialog-333d3421.js";
13
+ import "element-plus";
14
+ export {
15
+ o as default
16
+ };
@@ -0,0 +1,69 @@
1
+ import { defineComponent as g, openBlock as u, createElementBlock as t, Fragment as y, renderList as b, createBlock as o, resolveDynamicComponent as C, unref as p, withCtx as d, createCommentVNode as I, createElementVNode as _, toDisplayString as x } from "vue";
2
+ import { S as h } from "./index-f54403db.js";
3
+ import { a9 as a } from "./enum-type-92806e9d.js";
4
+ import { h as M, P as v } from "./baseImp-70f1a9c5.js";
5
+ const N = /* @__PURE__ */ g({
6
+ __name: "subMenu-widget",
7
+ props: {
8
+ items: null,
9
+ useRouter: null
10
+ },
11
+ setup(c) {
12
+ const k = (n) => {
13
+ var e;
14
+ if (n.menuItemType === a.None || !n.menuItemType)
15
+ return ((e = n == null ? void 0 : n.children) == null ? void 0 : e.length) > 0 ? "el-sub-menu" : "el-menu-item";
16
+ let l = "";
17
+ switch (n.menuItemType) {
18
+ case a.MenuItem:
19
+ l = "el-menu-item";
20
+ break;
21
+ case a.MenuItemGroup:
22
+ l = "el-menu-item-group";
23
+ break;
24
+ case a.SubMenu:
25
+ l = "el-sub-menu";
26
+ break;
27
+ default:
28
+ l = "el-menu-item";
29
+ break;
30
+ }
31
+ return l;
32
+ };
33
+ return (n, l) => (u(!0), t(y, null, b(c.items, (e, f) => (u(), o(C(k(e)), {
34
+ key: f,
35
+ index: c.useRouter ? e == null ? void 0 : e.route : (e == null ? void 0 : e.value) + "",
36
+ onClick: (r) => {
37
+ var s;
38
+ return ((s = e == null ? void 0 : e.children) == null ? void 0 : s.length) <= 0 ? p(M)(p(v).getValue(e == null ? void 0 : e.click) || "") : "";
39
+ }
40
+ }, {
41
+ title: d(() => {
42
+ var r;
43
+ return [
44
+ ((r = e == null ? void 0 : e.children) == null ? void 0 : r.length) > 0 ? (u(), o(h, {
45
+ key: 0,
46
+ name: e == null ? void 0 : e.icon
47
+ }, null, 8, ["name"])) : I("", !0),
48
+ _("span", null, x(e.label), 1)
49
+ ];
50
+ }),
51
+ default: d(() => {
52
+ var r;
53
+ return [
54
+ ((r = e == null ? void 0 : e.children) == null ? void 0 : r.length) <= 0 ? (u(), o(h, {
55
+ key: 0,
56
+ name: e == null ? void 0 : e.icon
57
+ }, null, 8, ["name"])) : (u(), o(N, {
58
+ key: 1,
59
+ items: e == null ? void 0 : e.children
60
+ }, null, 8, ["items"]))
61
+ ];
62
+ }),
63
+ _: 2
64
+ }, 1032, ["index", "onClick"]))), 128));
65
+ }
66
+ });
67
+ export {
68
+ N as _
69
+ };
@@ -0,0 +1,53 @@
1
+ import { defineComponent as m, resolveComponent as F, openBlock as i, createBlock as p, mergeProps as s, unref as e, withCtx as O, isRef as V, toHandlers as b } from "vue";
2
+ import { w as h } from "./template-9ade074e.js";
3
+ import { b as v } from "./share-field-9834aef6.js";
4
+ import { I as x } from "./field-base-5547436d.js";
5
+ import z from "./form-item-wrapper-849d8a21.js";
6
+ import "./_commonjsHelpers-e7ea1525.js";
7
+ import "./enum-type-be3a0b8b.js";
8
+ import "./uuid-b302db3f.js";
9
+ import "./multirow-3ade8c6e.js";
10
+ import "./baseImp-70f1a9c5.js";
11
+ import "./enum-type-92806e9d.js";
12
+ import "./icon-e9532b43.js";
13
+ import "./dialog-333d3421.js";
14
+ import "element-plus";
15
+ import "./index-fa19f5d9.js";
16
+ import "./slot-c6523e8c.js";
17
+ import "./widget-base-4c2d6265.js";
18
+ import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
19
+ import "./index-f54403db.js";
20
+ import "./_plugin-vue_export-helper-dad06003.js";
21
+ import "./label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js";
22
+ const I = m({ componentName: h.FieldWidget }), Z = /* @__PURE__ */ m({
23
+ ...I,
24
+ __name: "switch-widget",
25
+ props: { ...x },
26
+ setup(l, { expose: n }) {
27
+ const d = l, { fieldEditor: f, fieldKey: a, fieldModel: o, rules: c, attrs: u, events: _, exposed: w, isError: g, errorMsg: y, fieldObj: j } = v(d);
28
+ return n({ ...w }), (k, t) => {
29
+ const C = F("el-switch");
30
+ return i(), p(z, s(k.$props, {
31
+ propOptions: { fieldObj: e(j), rules: e(c), isError: e(g), errorMsg: e(y) }
32
+ }), {
33
+ default: O(({ data: r }) => [
34
+ (i(), p(C, s({
35
+ ref_key: "fieldEditor",
36
+ ref: f,
37
+ modelValue: e(o),
38
+ "onUpdate:modelValue": t[0] || (t[0] = (E) => V(o) ? o.value = E : null),
39
+ key: e(a)
40
+ }, e(u), b(e(_)), {
41
+ size: r.size,
42
+ class: r.injectClass,
43
+ style: r.injectStyle
44
+ }), null, 16, ["modelValue", "size", "class", "style"]))
45
+ ]),
46
+ _: 1
47
+ }, 16, ["propOptions"]);
48
+ };
49
+ }
50
+ });
51
+ export {
52
+ Z as default
53
+ };
@@ -0,0 +1,8 @@
1
+ import { _ as e } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-12fa9f12.js";
2
+ const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
+ __proto__: null,
4
+ default: e
5
+ }, Symbol.toStringTag, { value: "Module" }));
6
+ export {
7
+ o as _
8
+ };
@@ -0,0 +1,35 @@
1
+ import { defineComponent as s, openBlock as l, createBlock as f, mergeProps as p, unref as e, withCtx as g, createVNode as _ } from "vue";
2
+ import { w as u } from "./template-9ade074e.js";
3
+ import { I as w } from "./widget-base-4c2d6265.js";
4
+ import { D as C } from "./drag-wrapper-227f198f.js";
5
+ import { _ as W } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
6
+ import { c as b } from "./multirow-3ade8c6e.js";
7
+ import { b as h } from "./share-field-9834aef6.js";
8
+ const k = s({ componentName: u.ContainerWidget }), j = /* @__PURE__ */ s({
9
+ ...k,
10
+ __name: "tab-pane-widget",
11
+ props: { ...w },
12
+ setup(n, { expose: a }) {
13
+ const t = n, { attrs: m, exposed: i } = h(t), { componentWrapperClass: c, customClass: d } = b({ widget: t.widget });
14
+ return a({ ...i }), (o, $) => {
15
+ var r;
16
+ return l(), f(W, p(o.$props, {
17
+ "show-wrapper-component": !0,
18
+ "component-name": "el-tab-pane",
19
+ key: (r = o.widget) == null ? void 0 : r.id,
20
+ "prop-options": { fieldObj: { attrs: e(m) }, class: ["content-cell", e(d)] }
21
+ }), {
22
+ default: g(() => [
23
+ _(C, p(o.$props, {
24
+ dragClass: "dragSize",
25
+ "component-class": e(c)
26
+ }), null, 16, ["component-class"])
27
+ ]),
28
+ _: 1
29
+ }, 16, ["prop-options"]);
30
+ };
31
+ }
32
+ });
33
+ export {
34
+ j as _
35
+ };
@@ -0,0 +1,20 @@
1
+ import { _ as o } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5a1b4f92.js";
2
+ import "vue";
3
+ import "./enum-type-be3a0b8b.js";
4
+ import "./icon-e9532b43.js";
5
+ import "./uuid-b302db3f.js";
6
+ import "./baseImp-70f1a9c5.js";
7
+ import "./enum-type-92806e9d.js";
8
+ import "./template-9ade074e.js";
9
+ import "./_commonjsHelpers-e7ea1525.js";
10
+ import "./dialog-333d3421.js";
11
+ import "element-plus";
12
+ import "./drag-wrapper-227f198f.js";
13
+ import "./widget-base-4c2d6265.js";
14
+ import "./index-fa19f5d9.js";
15
+ import "./multirow-3ade8c6e.js";
16
+ import "./slot-c6523e8c.js";
17
+ import "./_plugin-vue_export-helper-dad06003.js";
18
+ export {
19
+ o as default
20
+ };
@@ -0,0 +1,80 @@
1
+ import { defineComponent as z, resolveComponent as E, openBlock as i, createBlock as a, normalizeProps as I, guardReactiveProps as N, unref as e, withCtx as v, resolveDynamicComponent as A, createCommentVNode as l, createElementBlock as F, Fragment as L, renderList as V } from "vue";
2
+ import { a as j } from "./enum-type-be3a0b8b.js";
3
+ import { u as q } from "./icon-e9532b43.js";
4
+ import { c as R } from "./uuid-b302db3f.js";
5
+ import { b as H, G as J } from "./baseImp-70f1a9c5.js";
6
+ import { D as W } from "./drag-wrapper-227f198f.js";
7
+ import { a as u } from "./slot-c6523e8c.js";
8
+ import { b as K } from "./multirow-3ade8c6e.js";
9
+ const M = /* @__PURE__ */ z({
10
+ __name: "table-col-widget",
11
+ props: {
12
+ options: null,
13
+ designState: { type: Boolean },
14
+ designer: null,
15
+ propResultOpt: null
16
+ },
17
+ setup(t) {
18
+ const r = t, { attrs: G, extendAttrs: O, slots: s } = H(
19
+ { options: r.options },
20
+ r.propResultOpt,
21
+ {
22
+ s_slots: !0,
23
+ s_extendAttr: !0,
24
+ s_attr: !0,
25
+ fn_attr: (c) => !["children"].includes(c)
26
+ }
27
+ ), { newSlot: P } = K(), { instance: T } = q(), g = J({ instance: T });
28
+ return (c, Q) => {
29
+ const $ = E("el-table-column");
30
+ return i(), a($, I(N(e(G))), {
31
+ header: v((n) => {
32
+ var o, d;
33
+ return [
34
+ (o = e(u)(e(s), "header")) != null && o.default ? (i(), a(A((d = e(u)(e(s), "header")) == null ? void 0 : d.default), {
35
+ key: 0,
36
+ scope: n,
37
+ ctx: e(g)
38
+ }, null, 8, ["scope", "ctx"])) : l("", !0)
39
+ ];
40
+ }),
41
+ default: v((n) => {
42
+ var o, d, m, f, S, p, w, h, x, k, y, b, C, B;
43
+ return [
44
+ (((d = (o = t.options) == null ? void 0 : o.children) == null ? void 0 : d.length) || 0) > 0 ? (i(!0), F(L, { key: 0 }, V((m = t.options) == null ? void 0 : m.children, (D, U) => (i(), a(M, {
45
+ designState: t.designState,
46
+ designer: t.designer,
47
+ key: D.uuid,
48
+ options: D
49
+ }, null, 8, ["designState", "designer", "options"]))), 128)) : l("", !0),
50
+ (f = e(O)) != null && f.slotable && (t.designState && ((p = (S = r.options) == null ? void 0 : S.default) != null && p.widgetList) || !t.designState || ((x = (h = (w = r.options) == null ? void 0 : w.default) == null ? void 0 : h.widgetList) == null ? void 0 : x.length) > 0) ? (i(), F(L, { key: 1 }, [
51
+ t.designState ? (i(), a(W, {
52
+ key: 0,
53
+ designState: t.designState,
54
+ designer: t.designer,
55
+ widget: e(R)((k = r.options) == null ? void 0 : k.default),
56
+ dragTip: e(j).i18nt("designer.hint.draggableArea1"),
57
+ "row-scope": n
58
+ }, null, 8, ["designState", "designer", "widget", "dragTip", "row-scope"])) : (i(), a(W, {
59
+ key: 1,
60
+ designState: t.designState,
61
+ designer: t.designer,
62
+ widget: e(R)((b = e(P)([(y = r.options) == null ? void 0 : y.default], n, (n == null ? void 0 : n.$index) < 0 ? "header" : n == null ? void 0 : n.$index)) == null ? void 0 : b.widget[0]),
63
+ "row-scope": n
64
+ }, null, 8, ["designState", "designer", "widget", "row-scope"]))
65
+ ], 64)) : l("", !0),
66
+ (C = e(u)(e(s), "default")) != null && C.default ? (i(), a(A((B = e(u)(e(s), "default")) == null ? void 0 : B.default), {
67
+ key: 2,
68
+ scope: n,
69
+ ctx: e(g)
70
+ }, null, 8, ["scope", "ctx"])) : l("", !0)
71
+ ];
72
+ }),
73
+ _: 1
74
+ }, 16);
75
+ };
76
+ }
77
+ });
78
+ export {
79
+ M as _
80
+ };