super-page-runtime 2.3.47-cdnTmp1 → 2.3.47-cdnTmp2
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.
|
@@ -88,7 +88,7 @@ const ie = F({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }
|
|
|
88
88
|
}), i.value = [...new Set(o)];
|
|
89
89
|
} }), (e, o) => {
|
|
90
90
|
const t = q("el-button");
|
|
91
|
-
return r(), p(c(K), { ref_key: "thisRef", ref: g, modelValue: l.value, "onUpdate:modelValue": o[0] || (o[0] = (a) => l.value = a), type: s.configure.props.cardType, "tab-position": s.configure.props.tabPosition, style: x(c(P)), class: G([c(I), "runtime-page-container-tabs-view"]), closable: s.configure.props.closable, "before-leave": B, onTabClick: _, onTabChange: R, onTabRemove: S, onTabAdd: z, onEdit: D }, { default: f(() => [(r(!0), C(T, null, E(n.configure.items, (a, M) => (r(), p(c(w), { key: M, label: a.label, name: a.code, lazy: !!s.configure.props.lazy }, { label: f(() => [a.iconType && a.iconValue ? (r(), p(c(W), { key: 0, iconType: a.iconType, iconValue: a.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : d("", !0), $("span", { style: x(c(A)) }, k(c(N)(a.label)), 5)]), default: f(() => [(s.configure.props.isFullyRendered ??
|
|
91
|
+
return r(), p(c(K), { ref_key: "thisRef", ref: g, modelValue: l.value, "onUpdate:modelValue": o[0] || (o[0] = (a) => l.value = a), type: s.configure.props.cardType, "tab-position": s.configure.props.tabPosition, style: x(c(P)), class: G([c(I), "runtime-page-container-tabs-view"]), closable: s.configure.props.closable, "before-leave": B, onTabClick: _, onTabChange: R, onTabRemove: S, onTabAdd: z, onEdit: D }, { default: f(() => [(r(!0), C(T, null, E(n.configure.items, (a, M) => (r(), p(c(w), { key: M, label: a.label, name: a.code, lazy: !!s.configure.props.lazy }, { label: f(() => [a.iconType && a.iconValue ? (r(), p(c(W), { key: 0, iconType: a.iconType, iconValue: a.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : d("", !0), $("span", { style: x(c(A)) }, k(c(N)(a.label)), 5)]), default: f(() => [(s.configure.props.isFullyRendered ?? !0) || a.code === l.value ? (r(!0), C(T, { key: 0 }, E(a.items, (v) => (r(), p(Q, { key: v.uuid, pageContext: s.pageContext, configure: v }, null, 8, ["pageContext", "configure"]))), 128)) : d("", !0)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), s.configure.props.resetable ? (r(), p(c(w), { key: 0, disabled: "", name: "-1" }, { label: f(() => [s.configure.props.resetable ? (r(), p(t, { key: 0, type: "text", circle: "", onClick: H(h, ["stop"]) }, { default: f(() => [J(k(s.configure.props.resetButtonName || c(N)("superPageRuntimeMessage.reset")), 1)]), _: 1 })) : d("", !0)]), _: 1 })) : d("", !0)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
|
|
92
92
|
};
|
|
93
93
|
} });
|
|
94
94
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),f=require("element-plus"),P=require("../../object-render.vue.cjs"),O=require("agilebuilder-ui"),l=require("../../../../utils/events/event-util.cjs"),b=require("../../../../utils/i18n-util.cjs"),h=require("../../../../utils/page-helper-util.cjs"),I=e.defineComponent({__name:"tabs-runtime",props:{pageContext:{},configure:{}},setup(r,{expose:y}){const t=r,u=e.ref(""),i=e.ref([]);t.configure.items.forEach(n=>{n.code||(n.code=n.index)}),u.value=t.configure.props.defaultOpen?t.configure.props.defaultOpen:1;const s=e.ref(null),p=t.configure.runtime?t.configure.runtime:{},v=p.style,x=p.class,C=p.headerStyle;function k(n,o){return l.handleEvent(n,t.pageContext,t.configure,"before-leave",{activeName:n,oldActiveName:o})??!0}function E(n,o){const a={pane:n,ev:o},c=n.paneName;return t.pageContext.activeTab=c,t.pageContext.activeLabel=a.label,t.pageContext.workflowOpinion&&t.pageContext.workflowOpinion.boxInstance&&(c===t.configure.items[0].code?t.pageContext.workflowOpinion.boxInstance.show():t.pageContext.workflowOpinion.boxInstance.hide()),l.handleEvent(c,t.pageContext,t.configure,"tab-click",a)}function w(n){const o={paneName:n};return t.pageContext.activeTab=n,l.handleEvent(n,t.pageContext,t.configure,"tab-change",o)}function T(n){const o={paneName:n},a=l.handleEvent(n,t.pageContext,t.configure,"tab-remove",o);h.isPromise(a)?a.then(c=>{c!==!1&&d(n)}):a!==!1&&d(n)}function d(n){u.value===n&&t.configure.items.forEach((o,a)=>{if(o.code===n){const c=t.configure.items[a+1]||t.configure.items[a-1];c&&c.code!==void 0&&(u.value=c.code)}}),i.value.includes(n)||i.value.push(n)}function B(){return l.handleEvent(null,t.pageContext,t.configure,"tab-add")}function N(n,o){const a={paneName:n,action:o};return l.handleEvent(n,t.pageContext,t.configure,"edit",a)}function g(){const n=l.handleEvent(t.configure.items,t.pageContext,t.configure,"tab-reset");h.isPromise(n)?n.then(o=>{i.value=[]}):n!==!1&&(i.value=[])}return e.watch(i,n=>{n&&n.length>0?n.forEach(o=>{const a=document.getElementById("tab-"+o);a&&(a.style.display="none")}):t.configure.items.forEach(o=>{const a=document.getElementById("tab-"+o.code);a&&(a.style.display="")})},{deep:!0}),e.onMounted(()=>{e.nextTick(()=>{let n=[];t.configure.items.forEach(o=>{o.code&&n.push(document.getElementById("tab-"+o.code))}),l.handleAfterInitEvent(null,t.pageContext,t.configure,{componentRef:s.value,tabsDom:n,entity:t.pageContext.entity.data,pageData:t.pageContext.entity.page})})}),y({thisRef:s,activeName:u,hiddenPanes:i,resetTab:g,hiddenTabPanes:function(n){if(Array.isArray(n)){const o=[];n.forEach(a=>{i.value.includes(a)||o.push(a)}),o.length>0&&i.value.push(...o)}},showTabPanes:function(n){Array.isArray(n)&&n.forEach(o=>{const a=i.value.indexOf(o);a>-1&&i.value.splice(a,1)})},showTabPanesOnly:function(n){const o=[];t.configure.items.forEach(a=>{n.includes(a.code)||o.push(a.code)}),i.value=[...new Set(o)]},hiddenTabPanesOnly:function(n){const o=[];t.configure.items.forEach(a=>{n.includes(a.code)&&o.push(a.code)}),i.value=[...new Set(o)]}}),(n,o)=>{const a=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(e.unref(f.ElTabs),{ref_key:"thisRef",ref:s,modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=c=>u.value=c),type:r.configure.props.cardType,"tab-position":r.configure.props.tabPosition,style:e.normalizeStyle(e.unref(v)),class:e.normalizeClass([e.unref(x),"runtime-page-container-tabs-view"]),closable:r.configure.props.closable,"before-leave":k,onTabClick:E,onTabChange:w,onTabRemove:T,onTabAdd:B,onEdit:N},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.configure.items,(c,V)=>(e.openBlock(),e.createBlock(e.unref(f.ElTabPane),{key:V,label:c.label,name:c.code,lazy:!!r.configure.props.lazy},{label:e.withCtx(()=>[c.iconType&&c.iconValue?(e.openBlock(),e.createBlock(e.unref(O.SuperIcon),{key:0,iconType:c.iconType,iconValue:c.iconValue,style:{"margin-right":"2px"}},null,8,["iconType","iconValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",{style:e.normalizeStyle(e.unref(C))},e.toDisplayString(e.unref(b.$t)(c.label)),5)]),default:e.withCtx(()=>[(r.configure.props.isFullyRendered
|
|
1
|
+
"use strict";const e=require("vue"),f=require("element-plus"),P=require("../../object-render.vue.cjs"),O=require("agilebuilder-ui"),l=require("../../../../utils/events/event-util.cjs"),b=require("../../../../utils/i18n-util.cjs"),h=require("../../../../utils/page-helper-util.cjs"),I=e.defineComponent({__name:"tabs-runtime",props:{pageContext:{},configure:{}},setup(r,{expose:y}){const t=r,u=e.ref(""),i=e.ref([]);t.configure.items.forEach(n=>{n.code||(n.code=n.index)}),u.value=t.configure.props.defaultOpen?t.configure.props.defaultOpen:1;const s=e.ref(null),p=t.configure.runtime?t.configure.runtime:{},v=p.style,x=p.class,C=p.headerStyle;function k(n,o){return l.handleEvent(n,t.pageContext,t.configure,"before-leave",{activeName:n,oldActiveName:o})??!0}function E(n,o){const a={pane:n,ev:o},c=n.paneName;return t.pageContext.activeTab=c,t.pageContext.activeLabel=a.label,t.pageContext.workflowOpinion&&t.pageContext.workflowOpinion.boxInstance&&(c===t.configure.items[0].code?t.pageContext.workflowOpinion.boxInstance.show():t.pageContext.workflowOpinion.boxInstance.hide()),l.handleEvent(c,t.pageContext,t.configure,"tab-click",a)}function w(n){const o={paneName:n};return t.pageContext.activeTab=n,l.handleEvent(n,t.pageContext,t.configure,"tab-change",o)}function T(n){const o={paneName:n},a=l.handleEvent(n,t.pageContext,t.configure,"tab-remove",o);h.isPromise(a)?a.then(c=>{c!==!1&&d(n)}):a!==!1&&d(n)}function d(n){u.value===n&&t.configure.items.forEach((o,a)=>{if(o.code===n){const c=t.configure.items[a+1]||t.configure.items[a-1];c&&c.code!==void 0&&(u.value=c.code)}}),i.value.includes(n)||i.value.push(n)}function B(){return l.handleEvent(null,t.pageContext,t.configure,"tab-add")}function N(n,o){const a={paneName:n,action:o};return l.handleEvent(n,t.pageContext,t.configure,"edit",a)}function g(){const n=l.handleEvent(t.configure.items,t.pageContext,t.configure,"tab-reset");h.isPromise(n)?n.then(o=>{i.value=[]}):n!==!1&&(i.value=[])}return e.watch(i,n=>{n&&n.length>0?n.forEach(o=>{const a=document.getElementById("tab-"+o);a&&(a.style.display="none")}):t.configure.items.forEach(o=>{const a=document.getElementById("tab-"+o.code);a&&(a.style.display="")})},{deep:!0}),e.onMounted(()=>{e.nextTick(()=>{let n=[];t.configure.items.forEach(o=>{o.code&&n.push(document.getElementById("tab-"+o.code))}),l.handleAfterInitEvent(null,t.pageContext,t.configure,{componentRef:s.value,tabsDom:n,entity:t.pageContext.entity.data,pageData:t.pageContext.entity.page})})}),y({thisRef:s,activeName:u,hiddenPanes:i,resetTab:g,hiddenTabPanes:function(n){if(Array.isArray(n)){const o=[];n.forEach(a=>{i.value.includes(a)||o.push(a)}),o.length>0&&i.value.push(...o)}},showTabPanes:function(n){Array.isArray(n)&&n.forEach(o=>{const a=i.value.indexOf(o);a>-1&&i.value.splice(a,1)})},showTabPanesOnly:function(n){const o=[];t.configure.items.forEach(a=>{n.includes(a.code)||o.push(a.code)}),i.value=[...new Set(o)]},hiddenTabPanesOnly:function(n){const o=[];t.configure.items.forEach(a=>{n.includes(a.code)&&o.push(a.code)}),i.value=[...new Set(o)]}}),(n,o)=>{const a=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(e.unref(f.ElTabs),{ref_key:"thisRef",ref:s,modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=c=>u.value=c),type:r.configure.props.cardType,"tab-position":r.configure.props.tabPosition,style:e.normalizeStyle(e.unref(v)),class:e.normalizeClass([e.unref(x),"runtime-page-container-tabs-view"]),closable:r.configure.props.closable,"before-leave":k,onTabClick:E,onTabChange:w,onTabRemove:T,onTabAdd:B,onEdit:N},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.configure.items,(c,V)=>(e.openBlock(),e.createBlock(e.unref(f.ElTabPane),{key:V,label:c.label,name:c.code,lazy:!!r.configure.props.lazy},{label:e.withCtx(()=>[c.iconType&&c.iconValue?(e.openBlock(),e.createBlock(e.unref(O.SuperIcon),{key:0,iconType:c.iconType,iconValue:c.iconValue,style:{"margin-right":"2px"}},null,8,["iconType","iconValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",{style:e.normalizeStyle(e.unref(C))},e.toDisplayString(e.unref(b.$t)(c.label)),5)]),default:e.withCtx(()=>[(r.configure.props.isFullyRendered??!0)||c.code===u.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.items,m=>(e.openBlock(),e.createBlock(P,{key:m.uuid,pageContext:r.pageContext,configure:m},null,8,["pageContext","configure"]))),128)):e.createCommentVNode("",!0)]),_:2},1032,["label","name","lazy"]))),128)),r.configure.props.resetable?(e.openBlock(),e.createBlock(e.unref(f.ElTabPane),{key:0,disabled:"",name:"-1"},{label:e.withCtx(()=>[r.configure.props.resetable?(e.openBlock(),e.createBlock(a,{key:0,type:"text",circle:"",onClick:e.withModifiers(g,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.configure.props.resetButtonName||e.unref(b.$t)("superPageRuntimeMessage.reset")),1)]),_:1})):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["modelValue","type","tab-position","style","class","closable"])}}});module.exports=I;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.3.47-
|
|
3
|
+
"version": "2.3.47-cdnTmp2",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/lib/index.cjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
51
51
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
52
52
|
"@vue/test-utils": "^2.4.4",
|
|
53
|
-
"agilebuilder-ui": "1.2.
|
|
53
|
+
"agilebuilder-ui": "1.2.2-cdnTmp1",
|
|
54
54
|
"axios": "1.11.0",
|
|
55
55
|
"cypress": "^13.6.6",
|
|
56
56
|
"element-plus": "2.14.1",
|