@ibiz-template/vue3-components 0.7.41-alpha.20 → 0.7.41-alpha.21

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 (133) hide show
  1. package/dist/ibiz-markdown-editor-Bd4vTqbM.js +1 -0
  2. package/dist/index-8Yq7Bpp0.js +11 -0
  3. package/dist/{index-K6B-Odyq.js → index-mjpFeLkH.js} +1 -1
  4. package/dist/{index-Bt6TkADL.js → index-pz3nYBld.js} +1 -1
  5. package/dist/index.min.css +1 -1
  6. package/dist/index.system.min.js +1 -1
  7. package/dist/wang-editor-zhTZMXYX.js +1 -0
  8. package/dist/{xlsx-util-mN5WSU7v.js → xlsx-util-rX1J1Mx_.js} +1 -1
  9. package/es/common/action-toolbar/action-toolbar.css +1 -1
  10. package/es/common/action-toolbar/action-toolbar.d.ts +1 -1
  11. package/es/common/action-toolbar/action-toolbar.mjs +49 -7
  12. package/es/common/index.mjs +2 -1
  13. package/es/control/dashboard/dashboard.d.ts +2 -2
  14. package/es/control/dashboard/dashboard.mjs +3 -2
  15. package/es/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.d.ts +1 -0
  16. package/es/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.mjs +3 -0
  17. package/es/control/dashboard/portlet/actionbar-portlet/index.d.ts +1 -0
  18. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.d.ts +4 -3
  19. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +6 -3
  20. package/es/control/data-view/data-view.css +1 -1
  21. package/es/control/data-view/data-view.mjs +4 -1
  22. package/es/control/form/edit-form/edit-form.mjs +10 -1
  23. package/es/control/form/form/form.d.ts +1 -1
  24. package/es/control/form/form/form.mjs +2 -1
  25. package/es/control/form/form-detail/form-group-panel/form-group-panel.d.ts +1 -0
  26. package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +3 -0
  27. package/es/control/form/form-detail/form-group-panel/index.d.ts +1 -0
  28. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +3 -1
  29. package/es/control/form/form-detail/form-mdctrl/form-mdctrl.d.ts +2 -1
  30. package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +4 -1
  31. package/es/control/form/form-detail/form-mdctrl/index.d.ts +2 -1
  32. package/es/control/grid/grid/grid.mjs +3 -7
  33. package/es/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.mjs +4 -3
  34. package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.d.ts +4 -0
  35. package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.mjs +30 -3
  36. package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +1 -1
  37. package/es/control/kanban/kanban.css +1 -1
  38. package/es/control/kanban/kanban.mjs +11 -6
  39. package/es/control/kanban/swimlane-kanban/swimlane-kanban.css +1 -1
  40. package/es/control/kanban/swimlane-kanban/swimlane-kanban.mjs +1 -0
  41. package/es/control/list/list.d.ts +1 -1
  42. package/es/control/list/list.mjs +4 -1
  43. package/es/control/search-bar/index.d.ts +1 -0
  44. package/es/control/search-bar/search-bar.css +1 -1
  45. package/es/control/search-bar/search-bar.d.ts +3 -2
  46. package/es/control/search-bar/search-bar.mjs +26 -3
  47. package/es/control/search-bar/search-groups/search-groups.css +1 -1
  48. package/es/control/search-bar/search-groups/search-groups.d.ts +11 -1
  49. package/es/control/search-bar/search-groups/search-groups.mjs +14 -1
  50. package/es/control/toolbar/index.d.ts +3 -3
  51. package/es/control/toolbar/toolbar.d.ts +5 -5
  52. package/es/control/toolbar/toolbar.mjs +1 -1
  53. package/es/control/tree-grid/tree-grid.mjs +2 -1
  54. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/index.d.ts +5 -4
  55. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.d.ts +5 -4
  56. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +8 -5
  57. package/es/control/tree-grid-ex/tree-grid-ex.d.ts +1 -1
  58. package/es/control/tree-grid-ex/tree-grid-ex.mjs +3 -2
  59. package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +2 -2
  60. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -1
  61. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +4 -1
  62. package/es/editor/html/wang-editor/wang-editor.d.ts +2 -0
  63. package/es/editor/html/wang-editor/wang-editor.mjs +3 -3
  64. package/es/editor/index.mjs +6 -0
  65. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.d.ts +2 -0
  66. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +2 -2
  67. package/es/editor/text-box/index.d.ts +1 -0
  68. package/es/editor/text-box/index.mjs +1 -0
  69. package/es/editor/text-box/signature/signature.css +1 -0
  70. package/es/editor/text-box/signature/signature.d.ts +102 -0
  71. package/es/editor/text-box/signature/signature.mjs +238 -0
  72. package/es/editor/text-box/text-box-editor.provider.mjs +4 -0
  73. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +2 -0
  74. package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +2 -0
  75. package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +2 -0
  76. package/es/editor/upload/use/use-iview-upload.mjs +12 -3
  77. package/es/locale/en/index.d.ts +7 -0
  78. package/es/locale/en/index.mjs +7 -0
  79. package/es/locale/zh-CN/index.d.ts +7 -0
  80. package/es/locale/zh-CN/index.mjs +7 -0
  81. package/es/panel-component/panel-static-carousel/panel-static-carousel.d.ts +1 -1
  82. package/es/panel-component/user-message/async-action/async-data-export/async-data-export.mjs +1 -1
  83. package/es/util/open-view-util/open-view-util.mjs +1 -1
  84. package/es/view-engine/gantt-view.engine.mjs +4 -0
  85. package/lib/common/action-toolbar/action-toolbar.cjs +49 -7
  86. package/lib/common/action-toolbar/action-toolbar.css +1 -1
  87. package/lib/common/index.cjs +1 -0
  88. package/lib/control/dashboard/dashboard.cjs +2 -1
  89. package/lib/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.cjs +3 -0
  90. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +6 -3
  91. package/lib/control/data-view/data-view.cjs +3 -0
  92. package/lib/control/data-view/data-view.css +1 -1
  93. package/lib/control/form/edit-form/edit-form.cjs +10 -1
  94. package/lib/control/form/form/form.cjs +1 -0
  95. package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +3 -0
  96. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +3 -1
  97. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +4 -1
  98. package/lib/control/grid/grid/grid.cjs +2 -6
  99. package/lib/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.cjs +4 -3
  100. package/lib/control/grid/grid-column/grid-field-column/attachment-column/file-util.cjs +30 -3
  101. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +1 -1
  102. package/lib/control/kanban/kanban.cjs +10 -5
  103. package/lib/control/kanban/kanban.css +1 -1
  104. package/lib/control/kanban/swimlane-kanban/swimlane-kanban.cjs +1 -0
  105. package/lib/control/kanban/swimlane-kanban/swimlane-kanban.css +1 -1
  106. package/lib/control/list/list.cjs +3 -0
  107. package/lib/control/search-bar/search-bar.cjs +25 -2
  108. package/lib/control/search-bar/search-bar.css +1 -1
  109. package/lib/control/search-bar/search-groups/search-groups.cjs +14 -1
  110. package/lib/control/search-bar/search-groups/search-groups.css +1 -1
  111. package/lib/control/toolbar/toolbar.cjs +1 -1
  112. package/lib/control/tree-grid/tree-grid.cjs +1 -0
  113. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +8 -5
  114. package/lib/control/tree-grid-ex/tree-grid-ex.cjs +2 -1
  115. package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +2 -2
  116. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +4 -1
  117. package/lib/editor/html/wang-editor/wang-editor.cjs +3 -3
  118. package/lib/editor/index.cjs +6 -0
  119. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +2 -2
  120. package/lib/editor/text-box/index.cjs +2 -0
  121. package/lib/editor/text-box/signature/signature.cjs +240 -0
  122. package/lib/editor/text-box/signature/signature.css +1 -0
  123. package/lib/editor/text-box/text-box-editor.provider.cjs +4 -0
  124. package/lib/editor/upload/use/use-iview-upload.cjs +12 -3
  125. package/lib/locale/en/index.cjs +7 -0
  126. package/lib/locale/zh-CN/index.cjs +7 -0
  127. package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs +1 -1
  128. package/lib/util/open-view-util/open-view-util.cjs +1 -1
  129. package/lib/view-engine/gantt-view.engine.cjs +4 -0
  130. package/package.json +6 -6
  131. package/dist/ibiz-markdown-editor-e33m6ees.js +0 -1
  132. package/dist/index-hzGAQk1t.js +0 -11
  133. package/dist/wang-editor-qbGW8Rzj.js +0 -1
@@ -701,6 +701,13 @@ var index = {
701
701
  allProhibited: "\u5168\u90E8\u7981\u6B62",
702
702
  expandAll: "\u5168\u90E8\u5C55\u5F00",
703
703
  collapseAll: "\u5168\u90E8\u6536\u8D77"
704
+ },
705
+ signature: {
706
+ undo: "\u64A4\u9500",
707
+ rewrite: "\u91CD\u5199",
708
+ confirm: "\u786E\u8BA4",
709
+ addSignature: "\u70B9\u51FB\u6B64\u5904\u6DFB\u52A0\u7B7E\u540D",
710
+ signaturePrompt: "\u8BF7\u5728\u7A7A\u767D\u533A\u57DF\u5185\u6A2A\u5411\u4E66\u5199"
704
711
  }
705
712
  },
706
713
  panelComponent: {
@@ -50,7 +50,7 @@ const AsyncDataExport = /* @__PURE__ */ vue.defineComponent({
50
50
  info.isFinish = true;
51
51
  }
52
52
  const onDownLoad = () => {
53
- ibiz.util.file.fileDownload(info.fileUrl, info.fileName);
53
+ ibiz.util.file.fileDownload(info.fileUrl, info.fileName, void 0, false);
54
54
  };
55
55
  return {
56
56
  ns,
@@ -195,7 +195,7 @@ class OpenViewUtil {
195
195
  context,
196
196
  params
197
197
  );
198
- window.open("".concat(core.UrlHelper.routeBase).concat(path), "_blank", "popup");
198
+ window.open("".concat(core.UrlHelper.routeBase).concat(path), "_blank");
199
199
  }
200
200
  }
201
201
 
@@ -25,6 +25,10 @@ class GanttViewEngine extends treeGridExView_engine.TreeGridExViewEngine {
25
25
  this.gantt.saveAll();
26
26
  return null;
27
27
  }
28
+ if (key === runtime.SysUIActionTag.REFRESH) {
29
+ await this.gantt.refresh();
30
+ return null;
31
+ }
28
32
  return super.call(key, args);
29
33
  }
30
34
  async onCreated() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.41-alpha.20",
3
+ "version": "0.7.41-alpha.21",
4
4
  "description": "web端组件库(vue3)",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -36,12 +36,12 @@
36
36
  "@ibiz-template-plugin/data-view": "0.0.4",
37
37
  "@ibiz-template/core": "0.7.41-alpha.18",
38
38
  "@ibiz-template/devtool": "0.0.11",
39
- "@ibiz-template/model-helper": "0.7.41-alpha.20",
40
- "@ibiz-template/runtime": "0.7.41-alpha.20",
39
+ "@ibiz-template/model-helper": "0.7.41-alpha.21",
40
+ "@ibiz-template/runtime": "0.7.41-alpha.21",
41
41
  "@ibiz-template/theme": "0.7.39",
42
- "@ibiz-template/vue3-util": "0.7.41-alpha.20",
42
+ "@ibiz-template/vue3-util": "0.7.41-alpha.21",
43
43
  "@ibiz-template/web-theme": "3.8.0",
44
- "@ibiz/model-core": "^0.1.80",
44
+ "@ibiz/model-core": "^0.1.81",
45
45
  "@imengyu/vue3-context-menu": "^1.3.5",
46
46
  "@monaco-editor/loader": "^1.4.0",
47
47
  "@wangeditor/editor": "^5.1.23",
@@ -108,7 +108,7 @@
108
108
  "@ibiz-template/runtime": "^0.7.0",
109
109
  "@ibiz-template/theme": "^0.7.0",
110
110
  "@ibiz-template/vue3-util": "^0.7.0",
111
- "@ibiz/model-core": "^0.1.80",
111
+ "@ibiz/model-core": "^0.1.81",
112
112
  "@imengyu/vue3-context-menu": "^1.3.3",
113
113
  "@monaco-editor/loader": "^1.3.3",
114
114
  "@wangeditor/editor": "^5.1.23",
@@ -1 +0,0 @@
1
- System.register(["vue","@ibiz-template/vue3-util","qx-util","cherry-markdown"],(function(e){"use strict";var t,l,n,o,i,r,a,s,c,d,u,m,h,p;return{setters:[function(e){t=e.defineComponent,l=e.ref,n=e.watch,o=e.onMounted,i=e.onBeforeUnmount,r=e.onUnmounted,a=e.createVNode,s=e.nextTick},function(e){c=e.getMarkDownProps,d=e.getEditorEmits,u=e.useNamespace,m=e.useUIStore},function(e){h=e.createUUID},function(e){p=e.default}],execute:function(){e("default",t({name:"IBizMarkDown",props:c(),emits:d(),setup(e,{emit:t}){var a,c;const d=u("markdown"),f=e.controller,b=l("");let v=null;const g=h(),w=ibiz.util.file.getUploadHeaders(),k=l({...w}),y=l(""),C=(null==(a=null==f?void 0:f.editorParams)?void 0:a.customTheme)||(null==(c=null==f?void 0:f.editorParams)?void 0:c.customtheme),{UIStore:x}=m(),U=l(C||x.theme),z=l("editOnly");let D=null,E=0;const T=l({});let B=!1;n((()=>e.data),(e=>{if(e&&f){const t={...f.editorParams};t.uploadparams&&(t.uploadParams=JSON.parse(t.uploadparams));const l=ibiz.util.file.calcFileUpDownUrl(f.context,f.params,e,t);y.value=l.uploadUrl}}),{immediate:!0,deep:!0});const P=l(),M=async(t,l)=>{const n=await ibiz.util.file.fileUpload(y.value,t,k.value),o=((e,t)=>{if(!f)return"";const l={...f.editorParams};return l.exportparams&&(l.exportParams=JSON.parse(l.exportparams)),t&&t.folder&&(l.osscat=t.folder),ibiz.util.file.calcFileUpDownUrl(f.context,f.params,e,l).downloadUrl})(e.data||{},n.fileid);let i=o.replace("%fileId%",n.fileid);if(ibiz.config.common.enableDownloadTicket&&f){const e=await ibiz.util.file.getDownloadTicket(f.context,{fileId:n.fileid});e&&e.ticket&&(i=o.replace("%fileId%",e.ticket),l(i))}else l(i)},S=()=>null==v?void 0:v.getMarkdown(),I=e=>{B=!0,null==v||v.setMarkdown(e,!1)};n((()=>e.value),((e,t)=>{e!==t&&(b.value=e||"")}),{immediate:!0}),n(b,((e,t)=>{const l=S();e!==t&&l!==e&&I(e)}));const N=e=>{t("change",S(),null==f?void 0:f.model.id,B),B=!1},O=(e,t)=>({[e]:t}),V=(e,t="")=>{const l=document.createElement(e);return l.className=t,l},q=e=>V("i","ch-icon ch-icon-".concat(e)),R=d.e("fullscreen"),j=e=>{for(;e.firstChild;)e.removeChild(e.firstChild)},H=()=>{if(v&&P.value){const e=v.editor.options.editorDom.parentElement;if(!e)return{};const t=e.classList,l=P.value.querySelector(".".concat(R));return l?{parentElement:e,cherryClass:t,fullscreenNode:l}:{}}return{}},L=()=>{const{parentElement:e,cherryClass:t,fullscreenNode:l}=H();e&&t&&l&&(j(l),l.appendChild(q("fullscreen")),l.title=ibiz.i18n.t("editor.common.fullscreen"),t.remove("fullscreen"),null==e||e.blur(),e.setAttribute("tabindex","-1"))},A=()=>{const{cherryClass:e}=H();return null==e?void 0:e.contains("fullscreen")},F=()=>{v&&P.value&&(A()?L():(()=>{const{parentElement:e,cherryClass:t,fullscreenNode:l}=H();e&&t&&l&&(j(l),l.appendChild(q("minscreen")),t.add("fullscreen"),l.title=ibiz.i18n.t("editor.common.minimize"),e.setAttribute("tabindex","-1"),s((()=>null==e?void 0:e.focus())))})())},J=e=>{e.stopPropagation(),"Escape"===e.key&&A()&&L()};n((()=>x.theme),(e=>{U.value=C||e,null==v||v.setTheme(U.value),null==v||v.setCodeBlockTheme(U.value)}));return o((()=>{var t;(e.disabled||e.readonly)&&(z.value="previewOnly"),s((()=>{var t;v=new p({id:g,value:b.value,previewer:{enablePreviewerBubble:!(e.disabled||e.readonly)},themeSettings:{mainTheme:U.value,codeBlockTheme:U.value},fileUpload:M,emoji:{useUnicode:!0},header:{anchorStyle:"autonumber"},editor:{height:"100%",defaultModel:z.value,codemirror:{autofocus:!1}},toolbars:{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:N,beforeImageMounted:O},engine:{syntax:{table:{enableChart:!1,externals:["echarts"]}}}}),v.setTheme(U.value),C&&(v.setTheme(C),v.setCodeBlockTheme(C));const l=V("span","".concat(R," cherry-toolbar-button"));l.title=ibiz.i18n.t("editor.common.fullscreen"),l.onclick=F,l.appendChild(q("fullscreen"));const n=e.disabled?v.editor.options.editorDom.parentElement:null==(t=v.editor.options.editorDom.parentElement)?void 0:t.querySelector(".cherry-toolbar>.toolbar-right");null==n||n.appendChild(l)})),(()=>{if(window.ResizeObserver&&P.value){const e={width:P.value.offsetWidth?"".concat(P.value.offsetWidth,"px"):"100%"};f&&"number"==typeof f.parent.model.height&&Object.assign(e,{height:"".concat(f.parent.model.height,"px")}),T.value=d.cssVarBlock(e),D=new ResizeObserver((e=>{const t=e[0].contentRect.width;if(t!==E){const l={width:"".concat(e[0].contentRect.width,"px")};f&&"number"==typeof f.parent.model.height&&Object.assign(l,{height:"".concat(f.parent.model.height,"px")}),T.value=d.cssVarBlock(l),E=t}})),D.observe(P.value)}})(),null==(t=P.value)||t.addEventListener("keydown",J.bind(this))})),i((()=>{var e;null==(e=P.value)||e.removeEventListener("keydown",J.bind(this))})),r((()=>{v=null,D&&D.disconnect()})),{ns:d,currentVal:b,id:g,editor:v,markDownBox:P,headers:k,theme:U,defaultModel:z,cssVars:T,getCherryHtml:()=>null==v?void 0:v.getHtml(),getCherryContent:S,setCherryContent:I}},render(){return a("div",{ref:"markDownBox",class:[this.ns.b(),this.ns.is("disabled",this.disabled)]},[a("div",{id:this.id,style:this.cssVars,class:this.ns.b("cherry")},null)])}}))}}}));