hlrender 0.0.109 → 0.0.110

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,6 +1,6 @@
1
1
  {
2
- "name": "hlrender",
3
- "version": "0.0.109",
2
+ "name": "hlrender",
3
+ "version": "0.0.110",
4
4
  "description": "",
5
5
  "main": "render.umd.js",
6
6
  "private":false,
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-71a208d6.js").then((t) => {
4441
+ import("./sfcview-855e7cbe.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,multirow:!0})}}),c},r=i=>ut.getOptions(i,"name"),a=()=>{const i=[];var c=t?Wp(e,l=>r(l)===(t==null?void 0:t.fName)||(l==null?void 0:l.type)==(t==null?void 0:t.wdt),!1):e;return n(c,i)},o=i=>{var v;const c={},s=(m,p)=>{c[m]=p},l=m=>{const p=ut.getOptions(m,"content"),g=ut.getOptions(m,"label"),y=ut.getOptions(m,"name");return g||p||y},u=m=>({label:l(m),key:r(m)}),f=m=>{let p=ut.getOptions(m,"textName"),g=ut.getOptions(m,"multiple");const y=p||`${r(m)}${Tl.optionText}`;return{label:l(m),key:`${y}`,multiple:g}},h=m=>({label:l(m),key:r(m)});return(()=>{dT(et).forEach(m=>{s(m.label,u)}),[et.select,et.radio,et.checkbox,et.cascader,et.autoComplete].forEach(m=>{s(m,f)}),s(et.multirow,h)})(),(v=c[i.type])==null?void 0:v.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);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,l=>r(l)===(t==null?void 0:t.fName)||(l==null?void 0:l.type)==(t==null?void 0:t.wdt),!1):e;return n(c,i)},o=i=>{var v;const c={},s=(m,p)=>{c[m]=p},l=m=>{const p=ut.getOptions(m,"content"),g=ut.getOptions(m,"label"),y=ut.getOptions(m,"name");return g||p||y},u=m=>({label:l(m),key:r(m),type:"text"}),f=m=>{let p=ut.getOptions(m,"textName"),g=ut.getOptions(m,"multiple");const y=p||`${r(m)}${Tl.optionText}`;return{label:l(m),key:`${y}`,type:"option",options:{multiple:g}}},h=m=>({label:l(m),key:r(m),type:"multirow"});return(()=>{dT(et).forEach(m=>{s(m.label,u)}),[et.select,et.radio,et.checkbox,et.cascader,et.autoComplete].forEach(m=>{s(m,f)}),s(et.multirow,h)})(),(v=c[i.type])==null?void 0:v.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
@@ -11,37 +11,37 @@ import "./uuid-4999945f.js";
11
11
  import "element-plus";
12
12
  import "./source-map-b04aec4a.js";
13
13
  import "./esprima-e8d15055.js";
14
- const z = (h, i) => {
15
- const b = (m, n) => {
14
+ const z = (y, m) => {
15
+ const h = (i, n) => {
16
16
  const r = [], o = (e) => !!e.dynamicItemFlag;
17
- k(m, r, !1, o);
17
+ k(i, r, !1, o);
18
18
  var c = r == null ? void 0 : r.filter((e) => e == null ? void 0 : e.formItemFlag);
19
19
  return c == null || c.forEach((e) => {
20
20
  if (!(e != null && e.dynamicItemFlag))
21
- n.push({ widget: y(e) });
21
+ n.push({ widget: b(e) });
22
22
  else {
23
23
  const u = [];
24
24
  E(e, u, !1, o);
25
25
  const _ = [];
26
- b(u, _), n.push({ widget: y(e), children: _, multirow: !0 });
26
+ h(u, _), n.push({ widget: b(e), children: _ });
27
27
  }
28
28
  }), n;
29
- }, p = (m) => s.getOptions(m, "name"), F = () => {
30
- const m = [];
31
- var n = i ? O(h, (o) => p(o) === (i == null ? void 0 : i.fName) || (o == null ? void 0 : o.type) == (i == null ? void 0 : i.wdt), !1) : h;
32
- return b(n, m);
33
- }, y = (m) => {
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
34
  var I;
35
35
  const n = {}, r = (t, a) => {
36
36
  n[t] = a;
37
37
  }, o = (t) => {
38
38
  const a = s.getOptions(t, "content"), f = s.getOptions(t, "label"), g = s.getOptions(t, "name");
39
39
  return f || a || g;
40
- }, c = (t) => ({ label: o(t), key: p(t) }), e = (t) => {
40
+ }, c = (t) => ({ label: o(t), key: p(t), type: "text" }), e = (t) => {
41
41
  let a = s.getOptions(t, "textName"), f = s.getOptions(t, "multiple");
42
42
  const g = a || `${p(t)}${W.optionText}`;
43
- return { label: o(t), key: `${g}`, multiple: f };
44
- }, u = (t) => ({ label: o(t), key: p(t) });
43
+ return { label: o(t), key: `${g}`, type: "option", options: { multiple: f } };
44
+ }, u = (t) => ({ label: o(t), key: p(t), type: "multirow" });
45
45
  return (() => {
46
46
  d(l).forEach((t) => {
47
47
  r(t.label, c);
@@ -54,7 +54,7 @@ const z = (h, i) => {
54
54
  ].forEach((t) => {
55
55
  r(t, e);
56
56
  }), r(l.multirow, u);
57
- })(), (I = n[m.type]) == null ? void 0 : I.call(n, m);
57
+ })(), (I = n[i.type]) == null ? void 0 : I.call(n, i);
58
58
  };
59
59
  return {
60
60
  filterFieldItems: F