hlrender 0.0.120 → 0.0.121

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 CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "hlrender",
3
- "version": "0.0.120",
3
+ "version": "0.0.121",
4
4
  "description": "",
5
5
  "main": "render.umd.js",
6
- "private":false,
6
+ "private":false,
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1"
9
9
  },
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-103baeaa.js").then((t) => {
4441
+ import("./sfcview-a060c8f0.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=(i,c)=>{const s=[],l=f=>!!f.dynamicItemFlag;Nu(i,s,!1,l);var u=s==null?void 0:s.filter(f=>f==null?void 0:f.formItemFlag);return u==null||u.forEach(f=>{if(!(f!=null&&f.dynamicItemFlag))c.push({widget:o(f)});else{const h=[];mk(f,h,!1,l);const d=[];n(h,d),c.push({widget:o(f),children:d})}}),c},r=i=>ut.getOptions(i,"name"),a=()=>{const i=[];var c=t?Wp(e,s=>r(s)===(t==null?void 0:t.fName)||(s==null?void 0:s.type)==(t==null?void 0:t.wdt),!1):e;return n(c,i)},o=i=>{var w;const c={},s=(S,A)=>{c[S]=A},l=S=>{const A=ut.getOptions(S,"content"),P=ut.getOptions(S,"label"),C=ut.getOptions(S,"name");return P||A||C},u="|",f=";",h=(S,A)=>{var C;if(!A)return S;var P=Gr(S);return Array.isArray(P)?(C=Bt(P))==null?void 0:C.join(f):S},d=(S,A)=>{var C,D;var P=Gr(S);return A?(D=P==null?void 0:P.map(k=>{var O;return(O=Bt(k))==null?void 0:O.join(u)}))==null?void 0:D.join(f):(C=Bt(P))==null?void 0:C.join(u)},v=S=>({type:S.type,label:l(S),key:r(S),options:{valueFormat:A=>A}}),m=S=>{let A=ut.getOptions(S,"textName"),P=ut.getOptions(S,"multiple");const C=A||`${r(S)}${qs.optionText}`;return{type:S.type,label:l(S),key:`${C}`,options:{valueFormat:D=>h(D,P)}}},p=S=>{const A=r(S);return{type:S.type,label:l(S),key:`${A}`,options:{valueFormat:P=>h(P,!0)}}},g=S=>{const A=r(S);return{type:S.type,label:l(S),key:`${A}`,options:{valueFormat:P=>P}}},y=S=>{let A=ut.getOptions(S,"textName"),P=ut.getOptions(S,"multiple");const C=A||`${r(S)}${qs.optionText}`;return{type:S.type,label:l(S),key:`${C}`,options:{valueFormat:D=>d(D,P)}}},x=S=>{const A=ut.getOptions(S,"activeValue"),P=ut.getOptions(S,"inactiveValue"),C=ut.getOptions(S,"activeText"),D=ut.getOptions(S,"inactiveText");return{type:S.type,label:l(S),key:r(S),options:{valueFormat:k=>k===A?C:k===P?D:k}}},b=S=>({type:S.type,label:l(S),key:r(S)});return(()=>{dT(et).forEach(S=>{s(S.label,v)}),[et.select,et.treeSelect,et.autoComplete].forEach(S=>{s(S,m)}),s(et.multirow,b),s(et.checkbox,p),s(et.radio,g),s(et.cascader,y),s(et.switch,x)})(),(w=c[i.type])==null?void 0:w.call(c,i)};return{filterFieldItems:a}}},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
2742
+ `}},Symbol.toStringTag,{value:"Module"})),Mye=Object.freeze(Object.defineProperty({__proto__:null,useGenFieldItemList:(e,t)=>{const n=(i,c)=>{const s=[],l=f=>!!f.dynamicItemFlag;Nu(i,s,!1,l);var u=s==null?void 0:s.filter(f=>(f==null?void 0:f.formItemFlag)&&(f==null?void 0:f.type)!==et.cache);return u==null||u.forEach(f=>{if(!(f!=null&&f.dynamicItemFlag))c.push({widget:o(f)});else{const h=[];mk(f,h,!1,l);const d=[];n(h,d),c.push({widget:o(f),children:d})}}),c},r=i=>ut.getOptions(i,"name"),a=()=>{const i=[];var c=t?Wp(e,s=>r(s)===(t==null?void 0:t.fName)||(s==null?void 0:s.type)==(t==null?void 0:t.wdt),!1):e;return n(c,i)},o=i=>{var w;const c={},s=(S,A)=>{c[S]=A},l=S=>{const A=ut.getOptions(S,"content"),P=ut.getOptions(S,"label"),C=ut.getOptions(S,"name");return P||A||C},u="|",f=";",h=(S,A)=>{var C;if(!A)return S;var P=Gr(S);return Array.isArray(P)?(C=Bt(P))==null?void 0:C.join(f):S},d=(S,A)=>{var C,D;var P=Gr(S);return A?(D=P==null?void 0:P.map(k=>{var O;return(O=Bt(k))==null?void 0:O.join(u)}))==null?void 0:D.join(f):(C=Bt(P))==null?void 0:C.join(u)},v=S=>({type:S.type,label:l(S),key:r(S),options:{valueFormat:A=>A}}),m=S=>{let A=ut.getOptions(S,"textName"),P=ut.getOptions(S,"multiple");const C=A||`${r(S)}${qs.optionText}`;return{type:S.type,label:l(S),key:`${C}`,options:{valueFormat:D=>h(D,P)}}},p=S=>{const A=r(S);return{type:S.type,label:l(S),key:`${A}`,options:{valueFormat:P=>h(P,!0)}}},g=S=>{const A=r(S);return{type:S.type,label:l(S),key:`${A}`,options:{valueFormat:P=>P}}},y=S=>{let A=ut.getOptions(S,"textName"),P=ut.getOptions(S,"multiple");const C=A||`${r(S)}${qs.optionText}`;return{type:S.type,label:l(S),key:`${C}`,options:{valueFormat:D=>d(D,P)}}},x=S=>{const A=ut.getOptions(S,"activeValue"),P=ut.getOptions(S,"inactiveValue"),C=ut.getOptions(S,"activeText"),D=ut.getOptions(S,"inactiveText");return{type:S.type,label:l(S),key:r(S),options:{valueFormat:k=>k===A?C:k===P?D:k}}},b=S=>({type:S.type,label:l(S),key:r(S)});return(()=>{dT(et).forEach(S=>{s(S.label,v)}),[et.select,et.treeSelect,et.autoComplete].forEach(S=>{s(S,m)}),s(et.multirow,b),s(et.checkbox,p),s(et.radio,g),s(et.cascader,y),s(et.switch,x)})(),(w=c[i.type])==null?void 0:w.call(c,i)};return{filterFieldItems:a}}},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
@@ -1,4 +1,4 @@
1
- import { D, B as s } from "./baseImp-26b9c04a.js";
1
+ import { D, B as c } from "./baseImp-26b9c04a.js";
2
2
  import { c as l } from "./enum-type-bb2bfafa.js";
3
3
  import { f as G, n as J, o as M } from "./index-a7d766e7.js";
4
4
  import { l as k } from "./expression-490b4335.js";
@@ -11,58 +11,58 @@ import "./uuid-4999945f.js";
11
11
  import "element-plus";
12
12
  import "./source-map-b04aec4a.js";
13
13
  import "./esprima-e8d15055.js";
14
- const d = (h, _) => {
15
- const F = (m, a) => {
16
- const r = [], c = (o) => !!o.dynamicItemFlag;
17
- J(m, r, !1, c);
18
- var y = r == null ? void 0 : r.filter((o) => o == null ? void 0 : o.formItemFlag);
19
- return y == null || y.forEach((o) => {
20
- if (!(o != null && o.dynamicItemFlag))
21
- a.push({ widget: v(o) });
14
+ const d = (F, _) => {
15
+ const v = (m, a) => {
16
+ const o = [], s = (r) => !!r.dynamicItemFlag;
17
+ J(m, o, !1, s);
18
+ var y = o == null ? void 0 : o.filter((r) => (r == null ? void 0 : r.formItemFlag) && (r == null ? void 0 : r.type) !== l.cache);
19
+ return y == null || y.forEach((r) => {
20
+ if (!(r != null && r.dynamicItemFlag))
21
+ a.push({ widget: O(r) });
22
22
  else {
23
23
  const g = [];
24
- M(o, g, !1, c);
25
- const x = [];
26
- F(g, x), a.push({ widget: v(o), children: x });
24
+ M(r, g, !1, s);
25
+ const h = [];
26
+ v(g, h), a.push({ widget: O(r), children: h });
27
27
  }
28
28
  }), a;
29
- }, p = (m) => s.getOptions(m, "name"), I = () => {
29
+ }, p = (m) => c.getOptions(m, "name"), I = () => {
30
30
  const m = [];
31
- var a = _ ? G(h, (r) => p(r) === (_ == null ? void 0 : _.fName) || (r == null ? void 0 : r.type) == (_ == null ? void 0 : _.wdt), !1) : h;
32
- return F(a, m);
33
- }, v = (m) => {
34
- var O;
35
- const a = {}, r = (t, e) => {
31
+ var a = _ ? G(F, (o) => p(o) === (_ == null ? void 0 : _.fName) || (o == null ? void 0 : o.type) == (_ == null ? void 0 : _.wdt), !1) : F;
32
+ return v(a, m);
33
+ }, O = (m) => {
34
+ var x;
35
+ const a = {}, o = (t, e) => {
36
36
  a[t] = e;
37
- }, c = (t) => {
38
- const e = s.getOptions(t, "content"), n = s.getOptions(t, "label"), i = s.getOptions(t, "name");
37
+ }, s = (t) => {
38
+ const e = c.getOptions(t, "content"), n = c.getOptions(t, "label"), i = c.getOptions(t, "name");
39
39
  return n || e || i;
40
- }, y = "|", o = ";", g = (t, e) => {
40
+ }, y = "|", r = ";", g = (t, e) => {
41
41
  var i;
42
42
  if (!e)
43
43
  return t;
44
44
  var n = $(t);
45
- return Array.isArray(n) ? (i = b(n)) == null ? void 0 : i.join(o) : t;
46
- }, x = (t, e) => {
45
+ return Array.isArray(n) ? (i = b(n)) == null ? void 0 : i.join(r) : t;
46
+ }, h = (t, e) => {
47
47
  var i, u;
48
48
  var n = $(t);
49
49
  return e ? (u = n == null ? void 0 : n.map((f) => {
50
50
  var T;
51
51
  return (T = b(f)) == null ? void 0 : T.join(y);
52
- })) == null ? void 0 : u.join(o) : (i = b(n)) == null ? void 0 : i.join(y);
52
+ })) == null ? void 0 : u.join(r) : (i = b(n)) == null ? void 0 : i.join(y);
53
53
  }, V = (t) => ({
54
54
  type: t.type,
55
- label: c(t),
55
+ label: s(t),
56
56
  key: p(t),
57
57
  options: {
58
58
  valueFormat: (e) => e
59
59
  }
60
60
  }), j = (t) => {
61
- let e = s.getOptions(t, "textName"), n = s.getOptions(t, "multiple");
61
+ let e = c.getOptions(t, "textName"), n = c.getOptions(t, "multiple");
62
62
  const i = e || `${p(t)}${k.optionText}`;
63
63
  return {
64
64
  type: t.type,
65
- label: c(t),
65
+ label: s(t),
66
66
  key: `${i}`,
67
67
  options: {
68
68
  valueFormat: (u) => g(u, n)
@@ -72,7 +72,7 @@ const d = (h, _) => {
72
72
  const e = p(t);
73
73
  return {
74
74
  type: t.type,
75
- label: c(t),
75
+ label: s(t),
76
76
  key: `${e}`,
77
77
  options: {
78
78
  valueFormat: (n) => g(n, !0)
@@ -82,28 +82,28 @@ const d = (h, _) => {
82
82
  const e = p(t);
83
83
  return {
84
84
  type: t.type,
85
- label: c(t),
85
+ label: s(t),
86
86
  key: `${e}`,
87
87
  options: {
88
88
  valueFormat: (n) => n
89
89
  }
90
90
  };
91
91
  }, A = (t) => {
92
- let e = s.getOptions(t, "textName"), n = s.getOptions(t, "multiple");
92
+ let e = c.getOptions(t, "textName"), n = c.getOptions(t, "multiple");
93
93
  const i = e || `${p(t)}${k.optionText}`;
94
94
  return {
95
95
  type: t.type,
96
- label: c(t),
96
+ label: s(t),
97
97
  key: `${i}`,
98
98
  options: {
99
- valueFormat: (u) => x(u, n)
99
+ valueFormat: (u) => h(u, n)
100
100
  }
101
101
  };
102
102
  }, C = (t) => {
103
- const e = s.getOptions(t, "activeValue"), n = s.getOptions(t, "inactiveValue"), i = s.getOptions(t, "activeText"), u = s.getOptions(t, "inactiveText");
103
+ const e = c.getOptions(t, "activeValue"), n = c.getOptions(t, "inactiveValue"), i = c.getOptions(t, "activeText"), u = c.getOptions(t, "inactiveText");
104
104
  return {
105
105
  type: t.type,
106
- label: c(t),
106
+ label: s(t),
107
107
  key: p(t),
108
108
  options: {
109
109
  valueFormat: (f) => f === e ? i : f === n ? u : f
@@ -111,20 +111,20 @@ const d = (h, _) => {
111
111
  };
112
112
  }, B = (t) => ({
113
113
  type: t.type,
114
- label: c(t),
114
+ label: s(t),
115
115
  key: p(t)
116
116
  });
117
117
  return (() => {
118
118
  D(l).forEach((t) => {
119
- r(t.label, V);
119
+ o(t.label, V);
120
120
  }), [
121
121
  l.select,
122
122
  l.treeSelect,
123
123
  l.autoComplete
124
124
  ].forEach((t) => {
125
- r(t, j);
126
- }), r(l.multirow, B), r(l.checkbox, E), r(l.radio, W), r(l.cascader, A), r(l.switch, C);
127
- })(), (O = a[m.type]) == null ? void 0 : O.call(a, m);
125
+ o(t, j);
126
+ }), o(l.multirow, B), o(l.checkbox, E), o(l.radio, W), o(l.cascader, A), o(l.switch, C);
127
+ })(), (x = a[m.type]) == null ? void 0 : x.call(a, m);
128
128
  };
129
129
  return {
130
130
  filterFieldItems: I