@ibiz-template/vue3-components 0.7.6 → 0.7.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.
Files changed (62) hide show
  1. package/dist/index-Rqr5SnvQ.js +1 -0
  2. package/dist/index-ntRuv0hC.js +4 -0
  3. package/dist/index-x-jLCilD.js +1 -0
  4. package/dist/index.min.css +1 -1
  5. package/dist/index.system.min.js +1 -1
  6. package/dist/wang-editor-0uYWEddj.js +1 -0
  7. package/dist/{xlsx-util-QjtIWX97.js → xlsx-util-2u3vZn2l.js} +1 -1
  8. package/es/common/action-toolbar/action-toolbar.d.ts +3 -0
  9. package/es/common/action-toolbar/action-toolbar.mjs +13 -3
  10. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +5 -0
  11. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.d.ts +1 -0
  12. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +4 -0
  13. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +45 -0
  14. package/es/control/toolbar/toolbar.mjs +14 -8
  15. package/es/editor/code/monaco-editor/monaco-editor.css +1 -1
  16. package/es/editor/code/monaco-editor/monaco-editor.d.ts +7 -0
  17. package/es/editor/code/monaco-editor/monaco-editor.mjs +179 -16
  18. package/es/editor/html/wang-editor/wang-editor.mjs +7 -3
  19. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -0
  20. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +10 -3
  21. package/es/editor/text-box/input/input.d.ts +1 -0
  22. package/es/editor/text-box/input/input.mjs +9 -2
  23. package/es/ibiz-vue3.mjs +2 -0
  24. package/es/index.mjs +1 -0
  25. package/es/locale/en/index.d.ts +9 -1
  26. package/es/locale/en/index.mjs +10 -2
  27. package/es/locale/zh-CN/index.d.ts +9 -1
  28. package/es/locale/zh-CN/index.mjs +10 -2
  29. package/es/util/open-view-util/open-view-util.mjs +2 -3
  30. package/es/view/403-view/403-view.css +1 -0
  31. package/es/view/403-view/403-view.d.ts +6 -0
  32. package/es/view/403-view/403-view.mjs +45 -0
  33. package/es/view/404-view/404-view.mjs +2 -2
  34. package/es/view/index.d.ts +1 -0
  35. package/es/view/index.mjs +1 -0
  36. package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +5 -2
  37. package/es/web-app/util/unauthorized-handler/unauthorized-handler.d.ts +1 -1
  38. package/es/web-app/util/unauthorized-handler/unauthorized-handler.mjs +3 -12
  39. package/lib/common/action-toolbar/action-toolbar.cjs +13 -3
  40. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +4 -0
  41. package/lib/control/toolbar/toolbar.cjs +14 -8
  42. package/lib/editor/code/monaco-editor/monaco-editor.cjs +178 -15
  43. package/lib/editor/code/monaco-editor/monaco-editor.css +1 -1
  44. package/lib/editor/html/wang-editor/wang-editor.cjs +6 -2
  45. package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +10 -3
  46. package/lib/editor/text-box/input/input.cjs +9 -2
  47. package/lib/ibiz-vue3.cjs +2 -0
  48. package/lib/index.cjs +2 -0
  49. package/lib/locale/en/index.cjs +10 -2
  50. package/lib/locale/zh-CN/index.cjs +10 -2
  51. package/lib/util/open-view-util/open-view-util.cjs +2 -3
  52. package/lib/view/403-view/403-view.cjs +47 -0
  53. package/lib/view/403-view/403-view.css +1 -0
  54. package/lib/view/404-view/404-view.cjs +2 -2
  55. package/lib/view/index.cjs +2 -0
  56. package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +4 -1
  57. package/lib/web-app/util/unauthorized-handler/unauthorized-handler.cjs +3 -12
  58. package/package.json +7 -7
  59. package/dist/index-13Oh42A8.js +0 -1
  60. package/dist/index-ZIuDbCjc.js +0 -1
  61. package/dist/index-rHXmoO9Y.js +0 -4
  62. package/dist/wang-editor-Zc_Y0dGt.js +0 -1
@@ -1 +0,0 @@
1
- System.register(["vue","@wangeditor/editor-for-vue","qx-util","ramda","@ibiz-template/vue3-util","@ibiz-template/core","element-plus"],(function(e){"use strict";var l,a,t,n,o,s,r,i,u,c,d,v,m,h,f,b,g,p,C,y,F;return{setters:[function(e){l=e.defineComponent,a=e.ref,t=e.shallowRef,n=e.watch,o=e.onBeforeUnmount,s=e.onMounted,r=e.onUnmounted,i=e.createVNode,u=e.resolveComponent,c=e.createTextVNode,d=e.nextTick},function(e){v=e.Toolbar,m=e.Editor},function(e){h=e.getCookie},function(e){f=e.isNil},function(e){b=e.getHtmlProps,g=e.getEditorEmits,p=e.useNamespace},function(e){C=e.CoreConst,y=e.awaitTimeout},function(e){F=e.ElMessageBox}],execute:function(){e("default",l({name:"IBizHtml",props:b(),emits:g(),setup(e,{emit:l}){const u=p("html"),b=e.controller,g=a(),E=a({});let S=null,k=0;const x=a(),B=t(),w=a(""),H=a({Authorization:"Bearer ".concat(h(C.TOKEN))}),U=a(""),O=a(""),T=a(!0),P=a(!1),N=a(!1),V=a(!1),z=a(!1),R=b.model;R.editorParams&&(R.editorParams.enableEdit&&(P.value=!0,N.value=!0,T.value=b.toBoolean(R.editorParams.enableEdit)&&!e.readonly&&!e.disabled),R.editorParams.enableFullScreen&&(V.value=b.toBoolean(R.editorParams.enableFullScreen))),e.readonly&&(P.value=!1,N.value=!0),n((()=>e.data),(e=>{if(e){const l=ibiz.util.file.calcFileUpDownUrl(b.context,b.params,e,b.editorParams);U.value=l.uploadUrl,O.value=l.downloadUrl}}),{immediate:!0,deep:!0});const L=(e,l)=>{if(l)return!0},A=e=>e,I={excludeKeys:["group-video"]},D={placeholder:b.placeHolder,readOnly:P.value?N.value:e.readonly,MENU_CONF:{uploadImage:{server:U.value,fieldName:"file",maxFileSize:10485760,maxNumberOfFiles:10,allowedFileTypes:[],headers:H.value,withCredentials:!0,onBeforeUpload:e=>e,onProgress(e){console.log("progress",e)},onSuccess(e,l){console.log("".concat(e.name," 上传成功"),l)},onFailed(e,l){console.log("".concat(e.name," 上传失败"),l)},onError(e,l,a){console.log("".concat(e.name," 上传出错"),l,a)},async customInsert(e,l){l(O.value.replace("%fileId%",e.id),e.filename,"")}},insertLink:{checkLink:L,parseLinkUrl:A},editLink:{checkLink:L,parseLinkUrl:A}}};o((()=>{const e=B.value;null!=e&&e.destroy()}));const M=e=>{B.value=e,e.setHtml(w.value)},K=a=>{const t=a.getHtml();let n="<p><br></p>"===t?"":t;n===e.value||""===n&&f(e.value)||!P.value&&a.isFocused()&&(n=n.replaceAll('class="rich-html-table"',"").replace(/<table/g,'<table class="rich-html-table"'),l("change",n))},q=e=>{},_=e=>{l("focus")},j=e=>{l("blur")},G=(e,l)=>{alert("【自定义提示】".concat(l," - ").concat(e))},J=(e,l,a)=>{a(!0)},Q=()=>{const e=B.value;null!=e&&e.disable()},W=()=>{const e=B.value;null!=e&&e.enable()};s((()=>{n((()=>e.value),((l,a)=>{l===a||"string"!=typeof e.value&&null!=l||(w.value=null==l?"":l)}),{immediate:!0}),n((()=>e.disabled),((e,l)=>{e!==l&&(!0===e?Q():W())}),{immediate:!0})}));const X=()=>{N.value=!N.value,N.value?Q():(W(),B.value.focus(),(()=>{var l,a;if(e.value){const t=e.value.indexOf("</p>");if(t>=0){const e=null==(l=B.value.selection.anchor)?void 0:l.offset,n=null==(a=B.value.selection.anchor)?void 0:a.path;0===e&&n.length>0&&0===n[0]&&B.value.move(t-3)}}})())},Y=()=>{z.value=!z.value,d((()=>{N.value?Q():(W(),B.value.focus())}))};return s((()=>{y(0,(()=>{if(g.value&&x.value){const e=g.value.offsetHeight;S=new ResizeObserver((l=>{const a=l[0].contentRect.height;if(a!==k){const t={height:"".concat(e-l[0].contentRect.height,"px")};E.value=u.cssVarBlock(t),k=a}})),S.observe(x.value.selector)}}))})),r((()=>{S&&S.disconnect()})),{ns:u,editorRef:B,mode:"default",valueHtml:w,toolbarConfig:I,editorConfig:D,handleCreated:M,handleChange:K,handleDestroyed:q,handleFocus:_,handleBlur:j,customAlert:G,customPaste:J,insertText:e=>{const l=B.value;null!=l&&l.insertText(e)},printHtml:()=>{const e=B.value;null!=e&&console.log(e.getHtml())},disable:Q,enable:W,renderHeaserToolbar:()=>P.value||V.value?i("div",{class:u.b("custom-toolbar")},[P.value&&T.value&&N.value?i("i",{class:"fa fa-edit","aria-hidden":"true",onClick:()=>X()},null):null,V.value?z.value?i("i",{class:"fa fa-compress","aria-hidden":"true",onClick:()=>Y()},null):i("i",{class:"fa fa-expand","aria-hidden":"true",onClick:()=>Y()},null):null]):null,renderEditorContent:()=>i("div",{class:u.b("content"),ref:"htmlContent",style:E.value},[i(v,{ref:"toolbarRef",editor:B.value,"default-config":I,mode:"default",class:u.b("toolbar")},null),i(m,{class:u.b("editor"),modelValue:w.value,"onUpdate:modelValue":e=>w.value=e,"default-config":D,mode:"default",onOnCreated:M,onOnChange:K,onOnDestroyed:q,onOnFocus:_,onOnBlur:j,oncustomAlert:G,oncustomPaste:J},null)]),renderFooter:()=>P.value?i("div",{class:[u.b("footer"),{[u.b("footer-dialog")]:z.value}]},[i("div",{class:u.be("footer","cancel"),onClick:()=>{e.value!==w.value?F({title:"确认取消",type:"warning",customClass:u.b("message"),message:i("div",{class:u.be("message","message-content")},[i("p",null,[c("确定要取消编辑吗?")]),i("p",{class:u.bem("message","message-content","message-tip")},[c("取消编辑将无法保存修改的内容,且不能找回。")])]),showCancelButton:!0,cancelButtonClass:u.be("message","message-cancel"),confirmButtonClass:u.be("message","message-comfire")}).then((()=>{w.value=e.value||"",X()})).catch((()=>{B.value.focus()})):X()}},[c("取消")]),i("div",{class:u.be("footer","save"),onClick:()=>(()=>{N.value=!0,B.value.disable();const e=w.value.replaceAll('class="rich-html-table"',"").replace(/<table/g,'<table class="rich-html-table"');l("change",e),z.value&&(z.value=!1)})()},[c("保存")])]):null,htmlContent:g,hasEnableEdit:P,cssVars:E,toolbarRef:x,isFullScreen:z,readonlyState:N,changeFullScreenState:Y}},render(){return this.isFullScreen?i(u("el-dialog"),{modelValue:this.isFullScreen,"onUpdate:modelValue":e=>this.isFullScreen=e,width:"80%",top:"10vh",class:this.ns.b("dialog-full-screen"),onClose:()=>this.changeFullScreenState()},{default:()=>[i("div",{class:[this.ns.b(),{[this.ns.b("editor-readonly")]:this.readonlyState}]},[this.renderHeaserToolbar(),this.renderEditorContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null])]}):i("div",{class:[this.ns.b(),{[this.ns.b("editor-readonly")]:this.readonlyState}]},[this.renderHeaserToolbar(),this.renderEditorContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null])}}))}}}));