hlrender 0.0.114 → 0.0.115

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