hlrender 0.0.293 → 0.0.295
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-f58abfa8.js → _pdf-013c5e13.js} +7 -7
- package/{_txt-fb6e5231.js → _txt-c8b4bede.js} +7 -7
- package/{_unsupport-45e1adb6.js → _unsupport-f7d2e6bc.js} +1 -1
- package/{affix-widget-a23c07d0.js → affix-widget-bba16424.js} +17 -17
- package/{alert-widget-40decdfa.js → alert-widget-6dd0b2fa.js} +17 -17
- package/{anchor-widget-15e4fb49.js → anchor-widget-12ef6131.js} +14 -14
- package/{auto-complete-widget-3777dde6.js → auto-complete-widget-b93415c6.js} +17 -17
- package/{avatar-widget-02bc06d6.js → avatar-widget-0876cdf6.js} +17 -17
- package/{backtop-widget-13ac96d4.js → backtop-widget-df47e3c0.js} +17 -17
- package/{badge-widget-d5929887.js → badge-widget-23a59e2a.js} +20 -20
- package/{barcode-widget-118814a4.js → barcode-widget-3f3c8034.js} +23 -23
- package/{baseImp-c747aa92.js → baseCommonField-c2a132bc.js} +3321 -3659
- package/baseDataType-af503f9f.js +4 -0
- package/{breadcrumb-widget-9c1ce816.js → breadcrumb-widget-e6607a19.js} +14 -14
- package/{button-widget-69beb829.js → button-widget-96f338f7.js} +17 -17
- package/{cache-widget-0eefea05.js → cache-widget-55248be9.js} +16 -16
- package/{card-widget-ecf8e83f.js → card-widget-d8aa3bfc.js} +36 -36
- package/{carousel-widget-9ae1d3b8.js → carousel-widget-04bbc0ea.js} +15 -15
- package/{cascader-widget-cc6f9fd5.js → cascader-widget-445be0fb.js} +22 -22
- package/chart-widget-17fb249b.js +113 -0
- package/{checkbox-widget-c788c8b5.js → checkbox-widget-8fb1a06e.js} +16 -16
- package/{collapse-widget-ab2dd707.js → collapse-widget-a03aab9f.js} +15 -15
- package/{color-picker-widget-4c430c6f.js → color-picker-widget-54d62083.js} +16 -16
- package/{cont-cell-widget-b9bc6859.js → cont-cell-widget-8b78509f.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-f0f147b3.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-df01b74e.js} +5 -5
- package/{cont-widget-6a48163e.js → cont-widget-d6b8de57.js} +5 -5
- package/content-wrapper-7179adf7.js +17 -0
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-69aa3d67.js → content-wrapper.vue_vue_type_script_setup_true_lang-0ff5e6b6.js} +7 -7
- package/{countdown-widget-162a8078.js → countdown-widget-cfbbbcf7.js} +22 -22
- package/{cssClass-04ad35f8.js → cssClass-22b82172.js} +2 -2
- package/{date-picker-range-widget-c1d31a90.js → date-picker-range-widget-3b5c6b30.js} +33 -33
- package/{date-picker-widget-0f2f8c23.js → date-picker-widget-5fbdf144.js} +34 -34
- package/default-slot-widget-e8f0af5f.js +27 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-10364416.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-89cd92f6.js} +7 -7
- package/{descriptions-widget-715839e8.js → descriptions-widget-29b846f3.js} +15 -15
- package/{dialog-815d640b.js → dialog-6ce4ec4d.js} +2 -2
- package/{dialog-widget-128615da.js → dialog-widget-3ca10228.js} +16 -16
- package/{divider-widget-37ffa37f.js → divider-widget-5331c181.js} +17 -17
- package/{drag-wrapper-449a452d.js → drag-wrapper-26233757.js} +15 -15
- package/{drawer-widget-862d5f05.js → drawer-widget-f7e1999e.js} +16 -16
- package/{dropdown-widget-faf12ae6.js → dropdown-widget-a8212368.js} +18 -18
- package/{empty-widget-d8c1a94c.js → empty-widget-bdadedc8.js} +17 -17
- package/{expression-3ff313e6.js → expression-2443dc1e.js} +1555 -1383
- package/feedback-widget-b05aed00.js +27 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-c470e651.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-88314dd9.js} +6 -6
- package/{fieldobj-e94e4f2f.js → fieldobj-e86c52db.js} +1 -1
- package/{file-upload-widget-fce9eb43.js → file-upload-widget-6e16f54e.js} +63 -63
- package/{form-item-wrapper-0c51f690.js → form-item-wrapper-3ee6dc3f.js} +20 -20
- package/{form-widget-e632b808.js → form-widget-48c38fde.js} +79 -80
- package/{global-provide-inject-f2e9314a.js → globalProvideInject-af5ac9ca.js} +3251 -2918
- package/{grid-col-widget-a1df59c2.js → grid-col-widget-58a0d1cb.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-35f1227e.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-4295e0db.js} +5 -5
- package/{grid-widget-d4642895.js → grid-widget-72fdf5b6.js} +5 -5
- package/{hcard-widget-cc1328b9.js → hcard-widget-ded3cb09.js} +26 -26
- package/{html-text-widget-274456b7.js → html-text-widget-9bcad0c0.js} +15 -15
- package/icon-59a05cd7.js +443 -0
- package/{icon-widget-849963ba.js → icon-widget-faf382c4.js} +14 -14
- package/iframe-widget-346fc34a.js +131 -0
- package/{image-widget-89b747cc.js → image-widget-e1d8417c.js} +14 -14
- package/{index-19895587.js → index-4feb900a.js} +8 -8
- package/{enum-type-3220958e.js → index-efb59a41.js} +237 -233
- package/index-f1d89bf9.js +238 -0
- package/{input-number-widget-b3314793.js → input-number-widget-54403c5a.js} +20 -20
- package/{input-tag-widget-d33aa2c0.js → input-tag-widget-90b052f2.js} +17 -17
- package/{input-widget-47bbee46.js → input-widget-1f10477c.js} +17 -17
- package/{label-wrapper-2155ce1e.js → label-wrapper-d53597ed.js} +6 -6
- package/{label-wrapper.vue_vue_type_style_index_0_lang-fcd9226e.js → label-wrapper.vue_vue_type_style_index_0_lang-6619d59d.js} +10 -10
- package/{link-widget-e9db2cc3.js → link-widget-f292713e.js} +17 -17
- package/{ltable-col-widget-d9dbdac7.js → ltable-col-widget-c6d79791.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-e70e1cdf.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-ec0e162d.js} +9 -9
- package/{ltable-widget-5e5b90cb.js → ltable-widget-6317e3dd.js} +11 -11
- package/{mask-04ad41e9.js → mask-4a7b3f05.js} +1 -1
- package/{mention-widget-53350221.js → mention-widget-9a67d9b9.js} +17 -17
- package/{menu-widget-d5077686.js → menu-widget-54832d22.js} +35 -35
- package/{model-widget-4517fe27.js → model-widget-12d7b5c6.js} +43 -43
- package/multirow-a7933e2a.js +235 -0
- package/{multirow-widget-f3aaba72.js → multirow-widget-9dbaaf3b.js} +45 -45
- package/package.json +1 -1
- package/{pagination-widget-11e2c5e2.js → pagination-widget-19e07f93.js} +14 -14
- package/{picture-upload-widget-8107d48c.js → picture-upload-widget-91ac5961.js} +51 -51
- package/{progress-widget-3234dc37.js → progress-widget-8285d220.js} +40 -40
- package/{qrcode-widget-22362453.js → qrcode-widget-8768fadb.js} +23 -23
- package/{radio-widget-b820efbf.js → radio-widget-24625a8c.js} +16 -16
- package/{range-widget-ee933ee0.js → range-widget-6a148c19.js} +23 -23
- package/{rate-widget-47e247d9.js → rate-widget-ddade3d7.js} +16 -16
- package/render.es.js +242 -240
- package/render.style.css +1 -1
- package/render.umd.js +359 -359
- package/{result-widget-df8e6fc1.js → result-widget-8555b393.js} +15 -15
- package/{rich-editor-widget-328d67a4.js → rich-editor-widget-3b1d1572.js} +21 -21
- package/{router-widget-66b508c2.js → router-widget-c502fff7.js} +14 -14
- package/{segmented-widget-9d06575d.js → segmented-widget-ae88e4e3.js} +32 -32
- package/{select-widget-0ca5a77d.js → select-widget-35456918.js} +16 -16
- package/{sfc-4e57232d.js → sfc-88854d51.js} +137 -136
- package/{sfcview-769da8d2.js → sfcview-a6d34fe7.js} +20 -20
- package/share-field-5b8d348c.js +863 -0
- package/{share-file-ae1b0f0f.js → share-file-b9b6df9d.js} +28 -29
- package/{skeleton-widget-c15938da.js → skeleton-widget-7cd026e6.js} +17 -17
- package/{skeletonItem-widget-6ab7c228.js → skeletonItem-widget-62ebc963.js} +14 -14
- package/{slider-widget-66943d99.js → slider-widget-11a26a3b.js} +16 -16
- package/{slot-0c0c26e2.js → slot-9c90ab7a.js} +6 -6
- package/{space-widget-9e0f16e9.js → space-widget-275b883e.js} +15 -15
- package/{splitter-widget-cfaf6648.js → splitter-widget-246cee74.js} +15 -15
- package/{static-text-widget-6f1765a0.js → static-text-widget-580387f7.js} +15 -15
- package/{statistic-widget-0b7cd66a.js → statistic-widget-4190eaed.js} +17 -17
- package/{steps-widget-83238190.js → steps-widget-66d08511.js} +14 -14
- package/{subMenu-widget-9df7e742.js → subMenu-widget-b29e61fc.js} +9 -9
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-4edb8ab5.js → subMenu-widget.vue_vue_type_script_setup_true_lang-a0993d3f.js} +19 -20
- package/{switch-widget-57f8f0f4.js → switch-widget-8da4f2c4.js} +16 -16
- package/{tab-pane-widget-c2c1e4eb.js → tab-pane-widget-d70dc524.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-b7da2810.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ee3f66bd.js} +5 -5
- package/table-col-widget-566de20c.js +23 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-b03e7309.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-30b20027.js} +26 -27
- package/{table-widget-1452a439.js → table-widget-b1f7edeb.js} +45 -45
- package/{tabs-widget-e462d782.js → tabs-widget-bb5c52de.js} +7 -7
- package/{tag-widget-be4e8d9f.js → tag-widget-3c185f23.js} +17 -17
- package/{text-widget-f242530c.js → text-widget-c7386d8e.js} +17 -17
- package/{textarea-widget-66fcc4a5.js → textarea-widget-0fe10859.js} +16 -16
- package/{time-picker-range-widget-58eb1f7d.js → time-picker-range-widget-77a300e1.js} +28 -29
- package/{time-picker-widget-798590b8.js → time-picker-widget-3b22e5ee.js} +23 -23
- package/{time-select-widget-8aef0b01.js → time-select-widget-a04bcbfb.js} +16 -16
- package/{timeline-widget-638b6fb7.js → timeline-widget-708d7749.js} +20 -20
- package/{tmpl-widget-21d8409a.js → tmpl-widget-c66af7cd.js} +28 -28
- package/{tooltip-widget-c6954724.js → tooltip-widget-0cc7c09b.js} +15 -15
- package/{tour-widget-d3a0bc37.js → tour-widget-6218b953.js} +36 -36
- package/{transfer-widget-eb3c431b.js → transfer-widget-a3056089.js} +17 -17
- package/{tree-select-widget-e2f8b098.js → tree-select-widget-fe844fb2.js} +16 -16
- package/{tree-widget-2225bd6a.js → tree-widget-342893a6.js} +24 -24
- package/uuid-1013bfdd.js +16 -0
- package/{verifycode-widget-8e71f538.js → verifycode-widget-63f3390d.js} +39 -39
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b1b666bd.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js} +45 -46
- package/{wrapper-widget-d9773c13.js → wrapper-widget-a3570b05.js} +7 -7
- package/chart-widget-cd1ad92e.js +0 -115
- package/content-wrapper-04e9f779.js +0 -17
- package/default-slot-widget-87817844.js +0 -27
- package/enum-type-541d923e.js +0 -271
- package/feedback-widget-810472c0.js +0 -27
- package/icon-4e8380f7.js +0 -181
- package/iframe-widget-0fcdc28f.js +0 -131
- package/index-a1a70aff.js +0 -239
- package/multirow-954607d6.js +0 -236
- package/share-field-e935c6da.js +0 -874
- package/table-col-widget-b578b99d.js +0 -23
- package/uuid-a3dfaedc.js +0 -199
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { defineComponent as c, computed as O, resolveComponent as S, openBlock as m, createBlock as n, mergeProps as l, unref as r, withCtx as u, isRef as x, toHandlers as z, createSlots as A, renderList as W, resolveDynamicComponent as h, createCommentVNode as f } from "vue";
|
|
2
|
-
import { e as B } from "./
|
|
2
|
+
import { e as B } from "./index-efb59a41.js";
|
|
3
3
|
import { I as E } from "./field-base-66c90648.js";
|
|
4
|
-
import { a as L } from "./share-field-
|
|
5
|
-
import { g as P } from "./slot-
|
|
6
|
-
import T from "./form-item-wrapper-
|
|
7
|
-
import { w as $ } from "./expression-
|
|
8
|
-
import { D as H } from "./drag-wrapper-
|
|
4
|
+
import { a as L } from "./share-field-5b8d348c.js";
|
|
5
|
+
import { g as P } from "./slot-9c90ab7a.js";
|
|
6
|
+
import T from "./form-item-wrapper-3ee6dc3f.js";
|
|
7
|
+
import { w as $ } from "./expression-2443dc1e.js";
|
|
8
|
+
import { D as H } from "./drag-wrapper-26233757.js";
|
|
9
9
|
import "./widget-base-df734ada.js";
|
|
10
|
-
import "./multirow-
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
10
|
+
import "./multirow-a7933e2a.js";
|
|
11
|
+
import "./baseCommonField-c2a132bc.js";
|
|
12
|
+
import "./icon-59a05cd7.js";
|
|
13
|
+
import "./baseDataType-af503f9f.js";
|
|
14
14
|
import "axios";
|
|
15
|
-
import "./dialog-
|
|
15
|
+
import "./dialog-6ce4ec4d.js";
|
|
16
16
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
17
|
-
import "./uuid-
|
|
17
|
+
import "./uuid-1013bfdd.js";
|
|
18
18
|
import "element-plus";
|
|
19
|
-
import "./
|
|
20
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
21
|
-
import "./index-
|
|
19
|
+
import "./globalProvideInject-af5ac9ca.js";
|
|
20
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js";
|
|
21
|
+
import "./index-4feb900a.js";
|
|
22
22
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
|
-
import "./fieldobj-
|
|
24
|
-
import "./label-wrapper.vue_vue_type_style_index_0_lang-
|
|
23
|
+
import "./fieldobj-e86c52db.js";
|
|
24
|
+
import "./label-wrapper.vue_vue_type_style_index_0_lang-6619d59d.js";
|
|
25
25
|
import "./source-map-b04aec4a.js";
|
|
26
26
|
import "./esprima-e8d15055.js";
|
|
27
27
|
const K = c({ componentName: $.FieldWidget }), ve = /* @__PURE__ */ c({
|
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
import { defineComponent as j, computed as c, onMounted as I, watch as ee, nextTick as re, resolveComponent as ne, openBlock as k, createBlock as C, mergeProps as M, unref as U, withCtx as O, toHandlers as te, createVNode as oe } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { u as ce } from "./icon-
|
|
4
|
-
import {
|
|
2
|
+
import { b as le, t as R, s as i, v as ue, P as ae, w as se } from "./baseCommonField-c2a132bc.js";
|
|
3
|
+
import { u as ce, ag as B } from "./icon-59a05cd7.js";
|
|
4
|
+
import { y as ie, d as E } from "./index-efb59a41.js";
|
|
5
5
|
import { I as fe } from "./field-base-66c90648.js";
|
|
6
|
-
import { _ as pe } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
7
|
-
import { a as me } from "./share-field-
|
|
8
|
-
import { w as ve, a as he } from "./expression-
|
|
9
|
-
import { _ as de } from "./subMenu-widget.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import
|
|
6
|
+
import { _ as pe } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js";
|
|
7
|
+
import { a as me } from "./share-field-5b8d348c.js";
|
|
8
|
+
import { w as ve, a as he } from "./expression-2443dc1e.js";
|
|
9
|
+
import { _ as de } from "./subMenu-widget.vue_vue_type_script_setup_true_lang-a0993d3f.js";
|
|
10
|
+
import "./baseDataType-af503f9f.js";
|
|
11
11
|
import "axios";
|
|
12
|
-
import "./dialog-
|
|
12
|
+
import "./dialog-6ce4ec4d.js";
|
|
13
13
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
|
-
import "./uuid-
|
|
14
|
+
import "./uuid-1013bfdd.js";
|
|
15
15
|
import "element-plus";
|
|
16
16
|
import "./widget-base-df734ada.js";
|
|
17
|
-
import "./
|
|
18
|
-
import "./index-
|
|
17
|
+
import "./globalProvideInject-af5ac9ca.js";
|
|
18
|
+
import "./index-4feb900a.js";
|
|
19
19
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
20
|
-
import "./fieldobj-
|
|
21
|
-
import "./multirow-
|
|
22
|
-
import "./slot-
|
|
20
|
+
import "./fieldobj-e86c52db.js";
|
|
21
|
+
import "./multirow-a7933e2a.js";
|
|
22
|
+
import "./slot-9c90ab7a.js";
|
|
23
23
|
import "./source-map-b04aec4a.js";
|
|
24
24
|
import "./esprima-e8d15055.js";
|
|
25
|
-
const _e = j({ componentName: ve.FieldWidget }),
|
|
25
|
+
const _e = j({ componentName: ve.FieldWidget }), He = /* @__PURE__ */ j({
|
|
26
26
|
..._e,
|
|
27
27
|
__name: "menu-widget",
|
|
28
28
|
props: { ...fe },
|
|
29
|
-
setup(
|
|
30
|
-
const b =
|
|
29
|
+
setup(W, { expose: w }) {
|
|
30
|
+
const b = W, { fieldEditor: d, fieldKey: A, attrs: f, events: D, extendAttrs: a, optionItems: l, refreshOptionItems: G, activeOptionItems: _, filterOptionItems: g, exposed: L, fieldObj: S, existEvent: $, handleEvent: N } = me(b), { instance: H } = ce(), K = le({ instance: H }), p = (e) => e == null ? void 0 : e.route, u = (e) => e == null ? void 0 : e.value, Q = (e) => {
|
|
31
31
|
const n = p(e);
|
|
32
32
|
if (!n)
|
|
33
33
|
return "";
|
|
34
|
-
const r = i.getLocationQueryParams(), t = ue(ae.getValue(e.buildUrlParams) || "", { urlParams: r, ctx:
|
|
34
|
+
const r = i.getLocationQueryParams(), t = ue(ae.getValue(e.buildUrlParams) || "", { urlParams: r, ctx: K });
|
|
35
35
|
let o = "";
|
|
36
36
|
return e != null && e.attachUrlParams ? o = i.buildUrl(n, { ...r, ...t }) : o = i.buildUrl(n, t), o;
|
|
37
37
|
}, V = c(() => {
|
|
38
38
|
const e = ie(l == null ? void 0 : l.value);
|
|
39
39
|
return R(e, "children", (n) => !0, (n) => {
|
|
40
|
-
m(e, u(n)) ? n.route =
|
|
40
|
+
m(e, u(n)) ? n.route = Q(n) || u(n) : n.route = u(n);
|
|
41
41
|
}), e;
|
|
42
|
-
}),
|
|
42
|
+
}), q = (e) => {
|
|
43
43
|
let n = "";
|
|
44
44
|
return R(V.value, "children", (r) => u(r) === e, (r) => {
|
|
45
45
|
n = p(r) || u(r);
|
|
46
46
|
}), n;
|
|
47
47
|
}, y = (e, n) => e == null ? void 0 : e.some((r) => {
|
|
48
48
|
var t, o;
|
|
49
|
-
return (r == null ? void 0 : r.menuItemType) ===
|
|
49
|
+
return (r == null ? void 0 : r.menuItemType) === B.MenuItemGroup ? !1 : u(r) === n ? ((t = r == null ? void 0 : r.children) == null ? void 0 : t.length) > 0 : ((o = r == null ? void 0 : r.children) == null ? void 0 : o.length) > 0 ? y(r.children, n) : !1;
|
|
50
50
|
}), m = (e, n) => e == null ? void 0 : e.some((r) => {
|
|
51
51
|
var t, o;
|
|
52
|
-
return (r == null ? void 0 : r.menuItemType) ===
|
|
53
|
-
}),
|
|
52
|
+
return (r == null ? void 0 : r.menuItemType) === B.MenuItemGroup ? !1 : u(r) === n ? !((t = r == null ? void 0 : r.children) != null && t.length) : ((o = r == null ? void 0 : r.children) == null ? void 0 : o.length) > 0 ? m(r.children, n) : !1;
|
|
53
|
+
}), z = () => {
|
|
54
54
|
const e = window.location.href, n = i.getBaseUrl(e);
|
|
55
55
|
var r = g((t) => {
|
|
56
56
|
var o = he.isActiveItem;
|
|
57
|
-
if (
|
|
58
|
-
return
|
|
57
|
+
if ($(o))
|
|
58
|
+
return N(o, { item: t });
|
|
59
59
|
const s = p(t), Z = i.getBaseUrl(s);
|
|
60
60
|
return !!s && (n == null ? void 0 : n.endsWith(Z));
|
|
61
61
|
});
|
|
62
62
|
return r == null ? void 0 : r.map((t) => u(t));
|
|
63
|
-
},
|
|
63
|
+
}, J = () => {
|
|
64
64
|
var e;
|
|
65
65
|
return (e = _ == null ? void 0 : _.value) == null ? void 0 : e.map((n) => u(n));
|
|
66
66
|
}, x = c(() => {
|
|
67
67
|
var e;
|
|
68
68
|
return (e = f == null ? void 0 : f.value) == null ? void 0 : e.router;
|
|
69
69
|
}), P = c(() => {
|
|
70
|
-
var e =
|
|
70
|
+
var e = J();
|
|
71
71
|
if (x.value && !b.designState) {
|
|
72
|
-
var n =
|
|
72
|
+
var n = z();
|
|
73
73
|
return n && (n == null ? void 0 : n.length) > 0 ? n : e;
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
76
|
}), v = c(() => {
|
|
77
77
|
var n;
|
|
78
78
|
var e = ((n = P.value) == null ? void 0 : n.find((r) => m(l == null ? void 0 : l.value, r))) || "";
|
|
79
|
-
return
|
|
79
|
+
return q(e);
|
|
80
80
|
}), h = c(() => {
|
|
81
81
|
var e = g((r) => {
|
|
82
82
|
var t, o;
|
|
@@ -102,7 +102,7 @@ const _e = j({ componentName: ve.FieldWidget }), Ke = /* @__PURE__ */ j({
|
|
|
102
102
|
}, Y = c(() => {
|
|
103
103
|
var n;
|
|
104
104
|
const e = {};
|
|
105
|
-
return v.value &&
|
|
105
|
+
return v.value && E(e, { defaultActive: v.value }), h.value && ((n = h.value) == null ? void 0 : n.length) > 0 && E(e, { defaultOpeneds: h.value }), {
|
|
106
106
|
...f.value,
|
|
107
107
|
...e
|
|
108
108
|
};
|
|
@@ -115,8 +115,8 @@ const _e = j({ componentName: ve.FieldWidget }), Ke = /* @__PURE__ */ j({
|
|
|
115
115
|
(r = a == null ? void 0 : a.value) != null && r.openAll || (T(!0), X(n));
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
|
-
}),
|
|
119
|
-
...
|
|
118
|
+
}), w({
|
|
119
|
+
...L,
|
|
120
120
|
refresh: () => {
|
|
121
121
|
G();
|
|
122
122
|
},
|
|
@@ -127,7 +127,7 @@ const _e = j({ componentName: ve.FieldWidget }), Ke = /* @__PURE__ */ j({
|
|
|
127
127
|
}), (e, n) => {
|
|
128
128
|
const r = ne("el-menu");
|
|
129
129
|
return k(), C(pe, M(e.$props, {
|
|
130
|
-
"prop-options": { fieldObj: U(
|
|
130
|
+
"prop-options": { fieldObj: U(S) }
|
|
131
131
|
}), {
|
|
132
132
|
default: O(({ data: t }) => [
|
|
133
133
|
(k(), C(r, M({
|
|
@@ -154,5 +154,5 @@ const _e = j({ componentName: ve.FieldWidget }), Ke = /* @__PURE__ */ j({
|
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
export {
|
|
157
|
-
|
|
157
|
+
He as default
|
|
158
158
|
};
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import { defineComponent as q, resolveComponent as T, openBlock as y, createBlock as h, mergeProps as z, unref as a, withCtx as _, createElementVNode as
|
|
1
|
+
import { defineComponent as q, resolveComponent as T, openBlock as y, createBlock as h, mergeProps as z, unref as a, withCtx as _, createElementVNode as B, createElementBlock as V, Fragment as G, renderList as H, createVNode as J, resolveDynamicComponent as Q, createTextVNode as I, toDisplayString as w, createCommentVNode as N } from "vue";
|
|
2
2
|
import { I as U } from "./widget-base-df734ada.js";
|
|
3
|
-
import { a as X } from "./share-field-
|
|
4
|
-
import { _ as Y } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
5
|
-
import { W as g } from "./
|
|
6
|
-
import {
|
|
7
|
-
import { e as
|
|
3
|
+
import { a as X } from "./share-field-5b8d348c.js";
|
|
4
|
+
import { _ as Y } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js";
|
|
5
|
+
import { W as g } from "./icon-59a05cd7.js";
|
|
6
|
+
import { k as F } from "./baseCommonField-c2a132bc.js";
|
|
7
|
+
import { e as A } from "./index-efb59a41.js";
|
|
8
8
|
import { Plus as Z, Edit as ee } from "./index-6bcfdc22.js";
|
|
9
|
-
import {
|
|
10
|
-
import "./multirow-
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
9
|
+
import { y as te } from "./expression-2443dc1e.js";
|
|
10
|
+
import "./multirow-a7933e2a.js";
|
|
11
|
+
import "./globalProvideInject-af5ac9ca.js";
|
|
12
|
+
import "./baseDataType-af503f9f.js";
|
|
13
13
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
|
-
import "./slot-
|
|
15
|
-
import "./
|
|
16
|
-
import "./index-
|
|
14
|
+
import "./slot-9c90ab7a.js";
|
|
15
|
+
import "./uuid-1013bfdd.js";
|
|
16
|
+
import "./index-4feb900a.js";
|
|
17
17
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
18
|
-
import "./fieldobj-
|
|
18
|
+
import "./fieldobj-e86c52db.js";
|
|
19
19
|
import "axios";
|
|
20
|
-
import "./dialog-
|
|
20
|
+
import "./dialog-6ce4ec4d.js";
|
|
21
21
|
import "element-plus";
|
|
22
22
|
import "./source-map-b04aec4a.js";
|
|
23
23
|
import "./esprima-e8d15055.js";
|
|
24
|
-
const
|
|
24
|
+
const ne = { style: { display: "flex", "flex-direction": "row" } }, oe = { style: { flex: "1" } }, be = /* @__PURE__ */ q({
|
|
25
25
|
__name: "model-widget",
|
|
26
26
|
props: {
|
|
27
27
|
...U
|
|
28
28
|
},
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
var
|
|
32
|
-
switch ((
|
|
29
|
+
setup(D, { expose: P }) {
|
|
30
|
+
const S = D, { exposed: n, attrs: e, events: f, instance: k, optionItems: x, fieldObj: E } = X(S), O = A.i18nt("designer.hint.addButtonText"), K = A.i18nt("designer.hint.saveButtonText"), W = () => {
|
|
31
|
+
var t;
|
|
32
|
+
switch ((t = e.value) == null ? void 0 : t.compName) {
|
|
33
33
|
case "tag":
|
|
34
34
|
case "text":
|
|
35
35
|
return "info";
|
|
36
36
|
default:
|
|
37
37
|
return "default";
|
|
38
38
|
}
|
|
39
|
-
}, R = (
|
|
39
|
+
}, R = (t) => {
|
|
40
40
|
var p, c, l;
|
|
41
41
|
const r = (p = e == null ? void 0 : e.value) == null ? void 0 : p.relatedIds;
|
|
42
42
|
if (!r || (r == null ? void 0 : r.length) <= 0)
|
|
43
43
|
return !1;
|
|
44
44
|
const { transFormula: u } = F();
|
|
45
|
-
var s =
|
|
45
|
+
var s = t == null ? void 0 : t[(c = e == null ? void 0 : e.value) == null ? void 0 : c.contentKey];
|
|
46
46
|
return (l = Array.from(r)) == null ? void 0 : l.some((o, m) => {
|
|
47
|
-
const v = u(o), d =
|
|
48
|
-
var i =
|
|
47
|
+
const v = u(o), d = n == null ? void 0 : n.findRefById(v, k);
|
|
48
|
+
var i = n == null ? void 0 : n.callRefFunc(d, g.getValue);
|
|
49
49
|
return i == null ? void 0 : i.includes(s);
|
|
50
50
|
});
|
|
51
|
-
}, $ = (
|
|
51
|
+
}, $ = (t) => {
|
|
52
52
|
var p, c, l;
|
|
53
53
|
const r = (p = e == null ? void 0 : e.value) == null ? void 0 : p.relatedIds;
|
|
54
54
|
if (!r || (r == null ? void 0 : r.length) <= 0)
|
|
55
55
|
return;
|
|
56
56
|
const { transFormula: u } = F();
|
|
57
|
-
var s =
|
|
57
|
+
var s = t == null ? void 0 : t[(c = e == null ? void 0 : e.value) == null ? void 0 : c.contentKey];
|
|
58
58
|
(l = Array.from(r)) == null || l.forEach((o, m) => {
|
|
59
59
|
var C, b;
|
|
60
|
-
const v = u(o), d =
|
|
61
|
-
var i =
|
|
62
|
-
M ?
|
|
60
|
+
const v = u(o), d = n == null ? void 0 : n.findRefById(v, k);
|
|
61
|
+
var i = n == null ? void 0 : n.callRefFunc(d, g.getValue), M = i == null ? void 0 : i.includes(s);
|
|
62
|
+
M ? n == null || n.callRefFunc(d, g.setValue, { content: te(i, s) }) : (C = e == null ? void 0 : e.value) != null && C.appendOnClick && (n == null || n.callRefFunc(d, g.insertOnMousePos, { content: t == null ? void 0 : t[(b = e == null ? void 0 : e.value) == null ? void 0 : b.contentKey] }));
|
|
63
63
|
});
|
|
64
64
|
}, j = () => {
|
|
65
65
|
var c, l, o, m;
|
|
66
|
-
const
|
|
67
|
-
if (!
|
|
66
|
+
const t = (c = e == null ? void 0 : e.value) == null ? void 0 : c.relatedIds;
|
|
67
|
+
if (!t || (t == null ? void 0 : t.length) <= 0)
|
|
68
68
|
return;
|
|
69
|
-
const { transFormula: r } = F(), u = r(
|
|
70
|
-
var p =
|
|
69
|
+
const { transFormula: r } = F(), u = r(t == null ? void 0 : t[0]), s = n == null ? void 0 : n.findRefById(u, k);
|
|
70
|
+
var p = n == null ? void 0 : n.callRefFunc(s, g.getValue);
|
|
71
71
|
(m = (l = f == null ? void 0 : f.value) == null ? void 0 : l.save) == null || m.call(l, p, (o = e == null ? void 0 : e.value) == null ? void 0 : o.operateData);
|
|
72
72
|
}, L = () => {
|
|
73
|
-
var
|
|
74
|
-
(u = (
|
|
73
|
+
var t, r, u;
|
|
74
|
+
(u = (t = f == null ? void 0 : f.value) == null ? void 0 : t.add) == null || u.call(t, (r = e == null ? void 0 : e.value) == null ? void 0 : r.operateData);
|
|
75
75
|
};
|
|
76
|
-
return
|
|
77
|
-
...
|
|
78
|
-
}), (
|
|
76
|
+
return P({
|
|
77
|
+
...n
|
|
78
|
+
}), (t, r) => {
|
|
79
79
|
const u = T("el-badge"), s = T("el-button");
|
|
80
|
-
return y(), h(Y, z(
|
|
80
|
+
return y(), h(Y, z(t.$props, {
|
|
81
81
|
"prop-options": { fieldObj: a(E) }
|
|
82
82
|
}), {
|
|
83
83
|
default: _(({ data: p }) => {
|
|
84
84
|
var c, l;
|
|
85
85
|
return [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
(y(!0), V(G, null, H(a(
|
|
86
|
+
B("div", ne, [
|
|
87
|
+
B("div", oe, [
|
|
88
|
+
(y(!0), V(G, null, H(a(x), (o, m) => (y(), V("span", {
|
|
89
89
|
key: m,
|
|
90
90
|
style: { position: "relative", display: "inline-block", margin: "3px 9px" }
|
|
91
91
|
}, [
|
|
@@ -114,7 +114,7 @@ const te = { style: { display: "flex", "flex-direction": "row" } }, oe = { style
|
|
|
114
114
|
}, 1032, ["is-dot"])
|
|
115
115
|
]))), 128))
|
|
116
116
|
]),
|
|
117
|
-
|
|
117
|
+
B("div", null, [
|
|
118
118
|
(c = a(e)) != null && c.showAddButton ? (y(), h(s, {
|
|
119
119
|
key: 0,
|
|
120
120
|
onClick: L,
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { c as Y, g as Z, B as L, k as a } from "./baseCommonField-c2a132bc.js";
|
|
2
|
+
import { g as T, c as P, F as k, t as p, r as R } from "./globalProvideInject-af5ac9ca.js";
|
|
3
|
+
import { c as d, g as rr } from "./slot-9c90ab7a.js";
|
|
4
|
+
import { i as K, o as B, d as V, A as er, D as q, w as tr, g as sr, k as I } from "./index-efb59a41.js";
|
|
5
|
+
import { reactive as M, ref as nr } from "vue";
|
|
6
|
+
import { u as or } from "./icon-59a05cd7.js";
|
|
7
|
+
import { a as G } from "./expression-2443dc1e.js";
|
|
8
|
+
import { u as ir } from "./uuid-1013bfdd.js";
|
|
9
|
+
function ur() {
|
|
10
|
+
const t = {}, g = (s, r) => {
|
|
11
|
+
var e, o, i, n;
|
|
12
|
+
return s ? !!((e = s == null ? void 0 : s.proxy) != null && e.$options && ((i = (o = s == null ? void 0 : s.proxy) == null ? void 0 : o.$options) == null ? void 0 : i.componentName) === r || s != null && s.exposed && ((n = s == null ? void 0 : s.exposed) == null ? void 0 : n.componentName) === r) : !1;
|
|
13
|
+
}, w = (s, r, e) => {
|
|
14
|
+
s && B(s).forEach((o) => {
|
|
15
|
+
g(s[o], r) && (e == null || e(s[o]));
|
|
16
|
+
});
|
|
17
|
+
}, m = (s, r, e) => {
|
|
18
|
+
s && (g(s, r) ? e == null || e(s) : m(s.parent, r, e));
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
emit$(s, r) {
|
|
22
|
+
t[s] && t[s].forEach((e) => {
|
|
23
|
+
e(r);
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
on$(s, r) {
|
|
27
|
+
t[s] = t[s] || [], t[s].push(r);
|
|
28
|
+
},
|
|
29
|
+
off$(s, r) {
|
|
30
|
+
if (t[s]) {
|
|
31
|
+
if (K(r)) {
|
|
32
|
+
t[s].length = 0;
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
for (let e = 0; e < t[s].length; e++)
|
|
36
|
+
if (t[s][e] === r) {
|
|
37
|
+
t[s].splice(e, 1);
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
dispatch(s, r, e, o) {
|
|
43
|
+
if (!s)
|
|
44
|
+
return;
|
|
45
|
+
let i = o.parent || o.root;
|
|
46
|
+
m(i, s, (n) => {
|
|
47
|
+
var h;
|
|
48
|
+
if (n) {
|
|
49
|
+
const D = n.exposed.emit$ || n.emit$;
|
|
50
|
+
D && D(r, e), n != null && n.proxy && ((h = n == null ? void 0 : n.proxy) == null || h.$emit(r, e));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
},
|
|
54
|
+
broadcast(s, r, e, o) {
|
|
55
|
+
o == null || o.forEach((i) => {
|
|
56
|
+
w(i, s, (n) => {
|
|
57
|
+
const h = n.exposed.emit$ || n.emit$;
|
|
58
|
+
h && h.call(n, r, e);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
const fr = "", _ = "_", H = (t, g) => K(g) ? t || "" : `${fr}${t}${_}${g}`, A = (t) => {
|
|
65
|
+
const g = t;
|
|
66
|
+
if (!g)
|
|
67
|
+
return { id: "" };
|
|
68
|
+
if (g.indexOf(_) === -1)
|
|
69
|
+
return { id: g };
|
|
70
|
+
const [m, s] = t == null ? void 0 : t.split(_);
|
|
71
|
+
return { id: m, groupName: s };
|
|
72
|
+
};
|
|
73
|
+
var gr = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.Inner2Inner = 1] = "Inner2Inner", t[t.Inner2Outer = 2] = "Inner2Outer", t[t.Outer2Inner = 3] = "Outer2Inner", t[t.Outer2Outer = 4] = "Outer2Outer", t[t.DiffInner = 5] = "DiffInner", t))(gr || {});
|
|
74
|
+
const Cr = (t, g) => {
|
|
75
|
+
const w = A(t), m = w == null ? void 0 : w.groupName, s = A(g), r = s == null ? void 0 : s.groupName;
|
|
76
|
+
return !m && !r ? 4 : m && !r ? 2 : m && r ? m !== r ? 5 : 1 : !m && r ? 3 : 0;
|
|
77
|
+
};
|
|
78
|
+
function cr(t, g, w) {
|
|
79
|
+
const m = g == null ? void 0 : g.pageConfig, s = g == null ? void 0 : g.formData, r = M({});
|
|
80
|
+
V(r, s);
|
|
81
|
+
var { instance: e } = or(w);
|
|
82
|
+
const o = () => {
|
|
83
|
+
var D = T(t);
|
|
84
|
+
D == null || D.forEach((S) => {
|
|
85
|
+
const { computedDefaultValue: v, fieldName: F, hasDefaultValue: W } = Y(S.field, g, { s_fieldName: !0 }, e);
|
|
86
|
+
F.value && W() && er(v()).then((b) => {
|
|
87
|
+
V(r, { [F.value]: b });
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
}, i = () => {
|
|
91
|
+
q(r);
|
|
92
|
+
};
|
|
93
|
+
return {
|
|
94
|
+
formModel: r,
|
|
95
|
+
pageConfig: m,
|
|
96
|
+
widgetList: t,
|
|
97
|
+
initData: o,
|
|
98
|
+
setData: (D, S = !0) => {
|
|
99
|
+
S && i(), V(r, D);
|
|
100
|
+
},
|
|
101
|
+
getData: () => tr(r),
|
|
102
|
+
clearData: i
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function mr() {
|
|
106
|
+
const t = (r, e) => R(r, { newName: !0, recordSource: !0 }, (i, n) => H(i || n, e), (i) => !!i.dynamicItemFlag), g = (r, e, o) => {
|
|
107
|
+
var S, v;
|
|
108
|
+
I(o) && (o = `${(S = ir()) == null ? void 0 : S.substring(0, 5)}_${!I(e == null ? void 0 : e.$index) && (e == null ? void 0 : e.$index) >= 0 ? e == null ? void 0 : e.$index : ""}`);
|
|
109
|
+
var i = rr(r, !0);
|
|
110
|
+
let n = i == null ? void 0 : i.map((F) => t(F, o));
|
|
111
|
+
const h = s(n), { updateFomulaName: D } = a();
|
|
112
|
+
return (v = B(h)) == null || v.forEach((F) => {
|
|
113
|
+
const W = h[F], b = W == null ? void 0 : W.name;
|
|
114
|
+
n = D(n, b, F);
|
|
115
|
+
}), { widget: n, id: o, key: Z(), data: e };
|
|
116
|
+
}, w = (r, e) => {
|
|
117
|
+
if (r || (r = []), e && (r == null ? void 0 : r.length) < e) {
|
|
118
|
+
const n = e - (r == null ? void 0 : r.length);
|
|
119
|
+
for (var o = 0; o < n; o++) {
|
|
120
|
+
var i = {};
|
|
121
|
+
r == null || r.push(i);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return r;
|
|
125
|
+
}, m = (r, e, o, i) => {
|
|
126
|
+
if (Array.isArray(e))
|
|
127
|
+
return e = w(e, o), e == null ? void 0 : e.map((n, h) => {
|
|
128
|
+
const D = i ? i(n, h) : n;
|
|
129
|
+
return g(r, D, h + "");
|
|
130
|
+
});
|
|
131
|
+
}, s = (r, e) => {
|
|
132
|
+
let o = {};
|
|
133
|
+
return r && p(r, (i) => {
|
|
134
|
+
const n = L.getName(i), h = () => {
|
|
135
|
+
n && (o[n] = i == null ? void 0 : i._source);
|
|
136
|
+
};
|
|
137
|
+
e ? e(i) && h() : h();
|
|
138
|
+
}), o;
|
|
139
|
+
};
|
|
140
|
+
return {
|
|
141
|
+
newSlot: g,
|
|
142
|
+
reflectTargetWithSourceOne: s,
|
|
143
|
+
getSlotFromData: m,
|
|
144
|
+
getMinRowData: w,
|
|
145
|
+
parseGroupId: A,
|
|
146
|
+
formatGroupId: H
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
function Er(t, g) {
|
|
150
|
+
const w = t == null ? void 0 : t.fieldName, m = t == null ? void 0 : t.setValue, s = nr({}), r = M({}), e = M([]), { newSlot: o, reflectTargetWithSourceOne: i, getSlotFromData: n, getMinRowData: h } = mr(), D = (u, c) => {
|
|
151
|
+
var C;
|
|
152
|
+
let f = {};
|
|
153
|
+
const $ = i(c);
|
|
154
|
+
return (C = B(u)) == null || C.map((E) => {
|
|
155
|
+
var O, x, y;
|
|
156
|
+
const l = (O = $ == null ? void 0 : $[E]) == null ? void 0 : O.name;
|
|
157
|
+
l && (f[l] = u == null ? void 0 : u[E], (y = (x = B(u)) == null ? void 0 : x.filter((N) => N.startsWith(E + "_"))) == null || y.forEach((N) => {
|
|
158
|
+
f[N == null ? void 0 : N.replace(E, l)] = u == null ? void 0 : u[N];
|
|
159
|
+
}));
|
|
160
|
+
}), f;
|
|
161
|
+
}, S = (u, c) => {
|
|
162
|
+
var C, E;
|
|
163
|
+
let f = {};
|
|
164
|
+
if (sr(u)) {
|
|
165
|
+
const l = i(c, (O) => !!(O != null && O.formItemFlag));
|
|
166
|
+
(C = B(l)) == null || C.map((O) => {
|
|
167
|
+
var x;
|
|
168
|
+
O && (f[O] = u == null ? void 0 : u[(x = l == null ? void 0 : l[O]) == null ? void 0 : x.name]);
|
|
169
|
+
});
|
|
170
|
+
} else {
|
|
171
|
+
var $ = { globalConfig: t == null ? void 0 : t.globalConfig, pageConfig: (E = t == null ? void 0 : t.designer) == null ? void 0 : E.pageConfig, formData: f, designState: t == null ? void 0 : t.designState };
|
|
172
|
+
const { formModel: l, initData: O } = cr(c, $, g);
|
|
173
|
+
O(), V(f, l);
|
|
174
|
+
}
|
|
175
|
+
return f;
|
|
176
|
+
}, v = (u, c) => {
|
|
177
|
+
const f = S(c, u.widget);
|
|
178
|
+
return V(r, f), f;
|
|
179
|
+
}, F = (u) => {
|
|
180
|
+
var c;
|
|
181
|
+
(c = B(r)) == null || c.forEach((f) => {
|
|
182
|
+
const $ = A(f);
|
|
183
|
+
($ == null ? void 0 : $.groupName) == u.id && delete r[f];
|
|
184
|
+
});
|
|
185
|
+
}, W = () => e == null ? void 0 : e.map((c) => D(r, c == null ? void 0 : c.widget)), b = (u, c) => {
|
|
186
|
+
q(r);
|
|
187
|
+
const f = c(u);
|
|
188
|
+
return f == null || f.forEach(($) => {
|
|
189
|
+
const C = S($ == null ? void 0 : $.data, $ == null ? void 0 : $.widget);
|
|
190
|
+
V(r, C);
|
|
191
|
+
}), e.splice(0, e.length), f && f.length > 0 && e.push(...f), e;
|
|
192
|
+
}, j = (u) => {
|
|
193
|
+
var f;
|
|
194
|
+
var c = d({ ...t, widget: u });
|
|
195
|
+
return (f = c.attrs) == null ? void 0 : f.value;
|
|
196
|
+
}, z = (u, c, f) => P(u, c, e, f), { off$: J, on$: Q, emit$: U } = ur(), X = () => {
|
|
197
|
+
J(G.fieldChange), Q(G.fieldChange, (u) => {
|
|
198
|
+
var c;
|
|
199
|
+
m == null || m(W()), (c = t == null ? void 0 : t.fieldChanged) == null || c.call(t);
|
|
200
|
+
});
|
|
201
|
+
};
|
|
202
|
+
return (() => {
|
|
203
|
+
const u = w;
|
|
204
|
+
k.globalProvide({
|
|
205
|
+
globalFormName: u,
|
|
206
|
+
globalDataModel: r
|
|
207
|
+
}), X();
|
|
208
|
+
})(), {
|
|
209
|
+
getSlotFromData: n,
|
|
210
|
+
getMinRowData: h,
|
|
211
|
+
fromModel: S,
|
|
212
|
+
toModel: D,
|
|
213
|
+
newSlot: o,
|
|
214
|
+
getWidgetOption: j,
|
|
215
|
+
newFieldModelFromSlot: v,
|
|
216
|
+
removeFieldModelFromSlot: F,
|
|
217
|
+
getValue: W,
|
|
218
|
+
setValue: b,
|
|
219
|
+
findWidgetByNameWithSibId: z,
|
|
220
|
+
// listenFormModel,
|
|
221
|
+
emit$: U,
|
|
222
|
+
formModel: r,
|
|
223
|
+
rowsData: e,
|
|
224
|
+
widgetRefList: s
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
export {
|
|
228
|
+
ur as a,
|
|
229
|
+
mr as b,
|
|
230
|
+
Er as c,
|
|
231
|
+
gr as f,
|
|
232
|
+
Cr as g,
|
|
233
|
+
A as p,
|
|
234
|
+
cr as u
|
|
235
|
+
};
|