hlrender 0.0.110 → 0.0.111

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.
@@ -0,0 +1,65 @@
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 T } from "./index-a7d766e7.js";
4
+ import { l as W } 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 = (y, i) => {
15
+ const h = (o, r) => {
16
+ const n = [], m = (e) => !!e.dynamicItemFlag || e.category === k.container && F(e);
17
+ E(o, n, !1, m);
18
+ var s = n == null ? void 0 : n.filter((e) => e == null ? void 0 : e.formItemFlag);
19
+ return s == null || s.forEach((e) => {
20
+ if (!(e != null && e.dynamicItemFlag))
21
+ r.push({ widget: b(e) });
22
+ else {
23
+ const g = [];
24
+ T(e, g, !1, m);
25
+ const u = [];
26
+ h(g, u), r.push({ widget: b(e), children: u });
27
+ }
28
+ }), r;
29
+ }, F = (o) => c.getOptions(o, "hidden"), p = (o) => c.getOptions(o, "name"), I = () => {
30
+ const o = [];
31
+ var r = i ? C(y, (n) => p(n) === (i == null ? void 0 : i.fName) || (n == null ? void 0 : n.type) == (i == null ? void 0 : i.wdt), !1) : y;
32
+ return h(r, o);
33
+ }, b = (o) => {
34
+ var d;
35
+ const r = {}, n = (t, a) => {
36
+ r[t] = a;
37
+ }, m = (t) => {
38
+ const a = c.getOptions(t, "content"), _ = c.getOptions(t, "label"), f = c.getOptions(t, "name");
39
+ return _ || a || f;
40
+ }, s = (t) => ({ label: m(t), key: p(t), type: "text" }), e = (t) => {
41
+ let a = c.getOptions(t, "textName"), _ = c.getOptions(t, "multiple");
42
+ const f = a || `${p(t)}${W.optionText}`;
43
+ return { label: m(t), key: `${f}`, type: "option", options: { multiple: _ } };
44
+ }, g = (t) => ({ label: m(t), key: p(t), type: "multirow" });
45
+ return (() => {
46
+ O(l).forEach((t) => {
47
+ n(t.label, s);
48
+ }), [
49
+ l.select,
50
+ l.radio,
51
+ l.checkbox,
52
+ l.cascader,
53
+ l.autoComplete
54
+ ].forEach((t) => {
55
+ n(t, e);
56
+ }), n(l.multirow, g);
57
+ })(), (d = r[o.type]) == null ? void 0 : d.call(r, o);
58
+ };
59
+ return {
60
+ filterFieldItems: I
61
+ };
62
+ };
63
+ export {
64
+ J as useGenFieldItemList
65
+ };
@@ -1,65 +0,0 @@
1
- import { D as d, B as s } from "./baseImp-26b9c04a.js";
2
- import { c as l } from "./enum-type-bb2bfafa.js";
3
- import { f as O, n as k, o as E } from "./index-a7d766e7.js";
4
- import { l as W } 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 = (y, m) => {
15
- const h = (i, n) => {
16
- const r = [], o = (e) => !!e.dynamicItemFlag;
17
- k(i, r, !1, o);
18
- var c = r == null ? void 0 : r.filter((e) => e == null ? void 0 : e.formItemFlag);
19
- return c == null || c.forEach((e) => {
20
- if (!(e != null && e.dynamicItemFlag))
21
- n.push({ widget: b(e) });
22
- else {
23
- const u = [];
24
- E(e, u, !1, o);
25
- const _ = [];
26
- h(u, _), n.push({ widget: b(e), children: _ });
27
- }
28
- }), n;
29
- }, p = (i) => s.getOptions(i, "name"), F = () => {
30
- const i = [];
31
- var n = m ? O(y, (o) => p(o) === (m == null ? void 0 : m.fName) || (o == null ? void 0 : o.type) == (m == null ? void 0 : m.wdt), !1) : y;
32
- return h(n, i);
33
- }, b = (i) => {
34
- var I;
35
- const n = {}, r = (t, a) => {
36
- n[t] = a;
37
- }, o = (t) => {
38
- const a = s.getOptions(t, "content"), f = s.getOptions(t, "label"), g = s.getOptions(t, "name");
39
- return f || a || g;
40
- }, c = (t) => ({ label: o(t), key: p(t), type: "text" }), e = (t) => {
41
- let a = s.getOptions(t, "textName"), f = s.getOptions(t, "multiple");
42
- const g = a || `${p(t)}${W.optionText}`;
43
- return { label: o(t), key: `${g}`, type: "option", options: { multiple: f } };
44
- }, u = (t) => ({ label: o(t), key: p(t), type: "multirow" });
45
- return (() => {
46
- d(l).forEach((t) => {
47
- r(t.label, c);
48
- }), [
49
- l.select,
50
- l.radio,
51
- l.checkbox,
52
- l.cascader,
53
- l.autoComplete
54
- ].forEach((t) => {
55
- r(t, e);
56
- }), r(l.multirow, u);
57
- })(), (I = n[i.type]) == null ? void 0 : I.call(n, i);
58
- };
59
- return {
60
- filterFieldItems: F
61
- };
62
- };
63
- export {
64
- z as useGenFieldItemList
65
- };