hlrender 0.0.112 → 0.0.113
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/package.json +2 -2
- package/render.es.js +1 -1
- package/render.umd.js +1 -1
- package/sfcview-d775814d.js +64 -0
- package/sfcview-39d9a94e.js +0 -64
package/package.json
CHANGED
package/render.es.js
CHANGED
|
@@ -4438,7 +4438,7 @@ function qa(o) {
|
|
|
4438
4438
|
});
|
|
4439
4439
|
}),
|
|
4440
4440
|
getFieldItems: () => new Promise((e, f) => {
|
|
4441
|
-
import("./sfcview-
|
|
4441
|
+
import("./sfcview-d775814d.js").then((t) => {
|
|
4442
4442
|
const { useGenFieldItemList: a } = t, { filterFieldItems: s } = a(o == null ? void 0 : o.widgetList), l = s();
|
|
4443
4443
|
e == null || e(l);
|
|
4444
4444
|
});
|
package/render.umd.js
CHANGED
|
@@ -2739,7 +2739,7 @@ ${Lc(l,"<template>","</template>",void 0,!0)}
|
|
|
2739
2739
|
${Lc(u,`<script${n?" setup":""}>`,"<\/script>",void 0,!0)}
|
|
2740
2740
|
${Lc(f,"<style>","</style>",void 0,!0)}
|
|
2741
2741
|
${Lc(h,"<style scoped>","</style>",void 0,!0)}
|
|
2742
|
-
`}},Symbol.toStringTag,{value:"Module"})),Mye=Object.freeze(Object.defineProperty({__proto__:null,useGenFieldItemList:(e,t)=>{const n=(c,s)=>{const l=[],u=h=>!!h.dynamicItemFlag||h.category===kl.container&&r(h);Nu(c,l,!1,u);var f=l==null?void 0:l.filter(h=>h==null?void 0:h.formItemFlag);return f==null||f.forEach(h=>{if(!(h!=null&&h.dynamicItemFlag))s.push({widget:i(h)});else{const d=[];mk(h,d,!1,u);const v=[];n(d,v),s.push({widget:i(h),children:v})}}),s},r=c=>ut.getOptions(c,"hidden"),a=c=>ut.getOptions(c,"name"),o=()=>{const c=[];var s=t?Wp(e,l=>a(l)===(t==null?void 0:t.fName)||(l==null?void 0:l.type)==(t==null?void 0:t.wdt),!1):e;return n(s,c)},i=c=>{var m;const s={},l=(p,g)=>{s[p]=g},u=p=>{const g=ut.getOptions(p,"content"),y=ut.getOptions(p,"label"),x=ut.getOptions(p,"name");return y||g||x},f=p=>({label:u(p),key:a(p),type:"text"}),h=p=>{const y=ut.getOptions(p,"
|
|
2742
|
+
`}},Symbol.toStringTag,{value:"Module"})),Mye=Object.freeze(Object.defineProperty({__proto__:null,useGenFieldItemList:(e,t)=>{const n=(c,s)=>{const l=[],u=h=>!!h.dynamicItemFlag||h.category===kl.container&&r(h);Nu(c,l,!1,u);var f=l==null?void 0:l.filter(h=>h==null?void 0:h.formItemFlag);return f==null||f.forEach(h=>{if(!(h!=null&&h.dynamicItemFlag))s.push({widget:i(h)});else{const d=[];mk(h,d,!1,u);const v=[];n(d,v),s.push({widget:i(h),children:v})}}),s},r=c=>ut.getOptions(c,"hidden"),a=c=>ut.getOptions(c,"name"),o=()=>{const c=[];var s=t?Wp(e,l=>a(l)===(t==null?void 0:t.fName)||(l==null?void 0:l.type)==(t==null?void 0:t.wdt),!1):e;return n(s,c)},i=c=>{var m;const s={},l=(p,g)=>{s[p]=g},u=p=>{const g=ut.getOptions(p,"content"),y=ut.getOptions(p,"label"),x=ut.getOptions(p,"name");return y||g||x},f=p=>({label:u(p),key:a(p),type:"text"}),h=p=>{const y=ut.getOptions(p,"textName")||`${a(p)}${Tl.optionText}`;return{label:u(p),key:`${y}`,type:"option"}},d=p=>({label:u(p),key:a(p),type:"multirow"});return(()=>{dT(et).forEach(p=>{l(p.label,f)}),[et.select,et.radio,et.checkbox,et.cascader,et.autoComplete].forEach(p=>{l(p,h)}),l(et.multirow,d)})(),(m=s[c.type])==null?void 0:m.call(s,c)};return{filterFieldItems:o}}},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
|
|
2743
2743
|
Copyright (c) Microsoft Corporation.
|
|
2744
2744
|
|
|
2745
2745
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { D as O, B as a } from "./baseImp-26b9c04a.js";
|
|
2
|
+
import { c, d as k } from "./enum-type-bb2bfafa.js";
|
|
3
|
+
import { f as x, n as C, o as E } from "./index-a7d766e7.js";
|
|
4
|
+
import { l as T } from "./expression-490b4335.js";
|
|
5
|
+
import "./enum-type-4a798b1a.js";
|
|
6
|
+
import "vue";
|
|
7
|
+
import "./icon-a0e0cdb0.js";
|
|
8
|
+
import "./dialog-c4706078.js";
|
|
9
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
10
|
+
import "./uuid-4999945f.js";
|
|
11
|
+
import "element-plus";
|
|
12
|
+
import "./source-map-b04aec4a.js";
|
|
13
|
+
import "./esprima-e8d15055.js";
|
|
14
|
+
const J = (f, i) => {
|
|
15
|
+
const y = (o, r) => {
|
|
16
|
+
const n = [], m = (e) => !!e.dynamicItemFlag || e.category === k.container && b(e);
|
|
17
|
+
C(o, n, !1, m);
|
|
18
|
+
var l = n == null ? void 0 : n.filter((e) => e == null ? void 0 : e.formItemFlag);
|
|
19
|
+
return l == null || l.forEach((e) => {
|
|
20
|
+
if (!(e != null && e.dynamicItemFlag))
|
|
21
|
+
r.push({ widget: h(e) });
|
|
22
|
+
else {
|
|
23
|
+
const p = [];
|
|
24
|
+
E(e, p, !1, m);
|
|
25
|
+
const u = [];
|
|
26
|
+
y(p, u), r.push({ widget: h(e), children: u });
|
|
27
|
+
}
|
|
28
|
+
}), r;
|
|
29
|
+
}, b = (o) => a.getOptions(o, "hidden"), s = (o) => a.getOptions(o, "name"), F = () => {
|
|
30
|
+
const o = [];
|
|
31
|
+
var r = i ? x(f, (n) => s(n) === (i == null ? void 0 : i.fName) || (n == null ? void 0 : n.type) == (i == null ? void 0 : i.wdt), !1) : f;
|
|
32
|
+
return y(r, o);
|
|
33
|
+
}, h = (o) => {
|
|
34
|
+
var d;
|
|
35
|
+
const r = {}, n = (t, g) => {
|
|
36
|
+
r[t] = g;
|
|
37
|
+
}, m = (t) => {
|
|
38
|
+
const g = a.getOptions(t, "content"), _ = a.getOptions(t, "label"), I = a.getOptions(t, "name");
|
|
39
|
+
return _ || g || I;
|
|
40
|
+
}, l = (t) => ({ label: m(t), key: s(t), type: "text" }), e = (t) => {
|
|
41
|
+
const _ = a.getOptions(t, "textName") || `${s(t)}${T.optionText}`;
|
|
42
|
+
return { label: m(t), key: `${_}`, type: "option" };
|
|
43
|
+
}, p = (t) => ({ label: m(t), key: s(t), type: "multirow" });
|
|
44
|
+
return (() => {
|
|
45
|
+
O(c).forEach((t) => {
|
|
46
|
+
n(t.label, l);
|
|
47
|
+
}), [
|
|
48
|
+
c.select,
|
|
49
|
+
c.radio,
|
|
50
|
+
c.checkbox,
|
|
51
|
+
c.cascader,
|
|
52
|
+
c.autoComplete
|
|
53
|
+
].forEach((t) => {
|
|
54
|
+
n(t, e);
|
|
55
|
+
}), n(c.multirow, p);
|
|
56
|
+
})(), (d = r[o.type]) == null ? void 0 : d.call(r, o);
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
filterFieldItems: F
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
J as useGenFieldItemList
|
|
64
|
+
};
|
package/sfcview-39d9a94e.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { D as O, B as c } from "./baseImp-26b9c04a.js";
|
|
2
|
-
import { c as l, d as k } from "./enum-type-bb2bfafa.js";
|
|
3
|
-
import { f as C, n as E, o as W } from "./index-a7d766e7.js";
|
|
4
|
-
import { l as T } from "./expression-490b4335.js";
|
|
5
|
-
import "./enum-type-4a798b1a.js";
|
|
6
|
-
import "vue";
|
|
7
|
-
import "./icon-a0e0cdb0.js";
|
|
8
|
-
import "./dialog-c4706078.js";
|
|
9
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
10
|
-
import "./uuid-4999945f.js";
|
|
11
|
-
import "element-plus";
|
|
12
|
-
import "./source-map-b04aec4a.js";
|
|
13
|
-
import "./esprima-e8d15055.js";
|
|
14
|
-
const z = (f, i) => {
|
|
15
|
-
const y = (o, r) => {
|
|
16
|
-
const n = [], m = (t) => !!t.dynamicItemFlag || t.category === k.container && d(t);
|
|
17
|
-
E(o, n, !1, m);
|
|
18
|
-
var a = n == null ? void 0 : n.filter((t) => t == null ? void 0 : t.formItemFlag);
|
|
19
|
-
return a == null || a.forEach((t) => {
|
|
20
|
-
if (!(t != null && t.dynamicItemFlag))
|
|
21
|
-
r.push({ widget: b(t) });
|
|
22
|
-
else {
|
|
23
|
-
const p = [];
|
|
24
|
-
W(t, p, !1, m);
|
|
25
|
-
const u = [];
|
|
26
|
-
y(p, u), r.push({ widget: b(t), children: u });
|
|
27
|
-
}
|
|
28
|
-
}), r;
|
|
29
|
-
}, d = (o) => c.getOptions(o, "hidden"), s = (o) => c.getOptions(o, "name"), F = () => {
|
|
30
|
-
const o = [];
|
|
31
|
-
var r = i ? C(f, (n) => s(n) === (i == null ? void 0 : i.fName) || (n == null ? void 0 : n.type) == (i == null ? void 0 : i.wdt), !1) : f;
|
|
32
|
-
return y(r, o);
|
|
33
|
-
}, b = (o) => {
|
|
34
|
-
var h;
|
|
35
|
-
const r = {}, n = (e, g) => {
|
|
36
|
-
r[e] = g;
|
|
37
|
-
}, m = (e) => {
|
|
38
|
-
const g = c.getOptions(e, "content"), _ = c.getOptions(e, "label"), I = c.getOptions(e, "name");
|
|
39
|
-
return _ || g || I;
|
|
40
|
-
}, a = (e) => ({ label: m(e), key: s(e), type: "text" }), t = (e) => {
|
|
41
|
-
const _ = c.getOptions(e, "labelName") || `${s(e)}${T.optionLabelName}`;
|
|
42
|
-
return { label: m(e), key: `${_}`, type: "option" };
|
|
43
|
-
}, p = (e) => ({ label: m(e), key: s(e), type: "multirow" });
|
|
44
|
-
return (() => {
|
|
45
|
-
O(l).forEach((e) => {
|
|
46
|
-
n(e.label, a);
|
|
47
|
-
}), [
|
|
48
|
-
l.select,
|
|
49
|
-
l.radio,
|
|
50
|
-
l.checkbox,
|
|
51
|
-
l.cascader,
|
|
52
|
-
l.autoComplete
|
|
53
|
-
].forEach((e) => {
|
|
54
|
-
n(e, t);
|
|
55
|
-
}), n(l.multirow, p);
|
|
56
|
-
})(), (h = r[o.type]) == null ? void 0 : h.call(r, o);
|
|
57
|
-
};
|
|
58
|
-
return {
|
|
59
|
-
filterFieldItems: F
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
z as useGenFieldItemList
|
|
64
|
-
};
|