hlrender 0.0.219 → 0.0.221
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.
- package/{_pdf-0c974cbe.js → _pdf-2615d97f.js} +6 -6
- package/{_txt-fb5b2545.js → _txt-fefad837.js} +6 -6
- package/{_unsupport-dc6b3049.js → _unsupport-05d8e7f5.js} +1 -1
- package/{affix-widget-fb8e3747.js → affix-widget-7ee62ad0.js} +16 -16
- package/{alert-widget-fef87e5d.js → alert-widget-e49cf21a.js} +16 -16
- package/{anchor-widget-097b103d.js → anchor-widget-2ee58e27.js} +13 -13
- package/{auto-complete-widget-bd98e8a4.js → auto-complete-widget-0ca8ea1b.js} +16 -16
- package/{avatar-widget-29044b19.js → avatar-widget-41693c37.js} +16 -16
- package/{backtop-widget-e21f9ed5.js → backtop-widget-25aecb13.js} +16 -16
- package/{badge-widget-94c4f222.js → badge-widget-67b8d37b.js} +16 -16
- package/{barcode-widget-dbc9f8ef.js → barcode-widget-9e091ba9.js} +13 -13
- package/{baseImp-c00e8adf.js → baseImp-e8c9b2a6.js} +1849 -1844
- package/{breadcrumb-widget-cf2b61e4.js → breadcrumb-widget-08733d3e.js} +13 -13
- package/{button-widget-668ba6fd.js → button-widget-57b0d6a1.js} +16 -16
- package/{cache-widget-81e301c2.js → cache-widget-311cfc52.js} +15 -15
- package/{card-widget-7b583092.js → card-widget-add6804a.js} +14 -14
- package/{carousel-widget-4d1a3239.js → carousel-widget-ea7d87b1.js} +14 -14
- package/{cascader-widget-fea57791.js → cascader-widget-0b81eec8.js} +15 -15
- package/{chart-widget-9dc25f9a.js → chart-widget-8373404e.js} +13 -13
- package/{checkbox-widget-cdab1671.js → checkbox-widget-66a7e1cb.js} +15 -15
- package/{collapse-widget-fd10b5fa.js → collapse-widget-7ee41c5c.js} +14 -14
- package/{color-picker-widget-c887f50b.js → color-picker-widget-3f9717a1.js} +15 -15
- package/{cont-cell-widget-71e77c48.js → cont-cell-widget-4b79347c.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-7f3fb38b.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-83f8cacc.js} +5 -5
- package/{cont-widget-cbdc6662.js → cont-widget-547c6110.js} +5 -5
- package/{content-wrapper-7b2872cf.js → content-wrapper-5726b7f5.js} +7 -7
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-db0bce35.js → content-wrapper.vue_vue_type_script_setup_true_lang-baea5e7e.js} +3 -3
- package/{date-picker-range-widget-c03bc378.js → date-picker-range-widget-11e82e2a.js} +15 -15
- package/{date-picker-widget-a4788e49.js → date-picker-widget-6fc6de52.js} +15 -15
- package/default-slot-widget-8d762171.js +26 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-fd9018b4.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-c459220b.js} +7 -7
- package/{descriptions-widget-99727453.js → descriptions-widget-c5fecb39.js} +14 -14
- package/{dialog-3c8bd967.js → dialog-4a3f5772.js} +24 -21
- package/{dialog-widget-83d060df.js → dialog-widget-6e8df434.js} +15 -15
- package/{divider-widget-d9a1397c.js → divider-widget-f9ed187b.js} +16 -16
- package/{drag-wrapper-e9462729.js → drag-wrapper-e9a12534.js} +6 -6
- package/{drawer-widget-3dde4140.js → drawer-widget-1d494753.js} +15 -15
- package/{dropdown-widget-80aa9f87.js → dropdown-widget-330a3cdc.js} +14 -14
- package/{empty-widget-b01b034e.js → empty-widget-6967f161.js} +16 -16
- package/{enum-type-3eee09cf.js → enum-type-7a728829.js} +57 -54
- package/{enum-type-af9f5bba.js → enum-type-829c8462.js} +48 -37
- package/{expression-f9adb9b4.js → expression-f3b962d3.js} +2 -2
- package/feedback-widget-7a6ac9ed.js +26 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-06094233.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-06683f41.js} +5 -5
- package/{fieldobj-0d6a0693.js → fieldobj-f28634ba.js} +1 -1
- package/{file-upload-widget-81081a10.js → file-upload-widget-b1b14ffa.js} +20 -20
- package/{form-item-wrapper-b755a7ab.js → form-item-wrapper-d0a9ff6c.js} +11 -11
- package/{form-widget-a19d1d5e.js → form-widget-1a27e9b4.js} +27 -27
- package/{grid-col-widget-c0aa72e3.js → grid-col-widget-f9ee0ab1.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-940f7fb8.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ff4d1b7c.js} +5 -5
- package/{grid-widget-7ff1f824.js → grid-widget-7ecb5c19.js} +5 -5
- package/{html-text-widget-687720a1.js → html-text-widget-30f07d9a.js} +14 -14
- package/{icon-widget-49fb6d23.js → icon-widget-d565d050.js} +13 -13
- package/{iframe-widget-6b3134ec.js → iframe-widget-086f4098.js} +13 -13
- package/{image-widget-614de330.js → image-widget-630ebd35.js} +13 -13
- package/{index-d0ed190f.js → index-198e6bfc.js} +1 -1
- package/{index-89915d03.js → index-4f56cada.js} +9 -9
- package/index-697c9c4d.js +241 -0
- package/{input-number-widget-2e3cb800.js → input-number-widget-740bc531.js} +15 -15
- package/{input-widget-74572ab8.js → input-widget-c172fb57.js} +16 -16
- package/{label-wrapper-714b1ffc.js → label-wrapper-63276661.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-9bf010c8.js → label-wrapper.vue_vue_type_style_index_0_lang-e7f67615.js} +3 -3
- package/{link-widget-a7ffc17b.js → link-widget-931d6131.js} +16 -16
- package/{ltable-col-widget-ca0db2f7.js → ltable-col-widget-bf4521f9.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-fd7b8b5b.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-426f2b4c.js} +9 -9
- package/{ltable-widget-1ef2e0cb.js → ltable-widget-a7acf843.js} +5 -5
- package/{menu-widget-f654b2e2.js → menu-widget-24785732.js} +32 -32
- package/{model-widget-250ae819.js → model-widget-9280f81f.js} +13 -13
- package/multirow-cf88c15f.js +230 -0
- package/multirow-widget-8abae879.js +722 -0
- package/package.json +1 -1
- package/{pagination-widget-df2f379b.js → pagination-widget-21b9734a.js} +13 -13
- package/{picture-upload-widget-25603bd3.js → picture-upload-widget-2d6f5166.js} +16 -16
- package/{progress-widget-ef1fbe38.js → progress-widget-7acbcbd2.js} +37 -37
- package/{qrcode-widget-422ba971.js → qrcode-widget-ef7c0554.js} +13 -13
- package/{radio-widget-fb75bc5e.js → radio-widget-309621c0.js} +15 -15
- package/{range-widget-6dc8a81a.js → range-widget-0eab72e0.js} +16 -16
- package/{rate-widget-6395f645.js → rate-widget-b9cfc2cf.js} +15 -15
- package/render.es.js +32 -32
- package/render.style.css +1 -1
- package/render.umd.js +359 -355
- package/{result-widget-230edb57.js → result-widget-2b5456a9.js} +14 -14
- package/{rich-editor-widget-7281e7fc.js → rich-editor-widget-c203861c.js} +26 -26
- package/{router-widget-aab48273.js → router-widget-04b9a98b.js} +13 -13
- package/{select-widget-3fabec4c.js → select-widget-2bf2ef62.js} +15 -15
- package/{sfc-607e4077.js → sfc-2bf2df56.js} +8 -8
- package/{sfcview-5d26e89f.js → sfcview-1361c175.js} +7 -7
- package/{share-field-35b67886.js → share-field-addc6ef5.js} +278 -276
- package/{share-file-77daa671.js → share-file-f342058d.js} +14 -14
- package/{slider-widget-d6bfad96.js → slider-widget-33b99e50.js} +15 -15
- package/{slot-272abb65.js → slot-56adbbb3.js} +3 -3
- package/{static-text-widget-9c22019b.js → static-text-widget-108edde9.js} +14 -14
- package/{steps-widget-5cdb799d.js → steps-widget-9ca1809f.js} +13 -13
- package/{subMenu-widget-4f1581f9.js → subMenu-widget-7027f7e1.js} +8 -8
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-bc537be5.js → subMenu-widget.vue_vue_type_script_setup_true_lang-acaf3bc5.js} +6 -6
- package/{switch-widget-857f4664.js → switch-widget-c8f119c0.js} +15 -15
- package/{tab-pane-widget-00680892.js → tab-pane-widget-3706cee1.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-45512f0f.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-0bdade93.js} +5 -5
- package/table-col-widget-23084965.js +22 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-292b6fec.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-a3c724ca.js} +6 -6
- package/{table-widget-57890751.js → table-widget-c469cd7e.js} +15 -15
- package/{tabs-widget-a8268ebc.js → tabs-widget-8b8bf0e5.js} +7 -7
- package/{tag-widget-b1bde14f.js → tag-widget-f9cc80b9.js} +16 -16
- package/{text-widget-8e4b909d.js → text-widget-ef976b4a.js} +16 -16
- package/{textarea-widget-4c156f4a.js → textarea-widget-c2943bad.js} +15 -15
- package/{time-picker-range-widget-af2e8d96.js → time-picker-range-widget-e97ab6b0.js} +15 -15
- package/{time-picker-widget-6997e5ff.js → time-picker-widget-ad75fba4.js} +15 -15
- package/{time-select-widget-645a26ba.js → time-select-widget-7f3d955a.js} +15 -15
- package/{tmpl-widget-fdb68779.js → tmpl-widget-f116a203.js} +14 -14
- package/{tree-select-widget-ab0476a9.js → tree-select-widget-62c48877.js} +15 -15
- package/{tree-widget-e57ceed7.js → tree-widget-1fa2535b.js} +13 -13
- package/{uuid-59b631d4.js → uuid-92282a79.js} +1 -1
- package/{verifycode-widget-264bfa9d.js → verifycode-widget-71283784.js} +13 -13
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b9780aad.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-ce22cece.js} +7 -7
- package/wrapper-widget-669e9a3b.js +84 -0
- package/default-slot-widget-02517799.js +0 -26
- package/feedback-widget-2098cac5.js +0 -26
- package/index-696a9346.js +0 -120
- package/multirow-b54f3d83.js +0 -229
- package/multirow-widget-5d488d4a.js +0 -703
- package/table-col-widget-5fc4ff5a.js +0 -22
- package/wrapper-widget-e9bb70ba.js +0 -84
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { defineComponent as j, computed as _, watch as k, onMounted as Z, nextTick as I, resolveComponent as ee, openBlock as C, createBlock as
|
|
2
|
-
import { g as te, J as f, K as oe, P as le } from "./baseImp-
|
|
1
|
+
import { defineComponent as j, computed as _, watch as k, onMounted as Z, nextTick as I, resolveComponent as ee, openBlock as C, createBlock as M, mergeProps as R, unref as a, withCtx as B, toHandlers as re, createVNode as ne } from "vue";
|
|
2
|
+
import { g as te, J as f, K as oe, P as le } from "./baseImp-e8c9b2a6.js";
|
|
3
3
|
import { u as ue } from "./icon-a0e0cdb0.js";
|
|
4
|
-
import {
|
|
4
|
+
import { F as ae, H as E, d as b, X as ce } from "./enum-type-829c8462.js";
|
|
5
5
|
import { I as se } from "./field-base-5547436d.js";
|
|
6
|
-
import { _ as ie } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
7
|
-
import { b as fe } from "./share-field-
|
|
8
|
-
import { w as pe, f as me } from "./expression-
|
|
9
|
-
import { _ as ve } from "./subMenu-widget.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import {
|
|
11
|
-
import "./dialog-
|
|
6
|
+
import { _ as ie } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-ce22cece.js";
|
|
7
|
+
import { b as fe } from "./share-field-addc6ef5.js";
|
|
8
|
+
import { w as pe, f as me } from "./expression-f3b962d3.js";
|
|
9
|
+
import { _ as ve } from "./subMenu-widget.vue_vue_type_script_setup_true_lang-acaf3bc5.js";
|
|
10
|
+
import { $ as O } from "./enum-type-7a728829.js";
|
|
11
|
+
import "./dialog-4a3f5772.js";
|
|
12
12
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
13
|
-
import "./uuid-
|
|
13
|
+
import "./uuid-92282a79.js";
|
|
14
14
|
import "element-plus";
|
|
15
15
|
import "./widget-base-4c2d6265.js";
|
|
16
|
-
import "./index-
|
|
17
|
-
import "./index-
|
|
16
|
+
import "./index-4f56cada.js";
|
|
17
|
+
import "./index-198e6bfc.js";
|
|
18
18
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
19
|
-
import "./fieldobj-
|
|
20
|
-
import "./multirow-
|
|
21
|
-
import "./slot-
|
|
19
|
+
import "./fieldobj-f28634ba.js";
|
|
20
|
+
import "./multirow-cf88c15f.js";
|
|
21
|
+
import "./slot-56adbbb3.js";
|
|
22
22
|
import "./source-map-b04aec4a.js";
|
|
23
23
|
import "./esprima-e8d15055.js";
|
|
24
|
-
const de = j({ componentName: pe.FieldWidget }),
|
|
24
|
+
const de = j({ componentName: pe.FieldWidget }), Se = /* @__PURE__ */ j({
|
|
25
25
|
...de,
|
|
26
26
|
__name: "menu-widget",
|
|
27
27
|
props: { ...se },
|
|
28
|
-
setup(A, { expose:
|
|
29
|
-
const V = A, { fieldEditor: g, fieldKey: w, attrs: c, events: D, extendAttrs: s, optionItems: l, activeOptionItems: y, filterOptionItems: P, exposed:
|
|
28
|
+
setup(A, { expose: $ }) {
|
|
29
|
+
const V = A, { fieldEditor: g, fieldKey: w, attrs: c, events: D, extendAttrs: s, optionItems: l, activeOptionItems: y, filterOptionItems: P, exposed: G, fieldObj: S, existEvent: W, handleEvent: H } = fe(V), { instance: K } = ue(), L = te({ instance: K }), p = (e) => e == null ? void 0 : e.route, u = (e) => e == null ? void 0 : e.value, N = (e) => {
|
|
30
30
|
const n = p(e);
|
|
31
31
|
if (!n)
|
|
32
32
|
return "";
|
|
33
|
-
const r = f.getLocationQueryParams(), t = oe(le.getValue(e.buildUrlParams) || "", { urlParams: r, ctx:
|
|
33
|
+
const r = f.getLocationQueryParams(), t = oe(le.getValue(e.buildUrlParams) || "", { urlParams: r, ctx: L });
|
|
34
34
|
let o = "";
|
|
35
35
|
return e != null && e.attachUrlParams ? o = f.buildUrl(n, { ...r, ...t }) : o = f.buildUrl(n, t), o;
|
|
36
36
|
}, F = _(() => {
|
|
37
37
|
const e = ae(l == null ? void 0 : l.value);
|
|
38
|
-
return
|
|
39
|
-
m(e, u(n)) ? n.route =
|
|
38
|
+
return E(e, "children", (n) => !0, (n) => {
|
|
39
|
+
m(e, u(n)) ? n.route = N(n) || u(n) : n.route = u(n);
|
|
40
40
|
}), e;
|
|
41
41
|
}), J = (e) => {
|
|
42
42
|
let n = "";
|
|
43
|
-
return
|
|
43
|
+
return E(F.value, "children", (r) => u(r) === e, (r) => {
|
|
44
44
|
n = p(r) || u(r);
|
|
45
45
|
}), n;
|
|
46
46
|
}, U = (e, n) => e == null ? void 0 : e.some((r) => {
|
|
@@ -53,8 +53,8 @@ const de = j({ componentName: pe.FieldWidget }), We = /* @__PURE__ */ j({
|
|
|
53
53
|
const e = window.location.href, n = f.getBaseUrl(e);
|
|
54
54
|
var r = P((t) => {
|
|
55
55
|
var o = me.isActiveItem;
|
|
56
|
-
if (
|
|
57
|
-
return
|
|
56
|
+
if (W(o))
|
|
57
|
+
return H(o, { item: t });
|
|
58
58
|
const i = p(t), Y = f.getBaseUrl(i);
|
|
59
59
|
return !!i && (n == null ? void 0 : n.endsWith(Y));
|
|
60
60
|
});
|
|
@@ -111,19 +111,19 @@ const de = j({ componentName: pe.FieldWidget }), We = /* @__PURE__ */ j({
|
|
|
111
111
|
(r = s == null ? void 0 : s.value) != null && r.openAll || (x(!0), z(n));
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
|
-
}),
|
|
115
|
-
...
|
|
114
|
+
}), $({
|
|
115
|
+
...G,
|
|
116
116
|
getActiveTree: () => {
|
|
117
117
|
var e = [];
|
|
118
118
|
return ce(l == null ? void 0 : l.value, e, "children", (n) => d.value === p(n)), e.reverse();
|
|
119
119
|
}
|
|
120
120
|
}), (e, n) => {
|
|
121
121
|
const r = ee("el-menu");
|
|
122
|
-
return C(),
|
|
123
|
-
"prop-options": { fieldObj: a(
|
|
122
|
+
return C(), M(ie, R(e.$props, {
|
|
123
|
+
"prop-options": { fieldObj: a(S) }
|
|
124
124
|
}), {
|
|
125
|
-
default:
|
|
126
|
-
(C(),
|
|
125
|
+
default: B(({ data: t }) => [
|
|
126
|
+
(C(), M(r, R({
|
|
127
127
|
ref_key: "fieldEditor",
|
|
128
128
|
ref: g,
|
|
129
129
|
key: a(w)
|
|
@@ -131,7 +131,7 @@ const de = j({ componentName: pe.FieldWidget }), We = /* @__PURE__ */ j({
|
|
|
131
131
|
class: t.injectClass,
|
|
132
132
|
style: t.injectStyle
|
|
133
133
|
}), {
|
|
134
|
-
default:
|
|
134
|
+
default: B(() => {
|
|
135
135
|
var o;
|
|
136
136
|
return [
|
|
137
137
|
ne(ve, {
|
|
@@ -150,5 +150,5 @@ const de = j({ componentName: pe.FieldWidget }), We = /* @__PURE__ */ j({
|
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
152
|
export {
|
|
153
|
-
|
|
153
|
+
Se as default
|
|
154
154
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { defineComponent as O, resolveComponent as S, openBlock as _, createBlock as v, mergeProps as W, unref as r, withCtx as y, createElementVNode as g, createElementBlock as $, Fragment as j, renderList as K, resolveDynamicComponent as L, createTextVNode as h, toDisplayString as B, createCommentVNode as C } from "vue";
|
|
2
2
|
import { I as M } from "./widget-base-4c2d6265.js";
|
|
3
|
-
import { b as q } from "./share-field-
|
|
4
|
-
import { _ as z } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
5
|
-
import { W as w } from "./enum-type-
|
|
6
|
-
import { c as I } from "./baseImp-
|
|
7
|
-
import { e as x } from "./enum-type-
|
|
3
|
+
import { b as q } from "./share-field-addc6ef5.js";
|
|
4
|
+
import { _ as z } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-ce22cece.js";
|
|
5
|
+
import { W as w } from "./enum-type-7a728829.js";
|
|
6
|
+
import { c as I } from "./baseImp-e8c9b2a6.js";
|
|
7
|
+
import { e as x } from "./enum-type-829c8462.js";
|
|
8
8
|
import { Plus as G, Edit as H } from "./index-ddd23411.js";
|
|
9
|
-
import "./multirow-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./uuid-
|
|
12
|
-
import "./expression-
|
|
9
|
+
import "./multirow-cf88c15f.js";
|
|
10
|
+
import "./index-4f56cada.js";
|
|
11
|
+
import "./uuid-92282a79.js";
|
|
12
|
+
import "./expression-f3b962d3.js";
|
|
13
13
|
import "./source-map-b04aec4a.js";
|
|
14
14
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
15
|
import "./esprima-e8d15055.js";
|
|
16
|
-
import "./slot-
|
|
16
|
+
import "./slot-56adbbb3.js";
|
|
17
17
|
import "./icon-a0e0cdb0.js";
|
|
18
|
-
import "./index-
|
|
18
|
+
import "./index-198e6bfc.js";
|
|
19
19
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
20
|
-
import "./fieldobj-
|
|
21
|
-
import "./dialog-
|
|
20
|
+
import "./fieldobj-f28634ba.js";
|
|
21
|
+
import "./dialog-4a3f5772.js";
|
|
22
22
|
import "element-plus";
|
|
23
23
|
const J = { style: { display: "flex", "flex-direction": "row" } }, Q = { style: { flex: "1" } }, ge = /* @__PURE__ */ O({
|
|
24
24
|
__name: "model-widget",
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { b as X, B as Y, c as Z } from "./baseImp-e8c9b2a6.js";
|
|
2
|
+
import { g as x, c as I, t as L, r as R } from "./index-4f56cada.js";
|
|
3
|
+
import { c as T, F as k, g as d } from "./slot-56adbbb3.js";
|
|
4
|
+
import { i as K, o as b, d as B, I as rr, M as q, D as er, g as tr, k as P } from "./enum-type-829c8462.js";
|
|
5
|
+
import { reactive as A, ref as sr } from "vue";
|
|
6
|
+
import { u as or } from "./icon-a0e0cdb0.js";
|
|
7
|
+
import { u as nr, g as ur } from "./uuid-92282a79.js";
|
|
8
|
+
import { f as a } from "./expression-f3b962d3.js";
|
|
9
|
+
function ir() {
|
|
10
|
+
const e = {}, g = (r, t) => {
|
|
11
|
+
var s, n, u, o;
|
|
12
|
+
return r ? !!((s = r == null ? void 0 : r.proxy) != null && s.$options && ((u = (n = r == null ? void 0 : r.proxy) == null ? void 0 : n.$options) == null ? void 0 : u.componentName) === t || r != null && r.exposed && ((o = r == null ? void 0 : r.exposed) == null ? void 0 : o.componentName) === t) : !1;
|
|
13
|
+
}, h = (r, t, s) => {
|
|
14
|
+
r && b(r).forEach((n) => {
|
|
15
|
+
g(r[n], t) && (s == null || s(r[n]));
|
|
16
|
+
});
|
|
17
|
+
}, l = (r, t, s) => {
|
|
18
|
+
r && (g(r, t) ? s == null || s(r) : l(r.parent, t, s));
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
emit$(r, t) {
|
|
22
|
+
e[r] && e[r].forEach((s) => {
|
|
23
|
+
s(t);
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
on$(r, t) {
|
|
27
|
+
e[r] = e[r] || [], e[r].push(t);
|
|
28
|
+
},
|
|
29
|
+
off$(r, t) {
|
|
30
|
+
if (e[r]) {
|
|
31
|
+
if (K(t)) {
|
|
32
|
+
e[r].length = 0;
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
for (let s = 0; s < e[r].length; s++)
|
|
36
|
+
if (e[r][s] === t) {
|
|
37
|
+
e[r].splice(s, 1);
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
dispatch(r, t, s, n) {
|
|
43
|
+
if (!r)
|
|
44
|
+
return;
|
|
45
|
+
let u = n.parent || n.root;
|
|
46
|
+
l(u, r, (o) => {
|
|
47
|
+
var c;
|
|
48
|
+
o && (o.exposed.emit$ && o.exposed.emit$(t, s), o != null && o.proxy && ((c = o == null ? void 0 : o.proxy) == null || c.$emit(t, s)));
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
broadcast(r, t, s, n, u = []) {
|
|
52
|
+
u == null || u.forEach((o) => {
|
|
53
|
+
h(n[o], r, (c) => {
|
|
54
|
+
c.emit$ && c.emit$.call(c, t, s);
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const M = "", j = "_", H = (e, g) => K(g) ? e || "" : `${M}${e}${j}${g}`, p = (e) => {
|
|
61
|
+
if (e != null && e.includes(j)) {
|
|
62
|
+
var g = e.split(j);
|
|
63
|
+
const h = g == null ? void 0 : g[0].substring(M.length), l = e.substring(M.length + h.length + 1);
|
|
64
|
+
return { id: h, groupName: l };
|
|
65
|
+
}
|
|
66
|
+
return { id: e };
|
|
67
|
+
};
|
|
68
|
+
var fr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Inner2Inner = 1] = "Inner2Inner", e[e.Inner2Outer = 2] = "Inner2Outer", e[e.Outer2Inner = 3] = "Outer2Inner", e[e.Outer2Outer = 4] = "Outer2Outer", e[e.DiffInner = 5] = "DiffInner", e))(fr || {});
|
|
69
|
+
const wr = (e, g) => {
|
|
70
|
+
const h = p(e), l = h == null ? void 0 : h.groupName, r = p(g), t = r == null ? void 0 : r.groupName;
|
|
71
|
+
return !l && !t ? 4 : l && !t ? 2 : l && t ? l !== t ? 5 : 1 : !l && t ? 3 : 0;
|
|
72
|
+
};
|
|
73
|
+
function gr(e, g) {
|
|
74
|
+
const h = g == null ? void 0 : g.pageConfig, l = g == null ? void 0 : g.formData, r = A({});
|
|
75
|
+
B(r, l);
|
|
76
|
+
var { instance: t } = or();
|
|
77
|
+
const s = () => {
|
|
78
|
+
var c = x(e);
|
|
79
|
+
c == null || c.forEach((S) => {
|
|
80
|
+
const { computedDefaultValue: v, fieldName: _, hasDefaultValue: O } = X(S.field, g, { s_fieldName: !0 }, t);
|
|
81
|
+
_.value && O() && rr(v()).then((w) => {
|
|
82
|
+
B(r, { [_.value]: w });
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}, n = () => {
|
|
86
|
+
q(r);
|
|
87
|
+
};
|
|
88
|
+
return {
|
|
89
|
+
formModel: r,
|
|
90
|
+
pageConfig: h,
|
|
91
|
+
widgetList: e,
|
|
92
|
+
initData: s,
|
|
93
|
+
setData: (c, S = !0) => {
|
|
94
|
+
S && n(), B(r, c);
|
|
95
|
+
},
|
|
96
|
+
getData: () => er(r),
|
|
97
|
+
clearData: n
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function cr() {
|
|
101
|
+
const e = (t, s) => R(t, { newName: !0, recordSource: !0 }, (u, o) => H(u || o, s), (u) => !!u.dynamicItemFlag), g = (t, s, n) => {
|
|
102
|
+
var v, _;
|
|
103
|
+
P(n) && (n = `${(v = nr()) == null ? void 0 : v.substring(0, 5)}_${!P(s == null ? void 0 : s.$index) && (s == null ? void 0 : s.$index) >= 0 ? s == null ? void 0 : s.$index : ""}`);
|
|
104
|
+
var u = d(t, !0);
|
|
105
|
+
let o = u == null ? void 0 : u.map((O) => e(O, n));
|
|
106
|
+
const c = r(o), { updateFomulaName: S } = Z();
|
|
107
|
+
return (_ = b(c)) == null || _.forEach((O) => {
|
|
108
|
+
const w = c[O], y = w == null ? void 0 : w.name;
|
|
109
|
+
o = S(o, y, O);
|
|
110
|
+
}), { widget: o, id: n, key: ur(), data: s };
|
|
111
|
+
}, h = (t, s) => {
|
|
112
|
+
if (t || (t = []), s && (t == null ? void 0 : t.length) < s) {
|
|
113
|
+
const o = s - (t == null ? void 0 : t.length);
|
|
114
|
+
for (var n = 0; n < o; n++) {
|
|
115
|
+
var u = {};
|
|
116
|
+
t == null || t.push(u);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return t;
|
|
120
|
+
}, l = (t, s, n, u) => {
|
|
121
|
+
if (Array.isArray(s))
|
|
122
|
+
return s = h(s, n), s == null ? void 0 : s.map((o, c) => {
|
|
123
|
+
const S = u ? u(o, c) : o;
|
|
124
|
+
return g(t, S, c + "");
|
|
125
|
+
});
|
|
126
|
+
}, r = (t, s) => {
|
|
127
|
+
let n = {};
|
|
128
|
+
return t && L(t, (u) => {
|
|
129
|
+
const o = Y.getName(u), c = () => {
|
|
130
|
+
o && (n[o] = u == null ? void 0 : u._source);
|
|
131
|
+
};
|
|
132
|
+
s ? s(u) && c() : c();
|
|
133
|
+
}), n;
|
|
134
|
+
};
|
|
135
|
+
return {
|
|
136
|
+
newSlot: g,
|
|
137
|
+
reflectTargetWithSourceOne: r,
|
|
138
|
+
getSlotFromData: l,
|
|
139
|
+
getMinRowData: h,
|
|
140
|
+
parseGroupId: p,
|
|
141
|
+
formatGroupId: H
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function Wr(e) {
|
|
145
|
+
const g = e == null ? void 0 : e.fieldName, h = e == null ? void 0 : e.setValue, l = sr({}), r = A({}), t = A([]), { newSlot: s, reflectTargetWithSourceOne: n, getSlotFromData: u, getMinRowData: o } = cr(), c = (i, m) => {
|
|
146
|
+
var W;
|
|
147
|
+
let f = {};
|
|
148
|
+
const $ = n(m);
|
|
149
|
+
return (W = b(i)) == null || W.map((E) => {
|
|
150
|
+
var D, V, G;
|
|
151
|
+
const F = (D = $ == null ? void 0 : $[E]) == null ? void 0 : D.name;
|
|
152
|
+
F && (f[F] = i == null ? void 0 : i[E], (G = (V = b(i)) == null ? void 0 : V.filter((C) => C.startsWith(E + "_"))) == null || G.forEach((C) => {
|
|
153
|
+
f[C == null ? void 0 : C.replace(E, F)] = i == null ? void 0 : i[C];
|
|
154
|
+
}));
|
|
155
|
+
}), f;
|
|
156
|
+
}, S = (i, m) => {
|
|
157
|
+
var W, E;
|
|
158
|
+
let f = {};
|
|
159
|
+
if (tr(i)) {
|
|
160
|
+
const F = n(m, (D) => !!(D != null && D.formItemFlag));
|
|
161
|
+
(W = b(F)) == null || W.map((D) => {
|
|
162
|
+
var V;
|
|
163
|
+
D && (f[D] = i == null ? void 0 : i[(V = F == null ? void 0 : F[D]) == null ? void 0 : V.name]);
|
|
164
|
+
});
|
|
165
|
+
} else {
|
|
166
|
+
var $ = { pageConfig: (E = e == null ? void 0 : e.designer) == null ? void 0 : E.pageConfig, formData: f, designState: e == null ? void 0 : e.designState };
|
|
167
|
+
const { formModel: F, initData: D } = gr(m, $);
|
|
168
|
+
D(), B(f, F);
|
|
169
|
+
}
|
|
170
|
+
return f;
|
|
171
|
+
}, v = (i, m) => {
|
|
172
|
+
const f = S(m, i.widget);
|
|
173
|
+
return B(r, f), f;
|
|
174
|
+
}, _ = (i) => {
|
|
175
|
+
var m;
|
|
176
|
+
(m = b(r)) == null || m.forEach((f) => {
|
|
177
|
+
const $ = p(f);
|
|
178
|
+
($ == null ? void 0 : $.groupName) == i.id && delete r[f];
|
|
179
|
+
});
|
|
180
|
+
}, O = () => t == null ? void 0 : t.map((m) => c(r, m == null ? void 0 : m.widget)), w = (i, m) => {
|
|
181
|
+
q(r);
|
|
182
|
+
const f = m(i);
|
|
183
|
+
return f == null || f.forEach(($) => {
|
|
184
|
+
const W = S($ == null ? void 0 : $.data, $ == null ? void 0 : $.widget);
|
|
185
|
+
B(r, W);
|
|
186
|
+
}), t.splice(0, t.length), f && f.length > 0 && t.push(...f), t;
|
|
187
|
+
}, y = (i) => {
|
|
188
|
+
var f;
|
|
189
|
+
var m = T({ ...e, widget: i });
|
|
190
|
+
return (f = m.attrs) == null ? void 0 : f.value;
|
|
191
|
+
}, N = (i, m, f) => I(i, m, t, f), { off$: z, on$: J, emit$: Q } = ir(), U = () => {
|
|
192
|
+
z(a.fieldChange), J(a.fieldChange, (i) => {
|
|
193
|
+
var m;
|
|
194
|
+
h == null || h(O()), (m = e == null ? void 0 : e.fieldChanged) == null || m.call(e);
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
return (() => {
|
|
198
|
+
const i = g;
|
|
199
|
+
k.globalProvide({
|
|
200
|
+
globalFormName: i,
|
|
201
|
+
globalDataModel: r
|
|
202
|
+
}), U();
|
|
203
|
+
})(), {
|
|
204
|
+
getSlotFromData: u,
|
|
205
|
+
getMinRowData: o,
|
|
206
|
+
fromModel: S,
|
|
207
|
+
toModel: c,
|
|
208
|
+
newSlot: s,
|
|
209
|
+
getWidgetOption: y,
|
|
210
|
+
newFieldModelFromSlot: v,
|
|
211
|
+
removeFieldModelFromSlot: _,
|
|
212
|
+
getValue: O,
|
|
213
|
+
setValue: w,
|
|
214
|
+
findWidgetByNameWithSibId: N,
|
|
215
|
+
// listenFormModel,
|
|
216
|
+
emit$: Q,
|
|
217
|
+
formModel: r,
|
|
218
|
+
rowsData: t,
|
|
219
|
+
widgetRefList: l
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
export {
|
|
223
|
+
ir as a,
|
|
224
|
+
cr as b,
|
|
225
|
+
Wr as c,
|
|
226
|
+
fr as f,
|
|
227
|
+
wr as g,
|
|
228
|
+
p,
|
|
229
|
+
gr as u
|
|
230
|
+
};
|