epic-designer-gold 1.0.11 → 1.0.14

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.
Files changed (31) hide show
  1. package/dist/{attributeView-B__FQHVu.js → attributeView-Cb_lnXnd.js} +1 -1
  2. package/dist/{attributeView-D_snTI-K.cjs → attributeView-D871aFNX.cjs} +1 -1
  3. package/dist/col-C4lVVBzC.cjs +1 -0
  4. package/dist/col-DcVPBKEc.js +31 -0
  5. package/dist/{index-D5moT97y.js → index-4Jbrf4oJ.js} +140 -140
  6. package/dist/{index-CAkpmC6c.js → index-B8VoR-rx.js} +1 -1
  7. package/dist/{index-g2SN8VMi.cjs → index-BXLg5QG8.cjs} +1 -1
  8. package/dist/{index-CanuzqIT.cjs → index-Bp5TeT0d.cjs} +1 -1
  9. package/dist/{index-IDj-bwmO.cjs → index-C-vzsLbI.cjs} +1 -1
  10. package/dist/index-CNFfjSi0.js +4 -0
  11. package/dist/{index-CKKGzeVk.cjs → index-Cdfyd5o8.cjs} +1 -1
  12. package/dist/{index-Ch8hBndx.cjs → index-Cdz_E5uq.cjs} +1 -1
  13. package/dist/{index-AO9st9GO.js → index-Cwf1fnCe.js} +1 -1
  14. package/dist/index-D7DryFmY.cjs +10 -0
  15. package/dist/{index-BNDnGxRg.cjs → index-DHgeDEYV.cjs} +1 -1
  16. package/dist/{index-DNWIP087.js → index-DXYNbYfi.js} +1 -1
  17. package/dist/{index-Dgdrnlh5.js → index-DpF28L2Q.js} +1 -1
  18. package/dist/{index-Dx4IQxp4.js → index-DvnclCBw.js} +7 -7
  19. package/dist/{index-BdToAdGK.js → index-HBD4zD_h.js} +1 -1
  20. package/dist/{index-BEaUH_4C.cjs → index-M1eoMHL_.cjs} +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/{styleView-DSoOUApX.cjs → styleView-C-SMgcjX.cjs} +1 -1
  24. package/dist/{styleView-DwuC1nZJ.js → styleView-m63s2tRj.js} +1 -1
  25. package/dist/ui/elementPlus/index.cjs +1 -1
  26. package/dist/ui/elementPlus/index.js +143 -129
  27. package/package.json +1 -1
  28. package/dist/col-B1GUMkMK.cjs +0 -1
  29. package/dist/col-D4hvKfJ6.js +0 -31
  30. package/dist/index-B34F68Fz.js +0 -4
  31. package/dist/index-CZ_nc70v.cjs +0 -10
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, inject as f, computed as V, ref as C, watchEffect as N, openBlock as s, createElementBlock as l, Fragment as E, renderList as U, normalizeClass as v, toDisplayString as B, createCommentVNode as y, createElementVNode as D, createVNode as x, unref as h, nextTick as g } from "vue";
2
- import { _ as z } from "./index-Dx4IQxp4.js";
2
+ import { _ as z } from "./index-DvnclCBw.js";
3
3
  import { p as F, i as b, s as m } from "./pluginManager-BCnrHPYv.js";
4
4
  import { u as L } from "./index-B1s67XDZ.js";
5
5
  const T = ["title"], $ = /* @__PURE__ */ S({
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("./index-CZ_nc70v.cjs"),l=require("./pluginManager-DWHAX8kP.cjs"),g=require("./index-BoL2PSBk.cjs"),b=["title"],B=e.defineComponent({__name:"attributeView",setup(P){const{t:s}=g.useLocale(),d=e.inject("designer"),u=e.inject("pageSchema"),f=e.inject("revoke"),h=l.pluginManager.getComponentConfings(),c=e.computed(()=>d.state.checkedNode);function y(n){var a;return typeof n.show=="boolean"?n.show:typeof n.show=="function"?(a=n.show)==null?void 0:a.call(n,{values:c.value}):!0}const i=e.ref([]);e.watchEffect(()=>{var o,t,r;const n=(o=d.state.checkedNode)==null?void 0:o.type;if(!d.state.checkedNode||!n)return[];const a=((t=h[n])==null?void 0:t.config.attribute)??[];i.value=[{label:s("componentId"),type:"input",field:"id",componentProps:{disabled:!0}},...a],d.state.checkedNode.id===((r=u.schemas[0])==null?void 0:r.id)&&i.value.push({label:s("canvasWidth"),type:"EInputSize",field:"canvas.width",editData:u},{label:s("canvasHeight"),type:"EInputSize",field:"canvas.height",editData:u})});function m(n,a,o,t=c.value){typeof o.onChange=="function"&&o.onChange({value:n,values:t,componentAttributes:i}),o.changeSync?l.setValueByPath(t,a,n):e.nextTick(()=>{l.setValueByPath(t,a,n)}),f.push(u.schemas,s("editComponentProperties"))}function v(n,a,o=c.value){e.nextTick(()=>{l.setValueByPath(o,"componentProps.dynamicId",n)})}return(n,a)=>{var o;return e.openBlock(),e.createElementBlock("div",{class:"epic-attribute-view",key:(o=c.value)==null?void 0:o.id},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,t=>{var r;return e.openBlock(),e.createElementBlock("div",{key:t.field},[y(t)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["epic-attr-item",t.layout])},[t.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"epic-attr-label",title:t.label},e.toDisplayString(t.label),9,b)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["epic-attr-input",{"block!":t.layout==="vertical"}])},[e.createVNode(e.unref(k._sfc_main),{componentSchema:{...t,componentProps:{...t.componentProps,...t.field==="componentProps.defaultValue"?(r=c.value)==null?void 0:r.componentProps:{},input:!1,field:void 0,hidden:!1},show:!0,noFormItem:!0},dynamicId:e.unref(l.getValueByPath)(t.editData??c.value,"componentProps.dynamicId"),"model-value":e.unref(l.getValueByPath)(t.editData??c.value,t.field),"onUpdate:modelValue":p=>m(p,t.field,t,t.editData),"onUpdate:dynamicId":p=>v(p)},null,8,["componentSchema","dynamicId","model-value","onUpdate:modelValue","onUpdate:dynamicId"])],2)],2)):e.createCommentVNode("",!0)])}),128))])}}});exports.default=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("./index-D7DryFmY.cjs"),l=require("./pluginManager-DWHAX8kP.cjs"),g=require("./index-BoL2PSBk.cjs"),b=["title"],B=e.defineComponent({__name:"attributeView",setup(P){const{t:s}=g.useLocale(),d=e.inject("designer"),u=e.inject("pageSchema"),f=e.inject("revoke"),h=l.pluginManager.getComponentConfings(),c=e.computed(()=>d.state.checkedNode);function y(n){var a;return typeof n.show=="boolean"?n.show:typeof n.show=="function"?(a=n.show)==null?void 0:a.call(n,{values:c.value}):!0}const i=e.ref([]);e.watchEffect(()=>{var o,t,r;const n=(o=d.state.checkedNode)==null?void 0:o.type;if(!d.state.checkedNode||!n)return[];const a=((t=h[n])==null?void 0:t.config.attribute)??[];i.value=[{label:s("componentId"),type:"input",field:"id",componentProps:{disabled:!0}},...a],d.state.checkedNode.id===((r=u.schemas[0])==null?void 0:r.id)&&i.value.push({label:s("canvasWidth"),type:"EInputSize",field:"canvas.width",editData:u},{label:s("canvasHeight"),type:"EInputSize",field:"canvas.height",editData:u})});function m(n,a,o,t=c.value){typeof o.onChange=="function"&&o.onChange({value:n,values:t,componentAttributes:i}),o.changeSync?l.setValueByPath(t,a,n):e.nextTick(()=>{l.setValueByPath(t,a,n)}),f.push(u.schemas,s("editComponentProperties"))}function v(n,a,o=c.value){e.nextTick(()=>{l.setValueByPath(o,"componentProps.dynamicId",n)})}return(n,a)=>{var o;return e.openBlock(),e.createElementBlock("div",{class:"epic-attribute-view",key:(o=c.value)==null?void 0:o.id},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,t=>{var r;return e.openBlock(),e.createElementBlock("div",{key:t.field},[y(t)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["epic-attr-item",t.layout])},[t.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"epic-attr-label",title:t.label},e.toDisplayString(t.label),9,b)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["epic-attr-input",{"block!":t.layout==="vertical"}])},[e.createVNode(e.unref(k._sfc_main),{componentSchema:{...t,componentProps:{...t.componentProps,...t.field==="componentProps.defaultValue"?(r=c.value)==null?void 0:r.componentProps:{},input:!1,field:void 0,hidden:!1},show:!0,noFormItem:!0},dynamicId:e.unref(l.getValueByPath)(t.editData??c.value,"componentProps.dynamicId"),"model-value":e.unref(l.getValueByPath)(t.editData??c.value,t.field),"onUpdate:modelValue":p=>m(p,t.field,t,t.editData),"onUpdate:dynamicId":p=>v(p)},null,8,["componentSchema","dynamicId","model-value","onUpdate:modelValue","onUpdate:dynamicId"])],2)],2)):e.createCommentVNode("",!0)])}),128))])}}});exports.default=B;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),d=require("element-plus"),u=t.defineComponent({props:{componentSchema:{type:Object,required:!0,default:()=>({})}},setup(n,{attrs:a,slots:o}){return()=>{var c;const e={...n.componentSchema,title:(c=n.componentSchema)==null?void 0:c.label},r=e.children??[];return delete e.children,console.log("%c [ ]-21","font-size:13px; background:pink; color:#bf2c9f;",e),t.h(d.ElCol,e,{default:()=>t.renderSlot(o,"edit-node",{},()=>r.map(l=>t.renderSlot(o,"node",{componentSchema:l})))})}}});exports.default=u;
@@ -0,0 +1,31 @@
1
+ import { defineComponent as m, h as d, renderSlot as c } from "vue";
2
+ import { ElCol as p } from "element-plus";
3
+ const h = m({
4
+ props: {
5
+ componentSchema: {
6
+ type: Object,
7
+ required: !0,
8
+ default: () => ({})
9
+ }
10
+ },
11
+ setup(o, { attrs: a, slots: n }) {
12
+ return () => {
13
+ var t;
14
+ const e = {
15
+ ...o.componentSchema,
16
+ title: (t = o.componentSchema) == null ? void 0 : t.label
17
+ }, r = e.children ?? [];
18
+ return delete e.children, console.log("%c [ ]-21", "font-size:13px; background:pink; color:#bf2c9f;", e), d(p, e, {
19
+ default: () => c(
20
+ n,
21
+ "edit-node",
22
+ {},
23
+ () => r.map((l) => c(n, "node", { componentSchema: l }))
24
+ )
25
+ });
26
+ };
27
+ }
28
+ });
29
+ export {
30
+ h as default
31
+ };