@ibiz-template/vue3-components 0.7.8 → 0.7.10
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-GoU343c8.js +4 -0
- package/dist/index-dsmTOMa5.js +1 -0
- package/dist/index-sGpuIVYT.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-Vch7U079.js +1 -0
- package/dist/{xlsx-util-3My8gW7-.js → xlsx-util-my1qbty8.js} +1 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +2 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +7 -3
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +22 -28
- package/es/control/dashboard/portlet/chart-portlet/chart-portlet.mjs +13 -1
- package/es/control/dashboard/portlet/list-portlet/list-portlet.mjs +13 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.d.ts +1 -0
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +10 -1
- package/es/control/dashboard/portlet/view-portlet/view-portlet.mjs +13 -1
- package/es/editor/html/html-editor.controller.d.ts +25 -2
- package/es/editor/html/html-editor.controller.mjs +49 -1
- package/es/editor/html/wang-editor/ai/ai-modules.d.ts +10 -0
- package/es/editor/html/wang-editor/ai/ai-modules.mjs +32 -0
- package/es/editor/html/wang-editor/wang-editor.mjs +88 -3
- package/es/editor/text-box/input/input.mjs +9 -5
- package/es/locale/en/index.d.ts +204 -0
- package/es/locale/en/index.mjs +205 -0
- package/es/locale/zh-CN/index.d.ts +204 -0
- package/es/locale/zh-CN/index.mjs +205 -0
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +6 -2
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +22 -28
- package/lib/control/dashboard/portlet/chart-portlet/chart-portlet.cjs +12 -0
- package/lib/control/dashboard/portlet/list-portlet/list-portlet.cjs +12 -0
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +10 -1
- package/lib/control/dashboard/portlet/view-portlet/view-portlet.cjs +12 -0
- package/lib/editor/html/html-editor.controller.cjs +48 -0
- package/lib/editor/html/wang-editor/ai/ai-modules.cjs +34 -0
- package/lib/editor/html/wang-editor/wang-editor.cjs +87 -2
- package/lib/editor/text-box/input/input.cjs +9 -5
- package/lib/locale/en/index.cjs +205 -0
- package/lib/locale/zh-CN/index.cjs +205 -0
- package/package.json +7 -7
- package/dist/index-Rqr5SnvQ.js +0 -1
- package/dist/index-oydyrl0O.js +0 -4
- package/dist/index-x-jLCilD.js +0 -1
- package/dist/wang-editor-XnzvMz46.js +0 -1
package/dist/index-x-jLCilD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register([],(function(e){"use strict";return{execute:function(){e("default",{app:{logout:"Logout",error:"Error",success:"Success",confirm:"Confirm",cancel:"Cancel",return:"Return",noData:"No data available",refresh:"Refresh",noSupport:"Not supported currently",add:"Add",delete:"Delete",save:"Save"},view:{},control:{menu:{noSupportAlign:"The menu direction {align} is not supported temporarily"},calendar:{lastYear:"Last Year",lastMonth:"Last Month",today:"Today",nextMonth:"Next Month",nextYear:"Next Year"},chart:{chartPlaceholder:"chart"},dashboard:{dashboardDesign:{global:"Global level",add:"Add",customPortal:"Customize portal",colNum:"Column number",cellHeight:"Cell Height",restoreDefault:"Restore default",save:"Save"}},form:{noSupportDetailType:"Form detail type not supported: {detailType} or corresponding provider cannot be found",formDruipart:{saveFirst:"Please save the master data first"},formGroupPanel:{showMore:"Show More",putAway:"Put Away"},formMDctrlForm:{notFindProvider:"Provider not found for form"}}},component:{indexSearch:{placeholder:"Search Content"},dataImport:{startImport:"Start importing. Please refer to the application notification for detailed progress and results",importSuccess:"A total of {totalNum} pieces of imported data, error [{errorNum}], successful [{successNum}]",importData:"Import Data",clickToUpload:"Click on this area to upload",importResults:"Import Results",downloadTemplate:"Download the import template and fill in as required:",templateFile:"Data import template file",continue:"Continue importing"},dataImport2:{atLastOne:"Select at least one mapping attribute",uploadPlease:"Please upload the file",fileName:"Current file name: {fileName}",saveMode:"Import Mode Save",reUpload:"Re upload files",fileUpload:"File upload",import:"Import"},dataImport2Select:{selectMode:"Select import mode",edit:"Edit"},dataImport2Table:{selectAttribute:"Select the import attribute corresponding to the current column"},extendActionTimeLine:{processTime:"processing time",comments:"Approval opinions"},pagination:{display:"Display",piece:"piece",total:"total",pieceData:"piece of data"},rawItem:{errorConfig:"{type} type custom parameter configuration error",noSupportVideo:"Your browser does not support video tags"},gridSetting:{hideControl:"Column selection"},actionToolbar:{more:"More"}},editor:{code:{readOnlyPrompt:"Currently in read-only mode, not editable",confirmCancelPrompt:"Are you sure you want to cancel editing?",cancelEditPrompt:"Canceling editing will prevent the modified content from being saved and cannot be retrieved.",confirmCancel:"Confirm cancel"}}})}}}));
|
|
@@ -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,f,h,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.nextTick,i=e.onUnmounted,u=e.createVNode,c=e.resolveComponent,d=e.createTextVNode},function(e){v=e.Toolbar,m=e.Editor},function(e){f=e.getCookie},function(e){h=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 c=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(f(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},I=e=>e,A={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:I},editLink:{checkLink:L,parseLinkUrl:I}}};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(),n="<p><br></p>"===t?"":t;n===e.value||""===n&&h(e.value)||!P.value&&a.isFocused()&&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||r(null==l?()=>{w.value=""}:()=>{w.value=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,r((()=>{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=c.cssVarBlock(t),k=a}})),S.observe(x.value.selector)}}))})),i((()=>{S&&S.disconnect()})),{ns:c,editorRef:B,mode:"default",valueHtml:w,toolbarConfig:A,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?u("div",{class:c.b("custom-toolbar")},[P.value&&T.value&&N.value?u("i",{class:"fa fa-edit","aria-hidden":"true",onClick:()=>X()},null):null,V.value?z.value?u("i",{class:"fa fa-compress","aria-hidden":"true",onClick:()=>Y()},null):u("i",{class:"fa fa-expand","aria-hidden":"true",onClick:()=>Y()},null):null]):null,renderEditorContent:()=>u("div",{class:c.b("content"),ref:"htmlContent",style:E.value},[u(v,{ref:"toolbarRef",editor:B.value,"default-config":A,mode:"default",class:c.b("toolbar")},null),u(m,{class:c.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?u("div",{class:[c.b("footer"),{[c.b("footer-dialog")]:z.value}]},[u("div",{class:c.be("footer","cancel"),onClick:()=>{e.value!==w.value?F({title:"确认取消",type:"warning",customClass:c.b("message"),message:u("div",{class:c.be("message","message-content")},[u("p",null,[d("确定要取消编辑吗?")]),u("p",{class:c.bem("message","message-content","message-tip")},[d("取消编辑将无法保存修改的内容,且不能找回。")])]),showCancelButton:!0,cancelButtonClass:c.be("message","message-cancel"),confirmButtonClass:c.be("message","message-comfire")}).then((()=>{w.value=e.value||"",X()})).catch((()=>{B.value.focus()})):X()}},[d("取消")]),u("div",{class:c.be("footer","save"),onClick:()=>(()=>{N.value=!0,B.value.disable();const e=w.value;l("change",e),z.value&&(z.value=!1)})()},[d("保存")])]):null,htmlContent:g,hasEnableEdit:P,cssVars:E,toolbarRef:x,isFullScreen:z,readonlyState:N,changeFullScreenState:Y}},render(){return this.isFullScreen?u(c("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:()=>[u("div",{class:[this.ns.b(),{[this.ns.b("editor-readonly")]:this.readonlyState}]},[this.renderHeaserToolbar(),this.renderEditorContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null])]}):u("div",{class:[this.ns.b(),{[this.ns.b("editor-readonly")]:this.readonlyState}]},[this.renderHeaserToolbar(),this.renderEditorContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null])}}))}}}));
|