hlrender 0.0.201 → 0.0.203

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 (95) hide show
  1. package/{affix-widget-01984956.js → affix-widget-b34b6ab3.js} +5 -5
  2. package/{alert-widget-3bd3f4cd.js → alert-widget-087a6ec9.js} +5 -5
  3. package/{anchor-widget-2b3f18b4.js → anchor-widget-a8ba1f53.js} +3 -3
  4. package/{auto-complete-widget-2cbb008a.js → auto-complete-widget-6b8c3955.js} +4 -4
  5. package/{avatar-widget-d1108ad6.js → avatar-widget-59b1f313.js} +5 -5
  6. package/{backtop-widget-1b8fa8f7.js → backtop-widget-94662ea2.js} +5 -5
  7. package/{badge-widget-b823a6d1.js → badge-widget-b5f32d06.js} +5 -5
  8. package/{barcode-widget-18de3d18.js → barcode-widget-da1c9795.js} +3 -3
  9. package/{breadcrumb-widget-eb963780.js → breadcrumb-widget-11f99209.js} +3 -3
  10. package/{button-widget-37fe1d2b.js → button-widget-09acf958.js} +5 -5
  11. package/{cache-widget-a45745a1.js → cache-widget-a4846ef3.js} +3 -3
  12. package/{card-widget-74937a78.js → card-widget-5d61833d.js} +4 -4
  13. package/{carousel-widget-d753a733.js → carousel-widget-2dda294f.js} +3 -3
  14. package/{cascader-widget-168c9ebd.js → cascader-widget-2bc949c0.js} +3 -3
  15. package/{chart-widget-cda6f103.js → chart-widget-9f91c6e5.js} +3 -3
  16. package/{checkbox-widget-5d80c960.js → checkbox-widget-e41b4386.js} +3 -3
  17. package/{collapse-widget-e4f0fb07.js → collapse-widget-613c3ecc.js} +3 -3
  18. package/{color-picker-widget-012a962b.js → color-picker-widget-7bb30c04.js} +3 -3
  19. package/{cont-cell-widget-0f398cba.js → cont-cell-widget-fca33366.js} +1 -1
  20. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-14defd89.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d260b1c6.js} +3 -3
  21. package/{cont-widget-f83910ba.js → cont-widget-f4e8efec.js} +3 -3
  22. package/{date-picker-range-widget-cff89500.js → date-picker-range-widget-81b01093.js} +3 -3
  23. package/{date-picker-widget-8c4b2534.js → date-picker-widget-b0fd0e1a.js} +3 -3
  24. package/{default-slot-widget-47f401ce.js → default-slot-widget-e57d3045.js} +3 -3
  25. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-a552a4be.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-b3819feb.js} +2 -2
  26. package/{descriptions-widget-4addc4c7.js → descriptions-widget-9fecf96b.js} +4 -4
  27. package/{dialog-widget-815c80a1.js → dialog-widget-4dd2562d.js} +5 -5
  28. package/{divider-widget-925d418b.js → divider-widget-905e9e96.js} +5 -5
  29. package/{drag-wrapper-de9be57d.js → drag-wrapper-2f120687.js} +2 -2
  30. package/{drawer-widget-5444a0c0.js → drawer-widget-8d4b45ab.js} +5 -5
  31. package/{dropdown-widget-980baf81.js → dropdown-widget-69acc090.js} +4 -4
  32. package/{empty-widget-b810eafb.js → empty-widget-be697a8e.js} +5 -5
  33. package/{feedback-widget-98708e19.js → feedback-widget-5d2a548d.js} +5 -5
  34. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-0bdb5053.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-1ae60c01.js} +3 -3
  35. package/{file-upload-widget-3126e728.js → file-upload-widget-4352415f.js} +5 -5
  36. package/form-widget-7d289a8d.js +230 -0
  37. package/{grid-col-widget-1e3755fc.js → grid-col-widget-04274091.js} +1 -1
  38. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-5f050ef2.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-51992ecc.js} +3 -3
  39. package/{grid-widget-d6f4ce7f.js → grid-widget-29453274.js} +3 -3
  40. package/{html-text-widget-e997e2ec.js → html-text-widget-a5c61ef5.js} +3 -3
  41. package/{icon-widget-5f8d6b85.js → icon-widget-1efa3076.js} +3 -3
  42. package/{iframe-widget-37713ad4.js → iframe-widget-b1e41cbb.js} +3 -3
  43. package/{image-widget-0f84aa93.js → image-widget-2d7a431f.js} +3 -3
  44. package/{input-number-widget-d642316d.js → input-number-widget-71757acd.js} +3 -3
  45. package/{input-widget-f5a85bb5.js → input-widget-1f4cd09b.js} +4 -4
  46. package/{link-widget-8ef800c5.js → link-widget-ecd70613.js} +5 -5
  47. package/{ltable-col-widget-2163c281.js → ltable-col-widget-f9f22cb1.js} +1 -1
  48. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-330519b7.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-f1efe637.js} +3 -3
  49. package/{ltable-widget-9535b0b0.js → ltable-widget-65af6d0b.js} +3 -3
  50. package/{menu-widget-70e03b60.js → menu-widget-5e376acd.js} +3 -3
  51. package/{model-widget-cdea91c7.js → model-widget-09b14a93.js} +3 -3
  52. package/{multirow-b0df65a6.js → multirow-e135eced.js} +1 -1
  53. package/{multirow-widget-62f63080.js → multirow-widget-1fbdd7dd.js} +4 -4
  54. package/package.json +1 -1
  55. package/{pagination-widget-cac6d5e8.js → pagination-widget-ecbd536a.js} +3 -3
  56. package/{picture-upload-widget-ee543b0d.js → picture-upload-widget-759e7f76.js} +4 -4
  57. package/{progress-widget-ca7ea304.js → progress-widget-b76992b5.js} +4 -4
  58. package/{qrcode-widget-92d4793e.js → qrcode-widget-35c60fcd.js} +3 -3
  59. package/{radio-widget-ec65fc97.js → radio-widget-58bfa63f.js} +3 -3
  60. package/{range-widget-2978212c.js → range-widget-be815cf3.js} +4 -4
  61. package/{rate-widget-1460ddde.js → rate-widget-6a4075d4.js} +3 -3
  62. package/render.es.js +986 -978
  63. package/render.style.css +1 -1
  64. package/render.umd.js +189 -189
  65. package/{result-widget-a9ebf939.js → result-widget-359135f4.js} +4 -4
  66. package/{rich-editor-widget-bee3b659.js → rich-editor-widget-ac3161e0.js} +3 -3
  67. package/{router-widget-202c76b6.js → router-widget-f6d1c75a.js} +3 -3
  68. package/{select-widget-4944eaa4.js → select-widget-d4989abd.js} +3 -3
  69. package/{sfc-d8640942.js → sfc-40afdac3.js} +1 -1
  70. package/{share-field-33bed9fb.js → share-field-c61f1afe.js} +131 -130
  71. package/{share-file-a6294200.js → share-file-3ca6a471.js} +1 -1
  72. package/{slider-widget-e43a8310.js → slider-widget-1e6436c1.js} +3 -3
  73. package/slot-4c3b89ad.js +317 -0
  74. package/{static-text-widget-51e52e92.js → static-text-widget-80a8d2b5.js} +3 -3
  75. package/{steps-widget-0dcfd664.js → steps-widget-c9812a99.js} +3 -3
  76. package/{switch-widget-7d9065d3.js → switch-widget-6bacae5b.js} +3 -3
  77. package/{tab-pane-widget-3b2d74c3.js → tab-pane-widget-45f26421.js} +1 -1
  78. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-117fa09b.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-f72d9c5b.js} +3 -3
  79. package/{table-col-widget-9282e34a.js → table-col-widget-24abdd34.js} +4 -4
  80. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-4562e88c.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-95525ebb.js} +3 -3
  81. package/{table-widget-ae2a296e.js → table-widget-75532a52.js} +5 -5
  82. package/{tabs-widget-99c5a2eb.js → tabs-widget-1863555d.js} +2 -2
  83. package/{tag-widget-d6549de3.js → tag-widget-0cf14c18.js} +5 -5
  84. package/{text-widget-7be180e6.js → text-widget-730fce81.js} +5 -5
  85. package/{textarea-widget-4c60a73c.js → textarea-widget-2fcdb60d.js} +3 -3
  86. package/{time-picker-range-widget-40493bad.js → time-picker-range-widget-9db5fe7a.js} +3 -3
  87. package/{time-picker-widget-88bcac2a.js → time-picker-widget-3408e295.js} +3 -3
  88. package/{time-select-widget-c87dadbe.js → time-select-widget-4a3a9bc4.js} +3 -3
  89. package/{tmpl-widget-14f305d2.js → tmpl-widget-6742bc50.js} +4 -4
  90. package/{tree-select-widget-f4c1edc6.js → tree-select-widget-40dbf8fe.js} +3 -3
  91. package/{tree-widget-08a43889.js → tree-widget-23ce3c0c.js} +3 -3
  92. package/{verifycode-widget-10f54ed3.js → verifycode-widget-685c2e30.js} +3 -3
  93. package/{wrapper-widget-b13f1dd0.js → wrapper-widget-836f947d.js} +3 -3
  94. package/form-widget-12c6d64a.js +0 -229
  95. package/slot-9818013e.js +0 -314
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as s, resolveComponent as w, openBlock as p, createBlock as l, mergeProps as m, unref as e, withCtx as C, isRef as F, toHandlers as O } from "vue";
2
2
  import { e as V } from "./enum-type-1c0ae1da.js";
3
- import { b } from "./share-field-33bed9fb.js";
3
+ import { b } from "./share-field-c61f1afe.js";
4
4
  import { I as v } from "./field-base-5547436d.js";
5
5
  import x from "./form-item-wrapper-b761d512.js";
6
6
  import { w as z } from "./expression-d514d13e.js";
7
- import "./multirow-b0df65a6.js";
7
+ import "./multirow-e135eced.js";
8
8
  import "./baseImp-242db99f.js";
9
9
  import "./enum-type-768f07b9.js";
10
10
  import "./icon-a0e0cdb0.js";
@@ -13,7 +13,7 @@ import "./_commonjsHelpers-e7ea1525.js";
13
13
  import "./uuid-81bac653.js";
14
14
  import "element-plus";
15
15
  import "./index-38b887d7.js";
16
- import "./slot-9818013e.js";
16
+ import "./slot-4c3b89ad.js";
17
17
  import "./widget-base-4c2d6265.js";
18
18
  import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
19
19
  import "./index-a152420d.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as F, computed as I, ref as T, onMounted as j, resolveDirective as L, openBlock as a, createBlock as d, mergeProps as u, unref as t, withCtx as M, createElementBlock as n, Fragment as c, withDirectives as P, renderList as R, createTextVNode as z, toDisplayString as A } from "vue";
2
2
  import { e as E, t as J, f as q } from "./enum-type-1c0ae1da.js";
3
3
  import { I as G } from "./widget-base-4c2d6265.js";
4
- import { b as H } from "./share-field-33bed9fb.js";
4
+ import { b as H } from "./share-field-c61f1afe.js";
5
5
  import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
6
- import { D as v } from "./drag-wrapper-de9be57d.js";
7
- import { i as Q, d as U } from "./slot-9818013e.js";
8
- import { c as X } from "./multirow-b0df65a6.js";
6
+ import { D as v } from "./drag-wrapper-2f120687.js";
7
+ import { i as Q, d as U } from "./slot-4c3b89ad.js";
8
+ import { c as X } from "./multirow-e135eced.js";
9
9
  import { b as Y } from "./expression-d514d13e.js";
10
10
  import { _ as Z } from "./_plugin-vue_export-helper-dad06003.js";
11
11
  import "./icon-a0e0cdb0.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as T, computed as s, resolveComponent as ee, openBlock as d, createBlock as p, mergeProps as j, unref as e, withCtx as a, isRef as W, toHandlers as A, createSlots as B, resolveDynamicComponent as i, createCommentVNode as g } from "vue";
2
2
  import { s as f, t as D } from "./enum-type-1c0ae1da.js";
3
3
  import { I as te } from "./field-base-5547436d.js";
4
- import { b as oe } from "./share-field-33bed9fb.js";
4
+ import { b as oe } from "./share-field-c61f1afe.js";
5
5
  import re from "./form-item-wrapper-b761d512.js";
6
6
  import { b as y, w as le } from "./expression-d514d13e.js";
7
7
  import "./widget-base-4c2d6265.js";
8
- import "./multirow-b0df65a6.js";
8
+ import "./multirow-e135eced.js";
9
9
  import "./baseImp-242db99f.js";
10
10
  import "./enum-type-768f07b9.js";
11
11
  import "./icon-a0e0cdb0.js";
@@ -14,7 +14,7 @@ import "./_commonjsHelpers-e7ea1525.js";
14
14
  import "./uuid-81bac653.js";
15
15
  import "element-plus";
16
16
  import "./index-38b887d7.js";
17
- import "./slot-9818013e.js";
17
+ import "./slot-4c3b89ad.js";
18
18
  import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
19
19
  import "./index-a152420d.js";
20
20
  import "./_plugin-vue_export-helper-dad06003.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as h, computed as s, resolveComponent as $, openBlock as u, createBlock as f, mergeProps as x, unref as t, withCtx as K, isRef as A, toHandlers as H, createSlots as M, resolveDynamicComponent as P } from "vue";
2
2
  import { I as R } from "./field-base-5547436d.js";
3
- import { b as U } from "./share-field-33bed9fb.js";
3
+ import { b as U } from "./share-field-c61f1afe.js";
4
4
  import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
5
5
  import { b as n, w as G } from "./expression-d514d13e.js";
6
6
  import { s as a } from "./enum-type-1c0ae1da.js";
7
7
  import "./widget-base-4c2d6265.js";
8
- import "./multirow-b0df65a6.js";
8
+ import "./multirow-e135eced.js";
9
9
  import "./baseImp-242db99f.js";
10
10
  import "./enum-type-768f07b9.js";
11
11
  import "./icon-a0e0cdb0.js";
@@ -14,7 +14,7 @@ import "./_commonjsHelpers-e7ea1525.js";
14
14
  import "./uuid-81bac653.js";
15
15
  import "element-plus";
16
16
  import "./index-38b887d7.js";
17
- import "./slot-9818013e.js";
17
+ import "./slot-4c3b89ad.js";
18
18
  import "./index-a152420d.js";
19
19
  import "./_plugin-vue_export-helper-dad06003.js";
20
20
  import "./fieldobj-5eca64a8.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as g, ref as v, onMounted as N, watch as k, openBlock as w, createElementBlock as S, createElementVNode as x, computed as C, nextTick as H, createBlock as P, mergeProps as b, unref as u, withCtx as W, createVNode as I } from "vue";
2
2
  import { w as V } from "./expression-d514d13e.js";
3
3
  import { I as z } from "./field-base-5547436d.js";
4
- import { b as T } from "./share-field-33bed9fb.js";
4
+ import { b as T } from "./share-field-c61f1afe.js";
5
5
  import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
6
6
  import { R as E } from "./enum-type-1c0ae1da.js";
7
7
  import { _ as R } from "./_plugin-vue_export-helper-dad06003.js";
@@ -10,14 +10,14 @@ import "./uuid-81bac653.js";
10
10
  import "./_commonjsHelpers-e7ea1525.js";
11
11
  import "./esprima-e8d15055.js";
12
12
  import "./widget-base-4c2d6265.js";
13
- import "./multirow-b0df65a6.js";
13
+ import "./multirow-e135eced.js";
14
14
  import "./baseImp-242db99f.js";
15
15
  import "./enum-type-768f07b9.js";
16
16
  import "./icon-a0e0cdb0.js";
17
17
  import "./dialog-cb26ee83.js";
18
18
  import "element-plus";
19
19
  import "./index-38b887d7.js";
20
- import "./slot-9818013e.js";
20
+ import "./slot-4c3b89ad.js";
21
21
  import "./index-a152420d.js";
22
22
  import "./fieldobj-5eca64a8.js";
23
23
  const F = { class: "s-canvas" }, L = ["width", "height"], $ = /* @__PURE__ */ g({
@@ -1,11 +1,11 @@
1
1
  import { ref as y, watch as L, defineComponent as h, resolveDirective as j, openBlock as b, createBlock as D, mergeProps as W, unref as s, withCtx as O, withDirectives as P, createElementBlock as x, normalizeClass as z, createVNode as R, createCommentVNode as S } from "vue";
2
2
  import { I as k } from "./widget-base-4c2d6265.js";
3
- import { D as A } from "./drag-wrapper-de9be57d.js";
3
+ import { D as A } from "./drag-wrapper-2f120687.js";
4
4
  import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
5
5
  import { w as F } from "./expression-d514d13e.js";
6
6
  import { W as v } from "./enum-type-768f07b9.js";
7
- import { b as N, a as $ } from "./share-field-33bed9fb.js";
8
- import { c as E } from "./slot-9818013e.js";
7
+ import { b as N, a as $ } from "./share-field-c61f1afe.js";
8
+ import { c as E } from "./slot-4c3b89ad.js";
9
9
  function H(i) {
10
10
  const n = y({}), { componentWrapperClass: c, customClass: a } = E({ widget: i.widget }), { exposed: t, attrs: d, extendAttrs: f, fieldKey: g, fieldObj: m } = N(i), { setAllRefList: l } = $(n.value), p = (o = !1) => {
11
11
  l(v.setDisabled, { flag: o });
@@ -1,229 +0,0 @@
1
- import { ref as oe, reactive as z, onMounted as fe, nextTick as Ee, defineComponent as ce, resolveComponent as Oe, resolveDirective as je, openBlock as ne, createBlock as ae, mergeProps as K, unref as p, withCtx as ie, withDirectives as xe, toHandlers as Se, withModifiers as Me, createVNode as Re } from "vue";
2
- import { I as ye } from "./widget-base-4c2d6265.js";
3
- import { D as Ae } from "./drag-wrapper-de9be57d.js";
4
- import { _ as Pe } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b2aca878.js";
5
- import { w as U, a as le, b as y, f as L, i as $e } from "./expression-d514d13e.js";
6
- import { u as ke } from "./icon-a0e0cdb0.js";
7
- import { u as Ie, a as Be } from "./multirow-b0df65a6.js";
8
- import { b as He, E as de, M as re, e as Te, d as se, N as qe, z as ze, g as Ke } from "./enum-type-1c0ae1da.js";
9
- import { $ as Ue, B as Ge } from "./baseImp-242db99f.js";
10
- import { f as Je } from "./index-38b887d7.js";
11
- import { b as Qe, a as Xe, u as Ye } from "./share-field-33bed9fb.js";
12
- import { W as Ze } from "./enum-type-768f07b9.js";
13
- import { F as et } from "./slot-9818013e.js";
14
- import { _ as tt } from "./_plugin-vue_export-helper-dad06003.js";
15
- function ot(r) {
16
- const E = r.widget, c = r.designer, b = c == null ? void 0 : c.pageConfig, F = r == null ? void 0 : r.widgetList, O = oe({}), A = {}, { fieldModel: P, fieldName: $, fieldEditor: u, attrs: j, events: _, hasFieldOptions: x, exposed: w, fieldObj: S, watchOption: g, propResultOpt: h, extendAttrs: D } = Qe(r), { off$: W, on$: V, emit$: M, broadcast: N } = Be();
17
- var { instance: G } = ke();
18
- const { setAllRefList: ue } = Xe(O.value), J = { designState: r == null ? void 0 : r.designState, pageConfig: b, globalConfig: h == null ? void 0 : h.globalConfig }, { formModel: k, setData: me, getData: R, clearData: Q } = Ie(F, { ...J }), { handleFunc: I } = Ye({ options: b }, J), B = z({}), ve = () => {
19
- W(L.fieldChange), V(L.fieldChange, (e) => {
20
- be(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), w == null || w.setValue(k), _e(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue);
21
- });
22
- }, pe = () => {
23
- W(L.fieldValidation), V(L.fieldValidation, (e) => {
24
- var t;
25
- (t = u.value) == null || t.validateField(e == null ? void 0 : e.propName);
26
- });
27
- }, ge = () => {
28
- W(L.fieldRuleChange), V(L.fieldRuleChange, (e) => {
29
- var o;
30
- var t = (o = e == null ? void 0 : e.rules) == null ? void 0 : o.map((n) => ({
31
- required: n.required,
32
- message: n.message,
33
- trigger: n.trigger,
34
- validator: n.validator
35
- }));
36
- Object.assign(B, { [e == null ? void 0 : e.fieldName]: t }), j.value.rules = B;
37
- });
38
- }, H = oe(!1), T = z({}), q = z({}), X = (e) => {
39
- re(q), se(q, e);
40
- }, he = () => ({
41
- change_info: de(T),
42
- before_info: de(q),
43
- flag: H.value
44
- }), _e = (e, t, o) => {
45
- H.value = !0, e && se(T, { [e]: { oldValue: o, newValue: t } });
46
- }, Ce = () => {
47
- H.value = !1, re(T), X(R());
48
- }, be = (e, t, o) => {
49
- I(_.value.formDataChange, { field: { fieldName: e, newValue: t, oldValue: o }, formModel: k });
50
- }, Fe = () => {
51
- I(_.value.formCreated);
52
- }, we = () => {
53
- I(_.value.formMounted);
54
- }, De = () => {
55
- ge(), ve(), pe(), Fe();
56
- }, Ve = (e) => {
57
- var t;
58
- (t = u.value) == null || t.clearValidate(e);
59
- }, Le = () => {
60
- ue(Ze.resetField), Ee(() => {
61
- Ve();
62
- });
63
- }, Y = (e, t) => {
64
- let o = [];
65
- for (let s in e) {
66
- var n = e[s], d = n == null ? void 0 : n.filter((l) => (l == null ? void 0 : l.force) === t);
67
- d == null || d.forEach((l) => {
68
- var a;
69
- const f = (a = l == null ? void 0 : l.rule) == null ? void 0 : a.label;
70
- l.message && o.push($e(f ? "【" + f + "】" : "", l.message, ":"));
71
- });
72
- }
73
- return qe(o);
74
- }, We = (e, t) => {
75
- var o = {};
76
- return Je(t, (n) => {
77
- var d = Ge.getName(n), s = ze(e, d);
78
- return s && (o[d] = e[d]), s;
79
- }, !1), o;
80
- }, Ne = (e = !0) => {
81
- var d, s, l;
82
- let t = R(), o = function() {
83
- }, n = new Promise(function(f, a) {
84
- o = function(m, i) {
85
- (i ? a : f)({ data: m, isSuccess: !i, message: i });
86
- };
87
- });
88
- return !((d = u.value) != null && d.validate) || !e ? (o(t), n) : ((l = (s = u.value) == null ? void 0 : s.validate) == null || l.call(s, (f, a) => {
89
- if (f)
90
- o(t);
91
- else {
92
- var m = Y(a, !0);
93
- if (m && m.length > 0) {
94
- o(t, m);
95
- return;
96
- }
97
- var i = Y(a, !1);
98
- if (i && i.length > 0) {
99
- i.push(Te.i18nt("designer.hint.continue")), Ue.multiple(i).then((v) => {
100
- o(t);
101
- });
102
- return;
103
- }
104
- }
105
- }), n);
106
- }, Z = (e, t = !0) => {
107
- if (!E)
108
- return;
109
- var o = We(e, [E]);
110
- me(o, t);
111
- const n = ["refList", "widgetRefList"];
112
- N(U.ContainerWidget, le.setFormData, e, G, n), N(U.FieldWidget, le.setFormData, e, G, n);
113
- }, ee = (e) => new Promise((t, o) => {
114
- const n = (a, m) => {
115
- var v, C, te;
116
- let i = (v = D.value) != null && v.formDataLoaded ? (te = (C = D.value) == null ? void 0 : C.formDataLoaded) == null ? void 0 : te.call(C, R(), a) : a;
117
- Ke(i) ? Z(i, !m) : i = {}, X(i), t(i);
118
- }, d = () => {
119
- g(e, y.newDataSource, void 0, (a, m) => {
120
- n(a, !0);
121
- });
122
- }, s = () => {
123
- g(e, y.editDataSource, void 0, (a, m) => {
124
- var v, C;
125
- if (((C = (v = D.value) == null ? void 0 : v.needFormAdd) == null ? void 0 : C.call(v, a)) && f) {
126
- d();
127
- return;
128
- }
129
- n(a, !1);
130
- });
131
- }, l = x(y.editDataSource), f = x(y.newDataSource);
132
- l ? s() : f && d();
133
- });
134
- return De(), fe(() => {
135
- He(), we();
136
- }), {
137
- widgetRefList: O,
138
- allWidgetRefList: A,
139
- fieldEditor: u,
140
- formModel: k,
141
- pageConfig: b,
142
- widgetList: F,
143
- fieldModel: P,
144
- fieldName: $,
145
- attrs: j,
146
- extendAttrs: D,
147
- events: _,
148
- rules: B,
149
- loadData: ee,
150
- clearData: Q,
151
- exposed: {
152
- ...w,
153
- setValue: Z,
154
- getValue: Ne,
155
- resetField: Le,
156
- clearData: Q,
157
- loadData: ee,
158
- getData: R,
159
- //修改痕迹
160
- clearChangeRecord: Ce,
161
- getChangeRecord: he,
162
- emit$: M
163
- },
164
- fieldObj: S
165
- };
166
- }
167
- const nt = ce({ componentName: U.ContainerWidget }), at = /* @__PURE__ */ ce({
168
- ...nt,
169
- __name: "form-widget",
170
- props: { ...ye },
171
- setup(r, { expose: E }) {
172
- var S;
173
- const c = r, { exposed: b, formModel: F, fieldEditor: O, attrs: A, events: P, widgetRefList: $, extendAttrs: u, fieldName: j, fieldObj: _, loadData: x } = ot({ ...c, widgetList: (S = c == null ? void 0 : c.widget) == null ? void 0 : S.widgetList }), w = j.value;
174
- return et.globalProvide({
175
- globalFormName: w,
176
- globalDataModel: F
177
- }), fe(() => {
178
- var g;
179
- (g = u.value) != null && g.loadDataWhenInit && !c.designState && x(!0).then((h) => {
180
- }).catch((h) => {
181
- }).finally(() => {
182
- b.clearChangeRecord();
183
- });
184
- }), E({ ...b }), (g, h) => {
185
- const D = Oe("el-form"), W = je("loading");
186
- return ne(), ae(Pe, K(g.$props, {
187
- "prop-options": { fieldObj: p(_) }
188
- }), {
189
- default: ie(({ data: V }) => {
190
- var M, N;
191
- return [
192
- xe((ne(), ae(D, K({
193
- ref_key: "fieldEditor",
194
- ref: O,
195
- model: p(F)
196
- }, p(A), Se(p(P)), {
197
- class: V.injectClass,
198
- key: (M = p(_)) == null ? void 0 : M.fieldKey,
199
- "element-loading-text": p(u).loadingText,
200
- onSubmit: h[0] || (h[0] = Me(() => {
201
- }, ["prevent"]))
202
- }), {
203
- default: ie(() => [
204
- Re(Ae, K(g.$props, {
205
- dragClass: "formDrag",
206
- model: p(F),
207
- provideModel: !0,
208
- "component-class": V.componentWrapperClass,
209
- refList: p($)
210
- }), null, 16, ["model", "component-class", "refList"])
211
- ]),
212
- _: 2
213
- }, 1040, ["model", "class", "element-loading-text"])), [
214
- [W, (N = p(u)) == null ? void 0 : N.showLoading]
215
- ])
216
- ];
217
- }),
218
- _: 1
219
- }, 16, ["prop-options"]);
220
- };
221
- }
222
- });
223
- const it = /* @__PURE__ */ tt(at, [["__scopeId", "data-v-d2770e0b"]]), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
224
- __proto__: null,
225
- default: it
226
- }, Symbol.toStringTag, { value: "Module" }));
227
- export {
228
- bt as _
229
- };
package/slot-9818013e.js DELETED
@@ -1,314 +0,0 @@
1
- var M = Object.defineProperty;
2
- var _ = (e, t, o) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
- var L = (e, t, o) => (_(e, typeof t != "symbol" ? t + "" : t, o), o);
4
- import { inject as p, provide as S, computed as f } from "vue";
5
- import { d as y, b, r as O, s as B } from "./expression-d514d13e.js";
6
- import { B as G } from "./baseImp-242db99f.js";
7
- import { c as N, i as V, m as R, j as A, o as q } from "./enum-type-1c0ae1da.js";
8
- class W {
9
- constructor() {
10
- /**
11
- * 当前表单引用库
12
- * 假设表单组件位于表单form中,则该引用注册入库
13
- */
14
- L(this, "formRefList", {});
15
- /**
16
- * 全局引用库
17
- */
18
- L(this, "globalRefList", {});
19
- /**
20
- * 全局数据对象
21
- */
22
- L(this, "globalDataModel", {});
23
- /**
24
- * 当前表单名称
25
- */
26
- L(this, "globalFormName", "");
27
- /**
28
- * 全局页面名称
29
- */
30
- // globalPageName?: string = "";
31
- /**
32
- * 用于类似template组件的数据绑定传递
33
- */
34
- L(this, "rowScope", {});
35
- /**
36
- * 渲染器调用者传入的配置参数,如接口地址、密钥等
37
- */
38
- L(this, "globalConfig", {});
39
- }
40
- static globalInject() {
41
- const t = new W();
42
- return t.formRefList = p(y.refList, {}), t.globalRefList = p(y.allRefList, {}), t.globalDataModel = p(y.globalModel, {}), t.rowScope = p(y.rowScope, {}), t.globalFormName = p(y.globalForm, ""), t.globalConfig = p(y.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(y.globalModel, o);
48
- }
49
- if ((t == null ? void 0 : t.rowScope) !== void 0) {
50
- const o = (t == null ? void 0 : t.rowScope) || {};
51
- S(y.rowScope, o);
52
- }
53
- if ((t == null ? void 0 : t.globalRefList) !== void 0) {
54
- const o = (t == null ? void 0 : t.globalRefList) || {};
55
- S(y.allRefList, o);
56
- }
57
- if ((t == null ? void 0 : t.formRefList) !== void 0) {
58
- const o = (t == null ? void 0 : t.formRefList) || {};
59
- S(y.refList, o);
60
- }
61
- if ((t == null ? void 0 : t.globalFormName) !== void 0) {
62
- const o = (t == null ? void 0 : t.globalFormName) || "";
63
- S(y.globalForm, o);
64
- }
65
- if ((t == null ? void 0 : t.globalConfig) !== void 0) {
66
- const o = (t == null ? void 0 : t.globalConfig) || "";
67
- S(y.globalConfig, o);
68
- }
69
- }
70
- }
71
- function ot(e) {
72
- const t = (u, H = !1) => G.getOptions(e == null ? void 0 : e.widget, u, H, !(e != null && e.designState)), o = f(() => t(b.ctrlWidth) || "auto"), l = f(() => t(b.ctrlHeight) || "auto"), n = f(() => t(b.displayLayout)), i = f(() => {
73
- var u = t(b.customClass);
74
- return Array.isArray(u) ? u == null ? void 0 : u.join(" ") : u;
75
- }), h = f(() => {
76
- var u = t(b.componentWrapperClass);
77
- return Array.isArray(u) ? u == null ? void 0 : u.join(" ") : u;
78
- }), a = f(() => t(b.css)), s = f(() => {
79
- var u = t(b.componentRootClass);
80
- return Array.isArray(u) ? u == null ? void 0 : u.join(" ") : u;
81
- }), c = f(() => {
82
- var u, H;
83
- return (H = N((u = t(b.required, !0)) == null ? void 0 : u.options)) == null ? void 0 : H.enable;
84
- }), g = f(() => t(b.hidden)), d = f(() => t(b.labelTooltip)), C = f(() => t(b.labelIconClass)), r = f(() => t(b.labelIconPosition)), w = f(() => t(b.labelHidden)), F = f(() => t(b.label)), m = f(() => t(b.labelWidth)), T = f(() => t(b.labelAlign));
85
- return {
86
- //size,
87
- attrs: f(() => ({
88
- required: c.value,
89
- label: F.value,
90
- labelHidden: w.value,
91
- labelAlign: T.value,
92
- labelIconClass: C.value,
93
- labelIconPosition: r.value,
94
- labelTooltip: d.value,
95
- labelWidth: m.value,
96
- ctrlWidth: o.value
97
- })),
98
- labelAlign: T,
99
- labelHidden: w,
100
- labelIconClass: C,
101
- labelIconPosition: r,
102
- labelTooltip: d,
103
- labelWidth: m,
104
- label: F,
105
- displayLayout: n,
106
- hidden: g,
107
- // required,
108
- ctrlWidth: o,
109
- ctrlHeight: l,
110
- customClass: i,
111
- componentWrapperClass: h,
112
- componentRootClass: s,
113
- css: a
114
- };
115
- }
116
- const $ = (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(i) {
125
- const h = o.generate(i.prelude), a = {};
126
- o.walk(i, {
127
- visit: "Declaration",
128
- enter(s) {
129
- s.property && (a[s.property] = o.generate(s.value));
130
- }
131
- }), n.push({ selector: h, declarations: a });
132
- }
133
- }), t(n);
134
- });
135
- }), E = (e) => new Promise((t) => {
136
- import("./index-3aaf8638.js").then((o) => {
137
- const l = x(e), n = o.parse(l, { context: "stylesheet" });
138
- t(o.generate(n));
139
- });
140
- });
141
- function x(e) {
142
- return e.map((o) => {
143
- var n, i, h;
144
- const l = (h = (i = (n = Object.entries(o.declarations)) == null ? void 0 : n.filter(([a, s]) => !V(s) && s !== "")) == null ? void 0 : i.sort(([a], [s]) => a > s ? 1 : -1)) == null ? void 0 : h.map(([a, s]) => `${a}: ${s};`);
145
- return `${o.selector} { ${l.join(" ")} }`;
146
- }).join(`
147
- `);
148
- }
149
- const z = () => new Promise((e) => {
150
- import("./acorn-a3705767.js").then((t) => {
151
- e(t);
152
- });
153
- });
154
- function J(e) {
155
- return new Promise((t) => {
156
- z().then((o) => {
157
- var l = Q(o, e);
158
- t(l);
159
- });
160
- });
161
- }
162
- function Q(e, t) {
163
- var i, h;
164
- const o = e.parse(t, {
165
- ecmaVersion: "latest",
166
- sourceType: "script",
167
- ranges: !0
168
- // ←←← 必须启用,才能 slice 源码
169
- }), l = [], n = [];
170
- for (const a of o.body) {
171
- if (a.type === "FunctionDeclaration" && ((i = a.id) != null && i.name) && a.range) {
172
- const s = a.id.name, c = t.slice(a.range[0], a.range[1]);
173
- l.push({ name: s, text: c });
174
- }
175
- if (a.type === "ClassDeclaration" && ((h = a.id) != null && h.name) && a.range) {
176
- const s = a.id.name, c = t.slice(a.range[0], a.range[1]);
177
- n.push({ name: s, text: c });
178
- }
179
- }
180
- return { functions: l, classes: n };
181
- }
182
- const U = () => {
183
- const e = "v_form_global_css", t = (s = "", c = e) => {
184
- var g = n(s, c);
185
- l(g);
186
- }, o = (s = "", c = "", g = e) => {
187
- if (!s)
188
- return;
189
- let d = document.getElementsByTagName("head")[0];
190
- if (d)
191
- try {
192
- var C = n(c, g);
193
- l(g), l(C);
194
- let r = document.createElement("style");
195
- if (!r)
196
- return;
197
- r.type = "text/css", r.id = c ? g + "-" + c : g;
198
- try {
199
- r.appendChild(document.createTextNode(s.toString()));
200
- } catch {
201
- r.innerHTML = s.toString();
202
- }
203
- d.appendChild(r);
204
- } catch (r) {
205
- R.error("insert css to head fail", r);
206
- }
207
- }, l = (s) => {
208
- let c = document.getElementById(s);
209
- try {
210
- c && c.parentNode && c.parentNode.removeChild(c);
211
- } catch (g) {
212
- console.log(g, c);
213
- }
214
- }, n = (s, c) => s ? c + "-" + s : c, i = "v_form_global_functions";
215
- return {
216
- insertCustomCssToHead: o,
217
- insertGlobalFunctionsToHtml: (s, c = "") => {
218
- if (s)
219
- try {
220
- J(s).then((g) => {
221
- var d, C;
222
- console.log("acron", g), (d = g.functions) == null || d.forEach((r) => {
223
- let w;
224
- const F = r == null ? void 0 : r.text, m = r == null ? void 0 : r.name;
225
- try {
226
- w = new Function(`return ${F}`)();
227
- } catch (T) {
228
- R.error(`Failed to compile function "${m}":`, T);
229
- return;
230
- }
231
- window[m] = w;
232
- }), (C = g.classes) == null || C.forEach((r) => {
233
- const w = r == null ? void 0 : r.text, F = r == null ? void 0 : r.name;
234
- let m;
235
- try {
236
- m = new Function(`return ${w}`)();
237
- } catch (T) {
238
- R.error(`Failed to compile class "${F}":`, T);
239
- return;
240
- }
241
- window[F] = m;
242
- });
243
- });
244
- } catch (g) {
245
- R.error("insert js to head fail", g);
246
- }
247
- },
248
- removeGlobalFunctionsToHtml: (s, c = i) => {
249
- var g = n(s, c);
250
- l(g);
251
- },
252
- removeCustomCssToHead: t
253
- };
254
- }, K = [
255
- "width",
256
- "height",
257
- "display",
258
- "margin",
259
- "margin-left",
260
- "margin-right",
261
- "margin-top",
262
- "margin-bottom"
263
- ], X = (e, t, o) => {
264
- const l = {};
265
- return t.forEach((n) => {
266
- var i = e[n];
267
- A(i) || (l[n] = o ? o(n, i) : i);
268
- }), l;
269
- }, Y = (e, t, o) => {
270
- var n;
271
- const l = {};
272
- return (n = q(e)) == null || n.forEach((i) => {
273
- var h = e[i];
274
- t != null && t.includes(i) || (l[i] = o ? o(i, h) : h);
275
- }), l;
276
- }, D = (e, t) => ["width", "height", "display"].includes(e) ? A(t) || t == "auto" ? t : `${t} !important` : t, et = (e) => new Promise((t) => {
277
- $(e).then((o) => {
278
- var l = o == null ? void 0 : o.map((n) => ({ selector: n.selector, declarations: X(n.declarations, K, D) }));
279
- E(l).then((n) => {
280
- t(n);
281
- });
282
- });
283
- }), nt = (e) => new Promise((t) => {
284
- $(e).then((o) => {
285
- var l = o == null ? void 0 : o.map((n) => ({ selector: n.selector, declarations: Y(n.declarations, K, D) }));
286
- E(l).then((n) => {
287
- t(n);
288
- });
289
- });
290
- }), lt = (e, t) => {
291
- if (!t || !e)
292
- return;
293
- const o = O(e, ":root", `.${t}`), { insertCustomCssToHead: l } = U();
294
- l(o, void 0, t);
295
- }, st = (e, t = !0, o) => {
296
- if (o != null && o === !1)
297
- return [];
298
- const l = Z(e);
299
- return t || (e == null ? void 0 : e.length) <= 0 ? l : l == null ? void 0 : l.filter((n) => {
300
- var i;
301
- return !!(n != null && n.widgetList) && ((i = n == null ? void 0 : n.widgetList) == null ? void 0 : i.length) > 0 || !!n.default || (n == null ? void 0 : n.slotName) === B.default;
302
- });
303
- }, rt = (e, t) => e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.slotName) === t), Z = (e) => N(e);
304
- export {
305
- W as F,
306
- lt as a,
307
- nt as b,
308
- ot as c,
309
- rt as d,
310
- st as g,
311
- Z as i,
312
- et as p,
313
- U as u
314
- };