hlrender 0.0.210 → 0.0.212

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 (126) hide show
  1. package/{_pdf-7b31f745.js → _pdf-dd9d617f.js} +6 -6
  2. package/{_txt-761bd6b8.js → _txt-a21fde72.js} +6 -6
  3. package/{_unsupport-be896e74.js → _unsupport-dd3bf962.js} +1 -1
  4. package/{affix-widget-a27d381f.js → affix-widget-f8f25731.js} +16 -16
  5. package/{alert-widget-608a4c9b.js → alert-widget-0d6d49f3.js} +16 -16
  6. package/{anchor-widget-ce1d4169.js → anchor-widget-5c93d87b.js} +13 -13
  7. package/{auto-complete-widget-75413fc6.js → auto-complete-widget-756d0ee0.js} +16 -16
  8. package/{avatar-widget-dc3a6b58.js → avatar-widget-edf9d793.js} +16 -16
  9. package/{backtop-widget-ac9b4594.js → backtop-widget-caaee5a8.js} +16 -16
  10. package/{badge-widget-13db4e74.js → badge-widget-6ded4262.js} +16 -16
  11. package/{barcode-widget-554da648.js → barcode-widget-4daf99cb.js} +13 -13
  12. package/{baseImp-6af978c3.js → baseImp-4ce51cd6.js} +374 -375
  13. package/{breadcrumb-widget-f3fa81bd.js → breadcrumb-widget-3a21bbc0.js} +13 -13
  14. package/{button-widget-71e6efb8.js → button-widget-bafae460.js} +16 -16
  15. package/{cache-widget-950801c4.js → cache-widget-d2162d8e.js} +15 -15
  16. package/{card-widget-c1a75b28.js → card-widget-dbe4484f.js} +14 -14
  17. package/carousel-widget-1e8b0031.js +73 -0
  18. package/{cascader-widget-713c3252.js → cascader-widget-b4fe431f.js} +15 -15
  19. package/chart-widget-6ed9ba27.js +87 -0
  20. package/{checkbox-widget-c5addadc.js → checkbox-widget-420ff097.js} +15 -15
  21. package/collapse-widget-6549d618.js +91 -0
  22. package/{color-picker-widget-b62007c1.js → color-picker-widget-d28504f6.js} +15 -15
  23. package/{cont-cell-widget-f2bc9dee.js → cont-cell-widget-999f8900.js} +1 -1
  24. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d670e895.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-6e738075.js} +5 -5
  25. package/{cont-widget-2dd7b49a.js → cont-widget-c6f6d2c2.js} +5 -5
  26. package/{content-wrapper-df13af9e.js → content-wrapper-a0db733f.js} +7 -7
  27. package/{content-wrapper.vue_vue_type_script_setup_true_lang-b34bf827.js → content-wrapper.vue_vue_type_script_setup_true_lang-23faa105.js} +3 -3
  28. package/{date-picker-range-widget-fd96b715.js → date-picker-range-widget-954535f4.js} +15 -15
  29. package/{date-picker-widget-71bcafbd.js → date-picker-widget-9f0893f8.js} +15 -15
  30. package/default-slot-widget-d0992d9b.js +26 -0
  31. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-c59bd84e.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-36c801b7.js} +7 -7
  32. package/{descriptions-widget-9d7522e6.js → descriptions-widget-2bc55e0d.js} +14 -14
  33. package/{dialog-48147b3c.js → dialog-353b521c.js} +2 -2
  34. package/{dialog-widget-79d78ce2.js → dialog-widget-8af12479.js} +15 -15
  35. package/{divider-widget-9703cc2f.js → divider-widget-f7bd53ee.js} +16 -16
  36. package/{drag-wrapper-1006bc1a.js → drag-wrapper-bdad156a.js} +7 -7
  37. package/{drawer-widget-cb78aa71.js → drawer-widget-140100a7.js} +15 -15
  38. package/{dropdown-widget-545a36db.js → dropdown-widget-b375b8fc.js} +14 -14
  39. package/{empty-widget-ed321b1d.js → empty-widget-51e29154.js} +16 -16
  40. package/{enum-type-5fc48be3.js → enum-type-532cf144.js} +1 -1
  41. package/{enum-type-9b7b06fd.js → enum-type-c9764247.js} +127 -120
  42. package/{expression-0953e6ca.js → expression-e70c07f4.js} +3 -3
  43. package/feedback-widget-fa10304d.js +26 -0
  44. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-13bbe8e9.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-b9bd0500.js} +5 -5
  45. package/{fieldobj-39e632fe.js → fieldobj-efecd1a3.js} +1 -1
  46. package/{file-upload-widget-2839c52d.js → file-upload-widget-db1b2a41.js} +20 -20
  47. package/{form-item-wrapper-1e795c53.js → form-item-wrapper-3063f304.js} +11 -11
  48. package/{form-widget-887dec4a.js → form-widget-ec09001b.js} +10 -10
  49. package/{grid-col-widget-76fd65b3.js → grid-col-widget-2158349f.js} +1 -1
  50. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-306391f3.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-400c74e2.js} +5 -5
  51. package/{grid-widget-5b779b68.js → grid-widget-adb0e7b2.js} +5 -5
  52. package/{html-text-widget-6bcc7935.js → html-text-widget-c3758395.js} +14 -14
  53. package/{icon-widget-f8bd6550.js → icon-widget-e1265c7f.js} +13 -13
  54. package/{iframe-widget-d59c098d.js → iframe-widget-81668a81.js} +13 -13
  55. package/{image-widget-7552b345.js → image-widget-d12b472e.js} +13 -13
  56. package/{index-afa118cb.js → index-931e24bb.js} +1 -1
  57. package/{index-dc41b25c.js → index-af03d571.js} +585 -564
  58. package/{index-eda67d42.js → index-c913b518.js} +4 -4
  59. package/{input-number-widget-e1152415.js → input-number-widget-4c39789f.js} +15 -15
  60. package/{input-widget-703b2503.js → input-widget-2ee9ba05.js} +16 -16
  61. package/{label-wrapper-9fa217cc.js → label-wrapper-4b53a515.js} +5 -5
  62. package/{label-wrapper.vue_vue_type_style_index_0_lang-212a221d.js → label-wrapper.vue_vue_type_style_index_0_lang-9b26652d.js} +3 -3
  63. package/{link-widget-af1946d6.js → link-widget-2a1cc9e7.js} +16 -16
  64. package/{ltable-col-widget-cd57522e.js → ltable-col-widget-11c939ce.js} +1 -1
  65. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d8a24757.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-b498937b.js} +9 -9
  66. package/{ltable-widget-225e34f4.js → ltable-widget-b652e5bf.js} +5 -5
  67. package/{menu-widget-105cdb95.js → menu-widget-afe65f10.js} +14 -14
  68. package/{model-widget-d1b2a1cf.js → model-widget-ed36f9d7.js} +13 -13
  69. package/{multirow-f060a97e.js → multirow-ba2adc70.js} +6 -6
  70. package/{multirow-widget-23a65dca.js → multirow-widget-da10edb2.js} +15 -15
  71. package/package.json +1 -1
  72. package/{pagination-widget-26e81d24.js → pagination-widget-f3f61ec9.js} +13 -13
  73. package/{picture-upload-widget-e5a376ca.js → picture-upload-widget-befb6bd5.js} +16 -16
  74. package/{progress-widget-461fa093.js → progress-widget-0b74af7d.js} +14 -14
  75. package/{qrcode-widget-62bc94b1.js → qrcode-widget-3df58067.js} +13 -13
  76. package/{radio-widget-35a4cf28.js → radio-widget-ae28a029.js} +15 -15
  77. package/{range-widget-5ec90044.js → range-widget-47635e45.js} +16 -16
  78. package/{rate-widget-39dd1702.js → rate-widget-253c1c2b.js} +15 -15
  79. package/render.es.js +32 -32
  80. package/render.style.css +1 -1
  81. package/render.umd.js +253 -253
  82. package/{result-widget-c0e27c4a.js → result-widget-a372086d.js} +14 -14
  83. package/{rich-editor-widget-1bbc2c7d.js → rich-editor-widget-acd2a801.js} +15 -15
  84. package/{router-widget-cb64ad20.js → router-widget-e1e1e459.js} +13 -13
  85. package/{select-widget-700ecefb.js → select-widget-fed81414.js} +15 -15
  86. package/{sfc-6146205d.js → sfc-03da9e63.js} +8 -8
  87. package/{sfcview-8a13cf9e.js → sfcview-5aaba0de.js} +7 -7
  88. package/{share-field-970c4072.js → share-field-2d6d418f.js} +8 -8
  89. package/{share-file-c44cc52c.js → share-file-4d5e3157.js} +6 -6
  90. package/{slider-widget-e96cced2.js → slider-widget-63400a3d.js} +15 -15
  91. package/slot-ca85fdf0.js +324 -0
  92. package/{static-text-widget-eacdb5b5.js → static-text-widget-2e36d547.js} +14 -14
  93. package/{steps-widget-b90dbc1e.js → steps-widget-e6d8da1e.js} +13 -13
  94. package/{subMenu-widget-eb41af47.js → subMenu-widget-f956ee70.js} +8 -8
  95. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-1c7e98f8.js → subMenu-widget.vue_vue_type_script_setup_true_lang-9337b736.js} +3 -3
  96. package/{switch-widget-d4deff5e.js → switch-widget-5156568a.js} +15 -15
  97. package/{tab-pane-widget-3bbcd442.js → tab-pane-widget-c713d287.js} +1 -1
  98. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-985fe319.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-48d0dfc3.js} +5 -5
  99. package/table-col-widget-04c999d6.js +22 -0
  100. package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-dbcc51d4.js +109 -0
  101. package/table-widget-3dd1560e.js +312 -0
  102. package/{tabs-widget-06fcc885.js → tabs-widget-31c6228c.js} +7 -7
  103. package/{tag-widget-3fc4bbca.js → tag-widget-5ae8752f.js} +16 -16
  104. package/{text-widget-49574f2a.js → text-widget-9e37cfbe.js} +16 -16
  105. package/{textarea-widget-94da75fb.js → textarea-widget-1f06ef4e.js} +15 -15
  106. package/{time-picker-range-widget-55007e8b.js → time-picker-range-widget-4998d580.js} +15 -15
  107. package/{time-picker-widget-4741898b.js → time-picker-widget-ca936632.js} +15 -15
  108. package/{time-select-widget-8d9013ed.js → time-select-widget-58a4b6e6.js} +15 -15
  109. package/{tmpl-widget-57c02ff4.js → tmpl-widget-64424f8f.js} +14 -14
  110. package/{tree-select-widget-63c01f05.js → tree-select-widget-b796e333.js} +15 -15
  111. package/{tree-widget-3d0c40d8.js → tree-widget-11c15844.js} +13 -13
  112. package/{uuid-f48611de.js → uuid-8a9f2bd8.js} +1 -1
  113. package/{verifycode-widget-6b66824e.js → verifycode-widget-d77dd118.js} +13 -13
  114. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c6d8d6a5.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-ca95dfe9.js} +7 -7
  115. package/wrapper-widget-2b9366d0.js +84 -0
  116. package/carousel-widget-c6532beb.js +0 -75
  117. package/chart-widget-5c6ab1eb.js +0 -80
  118. package/collapse-widget-1c080c3e.js +0 -89
  119. package/default-slot-widget-19085177.js +0 -26
  120. package/feedback-widget-70e09abc.js +0 -26
  121. package/propresult-b950a881.js +0 -22
  122. package/slot-c57ca8dc.js +0 -317
  123. package/table-col-widget-01e2e62d.js +0 -22
  124. package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5c097dc4.js +0 -91
  125. package/table-widget-2f0d771d.js +0 -305
  126. package/wrapper-widget-fc088664.js +0 -84
@@ -1,80 +0,0 @@
1
- import { defineComponent as v, ref as S, onMounted as b, resolveComponent as B, resolveDirective as E, openBlock as a, createBlock as _, mergeProps as g, unref as e, withCtx as F, withDirectives as H, createElementBlock as W, toHandlers as $ } from "vue";
2
- import { I as j } from "./field-base-5547436d.js";
3
- import { b as A } from "./share-field-970c4072.js";
4
- import { _ as D } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c6d8d6a5.js";
5
- import { R as I, e as P } from "./enum-type-9b7b06fd.js";
6
- import { w as V } from "./expression-0953e6ca.js";
7
- import { f as J } from "./baseImp-6af978c3.js";
8
- import "./widget-base-4c2d6265.js";
9
- import "./multirow-f060a97e.js";
10
- import "./index-dc41b25c.js";
11
- import "./uuid-f48611de.js";
12
- import "./enum-type-5fc48be3.js";
13
- import "./_commonjsHelpers-e7ea1525.js";
14
- import "./slot-c57ca8dc.js";
15
- import "./icon-a0e0cdb0.js";
16
- import "./index-afa118cb.js";
17
- import "./_plugin-vue_export-helper-dad06003.js";
18
- import "./fieldobj-39e632fe.js";
19
- import "./source-map-b04aec4a.js";
20
- import "./esprima-e8d15055.js";
21
- import "./dialog-48147b3c.js";
22
- import "element-plus";
23
- const M = v({ componentName: V.FieldWidget }), mt = /* @__PURE__ */ v({
24
- ...M,
25
- __name: "chart-widget",
26
- props: { ...j },
27
- setup(y, { expose: w }) {
28
- const m = y, { fieldEditor: l, attrs: c, events: k, exposed: x, extendAttrs: s, fieldObj: C, watchOption: O } = A(m), p = S(!1), d = (o = !1) => {
29
- O(o, "dataSource", () => {
30
- p.value = !0;
31
- }, (r) => {
32
- f(r), setTimeout(() => {
33
- p.value = !1;
34
- }, 1e3);
35
- });
36
- }, f = (o) => {
37
- var r;
38
- if ((r = c.value) != null && r.chartOption)
39
- try {
40
- import("./index-41ca1a9d.js").then((i) => {
41
- var t, n;
42
- i.init(l.value).setOption((n = (t = c.value) == null ? void 0 : t.chartOption) == null ? void 0 : n.call(t, o));
43
- });
44
- } catch (i) {
45
- J.error(i + "" || "chart error");
46
- }
47
- };
48
- return b(() => {
49
- m.designState || d(!0);
50
- }), w({ ...x, refresh: d, setValue: f }), (o, r) => {
51
- const i = B("el-empty"), u = E("loading");
52
- return a(), _(D, g(o.$props, {
53
- "prop-options": { fieldObj: e(C) }
54
- }), {
55
- default: F(() => {
56
- var t, n, h;
57
- return [
58
- o.designState ? (a(), _(i, {
59
- key: 1,
60
- description: e(P).i18nt("designer.hint.chartSetting")
61
- }, null, 8, ["description"])) : H((a(), W("div", g({
62
- key: 0,
63
- ref_key: "fieldEditor",
64
- ref: l,
65
- style: { minHeight: "100px", minWidth: "100px", width: (t = e(s)) == null ? void 0 : t.ctrlWidth, height: (n = e(s)) == null ? void 0 : n.ctrlHeight }
66
- }, $(e(k), !0), {
67
- class: e(I)((h = e(s)) == null ? void 0 : h.customClass)
68
- }), null, 16)), [
69
- [u, p.value]
70
- ])
71
- ];
72
- }),
73
- _: 1
74
- }, 16, ["prop-options"]);
75
- };
76
- }
77
- });
78
- export {
79
- mt as default
80
- };
@@ -1,89 +0,0 @@
1
- import { defineComponent as g, computed as S, ref as $, resolveComponent as f, openBlock as r, createBlock as s, mergeProps as i, unref as l, withCtx as p, toHandlers as D, isRef as G, createElementBlock as H, Fragment as K, renderList as L, resolveDynamicComponent as _ } from "vue";
2
- import { I as N } from "./field-base-5547436d.js";
3
- import { _ as T } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c6d8d6a5.js";
4
- import { b as U } from "./share-field-970c4072.js";
5
- import { w as h } from "./expression-0953e6ca.js";
6
- import { g as q, b as z } from "./baseImp-6af978c3.js";
7
- import { u as A } from "./propresult-b950a881.js";
8
- import { u as J } from "./icon-a0e0cdb0.js";
9
- import "./widget-base-4c2d6265.js";
10
- import "./enum-type-9b7b06fd.js";
11
- import "./index-dc41b25c.js";
12
- import "./uuid-f48611de.js";
13
- import "./enum-type-5fc48be3.js";
14
- import "./_commonjsHelpers-e7ea1525.js";
15
- import "./index-afa118cb.js";
16
- import "./_plugin-vue_export-helper-dad06003.js";
17
- import "./fieldobj-39e632fe.js";
18
- import "./multirow-f060a97e.js";
19
- import "./slot-c57ca8dc.js";
20
- import "./source-map-b04aec4a.js";
21
- import "./esprima-e8d15055.js";
22
- import "./dialog-48147b3c.js";
23
- import "element-plus";
24
- const M = g({ componentName: h.FieldWidget }), Fe = /* @__PURE__ */ g({
25
- ...M,
26
- __name: "collapse-widget",
27
- props: { ...N },
28
- setup(v, { expose: y }) {
29
- const a = v, { fieldEditor: F, fieldKey: V, attrs: x, events: b, optionItems: k, exposed: C, activeOptionItems: w, fieldObj: I } = U(a), n = S({
30
- get: () => {
31
- var o;
32
- return c.value || ((o = w.value) == null ? void 0 : o.map((t) => t == null ? void 0 : t.name));
33
- },
34
- set: (o) => {
35
- c.value = o;
36
- }
37
- }), c = $(), P = () => n.value, j = (o) => {
38
- c.value = o;
39
- }, { instance: B } = J(), m = q({ instance: B }), { getPropResultForm: O } = A(a), u = (o) => {
40
- const { getWidgetOptionByPropValue: t } = z(a.widget, O());
41
- return t(o);
42
- };
43
- return y({ ...C, getValue: P, setValue: j }), (o, t) => {
44
- const E = f("el-collapse-item"), R = f("el-collapse");
45
- return r(), s(T, i(o.$props, {
46
- "prop-options": { fieldObj: l(I) }
47
- }), {
48
- default: p(({ data: d }) => [
49
- (r(), s(R, i({
50
- ref_key: "fieldEditor",
51
- ref: F,
52
- key: l(V)
53
- }, l(x), D(l(b)), {
54
- modelValue: l(n),
55
- "onUpdate:modelValue": t[0] || (t[0] = (e) => G(n) ? n.value = e : null),
56
- class: d.injectClass,
57
- style: d.injectStyle
58
- }), {
59
- default: p(() => [
60
- (r(!0), H(K, null, L(l(k), (e, W) => (r(), s(E, i(e, {
61
- key: W,
62
- name: e == null ? void 0 : e.name
63
- }), {
64
- title: p(() => [
65
- (r(), s(_(u(e == null ? void 0 : e.slotTitle)), {
66
- scope: e,
67
- ctx: l(m)
68
- }, null, 8, ["scope", "ctx"]))
69
- ]),
70
- default: p(() => [
71
- (r(), s(_(u(e == null ? void 0 : e.slotContent)), {
72
- scope: e,
73
- ctx: l(m)
74
- }, null, 8, ["scope", "ctx"]))
75
- ]),
76
- _: 2
77
- }, 1040, ["name"]))), 128))
78
- ]),
79
- _: 2
80
- }, 1040, ["modelValue", "class", "style"]))
81
- ]),
82
- _: 1
83
- }, 16, ["prop-options"]);
84
- };
85
- }
86
- });
87
- export {
88
- Fe as default
89
- };
@@ -1,26 +0,0 @@
1
- import { _ as o } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-c59bd84e.js";
2
- import "vue";
3
- import "./enum-type-9b7b06fd.js";
4
- import "./field-base-5547436d.js";
5
- import "./widget-base-4c2d6265.js";
6
- import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c6d8d6a5.js";
7
- import "./index-dc41b25c.js";
8
- import "./uuid-f48611de.js";
9
- import "./enum-type-5fc48be3.js";
10
- import "./baseImp-6af978c3.js";
11
- import "./expression-0953e6ca.js";
12
- import "./source-map-b04aec4a.js";
13
- import "./_commonjsHelpers-e7ea1525.js";
14
- import "./esprima-e8d15055.js";
15
- import "./icon-a0e0cdb0.js";
16
- import "./dialog-48147b3c.js";
17
- import "element-plus";
18
- import "./index-afa118cb.js";
19
- import "./_plugin-vue_export-helper-dad06003.js";
20
- import "./fieldobj-39e632fe.js";
21
- import "./slot-c57ca8dc.js";
22
- import "./content-wrapper.vue_vue_type_script_setup_true_lang-b34bf827.js";
23
- import "./drag-wrapper-1006bc1a.js";
24
- export {
25
- o as default
26
- };
@@ -1,26 +0,0 @@
1
- import { _ as o } from "./feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-13bbe8e9.js";
2
- import "vue";
3
- import "./widget-base-4c2d6265.js";
4
- import "./drag-wrapper-1006bc1a.js";
5
- import "./enum-type-9b7b06fd.js";
6
- import "./baseImp-6af978c3.js";
7
- import "./enum-type-5fc48be3.js";
8
- import "./expression-0953e6ca.js";
9
- import "./source-map-b04aec4a.js";
10
- import "./uuid-f48611de.js";
11
- import "./_commonjsHelpers-e7ea1525.js";
12
- import "./esprima-e8d15055.js";
13
- import "./icon-a0e0cdb0.js";
14
- import "./dialog-48147b3c.js";
15
- import "element-plus";
16
- import "./index-dc41b25c.js";
17
- import "./slot-c57ca8dc.js";
18
- import "./_plugin-vue_export-helper-dad06003.js";
19
- import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c6d8d6a5.js";
20
- import "./index-afa118cb.js";
21
- import "./fieldobj-39e632fe.js";
22
- import "./share-field-970c4072.js";
23
- import "./multirow-f060a97e.js";
24
- export {
25
- o as default
26
- };
@@ -1,22 +0,0 @@
1
- import { d as n } from "./expression-0953e6ca.js";
2
- import { u as i } from "./icon-a0e0cdb0.js";
3
- import { inject as a } from "vue";
4
- function d(e) {
5
- const { instance: g } = i();
6
- return {
7
- getPropResultForm: () => {
8
- var t;
9
- return {
10
- instance: g,
11
- designState: e == null ? void 0 : e.designState,
12
- designer: e == null ? void 0 : e.designer,
13
- formData: a(n.globalModel),
14
- globalConfig: a(n.globalConfig),
15
- pageConfig: (t = e == null ? void 0 : e.designer) == null ? void 0 : t.pageConfig
16
- };
17
- }
18
- };
19
- }
20
- export {
21
- d as u
22
- };
package/slot-c57ca8dc.js DELETED
@@ -1,317 +0,0 @@
1
- var _ = Object.defineProperty;
2
- var O = (e, t, o) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
- var T = (e, t, o) => (O(e, typeof t != "symbol" ? t + "" : t, o), o);
4
- import { inject as p, provide as S, computed as g } from "vue";
5
- import { d, b, r as B, s as G } from "./expression-0953e6ca.js";
6
- import { B as V } from "./baseImp-6af978c3.js";
7
- import { c as A, i as q, m as N, j as W, o as x } from "./enum-type-9b7b06fd.js";
8
- class $ {
9
- constructor() {
10
- /**
11
- * 当前表单引用库
12
- * 假设表单组件位于表单form中,则该引用注册入库
13
- */
14
- T(this, "formRefList", {});
15
- /**
16
- * 全局引用库
17
- */
18
- T(this, "globalRefList", {});
19
- /**
20
- * 全局数据对象
21
- */
22
- T(this, "globalDataModel", {});
23
- /**
24
- * 当前表单名称
25
- */
26
- T(this, "globalFormName", "");
27
- /**
28
- * 全局页面名称
29
- */
30
- // globalPageName?: string = "";
31
- /**
32
- * 用于类似template组件的数据绑定传递
33
- */
34
- T(this, "rowScope", {});
35
- /**
36
- * 渲染器调用者传入的配置参数,如接口地址、密钥等
37
- */
38
- T(this, "globalConfig", {});
39
- }
40
- static globalInject() {
41
- const t = new $();
42
- return t.formRefList = p(d.refList, {}), t.globalRefList = p(d.allRefList, {}), t.globalDataModel = p(d.globalModel, {}), t.rowScope = p(d.rowScope, {}), t.globalFormName = p(d.globalForm, ""), t.globalConfig = p(d.globalConfig, {}), t;
43
- }
44
- static globalProvide(t) {
45
- if ((t == null ? void 0 : t.globalDataModel) !== void 0) {
46
- const o = (t == null ? void 0 : t.globalDataModel) || {};
47
- S(d.globalModel, o);
48
- }
49
- if ((t == null ? void 0 : t.rowScope) !== void 0) {
50
- const o = (t == null ? void 0 : t.rowScope) || {};
51
- S(d.rowScope, o);
52
- }
53
- if ((t == null ? void 0 : t.globalRefList) !== void 0) {
54
- const o = (t == null ? void 0 : t.globalRefList) || {};
55
- S(d.allRefList, o);
56
- }
57
- if ((t == null ? void 0 : t.formRefList) !== void 0) {
58
- const o = (t == null ? void 0 : t.formRefList) || {};
59
- S(d.refList, o);
60
- }
61
- if ((t == null ? void 0 : t.globalFormName) !== void 0) {
62
- const o = (t == null ? void 0 : t.globalFormName) || "";
63
- S(d.globalForm, o);
64
- }
65
- if ((t == null ? void 0 : t.globalConfig) !== void 0) {
66
- const o = (t == null ? void 0 : t.globalConfig) || "";
67
- S(d.globalConfig, o);
68
- }
69
- }
70
- }
71
- function ot(e) {
72
- const t = (c, R = !1) => V.getOptions(e == null ? void 0 : e.widget, c, R, !(e != null && e.designState)), o = g(() => t(b.ctrlWidth) || "auto"), l = g(() => t(b.ctrlHeight) || "auto"), n = g(() => t(b.displayLayout)), r = g(() => {
73
- var c = t(b.customClass);
74
- return Array.isArray(c) ? c == null ? void 0 : c.join(" ") : c;
75
- }), y = g(() => {
76
- var c = t(b.componentWrapperClass);
77
- return Array.isArray(c) ? c == null ? void 0 : c.join(" ") : c;
78
- }), i = g(() => t(b.css)), s = g(() => {
79
- var c = t(b.componentRootClass);
80
- return Array.isArray(c) ? c == null ? void 0 : c.join(" ") : c;
81
- }), a = g(() => {
82
- var c, R;
83
- return (R = A((c = t(b.required, !0)) == null ? void 0 : c.options)) == null ? void 0 : R.enable;
84
- }), f = g(() => t(b.hidden)), w = g(() => t(b.labelTooltip)), C = g(() => t(b.labelIconClass)), h = g(() => t(b.labelIconPosition)), u = g(() => t(b.labelHidden)), F = g(() => t(b.label)), L = g(() => t(b.labelWidth)), m = g(() => t(b.labelAlign));
85
- return {
86
- //size,
87
- attrs: g(() => ({
88
- required: a.value,
89
- label: F.value,
90
- labelHidden: u.value,
91
- labelAlign: m.value,
92
- labelIconClass: C.value,
93
- labelIconPosition: h.value,
94
- labelTooltip: w.value,
95
- labelWidth: L.value,
96
- ctrlWidth: o.value
97
- })),
98
- labelAlign: m,
99
- labelHidden: u,
100
- labelIconClass: C,
101
- labelIconPosition: h,
102
- labelTooltip: w,
103
- labelWidth: L,
104
- label: F,
105
- displayLayout: n,
106
- hidden: f,
107
- // required,
108
- ctrlWidth: o,
109
- ctrlHeight: l,
110
- customClass: r,
111
- componentWrapperClass: y,
112
- componentRootClass: s,
113
- css: i
114
- };
115
- }
116
- const E = (e = "") => new Promise((t) => {
117
- import("./index-3aaf8638.js").then((o) => {
118
- const l = o.parse(e, {
119
- positions: !0,
120
- parseValue: !1
121
- }), n = [];
122
- o.walk(l, {
123
- visit: "Rule",
124
- enter(r) {
125
- const y = o.generate(r.prelude), i = {};
126
- o.walk(r, {
127
- visit: "Declaration",
128
- enter(s) {
129
- s.property && (i[s.property] = o.generate(s.value));
130
- }
131
- }), n.push({ selector: y, declarations: i });
132
- }
133
- }), t(n);
134
- });
135
- }), K = (e) => new Promise((t) => {
136
- import("./index-3aaf8638.js").then((o) => {
137
- const l = z(e), n = o.parse(l, { context: "stylesheet" });
138
- t(o.generate(n));
139
- });
140
- });
141
- function z(e) {
142
- return e.map((o) => {
143
- var n, r, y;
144
- const l = (y = (r = (n = Object.entries(o.declarations)) == null ? void 0 : n.filter(([i, s]) => !q(s) && s !== "")) == null ? void 0 : r.sort(([i], [s]) => i > s ? 1 : -1)) == null ? void 0 : y.map(([i, s]) => `${i}: ${s};`);
145
- return `${o.selector} { ${l.join(" ")} }`;
146
- }).join(`
147
- `);
148
- }
149
- const J = () => new Promise((e) => {
150
- import("./acorn-a3705767.js").then((t) => {
151
- e(t);
152
- });
153
- });
154
- function Q(e) {
155
- return new Promise((t) => {
156
- J().then((o) => {
157
- var l = U(o, e);
158
- t(l);
159
- });
160
- });
161
- }
162
- function U(e, t) {
163
- var r, y;
164
- const o = e.parse(t, {
165
- ecmaVersion: "latest",
166
- sourceType: "script",
167
- ranges: !0
168
- // ←←← 必须启用,才能 slice 源码
169
- }), l = [], n = [];
170
- for (const i of o.body) {
171
- if (i.type === "FunctionDeclaration" && ((r = i.id) != null && r.name) && i.range) {
172
- const s = i.id.name, a = t.slice(i.range[0], i.range[1]);
173
- l.push({ name: s, text: a });
174
- }
175
- if (i.type === "ClassDeclaration" && ((y = i.id) != null && y.name) && i.range) {
176
- const s = i.id.name, a = t.slice(i.range[0], i.range[1]);
177
- n.push({ name: s, text: a });
178
- }
179
- }
180
- return { functions: l, classes: n };
181
- }
182
- const X = () => {
183
- const e = "v_form_global_css", t = (s = "", a = e) => {
184
- var f = n(s, a);
185
- l(f);
186
- }, o = (s = "", a = "", f = e) => {
187
- if (!s)
188
- return;
189
- let w = document.getElementsByTagName("head")[0];
190
- if (w)
191
- try {
192
- var C = n(a, f);
193
- l(f), l(C);
194
- let h = document.createElement("style");
195
- if (!h)
196
- return;
197
- h.type = "text/css", h.id = a ? f + "-" + a : f;
198
- try {
199
- h.appendChild(document.createTextNode(s.toString()));
200
- } catch {
201
- h.innerHTML = s.toString();
202
- }
203
- w.appendChild(h);
204
- } catch (h) {
205
- N.error("insert css to head fail", h);
206
- }
207
- }, l = (s) => {
208
- let a = document.getElementById(s);
209
- try {
210
- a && a.parentNode && a.parentNode.removeChild(a);
211
- } catch (f) {
212
- console.log(f, a);
213
- }
214
- }, n = (s, a) => s ? a + "-" + s : a, r = "v_form_global_functions";
215
- return {
216
- insertCustomCssToHead: o,
217
- insertGlobalFunctionsToHtml: (s, a = "") => new Promise((f) => {
218
- if (!s) {
219
- f(!0);
220
- return;
221
- }
222
- try {
223
- Q(s).then((w) => {
224
- var C, h;
225
- (C = w.functions) == null || C.forEach((u) => {
226
- let F;
227
- const L = u == null ? void 0 : u.text, m = u == null ? void 0 : u.name;
228
- try {
229
- F = new Function(`return ${L}`)();
230
- } catch (H) {
231
- N.error(`Failed to compile function "${m}":`, H);
232
- return;
233
- }
234
- window[m] = F;
235
- }), (h = w.classes) == null || h.forEach((u) => {
236
- const F = u == null ? void 0 : u.text, L = u == null ? void 0 : u.name;
237
- let m;
238
- try {
239
- m = new Function(`return ${F}`)();
240
- } catch (H) {
241
- N.error(`Failed to compile class "${L}":`, H);
242
- return;
243
- }
244
- window[L] = m;
245
- }), f(!0);
246
- });
247
- } catch (w) {
248
- N.error("insert js to head fail", w), f(!0);
249
- }
250
- }),
251
- removeGlobalFunctionsToHtml: (s, a = r) => {
252
- var f = n(s, a);
253
- l(f);
254
- },
255
- removeCustomCssToHead: t
256
- };
257
- }, D = [
258
- "width",
259
- "height",
260
- "display",
261
- "margin",
262
- "margin-left",
263
- "margin-right",
264
- "margin-top",
265
- "margin-bottom"
266
- ], Y = (e, t, o) => {
267
- const l = {};
268
- return t.forEach((n) => {
269
- var r = e[n];
270
- W(r) || (l[n] = o ? o(n, r) : r);
271
- }), l;
272
- }, Z = (e, t, o) => {
273
- var n;
274
- const l = {};
275
- return (n = x(e)) == null || n.forEach((r) => {
276
- var y = e[r];
277
- t != null && t.includes(r) || (l[r] = o ? o(r, y) : y);
278
- }), l;
279
- }, M = (e, t) => ["width", "height", "display"].includes(e) ? W(t) || t == "auto" ? t : `${t} !important` : t, et = (e) => new Promise((t) => {
280
- E(e).then((o) => {
281
- var l = o == null ? void 0 : o.map((n) => ({ selector: n.selector, declarations: Y(n.declarations, D, M) }));
282
- K(l).then((n) => {
283
- t(n);
284
- });
285
- });
286
- }), nt = (e) => new Promise((t) => {
287
- E(e).then((o) => {
288
- var l = o == null ? void 0 : o.map((n) => ({ selector: n.selector, declarations: Z(n.declarations, D, M) }));
289
- K(l).then((n) => {
290
- t(n);
291
- });
292
- });
293
- }), lt = (e, t) => {
294
- if (!t || !e)
295
- return;
296
- const o = B(e, ":root", `.${t}`), { insertCustomCssToHead: l } = X();
297
- l(o, void 0, t);
298
- }, st = (e, t = !0, o) => {
299
- if (o != null && o === !1)
300
- return [];
301
- const l = k(e);
302
- return t || (e == null ? void 0 : e.length) <= 0 ? l : l == null ? void 0 : l.filter((n) => {
303
- var r;
304
- return !!(n != null && n.widgetList) && ((r = n == null ? void 0 : n.widgetList) == null ? void 0 : r.length) > 0 || !!n.default || (n == null ? void 0 : n.slotName) === G.default;
305
- });
306
- }, rt = (e, t) => e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.slotName) === t), k = (e) => A(e);
307
- export {
308
- $ as F,
309
- lt as a,
310
- nt as b,
311
- ot as c,
312
- rt as d,
313
- st as g,
314
- k as i,
315
- et as p,
316
- X as u
317
- };
@@ -1,22 +0,0 @@
1
- import { _ as o } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5c097dc4.js";
2
- import "vue";
3
- import "./enum-type-9b7b06fd.js";
4
- import "./baseImp-6af978c3.js";
5
- import "./enum-type-5fc48be3.js";
6
- import "./expression-0953e6ca.js";
7
- import "./source-map-b04aec4a.js";
8
- import "./uuid-f48611de.js";
9
- import "./_commonjsHelpers-e7ea1525.js";
10
- import "./esprima-e8d15055.js";
11
- import "./icon-a0e0cdb0.js";
12
- import "./dialog-48147b3c.js";
13
- import "element-plus";
14
- import "./drag-wrapper-1006bc1a.js";
15
- import "./widget-base-4c2d6265.js";
16
- import "./index-dc41b25c.js";
17
- import "./slot-c57ca8dc.js";
18
- import "./_plugin-vue_export-helper-dad06003.js";
19
- import "./multirow-f060a97e.js";
20
- export {
21
- o as default
22
- };
@@ -1,91 +0,0 @@
1
- import { defineComponent as P, computed as V, resolveComponent as j, openBlock as d, createBlock as o, mergeProps as q, unref as e, withCtx as O, resolveDynamicComponent as R, createCommentVNode as b, createElementBlock as W, Fragment as $, renderList as z } from "vue";
2
- import { c as N, e as H } from "./enum-type-9b7b06fd.js";
3
- import { b as J, g as K } from "./baseImp-6af978c3.js";
4
- import { D as E } from "./drag-wrapper-1006bc1a.js";
5
- import { d as S } from "./slot-c57ca8dc.js";
6
- import { b as M } from "./multirow-f060a97e.js";
7
- import { g as Q } from "./uuid-f48611de.js";
8
- const U = /* @__PURE__ */ P({
9
- __name: "table-col-widget",
10
- props: {
11
- options: null,
12
- designState: { type: Boolean },
13
- designer: null,
14
- propResultOpt: null,
15
- realTableData: null
16
- },
17
- setup(n) {
18
- var v;
19
- const a = n, { attrs: p, extendAttrs: w, slots: f } = J(
20
- { options: a.options },
21
- a.propResultOpt,
22
- {
23
- s_slots: !0,
24
- s_extendAttr: !0,
25
- s_attr: !0,
26
- fn_attr: (c) => !["children"].includes(c)
27
- }
28
- ), G = V(() => {
29
- var r, i, u;
30
- var c = (r = w.value) == null ? void 0 : r.filterable, s = (i = w.value) == null ? void 0 : i.filtersDatasource, h = (u = a.realTableData) == null ? void 0 : u.map((l) => {
31
- var m;
32
- const g = (m = p.value) == null ? void 0 : m.prop;
33
- return { text: l == null ? void 0 : l[g], value: l == null ? void 0 : l[g] };
34
- });
35
- let t = s ? s == null ? void 0 : s(a.realTableData, p.value) : null;
36
- return c ? t || h : null;
37
- }), { newSlot: I } = M(), k = K({ instance: (v = a.propResultOpt) == null ? void 0 : v.instance });
38
- return (c, s) => {
39
- const h = j("el-table-column");
40
- return d(), o(h, q(e(p), { filters: e(G) }), {
41
- header: O((t) => {
42
- var r, i;
43
- return [
44
- (r = e(S)(e(f), "header")) != null && r.default ? (d(), o(R((i = e(S)(e(f), "header")) == null ? void 0 : i.default), {
45
- key: 0,
46
- scope: t,
47
- ctx: e(k)
48
- }, null, 8, ["scope", "ctx"])) : b("", !0)
49
- ];
50
- }),
51
- default: O((t) => {
52
- var r, i, u, l, g, m, y, D, T, x, C, B, A, F;
53
- return [
54
- (((i = (r = n.options) == null ? void 0 : r.children) == null ? void 0 : i.length) || 0) > 0 ? (d(!0), W($, { key: 0 }, z((u = n.options) == null ? void 0 : u.children, (L, X) => (d(), o(U, {
55
- designState: n.designState,
56
- designer: n.designer,
57
- key: L.uuid,
58
- options: L,
59
- "real-table-data": n.realTableData
60
- }, null, 8, ["designState", "designer", "options", "real-table-data"]))), 128)) : b("", !0),
61
- (l = e(w)) != null && l.slotable && (n.designState && ((m = (g = a.options) == null ? void 0 : g.default) != null && m.widgetList) || !n.designState || ((T = (D = (y = a.options) == null ? void 0 : y.default) == null ? void 0 : D.widgetList) == null ? void 0 : T.length) > 0) ? (d(), W($, { key: 1 }, [
62
- n.designState ? (d(), o(E, {
63
- key: 0,
64
- designState: n.designState,
65
- designer: n.designer,
66
- widget: e(N)((x = a.options) == null ? void 0 : x.default),
67
- dragTip: e(H).i18nt("designer.hint.draggableArea1"),
68
- "row-scope": t
69
- }, null, 8, ["designState", "designer", "widget", "dragTip", "row-scope"])) : (d(), o(E, {
70
- designState: n.designState,
71
- designer: n.designer,
72
- key: e(Q)() + (t == null ? void 0 : t.$index),
73
- widget: e(N)((B = e(I)([(C = a.options) == null ? void 0 : C.default], t, (t == null ? void 0 : t.$index) < 0 ? "header" : t == null ? void 0 : t.$index)) == null ? void 0 : B.widget[0]),
74
- "row-scope": t
75
- }, null, 8, ["designState", "designer", "widget", "row-scope"]))
76
- ], 64)) : b("", !0),
77
- (A = e(S)(e(f), "default")) != null && A.default ? (d(), o(R((F = e(S)(e(f), "default")) == null ? void 0 : F.default), {
78
- key: 2,
79
- scope: t,
80
- ctx: e(k)
81
- }, null, 8, ["scope", "ctx"])) : b("", !0)
82
- ];
83
- }),
84
- _: 1
85
- }, 16, ["filters"]);
86
- };
87
- }
88
- });
89
- export {
90
- U as _
91
- };