@ibiz-template/vue3-components 0.7.41-alpha.75 → 0.7.41-alpha.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/ibiz-markdown-editor-BL2T9im7.js +1 -0
  2. package/dist/{index-BKRy1bD-.js → index-C1ZClqi3.js} +6 -6
  3. package/dist/{index.es-D1Ar4FMf.js → index.es-NjzMvAN7.js} +1 -1
  4. package/dist/index.min.css +1 -1
  5. package/dist/index.system.min.js +1 -1
  6. package/dist/wang-editor-CxNdHx5i.js +1 -0
  7. package/dist/{xlsx-util-DaBD0-eP.js → xlsx-util-yyM4_HrC.js} +1 -1
  8. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +5 -5
  9. package/es/control/form/form-detail/form-item/form-item.mjs +12 -3
  10. package/es/control/grid/grid/grid.mjs +1 -1
  11. package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +1 -1
  12. package/es/control/grid/grid-column/grid-field-edit-column/all-edit.mjs +2 -1
  13. package/es/control/grid/grid-column/grid-field-edit-column/cell-edit.mjs +2 -1
  14. package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +21 -8
  15. package/es/control/grid/grid-column/grid-field-edit-column/row-edit.mjs +2 -1
  16. package/es/editor/html/html-editor.controller.mjs +61 -0
  17. package/es/editor/html/wang-editor/index.mjs +1 -0
  18. package/es/editor/html/wang-editor/module/extra-module.mjs +81 -0
  19. package/es/editor/html/wang-editor/module/index.mjs +1 -0
  20. package/es/editor/html/wang-editor/wang-editor.mjs +15 -0
  21. package/es/editor/markdown/ibiz-markdown-editor/custom-menu.mjs +21 -1
  22. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +9 -2
  23. package/es/editor/markdown/markdown-editor.controller.mjs +36 -0
  24. package/es/editor/span/span/span.mjs +3 -3
  25. package/es/util/ai-chat-util/ai-chat-util.mjs +3 -8
  26. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +3 -3
  27. package/lib/control/form/form-detail/form-item/form-item.cjs +11 -2
  28. package/lib/control/grid/grid/grid.cjs +1 -1
  29. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +1 -1
  30. package/lib/control/grid/grid-column/grid-field-edit-column/all-edit.cjs +2 -1
  31. package/lib/control/grid/grid-column/grid-field-edit-column/cell-edit.cjs +2 -1
  32. package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +21 -8
  33. package/lib/control/grid/grid-column/grid-field-edit-column/row-edit.cjs +2 -1
  34. package/lib/editor/html/html-editor.controller.cjs +61 -0
  35. package/lib/editor/html/wang-editor/index.cjs +2 -0
  36. package/lib/editor/html/wang-editor/module/extra-module.cjs +83 -0
  37. package/lib/editor/html/wang-editor/module/index.cjs +2 -0
  38. package/lib/editor/html/wang-editor/wang-editor.cjs +15 -0
  39. package/lib/editor/markdown/ibiz-markdown-editor/custom-menu.cjs +21 -1
  40. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +9 -2
  41. package/lib/editor/markdown/markdown-editor.controller.cjs +36 -0
  42. package/lib/editor/span/span/span.cjs +3 -3
  43. package/lib/util/ai-chat-util/ai-chat-util.cjs +3 -8
  44. package/package.json +5 -5
  45. package/dist/ibiz-markdown-editor-CgZ0NiE3.js +0 -1
  46. package/dist/wang-editor-D66s5vRQ.js +0 -1
@@ -0,0 +1 @@
1
+ System.register(["vue","@ibiz-template/vue3-util","qx-util","cherry-markdown"],function(e){"use strict";var t,n,i,o,l,a,r,s,c,d,u,m,h,v,p;return{setters:[function(e){t=e.nextTick,n=e.ref,i=e.onBeforeUnmount,o=e.createVNode,l=e.resolveComponent,a=e.defineComponent,r=e.watch,s=e.onMounted,c=e.onUnmounted},function(e){d=e.useUIStore,u=e.getMarkDownEmits,m=e.getMarkDownProps,h=e.useNamespace},function(e){v=e.createUUID},function(e){p=e.default}],execute:function(){function f(e,t){return!(!e||1!==e.nodeType||e.nodeName!==t)}function b(e){const a=n(""),r=n([]),s=n(),c=n(!1);let d=null;const u=async e=>{var n;if(c.value=!0,a.value=e,r.value=[e],await t(),s.value){const{container:e}=s.value.$refs;e&&(null==(n=e.children[0])||n.click())}},m=e=>{"Escape"!==e.key&&27!==e.keyCode||(e.stopPropagation(),e.preventDefault(),r.value=[],c.value=!1,v())},h=async()=>{var e;await t();const n=null==(e=s.value)?void 0:e.$refs.container;if(!n)return;const i=n.querySelector(".el-image-viewer__wrapper");null==i||i.addEventListener("keydown",m)},v=()=>{var e;const t=null==(e=s.value)?void 0:e.$refs.container;if(!t)return;const n=t.querySelector(".el-image-viewer__wrapper");null==n||n.removeEventListener("keydown",m)},p=e=>{const t=null==e?void 0:e.target;if(f(t,"IMG")&&t)return void u(t.src);const n=function(e){let t=e;for(;t;){if(t.classList.contains("cherry-previewer"))return null;const e=t.parentElement;if(f(t,"svg")&&e&&"mermaid"===e.dataset.type)return t;t=t.parentElement}return null}(t);n&&u(function(e){const t=e.cloneNode(!0),n=e.width.baseVal.value||e.clientWidth,i=e.height.baseVal.value||e.clientHeight;t.setAttribute("width",n),t.setAttribute("height",i),t.style.backgroundColor="white";const o=(new XMLSerializer).serializeToString(t),l=btoa(unescape(encodeURIComponent(o)));return"data:image/svg+xml;base64,".concat(l)}(n))},b=()=>{r.value=[],c.value=!1};return i(()=>{d&&(d.removeEventListener("click",p),d=null),v()}),{isImgPreview:c,renderImgPreview:()=>o(l("el-image"),{class:e.e("img-preview"),ref:s,"zoom-rate":1.1,src:a.value,"preview-src-list":r.value,"hide-on-click-modal":!0,onShow:h,onClose:b,fit:"cover"},null),onMDEditorCreated:e=>{var t,n;d=(null==(n=null==(t=null==e?void 0:e.previewer)?void 0:t.previewerBubble)?void 0:n.previewerDom)||null,null==d||d.addEventListener("click",p)}}}e("default",a({name:"IBizMarkDown",props:m(),emits:u(),setup(e,{emit:l,slots:a}){var u,m,f,g,w,C;const k=h("markdown"),y=e.controller,x=n("");let I=null;const M=v(),{isImgPreview:z,onMDEditorCreated:P,renderImgPreview:E}=b(k),A=ibiz.util.file.getUploadHeaders(),D=n({...A}),U=n(""),S=(null==(u=null==y?void 0:y.editorParams)?void 0:u.customTheme)||(null==(m=null==y?void 0:y.editorParams)?void 0:m.customtheme),T="true"===(null==(f=null==y?void 0:y.editorParams)?void 0:f.enablenoaccess),{UIStore:B}=d(),L=n(S||B.theme),O=n(!1);let N="default";y&&(null==(g=y.editorParams)?void 0:g.showmode)&&(N=y.editorParams.showmode);const V=n(!1),H=n("editOnly");let R=null,q=null,F=0;const $=n({}),_=n({}),j=n("pure");let W=!1,J=!1;(null==(w=null==y?void 0:y.editorParams)?void 0:w.disabledirectory)&&(J="true"===y.editorParams.disabledirectory);let Y="absolute";(null==(C=null==y?void 0:y.editorParams)?void 0:C.tocpos)&&(Y="fixed"===y.editorParams.tocpos?"fixed":"absolute");const[G,X,K]=function(e,n){const{props:i,isEditing:o,currentVal:l,emit:a}=n;let r=n.chatInstance;const s=p.createMenuHook("AI",{icon:{type:"svg",content:"<svg\n viewBox='0 0 16 16'\n xmlns='http://www.w3.org/2000/svg'\n fill='currentColor'\n height='1em'\n width='1em'\n preserveAspectRatio='xMidYMid meet'\n focusable='false'\n >\n <g\n id='aae1.Base基础/1.icon图标/2.normal/ai-star'\n stroke-width='1'\n fill-rule='evenodd'\n >\n <path\n d='M5.817 1.53l3.158 8.797h.054v.152l1.443 4.021-1.402.001-1.041-2.982H2.495l-1.03 2.982L0 14.5 4.671 1.533l1.146-.003zm7.86 5.424V14.5h-1.213V6.954h1.212zM5.248 3.549l-2.342 6.778h4.706L5.249 3.55zM13.046 0c.075 0 .147.02.204.071a.318.318 0 01.094.181l.064.273c.097.417.17.727.255.968.084.24.177.4.31.523.134.124.318.218.599.306.281.088.65.166 1.15.265a.358.358 0 01.195.095c.056.057.083.13.083.213a.289.289 0 01-.083.21.362.362 0 01-.197.094c-.528.093-.918.167-1.214.255-.295.088-.485.187-.621.324-.137.138-.23.324-.31.606-.08.283-.145.651-.23 1.147a.329.329 0 01-.093.184.293.293 0 01-.206.075.308.308 0 01-.207-.072.322.322 0 01-.1-.188l-.006-.033c-.085-.486-.149-.845-.228-1.12-.079-.274-.17-.452-.305-.585-.135-.133-.323-.23-.618-.32s-.683-.168-1.21-.273a.353.353 0 01-.2-.096.29.29 0 01-.08-.208c0-.079.023-.153.079-.211a.35.35 0 01.2-.097c.5-.098.869-.176 1.15-.263.282-.087.465-.18.597-.302.132-.12.224-.278.306-.511.082-.236.151-.539.244-.947l.071-.312a.312.312 0 01.102-.183.311.311 0 01.205-.069z'\n id='aae形状结合'\n ></path>\n </g>\n </svg>\n "},onClick:(n,i,o)=>{o.stopPropagation(),o.preventDefault(),t(()=>{var t;if(null==(t=e.mdeditor)?void 0:t.bubble){e.mdeditor.bubble.showBubble();const t=e.mdeditor.bubble.bubbleDom.getBoundingClientRect();if(!t||!t.left||!t.top)return;const n=ibiz.inLineAIUtil.calcContextMenus(e.deACMode,t=>{e.doInLineAIUIAction(t,e.model.appId)});if(0===n.length)return;const{zIndex:i}=d(),o=i.increment();ibiz.inLineAIUtil.showContextMenus(t.left,t.top+43,n,{zIndex:o,onClose:()=>{i.decrement()}})}})}}),c=p.createMenuHook("AIChart",{icon:{type:"svg",content:"<svg\n viewBox='0 0 16 16'\n xmlns='http://www.w3.org/2000/svg'\n fill='currentColor'\n height='1em'\n width='1em'\n preserveAspectRatio='xMidYMid meet'\n focusable='false'\n >\n <g\n id='aae1.Base基础/1.icon图标/2.normal/ai-star'\n stroke-width='1'\n fill-rule='evenodd'\n >\n <path\n d='M5.817 1.53l3.158 8.797h.054v.152l1.443 4.021-1.402.001-1.041-2.982H2.495l-1.03 2.982L0 14.5 4.671 1.533l1.146-.003zm7.86 5.424V14.5h-1.213V6.954h1.212zM5.248 3.549l-2.342 6.778h4.706L5.249 3.55zM13.046 0c.075 0 .147.02.204.071a.318.318 0 01.094.181l.064.273c.097.417.17.727.255.968.084.24.177.4.31.523.134.124.318.218.599.306.281.088.65.166 1.15.265a.358.358 0 01.195.095c.056.057.083.13.083.213a.289.289 0 01-.083.21.362.362 0 01-.197.094c-.528.093-.918.167-1.214.255-.295.088-.485.187-.621.324-.137.138-.23.324-.31.606-.08.283-.145.651-.23 1.147a.329.329 0 01-.093.184.293.293 0 01-.206.075.308.308 0 01-.207-.072.322.322 0 01-.1-.188l-.006-.033c-.085-.486-.149-.845-.228-1.12-.079-.274-.17-.452-.305-.585-.135-.133-.323-.23-.618-.32s-.683-.168-1.21-.273a.353.353 0 01-.2-.096.29.29 0 01-.08-.208c0-.079.023-.153.079-.211a.35.35 0 01.2-.097c.5-.098.869-.176 1.15-.263.282-.087.465-.18.597-.302.132-.12.224-.278.306-.511.082-.236.151-.539.244-.947l.071-.312a.312.312 0 01.102-.183.311.311 0 01.205-.069z'\n id='aae形状结合'\n ></path>\n </g>\n </svg>\n "},onClick:async()=>{const t=e.model.appDataEntityId;if(!t||!e.deACMode)return;const{zIndex:n}=d(),s=n.increment();r=await ibiz.aiChatUtil.getAIChat();const{containerOptions:c,chatOptions:u}=await ibiz.aiChatUtil.getEditorExAIChatParams(e.editorParams,e.context,e.params,i.data,e.deACMode,{chatInstance:r,view:e.view,ctrl:e.ctrl}),m=await ibiz.aiChatUtil.getAIResourceOptions(e.context,e.params);r.create({resourceOptions:m,containerOptions:{zIndex:s,...c},chatOptions:{caption:e.deACMode.logicName,context:{...e.context},params:{...e.params,srfactag:e.deACMode.codeName},appDataEntityId:t,...u,action:(e,t)=>{"backfill"===e&&(o.value?l.value=t.realcontent||"":a("change",t.realcontent))}}})}}),u={};return e.extraActions.forEach(t=>{const{uiactionId:n,sysImage:i,caption:o}=t,l=n.split("@")[0],r={onClick:async()=>{const t=await e.doCustomUIAction(n,e.model.appId);t.length>0&&a("customAction",{tag:n,data:t})}};i&&(r.icon={type:"svg",content:i.rawContent}),u[l]=p.createMenuHook(o,r)}),[s,c,u]}(y,{props:e,chatInstance:undefined,isEditing:O,currentVal:x,emit:l});r(()=>e.data,e=>{if(e&&y){const t={...y.editorParams,enableNoAccess:T};t.uploadparams&&(t.uploadParams=JSON.parse(t.uploadparams));const n=ibiz.util.file.calcFileUpDownUrl(y.context,y.params,e,t);U.value=n.uploadUrl}},{immediate:!0,deep:!0});const Q=n(),Z=async(t,n)=>{const i=await ibiz.util.file.fileUpload(U.value,t,D.value),o=((e,t)=>{if(!y)return"";const n={...y.editorParams,enableNoAccess:T};return n.exportparams&&(n.exportParams=JSON.parse(n.exportparams)),n.globaldownloadprifix?n.globalDownloadPrifix="true"===n.globaldownloadprifix:n.globalDownloadPrifix=ibiz.config.common.globalDownloadPrifix,t&&t.folder&&(n.osscat=t.folder),ibiz.util.file.calcFileUpDownUrl(y.context,y.params,e,n).downloadUrl})(e.data||{},i.fileid);let l=o.replace("%fileId%",i.fileid);if(ibiz.config.common.enableDownloadTicket&&y&&y.editorParams&&!T){const t=await ibiz.util.file.getDownloadTicket(y.context,y.params,e.data||{},{fileId:i.fileid},y.downloadTicketParams);t&&t.ticket&&(l=o.replace("%fileId%",t.ticket),n(l))}else n(l)},ee=()=>null==I?void 0:I.getMarkdown(),te=e=>{W=!0,null==I||I.setMarkdown(e,!0)};r(()=>e.value,(e,t)=>{e!==t&&(x.value=e||"")},{immediate:!0}),r(x,(e,t)=>{const n=ee();e!==t&&n!==e&&te(e)});const ne=e=>{"manual"!==N&&(l("change",ee(),null==y?void 0:y.model.id,W),W=!1)},ie=(e,t)=>({[e]:t}),oe=(e,t="")=>{const n=document.createElement(e);return n.className=t,n},le=e=>oe("i","ch-icon ch-icon-".concat(e)),ae=k.e("fullscreen"),re=e=>{for(;e.firstChild;)e.removeChild(e.firstChild)},se=()=>{if(I&&Q.value){const e=I.editor.options.editorDom.parentElement;if(!e)return{};const t=e.classList,n=Q.value.querySelector(".".concat(ae));return n?{parentElement:e,cherryClass:t,fullscreenNode:n}:{}}return{}},ce=()=>{const{parentElement:e,cherryClass:t,fullscreenNode:n}=se();e&&t&&n&&(re(n),n.appendChild(le("fullscreen")),n.title=ibiz.i18n.t("editor.common.fullscreen"),t.remove("fullscreen"),null==e||e.blur(),e.setAttribute("tabindex","-1"))},de=()=>{const{cherryClass:e}=se();return null==e?void 0:e.contains("fullscreen")},ue=()=>{I&&Q.value&&(de()?(ce(),I.toggleToc(j.value),V.value=!1):((()=>{const{parentElement:e,cherryClass:n,fullscreenNode:i}=se();e&&n&&i&&(re(i),i.appendChild(le("minscreen")),n.add("fullscreen"),i.title=ibiz.i18n.t("editor.common.minimize"),e.setAttribute("tabindex","-1"),t(()=>null==e?void 0:e.focus()))})(),j.value=I.toc.model,I.toggleToc("full"),V.value=!0))},me=e=>{e.stopPropagation(),"Escape"===e.key&&(e.preventDefault(),de()&&(ce(),I.toggleToc(j.value),V.value=!1))},he=e=>{null==y||y.setCurrentEditorTheme(e)},ve=e=>{var t,n;const{info:i}=e;let o=!0;const l=i.ranges&&i.ranges[0];if(l){const{anchor:e,head:t}=l;o=y.isPositionBefore(e,t)}else o=!0;const a=null==(t=y.mdeditor)?void 0:t.editor.editor.getCursor("start"),r=null==(n=y.mdeditor)?void 0:n.editor.editor.getCursor("end");y.setCursorPos(a,r),y.setSelectionDirection(o)};r(()=>B.theme,e=>{L.value=S||e,null==I||I.setTheme(L.value),null==I||I.setCodeBlockTheme(L.value)});const pe=()=>{O.value=!0,H.value="editOnly",null==I||I.switchModel(H.value)},fe=()=>{O.value=!1,H.value="previewOnly",null==I||I.switchModel(H.value)},be=()=>{te(x.value),fe()},ge=()=>{l("change",ee(),null==y?void 0:y.model.id,W),W=!1,fe()},we=()=>{const e=document.getElementById(M);null==e||e.focus()};return s(()=>{var n;(e.disabled||e.readonly||"manual"===N)&&(H.value="previewOnly"),t(()=>{var t,n,i;const o=["bold","italic","underline","strikethrough","sub","sup","|","size","color"],l=["bold","italic","underline","strikethrough","|","color","header","|","list","image",{insert:["link","hr","br","code","formula","toc","table","line-table","bar-table"]},"settings","togglePreview"];if(y&&y.chatCompletion&&(l.unshift("AIChart"),o.unshift("AI")),y.extraActions.length>0){const e=y.extraActions.map(e=>e.uiactionId.split("@")[0]);l.push(...e)}I=new p({id:M,value:x.value,previewer:{enablePreviewerBubble:!(e.disabled||e.readonly)},themeSettings:{mainTheme:L.value,codeBlockTheme:L.value},fileUpload:Z,emoji:{useUnicode:!0},header:{anchorStyle:"autonumber"},editor:{height:"100%",defaultModel:H.value,codemirror:{autofocus:!1}},toolbars:{toolbar:l,bubble:o,float:["h1","h2","h3","|","checklist","quote","quickTable","code"],customMenu:{AI:G,AIChart:X,...K},sidebar:["theme","copy"],toolbarRight:[],toc:!J&&{updateLocationHash:!1,defaultModel:"pure",showAutoNumber:!0,position:Y,cssText:""}},callback:{afterChange:ne,beforeImageMounted:ie},event:{changeMainTheme:he,selectionChange:ve},engine:{syntax:{table:{enableChart:!1,externals:["echarts"]}}}}),I.toggleToc("pure");const r=I.engine.makeHtml(x.value);I.previewer.update(r),null==(n=null==(t=I.toc)?void 0:t.updateTocList)||n.call(t),I.setTheme(L.value),S&&(I.setTheme(S),I.setCodeBlockTheme(S));const s=oe("span","".concat(ae," cherry-toolbar-button"));s.title=ibiz.i18n.t("editor.common.fullscreen"),s.onclick=ue,s.appendChild(le("fullscreen"));const c=e.disabled?I.editor.options.editorDom.parentElement:null==(i=I.editor.options.editorDom.parentElement)?void 0:i.querySelector(".cherry-toolbar>.toolbar-right");if(null==c||c.appendChild(s),null==y||y.setMDEditor(I),P(I),a.editorSwitchMenu&&window.ResizeObserver&&Q.value){const e=Q.value.querySelector(".cherry-toolbar");e&&(q=new ResizeObserver(e=>{var t;const n=null==(t=e[0])?void 0:t.contentRect.height;_.value=k.cssVarBlock({"toolbar-height":"".concat(n,"px")})}),q.observe(e))}}),(()=>{if(window.ResizeObserver&&Q.value){const e={width:Q.value.offsetWidth?"".concat(Q.value.offsetWidth,"px"):"100%"};y&&"number"==typeof y.parent.model.height&&Object.assign(e,{height:"".concat(y.parent.model.height,"px")}),$.value=k.cssVarBlock(e),R=new ResizeObserver(e=>{const t=e[0].contentRect.width;if(t!==F){const n={width:"".concat(e[0].contentRect.width,"px")};y&&"number"==typeof y.parent.model.height&&Object.assign(n,{height:"".concat(y.parent.model.height,"px")}),$.value=k.cssVarBlock(n),F=t}}),R.observe(Q.value)}})(),null==(n=Q.value)||n.addEventListener("keydown",me.bind(this))}),i(()=>{var e;null==(e=Q.value)||e.removeEventListener("keydown",me.bind(this))}),c(()=>{I=null,R&&R.disconnect(),q&&q.disconnect()}),{ns:k,currentVal:x,id:M,editor:I,markDownBox:Q,headers:D,theme:L,UIStore:B,defaultModel:H,cssVars:$,isEditing:O,showmode:N,isFullScreen:V,isImgPreview:z,getCherryHtml:()=>null==I?void 0:I.getHtml(),getCherryContent:ee,setCherryContent:te,renderHeader:()=>{if("manual"===N&&!O.value)return o("div",{onClick:we,class:[k.e("header"),k.is("fullscreen",V.value)]},[!e.disabled&&!e.readonly&&o("div",{class:k.em("header","edit"),onClick:pe,title:ibiz.i18n.t("editor.markdown.edit")},[o("i",{class:"fa fa-edit","aria-hidden":"true"},null)]),o("div",{class:k.em("header","full"),onClick:ue},[V.value?o("i",{class:"fa fa-compress","aria-hidden":"true",title:ibiz.i18n.t("editor.html.reduce")},null):o("i",{class:"fa fa-expand","aria-hidden":"true",title:ibiz.i18n.t("editor.common.fullscreen")},null)])])},renderFooter:()=>{if("manual"===N&&O.value&&!e.disabled&&!e.readonly)return o("div",{onClick:we,class:[k.e("footer"),k.is("fullscreen",V.value)]},[o("div",{class:k.em("footer","cancel"),onClick:be},[ibiz.i18n.t("editor.common.cancel")]),o("div",{class:k.em("footer","save"),onClick:ge},[ibiz.i18n.t("editor.common.confirm")])])},renderImgPreview:E,renderEditorSwitchMenu:()=>{var e;return o("div",{class:[k.b("menu"),k.is("fullscreen",V.value)],style:_.value},[null==(e=a.editorSwitchMenu)?void 0:e.call(a)])}}},render(){const e=!!this.$slots.editorSwitchMenu;return o("div",{ref:"markDownBox",class:[this.ns.b(),this.ns.is("disabled",this.disabled),this.ns.is("manual","manual"===this.showmode),this.ns.is("editing",this.isEditing),this.ns.is("show-editor-switch-menu",e),this.ns.is("editor-content-fixed",this.isFullScreen||this.isImgPreview)]},[e?this.renderEditorSwitchMenu():null,this.renderHeader(),this.renderFooter(),this.renderImgPreview(),o("div",{tabindex:"-1",id:this.id,style:this.cssVars,class:[this.ns.b("cherry"),this.ns.m("dark"===this.UIStore.theme?"dark":"light")]},null)])}}))}}});