@ibiz-template/vue3-components 0.5.0-beta.2 → 0.5.0-beta.4

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 (41) hide show
  1. package/dist/chart-pboinFqM.js +1 -0
  2. package/dist/ibiz-markdown-editor-_12065dS.js +1 -0
  3. package/dist/index-0wchGbyh.js +1 -0
  4. package/dist/index-GTqx3bKp.js +2 -0
  5. package/dist/index-Grqqw7vv.js +1 -0
  6. package/dist/index.min.css +1 -1
  7. package/dist/index.system.min.js +1 -1
  8. package/dist/map-chart-NxSN1lcE.js +1 -0
  9. package/dist/wang-editor-jTRcSpFt.js +1 -0
  10. package/dist/xlsx-util-RnaVeyP1.js +3 -0
  11. package/es/control/grid/grid/grid-control.util.mjs +12 -6
  12. package/es/control/search-bar/search-bar.css +1 -1
  13. package/es/control/search-bar/search-bar.mjs +14 -14
  14. package/es/control/tree/index.d.ts +1 -1
  15. package/es/control/tree/tree.d.ts +1 -1
  16. package/es/control/tree/tree.mjs +4 -0
  17. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +7 -9
  18. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +1 -1
  19. package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +2 -0
  20. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
  21. package/es/panel-component/auth-userinfo/auth-userinfo.d.ts +0 -2
  22. package/es/panel-component/auth-userinfo/auth-userinfo.mjs +3 -31
  23. package/es/panel-component/auth-userinfo/index.d.ts +0 -2
  24. package/lib/control/grid/grid/grid-control.util.cjs +11 -5
  25. package/lib/control/search-bar/search-bar.cjs +14 -14
  26. package/lib/control/search-bar/search-bar.css +1 -1
  27. package/lib/control/tree/tree.cjs +4 -0
  28. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +7 -9
  29. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +1 -1
  30. package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +2 -0
  31. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
  32. package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +2 -30
  33. package/package.json +15 -9
  34. package/dist/chart-z0fpZZs7.js +0 -1
  35. package/dist/ibiz-markdown-editor-BQsiQfa2.js +0 -1
  36. package/dist/index-4AVxSM7T.js +0 -1
  37. package/dist/index-7ToGGiae.js +0 -13
  38. package/dist/index-RpjjoesN.js +0 -1
  39. package/dist/map-chart-eYMKFxeH.js +0 -1
  40. package/dist/wang-editor-mY0aiRPV.js +0 -1
  41. package/dist/xlsx-util-uPzw_Qmh.js +0 -104
@@ -0,0 +1 @@
1
+ System.register(["vue","@ibiz-template/vue3-util","echarts","@ibiz-template/runtime"],(function(e){"use strict";var t,r,o,n,a,c,i,l,u;return{setters:[function(e){t=e.defineComponent,r=e.ref,o=e.onMounted,n=e.createVNode,a=e.resolveComponent},function(e){c=e.useControlController,i=e.useNamespace},function(e){l=e.init},function(e){u=e.ChartController}],execute:function(){e("default",t({name:"IBizChartControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},loadDefault:{type:Boolean,default:!0}},setup(){const e=c(((...e)=>new u(...e))),t=i(`control-${e.model.controlType.toLowerCase()}`),n=r();return o((()=>{const t=l(n.value);e.initChart(t)})),{c:e,ns:t,chartRef:n}},render(){return n(a("iBizControlBase"),{controller:this.c},{default:()=>[n("div",{ref:"chartRef",class:this.ns.e("chart")},[ibiz.i18n.t("control.chart.chartPlaceholder")])]})}}))}}}));
@@ -0,0 +1 @@
1
+ System.register(["vue","@ibiz-template/vue3-util","qx-util","cherry-markdown","@ibiz-template/core"],(function(e){"use strict";var t,a,l,r,o,i,n,s,u,d,c,h,v,m,b;return{setters:[function(e){t=e.defineComponent,a=e.ref,l=e.watch,r=e.onMounted,o=e.onUnmounted,i=e.createVNode,n=e.nextTick},function(e){s=e.getMarkDownProps,u=e.getEditorEmits,d=e.useNamespace,c=e.useUIStore},function(e){h=e.createUUID,v=e.getCookie},function(e){m=e.default},function(e){b=e.CoreConst}],execute:function(){e("default",t({name:"IBizMarkDown",props:s(),emits:u(),setup(e,{emit:t}){const i=d("markdown"),s=e.controller,u=a(""),f=a(null),g=h(),p=a({Authorization:`Bearer ${v(b.TOKEN)}`}),w=a(""),k=a(""),{UIStore:y}=c(),x=a(y.theme),C=a("editOnly");let U=null,z=0;const M=a({});l((()=>e.data),(e=>{if(e&&s){const t=s.calcBaseUrl(e);w.value=t.uploadUrl,k.value=t.downloadUrl}}),{immediate:!0,deep:!0});const B=a(),O=(e,t)=>{const a=new FormData;a.append("file",e),ibiz.net.axios({url:w.value,method:"post",headers:p.value,data:a}).then((e=>{if(200===e.status&&e.data.fileid){const a=k.value.replace("%fileId%",e.data.fileid);t(a)}})).catch((e=>{ibiz.log.error("上传出错",e)}))},D=()=>{var e;return null==(e=f.value)?void 0:e.getMarkdown()},I=e=>{var t;null==(t=f.value)||t.setMarkdown(e,!1)};l((()=>e.value),((e,t)=>{e!==t&&(u.value=e||"")}),{immediate:!0}),l(u,((e,t)=>{const a=D();e!==t&&a!==e&&I(e)}));const V=e=>{t("change",D())},$=(e,t)=>({[e]:t});l((()=>y.theme),(e=>{var t;x.value=e,null==(t=f.value)||t.setTheme(x.value)}));return r((()=>{e.disabled&&(C.value="previewOnly"),n((()=>{f.value=new m({id:g,value:u.value,theme:x.value,fileUpload:O,emoji:{useUnicode:!0},header:{anchorStyle:"autonumber"},editor:{height:"100%",defaultModel:C.value,codemirror:{autofocus:!1}},toolbars:{theme:x.value,toolbar:["bold","italic","underline","strikethrough","|","color","header","|","list","image",{insert:["link","hr","br","code","formula","toc","table","line-table","bar-table"]},"settings","togglePreview"],bubble:["bold","italic","underline","strikethrough","sub","sup","|","size","color"],float:["h1","h2","h3","|","checklist","quote","quickTable","code"],customMenu:[],sidebar:[]},callback:{afterChange:V,beforeImageMounted:$}})})),(()=>{if(window.ResizeObserver&&B.value){const e={width:`${B.value.offsetWidth}px`};s&&"number"==typeof s.parent.model.height&&Object.assign(e,{height:`${s.parent.model.height}px`}),M.value=i.cssVarBlock(e),U=new ResizeObserver((e=>{const t=e[0].contentRect.width;if(t!==z){const a={width:`${e[0].contentRect.width}px`};s&&"number"==typeof s.parent.model.height&&Object.assign(a,{height:`${s.parent.model.height}px`}),M.value=i.cssVarBlock(a),z=t}})),U.observe(B.value)}})()})),o((()=>{f.value=null})),{ns:i,currentVal:u,id:g,editor:f,markDownBox:B,headers:p,theme:x,defaultModel:C,cssVars:M,getCherryHtml:()=>{var e;return null==(e=f.value)?void 0:e.getHtml()},getCherryContent:D,setCherryContent:I}},render(){return i("div",{ref:"markDownBox",class:[this.ns.b(),this.ns.is("disabled",this.disabled)]},[i("div",{id:this.id,style:this.cssVars,class:this.ns.b("cherry")},null)])}}))}}}));
@@ -0,0 +1 @@
1
+ System.register([],(function(e){"use strict";return{execute:function(){e("default",{app:{logout:"退出登陆",error:"错误",success:"成功",confirm:"确认",cancel:"取消",return:"返回",noData:"无数据",refresh:"刷新",noSupport:"暂未支持",add:"添加",delete:"删除"},view:{},control:{menu:{noSupportAlign:"暂未支持菜单方向为 {align}"},calendar:{lastYear:"去年",lastMonth:"上个月",today:"今天",nextMonth:"下个月",nextYear:"明年"},chart:{chartPlaceholder:"图表"},dashboard:{dashboardDesign:{global:"全局",add:"添加",customPortal:"自定义门户",colNum:"列数",cellHeight:"单元格高度",restoreDefault:"恢复默认",save:"保存"}},form:{noSupportDetailType:"暂未支持的表单项类型: {detailType} 或找不到对应适配器",formDruipart:{saveFirst:"请先保存主数据"},formGroupPanel:{showMore:"显示更多",putAway:"收起"},formMDctrlForm:{notFindProvider:"未找到表单的适配器"}}},component:{indexSearch:{placeholder:"搜索内容"},dataImport:{startImport:"开始导入,详细进度和结果请看应用通知",importSuccess:"共计导入数据 {totalNum} 条,错误[{errorNum}],成功[{successNum}]",importData:"导入数据",clickToUpload:"单击此区域进行上传",importResults:"导入结果",downloadTemplate:"下载导入模版,并按要求填写:",templateFile:"数据导入模板文件",continue:"继续导入"},dataImport2:{atLastOne:"至少选择一个映射属性",uploadPlease:"请上传文件",fileName:"当前文件名:{fileName}",saveMode:"导入模式保存",reUpload:"重新上传文件",fileUpload:"文件上传",import:"导入"},dataImport2Select:{selectMode:"选择导入模式",edit:"编辑"},dataImport2Table:{selectAttribute:"选择当前列对应的导入属性"},extendActionTimeLine:{processTime:"处理时间",comments:"审批意见"},pagination:{display:"显示",piece:"条",total:"共",pieceData:"条数据"},rawItem:{errorConfig:"{type} 类型自定义参数配置错误",noSupportVideo:"你的浏览器不支持video标签"}},editor:{}})}}}));