hlrender 0.0.111 → 0.0.112

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.111",
2
+ "name": "hlrender",
3
+ "version": "0.0.112",
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-786ee3c9.js").then((t) => {
4441
+ import("./sfcview-39d9a94e.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=>{let g=ut.getOptions(p,"textName"),y=ut.getOptions(p,"multiple");const x=g||`${a(p)}${Tl.optionText}`;return{label:u(p),key:`${x}`,type:"option",options:{multiple:y}}},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"}));/*! *****************************************************************************
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,"labelName")||`${a(p)}${Tl.optionLabelName}`;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 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
+ };
@@ -1,65 +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 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
- };