@ibiz-template/vue3-util 0.7.41-alpha.6 → 0.7.41-alpha.7
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/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/common/control-base/control-base.d.ts.map +1 -1
- package/es/common/control-base/control-base.mjs +34 -3
- package/es/common/custom-render/custom-render.d.ts.map +1 -1
- package/es/common/custom-render/custom-render.mjs +2 -2
- package/es/control/panel/panel/panel.d.ts.map +1 -1
- package/es/control/panel/panel/panel.mjs +12 -1
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
- package/es/control/panel/view-layout-panel/view-layout-panel.mjs +12 -1
- package/es/panel-component/panel-container/panel-container.d.ts.map +1 -1
- package/es/panel-component/panel-container/panel-container.mjs +26 -2
- package/es/util/render/render.d.ts.map +1 -1
- package/es/util/render/render.mjs +4 -1
- package/lib/common/control-base/control-base.cjs +33 -2
- package/lib/common/custom-render/custom-render.cjs +1 -1
- package/lib/control/panel/panel/panel.cjs +12 -1
- package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +12 -1
- package/lib/panel-component/panel-container/panel-container.cjs +25 -1
- package/lib/util/render/render.cjs +4 -1
- package/package.json +4 -4
package/dist/index.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-icon{--ibiz-icon-emoji-space:-3px}.ibiz-icon__emoji{position:relative;left:var(--ibiz-icon-emoji-space)}.ibiz-control{--ibiz-control-base-scrollbar-width:0px;--ibiz-control-base-mask-text-color:var(--ibiz-color-primary-text);--ibiz-control-base-mask-background-color-blank:transparent;--ibiz-control-base-mask-background-color-mask:rgba(0, 0, 0, 0.5);width:100%;height:100%}.ibiz-control__control-render{width:100%;height:100%}.ibiz-control.is-disabled{position:relative}.ibiz-control__mask-container{position:absolute;top:0;left:0;z-index:10;width:calc(100% - var(--ibiz-control-base-scrollbar-width));height:100%}.ibiz-control--blank{background-color:var(--ibiz-control-base-mask-background-color-blank)}.ibiz-control--mask{color:var(--ibiz-control-base-mask-text-color);background-color:var(--ibiz-control-base-mask-background-color-mask);display:flex;align-items:center;justify-content:center}.ibiz-
|
|
1
|
+
.ibiz-icon{--ibiz-icon-emoji-space:-3px}.ibiz-icon__emoji{position:relative;left:var(--ibiz-icon-emoji-space)}.ibiz-view-shell{position:relative;width:100%;height:100%}.ibiz-badge{display:inline-block;width:var(--ibiz-width-icon-large);height:var(--ibiz-width-icon-large);line-height:var(--ibiz-width-icon-large);color:var(--ibiz-color-danger-text);background-color:var(--ibiz-badge-bg-color);border-radius:var(--ibiz-border-radius-circle)}.ibiz-badge--danger{--ibiz-badge-bg-color:var(--ibiz-color-danger)}.ibiz-badge--success{--ibiz-badge-bg-color:var(--ibiz-color-success)}.ibiz-badge--warning{--ibiz-badge-bg-color:var(--ibiz-color-warning)}.ibiz-badge--info{--ibiz-badge-bg-color:var(--ibiz-color-info)}.ibiz-badge--primary{--ibiz-badge-bg-color:var(--ibiz-color-primary)}.ibiz-control-shell{position:relative;width:100%;height:100%}.ibiz-control{--ibiz-control-base-scrollbar-width:0px;--ibiz-control-base-mask-text-color:var(--ibiz-color-primary-text);--ibiz-control-base-mask-background-color-blank:transparent;--ibiz-control-base-mask-background-color-mask:rgba(0, 0, 0, 0.5);width:100%;height:100%}.ibiz-control__control-render{width:100%;height:100%}.ibiz-control.is-disabled{position:relative}.ibiz-control__mask-container{position:absolute;top:0;left:0;z-index:10;width:calc(100% - var(--ibiz-control-base-scrollbar-width));height:100%}.ibiz-control--blank{background-color:var(--ibiz-control-base-mask-background-color-blank)}.ibiz-control--mask{color:var(--ibiz-control-base-mask-text-color);background-color:var(--ibiz-control-base-mask-background-color-mask);display:flex;align-items:center;justify-content:center}.ibiz-code-list{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap}.ibiz-code-list__item{color:var(--ibiz-code-list-item-color);display:flex;align-items:center;justify-content:flex-start}.ibiz-code-list .ibiz-icon{display:inline-flex;padding-right:var(--ibiz-spacing-tight)}.ibiz-custom-render{width:100%;height:100%}.ibiz-view-dehtmlview>iframe{width:100%;height:100%;border:0}.ibiz-panel-ctrl-pos{width:100%;height:100%}.ibiz-panel-ctrl-pos.is-hidden{display:none}.ibiz-view{--ibiz-view-bg-color:var(--ibiz-color-bg-1);--ibiz-view-border-radius:var(--ibiz-border-radius-medium);width:100%;height:100%}.ibiz-view .ibiz-view{background-color:var(--ibiz-view-bg-color);border-radius:var(--ibiz-view-border-radius)}.ibiz-view .ibiz-view-appportalview{background-color:rgba(0,0,0,0)}.ibiz-view.has-top-message,.ibiz-view.has-bottom-message{display:flex;flex-flow:column nowrap}.ibiz-view.has-top-message>.ibiz-view-message,.ibiz-view.has-bottom-message>.ibiz-view-message{flex-grow:0;flex-shrink:0}.ibiz-view.has-top-message>.ibiz-control-viewlayoutpanel,.ibiz-view.has-bottom-message>.ibiz-control-viewlayoutpanel{flex-grow:1;flex-shrink:1}.ibiz-panel-container{--ibiz-panel-scroll:auto;width:100%;height:100%}.ibiz-panel-container>.ibiz-row{height:100%;overflow:hidden var(--ibiz-panel-scroll)}.ibiz-panel-container.is-hidden{display:none}.ibiz-nav-pos{width:100%;height:100%}.ibiz-panel-rawitem{width:100%;height:100%}.ibiz-panel-rawitem .ibiz-panel-rawitem-content{width:100%}.ibiz-panel-field{--ibiz-form-item-label-color:var(--ibiz-color-text-1);--ibiz-form-item-text-color:var(--ibiz-color-text-2);--ibiz-form-item-hover-color:var(--ibiz-color-text-0);--ibiz-form-item-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-form-item-readonly-color:var(--ibiz-color-disabled-text);--ibiz-form-item-border-color:transparent;--ibiz-form-item-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-placeholder-color:var(--ibiz-color-text-3);--ibiz-form-item-disabled-color:var(--ibiz-color-disabled-text);--ibiz-form-item-disabled-bg-color:var(--ibiz-color-disabled-fill);--ibiz-form-item-disabled-border-color:var(--ibiz-color-disabled-border);--ibiz-form-item-active-bg:var(--ibiz-color-fill-2);--ibiz-form-item-active-border:var(--ibiz-active-bg);--ibiz-form-item-focus-bg:var(--ibiz-color-fill-0);--ibiz-form-item-focus-border:var(--ibiz-color-focus-border);--ibiz-form-item-line-height:var(--ibiz-editor-default-line-height);--ibiz-form-item-font-weight:var(--ibiz-font-weight-regular);width:100%;height:100%;position:relative}.ibiz-panel-field__error{left:0;top:100%;line-height:1;font-size:var(--ibiz-font-size-small);padding-top:var(--ibiz-spacing-super-tight);position:absolute;color:var(--ibiz-color-danger)}.ibiz-panel-field.is-error .el-input__wrapper{box-shadow:0 0 0 1px var(--ibiz-color-danger) inset}.ibiz-panel-field .ibiz-panel-field-content{line-height:inherit}.ibiz-single-data-container{width:100%;height:100%}.ibiz-scroll-container-item{width:100%;height:100%;overflow:auto}.ibiz-scroll-container-item.is-hidden{display:none}.ibiz-scroll-container{width:100%;height:100%;display:flex;flex-flow:column nowrap}.ibiz-scroll-container.is-hidden{display:none}.ibiz-scroll-container-content{flex-grow:1;overflow:auto;display:flex}.ibiz-scroll-container-content__center{flex-grow:1;overflow:auto}.ibiz-scroll-container-content__center>.ibiz-scroll-container-item>.ibiz-col{flex:none}.ibiz-scroll-container-content__left{overflow:auto}.ibiz-scroll-container-content__right{overflow:auto}.ibiz-scroll-container-header{overflow:auto}.ibiz-scroll-container-footer{overflow:auto}.ibiz-multi-data-container{width:100%;height:100%}.ibiz-panel-container-tabs{position:relative}.ibiz-panel-container-tabs .el-tabs{--el-tabs-header-height: 52px}.ibiz-panel-container-tabs .el-tabs__nav-wrap::after{display:none}.ibiz-panel-container-tabs::after{position:absolute;bottom:0;left:0;z-index:var(--el-index-normal);width:100%;height:"--ibiz-spacing-super-tight";content:"";background-color:var(--el-border-color-light)}.ibiz-multi-data-container-raw{width:100%;height:100%}.ibiz-grid-container{--ibiz-grid-container-bg-color:var(--ibiz-bg-color-overlay);--ibiz-grid-container-padding:var(--ibiz-padding);width:100%;height:100%;overflow:auto}.ibiz-grid-container.is-hidden{display:none}.ibiz-panel-container-image{position:relative;width:100%;height:100%;background-repeat:no-repeat;background-position:center center}.ibiz-panel-container-image>.ibiz-row{height:100%;overflow-x:hidden;overflow-y:auto}.ibiz-panel-container-image.is-hidden{display:none}.ibiz-teleport-placeholder{width:auto;height:auto}.ibiz-teleport-placeholder>div:not(:last-child){display:none}.ibiz-panel-container-group{--ibiz-panel-container-group-bg-color:transparent;--ibiz-panel-container-group-header-bg-color:transparent;--ibiz-panel-container-group-header-padding:var(--ibiz-spacing-base-tight);--ibiz-panel-container-group-header-border-color:var(--ibiz-color-border);--ibiz-panel-container-group-header-height:49px;--ibiz-panel-container-group-caption-text-color:var(--ibiz-color-text-0);--ibiz-panel-container-group-caption-font-size:var(--ibiz-font-size-header-5);--ibiz-panel-container-group-caption-font-weight:var(--ibiz-font-weight-bold);--ibiz-panel-container-group-content-bg-color:transparent;--ibiz-panel-container-group-content-padding:var(--ibiz-spacing-tight)}.ibiz-panel-container-group{height:100%;background-color:var(--ibiz-panel-container-group-bg-color);border-radius:var(--ibiz-border-radius-base)}.ibiz-panel-container-group__caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ibiz-panel-container-group-caption-font-size);font-weight:var(--ibiz-panel-container-group-caption-font-weight);color:var(--ibiz-panel-container-group-caption-text-color)}.ibiz-panel-container-group__caption--icon{padding-right:var(--ibiz-spacing-tight)}.ibiz-panel-container-group-collapse>.ibiz-panel-container-group-content{display:block}.ibiz-panel-container-group-collapse.is-collapse>.ibiz-panel-container-group-content{display:none}.ibiz-panel-container-group-header{display:flex;height:var(--ibiz-panel-container-group-header-height);padding:var(--ibiz-panel-container-group-header-padding);margin:var(--ibiz-panel-container-group-header-margin);border-bottom:1px solid var(--ibiz-panel-container-group-header-border-color)}.ibiz-panel-container-group-header__left,.ibiz-panel-container-group-header__right{display:inline-block;width:50%}.ibiz-panel-container-group-header__right{text-align:right;display:flex;align-items:center;justify-content:flex-end}.ibiz-panel-container-group-content{width:100%;height:100%}.ibiz-panel-container-group-content>.ibiz-row{width:100%;height:100%}.ibiz-panel-container-group--show-header>.ibiz-panel-container-group-content{height:calc(100% - var(--ibiz-panel-container-group-header-height));padding:var(--ibiz-panel-container-group-content-padding);background-color:var(--ibiz-panel-container-group-content-bg-color)}.ibiz-auth-wxmp-qrcode{width:100%;height:100%}.ibiz-auth-wxmp-qrcode__content{position:relative;width:100%;height:100%}.ibiz-auth-wxmp-qrcode__qrcode{width:100%;height:100%;object-fit:contain}.ibiz-auth-wxmp-qrcode__caption{font-size:var(--ibiz-font-size-small);text-align:center}.ibiz-auth-wxmp-qrcode__mask{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--ibiz-color-primary);background-color:rgba(255,255,255,.9)}.ibiz-auth-wxmp-qrcode__mask--icon{font-size:var(--ibiz-font-size-header-1);cursor:pointer}.ibiz-auth-wxmp-qrcode__mask--icon:hover{color:var(--ibiz-color-primary-hover)}.ibiz-control-viewlayoutpanel{width:100%;height:100%}.ibiz-control-viewlayoutpanel-content{width:100%;height:100%}.ibiz-control-panel{width:100%;height:100%}.ibiz-control-panel-content{width:100%;height:100%}
|
package/dist/index.system.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["qx-util","vue","@ibiz-template/core","ramda","@ibiz-template/runtime","vue-router","qs","pinia","lodash-es"],(function(t){"use strict";var e,n,o,a,i,r,s,l,c,d,u,p,h,m,v,f,g,y,w,b,C,I,P,D,E,N,O,A,x,S,T,z,R,L,B,j,V,k,M,U,_,F,q,G,W,$,K,H,Q,X,Y,J,Z,tt,et,nt,ot,at,it,rt,st,lt,ct,dt,ut,pt,ht,mt,vt,ft,gt,yt,wt,bt,Ct,It,Pt,Dt,Et,Nt,Ot,At,xt,St,Tt,zt,Rt,Lt,Bt,jt,Vt,kt,Mt,Ut,_t,Ft,qt,Gt,Wt,$t,Kt,Ht;return{setters:[function(t){e=t.SyncSeriesHook,n=t.AsyncSeriesHook,o=t.isFunc,a=t.notNilEmpty,i=t.QXEvent,r=t.clearAll,s=t.createUUID},function(t){l=t.watch,c=t.onBeforeUnmount,d=t.createCommentVNode,u=t.getCurrentInstance,p=t.isReactive,h=t.toRaw,m=t.inject,v=t.reactive,f=t.onActivated,g=t.onDeactivated,y=t.ref,w=t.h,b=t.resolveComponent,C=t.provide,I=t.onMounted,P=t.onUnmounted,D=t.defineComponent,E=t.computed,N=t.createVNode,O=t.withDirectives,A=t.resolveDirective,x=t.isVNode,S=t.Teleport,T=t.renderSlot,z=t.onBeforeMount},function(t){R=t.onClickOutside,L=t.NOOP,B=t.listenJSEvent,j=t.Namespace,V=t.RuntimeError,k=t.isBase64Image,M=t.isBase64,U=t.base64ToStr,_=t.isSvg,F=t.fixJsonString,q=t.IBizContext,G=t.ModelError,W=t.RuntimeModelError,$=t.setAppCookie,K=t.CoreConst,H=t.clearAppCookie,Q=t.StringUtil},function(t){X=t.isNil,Y=t.isNotNil,J=t.clone,Z=t.isEmpty,tt=t.mergeLeft},function(t){et=t.MDControlTypes,nt=t.ViewType,ot=t.RouteConst,at=t.getMatchResPath,it=t.calcDeCodeNameById,rt=t.ScriptFactory,st=t.ViewController,lt=t.getControlProvider,ct=t.getErrorViewProvider,dt=t.calcDynaSysParams,ut=t.getViewProvider,pt=t.useCalcOrMode,ht=t.calcThresholdRange,mt=t.PanelItemState,vt=t.PanelItemController,ft=t.registerPanelItemProvider,gt=t.Modal,yt=t.ViewMode,wt=t.OpenAppViewCommand,bt=t.getEditorProvider,Ct=t.PanelItemEventName,It=t.calcDynaClass,Pt=t.getAllPanelField,Dt=t.isDataContainer,Et=t.PanelNotifyState,Nt=t.getPanelItemProvider,Ot=t.convertNavData,At=t.PanelData,xt=t.execDELogicById,St=t.toLocalOpenWFRedirectView,Tt=t.getControlsByView,zt=t.getCtrlTeleportParams,Rt=t.AppDataUploadViewController,Lt=t.registerViewProvider,Bt=t.getDERedirectToView,jt=t.ViewLayoutPanelController,Vt=t.isSimpleDataContainer,kt=t.registerControlProvider,Mt=t.ControlType,Ut=t.PanelController,_t=t.RemotePluginItem},function(t){Ft=t.useRoute,qt=t.useRouter,Gt=t.RouterView},function(t){Wt=t.default},function(t){$t=t.defineStore,Kt=t.createPinia},function(t){Ht=t.isNumber}],execute:function(){t({calcResRoutePath:de,createOverlayView:ve,generateRoutePath:async function(t,e,n,o){const a=ie(e);let i=n.srfdefaulttoroutedepth||2;n.toRouteDepth?(i=n.toRouteDepth,n.toRouteDepth=void 0):ibiz.env.isMob&&"DEFAULT"===ibiz.env.mobMenuShowMode&&(a.pathNodes[0]={viewName:"home"});if(a.pathNodes.splice(i-1,a.pathNodes.length-i+1),n.currentSrfNav){const t=a.pathNodes[a.pathNodes.length-1];t.params=t.params||{},t.srfnav=n.currentSrfNav,n.currentSrfNav=void 0}le(n,a.pathNodes),e.fullPath.startsWith("/appredirectview")&&((null==o?void 0:o.srfindexname)?(a.pathNodes[0].viewName=o.srfindexname,delete o.srfindexname):a.pathNodes[0].viewName="index");if(a.pathNodes.push({viewName:t.codeName.toLowerCase(),context:se(n),params:o}),2===i&&(await de(a,n,t.appDataEntityId,t.appId),ce.includes(t.viewType))){const e=it(t.appDataEntityId);delete a.pathNodes[0].context[e]}return{path:re(a)}},generateRoutePathByModal:async function(t,e,n,o){const a=ie(e),i=a.pathNodes.findIndex((t=>t.viewName===ot.ROUTE_MODAL_TAG));-1!==i&&(a.pathNodes=a.pathNodes.slice(0,i));if(n.currentSrfNav){const t=a.pathNodes[a.pathNodes.length-1];t.params=t.params||{},t.srfnav=n.currentSrfNav,n.currentSrfNav=void 0}return le(n,a.pathNodes),a.pathNodes.push({viewName:"".concat(ot.ROUTE_MODAL_TAG,"/").concat(t.codeName.toLowerCase()),context:se(n),params:o}),{path:re(a)}},getArrayProps:_o,getAutoCompleteProps:Vo,getCascaderProps:Fo,getCheckboxListProps:Io,getCheckboxProps:Po,getCodeProps:ko,getColorPickerProps:qo,getDataPickerProps:Do,getDatePickerProps:Eo,getDateRangeProps:No,getDateRangeSelectEmits:function(){return{change:(t,e,n)=>!0,blur:t=>!0,focus:t=>!0,enter:t=>!0,infoTextChange:t=>!0,change:(t,e,n)=>!0}},getDateRangeSelectProps:Oo,getDrawerPlacement:function(t){return fe[t]||"right"},getDropdownProps:Co,getEditorEmits:go,getEditorProps:fo,getGridArrayProps:function(){return{..._o(),...yo()}},getGridAutoCompleteProps:function(){return{...Vo(),...yo()}},getGridCascaderProps:function(){return{...Fo(),...yo()}},getGridCheckboxListProps:function(){return{...Io(),...yo()}},getGridCheckboxProps:function(){return{...Po(),...yo()}},getGridCodeProps:function(){return{...ko(),...yo()}},getGridColorPickerProps:function(){return{...qo(),...yo()}},getGridDataPickerProps:function(){return{...Do(),...yo()}},getGridDatePickerProps:function(){return{...Eo(),...yo()}},getGridDateRangeProps:function(){return{...No(),...yo()}},getGridDateRangeSelectProps:function(){return{...yo(),...Oo()}},getGridDropdownProps:function(){return{...Co(),...yo()}},getGridEditorCommonProps:yo,getGridEditorEmits:function(){return{change:(t,e,n)=>!0,rowSave:()=>!0}},getGridHtmlProps:function(){return{...Mo(),...yo()}},getGridInputIpProps:function(){return{...Go(),...yo()}},getGridInputNumberProps:function(){return{...Wo(),...yo()}},getGridInputProps:function(){return{...wo(),...yo()}},getGridListBoxProps:function(){return{...Ao(),...yo()}},getGridMapPickerProps:function(){return{...$o(),...yo()}},getGridMarkDownProps:function(){return{...Uo(),...yo()}},getGridNumberRangeProps:function(){return{...xo(),...yo()}},getGridRadioProps:function(){return{...So(),...yo()}},getGridRateProps:function(){return{...To(),...yo()}},getGridRawProps:function(){return{...zo(),...yo()}},getGridSliderProps:function(){return{...Ro(),...yo()}},getGridSpanProps:function(){return{...bo(),...yo()}},getGridStepperProps:function(){return{...Lo(),...yo()}},getGridSwitchProps:function(){return{...Bo(),...yo()}},getGridUploadProps:function(){return{...jo(),...yo()}},getHtmlProps:Mo,getInputIpProps:Go,getInputNumberProps:Wo,getInputProps:wo,getListBoxProps:Ao,getMapPickerProps:$o,getMarkDownProps:Uo,getNestedRoutePath:ue,getNumberRangeProps:xo,getOrigin:Jt,getOwnRouteContext:se,getRadioProps:So,getRateProps:To,getRawProps:zo,getSliderProps:Ro,getSpanProps:bo,getStepperProps:Lo,getSwitchProps:Bo,getUploadProps:jo,isEmptyVNode:function(t){if(!Array.isArray(t))return t===te;return 1===t.length&&t[0]===te},onRouteChange:function(t,e){const n=Ft();if(!n)throw new V(ibiz.i18n.t("vue3Util.util.routeCorrectly"));l((()=>null==n?void 0:n.path),(()=>{const o=ue(n,e);t({currentKey:o,fullPath:n.fullPath})}),{immediate:!0})},openViewDrawer:async function(t,e){const n=ibiz.overlay.createDrawer(ve(t),void 0,e);await n.present();return await n.onWillDismiss()||{ok:!1}},openViewFloatWindow:async function(t,e){const n=ibiz.overlay.createFloatWindow(ve(t),void 0,e);n.present();return await n.onWillDismiss()||{ok:!1}},openViewModal:async function(t,e){const n=ibiz.overlay.createModal(ve(t),void 0,e);n.present();return await n.onWillDismiss()||{ok:!1}},openViewPopover:async function(t,e,n){const o=ibiz.overlay.createPopover(ve(e),void 0,n);o.present(t.target);return await o.onWillDismiss()||{ok:!1}},parseRouteViewData:async function(t,e,n=!1){var o;const i=ie(t,n);let r=i.pathNodes[e-1].viewName;if(!r)throw new V(ibiz.i18n.t("vue3Util.util.viewIdentifiers",{depth:e}));r===ot.ROUTE_MODAL_TAG&&(r=i.pathNodes[e].viewName);"index"===r&&(r=ibiz.hub.defaultAppIndexViewName);const s=await ibiz.hub.config.view.get(r);if(!s)throw new V(ibiz.i18n.t("vue3Util.util.noFoundView",{viewCodeName:r}));const l={};(null==(o=ibiz.appData)?void 0:o.context)&&Object.assign(l,ibiz.appData.context);i.appContext&&Object.assign(l,i.appContext);if(1!==e)for(let t=0;t<e;t++){const n=i.pathNodes[t];a(n.context)&&Object.assign(l,n.context),t!==e-1||n.context&&!X(n.context.srfnavctrlid)||delete l.srfnavctrlid}const{params:c,srfnav:d}=i.pathNodes[e-1];return{viewConfig:s,context:l,params:c,srfnav:d}},prepareControl:function(t){const e=ae("control"),{controlType:n,sysCss:o,codeName:a}=t.model,i=n.toLowerCase(),r=null==o?void 0:o.cssName,s=ae("control-".concat(i)),l=[e.b(),e.b(i),e.m(a)];r&&l.push(r);return{controlClass:l,ns:s}},renderString:function(t){if(X(t))return"";if("string"==typeof t)return t;if("object"==typeof t)return JSON.stringify(t);try{return t.toString()}catch(e){ibiz.log.error(t,ibiz.i18n.t("vue3Util.util.convertString"),e)}return""},route2routePath:ie,routePath2string:re,shareCommonAncestor:Ce,useAutoFocusBlur:function(t,e){return{useInFocusAndBlur:()=>{t.autoFocus||e("blur")},useInValueChange:()=>{t.autoFocus&&e("blur")}}},useClickOutside:Xt,useCodeListListen:function(t,e,n){let o;I((async()=>{if(t){const a=await ibiz.hub.getApp(e);o=await a.codeList.getCodeListInstance(t),o&&o.onChange(n)}})),P((()=>{o&&o.offChange(n)}))},useControlController:ne,useController:function(t){t.force=Zt()},useCtx:ee,useEventListener:oe,useFocusAndBlur:function(t,e){const n=y(),o=y(!1);let a;const i=()=>{o.value||ibiz.log.debug(ibiz.i18n.t("vue3Util.use.focusBlur.noFocus")),e(),a.stop(),o.value=!1};return oe(n,"click",(e=>{o.value||(a=Xt(n,(()=>{i()})),o.value=!0,t())}),{capture:!0}),{componentRef:n,isFocus:o,doBlur:i,pause:()=>{a&&a.pause()},stop:()=>{a&&a.stop()}}},useForce:Zt,useForceTogether:function(t,e){const n=e.force,o=Zt();e.force=t=>{n(t),o()}},useLocalCacheKey:function(t,e,n,o="@"){const a=qt();return()=>{if(!a)return;const i=t.srfuserid,r=ie(a.currentRoute.value);if(n=t.srfdefaulttoroutedepth||n,i&&n&&r.pathNodes[n-2]){r.pathNodes=r.pathNodes.slice(0,n-1),r.pathNodes.forEach((t=>{t.context&&delete t.context.srfnavctrlid}));const t=re(r);return"".concat(e).concat(o).concat(i).concat(o).concat(t)}}},useMobCtx:function(){return m("ctx")},useNamespace:ae,usePopoverVisible:function(t,e){let n;const o=y(!1);return l((()=>t.value),(a=>{a&&!n&&(n=B(window,"click",(n=>{if(o.value&&t.value){Ce(e(t.value),n.target)&&(o.value=!1)}}),{capture:!0}))}),{immediate:!0}),P((()=>{null==n||n()})),{popoverVisible:o,setPopoverVisible:t=>{o.value=t}}},usePopoverzIndex:function(){const t="popover_".concat(s());return{popoverid:t,setPopoverZIndex:e=>{const{zIndex:n}=ye(),o=document.getElementsByClassName(t),a=n.increment();if(o&&o.length>0&&e)for(let t=0;t<o.length;t++)o[t].style.setProperty(e,"".concat(a))}}},useProps:Yt,usePropsWatch:function(t,e,n){const o=Yt();Object.prototype.hasOwnProperty.call(o,t)&&(l((()=>o[t]),((t,n)=>{e(Jt(t),Jt(n))}),n),e(Jt(o[t]),void 0))},useRouteKey:function(t,e,n){n||(n=y(""));n.value=t.value;const o=new pe(e);return l(t,((t,e)=>{t!==e&&o.nextChange((()=>{n.value=t}))})),n},useRouterQuery:function(){const t=Ft(),{query:e}=t;return e},useViewController:we,useViewOperation:be});class Qt{}function Xt(t,e,n={}){let o=L,a=L,i=L;const r=()=>{o(),o=L,a=L,i=L};return l(t,((t,s)=>{if(t!==s)if(X(t))r();else{const r=R((null==t?void 0:t.$el)||t,e,n);o=r.stop,a=r.pause,i=r.proceed}}),{immediate:!0}),c((()=>{o!==L&&r()})),{stop:()=>o(),pause:()=>a(),proceed:()=>i()}}function Yt(){return u().proxy.$props}function Jt(t){return p(t)?h(t):t}function Zt(){const t=u().proxy;return e=>{t.$forceUpdate(),e&&o(e)&&t.$nextTick((()=>{e()}))}}t("AppHooks",Qt),Qt.createApp=new e,Qt.useComponent=new e,Qt.appResorceInited=new n,Qt.beforeInitApp=new n,Qt.authedApp=new n,Qt.initedApp=new n,Qt.destoryApp=new n;const te=t("EmptyVNode",d("EmptyVNode"));function ee(){return m("ctx")}function ne(t,e){const n=ee(),o=Yt();n.evt.emit("onForecast",o.modelData.name);const a=o.provider;let i;i=(null==a?void 0:a.createController)?a.createController(o.modelData,o.context,o.params,n):t(o.modelData,o.context,o.params,n),-1!==et.indexOf(i.model.controlType)&&ibiz.util.record.add(i.ctrlId,i),function(t,e){l((()=>({context:t.context,params:t.params})),((t,n)=>{if(t===n)return;const o={...t};t.context===n.context&&delete o.context,t.params===n.params&&delete o.params,e.updateContextParams(o),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.control.parameterChanges",{id:e.model.id}),t)}))}(o,i),function(t,e,n=[]){const o=["context","params","modelData",...n];l((()=>{const e={};return Object.keys(t).forEach((n=>{o.includes(n)||(e[n]=t[n])})),e}),((t,n)=>{const o={};Object.keys(t).forEach((e=>{t[e]!==(n||{})[e]&&(o[e]=t[e])})),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.control.stateChange",{name:e.model.name}),o),Object.keys(o).forEach((t=>{void 0!==o[t]&&(e.state[t]=o[t])}))}),{immediate:!0})}(o,i,null==e?void 0:e.excludePropsKeys),i.state=v(i.state),f((()=>i.onActivated())),g((()=>i.onDeactivated())),i.force=Zt();const r=u().proxy;return i.evt.onAll(((t,e)=>{r.$emit(t.slice(2),e)})),r.$emit("controllerAppear",i),i.created(),c((()=>{i.destroyed(),-1!==et.indexOf(i.model.controlType)&&ibiz.util.record.remove(i.ctrlId)})),i}function oe(t,e,n,o={}){let a=L;return l(t,((t,i)=>{t!==i&&(X(t)?(a(),a=L):a=B((null==t?void 0:t.$el)||t,e,n,o))}),{immediate:!0}),c((()=>{a!==L&&a()})),()=>{a()}}function ae(t){return new j(t,ibiz.env.namespace)}function ie(t,e=!1){const n=t.matched.length;let o=t.path;e&&(o=o.replace(new RegExp("/".concat(ot.ROUTE_MODAL_TAG),"g"),""));const a=o.split("/"),i=[];for(let e=1;e<=n;e++){const n=a[2*e],o=t.params["params".concat(e)];let r,s,l;r=o&&o!==ibiz.env.routePlaceholder?Wt.parse(o,{strictNullHandling:!0,delimiter:";",depth:8}):void 0,r&&(1===e?(s=r,r=void 0):(r.srfnavctx&&(s=JSON.parse(r.srfnavctx),delete r.srfnavctx),r.srfnav&&(l=r.srfnav,delete r.srfnav))),i.push({viewName:n,context:s,params:r,srfnav:l})}let r;return t.params.appContext&&t.params.appContext!==ibiz.env.routePlaceholder&&(r=Wt.parse(t.params.appContext,{strictNullHandling:!0,delimiter:";"})),{appContext:r,pathNodes:i}}function re(t){let e="";return t.appContext?e+="/".concat(Wt.stringify(t.appContext,{delimiter:";",strictNullHandling:!0})):e+="/".concat(ibiz.env.routePlaceholder),t.pathNodes.forEach(((t,n)=>{e+="/".concat(t.viewName,"/");let o={};if(0===n)a(t.context)&&(o=t.context);else{if(o=a(t.params)?t.params:{},a(t.context)){const e=JSON.stringify(t.context);"{}"!==e&&(o.srfnavctx=encodeURIComponent(e))}t.srfnav&&(o.srfnav=t.srfnav)}const i=Wt.stringify(o,{delimiter:";",strictNullHandling:!0,skipNulls:!0});a(i)?e+=i:e+=ibiz.env.routePlaceholder})),e}function se(t){const e=t.getOwnContext(),n=["srfsessionid","srfappid","currentSrfNav","toRouteDepth"];if(e.attributekeys){const n=e.attributekeys.split("|");n&&n.length>0&&n.forEach((n=>{Y(t[n])&&(e[n]=t[n])})),delete e.attributekeys}return Object.keys(e).forEach((t=>{(n.includes(t)||X(e[t]))&&delete e[t]})),e}function le(t,e){let n=-1;e&&e.length>0&&(n=e.findIndex((t=>{var e;return!0===(null==(e=t.context)?void 0:e.srfreadonly)}))),t.srfreadonly&&!t.getOwnContext().srfreadonly&&-1===n&&(t.srfreadonly=!0)}const ce=t("excludeViewTypes",[nt.DE_GRID_VIEW,nt.DE_GRID_EXP_VIEW,nt.DE_LIST_VIEW,nt.DE_LIST_EXP_VIEW,nt.DE_DATA_VIEW,nt.DE_DATAVIEW_EXP_VIEW,nt.DE_CALENDAR_VIEW,nt.DE_CALENDAR_EXP_VIEW,nt.DE_CHART_VIEW,nt.DE_CHART_EXP_VIEW,nt.DE_KANBAN_VIEW]);async function de(t,e,n,o){if(n){const a=await ibiz.hub.getAppDataEntity(n,o);let i=at(e,a);if(i||(i={path:"",keys:[a.codeName.toLowerCase()]}),i){const n=t.pathNodes[1].context,o={};i.keys.forEach((t=>{e&&Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t],n&&delete n[t])})),t.pathNodes[0].context=o}}else t.pathNodes[0].context=void 0}function ue(t,e,n=!0){if(t.matched.length<e)return"";if(t.matched.length===e&&t.name)return t.path;const o=ie(t);if(o.pathNodes.length<e)return t.path;o.pathNodes.length>e&&(o.pathNodes=o.pathNodes.slice(0,e));const a=o.pathNodes[e-1];return n&&delete a.srfnav,a.context&&delete a.context.srfnavctrlid,re(o)}class pe{constructor(t,e){this.callbacks=[],this.timers=[],this.wait=500,e&&(this.wait=e),l((()=>t.path),((t,e)=>{if(t!==e){if(this.callbacks.length)for(let t=0;t<this.callbacks.length;t++){(0,this.callbacks[t])()}if(this.callbacks=[],this.timers.length)for(let t=0;t<this.timers.length;t++){const e=this.timers[t];clearTimeout(e)}this.timers=[]}}))}nextChange(t){t&&(this.timers.push(setTimeout((()=>{t();const e=this.callbacks.findIndex((e=>e===t));this.callbacks.splice(e,1)}),this.wait)),this.callbacks.push(t))}}t("RouteListener",pe);const he=t("withInstall",((t,e)=>(t.install=t=>{e(t)},t)));t("hasEmptyPanelRenderer",(t=>{const e=null==t?void 0:t.model.controlRenders;return!(!e||0===e.length)&&!!e.find((t=>"emptypanel"===t.id))}));class me{constructor(t,e,n){this.component=t,this.render=e,this.opts=n,this.evt=new i,this.init()}static createVueApp(t,e){throw new V(ibiz.i18n.t("vue3Util.util.noInjected"))}init(){const t=this,{render:e,opts:n}=this,o=document.createElement("div");document.body.appendChild(o);const a=me.createVueApp({mounted(){t.modal=this.$refs.root},unmounted(){document.body.removeChild(o),t.evt.emit("dismiss",t.result)},render:()=>w(t.component,{ref:"root",opts:n,onDismiss(e){t.result=e,a.unmount()}},{default:e})});ibiz.plugin.register(a),a.mount(o),this.vm=a}async present(){return this.modal.present()}async dismiss(t){await this.modal.dismiss(t)}async onWillDismiss(){return new Promise((t=>{const e=n=>{t(n),this.evt.off("dismiss",e)};this.evt.on("dismiss",e)}))}}t("OverlayContainer",me);function ve(t){return e=>{const n=b("IBizViewShell");return w(n,{...t,modal:e})}}t("OverlayPopoverContainer",class extends me{present(t){return this.modal.present(t)}});const fe={DRAWER_LEFT:"left",DRAWER_RIGHT:"right",DRAWER_TOP:"top",DRAWER_BOTTOM:"bottom"};class ge{constructor(t,e){this.from=t,this.to=e,this.isActivated=!1,ibiz.log.debug("openRouter: ",t,e)}onWillDismiss(){return this.promise||(this.promise=new Promise((t=>{this.resolve=t}))),this.promise.then((t=>(ibiz.log.debug("onWillDismiss: ",this.from,this.to,t),t)))}close(t){ibiz.log.debug("closeRouter: ",this.from,this.to,t),this.resolve&&(this.resolve(t),this.resolve=void 0)}active(){ibiz.log.debug("activeRouter: ",this.from,this.to),this.isActivated=!0}destroy(){ibiz.log.debug("destroyRouter: ",this.from,this.to),this.resolve&&(this.resolve({ok:!1}),this.resolve=void 0)}}t("routerCallback",new class{constructor(){this.map=new Map}async open(t,e,n={}){const o=t.currentRoute.value.fullPath;n.replace?t.replace({path:e}):t.push({path:e});const a=e;if(this.map.has(a)){return this.map.get(a).onWillDismiss()}const i=new ge(o,a);return this.map.set(a,i),this.scheduledDestruction(i),i.onWillDismiss()}close(t,e){const n=this.map.get(t);n&&(window.clearTimeout(n.timeout),n.timeout=void 0,n.close(e),this.map.delete(t))}active(t){const e=this.map.get(t);e&&(window.clearTimeout(e.timeout),e.timeout=void 0,e.active())}scheduledDestruction(t){t.timeout=window.setTimeout((()=>{t.timeout=void 0,t.destroy(),this.map.delete(t.to)}),6e5)}}),t("useAppStore",$t("appStore",(()=>({appStore:v({})}))));const ye=t("useUIStore",$t("uiStore",(()=>{const t=function(){const t=y(500);return{zIndex:t,increment:function(){return t.value+=1,t.value},decrement:function(){t.value-=1}}}(),e=()=>ibiz.util.theme.getTheme().includes("dark")?"dark":"light",n=v({zIndex:t.zIndex,theme:e()});return ibiz.util.theme.evt.on("onChange",(()=>{n.theme=e()})),{UIStore:n,zIndex:t}})));t("piniaInstance",Kt());function we(t){const e=Yt(),n=m("ctx",void 0);null==n||n.evt.emit("onForecast",e.modelData.name);const o=e.provider;let a;a=(null==o?void 0:o.createController)?o.createController(e.modelData,e.context,e.params,n):t(e.modelData,e.context,e.params,n),ibiz.util.viewStack.add(a.id,a),function(t,e){l((()=>({context:t.context,params:t.params})),(t=>{e.context.reset({},t.context),r(e.params),Object.assign(e.params,t.params),e.handleContextParams(),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.control.parameterChanges",{id:e.model.id}),t)}))}(e,a),function(t,e){l((()=>t.state?{...t.state}:{}),((t,n)=>{const o={};Object.keys(t).forEach((e=>{t[e]!==(n||{})[e]&&(o[e]=t[e])})),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.view.stateChange",{name:e.model.name}),o),Object.keys(o).forEach((t=>{e.state[t]=o[t]}))}),{immediate:!0})}(e,a),C("ctx",a.ctx),a.state=v(a.state),a.slotProps=v(a.slotProps),e.modal&&(a.modal=e.modal),f((()=>{a.onActivated(),ibiz.util.viewStack.active(a.id)})),g((()=>{a.onDeactivated(),ibiz.util.viewStack.deactivate(a.id)})),a.force=Zt();const i=u().proxy;return a.evt.onAll(((t,e)=>{i.$emit(t.slice(2),e)})),a.created(),c((()=>{a.destroyed(),ibiz.util.viewStack.remove(a.id)})),a}function be(t){let e=[];I((()=>{const n=document.getElementById(t.id);n&&(e=["keydown","click"].map((e=>B(n,e,(e=>{t.setOperateState("MANUAL")}),{once:!0,capture:!0}))))})),P((()=>{e&&e.length>0&&e.forEach((t=>{t()}))}))}function Ce(t,e){if(!t||!e)return!1;if(t===e)return!0;const n=new Set;let o=t;for(;o;){n.add(o);const t=o.parentNode;o=!t||"BODY"!==t.nodeName&&"HTML"!==t.nodeName?t:null}for(o=e;o;){if(n.has(o))return!0;o=o.parentNode}return!1}const Ie=t("IBizIcon",D({name:"IBizIcon",props:{icon:{type:Object},size:{type:String},baseDir:{type:String,default:"images"}},setup(t){const e=ae("icon"),n="".concat(ibiz.env.assetsUrl,"/").concat(t.baseDir,"/");const o=E((()=>function(t){if(t){if(t.htmlStr)return N("span",{class:e.b(),innerHTML:t.htmlStr},null);if(t.cssClass)return-1!==t.cssClass.indexOf("fa-")||-1!==t.cssClass.indexOf("theme-icon")?N("i",{class:[e.b(),t.cssClass]},null):N("ion-icon",{class:e.b(),name:t.cssClass},null);if(t.imagePath)return k(t.imagePath)?N("img",{class:e.b(),src:t.imagePath},null):M(t.imagePath)?N("div",{class:[e.b(),e.e("emoji")]},[U(t.imagePath)]):_(t.imagePath)?N("div",{class:e.b(),innerHTML:t.imagePath},null):t.imagePath.endsWith("svg")?t.imagePath.startsWith("http")?N("img",{class:e.b(),src:t.imagePath},null):N("ion-icon",{src:n+t.imagePath,class:e.b()},null):t.imagePath.startsWith("http")?N("img",{class:e.b(),src:t.imagePath},null):N("img",{class:e.b(),src:n+t.imagePath},null);if(t.rawContent)return _(t.rawContent)?N("div",{class:e.b(),innerHTML:t.rawContent},null):N("img",{class:e.b(),src:t.rawContent},null)}return null}(t.icon)));return()=>o.value}}));t("IBizRouterView",D({name:"IBizRouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object,manualKey:{type:String}},setup(t,{attrs:e}){const n={};let o=!0;l((()=>t.manualKey),((t,e)=>{Y(t)&&t!==e&&(o=!0)}));return{renderComp:(a,i)=>{if(!o)return n.vNode;if(o=!1,a){const o={...a.props};delete o.onVnodeUnmounted,delete o.ref;const i=w(a.type,{...o,...e,key:t.manualKey});return n.vNode=i,i}}}},render(){return N(b("router-view"),{name:this.name,route:this.route},{default:({Component:t,route:e})=>{const n=this.renderComp(t,e);return this.$slots.default?this.$slots.default({Component:n,route:e}):n}})}})),t("IBizControlBase",D({name:"IBizControlBase",props:{controller:{type:Object,required:!0}},setup(t){const e=ae("control"),{controlType:n,sysCss:o,codeName:a}=t.controller.model,i=n.toLowerCase(),r=null==o?void 0:o.cssName,s=t.controller.model,l=t.controller.model.controls,c=v({});!1===s.controlType.endsWith("EXPBAR")&&(X(s.width)||(s.width>0&&s.width<=1?c.width="".concat(100*s.width,"%"):c.width="".concat(s.width,"px")),X(s.height)||(s.height>0&&s.height<=1?c.width="".concat(100*s.height,"%"):c.height="".concat(s.height,"px")));const d=async(e,n)=>{e.stopPropagation();const o=e.target.getAttribute(n),a=e.target.getAttribute("data"),i=t.controller.context.clone(),r=e.target.getAttribute("context");r&&Object.assign(i,F(r));const s={...t.controller.params},l=e.target.getAttribute("params");l&&Object.assign(s,F(l)),o&&await rt.asyncExecScriptFn({...t.controller.getEventArgs(),context:i,params:s,data:a?F(a):null},o)},u=E((()=>(n=>{var o,a;const i=s.controlRenders?s.controlRenders.filter((t=>"emptypanel"!==t.id)):void 0;if(!i||0===i.length)return;const r=i[0];if("LAYOUTPANEL_MODEL"===r.renderType&&r.layoutPanelModel){const a=rt.execScriptFn({...t.controller.getEventArgs(),data:n},r.layoutPanelModel,{isAsync:!1});return N("div",{innerHTML:a,onClick:t=>d(t,"click"),onDblclick:t=>d(t,"dbclick"),class:[e.e("control-render"),e.e(null==(o=r.renderName)?void 0:o.toLowerCase())]},null)}return"LAYOUTPANEL"===r.renderType&&r.layoutPanel?N(b("iBizControlShell"),{class:[e.e("control-render"),e.e(null==(a=r.renderName)?void 0:a.toLowerCase())],data:n,params:t.controller.params,context:t.controller.context,modelData:r.layoutPanel},null):void 0})(t.controller.data||t.controller.items)));return{ns:e,typeClass:i,sysCssName:r,inlineStyle:c,codeName:a,controls:l,customRender:u,onLayoutPanelCreated:e=>{t.controller.setLayoutPanel(e)}}},render(){var t,e,n;const{state:o,controlPanel:a,providers:i}=this.controller;let r=null;if(o.isCreated&&a){const e={...this.$slots};(null==(t=this.controls)?void 0:t.length)&&this.controls.forEach((t=>{const n=t.name,o={context:this.controller.context,params:this.controller.params},a=e[n];e[n]=a?()=>a(o):()=>{const e=b("IBizControlShell");return w(e,{modelData:t,...o})}}));const n=i[a.name];r=w(b(n.component),{modelData:a,context:this.controller.context,params:this.controller.params,provider:n,container:this.controller,onControllerAppear:this.onLayoutPanelCreated},e)}return N("div",{class:[this.ns.b(),this.ns.b(this.typeClass),this.ns.m(this.codeName),this.sysCssName,this.ns.is("disabled",o.disabled)],style:this.inlineStyle},[r||this.customRender||(null==(n=(e=this.$slots).default)?void 0:n.call(e)),o.disabled&&N("div",{class:[this.ns.e("mask-container"),this.ns.m(o.maskOption.mode.toLowerCase())]},["MASK"===o.maskOption.mode&&(o.maskOption.maskInfo||"")])])}})),t("IBizControlShell",D({name:"IBizControlShell",props:{modelData:{type:Object,required:!0}},setup(t){const e=m("ctx");if(e)e.evt.emit("onForecast",t.modelData.name);else{const t={name:"AppView",id:"AppView",viewType:nt.DE_CUSTOM_VIEW,appId:ibiz.env.appId};C("ctx",new st(t,q.create({})).ctx)}const n=y(!1),o=y(""),a=y();lt(t.modelData).then((t=>{t?a.value=t:o.value=ibiz.i18n.t("vue3Util.common.onFoundCorrespondingPart"),n.value=!0})).catch((t=>{ibiz.log.error(t),o.value=t.message,n.value=!0}));return{ns:ae("control-shell"),isComplete:n,errMsg:o,provider:a}},render(){return this.isComplete&&this.provider?w(b(this.provider.component),{provider:this.provider,...this.$props,...this.$attrs},this.$slots):O(N("div",{class:this.ns.b()},[this.isComplete?this.errMsg:null]),[[A("loading"),!this.isComplete]])}})),t("IBizViewShell",D({name:"IBizViewShell",props:{context:{type:Object,required:!0},params:{type:Object},modelData:{type:Object},viewId:{type:String},ctx:{type:Object}},setup(t,{attrs:e}){const n=ae("view-shell"),o=y(!1),a=y(""),i=y(),r=y(),c=y(!0);t.ctx&&C("ctx",t.ctx);const d=y(t.context),u=y(t.params||{});let p="";l((()=>({context:t.context,params:t.params})),(t=>{d.value=t.context,u.value=t.params?t.params:{}}));let h;const m=t=>{const e=J(t);return e.srfdatatype&&delete e.srfdatatype,JSON.stringify(e)},v=async()=>{try{if(await(async()=>{h=t.modelData?t.modelData:await ibiz.hub.getAppView(t.viewId)})(),!h)throw new V(ibiz.i18n.t("vue3Util.common.noFoundViewModel"));if(c.value=await(async t=>{let e=!0;const{accUserMode:n,accessKey:o}=t,a=ibiz.auth.getAuthInfo();if(void 0!==n)switch(n){case 1:a&&(e=!1);break;case 2:a||(e=!1);break;case 4:o&&((await ibiz.hub.getApp(d.value.srfappid)).authority.calcByResCode(o)||(e=!1))}return e})(h),!c.value)return;if(1===h.dynaSysMode){const t=h.appDataEntityId;if(!t)throw new V(ibiz.i18n.t("vue3Util.common.noSupportLoadingDynamic",{codeName:h.codeName}));const e=await dt(t,d.value,{viewParams:u.value,appId:h.appId});if(u.value.srfdatatype&&(e.srfdatatype=u.value.srfdatatype),u.value.srfwftag)e.srfwftag=u.value.srfwftag;else if(t&&h.enableWF&&e.srfkey){const n=X(d.value.srfsessionid)||Z(d.value.srfsessionid),o=s();if(n){const t=ibiz.uiDomainManager.create(o);d.value.srfsessionid=t.id}const a=ibiz.hub.getApp(h.appId);d.value.srfappid||(d.value.srfappid=h.appId);const i=await a.deService.getService(d.value,t),r=await i.get(d.value,u.value||{});if(r.ok&&r.data){const{srfwftag:t,processdefinitionkey:n,taskdefinitionkey:o}=r.data;t&&(e.srfwftag=t),["DEWFDYNAEDITVIEW3","DEWFDYNAEDITVIEW"].includes(h.viewType)&&(X(u.value.processDefinitionKey)&&(u.value.processDefinitionKey=n),X(u.value.taskDefinitionKey)&&(u.value.taskDefinitionKey=o))}n&&(ibiz.uiDomainManager.destroy(o),d.value.srfsessionid="")}if(m(e)===p)return void setTimeout((()=>{o.value=!0}));r.value=await ibiz.hub.loadAppView(h.appId,h.id,e),p=m(e)}else r.value=h;i.value=await ut(h)}catch(t){ibiz.log.error(t),a.value=t.message}finally{o.value=!0}};v();return{ns:n,errMsg:a,provider:i,isComplete:o,hasAuthority:c,viewModelData:r,redrawView:async t=>{o.value=!1;const{redrawData:n}=t,{isReloadModel:a}=n;Object.assign(d.value,n.context),Object.assign(u.value,n.params);const i=e.modal;i&&(i.hooks.shouldDismiss.clear(),i.hooks.beforeDismiss.clear()),a?await v():setTimeout((()=>{o.value=!0}))},curContext:d,curParams:u}},render(){if(this.isComplete&&this.provider&&this.hasAuthority)return w(b(this.provider.component),{context:this.curContext,params:this.curParams,modelData:J(this.viewModelData),...this.$attrs,provider:this.provider,onRedrawView:this.redrawView},this.$slots);if(!this.hasAuthority){const t=ct("403");if(t)return"string"==typeof t.component?w(b(t.component)):w(t.component)}return O(N("div",{class:this.ns.b()},[this.isComplete?this.errMsg:null]),[[A("loading"),!this.isComplete]])}})),t("IBizCodeList",D({name:"IBizCodeList",props:{codeListItems:{type:Array},codeList:{type:Object,required:!0},value:{type:[String,Number]},convertToCodeItemText:{type:Boolean,default:!0},valueFormat:{type:String},unitName:{type:String},showMode:{type:String,default:"DEFAULT"}},emits:{infoTextChange:t=>!0},setup(t,{emit:e}){var n,o;const a=ae("code-list"),i=y([]),r=(null==(n=t.codeList)?void 0:n.textSeparator)||"、",s=(null==(o=t.codeList)?void 0:o.valueSeparator)||",",c=E((()=>t.codeList&&t.codeList.orMode?t.codeList.orMode:"STR")),d=pt(c.value);l(i,(t=>{let n="";t.length>0&&(n=t.map((t=>t.text)).join(r)),e("infoTextChange",n)}));const u=(e,n)=>{if(e){const{thresholdGroup:o}=t.codeList;if(o&&Ht(Number(n))){const t=ht(e,Number(n));if(t)return t}const a=e.find((t=>t.value==n));if(a)return a;for(let t=0;t<e.length;t++){const o=u(e[t].children,n);if(o)return o}}};l([()=>t.codeListItems,()=>t.value],(([e,n],[o,a])=>{if(X(n)||""===n)i.value=[];else{let o=[];const{getSelectArray:a}=d,r=a(n,t.codeList,e,s,t.codeList.codeItemValueNumber);r&&(o=r),i.value=o.map((n=>{const o=u(e,n);let a=n;if(t.convertToCodeItemText&&(null==o?void 0:o.text))a=o.text;else{const{valueFormat:e,unitName:n}=t;e&&(a=ibiz.util.text.format("".concat(a),e)),n&&(a+=n)}return{text:a,color:null==o?void 0:o.color,textCls:null==o?void 0:o.textCls,sysImage:null==o?void 0:o.sysImage}}))}}),{immediate:!0});const p=t.codeList.emptyText!==ibiz.i18n.t("vue3Util.common.undefined")&&t.codeList.emptyText?t.codeList.emptyText:ibiz.config.common.emptyText;return{items:i,ns:a,emptyText:p,textSeparator:r}},render(){return N("span",{class:this.ns.b()},[0===this.items.length?this.emptyText:this.items.map(((t,e)=>[0!==e?this.textSeparator:null,N("span",{class:[this.ns.e("item"),t.textCls?t.textCls:null],style:t.color?this.ns.cssVarBlock({"item-color":"".concat(t.color)}):null},["TEXT"!==this.showMode&&t.sysImage&&N(b("iBizIcon"),{icon:t.sysImage},null),"ICON"!==this.showMode&&t.text])]))])}})),t("ControlLoadingPlaceholder",D({name:"ControlLoadingPlaceholder",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})}},setup:t=>(m("ctx").evt.emit("onForecast",t.modelData.name),{}),render:()=>null})),t("IBizBadge",D({name:"IBizBadge",props:{value:{type:Number,required:!0},type:{type:String,default:"danger"},max:{type:Number,default:99},counterMode:{type:Number}},setup:()=>({ns:ae("badge")}),render(){if((this.value||0===this.value)&&!(1===this.counterMode&&this.value<=0))return N("div",{class:[this.ns.b(),this.ns.m(this.type)]},[this.value>this.max?"".concat(this.max,"+"):this.value])}})),t("IBizCustomRender",D({name:"IBizCustomRender",props:{controller:{type:Object,required:!0}},setup(t){const e=ae("custom-render"),n=async(e,n)=>{e.stopPropagation();const o=e.target.getAttribute(n),a=e.target.getAttribute("data"),i=t.controller.context.clone(),r=e.target.getAttribute("context");r&&Object.assign(i,F(r));const s={...t.controller.params},l=e.target.getAttribute("params");l&&Object.assign(s,F(l)),o&&await rt.asyncExecScriptFn({...t.controller.getEventArgs(),context:i,params:s,data:a?F(a):null},o)};return{ns:e,getControlRender:()=>{var o,a,i;const r=null==(o=t.controller)?void 0:o.model.controlRenders;if(!r||0===r.length)return;const s=r.find((t=>"emptypanel"===t.id));if(s){if("LAYOUTPANEL_MODEL"===s.renderType&&s.layoutPanelModel){const o=rt.execScriptFn({...t.controller.getEventArgs()},s.layoutPanelModel,{isAsync:!1});return N("div",{innerHTML:o,onClick:t=>n(t,"click"),onDblclick:t=>n(t,"dbclick"),class:[e.b(),e.e(null==(a=s.renderName)?void 0:a.toLowerCase())]},null)}return"LAYOUTPANEL"===s.renderType&&s.layoutPanel?N(b("iBizControlShell"),{class:[e.b(),e.e(null==(i=s.renderName)?void 0:i.toLowerCase())],params:t.controller.params,context:t.controller.context,modelData:s.layoutPanel},null):void 0}}}},render(){return this.getControlRender()}}));class Pe extends mt{}t("PanelContainerState",Pe);class De extends vt{createState(){var t;return new Pe(null==(t=this.parent)?void 0:t.state)}}function Ee(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)}t("PanelContainerController",De);const Ne=D({name:"IBizPanelContainer",props:{modelData:{type:Object,required:!0},controller:{type:De,required:!0}},setup(t){const e=ae("panel-container"),{id:n}=t.modelData,o=E((()=>{let o=[e.b(),e.m(n)];return o=[...o,...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)],o}));return{ns:e,classArr:o}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[],a=N(b("iBizRow"),{slot:"content",layout:this.modelData.layout},Ee(n=o.map((t=>{const e=t.props;return e&&e.controller?N(b("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},Ee(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]});return N("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[this.controller.model.cssStyle?N("style",{type:"text/css"},[this.controller.model.cssStyle]):null,a])}});class Oe{constructor(){this.component="IBizPanelContainer"}async createController(t,e,n){const o=new De(t,e,n);return await o.init(),o}}t("IBizPanelContainer",he(Ne,(function(t){t.component(Ne.name,Ne),ft("CONTAINER",(()=>new Oe)),ft("CONTAINER_DEFAULT",(()=>new Oe))})));const Ae=D({name:"IBizPanelCtrlPos",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){m("ctx").evt.on("onRegister",((e,n)=>{e===t.modelData.id&&t.controller.bindControl(n)}));return{ns:ae("panel-ctrl-pos")}},render(){const{state:t}=this.controller;let e;return this.$slots.default&&(e=this.$slots.default()),N("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass,this.ns.is("hidden",!t.visible)]},[e||(ibiz.env.dev?ibiz.i18n.t("vue3Util.panelComponent.noProvidedSlot",{id:this.modelData.id}):"")])}});class xe extends vt{bindControl(t){this.control=t,t.evt.onAll(((t,e)=>{this.panel.evt.emit("onControlEvent",{triggerControlName:this.model.id,triggerEventName:t,triggerEvent:e})}))}}t("PanelCtrlPosController",xe);class Se{constructor(){this.component="IBizPanelCtrlPos"}async createController(t,e,n){const o=new xe(t,e,n);return await o.init(),o}}t("IBizPanelCtrlPos",he(Ae,(function(t){t.component(Ae.name,Ae),ft("CTRLPOS",(()=>new Se))})));class Te extends vt{}function ze(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)}t("ScrollContainerItemController",Te);const Re=t("ScrollContainerItem",D({name:"IBizScrollContainerItem",props:{modelData:{type:Object,required:!0},controller:{type:Te,required:!0}},setup(t){const e=ae("scroll-container-item"),{id:n}=t.modelData,o=E((()=>[e.b(),e.m(n),e.is("hidden",!t.controller.state.visible)]));return{ns:e,classArr:o}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[];return N(b("iBizRow"),{class:this.classArr,layout:{layout:"FLEX"}},ze(n=o.map((t=>{const e=t.props;return e&&e.controller?(e.modelData.layoutPos.layout="FLEX",N(b("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},ze(t)?t:{default:()=>[t]})):t})))?n:{default:()=>[n]})}}));class Le{constructor(){this.component="IBizScrollContainerItem"}async createController(t,e,n){const o=new Te(t,e,n);return await o.init(),o}}class Be extends vt{async onInit(){await super.onInit(),this.state.layout.width="100%",this.state.layout.height="100%"}}t("ScrollContainerController",Be);const je=t("ScrollContainer",D({name:"IBizScrollContainer",props:{modelData:{type:Object,required:!0},controller:{type:Be,required:!0}},setup(t){const e=ae("scroll-container"),{id:n}=t.modelData,o=E((()=>[e.b(),e.m(n),...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)]));return{ns:e,classArr:o}},render(){var t,e;let n=null,o=null,a=null,i=null,r=null;const s={};((null==(e=(t=this.$slots).default)?void 0:e.call(t))||[]).forEach((t=>{const e=t.props;if(!e||!e.controller)return;const{width:l,height:c}=e.controller.state.layout;switch(e.modelData.layoutPos.layoutPos){case"WEST":n=t,s.left={width:l};break;case"EAST":a=t,s.right={width:l};break;case"NORTH":o=t,s.top={height:c};break;case"SOUTH":i=t,s.bottom={height:c};break;case"CENTER":r=t;break;default:ibiz.log.debug(ibiz.i18n.t("vue3Util.panelComponent.unadaptedLayout",{layoutPos:e.modelData.layoutPos.layoutPos}))}}));for(const t in s)(s[t].width||s[t].height)&&(s[t].flexShrink=0);return N("div",{class:this.classArr},[N("div",{class:[this.ns.e("header")],style:s.top},[o]),N("div",{class:[this.ns.b("content")]},[N("div",{class:this.ns.be("content","left"),style:s.left},[n]),N("div",{class:this.ns.be("content","center")},[r]),N("div",{class:this.ns.be("content","right"),style:s.right},[a])]),N("div",{class:[this.ns.e("footer")],style:s.bottom},[i])])}}));class Ve{constructor(){this.component="IBizScrollContainer"}async createController(t,e,n){const o=new Be(t,e,n);return await o.init(),o}}t("IBizScrollContainer",he(je,(function(t){t.component(je.name,je),t.component(Re.name,Re),ft("CONTAINER_CONTAINER_SCROLL",(()=>new Ve)),ft("CONTAINER_CONTAINER_SCROLL_LEFT",(()=>new Le)),ft("CONTAINER_CONTAINER_SCROLL_HEADER",(()=>new Le)),ft("CONTAINER_CONTAINER_SCROLL_RIGHT",(()=>new Le)),ft("CONTAINER_CONTAINER_SCROLL_BOTTOM",(()=>new Le)),ft("CONTAINER_CONTAINER_SCROLL_MAIN",(()=>new Le))})));class ke extends mt{constructor(){super(...arguments),this.cache=!0,this.routeOpen=!0,this.currentKey="",this.cacheKeys=["RouterShell"],this.navViewMsgs={},this.isLoading=!1}}t("NavPosState",ke);const Me=["is404","isRoutePushed"];class Ue extends vt{constructor(){super(...arguments),this.viewModals={},this.refCtrlKeys=[],this.rawItemParams={},this.ignoreEmbedKey=!1}get route(){return this.router.currentRoute.value}getExpItemIsCache(t){return"CACHE"===this.rawItemParams.expcache||"NO_CACHE"!==this.rawItemParams.expcache&&t.isCache}setRouter(t){this.router=t}async onInit(){var t;await super.onInit(),this.handleRawItemParams(),(null==(t=this.model.rawItem)?void 0:t.rawItemParams)&&this.model.rawItem.rawItemParams.find((t=>!("REFCTRL"!==t.key||!t.value)&&(this.refCtrlKeys=t.value.split(";").map((t=>t.toLowerCase())),!0))),this.panel.evt.on("onControlEvent",(t=>{if((0===this.refCtrlKeys.length||this.refCtrlKeys.includes(t.triggerControlName))&&"onNavViewChange"===t.triggerEventName){const e=t.triggerEvent;this.openView(e.navViewMsg)}}));const e=this.rawItemParams.expmode||this.panel.view.params.expmode,n=this.rawItemParams.ignoreembedkey||this.panel.view.params.ignoreembedkey||"";this.ignoreEmbedKey=Object.is(n.toLowerCase(),"true"),"ROUTE"===e&&this.routeDepth?this.state.routeOpen=!0:this.state.routeOpen="NO_ROUTE"!==e&&!!this.routeDepth,this.panel.view.params.expmode&&delete this.panel.view.params.expmode}createState(){var t;return new ke(null==(t=this.parent)?void 0:t.state)}get routeDepth(){return this.panel.view.modal.routeDepth}calcCacheKey(t){return t?"".concat(t.viewId,"___").concat(t.key):""}onRouteChange(t){if(this.curNavViewMsg){const e=this.calcCacheKey(this.curNavViewMsg);this.state.currentKey=e,this.state.navViewMsgs[e].fullPath=t.fullPath}}setNavViewMsgs(t){t.isRoutePushed=!0===t.isRoutePushed;const e=this.calcCacheKey(t);this.state.navViewMsgs[e]?(tt(this.state.navViewMsgs[e],t),Me.forEach((n=>{Object.prototype.hasOwnProperty.call(t,n)&&(this.state.navViewMsgs[e][n]=void 0)}))):(this.state.navViewMsgs[e]=t,this.getExpItemIsCache(t)&&this.state.cacheKeys.push(e),this.viewModals[e]=new gt({mode:this.routeDepth?yt.ROUTE:yt.EMBED,routeDepth:this.routeDepth?this.routeDepth+1:void 0,dismiss:()=>{this.dismiss(e)}})),this.curNavViewMsg=this.state.navViewMsgs[e]}dismiss(t){ibiz.log.debug(this.constructor.name,"dismiss",t)}onViewCreated(t){this.panel.evt.emit("onPresetPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:"onViewCreated",presetParams:t}),ibiz.log.debug(this.constructor.name,"onViewCreated",t)}toBlankRoute(){const t=ue(this.route,this.routeDepth);this.router.push(t)}openView(t){if(!t.key)return this.state.currentKey=this.calcCacheKey(t),void(this.routeDepth&&this.state.routeOpen&&this.toBlankRoute());this.routeDepth&&this.state.routeOpen?this.openViewByPath(t):this.openViewByModel(t)}async openViewByPath(t){var e,n,o,a;const i=this.calcCacheKey(t);this.setNavViewMsgs(t);if(!0===t.isRoutePushed)return this.state.currentKey=i,void(this.state.navViewMsgs[this.calcCacheKey(this.curNavViewMsg)].fullPath=this.route.fullPath);if(t.is404){const n=ue(this.route,this.routeDepth,!1);(null==(e=t.modalOptions)?void 0:e.replace)?this.router.replace("".concat(n,"/error/404")):this.router.push("".concat(n,"/error/404"))}else if(i===this.state.currentKey&&this.state.navViewMsgs[i].fullPath)(null==(n=t.modalOptions)?void 0:n.replace)?this.router.replace(this.state.navViewMsgs[i].fullPath):this.router.push(this.state.navViewMsgs[i].fullPath);else if(this.state.navViewMsgs[i].fullPath&&this.getExpItemIsCache(t))(null==(o=t.modalOptions)?void 0:o.replace)?this.router.replace(this.state.navViewMsgs[i].fullPath):this.router.push(this.state.navViewMsgs[i].fullPath);else{const e=Object.assign(t.context.clone(),{toRouteDepth:this.routeDepth+1});(null==(a=this.rawItemParams)?void 0:a.routeattributekeys)&&(e.attributekeys=this.rawItemParams.routeattributekeys),this.getExpItemIsCache(t)&&this.state.cacheKeys.push(i),t.viewId&&(this.state.isLoading=!0,await ibiz.commands.execute(wt.TAG,t.viewId,e,t.params,{openMode:"INDEXVIEWTAB",modalOption:{replace:!this.state.currentKey,...t.modalOptions}}),this.state.isLoading=!1)}}openViewByModel(t){this.setNavViewMsgs(t),this.state.currentKey=this.calcCacheKey(t)}handleRawItemParams(){var t;let e={};const n=null==(t=this.model.rawItem)?void 0:t.rawItemParams;a(n)&&(e=n.reduce(((t,e)=>(t[e.key.toLowerCase()]=e.value,t)),{})),Object.assign(this.rawItemParams,e)}}function _e(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)}t("NavPosController",Ue);const Fe=D({name:"IBizNavPos",props:{modelData:{type:Object,required:!0},controller:{type:Ue,required:!0}},setup(t){const e=t.controller,n=ae("nav-pos"),o=qt(),a=Ft(),i=y(!1);if(e.setRouter(o),e.routeDepth){const t=ue(a,e.routeDepth);l((()=>a.fullPath),(()=>{const n=ue(a,e.routeDepth);if(t===n&&a.matched.length>e.routeDepth){if(a.matched.length===e.routeDepth+1&&(i.value=!!a.name,i.value))return;e.onRouteChange(a)}}),{immediate:!0})}return{ns:n,c:e,isPresetView:i,onViewCreated:t=>{e.onViewCreated(t)}}},render(){const{viewModals:t,state:e}=this.c,{currentKey:n,cacheKeys:o,navViewMsgs:a,cache:i}=e;let r=null;if(e.routeOpen){if(this.isPresetView)return N(Gt,null,null);r=N(b("iBizRouterView"),{manualKey:n,modal:t[n],onCreated:this.onViewCreated},{default:({Component:t})=>{const e=""!==n&&t?N(t,null,null):null;return i?N(b("keepAlive"),{include:o,max:30,isKey:!0},_e(e)?e:{default:()=>[e]}):e}})}else{const t=n&&a[n]?w(b("IBizViewShell"),{context:a[n].context,params:a[n].params,key:this.c.ignoreEmbedKey?void 0:n,viewId:a[n].viewId,onCreated:this.onViewCreated}):null;r=i?N(b("keepAlive"),{include:o,max:30,isKey:!0},_e(t)?t:{default:()=>[t]}):t}return N("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass]},[r])}});class qe{constructor(){this.component="IBizNavPos"}async createController(t,e,n){const o=new Ue(t,e,n);return await o.init(),o}}t("IBizNavPos",he(Fe,(function(t){t.component(Fe.name,Fe),ft("RAWITEM_NAV_POS",(()=>new qe))})));class Ge extends mt{constructor(){super(...arguments),this.error=null}}class We extends vt{constructor(){super(...arguments),this.unitName=void 0}get valueFormat(){return this.model.valueFormat}get dataType(){}get context(){return this.panel.context}get params(){return this.panel.params}get data(){return this.dataParent.data}get value(){return this.data[this.model.id]}createState(){var t;return new Ge(null==(t=this.parent)?void 0:t.state)}async validate(){var t;return!this.state.visible||this.model.allowEmpty||this.value?(this.state.error=null,!0):(this.state.error=(null==(t=this.editor)?void 0:t.model.placeHolder)||ibiz.i18n.t("vue3Util.panelComponent.cannotEmpty",{caption:this.model.caption}),!1)}async onInit(){var t,e;await super.onInit(),this.state.required=!this.model.allowEmpty,!0!==this.context.srfreadonly&&"true"!==this.context.srfreadonly&&(null==(t=this.model.editor)?void 0:t.readOnly)&&(this.state.readonly=(null==(e=this.model.editor)?void 0:e.readOnly)||!1),this.model.editor&&"HIDDEN"!==this.model.editor.editorType&&(this.editorProvider=await bt(this.model.editor),this.editorProvider&&(this.editor=await this.editorProvider.createController(this.model.editor,this)))}async setDataValue(t,e){const{id:n}=this.model;e=e||n,this.dataParent.setDataValue&&await this.dataParent.setDataValue(e,t),await this.validate(),this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:Ct.CHANGE})}onFocus(t){this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:Ct.FOCUS,event:t})}onBlur(t){this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:Ct.BLUR,event:t})}onEnter(t){this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:Ct.ENTER,event:t})}}t("PanelFieldController",We);const $e=D({name:"IBizPanelField",props:{modelData:{type:Object,required:!0},controller:{type:We,required:!0},attrs:{type:Object,require:!1}},setup(t){const e=ae("panel-field"),n=E((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n),e.is("error",!!t.controller.state.error)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:n,onValueChange:(e,n)=>{t.controller.setDataValue(e,n)}}},render(){let t=null;if(this.controller.data){const e={value:this.controller.value,data:this.controller.data,controller:this.controller.editor,disabled:this.controller.state.disabled,class:this.ns.b("content"),readonly:this.controller.state.readonly,onChange:this.onValueChange,onFocus:t=>this.controller.onFocus(t),onBlur:t=>this.controller.onBlur(t),onEnter:t=>this.controller.onEnter(t),...this.attrs};if(this.$slots.default)t=this.$slots.default(e);else if(this.controller.editorProvider){const n=b(this.controller.editorProvider.formEditor);t=w(n,{...e})}else t=N(b("not-supported-editor"),{modelData:this.modelData.editor},null)}return N("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[t,this.controller.state.error&&N("div",{class:this.ns.e("error")},[this.controller.state.error])])}});class Ke{constructor(){this.component="IBizPanelField"}async createController(t,e,n){const o=new We(t,e,n);return await o.init(),o}}t("IBizPanelField",he($e,(function(t){t.component($e.name,$e),ft("FIELD",(()=>new Ke))})));class He extends vt{get data(){return this.dataParent.data}async onInit(){await super.onInit()}calcDynaClass(t){var e,n;if(this.model.dynaClass||(null==(e=this.model.rawItem)?void 0:e.dynaClass)){const e=this.model.dynaClass?It(this.model.dynaClass,t):[],o=(null==(n=this.model.rawItem)?void 0:n.dynaClass)?It(this.model.rawItem.dynaClass,t):[];this.state.class.containerDyna=[...e,...o]}if(this.model.labelDynaClass){const e=It(this.model.labelDynaClass,t);this.state.class.labelDyna=e}}}t("PanelRawItemController",He);const Qe=D({name:"IBizPanelRawItem",props:{modelData:{type:Object,required:!0},controller:{type:He,required:!0}},setup(t){const e=ae("panel-rawitem"),n=t.controller,o=y(""),a=y(""),{rawItem:i}=t.modelData;i&&i.cssStyle&&(a.value=i.cssStyle);const r=E((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return l((()=>n.data),(async t=>{if(t){const e=n.model.rawItem;if(!e)return;let a;const i={...t};"RAW"===e.contentType?a=e.caption:"HTML"===e.contentType&&(a=e.content),a&&e.templateMode&&(a=await ibiz.util.hbs.render(a.replace("//n","\n"),Object.assign(i,{data:{...t}}))),o.value=a}}),{immediate:!0}),{ns:e,classArr:r,tempStyle:a,content:o}},render(){if(this.controller.state.visible)return N("div",{class:this.classArr,style:this.tempStyle,onClick:t=>{this.controller.onClick(t)}},[N(b("iBizRawItem"),{rawItem:this.modelData,content:this.content},null)])}});class Xe{constructor(){this.component="IBizPanelRawItem"}async createController(t,e,n){const o=new He(t,e,n);return await o.init(),o}}t("IBizPanelRawItem",he(Qe,(function(t){t.component(Qe.name,Qe),ft("RAWITEM",(()=>new Xe)),ft("RAWITEM_STATIC_IMAGE",(()=>new Xe)),ft("RAWITEM_STATIC_LABEL",(()=>new Xe)),ft("RAWITEM_STATIC_TEXT",(()=>new Xe))})));class Ye extends mt{constructor(){super(...arguments),this.data={}}}class Je{constructor(t,e,n,o){this.model=t,this.panel=e,this.parent=n,this.state=new Ye,this.isDataContainer=!0,this.panelItems={},this.state.data=o;const a=Pt(this.model).map((t=>t.id));o._evt.on("change",(t=>{a.includes(t)&&this.childDataChangeNotify([t])}))}get data(){return this.state.data}async validate(){return(await Promise.all(Object.values(this.panelItems).map((t=>t.validate())))).every((t=>t))}async init(){await this.initChildrenController()}async initChildrenController(t=this.model.panelItems,e=this.panel,n=this){t&&await Promise.all(t.map((async t=>{var o,a;const i=this.parent.providers[t.id];if(!i)return;const r=await i.createController(t,e,n);this.panelItems[t.id]=r,(null==(o=t.panelItems)?void 0:o.length)&&!Dt(t)?await this.initChildrenController(t.panelItems,e,r):(null==(a=t.panelTabPages)?void 0:a.length)&&await this.initChildrenController(t.panelTabPages,e,r)})))}async dataChangeNotify(t){}async childDataChangeNotify(t){Object.values(this.panelItems).forEach((e=>{e.dataChangeNotify(t)}))}async panelStateNotify(t){Object.values(this.panelItems).forEach((e=>{e.panelStateNotify(t)}))}async setDataValue(t,e){Object.prototype.hasOwnProperty.call(this.state.data,t)&&this.state.data[t]===e||(this.state.data[t]=e,this.childDataChangeNotify([t]))}destroy(){var t,e;null==(e=(t=this.data).destroy)||e.call(t),Object.values(this.panelItems).forEach((t=>{t.destroy()}))}}class Ze extends mt{constructor(){super(...arguments),this.items=[]}}t("MultiDataContainerState",Ze);class tn extends vt{constructor(){super(...arguments),this.isDataContainer=!0,this.dataItems=[],this.providers={}}get data(){return this.state.items}createState(){var t;return new Ze(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),await this.initPanelItemProviders()}async panelStateNotify(t){super.panelStateNotify(t),t===Et.LOAD&&this.initContainerData()}async initPanelItemProviders(t=this.model.panelItems){t&&await Promise.all(t.map((async t=>{var e,n;const o=await Nt(t,this.panel.model,this.panel.view.model);o&&(this.providers[t.id]=o,(null==(e=t.panelItems)?void 0:e.length)&&!Dt(t)&&await this.initPanelItemProviders(t.panelItems),(null==(n=t.panelTabPages)?void 0:n.length)&&await this.initPanelItemProviders(t.panelTabPages))})))}computeNavParams(){const{navigateContexts:t,navigateParams:e}=this.model,n=this.panel.context.clone();Object.assign(n,Ot(t,this.panel.params,this.panel.context));const o=Ot(e,this.panel.params,this.panel.context);return Object.assign(o,this.panel.params),{context:n,params:o}}initContainerData(){const{dataSourceType:t,dataName:e,scriptCode:n}=this.model;switch(t){case"DEACTION":case"DEDATASET":this.setDataByDeMethod();break;case"APPGLOBALPARAM":this.setDataByAppGlobalParam();break;case"DELOGIC":this.setDataByDeLogic();break;case"TOPVIEWSESSIONPARAM":if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.getTopView(),e);break;case"VIEWSESSIONPARAM":if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.view,e);break;case"ACTIVEDATAPARAM":if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.setData(this.dataParent.data[e]);break;case"CUSTOM":{if(!n)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredScript"));const t=rt.execScriptFn({...this.panel.getEventArgs(),data:this.dataParent.data},n,{isAsync:!1,singleRowReturn:!0});this.setData(t);break}default:throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType",{dataSourceType:t}))}}childrenStateNotify(t){this.dataItems.forEach((e=>{e.panelStateNotify(t)}))}async validate(){return(await Promise.all(this.dataItems.map((t=>t.validate())))).every((t=>t))}async setData(t){const e=Pt(this.model),n=t.map((t=>new At(e,t)));this.dataItems=n.map((t=>new Je(this.model,this.panel,this,t))),this.dataItems.length&&await Promise.all(this.dataItems.map((t=>t.init()))),this.state.items=n,this.childrenStateNotify(Et.LOAD)}async setDataByDeLogic(){const{appDataEntityId:t,appDELogicId:e}=this.model;if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic"));if(!t)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const{context:n,params:o}=this.computeNavParams(),a=await xt(e,t,n,this.panel.data,o);if(!a)throw new V(ibiz.i18n.t("vue3Util.panelComponent.noReturnValue",{appDELogicId:e}));this.setData(a)}setDataByAppGlobalParam(){const{dataName:t}=this.model,e=t?ibiz.appData[t]:ibiz.appData;e?this.setData(e):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.noAttribute",{dataName:t}))}async setDataByDeMethod(){const{appDEMethodId:t,appDataEntityId:e}=this.model;if(!t)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior"));if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const n=ibiz.hub.getApp(this.panel.context.srfappid),{context:o,params:a}=this.computeNavParams(),i=await n.deService.exec(e,t,o,void 0,a);i.ok&&i.data&&this.setData(i.data)}bindViewData(t,e){if(!Object.prototype.hasOwnProperty.call(t.state,e))return void ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.sessionView",{dataName:e}));const n=()=>{const n=t.state[e];n?this.setData(n):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute",{dataName:e}))};n(),t.evt.on("onDataChange",(()=>{n()}))}setDataValue(t,e){throw new Error(ibiz.i18n.t("vue3Util.panelComponent.noImplementMethod"))}destroy(){super.destroy(),this.dataItems.forEach((t=>{t.destroy()}))}}t("MultiDataContainerController",tn);const en=D({name:"IBizMultiDataContainer",props:{modelData:{type:Object,required:!0},controller:{type:tn,required:!0}},setup(t){const e=ae("multi-data-container"),{id:n}=t.modelData;l((()=>t.controller.state.items),(()=>{t.controller.dataItems.forEach((t=>{t.state=v(t.state);Object.keys(t.panelItems).forEach((e=>{const n=t.panelItems[e];n.state=v(n.state)}))}))}),{immediate:!0});const o=m("renderPanelItem"),a=E((()=>[e.b(),e.m(n),...t.controller.containerClass]));return{ns:e,classArr:a,renderPanelItem:o}},render(){let t;return t=this.$slots.default?this.$slots.default():this.controller.state.items.map(((t,e)=>{const n=this.controller.dataItems[e];return N(b("iBizRow"),{class:this.ns.b("content"),layout:this.modelData.layout},{default:()=>{var t;return[null==(t=this.modelData.panelItems)?void 0:t.map((t=>{let e;const o=n.panelItems[t.id];return N(b("iBizCol"),{layoutPos:t.layoutPos,state:o.state},"function"==typeof(a=e=this.renderPanelItem(t,{providers:this.controller.providers,panelItems:n.panelItems}))||"[object Object]"===Object.prototype.toString.call(a)&&!x(a)?e:{default:()=>[e]});var a}))]}})})),N("div",{class:this.classArr},[t])}});class nn{constructor(){this.component="IBizMultiDataContainer"}async createController(t,e,n){const o=new tn(t,e,n);return await o.init(),o}}t("IBizMultiDataContainer",he(en,(function(t){t.component(en.name,en),ft("CONTAINER_CONTAINER_MULTIDATA",(()=>new nn))})));class on extends mt{constructor(){super(...arguments),this.items=[]}}t("MultiDataContainerRawState",on);class an extends vt{constructor(){super(...arguments),this.isDataContainer=!0,this.panelItems={},this.providers={}}get data(){return this.state.items}createState(){var t;return new on(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),await this.initPanelItemControllers()}async panelStateNotify(t){super.panelStateNotify(t),t===Et.LOAD&&this.initContainerData()}async initPanelItemControllers(t=this.model.panelItems,e=this.panel,n=this){t&&await Promise.all(t.map((async t=>{var o,a;const i=await Nt(t,e.model,e.view.model);if(!i)return;this.providers[t.id]=i;const r=await i.createController(t,e,n);this.panelItems[t.id]=r,(null==(o=t.panelItems)?void 0:o.length)&&!Dt(t)&&await this.initPanelItemControllers(t.panelItems,e,r),(null==(a=t.panelTabPages)?void 0:a.length)&&await this.initPanelItemControllers(t.panelTabPages,e,r)})))}computeNavParams(){const{navigateContexts:t,navigateParams:e}=this.model,n=this.panel.context.clone();Object.assign(n,Ot(t,this.panel.params,this.panel.context));const o=Ot(e,this.panel.params,this.panel.context);return Object.assign(o,this.panel.params),{context:n,params:o}}initContainerData(){const{dataSourceType:t,dataName:e,scriptCode:n}=this.model;switch(t){case"DEACTION":case"DEDATASET":this.setDataByDeMethod();break;case"APPGLOBALPARAM":this.setDataByAppGlobalParam();break;case"DELOGIC":this.setDataByDeLogic();break;case"TOPVIEWSESSIONPARAM":if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.getTopView(),e);break;case"VIEWSESSIONPARAM":if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.view,e);break;case"ACTIVEDATAPARAM":if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.setData(this.dataParent.data[e]);break;case"CUSTOM":{if(!n)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredScript"));const t=rt.execScriptFn({...this.panel.getEventArgs(),data:this.dataParent.data},n,{isAsync:!1,singleRowReturn:!0});this.setData(t);break}default:throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType",{dataSourceType:t}))}}childrenStateNotify(t){Object.values(this.panelItems).forEach((e=>{e.panelStateNotify(t)}))}async setData(t){var e,n;null==(n=(e=this.data).destroy)||n.call(e),this.state.items=t,this.childrenStateNotify(Et.LOAD)}async setDataByDeLogic(){const{appDataEntityId:t,appDELogicId:e}=this.model;if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic"));if(!t)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const{context:n,params:o}=this.computeNavParams(),a=await xt(e,t,n,this.panel.data,o);if(!a)throw new V(ibiz.i18n.t("vue3Util.panelComponent.noReturnValue",{appDELogicId:e}));this.setData(a)}setDataByAppGlobalParam(){const{dataName:t}=this.model,e=t?ibiz.appData[t]:ibiz.appData;e?this.setData(e):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.noAttribute",{dataName:t}))}async setDataByDeMethod(){const{appDEMethodId:t,appDataEntityId:e}=this.model;if(!t)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior"));if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const n=ibiz.hub.getApp(this.panel.context.srfappid),{context:o,params:a}=this.computeNavParams(),i=await n.deService.exec(e,t,o,void 0,a);i.ok&&i.data&&this.setData(i.data)}bindViewData(t,e){if(!Object.prototype.hasOwnProperty.call(t.state,e))return void ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.sessionView",{dataName:e}));const n=()=>{const n=t.state[e];n?this.setData(n):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute",{dataName:e}))};n(),t.evt.on("onDataChange",(()=>{n()}))}setDataValue(t,e){throw new Error(ibiz.i18n.t("vue3Util.panelComponent.noImplementMethod"))}destroy(){var t,e;super.destroy(),null==(e=(t=this.data).destroy)||e.call(t),Object.values(this.panelItems).forEach((t=>{var e;null==(e=t.destroy)||e.call(t)}))}}t("MultiDataContainerRawController",an);const rn=D({name:"IBizMultiDataContainerRaw",props:{modelData:{type:Object,required:!0},controller:{type:an,required:!0}},setup(t){const e=ae("multi-data-container-raw"),{id:n}=t.modelData;l((()=>t.controller.state.items),(()=>{Object.keys(t.controller.panelItems).forEach((e=>{const n=t.controller.panelItems[e];n.state=v(n.state)}))}),{immediate:!0,deep:!0});const o=m("renderPanelItem"),a=E((()=>[e.b(),e.m(n),...t.controller.containerClass]));return{ns:e,classArr:a,renderPanelItem:o}},render(){let t;return t=this.$slots.default?this.$slots.default():N(b("iBizRow"),{class:this.ns.b("content"),layout:this.modelData.layout},{default:()=>{var t;return[null==(t=this.modelData.panelItems)?void 0:t.map((t=>{let e;const n=this.controller.panelItems[t.id];return N(b("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=this.renderPanelItem(t,{providers:this.controller.providers,panelItems:this.controller.panelItems}))||"[object Object]"===Object.prototype.toString.call(o)&&!x(o)?e:{default:()=>[e]});var o}))]}}),N("div",{class:this.classArr},[t])}});class sn{constructor(){this.component="IBizMultiDataContainerRaw"}async createController(t,e,n){const o=new an(t,e,n);return await o.init(),o}}t("IBizMultiDataContainerRaw",he(rn,(function(t){t.component(rn.name,rn),ft("CONTAINER_CONTAINER_MULTIDATA_RAW",(()=>new sn))})));class ln extends mt{constructor(){super(...arguments),this.data={}}}t("SingleDataContainerState",ln);class cn extends vt{constructor(){super(...arguments),this.isDataContainer=!0,this.panelItems={},this.providers={}}get data(){return this.state.data}createState(){var t;return new ln(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),await this.initPanelItemControllers()}async panelStateNotify(t){super.panelStateNotify(t),t===Et.LOAD&&this.initContainerData()}async initPanelItemControllers(t=this.model.panelItems,e=this.panel,n=this){t&&await Promise.all(t.map((async t=>{var o,a;const i=await Nt(t,e.model,e.view.model);if(!i)return;this.providers[t.id]=i;const r=await i.createController(t,e,n);this.panelItems[t.id]=r,(null==(o=t.panelItems)?void 0:o.length)&&!Dt(t)&&await this.initPanelItemControllers(t.panelItems,e,r),(null==(a=t.panelTabPages)?void 0:a.length)&&await this.initPanelItemControllers(t.panelTabPages,e,r)})))}computeNavParams(){const{navigateContexts:t,navigateParams:e}=this.model,n=this.panel.context.clone();Object.assign(n,Ot(t,this.panel.params,this.panel.context));const o=Ot(e,this.panel.params,this.panel.context);return Object.assign(o,this.panel.params),{context:n,params:o}}initContainerData(){const{dataSourceType:t,dataName:e,dataRegionType:n,scriptCode:o}=this.model;if("LOGINFORM"!==n)switch(t){case"DEACTION":case"DEDATASET":this.setDataByDeMethod();break;case"APPGLOBALPARAM":this.setDataByAppGlobalParam();break;case"DELOGIC":this.setDataByDeLogic();break;case"TOPVIEWSESSIONPARAM":if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.getTopView(),e);break;case"VIEWSESSIONPARAM":if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.view,e);break;case"ACTIVEDATAPARAM":if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.setData(this.dataParent.data[e]);break;case"CUSTOM":{if(!o)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredScript"));const t=rt.execScriptFn({...this.panel.getEventArgs(),data:this.dataParent.data},o,{isAsync:!1,singleRowReturn:!0});this.setData(t);break}default:throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType",{dataSourceType:t}))}else this.setLoginForm()}childrenStateNotify(t){Object.values(this.panelItems).forEach((e=>{e.panelStateNotify(t)}))}async setData(t){var e,n;const o=Pt(this.model),a=o.map((t=>t.id)),i=new At(o,t);i._evt.on("change",(t=>{a.includes(t)&&this.childDataChangeNotify([t])})),null==(n=(e=this.data).destroy)||n.call(e),this.state.data=i,this.childrenStateNotify(Et.LOAD)}setLoginForm(){this.setData({})}async setDataByDeLogic(){const{appDataEntityId:t,appDELogicId:e}=this.model;if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic"));if(!t)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const{context:n,params:o}=this.computeNavParams(),a=await xt(e,t,n,this.panel.data,o);if(!a)throw new V(ibiz.i18n.t("vue3Util.panelComponent.noReturnValue",{appDELogicId:e}));this.setData(a)}setDataByAppGlobalParam(){const{dataName:t}=this.model,e=t?ibiz.appData[t]:ibiz.appData;e?this.setData(e):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.noAttribute",{dataName:t}))}async setDataByDeMethod(){const{appDEMethodId:t,appDataEntityId:e}=this.model;if(!t)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior"));if(!e)throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const n=ibiz.hub.getApp(this.panel.context.srfappid),{context:o,params:a}=this.computeNavParams(),i=await n.deService.exec(e,t,o,void 0,a);i.ok&&i.data&&this.setData(i.data)}bindViewData(t,e){if(!Object.prototype.hasOwnProperty.call(t.state,e))return void ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.sessionView",{dataName:e}));const n=()=>{const n=t.state[e];n?this.setData(n):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute",{dataName:e}))};n(),t.evt.on("onDataChange",(()=>{n()}))}childDataChangeNotify(t){Object.values(this.panelItems).forEach((e=>{e.dataChangeNotify(t)}))}async setDataValue(t,e){Object.prototype.hasOwnProperty.call(this.state.data,t)&&this.state.data[t]===e||(this.state.data[t]=e)}destroy(){var t,e;super.destroy(),null==(e=(t=this.data).destroy)||e.call(t),Object.values(this.panelItems).forEach((t=>{t.destroy()}))}}t("SingleDataContainerController",cn);const dn=D({name:"IBizSingleDataContainer",props:{modelData:{type:Object,required:!0},controller:{type:cn,required:!0}},setup(t){const e=ae("single-data-container"),{id:n}=t.modelData;Object.keys(t.controller.panelItems).forEach((e=>{const n=t.controller.panelItems[e];n.state=v(n.state)}));const o=m("renderPanelItem"),a=E((()=>[e.b(),e.m(n),...t.controller.containerClass]));return{ns:e,classArr:a,renderPanelItem:o}},render(){let t;return t=this.$slots.default?this.$slots.default():N(b("iBizRow"),{class:this.ns.b("content"),layout:this.modelData.layout},{default:()=>{var t;return[null==(t=this.modelData.panelItems)?void 0:t.map((t=>{let e;const n=this.controller.panelItems[t.id];return N(b("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=this.renderPanelItem(t,{providers:this.controller.providers,panelItems:this.controller.panelItems}))||"[object Object]"===Object.prototype.toString.call(o)&&!x(o)?e:{default:()=>[e]});var o}))]}}),N("div",{class:this.classArr},[t])}});class un{constructor(){this.component="IBizSingleDataContainer"}async createController(t,e,n){const o=new cn(t,e,n);return await o.init(),o}}t("IBizSingleDataContainer",he(dn,(function(t){t.component(dn.name,dn),ft("CONTAINER_CONTAINER_SINGLEDATA",(()=>new un))})));class pn extends mt{}t("GridContainerState",pn);class hn extends vt{createState(){var t;return new pn(null==(t=this.parent)?void 0:t.state)}}function mn(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)}t("GridContainerController",hn);const vn=D({name:"IBizGridContainer",props:{modelData:{type:Object,required:!0},controller:{type:hn,required:!0}},setup(t){const e=ae("grid-container"),{id:n}=t.modelData,o=E((()=>{let o=[e.b(),e.m(n)];return o=[...o,...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)],o})),a=E((()=>({...t.modelData.layout,layout:"TABLE_12COL"}))),i=y(void 0),r=y(12);return{ns:e,classArr:o,layoutModel:a,convertLayoutPos:(t,e)=>{const n={...t,layout:"TABLE_12COL",colXS:t.grow||e,colSM:t.grow||e,colMD:t.grow||e,colLG:t.grow||e};return delete n.grow,n},adaptGrow:r,adaptCols:i}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[];if(void 0===this.adaptCols){let t=0,e=0;o.forEach((n=>{const o=n.props;o&&o.modelData&&o.modelData.layoutPos&&("number"==typeof o.modelData.layoutPos.grow?t+=o.modelData.layoutPos.grow:void 0===o.modelData.layoutPos.grow&&(e+=1))}));let n=12;e>0&&(n=(12-t)/e),this.adaptCols=e,this.adaptGrow=n}return N(b("iBizRow"),{class:this.classArr,layout:this.layoutModel},mn(n=o.map((t=>{const e=t.props;return e&&e.controller?N(b("iBizCol"),{layoutPos:this.convertLayoutPos(e.modelData.layoutPos,this.adaptGrow),state:e.controller.state},mn(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]})}});class fn{constructor(){this.component="IBizGridContainer"}async createController(t,e,n){const o=new hn(t,e,n);return await o.init(),o}}t("IBizGridContainer",he(vn,(function(t){t.component(vn.name,vn),ft("CONTAINER_CONTAINER_GRID",(()=>new fn))})));class gn extends mt{}t("PanelContainerImageState",gn);class yn extends vt{createState(){var t;return new gn(null==(t=this.parent)?void 0:t.state)}}function wn(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)}t("PanelContainerImageController",yn);const bn=D({name:"IBizPanelContainerImage",props:{modelData:{type:Object,required:!0},controller:{type:yn,required:!0}},setup(t){const e=ae("panel-container-image"),{id:n}=t.modelData,o=E((()=>{let o=[e.b(),e.m(n)];return o=[...o,...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)],o})),a=E((()=>{const e=t.controller.model.sysImage,n={};let o="";if(null==e?void 0:e.rawContent)if(_(e.rawContent)){const t=e.rawContent.replace(/[\u4e00-\u9fff]/g,"");o="url(data:image/svg+xml;base64,".concat(btoa(t),")")}else o="url(".concat(e.rawContent,")");else(null==e?void 0:e.imagePath)&&(o="url(".concat(e.imagePath,")"));return o&&Object.assign(n,{backgroundImage:o}),n}));return{ns:e,classArr:o,backgroundStyle:a}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[],a=N(b("iBizRow"),{slot:"content",layout:this.modelData.layout},wn(n=o.map((t=>{const e=t.props;return e&&e.controller?N(b("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},wn(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]});return N("div",{class:this.classArr,onClick:()=>{this.controller.onClick()},style:this.backgroundStyle},[this.controller.model.cssStyle?N("style",{type:"text/css"},[this.controller.model.cssStyle]):null,a])}});class Cn{constructor(){this.component="IBizPanelContainerImage"}async createController(t,e,n){const o=new yn(t,e,n);return await o.init(),o}}t("IBizPanelContainerImage",he(bn,(function(t){t.component(bn.name,bn),ft("CONTAINER_CONTAINER_IMAGE",(()=>new Cn))})));class In extends mt{}t("PanelContainerGroupState",In);class Pn extends vt{createState(){var t;return new In(null==(t=this.parent)?void 0:t.state)}get disableClose(){const{titleBarCloseMode:t}=this.model;return 0===t||void 0===t}get defaultExpansion(){const{titleBarCloseMode:t}=this.model;return this.disableClose||1===t}}t("PanelContainerGroupController",Pn);class Dn{constructor(){this.component="IBizPanelContainerGroup"}async createController(t,e,n){const o=new Pn(t,e,n);return await o.init(),o}}function En(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)}const Nn=D({name:"IBizPanelContainerGroup",props:{modelData:{type:Object,required:!0},controller:{type:Pn,required:!0}},setup(t){const e=ae("panel-container-group"),n=y(!t.controller.defaultExpansion);return{ns:e,captionText:E((()=>{const{captionItemName:e,caption:n,capLanguageRes:o}=t.modelData;if(e)return t.controller.data[e];let a=n;return o&&(a=ibiz.i18n.t(o.lanResTag,n)),a})),changeCollapse:()=>{t.controller.disableClose||(n.value=!n.value)},isCollapse:n}},render(){var t,e;let n;const o=[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass,this.ns.is("hidden",!this.controller.state.visible)];!0===this.modelData.showCaption&&(o.push(this.ns.m("show-header")),o.push(this.ns.b("collapse")),o.push(this.ns.is("collapse",this.isCollapse)),this.controller.disableClose&&o.push(this.ns.bm("collapse","disable-close")));const a=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[],i=N(b("iBizRow"),{slot:"content",layout:this.modelData.layout},En(n=a.map((t=>{const e=t.props;return e&&e.controller?N(b("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},En(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]});let r=null;return this.modelData.showCaption&&(r=N("div",{class:[this.ns.b("header")],onClick:this.changeCollapse},[N("div",{class:[this.ns.be("header","left")]},[N("div",{class:[this.ns.e("caption"),...this.controller.labelClass]},[this.modelData.sysImage&&N(Ie,{class:this.ns.em("caption","icon"),icon:this.modelData.sysImage},null),this.captionText])]),N("div",{class:[this.ns.be("header","right")]},[void 0!==this.modelData.titleBarCloseMode&&0!==this.modelData.titleBarCloseMode&&(this.isCollapse?N("ion-icon",{name:"caret-forward-sharp"},null):N("ion-icon",{name:"caret-down-sharp"},null))])])),N("div",{class:o},[r,N("div",{class:[this.ns.b("content")]},[i])])}});t("IBizPanelContainerGroup",he(Nn,(function(t){t.component(Nn.name,Nn),ft("CONTAINER_CONTAINER_GROUP",(()=>new Dn))})));function On(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)}const An=D({name:"IBizPanelTabPage",props:{modelData:{type:Object,required:!0},controller:{type:vt,required:!0}},setup(t){const e=ae("panel-tab-page"),n=E((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:n}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[];return N(b("iBizRow"),{class:[this.ns.b(),this.ns.m(this.modelData.codeName),this.classArr],layout:this.modelData.layout},On(n=o.map((t=>{const e=t.props;if(!e||!e.controller)return t;const n=e.controller;return N(b("iBizCol"),{layoutPos:n.model.layoutPos,state:n.state},On(t)?t:{default:()=>[t]})})))?n:{default:()=>[n]})}});class xn{constructor(){this.component="IBizPanelTabPage"}async createController(t,e,n){const o=new vt(t,e,n);return await o.init(),o}}t("IBizPanelTabPage",he(An,(function(t){t.component(An.name,An),ft("TABPAGE",(()=>new xn))})));class Sn extends vt{getPanelItemCustomHtml(t,e){if(0===t.length)return;const n=t[0];return n.layoutPanelModel?rt.execScriptFn({data:e||{}},n.layoutPanelModel,{singleRowReturn:!0,isAsync:!1}):void 0}}const Tn=D({name:"IBizPanelItemRender",props:{modelData:{type:Object,required:!0},controller:{type:Sn,required:!0}},setup(t){var e;const n=ae("panel-item-render"),o=ae("panel-".concat(null==(e=t.modelData.itemType)?void 0:e.toLowerCase())),{id:a}=t.modelData,i=E((()=>[n.b(),n.m(a),o.b(),n.is("hidden",!t.controller.state.visible)])),r=E((()=>t.controller.getPanelItemCustomHtml(t.modelData.controlRenders,t.controller.data)));return{ns:n,classArr:i,htmlCode:r}},render(){return N("div",{class:this.classArr,innerHTML:this.htmlCode},null)}});class zn{constructor(){this.component="IBizPanelItemRender"}async createController(t,e,n){const o=new Sn(t,e,n);return await o.init(),o}}t("IBizPanelItemRender",he(Tn,(function(t){t.component(Tn.name,Tn),ft("PREDEFINE_RENDER",(()=>new zn))})));const Rn=D({name:"IBizTeleportPlaceholder",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){const e=ae("teleport-placeholder"),n=y(""),{rawItem:o}=t.modelData;o&&o.cssStyle&&(n.value=o.cssStyle);const a=E((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:a,tempStyle:n}},render(){if(this.controller.state.visible)return N("div",{id:this.controller.state.teleportTag,class:this.classArr,style:this.tempStyle},null)}});class Ln extends mt{constructor(){super(...arguments),this.teleportTag=""}}class Bn extends vt{createState(){var t;return new Ln(null==(t=this.parent)?void 0:t.state)}async onInit(){var t,e;await super.onInit();const n=this.panel.view.model.codeName;let o="".concat(null==n?void 0:n.toLowerCase(),"-").concat(this.model.id);const a=null==(e=null==(t=this.model.rawItem)?void 0:t.rawItemParams)?void 0:e.find((t=>"TeleportTag"===t.key));a&&a.value&&(o=a.value),ibiz.log.debug(ibiz.i18n.t("vue3Util.panelComponent.placeholderIdentifier",{viewCodeName:n,id:this.model.id}),o),this.state.teleportTag=o}}class jn{constructor(){this.component="IBizTeleportPlaceholder"}async createController(t,e,n){const o=new Bn(t,e,n);return await o.init(),o}}t("TeleportPlaceholderProvider",jn);t("IBizTeleportPlaceholder",he(Rn,(function(t){t.component(Rn.name,Rn),ft("RAWITEM_TELEPORT_PLACEHOLDER",(()=>new jn))})));const Vn=D({name:"IBizPanelContainerTabs",props:{modelData:{type:Object,required:!0},controller:{type:De,required:!0}},setup:()=>({ns:ae("panel-container-tabs")}),render(){return w(b("IBizPanelContainer"),{...this.$props,...this.$attrs,class:this.ns.b()},this.$slots)}});class kn{constructor(){this.component="IBizPanelContainerTabs"}async createController(t,e,n){const o=new De(t,e,n);return await o.init(),o}}t("IBizPanelContainerTabs",he(Vn,(function(t){t.component(Vn.name,Vn),ft("CONTAINER_TABS",(()=>new kn))})));const Mn=D({name:"IBizPanelCtrlViewPageCaption",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){const e=ae("panel-ctrl-view-page-caption"),n=E((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:n}},render(){let t=null;return this.controller.data&&(t=N("span",{class:this.ns.b("content")},[this.controller.state.caption])),N("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[t])}});class Un extends vt{async onInit(){await super.onInit(),this.state.caption=this.panel.view.model.caption||"",this.panel.view.evt.on("onViewInfoChange",(({caption:t,dataInfo:e})=>{this.state.caption="".concat(this.panel.view.model.caption).concat(e?"-".concat(e):"")}))}}class _n{constructor(){this.component="IBizPanelCtrlViewPageCaption"}async createController(t,e,n){const o=new Un(t,e,n);return await o.init(),o}}t("IBizPanelCtrlViewPageCaption",he(Mn,(function(t){t.component(Mn.name,Mn),ft("CTRLPOS_VIEW_PAGECAPTION",(()=>new _n))})));const Fn=D({name:"IBizAuthWxmpQrcode",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){const e=ae("auth-wxmp-qrcode"),{state:n}=t.controller,o=Ft();t.controller.setRouter(o);const a=async()=>{await t.controller.loadQrcode()};return l((()=>n.visible),(()=>{var t;n.visible&&(n.keepAlive&&!(null==(t=n.qrcode)?void 0:t.expirein)||!n.keepAlive)&&a()}),{immediate:!0}),P((()=>{t.controller.destroy()})),{ns:e,loadQrcode:a}},render(){var t,e;return N("div",{class:this.ns.b()},[N("div",{class:this.ns.e("content")},[this.controller.state.qrcode&&N("img",{class:this.ns.e("qrcode"),src:null==(t=this.controller.state.qrcode)?void 0:t.url},null),!(null==(e=this.controller.state.qrcode)?void 0:e.expirein)&&N("div",{class:this.ns.e("mask")},[N("ion-icon",{title:ibiz.i18n.t("vue3Util.panelComponent.refresh"),name:"reload-outline",onClick:this.loadQrcode,class:this.ns.em("mask","icon")},null)])]),N("div",{class:this.ns.e("caption")},[this.controller.state.tips])])}});class qn extends mt{}class Gn extends vt{constructor(){super(...arguments),this.pollingTime=2,this.rawItemParams={}}createState(){var t;return new qn(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),this.handleRawItemParams(),this.initParams()}setRouter(t){this.route=t}handleRawItemParams(){var t;let e={};const n=null==(t=this.model.rawItem)?void 0:t.rawItemParams;a(n)&&(e=n.reduce(((t,e)=>(t[e.key.toLowerCase()]=e.value,t)),{})),Object.assign(this.rawItemParams,e)}initParams(){var t;this.pollingTime=(t=this.rawItemParams.pollingtime)&&isFinite(Number(t))?Number(this.rawItemParams.pollingtime):2,this.state.tips=this.model.caption||ibiz.i18n.t("vue3Util.panelComponent.wxQrcodeCaption")}async loadQrcode(){try{const t=await ibiz.net.get("/uaa/open/wxmp/createqrcode",{},{srfdcsystem:ibiz.env.dcSystem});t.ok&&t.data&&(this.state.qrcode=t.data,this.setTimer())}catch(t){ibiz.log.error(t.message)}}setTimer(){this.expirationTimer=setInterval((()=>{this.state.qrcode&&this.state.qrcode.expirein>0?this.state.qrcode.expirein-=1:clearInterval(this.expirationTimer)}),1e3),this.pollingTimer=setInterval((async()=>{await this.pollingLogin()}),1e3*this.pollingTime)}async pollingLogin(){try{if(this.state.qrcode&&this.state.qrcode.expirein>0){if(this.state.visible){const t=await ibiz.net.get("/uaa/open/wxmp/qrcode/".concat(this.state.qrcode.ticket),{},{srfdcsystem:ibiz.env.dcSystem}),{data:e,ok:n}=t;if(n&&(null==e?void 0:e.token)){clearInterval(this.pollingTimer);const t=30;$(K.TOKEN_REMEMBER,"1",t),$(K.TOKEN,e.token,t);const n=(new Date).getTime()+1e3*(e.expirein||7199);$(K.TOKEN_EXPIRES,"".concat(n),t),e.refresh_token&&$(K.REFRESH_TOKEN,e.refresh_token,t),H(K.IS_ANONYMOUS);const o=this.route.query.ru||"/";window.location.hash=o||"/",window.history.pushState({},""),window.location.reload()}}}else clearInterval(this.pollingTimer)}catch(t){ibiz.log.error(t.message)}}async destroy(){await super.destroy(),this.pollingTimer&&(clearInterval(this.pollingTimer),this.pollingTimer=void 0),this.expirationTimer&&(clearInterval(this.expirationTimer),this.expirationTimer=void 0)}}class Wn{constructor(){this.component="IBizAuthWxmpQrcode"}async createController(t,e,n){const o=new Gn(t,e,n);return await o.init(),o}}t("IBizAuthWxmpQrcode",he(Fn,(function(t){t.component(Fn.name,Fn),ft("RAWITEM_AUTH_WXMP_QRCODE",(()=>new Wn))}))),t("AppRedirectView",D({setup(){var t;const e=q.create((null==(t=ibiz.appData)?void 0:t.context)||{});P((()=>{e.destroy()}));const{href:n}=window.location;I((()=>ibiz.util.hiddenAppLoading())),async function(){await St(e,n)}()},render:()=>N("div",null,[ibiz.i18n.t("vue3Util.view.redirectionProgress")])}));class $n{constructor(){this.component="IBizView"}}const Kn=D({name:"IBizView",props:{context:{type:Object},params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object},provider:{type:Object}},setup(t,{slots:e}){const n=ae("view"),o=we(((...t)=>new st(...t)));be(o);const a=Tt(o.model),i=[],r=new Map,s=[];a.forEach((t=>{const{teleportFlag:e,teleportTag:n}=zt(t);n||e?(i.push(t),r.set(t.id,n||"")):s.push(t)}));const{viewType:l,sysCss:c,codeName:d}=o.model,u=l.toLowerCase(),p=null==c?void 0:c.cssName,h=E((()=>[n.b(),n.b(u),n.m(d),p,o.state.viewMessages.TOP?"has-top-message":"",o.state.viewMessages.BOTTOM?"has-bottom-message":"",o.state.presetClassList])),m=(t,e={})=>{const n=t.name||t.id;return{context:o.context,params:o.params,modelData:t,...o.slotProps[n]||{},...e}};return{c:o,ns:n,controls:s,teleportControls:i,viewClassNames:h,onLayoutPanelCreated:t=>{o.setLayoutPanel(t)},getCtrlProps:m,renderControl:(t,n={})=>{const a=t.name||t.id,i=m(t,n);if(e[a])return T(e,a,i);const r=o.providers[a],s=b((null==r?void 0:r.component)||"IBizControlShell");return r&&(i.provider=r),w(s,i)},getCtrlTeleportTag:t=>{var e,n;const a=r.get(t.id);if(a)return a;const i=null==(n=null==(e=o.parentView)?void 0:e.layoutPanel)?void 0:n.panelItems[t.name];return i?"#".concat(i.state.teleportTag):void 0},getControlStyle:()=>{const t={};return Object.assign(t,{display:o.state.hasError?"none":"initial"}),t}}},render(){var t,e;let n=null;if(this.c.state.isCreated)if(0===this.c.engines.length)n=N("span",{style:"color:red;"},[ibiz.i18n.t("vue3Util.view.viewType",{viewType:this.modelData.viewType})]);else{const e={...this.$slots};(null==(t=this.controls)?void 0:t.length)&&this.controls.forEach((t=>{const n=t.name||t.id;e[n]=e=>this.renderControl(t,e)}));const o=this.c.model.viewLayoutPanel,a=this.c.providers[o.name];n=w(b(a.component),{modelData:o,context:this.c.context,params:this.c.params,provider:a,container:this.c,style:this.getControlStyle(),onControllerAppear:this.onLayoutPanelCreated},e)}let o=null;this.c.state.isCreated&&(null==(e=this.teleportControls)?void 0:e.length)&&(o=this.teleportControls.map((t=>{let e;const n=this.getCtrlTeleportTag(t);return n?N("div",{style:this.getControlStyle()},[N(S,{to:n,disabled:!this.c.state.activated},(o=e=this.renderControl(t),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!x(o)?e:{default:()=>[e]}))]):(ibiz.log.error(ibiz.i18n.t("vue3Util.view.noTeleportTag",{name:t.name})),null);var o})));let a=null;if(this.c.state.hasError&&this.c.error.status){const t=ct(this.c.error.status);t&&("string"==typeof t.component&&(a=w(b(t.component))),a=w(t.component))}return O(N("div",{class:this.viewClassNames,id:this.c.id},[n,o,a]),[[A("loading"),this.c.state.isLoading]])}});class Hn{constructor(){this.component="IBizView"}createController(t,e,n,o){return new Rt(t,e,n,o)}}t("IBizView",he(Kn,(function(t){t.component(Kn.name,Kn),Lt("DEFAULT",(()=>new $n)),Lt("APPDATAUPLOADVIEW",(()=>new Hn))}))),t("TodoRedirect",D({setup(){const t=qt(),{href:e}=window.location,n=e.lastIndexOf("?"),o=decodeURIComponent(e.substring(n+1,e.length));if(!o)throw new Error(ibiz.i18n.t("vue3Util.view.insufficientRedirection"));const a=Wt.parse(o,{delimiter:";"}),{apptype:i,todotype:r,todoid:s}=a,l={srfapptype:"pc",srfapp:""};i||(l.todourltype="RouterUrl"),async function(){let e=(await ibiz.net.post("/systodos/".concat(s,"/getlinkurl"),l)).data.linkurl;i?window.location.href=e:(0!==e.indexOf("/")&&(e="/".concat(e)),e+=";srfwf=".concat(r),t.push("/index".concat(e)))}()},render:()=>N("div",null,[ibiz.i18n.t("vue3Util.view.toDoList")])}));class Qn{constructor(){this.component="IBizPortalView"}}const Xn=D({name:"IBizPortalView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object}},setup(){var t;const e=ae("view"),n=we(((...t)=>new st(...t))),o=(null==(t=n.model.viewLayoutPanel)?void 0:t.controls)||n.model.controls,{viewType:a,sysCss:i,codeName:r}=n.model,s=a.toLowerCase(),l=null==i?void 0:i.cssName,c=[e.b(),e.b(s),e.m(r),l];return{c:n,ns:e,controls:o,viewClassNames:c}},render(){var t;let e=null;if(this.c.state.isCreated){const n={...this.$slots};(null==(t=this.controls)?void 0:t.length)&&this.controls.forEach((t=>{const e=t.name||t.id,o={context:this.c.context,params:this.c.params};this.c.slotProps[e]&&Object.assign(o,this.c.slotProps[e]);const a=n[e];if(a)return void(n[e]=()=>a({modelData:t,...o}));const i=this.c.providers[e];i&&(n[e]=()=>{const e=b(i.component);return w(e,{modelData:t,...o,provider:i})})})),n.dashboard&&(e=n.dashboard())}return N("div",{class:this.viewClassNames},[e])}}),Yn=(t("IBizPortalView",he(Xn,(function(t){t.component(Xn.name,Xn),Lt(nt.APP_PORTAL_VIEW,(()=>new Qn)),Lt(nt.DE_PORTAL_VIEW,(()=>new Qn)),Lt(nt.DE_PORTAL_VIEW9,(()=>new Qn))}))),D({name:"IBizDeRedirectView",props:{context:{type:Object,required:!0},params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},isEmbedCtrlNav:{type:Boolean,default:!1}},setup(t){const e=we(((...t)=>new st(...t))),n=y(),o=y(),a=y();return e.evt.on("onCreated",(()=>{Bt(h(t.modelData),h(e.context),h(e.params)).then((async t=>{if("view"!==t.type)throw new V(ibiz.i18n.t("vue3Util.view.embeddedRedirectionView"));n.value=t.viewId,o.value=t.context,a.value=t.params}))})),t.isEmbedCtrlNav&&l((()=>[e.context,e.params]),(()=>{Bt(h(t.modelData),h(e.context),h(e.params)).then((async t=>{"view"===t.type&&(n.value=t.viewId,o.value=t.context)}))}),{deep:!0}),{c:e,toViewId:n,toViewContext:o,toViewParams:a}},render(){return this.toViewId?w(b("IBizViewShell"),{context:this.toViewContext,params:this.toViewParams,viewId:this.toViewId,...this.$attrs},this.$slots):O(N("div",{style:"width: 100%; height: 100%;"},null),[[A("loading"),!this.toViewId]])}}));class Jn{constructor(){this.component="IBizDeRedirectView"}}t("IBizDeRedirectView",he(Yn,(function(t){t.component(Yn.name,Yn);const e=new Jn;Lt(nt.DE_REDIRECT_VIEW,(()=>e))})));class Zn{constructor(){this.component="IBizHtmlView"}}const to=D({name:"IBizHtmlView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object}},setup(){var t;const e=ae("view"),n=we(((...t)=>new st(...t))),o=(null==(t=n.model.viewLayoutPanel)?void 0:t.controls)||n.model.controls,{viewType:a,sysCss:i,codeName:r}=n.model,s=a.toLowerCase(),l=null==i?void 0:i.cssName,c=[e.b(),e.b(s),e.m(r),l],d=y(!1),u=E((()=>{const{htmlUrl:t}=n.model;return t?Q.fill(t,n.context,n.params):""}));z((()=>{u.value&&(d.value=!0)}));return{c:n,ns:e,controls:o,viewClassNames:c,url:u,isLoading:d,onLoad:()=>{d.value=!1}}},render(){if(this.url)return O(N("div",{class:this.viewClassNames},[N("iframe",{src:this.url,onLoad:()=>this.onLoad()},null)]),[[A("loading"),this.isLoading]]);let t=null;const e=ct("404");return e&&("string"==typeof e.component&&(t=w(b(e.component))),t=w(e.component)),N("div",{class:this.viewClassNames},[t])}});t("IBizHtmlView",he(to,(function(t){t.component(to.name,to),Lt(nt.DE_HTML_VIEW,(()=>new Zn))})));function eo(t,e){var n;const o={};return null==(n=t.controlAttributes)||n.forEach((t=>{t.attrName&&t.attrValue&&(o[t.attrName]=rt.execSingleLine(t.attrValue,{...e.panel.getEventArgs(),data:e.data}))})),o}const no=D({name:"IBizViewLayoutPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},container:{type:Object},data:{type:Object}},setup(t,{slots:e}){const n=ne(((...e)=>new jt(...e,t.container))),o=ae("control-".concat(n.model.controlType.toLowerCase()));l((()=>t.data),(t=>{t&&(n.setInputData(t),n.load())}),{immediate:!0}),n.evt.on("onCreated",(()=>{Object.keys(n.panelItems).forEach((t=>{const e=n.panelItems[t];e.state=v(e.state)}))}));const a=(t,o)=>{var i,r;if(t.hidden)return null;const{providers:s,panelItems:l}=o||n,c=s[t.id];if(!c)return N("div",null,[ibiz.i18n.t("vue3Util.control.unsupportedPanel",{id:t.id,itemType:t.itemType})]);if("CTRLPOS"!==t.itemType&&e[t.id])return T(e,t.id,{model:t,data:n.data,value:n.data[t.id]});const d=b(c.component);let u;if("CTRLPOS"===t.itemType&&e[t.id]){const n=l[t.id];u=n.parent&&Vt(n.parent.model)?()=>e[t.id]({isSimple:!0,data:n.data}):()=>e[t.id]()}else"TABPANEL"===t.itemType&&(null==(i=t.panelTabPages)?void 0:i.length)?u=()=>t.panelTabPages.map((t=>a(t,o))):Dt(t)?u=void 0:(null==(r=t.panelItems)?void 0:r.length)&&(u=()=>t.panelItems.map((t=>a(t,o))));let p="";t.cssStyle&&(p=t.cssStyle);const h=l[t.id];return w(d,{modelData:t,controller:h,key:t.id,style:p,attrs:eo(t,h)},u)};return C("renderPanelItem",a),{c:n,ns:o,renderPanelItem:a}},render(){const{state:t,model:e}=this.c;return N(b("iBizControlBase"),{controller:this.c},{default:()=>[N(b("iBizRow"),{class:this.ns.b("content"),layout:{layout:"FLEX"}},{default:()=>{var n;return[t.isCreated&&(this.$slots.default?this.$slots.default({panelItems:this.c.panelItems}):null==(n=e.rootPanelItems)?void 0:n.map((t=>{let e;const n=this.c.panelItems[t.id];return t.layoutPos.layout="FLEX",N(b("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=this.renderPanelItem(t))||"[object Object]"===Object.prototype.toString.call(o)&&!x(o)?e:{default:()=>[e]});var o})))]}})]})}});class oo{constructor(){this.component="IBizViewLayoutPanelControl"}}t("IBizViewLayoutPanelControl",he(no,(function(t){t.component(no.name,no),kt(Mt.VIEW_LAYOUT_PANEL,(()=>new oo))})));function ao(t,e){var n;const o={};return null==(n=t.controlAttributes)||n.forEach((t=>{t.attrName&&t.attrValue&&(o[t.attrName]=rt.execSingleLine(t.attrValue,{...e.panel.getEventArgs(),data:e.data}))})),o}function io(t,e,n){var o,a;if(t.hidden)return;const{providers:i,panelItems:r}=e,s=i[t.id];if(!s)return N("div",null,[ibiz.i18n.t("vue3Util.control.unsupportedPanel",{id:t.id,itemType:t.itemType})]);const l=b(s.component);let c;"CTRLPOS"===t.itemType&&n.$slots[t.id]?c=()=>n.$slots[t.id]():"TABPANEL"===t.itemType&&(null==(o=t.panelTabPages)?void 0:o.length)?c=()=>t.panelTabPages.map((t=>io(t,e,n))):Dt(t)?c=void 0:(null==(a=t.panelItems)?void 0:a.length)&&(c=()=>t.panelItems.map((t=>io(t,e,n))));let d="";t.cssStyle&&(d=t.cssStyle);const u=r[t.id];return w(l,{modelData:t,controller:u,key:t.id,style:d,attrs:ao(t,u)},c)}const ro=D({name:"IBizPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},container:{type:Object},data:{type:Object},loadDefault:{type:Boolean,default:!0}},setup(t){const e=ne(((...e)=>new Ut(...e,t.container))),n=ae("control-".concat(e.model.controlType.toLowerCase()));l((()=>t.data),(t=>{t&&(e.setInputData(t),e.load())}),{immediate:!0}),e.evt.on("onCreated",(()=>{Object.keys(e.panelItems).forEach((t=>{const n=e.panelItems[t];n.state=v(n.state)}))}));const o=m("renderPanelItem");return C("renderPanelItem",o||io),{c:e,ns:n}},render(){const{state:t,model:e}=this.c;return N(b("iBizControlBase"),{controller:this.c},{default:()=>[N(b("iBizRow"),{class:this.ns.b("content"),layout:{layout:"FLEX"}},{default:()=>{var n;return[t.isCreated&&(this.$slots.default?this.$slots.default({panelItems:this.c.panelItems}):null==(n=e.rootPanelItems)?void 0:n.map((t=>{let e;const n=this.c.panelItems[t.id];return t.layoutPos.layout="FLEX",N(b("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=io(t,this.c,this))||"[object Object]"===Object.prototype.toString.call(o)&&!x(o)?e:{default:()=>[e]});var o})))]}})]})}});class so{constructor(){this.component="IBizPanelControl"}}t("IBizPanelControl",he(ro,(function(t){t.component(ro.name,ro),kt(Mt.PANEL,(()=>new so))})));function lo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function co(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function uo(t,e){for(var n,o="",a=0,i=-1,r=0,s=0;s<=t.length;++s){if(s<t.length)n=t.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(i===s-1||1===r);else if(i!==s-1&&2===r){if(o.length<2||2!==a||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){var l=o.lastIndexOf("/");if(l!==o.length-1){-1===l?(o="",a=0):a=(o=o.slice(0,l)).length-1-o.lastIndexOf("/"),i=s,r=0;continue}}else if(2===o.length||1===o.length){o="",a=0,i=s,r=0;continue}e&&(o.length>0?o+="/..":o="..",a=2)}else o.length>0?o+="/"+t.slice(i+1,s):o=t.slice(i+1,s),a=s-i-1;i=s,r=0}else 46===n&&-1!==r?++r:r=-1}return o}var po={resolve:function(){for(var t,e="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var a;o>=0?a=arguments[o]:(void 0===t&&(t=process.cwd()),a=t),co(a),0!==a.length&&(e=a+"/"+e,n=47===a.charCodeAt(0))}return e=uo(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(t){if(co(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return 0!==(t=uo(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return co(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];co(n),n.length>0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":po.normalize(t)},relative:function(t,e){if(co(t),co(e),t===e)return"";if((t=po.resolve(t))===(e=po.resolve(e)))return"";for(var n=1;n<t.length&&47===t.charCodeAt(n);++n);for(var o=t.length,a=o-n,i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var r=e.length-i,s=a<r?a:r,l=-1,c=0;c<=s;++c){if(c===s){if(r>s){if(47===e.charCodeAt(i+c))return e.slice(i+c+1);if(0===c)return e.slice(i+c)}else a>s&&(47===t.charCodeAt(n+c)?l=c:0===c&&(l=0));break}var d=t.charCodeAt(n+c);if(d!==e.charCodeAt(i+c))break;47===d&&(l=c)}var u="";for(c=n+l+1;c<=o;++c)c!==o&&47!==t.charCodeAt(c)||(0===u.length?u+="..":u+="/..");return u.length>0?u+e.slice(i+l):(i+=l,47===e.charCodeAt(i)&&++i,e.slice(i))},_makeLong:function(t){return t},dirname:function(t){if(co(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,o=-1,a=!0,i=t.length-1;i>=1;--i)if(47===(e=t.charCodeAt(i))){if(!a){o=i;break}}else a=!1;return-1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');co(t);var n,o=0,a=-1,i=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var r=e.length-1,s=-1;for(n=t.length-1;n>=0;--n){var l=t.charCodeAt(n);if(47===l){if(!i){o=n+1;break}}else-1===s&&(i=!1,s=n+1),r>=0&&(l===e.charCodeAt(r)?-1==--r&&(a=n):(r=-1,a=s))}return o===a?a=s:-1===a&&(a=t.length),t.slice(o,a)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!i){o=n+1;break}}else-1===a&&(i=!1,a=n+1);return-1===a?"":t.slice(o,a)},extname:function(t){co(t);for(var e=-1,n=0,o=-1,a=!0,i=0,r=t.length-1;r>=0;--r){var s=t.charCodeAt(r);if(47!==s)-1===o&&(a=!1,o=r+1),46===s?-1===e?e=r:1!==i&&(i=1):-1!==e&&(i=-1);else if(!a){n=r+1;break}}return-1===e||-1===o||0===i||1===i&&e===o-1&&e===n+1?"":t.slice(e,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var n=e.dir||e.root,o=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+o:n+t+o:o}("/",t)},parse:function(t){co(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,o=t.charCodeAt(0),a=47===o;a?(e.root="/",n=1):n=0;for(var i=-1,r=0,s=-1,l=!0,c=t.length-1,d=0;c>=n;--c)if(47!==(o=t.charCodeAt(c)))-1===s&&(l=!1,s=c+1),46===o?-1===i?i=c:1!==d&&(d=1):-1!==i&&(d=-1);else if(!l){r=c+1;break}return-1===i||-1===s||0===d||1===d&&i===s-1&&i===r+1?-1!==s&&(e.base=e.name=0===r&&a?t.slice(1,s):t.slice(r,s)):(0===r&&a?(e.name=t.slice(1,i),e.base=t.slice(1,s)):(e.name=t.slice(r,i),e.base=t.slice(r,s)),e.ext=t.slice(i,s)),r>0?e.dir=t.slice(0,r-1):a&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};po.posix=po;var ho=po,mo=lo(ho);t("PluginFactory",class{constructor(){this.urlReg=/^http[s]?:\/\/[^\s]*/,this.cache=new Map,this.pluginCache=new Map,this.pluginCodes=[],this.predefinedPlugins=new Map,this.ignoreRules=[],this.loadQueue=new Map}isIgnore(t){return this.ignoreRules.some((e=>"string"==typeof e?t===e:e.test(t)))}setDevIgnore(t){this.ignoreRules.push(t)}registerPredefinedPlugin(t){this.predefinedPlugins.set(t.name,t)}register(t){this.pluginCodes.forEach((e=>{t.use(e)}))}async loadPredefinedPlugin(t){if(this.predefinedPlugins.has(t)){const e=this.predefinedPlugins.get(t);e&&await this.loadPluginRef(e.name,e.path)}}setPluginCode(t){this.pluginCodes.push(t),Qt.useComponent.callSync(null,t)}async loadPlugin(t,e=ibiz.env.appId){if(!0===t.runtimeObject){const n=t;if(n){const t=n.rtobjectName,o=n.rtobjectRepo;if(this.isIgnore(o))return!0;if(this.pluginCache.has(t))return!0;if(this.loadQueue.has(o)){const t=await this.loadQueue.get(o);try{return await t}catch(t){return!1}}try{const t=this.loadPluginRef(n.rtobjectName,n.rtobjectRepo,e);this.loadQueue.set(o,t);return await t}catch(t){throw new W(n,ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad"))}finally{this.loadQueue.delete(o)}}}return!1}async loadPluginRef(t,e,n=ibiz.env.appId){if(this.isIgnore(e))return!0;if(this.pluginCache.has(t))return!0;let o=null;{const t=e,a=this.urlReg.test(t)?"".concat(t,"/package.json"):"".concat("FULLCODE"===ibiz.env.runContainer&&n!==ibiz.env.appId?ibiz.hub.microAppConfigCenter.getPluginBaseUrl(n):ibiz.env.pluginBaseUrl,"/").concat(ho.join(t,"package.json")),i=await ibiz.net.axios({method:"get",headers:{"Access-Control-Allow-Origin":"*"},url:a});if(200!==i.status)throw new Error(ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad"));o=i.data}Object.assign(o,{appId:n});const a=new _t(t,e,o);if(a){await this.loadPluginExternal(a.config);try{return await this.loadScript(a),this.pluginCache.set(t,a),!0}catch(t){ibiz.log.error(t)}}return!1}async loadScript(t){const e=t.repo,{name:n,appId:o,system:a,styles:i=[]}=t.config;let r="";if(r=ho.join(e,a),r){if(this.cache.has(r))return;const t="FULLCODE"===ibiz.env.runContainer&&o!==ibiz.env.appId?ibiz.hub.microAppConfigCenter.getPluginBaseUrl(o):ibiz.env.pluginBaseUrl;let a=null;const s=this.parseUrl(r,t),l=("string"==typeof i?[i]:i).map((n=>this.parseUrl(mo.join(e,n),t)));if(System.addImportMap({imports:{[n]:s},styles:{[n]:l}}),a=await System.import(n),!a)throw new V(ibiz.i18n.t("vue3Util.plugin.fileContentFormat"));if(!a.default)throw new V(ibiz.i18n.t("vue3Util.plugin.failedRemotePluginLoad"));this.setPluginCode(a.default),this.cache.set(r,!0)}}parseUrl(t,e=ibiz.env.pluginBaseUrl){if(this.urlReg.test(t))return t;let n="";n=this.urlReg.test(e)?t.startsWith("/")?e+t:"".concat(e,"/").concat(t):"".concat(ho.join(e,t));const{origin:o,pathname:a}=window.location;return a.endsWith("/")&&n.startsWith("/")&&(n=n.substring(1)),!1===this.urlReg.test(n)&&(n="".concat(o).concat(a).concat(n)),n}async loadPluginExternal(t){if(!t["systemjs-importmap"])return;const e=this.handleSystemImportMap(t["systemjs-importmap"],t.appId);if(e.packages){const n=e.packages;for(const e in n){const o=n[e],a=await ibiz.net.axios({method:"get",headers:{"Access-Control-Allow-Origin":"*"},url:o});if(200!==a.status)throw new Error(ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad"));const i=a.data;Object.assign(i,{appId:t.appId}),await this.loadPluginExternal(i)}}System.addImportMap(e)}handleSystemImportMap(t,e){if(t){if(t.baseUrl||"FULLCODE"!==ibiz.env.runContainer||e===ibiz.env.appId||(t.baseUrl=ibiz.hub.microAppConfigCenter.getPluginBaseUrl(e)),t.packages){const e=t.packages;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];e[n]=this.parseUrl(o,t.baseUrl)}}if(t.imports){const e=t.imports;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];e[n]=this.parseUrl(o,t.baseUrl)}}if(t.styles){const e=t.styles;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];e[n]="string"==typeof o?this.parseUrl(o,t.baseUrl):o.map((e=>this.parseUrl(e,t.baseUrl)))}}return t}return null}});class vo{constructor(t,e,n){this.required=!0,e&&(this.default=e),n&&(this.validator=n),this.type=t}}function fo(){return{value:String,controller:new vo(Object),data:new vo(Object),disabled:{type:Boolean},readonly:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},overflowMode:{type:String},controlParams:{type:Object,required:!1}}}function go(){return{change:(t,e,n)=>!0,blur:t=>!0,focus:t=>!0,enter:t=>!0,infoTextChange:t=>!0}}function yo(){return{hasError:{type:Boolean}}}function wo(){return{...fo(),value:[String,Number]}}function bo(){return{...fo(),value:[String,Number,Object,Array]}}function Co(){return{...fo(),value:[String,Number]}}function Io(){return{...fo(),value:[String,Number]}}function Po(){return{...fo(),value:[String,Number]}}function Do(){return{...fo(),value:[String,Array,Object,Number]}}function Eo(){return{...fo(),value:[String,Number]}}function No(){return{...fo(),value:[String,Number]}}function Oo(){return{...fo(),value:{type:Object}}}function Ao(){return{...fo(),value:[String,Number]}}function xo(){return{...fo(),value:[String,Number]}}function So(){return{...fo(),value:[String,Number]}}function To(){return{...fo(),value:[String,Number]}}function zo(){return{...fo(),value:[String,Number,Array]}}function Ro(){return{...fo(),value:[String,Number]}}function Lo(){return{...fo(),value:[String,Number]}}function Bo(){return{...fo(),value:[String,Number]}}function jo(){return{...fo(),value:String}}function Vo(){return{...fo(),value:[String,Number]}}function ko(){return{...fo(),value:String,language:{type:String},theme:{type:String}}}function Mo(){return{...fo(),value:String}}function Uo(){return{...fo(),data:{type:Object,required:!1},controller:{type:Object,required:!1},disabled:{type:Boolean,required:!1}}}function _o(){return{...fo(),value:[Array,Array]}}function Fo(){return{...fo(),value:String}}function qo(){return{...fo(),value:String}}function Go(){return{...fo(),value:String}}function Wo(){return{...fo(),value:Number}}function $o(){return{...fo(),value:String}}t("RequiredProp",vo);t("en",{vue3Util:{common:{undefined:"undefined",onFoundCorrespondingPart:"Undefined adapter with no corresponding part found",noFoundViewModel:"View model not found",noSupportLoadingDynamic:"{codeName}No entity, do not support loading dynamic models at this time"},control:{unsupportedPanel:"Unsupported panel items: {id} - {itemType}"},panelComponent:{noConfiguardDataObject:"No data object name config",noSupportedDataSourceType:"The data source type {dataSourceType} is not supported",noConfiguredEntityLogic:"No entity logic config",noConfiguredEntity:"No entity config",noReturnValue:"The entity logic {appDELogicId} has no return value",noAttribute:"There is no {dataName} attribute in the global variable.",noConfiguredScript:"No javaScript config",noConfiguerdEntityBehanior:"No entity behavior config",sessionView:"The session to which the view is bound does not exist {dataName}",viewStateAttribute:"There is no {dataName} attribute in the view state",noImplementMethod:"Method not implemented.",noProvidedSlot:"No {id} slot provided",cannotEmpty:"{caption} cannot be empty",unadaptedLayout:"Unadapted layout placeholder {layoutPos}",placeholderIdentifier:"The placeholder identifier for panel member {id} of view {viewCodeName} is:",refresh:"Refresh",wxQrcodeCaption:"Please use wechat to scan the QR code to log in"},plugin:{failureConfigurationLoad:"Configuration load failure",failedRemotePluginLoad:"Remote Plugin failed to load, Remote Plugin did not find [default] Default Export",fileContentFormat:"Remote plugin failed to load, file not found or file content format is incorrect"},use:{control:{parameterChanges:"Context or view parameter changes for {id}:",stateChange:"Part [{name}] state change"},focusBlur:{noFocus:"No focus, no out-of-focus triggering"},view:{stateChange:"View [{name}] state change"}},util:{noInjected:"The createVueApp method is not injected.",convertString:"Failed to convert to string",viewIdentifiers:"View identifiers do not exist for {depth} level routes",noFoundView:"View not found {viewCodeName}",routeCorrectly:"Cannot get the route correctly, could be a dependency issue."},view:{redirectionProgress:"Redirection in progress",viewType:"View type {viewType} is not supported yet.",noTeleportTag:"No teleportTag was found for part {name}.",embeddedRedirectionView:"Embedded redirection view does not support url jumping",insufficientRedirection:"Insufficient redirection parameters to jump",toDoList:"To-Do List Redirection"}}}),t("zhCn",{vue3Util:{common:{undefined:"未定义",onFoundCorrespondingPart:"未定义未找到对应部件的适配器",noFoundViewModel:"未找到视图模型",noSupportLoadingDynamic:"{codeName}无实体,暂不支持加载动态模型"},control:{unsupportedPanel:"暂未支持的面板项: {id} - {itemType}"},panelComponent:{noConfiguardDataObject:"没有配置数据对象名称",noSupportedDataSourceType:"数据源类型{dataSourceType}暂未支持",noConfiguredEntityLogic:"没有配置实体逻辑",noConfiguredEntity:"没有配置实体",noReturnValue:"实体逻辑{appDELogicId}没有返回值",noAttribute:"全局变量里没有{dataName}属性",noConfiguredScript:"没有配置脚本代码",noConfiguerdEntityBehanior:"没有配置实体行为",sessionView:"绑定视图的会话不存在{dataName}",viewStateAttribute:"视图state里没有{dataName}属性",noImplementMethod:"未执行的方法",noProvidedSlot:"未提供{id}插槽",cannotEmpty:"{caption} 不能为空",unadaptedLayout:"未适配的布局占位{layoutPos}",placeholderIdentifier:"视图{viewCodeName}的面板成员{id}的占位标识是:",refresh:"刷新",wxQrcodeCaption:"请使用微信扫描二维码登录"},plugin:{failureConfigurationLoad:"配置加载失败",failedRemotePluginLoad:"远程插件加载失败, 远程插件未找到[default]默认导出",fileContentFormat:"远程插件加载失败, 未找到文件或文件内容格式不正确"},use:{control:{parameterChanges:"{id}的上下文或视图参数变更:",stateChange:"部件 [{name}] state 变更"},focusBlur:{noFocus:"没有聚焦,不触发失焦"},view:{stateChange:"视图 [{name}] state 变更"}},util:{noInjected:"没有注入createVueApp方法",convertString:"转换成字符串失败",viewIdentifiers:"第{depth}级路由不存在视图标识",noFoundView:"找不到视图{viewCodeName}",routeCorrectly:"无法正确获取route,可能是依赖问题"},view:{redirectionProgress:"重定向跳转中",viewType:"视图类型{viewType}暂未支持",noTeleportTag:"没有找到部件{name}的teleportTag",embeddedRedirectionView:"嵌入重定向视图不支持url跳转",insufficientRedirection:"重定向参数不足无法跳转",toDoList:"待办列表重定向"}}})}}}));
|
|
1
|
+
System.register(["qx-util","vue","@ibiz-template/core","ramda","@ibiz-template/runtime","vue-router","qs","pinia","lodash-es"],(function(t){"use strict";var e,n,o,a,i,r,s,l,c,d,u,p,h,m,v,f,g,y,w,b,C,I,P,D,E,N,A,O,x,T,S,z,R,L,B,j,V,k,M,U,_,F,q,G,W,$,K,H,Q,X,Y,J,Z,tt,et,nt,ot,at,it,rt,st,lt,ct,dt,ut,pt,ht,mt,vt,ft,gt,yt,wt,bt,Ct,It,Pt,Dt,Et,Nt,At,Ot,xt,Tt,St,zt,Rt,Lt,Bt,jt,Vt,kt,Mt,Ut,_t,Ft,qt,Gt,Wt,$t,Kt,Ht,Qt,Xt;return{setters:[function(t){e=t.SyncSeriesHook,n=t.AsyncSeriesHook,o=t.isFunc,a=t.notNilEmpty,i=t.QXEvent,r=t.clearAll,s=t.createUUID},function(t){l=t.watch,c=t.onBeforeUnmount,d=t.createCommentVNode,u=t.getCurrentInstance,p=t.isReactive,h=t.toRaw,m=t.inject,v=t.reactive,f=t.onActivated,g=t.onDeactivated,y=t.ref,w=t.h,b=t.resolveComponent,C=t.provide,I=t.onMounted,P=t.onUnmounted,D=t.defineComponent,E=t.computed,N=t.createVNode,A=t.withDirectives,O=t.resolveDirective,x=t.mergeProps,T=t.isVNode,S=t.Teleport,z=t.renderSlot,R=t.onBeforeMount},function(t){L=t.onClickOutside,B=t.NOOP,j=t.listenJSEvent,V=t.Namespace,k=t.RuntimeError,M=t.isBase64Image,U=t.isBase64,_=t.base64ToStr,F=t.isSvg,q=t.fixJsonString,G=t.IBizContext,W=t.ModelError,$=t.RuntimeModelError,K=t.setAppCookie,H=t.CoreConst,Q=t.clearAppCookie,X=t.StringUtil},function(t){Y=t.isNil,J=t.isNotNil,Z=t.clone,tt=t.isEmpty,et=t.mergeLeft},function(t){nt=t.MDControlTypes,ot=t.ViewType,at=t.RouteConst,it=t.getMatchResPath,rt=t.calcDeCodeNameById,st=t.PredefinedControlRender,lt=t.ScriptFactory,ct=t.ViewController,dt=t.getControlProvider,ut=t.getErrorViewProvider,pt=t.calcDynaSysParams,ht=t.getViewProvider,mt=t.useCalcOrMode,vt=t.calcThresholdRange,ft=t.PanelItemState,gt=t.PanelItemController,yt=t.registerPanelItemProvider,wt=t.Modal,bt=t.ViewMode,Ct=t.OpenAppViewCommand,It=t.getEditorProvider,Pt=t.PanelItemEventName,Dt=t.calcDynaClass,Et=t.getAllPanelField,Nt=t.isDataContainer,At=t.PanelNotifyState,Ot=t.getPanelItemProvider,xt=t.convertNavData,Tt=t.PanelData,St=t.execDELogicById,zt=t.toLocalOpenWFRedirectView,Rt=t.getControlsByView,Lt=t.getCtrlTeleportParams,Bt=t.AppDataUploadViewController,jt=t.registerViewProvider,Vt=t.getDERedirectToView,kt=t.ViewLayoutPanelController,Mt=t.isSimpleDataContainer,Ut=t.registerControlProvider,_t=t.ControlType,Ft=t.PanelController,qt=t.RemotePluginItem},function(t){Gt=t.useRoute,Wt=t.useRouter,$t=t.RouterView},function(t){Kt=t.default},function(t){Ht=t.defineStore,Qt=t.createPinia},function(t){Xt=t.isNumber}],execute:function(){t({calcResRoutePath:pe,createOverlayView:ge,generateRoutePath:async function(t,e,n,o){const a=se(e);let i=n.srfdefaulttoroutedepth||2;n.toRouteDepth?(i=n.toRouteDepth,n.toRouteDepth=void 0):ibiz.env.isMob&&"DEFAULT"===ibiz.env.mobMenuShowMode&&(a.pathNodes[0]={viewName:"home"});if(a.pathNodes.splice(i-1,a.pathNodes.length-i+1),n.currentSrfNav){const t=a.pathNodes[a.pathNodes.length-1];t.params=t.params||{},t.srfnav=n.currentSrfNav,n.currentSrfNav=void 0}de(n,a.pathNodes),e.fullPath.startsWith("/appredirectview")&&((null==o?void 0:o.srfindexname)?(a.pathNodes[0].viewName=o.srfindexname,delete o.srfindexname):a.pathNodes[0].viewName="index");if(a.pathNodes.push({viewName:t.codeName.toLowerCase(),context:ce(n),params:o}),2===i&&(await pe(a,n,t.appDataEntityId,t.appId),ue.includes(t.viewType))){const e=rt(t.appDataEntityId);delete a.pathNodes[0].context[e]}return{path:le(a)}},generateRoutePathByModal:async function(t,e,n,o){const a=se(e),i=a.pathNodes.findIndex((t=>t.viewName===at.ROUTE_MODAL_TAG));-1!==i&&(a.pathNodes=a.pathNodes.slice(0,i));if(n.currentSrfNav){const t=a.pathNodes[a.pathNodes.length-1];t.params=t.params||{},t.srfnav=n.currentSrfNav,n.currentSrfNav=void 0}return de(n,a.pathNodes),a.pathNodes.push({viewName:"".concat(at.ROUTE_MODAL_TAG,"/").concat(t.codeName.toLowerCase()),context:ce(n),params:o}),{path:le(a)}},getArrayProps:_o,getAutoCompleteProps:Vo,getCascaderProps:Fo,getCheckboxListProps:Io,getCheckboxProps:Po,getCodeProps:ko,getColorPickerProps:qo,getDataPickerProps:Do,getDatePickerProps:Eo,getDateRangeProps:No,getDateRangeSelectEmits:function(){return{change:(t,e,n)=>!0,blur:t=>!0,focus:t=>!0,enter:t=>!0,infoTextChange:t=>!0,change:(t,e,n)=>!0}},getDateRangeSelectProps:Ao,getDrawerPlacement:function(t){return ye[t]||"right"},getDropdownProps:Co,getEditorEmits:go,getEditorProps:fo,getGridArrayProps:function(){return{..._o(),...yo()}},getGridAutoCompleteProps:function(){return{...Vo(),...yo()}},getGridCascaderProps:function(){return{...Fo(),...yo()}},getGridCheckboxListProps:function(){return{...Io(),...yo()}},getGridCheckboxProps:function(){return{...Po(),...yo()}},getGridCodeProps:function(){return{...ko(),...yo()}},getGridColorPickerProps:function(){return{...qo(),...yo()}},getGridDataPickerProps:function(){return{...Do(),...yo()}},getGridDatePickerProps:function(){return{...Eo(),...yo()}},getGridDateRangeProps:function(){return{...No(),...yo()}},getGridDateRangeSelectProps:function(){return{...yo(),...Ao()}},getGridDropdownProps:function(){return{...Co(),...yo()}},getGridEditorCommonProps:yo,getGridEditorEmits:function(){return{change:(t,e,n)=>!0,rowSave:()=>!0}},getGridHtmlProps:function(){return{...Mo(),...yo()}},getGridInputIpProps:function(){return{...Go(),...yo()}},getGridInputNumberProps:function(){return{...Wo(),...yo()}},getGridInputProps:function(){return{...wo(),...yo()}},getGridListBoxProps:function(){return{...Oo(),...yo()}},getGridMapPickerProps:function(){return{...$o(),...yo()}},getGridMarkDownProps:function(){return{...Uo(),...yo()}},getGridNumberRangeProps:function(){return{...xo(),...yo()}},getGridRadioProps:function(){return{...To(),...yo()}},getGridRateProps:function(){return{...So(),...yo()}},getGridRawProps:function(){return{...zo(),...yo()}},getGridSliderProps:function(){return{...Ro(),...yo()}},getGridSpanProps:function(){return{...bo(),...yo()}},getGridStepperProps:function(){return{...Lo(),...yo()}},getGridSwitchProps:function(){return{...Bo(),...yo()}},getGridUploadProps:function(){return{...jo(),...yo()}},getHtmlProps:Mo,getInputIpProps:Go,getInputNumberProps:Wo,getInputProps:wo,getListBoxProps:Oo,getMapPickerProps:$o,getMarkDownProps:Uo,getNestedRoutePath:he,getNumberRangeProps:xo,getOrigin:te,getOwnRouteContext:ce,getRadioProps:To,getRateProps:So,getRawProps:zo,getSliderProps:Ro,getSpanProps:bo,getStepperProps:Lo,getSwitchProps:Bo,getUploadProps:jo,isEmptyVNode:function(t){if(!Array.isArray(t))return t===ne;return 1===t.length&&t[0]===ne},onRouteChange:function(t,e){const n=Gt();if(!n)throw new k(ibiz.i18n.t("vue3Util.util.routeCorrectly"));l((()=>null==n?void 0:n.path),(()=>{const o=he(n,e);t({currentKey:o,fullPath:n.fullPath})}),{immediate:!0})},openViewDrawer:async function(t,e){const n=ibiz.overlay.createDrawer(ge(t),void 0,e);await n.present();return await n.onWillDismiss()||{ok:!1}},openViewFloatWindow:async function(t,e){const n=ibiz.overlay.createFloatWindow(ge(t),void 0,e);n.present();return await n.onWillDismiss()||{ok:!1}},openViewModal:async function(t,e){const n=ibiz.overlay.createModal(ge(t),void 0,e);n.present();return await n.onWillDismiss()||{ok:!1}},openViewPopover:async function(t,e,n){const o=ibiz.overlay.createPopover(ge(e),void 0,n);o.present(t.target);return await o.onWillDismiss()||{ok:!1}},parseRouteViewData:async function(t,e,n=!1){var o;const i=se(t,n);let r=i.pathNodes[e-1].viewName;if(!r)throw new k(ibiz.i18n.t("vue3Util.util.viewIdentifiers",{depth:e}));r===at.ROUTE_MODAL_TAG&&(r=i.pathNodes[e].viewName);"index"===r&&(r=ibiz.hub.defaultAppIndexViewName);const s=await ibiz.hub.config.view.get(r);if(!s)throw new k(ibiz.i18n.t("vue3Util.util.noFoundView",{viewCodeName:r}));const l={};(null==(o=ibiz.appData)?void 0:o.context)&&Object.assign(l,ibiz.appData.context);i.appContext&&Object.assign(l,i.appContext);if(1!==e)for(let t=0;t<e;t++){const n=i.pathNodes[t];a(n.context)&&Object.assign(l,n.context),t!==e-1||n.context&&!Y(n.context.srfnavctrlid)||delete l.srfnavctrlid}const{params:c,srfnav:d}=i.pathNodes[e-1];return{viewConfig:s,context:l,params:c,srfnav:d}},prepareControl:function(t){const e=re("control"),{controlType:n,sysCss:o,codeName:a}=t.model,i=n.toLowerCase(),r=null==o?void 0:o.cssName,s=re("control-".concat(i)),l=[e.b(),e.b(i),e.m(a)];r&&l.push(r);return{controlClass:l,ns:s}},renderString:function(t){if(Y(t))return"";if("string"==typeof t)return t;if("object"==typeof t)return JSON.stringify(t);try{return t.toString()}catch(e){ibiz.log.error(t,ibiz.i18n.t("vue3Util.util.convertString"),e)}return""},route2routePath:se,routePath2string:le,shareCommonAncestor:Pe,useAutoFocusBlur:function(t,e){return{useInFocusAndBlur:()=>{t.autoFocus||e("blur")},useInValueChange:()=>{t.autoFocus&&e("blur")}}},useClickOutside:Jt,useCodeListListen:function(t,e,n){let o;I((async()=>{if(t){const a=await ibiz.hub.getApp(e);o=await a.codeList.getCodeListInstance(t),o&&o.onChange(n)}})),P((()=>{o&&o.offChange(n)}))},useControlController:ae,useController:function(t){t.force=ee()},useCtx:oe,useEventListener:ie,useFocusAndBlur:function(t,e){const n=y(),o=y(!1);let a;const i=()=>{o.value||ibiz.log.debug(ibiz.i18n.t("vue3Util.use.focusBlur.noFocus")),e(),a.stop(),o.value=!1};return ie(n,"click",(e=>{o.value||(a=Jt(n,(()=>{i()})),o.value=!0,t())}),{capture:!0}),{componentRef:n,isFocus:o,doBlur:i,pause:()=>{a&&a.pause()},stop:()=>{a&&a.stop()}}},useForce:ee,useForceTogether:function(t,e){const n=e.force,o=ee();e.force=t=>{n(t),o()}},useLocalCacheKey:function(t,e,n,o="@"){const a=Wt();return()=>{if(!a)return;const i=t.srfuserid,r=se(a.currentRoute.value);if(n=t.srfdefaulttoroutedepth||n,i&&n&&r.pathNodes[n-2]){r.pathNodes=r.pathNodes.slice(0,n-1),r.pathNodes.forEach((t=>{t.context&&delete t.context.srfnavctrlid}));const t=le(r);return"".concat(e).concat(o).concat(i).concat(o).concat(t)}}},useMobCtx:function(){return m("ctx")},useNamespace:re,usePopoverVisible:function(t,e){let n;const o=y(!1);return l((()=>t.value),(a=>{a&&!n&&(n=j(window,"click",(n=>{if(o.value&&t.value){Pe(e(t.value),n.target)&&(o.value=!1)}}),{capture:!0}))}),{immediate:!0}),P((()=>{null==n||n()})),{popoverVisible:o,setPopoverVisible:t=>{o.value=t}}},usePopoverzIndex:function(){const t="popover_".concat(s());return{popoverid:t,setPopoverZIndex:e=>{const{zIndex:n}=be(),o=document.getElementsByClassName(t),a=n.increment();if(o&&o.length>0&&e)for(let t=0;t<o.length;t++)o[t].style.setProperty(e,"".concat(a))}}},useProps:Zt,usePropsWatch:function(t,e,n){const o=Zt();Object.prototype.hasOwnProperty.call(o,t)&&(l((()=>o[t]),((t,n)=>{e(te(t),te(n))}),n),e(te(o[t]),void 0))},useRouteKey:function(t,e,n){n||(n=y(""));n.value=t.value;const o=new me(e);return l(t,((t,e)=>{t!==e&&o.nextChange((()=>{n.value=t}))})),n},useRouterQuery:function(){const t=Gt(),{query:e}=t;return e},useViewController:Ce,useViewOperation:Ie});class Yt{}function Jt(t,e,n={}){let o=B,a=B,i=B;const r=()=>{o(),o=B,a=B,i=B};return l(t,((t,s)=>{if(t!==s)if(Y(t))r();else{const r=L((null==t?void 0:t.$el)||t,e,n);o=r.stop,a=r.pause,i=r.proceed}}),{immediate:!0}),c((()=>{o!==B&&r()})),{stop:()=>o(),pause:()=>a(),proceed:()=>i()}}function Zt(){return u().proxy.$props}function te(t){return p(t)?h(t):t}function ee(){const t=u().proxy;return e=>{t.$forceUpdate(),e&&o(e)&&t.$nextTick((()=>{e()}))}}t("AppHooks",Yt),Yt.createApp=new e,Yt.useComponent=new e,Yt.appResorceInited=new n,Yt.beforeInitApp=new n,Yt.authedApp=new n,Yt.initedApp=new n,Yt.destoryApp=new n;const ne=t("EmptyVNode",d("EmptyVNode"));function oe(){return m("ctx")}function ae(t,e){const n=oe(),o=Zt();n.evt.emit("onForecast",o.modelData.name);const a=o.provider;let i;i=(null==a?void 0:a.createController)?a.createController(o.modelData,o.context,o.params,n):t(o.modelData,o.context,o.params,n),-1!==nt.indexOf(i.model.controlType)&&ibiz.util.record.add(i.ctrlId,i),function(t,e){l((()=>({context:t.context,params:t.params})),((t,n)=>{if(t===n)return;const o={...t};t.context===n.context&&delete o.context,t.params===n.params&&delete o.params,e.updateContextParams(o),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.control.parameterChanges",{id:e.model.id}),t)}))}(o,i),function(t,e,n=[]){const o=["context","params","modelData",...n];l((()=>{const e={};return Object.keys(t).forEach((n=>{o.includes(n)||(e[n]=t[n])})),e}),((t,n)=>{const o={};Object.keys(t).forEach((e=>{t[e]!==(n||{})[e]&&(o[e]=t[e])})),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.control.stateChange",{name:e.model.name}),o),Object.keys(o).forEach((t=>{void 0!==o[t]&&(e.state[t]=o[t])}))}),{immediate:!0})}(o,i,null==e?void 0:e.excludePropsKeys),i.state=v(i.state),f((()=>i.onActivated())),g((()=>i.onDeactivated())),i.force=ee();const r=u().proxy;return i.evt.onAll(((t,e)=>{r.$emit(t.slice(2),e)})),r.$emit("controllerAppear",i),i.created(),c((()=>{i.destroyed(),-1!==nt.indexOf(i.model.controlType)&&ibiz.util.record.remove(i.ctrlId)})),i}function ie(t,e,n,o={}){let a=B;return l(t,((t,i)=>{t!==i&&(Y(t)?(a(),a=B):a=j((null==t?void 0:t.$el)||t,e,n,o))}),{immediate:!0}),c((()=>{a!==B&&a()})),()=>{a()}}function re(t){return new V(t,ibiz.env.namespace)}function se(t,e=!1){const n=t.matched.length;let o=t.path;e&&(o=o.replace(new RegExp("/".concat(at.ROUTE_MODAL_TAG),"g"),""));const a=o.split("/"),i=[];for(let e=1;e<=n;e++){const n=a[2*e],o=t.params["params".concat(e)];let r,s,l;r=o&&o!==ibiz.env.routePlaceholder?Kt.parse(o,{strictNullHandling:!0,delimiter:";",depth:8}):void 0,r&&(1===e?(s=r,r=void 0):(r.srfnavctx&&(s=JSON.parse(r.srfnavctx),delete r.srfnavctx),r.srfnav&&(l=r.srfnav,delete r.srfnav))),i.push({viewName:n,context:s,params:r,srfnav:l})}let r;return t.params.appContext&&t.params.appContext!==ibiz.env.routePlaceholder&&(r=Kt.parse(t.params.appContext,{strictNullHandling:!0,delimiter:";"})),{appContext:r,pathNodes:i}}function le(t){let e="";return t.appContext?e+="/".concat(Kt.stringify(t.appContext,{delimiter:";",strictNullHandling:!0})):e+="/".concat(ibiz.env.routePlaceholder),t.pathNodes.forEach(((t,n)=>{e+="/".concat(t.viewName,"/");let o={};if(0===n)a(t.context)&&(o=t.context);else{if(o=a(t.params)?t.params:{},a(t.context)){const e=JSON.stringify(t.context);"{}"!==e&&(o.srfnavctx=encodeURIComponent(e))}t.srfnav&&(o.srfnav=t.srfnav)}const i=Kt.stringify(o,{delimiter:";",strictNullHandling:!0,skipNulls:!0});a(i)?e+=i:e+=ibiz.env.routePlaceholder})),e}function ce(t){const e=t.getOwnContext(),n=["srfsessionid","srfappid","currentSrfNav","toRouteDepth"];if(e.attributekeys){const n=e.attributekeys.split("|");n&&n.length>0&&n.forEach((n=>{J(t[n])&&(e[n]=t[n])})),delete e.attributekeys}return Object.keys(e).forEach((t=>{(n.includes(t)||Y(e[t]))&&delete e[t]})),e}function de(t,e){let n=-1;e&&e.length>0&&(n=e.findIndex((t=>{var e;return!0===(null==(e=t.context)?void 0:e.srfreadonly)}))),t.srfreadonly&&!t.getOwnContext().srfreadonly&&-1===n&&(t.srfreadonly=!0)}const ue=t("excludeViewTypes",[ot.DE_GRID_VIEW,ot.DE_GRID_EXP_VIEW,ot.DE_LIST_VIEW,ot.DE_LIST_EXP_VIEW,ot.DE_DATA_VIEW,ot.DE_DATAVIEW_EXP_VIEW,ot.DE_CALENDAR_VIEW,ot.DE_CALENDAR_EXP_VIEW,ot.DE_CHART_VIEW,ot.DE_CHART_EXP_VIEW,ot.DE_KANBAN_VIEW]);async function pe(t,e,n,o){if(n){const a=await ibiz.hub.getAppDataEntity(n,o);let i=it(e,a);if(i||(i={path:"",keys:[a.codeName.toLowerCase()]}),i){const n=t.pathNodes[1].context,o={};i.keys.forEach((t=>{e&&Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t],n&&delete n[t])})),t.pathNodes[0].context=o}}else t.pathNodes[0].context=void 0}function he(t,e,n=!0){if(t.matched.length<e)return"";if(t.matched.length===e&&t.name)return t.path;const o=se(t);if(o.pathNodes.length<e)return t.path;o.pathNodes.length>e&&(o.pathNodes=o.pathNodes.slice(0,e));const a=o.pathNodes[e-1];return n&&delete a.srfnav,a.context&&delete a.context.srfnavctrlid,le(o)}class me{constructor(t,e){this.callbacks=[],this.timers=[],this.wait=500,e&&(this.wait=e),l((()=>t.path),((t,e)=>{if(t!==e){if(this.callbacks.length)for(let t=0;t<this.callbacks.length;t++){(0,this.callbacks[t])()}if(this.callbacks=[],this.timers.length)for(let t=0;t<this.timers.length;t++){const e=this.timers[t];clearTimeout(e)}this.timers=[]}}))}nextChange(t){t&&(this.timers.push(setTimeout((()=>{t();const e=this.callbacks.findIndex((e=>e===t));this.callbacks.splice(e,1)}),this.wait)),this.callbacks.push(t))}}t("RouteListener",me);const ve=t("withInstall",((t,e)=>(t.install=t=>{e(t)},t)));t("hasEmptyPanelRenderer",(t=>{const e=null==t?void 0:t.model.controlRenders;return!(!e||0===e.length)&&!!e.find((t=>t.id===st.EMPTYPANEL))}));class fe{constructor(t,e,n){this.component=t,this.render=e,this.opts=n,this.evt=new i,this.init()}static createVueApp(t,e){throw new k(ibiz.i18n.t("vue3Util.util.noInjected"))}init(){const t=this,{render:e,opts:n}=this,o=document.createElement("div");document.body.appendChild(o);const a=fe.createVueApp({mounted(){t.modal=this.$refs.root},unmounted(){document.body.removeChild(o),t.evt.emit("dismiss",t.result)},render:()=>w(t.component,{ref:"root",opts:n,onDismiss(e){t.result=e,a.unmount()}},{default:e})});ibiz.plugin.register(a),a.mount(o),this.vm=a}async present(){return this.modal.present()}async dismiss(t){await this.modal.dismiss(t)}async onWillDismiss(){return new Promise((t=>{const e=n=>{t(n),this.evt.off("dismiss",e)};this.evt.on("dismiss",e)}))}}t("OverlayContainer",fe);function ge(t){return e=>{const n=b("IBizViewShell");return w(n,{...t,modal:e})}}t("OverlayPopoverContainer",class extends fe{present(t){return this.modal.present(t)}});const ye={DRAWER_LEFT:"left",DRAWER_RIGHT:"right",DRAWER_TOP:"top",DRAWER_BOTTOM:"bottom"};class we{constructor(t,e){this.from=t,this.to=e,this.isActivated=!1,ibiz.log.debug("openRouter: ",t,e)}onWillDismiss(){return this.promise||(this.promise=new Promise((t=>{this.resolve=t}))),this.promise.then((t=>(ibiz.log.debug("onWillDismiss: ",this.from,this.to,t),t)))}close(t){ibiz.log.debug("closeRouter: ",this.from,this.to,t),this.resolve&&(this.resolve(t),this.resolve=void 0)}active(){ibiz.log.debug("activeRouter: ",this.from,this.to),this.isActivated=!0}destroy(){ibiz.log.debug("destroyRouter: ",this.from,this.to),this.resolve&&(this.resolve({ok:!1}),this.resolve=void 0)}}t("routerCallback",new class{constructor(){this.map=new Map}async open(t,e,n={}){const o=t.currentRoute.value.fullPath;n.replace?t.replace({path:e}):t.push({path:e});const a=e;if(this.map.has(a)){return this.map.get(a).onWillDismiss()}const i=new we(o,a);return this.map.set(a,i),this.scheduledDestruction(i),i.onWillDismiss()}close(t,e){const n=this.map.get(t);n&&(window.clearTimeout(n.timeout),n.timeout=void 0,n.close(e),this.map.delete(t))}active(t){const e=this.map.get(t);e&&(window.clearTimeout(e.timeout),e.timeout=void 0,e.active())}scheduledDestruction(t){t.timeout=window.setTimeout((()=>{t.timeout=void 0,t.destroy(),this.map.delete(t.to)}),6e5)}}),t("useAppStore",Ht("appStore",(()=>({appStore:v({})}))));const be=t("useUIStore",Ht("uiStore",(()=>{const t=function(){const t=y(500);return{zIndex:t,increment:function(){return t.value+=1,t.value},decrement:function(){t.value-=1}}}(),e=()=>ibiz.util.theme.getTheme().includes("dark")?"dark":"light",n=v({zIndex:t.zIndex,theme:e()});return ibiz.util.theme.evt.on("onChange",(()=>{n.theme=e()})),{UIStore:n,zIndex:t}})));t("piniaInstance",Qt());function Ce(t){const e=Zt(),n=m("ctx",void 0);null==n||n.evt.emit("onForecast",e.modelData.name);const o=e.provider;let a;a=(null==o?void 0:o.createController)?o.createController(e.modelData,e.context,e.params,n):t(e.modelData,e.context,e.params,n),ibiz.util.viewStack.add(a.id,a),function(t,e){l((()=>({context:t.context,params:t.params})),(t=>{e.context.reset({},t.context),r(e.params),Object.assign(e.params,t.params),e.handleContextParams(),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.control.parameterChanges",{id:e.model.id}),t)}))}(e,a),function(t,e){l((()=>t.state?{...t.state}:{}),((t,n)=>{const o={};Object.keys(t).forEach((e=>{t[e]!==(n||{})[e]&&(o[e]=t[e])})),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.view.stateChange",{name:e.model.name}),o),Object.keys(o).forEach((t=>{e.state[t]=o[t]}))}),{immediate:!0})}(e,a),C("ctx",a.ctx),a.state=v(a.state),a.slotProps=v(a.slotProps),e.modal&&(a.modal=e.modal),f((()=>{a.onActivated(),ibiz.util.viewStack.active(a.id)})),g((()=>{a.onDeactivated(),ibiz.util.viewStack.deactivate(a.id)})),a.force=ee();const i=u().proxy;return a.evt.onAll(((t,e)=>{i.$emit(t.slice(2),e)})),a.created(),c((()=>{a.destroyed(),ibiz.util.viewStack.remove(a.id)})),a}function Ie(t){let e=[];I((()=>{const n=document.getElementById(t.id);n&&(e=["keydown","click"].map((e=>j(n,e,(e=>{t.setOperateState("MANUAL")}),{once:!0,capture:!0}))))})),P((()=>{e&&e.length>0&&e.forEach((t=>{t()}))}))}function Pe(t,e){if(!t||!e)return!1;if(t===e)return!0;const n=new Set;let o=t;for(;o;){n.add(o);const t=o.parentNode;o=!t||"BODY"!==t.nodeName&&"HTML"!==t.nodeName?t:null}for(o=e;o;){if(n.has(o))return!0;o=o.parentNode}return!1}const De=t("IBizIcon",D({name:"IBizIcon",props:{icon:{type:Object},size:{type:String},baseDir:{type:String,default:"images"}},setup(t){const e=re("icon"),n="".concat(ibiz.env.assetsUrl,"/").concat(t.baseDir,"/");const o=E((()=>function(t){if(t){if(t.htmlStr)return N("span",{class:e.b(),innerHTML:t.htmlStr},null);if(t.cssClass)return-1!==t.cssClass.indexOf("fa-")||-1!==t.cssClass.indexOf("theme-icon")?N("i",{class:[e.b(),t.cssClass]},null):N("ion-icon",{class:e.b(),name:t.cssClass},null);if(t.imagePath)return M(t.imagePath)?N("img",{class:e.b(),src:t.imagePath},null):U(t.imagePath)?N("div",{class:[e.b(),e.e("emoji")]},[_(t.imagePath)]):F(t.imagePath)?N("div",{class:e.b(),innerHTML:t.imagePath},null):t.imagePath.endsWith("svg")?t.imagePath.startsWith("http")?N("img",{class:e.b(),src:t.imagePath},null):N("ion-icon",{src:n+t.imagePath,class:e.b()},null):t.imagePath.startsWith("http")?N("img",{class:e.b(),src:t.imagePath},null):N("img",{class:e.b(),src:n+t.imagePath},null);if(t.rawContent)return F(t.rawContent)?N("div",{class:e.b(),innerHTML:t.rawContent},null):N("img",{class:e.b(),src:t.rawContent},null)}return null}(t.icon)));return()=>o.value}}));t("IBizRouterView",D({name:"IBizRouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object,manualKey:{type:String}},setup(t,{attrs:e}){const n={};let o=!0;l((()=>t.manualKey),((t,e)=>{J(t)&&t!==e&&(o=!0)}));return{renderComp:(a,i)=>{if(!o)return n.vNode;if(o=!1,a){const o={...a.props};delete o.onVnodeUnmounted,delete o.ref;const i=w(a.type,{...o,...e,key:t.manualKey});return n.vNode=i,i}}}},render(){return N(b("router-view"),{name:this.name,route:this.route},{default:({Component:t,route:e})=>{const n=this.renderComp(t,e);return this.$slots.default?this.$slots.default({Component:n,route:e}):n}})}})),t("IBizControlBase",D({name:"IBizControlBase",props:{controller:{type:Object,required:!0}},setup(t){const e=re("control"),{controlType:n,sysCss:o,codeName:a}=t.controller.model,i=n.toLowerCase(),r=null==o?void 0:o.cssName,s=t.controller.model,l=t.controller.model.controls,c=v({});!1===s.controlType.endsWith("EXPBAR")&&(Y(s.width)||(s.width>0&&s.width<=1?c.width="".concat(100*s.width,"%"):c.width="".concat(s.width,"px")),Y(s.height)||(s.height>0&&s.height<=1?c.width="".concat(100*s.height,"%"):c.height="".concat(s.height,"px")));const d=async(e,n)=>{e.stopPropagation();const o=e.target.getAttribute(n),a=e.target.getAttribute("data"),i=t.controller.context.clone(),r=e.target.getAttribute("context");r&&Object.assign(i,q(r));const s={...t.controller.params},l=e.target.getAttribute("params");l&&Object.assign(s,q(l)),o&&await lt.asyncExecScriptFn({...t.controller.getEventArgs(),context:i,params:s,data:a?q(a):null},o)},u=E((()=>(n=>{var o,a;const i=s.controlRenders?s.controlRenders.filter((t=>!Object.values(st).includes(t.id))):void 0;if(!i||0===i.length)return;const r=i[0];if("LAYOUTPANEL_MODEL"===r.renderType&&r.layoutPanelModel){const a=lt.execScriptFn({...t.controller.getEventArgs(),data:n},r.layoutPanelModel,{isAsync:!1});return N("div",{innerHTML:a,onClick:t=>d(t,"click"),onDblclick:t=>d(t,"dbclick"),class:[e.e("control-render"),e.e(null==(o=r.renderName)?void 0:o.toLowerCase())]},null)}return"LAYOUTPANEL"===r.renderType&&r.layoutPanel?N(b("iBizControlShell"),{class:[e.e("control-render"),e.e(null==(a=r.renderName)?void 0:a.toLowerCase())],data:n,params:t.controller.params,context:t.controller.context,modelData:r.layoutPanel},null):void 0})(t.controller.data||t.controller.items)));return{ns:e,typeClass:i,sysCssName:r,inlineStyle:c,codeName:a,controls:l,customRender:u,disableMaskInfoRender:()=>{const n=s.controlRenders?s.controlRenders.find((t=>t.id===st.DISABLEPANEL)):void 0;if(!n)return N("div",{innerHTML:t.controller.state.maskOption.maskInfo||"",class:[e.e("disable-mask-text")]},null);if("LAYOUTPANEL_MODEL"===n.renderType&&n.layoutPanelModel){const o=lt.execScriptFn({...t.controller.getEventArgs()},n.layoutPanelModel,{isAsync:!1,singleRowReturn:!0});return N("div",{innerHTML:o,class:[e.e("disable-mask-text")]},null)}return"LAYOUTPANEL"===n.renderType&&n.layoutPanel?N(b("iBizControlShell"),{class:[e.e("disable-mask-text")],data:{},params:t.controller.params,context:t.controller.context,modelData:n.layoutPanel},null):void 0},onLayoutPanelCreated:e=>{t.controller.setLayoutPanel(e)}}},render(){var t,e,n;const{state:o,controlPanel:a,providers:i}=this.controller;let r=null;if(o.isCreated&&a){const e={...this.$slots};(null==(t=this.controls)?void 0:t.length)&&this.controls.forEach((t=>{const n=t.name,o={context:this.controller.context,params:this.controller.params},a=e[n];e[n]=a?()=>a(o):()=>{const e=b("IBizControlShell");return w(e,{modelData:t,...o})}}));const n=i[a.name];r=w(b(n.component),{modelData:a,context:this.controller.context,params:this.controller.params,provider:n,container:this.controller,onControllerAppear:this.onLayoutPanelCreated},e)}return N("div",{class:[this.ns.b(),this.ns.b(this.typeClass),this.ns.m(this.codeName),this.sysCssName,this.ns.is("disabled",o.disabled)],style:this.inlineStyle},[r||this.customRender||(null==(n=(e=this.$slots).default)?void 0:n.call(e)),o.disabled&&N("div",{class:[this.ns.e("mask-container"),this.ns.m(o.maskOption.mode.toLowerCase())]},["MASK"===o.maskOption.mode&&this.disableMaskInfoRender()])])}})),t("IBizControlShell",D({name:"IBizControlShell",props:{modelData:{type:Object,required:!0}},setup(t){const e=m("ctx");if(e)e.evt.emit("onForecast",t.modelData.name);else{const t={name:"AppView",id:"AppView",viewType:ot.DE_CUSTOM_VIEW,appId:ibiz.env.appId};C("ctx",new ct(t,G.create({})).ctx)}const n=y(!1),o=y(""),a=y();dt(t.modelData).then((t=>{t?a.value=t:o.value=ibiz.i18n.t("vue3Util.common.onFoundCorrespondingPart"),n.value=!0})).catch((t=>{ibiz.log.error(t),o.value=t.message,n.value=!0}));return{ns:re("control-shell"),isComplete:n,errMsg:o,provider:a}},render(){return this.isComplete&&this.provider?w(b(this.provider.component),{provider:this.provider,...this.$props,...this.$attrs},this.$slots):A(N("div",{class:this.ns.b()},[this.isComplete?this.errMsg:null]),[[O("loading"),!this.isComplete]])}})),t("IBizViewShell",D({name:"IBizViewShell",props:{context:{type:Object,required:!0},params:{type:Object},modelData:{type:Object},viewId:{type:String},ctx:{type:Object}},setup(t,{attrs:e}){const n=re("view-shell"),o=y(!1),a=y(""),i=y(),r=y(),c=y(!0);t.ctx&&C("ctx",t.ctx);const d=y(t.context),u=y(t.params||{});let p="";l((()=>({context:t.context,params:t.params})),(t=>{d.value=t.context,u.value=t.params?t.params:{}}));let h;const m=t=>{const e=Z(t);return e.srfdatatype&&delete e.srfdatatype,JSON.stringify(e)},v=async()=>{try{if(await(async()=>{h=t.modelData?t.modelData:await ibiz.hub.getAppView(t.viewId)})(),!h)throw new k(ibiz.i18n.t("vue3Util.common.noFoundViewModel"));if(c.value=await(async t=>{let e=!0;const{accUserMode:n,accessKey:o}=t,a=ibiz.auth.getAuthInfo();if(void 0!==n)switch(n){case 1:a&&(e=!1);break;case 2:a||(e=!1);break;case 4:o&&((await ibiz.hub.getApp(d.value.srfappid)).authority.calcByResCode(o)||(e=!1))}return e})(h),!c.value)return;if(1===h.dynaSysMode){const t=h.appDataEntityId;if(!t)throw new k(ibiz.i18n.t("vue3Util.common.noSupportLoadingDynamic",{codeName:h.codeName}));const e=await pt(t,d.value,{viewParams:u.value,appId:h.appId});if(u.value.srfdatatype&&(e.srfdatatype=u.value.srfdatatype),u.value.srfwftag)e.srfwftag=u.value.srfwftag;else if(t&&h.enableWF&&e.srfkey){const n=Y(d.value.srfsessionid)||tt(d.value.srfsessionid),o=s();if(n){const t=ibiz.uiDomainManager.create(o);d.value.srfsessionid=t.id}const a=ibiz.hub.getApp(h.appId);d.value.srfappid||(d.value.srfappid=h.appId);const i=await a.deService.getService(d.value,t),r=await i.get(d.value,u.value||{});if(r.ok&&r.data){const{srfwftag:t,processdefinitionkey:n,taskdefinitionkey:o}=r.data;t&&(e.srfwftag=t),["DEWFDYNAEDITVIEW3","DEWFDYNAEDITVIEW"].includes(h.viewType)&&(Y(u.value.processDefinitionKey)&&(u.value.processDefinitionKey=n),Y(u.value.taskDefinitionKey)&&(u.value.taskDefinitionKey=o))}n&&(ibiz.uiDomainManager.destroy(o),d.value.srfsessionid="")}if(m(e)===p)return void setTimeout((()=>{o.value=!0}));r.value=await ibiz.hub.loadAppView(h.appId,h.id,e),p=m(e)}else r.value=h;i.value=await ht(h)}catch(t){ibiz.log.error(t),a.value=t.message}finally{o.value=!0}};v();return{ns:n,errMsg:a,provider:i,isComplete:o,hasAuthority:c,viewModelData:r,redrawView:async t=>{o.value=!1;const{redrawData:n}=t,{isReloadModel:a}=n;Object.assign(d.value,n.context),Object.assign(u.value,n.params);const i=e.modal;i&&(i.hooks.shouldDismiss.clear(),i.hooks.beforeDismiss.clear()),a?await v():setTimeout((()=>{o.value=!0}))},curContext:d,curParams:u}},render(){if(this.isComplete&&this.provider&&this.hasAuthority)return w(b(this.provider.component),{context:this.curContext,params:this.curParams,modelData:Z(this.viewModelData),...this.$attrs,provider:this.provider,onRedrawView:this.redrawView},this.$slots);if(!this.hasAuthority){const t=ut("403");if(t)return"string"==typeof t.component?w(b(t.component)):w(t.component)}return A(N("div",{class:this.ns.b()},[this.isComplete?this.errMsg:null]),[[O("loading"),!this.isComplete]])}})),t("IBizCodeList",D({name:"IBizCodeList",props:{codeListItems:{type:Array},codeList:{type:Object,required:!0},value:{type:[String,Number]},convertToCodeItemText:{type:Boolean,default:!0},valueFormat:{type:String},unitName:{type:String},showMode:{type:String,default:"DEFAULT"}},emits:{infoTextChange:t=>!0},setup(t,{emit:e}){var n,o;const a=re("code-list"),i=y([]),r=(null==(n=t.codeList)?void 0:n.textSeparator)||"、",s=(null==(o=t.codeList)?void 0:o.valueSeparator)||",",c=E((()=>t.codeList&&t.codeList.orMode?t.codeList.orMode:"STR")),d=mt(c.value);l(i,(t=>{let n="";t.length>0&&(n=t.map((t=>t.text)).join(r)),e("infoTextChange",n)}));const u=(e,n)=>{if(e){const{thresholdGroup:o}=t.codeList;if(o&&Xt(Number(n))){const t=vt(e,Number(n));if(t)return t}const a=e.find((t=>t.value==n));if(a)return a;for(let t=0;t<e.length;t++){const o=u(e[t].children,n);if(o)return o}}};l([()=>t.codeListItems,()=>t.value],(([e,n],[o,a])=>{if(Y(n)||""===n)i.value=[];else{let o=[];const{getSelectArray:a}=d,r=a(n,t.codeList,e,s,t.codeList.codeItemValueNumber);r&&(o=r),i.value=o.map((n=>{const o=u(e,n);let a=n;if(t.convertToCodeItemText&&(null==o?void 0:o.text))a=o.text;else{const{valueFormat:e,unitName:n}=t;e&&(a=ibiz.util.text.format("".concat(a),e)),n&&(a+=n)}return{text:a,color:null==o?void 0:o.color,textCls:null==o?void 0:o.textCls,sysImage:null==o?void 0:o.sysImage}}))}}),{immediate:!0});const p=t.codeList.emptyText!==ibiz.i18n.t("vue3Util.common.undefined")&&t.codeList.emptyText?t.codeList.emptyText:ibiz.config.common.emptyText;return{items:i,ns:a,emptyText:p,textSeparator:r}},render(){return N("span",{class:this.ns.b()},[0===this.items.length?this.emptyText:this.items.map(((t,e)=>[0!==e?this.textSeparator:null,N("span",{class:[this.ns.e("item"),t.textCls?t.textCls:null],style:t.color?this.ns.cssVarBlock({"item-color":"".concat(t.color)}):null},["TEXT"!==this.showMode&&t.sysImage&&N(b("iBizIcon"),{icon:t.sysImage},null),"ICON"!==this.showMode&&t.text])]))])}})),t("ControlLoadingPlaceholder",D({name:"ControlLoadingPlaceholder",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})}},setup:t=>(m("ctx").evt.emit("onForecast",t.modelData.name),{}),render:()=>null})),t("IBizBadge",D({name:"IBizBadge",props:{value:{type:Number,required:!0},type:{type:String,default:"danger"},max:{type:Number,default:99},counterMode:{type:Number}},setup:()=>({ns:re("badge")}),render(){if((this.value||0===this.value)&&!(1===this.counterMode&&this.value<=0))return N("div",{class:[this.ns.b(),this.ns.m(this.type)]},[this.value>this.max?"".concat(this.max,"+"):this.value])}})),t("IBizCustomRender",D({name:"IBizCustomRender",props:{controller:{type:Object,required:!0}},setup(t){const e=re("custom-render"),n=async(e,n)=>{e.stopPropagation();const o=e.target.getAttribute(n),a=e.target.getAttribute("data"),i=t.controller.context.clone(),r=e.target.getAttribute("context");r&&Object.assign(i,q(r));const s={...t.controller.params},l=e.target.getAttribute("params");l&&Object.assign(s,q(l)),o&&await lt.asyncExecScriptFn({...t.controller.getEventArgs(),context:i,params:s,data:a?q(a):null},o)};return{ns:e,getControlRender:()=>{var o,a,i;const r=null==(o=t.controller)?void 0:o.model.controlRenders;if(!r||0===r.length)return;const s=r.find((t=>t.id===st.EMPTYPANEL));if(s){if("LAYOUTPANEL_MODEL"===s.renderType&&s.layoutPanelModel){const o=lt.execScriptFn({...t.controller.getEventArgs()},s.layoutPanelModel,{isAsync:!1});return N("div",{innerHTML:o,onClick:t=>n(t,"click"),onDblclick:t=>n(t,"dbclick"),class:[e.b(),e.e(null==(a=s.renderName)?void 0:a.toLowerCase())]},null)}return"LAYOUTPANEL"===s.renderType&&s.layoutPanel?N(b("iBizControlShell"),{class:[e.b(),e.e(null==(i=s.renderName)?void 0:i.toLowerCase())],params:t.controller.params,context:t.controller.context,modelData:s.layoutPanel},null):void 0}}}},render(){return this.getControlRender()}}));class Ee extends ft{}t("PanelContainerState",Ee);class Ne extends gt{createState(){var t;return new Ee(null==(t=this.parent)?void 0:t.state)}}function Ae(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!T(t)}t("PanelContainerController",Ne);const Oe=D({name:"IBizPanelContainer",props:{modelData:{type:Object,required:!0},controller:{type:Ne,required:!0}},setup(t){const e=re("panel-container"),{id:n}=t.modelData,o=E((()=>{let o=[e.b(),e.m(n)];return o=[...o,...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)],o}));return{ns:e,classArr:o}},render(){var t,e,n;let o;const a=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[],i=N(b("iBizRow"),{slot:"content",layout:this.modelData.layout},Ae(o=a.map((t=>{const e=t.props;return e&&e.controller?N(b("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},Ae(t)?t:{default:()=>[t]}):t})))?o:{default:()=>[o]}),r=null==(n=this.$attrs)?void 0:n.attrs;return r&&r.dynamictooltip?N(b("el-tooltip"),{placement:"right","popper-class":this.ns.e("dynamic-tooltip")},{default:()=>N("div",x({class:this.classArr,onClick:()=>{this.controller.onClick()}},this.$attrs),[this.controller.model.cssStyle?N("style",{type:"text/css"},[this.controller.model.cssStyle]):null,i]),content:()=>N("div",{class:this.ns.e("dynamic-tooltip-content"),innerHTML:r.dynamictooltip},null)}):N("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[this.controller.model.cssStyle?N("style",{type:"text/css"},[this.controller.model.cssStyle]):null,i])}});class xe{constructor(){this.component="IBizPanelContainer"}async createController(t,e,n){const o=new Ne(t,e,n);return await o.init(),o}}t("IBizPanelContainer",ve(Oe,(function(t){t.component(Oe.name,Oe),yt("CONTAINER",(()=>new xe)),yt("CONTAINER_DEFAULT",(()=>new xe))})));const Te=D({name:"IBizPanelCtrlPos",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){m("ctx").evt.on("onRegister",((e,n)=>{e===t.modelData.id&&t.controller.bindControl(n)}));return{ns:re("panel-ctrl-pos")}},render(){const{state:t}=this.controller;let e;return this.$slots.default&&(e=this.$slots.default()),N("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass,this.ns.is("hidden",!t.visible)]},[e||(ibiz.env.dev?ibiz.i18n.t("vue3Util.panelComponent.noProvidedSlot",{id:this.modelData.id}):"")])}});class Se extends gt{bindControl(t){this.control=t,t.evt.onAll(((t,e)=>{this.panel.evt.emit("onControlEvent",{triggerControlName:this.model.id,triggerEventName:t,triggerEvent:e})}))}}t("PanelCtrlPosController",Se);class ze{constructor(){this.component="IBizPanelCtrlPos"}async createController(t,e,n){const o=new Se(t,e,n);return await o.init(),o}}t("IBizPanelCtrlPos",ve(Te,(function(t){t.component(Te.name,Te),yt("CTRLPOS",(()=>new ze))})));class Re extends gt{}function Le(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!T(t)}t("ScrollContainerItemController",Re);const Be=t("ScrollContainerItem",D({name:"IBizScrollContainerItem",props:{modelData:{type:Object,required:!0},controller:{type:Re,required:!0}},setup(t){const e=re("scroll-container-item"),{id:n}=t.modelData,o=E((()=>[e.b(),e.m(n),e.is("hidden",!t.controller.state.visible)]));return{ns:e,classArr:o}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[];return N(b("iBizRow"),{class:this.classArr,layout:{layout:"FLEX"}},Le(n=o.map((t=>{const e=t.props;return e&&e.controller?(e.modelData.layoutPos.layout="FLEX",N(b("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},Le(t)?t:{default:()=>[t]})):t})))?n:{default:()=>[n]})}}));class je{constructor(){this.component="IBizScrollContainerItem"}async createController(t,e,n){const o=new Re(t,e,n);return await o.init(),o}}class Ve extends gt{async onInit(){await super.onInit(),this.state.layout.width="100%",this.state.layout.height="100%"}}t("ScrollContainerController",Ve);const ke=t("ScrollContainer",D({name:"IBizScrollContainer",props:{modelData:{type:Object,required:!0},controller:{type:Ve,required:!0}},setup(t){const e=re("scroll-container"),{id:n}=t.modelData,o=E((()=>[e.b(),e.m(n),...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)]));return{ns:e,classArr:o}},render(){var t,e;let n=null,o=null,a=null,i=null,r=null;const s={};((null==(e=(t=this.$slots).default)?void 0:e.call(t))||[]).forEach((t=>{const e=t.props;if(!e||!e.controller)return;const{width:l,height:c}=e.controller.state.layout;switch(e.modelData.layoutPos.layoutPos){case"WEST":n=t,s.left={width:l};break;case"EAST":a=t,s.right={width:l};break;case"NORTH":o=t,s.top={height:c};break;case"SOUTH":i=t,s.bottom={height:c};break;case"CENTER":r=t;break;default:ibiz.log.debug(ibiz.i18n.t("vue3Util.panelComponent.unadaptedLayout",{layoutPos:e.modelData.layoutPos.layoutPos}))}}));for(const t in s)(s[t].width||s[t].height)&&(s[t].flexShrink=0);return N("div",{class:this.classArr},[N("div",{class:[this.ns.e("header")],style:s.top},[o]),N("div",{class:[this.ns.b("content")]},[N("div",{class:this.ns.be("content","left"),style:s.left},[n]),N("div",{class:this.ns.be("content","center")},[r]),N("div",{class:this.ns.be("content","right"),style:s.right},[a])]),N("div",{class:[this.ns.e("footer")],style:s.bottom},[i])])}}));class Me{constructor(){this.component="IBizScrollContainer"}async createController(t,e,n){const o=new Ve(t,e,n);return await o.init(),o}}t("IBizScrollContainer",ve(ke,(function(t){t.component(ke.name,ke),t.component(Be.name,Be),yt("CONTAINER_CONTAINER_SCROLL",(()=>new Me)),yt("CONTAINER_CONTAINER_SCROLL_LEFT",(()=>new je)),yt("CONTAINER_CONTAINER_SCROLL_HEADER",(()=>new je)),yt("CONTAINER_CONTAINER_SCROLL_RIGHT",(()=>new je)),yt("CONTAINER_CONTAINER_SCROLL_BOTTOM",(()=>new je)),yt("CONTAINER_CONTAINER_SCROLL_MAIN",(()=>new je))})));class Ue extends ft{constructor(){super(...arguments),this.cache=!0,this.routeOpen=!0,this.currentKey="",this.cacheKeys=["RouterShell"],this.navViewMsgs={},this.isLoading=!1}}t("NavPosState",Ue);const _e=["is404","isRoutePushed"];class Fe extends gt{constructor(){super(...arguments),this.viewModals={},this.refCtrlKeys=[],this.rawItemParams={},this.ignoreEmbedKey=!1}get route(){return this.router.currentRoute.value}getExpItemIsCache(t){return"CACHE"===this.rawItemParams.expcache||"NO_CACHE"!==this.rawItemParams.expcache&&t.isCache}setRouter(t){this.router=t}async onInit(){var t;await super.onInit(),this.handleRawItemParams(),(null==(t=this.model.rawItem)?void 0:t.rawItemParams)&&this.model.rawItem.rawItemParams.find((t=>!("REFCTRL"!==t.key||!t.value)&&(this.refCtrlKeys=t.value.split(";").map((t=>t.toLowerCase())),!0))),this.panel.evt.on("onControlEvent",(t=>{if((0===this.refCtrlKeys.length||this.refCtrlKeys.includes(t.triggerControlName))&&"onNavViewChange"===t.triggerEventName){const e=t.triggerEvent;this.openView(e.navViewMsg)}}));const e=this.rawItemParams.expmode||this.panel.view.params.expmode,n=this.rawItemParams.ignoreembedkey||this.panel.view.params.ignoreembedkey||"";this.ignoreEmbedKey=Object.is(n.toLowerCase(),"true"),"ROUTE"===e&&this.routeDepth?this.state.routeOpen=!0:this.state.routeOpen="NO_ROUTE"!==e&&!!this.routeDepth,this.panel.view.params.expmode&&delete this.panel.view.params.expmode}createState(){var t;return new Ue(null==(t=this.parent)?void 0:t.state)}get routeDepth(){return this.panel.view.modal.routeDepth}calcCacheKey(t){return t?"".concat(t.viewId,"___").concat(t.key):""}onRouteChange(t){if(this.curNavViewMsg){const e=this.calcCacheKey(this.curNavViewMsg);this.state.currentKey=e,this.state.navViewMsgs[e].fullPath=t.fullPath}}setNavViewMsgs(t){t.isRoutePushed=!0===t.isRoutePushed;const e=this.calcCacheKey(t);this.state.navViewMsgs[e]?(et(this.state.navViewMsgs[e],t),_e.forEach((n=>{Object.prototype.hasOwnProperty.call(t,n)&&(this.state.navViewMsgs[e][n]=void 0)}))):(this.state.navViewMsgs[e]=t,this.getExpItemIsCache(t)&&this.state.cacheKeys.push(e),this.viewModals[e]=new wt({mode:this.routeDepth?bt.ROUTE:bt.EMBED,routeDepth:this.routeDepth?this.routeDepth+1:void 0,dismiss:()=>{this.dismiss(e)}})),this.curNavViewMsg=this.state.navViewMsgs[e]}dismiss(t){ibiz.log.debug(this.constructor.name,"dismiss",t)}onViewCreated(t){this.panel.evt.emit("onPresetPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:"onViewCreated",presetParams:t}),ibiz.log.debug(this.constructor.name,"onViewCreated",t)}toBlankRoute(){const t=he(this.route,this.routeDepth);this.router.push(t)}openView(t){if(!t.key)return this.state.currentKey=this.calcCacheKey(t),void(this.routeDepth&&this.state.routeOpen&&this.toBlankRoute());this.routeDepth&&this.state.routeOpen?this.openViewByPath(t):this.openViewByModel(t)}async openViewByPath(t){var e,n,o,a;const i=this.calcCacheKey(t);this.setNavViewMsgs(t);if(!0===t.isRoutePushed)return this.state.currentKey=i,void(this.state.navViewMsgs[this.calcCacheKey(this.curNavViewMsg)].fullPath=this.route.fullPath);if(t.is404){const n=he(this.route,this.routeDepth,!1);(null==(e=t.modalOptions)?void 0:e.replace)?this.router.replace("".concat(n,"/error/404")):this.router.push("".concat(n,"/error/404"))}else if(i===this.state.currentKey&&this.state.navViewMsgs[i].fullPath)(null==(n=t.modalOptions)?void 0:n.replace)?this.router.replace(this.state.navViewMsgs[i].fullPath):this.router.push(this.state.navViewMsgs[i].fullPath);else if(this.state.navViewMsgs[i].fullPath&&this.getExpItemIsCache(t))(null==(o=t.modalOptions)?void 0:o.replace)?this.router.replace(this.state.navViewMsgs[i].fullPath):this.router.push(this.state.navViewMsgs[i].fullPath);else{const e=Object.assign(t.context.clone(),{toRouteDepth:this.routeDepth+1});(null==(a=this.rawItemParams)?void 0:a.routeattributekeys)&&(e.attributekeys=this.rawItemParams.routeattributekeys),this.getExpItemIsCache(t)&&this.state.cacheKeys.push(i),t.viewId&&(this.state.isLoading=!0,await ibiz.commands.execute(Ct.TAG,t.viewId,e,t.params,{openMode:"INDEXVIEWTAB",modalOption:{replace:!this.state.currentKey,...t.modalOptions}}),this.state.isLoading=!1)}}openViewByModel(t){this.setNavViewMsgs(t),this.state.currentKey=this.calcCacheKey(t)}handleRawItemParams(){var t;let e={};const n=null==(t=this.model.rawItem)?void 0:t.rawItemParams;a(n)&&(e=n.reduce(((t,e)=>(t[e.key.toLowerCase()]=e.value,t)),{})),Object.assign(this.rawItemParams,e)}}function qe(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!T(t)}t("NavPosController",Fe);const Ge=D({name:"IBizNavPos",props:{modelData:{type:Object,required:!0},controller:{type:Fe,required:!0}},setup(t){const e=t.controller,n=re("nav-pos"),o=Wt(),a=Gt(),i=y(!1);if(e.setRouter(o),e.routeDepth){const t=he(a,e.routeDepth);l((()=>a.fullPath),(()=>{const n=he(a,e.routeDepth);if(t===n&&a.matched.length>e.routeDepth){if(a.matched.length===e.routeDepth+1&&(i.value=!!a.name,i.value))return;e.onRouteChange(a)}}),{immediate:!0})}return{ns:n,c:e,isPresetView:i,onViewCreated:t=>{e.onViewCreated(t)}}},render(){const{viewModals:t,state:e}=this.c,{currentKey:n,cacheKeys:o,navViewMsgs:a,cache:i}=e;let r=null;if(e.routeOpen){if(this.isPresetView)return N($t,null,null);r=N(b("iBizRouterView"),{manualKey:n,modal:t[n],onCreated:this.onViewCreated},{default:({Component:t})=>{const e=""!==n&&t?N(t,null,null):null;return i?N(b("keepAlive"),{include:o,max:30,isKey:!0},qe(e)?e:{default:()=>[e]}):e}})}else{const t=n&&a[n]?w(b("IBizViewShell"),{context:a[n].context,params:a[n].params,key:this.c.ignoreEmbedKey?void 0:n,viewId:a[n].viewId,onCreated:this.onViewCreated}):null;r=i?N(b("keepAlive"),{include:o,max:30,isKey:!0},qe(t)?t:{default:()=>[t]}):t}return N("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass]},[r])}});class We{constructor(){this.component="IBizNavPos"}async createController(t,e,n){const o=new Fe(t,e,n);return await o.init(),o}}t("IBizNavPos",ve(Ge,(function(t){t.component(Ge.name,Ge),yt("RAWITEM_NAV_POS",(()=>new We))})));class $e extends ft{constructor(){super(...arguments),this.error=null}}class Ke extends gt{constructor(){super(...arguments),this.unitName=void 0}get valueFormat(){return this.model.valueFormat}get dataType(){}get context(){return this.panel.context}get params(){return this.panel.params}get data(){return this.dataParent.data}get value(){return this.data[this.model.id]}createState(){var t;return new $e(null==(t=this.parent)?void 0:t.state)}async validate(){var t;return!this.state.visible||this.model.allowEmpty||this.value?(this.state.error=null,!0):(this.state.error=(null==(t=this.editor)?void 0:t.model.placeHolder)||ibiz.i18n.t("vue3Util.panelComponent.cannotEmpty",{caption:this.model.caption}),!1)}async onInit(){var t,e;await super.onInit(),this.state.required=!this.model.allowEmpty,!0!==this.context.srfreadonly&&"true"!==this.context.srfreadonly&&(null==(t=this.model.editor)?void 0:t.readOnly)&&(this.state.readonly=(null==(e=this.model.editor)?void 0:e.readOnly)||!1),this.model.editor&&"HIDDEN"!==this.model.editor.editorType&&(this.editorProvider=await It(this.model.editor),this.editorProvider&&(this.editor=await this.editorProvider.createController(this.model.editor,this)))}async setDataValue(t,e){const{id:n}=this.model;e=e||n,this.dataParent.setDataValue&&await this.dataParent.setDataValue(e,t),await this.validate(),this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:Pt.CHANGE})}onFocus(t){this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:Pt.FOCUS,event:t})}onBlur(t){this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:Pt.BLUR,event:t})}onEnter(t){this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:Pt.ENTER,event:t})}}t("PanelFieldController",Ke);const He=D({name:"IBizPanelField",props:{modelData:{type:Object,required:!0},controller:{type:Ke,required:!0},attrs:{type:Object,require:!1}},setup(t){const e=re("panel-field"),n=E((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n),e.is("error",!!t.controller.state.error)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:n,onValueChange:(e,n)=>{t.controller.setDataValue(e,n)}}},render(){let t=null;if(this.controller.data){const e={value:this.controller.value,data:this.controller.data,controller:this.controller.editor,disabled:this.controller.state.disabled,class:this.ns.b("content"),readonly:this.controller.state.readonly,onChange:this.onValueChange,onFocus:t=>this.controller.onFocus(t),onBlur:t=>this.controller.onBlur(t),onEnter:t=>this.controller.onEnter(t),...this.attrs};if(this.$slots.default)t=this.$slots.default(e);else if(this.controller.editorProvider){const n=b(this.controller.editorProvider.formEditor);t=w(n,{...e})}else t=N(b("not-supported-editor"),{modelData:this.modelData.editor},null)}return N("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[t,this.controller.state.error&&N("div",{class:this.ns.e("error")},[this.controller.state.error])])}});class Qe{constructor(){this.component="IBizPanelField"}async createController(t,e,n){const o=new Ke(t,e,n);return await o.init(),o}}t("IBizPanelField",ve(He,(function(t){t.component(He.name,He),yt("FIELD",(()=>new Qe))})));class Xe extends gt{get data(){return this.dataParent.data}async onInit(){await super.onInit()}calcDynaClass(t){var e,n;if(this.model.dynaClass||(null==(e=this.model.rawItem)?void 0:e.dynaClass)){const e=this.model.dynaClass?Dt(this.model.dynaClass,t):[],o=(null==(n=this.model.rawItem)?void 0:n.dynaClass)?Dt(this.model.rawItem.dynaClass,t):[];this.state.class.containerDyna=[...e,...o]}if(this.model.labelDynaClass){const e=Dt(this.model.labelDynaClass,t);this.state.class.labelDyna=e}}}t("PanelRawItemController",Xe);const Ye=D({name:"IBizPanelRawItem",props:{modelData:{type:Object,required:!0},controller:{type:Xe,required:!0}},setup(t){const e=re("panel-rawitem"),n=t.controller,o=y(""),a=y(""),{rawItem:i}=t.modelData;i&&i.cssStyle&&(a.value=i.cssStyle);const r=E((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return l((()=>n.data),(async t=>{if(t){const e=n.model.rawItem;if(!e)return;let a;const i={...t};"RAW"===e.contentType?a=e.caption:"HTML"===e.contentType&&(a=e.content),a&&e.templateMode&&(a=await ibiz.util.hbs.render(a.replace("//n","\n"),Object.assign(i,{data:{...t}}))),o.value=a}}),{immediate:!0}),{ns:e,classArr:r,tempStyle:a,content:o}},render(){if(this.controller.state.visible)return N("div",{class:this.classArr,style:this.tempStyle,onClick:t=>{this.controller.onClick(t)}},[N(b("iBizRawItem"),{rawItem:this.modelData,content:this.content},null)])}});class Je{constructor(){this.component="IBizPanelRawItem"}async createController(t,e,n){const o=new Xe(t,e,n);return await o.init(),o}}t("IBizPanelRawItem",ve(Ye,(function(t){t.component(Ye.name,Ye),yt("RAWITEM",(()=>new Je)),yt("RAWITEM_STATIC_IMAGE",(()=>new Je)),yt("RAWITEM_STATIC_LABEL",(()=>new Je)),yt("RAWITEM_STATIC_TEXT",(()=>new Je))})));class Ze extends ft{constructor(){super(...arguments),this.data={}}}class tn{constructor(t,e,n,o){this.model=t,this.panel=e,this.parent=n,this.state=new Ze,this.isDataContainer=!0,this.panelItems={},this.state.data=o;const a=Et(this.model).map((t=>t.id));o._evt.on("change",(t=>{a.includes(t)&&this.childDataChangeNotify([t])}))}get data(){return this.state.data}async validate(){return(await Promise.all(Object.values(this.panelItems).map((t=>t.validate())))).every((t=>t))}async init(){await this.initChildrenController()}async initChildrenController(t=this.model.panelItems,e=this.panel,n=this){t&&await Promise.all(t.map((async t=>{var o,a;const i=this.parent.providers[t.id];if(!i)return;const r=await i.createController(t,e,n);this.panelItems[t.id]=r,(null==(o=t.panelItems)?void 0:o.length)&&!Nt(t)?await this.initChildrenController(t.panelItems,e,r):(null==(a=t.panelTabPages)?void 0:a.length)&&await this.initChildrenController(t.panelTabPages,e,r)})))}async dataChangeNotify(t){}async childDataChangeNotify(t){Object.values(this.panelItems).forEach((e=>{e.dataChangeNotify(t)}))}async panelStateNotify(t){Object.values(this.panelItems).forEach((e=>{e.panelStateNotify(t)}))}async setDataValue(t,e){Object.prototype.hasOwnProperty.call(this.state.data,t)&&this.state.data[t]===e||(this.state.data[t]=e,this.childDataChangeNotify([t]))}destroy(){var t,e;null==(e=(t=this.data).destroy)||e.call(t),Object.values(this.panelItems).forEach((t=>{t.destroy()}))}}class en extends ft{constructor(){super(...arguments),this.items=[]}}t("MultiDataContainerState",en);class nn extends gt{constructor(){super(...arguments),this.isDataContainer=!0,this.dataItems=[],this.providers={}}get data(){return this.state.items}createState(){var t;return new en(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),await this.initPanelItemProviders()}async panelStateNotify(t){super.panelStateNotify(t),t===At.LOAD&&this.initContainerData()}async initPanelItemProviders(t=this.model.panelItems){t&&await Promise.all(t.map((async t=>{var e,n;const o=await Ot(t,this.panel.model,this.panel.view.model);o&&(this.providers[t.id]=o,(null==(e=t.panelItems)?void 0:e.length)&&!Nt(t)&&await this.initPanelItemProviders(t.panelItems),(null==(n=t.panelTabPages)?void 0:n.length)&&await this.initPanelItemProviders(t.panelTabPages))})))}computeNavParams(){const{navigateContexts:t,navigateParams:e}=this.model,n=this.panel.context.clone();Object.assign(n,xt(t,this.panel.params,this.panel.context));const o=xt(e,this.panel.params,this.panel.context);return Object.assign(o,this.panel.params),{context:n,params:o}}initContainerData(){const{dataSourceType:t,dataName:e,scriptCode:n}=this.model;switch(t){case"DEACTION":case"DEDATASET":this.setDataByDeMethod();break;case"APPGLOBALPARAM":this.setDataByAppGlobalParam();break;case"DELOGIC":this.setDataByDeLogic();break;case"TOPVIEWSESSIONPARAM":if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.getTopView(),e);break;case"VIEWSESSIONPARAM":if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.view,e);break;case"ACTIVEDATAPARAM":if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.setData(this.dataParent.data[e]);break;case"CUSTOM":{if(!n)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredScript"));const t=lt.execScriptFn({...this.panel.getEventArgs(),data:this.dataParent.data},n,{isAsync:!1,singleRowReturn:!0});this.setData(t);break}default:throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType",{dataSourceType:t}))}}childrenStateNotify(t){this.dataItems.forEach((e=>{e.panelStateNotify(t)}))}async validate(){return(await Promise.all(this.dataItems.map((t=>t.validate())))).every((t=>t))}async setData(t){const e=Et(this.model),n=t.map((t=>new Tt(e,t)));this.dataItems=n.map((t=>new tn(this.model,this.panel,this,t))),this.dataItems.length&&await Promise.all(this.dataItems.map((t=>t.init()))),this.state.items=n,this.childrenStateNotify(At.LOAD)}async setDataByDeLogic(){const{appDataEntityId:t,appDELogicId:e}=this.model;if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic"));if(!t)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const{context:n,params:o}=this.computeNavParams(),a=await St(e,t,n,this.panel.data,o);if(!a)throw new k(ibiz.i18n.t("vue3Util.panelComponent.noReturnValue",{appDELogicId:e}));this.setData(a)}setDataByAppGlobalParam(){const{dataName:t}=this.model,e=t?ibiz.appData[t]:ibiz.appData;e?this.setData(e):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.noAttribute",{dataName:t}))}async setDataByDeMethod(){const{appDEMethodId:t,appDataEntityId:e}=this.model;if(!t)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior"));if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const n=ibiz.hub.getApp(this.panel.context.srfappid),{context:o,params:a}=this.computeNavParams(),i=await n.deService.exec(e,t,o,void 0,a);i.ok&&i.data&&this.setData(i.data)}bindViewData(t,e){if(!Object.prototype.hasOwnProperty.call(t.state,e))return void ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.sessionView",{dataName:e}));const n=()=>{const n=t.state[e];n?this.setData(n):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute",{dataName:e}))};n(),t.evt.on("onDataChange",(()=>{n()}))}setDataValue(t,e){throw new Error(ibiz.i18n.t("vue3Util.panelComponent.noImplementMethod"))}destroy(){super.destroy(),this.dataItems.forEach((t=>{t.destroy()}))}}t("MultiDataContainerController",nn);const on=D({name:"IBizMultiDataContainer",props:{modelData:{type:Object,required:!0},controller:{type:nn,required:!0}},setup(t){const e=re("multi-data-container"),{id:n}=t.modelData;l((()=>t.controller.state.items),(()=>{t.controller.dataItems.forEach((t=>{t.state=v(t.state);Object.keys(t.panelItems).forEach((e=>{const n=t.panelItems[e];n.state=v(n.state)}))}))}),{immediate:!0});const o=m("renderPanelItem"),a=E((()=>[e.b(),e.m(n),...t.controller.containerClass]));return{ns:e,classArr:a,renderPanelItem:o}},render(){let t;return t=this.$slots.default?this.$slots.default():this.controller.state.items.map(((t,e)=>{const n=this.controller.dataItems[e];return N(b("iBizRow"),{class:this.ns.b("content"),layout:this.modelData.layout},{default:()=>{var t;return[null==(t=this.modelData.panelItems)?void 0:t.map((t=>{let e;const o=n.panelItems[t.id];return N(b("iBizCol"),{layoutPos:t.layoutPos,state:o.state},"function"==typeof(a=e=this.renderPanelItem(t,{providers:this.controller.providers,panelItems:n.panelItems}))||"[object Object]"===Object.prototype.toString.call(a)&&!T(a)?e:{default:()=>[e]});var a}))]}})})),N("div",{class:this.classArr},[t])}});class an{constructor(){this.component="IBizMultiDataContainer"}async createController(t,e,n){const o=new nn(t,e,n);return await o.init(),o}}t("IBizMultiDataContainer",ve(on,(function(t){t.component(on.name,on),yt("CONTAINER_CONTAINER_MULTIDATA",(()=>new an))})));class rn extends ft{constructor(){super(...arguments),this.items=[]}}t("MultiDataContainerRawState",rn);class sn extends gt{constructor(){super(...arguments),this.isDataContainer=!0,this.panelItems={},this.providers={}}get data(){return this.state.items}createState(){var t;return new rn(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),await this.initPanelItemControllers()}async panelStateNotify(t){super.panelStateNotify(t),t===At.LOAD&&this.initContainerData()}async initPanelItemControllers(t=this.model.panelItems,e=this.panel,n=this){t&&await Promise.all(t.map((async t=>{var o,a;const i=await Ot(t,e.model,e.view.model);if(!i)return;this.providers[t.id]=i;const r=await i.createController(t,e,n);this.panelItems[t.id]=r,(null==(o=t.panelItems)?void 0:o.length)&&!Nt(t)&&await this.initPanelItemControllers(t.panelItems,e,r),(null==(a=t.panelTabPages)?void 0:a.length)&&await this.initPanelItemControllers(t.panelTabPages,e,r)})))}computeNavParams(){const{navigateContexts:t,navigateParams:e}=this.model,n=this.panel.context.clone();Object.assign(n,xt(t,this.panel.params,this.panel.context));const o=xt(e,this.panel.params,this.panel.context);return Object.assign(o,this.panel.params),{context:n,params:o}}initContainerData(){const{dataSourceType:t,dataName:e,scriptCode:n}=this.model;switch(t){case"DEACTION":case"DEDATASET":this.setDataByDeMethod();break;case"APPGLOBALPARAM":this.setDataByAppGlobalParam();break;case"DELOGIC":this.setDataByDeLogic();break;case"TOPVIEWSESSIONPARAM":if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.getTopView(),e);break;case"VIEWSESSIONPARAM":if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.view,e);break;case"ACTIVEDATAPARAM":if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.setData(this.dataParent.data[e]);break;case"CUSTOM":{if(!n)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredScript"));const t=lt.execScriptFn({...this.panel.getEventArgs(),data:this.dataParent.data},n,{isAsync:!1,singleRowReturn:!0});this.setData(t);break}default:throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType",{dataSourceType:t}))}}childrenStateNotify(t){Object.values(this.panelItems).forEach((e=>{e.panelStateNotify(t)}))}async setData(t){var e,n;null==(n=(e=this.data).destroy)||n.call(e),this.state.items=t,this.childrenStateNotify(At.LOAD)}async setDataByDeLogic(){const{appDataEntityId:t,appDELogicId:e}=this.model;if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic"));if(!t)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const{context:n,params:o}=this.computeNavParams(),a=await St(e,t,n,this.panel.data,o);if(!a)throw new k(ibiz.i18n.t("vue3Util.panelComponent.noReturnValue",{appDELogicId:e}));this.setData(a)}setDataByAppGlobalParam(){const{dataName:t}=this.model,e=t?ibiz.appData[t]:ibiz.appData;e?this.setData(e):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.noAttribute",{dataName:t}))}async setDataByDeMethod(){const{appDEMethodId:t,appDataEntityId:e}=this.model;if(!t)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior"));if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const n=ibiz.hub.getApp(this.panel.context.srfappid),{context:o,params:a}=this.computeNavParams(),i=await n.deService.exec(e,t,o,void 0,a);i.ok&&i.data&&this.setData(i.data)}bindViewData(t,e){if(!Object.prototype.hasOwnProperty.call(t.state,e))return void ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.sessionView",{dataName:e}));const n=()=>{const n=t.state[e];n?this.setData(n):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute",{dataName:e}))};n(),t.evt.on("onDataChange",(()=>{n()}))}setDataValue(t,e){throw new Error(ibiz.i18n.t("vue3Util.panelComponent.noImplementMethod"))}destroy(){var t,e;super.destroy(),null==(e=(t=this.data).destroy)||e.call(t),Object.values(this.panelItems).forEach((t=>{var e;null==(e=t.destroy)||e.call(t)}))}}t("MultiDataContainerRawController",sn);const ln=D({name:"IBizMultiDataContainerRaw",props:{modelData:{type:Object,required:!0},controller:{type:sn,required:!0}},setup(t){const e=re("multi-data-container-raw"),{id:n}=t.modelData;l((()=>t.controller.state.items),(()=>{Object.keys(t.controller.panelItems).forEach((e=>{const n=t.controller.panelItems[e];n.state=v(n.state)}))}),{immediate:!0,deep:!0});const o=m("renderPanelItem"),a=E((()=>[e.b(),e.m(n),...t.controller.containerClass]));return{ns:e,classArr:a,renderPanelItem:o}},render(){let t;return t=this.$slots.default?this.$slots.default():N(b("iBizRow"),{class:this.ns.b("content"),layout:this.modelData.layout},{default:()=>{var t;return[null==(t=this.modelData.panelItems)?void 0:t.map((t=>{let e;const n=this.controller.panelItems[t.id];return N(b("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=this.renderPanelItem(t,{providers:this.controller.providers,panelItems:this.controller.panelItems}))||"[object Object]"===Object.prototype.toString.call(o)&&!T(o)?e:{default:()=>[e]});var o}))]}}),N("div",{class:this.classArr},[t])}});class cn{constructor(){this.component="IBizMultiDataContainerRaw"}async createController(t,e,n){const o=new sn(t,e,n);return await o.init(),o}}t("IBizMultiDataContainerRaw",ve(ln,(function(t){t.component(ln.name,ln),yt("CONTAINER_CONTAINER_MULTIDATA_RAW",(()=>new cn))})));class dn extends ft{constructor(){super(...arguments),this.data={}}}t("SingleDataContainerState",dn);class un extends gt{constructor(){super(...arguments),this.isDataContainer=!0,this.panelItems={},this.providers={}}get data(){return this.state.data}createState(){var t;return new dn(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),await this.initPanelItemControllers()}async panelStateNotify(t){super.panelStateNotify(t),t===At.LOAD&&this.initContainerData()}async initPanelItemControllers(t=this.model.panelItems,e=this.panel,n=this){t&&await Promise.all(t.map((async t=>{var o,a;const i=await Ot(t,e.model,e.view.model);if(!i)return;this.providers[t.id]=i;const r=await i.createController(t,e,n);this.panelItems[t.id]=r,(null==(o=t.panelItems)?void 0:o.length)&&!Nt(t)&&await this.initPanelItemControllers(t.panelItems,e,r),(null==(a=t.panelTabPages)?void 0:a.length)&&await this.initPanelItemControllers(t.panelTabPages,e,r)})))}computeNavParams(){const{navigateContexts:t,navigateParams:e}=this.model,n=this.panel.context.clone();Object.assign(n,xt(t,this.panel.params,this.panel.context));const o=xt(e,this.panel.params,this.panel.context);return Object.assign(o,this.panel.params),{context:n,params:o}}initContainerData(){const{dataSourceType:t,dataName:e,dataRegionType:n,scriptCode:o}=this.model;if("LOGINFORM"!==n)switch(t){case"DEACTION":case"DEDATASET":this.setDataByDeMethod();break;case"APPGLOBALPARAM":this.setDataByAppGlobalParam();break;case"DELOGIC":this.setDataByDeLogic();break;case"TOPVIEWSESSIONPARAM":if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.getTopView(),e);break;case"VIEWSESSIONPARAM":if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.view,e);break;case"ACTIVEDATAPARAM":if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.setData(this.dataParent.data[e]);break;case"CUSTOM":{if(!o)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredScript"));const t=lt.execScriptFn({...this.panel.getEventArgs(),data:this.dataParent.data},o,{isAsync:!1,singleRowReturn:!0});this.setData(t);break}default:throw new W(this.model,ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType",{dataSourceType:t}))}else this.setLoginForm()}childrenStateNotify(t){Object.values(this.panelItems).forEach((e=>{e.panelStateNotify(t)}))}async setData(t){var e,n;const o=Et(this.model),a=o.map((t=>t.id)),i=new Tt(o,t);i._evt.on("change",(t=>{a.includes(t)&&this.childDataChangeNotify([t])})),null==(n=(e=this.data).destroy)||n.call(e),this.state.data=i,this.childrenStateNotify(At.LOAD)}setLoginForm(){this.setData({})}async setDataByDeLogic(){const{appDataEntityId:t,appDELogicId:e}=this.model;if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic"));if(!t)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const{context:n,params:o}=this.computeNavParams(),a=await St(e,t,n,this.panel.data,o);if(!a)throw new k(ibiz.i18n.t("vue3Util.panelComponent.noReturnValue",{appDELogicId:e}));this.setData(a)}setDataByAppGlobalParam(){const{dataName:t}=this.model,e=t?ibiz.appData[t]:ibiz.appData;e?this.setData(e):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.noAttribute",{dataName:t}))}async setDataByDeMethod(){const{appDEMethodId:t,appDataEntityId:e}=this.model;if(!t)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior"));if(!e)throw new $(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const n=ibiz.hub.getApp(this.panel.context.srfappid),{context:o,params:a}=this.computeNavParams(),i=await n.deService.exec(e,t,o,void 0,a);i.ok&&i.data&&this.setData(i.data)}bindViewData(t,e){if(!Object.prototype.hasOwnProperty.call(t.state,e))return void ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.sessionView",{dataName:e}));const n=()=>{const n=t.state[e];n?this.setData(n):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute",{dataName:e}))};n(),t.evt.on("onDataChange",(()=>{n()}))}childDataChangeNotify(t){Object.values(this.panelItems).forEach((e=>{e.dataChangeNotify(t)}))}async setDataValue(t,e){Object.prototype.hasOwnProperty.call(this.state.data,t)&&this.state.data[t]===e||(this.state.data[t]=e)}destroy(){var t,e;super.destroy(),null==(e=(t=this.data).destroy)||e.call(t),Object.values(this.panelItems).forEach((t=>{t.destroy()}))}}t("SingleDataContainerController",un);const pn=D({name:"IBizSingleDataContainer",props:{modelData:{type:Object,required:!0},controller:{type:un,required:!0}},setup(t){const e=re("single-data-container"),{id:n}=t.modelData;Object.keys(t.controller.panelItems).forEach((e=>{const n=t.controller.panelItems[e];n.state=v(n.state)}));const o=m("renderPanelItem"),a=E((()=>[e.b(),e.m(n),...t.controller.containerClass]));return{ns:e,classArr:a,renderPanelItem:o}},render(){let t;return t=this.$slots.default?this.$slots.default():N(b("iBizRow"),{class:this.ns.b("content"),layout:this.modelData.layout},{default:()=>{var t;return[null==(t=this.modelData.panelItems)?void 0:t.map((t=>{let e;const n=this.controller.panelItems[t.id];return N(b("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=this.renderPanelItem(t,{providers:this.controller.providers,panelItems:this.controller.panelItems}))||"[object Object]"===Object.prototype.toString.call(o)&&!T(o)?e:{default:()=>[e]});var o}))]}}),N("div",{class:this.classArr},[t])}});class hn{constructor(){this.component="IBizSingleDataContainer"}async createController(t,e,n){const o=new un(t,e,n);return await o.init(),o}}t("IBizSingleDataContainer",ve(pn,(function(t){t.component(pn.name,pn),yt("CONTAINER_CONTAINER_SINGLEDATA",(()=>new hn))})));class mn extends ft{}t("GridContainerState",mn);class vn extends gt{createState(){var t;return new mn(null==(t=this.parent)?void 0:t.state)}}function fn(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!T(t)}t("GridContainerController",vn);const gn=D({name:"IBizGridContainer",props:{modelData:{type:Object,required:!0},controller:{type:vn,required:!0}},setup(t){const e=re("grid-container"),{id:n}=t.modelData,o=E((()=>{let o=[e.b(),e.m(n)];return o=[...o,...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)],o})),a=E((()=>({...t.modelData.layout,layout:"TABLE_12COL"}))),i=y(void 0),r=y(12);return{ns:e,classArr:o,layoutModel:a,convertLayoutPos:(t,e)=>{const n={...t,layout:"TABLE_12COL",colXS:t.grow||e,colSM:t.grow||e,colMD:t.grow||e,colLG:t.grow||e};return delete n.grow,n},adaptGrow:r,adaptCols:i}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[];if(void 0===this.adaptCols){let t=0,e=0;o.forEach((n=>{const o=n.props;o&&o.modelData&&o.modelData.layoutPos&&("number"==typeof o.modelData.layoutPos.grow?t+=o.modelData.layoutPos.grow:void 0===o.modelData.layoutPos.grow&&(e+=1))}));let n=12;e>0&&(n=(12-t)/e),this.adaptCols=e,this.adaptGrow=n}return N(b("iBizRow"),{class:this.classArr,layout:this.layoutModel},fn(n=o.map((t=>{const e=t.props;return e&&e.controller?N(b("iBizCol"),{layoutPos:this.convertLayoutPos(e.modelData.layoutPos,this.adaptGrow),state:e.controller.state},fn(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]})}});class yn{constructor(){this.component="IBizGridContainer"}async createController(t,e,n){const o=new vn(t,e,n);return await o.init(),o}}t("IBizGridContainer",ve(gn,(function(t){t.component(gn.name,gn),yt("CONTAINER_CONTAINER_GRID",(()=>new yn))})));class wn extends ft{}t("PanelContainerImageState",wn);class bn extends gt{createState(){var t;return new wn(null==(t=this.parent)?void 0:t.state)}}function Cn(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!T(t)}t("PanelContainerImageController",bn);const In=D({name:"IBizPanelContainerImage",props:{modelData:{type:Object,required:!0},controller:{type:bn,required:!0}},setup(t){const e=re("panel-container-image"),{id:n}=t.modelData,o=E((()=>{let o=[e.b(),e.m(n)];return o=[...o,...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)],o})),a=E((()=>{const e=t.controller.model.sysImage,n={};let o="";if(null==e?void 0:e.rawContent)if(F(e.rawContent)){const t=e.rawContent.replace(/[\u4e00-\u9fff]/g,"");o="url(data:image/svg+xml;base64,".concat(btoa(t),")")}else o="url(".concat(e.rawContent,")");else(null==e?void 0:e.imagePath)&&(o="url(".concat(e.imagePath,")"));return o&&Object.assign(n,{backgroundImage:o}),n}));return{ns:e,classArr:o,backgroundStyle:a}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[],a=N(b("iBizRow"),{slot:"content",layout:this.modelData.layout},Cn(n=o.map((t=>{const e=t.props;return e&&e.controller?N(b("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},Cn(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]});return N("div",{class:this.classArr,onClick:()=>{this.controller.onClick()},style:this.backgroundStyle},[this.controller.model.cssStyle?N("style",{type:"text/css"},[this.controller.model.cssStyle]):null,a])}});class Pn{constructor(){this.component="IBizPanelContainerImage"}async createController(t,e,n){const o=new bn(t,e,n);return await o.init(),o}}t("IBizPanelContainerImage",ve(In,(function(t){t.component(In.name,In),yt("CONTAINER_CONTAINER_IMAGE",(()=>new Pn))})));class Dn extends ft{}t("PanelContainerGroupState",Dn);class En extends gt{createState(){var t;return new Dn(null==(t=this.parent)?void 0:t.state)}get disableClose(){const{titleBarCloseMode:t}=this.model;return 0===t||void 0===t}get defaultExpansion(){const{titleBarCloseMode:t}=this.model;return this.disableClose||1===t}}t("PanelContainerGroupController",En);class Nn{constructor(){this.component="IBizPanelContainerGroup"}async createController(t,e,n){const o=new En(t,e,n);return await o.init(),o}}function An(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!T(t)}const On=D({name:"IBizPanelContainerGroup",props:{modelData:{type:Object,required:!0},controller:{type:En,required:!0}},setup(t){const e=re("panel-container-group"),n=y(!t.controller.defaultExpansion);return{ns:e,captionText:E((()=>{const{captionItemName:e,caption:n,capLanguageRes:o}=t.modelData;if(e)return t.controller.data[e];let a=n;return o&&(a=ibiz.i18n.t(o.lanResTag,n)),a})),changeCollapse:()=>{t.controller.disableClose||(n.value=!n.value)},isCollapse:n}},render(){var t,e;let n;const o=[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass,this.ns.is("hidden",!this.controller.state.visible)];!0===this.modelData.showCaption&&(o.push(this.ns.m("show-header")),o.push(this.ns.b("collapse")),o.push(this.ns.is("collapse",this.isCollapse)),this.controller.disableClose&&o.push(this.ns.bm("collapse","disable-close")));const a=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[],i=N(b("iBizRow"),{slot:"content",layout:this.modelData.layout},An(n=a.map((t=>{const e=t.props;return e&&e.controller?N(b("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},An(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]});let r=null;return this.modelData.showCaption&&(r=N("div",{class:[this.ns.b("header")],onClick:this.changeCollapse},[N("div",{class:[this.ns.be("header","left")]},[N("div",{class:[this.ns.e("caption"),...this.controller.labelClass]},[this.modelData.sysImage&&N(De,{class:this.ns.em("caption","icon"),icon:this.modelData.sysImage},null),this.captionText])]),N("div",{class:[this.ns.be("header","right")]},[void 0!==this.modelData.titleBarCloseMode&&0!==this.modelData.titleBarCloseMode&&(this.isCollapse?N("ion-icon",{name:"caret-forward-sharp"},null):N("ion-icon",{name:"caret-down-sharp"},null))])])),N("div",{class:o},[r,N("div",{class:[this.ns.b("content")]},[i])])}});t("IBizPanelContainerGroup",ve(On,(function(t){t.component(On.name,On),yt("CONTAINER_CONTAINER_GROUP",(()=>new Nn))})));function xn(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!T(t)}const Tn=D({name:"IBizPanelTabPage",props:{modelData:{type:Object,required:!0},controller:{type:gt,required:!0}},setup(t){const e=re("panel-tab-page"),n=E((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:n}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[];return N(b("iBizRow"),{class:[this.ns.b(),this.ns.m(this.modelData.codeName),this.classArr],layout:this.modelData.layout},xn(n=o.map((t=>{const e=t.props;if(!e||!e.controller)return t;const n=e.controller;return N(b("iBizCol"),{layoutPos:n.model.layoutPos,state:n.state},xn(t)?t:{default:()=>[t]})})))?n:{default:()=>[n]})}});class Sn{constructor(){this.component="IBizPanelTabPage"}async createController(t,e,n){const o=new gt(t,e,n);return await o.init(),o}}t("IBizPanelTabPage",ve(Tn,(function(t){t.component(Tn.name,Tn),yt("TABPAGE",(()=>new Sn))})));class zn extends gt{getPanelItemCustomHtml(t,e){if(0===t.length)return;const n=t[0];return n.layoutPanelModel?lt.execScriptFn({data:e||{}},n.layoutPanelModel,{singleRowReturn:!0,isAsync:!1}):void 0}}const Rn=D({name:"IBizPanelItemRender",props:{modelData:{type:Object,required:!0},controller:{type:zn,required:!0}},setup(t){var e;const n=re("panel-item-render"),o=re("panel-".concat(null==(e=t.modelData.itemType)?void 0:e.toLowerCase())),{id:a}=t.modelData,i=E((()=>[n.b(),n.m(a),o.b(),n.is("hidden",!t.controller.state.visible)])),r=E((()=>t.controller.getPanelItemCustomHtml(t.modelData.controlRenders,t.controller.data)));return{ns:n,classArr:i,htmlCode:r}},render(){return N("div",{class:this.classArr,innerHTML:this.htmlCode},null)}});class Ln{constructor(){this.component="IBizPanelItemRender"}async createController(t,e,n){const o=new zn(t,e,n);return await o.init(),o}}t("IBizPanelItemRender",ve(Rn,(function(t){t.component(Rn.name,Rn),yt("PREDEFINE_RENDER",(()=>new Ln))})));const Bn=D({name:"IBizTeleportPlaceholder",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){const e=re("teleport-placeholder"),n=y(""),{rawItem:o}=t.modelData;o&&o.cssStyle&&(n.value=o.cssStyle);const a=E((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:a,tempStyle:n}},render(){if(this.controller.state.visible)return N("div",{id:this.controller.state.teleportTag,class:this.classArr,style:this.tempStyle},null)}});class jn extends ft{constructor(){super(...arguments),this.teleportTag=""}}class Vn extends gt{createState(){var t;return new jn(null==(t=this.parent)?void 0:t.state)}async onInit(){var t,e;await super.onInit();const n=this.panel.view.model.codeName;let o="".concat(null==n?void 0:n.toLowerCase(),"-").concat(this.model.id);const a=null==(e=null==(t=this.model.rawItem)?void 0:t.rawItemParams)?void 0:e.find((t=>"TeleportTag"===t.key));a&&a.value&&(o=a.value),ibiz.log.debug(ibiz.i18n.t("vue3Util.panelComponent.placeholderIdentifier",{viewCodeName:n,id:this.model.id}),o),this.state.teleportTag=o}}class kn{constructor(){this.component="IBizTeleportPlaceholder"}async createController(t,e,n){const o=new Vn(t,e,n);return await o.init(),o}}t("TeleportPlaceholderProvider",kn);t("IBizTeleportPlaceholder",ve(Bn,(function(t){t.component(Bn.name,Bn),yt("RAWITEM_TELEPORT_PLACEHOLDER",(()=>new kn))})));const Mn=D({name:"IBizPanelContainerTabs",props:{modelData:{type:Object,required:!0},controller:{type:Ne,required:!0}},setup:()=>({ns:re("panel-container-tabs")}),render(){return w(b("IBizPanelContainer"),{...this.$props,...this.$attrs,class:this.ns.b()},this.$slots)}});class Un{constructor(){this.component="IBizPanelContainerTabs"}async createController(t,e,n){const o=new Ne(t,e,n);return await o.init(),o}}t("IBizPanelContainerTabs",ve(Mn,(function(t){t.component(Mn.name,Mn),yt("CONTAINER_TABS",(()=>new Un))})));const _n=D({name:"IBizPanelCtrlViewPageCaption",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){const e=re("panel-ctrl-view-page-caption"),n=E((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:n}},render(){let t=null;return this.controller.data&&(t=N("span",{class:this.ns.b("content")},[this.controller.state.caption])),N("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[t])}});class Fn extends gt{async onInit(){await super.onInit(),this.state.caption=this.panel.view.model.caption||"",this.panel.view.evt.on("onViewInfoChange",(({caption:t,dataInfo:e})=>{this.state.caption="".concat(this.panel.view.model.caption).concat(e?"-".concat(e):"")}))}}class qn{constructor(){this.component="IBizPanelCtrlViewPageCaption"}async createController(t,e,n){const o=new Fn(t,e,n);return await o.init(),o}}t("IBizPanelCtrlViewPageCaption",ve(_n,(function(t){t.component(_n.name,_n),yt("CTRLPOS_VIEW_PAGECAPTION",(()=>new qn))})));const Gn=D({name:"IBizAuthWxmpQrcode",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){const e=re("auth-wxmp-qrcode"),{state:n}=t.controller,o=Gt();t.controller.setRouter(o);const a=async()=>{await t.controller.loadQrcode()};return l((()=>n.visible),(()=>{var t;n.visible&&(n.keepAlive&&!(null==(t=n.qrcode)?void 0:t.expirein)||!n.keepAlive)&&a()}),{immediate:!0}),P((()=>{t.controller.destroy()})),{ns:e,loadQrcode:a}},render(){var t,e;return N("div",{class:this.ns.b()},[N("div",{class:this.ns.e("content")},[this.controller.state.qrcode&&N("img",{class:this.ns.e("qrcode"),src:null==(t=this.controller.state.qrcode)?void 0:t.url},null),!(null==(e=this.controller.state.qrcode)?void 0:e.expirein)&&N("div",{class:this.ns.e("mask")},[N("ion-icon",{title:ibiz.i18n.t("vue3Util.panelComponent.refresh"),name:"reload-outline",onClick:this.loadQrcode,class:this.ns.em("mask","icon")},null)])]),N("div",{class:this.ns.e("caption")},[this.controller.state.tips])])}});class Wn extends ft{}class $n extends gt{constructor(){super(...arguments),this.pollingTime=2,this.rawItemParams={}}createState(){var t;return new Wn(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),this.handleRawItemParams(),this.initParams()}setRouter(t){this.route=t}handleRawItemParams(){var t;let e={};const n=null==(t=this.model.rawItem)?void 0:t.rawItemParams;a(n)&&(e=n.reduce(((t,e)=>(t[e.key.toLowerCase()]=e.value,t)),{})),Object.assign(this.rawItemParams,e)}initParams(){var t;this.pollingTime=(t=this.rawItemParams.pollingtime)&&isFinite(Number(t))?Number(this.rawItemParams.pollingtime):2,this.state.tips=this.model.caption||ibiz.i18n.t("vue3Util.panelComponent.wxQrcodeCaption")}async loadQrcode(){try{const t=await ibiz.net.get("/uaa/open/wxmp/createqrcode",{},{srfdcsystem:ibiz.env.dcSystem});t.ok&&t.data&&(this.state.qrcode=t.data,this.setTimer())}catch(t){ibiz.log.error(t.message)}}setTimer(){this.expirationTimer=setInterval((()=>{this.state.qrcode&&this.state.qrcode.expirein>0?this.state.qrcode.expirein-=1:clearInterval(this.expirationTimer)}),1e3),this.pollingTimer=setInterval((async()=>{await this.pollingLogin()}),1e3*this.pollingTime)}async pollingLogin(){try{if(this.state.qrcode&&this.state.qrcode.expirein>0){if(this.state.visible){const t=await ibiz.net.get("/uaa/open/wxmp/qrcode/".concat(this.state.qrcode.ticket),{},{srfdcsystem:ibiz.env.dcSystem}),{data:e,ok:n}=t;if(n&&(null==e?void 0:e.token)){clearInterval(this.pollingTimer);const t=30;K(H.TOKEN_REMEMBER,"1",t),K(H.TOKEN,e.token,t);const n=(new Date).getTime()+1e3*(e.expirein||7199);K(H.TOKEN_EXPIRES,"".concat(n),t),e.refresh_token&&K(H.REFRESH_TOKEN,e.refresh_token,t),Q(H.IS_ANONYMOUS);const o=this.route.query.ru||"/";window.location.hash=o||"/",window.history.pushState({},""),window.location.reload()}}}else clearInterval(this.pollingTimer)}catch(t){ibiz.log.error(t.message)}}async destroy(){await super.destroy(),this.pollingTimer&&(clearInterval(this.pollingTimer),this.pollingTimer=void 0),this.expirationTimer&&(clearInterval(this.expirationTimer),this.expirationTimer=void 0)}}class Kn{constructor(){this.component="IBizAuthWxmpQrcode"}async createController(t,e,n){const o=new $n(t,e,n);return await o.init(),o}}t("IBizAuthWxmpQrcode",ve(Gn,(function(t){t.component(Gn.name,Gn),yt("RAWITEM_AUTH_WXMP_QRCODE",(()=>new Kn))}))),t("AppRedirectView",D({setup(){var t;const e=G.create((null==(t=ibiz.appData)?void 0:t.context)||{});P((()=>{e.destroy()}));const{href:n}=window.location;I((()=>ibiz.util.hiddenAppLoading())),async function(){await zt(e,n)}()},render:()=>N("div",null,[ibiz.i18n.t("vue3Util.view.redirectionProgress")])}));class Hn{constructor(){this.component="IBizView"}}const Qn=D({name:"IBizView",props:{context:{type:Object},params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object},provider:{type:Object}},setup(t,{slots:e}){const n=re("view"),o=Ce(((...t)=>new ct(...t)));Ie(o);const a=Rt(o.model),i=[],r=new Map,s=[];a.forEach((t=>{const{teleportFlag:e,teleportTag:n}=Lt(t);n||e?(i.push(t),r.set(t.id,n||"")):s.push(t)}));const{viewType:l,sysCss:c,codeName:d}=o.model,u=l.toLowerCase(),p=null==c?void 0:c.cssName,h=E((()=>[n.b(),n.b(u),n.m(d),p,o.state.viewMessages.TOP?"has-top-message":"",o.state.viewMessages.BOTTOM?"has-bottom-message":"",o.state.presetClassList])),m=(t,e={})=>{const n=t.name||t.id;return{context:o.context,params:o.params,modelData:t,...o.slotProps[n]||{},...e}};return{c:o,ns:n,controls:s,teleportControls:i,viewClassNames:h,onLayoutPanelCreated:t=>{o.setLayoutPanel(t)},getCtrlProps:m,renderControl:(t,n={})=>{const a=t.name||t.id,i=m(t,n);if(e[a])return z(e,a,i);const r=o.providers[a],s=b((null==r?void 0:r.component)||"IBizControlShell");return r&&(i.provider=r),w(s,i)},getCtrlTeleportTag:t=>{var e,n;const a=r.get(t.id);if(a)return a;const i=null==(n=null==(e=o.parentView)?void 0:e.layoutPanel)?void 0:n.panelItems[t.name];return i?"#".concat(i.state.teleportTag):void 0},getControlStyle:()=>{const t={};return Object.assign(t,{display:o.state.hasError?"none":"initial"}),t}}},render(){var t,e;let n=null;if(this.c.state.isCreated)if(0===this.c.engines.length)n=N("span",{style:"color:red;"},[ibiz.i18n.t("vue3Util.view.viewType",{viewType:this.modelData.viewType})]);else{const e={...this.$slots};(null==(t=this.controls)?void 0:t.length)&&this.controls.forEach((t=>{const n=t.name||t.id;e[n]=e=>this.renderControl(t,e)}));const o=this.c.model.viewLayoutPanel,a=this.c.providers[o.name];n=w(b(a.component),{modelData:o,context:this.c.context,params:this.c.params,provider:a,container:this.c,style:this.getControlStyle(),onControllerAppear:this.onLayoutPanelCreated},e)}let o=null;this.c.state.isCreated&&(null==(e=this.teleportControls)?void 0:e.length)&&(o=this.teleportControls.map((t=>{let e;const n=this.getCtrlTeleportTag(t);return n?N("div",{style:this.getControlStyle()},[N(S,{to:n,disabled:!this.c.state.activated},(o=e=this.renderControl(t),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!T(o)?e:{default:()=>[e]}))]):(ibiz.log.error(ibiz.i18n.t("vue3Util.view.noTeleportTag",{name:t.name})),null);var o})));let a=null;if(this.c.state.hasError&&this.c.error.status){const t=ut(this.c.error.status);t&&("string"==typeof t.component&&(a=w(b(t.component))),a=w(t.component))}return A(N("div",{class:this.viewClassNames,id:this.c.id},[n,o,a]),[[O("loading"),this.c.state.isLoading]])}});class Xn{constructor(){this.component="IBizView"}createController(t,e,n,o){return new Bt(t,e,n,o)}}t("IBizView",ve(Qn,(function(t){t.component(Qn.name,Qn),jt("DEFAULT",(()=>new Hn)),jt("APPDATAUPLOADVIEW",(()=>new Xn))}))),t("TodoRedirect",D({setup(){const t=Wt(),{href:e}=window.location,n=e.lastIndexOf("?"),o=decodeURIComponent(e.substring(n+1,e.length));if(!o)throw new Error(ibiz.i18n.t("vue3Util.view.insufficientRedirection"));const a=Kt.parse(o,{delimiter:";"}),{apptype:i,todotype:r,todoid:s}=a,l={srfapptype:"pc",srfapp:""};i||(l.todourltype="RouterUrl"),async function(){let e=(await ibiz.net.post("/systodos/".concat(s,"/getlinkurl"),l)).data.linkurl;i?window.location.href=e:(0!==e.indexOf("/")&&(e="/".concat(e)),e+=";srfwf=".concat(r),t.push("/index".concat(e)))}()},render:()=>N("div",null,[ibiz.i18n.t("vue3Util.view.toDoList")])}));class Yn{constructor(){this.component="IBizPortalView"}}const Jn=D({name:"IBizPortalView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object}},setup(){var t;const e=re("view"),n=Ce(((...t)=>new ct(...t))),o=(null==(t=n.model.viewLayoutPanel)?void 0:t.controls)||n.model.controls,{viewType:a,sysCss:i,codeName:r}=n.model,s=a.toLowerCase(),l=null==i?void 0:i.cssName,c=[e.b(),e.b(s),e.m(r),l];return{c:n,ns:e,controls:o,viewClassNames:c}},render(){var t;let e=null;if(this.c.state.isCreated){const n={...this.$slots};(null==(t=this.controls)?void 0:t.length)&&this.controls.forEach((t=>{const e=t.name||t.id,o={context:this.c.context,params:this.c.params};this.c.slotProps[e]&&Object.assign(o,this.c.slotProps[e]);const a=n[e];if(a)return void(n[e]=()=>a({modelData:t,...o}));const i=this.c.providers[e];i&&(n[e]=()=>{const e=b(i.component);return w(e,{modelData:t,...o,provider:i})})})),n.dashboard&&(e=n.dashboard())}return N("div",{class:this.viewClassNames},[e])}}),Zn=(t("IBizPortalView",ve(Jn,(function(t){t.component(Jn.name,Jn),jt(ot.APP_PORTAL_VIEW,(()=>new Yn)),jt(ot.DE_PORTAL_VIEW,(()=>new Yn)),jt(ot.DE_PORTAL_VIEW9,(()=>new Yn))}))),D({name:"IBizDeRedirectView",props:{context:{type:Object,required:!0},params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},isEmbedCtrlNav:{type:Boolean,default:!1}},setup(t){const e=Ce(((...t)=>new ct(...t))),n=y(),o=y(),a=y();return e.evt.on("onCreated",(()=>{Vt(h(t.modelData),h(e.context),h(e.params)).then((async t=>{if("view"!==t.type)throw new k(ibiz.i18n.t("vue3Util.view.embeddedRedirectionView"));n.value=t.viewId,o.value=t.context,a.value=t.params}))})),t.isEmbedCtrlNav&&l((()=>[e.context,e.params]),(()=>{Vt(h(t.modelData),h(e.context),h(e.params)).then((async t=>{"view"===t.type&&(n.value=t.viewId,o.value=t.context)}))}),{deep:!0}),{c:e,toViewId:n,toViewContext:o,toViewParams:a}},render(){return this.toViewId?w(b("IBizViewShell"),{context:this.toViewContext,params:this.toViewParams,viewId:this.toViewId,...this.$attrs},this.$slots):A(N("div",{style:"width: 100%; height: 100%;"},null),[[O("loading"),!this.toViewId]])}}));class to{constructor(){this.component="IBizDeRedirectView"}}t("IBizDeRedirectView",ve(Zn,(function(t){t.component(Zn.name,Zn);const e=new to;jt(ot.DE_REDIRECT_VIEW,(()=>e))})));class eo{constructor(){this.component="IBizHtmlView"}}const no=D({name:"IBizHtmlView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object}},setup(){var t;const e=re("view"),n=Ce(((...t)=>new ct(...t))),o=(null==(t=n.model.viewLayoutPanel)?void 0:t.controls)||n.model.controls,{viewType:a,sysCss:i,codeName:r}=n.model,s=a.toLowerCase(),l=null==i?void 0:i.cssName,c=[e.b(),e.b(s),e.m(r),l],d=y(!1),u=E((()=>{const{htmlUrl:t}=n.model;return t?X.fill(t,n.context,n.params):""}));R((()=>{u.value&&(d.value=!0)}));return{c:n,ns:e,controls:o,viewClassNames:c,url:u,isLoading:d,onLoad:()=>{d.value=!1}}},render(){if(this.url)return A(N("div",{class:this.viewClassNames},[N("iframe",{src:this.url,onLoad:()=>this.onLoad()},null)]),[[O("loading"),this.isLoading]]);let t=null;const e=ut("404");return e&&("string"==typeof e.component&&(t=w(b(e.component))),t=w(e.component)),N("div",{class:this.viewClassNames},[t])}});t("IBizHtmlView",ve(no,(function(t){t.component(no.name,no),jt(ot.DE_HTML_VIEW,(()=>new eo))})));const oo=D({name:"IBizViewLayoutPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},container:{type:Object},data:{type:Object}},setup(t,{slots:e}){const n=ae(((...e)=>new kt(...e,t.container))),o=re("control-".concat(n.model.controlType.toLowerCase()));l((()=>t.data),(t=>{t&&(n.setInputData(t),n.load())}),{immediate:!0}),n.evt.on("onCreated",(()=>{Object.keys(n.panelItems).forEach((t=>{const e=n.panelItems[t];e.state=v(e.state)}))}));const a=(t,o)=>{var i,r;if(t.hidden)return null;const{providers:s,panelItems:l}=o||n,c=s[t.id];if(!c)return N("div",null,[ibiz.i18n.t("vue3Util.control.unsupportedPanel",{id:t.id,itemType:t.itemType})]);if("CTRLPOS"!==t.itemType&&e[t.id])return z(e,t.id,{model:t,data:n.data,value:n.data[t.id]});const d=b(c.component);let u;if("CTRLPOS"===t.itemType&&e[t.id]){const n=l[t.id];u=n.parent&&Mt(n.parent.model)?()=>e[t.id]({isSimple:!0,data:n.data}):()=>e[t.id]()}else"TABPANEL"===t.itemType&&(null==(i=t.panelTabPages)?void 0:i.length)?u=()=>t.panelTabPages.map((t=>a(t,o))):Nt(t)?u=void 0:(null==(r=t.panelItems)?void 0:r.length)&&(u=()=>t.panelItems.map((t=>a(t,o))));let p="";t.cssStyle&&(p=t.cssStyle);const h=l[t.id],m=function(t,e){var n;const o={};return null==(n=t.controlAttributes)||n.forEach((t=>{t.attrName&&t.attrValue&&(o[t.attrName]=lt.execSingleLine(t.attrValue,{...e.panel.getEventArgs(),data:e.data}))})),o}(t,h);return m.dynamicstyle&&("object"==typeof m.dynamicstyle?p+=Object.entries(m.dynamicstyle).map((([t,e])=>"".concat(t,":").concat(e,";"))).join(""):p+=m.dynamicstyle,delete m.dynamicstyle),w(d,{modelData:t,controller:h,key:t.id,style:p,attrs:m},u)};return C("renderPanelItem",a),{c:n,ns:o,renderPanelItem:a}},render(){const{state:t,model:e}=this.c;return N(b("iBizControlBase"),{controller:this.c},{default:()=>[N(b("iBizRow"),{class:this.ns.b("content"),layout:{layout:"FLEX"}},{default:()=>{var n;return[t.isCreated&&(this.$slots.default?this.$slots.default({panelItems:this.c.panelItems}):null==(n=e.rootPanelItems)?void 0:n.map((t=>{let e;const n=this.c.panelItems[t.id];return t.layoutPos.layout="FLEX",N(b("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=this.renderPanelItem(t))||"[object Object]"===Object.prototype.toString.call(o)&&!T(o)?e:{default:()=>[e]});var o})))]}})]})}});class ao{constructor(){this.component="IBizViewLayoutPanelControl"}}t("IBizViewLayoutPanelControl",ve(oo,(function(t){t.component(oo.name,oo),Ut(_t.VIEW_LAYOUT_PANEL,(()=>new ao))})));function io(t,e,n){var o,a;if(t.hidden)return;const{providers:i,panelItems:r}=e,s=i[t.id];if(!s)return N("div",null,[ibiz.i18n.t("vue3Util.control.unsupportedPanel",{id:t.id,itemType:t.itemType})]);const l=b(s.component);let c;"CTRLPOS"===t.itemType&&n.$slots[t.id]?c=()=>n.$slots[t.id]():"TABPANEL"===t.itemType&&(null==(o=t.panelTabPages)?void 0:o.length)?c=()=>t.panelTabPages.map((t=>io(t,e,n))):Nt(t)?c=void 0:(null==(a=t.panelItems)?void 0:a.length)&&(c=()=>t.panelItems.map((t=>io(t,e,n))));let d="";t.cssStyle&&(d=t.cssStyle);const u=r[t.id],p=function(t,e){var n;const o={};return null==(n=t.controlAttributes)||n.forEach((t=>{t.attrName&&t.attrValue&&(o[t.attrName]=lt.execSingleLine(t.attrValue,{...e.panel.getEventArgs(),data:e.data}))})),o}(t,u);return p.dynamicstyle&&("object"==typeof p.dynamicstyle?d+=Object.entries(p.dynamicstyle).map((([t,e])=>"".concat(t,":").concat(e,";"))).join(""):d+=p.dynamicstyle,delete p.dynamicstyle),w(l,{modelData:t,controller:u,key:t.id,style:d,attrs:p},c)}const ro=D({name:"IBizPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},container:{type:Object},data:{type:Object},loadDefault:{type:Boolean,default:!0}},setup(t){const e=ae(((...e)=>new Ft(...e,t.container))),n=re("control-".concat(e.model.controlType.toLowerCase()));l((()=>t.data),(t=>{t&&(e.setInputData(t),e.load())}),{immediate:!0}),e.evt.on("onCreated",(()=>{Object.keys(e.panelItems).forEach((t=>{const n=e.panelItems[t];n.state=v(n.state)}))}));const o=m("renderPanelItem");return C("renderPanelItem",o||io),{c:e,ns:n}},render(){const{state:t,model:e}=this.c;return N(b("iBizControlBase"),{controller:this.c},{default:()=>[N(b("iBizRow"),{class:this.ns.b("content"),layout:{layout:"FLEX"}},{default:()=>{var n;return[t.isCreated&&(this.$slots.default?this.$slots.default({panelItems:this.c.panelItems}):null==(n=e.rootPanelItems)?void 0:n.map((t=>{let e;const n=this.c.panelItems[t.id];return t.layoutPos.layout="FLEX",N(b("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=io(t,this.c,this))||"[object Object]"===Object.prototype.toString.call(o)&&!T(o)?e:{default:()=>[e]});var o})))]}})]})}});class so{constructor(){this.component="IBizPanelControl"}}t("IBizPanelControl",ve(ro,(function(t){t.component(ro.name,ro),Ut(_t.PANEL,(()=>new so))})));function lo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function co(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function uo(t,e){for(var n,o="",a=0,i=-1,r=0,s=0;s<=t.length;++s){if(s<t.length)n=t.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(i===s-1||1===r);else if(i!==s-1&&2===r){if(o.length<2||2!==a||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){var l=o.lastIndexOf("/");if(l!==o.length-1){-1===l?(o="",a=0):a=(o=o.slice(0,l)).length-1-o.lastIndexOf("/"),i=s,r=0;continue}}else if(2===o.length||1===o.length){o="",a=0,i=s,r=0;continue}e&&(o.length>0?o+="/..":o="..",a=2)}else o.length>0?o+="/"+t.slice(i+1,s):o=t.slice(i+1,s),a=s-i-1;i=s,r=0}else 46===n&&-1!==r?++r:r=-1}return o}var po={resolve:function(){for(var t,e="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var a;o>=0?a=arguments[o]:(void 0===t&&(t=process.cwd()),a=t),co(a),0!==a.length&&(e=a+"/"+e,n=47===a.charCodeAt(0))}return e=uo(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(t){if(co(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return 0!==(t=uo(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return co(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];co(n),n.length>0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":po.normalize(t)},relative:function(t,e){if(co(t),co(e),t===e)return"";if((t=po.resolve(t))===(e=po.resolve(e)))return"";for(var n=1;n<t.length&&47===t.charCodeAt(n);++n);for(var o=t.length,a=o-n,i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var r=e.length-i,s=a<r?a:r,l=-1,c=0;c<=s;++c){if(c===s){if(r>s){if(47===e.charCodeAt(i+c))return e.slice(i+c+1);if(0===c)return e.slice(i+c)}else a>s&&(47===t.charCodeAt(n+c)?l=c:0===c&&(l=0));break}var d=t.charCodeAt(n+c);if(d!==e.charCodeAt(i+c))break;47===d&&(l=c)}var u="";for(c=n+l+1;c<=o;++c)c!==o&&47!==t.charCodeAt(c)||(0===u.length?u+="..":u+="/..");return u.length>0?u+e.slice(i+l):(i+=l,47===e.charCodeAt(i)&&++i,e.slice(i))},_makeLong:function(t){return t},dirname:function(t){if(co(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,o=-1,a=!0,i=t.length-1;i>=1;--i)if(47===(e=t.charCodeAt(i))){if(!a){o=i;break}}else a=!1;return-1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');co(t);var n,o=0,a=-1,i=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var r=e.length-1,s=-1;for(n=t.length-1;n>=0;--n){var l=t.charCodeAt(n);if(47===l){if(!i){o=n+1;break}}else-1===s&&(i=!1,s=n+1),r>=0&&(l===e.charCodeAt(r)?-1==--r&&(a=n):(r=-1,a=s))}return o===a?a=s:-1===a&&(a=t.length),t.slice(o,a)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!i){o=n+1;break}}else-1===a&&(i=!1,a=n+1);return-1===a?"":t.slice(o,a)},extname:function(t){co(t);for(var e=-1,n=0,o=-1,a=!0,i=0,r=t.length-1;r>=0;--r){var s=t.charCodeAt(r);if(47!==s)-1===o&&(a=!1,o=r+1),46===s?-1===e?e=r:1!==i&&(i=1):-1!==e&&(i=-1);else if(!a){n=r+1;break}}return-1===e||-1===o||0===i||1===i&&e===o-1&&e===n+1?"":t.slice(e,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var n=e.dir||e.root,o=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+o:n+t+o:o}("/",t)},parse:function(t){co(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,o=t.charCodeAt(0),a=47===o;a?(e.root="/",n=1):n=0;for(var i=-1,r=0,s=-1,l=!0,c=t.length-1,d=0;c>=n;--c)if(47!==(o=t.charCodeAt(c)))-1===s&&(l=!1,s=c+1),46===o?-1===i?i=c:1!==d&&(d=1):-1!==i&&(d=-1);else if(!l){r=c+1;break}return-1===i||-1===s||0===d||1===d&&i===s-1&&i===r+1?-1!==s&&(e.base=e.name=0===r&&a?t.slice(1,s):t.slice(r,s)):(0===r&&a?(e.name=t.slice(1,i),e.base=t.slice(1,s)):(e.name=t.slice(r,i),e.base=t.slice(r,s)),e.ext=t.slice(i,s)),r>0?e.dir=t.slice(0,r-1):a&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};po.posix=po;var ho=po,mo=lo(ho);t("PluginFactory",class{constructor(){this.urlReg=/^http[s]?:\/\/[^\s]*/,this.cache=new Map,this.pluginCache=new Map,this.pluginCodes=[],this.predefinedPlugins=new Map,this.ignoreRules=[],this.loadQueue=new Map}isIgnore(t){return this.ignoreRules.some((e=>"string"==typeof e?t===e:e.test(t)))}setDevIgnore(t){this.ignoreRules.push(t)}registerPredefinedPlugin(t){this.predefinedPlugins.set(t.name,t)}register(t){this.pluginCodes.forEach((e=>{t.use(e)}))}async loadPredefinedPlugin(t){if(this.predefinedPlugins.has(t)){const e=this.predefinedPlugins.get(t);e&&await this.loadPluginRef(e.name,e.path)}}setPluginCode(t){this.pluginCodes.push(t),Yt.useComponent.callSync(null,t)}async loadPlugin(t,e=ibiz.env.appId){if(!0===t.runtimeObject){const n=t;if(n){const t=n.rtobjectName,o=n.rtobjectRepo;if(this.isIgnore(o))return!0;if(this.pluginCache.has(t))return!0;if(this.loadQueue.has(o)){const t=await this.loadQueue.get(o);try{return await t}catch(t){return!1}}try{const t=this.loadPluginRef(n.rtobjectName,n.rtobjectRepo,e);this.loadQueue.set(o,t);return await t}catch(t){throw new $(n,ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad"))}finally{this.loadQueue.delete(o)}}}return!1}async loadPluginRef(t,e,n=ibiz.env.appId){if(this.isIgnore(e))return!0;if(this.pluginCache.has(t))return!0;let o=null;{const t=e,a=this.urlReg.test(t)?"".concat(t,"/package.json"):"".concat("FULLCODE"===ibiz.env.runContainer&&n!==ibiz.env.appId?ibiz.hub.microAppConfigCenter.getPluginBaseUrl(n):ibiz.env.pluginBaseUrl,"/").concat(ho.join(t,"package.json")),i=await ibiz.net.axios({method:"get",headers:{"Access-Control-Allow-Origin":"*"},url:a});if(200!==i.status)throw new Error(ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad"));o=i.data}Object.assign(o,{appId:n});const a=new qt(t,e,o);if(a){await this.loadPluginExternal(a.config);try{return await this.loadScript(a),this.pluginCache.set(t,a),!0}catch(t){ibiz.log.error(t)}}return!1}async loadScript(t){const e=t.repo,{name:n,appId:o,system:a,styles:i=[]}=t.config;let r="";if(r=ho.join(e,a),r){if(this.cache.has(r))return;const t="FULLCODE"===ibiz.env.runContainer&&o!==ibiz.env.appId?ibiz.hub.microAppConfigCenter.getPluginBaseUrl(o):ibiz.env.pluginBaseUrl;let a=null;const s=this.parseUrl(r,t),l=("string"==typeof i?[i]:i).map((n=>this.parseUrl(mo.join(e,n),t)));if(System.addImportMap({imports:{[n]:s},styles:{[n]:l}}),a=await System.import(n),!a)throw new k(ibiz.i18n.t("vue3Util.plugin.fileContentFormat"));if(!a.default)throw new k(ibiz.i18n.t("vue3Util.plugin.failedRemotePluginLoad"));this.setPluginCode(a.default),this.cache.set(r,!0)}}parseUrl(t,e=ibiz.env.pluginBaseUrl){if(this.urlReg.test(t))return t;let n="";n=this.urlReg.test(e)?t.startsWith("/")?e+t:"".concat(e,"/").concat(t):"".concat(ho.join(e,t));const{origin:o,pathname:a}=window.location;return a.endsWith("/")&&n.startsWith("/")&&(n=n.substring(1)),!1===this.urlReg.test(n)&&(n="".concat(o).concat(a).concat(n)),n}async loadPluginExternal(t){if(!t["systemjs-importmap"])return;const e=this.handleSystemImportMap(t["systemjs-importmap"],t.appId);if(e.packages){const n=e.packages;for(const e in n){const o=n[e],a=await ibiz.net.axios({method:"get",headers:{"Access-Control-Allow-Origin":"*"},url:o});if(200!==a.status)throw new Error(ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad"));const i=a.data;Object.assign(i,{appId:t.appId}),await this.loadPluginExternal(i)}}System.addImportMap(e)}handleSystemImportMap(t,e){if(t){if(t.baseUrl||"FULLCODE"!==ibiz.env.runContainer||e===ibiz.env.appId||(t.baseUrl=ibiz.hub.microAppConfigCenter.getPluginBaseUrl(e)),t.packages){const e=t.packages;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];e[n]=this.parseUrl(o,t.baseUrl)}}if(t.imports){const e=t.imports;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];e[n]=this.parseUrl(o,t.baseUrl)}}if(t.styles){const e=t.styles;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];e[n]="string"==typeof o?this.parseUrl(o,t.baseUrl):o.map((e=>this.parseUrl(e,t.baseUrl)))}}return t}return null}});class vo{constructor(t,e,n){this.required=!0,e&&(this.default=e),n&&(this.validator=n),this.type=t}}function fo(){return{value:String,controller:new vo(Object),data:new vo(Object),disabled:{type:Boolean},readonly:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},overflowMode:{type:String},controlParams:{type:Object,required:!1}}}function go(){return{change:(t,e,n)=>!0,blur:t=>!0,focus:t=>!0,enter:t=>!0,infoTextChange:t=>!0}}function yo(){return{hasError:{type:Boolean}}}function wo(){return{...fo(),value:[String,Number]}}function bo(){return{...fo(),value:[String,Number,Object,Array]}}function Co(){return{...fo(),value:[String,Number]}}function Io(){return{...fo(),value:[String,Number]}}function Po(){return{...fo(),value:[String,Number]}}function Do(){return{...fo(),value:[String,Array,Object,Number]}}function Eo(){return{...fo(),value:[String,Number]}}function No(){return{...fo(),value:[String,Number]}}function Ao(){return{...fo(),value:{type:Object}}}function Oo(){return{...fo(),value:[String,Number]}}function xo(){return{...fo(),value:[String,Number]}}function To(){return{...fo(),value:[String,Number]}}function So(){return{...fo(),value:[String,Number]}}function zo(){return{...fo(),value:[String,Number,Array]}}function Ro(){return{...fo(),value:[String,Number]}}function Lo(){return{...fo(),value:[String,Number]}}function Bo(){return{...fo(),value:[String,Number]}}function jo(){return{...fo(),value:String}}function Vo(){return{...fo(),value:[String,Number]}}function ko(){return{...fo(),value:String,language:{type:String},theme:{type:String}}}function Mo(){return{...fo(),value:String}}function Uo(){return{...fo(),data:{type:Object,required:!1},controller:{type:Object,required:!1},disabled:{type:Boolean,required:!1}}}function _o(){return{...fo(),value:[Array,Array]}}function Fo(){return{...fo(),value:String}}function qo(){return{...fo(),value:String}}function Go(){return{...fo(),value:String}}function Wo(){return{...fo(),value:Number}}function $o(){return{...fo(),value:String}}t("RequiredProp",vo);t("en",{vue3Util:{common:{undefined:"undefined",onFoundCorrespondingPart:"Undefined adapter with no corresponding part found",noFoundViewModel:"View model not found",noSupportLoadingDynamic:"{codeName}No entity, do not support loading dynamic models at this time"},control:{unsupportedPanel:"Unsupported panel items: {id} - {itemType}"},panelComponent:{noConfiguardDataObject:"No data object name config",noSupportedDataSourceType:"The data source type {dataSourceType} is not supported",noConfiguredEntityLogic:"No entity logic config",noConfiguredEntity:"No entity config",noReturnValue:"The entity logic {appDELogicId} has no return value",noAttribute:"There is no {dataName} attribute in the global variable.",noConfiguredScript:"No javaScript config",noConfiguerdEntityBehanior:"No entity behavior config",sessionView:"The session to which the view is bound does not exist {dataName}",viewStateAttribute:"There is no {dataName} attribute in the view state",noImplementMethod:"Method not implemented.",noProvidedSlot:"No {id} slot provided",cannotEmpty:"{caption} cannot be empty",unadaptedLayout:"Unadapted layout placeholder {layoutPos}",placeholderIdentifier:"The placeholder identifier for panel member {id} of view {viewCodeName} is:",refresh:"Refresh",wxQrcodeCaption:"Please use wechat to scan the QR code to log in"},plugin:{failureConfigurationLoad:"Configuration load failure",failedRemotePluginLoad:"Remote Plugin failed to load, Remote Plugin did not find [default] Default Export",fileContentFormat:"Remote plugin failed to load, file not found or file content format is incorrect"},use:{control:{parameterChanges:"Context or view parameter changes for {id}:",stateChange:"Part [{name}] state change"},focusBlur:{noFocus:"No focus, no out-of-focus triggering"},view:{stateChange:"View [{name}] state change"}},util:{noInjected:"The createVueApp method is not injected.",convertString:"Failed to convert to string",viewIdentifiers:"View identifiers do not exist for {depth} level routes",noFoundView:"View not found {viewCodeName}",routeCorrectly:"Cannot get the route correctly, could be a dependency issue."},view:{redirectionProgress:"Redirection in progress",viewType:"View type {viewType} is not supported yet.",noTeleportTag:"No teleportTag was found for part {name}.",embeddedRedirectionView:"Embedded redirection view does not support url jumping",insufficientRedirection:"Insufficient redirection parameters to jump",toDoList:"To-Do List Redirection"}}}),t("zhCn",{vue3Util:{common:{undefined:"未定义",onFoundCorrespondingPart:"未定义未找到对应部件的适配器",noFoundViewModel:"未找到视图模型",noSupportLoadingDynamic:"{codeName}无实体,暂不支持加载动态模型"},control:{unsupportedPanel:"暂未支持的面板项: {id} - {itemType}"},panelComponent:{noConfiguardDataObject:"没有配置数据对象名称",noSupportedDataSourceType:"数据源类型{dataSourceType}暂未支持",noConfiguredEntityLogic:"没有配置实体逻辑",noConfiguredEntity:"没有配置实体",noReturnValue:"实体逻辑{appDELogicId}没有返回值",noAttribute:"全局变量里没有{dataName}属性",noConfiguredScript:"没有配置脚本代码",noConfiguerdEntityBehanior:"没有配置实体行为",sessionView:"绑定视图的会话不存在{dataName}",viewStateAttribute:"视图state里没有{dataName}属性",noImplementMethod:"未执行的方法",noProvidedSlot:"未提供{id}插槽",cannotEmpty:"{caption} 不能为空",unadaptedLayout:"未适配的布局占位{layoutPos}",placeholderIdentifier:"视图{viewCodeName}的面板成员{id}的占位标识是:",refresh:"刷新",wxQrcodeCaption:"请使用微信扫描二维码登录"},plugin:{failureConfigurationLoad:"配置加载失败",failedRemotePluginLoad:"远程插件加载失败, 远程插件未找到[default]默认导出",fileContentFormat:"远程插件加载失败, 未找到文件或文件内容格式不正确"},use:{control:{parameterChanges:"{id}的上下文或视图参数变更:",stateChange:"部件 [{name}] state 变更"},focusBlur:{noFocus:"没有聚焦,不触发失焦"},view:{stateChange:"视图 [{name}] state 变更"}},util:{noInjected:"没有注入createVueApp方法",convertString:"转换成字符串失败",viewIdentifiers:"第{depth}级路由不存在视图标识",noFoundView:"找不到视图{viewCodeName}",routeCorrectly:"无法正确获取route,可能是依赖问题"},view:{redirectionProgress:"重定向跳转中",viewType:"视图类型{viewType}暂未支持",noTeleportTag:"没有找到部件{name}的teleportTag",embeddedRedirectionView:"嵌入重定向视图不支持url跳转",insufficientRedirection:"重定向参数不足无法跳转",toDoList:"待办列表重定向"}}})}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-base.d.ts","sourceRoot":"","sources":["../../../src/common/control-base/control-base.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control-base.d.ts","sourceRoot":"","sources":["../../../src/common/control-base/control-base.tsx"],"names":[],"mappings":"AAsBA,OAAO,qBAAqB,CAAC;AAG7B,eAAO,MAAM,eAAe,EAAE,GA4R5B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, reactive, createVNode, resolveComponent, computed, h } from 'vue';
|
|
2
|
-
import { ScriptFactory } from '@ibiz-template/runtime';
|
|
2
|
+
import { ScriptFactory, PredefinedControlRender } from '@ibiz-template/runtime';
|
|
3
3
|
import { fixJsonString } from '@ibiz-template/core';
|
|
4
4
|
import { isNil } from 'ramda';
|
|
5
5
|
import '../../use/index.mjs';
|
|
@@ -73,7 +73,7 @@ const IBizControlBase = /* @__PURE__ */ defineComponent({
|
|
|
73
73
|
};
|
|
74
74
|
const getControlRender = (data) => {
|
|
75
75
|
var _a, _b;
|
|
76
|
-
const controlRenders = model.controlRenders ? model.controlRenders.filter((item) => item.id
|
|
76
|
+
const controlRenders = model.controlRenders ? model.controlRenders.filter((item) => !Object.values(PredefinedControlRender).includes(item.id)) : void 0;
|
|
77
77
|
if (!controlRenders || controlRenders.length === 0) {
|
|
78
78
|
return void 0;
|
|
79
79
|
}
|
|
@@ -106,6 +106,36 @@ const IBizControlBase = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
const data = props.controller.data || props.controller.items;
|
|
107
107
|
return getControlRender(data);
|
|
108
108
|
});
|
|
109
|
+
const disableMaskInfoRender = () => {
|
|
110
|
+
const disableRender = model.controlRenders ? model.controlRenders.find((item) => item.id === PredefinedControlRender.DISABLEPANEL) : void 0;
|
|
111
|
+
if (!disableRender) {
|
|
112
|
+
return createVNode("div", {
|
|
113
|
+
"innerHTML": props.controller.state.maskOption.maskInfo || "",
|
|
114
|
+
"class": [ns.e("disable-mask-text")]
|
|
115
|
+
}, null);
|
|
116
|
+
}
|
|
117
|
+
if (disableRender.renderType === "LAYOUTPANEL_MODEL" && disableRender.layoutPanelModel) {
|
|
118
|
+
const htmlCode = ScriptFactory.execScriptFn({
|
|
119
|
+
...props.controller.getEventArgs()
|
|
120
|
+
}, disableRender.layoutPanelModel, {
|
|
121
|
+
isAsync: false,
|
|
122
|
+
singleRowReturn: true
|
|
123
|
+
});
|
|
124
|
+
return createVNode("div", {
|
|
125
|
+
"innerHTML": htmlCode,
|
|
126
|
+
"class": [ns.e("disable-mask-text")]
|
|
127
|
+
}, null);
|
|
128
|
+
}
|
|
129
|
+
if (disableRender.renderType === "LAYOUTPANEL" && disableRender.layoutPanel) {
|
|
130
|
+
return createVNode(resolveComponent("iBizControlShell"), {
|
|
131
|
+
"class": [ns.e("disable-mask-text")],
|
|
132
|
+
"data": {},
|
|
133
|
+
"params": props.controller.params,
|
|
134
|
+
"context": props.controller.context,
|
|
135
|
+
"modelData": disableRender.layoutPanel
|
|
136
|
+
}, null);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
109
139
|
return {
|
|
110
140
|
ns,
|
|
111
141
|
typeClass,
|
|
@@ -114,6 +144,7 @@ const IBizControlBase = /* @__PURE__ */ defineComponent({
|
|
|
114
144
|
codeName,
|
|
115
145
|
controls,
|
|
116
146
|
customRender,
|
|
147
|
+
disableMaskInfoRender,
|
|
117
148
|
onLayoutPanelCreated
|
|
118
149
|
};
|
|
119
150
|
},
|
|
@@ -167,7 +198,7 @@ const IBizControlBase = /* @__PURE__ */ defineComponent({
|
|
|
167
198
|
"style": this.inlineStyle
|
|
168
199
|
}, [layoutPanel || this.customRender || ((_c = (_b = this.$slots).default) == null ? void 0 : _c.call(_b)), state.disabled && createVNode("div", {
|
|
169
200
|
"class": [this.ns.e("mask-container"), this.ns.m(state.maskOption.mode.toLowerCase())]
|
|
170
|
-
}, [state.maskOption.mode === "MASK" && (
|
|
201
|
+
}, [state.maskOption.mode === "MASK" && this.disableMaskInfoRender()])]);
|
|
171
202
|
}
|
|
172
203
|
});
|
|
173
204
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-render.d.ts","sourceRoot":"","sources":["../../../src/common/custom-render/custom-render.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,QAAQ,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"custom-render.d.ts","sourceRoot":"","sources":["../../../src/common/custom-render/custom-render.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,QAAQ,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AACvD,OAAO,EACL,iBAAiB,EAGlB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,sBAAsB,CAAC;AAE9B,eAAO,MAAM,gBAAgB;;;;;;;4BAiDI,KAAK,GAAG,SAAS;;;;;;YAmDhD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createVNode, resolveComponent } from 'vue';
|
|
2
|
-
import { ScriptFactory } from '@ibiz-template/runtime';
|
|
2
|
+
import { ScriptFactory, PredefinedControlRender } from '@ibiz-template/runtime';
|
|
3
3
|
import { fixJsonString } from '@ibiz-template/core';
|
|
4
4
|
import '../../use/index.mjs';
|
|
5
5
|
import './custom-render.css';
|
|
@@ -47,7 +47,7 @@ const IBizCustomRender = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
if (!controlRenders || controlRenders.length === 0) {
|
|
48
48
|
return void 0;
|
|
49
49
|
}
|
|
50
|
-
const noDataRender = controlRenders.find((item) => item.id ===
|
|
50
|
+
const noDataRender = controlRenders.find((item) => item.id === PredefinedControlRender.EMPTYPANEL);
|
|
51
51
|
if (!noDataRender)
|
|
52
52
|
return void 0;
|
|
53
53
|
if (noDataRender.renderType === "LAYOUTPANEL_MODEL" && noDataRender.layoutPanelModel) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../../src/control/panel/panel/panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAST,MAAM,KAAK,CAAC;AACb,OAAO,EACL,MAAM,EAKP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,cAAc,CAAC;AACtB,OAAO,EACL,gBAAgB,EAChB,WAAW,EAGX,eAAe,EAGhB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../../src/control/panel/panel/panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAST,MAAM,KAAK,CAAC;AACb,OAAO,EACL,MAAM,EAKP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,cAAc,CAAC;AACtB,OAAO,EACL,gBAAgB,EAChB,WAAW,EAGX,eAAe,EAGhB,MAAM,wBAAwB,CAAC;AAsHhC;;GAEG;AACH,eAAO,MAAM,YAAY;IAGrB;;OAEG;;;;;IAKH;;OAEG;;;;;IAEH;;;OAGG;;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;IAEH;;;OAGG;;;;;;;;;IA/BH;;OAEG;;;;;IAKH;;OAEG;;;;;IAEH;;;OAGG;;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;IAEH;;;OAGG;;;;;;;;MA8EL,CAAC"}
|
|
@@ -64,12 +64,23 @@ function renderPanelItem(panelItem, c, ins) {
|
|
|
64
64
|
tempStyle = panelItem.cssStyle;
|
|
65
65
|
}
|
|
66
66
|
const panelItemC = panelItems[panelItem.id];
|
|
67
|
+
const attrs = renderAttrs(panelItem, panelItemC);
|
|
68
|
+
if (attrs.dynamicstyle) {
|
|
69
|
+
if (typeof attrs.dynamicstyle === "object") {
|
|
70
|
+
tempStyle += Object.entries(attrs.dynamicstyle).map(([key, value]) => {
|
|
71
|
+
return "".concat(key, ":").concat(value, ";");
|
|
72
|
+
}).join("");
|
|
73
|
+
} else {
|
|
74
|
+
tempStyle += attrs.dynamicstyle;
|
|
75
|
+
}
|
|
76
|
+
delete attrs.dynamicstyle;
|
|
77
|
+
}
|
|
67
78
|
return h(component, {
|
|
68
79
|
modelData: panelItem,
|
|
69
80
|
controller: panelItemC,
|
|
70
81
|
key: panelItem.id,
|
|
71
82
|
style: tempStyle,
|
|
72
|
-
attrs
|
|
83
|
+
attrs
|
|
73
84
|
}, children);
|
|
74
85
|
}
|
|
75
86
|
const PanelControl = /* @__PURE__ */ defineComponent({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-layout-panel.d.ts","sourceRoot":"","sources":["../../../../src/control/panel/view-layout-panel/view-layout-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAGR,KAAK,EAKN,MAAM,KAAK,CAAC;AACb,OAAO,EAGL,UAAU,EAEV,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,0BAA0B,CAAC;AAClC,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAIlB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AA0BhC;;GAEG;AACH,eAAO,MAAM,sBAAsB;IAG/B;;OAEG;;;;;IAKH;;OAEG;;;;;IAEH;;;OAGG;;;;;IAEH;;;OAGG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;;;;iCAuCU,UAAU;;;;;;;sBASpB,KAAK,GAAG,IAAI;;IA3Ef;;OAEG;;;;;IAKH;;OAEG;;;;;IAEH;;;OAGG;;;;;IAEH;;;OAGG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;;;
|
|
1
|
+
{"version":3,"file":"view-layout-panel.d.ts","sourceRoot":"","sources":["../../../../src/control/panel/view-layout-panel/view-layout-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAGR,KAAK,EAKN,MAAM,KAAK,CAAC;AACb,OAAO,EAGL,UAAU,EAEV,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,0BAA0B,CAAC;AAClC,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAIlB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AA0BhC;;GAEG;AACH,eAAO,MAAM,sBAAsB;IAG/B;;OAEG;;;;;IAKH;;OAEG;;;;;IAEH;;;OAGG;;;;;IAEH;;;OAGG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;;;;iCAuCU,UAAU;;;;;;;sBASpB,KAAK,GAAG,IAAI;;IA3Ef;;OAEG;;;;;IAKH;;OAEG;;;;;IAEH;;;OAGG;;;;;IAEH;;;OAGG;;;;IAEH;;OAEG;;;;IAEH;;OAEG;;;;;;MAgLL,CAAC"}
|
|
@@ -144,12 +144,23 @@ const ViewLayoutPanelControl = /* @__PURE__ */ defineComponent({
|
|
|
144
144
|
tempStyle = panelItem.cssStyle;
|
|
145
145
|
}
|
|
146
146
|
const panelItemC = panelItems[panelItem.id];
|
|
147
|
+
const attrs = renderAttrs(panelItem, panelItemC);
|
|
148
|
+
if (attrs.dynamicstyle) {
|
|
149
|
+
if (typeof attrs.dynamicstyle === "object") {
|
|
150
|
+
tempStyle += Object.entries(attrs.dynamicstyle).map(([key, value]) => {
|
|
151
|
+
return "".concat(key, ":").concat(value, ";");
|
|
152
|
+
}).join("");
|
|
153
|
+
} else {
|
|
154
|
+
tempStyle += attrs.dynamicstyle;
|
|
155
|
+
}
|
|
156
|
+
delete attrs.dynamicstyle;
|
|
157
|
+
}
|
|
147
158
|
return h(component, {
|
|
148
159
|
modelData: panelItem,
|
|
149
160
|
controller: panelItemC,
|
|
150
161
|
key: panelItem.id,
|
|
151
162
|
style: tempStyle,
|
|
152
|
-
attrs
|
|
163
|
+
attrs
|
|
153
164
|
}, children);
|
|
154
165
|
};
|
|
155
166
|
provide("renderPanelItem", renderPanelItem);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-container/panel-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,wBAAwB,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,cAAc;IAGvB;;OAEG;;;;;IAEH;;OAEG;;;;;;;;;IANH;;OAEG;;;;;IAEH;;OAEG;;;;;
|
|
1
|
+
{"version":3,"file":"panel-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/panel-container/panel-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,wBAAwB,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,cAAc;IAGvB;;OAEG;;;;;IAEH;;OAEG;;;;;;;;;IANH;;OAEG;;;;;IAEH;;OAEG;;;;;YAoGL,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode, defineComponent, computed, createVNode, resolveComponent } from 'vue';
|
|
1
|
+
import { isVNode, defineComponent, computed, createVNode, resolveComponent, mergeProps } from 'vue';
|
|
2
2
|
import '../../use/index.mjs';
|
|
3
3
|
import { PanelContainerController } from './panel-container.controller.mjs';
|
|
4
4
|
import './panel-container.css';
|
|
@@ -42,7 +42,7 @@ const PanelContainer = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
};
|
|
43
43
|
},
|
|
44
44
|
render() {
|
|
45
|
-
var _a, _b;
|
|
45
|
+
var _a, _b, _c;
|
|
46
46
|
let _slot;
|
|
47
47
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
48
48
|
const content = createVNode(resolveComponent("iBizRow"), {
|
|
@@ -62,6 +62,30 @@ const PanelContainer = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
})) ? _slot : {
|
|
63
63
|
default: () => [_slot]
|
|
64
64
|
});
|
|
65
|
+
const attrs = (_c = this.$attrs) == null ? void 0 : _c.attrs;
|
|
66
|
+
if (attrs && attrs.dynamictooltip) {
|
|
67
|
+
return createVNode(resolveComponent("el-tooltip"), {
|
|
68
|
+
"placement": "right",
|
|
69
|
+
"popper-class": this.ns.e("dynamic-tooltip")
|
|
70
|
+
}, {
|
|
71
|
+
default: () => {
|
|
72
|
+
return createVNode("div", mergeProps({
|
|
73
|
+
"class": this.classArr,
|
|
74
|
+
"onClick": () => {
|
|
75
|
+
this.controller.onClick();
|
|
76
|
+
}
|
|
77
|
+
}, this.$attrs), [this.controller.model.cssStyle ? createVNode("style", {
|
|
78
|
+
"type": "text/css"
|
|
79
|
+
}, [this.controller.model.cssStyle]) : null, content]);
|
|
80
|
+
},
|
|
81
|
+
content: () => {
|
|
82
|
+
return createVNode("div", {
|
|
83
|
+
"class": this.ns.e("dynamic-tooltip-content"),
|
|
84
|
+
"innerHTML": attrs.dynamictooltip
|
|
85
|
+
}, null);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
65
89
|
return createVNode("div", {
|
|
66
90
|
"class": this.classArr,
|
|
67
91
|
"onClick": () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../src/util/render/render.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../src/util/render/render.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAiBnD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,MAAO,iBAAiB,KAAG,OAS5D,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isNil } from 'ramda';
|
|
2
|
+
import { PredefinedControlRender } from '@ibiz-template/runtime';
|
|
2
3
|
|
|
3
4
|
"use strict";
|
|
4
5
|
function renderString(value) {
|
|
@@ -24,7 +25,9 @@ const hasEmptyPanelRenderer = (c) => {
|
|
|
24
25
|
if (!controlRenders || controlRenders.length === 0) {
|
|
25
26
|
return false;
|
|
26
27
|
}
|
|
27
|
-
return !!controlRenders.find(
|
|
28
|
+
return !!controlRenders.find(
|
|
29
|
+
(item) => item.id === PredefinedControlRender.EMPTYPANEL
|
|
30
|
+
);
|
|
28
31
|
};
|
|
29
32
|
|
|
30
33
|
export { hasEmptyPanelRenderer, renderString };
|
|
@@ -75,7 +75,7 @@ const IBizControlBase = /* @__PURE__ */ vue.defineComponent({
|
|
|
75
75
|
};
|
|
76
76
|
const getControlRender = (data) => {
|
|
77
77
|
var _a, _b;
|
|
78
|
-
const controlRenders = model.controlRenders ? model.controlRenders.filter((item) => item.id
|
|
78
|
+
const controlRenders = model.controlRenders ? model.controlRenders.filter((item) => !Object.values(runtime.PredefinedControlRender).includes(item.id)) : void 0;
|
|
79
79
|
if (!controlRenders || controlRenders.length === 0) {
|
|
80
80
|
return void 0;
|
|
81
81
|
}
|
|
@@ -108,6 +108,36 @@ const IBizControlBase = /* @__PURE__ */ vue.defineComponent({
|
|
|
108
108
|
const data = props.controller.data || props.controller.items;
|
|
109
109
|
return getControlRender(data);
|
|
110
110
|
});
|
|
111
|
+
const disableMaskInfoRender = () => {
|
|
112
|
+
const disableRender = model.controlRenders ? model.controlRenders.find((item) => item.id === runtime.PredefinedControlRender.DISABLEPANEL) : void 0;
|
|
113
|
+
if (!disableRender) {
|
|
114
|
+
return vue.createVNode("div", {
|
|
115
|
+
"innerHTML": props.controller.state.maskOption.maskInfo || "",
|
|
116
|
+
"class": [ns.e("disable-mask-text")]
|
|
117
|
+
}, null);
|
|
118
|
+
}
|
|
119
|
+
if (disableRender.renderType === "LAYOUTPANEL_MODEL" && disableRender.layoutPanelModel) {
|
|
120
|
+
const htmlCode = runtime.ScriptFactory.execScriptFn({
|
|
121
|
+
...props.controller.getEventArgs()
|
|
122
|
+
}, disableRender.layoutPanelModel, {
|
|
123
|
+
isAsync: false,
|
|
124
|
+
singleRowReturn: true
|
|
125
|
+
});
|
|
126
|
+
return vue.createVNode("div", {
|
|
127
|
+
"innerHTML": htmlCode,
|
|
128
|
+
"class": [ns.e("disable-mask-text")]
|
|
129
|
+
}, null);
|
|
130
|
+
}
|
|
131
|
+
if (disableRender.renderType === "LAYOUTPANEL" && disableRender.layoutPanel) {
|
|
132
|
+
return vue.createVNode(vue.resolveComponent("iBizControlShell"), {
|
|
133
|
+
"class": [ns.e("disable-mask-text")],
|
|
134
|
+
"data": {},
|
|
135
|
+
"params": props.controller.params,
|
|
136
|
+
"context": props.controller.context,
|
|
137
|
+
"modelData": disableRender.layoutPanel
|
|
138
|
+
}, null);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
111
141
|
return {
|
|
112
142
|
ns,
|
|
113
143
|
typeClass,
|
|
@@ -116,6 +146,7 @@ const IBizControlBase = /* @__PURE__ */ vue.defineComponent({
|
|
|
116
146
|
codeName,
|
|
117
147
|
controls,
|
|
118
148
|
customRender,
|
|
149
|
+
disableMaskInfoRender,
|
|
119
150
|
onLayoutPanelCreated
|
|
120
151
|
};
|
|
121
152
|
},
|
|
@@ -169,7 +200,7 @@ const IBizControlBase = /* @__PURE__ */ vue.defineComponent({
|
|
|
169
200
|
"style": this.inlineStyle
|
|
170
201
|
}, [layoutPanel || this.customRender || ((_c = (_b = this.$slots).default) == null ? void 0 : _c.call(_b)), state.disabled && vue.createVNode("div", {
|
|
171
202
|
"class": [this.ns.e("mask-container"), this.ns.m(state.maskOption.mode.toLowerCase())]
|
|
172
|
-
}, [state.maskOption.mode === "MASK" && (
|
|
203
|
+
}, [state.maskOption.mode === "MASK" && this.disableMaskInfoRender()])]);
|
|
173
204
|
}
|
|
174
205
|
});
|
|
175
206
|
|
|
@@ -49,7 +49,7 @@ const IBizCustomRender = /* @__PURE__ */ vue.defineComponent({
|
|
|
49
49
|
if (!controlRenders || controlRenders.length === 0) {
|
|
50
50
|
return void 0;
|
|
51
51
|
}
|
|
52
|
-
const noDataRender = controlRenders.find((item) => item.id ===
|
|
52
|
+
const noDataRender = controlRenders.find((item) => item.id === runtime.PredefinedControlRender.EMPTYPANEL);
|
|
53
53
|
if (!noDataRender)
|
|
54
54
|
return void 0;
|
|
55
55
|
if (noDataRender.renderType === "LAYOUTPANEL_MODEL" && noDataRender.layoutPanelModel) {
|
|
@@ -66,12 +66,23 @@ function renderPanelItem(panelItem, c, ins) {
|
|
|
66
66
|
tempStyle = panelItem.cssStyle;
|
|
67
67
|
}
|
|
68
68
|
const panelItemC = panelItems[panelItem.id];
|
|
69
|
+
const attrs = renderAttrs(panelItem, panelItemC);
|
|
70
|
+
if (attrs.dynamicstyle) {
|
|
71
|
+
if (typeof attrs.dynamicstyle === "object") {
|
|
72
|
+
tempStyle += Object.entries(attrs.dynamicstyle).map(([key, value]) => {
|
|
73
|
+
return "".concat(key, ":").concat(value, ";");
|
|
74
|
+
}).join("");
|
|
75
|
+
} else {
|
|
76
|
+
tempStyle += attrs.dynamicstyle;
|
|
77
|
+
}
|
|
78
|
+
delete attrs.dynamicstyle;
|
|
79
|
+
}
|
|
69
80
|
return vue.h(component, {
|
|
70
81
|
modelData: panelItem,
|
|
71
82
|
controller: panelItemC,
|
|
72
83
|
key: panelItem.id,
|
|
73
84
|
style: tempStyle,
|
|
74
|
-
attrs
|
|
85
|
+
attrs
|
|
75
86
|
}, children);
|
|
76
87
|
}
|
|
77
88
|
const PanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -146,12 +146,23 @@ const ViewLayoutPanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
146
146
|
tempStyle = panelItem.cssStyle;
|
|
147
147
|
}
|
|
148
148
|
const panelItemC = panelItems[panelItem.id];
|
|
149
|
+
const attrs = renderAttrs(panelItem, panelItemC);
|
|
150
|
+
if (attrs.dynamicstyle) {
|
|
151
|
+
if (typeof attrs.dynamicstyle === "object") {
|
|
152
|
+
tempStyle += Object.entries(attrs.dynamicstyle).map(([key, value]) => {
|
|
153
|
+
return "".concat(key, ":").concat(value, ";");
|
|
154
|
+
}).join("");
|
|
155
|
+
} else {
|
|
156
|
+
tempStyle += attrs.dynamicstyle;
|
|
157
|
+
}
|
|
158
|
+
delete attrs.dynamicstyle;
|
|
159
|
+
}
|
|
149
160
|
return vue.h(component, {
|
|
150
161
|
modelData: panelItem,
|
|
151
162
|
controller: panelItemC,
|
|
152
163
|
key: panelItem.id,
|
|
153
164
|
style: tempStyle,
|
|
154
|
-
attrs
|
|
165
|
+
attrs
|
|
155
166
|
}, children);
|
|
156
167
|
};
|
|
157
168
|
vue.provide("renderPanelItem", renderPanelItem);
|
|
@@ -44,7 +44,7 @@ const PanelContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
44
|
};
|
|
45
45
|
},
|
|
46
46
|
render() {
|
|
47
|
-
var _a, _b;
|
|
47
|
+
var _a, _b, _c;
|
|
48
48
|
let _slot;
|
|
49
49
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
50
50
|
const content = vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
@@ -64,6 +64,30 @@ const PanelContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
64
64
|
})) ? _slot : {
|
|
65
65
|
default: () => [_slot]
|
|
66
66
|
});
|
|
67
|
+
const attrs = (_c = this.$attrs) == null ? void 0 : _c.attrs;
|
|
68
|
+
if (attrs && attrs.dynamictooltip) {
|
|
69
|
+
return vue.createVNode(vue.resolveComponent("el-tooltip"), {
|
|
70
|
+
"placement": "right",
|
|
71
|
+
"popper-class": this.ns.e("dynamic-tooltip")
|
|
72
|
+
}, {
|
|
73
|
+
default: () => {
|
|
74
|
+
return vue.createVNode("div", vue.mergeProps({
|
|
75
|
+
"class": this.classArr,
|
|
76
|
+
"onClick": () => {
|
|
77
|
+
this.controller.onClick();
|
|
78
|
+
}
|
|
79
|
+
}, this.$attrs), [this.controller.model.cssStyle ? vue.createVNode("style", {
|
|
80
|
+
"type": "text/css"
|
|
81
|
+
}, [this.controller.model.cssStyle]) : null, content]);
|
|
82
|
+
},
|
|
83
|
+
content: () => {
|
|
84
|
+
return vue.createVNode("div", {
|
|
85
|
+
"class": this.ns.e("dynamic-tooltip-content"),
|
|
86
|
+
"innerHTML": attrs.dynamictooltip
|
|
87
|
+
}, null);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
67
91
|
return vue.createVNode("div", {
|
|
68
92
|
"class": this.classArr,
|
|
69
93
|
"onClick": () => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var ramda = require('ramda');
|
|
4
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
5
|
|
|
5
6
|
"use strict";
|
|
6
7
|
function renderString(value) {
|
|
@@ -26,7 +27,9 @@ const hasEmptyPanelRenderer = (c) => {
|
|
|
26
27
|
if (!controlRenders || controlRenders.length === 0) {
|
|
27
28
|
return false;
|
|
28
29
|
}
|
|
29
|
-
return !!controlRenders.find(
|
|
30
|
+
return !!controlRenders.find(
|
|
31
|
+
(item) => item.id === runtime.PredefinedControlRender.EMPTYPANEL
|
|
32
|
+
);
|
|
30
33
|
};
|
|
31
34
|
|
|
32
35
|
exports.hasEmptyPanelRenderer = hasEmptyPanelRenderer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-util",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.7",
|
|
4
4
|
"description": "通用组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"types": "es/index.d.ts",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@ibiz-template/cli": "^0.3.10",
|
|
40
|
-
"@ibiz-template/core": "^0.7.41-alpha.
|
|
41
|
-
"@ibiz-template/runtime": "^0.7.41-alpha.
|
|
40
|
+
"@ibiz-template/core": "^0.7.41-alpha.7",
|
|
41
|
+
"@ibiz-template/runtime": "^0.7.41-alpha.7",
|
|
42
42
|
"@ibiz-template/theme": "^0.7.39",
|
|
43
43
|
"@ibiz/model-core": "^0.1.77",
|
|
44
44
|
"@types/path-browserify": "^1.0.2",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"vue": "^3.3.8",
|
|
68
68
|
"vue-router": "^4.2.4"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "79a6a1ef6d1b814b2a2b19e85bf1238d14a9d026"
|
|
71
71
|
}
|