hlrender 0.0.274 → 0.0.276

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 (146) hide show
  1. package/{_pdf-8d5e34b5.js → _pdf-ce2f6ef9.js} +6 -6
  2. package/{_txt-da8c0242.js → _txt-78a70c52.js} +6 -6
  3. package/{_unsupport-4bd686fc.js → _unsupport-1b097ae2.js} +1 -1
  4. package/{affix-widget-de503399.js → affix-widget-6d97dd92.js} +16 -16
  5. package/{alert-widget-a94e8d13.js → alert-widget-7db88a94.js} +16 -16
  6. package/{anchor-widget-aa3e5a25.js → anchor-widget-32a65b3b.js} +20 -20
  7. package/auto-complete-widget-4c8764a7.js +75 -0
  8. package/{avatar-widget-46e2f319.js → avatar-widget-d79a7dc6.js} +18 -18
  9. package/{backtop-widget-dc25c3e7.js → backtop-widget-bb681a19.js} +19 -19
  10. package/{badge-widget-1fa57cc7.js → badge-widget-8dcacfb1.js} +16 -16
  11. package/{barcode-widget-14de599a.js → barcode-widget-2ce7d156.js} +13 -13
  12. package/{baseImp-5623aa34.js → baseImp-ae7c0a37.js} +3106 -3102
  13. package/{breadcrumb-widget-fa089dad.js → breadcrumb-widget-790119f8.js} +19 -19
  14. package/{button-widget-17187ff3.js → button-widget-f1f66352.js} +16 -16
  15. package/{cache-widget-04eae6d3.js → cache-widget-b6e80df0.js} +23 -23
  16. package/{card-widget-f99ca705.js → card-widget-3ccdc3f6.js} +43 -43
  17. package/{carousel-widget-cfec54e0.js → carousel-widget-78e1e4d7.js} +19 -19
  18. package/{cascader-widget-84933fdb.js → cascader-widget-f5886f08.js} +21 -21
  19. package/chart-widget-69442c00.js +89 -0
  20. package/{checkbox-widget-738f4a97.js → checkbox-widget-43edb7bc.js} +15 -15
  21. package/{collapse-widget-35e01ed1.js → collapse-widget-93cc0926.js} +27 -27
  22. package/{color-picker-widget-7d941f46.js → color-picker-widget-c6155941.js} +21 -21
  23. package/{cont-cell-widget-a1f0b533.js → cont-cell-widget-572b461a.js} +1 -1
  24. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-7c3a2cbc.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-1e02a5ff.js} +9 -9
  25. package/{cont-widget-a71849e6.js → cont-widget-a30dd8f1.js} +5 -5
  26. package/{content-wrapper-9f23d943.js → content-wrapper-caa362a9.js} +7 -7
  27. package/{content-wrapper.vue_vue_type_script_setup_true_lang-8e168bee.js → content-wrapper.vue_vue_type_script_setup_true_lang-4235a623.js} +3 -3
  28. package/{countdown-widget-c0759a3b.js → countdown-widget-ad735df4.js} +21 -21
  29. package/{date-picker-range-widget-2820d7f7.js → date-picker-range-widget-6afb1377.js} +20 -20
  30. package/date-picker-widget-3c364663.js +114 -0
  31. package/default-slot-widget-d29c3a61.js +27 -0
  32. package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-a9a2f58b.js +84 -0
  33. package/{descriptions-widget-20efe494.js → descriptions-widget-72f88df2.js} +25 -25
  34. package/{dialog-ba291209.js → dialog-003d60d4.js} +2 -2
  35. package/{dialog-widget-d96acf62.js → dialog-widget-1e1a243a.js} +15 -15
  36. package/{divider-widget-1f077300.js → divider-widget-7b054e2c.js} +19 -19
  37. package/{drag-wrapper-679371ab.js → drag-wrapper-e4f7289b.js} +6 -6
  38. package/{drawer-widget-13a8f6b1.js → drawer-widget-a3359eb8.js} +15 -15
  39. package/{dropdown-widget-8d4917ca.js → dropdown-widget-aba058d2.js} +35 -35
  40. package/{empty-widget-9673a73f.js → empty-widget-51cff636.js} +16 -16
  41. package/{enum-type-b4b3fb1d.js → enum-type-6ac4c4d4.js} +18 -18
  42. package/{enum-type-5026a107.js → enum-type-e5e6ba33.js} +1 -1
  43. package/{expression-b400fa10.js → expression-22698064.js} +64 -64
  44. package/feedback-widget-f6ca4ec0.js +27 -0
  45. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-9bad4d57.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-418da5f6.js} +32 -32
  46. package/{fieldobj-6b2e9257.js → fieldobj-7311a036.js} +1 -1
  47. package/{file-upload-widget-f20c09a8.js → file-upload-widget-735d76a9.js} +47 -47
  48. package/{form-item-wrapper-3a57150a.js → form-item-wrapper-b9cf5581.js} +11 -11
  49. package/form-widget-992e749d.js +264 -0
  50. package/{grid-col-widget-4622e9f5.js → grid-col-widget-a9a8f19f.js} +1 -1
  51. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-d1d7c6bd.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-3c662d58.js} +9 -9
  52. package/{grid-widget-1b3e097d.js → grid-widget-d4d20c2f.js} +5 -5
  53. package/{hcard-widget-5d5251d3.js → hcard-widget-7f74642b.js} +14 -14
  54. package/{html-text-widget-d4f3ae82.js → html-text-widget-b76dbf3f.js} +18 -18
  55. package/{icon-widget-a96cbb5e.js → icon-widget-54dc192a.js} +23 -23
  56. package/{iframe-widget-d7684bbc.js → iframe-widget-cc91cd69.js} +20 -20
  57. package/image-widget-daa9be6f.js +65 -0
  58. package/{index-52c672dc.js → index-170931d8.js} +1 -1
  59. package/{index-3d32030d.js → index-6b1b38bd.js} +4 -4
  60. package/{index-37371bcf.js → index-b76684d8.js} +5 -5
  61. package/{input-number-widget-57e0f68b.js → input-number-widget-1f20c40f.js} +18 -18
  62. package/{input-widget-59816b45.js → input-tag-widget-15ff165e.js} +28 -28
  63. package/input-widget-3e95551a.js +72 -0
  64. package/{label-wrapper-946d4f6e.js → label-wrapper-005f6858.js} +5 -5
  65. package/{label-wrapper.vue_vue_type_style_index_0_lang-466417fc.js → label-wrapper.vue_vue_type_style_index_0_lang-f6d14143.js} +3 -3
  66. package/{link-widget-941ece03.js → link-widget-1910e84e.js} +24 -24
  67. package/{ltable-col-widget-7f17d280.js → ltable-col-widget-00500243.js} +1 -1
  68. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-119939e4.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-da522d0b.js} +9 -9
  69. package/{ltable-widget-3cdd8a61.js → ltable-widget-4a007142.js} +10 -10
  70. package/mention-widget-4202086f.js +83 -0
  71. package/{menu-widget-55d05c5f.js → menu-widget-6293e53e.js} +40 -40
  72. package/{model-widget-be9873f7.js → model-widget-672e6556.js} +13 -13
  73. package/multirow-643b6b12.js +230 -0
  74. package/{multirow-widget-a61e1ffd.js → multirow-widget-b83f704f.js} +142 -142
  75. package/package.json +1 -1
  76. package/{pagination-widget-4be188b9.js → pagination-widget-f825c948.js} +30 -30
  77. package/{picture-upload-widget-3eb230e0.js → picture-upload-widget-ed5dd370.js} +16 -16
  78. package/{progress-widget-e27a8e91.js → progress-widget-38523974.js} +14 -14
  79. package/{qrcode-widget-37523a4c.js → qrcode-widget-a2825a8e.js} +13 -13
  80. package/{radio-widget-986e2923.js → radio-widget-dfaf22ea.js} +15 -15
  81. package/{range-widget-10d5d497.js → range-widget-535e5f1d.js} +24 -24
  82. package/{rate-widget-bd208223.js → rate-widget-2f102397.js} +18 -18
  83. package/render.es.js +88 -88
  84. package/render.style.css +1 -1
  85. package/render.umd.js +377 -377
  86. package/{result-widget-60806d6f.js → result-widget-3190eca5.js} +25 -25
  87. package/{rich-editor-widget-c1c52421.js → rich-editor-widget-e341c00c.js} +25 -25
  88. package/{router-widget-854967fe.js → router-widget-9b334e33.js} +16 -16
  89. package/{segmented-widget-33e17632.js → segmented-widget-160bbe9a.js} +13 -13
  90. package/{select-widget-9ecbf69d.js → select-widget-adf2ed8c.js} +17 -17
  91. package/{sfc-4d02d18b.js → sfc-9469e308.js} +8 -8
  92. package/{sfcview-621b67b1.js → sfcview-ea5250a8.js} +7 -7
  93. package/share-field-7ecde1ad.js +856 -0
  94. package/{share-file-0caf64d9.js → share-file-b68db0c7.js} +13 -13
  95. package/{skeleton-widget-397d4aa8.js → skeleton-widget-08b527bd.js} +30 -30
  96. package/{skeletonItem-widget-4415418e.js → skeletonItem-widget-99727467.js} +16 -16
  97. package/{slider-widget-798901d6.js → slider-widget-7f2629bc.js} +20 -20
  98. package/{slot-a71ceeef.js → slot-e2606e8a.js} +3 -3
  99. package/{space-widget-a897626a.js → space-widget-c1eaa0c1.js} +23 -23
  100. package/{splitter-widget-e4d1b106.js → splitter-widget-e16c7fc2.js} +19 -19
  101. package/{static-text-widget-a612b773.js → static-text-widget-7b55737c.js} +18 -18
  102. package/{statistic-widget-fcdf41f0.js → statistic-widget-492a9b3b.js} +16 -16
  103. package/{steps-widget-7038a62e.js → steps-widget-21a1023e.js} +22 -22
  104. package/{subMenu-widget-511c493e.js → subMenu-widget-59b24873.js} +8 -8
  105. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-b6ece2d4.js → subMenu-widget.vue_vue_type_script_setup_true_lang-dff824ab.js} +3 -3
  106. package/{switch-widget-7323a13a.js → switch-widget-267b37c5.js} +17 -17
  107. package/{tab-pane-widget-37dc9032.js → tab-pane-widget-2a0d33f9.js} +1 -1
  108. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-3c44a364.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bf4b9f03.js} +7 -7
  109. package/table-col-widget-ff3a5ac9.js +23 -0
  110. package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-6f9cedb9.js +115 -0
  111. package/table-widget-47c6c691.js +353 -0
  112. package/{tabs-widget-1a2ab1c1.js → tabs-widget-51a11be6.js} +7 -7
  113. package/{tag-widget-ebcbc798.js → tag-widget-30a27c08.js} +16 -16
  114. package/{text-widget-22e821bd.js → text-widget-80fa95f1.js} +16 -16
  115. package/{textarea-widget-d8eec61e.js → textarea-widget-c20f14df.js} +19 -19
  116. package/{time-picker-range-widget-af737a6a.js → time-picker-range-widget-0da8dcb3.js} +19 -19
  117. package/{time-picker-widget-41ebf6e5.js → time-picker-widget-d60cc261.js} +21 -21
  118. package/{time-select-widget-ba53e6e3.js → time-select-widget-9b5e40cb.js} +20 -20
  119. package/{timeline-widget-7f90cdf6.js → timeline-widget-47a11513.js} +67 -66
  120. package/tmpl-widget-24ad016d.js +98 -0
  121. package/{tooltip-widget-8f13dd75.js → tooltip-widget-db6c33d5.js} +34 -34
  122. package/{tour-widget-8ca44412.js → tour-widget-2e0f1d18.js} +19 -19
  123. package/transfer-widget-ab3d014c.js +82 -0
  124. package/{tree-select-widget-8e9323b2.js → tree-select-widget-976772dd.js} +23 -23
  125. package/{tree-widget-63524b1b.js → tree-widget-8d387a2a.js} +20 -20
  126. package/{uuid-b91bcccf.js → uuid-432548c7.js} +1 -1
  127. package/{verifycode-widget-c5f5c8c5.js → verifycode-widget-841bc8a4.js} +13 -13
  128. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-190ebd92.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-9fca5ac3.js} +7 -7
  129. package/{wrapper-widget-12efeb35.js → wrapper-widget-ff691f4e.js} +6 -6
  130. package/auto-complete-widget-294a2011.js +0 -75
  131. package/chart-widget-714596d3.js +0 -88
  132. package/date-picker-widget-dee26f46.js +0 -114
  133. package/default-slot-widget-8e0486f0.js +0 -27
  134. package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-b164b82a.js +0 -84
  135. package/feedback-widget-33473d38.js +0 -27
  136. package/form-widget-fb293aee.js +0 -246
  137. package/image-widget-d0508443.js +0 -65
  138. package/input-tag-widget-9d042cc0.js +0 -72
  139. package/mention-widget-f3bc7382.js +0 -83
  140. package/multirow-9fb6b652.js +0 -230
  141. package/share-field-ecce5234.js +0 -839
  142. package/table-col-widget-35a1c0e8.js +0 -23
  143. package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-eb3e958c.js +0 -114
  144. package/table-widget-f38be8ae.js +0 -352
  145. package/tmpl-widget-183c4813.js +0 -98
  146. package/transfer-widget-272bc2e9.js +0 -82
@@ -1,23 +0,0 @@
1
- import { _ as o } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-eb3e958c.js";
2
- import "vue";
3
- import "./enum-type-b4b3fb1d.js";
4
- import "./baseImp-5623aa34.js";
5
- import "./enum-type-5026a107.js";
6
- import "./expression-b400fa10.js";
7
- import "./source-map-b04aec4a.js";
8
- import "./uuid-b91bcccf.js";
9
- import "./_commonjsHelpers-e7ea1525.js";
10
- import "./esprima-e8d15055.js";
11
- import "./icon-1fc5d00d.js";
12
- import "axios";
13
- import "./dialog-ba291209.js";
14
- import "element-plus";
15
- import "./drag-wrapper-679371ab.js";
16
- import "./widget-base-8eece820.js";
17
- import "./index-37371bcf.js";
18
- import "./slot-a71ceeef.js";
19
- import "./_plugin-vue_export-helper-dad06003.js";
20
- import "./multirow-9fb6b652.js";
21
- export {
22
- o as default
23
- };
@@ -1,114 +0,0 @@
1
- import { defineComponent as H, computed as O, resolveComponent as J, openBlock as g, createBlock as p, normalizeProps as K, guardReactiveProps as Q, withCtx as W, unref as t, resolveDynamicComponent as $, createCommentVNode as y, createElementBlock as E, Fragment as N, renderList as U } from "vue";
2
- import { j as P, e as j, c as z } from "./enum-type-b4b3fb1d.js";
3
- import { g as X, b as Y } from "./baseImp-5623aa34.js";
4
- import { D as A } from "./drag-wrapper-679371ab.js";
5
- import { d as S } from "./slot-a71ceeef.js";
6
- import { b as Z } from "./multirow-9fb6b652.js";
7
- import { g as q } from "./uuid-b91bcccf.js";
8
- import { am as _ } from "./enum-type-5026a107.js";
9
- const ee = /* @__PURE__ */ H({
10
- __name: "table-col-widget",
11
- props: {
12
- options: {},
13
- designState: { type: Boolean },
14
- designer: {},
15
- propResultOpt: {},
16
- realTableData: {}
17
- },
18
- setup(r) {
19
- var k;
20
- const o = r, h = X({ instance: (k = o.propResultOpt) == null ? void 0 : k.instance }), { attrs: u, extendAttrs: x, slots: b } = Y(
21
- { options: o.options },
22
- o.propResultOpt,
23
- {
24
- s_slots: !0,
25
- s_extendAttr: !0,
26
- s_attr: !0,
27
- fn_attr: (s) => !["children"].includes(s)
28
- }
29
- ), G = O(() => {
30
- var i, e, d, n;
31
- var s = (i = x.value) == null ? void 0 : i.filterable, l = ((e = u.value) == null ? void 0 : e.fixed) === !1 || ((d = u.value) == null ? void 0 : d.fixed) === _.none ? !1 : (n = u.value) == null ? void 0 : n.fixed;
32
- return s ? {
33
- ...u.value,
34
- fixed: l,
35
- filters: I.value,
36
- filterMethod: M
37
- } : {
38
- ...u.value,
39
- fixed: l
40
- };
41
- }), I = O(() => {
42
- var n, f, m;
43
- var s = (n = o.realTableData) == null ? void 0 : n.map((a) => {
44
- var v;
45
- const c = (v = u.value) == null ? void 0 : v.prop;
46
- return a == null ? void 0 : a[c];
47
- });
48
- const l = [...new Set(s)];
49
- var i = (f = l == null ? void 0 : l.filter((a) => !P(a))) == null ? void 0 : f.map((a) => ({ text: a, value: a }));
50
- l != null && l.some((a) => P(a)) && i.push({ text: j.i18nt("designer.hint.empty"), value: "" });
51
- var e = (m = x.value) == null ? void 0 : m.filtersDatasource;
52
- return (e ? e == null ? void 0 : e(o.realTableData, u.value) : null) || i;
53
- }), M = (s, l, i) => {
54
- var n;
55
- var e = (n = u.value) == null ? void 0 : n.filterMethod;
56
- return e ? e == null ? void 0 : e(s, l, i, h) : ((f, m, a) => {
57
- const c = a.property;
58
- return m[c] === f;
59
- })(s, l, i);
60
- }, { newSlot: V } = Z();
61
- return (s, l) => {
62
- const i = J("el-table-column");
63
- return g(), p(i, K(Q(G.value)), {
64
- header: W((e) => {
65
- var d, n;
66
- return [
67
- (d = t(S)(t(b), "header")) != null && d.default ? (g(), p($((n = t(S)(t(b), "header")) == null ? void 0 : n.default), {
68
- key: 0,
69
- scope: e,
70
- ctx: t(h)
71
- }, null, 8, ["scope", "ctx"])) : y("", !0)
72
- ];
73
- }),
74
- default: W((e) => {
75
- var d, n, f, m, a, c, w, v, D, T, C, B, F, L;
76
- return [
77
- (((n = (d = r.options) == null ? void 0 : d.children) == null ? void 0 : n.length) || 0) > 0 ? (g(!0), E(N, { key: 0 }, U((f = r.options) == null ? void 0 : f.children, (R, te) => (g(), p(ee, {
78
- designState: r.designState,
79
- designer: r.designer,
80
- key: R.uuid,
81
- options: R,
82
- "real-table-data": r.realTableData
83
- }, null, 8, ["designState", "designer", "options", "real-table-data"]))), 128)) : y("", !0),
84
- (m = t(x)) != null && m.slotable && (r.designState && ((c = (a = o.options) == null ? void 0 : a.default) != null && c.widgetList) || !r.designState || ((D = (v = (w = o.options) == null ? void 0 : w.default) == null ? void 0 : v.widgetList) == null ? void 0 : D.length) > 0) ? (g(), E(N, { key: 1 }, [
85
- r.designState ? (g(), p(A, {
86
- key: 0,
87
- designState: r.designState,
88
- designer: r.designer,
89
- widget: t(z)((T = o.options) == null ? void 0 : T.default),
90
- dragTip: t(j).i18nt("designer.hint.draggableArea1"),
91
- "row-scope": e
92
- }, null, 8, ["designState", "designer", "widget", "dragTip", "row-scope"])) : (g(), p(A, {
93
- designState: r.designState,
94
- designer: r.designer,
95
- key: t(q)() + (e == null ? void 0 : e.$index),
96
- widget: t(z)((B = t(V)([(C = o.options) == null ? void 0 : C.default], e, (e == null ? void 0 : e.$index) < 0 ? "header" : e == null ? void 0 : e.$index)) == null ? void 0 : B.widget[0]),
97
- "row-scope": e
98
- }, null, 8, ["designState", "designer", "widget", "row-scope"]))
99
- ], 64)) : y("", !0),
100
- (F = t(S)(t(b), "default")) != null && F.default ? (g(), p($((L = t(S)(t(b), "default")) == null ? void 0 : L.default), {
101
- key: 2,
102
- scope: e,
103
- ctx: t(h)
104
- }, null, 8, ["scope", "ctx"])) : y("", !0)
105
- ];
106
- }),
107
- _: 1
108
- }, 16);
109
- };
110
- }
111
- });
112
- export {
113
- ee as _
114
- };
@@ -1,352 +0,0 @@
1
- import { defineComponent as he, inject as He, ref as P, computed as E, reactive as Je, onMounted as qe, resolveComponent as j, resolveDirective as Qe, openBlock as g, createBlock as h, mergeProps as K, unref as o, withCtx as A, withDirectives as Xe, createElementBlock as B, createElementVNode as ce, createCommentVNode as z, createTextVNode as Ye, toDisplayString as Ze, toHandlers as we, createSlots as Re, renderList as pe, Fragment as D, resolveDynamicComponent as fe, createVNode as et } from "vue";
2
- import { a2 as tt, x as nt, e as U, g as H, t as ge, v as rt, a as at, f as ot, o as it } from "./enum-type-b4b3fb1d.js";
3
- import { L as lt, g as st, P as L, K as ut, b as dt, d as ct } from "./baseImp-5623aa34.js";
4
- import { I as pt } from "./field-base-1acf3ada.js";
5
- import { _ as ft } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-190ebd92.js";
6
- import { b as gt } from "./share-field-ecce5234.js";
7
- import { d as mt, s as vt, w as ht, b as bt } from "./expression-b400fa10.js";
8
- import { _ as yt } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-eb3e958c.js";
9
- import { F as St, d as _t, g as Nt } from "./slot-a71ceeef.js";
10
- import { c as kt, p as me } from "./multirow-9fb6b652.js";
11
- import { S as Pt } from "./enum-type-5026a107.js";
12
- import { D as ve } from "./drag-wrapper-679371ab.js";
13
- import { Grid as Ct } from "./index-6bcfdc22.js";
14
- import "./icon-1fc5d00d.js";
15
- import "axios";
16
- import "./dialog-ba291209.js";
17
- import "./_commonjsHelpers-e7ea1525.js";
18
- import "./uuid-b91bcccf.js";
19
- import "element-plus";
20
- import "./widget-base-8eece820.js";
21
- import "./index-37371bcf.js";
22
- import "./index-52c672dc.js";
23
- import "./_plugin-vue_export-helper-dad06003.js";
24
- import "./fieldobj-6b2e9257.js";
25
- import "./source-map-b04aec4a.js";
26
- import "./esprima-e8d15055.js";
27
- function Ft() {
28
- return {
29
- splitNumericUnit: (v) => {
30
- if (v === Pt.auto)
31
- return {
32
- original: v,
33
- numeric: null,
34
- unit: v,
35
- valid: !0
36
- };
37
- const b = v == null ? void 0 : v.replace(/\s+/g, ""), C = b == null ? void 0 : b.match(/^(-?\d*\.?\d+)([^\d]*)$/);
38
- if (!C)
39
- return {
40
- original: v,
41
- numeric: null,
42
- unit: "",
43
- valid: !1
44
- };
45
- const d = parseFloat(C[1]), V = C[2] || "";
46
- return {
47
- original: v,
48
- numeric: isNaN(d) ? null : d,
49
- unit: V,
50
- valid: V !== null && !isNaN(d)
51
- };
52
- }
53
- };
54
- }
55
- const zt = { key: 1 }, xt = { style: { flex: "1" } }, Ot = he({ componentName: ht.FieldWidget }), rn = /* @__PURE__ */ he({
56
- ...Ot,
57
- __name: "table-widget",
58
- props: { ...pt },
59
- setup(J, { expose: v }) {
60
- var ee;
61
- const b = J, { fieldName: C, exposed: d, fieldEditor: V, fieldKey: be, attrs: N, slots: q, extendAttrs: p, events: ye, optionItems: y, watchOption: Se, fieldObj: _e, propResultOpt: M, getFieldOptions: Ne } = gt({ ...b, exposedWholeInstance: !0 }), ke = He(mt.globalConfig, {}), { toModel: Pe } = kt({
62
- ...b,
63
- globalConfig: ke,
64
- fieldName: C.value
65
- }), Q = P();
66
- var Ce = E(() => tt(y == null ? void 0 : y.value, "children", (e) => L.getValue(e == null ? void 0 : e.filterable) || !1));
67
- const Fe = (e) => {
68
- var t, n;
69
- Q.value = { ...e }, (n = (t = N.value) == null ? void 0 : t.filterChange) == null || n.call(t, e);
70
- }, ze = (e, t, n) => {
71
- if (!e || (e == null ? void 0 : e.length) <= 0)
72
- return e;
73
- let l = [...e];
74
- return !t || t.length <= 0 || n && n.length > 0 && (n == null || n.forEach((a) => {
75
- l = l == null ? void 0 : l.filter(
76
- (i) => {
77
- var m;
78
- const u = a.prop, c = L.getValue(a == null ? void 0 : a.filterMethod), r = t[u];
79
- if (!c || !H(r))
80
- return !0;
81
- const f = (m = ge(r, !0)) == null ? void 0 : m.some((S) => ut(c, { value: S, row: i, col: { ...a, property: u }, ctx: W }));
82
- return u && f;
83
- }
84
- );
85
- })), l;
86
- }, x = P([]), xe = (e, t) => {
87
- if (!e || (e == null ? void 0 : e.length) <= 0)
88
- return e;
89
- const n = [...e];
90
- if (t.length === 0)
91
- return n;
92
- const l = {
93
- descending: "desc",
94
- ascending: "asc"
95
- };
96
- var a = t == null ? void 0 : t.map((i) => ({
97
- selector: (u, c) => {
98
- var r, f;
99
- return ((f = (r = i.column).sortBy) == null ? void 0 : f.call(r, u, c, W)) || u[i.prop];
100
- },
101
- method: i.column.sortMethod == null ? (u, c) => {
102
- var r, f;
103
- return (f = (r = i.column).sortMethod) == null ? void 0 : f.call(r, u, c, W);
104
- } : void 0,
105
- direction: l[i.order]
106
- }));
107
- return rt(n, ...a);
108
- }, Oe = ({ column: e, prop: t, order: n }) => {
109
- const l = x.value.findIndex((a) => a.prop === t);
110
- if (n == null)
111
- l !== -1 && x.value.splice(l, 1);
112
- else {
113
- const a = { column: e, prop: t, order: n };
114
- l !== -1 ? x.value[l] = a : x.value.push(a);
115
- }
116
- _.value = 1;
117
- }, _ = P(1), O = P((ee = p.value) == null ? void 0 : ee.pageSize), $ = P(10), Te = (e) => {
118
- O.value = e;
119
- }, X = (e) => {
120
- _.value = e;
121
- }, F = P(), Ee = E(() => {
122
- var t;
123
- if (b.designState)
124
- return [{}];
125
- if ((t = p.value) != null && t.allowPage) {
126
- var e = nt(G.value, _.value, O.value);
127
- return $.value = e == null ? void 0 : e.totalItems, e == null ? void 0 : e.data;
128
- } else
129
- return G.value;
130
- }), G = E(() => {
131
- let e = F.value;
132
- return e = ze(e, Q.value, Ce.value), e = xe(e, x.value), e;
133
- }), I = P(!1), je = () => {
134
- _.value = 1, $.value = 0, F.value = [];
135
- }, Y = (e = !0) => {
136
- const t = _.value;
137
- return new Promise((n, l) => {
138
- const a = (i) => {
139
- F.value = i, I.value = !1, e && t > 1 && X(t), n(i);
140
- };
141
- Se(bt.data, () => {
142
- je(), I.value = !0;
143
- }).then((i) => {
144
- var u, c;
145
- if (!((u = p.value) != null && u.beforeTableRender)) {
146
- a(i);
147
- return;
148
- }
149
- (c = p.value) == null || c.beforeTableRender(i, (r) => {
150
- a(r);
151
- });
152
- });
153
- });
154
- }, Ve = (e) => {
155
- at(e) && (e = ot(e)), F.value = ge(e, !0);
156
- }, Me = () => F.value, Ie = (e = !0) => {
157
- I.value = e;
158
- }, Z = Je({}), We = C.value;
159
- St.globalProvide({
160
- globalFormName: We,
161
- globalDataModel: Z
162
- });
163
- const Ae = U.i18nt("designer.hint.noData"), Be = () => {
164
- var t;
165
- var e = {};
166
- return (t = Object.keys(d == null ? void 0 : d.allRefList)) == null || t.forEach((n) => {
167
- var i, u, c;
168
- var l = (c = (u = (i = d == null ? void 0 : d.allRefList[n]) == null ? void 0 : i.exposed) == null ? void 0 : u.getField) == null ? void 0 : c.call(u);
169
- if (l) {
170
- const r = me(n);
171
- if (!(r != null && r.groupName) || (r == null ? void 0 : r.groupName) === "header")
172
- return;
173
- var a = e[r == null ? void 0 : r.groupName];
174
- a || (a = []), a.push(l), e[r == null ? void 0 : r.groupName] = a;
175
- }
176
- }), it(e).map((n) => Pe(Z, e[n]));
177
- }, Ue = (e) => {
178
- var t;
179
- !e || e.length <= 0 || (t = Object.keys(d == null ? void 0 : d.allRefList)) == null || t.forEach((n) => {
180
- var c, r, f, m, S, k, T;
181
- var l = (f = (r = (c = d == null ? void 0 : d.allRefList[n]) == null ? void 0 : c.exposed) == null ? void 0 : r.getField) == null ? void 0 : f.call(r);
182
- if (!l)
183
- return;
184
- const a = me(n);
185
- if (!(a != null && a.groupName))
186
- return;
187
- var i = e == null ? void 0 : e[parseInt(a == null ? void 0 : a.groupName)];
188
- const u = (m = l == null ? void 0 : l._source) == null ? void 0 : m.name;
189
- (i == null ? void 0 : i[u]) != null && ((T = (k = (S = d == null ? void 0 : d.allRefList[n]) == null ? void 0 : S.exposed) == null ? void 0 : k.setValue) == null || T.call(k, i == null ? void 0 : i[u]));
190
- });
191
- }, Le = E(() => {
192
- var e;
193
- return (e = p.value) == null ? void 0 : e.showToolbar;
194
- }), $e = E(() => {
195
- var e;
196
- return (e = p.value) == null ? void 0 : e.enableExport;
197
- }), { exporting: Ge, exportExcel: Ke } = lt(), { splitNumericUnit: De } = Ft(), W = st({ instance: M == null ? void 0 : M.instance }), w = (e) => {
198
- var t;
199
- return ((t = e == null ? void 0 : e.filter((n) => !!L.getValue(n.exportable))) == null ? void 0 : t.map((n) => {
200
- var i;
201
- const { getWidgetOptionByPropValue: l } = dt({ options: n }), a = (i = De(n.width + "")) == null ? void 0 : i.numeric;
202
- return {
203
- prop: n.prop,
204
- label: n.label,
205
- children: w(n.children),
206
- width: a,
207
- formatter: (u, c, r, f) => {
208
- const m = n.formatter;
209
- if (!m || !L.getValue(m))
210
- return r;
211
- const S = { row: u, column: c, cellValue: r, index: f, ctx: W };
212
- return ct(l(m), S);
213
- }
214
- };
215
- })) || [];
216
- }, R = (e) => {
217
- var l, a, i;
218
- if (b.designState)
219
- return;
220
- const t = {
221
- filename: (l = p.value) == null ? void 0 : l.exportFileName,
222
- sheetName: (a = p.value) == null ? void 0 : a.exportSheetName,
223
- autoWidth: (i = p.value) == null ? void 0 : i.exportAutoWidth
224
- }, n = w(y == null ? void 0 : y.value);
225
- return Ke(G.value, n, { ...t, ...e });
226
- };
227
- return qe(() => {
228
- b.designState || Y();
229
- }), v({
230
- ...d,
231
- setValue: Ve,
232
- getValue: Me,
233
- refresh: Y,
234
- getTableData: Be,
235
- setTableData: Ue,
236
- setLoading: Ie,
237
- exporting: Ge,
238
- exportToExcel: R,
239
- currentPage: () => _.value,
240
- pageSize: () => O.value
241
- }), (e, t) => {
242
- const n = j("el-empty"), l = j("el-button"), a = j("el-row"), i = j("el-table"), u = j("el-pagination"), c = Qe("loading");
243
- return g(), h(ft, K(e.$props, {
244
- "prop-options": { fieldObj: o(_e) }
245
- }), {
246
- default: A(({ data: r }) => {
247
- var f, m, S, k, T, te, ne, re, ae, oe, ie, le;
248
- return [
249
- !o(y) || ((f = o(y)) == null ? void 0 : f.length) <= 0 || ((m = o(y)) == null ? void 0 : m[0]) == null ? (g(), h(n, {
250
- key: 0,
251
- description: o(U).i18nt("designer.hint.tableSetting")
252
- }, null, 8, ["description"])) : Xe((g(), B("div", zt, [
253
- Le.value ? (g(), h(a, {
254
- key: 0,
255
- justify: "space-between",
256
- style: { padding: "10px" }
257
- }, {
258
- default: A(() => {
259
- var s;
260
- return [
261
- ce("div", xt, [
262
- (s = o(p)) != null && s.slotable ? (g(), h(ve, {
263
- key: 0,
264
- designState: e.designState,
265
- designer: e.designer,
266
- widget: o(_t)(o(q), "toolbar"),
267
- dragTip: o(U).i18nt("designer.hint.draggableArea1")
268
- }, null, 8, ["designState", "designer", "widget", "dragTip"])) : z("", !0)
269
- ]),
270
- ce("div", null, [
271
- $e.value ? (g(), h(l, {
272
- key: 0,
273
- link: "",
274
- onClick: R,
275
- icon: o(Ct)
276
- }, {
277
- default: A(() => [
278
- Ye(Ze(o(U).i18nt("designer.hint.export")), 1)
279
- ]),
280
- _: 1
281
- }, 8, ["icon"])) : z("", !0)
282
- ])
283
- ];
284
- }),
285
- _: 1
286
- })) : z("", !0),
287
- (g(), h(i, K({
288
- ref_key: "fieldEditor",
289
- ref: V
290
- }, o(N), we(o(ye)), {
291
- key: o(be),
292
- "empty-text": ((S = o(N)) == null ? void 0 : S.emptyText) || o(Ae),
293
- size: r.size,
294
- defaultSort: o(H)((k = o(N)) == null ? void 0 : k.defaultSort) ? (T = o(N)) == null ? void 0 : T.defaultSort : void 0,
295
- treeProps: o(H)((te = o(N)) == null ? void 0 : te.treeProps) ? (ne = o(N)) == null ? void 0 : ne.treeProps : void 0,
296
- class: r.injectClass,
297
- style: r.injectStyle,
298
- data: Ee.value,
299
- onFilterChange: Fe,
300
- onSortChange: Oe
301
- }), Re({ _: 2 }, [
302
- pe(o(Nt)(o(q), !1), (s) => ({
303
- name: s.slotName,
304
- fn: A(() => {
305
- var se, ue;
306
- return [
307
- (s == null ? void 0 : s.slotName) === o(vt).default ? (g(), B(D, { key: 0 }, [
308
- s != null && s.default && ((se = o(p)) != null && se.slotable) ? (g(), h(fe(s == null ? void 0 : s.default), { key: 0 })) : (g(!0), B(D, { key: 1 }, pe(o(Ne)("optionItems"), (de, Tt) => (g(), h(yt, {
309
- key: de.uuid,
310
- options: de,
311
- designer: e.designer,
312
- propResultOpt: o(M),
313
- designState: e.designState,
314
- "real-table-data": F.value
315
- }, null, 8, ["options", "designer", "propResultOpt", "designState", "real-table-data"]))), 128))
316
- ], 64)) : (ue = o(p)) != null && ue.slotable ? (g(), B(D, { key: 1 }, [
317
- s != null && s.default ? (g(), h(fe(s == null ? void 0 : s.default), { key: 0 })) : z("", !0),
318
- et(ve, K(e.$props, {
319
- widget: s,
320
- "drag-class": "dragSize1"
321
- }), null, 16, ["widget"])
322
- ], 64)) : z("", !0)
323
- ];
324
- })
325
- }))
326
- ]), 1040, ["empty-text", "size", "defaultSort", "treeProps", "class", "style", "data"])),
327
- (re = o(p)) != null && re.allowPage ? (g(), h(u, {
328
- key: 1,
329
- "current-page": _.value,
330
- "onUpdate:currentPage": t[0] || (t[0] = (s) => _.value = s),
331
- "page-size": O.value,
332
- "onUpdate:pageSize": t[1] || (t[1] = (s) => O.value = s),
333
- "page-sizes": (ae = o(p)) == null ? void 0 : ae.pageSizes,
334
- hideOnSinglePage: (oe = o(p)) == null ? void 0 : oe.hideOnSinglePage,
335
- layout: (le = (ie = o(p)) == null ? void 0 : ie.layout) == null ? void 0 : le.join(","),
336
- total: $.value,
337
- onSizeChange: Te,
338
- onCurrentChange: X
339
- }, null, 8, ["current-page", "page-size", "page-sizes", "hideOnSinglePage", "layout", "total"])) : z("", !0)
340
- ])), [
341
- [c, !e.designState && I.value]
342
- ])
343
- ];
344
- }),
345
- _: 1
346
- }, 16, ["prop-options"]);
347
- };
348
- }
349
- });
350
- export {
351
- rn as default
352
- };
@@ -1,98 +0,0 @@
1
- import { defineComponent as F, computed as I, inject as T, ref as L, onMounted as M, resolveDirective as P, openBlock as a, createBlock as m, mergeProps as d, unref as o, withCtx as R, createElementBlock as s, Fragment as u, withDirectives as z, renderList as A, createTextVNode as E, toDisplayString as J } from "vue";
2
- import { e as q, t as G, f as H } from "./enum-type-b4b3fb1d.js";
3
- import { I as K } from "./widget-base-8eece820.js";
4
- import { b as Q } from "./share-field-ecce5234.js";
5
- import { _ as U } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-190ebd92.js";
6
- import { D as v } from "./drag-wrapper-679371ab.js";
7
- import { i as X, d as Y } from "./slot-a71ceeef.js";
8
- import { c as Z } from "./multirow-9fb6b652.js";
9
- import { d as ee, b as te } from "./expression-b400fa10.js";
10
- import { _ as oe } from "./_plugin-vue_export-helper-dad06003.js";
11
- import "./icon-1fc5d00d.js";
12
- import "./baseImp-5623aa34.js";
13
- import "./enum-type-5026a107.js";
14
- import "axios";
15
- import "./dialog-ba291209.js";
16
- import "./_commonjsHelpers-e7ea1525.js";
17
- import "./uuid-b91bcccf.js";
18
- import "element-plus";
19
- import "./index-37371bcf.js";
20
- import "./index-52c672dc.js";
21
- import "./fieldobj-6b2e9257.js";
22
- import "./source-map-b04aec4a.js";
23
- import "./esprima-e8d15055.js";
24
- const re = ["element-loading-text"], ae = /* @__PURE__ */ F({
25
- __name: "tmpl-widget",
26
- props: {
27
- ...K
28
- },
29
- setup(h, { expose: y }) {
30
- const c = h, { slots: f, exposed: D, attrs: i, events: k, fieldObj: x, fieldName: S, watchOption: b } = Q(c), C = I(() => X(f.value)), V = T(ee.globalConfig, {}), { getSlotFromData: $, emit$: O, rowsData: n, getValue: N, setValue: W } = Z({
31
- ...c,
32
- globalConfig: V,
33
- fieldName: S.value
34
- }), g = (e) => W(G(H(e), !0), (t) => j(t)), p = L(!1), _ = () => {
35
- b(te.data, () => {
36
- p.value = !0;
37
- }).then((e) => {
38
- var t, r;
39
- g(e), setTimeout(() => {
40
- p.value = !1;
41
- }, 1e3), (r = (t = k.value) == null ? void 0 : t.completed) == null || r.call(t, e);
42
- });
43
- }, j = (e) => {
44
- var r;
45
- const t = (r = i == null ? void 0 : i.value) != null && r.alwaysShow ? [{}] : null;
46
- return $(f.value, e || t);
47
- };
48
- return M(() => {
49
- _();
50
- }), y({
51
- ...D,
52
- refresh: _,
53
- emit$: O,
54
- setValue: g,
55
- getValue: N
56
- }), (e, t) => {
57
- const r = P("loading");
58
- return a(), m(U, d(e.$props, {
59
- "prop-options": { fieldObj: o(x) },
60
- "show-wrapper-component": !0
61
- }), {
62
- default: R(() => {
63
- var w;
64
- return [
65
- e.designState ? (a(), m(v, d({ key: 0 }, e.$props, {
66
- widget: o(Y)(C.value, "row"),
67
- dragClass: "dragSize"
68
- }), null, 16, ["widget"])) : (a(), s(u, { key: 1 }, [
69
- o(n) && ((w = o(n)) == null ? void 0 : w.length) > 0 ? z((a(), s("div", {
70
- key: 0,
71
- "element-loading-text": o(i).loadingText
72
- }, [
73
- (a(!0), s(u, null, A(o(n), (l, B) => (a(), m(v, d({
74
- key: l.key,
75
- ref_for: !0
76
- }, e.$props, {
77
- widget: l.widget[0],
78
- componentName: "div",
79
- "row-scope": { row: l.data, $index: B },
80
- componentClass: "flex full-width"
81
- }), null, 16, ["widget", "row-scope"]))), 128))
82
- ], 8, re)), [
83
- [r, o(i).showLoading && p.value]
84
- ]) : (a(), s(u, { key: 1 }, [
85
- E(J(o(i).noData || o(q).i18nt("designer.hint.noData")), 1)
86
- ], 64))
87
- ], 64))
88
- ];
89
- }),
90
- _: 1
91
- }, 16, ["prop-options"]);
92
- };
93
- }
94
- });
95
- const $e = /* @__PURE__ */ oe(ae, [["__scopeId", "data-v-e56f3e26"]]);
96
- export {
97
- $e as default
98
- };
@@ -1,82 +0,0 @@
1
- import { defineComponent as c, computed as S, resolveComponent as x, openBlock as m, createBlock as a, mergeProps as d, unref as r, withCtx as f, isRef as z, toHandlers as A, createSlots as D, renderList as I, resolveDynamicComponent as W, createCommentVNode as u } from "vue";
2
- import { e as B } from "./enum-type-b4b3fb1d.js";
3
- import { I as E } from "./field-base-1acf3ada.js";
4
- import { b as L } from "./share-field-ecce5234.js";
5
- import { g as P } from "./slot-a71ceeef.js";
6
- import T from "./form-item-wrapper-3a57150a.js";
7
- import { w as $ } from "./expression-b400fa10.js";
8
- import { D as h } from "./drag-wrapper-679371ab.js";
9
- import "./widget-base-8eece820.js";
10
- import "./multirow-9fb6b652.js";
11
- import "./baseImp-5623aa34.js";
12
- import "./enum-type-5026a107.js";
13
- import "./icon-1fc5d00d.js";
14
- import "axios";
15
- import "./dialog-ba291209.js";
16
- import "./_commonjsHelpers-e7ea1525.js";
17
- import "./uuid-b91bcccf.js";
18
- import "element-plus";
19
- import "./index-37371bcf.js";
20
- import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-190ebd92.js";
21
- import "./index-52c672dc.js";
22
- import "./_plugin-vue_export-helper-dad06003.js";
23
- import "./fieldobj-6b2e9257.js";
24
- import "./label-wrapper.vue_vue_type_style_index_0_lang-466417fc.js";
25
- import "./source-map-b04aec4a.js";
26
- import "./esprima-e8d15055.js";
27
- const H = c({ componentName: $.FieldWidget }), ge = /* @__PURE__ */ c({
28
- ...H,
29
- __name: "transfer-widget",
30
- props: { ...E },
31
- setup(g, { expose: v }) {
32
- const b = g, { fieldName: K, fieldEditor: y, fieldKey: w, fieldModel: n, rules: k, slots: C, attrs: V, extendAttrs: p, events: j, exposed: F, fieldObj: N } = L(b), O = S(() => {
33
- var t, o, i;
34
- return {
35
- ...V.value,
36
- props: {
37
- label: (t = p.value) == null ? void 0 : t.props_label,
38
- value: (o = p.value) == null ? void 0 : o.props_value,
39
- disabled: (i = p.value) == null ? void 0 : i.props_disabled
40
- }
41
- };
42
- });
43
- return v({ ...F }), (t, o) => {
44
- const i = x("el-transfer");
45
- return m(), a(T, d(t.$props, {
46
- propOptions: { fieldObj: r(N), rules: r(k) }
47
- }), {
48
- default: f(({ data: s }) => {
49
- var l;
50
- return [
51
- (m(), a(i, d({
52
- ref_key: "fieldEditor",
53
- ref: y,
54
- modelValue: r(n),
55
- "onUpdate:modelValue": o[0] || (o[0] = (e) => z(n) ? n.value = e : null)
56
- }, O.value, A(r(j)), {
57
- class: s.injectClass,
58
- key: r(w),
59
- style: s.injectStyle,
60
- size: s.size
61
- }), D({ _: 2 }, [
62
- I(r(P)(r(C), t.designState, (l = r(p)) == null ? void 0 : l.slotable), (e) => ({
63
- name: e == null ? void 0 : e.slotName,
64
- fn: f(() => [
65
- e != null && e.default ? (m(), a(W(e == null ? void 0 : e.default), { key: 0 })) : u("", !0),
66
- e != null && e.widgetList ? (m(), a(h, d({ key: 1 }, t.$props, {
67
- widget: e,
68
- dragTip: r(B).i18nt("designer.hint.draggableArea1")
69
- }), null, 16, ["widget", "dragTip"])) : u("", !0)
70
- ])
71
- }))
72
- ]), 1040, ["modelValue", "class", "style", "size"]))
73
- ];
74
- }),
75
- _: 1
76
- }, 16, ["propOptions"]);
77
- };
78
- }
79
- });
80
- export {
81
- ge as default
82
- };